"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(u){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles_default_kevlar_base=u||[]};
(0,_._F_toggles_initialize)([0x2000000, 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 K9,uq9,dw9,DH,IR,CLw,Sr,OZ,zh,er,IHH,yHq,RR,oyq,Wbq,JH,qZ9,Ghw,trR,IC,b9y,O9n,aHr,Rqy,Uwh,rN,bk,UB,Qm,JHq,JR,jRo,j2,ps,gN,pow,k0,ZA,Tqo,gyH,NqR,lG,Z9b,dH,YZH,yV,khb,so,Xoh,Eyy,DSw,f_,dS9,CkL,IAq,yRH,sCq,Uo,uHq,a2,Kay,lA9,rRH,Gwr,t2q,T6,SBy,bs9,OsH,cRh,zwq,ew9,fA9,QCw,jCq,paq,TNR,NNZ,Zsq,kwZ,XI,YBw,E0q,LaL,K_y,CGh,Dph,IBw,dpn,Eo,aAZ,L_,u5,KM,yEy,l5,W_R,s2Z,opr,oQ,H_r,Mkq,$pL,rEb,npy,vpn,G6y,tkH,IQ,Sob,O_q,nM,aBb,Upo,xu,PGL,BHq,ziR,pER,THH,wEq,YoR,gpZ,XEh,hiq,Epq,uzL,KJL,Iky,HM9,vuq,SSq,euy,Tg,
U9b,QQH,P5L,ku,Zk,AX,mJ,lY,CH,IS,VFb,kgh,ZMn,XrR,Eu9,tm,LJq,Sj,bY,aS,zG,KWr,lIh,DTy,dTL,CYH,ymw,sSZ,oPn,WWq,Mjo,fH,U2,q2R,$Th,nPr,vPn,rmq,GGL,tjr,xTq,wm,Fn,gm,NT,ZI,bHH,YP,cmh,UTZ,Xn,fI9,QSL,PYr,hm,JmL,jSo,Bmn,E2,Tmq,uQ,Vj9,gPL,KS,kGq,Nm9,ZHh,Y2b,Am9,XZL,du,mTR,h3n,CS,EPR,LWy,IO,yY,sy,oO,uBH,lMr,KpH,WK,d0h,CQR,IMy,$$,ru,vK,Gj,tO,x$,yOo,sOq,o$r,WpL,HSR,MAq,qyn,$0h,n$q,rOq,v$q,GjH,bQ,tAR,x0R,eA,Syq,Uy,fS,bSb,aMr,z_9,e_Z,U0o,fMH,QOL,Bun,pKq,iSH,TuH,wKn,Fpq,VAb,ZSh,JO,Yyw,AOq,XKy,m0q,h_L,E$q,udo,Mbr,
qQn,$tq,vVy,GZL,FB,tbo,bVw,aur,zyH,eyn,RyH,Utq,fuy,Qew,P29,jeL,BB9,OVL,pOw,iVy,TBL,wOo,FMZ,Vbq,gVq,NBq,kZn,mtL,AqH,LMZ,hyH,EVh,l7q,Doy,doh,uLy,I7y,KtL,sZL,CV,oTn,Ie,sQ,Wtq,M9h,qnH,rgr,zpH,Gdo,vTo,xob,bIr,t9q,PrH,Uow,JgZ,jZn,Bp9,p$r,iI9,w$h,Tph,V9H,gTR,Npn,kdr,Ynq,X$y,moR,hpb,LtZ,ETn,H0H,Mt,Mfw,$_q,nDn,r89,vDH,G1b,x_R,S3H,b0L,xV,Sb,O0H,U_L,cO,ae,J8n,Biq,Z0Z,UQ,m_H,h9y,KgL,LTh,u09,BO,l_o,D7w,bTZ,OTh,c9q,a_n,zXq,eXo,RXq,f_L,QKL,J9h,PZq,pvw,kV,Aq,TvL,wvq,Fgh,Vgw,gno,NvH,ZTr,A9b,YPq,IZ,sn,oZ,yPn,s$y,Mo,
W5H,HUH,qo,qvR,MGb,bUr,OUq,cPh,zJh,fqZ,PnH,JPq,j$L,BlH,iU9,wAw,F5H,v$,gLo,ZUq,Yv9,APy,XAq,hJ9,k_H,VGq,mhZ,tg,L5b,DmR,K0q,br,CPZ,yV9,sLh,oEH,W0H,zd,HpH,q5H,MHo,$mH,rVZ,Un,Opw,aso,ear,UmL,j9,QLH,ir,V5,FL,B2n,fsZ,pun,kT,F0q,XL,mt,N2b,Y5o,Xun,mmr,haZ,hg,EEo,En,L0H,KYL,lhq,DPH,dPL,Ihb,uc,yph,s9R,lc,C0,HiZ,MBZ,q6L,yI,rp9,vf9,tBq,q_,z5y,e5R,OiL,UPo,fho,Q9h,t8,Sf,bc,B_R,p4H,cV,iiL,T_R,w4q,FYR,gfo,N_q,k9H,ZiL,VBn,Y6y,ef,X4o,h5n,RE,mPy,EfZ,Apn,LYy,f0,Kqq,l89,DNH,dNq,I8n,C0L,yCq,WqL,sNo,MR9,GSZ,xN9,SWq,On9,
zSy,a8y,cCb,eSn,UNq,QNR,f8R,JCq,BMo,p_q,inZ,TMR,kSn,NMr,Znw,YWR,YD,A8,ACr,mNq,ErH,Kfq,DBw,lyy,nT,dBq,hSH,HNo,MyL,qxq,xn,$BH,rsZ,tyy,bNr,Sxw,zdr,edb,Rdh,UBh,Qyr,p0h,PIR,jyh,Bd9,iNL,Tdn,FfR,w0h,gsb,Vyr,Pv,Ndb,ZNr,Yxq,hdH,Vx,gv,Eso,LfL,N7,DKn,A9,X0,mg,yuH,h9,WGH,un,Hmb,MZH,qVo,$Ky,Dq,nwq,vwq,GIR,xKH,bmq,aJZ,e8Z,qh,R8R,UKL,fJr,QfH,Phn,JuL,jfZ,BZq,rl,TZn,wiy,FGL,VZH,gwr,NZH,kI9,Zmq,YVb,Aub,XiH,mKq,h8q,Ov,oOL,WdH,cA,a$,z_,Hc9,MtH,qdR,$uq,nOq,r_n,vOy,bcb,Och,c_o,aUq,zVw,fU,PA,JP,jG,T_,wl,FZ,RVb,gl,fUh,Nh,
Q7y,Pvq,kL,J_y,j7n,Beb,kOw,YdZ,EOq,lvZ,K3r,Zcq,Dnq,Ivq,xnn,M8Z,avo,$nh,cUh,z4Z,hP,R4w,uP,fvH,QbZ,JUq,jby,Bny,ig9,d2,wFo,F3h,V8b,gH9,NnH,kQZ,Zgq,Tnw,XF9,mnq,h4n,IL,DEL,dEy,lpy,IpR,ylH,oUn,WQH,stL,vUH,t1r,Spn,OrL,r2,UEZ,RPH,jtw,pbq,irr,TfR,wbb,FQh,V1r,aL,hPn,LQy,Xbq,Alo,EUb,NfH,KEq,MXb,dIL,Ctn,I$Z,b49,cBw,S4R,f$q,xIo,gUq,UIo,DIH,H49,O4R,ubH,Zrb,kWH,YpZ,mEZ,tXr,kE,Z4L,ABh,X1w,mIh,hMw,Iay,MUw,qKZ,Ki,nYR,GTb,b1h,SKR,cKq,aaL,eEw,UXo,REH,faH,H4,Qww,Peq,jwn,JKn,MP,FoL,wJL,TEy,kTh,VUb,Z1n,NEq,YKn,$f,AKq,EYH,
mXh,hEb,uRq,DCq,G9,ISy,dCR,y3q,HzH,Mdn,neb,vew,by,O6,SLn,bz9,c4,eB,OzH,R9,U6,c3q,fi,aSq,QH,zB9,eB9,Jp,RBh,UC9,fSH,Q5q,PCy,j5w,J3H,pkq,wk9,Ts9,FUn,Vd9,Bs9,geq,Zzw,kkZ,izb,YLn,A3n,T9,Xkh,hBb,mCw,EeH,LUq,KzR,u_9,lLq,F3,dZH,Cwr,DZR,ynq,sXZ,o5Z,qA9,rnZ,SAH,aLb,VH,Rxn,UZR,g_,fLq,Yf,Ap,pUn,kf,hp,i5q,TrZ,Fzq,Vlr,Nrq,Z5R,YAH,Ann,XUb,E5r,Daq,K1r,hxZ,da9,CDq,Kn,lOq,IOZ,dM,y0q,sjb,o2n,W1H,$aq,H3R,qfb,GRR,taR,c0h,O3q,eeR,J0R,jjL,p8Z,TaL,w8R,VaL,g2n,Nah,Z3H,YfH,A0n,heR,KIH,l0q,E2r,dbb,I0r,COn,Dbn,yyL,oA9,WIq,HaL,
MQZ,qRq,rM,v_,xr,b0,ryR,vAn,xbn,Oa9,OW,c_,cyo,aN,ebq,RbL,Ubb,eR,jqo,TR9,FIH,VQo,gAw,NRH,k3q,Ayo,UW,Xyr,EAR,fn,LIR,lVZ,Deh,deL,Kin,Wio,qun,HJo,$er,vzL,t3R,SuL,aVq,c1R,Uen,B_,fVq,QBq,pn,P4q,i0,J1o,jBH,Bxr,iJR,pWq,Tx9,wWn,Fin,V3n,XWn,hN9,Lir,EzH,ZJw,NxL,KmH,DiL,sMy,o4b,MSq,G2H,xiq,Vi,Sgy,OXy,c5o,zjH,fCZ,J5h,pN9,iXb,TOZ,wNy,k2Z,Fmb,XNH,miH,E4h,kr,usb,KRR,lwo,D2o,d2q,CHq,IwL,sho,ov9,XX,WRL,Her,qcr,hC,MDn,nvy,tDq,uI,x2Z,Sc9,beq,awb,zYH,Oew,RYZ,PHn,J7w,jhq,yQ,B3L,wPH,FRw,H0,N3R,VDq,gvZ,ZeZ,A7L,XPH,m2w,uGh,
DLh,lFn,KeR,dLH,IFZ,y$n,MYq,soh,qCq,n1o,$LR,SCr,c$9,zsH,RsL,P1L,wSr,VYL,g1H,YCZ,XSq,ks,Km,KvL,C6r,dDh,yeH,sxq,Wvq,oXq,HkR,MsR,lh,LdL,ljq,IjH,DDo,LN,nXR,reb,vXn,G7r,tsq,xDo,SFH,bkH,nm,Okr,rZ,ceh,ajq,zmq,emb,tu,Rmn,Qxq,JeH,jxb,VsR,NC9,k7q,Zkh,Ae9,Xzq,Rf,hmb,EXq,Lvq,uPq,KDH,l3y,dAq,I3q,sPy,ogy,ngq,qUL,rWb,thq,xAH,Bi,SUR,bPb,OPy,zAy,RAb,eAo,f3Z,PE9,wZ,jPR,B0n,JWw,pdZ,iPb,wdH,Vhr,FDh,ggH,T0r,N0b,k8w,ZPn,YUn,AWq,Xdy,mAb,hAw,Egh,KK9,u1q,lGZ,dG9,DGb,F6,CFo,sDH,Mvb,IGZ,ni9,rF9,viq,GEy,e1R,R1o,fGb,QDb,uv,BzH,
w3w,gi9,Kc,Y7w,Zto,AFo,de,X3b,mGo,h1L,LKr,u59,KLo,lTn,dsn,CXq,nxw,H7n,qjq,vxL,rTn,Gtw,t_q,Sjr,O7H,aTy,e2L,i7R,vKh,tKq,x6Z,S$q,boq,OoR,alL,zDo,U6R,fln,Qun,Pfy,JQH,jub,Bhq,p2n,w2y,NhH,GO,t_,xO,St,kFZ,cI,Y$R,lPR,siq,IPy,cir,aPH,zkr,X2q,Krh,EKR,Rko,U1w,fPq,d1y,PKy,jir,psq,wsH,Frq,pc,we,FQ,Aiq,YeH,EMq,LrH,sAH,W9o,M0H,q8R,rAh,Gzq,vRZ,S8w,ODL,f1b,RUH,a1r,URo,zUq,QAr,BPb,li,kzH,V0r,Y8y,AAb,mRq,hUw,dn,ERb,K8Z,Dxb,dxw,Itw,CBb,yl,M$o,$H,$xq,n_n,vF,rar,v_H,Gfr,t$h,xxn,Sso,bZZ,OZn,ca9,at9,z0w,e0R,R0w,Uxn,fto,
GQ,Qmq,PBb,JaH,jmq,BWn,pR9,iZL,TWy,wRq,F8r,V$n,g_q,xH,kfZ,Ysq,XRb,E_r,Kjw,lXq,DgR,CsR,ywb,s49,oWy,fg,$gR,MOw,nWy,rwR,vWH,xgo,Saq,bKo,cwo,gn,zn9,Fr,RnH,Ugy,Nn,fXy,Q4q,Psq,Jww,Zv,iKr,w69,kxq,NL9,Yar,Awr,Lg,X6q,mgq,EWo,u8h,Kyq,Ddb,ddb,Ljr,Ib9,yJb,MpR,rJh,vBy,uT,Guo,tph,cJo,xdq,bGR,OGL,fbZ,zfH,Qrq,JJH,BF9,pjo,iGn,TFq,wjq,Fyq,gBq,NFr,kuL,ZGo,Yhw,XjL,hfR,uty,d$b,yLH,olZ,MPZ,y2,q_y,$$y,nlH,rLZ,vlq,tPr,x$o,S_o,bhH,Ohq,cLw,a9q,zor,eoH,Rob,U$r,QHq,f9H,jHH,pcq,Wb,ihR,FSy,wcR,NAy,keL,Zh9,Y_q,m$b,LSH,ElH,Xcq,
lgh,Kxr,yYH,Dro,vb,C8h,$rq,Wxq,HdL,M4b,qmn,nFb,vFq,rYq,GW,tl,cYw,t4q,OdH,bdn,xr9,Smq,ecn,UrZ,Qdb,fgo,B5b,jdL,T5n,wth,V4w,gFH,FxH,N5R,Zdq,kiZ,AYL,hch,e1,EFh,Lxw,l5r,ycy,qlq,Up,n3y,txn,Oyo,byo,xyR,Slq,j1,eKq,cco,a5q,RKZ,f5L,Uyh,Jch,j6L,pHq,iyw,TyZ,wHR,F$L,g3r,NyH,Al,Zyb,mQ,YlZ,hKq,E39,ut,L$y,KZZ,WZq,C4,Czo,omq,IRH,ykq,$Vq,nmq,qMq,rkn,vmH,SMb,GJw,bfL,Of9,yB,aRb,zQb,eQn,ckn,W1,RQr,s4,Pzb,wlq,FZH,Vm9,gmy,NgZ,kJw,XlZ,YML,Akq,ZfZ,hQL,uJq,D5r,d5Z,InR,oky,ytq,sWh,Wcq,Mer,qDb,$5q,nkq,rtr,vkZ,teo,GH,SDb,cto,
OL9,zCZ,anw,eCr,RCr,U5o,tB,QWq,gkq,Fch,ZLq,YDo,Lc9,ujL,KwZ,lfy,Djy,djq,yjn,szb,obL,WwH,qHH,$jo,nbL,rjn,vbH,Gmn,tCq,xjn,SHw,b$R,cjL,af9,zRy,RRq,ffr,jzo,Jjy,PRh,QzH,T4y,ph9,Fwr,gbr,N4q,kmn,TH,Z$H,YHw,Ajq,Eby,Xhb,Lwo,mj9,uyw,gY,KAw,lNL,Dlr,hRn,dlo,oNw,HA9,nNy,Z$,rNL,Gqq,vN9,tcH,xlq,Siq,bAR,OAn,aNo,ztL,ety,Rtq,QUo,fNy,p9L,UlR,AB,iAZ,Pjr,BIn,FAZ,gNq,ANR,ZAq,Yin,kqq,NIn,dE,htH,LAo,uS9,KBq,lry,DcH,sly,CSn,dc9,Irh,tWZ,vQR,ySq,rSq,zOZ,eOq,ROH,UcH,frR,QlZ,PSy,JSq,pmq,TUr,FBr,gQZ,NUr,ksw,Xm9,ASL,mcq,EQq,cJ,
KN9,lxn,DFL,dFn,zT,eU,yGR,WNr,rGy,xFL,SYZ,bYq,OYn,cGq,axn,ezZ,UFq,RzZ,fxq,PuR,JGL,j3q,B6q,pYo,iYo,PJ,T6H,ZYR,YYq,g6r,Vzb,kKL,N6Z,KFq,E6H,p1,l4n,DYq,dYq,CJH,I4b,yIq,oJr,Hxq,qbR,nJH,vJR,SbH,bxb,Oxh,zFH,a4n,cIn,eFr,RFq,f4y,Q_H,PJq,JIh,gE,Btw,pGH,ixq,wGH,TtH,FFw,gJH,Zxn,Yby,AIq,XGr,mYZ,LFw,uoo,hFn,EJq,yvb,sVo,W2Z,Hbb,MEZ,qXb,$8L,n7b,GDh,tEL,SXZ,ObH,bbo,cvq,EK,aZL,zHH,eHq,RHH,PVZ,QVq,B1y,pDn,wDw,VEy,g7L,N1h,kDw,Zbq,YXq,Avn,XDw,m89,hHb,L2q,E7R,uA9,K7w,lDL,D3H,d3n,C9L,IDq,sJq,oqH,y6o,Cz,HvH,Miw,q1r,$3L,
r6Z,G4b,tib,x3h,S1q,bvn,Ovn,aDr,zgy,Rgr,fDZ,P9r,pgR,jJo,J6q,BcH,ivH,TcH,wgq,gqo,Ncq,k4y,Zvq,Y1r,A6n,Xgq,Eqq,m3Z,L7H,uCb,KCH,l6R,dk9,CoH,I6o,ydh,s1q,o9n,WCH,H69,qzq,$kh,n9Z,rdq,GNq,tMq,xk9,O6L,cdL,Szq,b6o,eI9,RIq,Ukq,Poq,Jdh,xe,T8q,wpH,VML,kNn,N8o,Z6n,Yzw,Sd,OL,Xpq,mkq,zk,ed,uvq,hIL,E9h,D4H,d4q,Cdn,Iih,WnZ,MIL,qEL,$4w,nty,rfL,G0n,tI9,x4n,SEZ,bwR,Owq,cfR,fz,aiq,zWH,Pk,eWZ,RWq,U4L,fiL,QIb,Pdo,Bk,pz,Jfh,jIn,iC,BGq,pq9,iwb,TGq,Fno,VIn,NGZ,Xqy,Afb,YEn,m4o,hWh,DUH,uhq,KPZ,Lnw,lcq,ws,IcH,yxq,saH,oGZ,WPR,
MuR,$Uq,vGr,Sqq,tuH,FR,Gph,z7r,R7r,UUh,fc9,QaL,Pbr,jaH,BkZ,p5Z,iuh,w5b,FPo,Vuh,Nkb,kpw,Yqn,Axr,LPo,Khy,uNh,DOw,svy,oa9,Who,HFo,qOw,roq,Ye,vay,GUH,tTZ,xOH,bFn,OFR,coo,aWq,ehw,UOH,fWq,QvH,A3,PMn,JoH,p7y,iFr,mU,h3,Fhw,T9Z,N9R,VTR,kUH,uw,YOL,Ao9,hhh,Lh9,K5,KXo,l2n,DJZ,dJr,Cpq,I2o,yrq,WXq,$JH,ncn,GcR,rro,vcb,t5w,OQR,xJh,bQw,crq,a2y,zrq,UJw,f2n,QFZ,JrZ,jFq,FXy,wMb,Ytq,mJh,WU,hry,q3o,Ecq,LXq,KlH,dvw,Cmw,MNw,q0h,$vH,nIr,rhq,vIh,tNn,xvr,bCw,chH,S0Z,OCq,zTn,aeq,feh,RTq,Qkh,Pmr,Jhq,jkq,BT9,iCq,pwR,VNo,kXo,gIy,
ZCZ,Y0r,Ahn,Gb,Xwr,mvn,x5,EIZ,hTb,Lly,uTH,ldh,DH9,CWH,Idy,yZq,sYr,oSq,MVq,nSq,GPq,vS9,tVq,xHq,ORr,JZq,eLq,Bo9,pfR,ToH,wfy,NoR,kPq,YGy,AZo,Xfb,hLo,ESn,LOr,u$q,K6q,lKq,DQq,CUy,ssR,ohh,W69,HEn,Mnq,qJy,$QL,vhh,rDo,SJo,bEH,OEq,cDZ,aKr,eln,zlq,UQw,jso,F6q,T$h,Vnw,gho,N$Z,ZEH,gr,ADR,Y5,mQb,Ehq,L6q,dM9,Ioh,Wuo,M6r,qrZ,njH,rMH,vjZ,t6R,Srb,b2H,cMH,e6w,z6Z,aor,EA,UMZ,R6L,foH,Qgw,P_H,JMy,jgq,BX9,pTq,TXq,wTL,Fuq,V6q,gjH,NXq,koq,Z2Z,Yrq,XTy,mMH,dfy,ClH,Imw,scn,o8L,Wk9,qkq,C3,t7b,xfb,Sk9,bBL,OBq,Ij,yW,y5,sf,W8,
Qch,jcH,pxw,BKR,Ma,iBb,TKZ,wxo;_.uL=function(u,K){if(Error.captureStackTrace)Error.captureStackTrace(this,_.uL);else{var l=Error().stack;l&&(this.stack=l)}u&&(this.message=String(u));K!==void 0&&(this.cause=K)};
K9=function(){throw Error("E");};
uq9=function(u,K){K=String.fromCharCode.apply(null,K);return u==null?K:u+K};
dw9=function(u){var K=!1;K=K===void 0?!1:K;if(KbZ){if(K&&(lHq?!u.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(u)))throw Error("F");u=(Dwr||(Dwr=new TextEncoder)).encode(u)}else{for(var l=0,D=new Uint8Array(3*u.length),d=0;d<u.length;d++){var C=u.charCodeAt(d);if(C<128)D[l++]=C;else{if(C<2048)D[l++]=C>>6|192;else{if(C>=55296&&C<=57343){if(C<=56319&&d<u.length){var W=u.charCodeAt(++d);if(W>=56320&&W<=57343){C=(C-55296)*1024+W-56320+65536;D[l++]=C>>18|
240;D[l++]=C>>12&63|128;D[l++]=C>>6&63|128;D[l++]=C&63|128;continue}else d--}if(K)throw Error("F");C=65533}D[l++]=C>>12|224;D[l++]=C>>6&63|128}D[l++]=C&63|128}}u=l===D.length?D:D.subarray(0,l)}return u};
DH=function(u){_.lL.setTimeout(function(){throw u;},0)};
_.dq=function(u,K){return u.lastIndexOf(K,0)==0};
IR=function(u,K){var l=u.length-K.length;return l>=0&&u.indexOf(K,l)==l};
_.oR=function(u){return/^[\s\xa0]*$/.test(u)};
_.Ho=function(u,K){return u.indexOf(K)!=-1};
_.Mw=function(u,K){return _.Ho(u.toLowerCase(),K.toLowerCase())};
_.n9=function(u,K){var l=0;u=qw(String(u)).split(".");K=qw(String(K)).split(".");for(var D=Math.max(u.length,K.length),d=0;l==0&&d<D;d++){var C=u[d]||"",W=K[d]||"";do{C=/(\d*)(\D*)(.*)/.exec(C)||["","","",""];W=/(\d*)(\D*)(.*)/.exec(W)||["","","",""];if(C[0].length==0&&W[0].length==0)break;l=CLw(C[1].length==0?0:parseInt(C[1],10),W[1].length==0?0:parseInt(W[1],10))||CLw(C[2].length==0,W[2].length==0)||CLw(C[2],W[2]);C=C[3];W=W[3]}while(l==0)}return l};
CLw=function(u,K){return u<K?-1:u>K?1:0};
_.rq=function(){var u=_.lL.navigator;return u&&(u=u.userAgent)?u:""};
Sr=function(u){if(!Gh||!xy)return!1;for(var K=0;K<xy.brands.length;K++){var l=xy.brands[K].brand;if(l&&_.Ho(l,u))return!0}return!1};
OZ=function(u){return _.Ho(_.rq(),u)};
zh=function(){return Gh?!!xy&&xy.brands.length>0:!1};
er=function(){return zh()?!1:OZ("Opera")};
IHH=function(){return zh()?!1:OZ("Trident")||OZ("MSIE")};
yHq=function(){return zh()?Sr("Microsoft Edge"):OZ("Edg/")};
RR=function(){return OZ("Firefox")||OZ("FxiOS")};
_.Qn=function(){return OZ("Safari")&&!(_.f9()||(zh()?0:OZ("Coast"))||er()||(zh()?0:OZ("Edge"))||yHq()||(zh()?Sr("Opera"):OZ("OPR"))||RR()||OZ("Silk")||OZ("Android"))};
_.f9=function(){return zh()?Sr("Chromium"):(OZ("Chrome")||OZ("CriOS"))&&!(zh()?0:OZ("Edge"))||OZ("Silk")};
_.sRr=function(){return OZ("Android")&&!(_.f9()||RR()||er()||OZ("Silk"))};
oyq=function(u){var K={};u.forEach(function(l){K[l[0]]=l[1]});
return function(l){return K[l.find(function(D){return D in K})]||""}};
Wbq=function(u){var K=_.rq();if(u==="Internet Explorer"){if(IHH())if((u=/rv: *([\d\.]*)/.exec(K))&&u[1])K=u[1];else{u="";var l=/MSIE +([\d\.]+)/.exec(K);if(l&&l[1])if(K=/Trident\/(\d.\d)/.exec(K),l[1]=="7.0")if(K&&K[1])switch(K[1]){case "4.0":u="8.0";break;case "5.0":u="9.0";break;case "6.0":u="10.0";break;case "7.0":u="11.0"}else u="7.0";else u=l[1];K=u}else K="";return K}var D=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");l=[];for(var d;d=D.exec(K);)l.push([d[1],d[2],d[3]||void 0]);
K=oyq(l);switch(u){case "Opera":if(er())return K(["Version","Opera"]);if(zh()?Sr("Opera"):OZ("OPR"))return K(["OPR"]);break;case "Microsoft Edge":if(zh()?0:OZ("Edge"))return K(["Edge"]);if(yHq())return K(["Edg"]);break;case "Chromium":if(_.f9())return K(["Chrome","CriOS","HeadlessChrome"])}return u==="Firefox"&&RR()||u==="Safari"&&_.Qn()||u==="Android Browser"&&_.sRr()||u==="Silk"&&OZ("Silk")?(K=l[2])&&K[1]||"":""};
_.H9R=function(u){if(zh()&&u!=="Silk"){var K=xy.brands.find(function(l){return l.brand===u});
if(!K||!K.version)return NaN;K=K.version.split(".")}else{K=Wbq(u);if(K==="")return NaN;K=K.split(".")}return K.length===0?NaN:Number(K[0])};
JH=function(){return Gh?!!xy&&!!xy.platform:!1};
_.Mrw=function(){return JH()?xy.platform==="Android":OZ("Android")};
qZ9=function(){return OZ("iPhone")&&!OZ("iPod")&&!OZ("iPad")};
_.jr=function(){return qZ9()||OZ("iPad")||OZ("iPod")};
_.$wn=function(){return JH()?xy.platform==="macOS":OZ("Macintosh")};
_.nyZ=function(){return JH()?xy.platform==="Windows":OZ("Windows")};
_.rHH=function(){return JH()?xy.platform==="Chrome OS":OZ("CrOS")};
_.p9=function(u){return u[u.length-1]};
_.iL=function(u,K,l){K=_.vyq(u,K,l);return K<0?null:typeof u==="string"?u.charAt(K):u[K]};
_.vyq=function(u,K,l){for(var D=u.length,d=typeof u==="string"?u.split(""):u,C=0;C<D;C++)if(C in d&&K.call(l,d[C],C,u))return C;return-1};
Ghw=function(u){for(var K=_.wq,l=typeof u==="string"?u.split(""):u,D=u.length-1;D>=0;D--)if(D in l&&K.call(void 0,l[D],D,u))return D;return-1};
_.Vn=function(u,K){return _.Fq(u,K)>=0};
_.Nw=function(u,K){_.Vn(u,K)||u.push(K)};
_.AH=function(u,K){K=_.Fq(u,K);var l;(l=K>=0)&&_.Yy(u,K);return l};
_.Yy=function(u,K){Array.prototype.splice.call(u,K,1)};
_.Xq=function(u){var K=u.length;if(K>0){for(var l=Array(K),D=0;D<K;D++)l[D]=u[D];return l}return[]};
_.L9=function(u,K){for(var l=1;l<arguments.length;l++){var D=arguments[l];if(_.mb(D)){var d=u.length||0,C=D.length||0;u.length=d+C;for(var W=0;W<C;W++)u[d+W]=D[W]}else u.push(D)}};
_.xwy=function(u,K,l,D){Array.prototype.splice.apply(u,trR(arguments,1))};
trR=function(u,K,l){return arguments.length<=2?Array.prototype.slice.call(u,K):Array.prototype.slice.call(u,K,l)};
IC=function(u,K){K=K||u;for(var l=0,D=0,d={};D<u.length;){var C=u[D++],W=_.Ks(C)?"o"+_.DA(C):(typeof C).charAt(0)+C;Object.prototype.hasOwnProperty.call(d,W)||(d[W]=!0,K[l++]=C)}K.length=l};
_.SZZ=function(u,K,l){l=l||_.ym;for(var D=0,d=u.length,C;D<d;){var W=D+(d-D>>>1);var M=l(K,u[W]);M>0?D=W+1:(d=W,C=!M)}return C?D:-D-1};
_.sB=function(u,K,l){if(!_.mb(u)||!_.mb(K)||u.length!=K.length)return!1;var D=u.length;l=l||b9y;for(var d=0;d<D;d++)if(!l(u[d],K[d]))return!1;return!0};
_.ym=function(u,K){return u>K?1:u<K?-1:0};
b9y=function(u,K){return u===K};
O9n=function(u,K,l){K=Array.prototype.splice.call(u,K,1);Array.prototype.splice.call(u,l,0,K[0])};
aHr=function(u){return cHn[u]||""};
Rqy=function(u){if(!zqZ)return _.Wa(u);u=eqH.test(u)?u.replace(eqH,aHr):u;u=atob(u);for(var K=new Uint8Array(u.length),l=0;l<u.length;l++)K[l]=u.charCodeAt(l);return K};
Uwh=function(u,K){u.__closure__error__context__984382||(u.__closure__error__context__984382={});u.__closure__error__context__984382.severity=K};
_.qS=function(u){u=Error(u);Uwh(u,"warning");return u};
rN=function(u,K){if(u!=null){var l;var D=(l=fHh)!=null?l:fHh={};l=D[u]||0;l>=K||(D[u]=l+1,u=Error(),Uwh(u,"incident"),DH(u))}};
bk=function(u,K,l){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(l===void 0?0:l)&&Symbol.for&&u?Symbol.for(u):u!=null?Symbol(u):Symbol():K};
UB=function(u,K){zw||_.e2 in u||QRq(u,PLq);u[_.e2]|=K};
Qm=function(u,K){zw||_.e2 in u||QRq(u,PLq);u[_.e2]=K};
JHq=function(u){if(4&u)return 512&u?512:1024&u?1024:0};
JR=function(u){UB(u,34);return u};
jRo=function(u){UB(u,32);return u};
j2=function(){return typeof BigInt==="function"};
ps=function(u,K){return K===void 0?u.copyOnWrite!==Ba&&!!(2&(u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.e2]|0)):!!(2&K)&&u.copyOnWrite!==Ba};
_.FH=function(u,K){if(u!=null)if(typeof u==="string")u=u?new ik(u,Tw):_.wN();else if(u.constructor!==ik)if(Bqq&&u!=null&&u instanceof Uint8Array)u=u.length?new ik(new Uint8Array(u),Tw):_.wN();else{if(!K)throw Error();u=void 0}return u};
gN=function(u,K){if(typeof K!=="number"||K<0||K>=u.length)throw Error();};
pow=function(u,K,l){var D=K&128?0:-1,d=u.length,C;if(C=!!d)C=u[d-1],C=C!=null&&typeof C==="object"&&C.constructor===Object;var W=d+(C?-1:0);for(K=K&128?1:0;K<W;K++)l(K-D,u[K]);if(C){u=u[d-1];for(var M in u)!isNaN(M)&&l(+M,u[M])}};
k0=function(u){return u&128?NS:void 0};
ZA=function(u){u.isGuard_doNotManuallySetPrettyPlease=!0;return u};
Tqo=function(){var u=i9L;return ZA(function(K){for(var l in u)if(K===u[l]&&!/^[0-9]+$/.test(l))return!0;return!1})};
_.XH=function(u){var K=u;if(woq(K)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(K))throw Error(String(K));}else if(Fbh(K)&&!Number.isSafeInteger(K))throw Error(String(K));return Y0?BigInt(u):u=Vrb(u)?u?"1":"0":woq(u)?u.trim()||"0":String(u)};
gyH=function(u,K){if(u.length>K.length)return!1;if(u.length<K.length||u===K)return!0;for(var l=0;l<u.length;l++){var D=u[l],d=K[l];if(D>d)return!1;if(D<d)return!0}};
NqR=function(u){var K=u>>>0;EB=K;K_=(u-K)/4294967296>>>0};
lG=function(u){if(u<0){NqR(-u);var K=_.y(khb(EB,K_));u=K.next().value;K=K.next().value;EB=u>>>0;K_=K>>>0}else NqR(u)};
Z9b=function(u,K){var l=K*4294967296+(u>>>0);return Number.isSafeInteger(l)?l:_.DB(u,K)};
dH=function(u,K){var l=K&2147483648;l&&(u=~u+1>>>0,K=~K>>>0,u==0&&(K=K+1>>>0));u=Z9b(u,K);return typeof u==="number"?l?-u:u:l?"-"+u:u};
_.DB=function(u,K){K>>>=0;u>>>=0;if(K<=2097151)var l=""+(4294967296*K+u);else j2()?l=""+(BigInt(K)<<BigInt(32)|BigInt(u)):(l=(u>>>24|K<<8)&16777215,K=K>>16&65535,u=(u&16777215)+l*6777216+K*6710656,l+=K*8147497,K*=2,u>=1E7&&(l+=u/1E7>>>0,u%=1E7),l>=1E7&&(K+=l/1E7>>>0,l%=1E7),l=K+YZH(l)+YZH(u));return l};
YZH=function(u){u=String(u);return"0000000".slice(u.length)+u};
_.C_=function(u,K){K&2147483648?j2()?u=""+(BigInt(K|0)<<BigInt(32)|BigInt(u>>>0)):(K=_.y(khb(u,K)),u=K.next().value,K=K.next().value,u="-"+_.DB(u,K)):u=_.DB(u,K);return u};
yV=function(u){if(u.length<16)lG(Number(u));else if(j2())u=BigInt(u),EB=Number(u&BigInt(4294967295))>>>0,K_=Number(u>>BigInt(32)&BigInt(4294967295));else{var K=+(u[0]==="-");K_=EB=0;for(var l=u.length,D=K,d=(l-K)%6+K;d<=l;D=d,d+=6)D=Number(u.slice(D,d)),K_*=1E6,EB=EB*1E6+D,EB>=4294967296&&(K_+=Math.trunc(EB/4294967296),K_>>>=0,EB>>>=0);K&&(K=_.y(khb(EB,K_)),u=K.next().value,K=K.next().value,EB=u,K_=K)}};
khb=function(u,K){K=~K;u?u=~u+1:K+=1;return[u,K]};
so=function(u){return Array.prototype.slice.call(u)};
_.o2=function(u,K){throw Error(K===void 0?"unexpected value "+u+"!":K);};
_.Mp=function(u){if(u!=null&&typeof u!=="number")throw Error("L`"+typeof u+"`"+u);return u};
_.AHb=function(u){if(u==null||typeof u==="number")return u;if(u==="NaN"||u==="Infinity"||u==="-Infinity")return Number(u)};
Xoh=function(u){if(u!=null&&typeof u!=="boolean")throw Error("M`"+_.qp(u)+"`"+u);return u};
_.mwq=function(u){if(u==null||typeof u==="boolean")return u;if(typeof u==="number")return!!u};
_.rH=function(u){switch(typeof u){case "bigint":return!0;case "number":return n_(u);case "string":return hqq.test(u);default:return!1}};
_.G6=function(u){if(!n_(u))throw _.qS("enum");return u|0};
_.Sk=function(u){return u==null?u:n_(u)?u|0:void 0};
Eyy=function(u){if(typeof u!=="number")throw _.qS("int32");if(!n_(u))throw _.qS("int32");return u|0};
_.bG=function(u){return u==null?u:Eyy(u)};
_.cE=function(u){if(u==null)return u;if(typeof u==="string"&&u)u=+u;else if(typeof u!=="number")return;return n_(u)?u|0:void 0};
_.LbZ=function(u){if(u==null)return u;if(typeof u==="string"&&u)u=+u;else if(typeof u!=="number")return;return n_(u)?u>>>0:void 0};
DSw=function(u){var K=0;K=K===void 0?0:K;if(!_.rH(u))throw _.qS("int64");var l=typeof u;switch(K){case 512:switch(l){case "string":return a2(u);case "bigint":return String(ek(64,u));default:return uHq(u)}case 1024:switch(l){case "string":return Kay(u);case "bigint":return _.XH(ek(64,u));default:return lA9(u)}case 0:switch(l){case "string":return a2(u);case "bigint":return _.XH(ek(64,u));default:return Uo(u)}default:return _.o2(K,"Unknown format requested type for int64")}};
f_=function(u){return u==null?u:DSw(u)};
dS9=function(u){if(u[0]==="-")return!1;var K=u.length;return K<20?!0:K===20&&Number(u.substring(0,6))<184467};
CkL=function(u){var K=u.length;return u[0]==="-"?K<20?!0:K===20&&Number(u.substring(0,7))>-922337:K<19?!0:K===19&&Number(u.substring(0,6))<922337};
IAq=function(u){if(u<0){lG(u);var K=_.DB(EB,K_);u=Number(K);return JE(u)?u:K}K=String(u);if(dS9(K))return K;lG(u);return Z9b(EB,K_)};
yRH=function(u){if(CkL(u))return u;yV(u);return _.C_(EB,K_)};
sCq=function(u){if(dS9(u))return u;yV(u);return _.DB(EB,K_)};
Uo=function(u){u=jk(u);JE(u)||(lG(u),u=dH(EB,K_));return u};
_.o0H=function(u){u=jk(u);return u>=0&&JE(u)?u:IAq(u)};
uHq=function(u){u=jk(u);if(JE(u))u=String(u);else{var K=String(u);CkL(K)?u=K:(lG(u),u=_.C_(EB,K_))}return u};
_.WaZ=function(u){u=jk(u);if(u>=0&&JE(u))u=String(u);else{var K=String(u);dS9(K)?u=K:(lG(u),u=_.DB(EB,K_))}return u};
a2=function(u){var K=jk(Number(u));if(JE(K))return String(K);K=u.indexOf(".");K!==-1&&(u=u.substring(0,K));return yRH(u)};
Kay=function(u){var K=jk(Number(u));if(JE(K))return _.XH(K);K=u.indexOf(".");K!==-1&&(u=u.substring(0,K));return j2()?_.XH(ek(64,BigInt(u))):_.XH(yRH(u))};
lA9=function(u){return JE(u)?_.XH(Uo(u)):_.XH(uHq(u))};
_.Hsq=function(u){return JE(u)?_.XH(_.o0H(u)):_.XH(_.WaZ(u))};
_.M2b=function(u){var K=jk(Number(u));if(JE(K)&&K>=0)return String(K);K=u.indexOf(".");K!==-1&&(u=u.substring(0,K));return sCq(u)};
_.qBH=function(u){var K=jk(Number(u));if(JE(K)&&K>=0)return _.XH(K);K=u.indexOf(".");K!==-1&&(u=u.substring(0,K));return j2()?_.XH((0,_.BE)(64,BigInt(u))):_.XH(sCq(u))};
_.n0L=function(u){if(u==null)return u;if(typeof u==="bigint")return $SR(u)?u=Number(u):(u=ek(64,u),u=$SR(u)?Number(u):String(u)),u;if(_.rH(u))return typeof u==="number"?Uo(u):a2(u)};
rRH=function(u,K){K=K===void 0?!1:K;var l=typeof u;if(u==null)return u;if(l==="bigint")return String(ek(64,u));if(_.rH(u))return l==="string"?a2(u):K?uHq(u):Uo(u)};
_.v0H=function(u){var K=typeof u;if(u==null)return u;if(K==="bigint")return _.XH(ek(64,u));if(_.rH(u))return K==="string"?Kay(u):lA9(u)};
Gwr=function(u){if(u==null)return u;var K=typeof u;if(K==="bigint")return String(ek(64,u));if(_.rH(u)){if(K==="string")return a2(u);if(K==="number")return Uo(u)}};
t2q=function(u){if(u==null)return u;var K=typeof u;if(K==="bigint")return String((0,_.BE)(64,u));if(_.rH(u)){if(K==="string")return _.M2b(u);if(K==="number")return _.o0H(u)}};
_.iG=function(u){if(typeof u!=="string")throw Error();return u};
T6=function(u){if(u!=null&&typeof u!=="string")throw Error();return u};
_.wH=function(u){return u==null||typeof u==="string"?u:void 0};
SBy=function(u,K,l,D){if(u!=null&&u[FI]===VV)return u;if(!Array.isArray(u))return l?D&2?((u=K[xSr])||(u=new K,JR(u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),u=K[xSr]=u),K=u):K=new K:K=void 0,K;l=u[_.e2]|0;D=l|D&32|D&2;D!==l&&Qm(u,D);return new K(u)};
bs9=function(u,K,l){u=K?Eyy(u):_.cE(u);return u==null?l?0:void 0:u|0};
OsH=function(u){return u};
cRh=function(u){return u};
zwq=function(u,K,l,D,d,C){u=SBy(u,D,l,C);d&&(u=aAZ(u));return u};
ew9=function(u){return[u,this.get(u)]};
fA9=function(){return Rww||(Rww=new gH(JR([]),void 0,void 0,void 0,USq))};
QCw=function(u){var K=kp(ZB);return K?u[K]:void 0};
jCq=function(u,K){var l=l===void 0?!1:l;if(kp(PkR)&&kp(ZB)&&void 0===PkR){var D=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=D[ZB];if(!d)return;if(d=d.reviveUnknownFields)try{d(D,K,JRH);return}catch(C){DH(C)}}l&&(u=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(l=kp(ZB))&&l in u&&(u=u[l])&&delete u[K])};
paq=function(u,K){var l=kp(ZB),D;zw&&l&&((D=u[l])==null?void 0:D[K])!=null&&rN(BNh,3)};
TNR=function(u,K){K<100||rN(iso,1)};
NNZ=function(u,K,l,D){var d=D!==void 0;D=!!D;var C=kp(ZB),W;!d&&zw&&C&&(W=u[C])&&wab(W,TNR);C=[];var M=u.length;W=4294967295;var q=!1,v=!!(K&64),G=v?K&128?0:-1:void 0;if(!(K&1)){var t=M&&u[M-1];t!=null&&typeof t==="object"&&t.constructor===Object?(M--,W=M):t=void 0;if(v&&!(K&128)&&!d){q=!0;var x;W=((x=Faq)!=null?x:OsH)(W-G,G,u,t,void 0)+G}}K=void 0;for(x=0;x<M;x++){var O=u[x];if(O!=null&&(O=l(O,D))!=null)if(v&&x>=W){var a=x-G,f=void 0;((f=K)!=null?f:K={})[a]=O}else C[x]=O}if(t)for(var B in t)M=t[B],
M!=null&&(M=l(M,D))!=null&&(x=+B,O=void 0,v&&!Number.isNaN(x)&&(O=x+G)<W?C[O]=M:(x=void 0,((x=K)!=null?x:K={})[B]=M));K&&(q?C.push(K):C[W]=K);d&&kp(ZB)&&(u=QCw(u))&&u instanceof V2L&&(C[ZB]=g0q(u));return C};
Zsq=function(u){u[0]=kwZ(u[0]);u[1]=kwZ(u[1]);return u};
kwZ=function(u){switch(typeof u){case "number":return Number.isFinite(u)?u:""+u;case "bigint":return $SR(u)?Number(u):""+u;case "boolean":return u?1:0;case "object":if(Array.isArray(u)){var K=u[_.e2]|0;return u.length===0&&K&1?void 0:NNZ(u,K,kwZ)}if(u!=null&&u[FI]===VV)return YBw(u);if(u instanceof ik){K=u.JSC$8745_value_;if(K==null)u="";else if(typeof K==="string")u=K;else{if(zqZ){for(var l="",D=0,d=K.length-10240;D<d;)l+=String.fromCharCode.apply(null,K.subarray(D,D+=10240));l+=String.fromCharCode.apply(null,
D?K.subarray(D):K);K=btoa(l)}else K=_.Yp(K);u=u.JSC$8745_value_=K}return u}if(u instanceof gH)return u=u.size!==0?Array.from(AE.prototype.entries.call(u),Zsq):void 0,u;return}return u};
XI=function(u,K){if(K){Faq=K==null||K===OsH||K[ARq]!==Xab?OsH:K;try{return YBw(u)}finally{Faq=void 0}}return YBw(u)};
YBw=function(u){u=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return NNZ(u,u[_.e2]|0,kwZ)};
E0q=function(u){switch(typeof u){case "boolean":return mSw||(mSw=[0,void 0,!0]);case "number":return u>0?void 0:u===0?hwZ||(hwZ=[0,void 0]):[-u,void 0];case "string":return[0,u];case "object":return u}};
LaL=function(u,K,l){return u=_.m_(u,K[0],K[1],l?1:2)};
_.m_=function(u,K,l,D){D=D===void 0?0:D;if(u==null){var d=32;l?(u=[l],d|=128):u=[];K&&(d=d&-8380417|(K&1023)<<13)}else{if(!Array.isArray(u))throw Error("O");d=u[_.e2]|0;if(uIq&&1&d)throw Error("P");2048&d&&!(2&d)&&K_y();if(d&256)throw Error("Q");if(d&64)return D!==0||d&2048||Qm(u,d|2048),u;if(l&&(d|=128,l!==u[0]))throw Error("R");a:{l=u;d|=64;var C=l.length;if(C){var W=C-1,M=l[W];if(M!=null&&typeof M==="object"&&M.constructor===Object){K=d&128?0:-1;W-=K;if(W>=1024)throw Error("T");for(var q in M)C=
+q,C<W&&(l[C+K]=M[q],delete M[q]);d=d&-8380417|(W&1023)<<13;break a}}if(K){q=Math.max(K,C-(d&128?0:-1));if(q>1024)throw Error("U");d=d&-8380417|(q&1023)<<13}}}d|=64;D===0&&(d|=2048);Qm(u,d);return u};
K_y=function(){if(uIq)throw Error("S");rN(lBq,5)};
CGh=function(u,K){if(typeof u!=="object")return u;if(Array.isArray(u)){var l=u[_.e2]|0;return u.length===0&&l&1?void 0:Dph(u,l,K)}if(u!=null&&u[FI]===VV)return dpn(u);if(u instanceof gH){K=u.arrayState;if(K&2)return u;if(!u.size)return;l=JR(Array.from(AE.prototype.entries.call(u)));if(u.valueCtor)for(u=0;u<l.length;u++){var D=l[u],d=D[1];d==null||typeof d!=="object"?d=void 0:d!=null&&d[FI]===VV?d=dpn(d):Array.isArray(d)?d=Dph(d,d[_.e2]|0,!!(K&32)):d=void 0;D[1]=d}return l}if(u instanceof ik)return u};
Dph=function(u,K,l){if(K&2)return u;!l||4096&K||16&K?u=Eo(u,K,!1,l&&!(K&16)):(UB(u,34),K&4&&Object.freeze(u));return u};
IBw=function(u,K,l){u=new u.constructor(K);l&&(u.copyOnWrite=Ba);u.noLegacyNull=Ba;return u};
dpn=function(u){var K=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=K[_.e2]|0;return ps(u,l)?u:yEy(u,K,l)?IBw(u,K):Eo(K,l)};
Eo=function(u,K,l,D){D!=null||(D=!!(34&K));u=NNZ(u,K,CGh,D);D=32;l&&(D|=2);K=K&8380609|D;Qm(u,K);return u};
aAZ=function(u){var K=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=K[_.e2]|0;return ps(u,l)?yEy(u,K,l)?IBw(u,K,!0):new u.constructor(Eo(K,l,!1)):u};
L_=function(u){if(u.copyOnWrite!==Ba)return!1;var K=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;K=Eo(K,K[_.e2]|0);UB(K,2048);u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=K;u.copyOnWrite=void 0;u.noLegacyNull=void 0;return!0};
u5=function(u){if(!L_(u)&&ps(u,u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.e2]|0))throw Error();};
KM=function(u,K){K===void 0&&(K=u[_.e2]|0);K&32&&!(K&4096)&&Qm(u,K|4096)};
yEy=function(u,K,l){return l&2?!0:l&32&&!(l&4096)?(Qm(K,l|2),u.copyOnWrite=Ba,!0):!1};
l5=function(u,K,l,D,d){var C=l+(d?0:-1),W=u.length-1;if(W>=1+(d?0:-1)&&C>=W){var M=u[W];if(M!=null&&typeof M==="object"&&M.constructor===Object)return M[l]=D,K}if(C<=W)return u[C]=D,K;if(D!==void 0){var q;W=((q=K)!=null?q:K=u[_.e2]|0)>>13&1023||536870912;l>=W?D!=null&&(C={},u[W+(d?0:-1)]=(C[l]=D,C)):u[C]=D}return K};
_.sS=function(u,K,l,D,d){var C=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=C[_.e2]|0;D=ps(u,W)?1:D;d=!!d||D===3;D===2&&L_(u)&&(C=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=C[_.e2]|0);u=s2Z(C,K);var M=u===CM?7:u[_.e2]|0,q=opr(M,W);var v=4&q?!1:!0;if(v){4&q&&(u=so(u),M=0,q=IQ(q,W),W=l5(C,W,K,u));for(var G=0,t=0;G<u.length;G++){var x=l(u[G]);x!=null&&(u[t++]=x)}t<G&&(u.length=t);l=(q|4)&-513;q=l&=-1025;q&=-4097}q!==M&&(Qm(u,q),2&q&&Object.freeze(u));return u=W_R(u,q,C,
W,K,D,v,d)};
W_R=function(u,K,l,D,d,C,W,M){var q=K;C===1||(C!==4?0:2&K||!(16&K)&&32&D)?oQ(K)||(K|=!u.length||W&&!(4096&K)||32&D&&!(4096&K||16&K)?2:256,K!==q&&Qm(u,K),Object.freeze(u)):(C===2&&oQ(K)&&(u=so(u),q=0,K=IQ(K,D),D=l5(l,D,d,u)),oQ(K)||(M||(K|=16),K!==q&&Qm(u,K)));2&K||!(4096&K||16&K)||KM(l,D);return u};
s2Z=function(u,K,l){u=Wr(u,K,l);return Array.isArray(u)?u:CM};
opr=function(u,K){2&K&&(u|=2);return u|1};
oQ=function(u){return!!(2&u)&&!!(4&u)||!!(256&u)};
H_r=function(u){return _.FH(u,!0)};
Mkq=function(u,K){var l=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=l[_.e2]|0;a:{var d=D;D=ps(u,D);!D&&L_(u)&&(l=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=l[_.e2]|0);var C=Wr(l,K);u=!1;if(C==null){if(D){K=fA9();break a}C=[]}else if(C.constructor===gH)if(C.arrayState&2&&!D)C=Array.from(AE.prototype.entries.call(C));else{K=C;break a}else Array.isArray(C)?u=!!((C[_.e2]|0)&2):C=[];if(D){if(!C.length){K=fA9();break a}u||(u=!0,JR(C))}else if(u){u=!1;D=C;D=so(D);for(C=0;C<
D.length;C++){var W=D[C]=so(D[C]);Array.isArray(W[1])&&(W[1]=JR(W[1]))}C=D}!u&&d&32&&jRo(C);D=new gH(C,void 0,bs9,bs9);d=l5(l,d,K,D);u||KM(l,d);K=D}return K};
_.Hr=function(u,K,l,D){u5(u);var d=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=d[_.e2]|0;if(l==null)return l5(d,C,K),u;var W=l===CM?7:l[_.e2]|0,M=W,q=oQ(W),v=q||Object.isFrozen(l);q||(W=0);v||(l=so(l),M=0,W=IQ(W,C),v=!1);W|=5;var G;q=(G=JHq(W))!=null?G:0;for(G=0;G<l.length;G++){var t=l[G],x=D(t,q);Object.is(t,x)||(v&&(l=so(l),M=0,W=IQ(W,C),v=!1),l[G]=x)}W!==M&&(v&&(l=so(l),W=IQ(W,C)),Qm(l,W));l5(d,C,K,l);return u};
_.M9=function(u,K,l,D,d){u5(u);var C=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;l5(C,C[_.e2]|0,K,(D==="0"?Number(l)===0:l===D)?void 0:l,d);return u};
_.qoy=function(u,K,l){if(K&2)throw Error();var D=k0(K),d=s2Z(u,l,D),C=d===CM?7:d[_.e2]|0,W=opr(C,K);if(2&W||oQ(W)||16&W)d=so(d),C=0,W=IQ(W,K),l5(u,K,l,d,D);W&=-13;W!==C&&Qm(d,W);return d};
$pL=function(u){if(zw){var K;return(K=u[q9])!=null?K:u[q9]=new Map}if(q9 in u)return u[q9];K=new Map;Object.defineProperty(u,q9,{value:K});return K};
rEb=function(u,K,l,D,d){var C=$pL(u),W=npy(C,u,K,l,d);W!==D&&(W&&(K=l5(u,K,W,void 0,d)),C.set(l,D));return K};
npy=function(u,K,l,D,d){var C=u.get(D);if(C!=null)return C;for(var W=C=0;W<D.length;W++){var M=D[W];Wr(K,M,d)!=null&&(C!==0&&(l=l5(K,l,C,void 0,d)),C=M)}u.set(D,C);return C};
vpn=function(u,K,l,D,d){var C=!1;D=Wr(u,D,d,function(W){var M=SBy(W,l,!1,K);C=M!==W&&M!=null;return M});
if(D!=null)return C&&!ps(D)&&KM(u,K),D};
G6y=function(u,K,l,D,d,C,W,M){var q=ps(u,l);C=q?1:C;W=!!W||C===3;q=M&&!q;(C===2||q)&&L_(u)&&(K=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=K[_.e2]|0);u=s2Z(K,d);var v=u===CM?7:u[_.e2]|0,G=opr(v,l);if(M=!(4&G)){var t=u,x=l,O=!!(2&G);O&&(x|=2);for(var a=!O,f=!0,B=0,p=0;B<t.length;B++){var V=SBy(t[B],D,!1,x);if(V instanceof D){if(!O){var m=ps(V);a&&(a=!m);f&&(f=m)}t[p++]=V}}p<B&&(t.length=p);G|=4;G=f?G&-4097:G|4096;G=a?G|8:G&-9}G!==v&&(Qm(u,G),2&G&&Object.freeze(u));if(q&&!(8&G||!u.length&&
(C===1||(C!==4?0:2&G||!(16&G)&&32&l)))){oQ(G)&&(u=so(u),G=IQ(G,l),l=l5(K,l,d,u));D=u;q=G;for(v=0;v<D.length;v++)t=D[v],G=aAZ(t),t!==G&&(D[v]=G);q|=8;G=q=D.length?q|4096:q&-4097;Qm(u,G)}return u=W_R(u,G,K,l,d,C,M,W)};
tkH=function(u){u==null&&(u=void 0);return u};
IQ=function(u,K){return u=(2&K?u|2:u&-3)&-273};
_.xpZ=function(u,K,l,D,d){u5(u);K=_.sS(u,K,d,2,!0);var C;d=(C=JHq(K===CM?7:K[_.e2]|0))!=null?C:0;K.push(l(D,d));return u};
Sob=function(u,K,l,D,d,C,W){u5(u);var M=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;u=G6y(u,M,M[_.e2]|0,l,K,2,!0);if(C&&W)d!=null||(d=u.length-1),gN(u,d),u.splice(d,C),u.length||(u[_.e2]&=-4097);else{if(C){if(typeof d!=="number"||d<0||d>u.length)throw Error();}else D=D!=null?D:new l;d!=void 0?u.splice(d,C,D):u.push(D);d=l=u===CM?7:u[_.e2]|0;(D=ps(D))?(l&=-9,u.length===1&&(l&=-4097)):l|=4096;l!==d&&Qm(u,l);D||KM(M)}};
O_q=function(u,K){if(typeof u==="string")return new $u(Rqy(u),K);if(Array.isArray(u))return new $u(new Uint8Array(u),K);if(u.constructor===Uint8Array)return new $u(u,!1);if(u.constructor===ArrayBuffer)return u=new Uint8Array(u),new $u(u,!1);if(u.constructor===ik)return K=b_R(u)||new Uint8Array(0),new $u(K,!0,u);if(u instanceof Uint8Array)return u=u.constructor===Uint8Array?u:new Uint8Array(u.buffer,u.byteOffset,u.byteLength),new $u(u,!1);throw Error();};
nM=function(){var u=function(){throw Error();};
Object.setPrototypeOf(u,u.prototype);return u};
aBb=function(u,K){var l=l===void 0?cEq:l;return new vr(u,K,l)};
Upo=function(u,K,l,D,d){K=ziR(K,D);K!=null&&(l=_.ei9(u,l),d(K,u),_.Rir(u,l))};
xu=function(u,K,l,D){var d=D[u];if(d)return d;d={};d.binaryFields=D;d.messageMetadata=E0q(D[0]);var C=D[1],W=1;C&&C.constructor===Object&&(d.extensions=C,C=D[++W],typeof C==="function"&&(d.isMessageSet=!0,fBr!=null||(fBr=C),Q2H!=null||(Q2H=D[W+1]),C=D[W+=2]));for(var M={};C&&PGL(C);){for(var q=0;q<C.length;q++)M[C[q]]=C;C=D[++W]}for(q=1;C!==void 0;){typeof C==="number"&&(q+=C,C=D[++W]);var v=void 0;if(C instanceof vr)var G=C;else G=JEh,W--;C=void 0;if((C=G)==null?0:C.$$isMsg){C=D[++W];v=D;var t=W;
typeof C==="function"&&(C=C(),v[t]=C);v=C}C=D[++W];t=q+1;typeof C==="number"&&C<0&&(t-=C,C=D[++W]);for(;q<t;q++){var x=M[q];v?l(d,q,G,v,x):K(d,q,G,x)}}return D[u]=d};
PGL=function(u){return Array.isArray(u)&&!!u.length&&typeof u[0]==="number"&&u[0]>0};
BHq=function(u){return Array.isArray(u)?u[0]instanceof vr?u:[j2o,u]:[u,void 0]};
ziR=function(u,K){if(u instanceof _.b5)return u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(u))return LaL(u,K,!1)};
pER=function(u,K,l,D){var d=l.$$binaryReaderFn;u[K]=D?function(C,W,M){return d(C,W,M,D)}:d};
THH=function(u,K,l,D,d){var C=l.$$binaryReaderFn,W,M;u[K]=function(q,v,G){return C(q,v,G,M||(M=xu(i_h,pER,THH,D).messageMetadata),W||(W=wEq(D)),d)}};
wEq=function(u){var K=u[F_r];if(K!=null)return K;var l=xu(i_h,pER,THH,u);K=l.isMessageSet?function(D,d){return fBr(D,d,l)}:function(D,d){for(;VkZ(d)&&d.nextWireType_!=4;){var C=d.nextField_,W=l[C];
if(W==null){var M=l.extensions;M&&(M=M[C])&&(M=gpZ(M),M!=null&&(W=l[C]=M))}if(W==null||!W(d,D,C)){M=d;W=M.fieldCursor_;NHR(M);if(M.discardUnknownFields)var q=void 0;else{var v=M.decoder_.cursor_-W;M.decoder_.cursor_=W;q=k6Z(M.decoder_,v)}v=M=W=void 0;var G=D;q&&((W=(M=(v=G[ZB])!=null?v:G[ZB]=new V2L)[C])!=null?W:M[C]=[]).push(q)}}if(D=QCw(D))D.reviveUnknownFields=l.binaryFields[Z_R];return!0};
u[F_r]=K;u[Z_R]=YoR.bind(u);return K};
YoR=function(u,K,l,D){var d=this[i_h],C=this[F_r],W=LaL(void 0,d.messageMetadata,!1),M=QCw(u);if(M){var q=!1,v=d.extensions;if(v){d=function(a,f,B){if(B.length!==0)if(v[f])for(a=_.y(B),f=a.next();!f.done;f=a.next()){f=AEw(f.value);try{q=!0,C(W,f)}finally{f.free()}}else D==null||D(u,f,B)};
if(K==null)wab(M,d);else if(M!=null){var G=M[K];G&&d(M,K,G)}if(q){var t=u[_.e2]|0;if(t&2&&t&2048&&(l==null||!l.reviveIntoImmutable))throw Error();var x=k0(t),O=function(a,f){if(Wr(u,a,x)!=null)switch(l==null?void 0:l.resolutionBehavior){case 1:return;default:throw Error();}f!=null&&(t=l5(u,t,a,f,x));delete M[a]};
K==null?pow(W,W[_.e2]|0,function(a,f){O(a,f)}):O(K,Wr(W,K,x))}}}};
gpZ=function(u){u=BHq(u);var K=u[0].$$binaryReaderFn;if(u=u[1]){var l=wEq(u),D=xu(i_h,pER,THH,u).messageMetadata;return function(d,C,W){return K(d,C,W,D,l)}}return K};
XEh=function(u,K,l){u[K]=l.$$binaryWriterFn};
hiq=function(u,K,l,D){var d,C,W=l.$$binaryWriterFn;u[K]=function(M,q,v){return W(M,q,v,C||(C=xu(mpn,XEh,hiq,D).messageMetadata),d||(d=Epq(D)))}};
Epq=function(u){var K=u[L_w];if(!K){var l=xu(mpn,XEh,hiq,u);K=function(D,d){return uzL(D,d,l)};
u[L_w]=K}return K};
uzL=function(u,K,l){pow(u,u[_.e2]|0,function(D,d){if(d!=null){var C=KJL(l,D);C?C(K,d,D):D<500||rN(lky,3)}});
(u=QCw(u))&&wab(u,function(D,d,C){OS(K,K.encoder_.end());for(D=0;D<C.length;D++)OS(K,b_R(C[D])||new Uint8Array(0))})};
KJL=function(u,K){var l=u[K];if(l)return l;if(l=u.extensions)if(l=l[K]){l=BHq(l);var D=l[0].$$binaryWriterFn;if(l=l[1]){var d=Epq(l),C=xu(mpn,XEh,hiq,l).messageMetadata;l=u.isMessageSet?Q2H(C,d):function(W,M,q){return D(W,M,q,C,d)}}else l=D;
return u[K]=l}};
_.D9Z=function(u,K,l){if(Array.isArray(K)){var D=K[_.e2]|0;if(D&4)return K;for(var d=0,C=0;d<K.length;d++){var W=u(K[d]);W!=null&&(K[C++]=W)}C<d&&(K.length=C);l&&(Qm(K,(D|5)&-1537),D&2&&Object.freeze(K));return K}};
_.cr=function(u,K,l){return new vr(u,K,l)};
_.d99=function(u,K,l){return new vr(u,K,l)};
_.aQ=function(u,K,l){l5(u,u[_.e2]|0,K,l,k0(u[_.e2]|0))};
Iky=function(u,K,l){K=_.AHb(K);K!=null&&(_.zg(u,l,1),u=u.encoder_,l=C5q||(C5q=new DataView(new ArrayBuffer(8))),l.setFloat64(0,+K,!0),EB=l.getUint32(0,!0),K_=l.getUint32(4,!0),_.eF(u,EB),_.eF(u,K_))};
_.RQ=function(u,K,l){K=Gwr(K);if(K!=null){switch(typeof K){case "string":yXq(K)}if(K!=null)switch(_.zg(u,l,0),typeof K){case "number":u=u.encoder_;lG(K);sQq(u,EB,K_);break;case "bigint":l=BigInt.asUintN(64,K);l=new ouy(Number(l&BigInt(4294967295)),Number(l>>BigInt(32)));sQq(u.encoder_,l.JSC$8789_lo,l.JSC$8789_hi);break;default:l=yXq(K),sQq(u.encoder_,l.JSC$8789_lo,l.JSC$8789_hi)}}};
HM9=function(u,K,l){K=_.cE(K);K!=null&&K!=null&&(_.zg(u,l,0),_.WJb(u.encoder_,K))};
_.qSZ=function(u,K,l){MFL(u,l,t2q(K))};
_.$9n=function(u,K,l){K=_.mwq(K);K!=null&&(_.zg(u,l,0),u.encoder_.JSC$8791_buffer_.push(K?1:0))};
_.rXR=function(u,K,l){K=_.wH(K);K!=null&&nuH(u,l,dw9(K))};
vuq=function(u,K,l,D,d){K=ziR(K,D);K!=null&&(l=_.ei9(u,l),d(K,u),_.Rir(u,l))};
_.Ggq=function(u,K,l){K=K==null||typeof K=="string"||K instanceof ik?K:void 0;K!=null&&nuH(u,l,O_q(K,!0).buffer)};
_.tFL=function(u,K,l){K=_.cE(K);K!=null&&(K=parseInt(K,10),_.zg(u,l,0),_.WJb(u.encoder_,K))};
_.US=function(u,K){return function(l,D){var d={treatNewDataAsImmutable:!0};D&&Object.assign(d,D);l=AEw(l,void 0,void 0,d);try{var C=new u,W=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;wEq(K)(W,l);var M=C}finally{l.free()}return M}};
_.fM=function(u){return function(K){return x9n(K,u)}};
SSq=function(u){return function(){return x9n(this,u)}};
_.bMq=function(u){return ZA(function(K){return K instanceof u&&!ps(K)})};
_.QS=function(u){return function(K){return OMn(u,K)}};
euy=function(u,K){return cXR({child:u,origin:K||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:akq,getPayloadCase:function(l){return l.getPayloadCase()},
createInitMessage:function(l){var D=new JX,d=new zuL;l=_.jF(d,1,l);return _.Br(D,5,i5,l)}})};
Tg=function(u){return{valueOf:u}.valueOf()};
U9b=function(){var u=null;if(!Ru9)return u;try{var K=function(l){return l};
u=Ru9.createPolicy("goog#html",{createHTML:K,createScript:K,createScriptURL:K})}catch(l){}return u};
QQH=function(){fkZ===void 0&&(fkZ=U9b());return fkZ};
_.Fz=function(u){var K=QQH();u=K?K.createScriptURL(u):u;return new wb(u)};
_.VS=function(u){if(u instanceof wb)return u.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.gb=function(u){return Object.isFrozen(u)&&Object.isFrozen(u.raw)};
P5L=function(u){return u.toString().indexOf("`")===-1};
ku=function(u){return new _.N9(jQh,u)};
Zk=function(u){return u instanceof _.N9};
_.Yu=function(u){if(Zk(u))return u.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
AX=function(u){return new Bbq(function(K){return K.substr(0,u.length+1).toLowerCase()===u+":"})};
mJ=function(u,K){K=K===void 0?prr:K;if(Zk(u))return u;for(var l=0;l<K.length;++l){var D=K[l];if(D instanceof Bbq&&D.isValid(u))return ku(u)}};
_.ES=function(u,K){K=K===void 0?prr:K;return mJ(u,K)||hX};
_.LM=function(u){var K=window;if(typeof MediaSource!=="undefined"&&u instanceof MediaSource||typeof K.ManagedMediaSource!=="undefined"&&u instanceof K.ManagedMediaSource)return ku(URL.createObjectURL(u));K=u.type;K.toLowerCase()==="application/octet-stream"?K=!0:(K=K.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),K=(K==null?void 0:K.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(K[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(K[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(K[1])||/^font\/[\w-]+$/i.test(K[1])));if(!K)throw Error("Z");return ku(URL.createObjectURL(u))};
_.iML=function(u){for(var K=_.uY.apply(1,arguments),l=[u[0]],D=0;D<K.length;D++)l.push(String(K[D])),l.push(u[D+1]);return ku(l.join(""))};
_.wrb=function(u){if(!Tbw){a:{var K=document.createElement("a");try{K.href=u}catch(l){u=void 0;break a}u=K.protocol;u=u===":"||u===""?"https:":u}return u}try{K=new URL(u)}catch(l){return"https:"}return K.protocol};
_.KH=function(u){u instanceof _.N9?u=_.Yu(u):u=FJZ.test(u)?u:void 0;return u};
lY=function(u,K){K=_.KH(K);K!==void 0&&(u.href=K)};
CH=function(u){var K=QQH();u=K?K.createHTML(u):u;return new dm(u)};
IS=function(u){if(u instanceof dm)return u.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.yg=function(u,K){u.src=_.VS(K).toString()};
VFb=function(u,K){u.setAttribute("sandbox","");for(var l=0;l<K.length;l++)u.sandbox.supports&&!u.sandbox.supports(K[l])||u.sandbox.add(K[l])};
_.Nbh=function(u,K,l){u.removeAttribute("srcdoc");switch(K){case 0:if(l instanceof wb)throw new guR("TrustedResourceUrl",0);VFb(u,[]);K=_.KH(l);K!==void 0&&(u.src=K);break;case 1:if(!(l instanceof wb))throw new guR(typeof l,1);VFb(u,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.yg(u,l);break;case 2:if(l instanceof wb)throw new guR("TrustedResourceUrl",2);VFb(u,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
K=_.KH(l);K!==void 0&&(u.src=K);break;default:_.o2(K)}};
_.s2=function(u,K,l,D){K=_.KH(K);return K!==void 0?u.open(K,l,D):null};
_.oS=function(u){u=u===void 0?document:u;var K,l;u=(l=(K=u).querySelector)==null?void 0:l.call(K,"script[nonce]");return u==null?"":u.nonce||u.getAttribute("nonce")||""};
_.MT=function(u){var K=QQH();u=K?K.createScript(u):u;return new _.WZ(u)};
kgh=function(u){if(u instanceof _.WZ)return u.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
ZMn=function(u){var K=_.oS(u.ownerDocument);K&&u.setAttribute("nonce",K)};
_.qT=function(u,K){u.textContent=kgh(K);ZMn(u)};
_.$P=function(u,K){u.src=_.VS(K);ZMn(u)};
_.nH=function(u,K){if(u.nodeType===1&&/^(script|style)$/i.test(u.tagName))throw Error("Z");u.innerHTML=IS(K)};
_.rm=function(u,K,l,D){if(u.length===0)throw Error("Z");u=u.map(function(C){if(C instanceof YSh)C=C.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return C});
var d=l.toLowerCase();if(u.every(function(C){return d.indexOf(C)!==0}))throw Error("aa`"+l);
K.setAttribute(l,D)};
_.vZ=function(u,K,l){if(K instanceof wb)u.href=_.VS(K).toString(),u.rel=l;else{if(AXL.indexOf(l)===-1)throw Error("ba`"+l);K=_.KH(K);K!==void 0&&(u.href=K,u.rel=l)}};
XrR=function(u){return"function"==typeof _.GG&&u instanceof _.GG};
_.m9L=function(u){if(XrR(u))return u.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.huZ=function(u,K){K=_.KH(K);K!==void 0&&(u.href=K)};
Eu9=function(u,K){u&&(K=u.indexOf(K),0<=K&&u.splice(K,1))};
tm=function(u){return typeof u==="function"};
LJq=function(u){return u instanceof xP||u&&"closed"in u&&tm(u.remove)&&tm(u.add)&&tm(u.unsubscribe)};
Sj=function(){};
bY=function(u){unr(function(){throw u;})};
aS=function(u){return u};
zG=function(){return KWr(_.uY.apply(0,arguments))};
KWr=function(u){return u.length===0?aS:u.length===1?u[0]:function(K){return u.reduce(function(l,D){return D(l)},K)}};
lIh=function(u){var K;return(K=u!=null?u:void 0)!=null?K:Promise};
DTy=function(u,K){return new ej(function(l){var D=0;return K.schedule(function(){D===u.length?l.complete():(l.next(u[D++]),l.closed||this.schedule())})})};
dTL=function(u,K){if(!u)throw Error("ca");return new ej(function(l){var D=new xP;D.add(K.schedule(function(){var d=u[Symbol.asyncIterator]();D.add(K.schedule(function(){var C=this;d.next().then(function(W){W.done?l.complete():(l.next(W.value),C.schedule())})}))}));
return D})};
CYH=function(u,K,l){K=K.schedule(function(){try{l.call(this)}catch(D){u.error(D)}},0);
u.add(K)};
ymw=function(u,K){return new ej(function(l){var D;l.add(K.schedule(function(){D=u[IIh]();CYH(l,K,function(){var d=D.next(),C=d.value;d.done?l.complete():(l.next(C),this.schedule())})}));
return function(){var d;return tm((d=D)==null?void 0:d.return)&&D.return()}})};
sSZ=function(u,K){return new ej(function(l){var D=new xP;D.add(K.schedule(function(){var d=u[RS]();D.add(d.subscribe({next:function(C){D.add(K.schedule(function(){return l.next(C)}))},
error:function(C){D.add(K.schedule(function(){return l.error(C)}))},
complete:function(){D.add(K.schedule(function(){return l.complete()}))}}))}));
return D})};
oPn=function(u,K){return new ej(function(l){return K.schedule(function(){return u.then(function(D){l.add(K.schedule(function(){l.next(D);l.add(K.schedule(function(){return l.complete()}))}))},function(D){l.add(K.schedule(function(){return l.error(D)}))})})})};
WWq=function(u){return new TypeError("da`"+(u!==null&&typeof u==="object"?"an invalid object":"'"+u+"'"))};
Mjo=function(u,K){if(u!=null){if(tm(u[RS]))return sSZ(u,K);if(HHh(u))return DTy(u,K);if(tm(u==null?void 0:u.then))return oPn(u,K);if(Symbol.asyncIterator&&tm(u==null?void 0:u[Symbol.asyncIterator]))return dTL(u,K);if(tm(u==null?void 0:u[IIh]))return ymw(u,K)}throw WWq(u);};
fH=function(u,K){return K?Mjo(u,K):U2(u)};
U2=function(u){if(u instanceof ej)return u;if(u!=null){if(tm(u[RS]))return q2R(u);if(HHh(u))return $Th(u);if(tm(u==null?void 0:u.then))return nPr(u);if(Symbol.asyncIterator&&tm(u==null?void 0:u[Symbol.asyncIterator]))return rmq(u);if(tm(u==null?void 0:u[IIh]))return vPn(u)}throw WWq(u);};
q2R=function(u){return new ej(function(K){var l=u[RS]();if(tm(l.subscribe))return l.subscribe(K);throw new TypeError("ea");})};
$Th=function(u){return new ej(function(K){for(var l=0;l<u.length&&!K.closed;l++)K.next(u[l]);K.complete()})};
nPr=function(u){return new ej(function(K){u.then(function(l){K.closed||(K.next(l),K.complete())},function(l){return K.error(l)}).then(null,bY)})};
vPn=function(u){return new ej(function(K){for(var l=u[IIh]();!K.closed;){var D=l.next(),d=D.value;D.done?K.complete():K.next(d)}return function(){return tm(l==null?void 0:l.return)&&l.return()}})};
rmq=function(u){return new ej(function(K){GGL(u,K).catch(function(l){return K.error(l)})})};
GGL=function(u,K){var l,D,d,C,W,M;return _.H(function(q){switch(q.nextAddress){case 1:_.Qg(q,2,3),C=_.PZ(u);case 5:return q.yield(C.next(),8);case 8:D=q.yieldResult;if(D.done){q.jumpTo(3);break}W=D.value;K.next(W);q.jumpTo(5);break;case 3:_.jj(q);_.BZ(q,9);if(!D||D.done||!(d=C.return)){q.jumpTo(9);break}return q.yield(d.call(C),9);case 9:_.jj(q,0,0,1);if(l)throw l.error;_.pH(q,10,1);break;case 10:_.pH(q,4);break;case 2:M=_.iY(q);l={error:M};q.jumpTo(3);break;case 4:K.complete(),_.TG(q)}})};
tjr=function(u,K){return K?DTy(u,K):$Th(u)};
xTq=function(u){return tm(u[u.length-1])?u.pop():void 0};
wm=function(u){var K=u[u.length-1];return K&&tm(K.schedule)?u.pop():void 0};
Fn=function(){var u=_.uY.apply(0,arguments),K=wm(u);return K?DTy(u,K):tjr(u)};
gm=function(u){var K=tm(u)?u:function(){return u};
return new ej(function(l){return l.error(K())})};
NT=function(u){return function(K){if(tm(K==null?void 0:K.lift))return K.lift(function(l){try{return u(l,this)}catch(D){this.error(D)}});
throw new TypeError("fa");}};
ZI=function(){return NT(function(u,K){var l=null;u._refCount++;var D=new kP(K,void 0,void 0,void 0,function(){if(!u||u._refCount<=0||0<--u._refCount)l=null;else{var d=u._connection,C=l;l=null;!d||C&&d!==C||d.unsubscribe();K.unsubscribe()}});
u.subscribe(D);D.closed||(l=u.connect())})};
bHH=function(){var u=S2h;var K=K===void 0?0:K;return NT(function(l,D){D.add(u.schedule(function(){return l.subscribe(D)},K))})};
YP=function(u){return NT(function(K,l){var D=0;K.subscribe(new kP(l,function(d){l.next(u.call(void 0,d,D++))}))})};
cmh=function(u){return YP(function(K){return OHZ(K)?u.apply(null,_.Am(K)):u(K)})};
UTZ=function(u){if(u.length===1){var K=u[0];if(aIo(K))return{args:K,keys:null};if(K&&typeof K==="object"&&z39(K)===e3q)return u=R3h(K),{args:u.map(function(l){return K[l]}),
keys:u}}return{args:u,keys:null}};
Xn=function(){var u=_.uY.apply(0,arguments),K=wm(u),l=xTq(u);u=UTZ(u);var D=u.args,d=u.keys;if(D.length===0)return fH([],K);K=new ej(fI9(D,K,d?function(C){for(var W={},M=0;M<C.length;M++)W[d[M]]=C[M];return W}:aS));
return l?K.pipe(cmh(l)):K};
fI9=function(u,K,l){l=l===void 0?aS:l;return function(D){QSL(K,function(){for(var d=u.length,C=Array(d),W=d,M=u.map(function(){return!1}),q=!0,v={i$jscomp$216:0};v.i$jscomp$216<d;v={i$jscomp$216:v.i$jscomp$216},v.i$jscomp$216++)QSL(K,function(G){return function(){fH(u[G.i$jscomp$216],K).subscribe(new mW(D,function(t){C[G.i$jscomp$216]=t;
q&&(M[G.i$jscomp$216]=!0,q=!M.every(aS));q||D.next(l(C.slice()))},function(){return--W===0}))}}(v),D)},D)}};
QSL=function(u,K,l){u?l.add(u.schedule(K)):K()};
PYr=function(u,K,l,D){var d=[],C=0,W=0,M=!1,q=function(v){C++;U2(l(v,W++)).subscribe(new kP(K,function(G){K.next(G)},void 0,function(){C--;
for(var G={};d.length&&C<D;G={bufferedValue:void 0})G.bufferedValue=d.shift(),q(G.bufferedValue);!M||d.length||C||K.complete()}))};
u.subscribe(new kP(K,function(v){return C<D?q(v):d.push(v)},void 0,function(){M=!0;
!M||d.length||C||K.complete()}));
return function(){d=null}};
hm=function(u,K){var l=l===void 0?Infinity:l;if(tm(K))return hm(function(D,d){return YP(function(C,W){return K(D,C,d,W)})(U2(u(D,d)))},l);
typeof K==="number"&&(l=K);return NT(function(D,d){return PYr(D,d,u,l)})};
JmL=function(u){u=u===void 0?Infinity:u;return hm(aS,u)};
jSo=function(){var u=_.uY.apply(0,arguments);return JmL(1)(tjr(u,wm(u)))};
Bmn=function(u){return new ej(function(K){U2(u()).subscribe(K)})};
E2=function(u,K,l){if(tm(l)){var D=l;l=void 0}if(D)return E2(u,K,l).pipe(cmh(D));D=_.y(tm(u.addEventListener)&&tm(u.removeEventListener)?pZZ.map(function(W){return function(M){return u[W](K,M,l)}}):tm(u.addListener)&&tm(u.removeListener)?iHH.map(Tmq(u,K)):tm(u.on)&&tm(u.off)?wZR.map(Tmq(u,K)):[]);
var d=D.next().value,C=D.next().value;return!d&&HHh(u)?hm(function(W){return E2(W,K,l)})(tjr(u)):new ej(function(W){if(!d)throw new TypeError("ga");
var M=function(){var q=_.uY.apply(0,arguments);return W.next(1<q.length?q:q[0])};
d(M);return function(){return C(M)}})};
Tmq=function(u,K){return function(l){return function(D){return u[l](K,D)}}};
uQ=function(){var u=_.uY.apply(0,arguments),K=wm(u);var l=typeof u[u.length-1]==="number"?u.pop():Infinity;return u.length?u.length===1?U2(u[0]):JmL(l)(tjr(u,K)):LH};
Vj9=function(u){return u.length===1&&FWo(u[0])?u[0]:u};
gPL=function(){var u=Vj9(_.uY.apply(0,arguments));return NT(function(K,l){var D=[K].concat(_.Am(u)),d=function(){if(!l.closed)if(D.length>0){try{var C=U2(D.shift())}catch(M){d();return}var W=new kP(l,void 0,Sj,Sj);l.add(C.subscribe(W));W.add(d)}else l.complete()};
d()})};
KS=function(u){return NT(function(K,l){var D=0;K.subscribe(new kP(l,function(d){return u.call(void 0,d,D++)&&l.next(d)}))})};
kGq=function(){var u=_.uY.apply(0,arguments);u=Vj9(u);return u.length===1?U2(u[0]):new ej(Nm9(u))};
Nm9=function(u){return function(K){for(var l=[],D={i$jscomp$219:0};l&&!K.closed&&D.i$jscomp$219<u.length;D={i$jscomp$219:D.i$jscomp$219},D.i$jscomp$219++)l.push(U2(u[D.i$jscomp$219]).subscribe(new kP(K,function(d){return function(C){if(l){for(var W=0;W<l.length;W++)W!==d.i$jscomp$219&&l[W].unsubscribe();l=null}K.next(C)}}(D))))}};
ZHh=function(){var u=_.uY.apply(0,arguments),K=xTq(u),l=Vj9(u);return l.length?new ej(function(D){var d=l.map(function(){return[]}),C=l.map(function(){return!1});
D.add(function(){d=C=null});
for(var W={sourceIndex$jscomp$1:0};!D.closed&&W.sourceIndex$jscomp$1<l.length;W={sourceIndex$jscomp$1:W.sourceIndex$jscomp$1},W.sourceIndex$jscomp$1++)U2(l[W.sourceIndex$jscomp$1]).subscribe(new kP(D,function(M){return function(q){d[M.sourceIndex$jscomp$1].push(q);d.every(function(v){return v.length})&&(q=d.map(function(v){return v.shift()}),D.next(K?K.apply(null,_.Am(q)):q),d.some(function(v,G){return!v.length&&C[G]})&&D.complete())}}(W),void 0,function(M){return function(){C[M.sourceIndex$jscomp$1]=
!0;
!d[M.sourceIndex$jscomp$1].length&&D.complete()}}(W)));
return function(){d=C=null}}):LH};
Y2b=function(u){var K,l,D;return!!u&&typeof u.active==="boolean"&&typeof((K=u.clock)==null?void 0:K.now)==="function"&&((l=u.clock)==null?void 0:l.timeline)!==void 0&&!((D=u.lastMeasurement)==null||!D.timestamp)&&typeof u.equivalentTo==="function"&&typeof u.extrapolateToNow==="function"&&typeof u.extrapolateToTime==="function"&&typeof u.map==="function"&&typeof u.joinWith==="function"};
Am9=function(u){function K(l){return typeof l==="boolean"||typeof l==="string"||typeof l==="number"||l===void 0||l===null}
return K(u)?!0:Array.isArray(u)?u.every(K):typeof u==="object"?Object.keys(u).every(function(l){return typeof l==="string"})&&Object.values(u).every(function(l){return Array.isArray(l)?l.every(K):K(l)}):!1};
XZL=function(u){if(Am9(u))return u;if(Y2b(u))return{lastMeasurement:{value:XZL(u.lastMeasurement.value),timestamp:lQ(u.lastMeasurement.timestamp,new DM(0,u.lastMeasurement.timestamp.timeline))},active:u.active};try{return JSON.parse(JSON.stringify(u))}catch(K){}return String(u)};
du=function(u,K){return function(l){return new ej(function(D){return l.subscribe(function(d){u.timeExecution(K,function(){D.next(d)})()},function(d){u.timeExecution(K,function(){D.error(d)})()},function(){u.timeExecution(K,function(){D.complete()})()})})}};
mTR=function(u,K){var l=!1;return new ej(function(D){var d=u.setTimeout(function(){l=!0;D.next(!0);D.complete()},K);
return function(){l||u.clearTimeout(d)}})};
h3n=function(u){u=u.global;if(u.fetchLater)return u.fetchLater.bind(u)};
CS=function(u){return NT(function(K,l){var D=null,d=!1,C;D=K.subscribe(new kP(l,void 0,function(W){C=U2(u(W,CS(u)(K)));D?(D.unsubscribe(),D=null,C.subscribe(l)):d=!0}));
d&&(D.unsubscribe(),D=null,C.subscribe(l))})};
EPR=function(u,K,l){return function(D,d){var C=l,W=K,M=0;D.subscribe(new kP(d,function(q){var v=M++;W=C?u(W,q,v):(C=!0,q);d.next(W)},void 0,void 0))}};
LWy=function(u){u=u===void 0?null:u;return NT(function(K,l){var D=!1;K.subscribe(new kP(l,function(d){D=!0;l.next(d)},void 0,function(){D||l.next(u);
l.complete()}))})};
IO=function(){return NT(function(u,K){u.subscribe(new kP(K,Sj))})};
yY=function(u){return NT(function(K,l){K.subscribe(new kP(l,function(){return l.next(u)}))})};
sy=function(u){return u<=0?function(){return LH}:NT(function(K,l){var D=0;
K.subscribe(new kP(l,function(d){++D<=u&&(l.next(d),u<=D&&l.complete())}))})};
oO=function(u){var K=K===void 0?aS:K;var l;u=(l=u)!=null?l:uBH;return NT(function(D,d){var C,W=!0;D.subscribe(new kP(d,function(M){var q=K(M);if(W||!u(C,q))W=!1,C=q,d.next(M)}))})};
uBH=function(u,K){return u===K};
lMr=function(u){u=u===void 0?KpH:u;return NT(function(K,l){var D=!1;K.subscribe(new kP(l,function(d){D=!0;l.next(d)},void 0,function(){return D?l.complete():l.error(u())}))})};
KpH=function(){return new D0q};
WK=function(){var u=_.uY.apply(0,arguments);return function(K){return jSo(K,Fn.apply(null,_.Am(u)))}};
d0h=function(u){return NT(function(K,l){var D=0;K.subscribe(new kP(l,function(d){u.call(void 0,d,D++,K)||(l.next(!1),l.complete())},void 0,function(){l.next(!0);
l.complete()}))})};
CQR=function(){return NT(function(u,K){var l=[];u.subscribe(new kP(K,function(D){l.push(D);1<l.length&&l.shift()},void 0,function(){for(var D=_.y(l),d=D.next();!d.done;d=D.next())K.next(d.value);
K.complete()},function(){l=null}))})};
IMy=function(u,K){var l=arguments.length>=2;return function(D){return D.pipe(u?KS(function(d,C){return u(d,C,D)}):aS,CQR(),l?LWy(K):lMr(function(){return new D0q}))}};
$$=function(u){var K=tm(u)?u:function(){return u};
return tm()?NT(function(l,D){var d=K();(void 0)(d).subscribe(D).add(l.subscribe(d))}):function(l){var D=new HK(l,K);
tm(l==null?void 0:l.lift)&&(D.lift=l.lift);D.source=l;D.subjectFactory=K;return D}};
ru=function(u){var K=new nS(u,void 0,void 0);return function(l){return $$(function(){return K})(l)}};
vK=function(u,K){return NT(EPR(u,K,arguments.length>=2))};
Gj=function(){var u=_.uY.apply(0,arguments),K=wm(u);return NT(function(l,D){(K?jSo(u,l,K):jSo(u,l)).subscribe(D)})};
tO=function(u){return NT(function(K,l){var D=null,d=0,C=!1;K.subscribe(new kP(l,function(W){var M;(M=D)==null||M.unsubscribe();M=d++;U2(u(W,M)).subscribe(D=new kP(l,function(q){return l.next(q)},void 0,function(){D=null;
C&&!D&&l.complete()}))},void 0,function(){(C=!0,!D)&&l.complete()}))})};
x$=function(u,K){K=K===void 0?!1:K;return NT(function(l,D){var d=0;l.subscribe(new kP(D,function(C){var W=u(C,d++);(W||K)&&D.next(C);!W&&D.complete()}))})};
yOo=function(u,K,l){var D=tm(u)||K||l?{next:u,error:K,complete:l}:u;return D?NT(function(d,C){d.subscribe(new kP(C,function(W){var M;(M=D.next)==null||M.call(D,W);C.next(W)},function(W){var M;
(M=D.error)==null||M.call(D,W);C.error(W)},function(){var W;
(W=D.complete)==null||W.call(D);C.complete()}))}):aS};
sOq=function(){var u=_.uY.apply(0,arguments),K=xTq(u);return NT(function(l,D){for(var d=u.length,C=Array(d),W=u.map(function(){return!1}),M=!1,q={i$jscomp$229:0};q.i$jscomp$229<d;q={i$jscomp$229:q.i$jscomp$229},q.i$jscomp$229++)U2(u[q.i$jscomp$229]).subscribe(new kP(D,function(v){return function(G){C[v.i$jscomp$229]=G;
M||W[v.i$jscomp$229]||(W[v.i$jscomp$229]=!0,(M=W.every(aS))&&(W=null))}}(q),void 0,Sj));
l.subscribe(new kP(D,function(v){M&&(v=[v].concat(_.Am(C)),D.next(K?K.apply(null,_.Am(v)):v))}))})};
o$r=function(u){var K=[],l=0,D;for(D in u)K[l++]=D;return K};
WpL=function(u,K){for(var l in u)if(u[l]==K)return!0;return!1};
HSR=function(u,K,l){for(var D in u)if(K.call(l,u[D],D,u))return D};
MAq=function(u){if(!u||typeof u!=="object")return u;if(typeof u.clone==="function")return u.clone();if(typeof Map!=="undefined"&&u instanceof Map)return new Map(u);if(typeof Set!=="undefined"&&u instanceof Set)return new Set(u);if(u instanceof Date)return new Date(u.getTime());var K=Array.isArray(u)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(u)||u instanceof DataView?{}:new u.constructor(u.length),l;for(l in u)K[l]=MAq(u[l]);return K};
qyn=function(u){var K=arguments.length;if(K==1&&Array.isArray(arguments[0]))return qyn.apply(null,arguments[0]);if(K%2)throw Error("ka");for(var l={},D=0;D<K;D+=2)l[arguments[D]]=arguments[D+1];return l};
$0h=function(u){var K=arguments.length;if(K==1&&Array.isArray(arguments[0]))return $0h.apply(null,arguments[0]);for(var l={},D=0;D<K;D++)l[arguments[D]]=!0;return l};
_.SA=function(u){return new YSh(u[0].toLowerCase())};
n$q=function(u){try{return new URL(u,window.document.baseURI)}catch(K){return new URL("about:invalid")}};
rOq=function(u,K){var l=K.createRange();l.selectNode(K.body);u=CH(u);return l.createContextualFragment(IS(u))};
v$q=function(u){u=u.nodeName;return typeof u==="string"?u:"FORM"};
GjH=function(u){u=u.nodeType;return u===1||typeof u!=="number"};
bQ=function(u,K,l){u.setAttribute(K,l)};
tAR=function(u){return u.parts.map(function(K){var l=K.descriptor;return""+K.url+(l?" "+l:"")}).join(" , ")};
_.Oy=function(u){var K=_.uY.apply(1,arguments);if(K.length===0)return _.Fz(u[0]);for(var l=u[0],D=0;D<K.length;D++)l+=encodeURIComponent(K[D])+u[D+1];return _.Fz(l)};
_.cK=function(u,K){u=_.VS(u).toString();var l=u.split(/[?#]/),D=/[?]/.test(u)?"?"+l[1]:"";return x0R(l[0],D,/[#]/.test(u)?"#"+(D?l[2]:l[1]):"",K)};
x0R=function(u,K,l,D){function d(W,M){W!=null&&(Array.isArray(W)?W.forEach(function(q){return d(q,M)}):(K+=C+encodeURIComponent(M)+"="+encodeURIComponent(W),C="&"))}
var C=K.length?"&":"?";D.constructor===Object&&(D=Object.entries(D));Array.isArray(D)?D.forEach(function(W){return d(W[1],W[0])}):D.forEach(d);
return _.Fz(u+K+l)};
eA=function(u,K,l,D){this.top=u;this.right=K;this.bottom=l;this.left=D};
Syq=function(u){u=u.global;if(u.PendingGetBeacon)return u.PendingGetBeacon};
Uy=function(u){return function(K){return K.pipe(bSb(u,$$(new RO)))}};
fS=function(u){return function(K){return K.pipe(bSb(u,ru(1)))}};
bSb=function(u,K){function l(D){return new ej(function(d){return D.subscribe(function(C){QY(u,function(){return void d.next(C)},3)},function(C){QY(u,function(){return void d.error(C)},3)},function(){QY(u,function(){return void d.complete()},3)})})}
return zG(l,bHH(),K,ZI(),l)};
aMr=function(u){var K=OSZ(u);return K===null?new PK(null):K.pipe(YP(function(l){l=l.serialize();if(cOZ)l=_.lL.btoa(l);else{for(var D=[],d=0,C=0;C<l.length;C++){var W=l.charCodeAt(C);W>255&&(D[d++]=W&255,W>>=8);D[d++]=W}l=_.Yp(D)}return l}),sy(1),fS(u.queue))};
z_9=function(u){var K=K===void 0?{}:K;if(typeof Event==="function")return new Event(u,K);if(typeof document!=="undefined"){var l=document.createEvent("CustomEvent");l.initCustomEvent(u,K.bubbles||!1,K.cancelable||!1,K.detail);return l}throw Error();};
e_Z=function(u){return typeof u==="string"?document.getElementById(u):u};
U0o=function(u){var K=!1;K=K===void 0?!1:K;if(u.tagName==="IMG"){if(u.complete&&(!u.naturalWidth||!u.naturalHeight))return!0;var l;if(K&&((l=u.style)==null?void 0:l.display)==="none")return!0}var D,d;return R_q.test((D=u.getAttribute("width"))!=null?D:"")&&R_q.test((d=u.getAttribute("height"))!=null?d:"")};
fMH=function(u,K){if(u.tagName==="IMG")return u.naturalWidth&&u.naturalHeight?!0:!1;try{if(u.readyState)var l=u.readyState;else{var D,d;l=(D=u.contentWindow)==null?void 0:(d=D.document)==null?void 0:d.readyState}return l==="complete"}catch(C){return K===void 0?!1:K}};
QOL=function(u){u||(u=function(K,l,D){K.addEventListener(l,D)});
return u};
Bun=function(u,K){var l=PQq();l=l===void 0?new JOZ:l;if(u=e_Z(u)){var D=QOL(D);for(var d=!1,C=function(B){d||(d=!0,K(B))},W,M=2,q=0;q<jOH.length;++q)if(jOH[q]===u.tagName){M=3;
W=[u];break}W||(W=u.querySelectorAll(jOH.join(",")));var v=0,G=0,t=!0,x=u=!1;q={};for(var O=0;O<W.length;q={isImg:void 0},O++){var a=W[O];if(!U0o(a))if(q.isImg=a.tagName==="IMG",fMH(a,l.crossDomainLoadedDefault))u=!0,q.isImg&&(t=!0);else{v++;var f=function(B){return function(p){v--;!v&&t&&C(M);B.isImg&&(p=p&&p.type==="error",G--,p||(t=!0),!G&&x&&t&&C(M))}}(q);
D(a,"load",f);q.isImg&&(G++,D(a,"error",f))}}G===0&&(t=!0);W=null;W=_.lL.document.readyState==="complete";if(v===0&&!u&&W)M=5;else if(v||!u){D(_.lL,"load",function(){!l.pendingImagesBlockLoad||!G&&t?C(4):x=!0});
return}C(M)}};
pKq=function(u,K,l){if(u)for(var D=0;u!=null&&D<500&&!l(u);++D)u=K(u)};
iSH=function(u,K){pKq(u,function(l){try{return l===l.parent?null:l.parent}catch(D){}return null},K)};
TuH=function(u,K){if(u.tagName=="IFRAME")K(u);else{u=u.querySelectorAll("IFRAME");for(var l=0;l<u.length&&!K(u[l]);++l);}};
wKn=function(u){return(u=u.ownerDocument)&&(u.parentWindow||u.defaultView)||null};
Fpq=function(u,K,l){try{var D=JSON.parse(l.data)}catch(W){}if(typeof D==="object"&&D&&D.type==="creativeLoad"){var d=wKn(u);if(l.source&&d){var C;iSH(l.source,function(W){try{if(W.parent===d)return C=W,!0}catch(M){}});
C&&TuH(u,function(W){if(W.contentWindow===C)return K(D),!0})}}};
VAb=function(u){return typeof u==="string"?document.getElementById(u):u};
ZSh=function(){var u={};return u[0]=_.Oy(g$b,"current"),u[1]=_.Oy(NuR),u[2]=_.Oy(kjq),u};
JO=function(u,K){return u.left===K.left&&u.top===K.top&&u.width===K.width&&u.height===K.height};
Yyw=function(u,K){return{left:Math.max(u.left,K.left),top:Math.max(u.top,K.top),width:Math.max(0,Math.min(u.left+u.width,K.left+K.width)-Math.max(u.left,K.left)),height:Math.max(0,Math.min(u.top+u.height,K.top+K.height)-Math.max(u.top,K.top))}};
AOq=function(u,K){return{left:Math.round(u.left+K.x),top:Math.round(u.top+K.y),width:u.width,height:u.height}};
XKy=function(u,K,l){if(u&&K!==null&&K!=K.top){if(!K.top)return new _.jA(-12245933,-12245933);K=K.top}try{return(l===void 0?0:l)?(new _.jA(K.innerWidth,K.innerHeight)).round():_.BK(K).round()}catch(D){return new _.jA(-12245933,-12245933)}};
m0q=function(u,K,l){try{if(u){if(!K.top)return new eA(-12245933,-12245933,-12245933,-12245933);K=K.top}var D=XKy(u,K,l),d=D.height,C=D.width;if(C===-12245933)return new eA(C,C,C,C);var W=pS(iQ(K.document)),M=W.x,q=W.y;return new eA(q,M+C,q+d,M)}catch(v){return new eA(-12245933,-12245933,-12245933,-12245933)}};
h_L=function(u){var K;return(K=u.google_tag_data)!=null?K:u.google_tag_data={}};
E$q=function(u){var K,l;return typeof((K=u.navigator)==null?void 0:(l=K.userAgentData)==null?void 0:l.getHighEntropyValues)==="function"};
udo=function(u){if(!E$q(u))return null;var K=h_L(u);if(K.uach_promise)return K.uach_promise;u=u.navigator.userAgentData.getHighEntropyValues(Lpn).then(function(l){K.uach!=null||(K.uach=l);return l});
return K.uach_promise=u};
Mbr=function(u){var K;return KMZ(luH(DtR(dtH(C2H(IuR(yqH(seH(oVy(new WMo,u.architecture||""),u.bitness||""),u.mobile||!1),u.model||""),u.platform||""),u.platformVersion||""),u.uaFullVersion||""),((K=u.fullVersionList)==null?void 0:K.map(function(l){var D=new HVL;D=_.Tj(D,1,l.brand);return _.Tj(D,2,l.version)}))||[]),u.wow64||!1)};
qQn=function(u){var K,l;return(l=(K=udo(u))==null?void 0:K.then(function(D){return Mbr(D)}))!=null?l:null};
$tq=function(u,K){return new ej(function(l){var D=!1,d=Array(K.length);d.fill(void 0);var C=new Set,W=new Set,M=function(t,x){u.running?(d[x]=t,C.add(x),D||(D=!0,QY(u,function(){D=!1;l.next(_.Xq(d))},1))):l.error(new wu(x))},q=function(t,x){W.add(x);
C.add(x);QY(u,function(){l.error(t)},1)},v=function(t){W.add(t);
QY(u,function(){W.size===K.length&&l.complete()},1)},G=K.map(function(t,x){return t.subscribe(function(O){return void M(O,x)},function(O){return void q(O,x)},function(){return void v(x)})});
return function(){G.forEach(function(t){return void t.unsubscribe()})}})};
vVy=function(u,K,l){function D(){if(K.debugChannel){var B=K.debugChannel,p=B.next;var V={creativeId:K.debugNames.getName(l),requiredSignals:d,signals:Object.assign({},C),hasPrematurelyCompleted:W,errorMessage:M,erroredSignalKey:q};V={specMajor:2,specMinor:0,specPatch:0,timestamp:lQ(K.timeProvider.now(),new DM(0,K.timeProvider.timeline)),instanceId:K.debugNames.getName(K.symbol),creativeState:V};p.call(B,V)}}
for(var d=Object.keys(u),C={},W=!1,M=null,q=null,v={},G=new Set,t=[],x=[],O=_.y(d),a=O.next(),f={};!a.done;f={key$jscomp$396:void 0},a=O.next())f.key$jscomp$396=a.value,a=u[f.key$jscomp$396],a instanceof PK?(v[f.key$jscomp$396]=a.value,G.add(f.key$jscomp$396),K.debugChannel&&(C[String(f.key$jscomp$396)]=XZL(a.value))):(a=a.pipe(oO(function(B,p){return Y2b(B)||Y2b(p)?!1:B===p}),YP(function(B){return function(p){K.debugChannel&&(C[String(B.key$jscomp$396)]=XZL(p),D());
var V={};return V[B.key$jscomp$396]=p,V}}(f)),CS(function(B){return function(p){if(p instanceof wu)throw new nVq(String(B.key$jscomp$396));
throw p;}}(f)),yOo(function(B){return function(){G.add(B.key$jscomp$396)}}(f),function(B){return function(p){q=String(B.key$jscomp$396);
M=String(p);D()}}(f),function(B){return function(){G.has(B.key$jscomp$396)||(W=!0,D())}}(f))),x.push(f.key$jscomp$396),t.push(a));
(u=Object.keys(C).length>0)&&D();O=$tq(K.queue,t).pipe(CS(function(B){if(B instanceof wu)throw new rqo(String(x[B.inputObservableIndex]));throw B;}),YP(function(B){return Object.freeze(Object.assign.apply(Object,[{},
v].concat(_.Am(B))))}));
return(t=t.length>0)&&u?uQ(Fn(Object.freeze(v)),O):t?O:Fn(Object.freeze(v))};
GZL=function(u,K,l,D,d){return u.performanceMonitor.timeExecution.bind(u.performanceMonitor)(733,function(){var C={};try{return K.pipe(CS(function(W){D(Object.assign({},C,{error:W}));return LH}),hm(function(W){try{var M=l(u,W)}catch(v){return D(Object.assign({},C,{error:v instanceof Error?v:String(v)})),LH}var q={};
return vVy(M,u,W.symbol).pipe(yOo(function(v){q=v}),ru(1),ZI()).pipe(d,CS(function(v){D(Object.assign({},q,{error:v}));
return LH}),WK(void 0),YP(function(){return!0}))})).pipe(vK(function(W){return W+1},0),CS(function(W){D(Object.assign({},C,{error:W}));
return LH}))}catch(W){return D(Object.assign({},C,{error:W})),LH}})()};
FB=function(u){var K=new Map;if(typeof u!=="object"||u===null)return K;Object.values(u).forEach(function(l){l&&typeof l.extrapolateToNow==="function"&&(K.has(l.clock.timeline)||K.set(l.clock.timeline,l.clock.now()))});
return K};
tbo=function(u,K){return typeof u==="string"?encodeURIComponent(u):typeof u==="number"?String(u):Array.isArray(u)?u.map(function(l){return tbo(l,K)}).join(","):u instanceof DM?u.toString():u&&typeof u.extrapolateToNow==="function"?tbo(u.extrapolateUsingTimestampMap(K).value,K):u===!0?"1":u===!1?"0":u===void 0||u===null?null:u instanceof xtq?SQq(u):[u.top,
u.left,u.top+u.height,u.left+u.width].join()};
bVw=function(u,K){u=Object.entries(u).map(function(l){var D=_.y(l);l=D.next().value;D=D.next().value;D=tbo(D,K);return D===null?"":l+"="+D}).filter(function(l){return l!==""});
return u.length?u.join("&"):""};
aur=function(u,K){var l=OVL,D=cqL;K=K===void 0?.01:K;return function(d){K>0&&Math.random()<=K&&(u.global.HTMLFencedFrameElement&&u.global.fence&&typeof u.global.fence.reportEvent==="function"&&u.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),d=Object.assign({},d,{errorMessage:d.error instanceof Error&&d.error.message?d.error.message:String(d.error),errorStack:d.error instanceof Error&&d.error.stack?String(d.error.stack):null,errorName:d.error instanceof
Error&&d.error.name?String(d.error.name):null,errorContext:String(u.performanceMonitor.timedFunctionContext),errorEscapedQueryId:d.escapedQueryId}),l(Object.assign({},d,{payloadMapper:function(){return function(C){try{return D(Object.assign({},C))}catch(W){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),FB(d)).forEach(function(C){u.beaconFactory.makeBeacon(C).sendNow()}))}};
zyH=function(){var u=_.uY.apply(0,arguments);return function(K){var l=K.pipe(ru(1),ZI());K=u.map(function(D){return l.pipe(D,WK(!0))});
return Xn(K).pipe(sy(1),IO())}};
eyn=function(){var u=_.uY.apply(0,arguments);return function(K){var l=K.pipe(ru(1),ZI());K=u.map(function(D){return l.pipe(D,WK(!0))});
return uQ.apply(null,_.Am(K)).pipe(sy(1),IO())}};
RyH=function(u,K){return function(l){var D=l.pipe(ru(1),ZI());l=D.pipe(u,WK(!0));D=D.pipe(zG(K,ru(),ZI()),WK(!0));l=Xn([l,D]);return kGq(l,D).pipe(sy(1),IO())}};
Utq=function(u,K,l){l(!0)};
fuy=function(u,K){return zG(tO(function(l){var D=u(l),d=K(l),C={};return D&&d&&C?new ej(function(W){d(D,C,function(M){W.next(Object.assign({},l,{canEmit:M}));W.complete()});
return function(){}}):VY}),KS(function(l){return l.canEmit}))};
Qew=function(u){var K={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(l){return l.pipe(tO(function(D){return new ej(function(d){function C(){M.disconnect();q.unsubscribe()}
var W=u.MutationObserver;if(W&&D.ref!==void 0){var M=new W(function(v){d.next(v)});
M.observe(D.ref,K);var q=D.JSC$9286_released.subscribe(C);return C}})}))}};
P29=function(u){if(u.measurementDeferralState===3)return null;if(u.timeOnScreenReason!==void 0){var K=u.creativeFound===!1?"n":null;if(K!==null)return K}return u.geometricMeasurementErrors instanceof gu?"msf":u.contextValidationErrors instanceof N0?"c":u.contextVisibilityKnown===!1?"pv":u.geometricMeasurementErrors||u.contextValidationErrors?"x":null};
jeL=function(u,K){return u.replace(Jqo,function(l,D){try{var d=_.k$.get(K,D);if(d==null||d.toString()==null)return l;d=d.toString();if(d==""||!_.oR(d==null?"":String(d)))return encodeURIComponent(d).replace(/%2C/g,",")}catch(C){}return l})};
BB9=function(u,K){var l=Object.assign({},u),D=u.userAgentClientHints;l=(delete l.userAgentClientHints,l);l=u.payloadMapper(l);var d=bVw(l,K);return _.ZM(u.urlPrefixes,function(C){var W="";typeof D==="string"&&(W="&"+bVw({uach:D},K));var M={};return jeL(C,(M.VIEWABILITY=d,M))+W})};
OVL=function(u,K){var l=u.payloadMapper(u),D=bVw(l,K);return D?_.ZM(u.urlPrefixes,function(d){d=d.indexOf("?")>=0?d:d+"?";d="?&".indexOf(d.slice(-1))>=0?d:d+"&";return d+D}):u.urlPrefixes};
pOw=function(){return zG(KS(function(u){return u!==void 0}),YP(function(u){return u}))};
iVy=function(u){return zG(YP(function(){return!0}),Gj(!1),fS(u))};
TBL=function(u){return u.length<=0?LH:Xn(u.map(function(K){var l=0;return K.pipe(YP(function(D){return{index:l++,value:D}}))})).pipe(KS(function(K){return K.every(function(l){return l.index===K[0].index})}),YP(function(K){return K.map(function(l){return l.value})}))};
wOo=function(u,K){u.currentState&&(u.previousState=u.currentState);u.currentState=K;u.previousState&&u.previousState.value?(K=Math.max(0,lQ(K.timestamp,u.previousState.timestamp)),u.totalTime+=K,u.consecutiveTime+=K):u.consecutiveTime=0;return u};
FMZ=function(){return zG(vK(wOo,{totalTime:0,consecutiveTime:0}),YP(function(u){return u.totalTime}))};
Vbq=function(){return zG(vK(wOo,{totalTime:0,consecutiveTime:0}),YP(function(u){return u.consecutiveTime}))};
gVq=function(u,K){return function(l){return TBL(K.map(function(D){return l.pipe(u(D))}))}};
NBq=function(){var u;return zG(yOo(function(K){return void(u=K.timestamp)}),Vbq(),YP(function(K){return{timestamp:u,
value:Math.round(K)}}))};
kZn=function(u,K){return JO(u.topWindowViewportExternalGeometry,K.topWindowViewportExternalGeometry)&&JO(u.elementGeometry,K.elementGeometry)&&JO(u.exposedViewportLocalGeometry,K.exposedViewportLocalGeometry)&&JO(u.intersectionGeometry,K.intersectionGeometry)&&u.elementGeometrySourceName===K.elementGeometrySourceName&&u.measurementRequests===K.measurementRequests&&u.viewportGeometrySourceName===K.viewportGeometrySourceName&&u.viewportLocalAppOffset.x===K.viewportLocalAppOffset.x&&u.viewportLocalAppOffset.y===
K.viewportLocalAppOffset.y};
mtL=function(u,K){return function(l){return function(D){var d=D.pipe($$(new RO),ZI());D=l.element.pipe(oO());d=d.pipe(YP(function(C){return C.value}));
return Xn([D,d,K]).pipe(YP(function(C){var W=_.y(C);C=W.next().value;var M=W.next().value;W=W.next().value;if(C.ref===void 0)var q={top:0,left:0,width:0,height:0};else{q=C.ref.getBoundingClientRect();var v=C.ref,G=u.global,t=new _.XB(0,0),x=mp(_.hO(v));if(ZVH(x,"parent")){do{if(x==G)var O=_.Ey(v);else O=YQn(v),O=new _.XB(O.left,O.top);t.x+=O.x;t.y+=O.y}while(x&&x!=G&&x!=x.parent&&(v=x.frameElement)&&(x=x.parent))}q={top:t.y,left:t.x,width:q.width,height:q.height}}q=AOq(q,M.viewportLocalAppOffset);
G=Yyw(q,M.exposedViewportLocalGeometry);t=u.timeProvider.now();x=Object;v=x.assign;if(W!==2||u.inCrossDomainIframe||G.width<=0||G.height<=0)var a=!1;else try{var f=u.document.elementFromPoint(G.left+G.width/2,G.top+G.height/2);a=f?!AqH(f,C):!1}catch(B){a=!1}return{timestamp:t,value:v.call(x,{},M,{elementGeometrySourceName:"geo",intersectionGeometry:a?XOh.intersectionGeometry:G,elementGeometry:q})}}),Uy(u.queue))}}};
AqH=function(u,K,l){l=l===void 0?0:l;return u.ref===void 0||K.ref===void 0?!1:u.ref===K.ref||_.LS(K.ref,function(D){return D===u.ref})?!0:K.ref.ownerDocument&&K.ref.ownerDocument.defaultView&&K.ref.ownerDocument.defaultView===K.ref.ownerDocument.defaultView.top?!1:l<10&&K.ref.ownerDocument&&K.ref.ownerDocument.defaultView&&K.ref.ownerDocument.defaultView.frameElement?AqH(u,new u2(K.ref.ownerDocument.defaultView.frameElement),l+1):!0};
LMZ=function(u){return function(K){return K.pipe(u.ResizeObserver?hyH(u):EVh(u),ru(1),ZI())}};
hyH=function(u){return function(K){return K.pipe(tO(function(l){var D=u.ResizeObserver;if(!D||l.ref===void 0)return Fn(XOh.elementGeometry);var d=(new ej(function(C){function W(){l.ref!==void 0&&M.unobserve(l.ref);M.disconnect();q.unsubscribe()}
if(l.ref===void 0)return C.complete(),function(){};
var M=new D(function(v){v.forEach(function(G){C.next(G)})});
M.observe(l.ref);var q=l.JSC$9286_released.subscribe(W);return W})).pipe(du(u.performanceMonitor,736),YP(function(C){return C.contentRect}));
return uQ(Fn(l.ref.getBoundingClientRect()),d)}),oO(JO))}};
EVh=function(u){return function(K){var l=K.pipe(Qew(u)),D=u.onResize;l=uQ(K.pipe(YP(function(){return z_9("resize")})),l,D);
return Xn(K,l).pipe(du(u.performanceMonitor,737),YP(function(d){d=_.y(d).next().value;return d.ref===void 0?void 0:d.ref.getBoundingClientRect()}),pOw(),oO(JO))}};
l7q=function(u,K){var l=uLy(u,K).pipe(ru(1),ZI());return function(D){return function(d){d=d.pipe(tO(function(C){return C.element}),oO());
return Xn([l,d]).pipe(tO(function(C){var W=_.y(C);C=W.next().value;W=W.next().value;return KtL(u,C.intersectionObserver,LMZ(u),C.observations,D,C.flushRecords,W)}),Uy(u.queue))}}};
Doy=function(u){return YP(function(K){return K.value.viewportGeometrySourceName!=="nio"?K:Object.assign({},K,{value:Object.assign({},K.value,{exposedViewportLocalGeometry:KV(u,!0),topWindowViewportExternalGeometry:KV(u,!0)})})})};
doh=function(u,K){return Fn(K).pipe(u,YP(function(){return K}))};
uLy=function(u,K){return u.timeProvider.timeline!==Crh?gm(new gu(2)):u.MutationObserver?typeof IntersectionObserver==="undefined"?gm(new gu(0)):(new ej(function(l){var D=new RO,d=new l2(D.next.bind(D),{threshold:[].concat(_.Am(K))});l.next({observations:D.pipe(du(u.performanceMonitor,735)),intersectionObserver:d,flushRecords:function(C){C=d.takeRecords(C);C.length>0&&D.next(C)}})})).pipe(sy(1),ru(1),ZI()):gm(new gu(1))};
I7y=function(u){return Mjo(u.sort(function(K,l){return K.time-l.time}),S2h)};
KtL=function(u,K,l,D,d,C,W){return new ej(function(M){function q(){a||(a=!0,W.ref!==void 0&&K.unobserve(d,W.ref),G.unsubscribe(),O.unsubscribe(),x.unsubscribe(),f.unsubscribe())}
if(W.ref!==void 0){ygZ(K,d);K.observe(d,W.ref);var v=new Du({timestamp:u.timeProvider.now(),value:Object.assign({},XOh,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),G=D.pipe(hm(function(B){return I7y(B)}),KS(function(B){return B.target===W.ref}),YP(function(B){return{timestamp:new DM(B.time,Crh),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:B.rootBounds||dB,topWindowViewportExternalGeometry:B.rootBounds||KV(u,!0),measurementRequests:t,elementGeometrySourceName:"nio",intersectionGeometry:B.intersectionRect,elementGeometry:B.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:B.isIntersecting,isV2Visible:B.isVisible}}}),$$(v),ZI()).subscribe(M),t=new RO,x=t.subscribe(function(){C(d);
M.next({timestamp:u.timeProvider.now(),value:v.value.value});W.ref!==void 0&&(K.unobserve(d,W.ref),K.observe(d,W.ref))}),O=doh(l,W).subscribe(function(){t.next()}),a=!1,f=W.JSC$9286_released.subscribe(function(){return q()});
return q}})};
sZL=function(u,K){var l=u.getOnBackgrounded().pipe(YP(function(){return"b"}));
return kGq(K,l).pipe(sy(1),fS(u.queue))};
CV=function(u){return function(K){var l;return K.pipe(yOo(function(D){return void(l=D.timestamp)}),YP(function(D){return D.value}),u,YP(function(D){return{timestamp:l,
value:D}}))}};
oTn=function(u){return u.intersectionGeometry.width*u.intersectionGeometry.height/(u.elementGeometry.width*u.elementGeometry.height)};
Ie=function(u,K,l){l=l===void 0?function(D,d){return D===d}:l;
return u.timestamp.equals(K.timestamp)&&l(u.value,K.value)};
sQ=function(u,K){return K.pipe(YP(function(l){return new yf(u.timeProvider,{timestamp:u.timeProvider.now(),value:l})}))};
Wtq=function(u){return function(K){return K.pipe(sOq(u),YP(function(l){var D=_.y(l);l=D.next().value;D=D.next().value;var d=l.value;return{timestamp:l.timestamp,value:d>=1?!0:d<=0?!1:d>=D}}))}};
M9h=function(){return zG(KS(function(u,K){return K>0}),HIb,Gj(-1),oO())};
qnH=function(u,K,l){return u?Xn([K,l]).pipe(KS(function(D){var d=_.y(D);D=d.next().value;d=d.next().value;return D.timestamp.equals(d.timestamp)}),YP(function(D){var d=_.y(D);
D=d.next().value;d=d.next().value;return D.value>d.value?D:d})):K};
rgr=function(u){return function(K){var l=K.pipe($o9),D=K.pipe(nTZ);return u instanceof ej?u.pipe(tO(function(d){return qnH(d,l,D)})):qnH(u.value,l,D)}};
zpH=function(u,K,l,D){var d=D.geometryIsOccluded,C=D.exposureThreshold,W=D.wasLargeAdAtRender,M=D.allowLargeAdThreshold,q=D.largeAdExposureThreshold,v=D.mayUseViewportShareExposure,G=D.hasMeasurementStarted;D=D.useIntersectionObserverV2;K=vTo(u,l,K);l=Gdo(u,l);D=t9q(K,D);var t=xob(u,d,v,K),x=t.pipe(YP(function(A){return A.value}),oO(),fS(u),vK(function(A,h){return Math.max(A,h)},0)),O=t.pipe(YP(function(A){return A.value}),M9h(),fS(u)),a=K.pipe(Snn,YP(function(A){return A.value}),sy(2),oO(),fS(u));
W=bIr(u,K,W,M);var f=W.pipe(Gj(!1),oO(),YP(function(A){return A?q:C}));
M=t.pipe(Wtq(f),oO(),fS(u));var B=Xn([M,K]).pipe(KS(function(A){var h=_.y(A);A=h.next().value;h=h.next().value;return A.timestamp.equals(h.timestamp)}),YP(function(A){var h=_.y(A);
A=h.next().value;h=h.next().value;return{visible:A.value,geometry:h.value.elementGeometry}}),vK(function(A,h){return!h.visible&&A.visible?A:h},{visible:!1,
geometry:dB}),YP(function(A){return A.geometry}),Gj(dB),fS(u),oO(JO));
v=v instanceof ej?v.pipe(oO(),yY()):VY;f=Xn([v,f]).pipe(yY());var p=K.pipe(KS(function(A){return A.value.viewportGeometrySourceName!=="ns"&&A.value.elementGeometrySourceName!=="ns"}),vK(function(A){return A+1},0),Gj(0),fS(u)),V=l.pipe(yY(!0),Gj(!1),fS(u));
V=Xn([G,V]).pipe(YP(function(A){var h=_.y(A);A=h.next().value;h=h.next().value;return A&&!h}),fS(u));
var m=K.pipe(OIn,oO()),Z=m.pipe(YP(function(A){return A.value}),vK(function(A,h){return Math.max(A,h)},0),oO(),fS(u));
u=m.pipe(YP(function(A){return A.value}),M9h(),fS(u));
return{shouldResetExposureSignals:v,shouldResetViewabilitySignals:f,geometrySignals:{readyGeometryWithDefault:K,measurementStrategy:K.pipe(cgq),creativePosition:B.pipe(oO(JO)),visible:M.pipe(oO(Ie)),timestampedExposure:t.pipe(oO(Ie)),maximumExposure:x,minimumExposure:O,browserSize:K.pipe(a79,oO(_.sB)),timestampedScreenShare:m,maxScreenShare:Z,minScreenShare:u,geometricMeasurementErrors:l,measurementRequests:K.pipe(YP(function(A){return A.value.measurementRequests})),
isLargeAd:W,geometryIsOccluded:d,hasMeasurementStarted:G,geometryMeasurable:V,validMeasurementCount:p,loadTimeExposure:a,v2VisibilityBitVector:D}}};
Gdo=function(u,K){return K.pipe(KS(function(){return!1}),YP(function(l){return l}),CS(function(l){return oe(new PK(l),u)}))};
vTo=function(u,K,l){return K.pipe(gPL(VY),fS(u)).pipe(oO(function(D,d){return Ie(D,d,kZn)}),Gj({timestamp:l.now(),
value:XOh}),fS(u))};
xob=function(u,K,l,D){l=D.pipe(rgr(l),CV(YP(function(d){return Math.round(d*100)/100})),fS(u));
return K instanceof PK?l:Xn([l,K]).pipe(YP(function(d){var C=_.y(d);d=C.next().value;C=C.next().value;return{timestamp:C.timestamp.maximum(d.timestamp),value:C.value?0:d.value}}),oO(Ie),fS(u))};
bIr=function(u,K,l,D){K=[K.pipe(YP(function(d){return d.value.elementGeometry.width*d.value.elementGeometry.height>=242500}))];
l instanceof ej&&K.push(l.pipe(YP(function(d){return!!d})));
l=Xn(K);return D?l.pipe(YP(function(d){return d.some(function(C){return C})}),Gj(!1),oO(),fS(u)):oe(new PK(!1),u)};
t9q=function(u,K){u=Xn([u,K]).pipe(YP(function(d){var C=_.y(d);d=C.next().value;if(C.next().value&&d.value.isIntersecting)return d.value.isV2Visible}),oO());
var l=u.pipe(YP(function(d){return d===void 0?!0:d}),vK(function(d,C){return d||!C},!1)),D=u.pipe(vK(function(d,C){return C===void 0?d:C?!1:d!=null?d:!0},void 0),YP(function(d){return!!d}));
return Xn([K,ZHh(u,l,D)]).pipe(YP(function(d){var C=_.y(d);d=C.next().value;var W=_.y(C.next().value);C=W.next().value;var M=W.next().value;W=W.next().value;var q=0;if(!d)return 0;if(C===void 0)return 16;C&&(q|=1);C||(q|=2);M&&(q|=4);W&&(q|=8);return q}))};
PrH=function(u,K,l,D,d){var C=epo.timeThresholdMs;var W=W===void 0?new Rpr(K,D):W;return(new ej(function(M){var q=l.pipe(Gj(void 0),tO(function(){return Uow(d)})).pipe(YP(function(v){var G=v.value;
v=v.timestamp;var t=G.visible;G=G.consecutiveViewTime;var x=G>=C;x||!t?f7L(W):(v=Math.max(0,lQ(K.now(),v)),QZq(W,Math.max(0,C-G-v)));return x}),vK(function(v,G){return G||v},!1),oO()).subscribe(M);
return function(){W.dispose();q.unsubscribe()}})).pipe(x$(function(M){return!M},!0),fS(u))};
Uow=function(u){return TBL([u,u.pipe(NBq())]).pipe(YP(function(K){var l=_.y(K);K=l.next().value;l=l.next().value;return{timestamp:K.timestamp,value:{visible:K.value,consecutiveViewTime:l.value}}}),oO(function(K,l){return Ie(K,l,function(D,d){return D.consecutiveViewTime===d.consecutiveViewTime&&D.visible===d.visible})}))};
JgZ=function(){return zG(Vbq(),vK(function(u,K){return Math.max(u,K)},0),YP(function(u){return Math.round(u)}))};
jZn=function(u){return zG(Wtq(Fn(u)),JgZ())};
Bp9=function(u,K){return K instanceof ej?K.pipe(tO(function(l){return(l=l?15:null)?gm(new gu(l)):u})):(K=K.value?15:null)?gm(new gu(K)):u};
p$r=function(u){var K=new gu(13);if(u.length<1)return{chain:LH,capturedErrors:LH};var l=new RO,D=u[0];return{chain:u.slice(1).reduce(function(d,C){return d.pipe(CS(function(W){l.next(W);return C}))},D).pipe(CS(function(d){l.next(d);
return gm(K)}),$$(new RO),ZI()),
capturedErrors:l}};
iI9=function(u,K){var l=u.pipe($$(new RO),ZI());return tO(function(D){return l.pipe(K(D))})};
w$h=function(u,K){if(u.inCrossDomainIframe)return gm(new gu(6));var l=new RO;return uQ(Fn({}),K,l).pipe(YP(function(){return{timestamp:u.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Tph(u),topWindowViewportExternalGeometry:KV(u,!0),measurementRequests:l,viewportLocalAppOffset:{x:0,y:0}}}}),Uy(u.queue))};
Tph=function(u){var K=KV(u,!1);if(!u.inIframe||!Ftq(u.global.parent)||u.global.parent===u.global)return K;var l=new WO(u.global.parent,u.debugChannel);l.beaconFactory=u.beaconFactory;l=Tph(l);u=u.global.frameElement.getBoundingClientRect();return Yyw(AOq(Yyw(l,u),{x:K.left-u.left,y:K.top-u.top}),K)};
V9H=function(u){if(u.prerendering)return 3;var K;return(K={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[u.visibilityState||u.webkitVisibilityState||u.mozVisibilityState||""])!=null?K:0};
gTR=function(u){return u.document.JSC$9297_onVisibilityChange.pipe(YP(function(K){return K==="visible"}),oO(),fS(u.queue))};
Npn=function(u,K,l){var D;return K.pipe(oO(),tO(function(d){return l.pipe(YP(function(){if(!D){D=!0;try{d.next()}finally{D=!1}}return!0}))}),Gj(!1),fS(u.queue))};
kdr=function(u){return zG(CV(YP(function(K){return K>=1?!0:K<=0?!1:K>=u})),FMZ(),YP(function(K){return Math.round(K)}))};
Ynq=function(u,K,l,D,d){var C=ZIo;if(C.length>1)for(var W=0;W<C.length-1;W++)if(C[W]<C[W+1])throw Error();W=d.pipe(Gj(void 0),tO(function(){return l.pipe(NBq())}),oO(),fS(u));
d=d.pipe(Gj(void 0),tO(function(){return l.pipe(JgZ())}),oO(),fS(u));
return{totalMeasurementTime:D.pipe(Gj(void 0),tO(function(){return K.pipe(YP(function(M){return{timestamp:M.timestamp,value:!0}}),FMZ())}),oO(),fS(u)),
totalUnviewedTime:D.pipe(Gj(void 0),tO(function(){return K.pipe(YP(function(M){return{timestamp:M.timestamp,value:M.value===0}}),FMZ())}),oO(),fS(u)),
maxTimeOnScreen:D.pipe(Gj(void 0),tO(function(){return K.pipe(gVq(jZn,C))}),oO(_.sB),fS(u)),
timeOnScreen:D.pipe(Gj(void 0),tO(function(){return K.pipe(gVq(kdr,C),YP(function(M){return M.map(function(q,v){return v>0?q-M[v-1]:q})}))}),oO(_.sB),fS(u)),
maxConsecutiveViewTime:d,consecutiveViewTime:W.pipe(oO(Ie),fS(u))}};
X$y=function(u){var K=!0;K=K===void 0?!1:K;return zG(tO(function(l){return AgR(u.document,l,K)}),fS(u.queue))};
moR=function(u,K,l){var D=l.pipe(YP(function(d){return{value:d,timestamp:u.timeProvider.now()}}),oO(Ie));
return K instanceof ej?K.pipe(oO(),tO(function(d){return d?oe(new PK({value:!1,timestamp:u.timeProvider.now()}),u.queue):D})):K.value===!1?D:new PK(!1)};
hpb=function(u,K,l,D,d,C,W){var M=epo;K=K instanceof ej?K.pipe(Gj(!1),oO()):K;var q=!u.isMobile();l=moR(u,l,D);u=W.measurableCreative.pipe(iVy(u.queue));return Object.assign({},M,{geometryIsOccluded:l,wasLargeAdAtRender:d,allowLargeAdThreshold:q,mayUseViewportShareExposure:K,hasMeasurementStarted:u,useIntersectionObserverV2:C})};
LtZ=function(u,K,l,D,d,C){var W=1;C=C===void 0?!0:C;W=W===void 0?.01:W;var M=M===void 0?u.timeProvider.intervalObservable(100).pipe(fS(u.queue)):M;return u.performanceMonitor.timeExecution(916,function(){return ETn(u,K.pipe(Uy(u.queue)),l.pipe(Uy(u.queue)),D,d,C,W,M)})()};
ETn=function(u,K,l,D,d,C,W,M){var q=gTR(u).pipe(YP(function(G){return!G})),v=new upy(u,[new KTw(u,ZIo),
new lYq(u,M)]);M=zyH(D_Z,d_q);return GZL(u,K,function(G,t){var x=oe(new PK(t.element),G.queue).pipe(X$y(G),fS(G.queue)),O={loadedElement:x,shouldMeasure:x.pipe(yY(!0)),measurableCreative:x.pipe(YP(function(A){var h=h===void 0?Symbol():h;return Object.freeze({symbol:h,element:oe(new PK(A),G.queue)})})),
creativeSearchResult:oe(new PK("mue"),G.queue)},a=new PK(!1),f=new PK(!1),B=new PK(17),p=new PK(!1),V=new PK(!1),m=oe(HO,G.queue);a=v.buildGeometrySource(O,{inApp:a,useV2:!1,requestSource:oe(B,G.queue)}).geometrySource;O=hpb(G,p,f,q,V,m,O);f=zpH(G.queue,G.timeProvider,a,O);O=f.geometrySignals;p=f.shouldResetViewabilitySignals;f=Ynq(G.queue,O.timestampedExposure,O.visible,f.shouldResetExposureSignals,p);p=PrH(G.queue,G.timeProvider,p,O.measurementRequests,O.visible);V=l.pipe(KS(function(A){return A===
t.element.ref}),YP(function(){return"ur"}));
m=mTR(G.timeProvider,d).pipe(yY("t"));V=sZL(G,uQ(V,m));m=Npn(G,O.measurementRequests,V.pipe(KS(function(A){return A!==null})));
a=V.pipe(KS(function(A){return A!==null}),YP(function(){return V9H(G.global.document)===1}));
var Z=Ccq(G.document);return Object.assign({},{beaconFactory:new PK(G.beaconFactory),context:new PK(G),inferredPingId:new PK("lidar2"),timeOnScreenPingId:new PK("lidartos"),binaryContext:new PK(17),binaryVersion:new PK(D),requestSource:B,contextValidationErrors:new PK(G.validate()?null:new N0),contextVisibilityKnown:new PK(Z),payloadMapper:new PK(cqL),endOfSessionReason:V,timeOnScreenReason:V,requestMeasurementOnEndOfSession:m,hasImpressionFired:IYH,crossDomainIframeState:new PK(G.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:HO,inFetchLaterBeaconExperiment:HO,isTurtlex:HO,turtlexReportEventData:new PK(""),reportFencedFrameEvent:VY,isViewableAttributionEnabled:HO,inViewableAttributionExperiment:new PK(0),fetchBeaconFactory:VY,supportsPendingBeacon:HO,supportsFetchLater:HO,emit:new PK(Utq),beginToRenderEvent:new PK(Symbol()),activeViewUnmeasurableEvent:new PK(Symbol()),activeViewViewableEvent:new PK(Symbol()),creativeFound:IYH,immediateUrlPrefixes:new PK(t.immediateUrls),timeOnScreenUrlPrefixes:new PK(t.timeOnScreenUrls),
cpmavUrls:VY,viewableRelayUrls:VY,measurementDeferralState:new PK(2),urlSerializer:new PK(BB9),viewUrlSerializer:new PK(y8Z),isCreativeLoaded:x.pipe(iVy(G.queue)),pageVisible:q.pipe(YP(function(A){return!A})),
eosPageVisible:a,timestampedExposureHistory:O.timestampedExposure.pipe(vK(function(A,h){A.push(h);return A},[]))},O,{viewable:sQ(G,p),
maxTimeOnScreen:sQ(G,f.maxTimeOnScreen),timeOnScreen:sQ(G,f.timeOnScreen),maxConsecutiveViewTime:sQ(G,f.maxConsecutiveViewTime),consecutiveViewTime:f.consecutiveViewTime.pipe(YP(function(A){return new yf(G.timeProvider,A)})),
totalMeasurementTime:sQ(G,f.totalMeasurementTime),totalUnviewedTime:sQ(G,f.totalUnviewedTime),userAgentClientHints:aMr(G),clientOrderPingCounter:new PK(new xtq)})},aur(u,W),eyn(C?RyH(M,sEo):RyH(M,oDh),WTq))};
H0H=function(u){var K=_.uY.apply(1,arguments).filter(Boolean).join("&");if(!K)return u;var l=u.match(/[?&]adurl=/);return l?u.slice(0,l.index+1)+K+"&"+u.slice(l.index+1):u+(u.indexOf("?")<0?"?":"&")+K};
Mt=function(u,K){return K?"&"+u+"="+encodeURIComponent(K):""};
Mfw=function(){try{var u,K;return!!((u=window)==null?0:(K=u.top)==null?0:K.location.href)&&!1}catch(l){return!0}};
_.qt=function(u){u&&typeof u.dispose=="function"&&u.dispose()};
_.$V=function(u){for(var K=0,l=arguments.length;K<l;++K){var D=arguments[K];_.mb(D)?_.$V.apply(null,D):_.qt(D)}};
$_q=function(){var u=q3o();u=u===void 0?"bevasrsg":u;return new Promise(function(K){var l=window===window.top?window:Mfw()?window:window.top,D=l[u],d;((d=D)==null?0:d.bevasrs)?K(new nV(D.bevasrs)):(D||(D={},D=(D.nqfbel=[],D),l[u]=D),D.nqfbel.push(function(C){K(new nV(C))}))})};
nDn=function(u){var K={c:u.mk,e:u.pIC,mc:u.tof,me:u.bDe};u.vZ&&(K.co={c:u.vZ.dbn,a:u.vZ.cB0,s:u.vZ.i1R});return K};
r89=function(u){var K,l,D={mk:u.c,pIC:u.e,tof:(K=u.mc)!=null?K:!1,bDe:(l=u.me)!=null?l:!1};u.co&&(D.vZ={dbn:u.co.c,cB0:u.co.a,i1R:u.co.s});return D};
vDH=function(u){return function(){var K;return _.H(function(l){if(l.nextAddress==1)return l.yield(u(),2);K=l.yieldResult;return l.return({f:function(){return K.s2m()},
c:function(D){return K.l3K(D)},
m:function(D){return K.u7(r89(D))},
mws:function(D){return K.mt8(r89(D))}})})}};
G1b=function(u,K){var l=q3o();l=l===void 0?"bevasrsg":l;K={s:function(C){var W;return u.snapshot(Object.assign({},C.c&&{mk:C.c},C.s&&{egq:C.s},{kae:(W=C.p)!=null?W:!0}))},
e:function(C){var W;return void((W=u.pyp)==null?void 0:W.call(u,C))},
c:function(C,W){return u.in9(C,W)},
p:u.ceC,l:function(){return u.ncF()},
wpc:K?vDH(K):void 0};var D=window===window.top?window:Mfw()?window:window.top,d=D[l];if(d){d.bevasrs=K;if(d.nqfbel!==void 0)for(l=_.y(d.nqfbel),D=l.next();!D.done;D=l.next())D=D.value,D(K);d.nqfbel=void 0}else d={},d=(d.bevasrs=K,d.nqfbel=void 0,d),D[l]=d};
x_R=function(u){var K=K===void 0?50:K;var l=[];_.rB(u,tfw,6,_.vO()).forEach(function(D){_.tq(D,2)<=K&&l.push(_.tq(D,1))});
return l};
S3H=function(u){var K=K===void 0?50:K;var l=[];_.rB(u,tfw,6,_.vO()).forEach(function(D){_.tq(D,2)>K&&l.push(_.tq(D,1))});
return l};
b0L=function(u){u.then(function(){},function(){})};
xV=function(u){return{fieldType:1,fieldName:u}};
Sb=function(u){return{fieldType:2,fieldName:u}};
_.b2=function(u){return{fieldType:3,fieldName:u}};
O0H=function(){function u(){d[0]=1732584193;d[1]=4023233417;d[2]=2562383102;d[3]=271733878;d[4]=3285377520;G=v=0}
function K(t){for(var x=W,O=0;O<64;O+=4)x[O/4]=t[O]<<24|t[O+1]<<16|t[O+2]<<8|t[O+3];for(O=16;O<80;O++)t=x[O-3]^x[O-8]^x[O-14]^x[O-16],x[O]=(t<<1|t>>>31)&4294967295;t=d[0];var a=d[1],f=d[2],B=d[3],p=d[4];for(O=0;O<80;O++){if(O<40)if(O<20){var V=B^a&(f^B);var m=1518500249}else V=a^f^B,m=1859775393;else O<60?(V=a&f|B&(a|f),m=2400959708):(V=a^f^B,m=3395469782);V=((t<<5|t>>>27)&4294967295)+V+p+m+x[O]&4294967295;p=B;B=f;f=(a<<30|a>>>2)&4294967295;a=t;t=V}d[0]=d[0]+t&4294967295;d[1]=d[1]+a&4294967295;d[2]=
d[2]+f&4294967295;d[3]=d[3]+B&4294967295;d[4]=d[4]+p&4294967295}
function l(t,x){if(typeof t==="string"){t=unescape(encodeURIComponent(t));for(var O=[],a=0,f=t.length;a<f;++a)O.push(t.charCodeAt(a));t=O}x||(x=t.length);O=0;if(v==0)for(;O+64<x;)K(t.slice(O,O+64)),O+=64,G+=64;for(;O<x;)if(C[v++]=t[O++],G++,v==64)for(v=0,K(C);O+64<x;)K(t.slice(O,O+64)),O+=64,G+=64}
function D(){var t=[],x=G*8;v<56?l(M,56-v):l(M,64-(v-56));for(var O=63;O>=56;O--)C[O]=x&255,x>>>=8;K(C);for(O=x=0;O<5;O++)for(var a=24;a>=0;a-=8)t[x++]=d[O]>>a&255;return t}
for(var d=[],C=[],W=[],M=[128],q=1;q<64;++q)M[q]=0;var v,G;u();return{reset:u,update:l,digest:D,digestString:function(){for(var t=D(),x="",O=0;O<t.length;O++)x+="0123456789ABCDEF".charAt(Math.floor(t[O]/16))+"0123456789ABCDEF".charAt(t[O]%16);return x}}};
U_L=function(u,K){K=K===void 0?c8b:K;if(!aYL){var l;u=(l=u.navigator)==null?void 0:l.userAgentData;if(!u||typeof u.getHighEntropyValues!=="function"||u.brands&&typeof u.brands.map!=="function")return Promise.reject(Error("ua"));z9q((u.brands||[]).map(function(d){var C=new e99;C=_.Tj(C,1,d.brand);return _.Tj(C,2,d.version)}));
typeof u.mobile==="boolean"&&_.OQ(R99,2,u.mobile);aYL=u.getHighEntropyValues(K)}var D=new Set(K);return aYL.then(function(d){var C=R99.clone();D.has("platform")&&_.Tj(C,3,d.platform);D.has("platformVersion")&&_.Tj(C,4,d.platformVersion);D.has("architecture")&&_.Tj(C,5,d.architecture);D.has("model")&&_.Tj(C,6,d.model);D.has("uaFullVersion")&&_.Tj(C,7,d.uaFullVersion);return C.serialize()}).catch(function(){return R99.serialize()})};
cO=function(u,K,l,D){this.initialValue_=u;this.maxValue_=K;this.currBaseValue_=this.currValue_=u;this.randomFactor_=l||0;this.backoffFactor_=D||2};
ae=function(u){this.src=u;this.listeners={};this.typeCount_=0};
J8n=function(){for(var u;u=fYq.remove();){try{u.fn.call(u.scope)}catch(K){DH(K)}QEZ.put(u)}Pcq=!1};
_.jE9=function(u){switch(u){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}};
Biq=function(u){switch(u){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""}};
_.pVq=function(){};
Z0Z=function(u,K,l,D,d){u=i0h(Tiy(wVo(new _.zZ(1828,"0"),u),new FT9));K.length&&VfH(u,gDL(new Nib,K));D!==void 0&&(u.destinationUrl=D);d&&u.disableWithCredentials();var C=new k1H(1828,"","",!1,"",u.build());_.eb(C,u);var W=new Re({flush:function(M){try{C.flush(M)}catch(q){l(q)}}});
W.addOnDisposeCallback(function(){setTimeout(function(){try{W.snapshotAndFlush()}finally{C.dispose()}})});
W.invocationLimit=1E5;W.flushInterval=3E4;W.JSC$9714_flushTimer.setInterval(3E4);return W};
UQ=function(){var u,K,l;return(l=(u=globalThis.performance)==null?void 0:(K=u.now)==null?void 0:K.call(u))!=null?l:Date.now()};
m_H=function(u,K){if(u.disable)return new Y3R;var l=K?x_R(K):[],D=u.po,d=u.x1A,C=u.yab,W=u.destinationUrl,M=u.hdq;u=u.g8g;K=K==null?void 0:_.fV(K,A8r,11);var q=q===void 0?50:q;K=(K==null?void 0:_.tq(K,1))||0;D={po:D,uWj:d,rZO:C,destinationUrl:W,hdq:M,g8g:u,disableClearcutCredentialBinding:K>0&&q>=K};l=l===void 0?[]:l;return new XVH(D,l)};
h9y=function(u){if(!u)return null;u=_.Qf(u,2);return u===null||u===void 0?null:CH(u)};
_.EDn=function(u){if(!u)return null;u=_.Qf(u,4);return u===null||u===void 0?null:_.Fz(u)};
KgL=function(u,K){return K?LTh(K):u?u09(u):Promise.resolve()};
LTh=function(u){return new Promise(function(K,l){var D=_.PO("SCRIPT"),d=_.EDn(u);_.$P(D,d);D.onload=function(){_.Jq(D);K()};
D.onerror=function(){_.Jq(D);l(Error("Fa"))};
(jb("HEAD")[0]||document.documentElement).appendChild(D)})};
u09=function(u){return new Promise(function(K){var l=_.PO("SCRIPT");if(u){var D=_.Qf(u,6);D=D===null||D===void 0?null:_.MT(D)}else D=null;_.qT(l,D);(jb("HEAD")[0]||document.documentElement).appendChild(l);_.Jq(l);K()})};
BO=function(u,K,l){var D,d=new Promise(function(C){D=setTimeout(C,K)});
return Promise.race([u.finally(function(){return void clearTimeout(D)}),
d.then(l)])};
l_o=function(u,K){try{return globalThis.sessionStorage.setItem(u,K),!0}catch(l){return!1}};
D7w=function(u,K,l,D){K=K===void 0?0:K;l=l===void 0?u.length:l;var d=0;for(D&&(d=D7w(D));K<l;K++)D=typeof u==="string"?u.charCodeAt(K):u[K],d=SPq(31,d)+D|0;return d};
bTZ=function(u,K){return[D7w(u,0,u.length>>1,K),D7w(u,u.length>>1)]};
OTh=function(u){var K=_.y(bTZ(u,pV));u=K.next().value;K=K.next().value;return u.toString(16)+K.toString(16)};
c9q=function(u,K){var l=bTZ(K);u=new Uint32Array(u.buffer);K=u[0];var D=_.y(l);l=D.next().value;D=D.next().value;for(var d=1;d<u.length;d+=2){for(var C=K,W=d,M=l,q=D,v=0;v<22;v++)W=W>>>8|W<<24,W+=C|0,W^=M+38293,C=C<<3|C>>>29,C^=W,q=q>>>8|q<<24,q+=M|0,q^=v+38293,M=M<<3|M>>>29,M^=q;C=[C,W];u[d]^=C[0];d+1<u.length&&(u[d+1]^=C[1])}};
a_n=function(u,K,l,D,d){var C=(4-(pV.length+l.length)%4)%4,W=new Uint8Array(4+C+pV.length+4+l.length),M=new DataView(W.buffer),q=0;M.setUint32(q,Math.random()*4294967295);q=q+4+C;W.set(pV,q);q+=pV.length;M.setUint32(q,d);W.set(l,q+4);c9q(W,D);return u.insert(K,function(v){return void globalThis.sessionStorage.removeItem(v)})?l_o(K,_.Yp(W))?"s":"t":"i"};
zXq=function(u,K){var l=globalThis.sessionStorage.getItem(u);if(!l)return["m"];try{var D=_.Wa(l);c9q(D,K)}catch(d){return globalThis.sessionStorage.removeItem(u),["c"]}for(K=4;K<7&&D[K]===0;)K++;for(l=0;l<pV.length;l++)if(D[K++]!==pV[l])return globalThis.sessionStorage.removeItem(u),["d"];l=(new DataView(D.buffer)).getUint32(K);return Math.floor(Date.now()/1E3)>=l?(globalThis.sessionStorage.removeItem(u),["e"]):["a",new Uint8Array(D.buffer,K+4)]};
eXo=function(u){return globalThis.TextEncoder?(new TextEncoder).encode(u):_.i2(u)};
RXq=function(u){var K=u,l;return function(){if(K){var D=K;K=void 0;l=D.apply(this,arguments)}return l}};
f_L=function(u){return ZA(function(K){if(K instanceof u)return!0;var l,D,d=K==null?void 0:(l=K.ownerDocument)==null?void 0:(D=l.defaultView)==null?void 0:D[u.name];return U7b(d)&&K instanceof d})};
_.Fd=function(u,K,l){_.TZ.call(this);this.JSC$9929_listener_=u;this.JSC$9929_interval_=K||0;this.handler_=l;this.callback_=(0,_.wB)(this.JSC$9931_doAction_,this)};
_.Vf=function(u){u=QKL(u);return _.Fz(u)};
QKL=function(u){return u===null?"null":u===void 0?"undefined":u};
J9h=function(u){if(u&&u.focus)if(u!==document.activeElement)u.focus();else return PZq(function(){return _.H(function(K){document.activeElement&&document.activeElement.blur();return K.return(PZq(function(){u.focus()}))})})};
_.jKH=function(u){var K=K===void 0?5:K;setTimeout(function(){var l;return _.H(function(D){D.nextAddress==1&&(l=document.activeElement);if(D.nextAddress!=5)return(document.activeElement===l||document.activeElement===document.body)&&K>=0&&u?D.yield(J9h(u),5):D.jumpTo(0);if(document.activeElement===u)return D.return();u=u.parentElement;--K;return D.jumpTo(2)})},15)};
PZq=function(u){return new Promise(function(K){requestAnimationFrame(function(){K(u())})})};
pvw=function(u){if(_.gB)u(_.gB);else{var K;((K=Bv9)!=null?K:Bv9=[]).push(u)}};
kV=function(){!_.gB&&_.Nt&&_.iTL(_.Nt());return _.gB};
_.iTL=function(u){_.gB=u;var K;(K=Bv9)==null||K.forEach(pvw);Bv9=void 0};
_.Zu=function(u){_.gB&&_.gB.beforeLoadModuleCode(u)};
_.YV=function(){_.gB&&_.gB.JSC$10919_setLoaded()};
Aq=function(u){return $SR(u)?Number(u):String(u)};
TvL=function(u){this.action=u;this.wfv=!1};
wvq=function(u,K){TvL.call(this,"set-drive-options");this.appId=u;this.appOrigin=K};
Fgh=function(u){TvL.call(this,"visibility");this.visible=u};
Vgw=function(u,K,l){Xd.call(this,u,K,l)};
gno=function(u){mM.call(this,u)};
NvH=function(u){u=u&&u.getWindow()||window;return u.gadgets&&u.gadgets.rpc};
ZTr=function(u,K){var l=K&&K.getWindow()||window;if(NvH(K))u();else if(kBq)kBq.push(u);else var D=kBq=[u],d=l.setInterval(function(){if(NvH(K)){l.clearInterval(d);for(var C=0;C<D.length;C++)D[C]();kBq=null}},100)};
A9b=function(u,K){var l=new hq(u);_.eb(K,l);var D={passive:!1};K.listen(l,"mousewheel",function(d){return void YPq(u,d)},D).listen(u,"scroll",function(d){return void YPq(u,d)},D)};
YPq=function(u,K){var l;a:{for(l=K.target;l;){if(l.nodeType==1){var D=_.EQ(l,"overflowY");if(D=="auto"||D=="scroll")break a}l=l.parentNode}l=null}if(!l||!_.LV(u,l)||l.scrollHeight==l.clientHeight||K.deltaY>0&&Math.abs(l.scrollTop-(l.scrollHeight-l.clientHeight))<=1||K.deltaY<0&&l.scrollTop==0)K.preventDefault(),K.stopPropagation()};
IZ=function(u,K,l,D,d,C,W,M,q){M=M===void 0?!1:M;q=q===void 0?!1:q;Xd.call(this,void 0,void 0,void 0);Xd.call(this,C?C+" picker modal-dialog":"picker modal-dialog",!0,l);_.ur(u,"protocol");this.iframeManager_=new Xvq;this.targetId_=KI();this.rpcToken_=KI();u=_.lr(u);_.D7(u,"hostId");l=_.D7(u,"parent");this.useGapi_=!q&&!0||(l==null?void 0:l.includes("onepick.corp.google.com"));M&&_.dp(u,"fv2","true");this.setUrl(u.toString());this.preferredDialogWidth_=D;this.preferredDialogHeight_=d;D!==void 0||
d!==void 0?D=!0:(D=_.D7(_.lr(u.toString()),"hostId"),m7R||(m7R=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),D=!m7R.has(D));this.autoSizeDialog_=D;this.JSC$10119_gadgetsDomHelper_=W||this.JSC$10070_dom_;K&&(W=this.JSC$10119_gadgetsDomHelper_,K=_.D7(_.lr(this.JSC$10121_url_),"grugl")=="true"?hXZ:Eny,NvH(W)||(W=W||iQ(document),D=W.createElement("SCRIPT"),_.$P(D,K),D.type="text/javascript",W.JSC$9252_document_.body.appendChild(D)));
u=u.toString();K=null;W=u.indexOf("/picker?");W>-1?K=u.substring(0,W+8-1):IR(u,"/picker")&&(K=u);K&&this.setRelayUrl(K+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(u=this.buttons_,u.JSC$10104_element_=this.buttonEl_,u.render()):_.nH(this.buttonEl_,LgZ),_.CI(this.buttonEl_,!!this.buttons_))};
_.DhL=function(u){var K=K===void 0?uZh:K;var l=_.DA(u),D=function(C){C=_.y(C);C.next();C=y5(C);return K(l,C)},d=function(C){var W=_.y(C);
C=W.next().value;W=y5(W);return u.apply(C,W)};
return function(){var C=_.uY.apply(0,arguments),W=this||_.lL,M=K5r.get(W);M||(M={},K5r.set(W,M));return lq9(M,[this].concat(_.Am(C)),d,D)}};
sn=function(u){var K={};u=u.replace(/\r/g,"").split("\n");for(var l=0;l<u.length;l++){var D=u[l],d=D.indexOf(":");d<0||(K[D.substring(0,d)]=D.substring(d+2,D.length))}return K};
oZ=function(u,K,l){l=l===void 0?function(){}:l;
return u?K():l()};
_.Cnw=function(u){var K;return((K=dho.documentOverride)!=null?K:u).__wizdispatcher};
_.H$=function(u){var K=W$;W$=u;return K};
yPn=function(u){return u===Iqn||(u==null?void 0:u.name)==="\u0275NotFound"};
s$y=function(u,K){var l;if((l=u)==null?0:l.isDisposed)throw Error("kb`"+String(u.debugName));for(;u!==void 0;){l=u;if(l.retrieve)return l.retrieve(K,{optional:!0});u=u.parent}return Iqn};
Mo=function(u){return{"\u0275prov":{providedIn:"root",token:Symbol(u),factory:void 0,value:void 0}}};
_.oLR=function(u){var K=W$;if(!K){switch(u===void 0?4:u){case 0:u=Error("ib");break;case 1:u=Error("jb");break;case 2:u=Error("lb");break;case 3:u=Error("mb");break;default:u=Error("nb")}throw u;}return K};
W5H=function(u){var K=_.H$(u);u={};return u[Symbol.dispose]=function(){_.H$(K)},u};
HUH=function(u,K){u.disposables||(u.disposables=[]);u.disposables.push(K)};
qo=function(u){var K=W$;K&&!K.isDisposed&&(HUH(K,u),u.parent=K)};
qvR=function(u){if(u.disposables){for(var K=_.y(u.disposables),l=K.next();!l.done;l=K.next())l=l.value,typeof l==="function"?l():MGb(l);u.disposables.length=0}};
MGb=function(u){if(!u.isDisposed){u.isDisposed=!0;var K;(K=u[Symbol.dispose])==null||K.call(u);delete u.parent;qvR(u)}};
bUr=function(u){var K={retrieve:function(l){switch(l.\u0275prov.token){case $hq.\u0275prov.token:var D=u.asyncDeps;break;case nLH.\u0275prov.token:D=u.rootElement;break;case rPq.\u0275prov.token:D=u.modelRootElement;break;case vLb.\u0275prov.token:D=u.appContext;break;case G_q.\u0275prov.token:D=u.rendererData;break;case tG9.\u0275prov.token:D=u.injectingConstructor;break;case xhh.\u0275prov.token:D=u.dispatcher}if(D)l=D;else a:{for(D=K.parent;D;){var d=D;if(d.retrieve){l=d.retrieve(l);break a}D=
D.parent}D=l.\u0275prov.token;d=Svo[D];d!==void 0?l=d:(d=l.\u0275prov.providedIn,l.\u0275prov.factory?(l=l.\u0275prov.factory(),D&&d==="root"&&(Svo[D]=l)):l=Iqn)}return l}};
qo(K);return K};
OUq=function(){var u=_.oLR(2),K=s$y(u,vLb);yPn(K)&&(u=s$y(u,xhh),yPn(u)||u.getOptionalAppContext())};
cPh=function(u){if(typeof document!=="undefined"&&document&&document.getElementById&&(u=document.getElementById(u))){var K=u.tagName.toUpperCase();if(K=="SCRIPT"||K=="LINK")return u}return null};
zJh=function(u,K){if((u=u===void 0?"":u)&&K)throw Error("tb");var l="";var D=_.lL._F_jsUrl;(u=K||cPh(u))&&(l=u.src?u.src:u.getAttribute("href"));if(D&&l){if(D!=l)throw Error("ub`"+D+"`"+l);l=D}else l=D||l;if(!aqy(l))throw Error("vb");return l};
fqZ=function(){if(!eJq){eJq=!0;try{var u=zJh(_.lL._F_jsUrl?"":"base-js")}catch(D){return}var K=RJR(Uhn(u)),l=Object.keys(K);l.length!==0&&pvw(function(D){for(var d=_.y(l),C=d.next();!C.done;C=d.next()){C=C.value;for(var W=_.y(Object.keys(K[C])),M=W.next();!M.done;M=W.next())D.addExtraEdge(C,M.value)}})}};
PnH=function(){var u=Object.assign({},Q$y);Object.getOwnPropertyNames(Q$y).forEach(function(K){$T[K]!==void 0&&(u[K]=$T[K])});
return u};
JPq=function(u,K){if($T.enablePerformanceTiming){var l,D;(D=(l=performance).mark)==null||D.call(l,u+"Start__"+K)}};
j$L=function(u,K){if($T.enablePerformanceTiming){var l,D;(D=(l=performance).measure)==null||D.call(l,u+"__"+K,u+"Start__"+K)}};
BlH=function(u,K,l){var D;return u&&K?u+"__"+K:(D=u!=null?u:K)!=null?D:l};
iU9=function(u,K){var l=Object.create(pA9);l.debugName=K;!W$||qo(l);K=_.H$(l);try{u(l)}finally{_.H$(K)}return function(){return void MGb(l)}};
wAw=function(u){return nI(u)&&TlH in u};
F5H=function(u,K){return Object.is(u,K)};
v$=function(u){var K=rp;rp=u;return K};
gLo=function(u){if(Gd)throw Error("Z");if(rp!==null){var K=rp.producersTail;if(K===void 0||K.producer!==u){var l=void 0,D=rp.recomputing;if(D&&(l=K!==void 0?K.nextProducer:rp.producers,l!==void 0&&l.producer===u)){rp.producersTail=l;l.lastReadVersion=u.version;return}var d=u.consumersTail,C;if(!(C=d===void 0||d.consumer!==rp)){if(D){a:{C=rp;D=C.producersTail;if(D!==void 0){C=C.producers;do{if(C===d){D=!0;break a}if(C===D)break;C=C.nextProducer}while(C!==void 0)}D=!1}D=!D}C=D}C&&(D=tg(rp),l={producer:u,
consumer:rp,nextProducer:l,prevConsumer:d,lastReadVersion:u.version,nextConsumer:void 0},rp.producersTail=l,K!==void 0?K.nextProducer=l:rp.producers=l,D&&VGq(u,l))}}};
ZUq=function(u){if(!tg(u)||u.dirty)if(u.dirty||u.lastCleanEpoch!==Nlq)(u.producerMustRecompute(u)||k_H(u))&&u.producerRecomputeValue(u),u.dirty=!1,u.lastCleanEpoch=Nlq};
Yv9=function(u){if(u.consumers!==void 0){var K=Gd;Gd=!0;try{for(var l=u.consumers;l!==void 0;l=l.nextConsumer){var D=l.consumer;D.dirty||(u=void 0,D.dirty=!0,Yv9(D),(u=D.consumerMarkedDirty)==null||u.call(D,D))}}finally{Gd=K}}};
APy=function(){var u;return((u=rp)==null?void 0:u.consumerAllowSignalWrites)!==!1};
XAq=function(u){u&&(u.producersTail=void 0,u.recomputing=!0);return v$(u)};
hJ9=function(u,K){v$(K);if(u){u.recomputing=!1;K=u.producersTail;var l=K!==void 0?K.nextProducer:u.producers;if(l!==void 0){if(tg(u)){do l=mhZ(l);while(l!==void 0)}K!==void 0?K.nextProducer=void 0:u.producers=void 0}}};
k_H=function(u){for(u=u.producers;u!==void 0;u=u.nextProducer){var K=u.producer,l=u.lastReadVersion;if(l!==K.version)return!0;ZUq(K);if(l!==K.version)return!0}return!1};
VGq=function(u,K){var l=u.consumersTail,D=tg(u);l!==void 0?(K.nextConsumer=l.nextConsumer,l.nextConsumer=K):(K.nextConsumer=void 0,u.consumers=K);K.prevConsumer=l;u.consumersTail=K;if(!D)for(u=u.producers;u!==void 0;u=u.nextProducer)VGq(u.producer,u)};
mhZ=function(u){var K=u.producer,l=u.nextProducer,D=u.nextConsumer,d=u.prevConsumer;u.nextConsumer=void 0;u.prevConsumer=void 0;D!==void 0?D.prevConsumer=d:K.consumersTail=d;if(d!==void 0)d.nextConsumer=D;else if(K.consumers=D,!tg(K))for(u=K.producers;u!==void 0;)u=mhZ(u);return l};
tg=function(u){return u.consumerIsAlwaysLive||u.consumers!==void 0};
L5b=function(u){var K=Object.create(ELq);K.computation=u;u=function(){ZUq(K);gLo(K);if(K.value===xT)throw K.error;return K.value};
u[S9]=K;return u};
DmR=function(u,K){var l=Object.create(um9);l.value=u;K!==void 0&&(l.equal=K);u=function(){gLo(l);return l.value};
u[S9]=l;return[u,function(D){return K0q(l,D)},
function(D){APy()||ls9(l);K0q(l,D(l.value))}]};
K0q=function(u,K){APy()||ls9(u);if(!u.equal(u.value,K)){u.value=K;u.version++;Nlq++;Yv9(u);var l;(l=dmq)==null||l(u)}};
br=function(u){var K=v$(null);try{return u()}finally{v$(K)}};
_.On=function(u,K,l){l=l===void 0?"":l;u=DmR(u,K==null?void 0:K.equals);var D=u[0],d=D[S9];d.debugName=BlH(K==null?void 0:K.debugName,l,"[signal]");if(!$T.enablePerformanceTiming)return u;var C=u[1],W=u[2];return[D,function(M){CPZ(function(){return void C(M)},d)},
function(M){CPZ(function(){return void W(M)},d)}]};
CPZ=function(u,K){JPq("signalSet",K.debugName);try{u()}finally{j$L("signalSet",K.debugName)}};
yV9=function(u,K){var l=_.y(_.On(u,void 0,"cPpJzc"));u=l.next().value;l=l.next().value;u[Isq]=l;u[c$]=K;return u};
sLh=function(u){return!!u&&typeof u==="object"&&Object.getPrototypeOf(u)===Object.prototype};
oEH=function(u){return typeof u==="function"&&Isq in u&&typeof u[Isq]==="function"};
W0H=function(u,K){Object.defineProperty(u,c$,{get:function(){return K}})};
zd=function(u,K){if(aZ(u)){var l=u.map(function(C){return zd(C,K)});
W0H(l,K);return l}if(sLh(u)){l={};u=_.y(Object.entries(u));for(var D=u.next();!D.done;D=u.next()){var d=_.y(D.value);D=d.next().value;d=d.next().value;l[D]=zd(d,K)}W0H(l,K);return l}return yV9(u,K)};
HpH=function(u){if(aZ(u))return u.map(function(d){return HpH(d)});
if(sLh(u)){var K={};u=_.y(Object.entries(u));for(var l=u.next();!l.done;l=u.next()){var D=_.y(l.value);l=D.next().value;D=D.next().value;K[l]=HpH(D)}return K}return oEH(u)?u():u};
q5H=function(){var u={height:0,width:0};if(!sLh(u))throw Error("Hb");var K=Symbol("Ib");return[zd(u,K),function(l,D){if(l[c$]===K)if(typeof D==="function"){var d=[].concat(_.Am(HpH(l)));D=D(d)||d;MHo(l,[].concat(_.Am(D)))}else MHo(l,D);else throw Error("Jb");}]};
MHo=function(u,K){if(oEH(u))u[Isq](K);else if(aZ(u)&&aZ(K))K=zd(K,u[c$]),u.length=0,u.push.apply(u,_.Am(K));else if((sLh(u)||aZ(u))&&(aZ(K)||typeof K==="object"&&K!==null)){K=_.y(Object.entries(K));for(var l=K.next();!l.done;l=K.next()){var D=_.y(l.value);l=D.next().value;D=D.next().value;var d=u,C=d[l];Object.hasOwn(u,l)?MHo(C,D):d[l]=zd(D,u[c$])}}else throw Error("Kb");};
$mH=function(u){return Object.create(Object.assign({},e9,u))};
rVZ=function(){var u;return(u=nEZ)!=null?u:nEZ=$mH({consumerAllowSignalWrites:!0})};
_.RZ=function(u,K,l){l=l===void 0?"":l;u=L5b(u);var D=u[S9];D.debugName=BlH(K==null?void 0:K.debugName,l,"[computed]");(K==null?void 0:K.equals)!=null&&(D.equal=K.equals);return u};
Un=function(u){var K=v$(vEq);try{u()}finally{v$(K)}};
Opw=function(u){if(!u.isDisposed)switch(u.effectType){case fI:GrH.schedule(u);break;case tHq:xmy.schedule(u);break;case S5y:bpq.schedule(u);break;default:_.o2(u.effectType)}};
aso=function(u){cVq.push(u);return function(){var K=cVq.indexOf(u);K!==-1&&cVq.splice(K,1)}};
ear=function(){if(Q5>0)$T.flushRenderEffectsDuringRender&&GrH.flush();else for(var u=_.y(zaH),K=u.next();!K.done;K=u.next())K.value.flush()};
UmL=function(u){P$=!0;try{for(var K=_.y(u),l=K.next();!l.done;l=K.next()){for(var D=l.value,d=[D],C=D;C.parent!==void 0;)C=C.parent,Rab(C)&&u.has(C)&&d.push(C);for(;d.length>0;){var W=d.pop();u.delete(W);W.run()}}}finally{P$=!1}};
j9=function(u){Q5--;if(u){u=_.y(zaH);for(var K=u.next();!K.done;K=u.next())K.value.clear()}else Q5>0||P$&&!$T.flushRenderEffectsDuringRender||ear()};
QLH=function(u,K,l){var D=fsZ(u);B$={name:l?D+" ("+l+")":D,isReactive:u.componentType!==pI,parent:B$};u=K();B$=B$.parent;return u};
ir=function(){var u=B$;return u?u.isReactive:!1};
V5=function(u,K,l){var D=B$;K&&(B$=K);try{return l==null?u():u.call(l)}catch(C){u=C;FL(u,B$);if(u!==PPH){JVZ=B$;K=[];for(l=W$;l;){var d=void 0;K.push((d=l.debugName)!=null?d:"[context]");d=void 0;l=(d=l.parent)!=null?d:null}jLn=K.reverse()}PPH=u;throw u;}finally{B$=D}};
FL=function(u,K){try{var l=B2n(K);if(l&&!u.componentStack&&(u.componentStack=l,$T.enableComponentStacksInErrorMessages)){var D=u.message+"\n\nComponent stack: "+l;u.stack&&(u.stack=u.stack.replace(u.message,D));u.message=D}}catch(d){}};
B2n=function(u){if(nI(u)&&u.name!==void 0&&u.isReactive!==void 0&&u.parent!==void 0||u===null){for(var K=0,l="";K<20&&u;)l+=u.name+" > ",u=u.parent,K++;u=l.slice(0,-3)}else if($T.enableContextBasedComponentStacks){a:{for(u=u===void 0?W$:u;u;){if(wAw(u))break a;K=void 0;u=(K=u.parent)!=null?K:null}u=null}u=u.getComponentStack().slice(0,20).join(" > ")}else u="";return u};
fsZ=function(u){return u.debugName||u.name||"[component]"};
pun=function(u,K,l){K=Object.create(K);u&&(K.effectFn=u);l&&(K.debugName=l);qo(K);K.componentStack=B$;return K};
_.gp=function(u,K){u=pun(u,ipq,K);Opw(u)};
_.No=function(u){var K=W$;if(K){var l=B$;HUH(K,function(){var D=v$(rVZ());try{V5(function(){return void u()},l)}catch(d){throw $T.enableContextBasedComponentStacks&&FL(d),d;
}finally{v$(D)}})}};
kT=function(u,K){var l={};(K===void 0||K)&&qo(l);K=_.H$(l);try{u(l)}finally{_.H$(K)}return function(){return void MGb(l)}};
_.Z7=function(u){return typeof u==="function"?u():(u==null?0:u[T2q])?u.get():u};
_.Ag=function(u,K){u=pun(u,wuL,K);Opw(u)};
F0q=function(u){if(W$)throw Error("ob");kT(u,!1)};
XL=function(u,K){u=_.H$(u);try{return br(K)}finally{_.H$(u)}};
mt=function(u,K){var l=B2n(JVZ),D,d;var C=(d=(D=jLn)==null?void 0:D.slice())!=null?d:[];K={componentStack:l,contextTrace:C,errorSeverity:3,featureFlags:PnH(),tagName:K};return[u,K]};
N2b=function(u,K,l){if(Object.hasOwnProperty.call(VHL,u)&&(u=VHL[u],Object.hasOwnProperty.call(u,K)&&(u=u[K],u instanceof Array))){for(var D=null,d=!1,C=0,W=u.length;C<W;++C){var M=u[C],q=M.contingentAttribute;if(!q)return M.contract;D===null&&(D={});q=Object.hasOwnProperty.call(D,q)?D[q]:D[q]=l(q);if(q===M.requiredValue)return M.contract;q==null&&(d=!0)}if(d)return null}K=gEZ[K];return typeof K==="number"?K:null};
Y5o=function(u,K,l){var D=null;(u=kro[u])&&(D=u[K]);return typeof D!=="number"&&((u=kro["*"])&&(D=u[K]),typeof D!=="number")?!1:!0===Zp9[D][String(l).toLowerCase()]};
Xun=function(u,K){K=N2b(u.toLowerCase(),K,function(){var D;(D=$T.handleError)==null||D.call.apply(D,[$T].concat(_.Am(mt(Error("Pb"),u.toLowerCase()))))});
if(K===null)return null;var l;return(l=AVh[K])!=null?l:null};
mmr=function(u,K,l){if(l===null||l===void 0)return l;K=K.toLowerCase();u=Xun(u,K);return u===null?l:u(K,l)};
haZ=function(){};
hg=function(u,K){for(;u.length>K;)u.pop()};
EEo=function(u){u=Array(u);hg(u,0);return u};
En=function(u,K,l){if(l==null)u.removeAttribute(K);else{var D;(D=K.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":K.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?u.setAttributeNS(D,K,l):u.setAttribute(K,l)}};
L0H=function(u,K,l){u[K]=l};
KYL=function(u,K,l){u=u.style;if(typeof l==="string")u.cssText=l;else{u.cssText="";for(var D in l)if(u3L.call(l,D)){K=u;var d=D,C=l[D];d.indexOf("-")>=0?K.setProperty(d,C):K[d]=C}}};
lhq=function(u,K,l){var D=typeof l;D==="object"||D==="function"?u[K]=l:En(u,K,l)};
DPH=function(){var u=new haZ;u[LI.default]=lhq;u.style=KYL;return u};
dPL=function(u,K,l,D){(D[K]||D[LI.default])(u,K,l)};
Ihb=function(u,K,l){K=new Cyo(K,l);return u.__incrementalDOMData=K};
uc=function(u,K){if(u.__incrementalDOMData)return u.__incrementalDOMData;var l=u.nodeType===1?u.localName:u.nodeName,D=u.nodeType===1?u.getAttribute("key"):null;K=Ihb(u,l,u.nodeType===1?D||K:null);if(u.nodeType===1&&(u=u.attributes,l=u.length)){D=K._attrsArr||(K._attrsArr=EEo(l*2));for(var d=0,C=0;d<l;d+=1,C+=2){var W=u[d],M=W.value;D[C]=W.name;D[C+1]=M}}return K};
yph=function(u,K,l,D,d){return K==l&&D==d};
s9R=function(u){for(var K=K0,l=lc();l!==u;){var D=l.nextSibling;K.removeChild(l);DY.deleted.push(l);l=D}};
lc=function(){return di?di.nextSibling:K0.firstChild};
C0=function(){di=lc()};
HiZ=function(u,K,l){C0();var D;a:{if(D=di){do{var d=D,C=u,W=K,M=uc(d,W);if(ofb(d,C,M.nameOrCtor,W,M.key))break a}while(K&&(D=D.nextSibling))}D=null}D||(u==="#text"?(l=IE.createTextNode(""),Ihb(l,"#text",null),u=l):(D=IE,d=K0,typeof u==="function"?D=new u:D=(d=u==="svg"?"http://www.w3.org/2000/svg":u==="math"?"http://www.w3.org/1998/Math/MathML":d==null||uc(d).nameOrCtor==="foreignObject"?null:d.namespaceURI)?D.createElementNS(d,u):D.createElement(u),Ihb(D,u,K),u=D,l&&u.setAttribute("nonce",l)),DY.created.push(u),
D=u);l=D;if(l!==di){if(WYq.indexOf(l)>=0)for(u=K0,K=l.nextSibling,D=di;D!==null&&D!==l;)d=D.nextSibling,u.insertBefore(D,K),D=d;else K0.insertBefore(l,di);di=l}};
MBZ=function(u,K,l){HiZ(u,K,l);K0=di;di=null;return K0};
q6L=function(){s9R(null);di=K0;K0=K0.parentNode};
yI=function(){di=K0.lastChild};
rp9=function(u,K){K=K===void 0?{}:K;var l=K.matches===void 0?yph:K.matches;return function(D,d,C){var W=DY,M=IE,q=WYq,v=s3,G=oE,t=di,x=K0,O=ofb;IE=D.ownerDocument;DY=new $Pq(D);ofb=l;s3=[];oE=[];di=null;var a=K0=D.parentNode,f,B=nfL.call(D);if((f=B.nodeType===11||B.nodeType===9?B.activeElement:null)&&D.contains(f)){for(B=[];f!==a;)B.push(f),f=f.parentNode||(a?f.host:null);a=B}else a=[];WYq=a;try{return u(D,d,C)}finally{D=DY,WV&&D.deleted.length>0&&WV(D.deleted),IE=M,DY=W,ofb=O,s3=v,oE=G,di=t,K0=x,
WYq=q}}};
vf9=function(u,K,l,D){HV.push(dPL);HV.push(u);HV.push(K);HV.push(l);HV.push(D)};
tBq=function(u,K,l){var D=oE;K=K._attrsArr||(K._attrsArr=EEo(D.length));for(var d=!K.length||!1,C=0;C<D.length;C+=2){var W=D[C];if(d)K[C]=W;else if(K[C]!==W)break;var M=D[C+1];if(d||K[C+1]!==M)K[C+1]=M,vf9(u,W,M,l)}if(C<D.length||C<K.length){for(C=d=C;C<K.length;C+=2)M_[K[C]]=K[C+1];for(C=d;C<D.length;C+=2)d=D[C],W=D[C+1],M_[d]!==W&&vf9(u,d,W,l),K[C]=d,K[C+1]=W,delete M_[d];hg(K,D.length);for(var q in M_)vf9(u,q,void 0,l),delete M_[q]}u=G9Z;G9Z=l=HV.length;for(q=u;q<l;q+=5)(0,HV[q])(HV[q+1],HV[q+
2],HV[q+3],HV[q+4]);G9Z=u;hg(HV,u);hg(D,0)};
q_=function(u){HiZ("#text",null);var K=di;var l=uc(K);if(l.text!==u){l=l.text=u;for(var D=1;D<arguments.length;D+=1)l=(0,arguments[D])(l);K.data!==l&&(K.data=l)}};
z5y=function(u,K,l){if(l===!1&&xPy.has(K))En(u,K,null);else if(K!=="idomKey"&&K!=="skip"&&K!=="skipchildren"&&K!=="children"&&K!=="el")if(K.startsWith("on")){if(K[2]!==":")throw Error("Ob`"+K);if(l===void 0||l===null){var D;(D=$T.handleError)==null||D.call.apply(D,[$T].concat(_.Am(mt(Error("Tb`"+K),u.tagName))));u[K]=void 0}else{var d=K.slice(3);D=ir();if(d==="jsaction"){l=Array.isArray(l)?l:[l];l=_.y(l);for(var C=l.next();!C.done;C=l.next()){C=C.value;if(typeof C!=="object"||C===null||typeof C.selfReg!==
"function")throw Error("Wb`"+K);C.selfReg(0,u,D?_.No:function(){})}}else{if(typeof l!=="object"||l===null)throw Error("Ub`"+K+"`"+typeof l);
if(typeof l.getFn!=="function")throw Error("Vb`"+K+"`"+Object.keys(l));if(l.selfReg)l.selfReg(0,u,d,D?_.No:function(){});
else if(D&&u["on"+d]===void 0){var W=l.getFn(0);u.addEventListener(d,W);_.No(function(){return void u.removeEventListener(d,W)})}else if(D||!S6r.includes(d))u["on"+d]=l.getFn(0)}}}else{if(K.startsWith("data-")&&typeof l==="string")try{l=bir(l)}catch(M){l="zSoyz"}typeof l!=="function"||u._disposeEffects!=null?((D=K.startsWith("prop:"))&&(K=K.slice(5)),$T.enableAttributeSanitization&&(D&&OiL(u.tagName)||(l=mmr(u.tagName,K,l))),K==="style"?("function"==typeof _.n0&&l instanceof _.n0&&(l=l.toString()),
cp9(u,K,l)):D?u[K]=l:ahy(u,K,l)):(u._signalProps||(u._signalProps=[]),u._signalValues||(u._signalValues=[]),u._signalProps.push(K))}};
e5R=function(u,K,l){l=(l===void 0?{}:l).isReactive;if(K==null?0:K.el){var D=K.el;if(typeof D==="function")D(u);else{var d;(d=D.onRender)==null||d.call(D,u);u._disposeRef||(u._disposeRef=function(){var C;(C=D.onUnmount)==null||C.call(D);delete u._disposeRef},l&&_.No(function(){var C;
(C=u._disposeRef)==null||C.call(u)}))}}};
OiL=function(u){return u.length>0&&u.includes("-")&&!R5n.includes(u.toLowerCase())};
UPo=function(u){return nI(u)&&ri in u};
fho=function(u){return UPo(u)?u[ri].flattened:u};
Q9h=function(u,K){var l=_.uY.apply(2,arguments),D;K=(D=K)!=null?D:{};D={};return D.type=u,D.props=K,D.children=l,D[vV]=!0,D};
_.G1=function(u){return u.children};
t8=function(u){var K=PyR!==Q9h;PyR=u?Jpr:Q9h;return K};
_.xD=function(u){return _.Ks(u)?"nodeType"in u:!1};
Sf=function(){return document.createTextNode("")};
bc=function(u){u=document.createTextNode(String(u));u._isSignalTextNode=!0;return u};
B_R=function(u){return u!=null&&u.contentKind===O3||u instanceof dm||j9R(u)};
p4H=function(u){var K=document.createElement("div");if(j9R(u)&&h9y(u))_.nH(K,h9y(u));else if(u instanceof dm)_.nH(K,u);else if(u!=null&&u.contentKind===O3){if(u.contentKind!==O3)throw Error("Sb");u=CH(u.toString());_.nH(K,u)}u=_.y(K.childNodes);for(var l=u.next();!l.done;l=u.next())l.value._isSafeOrSanitizedHtmlNode=!0;return K};
cV=function(u){u=typeof u;return u==="string"||u==="number"||u==="boolean"};
iiL=function(u){return u instanceof wb||Zk(u)||"function"==typeof _.GG&&u instanceof _.GG||"function"==typeof _.n0&&u instanceof _.n0};
T_R=function(u,K){var l=u.parentElement;if(!l)return K;l.replaceChild(K,u);return K};
w4q=function(u,K){var l=u[0].parentElement;if(l)if(u[0].previousSibling||u[u.length-1].nextSibling){l.insertBefore(K,u[0]);for(var D=u.length-1;D>=0;D--)l.removeChild(u[D])}else l.textContent="",l.appendChild(K);return K};
FYR=function(u,K){if(u[0].parentElement)for(var l=u[0].parentElement,D=K.length,d=u.length,C=D,W=0,M=0,q=u[d-1].nextSibling,v=null;W<d||M<C;)if(u[W]===K[M])W++,M++;else{for(;u[d-1]===K[C-1];)d--,C--;if(d===W)for(var G=C<D?M?K[M-1].nextSibling:K[C-M]:q;M<C;){var t=K[M++];l.insertBefore(t,G)}else if(C===M)for(;W<d;)G=u[W],v&&v.has(G)||l.removeChild(G),W++;else if(u[W]===K[C-1]&&K[M]===u[d-1])G=u[--d].nextSibling,l.insertBefore(K[M++],u[W++].nextSibling),l.insertBefore(K[--C],G),u[d]=K[C];else{if(!v)for(v=
new Map,G=M;G<C;)v.set(K[G],G++);G=v.get(u[W]);if(G==null)l.removeChild(u[W]),W++;else if(M<G&&G<C){t=W;for(var x=1,O=void 0;++t<d&&t<C&&(O=v.get(u[t]))!=null&&O===G+x;)x++;if(x>G-M)for(t=u[W];M<G;)l.insertBefore(K[M++],t);else l.replaceChild(K[M++],u[W++])}else W++}}return K};
gfo=function(u){if(Array.isArray(u)){if(u.length>1)throw Error("ec`"+u.length+"`"+u.map(VBn).join(", "));u=u[0]}if(u==null)return null;if(!(u instanceof _.WZ)){var K,l;if((K=window)==null?0:(l=K.trustedTypes)==null?0:l.isScript(u))throw Error("dc");if(String(u).trim().length===0)return null;throw Error("fc`"+VBn(u));}return u};
N_q=function(u,K){K=gfo(K);K!==null&&_.qT(u,K)};
k9H=function(u){if(Array.isArray(u)){if(u.length>1)throw Error("gc`"+u.length+"`"+u.map(VBn).join(", "));u=u[0]}if(u==null)return null;if(!XrR(u)){if(String(u).trim().length===0)return null;throw Error("hc`"+VBn(u));}return u};
ZiL=function(u,K){K=k9H(K);K!==null&&(u.textContent=_.m9L(K))};
VBn=function(u){return"("+typeof u+") "+(u!=null&&typeof u==="object"?u.constructor.name:typeof u)+" "+u};
Y6y=function(){};
ef=function(u,K){K=K===void 0?{}:K;var l=Apn();$T.legacyTriggerSoyRendererEvents&&OUq();_.Ag(function(){aE.setUp();K.isControlFlowComponent&&Q5++;var D=l[0],d=l[ri].flattened,C=t8(!0);try{var W=u(),M=X4o(D,W,l);Array.isArray(M)||(l[ri].flattened=[M]);var q=l[ri].flattened;if(d&&(!Array.isArray(d)||d.length!==0)){var v=Array.isArray(d)?d[0]:d,G=v[z1],t=v._disposeEffects;v._disposeEffects=void 0;v=Array.isArray(q)?q[0]:q;v[z1]=G;v[z1]&&(v[z1].numNodes=v===q?1:q.length);v._disposeEffects=t}l[0]=M;K.isControlFlowComponent&&
j9(!1)}catch(x){throw K.isControlFlowComponent&&j9(!0),x;}finally{t8(C),aE.tearDown()}},K.debugName);
return l};
X4o=function(u,K,l){for(;typeof K==="function";)K=K();if(K!=null&&K[vV]){var D,d,C;(C=$T.handleError)==null||C.call.apply(C,[$T].concat(_.Am(mt(Error("ic`"+((D=K.type)==null?void 0:D.TAG_NAME)),(d=K.type)==null?void 0:d.TAG_NAME))))}if(u==null)return K==null?Sf():cV(K)?bc(K):iiL(K)?bc(K.toString()):_.xD(K)?K:K.length===0?Sf():mPy(K,l);if(_.xD(u)){if(K==null)return T_R(u,Sf());if(cV(K))return h5n(u,K);if(iiL(K))return h5n(u,K.toString());if(_.xD(K))return T_R(u,K);if(K.length===0)return T_R(u,Sf());
K=mPy(K,l);FYR([u],l[ri].flattened);return K}u=RE(u);if(K==null)return w4q(u,Sf());if(cV(K))return w4q(u,bc(K));if(iiL(K))return w4q(u,bc(K.toString()));if(_.xD(K))return FYR(u,[K])[0];if(K.length===0)return w4q(u,Sf());K=mPy(K,l);FYR(u,l[ri].flattened);return K};
h5n=function(u,K){u.nodeType===Node.TEXT_NODE?u.textContent!==String(K)&&(u.textContent=String(K)):u=T_R(u,bc(K));return u};
RE=function(u,K,l){return EfZ(u,K!=null?K:[],l===void 0?!1:l)};
mPy=function(u,K){var l=RE(u,void 0,!0);if(l.length===0)return Sf();K[ri].flattened=l;return u};
EfZ=function(u,K,l,D,d){K=K===void 0?[]:K;l=l===void 0?!1:l;d=d===void 0?-1:d;if(u==null)return K;if(u instanceof U3){var C=u.render();return EfZ(C,K,l,D,d)}if(_.xD(K)&&K.nodeType===Node.ELEMENT_NODE)switch(K.tagName){case "SCRIPT":N_q(K,u);return;case "STYLE":ZiL(K,u);return}cV(u)&&(u=bc(u),D&&l&&(D[d]=u));if(B_R(u)){l=p4H(u);l=Array.from(l.childNodes);l=_.y(l);for(C=l.next();!C.done;C=l.next())LYy(K,C.value);return K}iiL(u)&&(u=bc(u.toString()),D&&l&&(D[d]=u));if(_.xD(u))return LYy(K,u);if(Array.isArray(u)){for(C=
0;C<u.length;C++)EfZ(u[C],K,l,u,C);return K}if(typeof u==="function"){C=ef(function(){var M=u();return M!=null&&!cV(M)&&B_R(M)?(M=p4H(M),Array.from(M.childNodes)):M},{debugName:"qmF2ne",
debugFn:u})[0];if(Array.isArray(C)){l=_.y(C);for(C=l.next();!C.done;C=l.next())LYy(K,C.value);return K}D&&l&&(D[d]=C);return LYy(K,C)}if(u!=null&&u[vV]){D=u;d=t8(!0);var W=PyR;try{C=W.apply(null,[D.type,D.props].concat(_.Am(D.children)))}finally{t8(d)}return EfZ(C,K,l)}(W=$T.handleError)==null||W.call.apply(W,[$T].concat(_.Am(mt(Error("jc")))));return K};
Apn=function(u){var K={};K=Object.assign([],(K[ri]={flattened:[]},K));if(!u)return K;K[0]=mPy(u,K);return K};
LYy=function(u,K){Array.isArray(u)?u.push(K):u.appendChild(K);return u};
f0=function(u){if(!$T.enableLazyTsx)return u;if(Array.isArray(u)){for(var K=0;K<u.length;K++)u[K]=f0(u[K]);return u}return u instanceof U3?(u=u.render(),f0(u)):u};
Kqq=function(u,K){var l,D,d=fsZ(u),C=function(O){D=O;O=t8(!0);var a=v$(QI);JPq("render",d);try{l=f0(u(K))}finally{j$L("render",d),v$(a),t8(O)}};
C=$T.enableContextPerComponent?iU9(C,d):kT(C,$T.alwaysTrackContexts||!!W$);wAw(D);if(!K.renderedFromIdom){var W=_.H$(D);try{return uXh(u,K,l),l}finally{_.H$(W)}}!UPo(l)&&Array.isArray(l)&&(l=Apn(l));var M=fho(l);W=Array.isArray(M)?M[0]:M;var q=!1;if(W){var v,G=(v=K==null?void 0:K.idomKey)!=null?v:u;v=M!==W;W._disposeEffects=C;var t=W[z1]||{},x=UPo(l)?l:t.sourceDynamicRange;Object.assign(t,{key:G,numNodes:v?M.length:1,context:D,higherOrder:!!W[z1],sourceDynamicRange:x});W[z1]=t}else q=!0;(function(){var O=
_.H$(D);try{uXh(u,K,M)}finally{_.H$(O)}})();
q&&C();return l};
l89=function(u){var K={},l;for(l in u)K={prev$jscomp$23:void 0,next$jscomp$33:void 0},K.prev$jscomp$23=PV[l],K.next$jscomp$33=u[l],PV[l]=function(D){return function(){var d=_.uY.apply(0,arguments);D.prev$jscomp$23.apply(null,_.Am(d));D.next$jscomp$33.apply(null,_.Am(d))}}(K)};
DNH=function(){if(ir())throw Error("kc");return J8};
dNq=function(u,K){if(!u.__unmounted&&K){u.__unmounted=!0;try{u.didUnmount()}catch(d){var l,D;(D=$T.handleError)==null||D.call.apply(D,[$T].concat(_.Am(mt(d,(l=u.JSC$10145___type)==null?void 0:l.TAG_NAME))))}PV.didUnmount(u);u.el=null;K.__instance&&delete K.__instance}};
I8n=function(u,K,l){u._signalProps!=null&&u._disposeEffects==null&&((l===void 0?0:l)?u._disposeEffects=kT(function(){return void C0L(u,K)},$T.alwaysTrackContexts||!!W$):C0L(u,K))};
C0L=function(u,K){_.Ag(function(){for(var l=u._signalProps,D=u._signalValues,d=0;d<l.length;d++){var C=l[d],W=K[C]();D[d]!==W&&(D[d]=W,z5y(u,C,W))}},"e3YVbb")};
yCq=function(u,K,l){var D,d=[];u._disposeEffects=kT(function(){_.Ag(function(){var C=l();if(C===null||C===void 0)C="";if(cV(C)||C===null)D!=null||(D=document.createTextNode("")),D.parentNode!==u&&(D._isSignalTextNode=!0,u.insertBefore(D,K)),D.textContent=String(C);else if(B_R(C)){for(var W=d.length>0?d[d.length-1].nextSibling:K,M=_.y(d),q=M.next();!q.done;q=M.next())u.removeChild(q.value);C=p4H(C);d=Array.from(C.childNodes);C=_.y(d);for(M=C.next();!M.done;M=C.next())u.insertBefore(M.value,W)}else throw q=
(M=(W=B$)==null?void 0:W.name)!=null?M:"unknown",Error("$b`"+q+"`"+typeof C);},"VvDgC")},$T.alwaysTrackContexts||!!W$)};
WqL=function(u,K){var l=_.uY.apply(2,arguments);K!=null||(K={});return!$T.enableLazyTsx||B$!=null&&!ir()?sNo(u,K,l):new orq(u,K,l)};
sNo=function(u,K,l){if(u===_.G1)return l;if(typeof u==="function")return B$&&!ir()&&(K.renderedFromIdom=!0),QLH(u,function(){var C=Hnq(u,K,l);if(C)return C;l.length>0&&(K.children=l.length===1?l[0]:l);if(u.componentType===pI){var W;iU9(function(){var M=K;if(u.componentType!==pI)W=!1;else{M||(M={});var q=new jf(M,u),v=v$(QI);try{var G=q.render(M)}finally{v$(v)}G instanceof HTMLElement?(G.__instance=q,q.el=G,q.JSC$10145___type=u,u.TAG_NAME=G.tagName.toLowerCase(),PV.didPatch(q),W=G):W=G}},u.name);
if(W)return W}return Kqq(u,K)},K.debugInstance);
var D=MR9(u,K),d;for(d in K)z5y(D,d,K[d]);I8n(D,K);RE(l,D);e5R(D,K,{isReactive:!0});qWr(D,K);return D};
MR9=function(u,K){u=($Nn.has(u.toLowerCase())?0:nrR.has(u.startsWith("svg:")?u.replace("svg:",""):u))?document.createElementNS("http://www.w3.org/2000/svg",u.startsWith("svg:")?u.replace("svg:",""):u):rCb(u,K)||document.createElement(u);u[vrb]=!0;return u};
GSZ=function(u){if(u){var K;(K=u._disposeRef)==null||K.call(u);var l;(l=u._disposeEffects)==null||l.call(u);u.__instance&&u.__instance instanceof BV&&(K=u.__instance,dNq(K,u),K instanceof jf&&K.disposeEffects());for(K=0;K<u.childNodes.length;K++)GSZ(u.childNodes[K])}};
xN9=function(u){tRh.push(u)===1&&requestAnimationFrame(function(){setTimeout(function(){var K=[].concat(_.Am(tRh));tRh=[];K=_.y(K);for(var l=K.next();!l.done;l=K.next()){l=l.value;try{for(var D=0;D<l.length;D++)GSZ(l[D])}catch(d){D=l=void 0,(D=(l=$T).handleError)==null||D.call.apply(D,[l].concat(_.Am(mt(d))))}}})})};
_.n=function(u,K){return PyR.apply(null,[u,K].concat(_.Am(_.uY.apply(2,arguments))))};
SWq=function(u,K){K=K===void 0?new Map:K;u=_.y(u);for(var l=u.next();!l.done;l=u.next())if(l=l.value,!K.has(l)){for(var D=[],d=l.producers;d!==void 0;d=d.nextProducer)D.push(d.producer);K.set(l,D);SWq(D,K)}return K};
_.r=function(u){var K=u.cond;if(K===void 0)return u.else&&u.else();var l=_.RZ(function(){return!!K()},void 0,"JHVi8"),D=function(){var d=K();
if(!d){var C;(C=$T.handleError)==null||C.call.apply(C,[$T].concat(_.Am(mt(bny.nonNullableCondIsNull()))))}return d};
return ef(function(){var d=l(),C;kT(function(){var W=v$(QI);try{C=f0(d?u.then(D):u.else&&u.else())}finally{v$(W)}},!0);
return C},{debugName:u.debugInstance,
debugFn:u.then,isControlFlowComponent:!0})};
On9=function(u){return _.r(u)};
_.p0=function(u){return u.keyBy==="INDEX"?cCb(u):a8y(u)};
zSy=function(u){u=_.y(u);for(var K=u.next();!K.done;K=u.next()){var l=void 0;(l=K.value)==null||l()}};
a8y=function(u){var K=u.keyBy===void 0||u.keyBy==="REFERENCE",l=K?function(G){return G}:u.keyBy,D=[],d=[],C=[],W=[],M=[],q=[],v=!0;
_.No(function(){zSy(W)});
return ef(function(){var G=u.each(),t=G.length;if(t===0){if(D.length===0&&!v)return C;zSy(W);D=G;d=[];for(G=0;G<D.length;G++)d.push(l(D[G]));C=[];W=[];M=[];q=[];u.fallback&&(W[0]=eSn(function(){C[0]=f0(u.fallback())}));
v=!1;return C}for(var x=new RSR,O=D.length-1;O>=0;O--)x.push(d[O],O);O=Array(t);for(var a=Array(t),f=Array(t),B=Array(t),p=Array(K?0:t),V={i$jscomp$445:0};V.i$jscomp$445<t;V={i$jscomp$445:V.i$jscomp$445,item$jscomp$103:void 0,key$jscomp$550:void 0},V.i$jscomp$445++){V.item$jscomp$103=G[V.i$jscomp$445];V.key$jscomp$550=l(V.item$jscomp$103);var m=x.pop(V.key$jscomp$550);m!=null?(f[V.i$jscomp$445]=C[m],a[V.i$jscomp$445]=d[m],O[V.i$jscomp$445]=W[m],B[V.i$jscomp$445]=M[m],K||(p[V.i$jscomp$445]=q[m]),Un(function(Z){return function(){B[Z.i$jscomp$445](Z.i$jscomp$445);
if(!K)p[Z.i$jscomp$445](Z.item$jscomp$103)}}(V)),delete W[m]):O[V.i$jscomp$445]=eSn(function(Z){return function(){var A=_.y(_.On(Z.i$jscomp$445,void 0,"Fqk1zd")),h=A.next().value;
A=A.next().value;B[Z.i$jscomp$445]=A;a[Z.i$jscomp$445]=Z.key$jscomp$550;if(K)f[Z.i$jscomp$445]=f0(u.children(Z.item$jscomp$103,h));else{var C9=_.y(_.On(Z.item$jscomp$103,void 0,"GBj5de"));A=C9.next().value;C9=C9.next().value;p[Z.i$jscomp$445]=C9;f[Z.i$jscomp$445]=f0(u.children(A,h))}}}(V))}zSy(W);
D=G;d=a;C=f;W=O;M=B;q=p;v=!1;return f},{debugName:u.debugInstance,
debugFn:u.each,isControlFlowComponent:!0})};
cCb=function(u){var K=[],l=[],D=[],d=[],C=!1;_.No(function(){for(var W=_.y(d),M=W.next();!M.done;M=W.next())M=M.value,M()});
return ef(function(){var W=u.each();C&&W.length>0&&(d.pop()(),K.pop(),C=!1);for(var M=Array(W.length),q={i$jscomp$446:0};q.i$jscomp$446<W.length;q={i$jscomp$446:q.i$jscomp$446},q.i$jscomp$446++)if(q.i$jscomp$446<K.length)K[q.i$jscomp$446]!==W[q.i$jscomp$446]&&(Un(function(G){return function(){return void l[G.i$jscomp$446](W[G.i$jscomp$446])}}(q)),K[q.i$jscomp$446]=W[q.i$jscomp$446]),M[q.i$jscomp$446]=D[q.i$jscomp$446];
else{var v=eSn(function(G){return function(){K[G.i$jscomp$446]=W[G.i$jscomp$446];var t=_.y(_.On(W[G.i$jscomp$446],void 0,"JMMLmd")),x=t.next().value;t=t.next().value;l[G.i$jscomp$446]=t;M[G.i$jscomp$446]=f0(u.children(x,G.i$jscomp$446))}}(q));
d[q.i$jscomp$446]=v}for(;K.length>W.length;)K.pop(),d.pop()(),l.pop();W.length===0&&!C&&u.fallback&&(q=eSn(function(){M[0]=f0(u.fallback())}),d[0]=q,C=!0);
return D=M},{debugName:u.debugInstance,
isControlFlowComponent:!0})};
eSn=function(u){var K=W$;return kT(function(l){var D=v$(QI);try{l.parent=K,u(l)}finally{v$(D)}},!1)};
_.ic=function(u){return u};
_.Fp=function(u){return{isDefault:!0,children:u.children}};
_.VI=function(u){var K=UNq(u),l=_.RZ(function(){return f8R(K)},void 0,"F1PF4");
return ef(function(){var D=l(),d;kT(function(){var C=v$(QI);try{d=f0(D())}finally{v$(C)}});
return d},{debugName:u.debugInstance,
isControlFlowComponent:!0})};
UNq=function(u){u=u.children;return Array.isArray(u)?u:[u]};
QNR=function(u){var K=u.props;u=u.getChildren()[0];return K.when?{when:K.when,children:u}:{isDefault:!0,children:u}};
f8R=function(u){var K=function(){return null};
u=_.y(u);for(var l=u.next();!l.done;l=u.next())if(l=l.value,l!=null&&l[vV]&&(l=l.type===_.Fp?{isDefault:!0,children:l.children[0]}:{when:l.props.when,children:l.children[0]}),l instanceof U3&&(l=QNR(l)),l.isDefault)K=l.children;else if(l.when())return l.children;return K};
JCq=function(u){var K=null,l,D={get value(){var C,W;(W=(C=d).validateGetValue)==null||W.call(C);return d.__value},set value(C){var W,M;(M=(W=d).validateSetValue)==null||M.call(W,C);d.__value=C;d.__hasBeenSet=!0}},d=(D.__value=null,D.__hasBeenSet=!1,D.__hasErrored=!1,D.onRender=function(C){if(l&&C!==l){l._disposeRef=void 0;var W;(W=K)==null||W()}l=C;K=u(C)||null},D.onUnmount=function(){var C;
(C=K)==null||C();K=d.value=null},D[P09]=!0,D);
return d};
BMo=function(u){var K=DNH();if(K==null)throw _.jNn.PRIMITIVE_INVALID_HOOK_CALL();var l=K.hookCounter++;K.hooks||(K.hooks=[]);var D=K.hooks;D[l]||(D[l]={key:u,host:K});if(u!==D[l].key){if(K.JSC$10145___type){var d;u=(d=K.JSC$10145___type)==null?void 0:d.name}else u=K instanceof jf?fsZ(K.functionComponent):"<"+K.el.tagName.toLowerCase()+">";throw _.jNn.OUT_OF_ORDER_HOOK_CALL(u);}return D[l]};
p_q=function(u,K){return!u||u.length!==(K==null?void 0:K.length)||u.some(function(l,D){return l!==K[D]})};
inZ=function(u,K){var l=BMo("onChange"),D=DNH();p_q(l.deps,K)&&(l.deps=K,l.pendingEffect=u,D.__syncEffects||(D.__syncEffects=[]),D.__syncEffects.push(l))};
_.gi=function(u,K){var l=l===void 0?{}:l;l=l.appContext;var D=!!$T.legacyTriggerSoyRendererEvents;aE.setUp();try{var d=TMR(u,K,l);D&&(K=l,K==null&&(K=_.Cnw(document).getAppContext()),K.get(w_q).JSC$28694_getEventTarget().dispatchEvent(new Fqq(VRn,u,O3)));aE.log(u);return d}finally{aE.tearDown()}};
TMR=function(u,K,l){var D=V5(function(){var d=v$(QI);try{return kT(function(){var C=_.Cnw(_.hO(u)),W;var M=bUr({rootElement:{value:u},appContext:l||(C==null?void 0:(W=C.getOptionalAppContext)==null?void 0:W.call(C)),dispatcher:C});C=_.H$(M);M=t8(!0);Q5++;try{RE(K(),u),j9(!1)}catch(q){throw j9(!0),q;}finally{t8(M),_.H$(C)}},!1)}catch(C){throw $T.enableContextBasedComponentStacks&&FL(C),C;
}finally{v$(d)}});
u[grR]=!0;return function(){u.textContent="";D();u[grR]=!1}};
_.N_=function(u){if(Rab(rp)){var K;(K=$T.handleError)==null||K.call.apply(K,[$T].concat(_.Am(mt(Error("Zb")))))}var l=W$,D=B$;Promise.resolve().then(function(){if(l&&!l.isDisposed){var d=_.H$(l);try{V5(function(){return void u()},D)}catch(C){throw $T.enableContextBasedComponentStacks&&FL(C),C;
}finally{_.H$(d)}}})};
_.kD=function(u,K){inZ(function(){return br(u)},K)};
_.ZY=function(u){ir()?_.N_(function(){br(u)}):inZ(function(){return br(u)},[])};
kSn=function(u){var K=[].concat(_.Am(u));u.length=0;u=_.y(K);for(K=u.next();!K.done;K=u.next()){K=K.value;NMr(K);var l=K.pendingEffect;K.pendingEffect=null;if(l=l==null?void 0:l())K.pendingCleanup=l}};
NMr=function(u){var K=u.pendingCleanup;u.pendingCleanup=null;K==null||K()};
Znw=function(u,K){if(ir())return u();var l=BMo("useMemoInternal");p_q(l.deps,K)&&(l.deps=K,l.value=u());return l.value};
YWR=function(u,K){return Znw(u,K)};
YD=function(u){return Znw(u,[])};
A8=function(u){return YD(function(){return{value:u}})};
_.Xp=function(u,K){if(!u)return null;u=Object.keys(u);u=_.y(u);for(var l=u.next();!l.done;l=u.next()){l=l.value;var D=l.toLowerCase();if(D.indexOf(K,D.length-K.length)>-1)return l}return null};
_.h8=function(){var u=arguments,K=_.mT;u.length>1?K[u[0]]=u[1]:u.length===1&&Object.assign(K,u[0])};
_.E3=function(u,K){return u in _.mT?_.mT[u]:K};
_.L0=function(u,K){return!!_.E3(u,K)};
ACr=function(u){var K=_.mT.EXPERIMENT_FLAGS;return K?K[u]:void 0};
mNq=function(u){X_b.forEach(function(K){return K(u)})};
_.KT=function(u){return u&&window.yterr?function(){try{return u.apply(this,arguments)}catch(K){_.uZ(K)}}:u};
_.uZ=function(u){var K=_.lZ("yt.logging.errors.log");K?K(u,"ERROR",void 0,void 0,void 0,void 0,void 0):(K=_.E3("ERRORS",[]),K.push([u,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.h8("ERRORS",K));mNq(u)};
_.D_=function(u,K,l,D,d){var C=_.lZ("yt.logging.errors.log");C?C(u,"WARNING",K,l,D,void 0,d):(C=_.E3("ERRORS",[]),C.push([u,"WARNING",K,l,D,void 0,d]),_.h8("ERRORS",C))};
ErH=function(u,K){K=u.split(K);for(var l={},D=0,d=K.length;D<d;D++){var C=K[D].split("=");if(C.length===1&&C[0]||C.length===2)try{var W=hSH(C[0]||""),M=hSH(C[1]||"");if(W in l){var q=l[W];Array.isArray(q)?_.L9(q,M):l[W]=[q,M]}else l[W]=M}catch(x){var v=x,G=C[0],t=String(ErH);v.args=[{key:G,value:C[1],query:u,method:LqR===t?"unchanged":t}];uin.hasOwnProperty(G)||_.D_(v)}}return l};
Kfq=function(u){var K=[];_.k$.forEach(u,function(l,D){var d=_.CT(D);l=Array.isArray(l)?l:[l];_.yx(l,function(C){C==""?K.push(d):K.push(d+"="+_.CT(C))})});
return K.join("&")};
_.sP=function(u){u.charAt(0)==="?"&&(u=u.substring(1));return ErH(u,"&")};
_.oK=function(u){return u.indexOf("?")!==-1?(u=(u||"").split("#")[0],u=u.split("?",2),_.sP(u.length>1?u[1]:u[0])):{}};
_.Wv=function(u,K){return lyy(u,K||{},!0)};
DBw=function(u,K){return lyy(u,K||{},!1)};
lyy=function(u,K,l){var D=u.split("#",2);u=D[0];D=D.length>1?"#"+D[1]:"";var d=u.split("?",2);u=d[0];d=_.sP(d[1]||"");for(var C in K)if(l||!_.k$.containsKey(d,C))d[C]=K[C];return _.Hv(u,d)+D};
nT=function(u){if(!K)var K=window.location.href;var l=_.M7(u)[1]||null,D=_.q7(u);return l&&D?$n(u,K):D?_.q7(K)===D&&(Number(_.M7(K)[4]||null)||null)===(Number(_.M7(u)[4]||null)||null):!0};
_.CIo=function(u){u=dBq(u);return u===null?!1:u[0]==="com"&&u[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
dBq=function(u){u=_.q7(u);return u!==null?u.split(".").reverse():null};
hSH=function(u){return u&&u.match(IyZ)?u:rv(u)};
_.vv=function(u){return new ysL(u)};
_.GB=function(){syq||(syq=new osH);return syq};
HNo=function(u){var K=_.t9,l,D;_.H(function(d){l=_.GB();return(D=l.resolve(_.vv(K)))?(u(D),d.return(Promise.resolve(D))):d.return(l.resolve(new Wfb(K)).then(function(C){u(C);return C}))})};
_.S=function(u){u=xn(u);return typeof u==="string"&&u==="false"?!1:!!u};
_.Sg=function(u,K){u=xn(u);return u===void 0&&K!==void 0?K:Number(u||0)};
MyL=function(u){u=xn(u);return Array.isArray(u)?_.ZM(u,function(K){return Number(K||0)}):[Number(u||0)]};
_.bZ=function(u){u=xn(u);return u!==void 0?String(u):""};
_.OP=function(u){u=xn(u);return Array.isArray(u)?_.ZM(u,function(K){return String(K||"")}):[String(u||"")]};
qxq=function(){return _.E3("EXPERIMENTS_TOKEN","")};
xn=function(u){return _.E3("EXPERIMENT_FLAGS",{})[u]};
$BH=function(){for(var u=[],K=_.E3("EXPERIMENTS_FORCED_FLAGS",{}),l=_.y(Object.keys(K)),D=l.next();!D.done;D=l.next())D=D.value,u.push({key:D,value:String(K[D])});l=_.E3("EXPERIMENT_FLAGS",{});D=_.y(Object.keys(l));for(var d=D.next();!d.done;d=D.next())d=d.value,d.startsWith("force_")&&K[d]===void 0&&u.push({key:d,value:String(l[d])});return u};
rsZ=function(){if(!nsh)return null;var u=nsh();return"open"in u?u:null};
_.vsn=function(u){switch(_.cv(u)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.cv=function(u){return u&&"status"in u?u.status:-1};
_.aK=function(u,K){typeof u==="function"&&(u=_.KT(u));return window.setTimeout(u,K)};
_.zB=function(u,K){typeof u==="function"&&(u=_.KT(u));return window.setInterval(u,K)};
_.eg=function(u){window.clearTimeout(u)};
tyy=function(u){u=_.oK(u);for(var K=_.y(GAb),l=K.next();!l.done;l=K.next())if(u[l.value]!==void 0)return!0;return!1};
bNr=function(u,K,l,D,d,C,W,M,q){l=l===void 0?"GET":l;D=D===void 0?"":D;M=M===void 0?!1:M;var v=rsZ();if(!v)return null;var G=function(){(v&&"readyState"in v?v.readyState:0)===4&&K&&_.KT(K)(v)};
"onloadend"in v?v.addEventListener("loadend",G,!1):v.onreadystatechange=G;_.S("debug_forward_web_query_parameters")&&(u=xBq(u,window.location.search));v.open(l,u,!0);C&&(v.responseType=C);W&&(v.withCredentials=!0);l=l==="POST"&&(window.FormData===void 0||!(D instanceof FormData));if(d=Sxw(u,d))for(var t in d)v.setRequestHeader(t,d[t]),"content-type"===t.toLowerCase()&&(l=!1);l&&v.setRequestHeader("Content-Type","application/x-www-form-urlencoded");q&&"onprogress"in v&&(v.onprogress=function(){q(v.responseText)});
if(M&&"setAttributionReporting"in XMLHttpRequest.prototype){u={eventSourceEligible:!0,triggerEligible:!1};try{v.setAttributionReporting(u)}catch(x){_.D_(x)}}v.send(D);return v};
Sxw=function(u,K){K=K===void 0?{}:K;var l=nT(u),D=_.E3("INNERTUBE_CLIENT_NAME"),d=_.S("web_ajax_ignore_global_headers_if_set"),C;for(C in ONr){var W=_.E3(ONr[C]),M=C==="X-Goog-AuthUser"||C==="X-Goog-PageId";C!=="X-Goog-Visitor-Id"||W||(W=_.E3("VISITOR_DATA"));var q;if(!(q=!W)){if(!(q=l||(_.q7(u)?!1:!0))){q=u;var v;if(v=_.S("add_auth_headers_to_remarketing_google_dot_com_ping")&&C==="Authorization"&&(D==="TVHTML5"||D==="TVHTML5_UNPLUGGED"||D==="TVHTML5_SIMPLY"))v=dBq(q),v=v===null?!1:v[1]==="google"?
!0:v[2]==="google"?v[0]==="au"&&v[1]==="com"?!0:v[0]==="uk"&&v[1]==="co"?!0:!1:!1;v&&(q=_.RK(q)||"",q=q.split("/"),q="/"+(q.length>1?q[1]:""),v=q==="/pagead");q=v?!0:!1}q=!q}q||d&&K[C]!==void 0||D==="TVHTML5_UNPLUGGED"&&M||(K[C]=W)}"X-Goog-EOM-Visitor-Id"in K&&"X-Goog-Visitor-Id"in K&&delete K["X-Goog-Visitor-Id"];if(l||!_.q7(u))K["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(l||!_.q7(u)){try{var G=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(t){}G&&(K["X-YouTube-Time-Zone"]=
G)}document.location.hostname.endsWith("youtubeeducation.com")||!l&&_.q7(u)||(K["X-YouTube-Ad-Signals"]=Kfq(csq()));return K};
_.ayo=function(u,K){var l=_.q7(u);_.S("debug_handle_relative_url_for_query_forward_killswitch")||!l&&nT(u)&&(l=document.location.hostname);var D=_.RK(u);D=(l=l&&(l.endsWith("youtube.com")||l.endsWith("youtube-nocookie.com")))&&D&&D.startsWith("/api/");if(!l||D)return u;var d=_.sP(K),C={};_.yx(GAb,function(W){d[W]&&(C[W]=d[W])});
return DBw(u,C)};
zdr=function(u,K){K.method="POST";K.postParams||(K.postParams={});return _.UP(u,K)};
edb=function(u,K){var l=_.E3("XSRF_FIELD_NAME"),D;K.headers&&(D=K.headers["Content-Type"]);return!K.excludeXsrf&&(!_.q7(u)||K.withCredentials||_.q7(u)===document.location.hostname)&&K.method==="POST"&&(!D||D==="application/x-www-form-urlencoded")&&!(K.postParams&&K.postParams[l])};
_.UP=function(u,K){var l=K.format||"JSON";u=Rdh(u,K);var D=UBh(u,K),d=!1,C=fyr(u,function(q){if(!d){d=!0;M&&_.eg(M);var v=_.vsn(q),G=null,t=400<=q.status&&q.status<500,x=500<=q.status&&q.status<600;if(v||t||x)G=Qyr(u,l,q,K.convertToSafeHtml);v&&(v=PIR(l,q,G));G=G||{};t=K.context||_.lL;v?K.onSuccess&&K.onSuccess.call(t,q,G):K.onError&&K.onError.call(t,q,G);K.onFinish&&K.onFinish.call(t,q,G)}},K.method,D,K.headers,K.responseType,K.withCredentials,!1,K.onProgress);
D=K.timeout||0;if(K.onTimeout&&D>0){var W=K.onTimeout;var M=_.aK(function(){d||(d=!0,C.abort(),_.eg(M),W.call(K.context||_.lL,C))},D)}return C};
Rdh=function(u,K){K.includeDomain&&(u=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+u);var l=_.E3("XSRF_FIELD_NAME");if(K=K.urlParams)K[l]&&delete K[l],u=_.Wv(u,K);return u};
UBh=function(u,K){var l=_.E3("XSRF_FIELD_NAME"),D=_.E3("XSRF_TOKEN"),d=K.postBody||"",C=K.postParams;edb(u,K)&&(C||(C={}),C[l]=D);(_.S("ajax_parse_query_data_only_when_filled")&&C&&Object.keys(C).length>0||C)&&typeof d==="string"&&(d=_.sP(d),_.k$.extend(d,C),d=K.postBodyFormat&&K.postBodyFormat==="JSON"?JSON.stringify(d):_.fT(d));C=d||C&&!_.k$.isEmpty(C);!Jsn&&C&&K.method!=="POST"&&(Jsn=!0,_.uZ(Error("Hc")));return d};
Qyr=function(u,K,l,D){var d=null;switch(K){case "JSON":try{var C=l.responseText}catch(W){throw D=Error("Ic"),D.params=u,_.D_(D),W;}u=l.getResponseHeader("Content-Type")||"";C&&u.indexOf("json")>=0&&(C.substring(0,5)===")]}'\n"&&(C=C.substring(5)),d=JSON.parse(C));break;case "XML":if(u=(u=l.responseXML)?jyh(u):null)d={},_.yx(u.getElementsByTagName("*"),function(W){d[W.tagName]=Bd9(W)})}D&&p0h(d);
return d};
p0h=function(u){if(_.Ks(u))for(var K in u)K==="html_content"||IR(K,"_html")?u[K]=CH(u[K]):p0h(u[K])};
PIR=function(u,K,l){if(K&&K.status===204)return!0;switch(u){case "JSON":return!!l;case "XML":return Number(l&&l.return_code)===0;case "RAW":return!0;default:return!!l}};
jyh=function(u){return u?(u=("responseXML"in u?u.responseXML:u).getElementsByTagName("root"))&&u.length>0?u[0]:null:null};
Bd9=function(u){var K="";_.yx(u.childNodes,function(l){K+=l.nodeValue});
return K};
iNL=function(u){if(u.name==="JavaException")return!0;u=u.stack;return u.includes("chrome://")||u.includes("-extension://")||u.includes("webkit-masked-url://")};
Tdn=function(u){if(!u.stack)return!0;var K=!u.stack.includes("\n");return K&&u.stack.includes("ErrorType: ")||K&&u.stack.includes("Anonymous function (Unknown script")||u.stack.toLowerCase()==="not available"||u.fileName==="user-script"||u.fileName.startsWith("user-script:")?!0:!1};
_.Qx=function(u){_.TZ.call(this);this.JSC$10412_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!u};
FfR=function(u,K){var l=u.length,D=0,d=function(){return u.charCodeAt(D++)};
do{var C=w0h(d);if(C===Infinity)break;var W=C>>3;switch(C&7){case 0:C=w0h(d);if(W===K)return C;break;case 1:if(W===K)return;D+=8;break;case 2:C=w0h(d);if(W===K)return u.substr(D,C);D+=C;break;case 5:if(W===K)return;D+=4;break;default:return}}while(D<l)};
w0h=function(u){var K=u(),l=K&127;if(K<128)return l;K=u();l|=(K&127)<<7;if(K<128)return l;K=u();l|=(K&127)<<14;if(K<128)return l;K=u();return K<128?l|(K&127)<<21:Infinity};
gsb=function(u,K,l,D){if(u)if(Array.isArray(u)){var d=D;for(D=0;D<u.length&&!(u[D]&&(d+=Vyr(D,u[D],K,l),d>500));D++);D=d}else if(typeof u==="object")for(d in u){if(u[d]){var C=d;var W=u[d],M=K,q=l;C=typeof W!=="string"||C!=="clickTrackingParams"&&C!=="trackingParams"?0:(W=FfR(atob(W.replace(/-/g,"+").replace(/_/g,"/")),2))?Vyr(C+".ve",W,M,q):0;D+=C;D+=Vyr(d,u[d],K,l);if(D>500)break}}else l[K]=Pv(u),D+=l[K].length;else l[K]=Pv(u),D+=l[K].length;return D};
Vyr=function(u,K,l,D){l+="."+u;u=Pv(K);D[l]=u;return l.length+u.length};
Pv=function(u){try{return(typeof u==="string"?u:String(JSON.stringify(u))).substr(0,500)}catch(K){return"unable to serialize "+typeof u+" ("+K.message+")"}};
Ndb=function(u){switch(u){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}};
_.Bv=function(u,K,l,D,d){_.jg.set(u,K,{maxAge:l,path:"/",domain:D===void 0?"youtube.com":D,secure:d===void 0?!1:d})};
_.kAq=function(u,K,l){_.jg.remove(u,K===void 0?"/":K,l===void 0?"youtube.com":l)};
_.pT=function(){if(_.S("embeds_web_enable_cookie_detection_fix")){if(!_.lL.navigator.cookieEnabled)return!1}else if(!_.jg.isEnabled())return!1;if(!_.jg.isEmpty())return!0;_.S("embeds_web_enable_cookie_detection_fix")?_.jg.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.jg.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.jg.get("TESTCOOKIESENABLED")!=="1")return!1;_.jg.remove("TESTCOOKIESENABLED");return!0};
ZNr=function(){var u=_.lL.navigator;return u?u.connection:void 0};
Yxq=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(u){}};
_.X09=function(){var u=ZNr();if(u){var K=Asr[u.type||"unknown"]||"CONN_UNKNOWN";u=Asr[u.effectiveType||"unknown"]||"CONN_UNKNOWN";K==="CONN_CELLULAR_UNKNOWN"&&u!=="CONN_UNKNOWN"&&(K=u);if(K!=="CONN_UNKNOWN")return K;if(u!=="CONN_UNKNOWN")return u}};
hdH=function(){var u=ZNr();if(u!=null&&u.effectiveType)return mBh.hasOwnProperty(u.effectiveType)?mBh[u.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.TB=function(){try{return _.iZ(),!0}catch(u){return!1}};
_.iZ=function(u){if(_.E3("DATASYNC_ID")!==void 0)return _.E3("DATASYNC_ID");throw new _.wv("Datasync ID not set",u===void 0?"unknown":u);};
_.F0=function(u){this.mechanism=u};
Vx=function(u){this.mechanism=u};
gv=function(u){this.storage_=u;this.cachedIsStorageAvailable_=null};
Eso=function(){var u=null;try{u=_.lL.localStorage||null}catch(K){}gv.call(this,u)};
LfL=function(){var u=null;try{u=_.lL.sessionStorage||null}catch(K){}gv.call(this,u)};
N7=function(u,K){this.mechanism_=u;this.JSC$10514_prefix_=K+"::"};
_.u6b=function(u){var K=new Eso;return K.isAvailable()?u?new N7(K,u):K:null};
_.KG9=function(u){var K=new LfL;return K.isAvailable()?u?new N7(K,u):K:null};
DKn=function(){var u;return(u=lJy())==null?void 0:u.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Yn=function(u){dKh||(_.kn?_.kn.logError(u):(_.Z_.push({type:"ERROR",payload:u}),_.Z_.length>10&&_.Z_.shift()))};
A9=function(u,K){dKh||(_.kn?_.kn.logEvent(u,K):(_.Z_.push({type:"EVENT",eventType:u,payload:K}),_.Z_.length>10&&_.Z_.shift()))};
X0=function(u){if(u.indexOf(":")>=0)throw Error("Pc");};
mg=function(u){return u.substr(0,u.indexOf(":"))||u};
yuH=function(){return(ChH||IJr)&&h9("applewebkit")&&!h9("version")&&(!h9("safari")||h9("gsa/"))};
h9=function(u){var K=_.rq();return K?K.toLowerCase().indexOf(u)>=0:!1};
WGH=function(u,K,l,D){K=mg(K);var d=u instanceof Error?u:Error("Qc`"+u);if(d instanceof EP)return d;u={objectStoreNames:l,dbName:K,dbVersion:D};if(d.name==="QuotaExceededError")return new EP("QUOTA_EXCEEDED",u);if(_.LT&&d.name==="UnknownError")return new EP("QUOTA_MAYBE_EXCEEDED",u);if(d instanceof sfy)return new EP("MISSING_INDEX",Object.assign({},u,{objectStore:d.objectStore,index:d.index}));if(d.name==="InvalidStateError"&&own.some(function(C){return d.message.includes(C)}))return new EP("EXECUTE_TRANSACTION_ON_CLOSED_DB",
u);
if(d.name==="AbortError")return new EP("UNKNOWN_ABORT",u,d.message);d.args=[Object.assign({},u,{name:"IdbError",originalName:d.name})];d.level="WARNING";return d};
un=function(u,K,l){var D=DKn();return new EP("IDB_NOT_SUPPORTED",{context:{caller:u,publicName:K,version:l,hasSucceededOnce:D==null?void 0:D.hasSucceededOnce}})};
Hmb=function(u){if(!u)throw Error();throw u;};
MZH=function(u){return u};
qVo=function(u,K,l){var D=function(){try{u.removeEventListener("success",d),u.removeEventListener("error",C)}catch(W){}},d=function(){K(u.result);
D()},C=function(){l(u.error);
D()};
u.addEventListener("success",d);u.addEventListener("error",C)};
$Ky=function(u){return new Promise(function(K,l){qVo(u,K,l)})};
Dq=function(u){return new KU(new ln(function(K,l){qVo(u,K,l)}))};
nwq=function(u,K){return new KU(new ln(function(l,D){var d=function(){var C=u?K(u):null;C?C.then(function(W){u=W;d()},D):l()};
d()}))};
vwq=function(u,K,l){return new Promise(function(D,d){var C=K!==void 0?self.indexedDB.open(u,K):self.indexedDB.open(u);var W=l.blocked,M=l.blocking,q=l.terminated,v=l.upgrade,G=l.closed,t,x=function(){t||(t=new dl(C.result,{closed:G}));return t};
C.addEventListener("upgradeneeded",function(O){try{if(O.newVersion===null)throw Error("Vc");if(C.transaction===null)throw Error("Wc");O.dataLoss&&O.dataLoss!=="none"&&A9("IDB_DATA_CORRUPTED",{reason:O.dataLossMessage||"unknown reason",dbName:mg(u)});var a=x(),f=new ruw(C.transaction);v&&v(a,function(B){return O.oldVersion<B&&O.newVersion>=B},f);
f.done.catch(function(B){d(B)})}catch(B){d(B)}});
C.addEventListener("success",function(){var O=C.result;M&&O.addEventListener("versionchange",function(){M(x())});
O.addEventListener("close",function(){A9("IDB_UNEXPECTEDLY_CLOSED",{dbName:mg(u),dbVersion:O.version});q&&q()});
D(x())});
C.addEventListener("error",function(){d(C.error)});
W&&C.addEventListener("blocked",function(){W()})})};
GIR=function(u,K,l){l=l===void 0?{}:l;return vwq(u,K,l)};
_.ys=function(u,K){K=K===void 0?{}:K;var l,D,d,C;return _.H(function(W){if(W.nextAddress==1)return _.Qg(W,2),l=self.indexedDB.deleteDatabase(u),D=K,(d=D.blocked)&&l.addEventListener("blocked",function(){d()}),W.yield($Ky(l),4);
if(W.nextAddress!=2)return _.I$(W,0);C=_.iY(W);throw WGH(C,u,"",-1);})};
xKH=function(u,K){var l;return _.H(function(D){if(D.nextAddress==1)return D.yield(_.sv(tZq,K),2);l=D.yieldResult;return D.return(_.o$(l,["databases"],{enableRetries:!0,mode:"readwrite"},function(d){var C=d.objectStore("databases");return C.get(u.actualName).then(function(W){if(W?u.actualName!==W.actualName||u.publicName!==W.publicName||u.userIdentifier!==W.userIdentifier:1)return C.put(u).then(function(){})})}))})};
_.WA=function(u,K){var l;return _.H(function(D){if(D.nextAddress==1)return u?D.yield(_.sv(tZq,K),2):D.return();l=D.yieldResult;return D.return(l.delete("databases",u))})};
_.SVH=function(u,K){var l,D;return _.H(function(d){return d.nextAddress==1?(l=[],d.yield(_.sv(tZq,K),2)):d.nextAddress!=3?(D=d.yieldResult,d.yield(_.o$(D,["databases"],{enableRetries:!0,mode:"readonly"},function(C){l.length=0;return HA(C.objectStore("databases"),{},function(W){u(W.getValue())&&l.push(W.getValue());return W.continue()})}),3)):d.return(l)})};
bmq=function(u,K){return _.SVH(function(l){return l.publicName===u&&l.userIdentifier!==void 0},K)};
aJZ=function(){var u,K,l,D;return _.H(function(d){switch(d.nextAddress){case 1:u=DKn();if((K=u)==null?0:K.hasSucceededOnce)return d.return(!0);var C;if(C=Omy)C=/WebKit\/([0-9]+)/.exec(_.rq()),C=!!(C&&parseInt(C[1],10)>=600);C&&(C=/WebKit\/([0-9]+)/.exec(_.rq()),C=!(C&&parseInt(C[1],10)>=602));if(C||Mh)return d.return(!1);try{if(l=self,!(l.indexedDB&&l.IDBIndex&&l.IDBKeyRange&&l.IDBObjectStore))return d.return(!1)}catch(W){return d.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return d.return(!1);
_.Qg(d,2);D={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return d.yield(xKH(D,cuL),4);case 4:return d.yield(_.WA("yt-idb-test-do-not-use",cuL),5);case 5:return d.return(!0);case 2:return _.iY(d),d.return(!1)}})};
e8Z=function(){if(z8y!==void 0)return z8y;dKh=!0;return z8y=aJZ().then(function(u){dKh=!1;var K;if((K=lJy())!=null&&K.expiringStorage_){var l;K={hasSucceededOnce:((l=DKn())==null?void 0:l.hasSucceededOnce)||u};var D;(D=lJy())==null||D.set("LAST_RESULT_ENTRY_KEY",K,2592E3,!0)}return u})};
qh=function(){return _.lZ("ytglobal.idbToken_")||void 0};
_.nU=function(){var u=qh();return u?Promise.resolve(u):e8Z().then(function(K){(K=K?cuL:void 0)&&_.$L("ytglobal.idbToken_",K);return K})};
R8R=function(u){if(!_.TB())throw u=new EP("AUTH_INVALID",{dbName:u}),_.Yn(u),u;var K=_.iZ();return{actualName:u+":"+K,publicName:u,userIdentifier:K}};
UKL=function(u,K,l,D){var d,C,W,M,q,v;return _.H(function(G){switch(G.nextAddress){case 1:return C=(d=Error().stack)!=null?d:"",G.yield(_.nU(),2);case 2:W=G.yieldResult;if(!W)throw M=un("openDbImpl",u,K),_.S("ytidb_async_stack_killswitch")||(M.stack=M.stack+"\n"+C.substring(C.indexOf("\n")+1)),_.Yn(M),M;X0(u);q=l?{actualName:u,publicName:u,userIdentifier:void 0}:R8R(u);_.Qg(G,3);return G.yield(xKH(q,W),5);case 5:return G.yield(GIR(q.actualName,K,D),6);case 6:return G.return(G.yieldResult);case 3:return v=
_.iY(G),_.Qg(G,7),G.yield(_.WA(q.actualName,W),9);case 9:_.I$(G,8);break;case 7:_.iY(G);case 8:throw v;}})};
fJr=function(u,K,l){l=l===void 0?{}:l;return UKL(u,K,!1,l)};
QfH=function(u,K,l){l=l===void 0?{}:l;return UKL(u,K,!0,l)};
Phn=function(u,K){K=K===void 0?{}:K;var l,D;return _.H(function(d){if(d.nextAddress==1)return d.yield(_.nU(),2);if(d.nextAddress!=3){l=d.yieldResult;if(!l)return d.return();X0(u);D=R8R(u);return d.yield(_.ys(D.actualName,K),3)}return d.yield(_.WA(D.actualName,l),0)})};
JuL=function(u,K,l){u=u.map(function(D){return _.H(function(d){return d.nextAddress==1?d.yield(_.ys(D.actualName,K),2):d.yield(_.WA(D.actualName,l),0)})});
return Promise.all(u).then(function(){})};
jfZ=function(u){var K=K===void 0?{}:K;var l,D;return _.H(function(d){if(d.nextAddress==1)return d.yield(_.nU(),2);if(d.nextAddress!=3){l=d.yieldResult;if(!l)return d.return();X0(u);return d.yield(bmq(u,l),3)}D=d.yieldResult;return d.yield(JuL(D,K,l),0)})};
BZq=function(u,K){K=K===void 0?{}:K;var l;return _.H(function(D){if(D.nextAddress==1)return D.yield(_.nU(),2);if(D.nextAddress!=3){l=D.yieldResult;if(!l)return D.return();X0(u);return D.yield(_.ys(u,K),3)}return D.yield(_.WA(u,l),0)})};
rl=function(u,K){return pio(u,K)};
TZn=function(u){return _.sv(imq(),u)};
wiy=function(u,K,l,D){var d,C,W;return _.H(function(M){switch(M.nextAddress){case 1:return d={config:u,hashData:K,timestamp:D!==void 0?D:(0,_.vA)()},M.yield(TZn(l),2);case 2:return C=M.yieldResult,M.yield(C.clear("hotConfigStore"),3);case 3:return M.yield(C.put("hotConfigStore",d),4);case 4:return W=M.yieldResult,M.return(W)}})};
FGL=function(u,K,l,D,d){var C,W,M;return _.H(function(q){switch(q.nextAddress){case 1:return C={config:u,hashData:K,configData:l,timestamp:d!==void 0?d:(0,_.vA)()},q.yield(TZn(D),2);case 2:return W=q.yieldResult,q.yield(W.clear("coldConfigStore"),3);case 3:return q.yield(W.put("coldConfigStore",C),4);case 4:return M=q.yieldResult,q.return(M)}})};
VZH=function(u){var K,l;return _.H(function(D){return D.nextAddress==1?D.yield(TZn(u),2):D.nextAddress!=3?(K=D.yieldResult,l=void 0,D.yield(_.o$(K,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(d){return _.G_(d.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(C){l=C.getValue()})}),3)):D.return(l)})};
gwr=function(u){var K,l;return _.H(function(D){return D.nextAddress==1?D.yield(TZn(u),2):D.nextAddress!=3?(K=D.yieldResult,l=void 0,D.yield(_.o$(K,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(d){return _.G_(d.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(C){l=C.getValue()})}),3)):D.return(l)})};
NZH=function(){return _.H(function(u){return u.yield(jfZ("ytGcfConfig"),0)})};
kI9=function(){return"INNERTUBE_API_KEY"in _.mT&&"INNERTUBE_API_VERSION"in _.mT};
_.tP=function(){return{innertubeApiKey:_.E3("INNERTUBE_API_KEY"),innertubeApiVersion:_.E3("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.E3("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.E3("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.E3("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.E3("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.E3("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.E3("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.E3("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.L0("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.L0("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.E3("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.Ewh=function(u){var K={client:{hl:u.innertubeContextHostLanguage,gl:u.innertubeContextGeoLocation,clientName:u.innertubeContextClientName,clientVersion:u.innertubeContextClientVersion,configInfo:u.innertubeContextClientConfigInfo}};navigator.userAgent&&(K.client.userAgent=String(navigator.userAgent));var l=_.lL.devicePixelRatio;l&&l!=1&&(K.client.screenDensityFloat=String(l));l=qxq();l!==""&&(K.client.experimentsToken=l);l=$BH();l.length>0&&(K.request={internalExperimentFlags:l});Zmq(u,void 0,K);
YVb(void 0,K);Aub(void 0,K);XiH(u,void 0,K);mKq(void 0,K);_.S("start_client_gcf")&&h8q(void 0,K);_.E3("DELEGATED_SESSION_ID")&&!_.S("pageid_as_header_web")&&(K.user={onBehalfOfUser:_.E3("DELEGATED_SESSION_ID")});!_.S("fill_delegate_context_in_gel_killswitch")&&(u=_.E3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(K.user=Object.assign({},K.user,{serializedDelegationContext:u}));u=_.E3("INNERTUBE_CONTEXT");var D;if(_.S("enable_persistent_device_token")&&(u==null?0:(D=u.client)==null?0:D.rolloutToken)){var d;
K.client.rolloutToken=u==null?void 0:(d=u.client)==null?void 0:d.rolloutToken}D=Object;d=D.assign;u=K.client;l={};for(var C=_.y(Object.entries(_.sP(_.E3("DEVICE","")))),W=C.next();!W.done;W=C.next()){var M=_.y(W.value);W=M.next().value;M=M.next().value;W==="cbrand"?l.deviceMake=M:W==="cmodel"?l.deviceModel=M:W==="cbr"?l.browserName=M:W==="cbrver"?l.browserVersion=M:W==="cos"?l.osName=M:W==="cosver"?l.osVersion=M:W==="cplatform"&&(l.platform=M)}K.client=d.call(D,u,l);return K};
Zmq=function(u,K,l){u=u.innertubeContextClientName;if(u==="WEB"||u==="MWEB"||u===1||u===2)if(K){l=_.fV(K,LGH,96)||new LGH;var D=uQq();D=Object.keys(Kdy).indexOf(D);D=D===-1?null:D;D!==null&&_.xL(l,3,D);_.jF(K,96,l)}else l&&(l.client.mainAppWebInfo=(D=l.client.mainAppWebInfo)!=null?D:{},l.client.mainAppWebInfo.webDisplayMode=uQq())};
YVb=function(u,K){var l=_.lZ("yt.embedded_player.embed_url");l&&(u?(K=_.fV(u,lUq,7)||new lUq,_.Tj(K,4,l),_.jF(u,7,K)):K&&(K.thirdParty={embedUrl:l}))};
Aub=function(u,K){var l;if(_.S("web_log_memory_total_kbytes")&&((l=_.lL.navigator)==null?0:l.deviceMemory)){var D;l=(D=_.lL.navigator)==null?void 0:D.deviceMemory;u?_.SG(u,95,f_(l*1E6)):K&&(K.client.memoryTotalKbytes=""+l*1E6)}};
XiH=function(u,K,l){if(u.appInstallData)if(K){var D;l=(D=_.fV(K,bn,62))!=null?D:new bn;_.Tj(l,6,u.appInstallData);_.jF(K,62,l)}else l&&(l.client.configInfo=l.client.configInfo||{},l.client.configInfo.appInstallData=u.appInstallData)};
mKq=function(u,K){var l=_.X09();l&&(u?_.xL(u,61,Duq[l]):K&&(K.client.connectionType=l));_.S("web_log_effective_connection_type")&&(l=hdH())&&(u?_.xL(u,94,duL[l]):K&&(K.client.effectiveConnectionType=l))};
_.y_q=function(u,K,l){l=l===void 0?{}:l;var D={};_.E3("EOM_VISITOR_DATA")?D={"X-Goog-EOM-Visitor-Id":_.E3("EOM_VISITOR_DATA")}:D={"X-Goog-Visitor-Id":l.visitorData||_.E3("VISITOR_DATA","")};if(K&&K.includes("www.youtube-nocookie.com"))return D;K=l.authorization||_.E3("AUTHORIZATION");K||(u?K="Bearer "+_.lZ("gapi.auth.getToken")().access_token:(CvL.instance||(CvL.instance=new CvL),u=IUZ(),_.S("pageid_as_header_web")||delete u["X-Goog-PageId"],D=Object.assign({},D,u)));K&&(D.Authorization=K);return D};
h8q=function(u,K){var l=s7q();if(l){var D=l.coldConfigData,d=l.coldHashData;l=l.hotHashData;if(u){var C;K=(C=_.fV(u,bn,62))!=null?C:new bn;D=_.Tj(K,1,D);_.Tj(D,3,d).setHotHashData(l);_.jF(u,62,K)}else K&&(K.client.configInfo=K.client.configInfo||{},D&&(K.client.configInfo.coldConfigData=D),d&&(K.client.configInfo.coldHashData=d),l&&(K.client.configInfo.hotHashData=l))}};
Ov=function(u){for(var K=u.length;--K>=0;)u[K]=0};
oOL=function(u,K,l,D,d){this.static_tree=u;this.extra_bits=K;this.extra_base=l;this.elems=D;this.max_length=d;this.has_stree=u&&u.length};
WdH=function(u,K){this.dyn_tree=u;this.max_code=0;this.stat_desc=K};
cA=function(u,K){u.pending_buf[u.pending++]=K&255;u.pending_buf[u.pending++]=K>>>8&255};
a$=function(u,K,l){u.bi_valid>16-l?(u.bi_buf|=K<<u.bi_valid&65535,cA(u,u.bi_buf),u.bi_buf=K>>16-u.bi_valid,u.bi_valid+=l-16):(u.bi_buf|=K<<u.bi_valid&65535,u.bi_valid+=l)};
z_=function(u,K,l){a$(u,l[K*2],l[K*2+1])};
Hc9=function(u,K){var l=0;do l|=u&1,u>>>=1,l<<=1;while(--K>0);return l>>>1};
MtH=function(u,K,l){var D=Array(16),d=0,C;for(C=1;C<=15;C++)D[C]=d=d+l[C-1]<<1;for(l=0;l<=K;l++)d=u[l*2+1],d!==0&&(u[l*2]=Hc9(D[d]++,d))};
qdR=function(u){var K;for(K=0;K<286;K++)u.dyn_ltree[K*2]=0;for(K=0;K<30;K++)u.dyn_dtree[K*2]=0;for(K=0;K<19;K++)u.bl_tree[K*2]=0;u.dyn_ltree[512]=1;u.opt_len=u.static_len=0;u.last_lit=u.matches=0};
$uq=function(u){u.bi_valid>8?cA(u,u.bi_buf):u.bi_valid>0&&(u.pending_buf[u.pending++]=u.bi_buf);u.bi_buf=0;u.bi_valid=0};
nOq=function(u,K,l){$uq(u);cA(u,l);cA(u,~l);eG.arraySet(u.pending_buf,u.window,K,l,u.pending);u.pending+=l};
r_n=function(u,K,l,D){var d=K*2,C=l*2;return u[d]<u[C]||u[d]===u[C]&&D[K]<=D[l]};
vOy=function(u,K,l){for(var D=u.heap[l],d=l<<1;d<=u.heap_len;){d<u.heap_len&&r_n(K,u.heap[d+1],u.heap[d],u.depth)&&d++;if(r_n(K,D,u.heap[d],u.depth))break;u.heap[l]=u.heap[d];l=d;d<<=1}u.heap[l]=D};
bcb=function(u,K,l){var D=0;if(u.last_lit!==0){do{var d=u.pending_buf[u.d_buf+D*2]<<8|u.pending_buf[u.d_buf+D*2+1];var C=u.pending_buf[u.l_buf+D];D++;if(d===0)z_(u,C,K);else{var W=R$[C];z_(u,W+256+1,K);var M=GOh[W];M!==0&&(C-=ttZ[W],a$(u,C,M));d--;W=d<256?Uv[d]:Uv[256+(d>>>7)];z_(u,W,l);M=xuw[W];M!==0&&(d-=Sdq[W],a$(u,d,M))}}while(D<u.last_lit)}z_(u,256,K)};
Och=function(u,K){var l=K.dyn_tree,D=K.stat_desc.static_tree,d=K.stat_desc.has_stree,C=K.stat_desc.elems,W,M=-1;u.heap_len=0;u.heap_max=573;for(W=0;W<C;W++)l[W*2]!==0?(u.heap[++u.heap_len]=M=W,u.depth[W]=0):l[W*2+1]=0;for(;u.heap_len<2;){var q=u.heap[++u.heap_len]=M<2?++M:0;l[q*2]=1;u.depth[q]=0;u.opt_len--;d&&(u.static_len-=D[q*2+1])}K.max_code=M;for(W=u.heap_len>>1;W>=1;W--)vOy(u,l,W);q=C;do W=u.heap[1],u.heap[1]=u.heap[u.heap_len--],vOy(u,l,1),D=u.heap[1],u.heap[--u.heap_max]=W,u.heap[--u.heap_max]=
D,l[q*2]=l[W*2]+l[D*2],u.depth[q]=(u.depth[W]>=u.depth[D]?u.depth[W]:u.depth[D])+1,l[W*2+1]=l[D*2+1]=q,u.heap[1]=q++,vOy(u,l,1);while(u.heap_len>=2);u.heap[--u.heap_max]=u.heap[1];W=K.dyn_tree;q=K.max_code;D=K.stat_desc.static_tree;d=K.stat_desc.has_stree;C=K.stat_desc.extra_bits;var v=K.stat_desc.extra_base,G=K.stat_desc.max_length,t,x=0;for(t=0;t<=15;t++)u.bl_count[t]=0;W[u.heap[u.heap_max]*2+1]=0;for(K=u.heap_max+1;K<573;K++){var O=u.heap[K];t=W[W[O*2+1]*2+1]+1;t>G&&(t=G,x++);W[O*2+1]=t;if(!(O>
q)){u.bl_count[t]++;var a=0;O>=v&&(a=C[O-v]);var f=W[O*2];u.opt_len+=f*(t+a);d&&(u.static_len+=f*(D[O*2+1]+a))}}if(x!==0){do{for(t=G-1;u.bl_count[t]===0;)t--;u.bl_count[t]--;u.bl_count[t+1]+=2;u.bl_count[G]--;x-=2}while(x>0);for(t=G;t!==0;t--)for(O=u.bl_count[t];O!==0;)D=u.heap[--K],D>q||(W[D*2+1]!==t&&(u.opt_len+=(t-W[D*2+1])*W[D*2],W[D*2+1]=t),O--)}MtH(l,M,u.bl_count)};
c_o=function(u,K,l){var D,d=-1,C=K[1],W=0,M=7,q=4;C===0&&(M=138,q=3);K[(l+1)*2+1]=65535;for(D=0;D<=l;D++){var v=C;C=K[(D+1)*2+1];++W<M&&v===C||(W<q?u.bl_tree[v*2]+=W:v!==0?(v!==d&&u.bl_tree[v*2]++,u.bl_tree[32]++):W<=10?u.bl_tree[34]++:u.bl_tree[36]++,W=0,d=v,C===0?(M=138,q=3):v===C?(M=6,q=3):(M=7,q=4))}};
aUq=function(u,K,l){var D,d=-1,C=K[1],W=0,M=7,q=4;C===0&&(M=138,q=3);for(D=0;D<=l;D++){var v=C;C=K[(D+1)*2+1];if(!(++W<M&&v===C)){if(W<q){do z_(u,v,u.bl_tree);while(--W!==0)}else v!==0?(v!==d&&(z_(u,v,u.bl_tree),W--),z_(u,16,u.bl_tree),a$(u,W-3,2)):W<=10?(z_(u,17,u.bl_tree),a$(u,W-3,3)):(z_(u,18,u.bl_tree),a$(u,W-11,7));W=0;d=v;C===0?(M=138,q=3):v===C?(M=6,q=3):(M=7,q=4)}}};
zVw=function(u){var K=4093624447,l;for(l=0;l<=31;l++,K>>>=1)if(K&1&&u.dyn_ltree[l*2]!==0)return 0;if(u.dyn_ltree[18]!==0||u.dyn_ltree[20]!==0||u.dyn_ltree[26]!==0)return 1;for(l=32;l<256;l++)if(u.dyn_ltree[l*2]!==0)return 1;return 0};
fU=function(u,K,l){u.pending_buf[u.d_buf+u.last_lit*2]=K>>>8&255;u.pending_buf[u.d_buf+u.last_lit*2+1]=K&255;u.pending_buf[u.l_buf+u.last_lit]=l&255;u.last_lit++;K===0?u.dyn_ltree[l*2]++:(u.matches++,K--,u.dyn_ltree[(R$[l]+256+1)*2]++,u.dyn_dtree[(K<256?Uv[K]:Uv[256+(K>>>7)])*2]++);return u.last_lit===u.lit_bufsize-1};
PA=function(u,K){u.msg=Qs[K];return K};
JP=function(u){for(var K=u.length;--K>=0;)u[K]=0};
jG=function(u){var K=u.state,l=K.pending;l>u.avail_out&&(l=u.avail_out);l!==0&&(eG.arraySet(u.output,K.pending_buf,K.pending_out,l,u.next_out),u.next_out+=l,K.pending_out+=l,u.total_out+=l,u.avail_out-=l,K.pending-=l,K.pending===0&&(K.pending_out=0))};
T_=function(u,K){var l=u.block_start>=0?u.block_start:-1,D=u.strstart-u.block_start,d=0;if(u.level>0){u.strm.data_type===2&&(u.strm.data_type=zVw(u));Och(u,u.l_desc);Och(u,u.d_desc);c_o(u,u.dyn_ltree,u.l_desc.max_code);c_o(u,u.dyn_dtree,u.d_desc.max_code);Och(u,u.bl_desc);for(d=18;d>=3&&u.bl_tree[eVr[d]*2+1]===0;d--);u.opt_len+=3*(d+1)+5+5+4;var C=u.opt_len+3+7>>>3;var W=u.static_len+3+7>>>3;W<=C&&(C=W)}else C=W=D+5;if(D+4<=C&&l!==-1)a$(u,K?1:0,3),nOq(u,l,D);else if(u.strategy===4||W===C)a$(u,2+(K?
1:0),3),bcb(u,BA,pU);else{a$(u,4+(K?1:0),3);l=u.l_desc.max_code+1;D=u.d_desc.max_code+1;d+=1;a$(u,l-257,5);a$(u,D-1,5);a$(u,d-4,4);for(C=0;C<d;C++)a$(u,u.bl_tree[eVr[C]*2+1],3);aUq(u,u.dyn_ltree,l-1);aUq(u,u.dyn_dtree,D-1);bcb(u,u.dyn_ltree,u.dyn_dtree)}qdR(u);K&&$uq(u);u.block_start=u.strstart;jG(u.strm)};
wl=function(u,K){u.pending_buf[u.pending++]=K};
FZ=function(u,K){u.pending_buf[u.pending++]=K>>>8&255;u.pending_buf[u.pending++]=K&255};
RVb=function(u,K){var l=u.max_chain_length,D=u.strstart,d=u.prev_length,C=u.nice_match,W=u.strstart>u.w_size-262?u.strstart-(u.w_size-262):0,M=u.window,q=u.w_mask,v=u.prev,G=u.strstart+258,t=M[D+d-1],x=M[D+d];u.prev_length>=u.good_match&&(l>>=2);C>u.lookahead&&(C=u.lookahead);do{var O=K;if(M[O+d]===x&&M[O+d-1]===t&&M[O]===M[D]&&M[++O]===M[D+1]){D+=2;for(O++;M[++D]===M[++O]&&M[++D]===M[++O]&&M[++D]===M[++O]&&M[++D]===M[++O]&&M[++D]===M[++O]&&M[++D]===M[++O]&&M[++D]===M[++O]&&M[++D]===M[++O]&&D<G;);
O=258-(G-D);D=G-258;if(O>d){u.match_start=K;d=O;if(O>=C)break;t=M[D+d-1];x=M[D+d]}}}while((K=v[K&q])>W&&--l!==0);return d<=u.lookahead?d:u.lookahead};
gl=function(u){var K=u.w_size,l;do{var D=u.window_size-u.lookahead-u.strstart;if(u.strstart>=K+(K-262)){eG.arraySet(u.window,u.window,K,K,0);u.match_start-=K;u.strstart-=K;u.block_start-=K;var d=l=u.hash_size;do{var C=u.head[--d];u.head[d]=C>=K?C-K:0}while(--l);d=l=K;do C=u.prev[--d],u.prev[d]=C>=K?C-K:0;while(--l);D+=K}if(u.strm.avail_in===0)break;d=u.strm;l=u.window;C=u.strstart+u.lookahead;var W=d.avail_in;W>D&&(W=D);W===0?l=0:(d.avail_in-=W,eG.arraySet(l,d.input,d.next_in,W,C),d.state.wrap===
1?d.adler=Uuq(d.adler,l,W,C):d.state.wrap===2&&(d.adler=Vs(d.adler,l,W,C)),d.next_in+=W,d.total_in+=W,l=W);u.lookahead+=l;if(u.lookahead+u.insert>=3)for(D=u.strstart-u.insert,u.ins_h=u.window[D],u.ins_h=(u.ins_h<<u.hash_shift^u.window[D+1])&u.hash_mask;u.insert&&!(u.ins_h=(u.ins_h<<u.hash_shift^u.window[D+3-1])&u.hash_mask,u.prev[D&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=D,D++,u.insert--,u.lookahead+u.insert<3););}while(u.lookahead<262&&u.strm.avail_in!==0)};
fUh=function(u,K){for(var l;;){if(u.lookahead<262){gl(u);if(u.lookahead<262&&K===0)return 1;if(u.lookahead===0)break}l=0;u.lookahead>=3&&(u.ins_h=(u.ins_h<<u.hash_shift^u.window[u.strstart+3-1])&u.hash_mask,l=u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart);l!==0&&u.strstart-l<=u.w_size-262&&(u.match_length=RVb(u,l));if(u.match_length>=3)if(l=fU(u,u.strstart-u.match_start,u.match_length-3),u.lookahead-=u.match_length,u.match_length<=u.max_lazy_match&&u.lookahead>=3){u.match_length--;
do u.strstart++,u.ins_h=(u.ins_h<<u.hash_shift^u.window[u.strstart+3-1])&u.hash_mask,u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart;while(--u.match_length!==0);u.strstart++}else u.strstart+=u.match_length,u.match_length=0,u.ins_h=u.window[u.strstart],u.ins_h=(u.ins_h<<u.hash_shift^u.window[u.strstart+1])&u.hash_mask;else l=fU(u,0,u.window[u.strstart]),u.lookahead--,u.strstart++;if(l&&(T_(u,!1),u.strm.avail_out===0))return 1}u.insert=u.strstart<2?u.strstart:2;return K===4?(T_(u,
!0),u.strm.avail_out===0?3:4):u.last_lit&&(T_(u,!1),u.strm.avail_out===0)?1:2};
Nh=function(u,K){for(var l,D;;){if(u.lookahead<262){gl(u);if(u.lookahead<262&&K===0)return 1;if(u.lookahead===0)break}l=0;u.lookahead>=3&&(u.ins_h=(u.ins_h<<u.hash_shift^u.window[u.strstart+3-1])&u.hash_mask,l=u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart);u.prev_length=u.match_length;u.prev_match=u.match_start;u.match_length=2;l!==0&&u.prev_length<u.max_lazy_match&&u.strstart-l<=u.w_size-262&&(u.match_length=RVb(u,l),u.match_length<=5&&(u.strategy===1||u.match_length===3&&
u.strstart-u.match_start>4096)&&(u.match_length=2));if(u.prev_length>=3&&u.match_length<=u.prev_length){D=u.strstart+u.lookahead-3;l=fU(u,u.strstart-1-u.prev_match,u.prev_length-3);u.lookahead-=u.prev_length-1;u.prev_length-=2;do++u.strstart<=D&&(u.ins_h=(u.ins_h<<u.hash_shift^u.window[u.strstart+3-1])&u.hash_mask,u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart);while(--u.prev_length!==0);u.match_available=0;u.match_length=2;u.strstart++;if(l&&(T_(u,!1),u.strm.avail_out===0))return 1}else if(u.match_available){if((l=
fU(u,0,u.window[u.strstart-1]))&&T_(u,!1),u.strstart++,u.lookahead--,u.strm.avail_out===0)return 1}else u.match_available=1,u.strstart++,u.lookahead--}u.match_available&&(fU(u,0,u.window[u.strstart-1]),u.match_available=0);u.insert=u.strstart<2?u.strstart:2;return K===4?(T_(u,!0),u.strm.avail_out===0?3:4):u.last_lit&&(T_(u,!1),u.strm.avail_out===0)?1:2};
Q7y=function(u,K){for(var l,D,d,C=u.window;;){if(u.lookahead<=258){gl(u);if(u.lookahead<=258&&K===0)return 1;if(u.lookahead===0)break}u.match_length=0;if(u.lookahead>=3&&u.strstart>0&&(D=u.strstart-1,l=C[D],l===C[++D]&&l===C[++D]&&l===C[++D])){for(d=u.strstart+258;l===C[++D]&&l===C[++D]&&l===C[++D]&&l===C[++D]&&l===C[++D]&&l===C[++D]&&l===C[++D]&&l===C[++D]&&D<d;);u.match_length=258-(d-D);u.match_length>u.lookahead&&(u.match_length=u.lookahead)}u.match_length>=3?(l=fU(u,1,u.match_length-3),u.lookahead-=
u.match_length,u.strstart+=u.match_length,u.match_length=0):(l=fU(u,0,u.window[u.strstart]),u.lookahead--,u.strstart++);if(l&&(T_(u,!1),u.strm.avail_out===0))return 1}u.insert=0;return K===4?(T_(u,!0),u.strm.avail_out===0?3:4):u.last_lit&&(T_(u,!1),u.strm.avail_out===0)?1:2};
Pvq=function(u,K){for(var l;;){if(u.lookahead===0&&(gl(u),u.lookahead===0)){if(K===0)return 1;break}u.match_length=0;l=fU(u,0,u.window[u.strstart]);u.lookahead--;u.strstart++;if(l&&(T_(u,!1),u.strm.avail_out===0))return 1}u.insert=0;return K===4?(T_(u,!0),u.strm.avail_out===0?3:4):u.last_lit&&(T_(u,!1),u.strm.avail_out===0)?1:2};
kL=function(u,K,l,D,d){this.good_length=u;this.max_lazy=K;this.nice_length=l;this.max_chain=D;this.func=d};
J_y=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 eG.Buf16(1146);this.dyn_dtree=new eG.Buf16(122);this.bl_tree=new eG.Buf16(78);JP(this.dyn_ltree);JP(this.dyn_dtree);JP(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new eG.Buf16(16);this.heap=new eG.Buf16(573);JP(this.heap);this.heap_max=this.heap_len=0;this.depth=new eG.Buf16(573);JP(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};
j7n=function(u,K){if(!u||!u.state||K>5||K<0)return u?PA(u,-2):-2;var l=u.state;if(!u.output||!u.input&&u.avail_in!==0||l.status===666&&K!==4)return PA(u,u.avail_out===0?-5:-2);l.strm=u;var D=l.last_flush;l.last_flush=K;if(l.status===42)if(l.wrap===2)u.adler=0,wl(l,31),wl(l,139),wl(l,8),l.gzhead?(wl(l,(l.gzhead.text?1:0)+(l.gzhead.hcrc?2:0)+(l.gzhead.extra?4:0)+(l.gzhead.name?8:0)+(l.gzhead.comment?16:0)),wl(l,l.gzhead.time&255),wl(l,l.gzhead.time>>8&255),wl(l,l.gzhead.time>>16&255),wl(l,l.gzhead.time>>
24&255),wl(l,l.level===9?2:l.strategy>=2||l.level<2?4:0),wl(l,l.gzhead.os&255),l.gzhead.extra&&l.gzhead.extra.length&&(wl(l,l.gzhead.extra.length&255),wl(l,l.gzhead.extra.length>>8&255)),l.gzhead.hcrc&&(u.adler=Vs(u.adler,l.pending_buf,l.pending,0)),l.gzindex=0,l.status=69):(wl(l,0),wl(l,0),wl(l,0),wl(l,0),wl(l,0),wl(l,l.level===9?2:l.strategy>=2||l.level<2?4:0),wl(l,3),l.status=113);else{var d=8+(l.w_bits-8<<4)<<8;d|=(l.strategy>=2||l.level<2?0:l.level<6?1:l.level===6?2:3)<<6;l.strstart!==0&&(d|=
32);l.status=113;FZ(l,d+(31-d%31));l.strstart!==0&&(FZ(l,u.adler>>>16),FZ(l,u.adler&65535));u.adler=1}if(l.status===69)if(l.gzhead.extra){for(d=l.pending;l.gzindex<(l.gzhead.extra.length&65535)&&(l.pending!==l.pending_buf_size||(l.gzhead.hcrc&&l.pending>d&&(u.adler=Vs(u.adler,l.pending_buf,l.pending-d,d)),jG(u),d=l.pending,l.pending!==l.pending_buf_size));)wl(l,l.gzhead.extra[l.gzindex]&255),l.gzindex++;l.gzhead.hcrc&&l.pending>d&&(u.adler=Vs(u.adler,l.pending_buf,l.pending-d,d));l.gzindex===l.gzhead.extra.length&&
(l.gzindex=0,l.status=73)}else l.status=73;if(l.status===73)if(l.gzhead.name){d=l.pending;do{if(l.pending===l.pending_buf_size&&(l.gzhead.hcrc&&l.pending>d&&(u.adler=Vs(u.adler,l.pending_buf,l.pending-d,d)),jG(u),d=l.pending,l.pending===l.pending_buf_size)){var C=1;break}C=l.gzindex<l.gzhead.name.length?l.gzhead.name.charCodeAt(l.gzindex++)&255:0;wl(l,C)}while(C!==0);l.gzhead.hcrc&&l.pending>d&&(u.adler=Vs(u.adler,l.pending_buf,l.pending-d,d));C===0&&(l.gzindex=0,l.status=91)}else l.status=91;if(l.status===
91)if(l.gzhead.comment){d=l.pending;do{if(l.pending===l.pending_buf_size&&(l.gzhead.hcrc&&l.pending>d&&(u.adler=Vs(u.adler,l.pending_buf,l.pending-d,d)),jG(u),d=l.pending,l.pending===l.pending_buf_size)){C=1;break}C=l.gzindex<l.gzhead.comment.length?l.gzhead.comment.charCodeAt(l.gzindex++)&255:0;wl(l,C)}while(C!==0);l.gzhead.hcrc&&l.pending>d&&(u.adler=Vs(u.adler,l.pending_buf,l.pending-d,d));C===0&&(l.status=103)}else l.status=103;l.status===103&&(l.gzhead.hcrc?(l.pending+2>l.pending_buf_size&&jG(u),
l.pending+2<=l.pending_buf_size&&(wl(l,u.adler&255),wl(l,u.adler>>8&255),u.adler=0,l.status=113)):l.status=113);if(l.pending!==0){if(jG(u),u.avail_out===0)return l.last_flush=-1,0}else if(u.avail_in===0&&(K<<1)-(K>4?9:0)<=(D<<1)-(D>4?9:0)&&K!==4)return PA(u,-5);if(l.status===666&&u.avail_in!==0)return PA(u,-5);if(u.avail_in!==0||l.lookahead!==0||K!==0&&l.status!==666){D=l.strategy===2?Pvq(l,K):l.strategy===3?Q7y(l,K):Zq[l.level].func(l,K);if(D===3||D===4)l.status=666;if(D===1||D===3)return u.avail_out===
0&&(l.last_flush=-1),0;if(D===2&&(K===1?(a$(l,2,3),z_(l,256,BA),l.bi_valid===16?(cA(l,l.bi_buf),l.bi_buf=0,l.bi_valid=0):l.bi_valid>=8&&(l.pending_buf[l.pending++]=l.bi_buf&255,l.bi_buf>>=8,l.bi_valid-=8)):K!==5&&(a$(l,0,3),nOq(l,0,0),K===3&&(JP(l.head),l.lookahead===0&&(l.strstart=0,l.block_start=0,l.insert=0))),jG(u),u.avail_out===0))return l.last_flush=-1,0}if(K!==4)return 0;if(l.wrap<=0)return 1;l.wrap===2?(wl(l,u.adler&255),wl(l,u.adler>>8&255),wl(l,u.adler>>16&255),wl(l,u.adler>>24&255),wl(l,
u.total_in&255),wl(l,u.total_in>>8&255),wl(l,u.total_in>>16&255),wl(l,u.total_in>>24&255)):(FZ(l,u.adler>>>16),FZ(l,u.adler&65535));jG(u);l.wrap>0&&(l.wrap=-l.wrap);return l.pending!==0?0:1};
Beb=function(u){if(!(this instanceof Beb))return new Beb(u);u=this.options=eG.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},u||{});u.raw&&u.windowBits>0?u.windowBits=-u.windowBits:u.gzip&&u.windowBits>0&&u.windowBits<16&&(u.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new pIy;this.strm.avail_out=0;var K=this.strm;var l=u.level,D=u.method,d=u.windowBits,C=u.memLevel,W=u.strategy;if(K){var M=1;l===-1&&(l=6);d<0?(M=0,d=-d):d>15&&
(M=2,d-=16);if(C<1||C>9||D!==8||d<8||d>15||l<0||l>9||W<0||W>4)K=PA(K,-2);else{d===8&&(d=9);var q=new J_y;K.state=q;q.strm=K;q.wrap=M;q.gzhead=null;q.w_bits=d;q.w_size=1<<q.w_bits;q.w_mask=q.w_size-1;q.hash_bits=C+7;q.hash_size=1<<q.hash_bits;q.hash_mask=q.hash_size-1;q.hash_shift=~~((q.hash_bits+3-1)/3);q.window=new eG.Buf8(q.w_size*2);q.head=new eG.Buf16(q.hash_size);q.prev=new eG.Buf16(q.w_size);q.lit_bufsize=1<<C+6;q.pending_buf_size=q.lit_bufsize*4;q.pending_buf=new eG.Buf8(q.pending_buf_size);
q.d_buf=q.lit_bufsize;q.l_buf=3*q.lit_bufsize;q.level=l;q.strategy=W;q.method=D;if(K&&K.state){K.total_in=K.total_out=0;K.data_type=2;l=K.state;l.pending=0;l.pending_out=0;l.wrap<0&&(l.wrap=-l.wrap);l.status=l.wrap?42:113;K.adler=l.wrap===2?0:1;l.last_flush=0;if(!icq){D=Array(16);for(C=W=0;C<28;C++)for(ttZ[C]=W,d=0;d<1<<GOh[C];d++)R$[W++]=C;R$[W-1]=C;for(C=W=0;C<16;C++)for(Sdq[C]=W,d=0;d<1<<xuw[C];d++)Uv[W++]=C;for(W>>=7;C<30;C++)for(Sdq[C]=W<<7,d=0;d<1<<xuw[C]-7;d++)Uv[256+W++]=C;for(d=0;d<=15;d++)D[d]=
0;for(d=0;d<=143;)BA[d*2+1]=8,d++,D[8]++;for(;d<=255;)BA[d*2+1]=9,d++,D[9]++;for(;d<=279;)BA[d*2+1]=7,d++,D[7]++;for(;d<=287;)BA[d*2+1]=8,d++,D[8]++;MtH(BA,287,D);for(d=0;d<30;d++)pU[d*2+1]=5,pU[d*2]=Hc9(d,5);Teh=new oOL(BA,GOh,257,286,15);wIH=new oOL(pU,xuw,0,30,15);Fdo=new oOL([],Vtw,0,19,7);icq=!0}l.l_desc=new WdH(l.dyn_ltree,Teh);l.d_desc=new WdH(l.dyn_dtree,wIH);l.bl_desc=new WdH(l.bl_tree,Fdo);l.bi_buf=0;l.bi_valid=0;qdR(l);l=0}else l=PA(K,-2);l===0&&(K=K.state,K.window_size=2*K.w_size,JP(K.head),
K.max_lazy_match=Zq[K.level].max_lazy,K.good_match=Zq[K.level].good_length,K.nice_match=Zq[K.level].nice_length,K.max_chain_length=Zq[K.level].max_chain,K.strstart=0,K.block_start=0,K.lookahead=0,K.insert=0,K.match_length=K.prev_length=2,K.match_available=0,K.ins_h=0);K=l}}else K=-2;if(K!==0)throw Error(Qs[K]);u.header&&(K=this.strm)&&K.state&&K.state.wrap===2&&(K.state.gzhead=u.header);if(u.dictionary){var v;typeof u.dictionary==="string"?v=gOR(u.dictionary):Ney.call(u.dictionary)==="[object ArrayBuffer]"?
v=new Uint8Array(u.dictionary):v=u.dictionary;u=this.strm;C=v;W=C.length;if(u&&u.state)if(v=u.state,K=v.wrap,K===2||K===1&&v.status!==42||v.lookahead)K=-2;else{K===1&&(u.adler=Uuq(u.adler,C,W,0));v.wrap=0;W>=v.w_size&&(K===0&&(JP(v.head),v.strstart=0,v.block_start=0,v.insert=0),l=new eG.Buf8(v.w_size),eG.arraySet(l,C,W-v.w_size,v.w_size,0),C=l,W=v.w_size);l=u.avail_in;D=u.next_in;d=u.input;u.avail_in=W;u.next_in=0;u.input=C;for(gl(v);v.lookahead>=3;){C=v.strstart;W=v.lookahead-2;do v.ins_h=(v.ins_h<<
v.hash_shift^v.window[C+3-1])&v.hash_mask,v.prev[C&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=C,C++;while(--W);v.strstart=C;v.lookahead=2;gl(v)}v.strstart+=v.lookahead;v.block_start=v.strstart;v.insert=v.lookahead;v.lookahead=0;v.match_length=v.prev_length=2;v.match_available=0;u.next_in=D;u.input=d;u.avail_in=l;v.wrap=K;K=0}else K=-2;if(K!==0)throw Error(Qs[K]);this._dict_set=!0}};
kOw=function(u,K){K=K||{};K.gzip=!0;K=new Beb(K);K.push(u,!0);if(K.err)throw K.msg||Qs[K.err];return K.result};
YdZ=function(u,K){var l=Zcq();l&&l.publish.call(l,u.toString(),u,K)};
EOq=function(u,K,l){var D=Zcq();if(!D)return 0;var d=D.subscribe(u.toString(),function(C,W){var M=_.lZ("ytPubsub2Pubsub2SkipSubKey");M&&M==d||(M=function(){if(A_q[d])try{if(W&&u instanceof XIo&&u!=C)try{var q=u.dataClass,v=W;if(!v.args||!v.version)throw Error("Yc");try{if(!q.version_){var G=new q;q.version_=G.version}var t=q.version_}catch(x){}if(!t||v.version!=t)throw Error("Zc");try{W=Reflect.construct(q,_.Xq(v.args))}catch(x){throw x.message="yt.pubsub2.Data.deserialize(): "+x.message,x;}}catch(x){throw x.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+u.toString()+": "+x.message,x;}K.call(l||window,W)}catch(x){_.uZ(x)}},muR[u.toString()]?_.lZ("yt.scheduler.instance")?_.YL.addLowPriorityJob(M):_.aK(M,0):M())});
A_q[d]=!0;hVR[u.toString()]||(hVR[u.toString()]=[]);hVR[u.toString()].push(d);return d};
lvZ=function(){var u=LdL,K=EOq(urn,function(l){u.apply(void 0,arguments);K3r(K)});
return K};
K3r=function(u){var K=Zcq();K&&(typeof u==="number"&&(u=[u]),_.yx(u,function(l){K.unsubscribeByKey(l);delete A_q[l]}))};
Zcq=function(){return _.lZ("ytPubsub2Pubsub2Instance")};
Dnq=function(u,K,l){l=l===void 0?{sampleRate:.1}:l;Math.random()<Math.min(.02,l.sampleRate/100)&&YdZ("meta_logging_csi_event",{timerName:u,timelineData:K})};
_.dnb=function(u){return u?(u=u.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.MT(u):null:null};
_.AP=function(u){return u?(u=u.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.Fz(u):null:null};
Ivq=function(){Cih||(Cih=_.AP(_.E3("WORKER_SERIALIZATION_URL")));return Cih||void 0};
_.sbq=function(){var u=Ivq();yUh||u===void 0||(yUh=new Worker(_.VS(u),void 0));return yUh};
_.oHo=function(){return typeof Worker==="function"&&Ivq()?!0:!1};
_.q9H=function(){if(_.oHo()&&!W3o){var u=function(l){l=l.data;if(l.op==="gzippedGelBatch"){var D=Hgo.get(l.key);D&&(M8Z(l.gzippedBatch,D.latencyPayload,D.url,D.options,D.sendFn),Hgo.delete(l.key))}},K=_.sbq();
K&&(K.addEventListener("message",u),K.onerror=function(){Hgo.clear()},W3o=!0)}};
xnn=function(u,K,l,D,d){d=d===void 0?!1:d;var C={startTime:(0,_.vA)(),ticks:{},infos:{}};if(XZ)try{var W=$nh(K);if(W!=null&&(W>nHL||W<rUL))D(u,l);else{if(_.S("gzip_gel_with_worker")&&(_.S("initial_gzip_use_main_thread")&&!vHh||!_.S("initial_gzip_use_main_thread"))){W3o||_.q9H();var M=_.sbq();if(M&&!d){Hgo.set(GQh,{latencyPayload:C,url:u,options:l,sendFn:D});M.postMessage({op:"gelBatchToGzip",serializedBatch:K,key:GQh});GQh++;return}}var q=kOw(t8q(K));M8Z(q,C,u,l,D)}}catch(v){_.D_(v),D(u,l)}else D(u,
l)};
M8Z=function(u,K,l,D,d){vHh=!1;var C=(0,_.vA)();K.ticks.gelc=C;m5++;_.S("disable_compression_due_to_performance_degredation")&&C-K.startTime>=S9h&&(bgw++,_.S("abandon_compression_after_N_slow_zips")?m5===_.Sg("compression_disable_point")&&bgw>Ogy&&(XZ=!1):XZ=!1);cUh(K);D.headers||(D.headers={});D.headers["Content-Encoding"]="gzip";D.postBody=u;D.postParams=void 0;d(l,D)};
avo=function(u){var K=K===void 0?!1:K;var l=l===void 0?!1:l;var D=(0,_.vA)(),d={startTime:D,ticks:{},infos:{}},C=K?_.lZ("yt.logging.gzipForFetch",!1):!0;if(XZ&&C){if(!u.body)return u;try{var W=l?u.body:typeof u.body==="string"?u.body:JSON.stringify(u.body);C=W;if(!l&&typeof W==="string"){var M=$nh(W);if(M!=null&&(M>nHL||M<rUL))return u;l=K?{level:1}:void 0;C=kOw(t8q(W),l);var q=(0,_.vA)();d.ticks.gelc=q;if(K){m5++;if((_.S("disable_compression_due_to_performance_degredation")||_.S("disable_compression_due_to_performance_degradation_lr"))&&
q-D>=S9h)if(bgw++,_.S("abandon_compression_after_N_slow_zips")||_.S("abandon_compression_after_N_slow_zips_lr")){K=bgw/m5;var v=Ogy/_.Sg("compression_disable_point");m5>0&&m5%_.Sg("compression_disable_point")===0&&K>=v&&(XZ=!1)}else XZ=!1;cUh(d)}}u.headers=Object.assign({},{"Content-Encoding":"gzip"},u.headers||{});u.body=C;return u}catch(G){return _.D_(G),u}}else return u};
$nh=function(u){try{return(new Blob(u.split(""))).size}catch(K){return _.D_(K),null}};
cUh=function(u){_.S("gel_compression_csi_killswitch")||!_.S("log_gel_compression_latency")&&!_.S("log_gel_compression_latency_lr")||Dnq("gel_compression",u,{sampleRate:.1})};
z4Z=function(){this.blockSize=-1};
hP=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var u=1;u<this.blockSize;++u)this.pad_[u]=0;this.total_=this.inbuf_=0;this.reset()};
R4w=function(u){u=Object.assign({},u);delete u.Authorization;var K=_.e4Z();if(K){var l=new hP;l.update(_.E3("INNERTUBE_API_KEY"));l.update(K);u.hash=_.Yp(l.digest(),3)}return u};
uP=function(){Unq||(Unq=new _.Ev("yt.innertube"));return Unq};
fvH=function(u,K,l,D){if(D)return null;D=uP().get("nextId",!0)||1;var d=uP().get("requests",!0)||{};d[D]={method:u,request:K,authState:R4w(l),requestTime:Math.round((0,_.vA)())};uP().set("nextId",D+1,86400,!0);uP().set("requests",d,86400,!0);return D};
QbZ=function(u){var K=uP().get("requests",!0)||{};delete K[u];uP().set("requests",K,86400,!0)};
JUq=function(u){var K=uP().get("requests",!0);if(K){for(var l in K){var D=K[l];if(!(Math.round((0,_.vA)())-D.requestTime<6E4)){var d=D.authState,C=R4w(_.y_q(!1));_.k$.equals(d,C)&&(d=D.request,"requestTimeMs"in d&&(d.requestTimeMs=Math.round((0,_.vA)())),PiH(u,D.method,d,{}));delete K[l]}}uP().set("requests",K,86400,!0)}};
jby=function(u){var K;return(u=u==null?void 0:(K=u.error)==null?void 0:K.code)&&u>=400&&u<=599?!1:!0};
Bny=function(u){var K;u=u==null?void 0:(K=u.error)==null?void 0:K.code;return!(u!==400&&u!==415)};
ig9=function(){if(pFH)return pFH();var u={};pFH=rl("LogsDatabaseV2",{objectStores:(u.LogsRequestsStore={addedAtVersion:2},u),shared:!1,upgrade:function(K,l,D){l(2)&&lP(K,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});l(3);l(5)&&(D=D.objectStore("LogsRequestsStore"),D.JSC$10572_wrapped.indexNames.contains("newRequest")&&D.JSC$10572_wrapped.deleteIndex("newRequest"),Ds(D,"newRequestV2",["status","interface","timestamp"]));l(7)&&K.JSC$10558_wrapped.objectStoreNames.contains("sapisid")&&K.JSC$10558_wrapped.deleteObjectStore("sapisid");
l(9)&&K.JSC$10558_wrapped.objectStoreNames.contains("SWHealthLog")&&K.JSC$10558_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return pFH()};
d2=function(u){return _.sv(ig9(),u)};
wFo=function(u,K){var l,D,d,C;return _.H(function(W){if(W.nextAddress==1)return l={startTime:(0,_.vA)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},W.yield(d2(K),2);if(W.nextAddress!=3)return D=W.yieldResult,d=Object.assign({},u,{options:JSON.parse(JSON.stringify(u.options)),interface:_.E3("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),W.yield(D.put("LogsRequestsStore",d),3);C=W.yieldResult;l.ticks.tc=(0,_.vA)();Tnw(l);return W.return(C)})};
F3h=function(u,K){var l,D,d,C,W,M,q,v,G;return _.H(function(t){if(t.nextAddress==1)return l={startTime:(0,_.vA)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},t.yield(d2(K),2);if(t.nextAddress!=3)return D=t.yieldResult,d=_.E3("INNERTUBE_CONTEXT_CLIENT_NAME",0),C=[u,d,0],W=[u,d,(0,_.vA)()],M=IDBKeyRange.bound(C,W),q="prev",_.S("use_fifo_for_networkless")&&(q="next"),v=void 0,G=u==="NEW"?"readwrite":"readonly",_.S("use_readonly_for_get_most_recent_by_status_killswitch")&&(G="readwrite"),
t.yield(_.o$(D,["LogsRequestsStore"],{mode:G,enableRetries:!0},function(x){return _.G_(x.objectStore("LogsRequestsStore").index("newRequestV2"),{query:M,direction:q},function(O){O.getValue()&&(v=O.getValue(),u==="NEW"&&(v.status="QUEUED",O.update(v)))})}),3);
l.ticks.tc=(0,_.vA)();Tnw(l);return t.return(v)})};
V8b=function(u,K){var l;return _.H(function(D){if(D.nextAddress==1)return D.yield(d2(K),2);l=D.yieldResult;return D.return(_.o$(l,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(d){var C=d.objectStore("LogsRequestsStore");return C.get(u).then(function(W){if(W)return W.status="QUEUED",C.put(W).then(function(){return W})})}))})};
gH9=function(u,K,l,D){l=l===void 0?!0:l;var d;return _.H(function(C){if(C.nextAddress==1)return C.yield(d2(K),2);d=C.yieldResult;return C.return(_.o$(d,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(W){var M=W.objectStore("LogsRequestsStore");return M.get(u).then(function(q){return q?(q.status="NEW",l&&(q.sendCount+=1),D!==void 0&&(q.options.compress=D),M.put(q).then(function(){return q})):KU.resolve(void 0)})}))})};
NnH=function(u,K){var l;return _.H(function(D){if(D.nextAddress==1)return D.yield(d2(K),2);l=D.yieldResult;return D.return(l.delete("LogsRequestsStore",u))})};
kQZ=function(u){var K,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(d2(u),2);K=D.yieldResult;l=(0,_.vA)()-2592E6;return D.yield(_.o$(K,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(d){return HA(d.objectStore("LogsRequestsStore"),{},function(C){if(C.getValue().timestamp<=l)return C.delete().then(function(){return C.continue()})})}),0)})};
Zgq=function(){_.H(function(u){return u.yield(jfZ("LogsDatabaseV2"),0)})};
Tnw=function(u){_.S("nwl_csi_killswitch")||Dnq("networkless_performance",u,{sampleRate:1})};
_.AUy=function(u){return _.sv(Y9b(),u)};
XF9=function(u){var K,l;_.H(function(D){if(D.nextAddress==1)return D.yield(_.AUy(u),2);K=D.yieldResult;l=(0,_.vA)()-2592E6;return D.yield(_.o$(K,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(d){return HA(d.objectStore("SWHealthLog"),{},function(C){if(C.getValue().timestamp<=l)return C.delete().then(function(){return C.continue()})})}),0)})};
mnq=function(u){var K;return _.H(function(l){if(l.nextAddress==1)return l.yield(_.AUy(u),2);K=l.yieldResult;return l.yield(K.clear("SWHealthLog"),0)})};
_.Cp=function(u,K,l,D,d,C,W){d=d===void 0?"":d;C=C===void 0?!1:C;W=W===void 0?!1:W;if(u)if(l&&!h9("cobalt"))_.D_(new _.wv("Legacy referrer-scrubbed ping detected")),u&&h4n(u,void 0,{scrubReferrer:!0});else if(d)bNr(u,K,"POST",d,D);else if(_.E3("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||D||W)bNr(u,K,"GET","",D,void 0,C,W);else{b:{try{c:{var M=new EHq({url:u});if(M.urlParamValues_.dsh==="1")var q=null;else{var v=M.urlParamValues_.ae;if(v==="1"){var G=M.urlParamValues_.adurl;if(G)try{q={version:3,directUrl:decodeURIComponent(G),
asyncUrl:H0H(M.JSC$9402_url_,"act=1","ri=1",L3L(M))};break c}catch(a){}}q=v==="2"?{version:4,directUrl:H0H(M.JSC$9402_url_,"dct=1","suid="+M.suid_,""),asyncUrl:H0H(M.JSC$9402_url_,"act=1","ri=1","suid="+M.suid_)}:null}}if(q){var t=_.RK(u);var x=!(!t||!t.endsWith("/aclk")||_.ur(u,"ri")!=="1");break b}}catch(a){}x=!1}if(x){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(u,"")){var O=!0;break b}}catch(a){}O=!1}O?(K&&K(),l=!0):l=!1}else l=!1;l||h4n(u,K)}};
h4n=function(u,K,l){l=l===void 0?{}:l;var D=new Image,d=""+uuh++;KQy[d]=D;D.onload=D.onerror=function(){K&&KQy[d]&&K();delete KQy[d]};
l.scrubReferrer&&(D.referrerPolicy="no-referrer");D.src=u};
IL=function(u,K){lpy(u,K==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
DEL=function(u){var K;return((K=document.featurePolicy)==null?0:K.allowedFeatures().includes("attribution-reporting"))?u+"&nis=6":u+"&nis=5"};
dEy=function(u){if(!u)return!1;try{var K;if(((K=_.sP(u))==null?void 0:K.asm)==="4")return!0}catch(l){_.uZ(l)}return!1};
lpy=function(u,K){K?(u=DEL(u),_.Cp(u,void 0,void 0,void 0,"",!0,!0)):_.Cp(u)};
IpR=function(){CTZ||(CTZ=new _.Ev("yt.offline"));return CTZ};
ylH=function(u){if(_.S("offline_error_handling")){var K=IpR().get("errors",!0)||{};K[u.message]={name:u.name,stack:u.stack};u.level&&(K[u.message].level=u.level);IpR().set("errors",K,2592E3,!0)}};
oUn=function(u,K,l,D){D=D===void 0?!1:D;K=_.S("web_fp_via_jspb")?Object.assign({},K):K;_.S("use_cfr_monitor")&&stL(u,K);if(_.S("use_request_time_ms_header"))K.headers&&nT(u)&&(K.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.vA)())));else{var d;if((d=K.postParams)==null?0:d.requestTimeMs)K.postParams.requestTimeMs=Math.round((0,_.vA)())}l&&Object.keys(K).length===0?_.Cp(u):K.compress?K.postBody?(typeof K.postBody!=="string"&&(K.postBody=JSON.stringify(K.postBody)),xnn(u,K.postBody,
K,_.UP,D)):xnn(u,JSON.stringify(K.postParams),K,zdr,D):_.UP(u,K)};
WQH=function(u,K){_.S("use_event_time_ms_header")&&nT(u)&&(K.headers||(K.headers={}),K.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.vA)())));return K};
_.M1h=function(){Hrn||(Hrn=new _.ye({logOfflineErrors:!0,enablePolling:!0}));return Hrn};
stL=function(u,K){var l=K.onError?K.onError:function(){};
K.onError=function(d,C){s5().requestComplete(u,!1);l(d,C)};
var D=K.onSuccess?K.onSuccess:function(){};
K.onSuccess=function(d,C){s5().requestComplete(u,!0);D(d,C)}};
_.qpR=function(){return _.q7(document.location.toString())!=="www.youtube-nocookie.com"};
_.rly=function(){return _.lZ("ytNetworklessLoggingInitializationOptions")?_.$E9.isNwlInitialized:_.nUZ};
vUH=function(u,K){if(_.S("polymer_on_demand_shady_dom")){var l;var D=(l=u.__shady_native_firstElementChild)!=null?l:u.firstElementChild}else D=u.firstElementChild;for(;D;){if(u=K(D)?D:vUH(D,K))return u;D=D.nextElementSibling}return null};
t1r=function(){var u=document;if("visibilityState"in u)return u.visibilityState;var K=GWh+"VisibilityState";if(K in u)return u[K]};
_.xEZ=function(u,K){var l;oL(u,function(D){l=K[D];return!!l});
return l};
_.Hu=function(u){var K=Spn(u);K?K.focus(void 0):_.Wu(u)};
Spn=function(u){return(u=vUH(u,function(K){return _.Mm(K)?brq(K)&&!!K.offsetParent:!1}))?u:null};
_.Wu=function(u,K){u.hasAttribute("tabindex")||u.setAttribute("tabindex","-1");u.focus(K)};
OrL=function(u,K,l,D){D=D===void 0?{}:D;u.addEventListener&&(K!="mouseenter"||"onmouseenter"in document?K!="mouseleave"||"onmouseenter"in document?K=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(K="MozMousePixelScroll"):K="mouseout":K="mouseover");return _.k$.findKey(qm,function(d){var C=typeof d[4]==="boolean"&&d[4]==!!D,W=_.Ks(d[4])&&_.Ks(D)&&_.k$.equals(d[4],D);return!!d.length&&d[0]==u&&d[1]==K&&d[2]==l&&(C||W)})};
_.np=function(u,K,l,D){D=D===void 0?{}:D;if(!u||!u.addEventListener&&!u.attachEvent)return"";var d=OrL(u,K,l,D);if(d)return d;d=++cln.count+"";var C=!(K!="mouseenter"&&K!="mouseleave"||!u.addEventListener||"onmouseenter"in document);var W=C?function(M){M=new $E(M);if(!_.LS(M.relatedTarget,function(q){return q==u},!0))return M.currentTarget=u,M.type=K,l.call(u,M)}:function(M){M=new $E(M);
M.currentTarget=u;return l.call(u,M)};
W=_.KT(W);u.addEventListener?(K=="mouseenter"&&C?K="mouseover":K=="mouseleave"&&C?K="mouseout":K=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(K="MozMousePixelScroll"),apL()||typeof D==="boolean"?u.addEventListener(K,W,D):u.addEventListener(K,W,!!D.capture)):u.attachEvent("on"+K,W);qm[d]=[u,K,l,W,D];return d};
_.ePw=function(u,K,l){var D=D===void 0?{}:D;var d=_.np(u,K,function(){_.zPr(d);l.apply(u,arguments)},D)};
_.zPr=function(u){u&&(typeof u=="string"&&(u=[u]),_.yx(u,function(K){if(K in qm){var l=qm[K],D=l[0],d=l[1],C=l[3];l=l[4];D.removeEventListener?apL()||typeof l==="boolean"?D.removeEventListener(d,C,l):D.removeEventListener(d,C,!!l.capture):D.detachEvent&&D.detachEvent("on"+d,C);delete qm[K]}}))};
r2=function(u){this.callback_=u;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(u=0;u<4;u++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.np(window,"mousemove",(0,_.wB)(this.onMouseMove_,this));this.timerId_=_.zB((0,_.wB)(this.checkPosition_,this),25)};
UEZ=function(){var u={};var K=u.preferMobileEvents===void 0?!1:u.preferMobileEvents;u=u.enableScrollEventListener===void 0?!0:u.enableScrollEventListener;if(_.lZ("_lact",window)==null){var l=parseInt(_.E3("LACT"),10);l=isFinite(l)?Date.now()-Math.max(l,0):-1;_.$L("_lact",l,window);_.$L("_fact",l,window);l==-1&&_.vu();_.np(document,"keydown",_.vu);_.np(document,"keyup",_.vu);_.np(document,"mousedown",_.vu);_.np(document,"mouseup",_.vu);K?_.np(window,"touchmove",function(){RPH("touchmove",200)},{passive:!0}):
(_.np(window,"resize",function(){RPH("resize",200)}),u&&_.np(window,"scroll",function(){RPH("scroll",200)}));
new r2(function(){RPH("mouse",100)});
_.np(document,"touchstart",_.vu,{passive:!0});_.np(document,"touchend",_.vu,{passive:!0})}};
RPH=function(u,K){fpH[u]||(fpH[u]=!0,_.YL.addLowPriorityJob(function(){_.vu();fpH[u]=!1},K))};
_.vu=function(){_.lZ("_lact",window)==null&&UEZ();var u=Date.now();_.$L("_lact",u,window);_.lZ("_fact",window)==-1&&_.$L("_fact",u,window);(u=_.lZ("ytglobal.ytUtilActivityCallback_"))&&u()};
_.Gr=function(){var u=_.lZ("_lact",window);return u==null?-1:Math.max(Date.now()-u,0)};
_.bP=function(u,K,l){var D=_.tV();if(D&&K){var d=D.subscribe(u,function(){var C=arguments,W=function(){xE[d]&&K.apply&&typeof K.apply=="function"&&K.apply(l||window,C)};
try{_.Qth[u]?W():_.aK(W,0)}catch(M){_.uZ(M)}},l);
xE[d]=!0;SH[u]||(SH[u]=[]);SH[u].push(d);return d}return 0};
_.PTL=function(u){var K=_.tV();K&&(typeof u==="number"?u=[u]:typeof u==="string"&&(u=[parseInt(u,10)]),_.yx(u,function(l){K.unsubscribeByKey(l);delete xE[l]}))};
_.JlR=function(u,K){var l=_.tV();l&&l.publish.apply(l,arguments)};
_.Bfy=function(u){var K=_.tV();if(K)if(K.clear(u),u)jtw(u);else for(var l in SH)jtw(l)};
_.tV=function(){return _.lL.ytPubsubPubsubInstance};
jtw=function(u){SH[u]&&(u=SH[u],_.yx(u,function(K){xE[K]&&delete xE[K]}),u.length=0)};
pbq=function(){var u,K;return"h5vcc"in O5&&((u=O5.h5vcc.traceEvent)==null?0:u.traceBegin)&&((K=O5.h5vcc.traceEvent)==null?0:K.traceEnd)?1:"performance"in O5&&O5.performance.mark&&O5.performance.measure?2:0};
irr=function(u){var K=pbq();switch(K){case 1:O5.h5vcc.traceEvent.traceBegin("YTLR",u);break;case 2:O5.performance.mark(u+"-start");break;case 0:break;default:_.o2(K,"unknown trace type")}};
TfR=function(u){var K=pbq();switch(K){case 1:O5.h5vcc.traceEvent.traceEnd("YTLR",u);break;case 2:K=u+"-start";var l=u+"-end";O5.performance.mark(l);O5.performance.measure(u,K,l);break;case 0:break;default:_.o2(K,"unknown trace type")}};
wbb=function(u){var K,l;(l=(K=window).onerror)==null||l.call(K,u.message,"",0,0,u)};
FQh=function(u){if(_.S("web_lifecycle_error_handling_killswitch"))return u();try{return u()}catch(K){wbb(K)}};
V1r=function(u){return[u.auth===void 0?"undefined":u.auth,u.isJspb===void 0?"undefined":u.isJspb,u.cttAuthInfo===void 0?"undefined":u.cttAuthInfo,u.tier===void 0?"undefined":u.tier].join("/")};
_.b=function(u,K){if(u)return u[K.name]};
aL=function(){var u=_.lZ("yt.logging.ims");u||(u=new cu,_.$L("yt.logging.ims",u));return u};
hPn=function(u,K){if(u.endpoint==="log_event"){gUq(u);var l=NfH(u),D=kWH(u.payload)||"",d=Zrb(D),C=200;if(d){if(d.enabled===!1&&!_.S("web_payload_policy_disabled_killswitch"))return;C=YpZ(d.tier);if(C===400){Alo(u,K);return}}zr[l]=!0;l={cttAuthInfo:l,isJspb:!1,tier:C};aL().storePayload(l,u.payload);Xbq(K,!1,l,mEZ(D))}};
LQy=function(u,K,l){if(K.endpoint==="log_event"){gUq(void 0,K);var D=NfH(K,!0),d=Zrb(u),C=200;if(d){if(d.enabled===!1&&!_.S("web_payload_policy_disabled_killswitch"))return;C=YpZ(d.tier);if(C===400){EUb(u,K,l);return}}zr[D]=!0;D={cttAuthInfo:D,isJspb:!0,tier:C};aL().storePayload(D,XI(K.payload));Xbq(l,!0,D,mEZ(u))}};
Xbq=function(u,K,l,D){K=K===void 0?!1:K;D=D===void 0?!1:D;u&&(eH=new u);u=_.Sg("tvhtml5_logging_max_batch_ads_fork")||_.Sg("tvhtml5_logging_max_batch")||_.Sg("web_logging_max_batch")||100;var d=(0,_.vA)(),C=ubH(K,l.tier),W=C.lastDebounceQueueFromLogTimeMs;D&&(C.useVideoStatsEndPoint=!0);D=0;l&&(D=aL().getSequenceCount(l));var M=function(){KEq({writeThenSend:!0},K,l.tier)};
D>=1E3?M():D>=u?l$r||(l$r=DIH(function(){M();l$r=void 0},0)):d-W>=10&&(dIL(K,l.tier),C.lastDebounceQueueFromLogTimeMs=d)};
Alo=function(u,K){if(u.endpoint==="log_event"){_.S("more_accurate_gel_parser")&&aL().storePayload({isJspb:!1},u.payload);gUq(u);var l=NfH(u),D=new Map;D.set(l,[u.payload]);var d=kWH(u.payload)||"";K&&(eH=new K);return new _.RL(function(C,W){eH&&eH.isReady()?Ctn(D,eH,C,W,{bypassNetworkless:!0},!0,mEZ(d)):C()})}};
EUb=function(u,K,l){if(K.endpoint==="log_event"){gUq(void 0,K);var D=NfH(K,!0),d=new Map;d.set(D,[XI(K.payload)]);l&&(eH=new l);return new _.RL(function(C){eH&&eH.isReady()?I$Z(d,eH,C,{bypassNetworkless:!0},!0,mEZ(u)):C()})}};
NfH=function(u,K){var l="";if(u.dangerousLogToVisitorSession)l="visitorOnlyApprovedKey";else if(u.cttAuthInfo){if(K===void 0?0:K){K=u.cttAuthInfo.token;l=u.cttAuthInfo;var D=new yBn;l.videoId?D.setVideoId(l.videoId):l.playlistId&&U5(D,2,sTh,T6(l.playlistId));ooL[K]=D}else K=u.cttAuthInfo,l={},K.videoId?l.videoId=K.videoId:K.playlistId&&(l.playlistId=K.playlistId),WEw[u.cttAuthInfo.token]=l;l=u.cttAuthInfo.token}return l};
KEq=function(u,K,l){u=u===void 0?{}:u;K=K===void 0?!1:K;new _.RL(function(D,d){var C=ubH(K,l),W=C.useVideoStatsEndPoint;C.useVideoStatsEndPoint=!1;H49(C.queueTimer);H49(C.queueMaxTimer);C.queueMaxTimer=0;eH&&eH.isReady()?l===void 0&&_.S("enable_web_tiered_gel")?MXb(D,d,u,K,300,W):MXb(D,d,u,K,l,W):(dIL(K,l),D())})};
MXb=function(u,K,l,D,d,C){var W=eH;l=l===void 0?{}:l;D=D===void 0?!1:D;d=d===void 0?200:d;C=C===void 0?!1:C;var M=new Map,q=new Map,v={isJspb:D,cttAuthInfo:void 0,tier:d},G={isJspb:D,cttAuthInfo:void 0};if(D){K=_.y(Object.keys(zr));for(d=K.next();!d.done;d=K.next())d=d.value,q=_.S("enable_web_tiered_gel")?aL().smartExtractMatchingEntries({keys:[v,G],sizeLimit:1E3}):aL().extractMatchingEntries({isJspb:!0,cttAuthInfo:d}),q.length>0&&M.set(d,q),(_.S("web_fp_via_jspb_and_json")&&l.writeThenSend||!_.S("web_fp_via_jspb_and_json"))&&
delete zr[d];I$Z(M,W,u,l,!1,C)}else{M=_.y(Object.keys(zr));for(v=M.next();!v.done;v=M.next())v=v.value,G=_.S("enable_web_tiered_gel")?aL().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:v,tier:d},{isJspb:!1,cttAuthInfo:v}],sizeLimit:1E3}):aL().extractMatchingEntries({isJspb:!1,cttAuthInfo:v}),G.length>0&&q.set(v,G),(_.S("web_fp_via_jspb_and_json")&&l.writeThenSend||!_.S("web_fp_via_jspb_and_json"))&&delete zr[v];Ctn(q,W,u,K,l,!1,C)}};
dIL=function(u,K){u=u===void 0?!1:u;K=K===void 0?200:K;var l=function(){KEq({writeThenSend:!0},u,K)},D=ubH(u,K),d=D===q4q||D===$Iq?5E3:noq;
_.S("web_gel_timeout_cap")&&!D.queueMaxTimer&&(d=DIH(function(){l()},d),D.queueMaxTimer=d);
H49(D.queueTimer);d=_.E3("LOGGING_BATCH_TIMEOUT",_.Sg("web_gel_debounce_ms",1E4));_.S("shorten_initial_gel_batch_timeout")&&rBq&&(d=von);d=DIH(function(){_.Sg("gel_min_batch_size")>0?aL().getSequenceCount({cttAuthInfo:void 0,isJspb:u,tier:K})>=GH9&&l():l()},d);
D.queueTimer=d};
Ctn=function(u,K,l,D,d,C,W){d=d===void 0?{}:d;var M=Math.round((0,_.vA)()),q=u.size,v=tXr(W);u=_.y(u);var G=u.next();for(W={};!G.done;W={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},G=u.next()){var t=_.y(G.value);G=t.next().value;t=t.next().value;W.batchRequest=_.k$.unsafeClone({context:_.Ewh(K.config_||_.tP())});if(!_.mb(t)&&!_.S("throw_err_when_logevent_malformed_killswitch")){D();break}W.batchRequest.events=t;
(t=WEw[G])&&xIo(W.batchRequest,G,t);delete WEw[G];W.dangerousLogToVisitorSession=G==="visitorOnlyApprovedKey";S4R(W.batchRequest,M,W.dangerousLogToVisitorSession);b49(d);W.onSuccess$jscomp$3=function(x){_.S("start_client_gcf")&&_.YL.addLowPriorityJob(function(){return _.H(function(O){return O.yield(O4R(x),0)})});
q--;q||l()};
W.networkFailures=0;W.onError$jscomp$5=function(x){return function(){x.networkFailures++;if(d.bypassNetworkless&&x.networkFailures===1)try{PiH(K,v,x.batchRequest,cBw({writeThenSend:!0},x.dangerousLogToVisitorSession,x.onSuccess$jscomp$3,x.onError$jscomp$5,C)),rBq=!1}catch(O){_.uZ(O),D()}q--;q||l()}}(W);
try{PiH(K,v,W.batchRequest,cBw(d,W.dangerousLogToVisitorSession,W.onSuccess$jscomp$3,W.onError$jscomp$5,C)),rBq=!1}catch(x){_.uZ(x),D()}}};
I$Z=function(u,K,l,D,d,C){D=D===void 0?{}:D;var W=Math.round((0,_.vA)()),M={value:u.size},q=new Map([].concat(_.Am(u)));q=_.y(q);for(var v=q.next();!v.done;v=q.next()){var G=_.y(v.value).next().value,t=u.get(G);v=new a$w;var x=K.config_||_.tP(),O=new fp,a=new zMy;_.Tj(a,1,x.innertubeContextHostLanguage);_.Tj(a,2,x.innertubeContextGeoLocation);_.xL(a,16,x.innertubeContextClientNameFieldNumber);_.Tj(a,17,x.innertubeContextClientVersion);if(x.innertubeContextClientConfigInfo){var f=x.innertubeContextClientConfigInfo,
B=new bn;f.coldConfigData&&_.Tj(B,1,f.coldConfigData);f.appInstallData&&_.Tj(B,6,f.appInstallData);f.coldHashData&&_.Tj(B,3,f.coldHashData);f.hotHashData&&B.setHotHashData(f.hotHashData);_.jF(a,62,B)}(f=_.lL.devicePixelRatio)&&f!=1&&_.SG(a,65,_.Mp(f));f=qxq();f!==""&&_.Tj(a,54,f);f=$BH();if(f.length>0){B=new eMq;for(var p=0;p<f.length;p++){var V=new Qe;V.setKey(f[p].key);U5(V,2,RMh,T6(f[p].value));Pu(B,15,Qe,V)}_.jF(O,5,B)}Zmq(x,a);YVb(O);Aub(a);XiH(x,a);mKq(a);_.S("start_client_gcf")&&h8q(a);_.E3("DELEGATED_SESSION_ID")&&
!_.S("pageid_as_header_web")&&(x=new jH,_.Tj(x,3,_.E3("DELEGATED_SESSION_ID")));!_.S("fill_delegate_context_in_gel_killswitch")&&(f=_.E3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(B=_.fV(O,jH,3)||new jH,x=O,f=_.Tj(B,18,f),_.jF(x,3,f));x=a;f=_.y(Object.entries(_.sP(_.E3("DEVICE",""))));for(B=f.next();!B.done;B=f.next())p=_.y(B.value),B=p.next().value,p=p.next().value,B==="cbrand"?_.Tj(x,12,p):B==="cmodel"?_.Tj(x,13,p):B==="cbr"?_.Tj(x,87,p):B==="cbrver"?_.Tj(x,88,p):B==="cos"?_.Tj(x,18,
p):B==="cosver"?_.Tj(x,19,p):B==="cplatform"&&_.xL(x,42,Ndb(p));O.setClient(a);_.jF(v,1,O);if(a=ooL[G])a:{if(_.Qf(a,Bu(a,sTh,1)))O=1;else if(a.getPlaylistId())O=2;else break a;_.jF(v,4,a);a=v.getContext()||new fp;x=_.fV(a,jH,3)||new jH;f=new pp;f.setToken(G);_.xL(f,1,O);Pu(x,12,pp,f);_.jF(a,3,x)}delete ooL[G];G=G==="visitorOnlyApprovedKey";UIo()||_.iP(v,2,W);!G&&(O=_.E3("EVENT_ID"))&&(a=f$q(),x=new QTq,_.Tj(x,1,O),_.iP(x,2,a),_.jF(v,5,x));b49(D);if(_.S("jspb_serialize_with_worker")&&(O=_.sbq())&&
D.writeThenSend){_.Ptb.set(JB9,{client:K,resolve:l,networklessOptions:D,isIsolated:d,useVSSEndpoint:C,dangerousLogToVisitorSession:G,requestsOutstanding:M});O.postMessage({op:"gelBatchToSerialize",batchRequest:XI(v),clientEvents:t,key:JB9});JB9++;break}if(t){O=[];for(a=0;a<t.length;a++)try{O.push(new Tr(t[a]))}catch(m){_.uZ(new _.wv("Transport failed to deserialize "+String(t[a])))}t=O}else t=[];t=_.y(t);for(O=t.next();!O.done;O=t.next())Pu(v,3,Tr,O.value);t={startTime:(0,_.vA)(),ticks:{},infos:{}};
v=v.serialize();t.ticks.geljspc=(0,_.vA)();_.S("log_jspb_serialize_latency")&&Dnq("gel_jspb_serialize",t,{sampleRate:.1});_.jTb(v,K,l,D,d,C,G,M)}};
_.jTb=function(u,K,l,D,d,C,W,M){D=D===void 0?{}:D;M=M===void 0?{value:0}:M;C=tXr(C);D=cBw(D,W,function(q){_.S("start_client_gcf")&&_.YL.addLowPriorityJob(function(){return _.H(function(v){return v.yield(O4R(q),0)})});
M.value--;M.value||l()},function(){M.value--;
M.value||l()},d);
D.headers["Content-Type"]="application/json+protobuf";D.postBodyFormat="JSPB";D.postBody=u;PiH(K,C,"",D);rBq=!1};
b49=function(u){_.S("always_send_and_write")&&(u.writeThenSend=!1)};
cBw=function(u,K,l,D,d){u={retry:!0,onSuccess:l,onError:D,networklessOptions:u,dangerousLogToVisitorSession:K,bypassMonitoring:!!d,headers:{},postBodyFormat:"",postBody:"",compress:_.S("compress_gel")||_.S("compress_gel_lr")};UIo()&&(u.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.vA)())));return u};
S4R=function(u,K,l){UIo()||(u.requestTimeMs=String(K));_.S("unsplit_gel_payloads_in_logs")&&(u.unsplitGelPayloadsInLogs=!0);!l&&(K=_.E3("EVENT_ID"))&&(l=f$q(),u.serializedClientEventId={serializedEventId:K,clientCounter:String(l)})};
f$q=function(){var u=_.E3("BATCH_CLIENT_COUNTER")||0;u||(u=Math.floor(Math.random()*65535/2));u++;u>65535&&(u=1);_.h8("BATCH_CLIENT_COUNTER",u);return u};
xIo=function(u,K,l){if(l.videoId)var D="VIDEO";else if(l.playlistId)D="PLAYLIST";else return;u.credentialTransferTokenTargetId=l;u.context=u.context||{};u.context.user=u.context.user||{};u.context.user.credentialTransferTokens=[{token:K,scope:D}]};
gUq=function(u,K){var l=_.bZ("il_payload_scraping")==="enable_il_payload_scraping";if(!_.lZ("yt.logging.transport.enableScrapingForTest"))if(l)BYw=[],_.$L("yt.logging.transport.enableScrapingForTest",!0),_.$L("yt.logging.transport.scrapedPayloadsForTesting",BYw),_.$L("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.$L("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.$L("yt.logging.transport.scrapeClientEvent",!0);else return;l=_.lZ("yt.logging.transport.scrapedPayloadsForTesting");var D=_.lZ("yt.logging.transport.payloadToScrape");K&&(K=_.lZ("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(K.payload)())&&l.push(K);K=_.lZ("yt.logging.transport.scrapeClientEvent");if(D&&D.length>=1)for(var d=0;d<D.length;d++)if(u&&u.payload[D[d]])if(K)l.push(u.payload);else{var C=void 0;l.push(((C=u)==null?void 0:C.payload)[D[d]])}_.$L("yt.logging.transport.scrapedPayloadsForTesting",
l)};
UIo=function(){return _.S("use_request_time_ms_header")||_.S("lr_use_request_time_ms_header")};
DIH=function(u,K){return _.S("transport_use_scheduler")===!1?_.aK(u,K):_.S("logging_avoid_blocking_during_navigation")||_.S("lr_logging_avoid_blocking_during_navigation")?_.Ve(_.YL,function(){if(_.p1w().currentState==="none")u();else{var l={};_.p1w().install((l.none={callback:u},l))}},K):_.Ve(_.YL,u,K)};
H49=function(u){_.S("transport_use_scheduler")?_.YL.cancelJob(u):_.eg(u)};
O4R=function(u){var K,l,D,d,C,W,M,q,v,G;return _.H(function(t){return t.nextAddress==1?(D=(K=u)==null?void 0:(l=K.responseContext)==null?void 0:l.globalConfigGroup,d=_.b(D,i4r),W=(C=D)==null?void 0:C.hotHashData,M=_.b(D,TYH),v=(q=D)==null?void 0:q.coldHashData,(G=_.GB().resolve(_.vv(g2)))?W?d?t.yield(w1b(G,W,d),2):t.yield(w1b(G,W),2):t.jumpTo(2):t.return()):v?M?t.yield(FEo(G,v,M),0):t.yield(FEo(G,v),0):t.jumpTo(0)})};
ubH=function(u,K){K=K===void 0?200:K;return u?K===300?q4q:VXy:K===300?$Iq:goq};
Zrb=function(u){if(_.S("enable_web_tiered_gel")){u=NYy[u||""];var K,l,D,d=_.GB().resolve(_.vv(g2))==null?void 0:(K=kHq())==null?void 0:(l=K.loggingHotConfig)==null?void 0:(D=l.eventLoggingConfig)==null?void 0:D.payloadPolicies;if(d)for(K=0;K<d.length;K++)if(d[K].payloadNumber===u)return d[K]}};
kWH=function(u){u=Object.keys(u);u=_.y(u);for(var K=u.next();!K.done;K=u.next())if(K=K.value,NYy[K])return K};
YpZ=function(u){switch(u){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}};
mEZ=function(u){return u==="gelDebuggingEvent"};
tXr=function(u){return(u===void 0?0:u)&&_.S("vss_through_gel_video_stats")?"video_stats":"log_event"};
kE=function(u,K,l,D){D=D===void 0?{}:D;var d={},C=Math.round(D.timestamp||(0,_.vA)());d.eventTimeMs=C<Number.MAX_SAFE_INTEGER?C:0;d[u]=K;u=_.Gr();d.context={lastActivityMs:String(D.timestamp||!isFinite(u)?-1:u)};D.sequenceGroup&&!_.S("web_gel_sequence_info_killswitch")&&(u=d.context,K=D.sequenceGroup,K={index:Z4L(K),groupKey:K},u.sequence=K,D.endOfSequence&&delete Nm[D.sequenceGroup]);_.S("web_tag_automated_log_events")&&(d.context.automatedLogEventSource=D.automatedLogEventSource);(D.sendIsolatedPayload?
Alo:hPn)({endpoint:"log_event",payload:d,cttAuthInfo:D.cttAuthInfo,dangerousLogToVisitorSession:D.dangerousLogToVisitorSession},l)};
Z4L=function(u){Nm[u]=u in Nm?Nm[u]+1:0;return Nm[u]};
_.YE=function(u,K,l){l=l===void 0?{}:l;var D=Zs;_.L0("ytLoggingEventsDefaultDisabled",!1)&&Zs===Zs&&(D=null);kE(u,K,D,l)};
_.AV=function(){if(_.S("web_fp_via_jspb")){var u=!0;u=u===void 0?!1:u;var K=Y4R;Y4R=[];if(K){K=_.y(K);for(var l=K.next();!l.done;l=K.next())l=l.value,u?kE(l.payloadName,l.payload,Zs,l.options):_.YE(l.payloadName,l.payload,l.options)}KEq(void 0,!0);if(!_.S("web_fp_via_jspb_and_json"))return}KEq(void 0,!1)};
ABh=function(u,K){var l;if((l=K)==null?0:l.componentStack)return K;if(u=u.componentStack)K||(K={}),K.componentStack=u;return K};
X1w=function(){_.yx(_.E3("ERRORS")||[],function(u){_.Xm.apply(null,u)});
_.h8("ERRORS",[])};
_.m0=function(u){_.Xm(u)};
_.hV=function(u){_.Xm(u,"WARNING")};
mIh=function(u){u instanceof Error?_.Xm(u):(u=_.Ks(u)?JSON.stringify(u):String(u),u=new _.wv(u),u.name="RejectedPromiseError",_.hV(u))};
hMw=function(u,K,l,D,d,C){K=K===void 0?"Unknown file":K;l=l===void 0?0:l;var W=!1,M=ACr("log_window_onerror_fraction");if(M&&Math.random()<M)W=!0;else{M=document.getElementsByTagName("script");for(var q=0,v=M.length;q<v;q++)if(M[q].src.indexOf("/debug-")>0){W=!0;break}}W&&(W=!1,d?W=!0:(typeof u==="string"?M=u:ErrorEvent&&u instanceof ErrorEvent?(W=!0,M=u.message,K=u.filename,l=u.lineno,D=u.colno):(M="Unknown error",K="Unknown file",l=0),d=new _.wv(M),d.name="UnhandledWindowError",d.message=M,d.fileName=
K,d.lineNumber=l,isNaN(D)?delete d.columnNumber:d.columnNumber=D),_.S("wiz_enable_component_stack_propagation_killswitch")||(C=ABh(d,C)),C&&_.E5(d,C),W?_.Xm(d):_.hV(d))};
_.Xm=function(u,K,l,D,d,C,W,M){C=C===void 0?{}:C;C.name=l||_.E3("INNERTUBE_CONTEXT_CLIENT_NAME",1);C.version=D||_.E3("INNERTUBE_CONTEXT_CLIENT_VERSION");l=C;K=K===void 0?"ERROR":K;W=W===void 0?!1:W;K=K===void 0?"ERROR":K;W=W===void 0?!1:W;if(u&&(u.hasOwnProperty("level")&&u.level&&(K=u.level),_.S("console_log_js_exceptions")&&(D=[],D.push("Name: "+u.name),D.push("Message: "+u.message),u.hasOwnProperty("params")&&D.push("Error Params: "+JSON.stringify(u.params)),u.hasOwnProperty("args")&&D.push("Error args: "+
JSON.stringify(u.args)),D.push("File name: "+u.fileName),D.push("Stacktrace: "+u.stack),D=D.join("\n"),window.console.log(D,u)),!(Eow>=5))){D=[];d=_.y(LEq);for(C=d.next();!C.done;C=d.next()){C=C.value;try{C()&&D.push(C())}catch(B){}}D=[].concat(_.Am(ufq),_.Am(D));var q=Kor(u);d=q.message||"Unknown Error";C=q.name||"UnknownError";var v=q.stack||u.stacktrace||"Not available";if(v.startsWith(C+": "+d)){var G=v.split("\n");G.shift();v=G.join("\n")}G=q.lineNumber||"Not available";q=q.fileName||"Not available";
var t=0;if(u.hasOwnProperty("args")&&u.args&&u.args.length)for(var x=0;x<u.args.length&&!(t=gsb(u.args[x],"params."+x,l,t),t>=500);x++);else if(u.hasOwnProperty("params")&&u.params){var O=u.params;if(typeof u.params==="object")for(x in O){if(O[x]){var a="params."+x,f=Pv(O[x]);l[a]=f;t+=a.length+f.length;if(t>500)break}}else l.params=Pv(O)}if(D.length)for(x=0;x<D.length&&!(t=gsb(D[x],"params.context."+x,l,t),t>=500);x++);navigator.vendor&&!l.hasOwnProperty("vendor")&&(l["device.vendor"]=navigator.vendor);
x={message:d,name:C,lineNumber:G,fileName:q,stack:v,params:l,sampleWeight:1};l=Number(u.columnNumber);isNaN(l)||(x.lineNumber=x.lineNumber+":"+l);if(u.level==="IGNORED")u=0;else a:{u=lab();l=_.y(u.messageWeights);for(D=l.next();!D.done;D=l.next())if(D=D.value,x.message&&x.message.match(D.messageRegExp)){u=D.weight;break a}u=_.y(u.callbackWeights);for(l=u.next();!l.done;l=u.next())if(l=l.value,l.callback(x)){u=l.weight;break a}u=1}x.sampleWeight=u;u=_.y(DXy);for(l=u.next();!l.done;l=u.next())if(l=
l.value,l.patternsForType[x.name])for(d=_.y(l.patternsForType[x.name]),D=d.next();!D.done;D=d.next())if(C=D.value,D=x.message.match(C.regexp)){x.params["params.error.original"]=D[0];d=C.groups;C={};for(G=0;G<d.length;G++)C[d[G]]=D[G+1],x.params["params.error."+d[G]]=D[G+1];x.message=l.messageFn(C);break}x.params||(x.params={});u=lab();x.params["params.errorServiceSignature"]="msg="+u.messageWeights.length+"&cb="+u.callbackWeights.length;x.params["params.serviceWorker"]="false";_.lL.document&&_.lL.document.querySelectorAll&&
(x.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Lp(dXq,"sample")).constructor!==Lp&&(x.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(x);if(x.sampleWeight!==0&&!Cer.has(x.message)){if(W&&_.S("web_enable_error_204"))Iay(K===void 0?"ERROR":K,x);else{K=K===void 0?"ERROR":K;K==="ERROR"?(yKR.publish("handleError",x),_.S("record_app_crashed_web")&&sww===0&&x.sampleWeight===1&&(sww++,W={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.S("report_client_error_with_app_crash_ks")||(W.systemHealth={crashData:{clientError:{logMessage:{message:x.message}}}}),_.YE("appCrashed",W)),oYq++):K==="WARNING"&&yKR.publish("handleWarning",x);if(_.S("kevlar_gel_error_routing")){W=K;M=M===void 0?{}:M;b:{u=_.y(Woq);for(l=u.next();!l.done;l=u.next())if(h9(l.value.toLowerCase())){u=!0;break b}u=!1}if(u)M=void 0;else{l={stackTrace:x.stack};x.fileName&&(l.filename=x.fileName);u=x.lineNumber&&x.lineNumber.split?x.lineNumber.split(":"):[];u.length!==
0&&(u.length!==1||isNaN(Number(u[0]))?u.length!==2||isNaN(Number(u[0]))||isNaN(Number(u[1]))||(l.lineNumber=Number(u[0]),l.columnNumber=Number(u[1])):l.lineNumber=Number(u[0]));u={level:"ERROR_LEVEL_UNKNOWN",message:x.message,errorClassName:x.name,sampleWeight:x.sampleWeight};W==="ERROR"?u.level="ERROR_LEVEL_ERROR":W==="WARNING"&&(u.level="ERROR_LEVEL_WARNNING");l={isObfuscated:!0,browserStackInfo:l};M.pageUrl=window.location.href;M.kvPairs=[];_.E3("FEXP_EXPERIMENTS")&&(M.experimentIds=_.E3("FEXP_EXPERIMENTS"));
D=_.E3("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!ACr("web_disable_gel_stp_ecatcher_killswitch")&&D)for(d=_.y(Object.keys(D)),C=d.next();!C.done;C=d.next())C=C.value,M.kvPairs.push({key:C,value:String(D[C])});if(D=x.params)for(d=_.y(Object.keys(D)),C=d.next();!C.done;C=d.next())C=C.value,M.kvPairs.push({key:"client."+C,value:String(D[C])});D=_.E3("SERVER_NAME");d=_.E3("SERVER_VERSION");D&&d&&(M.kvPairs.push({key:"server.name",value:D}),M.kvPairs.push({key:"server.version",value:d}));M={errorMetadata:M,
stackTrace:l,logMessage:u}}M&&(_.YE("clientError",M),(W==="ERROR"||_.S("errors_flush_gel_always_killswitch"))&&_.AV())}_.S("suppress_error_204_logging")||Iay(K,x)}try{Cer.add(x.message)}catch(B){}Eow++}}};
Iay=function(u,K){var l=K.params||{};u={urlParams:{a:"logerror",t:"jserror",type:K.name,msg:K.message.substr(0,250),line:K.lineNumber,level:u,"client.name":l.name},postParams:{url:_.E3("PAGE_NAME",window.location.href),file:K.fileName},method:"POST"};l.version&&(u["client.version"]=l.version);if(u.postParams){K.stack&&(u.postParams.stack=K.stack);K=_.y(Object.keys(l));for(var D=K.next();!D.done;D=K.next())D=D.value,u.postParams["client."+D]=l[D];if(l=_.E3("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(K=
_.y(Object.keys(l)),D=K.next();!D.done;D=K.next())D=D.value,u.postParams[D]=l[D];(l=_.E3("LAVA_VERSION"))&&(u.postParams["lava.version"]=l);l=_.E3("SERVER_NAME");K=_.E3("SERVER_VERSION");l&&K&&(u.postParams["server.name"]=l,u.postParams["server.version"]=K)}_.UP(_.E3("ECATCHER_REPORT_HOST","")+"/error_204",u)};
_.H1R=function(u,K){K=K===void 0?"ERROR":K;var l=l===void 0?{}:l;var D=_.lZ("ytbin.polymer.shared.lib.tampering.info");D&&(D=D())&&(l["params.tamperingInfo"]=D.sort().join(","));_.Xm(u,K,void 0,void 0,!0,l)};
_.E5=function(u){var K=_.uY.apply(1,arguments);u.args||(u.args=[]);Array.isArray(u.args)&&u.args.push.apply(u.args,_.Am(K))};
MUw=function(u){u.level="IGNORED"};
qKZ=function(u,K){ufq.push(u);K();ufq.pop()};
Ki=function(u,K){for(var l in K)K.hasOwnProperty(l)&&(u=_.uy(u,l,K[l]));return u};
_.$XH=function(u,K,l){l=l===void 0?!1:l;if(!u)return null;if(u.adInfoDialogEndpoint||u.backstageImageUploadEndpoint||u.confirmDialogEndpoint||u.clientActionEndpoint||u.createBackstagePostDialogEndpoint||u.createCommentReplyDialogEndpoint||u.flowEndpoint||u.guideBuilderEndpoint||u.liveChatDialogEndpoint||u.modalEndpoint||u.openPopupAction||u.shareEndpoint||u.shareEntityEndpoint||u.showLiveChatItemEndpoint||u.subscriptionManagerEndpoint||u.unlimitedCreateFamilyEndpoint||u.unlimitedFamilyFlowEndpoint||
u.updateCommentDialogEndpoint||u.updateCommentReplyDialogEndpoint||u.userFeedbackEndpoint||u.videoEditorEndpoint||u.ypcCancelSurveyEndpoint)return K=_.Sg("polymer_report_client_url_requested_rate"),!l&&Math.random()<K&&_.hV(new _.wv("urlForEndpoint used on client endpoint",u)),null;var D=_.Sg("polymer_report_missing_web_navigation_endpoint_rate");if(u.liveChatEndpoint||u.liveChatReplayEndpoint)D=0;if(!u.commandMetadata&&!u.clickTrackingParams&&Math.random()<D){var d={},C;for(C in u)d[C]="1";_.hV(new _.wv("Missing navigation data",
d))}d="";if(u.commandMetadata&&u.commandMetadata.webCommandMetadata&&u.commandMetadata.webCommandMetadata.url)d=u.commandMetadata.webCommandMetadata.url;else if(u.searchEndpoint)Math.random()<D&&_.hV(new _.wv("Should not manually handle search",u)),d="/results?search_query="+encodeURIComponent(u.searchEndpoint.query).replace(/%20/g,"+"),u.searchEndpoint.params&&(d+="&sp="+u.searchEndpoint.params);else if(u.watchEndpoint)Math.random()<D&&_.hV(new _.wv("Should not manually handle watch",u)),d="/watch?v="+
u.watchEndpoint.videoId,u.watchEndpoint.playlistId&&(d+="&list="+u.watchEndpoint.playlistId),u.watchEndpoint.index&&(d+="&index="+u.watchEndpoint.index),u.watchEndpoint.startTimeSeconds&&(d+="&t="+u.watchEndpoint.startTimeSeconds);else if(u.browseEndpoint)D=u.browseEndpoint.browseId,(C=u.browseEndpoint.canonicalBaseUrl)?d=C:D&&(d=D.substr(0,2),d=d==="FE"?D==="FEwhat_to_watch"?"/":D==="FEmy_videos"?"/my_videos":"/feed/"+D.substr(2):d==="VL"?"/playlist?list="+D.substr(2):"/channel/"+D),d&&u.browseEndpoint.query&&
(d=Ki(d+"/search",{query:u.browseEndpoint.query})),d&&u.browseEndpoint.params&&(d=Ki(d,{params:u.browseEndpoint.params}));else{if(u.urlEndpoint)return u.urlEndpoint.url;u.signInEndpoint?(d="https://accounts.google.com/ServiceLogin",D={},_.k$.extend(D,K||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),K=D):u.uploadEndpoint?d="//www.youtube.com/upload":u.liveChatEndpoint?(d=u.liveChatEndpoint,D=_.k$.clone(d),_.Ks(d.continuation)&&(C=Object.keys(d.continuation)[0],
D.continuation=d.continuation[C].continuation),d=Ki("/youtubei/v1/live_chat/get_live_chat",D)):u.liveChatReplayEndpoint?(d=_.k$.clone(u.liveChatReplayEndpoint),d.currentPlayerState&&(_.k$.extend(d,d.currentPlayerState),delete d.currentPlayerState),d=Ki("/youtubei/v1/live_chat/get_live_chat_replay",d)):u.liveChatItemContextMenuEndpoint?d=Ki("/youtubei/v1/live_chat/get_item_context_menu",u.liveChatItemContextMenuEndpoint):u.liveChatPurchaseMessageEndpoint?d=Ki("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
u.liveChatPurchaseMessageEndpoint):u.openSuperStickerBuyFlowCommand?d=Ki("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",u.openSuperStickerBuyFlowCommand):u.videoEditEndpoint?d=Ki("/edit",{video_id:u.videoEditEndpoint.videoId}):u.liveDashboardEndpoint?d=u.liveDashboardEndpoint.videoId?Ki("/live_dashboard",{v:u.liveDashboardEndpoint.videoId}):"/live_dashboard":u.signalNavigationEndpoint&&u.signalNavigationEndpoint.signal&&u.signalNavigationEndpoint.signal==="WEBCAM"?d="/webcam":u.getPdgBuyFlowCommand&&
(d=Ki(u.getPdgBuyFlowCommand.buyflowApiPath,{params:u.getPdgBuyFlowCommand.params}))}return d||l?Ki(d,K||{}):(_.hV(new _.wv("Error: Can't construct url for endpoint","keys:"+Object.keys(u).sort().join(","),u)),null)};
nYR=function(u){if(u){if(u.browseEndpoint)return!!u.browseEndpoint.nofollow;if(u.watchEndpoint)return!!u.watchEndpoint.nofollow;if(u.urlEndpoint)return!!u.urlEndpoint.nofollow}return!1};
_.vYn=function(u,K){var l=K+u,D=rKq.get(l);if(D)return D;u=K+"-"+u.replace(/([A-Z])/g,"-$1").toLowerCase();rKq.set(l,u);return u};
GTb=function(u){var K=_.Xp(u,"action")||_.Xp(u,"command")||_.Xp(u,"endpoint");if(!K)return null;K=_.vYn(K,"yt");_.b(u,_.ly)&&(K+="-"+_.b(u,_.ly).signal.toLowerCase().replace(/_/g,"-"));return K};
b1h=function(u){try{var K=Object.keys(u)}catch(d){return[]}for(var l=0;l<K.length;l++){var D=K[l];if(tUq.test(D)||xXR.test(D))return SKR(u[D])}return[]};
SKR=function(u){return u.command?[u.command]:u.onExecutionAction?[u.onExecutionAction]:u.onResponseReceivedCommand?[u.onResponseReceivedCommand]:u.updateFlowCommand?[u.updateFlowCommand]:u.clientActions?u.clientActions:u.action?[u.action]:u.actions||u.commands||u.onResponseReceivedActions||u.onResponseReceivedCommands||u.onResponseReceivedEndpoints||[]};
cKq=function(u,K){K=K===void 0?!1:K;var l=_.GB().resolve(_.vv(Dh));l||(l=new O1H,_.GB().addProvider({provide:Dh,useValue:l}));return l&&u&&!_.k$.isEmpty(u)?l.getUrl(u,K):""};
aaL=function(u,K,l){l=l===void 0?"":l;if(K){u.data=K;var D=cKq(K);D?(lY(u,D),nYR(K)||!nT(D)?u.rel="nofollow":u.removeAttribute("rel"),_.b(K,_.d_)&&_.b(K,_.d_).target==="TARGET_NEW_WINDOW"?u.target="_blank":l?u.target=l:u.removeAttribute("target")):(u.removeAttribute("href"),u.removeAttribute("rel"),u.removeAttribute("target"))}};
_.s6=function(u,K){var l=W$;if(ir())zEh(u,function(){var C=_.uY.apply(0,arguments);XL(l,function(){K.apply(null,_.Am(C))})});
else{var D=_.Ci.getInstance(),d=A8(K);inZ(function(){d.value=K});
_.ZY(function(){var C={},W=_.I9(D,(C[u]=function(){var M=_.uY.apply(0,arguments);XL(l,function(){d.value.apply(d,_.Am(M))})},C));
return function(){var M={};_.yH(D,(M[u]="",M),W)}})}};
_.o9=function(u,K){return eEw(u,!1,K)};
_.W4=function(u,K){return eEw(u,!0,K)};
eEw=function(u,K,l){return ir()?REH(u,K,l):UXo(u,K,l)};
UXo=function(u,K,l){return YD(function(){return REH(u,K,l)})};
REH=function(u,K,l){var D=JCq(function(d){D.value=d;var C=function(){var W=v$(null);try{return l==null?void 0:l(d)}finally{v$(W)}}();
return function(){C==null||C()}});
D.__expectedTagName=u;D.__optional=K;D.isIdom=!ir();return D};
faH=function(u){var K=W$,l=B$;return{getFn:function(){return function(D){K.isDisposed||V5(function(){return br(function(){return u(D)})},l)!==!0&&D.stopPropagation()}}}};
H4=function(u){if(typeof u.children==="function")return u.children(),null;u=_.y(u.children);for(var K=u.next();!K.done;K=u.next())K=K.value,K();return null};
Qww=function(u){var K;return((K=u.prototype)==null?void 0:K.render)===void 0};
Peq=function(u){return u.items.map(u.children)};
jwn=function(u,K,l){l=l===void 0?!1:l;V5(function(){return JKn(u,K,l)})};
JKn=function(u,K,l){var D=null;Q5++;l=(l===void 0?0:l)?BEh:pJh;try{D=l(u,function(){MP(K)}),j9(!1)}catch(d){throw j9(!0),d;
}return D===null?u:D};
MP=function(u){if(u!==void 0&&u!==null)if(u instanceof U3)for(var K=K0;lc()!=null&&vrb in lc()&&K.contains(lc());)C0();else if(Array.isArray(u))for(K=_.y(u),u=K.next();!u.done;u=K.next())MP(u.value);else if(u instanceof wb||"function"==typeof _.GG&&u instanceof _.GG||"function"==typeof _.n0&&u instanceof _.n0)q_(u.toString());else if(_.xD(u)){if(lc()!==u){var l,D;K=(D=(l=B$)==null?void 0:l.name)!=null?D:"unknown";throw Error("cc`"+u.tagName+"`"+K);}C0()}else if(u!=null&&u.contentKind===O3||u instanceof
dm||j9R(u))for(K=p4H(u),K=Array.from(K.childNodes),K=_.y(K),u=K.next();!u.done;u=K.next())K0.appendChild(u.value),C0();else if(Zk(u)&&(u=u.toString()),l=typeof u,l==="boolean"||l==="number"||l==="string")q_(u);else if(typeof u==="function"){K=K0;var d=lc();d&&(d._isSignalTextNode||d._isSafeOrSanitizedHtmlNode)||yCq(K,d,u);C0()}else if(u.type===Peq)MP(u.type(Object.assign({},u.props,{children:u.children[0]})));else{PV.beforeVisit(u);if(typeof u.type==="string"){a:{u.__open||MBZ(u.type,u.props.idomKey);
d=K0;for(K in u.props)if(u.props[K]!==i1H){var C=u.props[K];l=oE;l.push(K);l.push(C)}K=$T.attributes;K=K===void 0?qP:K;C=K0;l=uc(C);tBq(C,l,K);I8n(d,u.props,!0);if((u.props.skip||u.props.skipchildren)&&K0.hasChildNodes())yI();else{if(u.type==="style"&&k9H(u.children)===null){yI();K=void 0;break a}MP(u.children)}q6L();u.__open&&(u.__open=!1);e5R(d,u.props);K=d}return K}if(u.type===_.G1)MP(u.children);else if(!TEy(u)){K=u;try{wJL(K)}catch(W){u=W,(C=$T.handleError)==null||C.call.apply(C,[$T].concat(_.Am(mt(u,
(d=K.type)==null?void 0:d.TAG_NAME))))}K.__open&&(q6L(),K.__open=!1)}}};
FoL=function(u,K){var l;Qww(u)?l=new jf(K,u):l=new u(K);l.JSC$10145___type=u;l.__updateContext={nextState:l.state,isForced:!1};return l};
wJL=function(u){var K=u.type,l=K.TAG_NAME;if(K===H4)u.props.children=u.children,K(u.props);else{u.children.length>0&&(u.props.children=u.children);var D;(D=u.props).idomKey||(D.idomKey=K);if(l){var d=MBZ(l,u.props.idomKey);u.__open=!0;var C=d.__instance}C||(C=FoL(K,u.props),C.props=null,d&&(d.__instance=C,C.el=d));var W;l=((W=C.__updateContext)!=null?W:{nextState:C.state,isForced:!1}).nextState;C.__updateContext=void 0;K.getDerivedStateFromProps&&(l=K.getDerivedStateFromProps(u.props,l));C.props=
u.props;C.state=l;W=function(){var M=C;PV.beforeRender(M);var q=M.render(M.props);PV.afterRender(M,q);q?(M.props.idomKey&&(q.props.idomKey=M.props.idomKey),M=q):M=void 0;if(q=M)if(q.__open=u.__open,M=MP(q),u.__open=q.__open,!K.TAG_NAME)if(M)K.TAG_NAME=M.tagName.toLowerCase(),M.__instance=C,C.el=M;else{var v;if((v=C.hooks)==null?0:v.length){var G;(G=$T.handleError)==null||G.call.apply(G,[$T].concat(_.Am(mt(Error("ld")))))}}C.didPatch();PV.didPatch(C)};
(l=C.functionComponent)?QLH(l,W,C.props.debugInstance):W()}};
TEy=function(u){var K=u.type;if(!Qww(K)||K===H4||K.componentType===pI)return!1;u.props.children=u.children.length>1?u.children:u.children[0];var l,D=(l=u.props.idomKey)!=null?l:u.type,d;if(lc()&&((d=lc()[z1])==null?void 0:d.key)===D){var C=lc(),W=C[z1];if(!W)throw Error("bc`"+C.tagName);var M;(M=W.updateSignalsFromIdomProps)==null||M.call(W,u.props);VUb(W);return!0}if(gYo.has(K.name))throw M=K.name,K=(W=(C=B$)==null?void 0:C.name)!=null?W:"unknown",Error("ac`"+M+"`"+K);Hnq(u.type,u.props,u.children);
u.props.renderedFromIdom=!0;(M=QLH(u.type,function(){return Kqq(u.type,u.props)},u.props.debugInstance))&&NEq(M);
return!0};
kTh=function(u){for(var K=0;K<RE(u).length;K++)C0()};
VUb=function(u){var K=Z1n();if(K)kTh(K);else for(var l=0;l<u.numNodes;l++)(K=Z1n())?kTh(K):C0()};
Z1n=function(){var u;return(u=lc()[z1])==null?void 0:u.sourceDynamicRange};
NEq=function(u){u=fho(u);u=Array.isArray(u)?u:[u];u=_.y(u);for(var K=u.next();!K.done;K=u.next())K0.insertBefore(K.value,lc()),C0()};
YKn=function(u){var K=DNH(),l=YD(function(){return{value:typeof u==="function"?u():u}});
return[l.value,function(D){if(J8!==null){var d;(d=$T.handleError)==null||d.call.apply(d,[$T].concat(_.Am(mt(Error("md")))))}l.value=typeof D==="function"?D(l.value):D;K.__updateContext={nextState:K.state,isForced:!0};D=_.H$(K.effectContext);d=t8(!1);try{if(K.el){var C,W={},M=(W.props=K.props,W.type=K.JSC$10145___type,W.children=(C=K.props.children)!=null?C:[],W[vV]=!0,W);try{jwn(K.el,M,!0)}catch(G){var q,v;(v=$T.handleError)==null||v.call.apply(v,[$T].concat(_.Am(mt(G,(q=K.JSC$10145___type)==null?
void 0:q.TAG_NAME))))}}}finally{t8(d),_.H$(D)}}]};
$f=function(u,K){var l=W$,D=function(d){XL(l,function(){K(d)})};
window.addEventListener(u,D,void 0);_.No(function(){window.removeEventListener(u,D,void 0)})};
_.r_=function(u){var K=W$;return function(l){var D,d=(D=u.observer)!=null?D:_.GB().resolve(ni);D=AKq(l);var C=[];u.showOption&&C.push(d.observe(l,function(){XL(K,function(){u.visibilityCallback(!0,l)})},u.showOption));
u.hideOption&&C.push(d.observe(l,function(){XL(K,function(){u.visibilityCallback(!1,l)})},u.hideOption));
u.prescanOption&&u.prescanCallback&&C.push(d.observe(l,function(){XL(K,function(){u.prescanCallback()})},u.prescanOption));
var W;D.visibilityMonitorKeys=((W=D.visibilityMonitorKeys)!=null?W:[]).concat(C)}};
AKq=function(u){var K;return(K=u.polymerController)!=null?K:u};
_.v4=function(u){u.componentType=pI};
EYH=function(u,K){var l=XJH;return _.n(_.G1,null,oZ($T.enableLazyTsx,function(){return _.n(mXh,{id:l,value:u,children:K})},function(){var D=hEb(l,u);
qo(D);D=_.H$(D);try{return K()}finally{_.H$(D)}}))};
mXh=function(u){var K=u.children;u=hEb(u.id,u.value);qo(u);u=_.H$(u);try{return _.n(_.G1,null,f0(K()))}finally{_.H$(u)}};
hEb=function(u,K){return Object.assign(Object.create(Lob),{id:u,contextValue:K})};
uRq=function(u){var K,l=W$;_.Ag(function(){var D=_.H$(l),d=t8(!K);try{if(K)jwn(K,u.children(),!0);else if(K=f0(u.children()),!(K instanceof Element))throw Error("nd");}finally{t8(d),_.H$(D)}});
return K};
_.KUR=function(u,K){var l;K=kT(function(){var D=t8(!0);try{l=RE(u())}finally{t8(D)}},K===void 0?!1:K);
return[l,K]};
DCq=function(u){u=u.buf.charCodeAt(u.pos++);return lSH[u]};
G9=function(u){var K=0,l=0;do{var D=DCq(u);K|=(D&31)<<l;l+=5}while(D&32);return K<0?K+4294967296:K};
ISy=function(u,K,l){dCR(u,K);u[K][CCq].unshift(l)};
dCR=function(u,K){if(!u[K]||!u[K][CCq]){var l=u[K],D=l?[l]:[];u[K]=function(){for(var d=_.y(D),C=d.next();!C.done;C=d.next())C.value.apply(this,arguments)};
u[K][CCq]=D}};
y3q=function(u){if(!u)return[];var K=[];u=_.y(u);for(var l=u.next();!l.done;l=u.next())l=l.value,Array.isArray(l)?K.push.apply(K,_.Am(y3q(l))):K.push(l);return K};
_.xf=function(u,K){if(u&&s5r.test(u)||u==="//")return u;if(oe9===void 0){oe9=!1;try{var l=new URL("b","http://a");l.pathname="c%20d";oe9=l.href==="http://a/c%20d"}catch(D){}}K||(K=document.baseURI||window.location.href);if(oe9)try{return(new URL(u,K)).href}catch(D){return u}tp||(tp=document.implementation.createHTMLDocument("temp"),tp.base=tp.createElement("base"),tp.head.appendChild(tp.base),tp.anchor=tp.createElement("a"),tp.body.appendChild(tp.anchor));tp.base.href=K;tp.anchor.href=u;return tp.anchor.href||
u};
HzH=function(u,K){return u.replace(WUo,function(l,D,d,C){return D+"'"+_.xf(d.replace(/["']/g,""),K)+"'"+C})};
Mdn=function(u){return u.substring(0,u.lastIndexOf("/")+1)};
neb=function(){qLZ=!1;for(var u=SB.length,K=0;K<u;K++){var l=SB[K];if(l)try{l()}catch(D){setTimeout(function(){throw D;})}}SB.splice(0,u);
$CH+=u};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(u){console.log("["+u.is+"]: registered")};
vew=function(u){r3o.push(u)};
by=function(u){return Gkw[u]||(Gkw[u]=u.indexOf("-")<0?u:u.replace(tdn,function(K){return K[1].toUpperCase()}))};
O6=function(u){return Gkw[u]||(Gkw[u]=u.replace(xCL,"-$1").toLowerCase())};
SLn=function(u,K){var l=K.parentInfo&&SLn(u,K.parentInfo);if(l)for(u=l.firstChild,l=0;u;u=u.nextSibling){if(K.parentIndex===l++)return u}else return u};
bz9=function(u,K){u=u._methodHost||u;return function(l){if(u[K])u[K](l,l.detail);else console.warn("listener method `"+K+"` not defined")}};
c4=function(u){return u.indexOf(".")>=0};
eB=function(u){var K=u.indexOf(".");return K===-1?u:u.slice(0,K)};
OzH=function(u,K){return u.indexOf(K+".")===0};
R9=function(u,K){return K.indexOf(u+".")===0};
U6=function(u,K,l){return K+l.slice(u.length)};
c3q=function(u,K){return u===K||OzH(u,K)||R9(u,K)};
fi=function(u){if(Array.isArray(u)){for(var K=[],l=0;l<u.length;l++)for(var D=u[l].toString().split("."),d=0;d<D.length;d++)K.push(D[d]);return K.join(".")}return u};
aSq=function(u){return Array.isArray(u)?fi(u).split("."):u.toString().split(".")};
QH=function(u,K,l){K=aSq(K);for(var D=0;D<K.length;D++){if(!u)return;u=u[K[D]]}l&&(l.path=K.join("."));return u};
zB9=function(u,K,l){var D=aSq(K),d=D[D.length-1];if(D.length>1){for(K=0;K<D.length-1;K++)if(u=u[D[K]],!u)return;u[d]=l}else u[K]=l;return D.join(".")};
eB9=function(u,K,l){var D=u[K];if(!D)D=u[K]={};else if(!u.hasOwnProperty(K)&&(D=u[K]=Object.create(u[K]),l))for(var d in D)for(u=D[d],K=D[d]=Array(u.length),l=0;l<u.length;l++)K[l]=u[l];return D};
Jp=function(u,K,l,D,d,C){if(K){var W=!1,M=P4++,q;for(q in l){var v=d?eB(q):q;if(v=K[v])for(var G=0,t=v.length,x=void 0;G<t&&(x=v[G]);G++)x.info&&x.info.lastRun===M||d&&!RBh(q,x.trigger)||(x.info&&(x.info.lastRun=M),x.fn(u,q,l,D,x.info,d,C),W=!0)}return W}return!1};
RBh=function(u,K){if(K){var l=K.name;return l==u||!(!K.structured||!OzH(l,u))||!(!K.wildcard||!R9(l,u))}return!0};
UC9=function(u,K,l,D,d){K=typeof d.method==="string"?u[d.method]:d.method;l=d.property;K?K.call(u,u.__data[l],D[l]):d.dynamicFn||console.warn("observer method `"+d.method+"` not defined")};
fSH=function(u,K,l,D){l={value:l,queueProperty:!0};D&&(l.path=D);(0,_.jB)(u).dispatchEvent(new CustomEvent(K,{detail:l}))};
Q5q=function(u,K,l,D,d,C){C=(D=(C?eB(K):K)!=K?K:null)?QH(u,D):u.__data[K];D&&C===void 0&&(C=l[K]);fSH(u,d.eventName,C,D)};
PCy=function(u,K,l,D,d){l=u.__data[K];B4&&(l=B4(l,d.attrName,"attribute",u));u._propertyToAttribute(K,d.attrName,l)};
j5w=function(u){var K=u.constructor.__orderedComputedDeps;if(!K){K=new Map;for(var l=u.__computeEffects,D=J3H(u),d=D.counts,C=D.ready,W=D.total;D=C.shift();)K.set(D,K.size),(D=l[D])&&D.forEach(function(M){M=M.info.methodInfo;--W;--d[M]===0&&C.push(M)});
W!==0&&console.warn("Computed graph for "+u.localName+" incomplete; circular?");u.constructor.__orderedComputedDeps=K}return K};
J3H=function(u){var K=u.__computeInfo,l={};u=u.__computeEffects;var D=[],d=0,C;for(C in K){var W=K[C];d+=l[C]=W.args.filter(function(q){return!q.literal}).length+(W.dynamicFn?1:0)}for(var M in u)K[M]||D.push(M);
return{counts:l,ready:D,total:d}};
pkq=function(u,K,l,D,d){K=Bs9(u,K,l,D,d);if(K===pi)return!1;d=d.methodInfo;if(u.__dataHasAccessor&&u.__dataHasAccessor[d])return u._setPendingProperty(d,K,!0);u[d]=K;return!1};
wk9=function(u,K,l,D,d,C,W){l.bindings=l.bindings||[];D={kind:D,target:d,parts:C,literal:W,isCompound:C.length!==1};l.bindings.push(D);D.target&&D.kind!="attribute"&&D.kind!="text"&&!D.isCompound&&D.parts[0].mode==="{"&&(l=D.parts[0],C=l.negate,D.listenerEvent=l.event||O6(d)+"-changed",D.listenerNegate=C);d=K.nodeInfoList.length;for(l=0;l<D.parts.length;l++){var M=D.parts[l];M.compoundIndex=l;C=u;W=K;var q=D,v=M,G=d;if(!v.literal)if(q.kind==="attribute"&&q.target[0]==="-")console.warn("Cannot set attribute "+
q.target+' because "-" is not a valid attribute starting character');else for(M=v.dependencies,q={index:G,binding:q,part:v,evaluator:C},v=0;v<M.length;v++)G=M[v],typeof G=="string"&&(G=izb(G),G.wildcard=!0),C._addTemplatePropertyEffect(W,G.rootProperty,{fn:Ts9,info:q,trigger:G})}};
Ts9=function(u,K,l,D,d,C,W){W=W[d.index];var M=d.binding,q=d.part;C&&q.source&&K.length>q.source.length&&M.kind=="property"&&!M.isCompound&&W.__isPropertyEffectsClient&&W.__dataHasAccessor&&W.__dataHasAccessor[M.target]?(l=l[K],K=U6(q.source,M.target,K),W._setPendingPropertyOrPath(K,l,!1,!0)&&u._enqueueClient(W)):(K=d.evaluator._evaluateBinding(u,q,K,l,D,C),K!==pi&&(M.isCompound&&(l=W.__dataCompoundStorage[M.target],l[q.compoundIndex]=K,K=l.join("")),M.kind==="attribute"||M.target!=="textContent"&&
(M.target!=="value"||W.localName!=="input"&&W.localName!=="textarea")||(K=K==void 0?"":K),q=K,B4&&(q=B4(q,M.target,M.kind,W)),M.kind=="attribute"?u._valueToNodeAttribute(W,q,M.target):(M=M.target,W.__isPropertyEffectsClient&&W.__dataHasAccessor&&W.__dataHasAccessor[M]?W.__readOnly&&W.__readOnly[M]||W._setPendingProperty(M,q)&&u._enqueueClient(W):u._setUnmanagedPropertyToNode(W,M,q))))};
FUn=function(u,K,l){if(l.listenerEvent){var D=l.parts[0];u.addEventListener(l.listenerEvent,function(d){var C=l.target,W=D.source,M=D.negate,q=d.detail,v=q&&q.path;v?(W=U6(C,W,v),d=q&&q.value):d=d.currentTarget[C];K.__readOnly&&K.__readOnly[W]||!K._setPendingPropertyOrPath(W,M?!d:d,!0,!!v)||q&&q.queueProperty||K._invalidateProperties()})}};
Vd9=function(u,K,l,D,d,C){C=K.static||C&&(typeof C!=="object"||C[K.methodName]);d={methodName:K.methodName,args:K.args,methodInfo:d,dynamicFn:C};for(var W=0,M=void 0;W<K.args.length&&(M=K.args[W]);W++)M.literal||u._addPropertyEffect(M.rootProperty,l,{fn:D,info:d,trigger:M});C&&u._addPropertyEffect(K.methodName,l,{fn:D,info:d});return d};
Bs9=function(u,K,l,D,d){D=u._methodHost||u;var C=D[d.methodName];if(C)return u=u._marshalArgs(d.args,K,l),u===pi?pi:C.apply(D,u);d.dynamicFn||console.warn("method `"+d.methodName+"` not defined")};
geq=function(u){for(var K="",l=0;l<u.length;l++)K+=u[l].literal||"";return K};
Zzw=function(u){if(u=u.match(/([^\s]+?)\(([\s\S]*)\)/)){var K={methodName:u[1],static:!0,args:Nsh};return u[2].trim()?kkZ(u[2].replace(/\\,/g,"&comma;").split(","),K):K}return null};
kkZ=function(u,K){K.args=u.map(function(l){l=izb(l);l.literal||(K.static=!1);return l},this);
return K};
izb=function(u){u=u.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var K={name:u,value:"",literal:!1},l=u[0];l==="-"&&(l=u[1]);l>="0"&&l<="9"&&(l="#");switch(l){case "'":case '"':K.value=u.slice(1,-1);K.literal=!0;break;case "#":K.value=Number(u),K.literal=!0}K.literal||(K.rootProperty=eB(u),K.structured=c4(u),K.structured&&(K.wildcard=u.slice(-2)==".*",K.wildcard&&(K.name=u.slice(0,-2))));return K};
YLn=function(u,K,l){u=QH(u,l);u===void 0&&(u=K[l]);return u};
A3n=function(u,K,l,D){D={indexSplices:D};iy&&!u._overrideLegacyUndefined&&(K.splices=D);u.notifyPath(l+".splices",D);u.notifyPath(l+".length",K.length);iy&&!u._overrideLegacyUndefined&&(D.indexSplices=[])};
T9=function(u,K,l,D,d,C){A3n(u,K,l,[{index:D,addedCount:d,removed:C,object:K,type:"splice"}])};
Xkh=function(u){u=HzH((u.body?u.body:u).textContent,u.baseURI);var K=document.createElement("style");K.textContent=u;return K};
hBb=function(u){u=u.trim().split(/\s+/);for(var K=[],l=0;l<u.length;l++)K.push.apply(K,_.Am(mCw(u[l])));return K};
mCw=function(u){var K=w_.import(u);if(!K)return console.warn("Could not find style data in module named",u),[];if(K._styles===void 0){u=[];u.push.apply(u,_.Am(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(K)));var l=K.querySelector("template");l&&u.push.apply(u,_.Am(EeH(l,K.assetpath)));K._styles=u}return K._styles};
EeH=function(u,K){if(!u._styles){for(var l=[],D=u.content.querySelectorAll("style"),d=0;d<D.length;d++){var C=D[d],W=C.getAttribute("include");W&&l.push.apply(l,_.Am(hBb(W).filter(function(M,q,v){return v.indexOf(M)===q})));
K&&(C.textContent=HzH(C.textContent,K));l.push(C)}u._styles=l}return u._styles};
LUq=function(u){return(u=w_.import(u))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(u):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(u){var K=[];u=u.querySelectorAll("link[rel=import][type~=css]");for(var l=0;l<u.length;l++){var D=u[l];if(D.import){var d=D.import;if((D=D.hasAttribute("shady-unscoped"))&&!d._unscopedStyle){var C=Xkh(d);C.setAttribute("shady-unscoped","");d._unscopedStyle=C}else d._style||(d._style=Xkh(d));K.push(D?d._unscopedStyle:d._style)}}return K};
KzR=function(u){u=u.trim().split(/\s+/);for(var K="",l=0;l<u.length;l++)K+=u_9(u[l]);return K};
u_9=function(u){var K=w_.import(u);if(K&&K._cssText===void 0){var l=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(K),D=K.querySelector("template");D&&(l+=lLq(D,K.assetpath));K._cssText=l||null}K||console.warn("Could not find style data in module named",u);return K&&K._cssText||""};
lLq=function(u,K){var l="";u=EeH(u,K);for(K=0;K<u.length;K++){var D=u[K];D.parentNode&&D.parentNode.removeChild(D);l+=D.textContent}return l};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(u){var K="";u=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(u);for(var l=0;l<u.length;l++)K+=u[l].textContent;return K};
F3=function(u,K){return{index:u,removed:[],addedCount:K}};
dZH=function(u,K,l,D){var d=0,C=0,W=0,M=0,q=Math.min(K-d,D-C);if(d==0&&C==0)a:{for(W=0;W<q;W++)if(u[W]!==l[W])break a;W=q}if(K==u.length&&D==l.length){M=u.length;for(var v=l.length,G=0;G<q-W&&DZR(u[--M],l[--v]);)G++;M=G}d+=W;C+=W;K-=M;D-=M;if(K-d==0&&D-C==0)return[];if(d==K){for(K=F3(d,0);C<D;)K.removed.push(l[C++]);return[K]}if(C==D)return[F3(d,K-d)];q=d;W=C;D=D-W+1;M=K-q+1;K=Array(D);for(v=0;v<D;v++)K[v]=Array(M),K[v][0]=v;for(v=0;v<M;v++)K[0][v]=v;for(v=1;v<D;v++)for(G=1;G<M;G++)if(u[q+G-1]===
l[W+v-1])K[v][G]=K[v-1][G-1];else{var t=K[v-1][G]+1,x=K[v][G-1]+1;K[v][G]=t<x?t:x}q=K.length-1;W=K[0].length-1;D=K[q][W];for(u=[];q>0||W>0;)q==0?(u.push(2),W--):W==0?(u.push(3),q--):(M=K[q-1][W-1],v=K[q-1][W],G=K[q][W-1],t=v<G?v<M?v:M:G<M?G:M,t==M?(M==D?u.push(0):(u.push(1),D=M),q--,W--):t==v?(u.push(3),q--,D=v):(u.push(2),W--,D=G));u.reverse();K=void 0;q=[];for(W=0;W<u.length;W++)switch(u[W]){case 0:K&&(q.push(K),K=void 0);d++;C++;break;case 1:K||(K=F3(d,0));K.addedCount++;d++;K.removed.push(l[C]);
C++;break;case 2:K||(K=F3(d,0));K.addedCount++;d++;break;case 3:K||(K=F3(d,0)),K.removed.push(l[C]),C++}K&&q.push(K);return q};
Cwr=function(u,K){return dZH(u,u.length,K,K.length)};
DZR=function(u,K){return u===K};
ynq=function(u){if(u instanceof ILw)return u.value;throw Error("Ed`"+u);};
sXZ=function(u,K){for(var l in K)l===null?u.style.removeProperty(l):u.style.setProperty(l,K[l])};
o5Z=function(u,K){return(u=window.getComputedStyle(u).getPropertyValue(K))?u.trim():""};
qA9=function(u){requestAnimationFrame(function(){Wzh?Wzh(u):(H5L||(H5L=new Promise(function(K){Mlq=K}),document.readyState==="complete"?Mlq():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Mlq()})),H5L.then(function(){u&&u()}))})};
rnZ=function(u){$Zq=u&&u.shimcssproperties?!1:n5n||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
SAH=function(u){if(!(v5w.indexOf(u)>-1)&&u!=="touchend"&&GbH&&tlH&&xZn)return{passive:!0}};
aLb=function(u){for(var K=b59?["click"]:v5w,l=0,D;l<K.length;l++)D=K[l],u?(O59.length=0,document.addEventListener(D,cny,!0)):document.removeEventListener(D,cny,!0)};
VH=function(u){var K=u.type;return v5w.indexOf(K)>-1?K==="mousemove"?(K=u.buttons===void 0?1:u.buttons,u instanceof window.MouseEvent&&!zxb&&(K=exL[u.which]||0),!!(K&1)):(u.button===void 0?0:u.button)===0:!1};
Rxn=function(u){if(u.type==="click"){if(u.detail===0)return!0;var K=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u);if(!K.nodeType||K.nodeType!==Node.ELEMENT_NODE)return!0;K=K.getBoundingClientRect();var l=u.pageX;u=u.pageY;return!(l>=K.left&&l<=K.right&&u>=K.top&&u<=K.bottom)}return!1};
UZR=function(u,K,l){u.movefn=K;u.upfn=l;document.addEventListener("mousemove",K);document.addEventListener("mouseup",l)};
g_=function(u){document.removeEventListener("mousemove",u.movefn);document.removeEventListener("mouseup",u.upfn);u.movefn=null;u.upfn=null};
fLq=function(u,K){for(var l=document.elementFromPoint(u,K),D=l;D&&D.shadowRoot&&!window.ShadyDOM;){var d=D;D=D.shadowRoot.elementFromPoint(u,K);if(d===D)break;D&&(l=D)}return l};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(u){var K=QXb(u);return K.length>0?K[0]:u.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(u){var K=u.type,l=u.currentTarget.__polymerGestures;if(l&&(l=l[K])){if(!u.__polymerGesturesHandled&&(u.__polymerGesturesHandled={},K.slice(0,5)==="touch")){var D=u.changedTouches[0];K==="touchstart"&&u.touches.length===1&&(PwL=D.identifier);if(PwL!==D.identifier)return;GbH||(K==="touchstart"||K==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u)}D=
u.__polymerGesturesHandled;if(!D.skip){for(var d=0,C;d<NP.length;d++)C=NP[d],l[C.name]&&!D[C.name]&&C.flow&&C.flow.start.indexOf(u.type)>-1&&C.reset&&C.reset();for(d=0;d<NP.length;d++)C=NP[d],l[C.name]&&!D[C.name]&&(D[C.name]=!0,C[K](u))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(u){var K=u.changedTouches[0],l=u.type;if(l==="touchstart")Jnb=K.clientX,jXR=K.clientY,Brq=!1;else if(l==="touchmove"&&!Brq){Brq=!0;l="auto";for(var D=QXb(u),d=0,C;d<D.length;d++)if(C=D[d],C.__polymerGesturesTouchAction){l=C.__polymerGesturesTouchAction;break}D=!1;d=Math.abs(Jnb-K.clientX);K=Math.abs(jXR-K.clientY);u.cancelable&&(l==="none"?D=!0:l==="pan-x"?D=K>d:l==="pan-y"&&(D=d>K));D?u.preventDefault():
kf("track")}};
Yf=function(u,K,l){return Zh[K]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u,K,l),!0):!1};
Ap=function(u,K,l){return Zh[K]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u,K,l),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(u,K,l){var D=Zh[K],d=D.deps,C=D.name,W=u.__polymerGestures;W||(u.__polymerGestures=W={});for(var M=0,q,v;M<d.length;M++)q=d[M],b59&&v5w.indexOf(q)>-1&&q!=="click"||((v=W[q])||(W[q]=v={_count:0}),v._count===0&&u.addEventListener(q,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,SAH(q)),v[C]=(v[C]||0)+1,v._count=(v._count||0)+1);u.addEventListener(K,l);D.touchAction&&_.X3(u,D.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(u,K,l){var D=Zh[K],d=D.deps;D=D.name;var C=u.__polymerGestures;if(C)for(var W=0,M,q;W<d.length;W++)M=d[W],(q=C[M])&&q[D]&&(q[D]=(q[D]||1)-1,q._count=(q._count||1)-1,q._count===0&&u.removeEventListener(M,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,SAH(M)));u.removeEventListener(K,l)};
pUn=function(u){NP.push(u);for(var K=0;K<u.emits.length;K++)Zh[u.emits[K]]=u};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(u){for(var K=0,l;K<NP.length;K++){l=NP[K];for(var D=0,d;D<l.emits.length;D++)if(d=l.emits[D],d===u)return l}return null};
_.X3=function(u,K){GbH&&u instanceof HTMLElement&&mY.run(function(){u.style.touchAction=K});
u.__polymerGesturesTouchAction=K};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(u,K,l){K=new Event(K,{bubbles:!0,cancelable:!0,composed:!0});K.detail=l;(0,_.jB)(u).dispatchEvent(K);K.defaultPrevented&&(u=l.preventer||l.sourceEvent)&&u.preventDefault&&u.preventDefault()};
kf=function(u){u=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u);u.info&&(u.info.prevent=!0)};
hp=function(u,K,l,D){K&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K,u,{x:l.clientX,y:l.clientY,sourceEvent:l,preventer:D,prevent:function(d){return kf(d)}})};
i5q=function(u,K,l){if(u.prevent)return!1;if(u.started)return!0;l=Math.abs(u.y-l);return Math.abs(u.x-K)>=5||l>=5};
TrZ=function(u,K,l){if(K){var D=u.moves[u.moves.length-2],d=u.moves[u.moves.length-1],C=d.x-u.x,W=d.y-u.y,M=0;if(D){var q=d.x-D.x;M=d.y-D.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K,"track",{state:u.state,x:l.clientX,y:l.clientY,dx:C,dy:W,ddx:q,ddy:M,sourceEvent:l,hover:function(){return fLq(l.clientX,l.clientY)}})}};
Fzq=function(u,K,l){var D=Math.abs(K.clientX-u.x),d=Math.abs(K.clientY-u.y),C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l||K);!C||wUq[C.localName]&&C.hasAttribute("disabled")||!(isNaN(D)||isNaN(d)||D<=25&&d<=25||Rxn(K))||u.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C,"tap",{x:K.clientX,y:K.clientY,sourceEvent:K,preventer:l})};
Vlr=function(u,K,l,D,d){var C;d&&(C=typeof l==="object"&&l!==null)&&(D=u.__dataTemp[K]);D=D!==l&&(D===D||l===l);C&&D&&(u.__dataTemp[K]=l);return D};
Nrq=function(){if(E6&&!Li){if(!g5q){g5q=!0;var u=document.createElement("style");u.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(u)}return!0}return!1};
Z5R=function(){return kb9};
YAH=function(u,K){kb9=u;Object.setPrototypeOf(u,K.prototype);new K;kb9=null};
Ann=function(u,K){for(var l=0;l<K.length;l++){var D=K[l];if(!!u!=!!D.__hideTemplateChildren__)if(D.nodeType===Node.TEXT_NODE)u?(D.__polymerTextContent__=D.textContent,D.textContent=""):D.textContent=D.__polymerTextContent__;else if(D.localName==="slot")if(u)D.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.jB)((0,_.jB)(D).parentNode).replaceChild(D.__polymerReplaced__,D);else{var d=D.__polymerReplaced__;d&&(0,_.jB)((0,_.jB)(d).parentNode).replaceChild(D,d)}else D.style&&(u?(D.__polymerDisplay__=
D.style.display,D.style.display="none"):D.style.display=D.__polymerDisplay__);D.__hideTemplateChildren__=u;D._showHideChildren&&D._showHideChildren(u)}};
XUb=function(u){return(u=u.__dataHost)&&u._methodHost||u};
E5r=function(u,K,l){var D=l.mutableData?mZh:u0;Kn.mixin&&(D=Kn.mixin(D));var d=function(){return D.apply(this,arguments)||this};
_.c(d,D);d.prototype.__templatizeOptions=l;d.prototype._bindTemplate(u);hxZ(d,u,K,l);return d};
Daq=function(u,K,l,D){var d=l.forwardHostProp;if(d&&K.hasHostProps){var C=u.localName=="template",W=K.templatizeTemplateClass;if(!W){if(C){var M=l.mutableData?Lzw:uYL;W=function(){return M.apply(this,arguments)||this};
_.c(W,M);W=K.templatizeTemplateClass=W}else{var q=u.constructor;W=function(){return q.apply(this,arguments)||this};
_.c(W,q);W=K.templatizeTemplateClass=W}var v=K.hostProps,G;for(G in v)W.prototype._addPropertyEffect("_host_"+G,W.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:K1r(d)}),W.prototype._createNotifyingProperty("_host_"+G);l0&&D&&lOq(K,l,D)}u.__dataProto&&Object.assign(u.__data,u.__dataProto);if(C)YAH(u,W),u.__dataTemp={},u.__dataPending=null,u.__dataOld=null,u._enableProperties();else{Object.setPrototypeOf(u,W.prototype);K=K.hostProps;for(var t in K)t="_host_"+t,t in u&&(K=u[t],delete u[t],u.__data[t]=
K)}}};
K1r=function(u){return function(K,l,D){u.call(K.__templatizeOwner,l.substring(6),D[l])}};
hxZ=function(u,K,l,D){var d=l.hostProps||{},C;for(C in D.instanceProps){delete d[C];var W=D.notifyInstanceProp;W&&u.prototype._addPropertyEffect(C,u.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:da9(W)})}if(D.forwardHostProp&&K.__dataHost)for(var M in d)l.hasHostProps||(l.hasHostProps=!0),u.prototype._addPropertyEffect(M,u.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:CDq()})};
da9=function(u){return function(K,l,D){u.call(K.__templatizeOwner,K,l,D[l])}};
CDq=function(){return function(u,K,l){u.__dataHost._setPendingPropertyOrPath("_host_"+K,l[K],!0,!0)}};
Kn=function(u,K,l){if(D8&&!XUb(u))throw Error("Kd");l=l||{};if(u.__templatizeOwner)throw Error("Ld");u.__templatizeOwner=K;var D=(K?K.constructor:u0)._parseTemplate(u),d=D.templatizeInstanceClass;d||(d=E5r(u,D,l),D.templatizeInstanceClass=d);var C=XUb(u);Daq(u,D,l,C);l=function(){return d.apply(this,arguments)||this};
_.c(l,d);l.prototype._methodHost=C;l.prototype.__dataHost=u;l.prototype.__templatizeOwner=K;l.prototype.__hostProps=D.hostProps;return l};
lOq=function(u,K,l){l=l.constructor._properties;u=u.propertyEffects;K=K.instanceProps;for(var D in u)if(!(l[D]||K&&K[D]))for(var d=u[D],C=0;C<d.length;C++){var W=d[C].info.part;if(!W.signature||!W.signature.static){console.warn("Property '"+D+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
IOZ=function(u,K){for(var l;K;)if(l=K.__dataHost?K:K.__templatizeInstance)if(l.__dataHost!=u)K=l.__dataHost;else return l;else K=(0,_.jB)(K).parentNode;return null};
dM=function(u){return u.localName==="slot"};
y0q=function(){for(var u=Cn.prototype,K="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),l={},D=0;D<K.length;l={method$jscomp$33:void 0},D++)l.method$jscomp$33=K[D],u[l.method$jscomp$33]=function(d){return function(){return this.node[d.method$jscomp$33].apply(this.node,arguments)}}(l)};
sjb=function(u,K){for(var l={},D=0;D<K.length;l={name$jscomp$421:void 0},D++)l.name$jscomp$421=K[D],Object.defineProperty(u,l.name$jscomp$421,{get:function(d){return function(){return this.node[d.name$jscomp$421]}}(l),
configurable:!0})};
o2n=function(){for(var u=Cn.prototype,K=["textContent","innerHTML","className"],l={},D=0;D<K.length;l={name$jscomp$422:void 0},D++)l.name$jscomp$422=K[D],Object.defineProperty(u,l.name$jscomp$422,{get:function(d){return function(){return this.node[d.name$jscomp$422]}}(l),
set:function(d){return function(C){this.node[d.name$jscomp$422]=C}}(l),
configurable:!0})};
W1H=function(){IN=document.documentElement.getAttribute("dir");IN=document.documentElement.getAttribute("dir");for(var u=0;u<yi.length;u++){var K=yi[u];K.__autoDirOptOut||K.setAttribute("dir",IN)}};
$aq=function(){sW=!0;requestAnimationFrame(function(){sW=!1;H3R(MaZ);setTimeout(function(){for(var u=0,K=oN.length;u<K;u++)qfb(oN.shift())})})};
H3R=function(u){for(;u.length;)qfb(u.shift())};
qfb=function(u){var K=u[0],l=u[1];u=u[2];try{l.apply(K,u)}catch(D){setTimeout(function(){throw D;})}};
_.n2Z=function(u,K,l){sW||$aq();MaZ.push([u,K,l])};
_.W_=function(u,K,l){sW||$aq();oN.push([u,K,l])};
GRR=function(u,K){K=K===void 0?!1:K;if(!r0y||!v2R||!r0y.handlesDynamicScoping)return null;var l=v2R.ScopingShim;if(!l)return null;var D=l.scopeForNode(u),d=(0,_.jB)(u).getRootNode(),C=function(W){if((0,_.jB)(W).getRootNode()===d){var M=Array.from(r0y.nativeMethods.querySelectorAll.call(W,"*"));M.push(W);for(W=0;W<M.length;W++){var q=M[W];if((0,_.jB)(q).getRootNode()===d){var v=l.currentScopeForNode(q);v!==D&&(v!==""&&l.unscopeNode(q,v),l.scopeNode(q,D))}}}};
C(u);return K?(K=new MutationObserver(function(W){for(var M=0;M<W.length;M++)for(var q=W[M],v=0;v<q.addedNodes.length;v++){var G=q.addedNodes[v];G.nodeType===Node.ELEMENT_NODE&&C(G)}}),K.observe(u,{childList:!0,
subtree:!0}),K):null};
taR=function(){document.body.removeAttribute("unresolved")};
c0h=function(u){var K=u=u.replace(xaH,"").replace(Sfn,""),l=new b3q;l.start=0;l.end=K.length;for(var D=l,d=0,C=K.length;d<C;d++)if(K[d]==="{"){D.rules||(D.rules=[]);var W=D,M=W.rules[W.rules.length-1]||null;D=new b3q;D.start=d+1;D.parent=W;D.previous=M;W.rules.push(D)}else K[d]==="}"&&(D.end=d+1,D=D.parent||l);return O3q(l,u)};
O3q=function(u,K){var l=K.substring(u.start,u.end-1);u.parsedCssText=u.cssText=l.trim();u.parent&&(l=K.substring(u.previous?u.previous.end:u.parent.start,u.start-1),l=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(l),l=l.replace(aOH," "),l=l.substring(l.lastIndexOf(";")+1),l=u.parsedSelector=u.selector=l.trim(),u.atRule=l.indexOf("@")===0,u.atRule?l.indexOf("@media")===0?u.type=4:l.match(zeL)&&(u.type=7,u.keyframesName=u.selector.split(aOH).pop()):l.indexOf("--")===
0?u.type=1E3:u.type=1);if(l=u.rules)for(var D=0,d=l.length,C=void 0;D<d&&(C=l[D]);D++)O3q(C,K);return u};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(u){return u.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var K=arguments[1],l=6-K.length;l--;)K="0"+K;return"\\"+K})};
eeR=function(u,K,l){l=l===void 0?"":l;var D="";if(u.cssText||u.rules){var d=u.rules;if(d&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(d))for(var C=0,W=d.length,M=void 0;C<W&&(M=d[C]);C++)D=eeR(M,K,D);else K?K=u.cssText:(K=u.cssText,K=K.replace(Req,"").replace(Uaq,""),K=K.replace(fOy,"").replace(Qjo,"")),(D=K.trim())&&(D="  "+D+"\n")}D&&(u.selector&&(l+=u.selector+" {\n"),l+=D,u.selector&&(l+="}\n\n"));return l};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(u){u=u[0];return!!u&&!!u.selector&&u.selector.indexOf("--")===0};
J0R=function(u){if(u=PDw[u])u._applyShimCurrentVersion=u._applyShimCurrentVersion||0,u._applyShimValidatingVersion=u._applyShimValidatingVersion||0,u._applyShimNextVersion=(u._applyShimNextVersion||0)+1};
jjL=function(u){return u._applyShimCurrentVersion===u._applyShimNextVersion};
p8Z=function(u){u._applyShimValidatingVersion=u._applyShimNextVersion;u._validating||(u._validating=!0,Baw.then(function(){u._applyShimCurrentVersion=u._applyShimNextVersion;u._validating=!1}))};
TaL=function(u){if(!u)return"";typeof u==="string"&&(u=c0h(u));return eeR(u,i3o)};
w8R=function(u){!u.__cssRules&&u.textContent&&(u.__cssRules=c0h(u.textContent));return u.__cssRules||null};
VaL=function(u,K,l,D){if(u){var d=!1,C=u.type;if(D&&C===4){var W=u.selector.match(F1Z);W&&(window.matchMedia(W[1]).matches||(d=!0))}C===1?K(u):l&&C===7?l(u):C===1E3&&(d=!0);if((u=u.rules)&&!d)for(d=0,C=u.length,W=void 0;d<C&&(W=u[d]);d++)VaL(W,K,l,D)}};
g2n=function(u,K){var l=u.indexOf("var(");if(l===-1)return K(u,"","","");a:{var D=0;var d=l+3;for(var C=u.length;d<C;d++)if(u[d]==="(")D++;else if(u[d]===")"&&--D===0)break a;d=-1}D=u.substring(l+4,d);l=u.substring(0,l);u=g2n(u.substring(d+1),K);C=D.indexOf(",");if(C===-1)return K(l,D.trim(),"",u);d=D.substring(0,C).trim();D=D.substring(C+1).trim();return K(l,d,D,u)};
Nah=function(u){if(H_!==void 0)return H_;if(u.__cssBuild===void 0){var K=u.getAttribute("css-build");if(K)u.__cssBuild=K;else{a:{K=u.localName==="template"?u.content.firstChild:u.firstChild;if(K instanceof Comment&&(K=K.textContent.trim().split(":"),K[0]==="css-build")){K=K[1];break a}K=""}if(K!==""){var l=u.localName==="template"?u.content.firstChild:u.firstChild;l.parentNode.removeChild(l)}u.__cssBuild=K}}return u.__cssBuild||""};
Z3H=function(u,K,l,D){for(var d=K._noAccessors,C=Object.getOwnPropertyNames(K),W=0;W<C.length;W++){var M=C[W];if(!(M in D))if(d)u[M]=K[M];else{var q=Object.getOwnPropertyDescriptor(K,M);q&&(q.configurable=!0,Object.defineProperty(u,M,q))}}for(var v in kRb)K[v]&&(l[v]=l[v]||[],l[v].push(K[v]))};
YfH=function(u,K,l){K=K||[];for(var D=u.length-1;D>=0;D--){var d=u[D];d?Array.isArray(d)?YfH(d,K):K.indexOf(d)<0&&(!l||l.indexOf(d)<0)&&K.unshift(d):console.warn("behavior is null, check for missing or 404 import")}return K};
A0n=function(u,K){for(var l in K){var D=u[l],d=K[l];u[l]=!("value"in d)&&D&&"value"in D?Object.assign({value:D.value},d):d}};
heR=function(u,K,l){var D={},d=function(){return K.apply(this,arguments)||this};
_.c(d,K);d._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(W)for(var q=0,v;q<W.length;q++)v=W[q],v.properties&&this.createProperties(v.properties),v.observers&&this.createObservers(v.observers,v.properties);u.properties&&this.createProperties(u.properties);u.observers&&this.createObservers(u.observers,u.properties);this._prepareTemplate()}else K._finalizeClass.call(this)};
d.prototype.created=function(){K.prototype.created.call(this);var q=D.created;if(q)for(var v=0;v<q.length;v++)q[v].call(this)};
d.prototype._registered=function(){var q=d.prototype;if(!q.hasOwnProperty("__hasRegisterFinished")){q.__hasRegisterFinished=!0;K.prototype._registered.call(this);E6&&M(q);q=Object.getPrototypeOf(this);var v=D.beforeRegister;if(v)for(var G=0;G<v.length;G++)v[G].call(q);if(v=D.registered)for(G=0;G<v.length;G++)v[G].call(q)}};
d.prototype._applyListeners=function(){K.prototype._applyListeners.call(this);var q=D.listeners;if(q)for(var v=0;v<q.length;v++){var G=q[v];if(G)for(var t in G)this._addMethodEventListenerToNode(this,t,G[t])}};
d.prototype._ensureAttributes=function(){var q=D.hostAttributes;if(q)for(var v=q.length-1;v>=0;v--){var G=q[v],t;for(t in G)this._ensureAttribute(t,G[t])}K.prototype._ensureAttributes.call(this)};
d.prototype.ready=function(){K.prototype.ready.call(this);var q=D.ready;if(q)for(var v=0;v<q.length;v++)q[v].call(this)};
d.prototype.attached=function(){K.prototype.attached.call(this);var q=D.attached;if(q)for(var v=0;v<q.length;v++)q[v].call(this)};
d.prototype.detached=function(){K.prototype.detached.call(this);var q=D.detached;if(q)for(var v=0;v<q.length;v++)q[v].call(this)};
d.prototype.attributeChanged=function(q,v,G){K.prototype.attributeChanged.call(this);var t=D.attributeChanged;if(t)for(var x=0;x<t.length;x++)t[x].call(this,q,v,G)};
_.MN.Object.defineProperties(d,{properties:{configurable:!0,enumerable:!0,get:function(){var q={};if(W)for(var v=0;v<W.length;v++)A0n(q,W[v].properties);A0n(q,u.properties);return q}},
observers:{configurable:!0,enumerable:!0,get:function(){var q=[];if(W)for(var v=0,G;v<W.length;v++)G=W[v],G.observers&&(q=q.concat(G.observers));u.observers&&(q=q.concat(u.observers));return q}}});
if(l){Array.isArray(l)||(l=[l]);var C=K.prototype.behaviors;var W=YfH(l,null,C);d.prototype.behaviors=C?C.concat(l):W}var M=function(q){if(W)for(var v=W,G=0;G<v.length;G++)Z3H(q,v[G],D,X8y);Z3H(q,u,D,mar)};
E6||M(d.prototype);d.generatedFrom=u;return d};
KIH=function(u){var K=typeof u!=="string"?u:{is:u,notifyObserversOnUndefined:!0};K.fastInit===void 0&&(K.fastInit=!0);return function(l){if(!K.disableInheritanceCheck&&Object.getPrototypeOf(l.prototype).constructor!==_.qN)throw Error("Pd");var D=l.prototype;D.is=K.is;ISy(D,"created",function(){this.hostElement=this;this.polymerController=this});
E2r(D,l,K.fastInit);K.notifyObserversOnUndefined&&(D._overrideLegacyUndefined=!0);if(L1h)for(var d=_.y(Object.getOwnPropertyNames(D)),C=d.next();!C.done;C=d.next()){C=C.value;var W=Object.getOwnPropertyDescriptor(D,C);W.enumerable===!1&&(W.enumerable=!0,Object.defineProperty(D,C,W))}if("template"in l)var M=function(){return l.template};
else K.template!==void 0&&(M=K.template);if(M!==void 0){var q;Object.defineProperty(D,"_template",{get:function(){q===void 0&&(q=M());return q},
set:function(v){q=v},
configurable:!0,enumerable:!0})}Polymer(D);l[uVq]=D}};
l0q=function(u){u=u===void 0?{}:u;u.fastInit===void 0&&(u.fastInit=!0);return function(K){if(!u.disableInheritanceCheck&&Object.getPrototypeOf(K.prototype).constructor!==$r)throw Error("Qd");E2r(K.prototype,K,u.fastInit)}};
E2r=function(u,K,l){l=l===void 0?!1:l;Dbn(K);l?ISy(u,"created",function(){this.disableEnforceFastDefaultValuesCheck||dbb(K,this)}):ISy(u,"ready",function(){for(var D={},d=_.y(y3q(this.behaviors)),C=d.next();!C.done;C=d.next())C=C.value,C.properties&&Object.assign(D,COn(this,C.properties));
Object.assign(D,COn(this,this.properties));dbb(K,this);d=_.y(Object.keys(D));for(C=d.next();!C.done;C=d.next())C=C.value,this[C]=D[C]})};
dbb=function(u,K){if(L1h){u=new u;for(var l=_.y(Object.getOwnPropertyNames(u)),D=l.next();!D.done;D=l.next())D=D.value,K[D]=u[D];for(l=K;l&&l!==Object.prototype;l=Object.getPrototypeOf(l)){D=_.y(Object.getOwnPropertyNames(l));for(var d=D.next();!d.done;d=D.next())d=d.value,u.hasOwnProperty(d)||Object.defineProperty(u,d,I0r(K,d))}}else u.apply(K)};
I0r=function(u,K){return{get:function(){var l=u[K];return l instanceof Function?l.bind(u):l},
set:function(l){u[K]=l}}};
COn=function(u,K){if(!K)return{};for(var l={},D=_.y(Object.keys(K)),d=D.next();!d.done;d=D.next())if(d=d.value,!K[d].readOnly){var C=u[d];C!==void 0&&(l[d]=C)}return l};
Dbn=function(u){var K=new u;u=u.prototype.properties||{};for(var l=_.y(Object.keys(u)),D=l.next();!D.done;D=l.next())if(D=D.value,K.hasOwnProperty(D)){var d=u[D];typeof d==="function"&&(u[D]=d={type:d});K[D]!=null&&d.type===Object&&(d.type=yyL(K[D].constructor))}};
yyL=function(u){for(var K=_.y(sqr),l=K.next();!l.done;l=K.next())if(l=l.value,u===l)return l;return Object};
oA9=function(u){return function(K,l){K.behaviors=K.behaviors||[];K.behaviors.push(u||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",K,l).prototype:void 0));Object.defineProperty(K,l,{get:function(){return this},
enumerable:!0,configurable:!0})}};
WIq=function(u){u=u===void 0?{}:u;return function(K,l){K.properties=K.properties||{};u.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?u.type=yyL(Reflect.getMetadata("design:type",K,l)):u.type=String);var D=u,d=K.properties[l];K.properties[l]=d?Object.assign({},d,D):D}};
HaL=function(u){return function(K,l){K.listeners=K.listeners||{};K.listeners[u]=l}};
MQZ=function(){var u=_.uY.apply(0,arguments);if(u.length===0)throw Error("Rd");return function(K,l){K.observers=K.observers||[];K.observers.push(l+"("+u.join(",")+")")}};
qRq=function(){var u=_.uY.apply(0,arguments);return function(K,l,D){var d=Object.getOwnPropertyDescriptor(K,l).get,C="__compute__"+l;Object.defineProperty(K,C,{value:d,enumerable:!0});K.properties=K.properties||{};d=K.properties[l];d||(d={},K.properties[l]=d);d.computed=C+"("+u.join(",")+")";D.get=void 0}};
_.nn=function(u,K,l){_.TZ.call(this);this.JSC$11190_id_=null;this.usingListeners_=!1;this.JSC$11190_listener_=u;this.handler_=l;this.JSC$11190_win_=K||window;this.callback_=(0,_.wB)(this.JSC$11192_doAction_,this)};
rM=function(u){this.range_=u};
v_=function(u){this.range_=u};
xr=function(u,K,l){_.TZ.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=u;this.scrollTimer_=new _.GS(50);this.JSC$11269_eventHandler_=new _.tC(this);this.scrollDelta_=new _.XB;this.containerIsActuallyContent_=u.tagName==="BODY"||u.tagName==="HTML";this.containerBounds_=$bo(u);this.containerIsActuallyContent_&&(u=_.BK(),this.containerBounds_.height=u.height,this.containerBounds_.width=u.width);this.margin_=K||0;if(K){if(K=this.containerBounds_.clone(),u=this.margin_){var D=
Math.min(u,K.height*.25);K.top+=D;K.height-=2*D;u=Math.min(u,K.width*.25);K.left+=u;K.width-=2*u}}else K=this.containerBounds_;this.scrollBounds_=K;l||this.JSC$11269_eventHandler_.listen(_.hO(this.containerNode_),"mousemove",this.JSC$11271_onMouseMove);this.JSC$11269_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11271_onTick_)};
_.SR=function(u){this.mechanism=u};
b0=function(u,K){this.JSC$11367_key_=u;this.JSC$11367_value_=K};
ryR=function(u){if(u>=55296&&u<=57343||u>1114111)return"\ufffd";u in nAL&&(u=nAL[u]);var K="";u>65535&&(u-=65536,K+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023);return K+=String.fromCharCode(u)};
vAn=function(u,K){return u<K?1:-1};
xbn=function(){return function(u){return u.charAt(1)==="#"?u.charAt(2)==="X"||u.charAt(2)==="x"?ryR(parseInt(u.substr(3),16)):ryR(parseInt(u.substr(2),10)):tQH[u.slice(1,-1)]}};
Oa9=function(u){return u.slice(1,u.length-1).trim().replace(SR9,function(K){return bab[K]||" "})};
OW=function(u){return u===32||u===9};
c_=function(u,K){return K<u.length?u.charCodeAt(K):-1};
cyo=function(u){for(;u;){if(u._lastLineBlank)return!0;var K=u.type;if(K==="list"||K==="item")u=u._lastChild;else break}return!1};
aN=function(u){if(a0Z.test(u)){var K=1,l=0,D=0;for(u[l]=="|"&&l++;l<u.length;){switch(u[l]){case "|":D=1;break;case " ":break;case "\t":break;default:D&&(D=0,K++)}l++}return zbq.test(u)?-K:K}return 0};
ebq=function(u){return u=="table"||u=="row"||u=="cell"};
RbL=function(){return new zS("document",[[1,1],[0,0]])};
Ubb=function(){};
eR=function(){var u={safe:!1};u=u||{};u.softbreak=u.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=u};
jqo=function(u,K){var l="";if(u)if(u=u.toLowerCase(),u===" "||f0q.test(u))l="space";else if(Qqq.test(u))l="esc";else if(u.length==1){if(!K||PO9.test(u))l=u}else l=Jyw.test(u)?u.replace("arrow",""):u=="multiply"?"*":u;return l};
TR9=function(u,K){var l=u.hasModifiers;if(K.key)l=jqo(K.key,l);else if(K.detail&&K.detail.key)l=jqo(K.detail.key,l);else{l=K.keyIdentifier;var D="";l&&(l in BRw?D=BRw[l]:py9.test(l)?(l=parseInt(l.replace("U+","0x"),16),D=String.fromCharCode(l).toLowerCase()):D=l.toLowerCase());(l=D)||(l=K.keyCode,D="",Number(l)&&(l>=65&&l<=90?D=String.fromCharCode(32+l):l>=112&&l<=123?D="f"+(l-112+1):l>=48&&l<=57?D=String(l-48):l>=96&&l<=105?D=String(l-96):D=iaq[l]),l=D);l=l||""}return l===u.key&&(!u.hasModifiers||
!!K.shiftKey===!!u.shiftKey&&!!K.ctrlKey===!!u.ctrlKey&&!!K.altKey===!!u.altKey&&!!K.metaKey===!!u.metaKey)};
FIH=function(u){return u.length===1?{combo:u,key:u,event:"keydown"}:u.split("+").reduce(function(K,l){var D=l.split(":");l=D[0];D=D[1];l in wyq?(K[wyq[l]]=!0,K.hasModifiers=!0):(K.key=l,K.event=D||"keydown");return K},{combo:u.split(":").shift()})};
VQo=function(u){return u.trim().split(" ").map(function(K){return FIH(K)})};
gAw=function(u,K){if(u&&u.fn){var l=u.fn;u.fn=function(){try{l.apply(this,arguments)}catch(D){if(D instanceof RN)console.warn("Argument '"+D.arg+"'"+(K?" for method '"+K+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw D;}}}return u};
NRH=function(){var u=_.uY.apply(0,arguments);return u.length===0?function(K){return K}:u.length===1?u[0]:u.reduce(function(K,l){return function(){return K(l.apply(null,_.Am(_.uY.apply(0,arguments))))}})};
k3q=function(){var u=_.uY.apply(0,arguments);return function(K){return function(l,D){l=K(l,D);var d=function(){throw Error("Be");},C={getState:l.getState,
dispatch:function(W){return d.apply(null,[W].concat(_.Am(_.uY.apply(1,arguments))))}};
D=u.map(function(W){return W(C)});
d=NRH.apply(null,_.Am(D))(l.dispatch);return Object.assign({},l,{dispatch:d})}}};
Ayo=function(u){Object.keys(u).forEach(function(K){var l=u[K];if(typeof l(void 0,{type:Zaq})==="undefined")throw Error("Ce`"+K);if(typeof l(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+YRZ()})==="undefined")throw Error("De`"+K+"`"+Zaq);})};
UW=function(u){for(var K=Object.keys(u),l={},D=0;D<K.length;D++){var d=K[D];typeof u[d]==="function"&&(l[d]=u[d])}var C=Object.keys(l);try{Ayo(l)}catch(M){var W=M}return function(M,q){M=M===void 0?{}:M;if(W)throw W;for(var v=!1,G={},t=0;t<C.length;t++){var x=C[t],O=M[x],a=(0,l[x])(O,q);if(typeof a==="undefined")throw M=q&&q.type,Error("Ee`"+(M?'"'+String(M)+'"':"(unknown type)")+"`"+x);G[x]=a;v=v||a!==O}return(v=v||C.length!==Object.keys(M).length)?G:M}};
Xyr=function(u,K,l){function D(){if(G)throw Error("Fe");return M}
function d(O){if(typeof O!=="function")throw Error("Ge`"+typeof O);if(G)throw Error("He");var a=!0;v===q&&(v=q.slice());v.push(O);return function(){if(a){if(G)throw Error("Ie");a=!1;v===q&&(v=q.slice());var f=v.indexOf(O);v.splice(f,1);q=null}}}
function C(O){if(typeof O!=="object"||O===null)var a=!1;else{for(a=O;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);a=Object.getPrototypeOf(O)===a}if(!a)throw Error("Je`"+typeof O);if(typeof O.type==="undefined")throw Error("Ke");if(G)throw Error("Le");try{G=!0,M=W(M,O)}finally{G=!1}a=q=v;for(var f=0;f<a.length;f++)(0,a[f])();return O}
if(typeof K==="function"&&typeof l==="function"||typeof l==="function"&&typeof arguments[3]==="function")throw Error("Me");typeof K==="function"&&typeof l==="undefined"&&(l=K,K=void 0);if(typeof l!=="undefined"){if(typeof l!=="function")throw Error("Ne`"+typeof l);return l(Xyr)(u,K)}if(typeof u!=="function")throw Error("Oe`"+typeof u);var W=u,M=K,q=[],v=q,G=!1;C({type:Zaq});var t={},x=(t.dispatch=C,t.subscribe=d,t.getState=D,t.replaceReducer=function(O){if(typeof O!=="function")throw Error("Pe`"+
typeof O);W=O;C({type:mbq});return x},t[hbn]=function(){var O={};
return O.subscribe=function(a){function f(){a.next&&a.next(D())}
if(typeof a!=="object"||a===null)throw new TypeError("Qe`"+typeof a);f();return{unsubscribe:d(f)}},O[hbn]=function(){return this},O},t);
return x};
EAR=function(u){function K(){d&&(d=!1,u());C&&D()}
function l(){requestAnimationFrame(K)}
function D(){var M=Date.now();if(d){if(M-W<2)return;C=!0}else d=!0,C=!1,setTimeout(l,20);W=M}
var d=!1,C=!1,W=0;return D};
fn=function(u){return typeof u==="number"?u:parseFloat(u)||0};
LIR=function(u){return _.uY.apply(1,arguments).reduce(function(K,l){return K+fn(u["border-"+l+"-width"])},0)};
_.z=function(u,K){K=IS(CH(K));u.innerHTML=K};
lVZ=function(u){var K=u4h;K||(K=Kin(),K=u4h=_.k$.transpose(K));K=K[u];return typeof K==="string"?K:_.Qi(u)};
Deh=function(u){u=String(u).toLowerCase();var K=Kin()[u];return typeof K==="string"?K:_.P_(u)};
deL=function(u){u=u.toLowerCase();u=Kin()[u];return typeof u==="string"?u:null};
Kin=function(){if(!C4Z){for(var u=Object.assign({},IVZ),K=_.y(y1q),l=K.next();!l.done;l=K.next())l=l.value,u[l.toLowerCase()]=l;C4Z=u}return C4Z};
Wio=function(u,K){var l=window.customElements;return l&&l.get(u)||sBL[u]===!0?2:K.name==="HTMLUnknownElement"?1:K.name==="HTMLElement"&&ozq.test(u)?3:0};
qun=function(u,K){switch(K){case "innerHTML":return HJo(u)===1?2:null;case "textContent":return u=HJo(u),u===1||u===6?1:null;default:var l,D;return(D=(l=M3L[u.localName])==null?void 0:l[K])!=null?D:null}};
HJo=function(u){var K=u.localName,l=Wio(K,u.constructor);switch(l){case 0:case 1:return $er(K,u);case 3:case 2:return 1;default:_.o2(l,"got an unknown element classification")}};
$er=function(u,K){var l=Object.hasOwnProperty.call(nzh,u)?nzh[u]:null;return l!==null?l:Object.hasOwnProperty.call(r1q,u)&&K instanceof SVGElement?r1q[u]:null};
vzL=function(u,K){return K};
t3R=function(u){return(u=u.split(GYH,2))?{url:u[0],metadata:u[1]}:null};
SuL=function(u){var K=String(u.url).replace(xeq,encodeURIComponent);if(u=u.metadata){xeq.lastIndex=0;if(xeq.test(u))return null;K+=" "+u}return K};
aVq=function(u){function K(v){var G=v.localName;if(!v.getAttribute("is")&&Wio(G,v.constructor)===2){var t;return(t=q)!=null?t:q=document.createElement("polyresinuncustomized")}(v=M[G])||(v=M[G]=document.createElement(G));return v}
var l=u.reportHandler||void 0,D=u.safeTypesBridge||bJn,d=/^$/;if(u=u.allowedIdentifierPrefixes){u=_.y(u);for(var C=u.next();!C.done;C=u.next())d=new RegExp(d.source+"|^"+_.OJy(C.value))}l&&l(!1,"initResin",null);var W=c1R(d,D,l),M={},q=null;return function(v,G,t){var x=v.nodeType;if(x!==Node.ELEMENT_NODE){if(x===Node.TEXT_NODE){G=v.parentElement;t=!G;if(G&&G.nodeType===Node.ELEMENT_NODE){x=G.localName;var O=Wio(x,G.constructor);switch(O){case 0:case 1:G=$er(x,G);t=G===1||G===6;break;case 3:case 2:t=
!0;break;default:_.o2(O,"got an unknown element classification")}}if(t)return function(p){return""+D(p,"STRING",p)}}return function(p){if(!p&&p!==document.all)return p;
l&&l(!0,"Failed to sanitize "+(v.parentElement&&v.parentElement.nodeName)+" #text node to value "+p,v.parentElement);return JC}}var a=v.localName;
x=K(v);var f=null;switch(t){case "attribute":if(Deh(G)in x)break;return function(p){return p};
case "property":if(G in x){f=qun(x,G);break}if((O=deL(G))&&O in x)break;return function(p){return p};
default:_.o2(t,"got an unknown resin type, expected either 'property' or 'attribute'")}var B=t==="attribute"?G.toLowerCase():lVZ(G);f||(f=N2b(a,B,function(p){var V=v.getAttribute(p);return!V||/[\[\{]/.test(p)?null:V}));
return function(p){var V=jR,m=null;if(!p&&p!==document.all)return p;if(f!=null){var Z=W[f],A=Z.safeType;m=Z.safeReplacement;A&&(V=D(p,A,jR));V===jR&&(Z.filterString?(V=String(D(p,"STRING",p)),V=Z.filterString(a,B,V)):Z.filterRaw&&(V=Z.filterRaw(a,B,p,v)),V===m&&(V=jR))}V===jR&&(V=m||JC,l&&l(!0,"Failed to sanitize attribute of <"+a+">: <"+a+" "+B+'="'+p+'">',v));return V}}};
c1R=function(u,K,l){return[,{filterRaw:function(D,d,C){return C},
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:zNh,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:zNh,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:JC,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:eN9,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(D,d,C){C=
String(C).toLowerCase();return Y5o(D,d,C)?C:JC},
safeReplacement:JC,safeType:void 0},,{filterRaw:void 0,filterString:function(D,d,C){return u.test(C)?C:JC},
safeReplacement:JC,safeType:"CONSTANT"},{filterRaw:function(D,d,C,W){if(typeof C==="string")var M=(M=C.match(RNh))?M.map(t3R).filter(Boolean):[];else if(Array.isArray(C))M=C;else return zNh;var q=M;M=[];var v=[],G={};if(Array.isArray(q))for(var t=0,x=q.length;t<x;++t){var O=q[t],a=O&&O.url;if(a){var f=K(a,"URL",G);if(f){var B=f!==G;(B?M:v).push({url:B?f:a,metadata:O.metadata})}}}else v.push(q);q=v.length?JSON.stringify(v):null;v=jR;if(M.length){if(!Array.isArray(M))throw Error();v=M.map(SuL).filter(Boolean).join(" , ")||
jR}q&&l&&l(!0,"Failed to sanitize attribute value of <"+D+">: <"+D+" "+d+'="'+C+'">: '+q,W);return v===jR?zNh:v},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
Uen=function(u){var K=aVq(u);return function(l,D,d,C){return C||C===document.all?K(l,D,d)(C):C}};
B_=function(u,K){function l(){function d(M,q,v){for(q=Reflect.getMetadata("parameters",M)||[];q.length<=v;)q.push(null);q[v]=q[v]||[];q[v].push(W);Reflect.defineMetadata(q,M);return M}
var C=_.uY.apply(0,arguments);if(this instanceof l)return D.apply(this,C),this;var W=new (Function.prototype.bind.apply(l,[null].concat(_.Am(C))));d.annotation=W;return d}
var D=fVq(K);l.prototype.toString=function(){return"@"+u};
return l.annotationCls=l};
fVq=function(u){return function(){var K=_.uY.apply(0,arguments),l=this;u.forEach(function(D,d){d=K[d];if(Array.isArray(D))l[D[0]]=d&&d!==void 0?d:D[1];else for(var C in D)l[C]=d&&d[C]!==void 0?d[C]:D[C]})}};
QBq=function(u){return u!==void 0&&u!==null};
pn=function(u){if(typeof u==="string")return u;if(u===void 0||u===null)return""+u;if(u.overriddenName)return u.overriddenName;if(u.name)return u.name;u=u.toString();var K=u.indexOf("\n");return K===-1?u:u.substring(0,K)};
P4q=function(u){u.__forward_ref__=P4q;u.toString=function(){return pn(this())};
return u};
i0=function(u){return typeof u==="function"&&u.hasOwnProperty("__forward_ref__")&&u.__forward_ref__===P4q?u():u};
J1o=function(u){return u?u.map(function(K){return new (Function.prototype.bind.apply(K.type.annotationCls,[null].concat(_.Am(K.args?K.args:[]))))}):[]};
jBH=function(u){for(var K=[],l=0;l<u.length;++l){if(K.indexOf(u[l])>-1){K.push(u[l]);break}K.push(u[l])}return K};
Bxr=function(u){return u.length>1?" ("+jBH(u.slice().reverse()).map(function(K){return pn(K.token)}).join(" -> ")+")":""};
iJR=function(u,K,l,D){if(D){var d=Error("Xe``"+(D instanceof Error?D.message:D));d.ngOriginalError=D}else d=Error();d.addKey=pWq;d.keys=[K];d.injectors=[u];d.constructResolvingMessage=l;d.message=d.constructResolvingMessage();d.ngOriginalError=D;return d};
pWq=function(u,K){this.injectors.push(u);this.keys.push(K);this.message=this.constructResolvingMessage()};
Tx9=function(u,K){return iJR(u,K,function(){return"No provider for "+pn(this.keys[0].token)+"!"+Bxr(this.keys)})};
wWn=function(u,K){return iJR(u,K,function(){return"Cannot instantiate cyclic dependency!"+Bxr(this.keys)})};
Fin=function(u,K,l){return iJR(u,l,function(){var D=pn(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+D+"!"+Bxr(this.keys)+"."},K)};
V3n=function(u,K){for(var l=[],D=0,d=K.length;D<d;D++){var C=K[D];C&&C.length!=0?l.push(C.map(pn).join(" ")):l.push("?")}return Error("af`"+pn(u)+"`"+l.join(", ")+"`"+pn(u))};
XWn=function(u){var K=void 0,l=void 0;if(u&&u.useClass!==void 0){K=u.useClass;var D=i0(u.useClass);var d=gzq.factory(D);D=NxL(D)}else u&&u.useExisting!==void 0?(d=function(C){return C},D=[kYn(TS.get(i0(u.useExisting)))]):u&&u.useFactory!==void 0?(d=u.useFactory,D=ZJw(u.useFactory,u.deps)):(l=u.useValue,d=function(){return u.useValue},D=Yuq);
return new A1H(d,D,K,l)};
hN9=function(u){return new mer(TS.get(i0(u.provide)),[XWn(u)],u.multi)};
Lir=function(u){u=EzH(u,[]).map(hN9);for(var K=new Map,l=0;l<u.length;l++){var D=u[l],d=K.get(D.key.id);if(d){if(D.multiProvider!==d.multiProvider)throw Error("cf`"+d+"`"+D);if(D.multiProvider)for(var C=0;C<D.resolvedFactories.length;C++)d.resolvedFactories.push(D.resolvedFactories[C]);else K.set(D.key.id,D)}else d=void 0,D.multiProvider?d=new mer(D.key,D.resolvedFactories.slice(),D.multiProvider):d=D,K.set(D.key.id,d)}return Array.from(K.values())};
EzH=function(u,K){u.forEach(function(l){if(l instanceof uxR)K.push({provide:l,useClass:l});else if(l&&typeof l=="object"&&l.provide!==void 0)K.push(l);else if(l instanceof Array)EzH(l,K);else throw Error("$e`"+l);});
return K};
ZJw=function(u,K){if(K){var l=K.map(function(D){return[D]});
return K.map(function(D){return KmH(u,D,l)})}return NxL(u)};
NxL=function(u){var K=gzq.parameters(u);if(!K)return[];if(K.some(function(l){return l==null}))throw V3n(u,K);
return K.map(function(l){return KmH(u,l,K)})};
KmH=function(u,K,l){var D=null,d=!1;if(!Array.isArray(K))return K instanceof lCr?DiL(K.token,d,null):DiL(K,d,null);for(var C=null,W=0;W<K.length;++W){var M=K[W];if(M instanceof uxR)D=M;else if(M instanceof lCr)D=M.token;else if(M instanceof dir)d=!0;else if(M instanceof CAh||M instanceof ICq)C=M}D=i0(D);if(D!=null)return DiL(D,d,C);throw V3n(u,l);};
DiL=function(u,K,l){return new y59(TS.get(i0(u)),K,l)};
sMy=function(u,K){for(var l=Array(u.providers.length),D=0;D<u.providers.length;++D){var d=D;if(D<0||D>=u.providers.length)throw Error("bf`"+D);l[d]=K(u.providers[D])}return l};
o4b=function(u){return typeof u==="function"&&gzq.parameters(u).every(function(K){return!!K})};
MSq=function(u){var K=Wmb;HXy.get(u)||HXy.set(u,new K);return HXy.get(u)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(u){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(u)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(u){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(u)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(u,K){var l,D;if(u.contains(K))return!0;u=_.wM(u).querySelectorAll("content,slot");for(l=0;l<u.length;++l){var d=_.wM(u[l]).getDistributedNodes();for(D=0;D<d.length;++D)if(d[D].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(d[D],K))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(u){u.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(u)&&u.preventDefault();u.targetTouches&&(u=u.targetTouches[0],qgZ=u.pageX,$iL=u.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 u=0,K=FX.length;u<K;u++)document.addEventListener(FX[u],_._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 u=0,K=FX.length;u<K;u++)document.removeEventListener(FX[u],_._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(u){var K=_.wM(u).rootTarget;u.type!=="touchmove"&&n49!==K&&(n49=K,r5L=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.wM(u).path));if(!r5L.length)return!0;if(u.type==="touchstart")return!1;u=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(u);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(r5L,u.deltaX,u.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(u){for(var K=[],l=u.indexOf(v4L),D=0;D<=l;D++)if(u[D].nodeType===Node.ELEMENT_NODE){var d=u[D],C=d.style;C.overflow!=="scroll"&&C.overflow!=="auto"&&(C=window.getComputedStyle(d));C.overflow!=="scroll"&&C.overflow!=="auto"||K.push(d)}return K};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(u,K,l){if(K||l)for(var D=Math.abs(l)>=Math.abs(K),d=0;d<u.length;d++){var C=u[d];if(D?l<0?C.scrollTop>0:C.scrollTop<C.scrollHeight-C.clientHeight:K<0?C.scrollLeft>0:C.scrollLeft<C.scrollWidth-C.clientWidth)return C}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(u){var K={deltaX:u.deltaX,deltaY:u.deltaY};"deltaX"in u||("wheelDeltaX"in u&&"wheelDeltaY"in u?(K.deltaX=-u.wheelDeltaX,K.deltaY=-u.wheelDeltaY):"wheelDelta"in u?(K.deltaX=0,K.deltaY=-u.wheelDelta):"axis"in u?(K.deltaX=u.axis===1?u.detail:0,K.deltaY=u.axis===2?u.detail:0):u.targetTouches&&(u=u.targetTouches[0],K.deltaX=qgZ-u.pageX,K.deltaY=$iL-u.pageY));return K};
G2H=function(u){this.element=u;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
xiq=function(u){this.element=u;this.color=window.getComputedStyle(u).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");_.wM(this.waveContainer).appendChild(this.wave);tSy(this)};
Vi=function(u,K){for(var l in u)if(l.toLowerCase()===K.toLowerCase())return u[l]};
Sgy=function(u,K){for(var l in u)if(l.toLowerCase()===K.toLowerCase()){delete u[l];break}};
OXy=function(u){u=_.k$.clone(u);for(var K=0;K<bX9.length;++K){var l=bX9[K],D=Vi(u,l);D&&(u["X-Goog-Upload-Header-"+l]=D,Sgy(u,l))}return u};
c5o=function(u){u=_.k$.clone(u);Sgy(u,"X-Goog-Upload-Status")};
zjH=function(u){return aCn.some(function(K){return K.test(u)})};
fCZ=function(u,K){var l;var D=(l=u.formContent)==null?void 0:l.locale;l=D==null?void 0:D.split("-")[0];D=D&&ejZ.includes(D)?D:l&&ejZ.includes(l)?l:void 0;D=(D!=null?D:"en").replaceAll("-","_").toLowerCase();var d;u=((d=u.initializationData)==null?0:d.useNightlyRelease)?"nightly":"live";var C;return(K==null?0:(C=K.getEnableAlohaBinarySplit)==null?0:C.call(K))?_.Oy(Rjr,u):_.Oy(UiZ,u,D)};
J5h=function(u,K,l,D){if(QMr&&PAq===K)return QMr;PAq=K;var d=fCZ(u,D);return QMr=K.feedbackV2GlobalObject?Promise.resolve(K.feedbackV2GlobalObject):new Promise(function(C,W){var M=_.PO("SCRIPT");_.$P(M,d);M.onload=function(){K.feedbackV2GlobalObject?C(K.feedbackV2GlobalObject):W(Error("ff"))};
M.onerror=function(){W(Error("gf`"+d.toString()))};
l.body.appendChild(M)})};
pN9=function(u,K,l,D){if(jMq&&BOq===K)return jMq;BOq=K;var d=fCZ(u,D);return jMq=K.feedbackV2GlobalObject?Promise.resolve(K.feedbackV2GlobalObject):new Promise(function(C,W){var M=_.PO("SCRIPT");_.$P(M,d);M.onload=function(){K.feedbackV2GlobalObject?C(K.feedbackV2GlobalObject):W(Error("ff"))};
M.onerror=function(){W(Error("gf`"+d.toString()))};
l.body.appendChild(M)})};
iXb=function(u,K,l,D,d){d=d===void 0?!0:d;var C,W,M,q,v;return _.H(function(G){switch(G.nextAddress){case 1:return C=Date.now(),G.yield(J5h(u,l,D,K),2);case 2:W=G.yieldResult;if(!(d||((q=u.initializationData)==null?0:q.useNightlyRelease)||((v=u.initializationData)==null?0:v.isLocalServer))){M=W.initializeFeedbackClient(u,C,K);G.jumpTo(3);break}return G.yield(W.initializeFeedbackClientAsync(u,C,K),4);case 4:M=G.yieldResult;case 3:return M.initiateAloha(),G.return(M)}})};
TOZ=function(u,K,l,D){var d,C,W;return _.H(function(M){if(M.nextAddress==1)return d=Date.now(),M.yield(pN9(u,l,D.document,K),2);if(M.nextAddress!=3)return C=M.yieldResult,M.yield(C.initializeFeedbackClientAsync(u,d,K,D),3);W=M.yieldResult;W.initiateAloha();return M.return(W)})};
wNy=function(u,K,l){var D=!0;D=D===void 0?!0:D;var d,C,W,M,q,v,G,t,x,O;return _.H(function(a){d=l||_.lL;if((C=K)==null?0:(M=(W=C).getEnableAlohaBinarySplit)==null?0:M.call(W)){q=d;if(q.isFormOpened)throw v=Error("hf"),v.name="DuplicateFormError",v;q.isFormOpened=!0;u.callbacks=u.callbacks||{};G=u.callbacks.onClose||function(){};
u.callbacks.onClose=function(f){q.isFormOpened=!1;G(f)};
try{return a.return(TOZ(u,K,q,d))}catch(f){throw q.isFormOpened=!1,f;}}else{t=d;if(t.isFormOpened)throw x=Error("hf"),x.name="DuplicateFormError",x;t.isFormOpened=!0;u.callbacks=u.callbacks||{};O=u.callbacks.onClose||function(){};
u.callbacks.onClose=function(f){t.isFormOpened=!1;O(f)};
try{return a.return(iXb(u,K,t,d.document,D))}catch(f){throw t.isFormOpened=!1,f;}}_.TG(a)})};
k2Z=function(u,K){return _.H(function(l){return l.return(new Promise(function(D){var d=Fmb(K!=null?K:"")+"/aloha_form_properties?productId="+u;VSq(d,function(C){C=C.target;var W=null;try{var M=JSON,q=M.stringify;if(C.JSC$9723_xhr_){var v=C.JSC$9723_xhr_.responseText;v.indexOf(")]}'\n")==0&&(v=v.substring(5));var G=(0,_.gM)(v)}else G=void 0;W=OMn(g4n,q.call(M,G))}catch(t){q=new g4n,G=NOy(),G=_.NN(G,13,!1),G=_.NN(G,14,!0),G=_.NN(G,15,!0),G=_.NN(G,20,!1),W=_.jF(q,1,G)}D(W)},"GET","",{},2E3,!0)}))})};
Fmb=function(u){return zjH(u)?u:"https://www.google.com/tools/feedback"};
XNH=function(u){u=u.match(new RegExp(ZXq,"gi"))||[];u=_.y(u);for(var K=u.next();!K.done;K=u.next()){K=K.value;a:{var l=_.y(Ygn);for(var D=l.next();!D.done;D=l.next())if(D.value.test(K)){l=!1;break a}l=!0}if(!l)a:{l=_.y(A5L);for(D=l.next();!D.done;D=l.next())if(D.value.test(K)){l=!0;break a}l=!1}if(l)return!0}return!1};
miH=function(u){switch(u){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"}};
E4h=function(u){if(window.crypto&&window.crypto.getRandomValues)try{var K=Array(u),l=new Uint8Array(u);window.crypto.getRandomValues(l);for(var D=0;D<K.length;D++)K[D]=l[D];return K}catch(C){}K=Array(u);for(l=0;l<u;l++){D=Date.now();for(var d=0;d<D%23;d++)K[l]=Math.random();K[l]=Math.floor(Math.random()*256)}if(hj9)for(l=1,D=0;D<hj9.length;D++)K[l%u]^=K[(l-1)%u]/4^hj9.charCodeAt(D),l++;return K};
kr=function(u){u=E4h(u);for(var K=[],l=0;l<u.length;l++)K.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(u[l]&63));return K.join("")};
usb=function(u){u&&_.YE("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Lmq,clientScreenNonce:u})};
KRR=function(u){return _.E3("client-screen-nonce-store",{})[u===void 0?0:u]};
lwo=function(u,K){K=K===void 0?0:K;var l=_.E3("client-screen-nonce-store");l||(l={},_.h8("client-screen-nonce-store",l));l[K]=u};
D2o=function(u){u=u===void 0?0:u;return u===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+u};
d2q=function(u){return _.E3(D2o(u===void 0?0:u))};
_.Yr=function(u){return(u=d2q(u===void 0?0:u))?new _.Z8({veType:u,youtubeData:void 0,jspbYoutubeData:void 0}):null};
CHq=function(){var u=_.E3("csn-to-ctt-auth-info");u||(u={},_.h8("csn-to-ctt-auth-info",u));return u};
IwL=function(){return Object.values(_.E3("client-screen-nonce-store",{})).filter(function(u){return u!==void 0})};
_.AC=function(u){u=KRR(u===void 0?0:u);if(!u&&!_.L0("USE_CSN_FALLBACK",!0))return null;u||(u="UNDEFINED_CSN");return u?u:null};
sho=function(u){for(var K=_.y(Object.values(y7H)),l=K.next();!l.done;l=K.next())if(_.AC(l.value)===u)return!0;return!1};
ov9=function(u,K,l){var D=CHq();(l=_.AC(l))&&delete D[l];K&&(D[u]=K)};
XX=function(u){return CHq()[u]};
_.mq=function(u,K,l,D){l=l===void 0?0:l;if(u!==KRR(l)||K!==_.E3(D2o(l)))if(ov9(u,D,l),lwo(u,l),_.h8(D2o(l),K),K=function(){setTimeout(function(){usb(u)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(K)}catch(d){K()}else K()};
WRL=function(u,K){K=K===void 0?"":K;var l=[],D;for(D in u)if(u.hasOwnProperty(D)){var d=K!==""?K+"."+D:D;typeof u[D]==="object"?l.push.apply(l,_.Am(WRL(u[D],d))):l.push([d,u[D]])}l.sort();return l};
_.EW=function(u){var K=_.uY.apply(1,arguments);if(!hC(u)||K.some(function(D){return!hC(D)}))throw Error("jf");
K=_.y(K);for(var l=K.next();!l.done;l=K.next())Her(u,l.value)};
Her=function(u,K){for(var l in K)if(hC(K[l])){if(l in u&&!hC(u[l]))throw Error("kf");l in u||(u[l]={});Her(u[l],K[l])}else if(MDn(K[l])){if(l in u&&!MDn(u[l]))throw Error("lf");l in u||(u[l]=[]);qcr(u[l],K[l])}else u[l]=K[l];return u};
qcr=function(u,K){K=_.y(K);for(var l=K.next();!l.done;l=K.next())l=l.value,hC(l)?u.push(Her({},l)):MDn(l)?u.push(qcr([],l)):u.push(l);return u};
hC=function(u){return typeof u==="object"&&!Array.isArray(u)};
MDn=function(u){return typeof u==="object"&&Array.isArray(u)};
nvy=function(u){for(var K=_.y(Object.entries($2H)),l=K.next();!l.done;l=K.next())if(l=_.y(l.value),l.next(),l=l.next().value,l==="SLI_STATUS_"+u)return l;return"SLI_STATUS_UNKNOWN"};
_.Ln=function(u,K,l,D){return r7q(u,K,function(){return new _.vvH(u,K,l,D)})};
_.G$n=function(){return _.Ln("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
tDq=function(){return _.Ln("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
uI=function(){return _.Ln("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
x2Z=function(){return _.Ln("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
Sc9=function(){return _.Ln("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
beq=function(){return _.Ln("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
awb=function(u){u&&(u.dataset?u.dataset[Oew()]="true":_.rm([_.SA(c7q)],u,"data-loaded","true".toString()))};
zYH=function(u){return u?u.dataset?u.dataset[Oew()]:u.getAttribute("data-loaded"):null};
Oew=function(){return eYw.loaded||(eYw.loaded="loaded".replace(/\-([a-z])/g,function(u,K){return K.toUpperCase()}))};
_.KN=function(u,K,l){RYZ(u,K,l===void 0?null:l)};
_.fwn=function(u,K){u&&K&&(u=""+_.DA(K),(u=U2w[u])&&_.PTL(u))};
RYZ=function(u,K,l){l=l===void 0?null:l;var D=_.QhZ(typeof u==="string"?u:u.toString()),d=document.getElementById(D),C=d&&zYH(d),W=d&&!C;C?K&&K():(K&&(C=_.bP(D,K),K=""+_.DA(K),U2w[K]=C),W||(d=PHn(u,D,function(){zYH(d)||(awb(d),_.JlR(D),_.aK(function(){_.Bfy(D)},0))},l)))};
PHn=function(u,K,l,D){D=D===void 0?null:D;var d=_.PO("SCRIPT");d.id=K;d.onload=function(){l&&setTimeout(l,0)};
d.onreadystatechange=function(){switch(d.readyState){case "loaded":case "complete":d.onload()}};
D&&d.setAttribute("nonce",D);_.$P(d,typeof u==="string"?_.Vf(u):u);u=document.getElementsByTagName("head")[0]||document.body;u.insertBefore(d,u.firstChild);return d};
_.QhZ=function(u){var K=document.createElement("a");lY(K,u);return"js-"+lI(K.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
J7w=function(u){var K=_.E3("INNERTUBE_HOST_OVERRIDE");K&&(u=String(K)+String(_.dd(u)));return u};
jhq=function(u){var K={};_.S("json_condensed_response")&&(K.prettyPrint="false");return u=DBw(u,K)};
_.CN=function(u){return nT(u)?"same-origin":"include"};
_.Iy=function(u){return nT(u)?"same-origin":"cors"};
yQ=function(u,K,l){l=l===void 0?{}:l;u={method:K===void 0?"POST":K,mode:_.Iy(u),credentials:_.CN(u)};K={};for(var D=_.y(Object.keys(l)),d=D.next();!d.done;d=D.next())d=d.value,l[d]&&(K[d]=l[d]);Object.keys(K).length>0&&(u.headers=K);return u};
_.sx=function(u,K){K=K===void 0?{}:K;return"service:"+u+"/"+Object.keys(K).sort().map(function(l){return l+":"+K[l]}).join("/")};
B3L=function(u){var K,l,D,d;u=(K=_.b(u,_.oy))==null?void 0:(l=K.watchEndpointSupportedOnesieConfig)==null?void 0:(D=l.html5PlaybackOnesieConfig)==null?void 0:(d=D.commonConfig)==null?void 0:d.url;if(!u)return[];K=new _.W0(u);return K.JSC$9960_domain_?["https://"+K.JSC$9960_domain_+"/generate_204"]:[]};
_.T3q=function(){return pPn()||yuH()||iew&&h9("version/")?!0:_.E3("EOM_VISITOR_DATA")?!1:!0};
wPH=function(u){var K=u.docid||u.video_id||u.videoId||u.id;if(K)return K;K=u.raw_player_response;K||(u=u.player_response)&&(K=JSON.parse(u));return K&&K.videoDetails&&K.videoDetails.videoId||null};
FRw=function(u){return u.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
H0=function(u){return!isNaN(Number(u))&&!_.oR(u)};
_.qB=function(u,K,l,D){D=D===void 0?!0:D;var d=_.E3("VALID_SESSION_TEMPDATA_DOMAINS",[]),C=_.q7(window.location.href);C&&d.push(C);C=_.q7(u);if(_.Vn(d,C)||!C&&_.dq(u,"/"))if(d=document.createElement("a"),lY(d,u),u=d.href)if(u=_.dd(u),u=_.MB(u))D&&!K.csn&&(K.itct||K.ved)&&(K=Object.assign({csn:_.AC()},K)),l?(l=parseInt(l,10),isFinite(l)&&l>0&&VDq(u,K,l)):VDq(u,K)};
N3R=function(u){var K=_.E3("VALID_SESSION_TEMPDATA_DOMAINS",[]),l=_.q7(window.location.href);l&&K.push(l);l=_.q7(u);if(!(_.Vn(K,l)||!l&&_.dq(u,"/")))return null;u=_.dd(u);(u=_.MB(u))?(u=gvZ(u),u=(u=_.jg.get(u,void 0)||null)?_.sP(u):{}):u=null;return u};
VDq=function(u,K,l){u=gvZ(u);K=K?_.fT(K):"";l=l||5;_.T3q()&&_.Bv(u,K,l)};
gvZ=function(u){for(var K=_.y(k$h),l=K.next();!l.done;l=K.next())u=_.$s(u,l.value);return"ST-"+lI(u).toString(36)};
ZeZ=function(u,K){u.commandMetadata&&_.b(u.commandMetadata,_.nN)&&_.b(u.commandMetadata,_.nN).url&&(u=_.oK(_.b(u.commandMetadata,_.nN).url).adurl)&&_.CIo(u)&&_.qB(_.dd(u),{encoded_ad_playback_context:K})};
_.YcH=function(u){if(u.requestFullscreen)u=u.requestFullscreen(void 0);else if(u.webkitRequestFullscreen)u=u.webkitRequestFullscreen();else if(u.mozRequestFullScreen)u=u.mozRequestFullScreen();else if(u.msRequestFullscreen)u=u.msRequestFullscreen();else if(u.webkitEnterFullscreen)u=u.webkitEnterFullscreen();else return Promise.reject(Error("uf"));return u instanceof Promise?u:Promise.resolve()};
_.v0=function(u){var K;_.xEZ(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.rd()==u&&(K=document):K=u;if(K&&(u=_.xEZ(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],K))){u.call(K)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.rd=function(){var u=u===void 0?!1:u;var K=_.xEZ(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(u)for(;K&&K.shadowRoot;)K=K.shadowRoot.fullscreenElement;return K?K:null};
_.GA=function(u,K){K=K===void 0?!0:K;u.addEventListener("wheel",A7L);u.overscrollConfig={cooldown:K}};
_.ts=function(u){u.overscrollConfig=void 0;u.removeEventListener("wheel",A7L)};
A7L=function(u){var K=u.deltaY,l=u.target,D=null;if(window.Polymer&&window.Polymer.Element){if(l=u.path||u.composedPath&&u.composedPath()){l=_.y(l);for(var d=l.next();!d.done&&(d=d.value,!XPH(d,K));d=l.next())if(d.overscrollConfig){D=d;break}}}else for(;l&&!XPH(l,K);){if(l.overscrollConfig){D=l;break}l=l.parentElement}D&&(K=D.overscrollConfig,K.cooldown?(D=u.deltaY,l=K.lastDeltaY||0,K.lastDeltaY=D,d=K.lastStopped||0,l&&d&&l>0==D>0?Math.abs(l)>=Math.abs(D)?(D=d+1200,l=!1):(D=d+600,l=!0):(D=Date.now()+
600,l=!0),D>Date.now()&&(u.preventDefault(),l&&(K.lastStopped=Date.now()))):u.preventDefault())};
XPH=function(u,K){return K<0&&u.scrollTop>0||K>0&&u.scrollTop<u.scrollHeight-u.clientHeight-1?(u=getComputedStyle(u).overflowY,u=="auto"||u=="scroll"):!1};
_.xs=function(u,K,l,D){D||(D={bubbles:!0,cancelable:!1,composed:!0});l!==null&&l!==void 0&&(D.detail=l);var d=new CustomEvent(K,D);_.S("untrack_fire_custom_event_killswitch")?u.dispatchEvent(d):br(function(){return void u.dispatchEvent(d)});
return d};
m2w=function(u){var K=window,l=function(D){K.removeEventListener("yt-navigate-start",l);return u.call(K,D)};
K.addEventListener("yt-navigate-start",l,void 0)};
_.Sy=function(u,K,l,D){K=new hYo(K,!(D===void 0||!D),l);_.xs(u,"yt-action",K);return K.returnValue};
_.bI=function(u,K,l){return _.Sy(u,K,l,!0)};
_.Ox=function(u,K,l){return _.Sy(u,K,l)[0]};
_.ay=function(u,K,l,D){K&&K.length&&K.forEach(function(d){var C=GTb(d);C&&(_.S("handle_service_request_actions")&&d.commandMetadata&&d.commandMetadata.webCommandMetadata&&d.commandMetadata.webCommandMetadata.sendPost?_.c0(l?l:u,[d]):_.bI(u,C,[d,l,D]))})};
_.c0=function(u,K){var l=[u];K&&l.push.apply(l,K);K=_.Sy(u,"yt-service-request",l);return K.length>0&&(K=K[0],_.xs(u,"yt-service-request-sent",K),K&&K.ajaxPromise)?(K.ajaxPromise.then(function(D){_.xs(u,"yt-service-request-completed",D)},function(D){_.xs(u,"yt-service-request-error",{error:D,
params:l})},u),K.ajaxPromise):_.zA()};
_.Ry=function(u,K){if(_.S("handle_service_request_actions"))_.ay(K,u,K);else{u=_.y(u);for(var l=u.next();!l.done;l=u.next()){l=l.value;var D=void 0;((D=_.b(l,_.ey))==null?0:D.commands)?_.Ry(_.b(l,_.ey).commands,K):(D=void 0,((D=_.b(l,_.Ux))==null?0:D.actions)?_.Ry(_.b(l,_.Ux).actions,K):(D=void 0,((D=_.b(l.commandMetadata,_.nN))==null?0:D.sendPost)?_.c0(K,[l]):_.ay(K,[l],K)))}}};
_.LRy=function(u,K,l){K=K===void 0?{}:K;typeof K==="function"&&(K={callback:K});l||K._c&&K._c.jsl&&K._c.jsl.h||_.k$.extend(K,{_c:{jsl:{h:_.E3("GAPI_HINT_PARAMS")}}});(K.gapiHintOverride||_.E3("GAPI_HINT_OVERRIDE"))&&(l=_.oK(document.location.href).gapi_jsh)&&_.k$.extend(K,{_c:{jsl:{h:l}}});EvR(u,K)};
_.QQ=function(u,K,l){K=K===void 0?{}:K;u=(u=u in fN?fN[u]:l)||"";l={};for(var D in K){l={key$jscomp$815:l.key$jscomp$815};l.key$jscomp$815=D;var d=function(C){return function(){return String(K[C.key$jscomp$815])}}(l);
u=u.replace(new RegExp("\\$\\{"+l.key$jscomp$815+"\\}","gi"),d);u=u.replace(new RegExp("\\$"+l.key$jscomp$815,"gi"),d)}return u};
_.P0=function(u,K){return uGh(u in fN?fN[u]:{},K)};
uGh=function(u,K){var l=_.E3("I18N_PLURAL_RULES");l||(l=function(D){return D==1?"one":"other"});
return(u=u["case"+K]||u[l(K)])?u.replace("#",K.toString()):K+""};
DLh=function(u){var K=KeR(u),l=document.getElementById(K),D=l&&zYH(l);D||l&&!D||(l=lFn(u,K,function(){if(!zYH(l)){awb(l);_.JlR(K);var d=_.Js(_.Bfy,K);_.aK(d,0)}}))};
lFn=function(u,K,l){var D=document.createElement("link");D.id=K;D.onload=function(){l&&setTimeout(l,0)};
u=_.Vf(u);_.vZ(D,u,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(D);return D};
KeR=function(u){var K=_.PO("A");lY(K,ku(u));return"css-"+lI(K.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.C1o=function(u){var K=dLH();u!==K&&(K=_.jy(),!_.S("web_autonav_allow_off_by_default")&&u||_.B0(0,141,!0),_.B0(0,140,!u),K.save())};
dLH=function(){var u=_.jy();return _.S("web_autonav_allow_off_by_default")&&!u.getFlag(141)&&_.E3("AUTONAV_OFF_BY_DEFAULT")?!1:!u.getFlag(140)};
IFZ=function(u,K){var l,D;u=((l=u.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(D=l.videoAuthorizationToken)==null?void 0:D.credentialTransferTokens)||[];for(l=0;l<u.length;++l)if(u[l].scope===K)return u[l].token||void 0};
y$n=function(u){for(var K=0,l=0;l<u.length;l++)K=K*31+u.charCodeAt(l),l<u.length-1&&(K%=0x800000000000);return K%1E5};
_.pN=function(u){return _.lZ("ytcsi."+(u||"")+"data_")||soh(u)};
_.o1n=function(u){u=_.pN(u);u.metadata||(u.metadata={});return u.metadata};
_.WeH=function(u){u=_.pN(u);u.tick||(u.tick={});return u.tick};
_.iI=function(u){u=_.pN(u);if(u.gel){var K=u.gel;K.gelInfos||(K.gelInfos={});K.gelTicks||(K.gelTicks={})}else u.gel={gelTicks:{},gelInfos:{}};return u.gel};
_.HW9=function(u){u=_.iI(u);u.gelInfos||(u.gelInfos={});return u.gelInfos};
MYq=function(u){var K=_.pN(u).nonce;K||(K=kr(16),_.pN(u).nonce=K);return K};
soh=function(u){var K={tick:{},info:{}};_.$L("ytcsi."+(u||"")+"data_",K);return K};
qCq=function(){var u=_.lZ("ytcsi.debug");u||(u=[],_.$L("ytcsi.debug",u),_.$L("ytcsi.reference",{}));return u};
_.TA=function(u){u=u||"";var K=$LR();if(K[u])return K[u];var l=qCq(),D={timerName:u,info:{},tick:{},span:{},jspbInfo:[]};l.push(D);return K[u]=D};
n1o=function(u){u=u||"";var K=$LR();K[u]&&delete K[u];var l=qCq(),D={timerName:u,info:{},tick:{},span:{},jspbInfo:[]};l.push(D);K[u]=D};
$LR=function(){var u=_.lZ("ytcsi.reference");if(u)return u;qCq();return _.lZ("ytcsi.reference")};
_.v1b=function(u){return r$L[u]||"LATENCY_ACTION_UNKNOWN"};
SCr=function(u,K,l){l=l===void 0?{}:l;var D=!1;_.L0("ytLoggingEventsDefaultDisabled",!1)&&(D=!0);D=D?null:Zs;l=l===void 0?{}:l;var d=Math.round(l.timestamp||(0,_.vA)());_.iP(K,1,d<Number.MAX_SAFE_INTEGER?d:0);d=new GVw;if(l.lact)_.iP(d,1,isFinite(l.lact)?l.lact:-1);else if(l.timestamp)_.iP(d,1,-1);else{var C=_.Gr();_.iP(d,1,isFinite(C)?C:-1)}if(l.sequenceGroup&&!_.S("web_gel_sequence_info_killswitch")){C=l.sequenceGroup;var W=Z4L(C),M=new tYH;_.iP(M,2,W);_.Tj(M,1,C);_.jF(d,3,M);l.endOfSequence&&delete xL9[l.sequenceGroup]}_.jF(K,
33,d);(l.sendIsolatedPayload?EUb:LQy)(u,{endpoint:"log_event",payload:K,cttAuthInfo:l.cttAuthInfo,dangerousLogToVisitorSession:l.dangerousLogToVisitorSession},D)};
_.Fi=function(){return(_.S("csi_use_time_origin")||_.S("csi_use_time_origin_tvhtml5"))&&_.wd.timeOrigin?Math.floor(_.wd.timeOrigin):_.wd.timing.navigationStart};
_.bWo=function(u,K){_.VQ("_start",u,K)};
_.gd=function(u,K){if(!_.S("web_csi_action_sampling_enabled")||!_.pN(K).actionDisabled){var l=_.TA(K||"");_.EW(l.info,u);u.loadType&&(l=u.loadType,_.o1n(K).loadType=l);_.EW(_.HW9(K),u);l=MYq(K);K=_.pN(K).cttAuthInfo;OW9().info(u,l,K)}};
c$9=function(){var u,K,l,D;return((D=_.GB().resolve(_.vv(g2))==null?void 0:(u=kHq())==null?void 0:(K=u.loggingHotConfig)==null?void 0:(l=K.csiConfig)==null?void 0:l.debugTicks)!=null?D:[]).map(function(d){return Object.values(d)[0]})};
_.VQ=function(u,K,l){if(!_.S("web_csi_action_sampling_enabled")||!_.pN(l).actionDisabled){var D=MYq(l),d;if(d=_.S("web_csi_debug_sample_enabled")&&D){(_.GB().resolve(_.vv(g2))==null?0:kHq())&&!aFh&&(aFh=!0,_.VQ("gcfl",(0,_.vA)(),l));var C,W,M;d=(_.GB().resolve(_.vv(g2))==null?void 0:(C=kHq())==null?void 0:(W=C.loggingHotConfig)==null?void 0:(M=W.csiConfig)==null?void 0:M.debugSampleWeight)||0;if(C=d!==0)b:{C=c$9();if(C.length>0)for(W=0;W<C.length;W++)if(u===C[W]){C=!0;break b}C=!1}C?(d=y$n(D)%d!==
0,_.pN(l).debugTicksExcludedLogged||(C={},C.debugTicksExcluded=d,_.gd(C,l)),_.pN(l).debugTicksExcludedLogged=!0):d=!1}if(!d){u[0]!=="_"&&zsH(u,l,K);d=_.TA(l||"");d.tick[u]=K||(0,_.vA)();if(d.callback&&d.callback[u])for(d=_.y(d.callback[u]),C=d.next();!C.done;C=d.next())C=C.value,C();d=_.iI(l);d.gelTicks&&(d.gelTicks[u]=!0);C=_.WeH(l);d=K||(0,_.vA)();_.S("log_repeated_ytcsi_ticks")?u in C||(C[u]=d):C[u]=d;C=_.pN(l).cttAuthInfo;u==="_start"?OW9().baseline(D,K,C):OW9().tick(u,D,K,C);_.esn(l);return d}}};
zsH=function(u,K,l){if(_.wd.mark)if(u.startsWith("mark_")||(u="mark_"+u),K&&(u+=" ("+K+")"),l===void 0||_.S("web_csi_disable_alt_time_performance_mark"))_.wd.mark(u);else{l=_.S("csi_use_performance_navigation_timing")?l-_.wd.timeOrigin:l-(_.wd.timeOrigin||_.wd.timing.navigationStart);try{_.wd.mark(u,{startTime:l})}catch(D){}}};
RsL=function(){var u,K=(u=_.wd.getEntriesByType)==null?void 0:u.call(_.wd,"mark");K&&K.forEach(function(l){if(l.name.startsWith("mark_")){var D;(D=_.wd.clearMarks)==null||D.call(_.wd,l.name)}})};
_.ULy=function(){switch(t1r()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.fFw=function(u){var K={},l=function(C,W,M){W=W.match("_rid")?W.split("_rid")[0]:W;typeof M==="number"&&(M=JSON.stringify(M));C.requestIds?C.requestIds.push({endpoint:W,id:M}):C.requestIds=[{endpoint:W,id:M}]};
u=_.y(Object.entries(u));for(var D=u.next();!D.done;D=u.next()){var d=_.y(D.value);D=d.next().value;d=d.next().value;switch(D){case "GetBrowse_rid":l(K,D,d);break;case "GetGuide_rid":l(K,D,d);break;case "GetHome_rid":l(K,D,d);break;case "GetPlayer_rid":l(K,D,d);break;case "GetSearch_rid":l(K,D,d);break;case "GetSettings_rid":l(K,D,d);break;case "GetTrending_rid":l(K,D,d);break;case "GetWatchNext_rid":l(K,D,d);break;case "yt_red":K.isRedSubscriber=!!d;break;case "yt_ad":K.isMonetized=!!d}}return K};
P1L=function(u,K,l,D,d,C){if(!_.S("web_csi_action_sampling_enabled")||!_.pN(C).actionDisabled){var W=_.iI(C);if(W.gelSpans)W.gelSpans[u]=!0;else{var M={};W.gelSpans=(M[u]=!0,M)}Qoq++;u={spanName:u,spanLengthUsec:String(Math.round(K*1E3)),spanNonce:Qoq};D&&(u.spanInfo=D);d&&(u.parentSpanNonce=d);l&&(u.spanStartTimeUsec=String(Math.round(l*1E3)));_.TA(C||"").span[String(u.spanName)]=u;l=_.iI(C);l.gelSpans||(l.gelSpans={});_.EW(l.gelSpans,u);l=MYq(C);C=_.pN(C).cttAuthInfo;OW9().span(u,l,C);return u.spanNonce}};
_.J$r=function(u){var K=_.NB("aft",u);if(K)return K;K=_.E3((u||"")+"TIMING_AFT_KEYS",["ol"]);for(var l=K.length,D=0;D<l;D++){var d=_.NB(K[D],u);if(d)return d}return NaN};
_.joH=function(u,K){_.$L("ytglobal.timing"+(K||"")+"ready_",u)};
_.NB=function(u,K){if(u=_.WeH(K)[u])return typeof u==="number"?u:u[u.length-1]};
_.esn=function(u){var K=_.NB("_start",u),l=_.J$r(u),D=!BVr;K&&l&&D&&(YdZ(pSb,new iWb(Math.round(l-K),u)),BVr=!0)};
wSr=function(u){soh(u);TVq();RsL();u||(_.E3("TIMING_ACTION")&&_.h8("PREVIOUS_ACTION",_.E3("TIMING_ACTION")),_.h8("TIMING_ACTION",""))};
_.FeL=function(u){u=u===void 0?{}:u;_.KT(function(){ks();n1o();wSr();_.joH(!1);u.cttAuthInfo&&(_.pN().cttAuthInfo=u.cttAuthInfo);_.h8("TIMING_AFT_KEYS",[]);u.isHot?_.Zy({loadType:"hot"}):_.Zy({loadType:"warm"});_.h8("TIMING_ACTION","");delete _.E3("TIMING_INFO",{}).yt_lt;_.KT(_.bWo)(u.startTime,void 0)})()};
_.Ys=function(u,K,l,D){K=K===void 0?{}:K;_.KT(function(){var d=l?l:u;VYL(d);var C=K.sampleRate;if(!_.S("web_csi_action_sampling_enabled")||C===void 0||C<=1)C=!1;else{var W=MYq(d);C=y$n(W)%C!==0}C&&(_.pN(d).actionDisabled=!0);_.TA(d||"").info.actionType=u;K.cttAuthInfo&&(_.pN(d).cttAuthInfo=K.cttAuthInfo);_.h8(d+"TIMING_ACTION",u);_.KT(_.bWo)(K.startTime,d);C={actionType:D||_.v1b(u)};K.logPreviousAction&&(C.previousAction=_.v1b(_.E3("TIMING_ACTION")));(W=_.AC())&&W!=="UNDEFINED_CSN"&&(C.clientScreenNonce=
W);_.Zy(C,d);_.joH(!0,d)})()};
VYL=function(u){_.KT(function(){ks(u);n1o(u);wSr(u)})()};
g1H=function(){_.KT(function(){var u=[],K;for(K in _.lZ("ytcsi.".slice(0,-1)))K.endsWith("data_")&&u.push(K.slice(0,-5));u=_.y(u);for(K=u.next();!K.done;K=u.next())VYL(K.value);ks()})()};
_.kVq=function(u){return _.KT(function(){return _.NVH("_start",u)})()};
_.Zy=function(u,K,l){_.KT(_.gd)(u,K,l===void 0?!1:l)};
_.As=function(u,K,l){return _.KT(_.VQ)(u,K,l)};
_.NVH=function(u,K){return _.KT(function(){var l=_.WeH(K);return u in l})()};
YCZ=function(u){if(!_.S("universal_csi_network_ticks"))return"";u=_.RK(u)||"";for(var K=Object.keys(ZWb),l=0;l<K.length;l++){var D=K[l];if(u.includes(D))return D}return""};
XSq=function(u){if(!_.S("universal_csi_network_ticks"))return function(){};
var K=ZWb[u];return K?(_.Xi(K),function(){var l=_.S("universal_csi_network_ticks")?(l=A$w[u])?_.Xi(l):!1:!1;return l}):function(){}};
_.Xi=function(u,K,l){return _.KT(function(){if(_.NVH(u,l))return!1;_.As(u,K,l);return!0})()};
_.hs=function(u,K,l){_.KT(function(){if(!_.kVq(l)||_.NVH(u,l))return!1;_.As(u,K,l);return!0})()};
_.Ex=function(u){return _.KT(_.NB)(u,void 0)};
ks=function(u){_.kVq(u)&&_.As("aa",void 0,u)};
_.uMo=function(u,K,l,D,d,C,W,M,q){var v=mLy();M=new _.Z8({veType:K,youtubeData:C,jspbYoutubeData:M});C=LN({},v);d&&(C.cttAuthInfo=d);d={csn:v,pageVe:M.getAsJson()};_.S("expectation_logging")&&q&&q.screenCreatedLoggingExpectations&&(d.screenCreatedLoggingExpectations=q.screenCreatedLoggingExpectations);l&&l.visualElement?(d.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()},W&&(d.implicitGesture.gestureType=W)):l&&_.hV(new _.wv("newScreen() parent element does not have a VE - rootVe",
K));D&&(d.cloneCsn=D);u?kE("screenCreated",d,u,C):_.YE("screenCreated",d,C);YdZ(urn,new hsZ(v));uh.clear();E1n.clear();Ler.clear();return v};
Km=function(u,K,l,D,d,C){C=C===void 0?{}:C;KvL(u,K,l,[D],d===void 0?!1:d,C)};
KvL=function(u,K,l,D,d,C){d=d===void 0?!1:d;C=C===void 0?{}:C;Object.assign(C,LN({cttAuthInfo:XX(K)||void 0},K));for(var W=_.y(D),M=W.next();!M.done;M=W.next()){M=M.value;var q=M.getAsJson();(_.k$.isEmpty(q)||!q.trackingParams&&!q.veType)&&_.hV(Error("vf"));if(_.S("no_client_ve_attach_unless_shown")){var v=ljq(M,K);if(q.veType&&!E1n.has(v)&&!Ler.has(v)&&!d){if(!_.S("il_attach_cache_limit")||uh.size<1E3){uh.set(v,[u,K,l,M]);return}_.S("il_attach_cache_limit")&&uh.size>1E3&&_.hV(new _.wv("IL Attach cache exceeded limit"))}M=
ljq(l,K);uh.has(M)?DDo(l,K):Ler.set(M,!0)}}D=D.filter(function(G){G.csn!==K?(G.csn=K,G=!0):G=!1;return G});
l={csn:K,parentVe:l.getAsJson(),childVes:_.ZM(D,function(G){return G.getAsJson()})};
K==="UNDEFINED_CSN"?lh("visualElementAttached",C,l):u?kE("visualElementAttached",l,u,C):_.YE("visualElementAttached",l,C)};
C6r=function(u,K,l,D,d){dDh(u,K,l,d)};
dDh=function(u,K,l,D){IjH(l,K);var d=LN({cttAuthInfo:XX(K)||void 0},K);l={csn:K,ve:l.getAsJson(),eventType:1};D&&(l.clientData=D);K==="UNDEFINED_CSN"?lh("visualElementShown",d,l):u?kE("visualElementShown",l,u,d):_.YE("visualElementShown",l,d)};
yeH=function(u,K,l,D){IjH(l,K);var d=LN({cttAuthInfo:XX(K)||void 0},K);l={csn:K,ve:l.getAsJson(),eventType:4};D&&(l.clientData=D);K==="UNDEFINED_CSN"?lh("visualElementShown",d,l):u?kE("visualElementShown",l,u,d):_.YE("visualElementShown",l,d)};
sxq=function(u,K,l,D,d){var C=(D=D===void 0?!1:D)?16:8;D=LN({cttAuthInfo:XX(K)||void 0,endOfSequence:D},K);l={csn:K,ve:l.getAsJson(),eventType:C};d&&(l.clientData=d);K==="UNDEFINED_CSN"?lh("visualElementHidden",D,l):u?kE("visualElementHidden",l,u,D):_.YE("visualElementHidden",l,D)};
Wvq=function(u,K,l,D,d){oXq(u,K,l,void 0,D,d)};
oXq=function(u,K,l,D,d){IjH(l,K);D=D||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var C=LN({cttAuthInfo:XX(K)||void 0},K);l={csn:K,ve:l.getAsJson(),gestureType:D};d&&(l.clientData=d);K==="UNDEFINED_CSN"?lh("visualElementGestured",C,l):u?kE("visualElementGestured",l,u,C):_.YE("visualElementGestured",l,C)};
HkR=function(u,K,l,D){var d=LN({cttAuthInfo:XX(K)||void 0},K);l={csn:K,ve:l.getAsJson(),clientData:D};K==="UNDEFINED_CSN"?lh("visualElementStateChanged",d,l):u?kE("visualElementStateChanged",l,u,d):_.YE("visualElementStateChanged",l,d)};
MsR=function(){var u=E4h(16);for(var K=[],l=0;l<u.length;l++)K.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(u[l]&63));return K.join("")};
lh=function(u,K,l){qFw.push({payloadName:u,payload:l,jspbPayload:void 0,options:K});$DH||($DH=lvZ())};
LdL=function(u){if(qFw){for(var K=_.y(qFw),l=K.next();!l.done;l=K.next())l=l.value,l.payload&&(l.payload.csn=u.csn,_.YE(l.payloadName,l.payload,l.options));qFw.length=0}$DH=0};
ljq=function(u,K){return""+u.getAsJson().veType+u.getAsJson().veCounter+K};
IjH=function(u,K){if(_.S("no_client_ve_attach_unless_shown")){var l=ljq(u,K);E1n.set(l,!0);DDo(u,K)}};
DDo=function(u,K){u=ljq(u,K);uh.has(u)&&(K=uh.get(u)||[],Km(K[0],K[1],K[2],K[3],!0),uh.delete(u))};
LN=function(u,K){_.S("log_sequence_info_on_gel_web")&&(u.sequenceGroup=K);return u};
_.DJ=function(u,K,l){_.KT(Km)(void 0,u,K,l)};
_.dZ=function(u,K,l){_.KT(KvL)(void 0,u,K,l)};
_.Cm=function(u,K){_.KT(C6r)(void 0,u,K,void 0,void 0,void 0)};
_.If=function(u,K,l){_.KT(function(){_.yx(K,function(D){yeH(void 0,u,D,l)})})()};
_.yM=function(u,K,l,D){_.KT(function(){_.yx(K,function(d){sxq(void 0,u,d,l,D)})})()};
_.Wi=function(u,K,l){_.KT(Wvq)(void 0,u,K,l,void 0)};
_.Hi=function(u,K,l,D){_.KT(oXq)(void 0,u,K,l,D,void 0)};
_.MK=function(u,K,l){_.KT(HkR)(void 0,u,K,l,void 0)};
nXR=function(u,K){qK.set(u,K)};
reb=function(u){return $w?$w.enabledSpans?!!$w.enabledSpans[u]:!0:!1};
vXn=function(u){if(!$w)throw Error("yf");$w.processors.push(u)};
G7r=function(u,K){if(u){K=K===void 0?1:K;if(u&&(u.endTime=performance.now(),K&&(u.status=K),K=$w)){K=_.y(K.processors);for(var l=K.next();!l.done;l=K.next()){var D=void 0,d=void 0;(d=(D=l.value).onSpanEnd)==null||d.call(D,u)}}if(K=$w){if(u!==K.activeSpan)throw Error("zf");var C;K.activeSpan=(C=K.activeSpan)==null?void 0:C.parent}}};
tsq=function(u,K,l){var D;if((D=$w)&&reb(u)){var d=D.nextSpanId++,C=D.activeSpan;u={id:d,parent:C,name:u,attributes:K,traceId:C?C.traceId:d,sessionId:D.sessionId,startTime:performance.now(),status:0};if(D.activeSpan){var W;(W=D.activeSpan).children||(W.children=[]);D.activeSpan.children.push(u)}D=_.y(D.processors);for(W=D.next();!W.done;W=D.next())d=K=void 0,(d=(K=W.value).onSpanStart)==null||d.call(K,u);D=u}else D=void 0;u=$w;D=D&&u?u.activeSpan=D:void 0;if(!D)return l();try{var M=l(D);G7r(D);return M}catch(q){throw G7r(D,
2),q;}};
xDo=function(u,K){var l=Object.keys(u);u=new _.wv("[Command Handler] "+K,{filteredCommandNames:l,originalCommand:u});_.Xm(u)};
SFH=function(u,K){xDo(u,K+" was called but not set")};
bkH=function(u){return function(){return new u}};
nm=function(u){return function(){return _.GB().resolve(u)}};
Okr=function(u,K){var l=_.b(u,_.ly);if(l&&(l=K[l.signal]))return l();u=_.y(Object.keys(u));for(l=u.next();!l.done;l=u.next())if(l=l.value,K[l]&&(l=K[l]))return l()};
rZ=function(u,K,l,D){return{browseEndpoint:{browseId:u},commandMetadata:{webCommandMetadata:{url:K,rootVe:l,webPageType:D===void 0?"WEB_PAGE_TYPE_BROWSE":D}}}};
ceh=function(u,K,l){var D=K=K===void 0?0:K;l=l===void 0?0:l;var d=l-D;return _.vi(u,"PPSV",void 0,void 0,(d>600?0:d<60||l<=0||D/l>.9)?0:K)};
_.vi=function(u,K,l,D,d){var C="/watch?v="+u;u={videoId:u};K&&(u.playlistId=K,C+="&list="+K);D&&(C+="&pp="+D);d&&(u.startTimeSeconds=d,C+="&t="+d+"s");K={watchEndpoint:u,commandMetadata:{webCommandMetadata:{url:C,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};l&&(K.clickTrackingParams=l);D&&(_.b(K,_.oy).playerParams=D);return K};
ajq=function(u){return{browseEndpoint:{browseId:"VL"+u},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+u,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
zmq=function(u){if(u){var K;if(u){var l=(K=_.b(u.commandMetadata,_.nN))==null?void 0:K.url;K=!(!l||l==="/service_ajax")}else K=!1;if(K)return u;var D;if(u=(D=_.b(u,_.ey))==null?void 0:D.commands)for(D=_.y(u),u=D.next();!u.done;u=D.next())if(u=zmq(u.value))return u}};
_.GI=function(u){return{runs:[{text:u}]}};
emb=function(u,K){return u&&K?{runs:[{text:u,navigationEndpoint:K}]}:void 0};
tu=function(u){return u?_.GI(u):void 0};
_.xw=function(u){return u?{simpleText:u}:void 0};
_.SZ=function(u){var K=u.type;u=u.payload;K={type:K};u!==void 0&&(K.payload=u);return K};
Rmn=function(u,K,l){for(var D=Object.assign({},u),d=_.y(Object.keys(K)),C=d.next();!C.done;C=d.next()){C=C.value;var W=u[C],M=K[C];if(M===void 0)delete D[C];else if(W===void 0)D[C]=M;else if(Array.isArray(M)&&Array.isArray(W))D[C]=l?[].concat(_.Am(W),_.Am(M)):M;else if(!Array.isArray(M)&&_.Ks(M)&&!Array.isArray(W)&&_.Ks(W))D[C]=Rmn(W,M,l);else if(typeof M===typeof W)D[C]=M;else return K=new _.wv("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:C,originalValue:W,updateValue:M}),
_.Xm(K),u}return D};
Qxq=function(u){if(!u.length)return"";try{if(UDy)return UDy.decode(u);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(u)}catch(W){}for(var K=0,l=[],D=u.length;K<D;){for(var d=0;d<1024&&K<D;){var C=u[K++];if(C<128)fjq[d++]=C;else{if(C<224)C=(C&31)<<6|u[K++]&63;else if(C<240)C=(C&15)<<12|(u[K++]&63)<<6|u[K++]&63;else{if(d+1===1024){--K;break}C=(C&7)<<18|(u[K++]&63)<<12|(u[K++]&63)<<6|u[K++]&63;C-=65536;fjq[d++]=55296|C>>10;C=56320|C&1023}fjq[d++]=C}}C=String.fromCharCode.apply(String,
fjq);d<1024&&(C=C.substring(0,d));l.push(C)}return l.join("")};
JeH=function(u,K){var l;if((l=P6b)==null?0:l.encodeInto)return K=P6b.encodeInto(u,K),K.read<u.length?u.length*4:K.written;for(var D=l=0;D<u.length;D++){var d=u.charCodeAt(D);d<128?K[l++]=d:(d<2048?K[l++]=d>>6|192:((d&64512)===55296&&D+1<u.length&&(u.charCodeAt(D+1)&64512)===56320?(d=65536+((d&1023)<<10)+(u.charCodeAt(++D)&1023),K[l++]=d>>18|240,K[l++]=d>>12&63|128):K[l++]=d>>12|224,K[l++]=d>>6&63|128),K[l++]=d&63|128)}return l};
jxb=function(u,K,l){if(K&&l&&l.buffer===K.exports.memory.buffer){var D=K.realloc(l.byteOffset,u);if(D)return new Uint8Array(K.exports.memory.buffer,D,u)}u=K?new Uint8Array(K.exports.memory.buffer,K.malloc(u),u):new Uint8Array(u);l&&u.set(l);return u};
_.OV=function(u){u=new BCH(new pzq([_.Wa(decodeURIComponent(u))]));if(iko(u,2)){var K=bh(u);var l=u.pos;var D=u.arrayView;l=l===void 0?0:l;var d=K===void 0?-1:K;l=l===void 0?0:l;d=d===void 0?-1:d;if(D.totalLength&&d){d<0&&(d=D.totalLength-l);D.focus(l);if(!(l-D.arrayPos+d<=D.arrays[D.arrayIdx].length)){var C=D.arrayIdx,W=D.arrayPos;D.focus(l+d-1);W=new Uint8Array(D.arrayPos+D.arrays[D.arrayIdx].length-W);for(var M=0,q=C;q<=D.arrayIdx;q++)W.set(D.arrays[q],M),M+=D.arrays[q].length;D.arrays.splice(C,
D.arrayIdx-C+1,W);D.arrayIdx=0;D.arrayPos=0;D.focus(l)}C=D.arrays[D.arrayIdx];D=new DataView(C.buffer,C.byteOffset+l-D.arrayPos,d)}else D=new DataView(new ArrayBuffer(0));D=new Uint8Array(D.buffer,D.byteOffset,D.byteLength);u.pos+=K;K=D}else K=void 0;K=K?Qxq(K):void 0;u=iko(u,4)?bh(u):void 0;D=TCq[u];if(typeof D==="undefined")throw u=new _.wv("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:u}),_.Xm(u),u;return{entityTypeFieldNumber:u,entityType:D,entityId:K}};
_.zI=function(u,K,l){l=l===void 0?0:l;var D=new wzq;if(P6b)u=P6b.encode(u);else{var d=new Uint8Array(Math.ceil(u.length*1.2)),C=JeH(u,d);d.length<C&&(d=new Uint8Array(C),C=JeH(u,d));d.length>C&&(d=d.subarray(0,C));u=d}u!==void 0&&(ci(D,18),d=u.length,ci(D,d),af(D,d),D.buf.set(u,D.pos),D.pos+=d);u=FvL[K];if(typeof u==="undefined")throw l=new _.wv("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:K}),_.Xm(l),l;u!==void 0&&(ci(D,32),ci(D,u));ci(D,40);ci(D,1);K=new Uint8Array(D.buf.buffer,
D.buf.byteOffset,D.pos);return encodeURIComponent(_.Yp(K,l))};
VsR=function(u){u=u.key||u.id;if(!u)throw Error("Af");return u};
NC9=function(u,K){u=u===void 0?{}:u;return gXr(u,K)};
k7q=function(u,K,l,D){if(D===void 0)return D=Object.assign({},u[K]||{}),l=(delete D[l],D),D={},Object.assign({},u,(D[K]=l,D));var d={},C={};return Object.assign({},u,(C[K]=Object.assign({},u[K],(d[l]=D,d)),C))};
Zkh=function(u,K,l,D,d){var C=u[K];if(C==null||!C[l])return u;D=Rmn(C[l],D,d==="REPEATED_FIELDS_MERGE_OPTION_APPEND");d={};C={};return Object.assign({},u,(C[K]=Object.assign({},u[K],(d[l]=D,d)),C))};
_.eZ=function(u,K,l){return u[K]?u[K][l]||null:null};
Ae9=function(){if(YFr)return YFr();var u={};YFr=rl("PersistentEntityStoreDb",{objectStores:(u.EntityStore={addedAtVersion:1},u.EntityAssociationStore={addedAtVersion:2},u),shared:!1,upgrade:function(K,l){l(1)&&Ds(lP(K,"EntityStore",{keyPath:"key"}),"entityType","entityType");l(2)&&(K=lP(K,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Ds(K,"byParentEntityKey","parentEntityKey"),Ds(K,"byChildEntityKey","childEntityKey"))},
version:3});return YFr()};
Xzq=function(u){return _.sv(Ae9(),u)};
Rf=function(u){return window.Int32Array?new Int32Array(u):Array(u)};
hmb=function(u){return _.sv(mDq(),u)};
EXq=function(u){return new UV("WRONG_DATA_TYPE",{encoderVersion:u})};
Lvq=function(u){return u instanceof Error?new UV("UNKNOWN_ENCODE_ERROR",{originalMessage:u.message}):new UV("UNKNOWN_ENCODE_ERROR")};
uPq=function(u){return u instanceof Error?new UV("UNKNOWN_DECODE_ERROR",{originalMessage:u.message}):new UV("UNKNOWN_DECODE_ERROR")};
KDH=function(u,K){u=u instanceof UV?u:K(u);_.Xm(u);throw u;};
l3y=function(u){u=(new TextEncoder).encode(u).subarray(0,16);var K=new Uint8Array(16);K.set(u);return K};
dAq=function(u){var K=DAH[u];if(K)return K;_.hV(new _.wv("Entity model not found.",{entityType:u}))};
_.fm=function(){CEq||(CEq=I3q());return CEq};
I3q=function(){var u,K,l;return _.H(function(D){if(D.nextAddress==1)return _.Qg(D,2),D.yield(_.nU(),4);if(D.nextAddress!=2){u=D.yieldResult;if(!u||!_.TB()||typeof _.lL.BroadcastChannel==="undefined")return D.return();K=new yWq;return D.return(new QM(u,K))}l=_.iY(D);l instanceof Error&&_.Xm(l);return D.return()})};
_.Pi=function(u,K){var l;return _.H(function(D){if(D.nextAddress==1){l=u.mutations;if(!l||l.length<=0)return D.return();K&&K.dispatch(_.SZ({type:"ENTITY_LOADED",payload:l}));return D.yield(sPy(l),2)}l.length=0;_.TG(D)})};
sPy=function(u){var K;return _.H(function(l){return l.nextAddress==1?l.yield(_.fm(),2):(K=l.yieldResult)?l.yield(_.Ju(K,"readwrite",function(D){for(var d={},C=_.y(u),W=C.next(),M={};!W.done;M={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},W=C.next())M.mutation$jscomp$4=W.value,M.mutation$jscomp$4.entityKey&&ogy(M.mutation$jscomp$4)&&(M.mutationEntityType$jscomp$3=(0,_.k$.getAnyKey)(M.mutation$jscomp$4.payload),W=void 0,M.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(W=function(q){return function(){return _.WDR(D,
q.mutation$jscomp$4.payload[q.mutationEntityType$jscomp$3],q.mutationEntityType$jscomp$3)}}(M)),M.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(W=function(q){return function(){return HPh(D,q.mutation$jscomp$4.entityKey)}}(M)),M.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(W=function(q){return function(){return MhR(D,q.mutation$jscomp$4.entityKey,q.mutation$jscomp$4.payload[q.mutationEntityType$jscomp$3],q.mutationEntityType$jscomp$3)}}(M)),W&&(d[M.mutation$jscomp$4.entityKey]=
d[M.mutation$jscomp$4.entityKey]?d[M.mutation$jscomp$4.entityKey].then(W):W()));
return KU.all(Object.values(d))}),0):l.return()})};
ogy=function(u){var K;u=(K=u.options)==null?void 0:K.persistenceOption;return u==="ENTITY_PERSISTENCE_OPTION_PERSIST"||u==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
ngq=function(u,K){var l,D;_.H(function(d){if(d.nextAddress==1)return d.yield(_.fm(),2);if(d.nextAddress!=3)return(l=d.yieldResult)?d.yield(_.Ju(l,"readonly",function(C){var W={},M=Object.keys(K).map(function(q){var v=K[q]?[].concat(_.Am(K[q])):[];return qUL(C,q,v,W)});
return KU.all(M).then(function(){return W})}),3):d.return();
D=d.yieldResult;Object.keys(D).length>0&&u.dispatch($A9(D));_.TG(d)})};
qUL=function(u,K,l,D){return jZ(u,K,l).then(function(d){D[K]=rWb(l,d)})};
rWb=function(u,K){if(K.length!==u.length)throw Error("Df");return K.reduce(function(l,D,d){l[u[d]]=D;return l},{})};
thq=function(u){var K=u.filter(function(d){var C;return(d==null?void 0:(C=d.transferEntity)==null?void 0:C.transferState)==="TRANSFER_STATE_COMPLETE"}).length,l=u.filter(function(d){var C;
return(d==null?void 0:(C=d.transferEntity)==null?void 0:C.transferState)==="TRANSFER_STATE_FAILED"}).length,D=u.filter(function(d){var C;
return(d==null?void 0:(C=d.transferEntity)==null?void 0:C.transferState)&&vgZ.includes(d.transferEntity.transferState)});
if(!(K||D!=null&&D.length))return 0;K=_.G8q(D)+K;u=u.length-l;return u===0?0:Math.round(K*100/u)/100};
_.G8q=function(u){var K=[];K=K.concat.apply(K,_.Am(u.filter(function(C){return C.streamEntity}).map(function(C){var W=Object.assign({},C.streamEntity),M,q=(M=C.transferEntity)==null?void 0:M.transferState;
W.streamsProgress=W.streamsProgress||[];W.streamsProgress=W.streamsProgress.map(function(v){var G=Object.assign({},v);G.numBytesDownloaded=q==="TRANSFER_STATE_COMPLETE"?v.numTotalBytes:v.numBytesDownloaded;return G});
return W}).map(function(C){return C.streamsProgress})));
var l=u=0;K=_.y(K);for(var D=K.next();!D.done;D=K.next()){var d=D.value;D=Number(d.numBytesDownloaded);d=Number(d.numTotalBytes);l+=isNaN(D)?0:D;u+=isNaN(d)?0:d}return u===0?0:Math.round(l*100/u)/100};
xAH=function(u){if(!u||!u.expirationTimestamp||!u.action)return!1;var K=(0,_.vA)()/1E3;return Number(u.expirationTimestamp)>=K};
Bi=function(u){return u&&u.expirationTimestamp&&u.action?xAH(u)&&u.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.pm=function(u){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(u||"TRANSFER_STATE_UNKNOWN")};
SUR=function(u){var K=new wzq;if(u!==void 0){var l=Math.ceil(Math.log2(u.length*4+2)/7);l=l===void 0?2:l;ci(K,10);K.submessagePosStack.push(K.pos);K.submessagePosStack.push(l);K.pos+=l;af(K,u.length*1.2);l=JeH(u,K.buf.subarray(K.pos));K.pos+l>K.buf.length&&(af(K,l),l=JeH(u,K.buf.subarray(K.pos)));K.pos+=l;u=K.submessagePosStack.pop();l=K.submessagePosStack.pop();for(var D=K.pos-l-u;u--;){var d=u?128:0;K.view.setUint8(l++,D&127|d);D>>=7}}K=new Uint8Array(K.buf.buffer,K.buf.byteOffset,K.pos);return(new TextDecoder("utf-8")).decode(K)};
_.ih=function(u){var K=0;u=_.y(u);for(var l=u.next(),D={};!l.done;D={transferState$jscomp$3:void 0},l=u.next()){var d=l.value,C=void 0;l=(C=d.streamEntity)!=null?C:{};C=void 0;D.transferState$jscomp$3=(C=d.transferEntity)==null?void 0:C.transferState;C=d=void 0;((d=l)==null?0:(C=d.streamsProgress)==null?0:C.length)&&l.streamsProgress.forEach(function(W){return function(M){M=Number(W.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?M.numTotalBytes:M.numBytesDownloaded);isFinite(M)&&(K+=M)}}(D))}return K};
bPb=function(u){return u.some(function(K){var l;if(!(K==null?0:(l=K.transferEntity)==null?0:l.transferState)){var D;return!(K==null?0:(D=K.policyEntity)==null?0:D.action)||K.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return vgZ.includes(K.transferEntity.transferState)})};
OPy=function(u,K){if(!K)return!1;if(_.S("of_pb_en_po_ks"))return!0;var l;u=(l=_.eZ(u,"offlineVideoPolicy",_.zI(K,"offlineVideoPolicy")))!=null?l:void 0;return!!u&&Bi(u)};
_.a3Z=function(u){var K=["TRANSFER_STATE_COMPLETE"];K=K===void 0?cWn:K;return u.filter(function(l){var D,d;return K.includes((d=(D=l.transferEntity)==null?void 0:D.transferState)!=null?d:"TRANSFER_STATE_UNKNOWN")})};
zAy=function(u,K){if(K){var l,D=(l=_.eZ(u,"playbackData",_.zI(K,"playbackData")))!=null?l:null,d;l=(d=_.eZ(u,"transfer",_.zI(K,"transfer")))!=null?d:null;var C;d=(C=_.eZ(u,"offlineVideoStreams",_.zI(K,"offlineVideoStreams")))!=null?C:null;var W;u=(W=_.eZ(u,"offlineVideoPolicy",_.zI(K,"offlineVideoPolicy")))!=null?W:null;if(D||l||d||u)return{playbackDataEntity:D,transferEntity:l,streamEntity:d,policyEntity:u}}};
_.TI=function(u){var K=u.playbackData;if(!K)return[];var l=[];K=_.y(Object.keys(K));for(var D=K.next();!D.done;D=K.next()){var d=D.value;if(!eAo(u,_.OV(d).entityId)&&(D=zAy(u,_.OV(d).entityId))){var C=void 0,W=void 0;d=(W=Number((C=_.eZ(u,"playbackData",d))==null?void 0:C.streamDownloadTimestampSeconds))!=null?W:(0,_.vA)();l.push({entity:D,streamDownloadTimestamp:d})}}return l.sort(function(M,q){var v=M.streamDownloadTimestamp,G=q.streamDownloadTimestamp;return G===v?M.entity.streamEntity&&!q.entity.streamEntity?
1:-1:G-v}).map(function(M){return M.entity})};
RAb=function(u){return _.a3Z(_.TI(u))};
_.UAq=function(u){return _.TI(u).filter(function(K){var l;if(((l=K.policyEntity)==null?0:l.action)&&K.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var D;if((D=K.transferEntity)==null?0:D.transferState){var d;return vgZ.includes((d=K.transferEntity)==null?void 0:d.transferState)}return!0})};
eAo=function(u,K){var l;return((l=_.eZ(u,"downloadStatusEntity",_.zI(K,"downloadStatusEntity")))==null?void 0:l.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
f3Z=function(u){var K;if(u==null?0:(K=u.playbackDataEntity)==null?0:K.key)return _.OV(u.playbackDataEntity.key).entityId;var l;if(u==null?0:(l=u.transferEntity)==null?0:l.key)return _.OV(u.transferEntity.key).entityId;var D;if(u==null?0:(D=u.streamEntity)==null?0:D.key)return _.OV(u.streamEntity.key).entityId;var d;if(u==null?0:(d=u.policyEntity)==null?0:d.key)return _.OV(u.policyEntity.key).entityId};
PE9=function(u){var K=new Set,l;u=(l=u.mainDownloadsListEntity)==null?void 0:l[QPb];var D;if(!(u==null?0:(D=u.downloads)==null?0:D.length))return K;var d;u==null||(d=u.downloads)==null||d.forEach(function(C){(C==null?0:C.videoItem)&&K.add(C.videoItem)});
return K};
wZ=function(u,K){if(K){var l=_.eZ(u,"mainVideoEntity",_.zI(K,"mainVideoEntity")),D=_.eZ(u,"downloadStatusEntity",_.zI(K,"downloadStatusEntity")),d=_.eZ(u,"ytMainChannelEntity",_.zI(K,"ytMainChannelEntity")),C={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};u=zAy(u,K);D=(D==null?void 0:D.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.S("woffle_render_failed_download_state_ks")&&(D==null?void 0:D.downloadState)==="DOWNLOAD_STATE_FAILED";!u&&D&&(u=C);if(u&&l&&
d)return Object.assign({},{videoEntity:l,channelEntity:d},u)}};
jPR=function(u,K){return JWw(u,K)==="TRANSFER_STATE_COMPLETE"&&OPy(u,K)};
B0n=function(u,K){if(!K)return!1;var l;u=(l=_.eZ(u,"playbackData",_.zI(K,"playbackData")))!=null?l:void 0;return!!u&&!!u.playerResponseJson};
JWw=function(u,K){if(!K)return"TRANSFER_STATE_UNKNOWN";var l=_.eZ(u,"transfer",_.zI(K,"transfer"));if(l){var D;return(D=l.transferState)!=null?D:"TRANSFER_STATE_UNKNOWN"}l=_.eZ(u,"offlineOrchestrationActionWrapperEntity",_.zI(K,"offlineOrchestrationActionWrapperEntity"));u=_.eZ(u,"mainVideoEntity",_.zI(K,"mainVideoEntity"));return l||u?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
pdZ=function(u,K){if(!K)return"TRANSFER_STATE_UNKNOWN";if(u=_.eZ(u,"transfer",_.zI(K,"transfer"))){var l;return(l=u.transferState)!=null?l:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
iPb=function(u,K){return K&&(u=_.eZ(u,"videoPlaybackPositionEntity",_.zI(K,"videoPlaybackPositionEntity")),u==null?0:u.lastPlaybackPositionSeconds)?Number(u.lastPlaybackPositionSeconds):0};
wdH=function(u,K){return T0r(u).some(function(l){var D;return(l==null?void 0:(D=l.mainPlaylistEntity)==null?void 0:D.playlistId)===K})};
Vhr=function(u,K,l){var D=FDh(u,K);if(!D.length)return[];K=[];D=_.y(D);for(var d=D.next();!d.done;d=D.next()){d=d.value;var C=wZ(u,d);l&&JWw(u,d)!=="TRANSFER_STATE_COMPLETE"||C&&K.push(C)}return K};
FDh=function(u,K){if(!K)return[];var l=_.zI(K,"mainPlaylistEntity"),D;K=(D=u.mainPlaylistEntity)==null?void 0:D[l];D=[];if(K==null||!K.videos)return D;K=_.y(K.videos);for(l=K.next();!l.done;l=K.next()){l=l.value;var d=void 0,C=void 0,W=void 0,M=(d=u)==null?void 0:(C=d.mainPlaylistVideoEntity)==null?void 0:(W=C[l])==null?void 0:W.video;M&&(l=_.OV(M).entityId)&&D.push(l)}return D};
ggH=function(u,K){if(K){var l=_.eZ(u,"mainPlaylistEntity",_.zI(K,"mainPlaylistEntity")),D=_.eZ(u,"mainPlaylistDownloadStateEntity",_.zI(K,"mainPlaylistDownloadStateEntity"));u=_.eZ(u,"ytMainChannelEntity",_.zI(K,"ytMainChannelEntity"));if(D&&l)return Object.assign({},{mainPlaylistEntity:l,mainPlaylistDownloadStateEntity:D},!!u&&{channelEntity:u})}};
T0r=function(u){return N0b(u).sort(function(K,l){return l.addedTimestampMillis-K.addedTimestampMillis}).map(function(K){return K.downloadedPlaylistEntities})};
N0b=function(u){var K=u.mainPlaylistDownloadStateEntity,l=[];if(!K)return l;for(var D=_.y(Object.keys(K)),d=D.next();!d.done;d=D.next()){var C=d.value;d=ggH(u,_.OV(C).entityId);var W=void 0;C=Number((W=K[C])==null?void 0:W.addedTimestampMillis);W=isNaN(C)?(0,_.vA)():C;d!==void 0&&l.push({downloadedPlaylistEntities:d,addedTimestampMillis:W})}return l};
k8w=function(u){var K,l=(K=u.mainPlaylistVideoEntity)!=null?K:{};return new Set(T0r(u).reduce(function(D,d){D=D===void 0?[]:D;var C,W;d==null||(C=d.mainPlaylistEntity)==null||(W=C.videos)==null||W.forEach(function(M){var q;(M=(q=l[M])==null?void 0:q.video)&&D.push(M)});
return D},[]))};
ZPn=function(u){return"downloadedMusicPlaylistEntities"in u};
YUn=function(u){return"mainPlaylistEntity"in u&&"mainPlaylistDownloadStateEntity"in u};
AWq=function(u){return"videoEntity"in u&&"channelEntity"in u};
Xdy=function(u){var K=u.musicPlaylistDownloadMetadataEntity,l=[];if(!K)return l;for(var D=_.y(Object.keys(K)),d=D.next();!d.done;d=D.next()){d=d.value;a:{var C=u,W=_.OV(d).entityId;if(W){var M=_.eZ(C,"musicPlaylist",_.zI(W,"musicPlaylist"));C=_.eZ(C,"musicPlaylistDownloadMetadataEntity",_.zI(W,"musicPlaylistDownloadMetadataEntity"));if(M&&C){M={musicPlaylistEntity:M,musicPlaylistDownloadStateEntity:C};break a}}M=void 0}C=void 0;d=Number((C=K[d])==null?void 0:C.addedTimestampMillis);d=isNaN(d)?(0,_.vA)():
d;M!==void 0&&l.push({downloadedMusicPlaylistEntities:M,addedTimestampMillis:d})}return l};
mAb=function(u){var K=new Set;u=_.y(u);for(var l=u.next();!l.done;l=u.next())if(l=l.value,"musicPlaylistEntity"in l&&"musicPlaylistDownloadStateEntity"in l){l=_.y(l.musicPlaylistEntity.tracks);for(var D=l.next();!D.done;D=l.next())K.add(D.value)}return K};
hAw=function(u,K){if(K){var l=_.eZ(u,"musicTrack",_.zI(K,"musicTrack")),D=_.eZ(u,"musicArtist",_.zI(K,"musicArtist"))||{};if((u=zAy(u,K))&&l&&D)return Object.assign({},{musicTrackEntity:l,musicArtistEntity:D},u)}};
Egh=function(u){var K=u.musicTrackDownloadMetadataEntity,l=[];if(!K)return[];K=_.y(Object.keys(K));for(var D=K.next();!D.done;D=K.next()){var d=D.value;D=hAw(u,_.OV(d).entityId);var C=void 0;d=Number((C=_.eZ(u,"musicTrackDownloadMetadataEntity",d))==null?void 0:C.addedTimestampMillis);C=isNaN(d)?(0,_.vA)():d;D!==void 0&&l.push({downloadedMusicEntities:D,addedTimestampMillis:C})}return l};
KK9=function(u,K){if(!K)return[];if(Object.values(LDo).includes(K))return u1q(u,K);K=_.zI(K,"musicPlaylist");var l;u=(l=u.musicPlaylist)==null?void 0:l[K];l=[];if(u==null||!u.tracks)return l;u=_.y(u.tracks);for(K=u.next();!K.done;K=u.next())(K=_.OV(K.value).entityId)&&l.push(K);return l};
u1q=function(u,K){var l=new Set,D=Xdy(u).map(function(C){return C.downloadedMusicPlaylistEntities});
D=mAb(D);D=_.y(D);for(var d=D.next();!d.done;d=D.next())(d=_.OV(d.value).entityId)&&l.add(d);return lGZ(u).downloadedMusicEntities.filter(function(C){var W;if((W=C.musicTrackEntity)!=null&&W.videoId){C=C.musicTrackEntity;if(W=K==="PPOM"?!0:!l.has(C.videoId))b:switch(C=C.musicVideoType,K){case "PPSE":W=C==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:W=C!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}C=W}else C=!1;return C}).map(function(C){var W;
return(W=C.musicTrackEntity)==null?void 0:W.videoId})};
lGZ=function(u){var K=Egh(u).sort(function(l,D){return D.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return"downloadedMusicEntities"in l?l.downloadedMusicEntities:ZPn(l)?l.downloadedMusicPlaylistEntities:{}});
u=Xdy(u).sort(function(l,D){return D.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return"downloadedMusicEntities"in l?l.downloadedMusicEntities:ZPn(l)?l.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:K,downloadedMusicPlaylistEntities:u}};
dG9=function(u,K){K=_.E3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?KK9(u,K):FDh(u,K);if(!K.length)return"TRANSFER_STATE_UNKNOWN";K=K.map(function(l){return pdZ(u,l)});
return DGb(K)};
DGb=function(u){var K=new Set(u);if(K.has("TRANSFER_STATE_FAILED")&&K.size===1)return"TRANSFER_STATE_FAILED";K.delete("TRANSFER_STATE_FAILED");if(K.has("TRANSFER_STATE_UNKNOWN")&&K.size===1)return"TRANSFER_STATE_PRE_TRANSFER";K.delete("TRANSFER_STATE_UNKNOWN");if(K.has("TRANSFER_STATE_PRE_TRANSFER")&&K.size===1||K.size===0)return"TRANSFER_STATE_PRE_TRANSFER";u=K.has("TRANSFER_STATE_TRANSFERRING");K=K.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return u||K?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
F6=function(u){var K=u.mainVideoDownloadStateEntity,l=[];if(!K)return[];K=_.y(Object.keys(K));for(var D=K.next();!D.done;D=K.next()){var d=D.value;if(!eAo(u,_.OV(d).entityId)){D=wZ(u,_.OV(d).entityId);var C=void 0,W=void 0;d=(W=Number((C=_.eZ(u,"mainVideoDownloadStateEntity",d))==null?void 0:C.addedTimestampMillis))!=null?W:(0,_.vA)();D!==void 0&&l.push({downloadedVideoEntities:D,addedTimestampMillis:d})}}return l};
CFo=function(u){return F6(u).sort(function(K,l){return l.addedTimestampMillis-K.addedTimestampMillis}).map(function(K){return K.downloadedVideoEntities})};
_.yFo=function(u){var K=k8w(u),l=_.VM(u),D=PE9(u),d=F6(u).filter(function(W){var M,q;if((W==null?void 0:(M=W.downloadedVideoEntities)==null?void 0:(q=M.transferEntity)==null?void 0:q.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var v,G;W=W==null?void 0:(v=W.downloadedVideoEntities)==null?void 0:(G=v.videoEntity)==null?void 0:G.key;return _.S("kevlar_use_library_entity")?W&&(D.has(W)||l[W]):W&&!K.has(W)}),C=N0b(u).filter(function(W){return dG9(u,W.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Am(d),_.Am(C)).sort(function(W,M){return M.addedTimestampMillis-W.addedTimestampMillis}).map(function(W){return IGZ(W)})};
sDH=function(u,K){if(K&&OPy(u,K)){var l,D,d=(D=(l=_.eZ(u,"playbackData",_.zI(K,"playbackData")))!=null?l:void 0)==null?void 0:D.playerResponseJson;if(d){try{var C=JSON.parse(d);var W=_.eZ(u,"transfer",_.zI(K,"transfer")),M=iPb(u,K);M&&(C=Object.assign({},C,{playerConfig:Object.assign({},C.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+M*1E3}}})}));C.cotn=W==null?void 0:W.cotn}catch(q){}return C}}};
_.WKZ=function(u){var K,l,D;u=(D=(l=((K=u.downloadsPageViewConfigurationEntity)!=null?K:{})[_.gZ])==null?void 0:l.smartDownloadsOptInBannerVisibility)!=null?D:{};var d;return(d=_.b(u,oiL))!=null?d:{}};
_.VM=function(u){var K,l,D;u=(D=(l=((K=u.mainDownloadsListEntity)!=null?K:{})[_.Htr])==null?void 0:l.downloads)!=null?D:[];K={};l=_.y(u);for(D=l.next();!D.done;D=l.next())u=void 0,K[(u=D.value.videoItem)!=null?u:""]=!0;return K};
Mvb=function(u){var K=_.VM(u);if(Object.keys(K).length===0)return!1;var l=u.mainVideoEntity;if(!l)return!0;l=_.y(Object.keys(l));for(var D=l.next();!D.done;D=l.next()){D=D.value;var d=_.OV(D).entityId;if(K[D]&&!eAo(u,d))return!1}return!0};
_.NK=function(u){var K=_.VM(u);return F6(u).sort(function(l,D){return l.addedTimestampMillis-D.addedTimestampMillis}).map(function(l){return l.downloadedVideoEntities}).filter(function(l){var D;
return(l=l==null?void 0:(D=l.videoEntity)==null?void 0:D.key)&&!!K[l]})};
_.$GH=function(u){var K,l,D;u=(D=(l=((K=u.downloadsPageViewConfigurationEntity)!=null?K:{})[_.gZ])==null?void 0:l.downloadsUpsellBannerVisibility)!=null?D:{};var d;return(d=_.b(u,q7h))!=null?d:{}};
IGZ=function(u){return"downloadedVideoEntities"in u?u.downloadedVideoEntities:"downloadedPlaylistEntities"in u?u.downloadedPlaylistEntities:{}};
ni9=function(u){var K=_.VM(u),l=k8w(u),D=F6(u).filter(function(d){var C,W;return(d=d==null?void 0:(C=d.downloadedVideoEntities)==null?void 0:(W=C.videoEntity)==null?void 0:W.key)&&!K[d]&&!l.has(d)});
u=N0b(u);return[].concat(_.Am(D),_.Am(u)).sort(function(d,C){return C.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return IGZ(d)})};
_.kw=function(u){if(!_.S("kevlar_use_library_entity"))return ni9(u);var K=F6(u).filter(function(D){var d,C;if(d=D=D==null?void 0:(d=D.downloadedVideoEntities)==null?void 0:(C=d.videoEntity)==null?void 0:C.key){var W,M,q;d=((M=(W=u.mainDownloadsListEntity)==null?void 0:W[QPb])==null?0:(q=M.downloads)==null?0:q.length)?PE9(u).has(D):!1}return d}),l=N0b(u);
return[].concat(_.Am(K),_.Am(l)).sort(function(D,d){return d.addedTimestampMillis-D.addedTimestampMillis}).map(function(D){return IGZ(D)})};
rF9=function(u){var K=_.VM(u),l=k8w(u);return CFo(u).filter(function(D){var d;return(D=D==null?void 0:(d=D.videoEntity)==null?void 0:d.key)&&!K[D]&&!l.has(D)})};
viq=function(u){if(!_.S("kevlar_use_library_entity"))return rF9(u);var K=_.VM(u),l=PE9(u);return CFo(u).filter(function(D){var d;return(D=D==null?void 0:(d=D.videoEntity)==null?void 0:d.key)&&!K[D]&&l.has(D)})};
GEy=function(u,K){K=_.zI(K,"settingEntity");var l,D,d;return!!((d=(D=((l=u.settingEntity)!=null?l:{})[K])==null?void 0:D.settingOptionValue)!=null?d:{}).boolValue};
_.ZJ=function(u){var K=_.NK(u);if(bPb(K))return 0;var l=[];K=_.y(K);for(var D=K.next();!D.done;D=K.next()){D=D.value;var d=void 0,C=void 0;if((d=D)==null?0:(C=d.videoEntity)==null?0:C.key)d=_.OV(D.videoEntity.key).entityId,D=u,d=_.zI(d,"mainVideoDownloadStateEntity"),D=_.eZ(D,"mainVideoDownloadStateEntity",d),(D=Number(D==null?void 0:D.addedTimestampMillis))&&l.push(D)}return Math.max.apply(Math,_.Am(l))};
_.Yw=function(u){return u.ui.richGridMiniMode};
_.Au=function(u){return u.ui.richGridItemsPerRow};
_.tvH=function(u){return u.ui.richGridSlimItemsPerRow};
_.xGn=function(u){return u.ui.guideIsExpanded};
_.X6=function(u){return u.ui.miniplayerIsActive};
_.S7n=function(u){return u.ui.singleOptionSurveyIsActive};
_.mG=function(u){return u.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.btb=function(u){return u.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.Otw=function(u){return u.ui.inlinePreviewIsActive};
_.cFo=function(u){return u.ui.inlinePreviewIsEnabled};
_.aGH=function(u){return u.ui.miniplayerPlaybackState};
_.hu=function(u){return u.ui.isOnline};
_.z19=function(u){return u.ui.frostedGlassMode};
_.EV=function(u,K){return JWw(u.entities,K)};
_.Lm=function(u,K){return dG9(u.entities,K)};
e1R=function(u,K){var l;if(K){var D;u=(D=_.eZ(u.entities,"offlineVideoPolicy",_.zI(K,"offlineVideoPolicy")))==null?void 0:D.action}else u=void 0;return(l=u)!=null?l:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
R1o=function(u,K){var l;K?(u=_.eZ(u.entities,"offlineVideoPolicy",_.zI(K,"offlineVideoPolicy")),u=Number(u==null?void 0:u.expirationTimestamp)):u=void 0;return(l=u)!=null?l:0};
_.UGR=function(u){return _.TI(u.entities).length};
fGb=function(u,K){return wZ(u.entities,K)};
QDb=function(u,K){return ggH(u.entities,K)};
uv=function(u,K){return(u=wZ(u.entities,K))?_.G8q([u]):0};
_.PFq=function(u,K){var l=_.E3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(l){var D=u.entities;var d=KK9(D,K);if(d.length){var C=[];d=_.y(d);for(var W=d.next();!W.done;W=d.next())(W=hAw(D,W.value))&&C.push(W);D=C}else D=[]}else D=Vhr(u.entities,K);var M;if(l){var q=u.entities;K?(K=_.zI(K,"musicPlaylist"),q=(M=q.musicPlaylist)==null?void 0:M[K],M=q!=null&&q.tracks?q.tracks.length:0):M=0}else M=u.entities,K?(K=_.zI(K,"mainPlaylistEntity"),M=(q=M.mainPlaylistEntity)==null?void 0:q[K],M=M!=null&&M.videos?
M.videos.length:0):M=0;return D.length!==M?0:D?thq(D):0};
_.JFo=function(u){return u.download.isLeaderTab};
_.jDy=function(u,K,l){if(!K&&l){var D=u.entities;if(l){var d=SUR(l),C,W;K=(W=(C=_.eZ(D,"offlineabilityEntity",_.zI(d,"offlineabilityEntity")))==null?void 0:C.addToOfflineButtonState)!=null?W:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else K="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else C=u.entities,K?(W=SUR(K),K=(d=(D=_.eZ(C,"offlineabilityEntity",_.zI(W,"offlineabilityEntity")))==null?void 0:D.addToOfflineButtonState)!=null?d:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):K="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return K};
BzH=function(u,K){u=u.entities;if(K){K=SUR(K);var l,D;K=(D=(l=_.eZ(u,"offlineabilityEntity",_.zI(K,"offlineabilityEntity")))==null?void 0:l.addToOfflineButtonState)!=null?D:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else K="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return K};
_.p3q=function(u){var K=u.entities;u=_.hu(u);var l=GEy(K,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.S("kevlar_modern_downloads_page")&&l)var D=!1;else{var d,C;K=(C=(d=((D=K.downloadsPageViewConfigurationEntity)!=null?D:{})[_.gZ])==null?void 0:d.smartDownloadsOptInBannerVisibility)!=null?C:{};D=u?!!K.visibleWithConnection:!!K.visibleWithoutConnection}return D};
_.itL=function(u){return GEy(u.entities,"SMART_DOWNLOADS_ENABLED")};
_.Tzq=function(u){return Mvb(u.entities)};
w3w=function(u){return _.NK(u.entities).every(function(K){var l;return(K==null?void 0:(l=K.transferEntity)==null?void 0:l.transferState)&&!vgZ.includes(K.transferEntity.transferState)})};
_.FKR=function(u){var K,l,D,d=(D=(l=((K=u.entities.downloadsPageViewConfigurationEntity)!=null?K:{})[_.gZ])==null?void 0:l.downloadsUpsellBannerVisibility)!=null?D:{};return _.hu(u)?!!d.visibleWithConnection:!!d.visibleWithoutConnection};
_.Vv9=function(u,K){return eAo(u.entities,K)};
gi9=function(u,K){if(K){var l,D;u=(D=(l=_.eZ(u.entities,"downloadStatusEntity",_.zI(K,"downloadStatusEntity")))==null?void 0:l.downloadState)!=null?D:"DOWNLOAD_STATE_UNKNOWN"}else u="DOWNLOAD_STATE_UNKNOWN";return u};
Kc=function(u,K){return iPb(u.entities,K)};
Y7w=function(u){u=_.Nzq(u);var K=u.hours===void 0?0:u.hours,l=u.minutes===void 0?0:u.minutes,D=u.seconds===void 0?0:u.seconds,d=K>0;u=[];d&&(K=_.kEH(K),u.push(K));K=d;K=K===void 0?!1:K;l=(["af","be","lt"].includes(_.lv)||K)&&l<10?Zto().format(l):(new Intl.NumberFormat("en-u-nu-latn")).format(l);u.push(l);l=Zto().format(D);u.push(l);l=":";"da fi id si sr sr-Latn".split(" ").includes(_.lv)&&(l=".");return u.join(l)};
_.Nzq=function(u){var K=u.hours||0,l=u.minutes||0,D=u.seconds||0;K=D+l*60+K*3600+(u.days||0)*86400+(u.weeks||0)*604800+(u.months||0)*2629800+(u.years||0)*31557600;if(K<=0)return{hours:0,minutes:0,seconds:0};u=K;K=Math.floor(u/3600);u%=3600;l=Math.floor(u/60);D=Math.floor(u%60);return{hours:K,minutes:l,seconds:D}};
_.kEH=function(u){u=(new Intl.NumberFormat("en-u-nu-latn")).format(u);var K=["fr"],l="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(_.lv)?u.replace(",","\u00a0"):K.includes(_.lv)?u.replace(",","\u202f"):l.includes(_.lv)?u.replace(",","."):u};
Zto=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
AFo=function(u){try{return(new _.DU(5)).format(u)}catch(K){}};
de=function(u){return{thumbnailOverlayDownloadingRenderer:{state:u}}};
X3b=function(u){if(u=AFo(u))return{thumbnailOverlaySidePanelRenderer:{text:_.GI(u),icon:{iconType:"PLAYLISTS"}}}};
mGo=function(){var u=_.QQ("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.GI(u),icon:{iconType:"PLAY_ALL"}}}};
h1L=function(u){u=_.Cc(u,2);return _.lv!=="ru"&&_.lv!=="es_419"&&_.lv!=="es-419"&&_.lv!=="es"&&_.lv!=="es_US"&&_.lv!=="es-US"&&_.lv!=="fr"&&_.lv!=="pl"&&_.lv!=="it"&&_.lv!=="nl"&&_.lv!=="uk"&&_.lv!=="fr_CA"&&_.lv!=="fr-CA"||u===""?u:u[0].toLocaleUpperCase()+u.substring(1)};
LKr=function(u){return function(K){var l=u(),D=_.Cc(K,l.dateFormat);K=_.Cc(K,l.timeFormat);var d=Eio.DATETIMEFORMATS[l.joinerStyle];d=d.replace(/'(?!')/g,"");d=d.replace("{0}",K);d=d.replace("{1}",D);return l.capitalize(d)}};
u59=function(u){return u?typeof u.seconds==="string"&&(u.nanos===void 0||typeof u.nanos==="number"):!1};
KLo=function(u){return new Date(Number(u.seconds)*1E3+(u.nanos||0)*1E-6)};
_.Cc=function(u,K){if(typeof u.getTime==="function")u={date:u};else if(u59(u))u={date:KLo(u)};else if(typeof u59(u.timestamp)&&typeof u.i18nInternalSecondsEastOfUtc==="number")u={date:KLo(u.timestamp),timeZone:I7(-u.i18nInternalSecondsEastOfUtc/60)};else throw Error("Ef`"+JSON.stringify(u));var l=u;u=l.date;l=l.timeZone;K=lTn(K).format(u,l);_.lv==="zh-TW"&&(u=l?Number(lTn("H").format(u,l)):u.getHours(),K=u<5?K.replace("\u4e0a\u5348","\u51cc\u6668"):u<8?K.replace("\u4e0a\u5348","\u65e9\u4e0a"):u<12?
K.replace("\u4e0a\u5348","\u4e0a\u5348"):u<13?K.replace("\u4e0b\u5348","\u4e2d\u5348"):u<19?K.replace("\u4e0b\u5348","\u4e0b\u5348"):K.replace("\u4e0b\u5348","\u665a\u4e0a"));return K};
lTn=function(u){if(Dsn.has(u))return Dsn.get(u);var K=dsn(u);K=CXq(K);IT9!==!0&&(IT9=!0);yTy=!0;yTy=!1;K=new yR(K,Eio);Dsn.set(u,K);return K};
dsn=function(u){return(new yR(u,Eio)).patternParts_.map(function(K){return K.type===0?"'"+K.text+"'":K.text}).join("")};
CXq=function(u){return _.lv==="en"||_.lv==="es_US"||_.lv==="es-US"?u:u.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(K,l,D){return"H".repeat(l.length)+D})};
nxw=function(u,K){s8q||(_.sd=_.oxq,s8q=new WLq);var l=s8q;a:if(u=H7n(u),K=H7n(K||new Date),u>K)l=u.getTime()-K.getTime()>6048E5?_.Cc(u,1):M_Z(u);else{for(var D=0;qjq(u,12*(D+1))<K;)++D;if(D>0)l=l.format(-D,0);else{for(D=0;qjq(u,D+1)<K;)++D;if(D>0)l=l.format(-D,2);else{u=K.getTime()-u.getTime();K=_.y($sR);for(D=K.next();!D.done;D=K.next()){D=D.value;var d=D.unit,C=Math.floor(u/D.unitDuration);if(C>=(D.threshold===void 0?1:D.threshold)){l=l.format(-C,d);break a}}l=l.format(-0,7)}}}return l};
H7n=function(u){if(typeof u.getTime==="function")return u;if(u59(u))return KLo(u);throw Error("Ff`"+JSON.stringify(u));};
qjq=function(u,K){for(var l=0,D;;++l)if(D=new Date(u.getFullYear(),u.getMonth()+K,u.getDate()-l,u.getHours(),u.getMinutes(),u.getSeconds()),D.getMonth()===(u.getMonth()+K)%12)return D};
_.o7=function(u){return{runs:[{text:u}]}};
_.WI=function(u){if(u&&u.simpleText)return u.simpleText;var K="";if(u&&u.runs)for(var l=0;l<u.runs.length;l++)u.runs[l].text&&(K+=u.runs[l].text);return K};
vxL=function(u,K,l,D){return u.videoEntity&&!u.policyEntity&&l!=="DOWNLOAD_STATE_FAILED"?[de("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Bi(u.policyEntity)&&K!=="TRANSFER_STATE_FAILED"&&K!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?K==="TRANSFER_STATE_PAUSED_BY_USER"?[de("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.pm(K)?[de("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:u.videoEntity.lengthSeconds?rTn(u.videoEntity.lengthSeconds,D):[]:
[de("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
rTn=function(u,K){var l=[{thumbnailOverlayTimeStatusRenderer:{text:_.GI(Y7w({seconds:u})),style:"DEFAULT"}}];K&&(u=K<=0||u<=0?0:K>=u?100:Math.ceil(K*100/u),u>0&&l.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:u}}));return l};
Gtw=function(u,K,l,D,d){if(K==="TRANSFER_STATE_UNKNOWN"||!u)return{};if(_.pm(K)||K==="TRANSFER_STATE_PRE_TRANSFER")var C=[de("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var W,M;if(K==="TRANSFER_STATE_COMPLETE"&&((W=u.mainPlaylistEntity)==null?0:(M=W.videos)==null?0:M.length)){if(_.S("web_modern_collections_v2")){var q;var v=(C=u.mainPlaylistEntity)==null?void 0:(q=C.videos)==null?void 0:q.length;C=(C=AFo(v))?{thumbnailOverlayBottomPanelRenderer:{text:_.GI(C),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var G;C=X3b((v=u.mainPlaylistEntity)==null?void 0:(G=v.videos)==null?void 0:G.length)}var t;C=[mGo(),Object.assign({},(t=C)!=null?t:{})]}else C=[]}t=C;a:if(K==="TRANSFER_STATE_PRE_TRANSFER")l=tu(_.QQ("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(K==="TRANSFER_STATE_TRANSFER_IN_QUEUE")l=tu(_.QQ("WAITING_TO_DOWNLOAD"));else if(_.pm(K))l=Math.floor(l*100).toString(),l=tu(_.QQ("DOWNLOADING_PERCENT",{percent:l},"Downloading... "+l+"%"));else{if(D&&(_.S("playlist_is_offline_selector_killswitch")&&
(d=_.GB().resolve(_.ye).isNetworkAvailable()),d)){l=emb(_.QQ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),ajq(D));break a}l=void 0}K=K==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.QQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},t.length?{thumbnailOverlays:t}:{},l?{viewPlaylistText:l}:{viewPlaylistText:_.o7("")},K.length?{badges:K}:{})};
t_q=function(u,K,l,D,d,C){if(K==="TRANSFER_STATE_UNKNOWN"||!u)return{};if(D==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var W=vxL(u,K,D);if(u.videoEntity&&!u.policyEntity&&D!=="DOWNLOAD_STATE_FAILED"){var M=_.QQ("WAITING_TO_DOWNLOAD");if(M)return{shortViewCountText:_.o7(M),publishedTimeText:void 0,thumbnailOverlays:W}}if(!Bi(u.policyEntity)){C=u.policyEntity&&!xAH(u.policyEntity)?_.QQ("DOWNLOAD_EXPIRED",{},"Download expired"):
_.QQ("TRANSFER_FAILED",{},"Download failed");var q;if((q=u.policyEntity)==null?0:q.shortMessageForDisabledAction)C=u.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:tu(C),publishedTimeText:void 0,thumbnailOverlays:W}}if(K==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.o7(_.QQ("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:W};if(K==="TRANSFER_STATE_FAILED"||K==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.o7(_.QQ("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:W};if(K==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(q=_.QQ("WAITING_TO_DOWNLOAD"),D==="DOWNLOAD_STATE_PAUSED"&&(q=_.QQ("DOWNLOAD_PAUSED",{},"Download paused")),q))return{shortViewCountText:_.o7(q),publishedTimeText:void 0,thumbnailOverlays:W};if(_.pm(K))return u=Math.floor(l*100).toString(),{shortViewCountText:_.o7(_.QQ("DOWNLOADING_PERCENT",{percent:u},"Downloading... "+u+"%")),publishedTimeText:void 0,thumbnailOverlays:W};K=void 0;u.videoEntity.publishedTimestampMillis&&
(K=new Date,d&&(K=new Date(d)),K=tu(nxw(new Date(Number(u.videoEntity.publishedTimestampMillis)),K)));d=[];_.S("kevlar_woffle_badge_killswitch")||(d=[{metadataBadgeRenderer:{label:_.QQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var v;u=tu((v=u.videoEntity.localizedStrings)==null?void 0:v.viewCount);return Object.assign({},C?{shortViewCountText:void 0}:{shortViewCountText:u},C?{}:{publishedTimeText:K},{badges:d,thumbnailOverlays:W})};
Sjr=function(u,K){u=u===void 0?xsq:u;switch(K.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:K.payload.playlistId,inviteLinkURL:K.payload.inviteLinkUrl};default:return u}};
O7H=function(u,K){u=u===void 0?b7w:u;switch(K.type){case "SET_CURRENT_FORM_ID":return K=K.payload.formId,u.currentFormId===K?u:{currentFormId:K,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var l=K.payload;K=l.groupId;l=l.command;if(u.currentFormId){var D=Object.assign({},u.commandsMap);D[K]=l;u=Object.assign({},u,{commandsMap:D})}return u;case "RESET_COMMAND_MAP":return Object.assign({},u,{commandsMap:{}});default:return u}};
aTy=function(u,K){u=u===void 0?cTy:u;switch(K.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},u,{guideIsExpanded:K.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},u,{scrollAtTop:K.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},u,{guideIsVisibleButNotPersistent:K.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},u,{miniplayerIsActive:K.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},u,{singleOptionSurveyIsActive:K.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},u,{slimlineSurveyRatingSelectedIndex:K.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},u,{richGridMiniMode:K.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},u,{richGridItemsPerRow:K.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},u,{richGridSlimItemsPerRow:K.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},u,{richGridContainerWidth:K.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},u,{richGridStyle:K.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},u,{currentPageType:K.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},u,{inlinePreviewIsActive:K.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},u,{inlinePreviewIsEnabled:K.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},u,{darkModeIsEnabled:K.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
u,{miniplayerPlaybackState:K.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},u,{tabGesturesIsActive:K.payload});case "SET_ONLINE_STATUS":return Object.assign({},u,{isOnline:K.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},u,{chipBarIsSticky:K.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},u,{frostedGlassMode:K.payload});default:return u}};
e2L=function(u,K){u=u===void 0?z2q:u;switch(K.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},u,{transcription:K.payload});case "SET_OVERLAY_STATE":return Object.assign({},u,{overlay:K.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return u}};
i7R=function(){return UW(Object.assign({},{continuation:R2Z,entities:NC9,download:Usb,reportChannelAbuse:fT9,share:Q8L,talkToRecs:PXZ,ui:aTy,voiceSearch:e2L,watch:JTL,ypc:j8y,shorts:BwR,radioButtonGroup:O7H,collabInviteLink:Sjr},per))};
vKh=function(){return _.S("web_player_entities_middleware")?new HI(i7R(),[Tww,wer]):new HI(i7R(),[Tww])};
_.Mu=function(){GFR||(GFR=vKh());return GFR};
tKq=function(u,K,l){if(u.length)return{titleText:_.GI(K!=null?K:_.QQ("DOWNLOADS",void 0,"Downloads")),contents:u.map(function(D){var d=D.videoEntity;D={videoId:d.videoId,title:tu(d.title),shortBylineText:tu(D.channelEntity.title),thumbnail:d.thumbnail};var C=d.videoId?Kc(_.Mu().getState(),d.videoId):0;d.videoId&&l?D.navigationEndpoint=_.vi(d.videoId,l,void 0,void 0,C):d.videoId&&(D.navigationEndpoint=ceh(d.videoId,C,d.lengthSeconds));d.lengthSeconds&&(D.thumbnailOverlays=rTn(d.lengthSeconds,C));return{playlistPanelVideoRenderer:D}}),
totalVideos:u.length}};
x6Z=function(u){return(u=(0,_.k$.getValueByKeys)(u,"playlistId"))?{playlistId:u}:null};
S$q=function(){return{}};
boq=function(u,K){return new _.RL(function(l,D){u.then(function(d){if(d){if(d=K(d))return l(d);D()}},D)})};
OoR=function(u){var K,l,D,d=(K=u.contents)==null?void 0:(l=K.twoColumnWatchNextResults)==null?void 0:(D=l.autoplay)==null?void 0:D.autoplay,C,W,M;K=(C=u.contents)==null?void 0:(W=C.twoColumnWatchNextResults)==null?void 0:(M=W.playlist)==null?void 0:M.playlist;return d&&K&&K.playlistId?{rawResponse:u,autoplayRenderer:d,playlistPanelRenderer:K,playlistId:K.playlistId}:null};
alL=function(u){var K=K===void 0?"UNKNOWN_INTERFACE":K;if(u.length===1)return u[0];var l=cQq[K];if(l){l=new RegExp(l);for(var D=_.y(u),d=D.next();!d.done;d=D.next())if(d=d.value,l.exec(d))return d}var C=[];Object.entries(cQq).forEach(function(W){var M=_.y(W);W=M.next().value;M=M.next().value;K!==W&&C.push(M)});
l=new RegExp(C.join("|"));u.sort(function(W,M){return W.length-M.length});
D=_.y(u);for(d=D.next();!d.done;d=D.next())if(d=d.value,!l.exec(d))return d;return u[0]};
_.qu=function(u){return"/youtubei/v1/"+alL(u)};
_.nc=function(u){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:u}}}}};
_.re=function(u){return _.nc(_.o7(u))};
zDo=function(u,K){var l={mode:"NORMAL"};u&&(l.autoplayVideo=u.navigationEndpoint,l.nextButtonVideo=u.navigationEndpoint);K&&(l.previousButtonVideo=K.navigationEndpoint);return l};
U6R=function(u,K,l){if(!l||!l.sets)return{sets:[zDo(u,K)]};var D=l.sets.find(function(W){return W.mode==="NORMAL"}),d=(0,_.k$.unsafeClone)(l);
if(!D)return d.sets.push(zDo(u,K)),d;if(!u)return l;D=_.k$.getValueByKeys.apply(null,[D].concat(_.Am(eDh)));var C=_.k$.getValueByKeys.apply(null,[u].concat(_.Am(RDn)));if(D===C)return l;d.sets=d.sets.filter(function(W){return W.mode!=="NORMAL"});
d.sets.push(zDo(u,K));return d};
fln=function(u){return!!u.playlistPanelVideoRenderer&&!u.playlistPanelVideoRenderer.unplayableText};
Qun=function(u){return!!u.playlistPanelVideoRenderer&&!!u.playlistPanelVideoRenderer.title};
Pfy=function(u,K){if(K.contents&&!(u>=K.contents.length)&&(u=K.contents.slice(u).find(fln)))return u.playlistPanelVideoRenderer};
JQH=function(u,K){if(K.contents)return(K=K.contents.find(function(l){return!!l.playlistPanelVideoRenderer&&l.playlistPanelVideoRenderer.videoId===u}))?K.playlistPanelVideoRenderer:void 0};
jub=function(u,K){return K.contents?K.contents.findIndex(function(l){return!!l.playlistPanelVideoRenderer&&l.playlistPanelVideoRenderer.videoId===u}):-1};
Bhq=function(u,K){return K.contents?K.contents.findIndex(function(l){return!!l.playlistPanelVideoRenderer&&l.playlistPanelVideoRenderer.playlistSetVideoId===u}):-1};
p2n=function(u,K){u.contents&&K!==-1&&u.contents.splice(K,1).length===1&&u.totalVideos!==void 0&&(--u.totalVideos,delete u.videoCountText)};
_.ioq=function(u){var K=[];if(!u||!u.contents)return K;u=_.y(u.contents);for(var l=u.next();!l.done;l=u.next())l=l.value,l.playlistPanelVideoRenderer&&l.playlistPanelVideoRenderer.videoId&&K.push(l.playlistPanelVideoRenderer.videoId);return K};
_.ThH=function(u){if(u&&u.contents)return(u=u.contents.find(function(K){return!!K.playlistPanelVideoRenderer&&!!K.playlistPanelVideoRenderer.selected})||u.contents[u.currentIndex])?u.playlistPanelVideoRenderer:void 0};
w2y=function(u,K,l,D,d,C,W){d=d===void 0?!1:d;C=C===void 0?!1:C;W=W===void 0?!1:W;if(u.contents&&u.contents.length!==0){D&&(u.contents=u.contents.filter(D));D=u.contents.length;for(var M=0;M<D;M++){var q=u.contents[M].playlistPanelVideoRenderer;q&&(M===K?(C&&delete q.menu,q.indexText=_.o7("\u25b6")):d||u.isInfinite||q.indexText===void 0?delete q.indexText:q.indexText=_.o7((M+1+l).toString()))}u.currentIndex=K+l;W&&(delete u.videoCountText,u.totalVideos=D)}};
_.vI=function(u){u=FHZ(u);if(u){var K=u.length;var l=-46%K;l<0&&(l=K+l);u=u.slice(K-l)+u.slice(0,K-l)}else u="";l="";for(K=0;K<u.length&&u[K]!==VKq;K++)l+=u[K];return l};
_.gK9=function(u,K){var l=document.body;K=K===void 0?function(M){return M}:K;
var D,d=null;u=_.y(u);for(D=u.next();!D.done;D=u.next()){var C=D.value;D="div";C[2]&&(D=K(C[2]));D=document.createElement(D);d||(d=D);var W=C[0];C=C[1];W&&(D.id=K(W));if(C)for(C=_.y(C),W=C.next();!W.done;W=C.next())D.classList.add(K(W.value));l.appendChild(D);l=D}return[d,l]};
NhH=function(u,K){for(var l="",D=0;D<K;D++)l+=u.charAt(Math.floor(Math.random()*u.length));return l};
GO=function(u){return NhH("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",u)};
t_=function(u){return NhH("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",u)};
xO=function(u){return NhH("0123456789",u)};
St=function(){var u=performance.now(),K=new Date;var l="2."+K.getFullYear()+String(K.getMonth()+1).padStart(2,"0")+String(K.getDate()).padStart(2,"0");for(var D,d=Math.floor(Math.random()*11)+15,C=[],W=0;W<d;W++)C.push(Math.floor(Math.random()*26476865)+24547720);D=C.join(",");var M=GO(10),q=GO(100),v=GO(102),G=GO(106),t=GO(108),x=GO(11),O=GO(1140),a=GO(123),f=GO(14),B=GO(16),p=GO(1900),V=GO(23),m=GO(26),Z=GO(34),A=GO(397),h=GO(44),C9=GO(5),Wo=GO(72),$y=GO(74),co=GO(75),UZ=GO(88),tH=GO(91),gq="rr2---sn-q4flrnle rr3---sn-aigl6nl7 rr3---sn-ntq7yner rr1---sn-q4fl6n6d rr1---sn-aigzrnld rr1---sn-q4flrnl6 rr3---sn-q4fzenee rr2---sn-q4fzen7e rr2---sn-4g5lznez rr5---sn-q4fl6nd7 rr5---sn-q4flrnsl rr3---sn-q4flrnez rr1---sn-t0a7lnee rr1---sn-q4fl6nz6 rr3---sn-q4fl6n6d rr1---sn-5hne6nzk rr5---sn-q4fl6nz6 rr4---sn-5hneknee rr1---sn-q4fzene7 rr2---sn-q4fl6nz7".split(" ");
var Bo=gq[Math.floor(Math.random()*gq.length)];var uk=(new Date("2010-01-01")).getTime();var ca=(new Date(uk+Math.random()*((new Date).getTime()-uk))).toISOString().split("T")[0];for(var Ha,hH=[],tR=0;tR<4;tR++)hH.push(Math.floor(Math.random()*100));Ha=hH.join(".");var ns=Number(xO(5)),Pa=Number(xO(6)),QV=Number(xO(7)),Ls=Number(xO(9)),yn=xO(1),dN=xO(10),OB=xO(16),vE=xO(19),Gw=xO(2),Vm=xO(20),DI=xO(21),uG=xO(3),oC=xO(4),ma=xO(5),$p=xO(6),aC=xO(7),RC=xO(8),tE=xO(9);var HZ=NhH("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var HE=[t_(5),t_(5),t_(5)].join("%2C"),aO=[xO(3),xO(5),xO(5)].join("%2C"),mf=t_(0),AR=t_(1),PE=t_(10),Dk=t_(108),hE=t_(11),CU=t_(12),Y$=t_(13),J9=t_(14),Jg=t_(15),Jm=t_(16),JV=t_(17),aR=t_(18),Th=t_(19),ky=t_(2),x0=t_(20),WE=t_(22),Pr=t_(23),xp=t_(24),S2=t_(266),va=t_(3),R2=t_(30),Gg=t_(34),MS=t_(35),O2=t_(36),dv=t_(4),pM=t_(40),zj=t_(43),LU=t_(47),XY=t_(5),ZH=t_(6),I2=t_(7),Np=t_(75),db=t_(8),M0=t_(80),AO=t_(9),tX="https://www."+t_(12)+".com",Mn={},m1={},us={},JXb={},KK={},mP={},hx={responseContext:{serviceTrackingParams:[{service:"GFEEDBACK",
params:[{key:"ipcc",value:"0"},{key:"is_viewed_live",value:"False"},{key:"is_alc_surface",value:"false"},{key:"premium_membership",value:"non_member"},{key:"has_unlimited_entitlement",value:"False"},{key:"has_alc_entitlement",value:"false"},{key:"logged_in",value:"1"},{key:"e",value:D}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:l},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+t_(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:l},{key:"client.name",value:"WEB"},{key:"client.fexp",value:D}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:DI+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+t_(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:pM,ypcGetOfflineUpsellEndpoint:{params:M0}},trackingParams:MS+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fmp4&ns="+xp+"&cnr="+Gw+"&ratebypass=yes&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&c=WEB&txp="+aC+"&n="+B+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Pa,width:640,height:360,lastModified:OB,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:aC,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+aO+"&mn="+
HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fmp4&ns="+xp+"&cnr="+Gw+"&ratebypass=yes&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&c=WEB&txp="+aC+"&n="+B+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Dk+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Pa,width:1280,
height:720,lastModified:OB,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:aC,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+aO+"&mn="+HE+"&ms="+
HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fmp4&ns="+xp+"&gir="+va+"&clen="+tE+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:QV,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:tE,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:QV,approxDurationMs:aC},{itag:248,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+aO+"&mn="+HE+"&ms="+HE+"&mv="+
AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fwebm&ns="+xp+"&gir="+va+"&clen="+tE+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:QV,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:tE,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:QV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:aC},{itag:399,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+
aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fmp4&ns="+xp+"&gir="+va+"&clen="+tE+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:QV,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:tE,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:QV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:aC},{itag:136,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+
aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fmp4&ns="+xp+"&gir="+va+"&clen="+tE+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:QV,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:tE,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Pa,approxDurationMs:aC},{itag:247,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+aO+"&mn="+
HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fwebm&ns="+xp+"&gir="+va+"&clen="+tE+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:QV,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:tE,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Pa,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:aC},{itag:398,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+
aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fmp4&ns="+xp+"&gir="+va+"&clen="+tE+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:QV,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:tE,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Pa,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:aC},{itag:135,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+
aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fmp4&ns="+xp+"&gir="+va+"&clen="+RC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Pa,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:RC,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Pa,approxDurationMs:aC},{itag:244,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+aO+"&mn="+
HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fwebm&ns="+xp+"&gir="+va+"&clen="+RC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Dk+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:Pa,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:RC,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Pa,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:aC},{itag:397,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+
aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fmp4&ns="+xp+"&gir="+va+"&clen="+RC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Pa,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:RC,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Pa,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:aC},{itag:134,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+
aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fmp4&ns="+xp+"&gir="+va+"&clen="+RC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Pa,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:RC,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Pa,highReplication:!0,approxDurationMs:aC},{itag:243,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+
aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fwebm&ns="+xp+"&gir="+va+"&clen="+RC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:Pa,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:RC,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Pa,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:aC},{itag:396,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+
aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fmp4&ns="+xp+"&gir="+va+"&clen="+RC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Pa,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:RC,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Pa,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:aC},{itag:133,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+
aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fmp4&ns="+xp+"&gir="+va+"&clen="+RC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Pa,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:RC,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Pa,approxDurationMs:aC},{itag:242,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+aO+"&mn="+
HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fwebm&ns="+xp+"&gir="+va+"&clen="+RC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:Pa,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:RC,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Pa,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:aC},{itag:395,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+
aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fmp4&ns="+xp+"&gir="+va+"&clen="+RC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Pa,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:RC,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Pa,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:aC},{itag:160,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+
aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fmp4&ns="+xp+"&gir="+va+"&clen="+RC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Pa,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:RC,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ns,approxDurationMs:aC},{itag:278,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+aO+"&mn="+
HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fwebm&ns="+xp+"&gir="+va+"&clen="+RC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:Pa,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:RC,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ns,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:aC},{itag:394,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&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="+
aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=video%2Fmp4&ns="+xp+"&gir="+va+"&clen="+RC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:ns,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:RC,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ns,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:aC},{itag:140,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=audio%2Fmp4&ns="+xp+"&gir="+va+"&clen="+RC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Pa,
initRange:{start:"0",end:"631"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:RC,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Pa,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:aC,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+
Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=audio%2Fwebm&ns="+xp+"&gir="+va+"&clen="+aC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/webm; codecs="opus"',bitrate:ns,initRange:{start:"0",end:"265"},indexRange:{start:uG,
end:oC},lastModified:OB,contentLength:aC,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ns,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:aC,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=audio%2Fwebm&ns="+
xp+"&gir="+va+"&clen="+aC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/webm; codecs="opus"',bitrate:ns,initRange:{start:"0",end:"265"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:aC,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ns,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:aC,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Bo+".googlevideo.com/videoplayback?expire="+dN+"&ei="+V+"&ip="+Ha+"&id=o-AF"+zj+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+aO+"&mn="+HE+"&ms="+HE+"&mv="+AR+"&mvi="+yn+"&pl="+Gw+"&initcwndbps="+aC+"&siu="+yn+"&spc="+h+"&vprv="+yn+"&svpuc="+yn+"&mime=audio%2Fwebm&ns="+xp+"&gir="+va+"&clen="+RC+"&dur="+RC+"&lmt="+OB+"&mt="+dN+"&fvip=3&keepalive="+va+"&c=WEB&txp="+
aC+"&n="+Jm+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/webm; codecs="opus"',bitrate:Pa,initRange:{start:"0",end:"265"},indexRange:{start:uG,end:oC},lastModified:OB,contentLength:RC,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Pa,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:aC,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="+tE+"&docid="+x+"&ei="+V+"&feature="+M+"&fexp="+mf+"&ns="+ky+"&plid="+B+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+AR+"&el="+PE+"&len="+oC+"&of="+WE+
"&uga="+Gw+"&vm="+S2},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+tE+"&docid="+x+"&ei="+V+"&feature="+M+"&fexp="+mf+"&ns="+ky+"&plid="+B+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+AR+"&el="+PE+"&len="+oC+"&of="+WE+"&uga="+Gw+"&vm="+S2},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+tE+"&docid="+x+"&ei="+V+"&feature="+M+"&fexp="+mf+"&ns="+ky+"&plid="+B+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
AR+"&el="+PE+"&len="+oC+"&of="+WE+"&uga="+Gw+"&vm="+S2},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+V+"&m="+UZ+"&oid="+WE+"&plid="+B+"&pltype="+I2+"&ptchn="+WE+"&ptk="+f+"&video_id="+x},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+tE+"&docid="+x+"&ei="+V+"&event="+J9+"&feature="+M+"&fexp="+mf+"&ns="+ky+"&plid="+B+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+AR},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+x+"&ei="+V+"&feature="+
M+"&len="+oC+"&ns="+ky+"&plid="+B+"&ver="+yn,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+x+"&caps="+va+"&opi="+tE+"&xoaf="+yn+"&hl="+ky+"&ip="+Ha+"&ipbits="+yn+"&expire="+dN+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Ha+"&key="+va+"&lang="+C9,name:{simpleText:I2},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+x+"&caps="+va+"&opi="+tE+"&xoaf="+yn+"&hl="+ky+"&ip="+Ha+"&ipbits="+yn+"&expire="+dN+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Ha+"&key="+va+"&kind="+va+"&lang="+ky,name:{simpleText:JV},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:hE,title:Jg,lengthSeconds:"1155",keywords:[hE,hE,dv,I2],
channelId:xp,isOwnerViewing:!1,shortDescription:ZH,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+O2+"G&rs="+Gg,width:168,height:94},{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+O2+"G&rs="+Gg,width:196,height:110},{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+O2+"G&rs="+Z,width:246,height:138},{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+O2+"G&rs="+Z,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
x+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:aC,author:Y$,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:aC,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+WE+"/featured_channel.jpg?v="+db,width:40,height:40}]},trackingParams:MS+"=",navigationEndpoint:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{url:"/channel/"+xp,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:xp}},channelName:Y$,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:J9}]},subscribed:!1,enabled:!0,type:"FREE",channelId:xp,showPreferences:!1,subscribedButtonText:{runs:[{text:AO}]},unsubscribedButtonText:{runs:[{text:Th}]},trackingParams:MS+"=",unsubscribeButtonText:{runs:[{text:x0}]},serviceEndpoints:[{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[xp],params:db}},{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:pM,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:MS+"=",dialogMessages:[{runs:[{text:JV},{text:Jm},{text:J9}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Jg}]},serviceEndpoint:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[xp],params:db}},accessibility:{label:PE},trackingParams:MS+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:JV}]},accessibility:{label:Jg},trackingParams:MS+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:aR}},unsubscribeAccessibility:{accessibilityData:{label:x0}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:RC},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[xp],params:db}},unsubscribeCommand:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[xp],params:db}},addToWatchLaterCommand:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:hE,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:hE}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+x+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+O2+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
x+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+hE,width:1280,height:720},title:{simpleText:hE},description:{simpleText:XY},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+AO,externalChannelId:xp,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:aC,category:"Travel & Events",publishDate:ca,ownerChannelName:Y$,uploadDate:ca}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:hE},trackingParams:MS+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:pM,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:MS+"="}}],headerText:{simpleText:dv},icon:{infoCardIconRenderer:{trackingParams:MS+"="}},closeButton:{infoCardIconRenderer:{trackingParams:MS+"="}},trackingParams:MS+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:MS+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+hE+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:HZ,interpreterSafeUrl:(Mn.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+R2+".js",Mn),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:JV},{text:hE,bold:!0}]},endpoint:{clickTrackingParams:pM,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:MS+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:XY}]},actionButton:{buttonRenderer:{text:{runs:[{text:I2}]},navigationEndpoint:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+x,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
x,target:"TARGET_NEW_WINDOW"}},trackingParams:MS+"="}},trackingParams:MS+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Wo+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Wo+"=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:aC,endMs:aC,title:{accessibility:{accessibilityData:{label:JV}},simpleText:Y$},metadata:{simpleText:PE},callToAction:{simpleText:aR},dismiss:{simpleText:Jm},endpoint:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{url:"/channel/"+xp,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:xp}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:hE}]},subscribed:!1,enabled:!0,type:"FREE",channelId:xp,showPreferences:!1,
subscribedButtonText:{runs:[{text:dv}]},unsubscribedButtonText:{runs:[{text:x0}]},trackingParams:MS+"=",unsubscribeButtonText:{runs:[{text:CU}]},serviceEndpoints:[{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[xp],params:db}},{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:pM,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:MS+
"=",dialogMessages:[{runs:[{text:ZH},{text:Jg},{text:JV}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:CU}]},serviceEndpoint:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[xp],params:db}},accessibility:{label:XY},trackingParams:MS+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:J9}]},
accessibility:{label:x0},trackingParams:MS+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:JV}},unsubscribeAccessibility:{accessibilityData:{label:Jm}}}},trackingParams:MS+"=",isSubscribe:!0,id:Vm}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+O2+"G&rs="+Z,width:168,height:94},{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+O2+"G&rs="+Gg,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+O2+"G&rs="+Z,width:246,height:138},{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+O2+"G&rs="+Z,width:336,height:188},{url:"https://i.ytimg.com/vi/"+x+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:aC,endMs:aC,title:{accessibility:{accessibilityData:{label:hE}},simpleText:x0},metadata:{simpleText:Jm},endpoint:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
hE,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:hE,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Bo+".googlevideo.com/videoplayback?source=youtube&oeis="+yn+"&c=WEB&oad="+oC+"&ovd="+oC+"&oaad="+ma+"&oavd="+ma+"&ocs="+uG+"&oewis="+yn+"&oputc="+yn+"&ofpcc="+yn+"&siu="+yn+"&msp="+yn+"&odepv="+yn+
"&id=o-AF"+zj+"&ip="+Ha+"&initcwndbps="+aC+"&mt="+dN+"&oweuc="+mf}}}}},trackingParams:MS+"=",id:Vm,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:dv}},simpleText:aR},style:"DEFAULT"}}]}}],startMs:aC,trackingParams:MS+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:yn,offsetEndMilliseconds:ma},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tE+";dc_trk_cid="+tE+";dc_dbm_token="+t+";ord="+dN+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yn+";dc_rui="+yn+";dc_exteid="+Vm+";dc_av="+uG+";dc_sk="+yn+";dc_ctype="+Gw+";dc_ref=http://www.youtube.com/video/"+hE+";dc_pubid="+yn+";dc_btype=23?gclid="+tH+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+yn+"&ns="+yn+"&event="+yn+"&device="+yn+"&content_v="+x+"&el="+PE+"&ei="+V+"&devicever="+l+"&bti="+aC+"&format="+$p+"&break_type="+yn+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+yn+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Ha+"&slot_pos="+yn+"&slot_len="+yn+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+aO+"&ad_len="+ma+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
hE+"&aqi="+V+"&ad_rmp="+yn+"&sli="+yn}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+
";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+$p+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+aC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&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"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&ctype="+uG+"&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"+
O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_engaged_view&ctype="+uG+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+$p+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
tE+";dc_trk_cid="+tE+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yn+";ord="+tE+";dc_rui="+yn+";dc_exteid="+vE+";dc_av="+yn+";dc_sk="+yn+";dc_ctype="+Gw+";dc_pubid="+yn+";dc_btype=3?gclid="+tH+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+v+"&sig="+Pr+"&ad_cpn=[AD_CPN]&id="+ZH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZH+"&dc_pubid="+yn+"&dc_exteid="+Vm+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+v+"&sig="+Pr+"&ad_cpn=[AD_CPN]&id="+ZH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+yn},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZH+"&avm="+yn+"&dc_pubid="+yn+"&dc_exteid="+
Vm+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&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="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
v+"&sig="+Pr+"&ad_cpn=[AD_CPN]&id="+ZH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+yn},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZH+"&dc_pubid="+yn+"&dc_exteid="+Vm+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+$p+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+$p+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:pM,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+
uG+"&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/"+x+"/mqdefault.jpg",width:320,height:180}]},trackingParams:MS+"="},trackingParams:MS+
"=",templatedCountdown:{templatedAdText:{text:Jm,isTemplated:!0,trackingParams:MS+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:ZH,isTemplated:!1,trackingParams:MS+"="},trackingParams:MS+"="}},trackingParams:MS+"=",skipOffsetMilliseconds:5E3}},trackingParams:MS+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:J9},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:MS+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:I2,isTemplated:!1,trackingParams:MS+"="},trackingParams:MS+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:XY,isTemplated:!0,trackingParams:MS+"="}},trackingParams:MS+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:pM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(m1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+ky+"&origin=www.youtube.com&ata_theme="+dv,m1),trackingParams:MS+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:MS+"="}},hoverText:{runs:[{text:x0}]},trackingParams:MS+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+LU+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:MS+"="},headline:{text:Y$,isTemplated:!1,trackingParams:MS+"="},description:{text:I2,
trackingParams:MS+"="},actionButton:{buttonRenderer:{text:{simpleText:PE},navigationEndpoint:{clickTrackingParams:pM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tE+";dc_trk_cid="+tE+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yn+";ord="+tE+";dc_rui="+yn+";dc_exteid="+Vm+";dc_av="+yn+";dc_sk="+yn+";dc_ctype="+Gw+";dc_pubid="+yn+";dc_btype=3?gclid="+tH+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:MS+"="}},startMs:yn,trackingParams:MS+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Th},elementId:Y$}},elementId:I2,trackingParams:MS+"=",legacyInfoCardVastExtension:db,sodarExtensionData:{siub:Y$,bgub:CU,scs:Y$,bgp:J9},externalVideoId:hE,adLayoutLoggingData:{serializedAdServingDataEntry:Jm},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+LU+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:MS+"="},
headline:{text:Jg,isTemplated:!1,trackingParams:MS+"="},description:{text:hE,isTemplated:!1,trackingParams:MS+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:hE},navigationEndpoint:{clickTrackingParams:pM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tE+";dc_trk_cid="+tE+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yn+";ord="+tE+";dc_rui="+yn+";dc_exteid="+
Vm+";dc_av="+yn+";dc_sk="+yn+";dc_ctype="+Gw+";dc_pubid="+yn+";dc_btype=3?gclid="+tH+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+
yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:MS+"="}},navigationEndpoint:{clickTrackingParams:pM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tE+";dc_trk_cid="+
tE+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yn+";ord="+tE+";dc_rui="+yn+";dc_exteid="+Vm+";dc_av="+yn+";dc_sk="+yn+";dc_ctype="+Gw+";dc_pubid="+yn+";dc_btype=3?gclid="+tH+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+
a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:MS+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:MS+"="},abandonCommands:{commands:[{clickTrackingParams:pM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&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="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+
yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:pM,commandExecutorCommand:{commands:[{clickTrackingParams:pM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:I2,isTemplated:!1,trackingParams:MS+
"="},trackingParams:MS+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:CU},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+aC+";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="+tE+";dc_trk_cid="+tE+";ord="+dN+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yn+";dc_rui="+yn+";dc_exteid="+Vm+";dc_av="+uG+";dc_sk="+yn+";dc_ctype="+Gw+";dc_ref=http://www.youtube.com/video/"+hE+";dc_pubid="+yn+";dc_btype=23?gclid="+tH+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+yn+"&ns="+yn+"&event="+yn+"&device="+yn+"&content_v="+x+"&el="+PE+"&ei="+V+"&devicever="+l+"&bti="+aC+"&format="+$p+"&break_type="+yn+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+yn+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Ha+"&slot_pos="+yn+"&slot_len="+yn+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
aO+"&ad_len="+ma+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+hE+"&aqi="+V+"&ad_rmp="+yn+"&sli="+yn}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+$p+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+
m+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+aC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&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"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&ctype="+uG+"&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"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_engaged_view&ctype="+uG+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+$p+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+v+"&sig="+Pr+"&ad_cpn=[AD_CPN]&id="+
ZH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZH+"&dc_pubid="+yn+"&dc_exteid="+Vm+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+v+
"&sig="+Pr+"&ad_cpn=[AD_CPN]&id="+ZH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+yn},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZH+"&avm="+yn+"&dc_pubid="+yn+"&dc_exteid="+Vm+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&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="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+v+"&sig="+Pr+"&ad_cpn=[AD_CPN]&id="+ZH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+yn},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZH+"&dc_pubid="+yn+"&dc_exteid="+Vm+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+$p+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+$p+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+
uG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&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/"+x+"/mqdefault.jpg",width:320,height:180}]},trackingParams:MS+"="},trackingParams:MS+"=",templatedCountdown:{templatedAdText:{text:JV,isTemplated:!0,trackingParams:MS+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Jg,isTemplated:!1,trackingParams:MS+"="},trackingParams:MS+"="}},
trackingParams:MS+"=",skipOffsetMilliseconds:5E3}},trackingParams:MS+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Jm},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Jg,isTemplated:!1,trackingParams:MS+"="},trackingParams:MS+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:hE,
isTemplated:!0,trackingParams:MS+"="}},trackingParams:MS+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:pM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(us.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+ky+"&origin=www.youtube.com&ata_theme="+dv,us),trackingParams:MS+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:MS+"="}},hoverText:{runs:[{text:Y$}]},trackingParams:MS+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+$y+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:MS+"="},headline:{text:PE,isTemplated:!1,trackingParams:MS+"="},description:{text:Th,trackingParams:MS+"="},actionButton:{buttonRenderer:{text:{simpleText:PE},navigationEndpoint:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:MS+"="}},startMs:yn,trackingParams:MS+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Jg},elementId:J9}},elementId:CU,trackingParams:MS+"=",legacyInfoCardVastExtension:PE,sodarExtensionData:{siub:JV,bgub:JV,scs:ZH,bgp:Jm},externalVideoId:hE,adLayoutLoggingData:{serializedAdServingDataEntry:aR},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+$y+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:MS+"="},headline:{text:PE,
isTemplated:!1,trackingParams:MS+"="},description:{text:dv,isTemplated:!1,trackingParams:MS+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:hE},navigationEndpoint:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:MS+"="}},navigationEndpoint:{clickTrackingParams:pM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+
yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:MS+"="},abandonCommands:{commands:[{clickTrackingParams:pM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&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="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+Gw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:pM,commandExecutorCommand:{commands:[{clickTrackingParams:pM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:aR,isTemplated:!1,trackingParams:MS+"="},trackingParams:MS+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ZH},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+yn+";dc_exteid="+Vm+";met="+yn+";ecn"+yn+"="+yn+";etm1="+yn+";eid1="+
aC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Jm}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:PE}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ma,offsetEndMilliseconds:$p},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+V+"&m_pos="+Gw+"&token=ALHj"+A+"&index="+yn+"&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="+l+"&m_pos_ms="+ma}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Jm}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:$p,offsetEndMilliseconds:$p},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+V+"&m_pos="+uG+"&token=ALHj"+A+"&index="+yn+"&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="+
l+"&m_pos_ms="+$p}},adSlotLoggingData:{serializedSlotAdServingDataEntry:XY}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:$p,offsetEndMilliseconds:$p},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+V+"&m_pos="+uG+"&token=ALHj"+A+"&index="+yn+"&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="+
l+"&m_pos_ms="+$p}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Th}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:$p,offsetEndMilliseconds:$p},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+V+"&m_pos="+uG+"&token=ALHj"+A+"&index="+yn+"&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="+
l+"&m_pos_ms="+$p}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Jg}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:$p,offsetEndMilliseconds:Gw},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+V+"&m_pos="+uG+"&token=ALHj"+A+"&index="+yn+"&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="+
l+"&m_pos_ms="+$p}},adSlotLoggingData:{serializedSlotAdServingDataEntry:I2}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Gw,offsetEndMilliseconds:Gw},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+V+"&m_pos="+Gw+"&token=ALHj"+A+"&index="+yn+"&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="+
l+"&m_pos_ms="+Gw}},adSlotLoggingData:{serializedSlotAdServingDataEntry:hE}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Y$,isTemplated:!1,trackingParams:MS+"="},description:{text:I2,isTemplated:!1,trackingParams:MS+"="},actionButton:{buttonRenderer:{text:{simpleText:J9},navigationEndpoint:{clickTrackingParams:pM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
tE+";dc_trk_cid="+tE+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yn+";ord="+tE+";dc_rui="+yn+";dc_exteid="+Vm+";dc_av="+yn+";dc_sk="+yn+";dc_ctype="+Gw+";dc_pubid="+yn+";dc_btype=3?gclid="+tH+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+LU+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:MS+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+co+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:MS+"="},navigationEndpoint:{clickTrackingParams:pM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tE+";dc_trk_cid="+tE+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yn+";ord="+tE+
";dc_rui="+yn+";dc_exteid="+Vm+";dc_av="+yn+";dc_sk="+yn+";dc_ctype="+Gw+";dc_pubid="+yn+";dc_btype=3?gclid="+tH+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:pM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(JXb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+ky+"&origin=www.youtube.com&ata_theme="+dv,JXb),trackingParams:MS+"="}},popupType:"DIALOG"}},trackingParams:MS+"="}},hoverText:{runs:[{text:Jg}]},trackingParams:MS+"="}},adVideoId:hE,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:hE},associatedCompositePlayerBytesLayoutId:Jm}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Jg}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:aR,isTemplated:!1,trackingParams:MS+"="},description:{text:PE,isTemplated:!1,trackingParams:MS+"="},actionButton:{buttonRenderer:{text:{simpleText:x0},navigationEndpoint:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+
a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:MS+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+$y+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:MS+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Np+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:MS+"="},navigationEndpoint:{clickTrackingParams:pM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+
yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:pM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(KK.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+ky+"&origin=www.youtube.com&ata_theme="+dv,KK),trackingParams:MS+"="}},popupType:"DIALOG"}},trackingParams:MS+"="}},
hoverText:{runs:[{text:J9}]},trackingParams:MS+"="}},adVideoId:hE,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+hE+"&cid="+m+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Th},associatedCompositePlayerBytesLayoutId:Jm}},adSlotLoggingData:{serializedSlotAdServingDataEntry:aR}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:ZH,
isTemplated:!1,trackingParams:MS+"="},description:{text:I2,isTemplated:!1,trackingParams:MS+"="},actionButton:{buttonRenderer:{text:{simpleText:I2},navigationEndpoint:{clickTrackingParams:pM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tE+";dc_trk_cid="+tE+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yn+";ord="+tE+";dc_rui="+yn+";dc_exteid="+Vm+";dc_av="+yn+";dc_sk="+yn+";dc_ctype="+
Gw+";dc_pubid="+yn+";dc_btype=3?gclid="+tH+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+
Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+LU+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:MS+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+co+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:MS+
"="},navigationEndpoint:{clickTrackingParams:pM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tE+";dc_trk_cid="+tE+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+yn+";ord="+tE+";dc_rui="+yn+";dc_exteid="+Vm+";dc_av="+yn+";dc_sk="+yn+";dc_ctype="+Gw+";dc_pubid="+yn+";dc_btype=3?gclid="+tH+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+yn+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+tX+"&label=video_click_to_advertiser_site&ctype="+uG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:MS+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:pM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(mP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+ky+"&origin=www.youtube.com&ata_theme="+dv,mP),trackingParams:MS+"="}},popupType:"DIALOG"}},trackingParams:MS+
"="}},hoverText:{runs:[{text:I2}]},trackingParams:MS+"="}},adVideoId:hE,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+x+"&cid="+m+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:db},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Jm}},adSlotLoggingData:{serializedSlotAdServingDataEntry:db}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:R2,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:R2,command:{innertubeCommand:{clickTrackingParams:pM,ypcGetOfflineUpsellEndpoint:{params:M0}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:MS+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:dN,nanos:Ls}}}},G3R=JSON.stringify(hx),Eq=performance.now()-u;return{objectRepresentation:hx,jsonRepresentation:G3R,generationTime:Eq}};
kFZ=function(u,K){if(u===K)return!0;if(!u||!K||typeof u!==typeof K)return!1;if(u instanceof Array&&K instanceof Array){if(u.length!==K.length)return!1;for(var l=0;l<u.length;l++)if(!kFZ(u[l],K[l]))return!1;return!0}if(typeof u==="object"&&typeof K==="object"&&u&&K){for(l in u)if(!(l in K&&kFZ(u[l],K[l])))return!1;for(var D in K)if(!(D in u))return!1;return!0}return!1};
_.Od=function(){if(!bv){bv=new Re(new Zoq);var u=_.Sg("client_streamz_web_flush_count",-1);u!==-1&&(bv.invocationLimit=u)}return bv};
cI=function(u,K,l,D){if(u===K)return!0;if(Array.isArray(u)&&Array.isArray(K)){if(u.length!==K.length)return!1;for(var d=0;d<u.length;d++)if(!cI(u[d],K[d],l,D))return!1;return!0}if(u instanceof Set||K instanceof Set){if(u instanceof Set&&K instanceof Set){if(u.size!==K.size)return!1;D=_.y(u.values());for(d=D.next();!d.done;d=D.next())if(!K.has(d.value))return!1;return!0}return!1}if(u instanceof Function){if(D)return!0;u.name===""&&_.Xm(Error("Jf"),"ERROR");return!1}if(u instanceof Date&&K instanceof
Date)return u.getTime()===K.getTime();if(u instanceof Object&&K instanceof Object){if(Y$R(u)&&Y$R(K))try{return u.equals(K)}catch(W){_.Xm(Error("Kf`"+W),"ERROR")}d=Object.getOwnPropertyNames(u).filter(function(W){return l?u[W]!==void 0:!0});
var C=Object.getOwnPropertyNames(K).filter(function(W){return l?K[W]!==void 0:!0});
if(d.length!==C.length)return!1;d=_.y(d);for(C=d.next();!C.done;C=d.next())if(C=C.value,!cI(u[C],K[C],l,D))return!1;return!0}return!1};
Y$R=function(u){u=Object.getPrototypeOf(u).equals;return u instanceof Function&&u.length===1};
_.m6Z=function(){return _.H(function(u){if(u.nextAddress==1)return AQH!==2?u.jumpTo(2):u.yield(X2q(),3);u.nextAddress!=2&&(AQH=u.yieldResult);return u.return(AQH)})};
_.LHq=function(){return _.H(function(u){if(u.nextAddress==1)return _.S("ab_pl_man")?hDH!==2?u.jumpTo(2):u.yield(EKR(),3):u.return(1);u.nextAddress!=2&&(hDH=u.yieldResult);return u.return(hDH)})};
lPR=function(){return _.H(function(u){if(u.nextAddress==1)return _.S("ab_fk_sk_cl")?u79!==2?u.jumpTo(2):u.yield(Krh(),3):u.return(1);u.nextAddress!=2&&(u79=u.yieldResult);return u.return(u79)})};
_.CKr=function(){return _.H(function(u){if(u.nextAddress==1)return _.S("ab_det_apb_b")?D19!==2?u.jumpTo(2):u.yield(d1y(),3):u.return(1);u.nextAddress!=2&&(D19=u.yieldResult);return u.return(D19)})};
siq=function(){var u;return _.H(function(K){if(K.nextAddress==1)return K.yield(Promise.all([_.m6Z(),_.CKr(),_.LHq(),lPR()]),2);if(K.nextAddress!=3)return IPy()?K.return(!0):K.yield(_.yi9(),3);u=K.yieldResult;return K.return(u===0)})};
IPy=function(){var u=!1,K=function(l,D){oMq.increment(D,l);l===0&&(u=!0)};
K(_.Wrq(),"j.s_");K(AQH,"f.i_");K(D19,"a.b_");K(hDH,"p.m_");K(u79,"i.f_");HlR===2&&(HlR=_.Moq(qew));K(HlR,"e.h_");_.S("ks_det_gpbl")||K(_.$1R(),"p.i_");_.S("ks_get_o_pp")||K(_.nMZ(),"g.o_");_.S("ab_deg_unex_thr")||K(_.rih(),"a.o_");K(vMb,"s.t_");_.S("ab_det_sc_inj_enf")&&K(_.GnZ(),"s.i_");K(too,"d.p_");K(_.x1r(_.a7),"o.p_");K(_.SeH()===0?0:_.blo(),"o.a_");return _.S("debug_sk_em_precheck")?!0:u};
cir=function(){var u=[].concat(_.Am(Olq));try{var K=St();u.push({jsonRepresentation:K.jsonRepresentation,objectRepresentation:K.objectRepresentation})}catch(l){u=[].concat(_.Am(Olq))}return u};
aPH=function(){var u=["adPlacements","adSlots"];try{return u.filter(function(){return!0}).length!==u.length?0:1}catch(K){return 0}};
_.nMZ=function(){if(aPH()===0)return 0;var u=St(),K=u.objectRepresentation,l=(0,_.k$.unsafeClone)(K),D=[];if(K&&typeof K==="object")for(var d in K)D.push(d);else return 4;u=u.objectRepresentation.adPlacements;if(!(u&&u.length>0))return 4;try{if(!kFZ(D,Object.getOwnPropertyNames(K)))return 0}catch(C){return 0}return kFZ(l,K)?1:0};
_.x1r=function(u){if(!u||!u.length||typeof u==="string")return 0;for(var K=Object.getOwnPropertyNames(Object.prototype),l=0;l<u.length;l++)for(var D=_.vI(u[l]),d=_.y(K),C=d.next();!C.done;C=d.next())if(D===C.value)return 0;return 1};
zkr=function(u){var K=_.vI(u[1]);if(u[0]===null)return K;u=u[0];for(var l={},D=0;D<u.length;D++){var d=_.vI(u[D]);if(D===0)l[d]=K;else{var C={};C[d]=l;l=C}}return l};
_.SeH=function(){for(var u=_.zO,K=0;K<u.length;K++){var l=zkr(u[K]),D=[];D.push(l);if(D.length===0)return 0}return 1};
_.blo=function(){for(var u=_.zO,K={},l=0;l<u.length;K={qag:void 0},l++){var D=[zkr(u[l])];K.qag=[];D.forEach(function(d){return function(C){d.qag[d.qag.length]=C}}(K));
if(K.qag.length===0)return 0}return 1};
_.Wrq=function(){for(var u=_.y(cir()),K=u.next();!K.done;K=u.next()){var l=K.value;K=l.jsonRepresentation;l=l.objectRepresentation;try{var D=JSON.parse(K);if(!cI(D,l,!1,!1))return 0}catch(d){return 0}}return 1};
_.GnZ=function(){try{var u=_.OP("ab_det_sc_inj_val");u.length===1&&u[0]===""&&(u=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var K=document.querySelectorAll("script"),l=_.y(K),D=l.next();!D.done;D=l.next())for(var d=D.value,C=_.y(u),W=C.next();!W.done;W=C.next()){var M=W.value;K=void 0;if((K=d.textContent)==null?0:K.includes(M))return 0}}catch(q){return 4}return 1};
_.yi9=function(){var u,K,l,D,d,C,W;return _.H(function(M){switch(M.nextAddress){case 1:_.Qg(M,2),u=_.y(Olq),K=u.next();case 4:if(K.done)return M.return(1);D=l=K.value;d=D.jsonRepresentation;C=D.objectRepresentation;return M.yield((new Response(d,{status:200})).json(),7);case 7:W=M.yieldResult;if(!cI(W,C,!1,!1))return M.return(0);K=u.next();M.jumpTo(4);break;case 2:return _.iY(M),M.return(4)}})};
_.rih=function(){try{btoa("abc")}catch(u){return 0}return 1};
X2q=function(){var u,K,l,D,d,C,W,M,q,v,G;return _.H(function(t){switch(t.nextAddress){case 1:_.Qg(t,2),u=_.y(cir()),K=u.next();case 4:if(K.done)return t.return(1);D=l=K.value;d=D.jsonRepresentation;C=D.objectRepresentation;W=btoa(d);M="data:application/json;base64,"+W;q=new Request(M);Object.defineProperty(q,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(q,"method",{get:function(){return"POST"}});
Object.defineProperty(q,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(q,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(q,"body",{get:function(){return new ReadableStream}});
return t.yield(fetch(q),7);case 7:return v=t.yieldResult,t.yield(v.json(),8);case 8:G=t.yieldResult;if(!cI(G,C,!1,!1))return t.return(0);K=u.next();t.jumpTo(4);break;case 2:return _.iY(t),t.return(4)}})};
_.Moq=function(u){if(!u||!u.length||typeof u==="string")return 0;for(var K=function(d){return _.vI(d)},l=2,D=0;D<u.length&&(l=_.ek9(_.gK9(u[D],K)),l!==0);D++);
return l};
_.ek9=function(u){var K=_.y(u);u=K.next().value;K=K.next().value;try{var l=document.createElement("div");document.body.appendChild(l);var D=getComputedStyle(l).display;document.body.removeChild(l);if(D==="none")return 4;var d=getComputedStyle(K).display==="none"?0:1;document.body.removeChild(u);return d}catch(C){return 4}};
Krh=function(){var u,K,l;return _.H(function(D){u=new _.et;K=document.createElement("button");K.classList.add("ytp-ad-skip-button");K.style.opacity="0";K.style.height="0px";K.style.width="0px";K.style.padding="0px";K.style.border="none";l=function(){K.parentElement&&K.parentElement.removeChild(K)};
K.onclick=function(){u.resolve(0);l()};
document.body.appendChild(K);setTimeout(function(){l();u.resolve(1)},50);
return D.return(u.promise)})};
EKR=function(){var u,K,l,D,d,C,W;return _.H(function(M){u=new _.et;K=document.createElement("ytd-player");try{document.body.prepend(K)}catch(q){return M.return(4)}l=function(){K.parentElement&&K.parentElement.removeChild(K)};
K.getElementsByTagName("div").length>0?D=K.getElementsByTagName("div")[0]:(D=document.createElement("div"),K.appendChild(D));d=document.createElement("div");D.appendChild(d);C=document.createElement("video");W=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"});C.src=_.Yu(_.LM(W));C.ontimeupdate=function(){l();u.resolve(0)};
d.appendChild(C);C.classList.add("html5-main-video");setTimeout(function(){d.classList.add("ad-interrupting")},200);
setTimeout(function(){l();u.resolve(1)},5E3);
return M.return(u.promise)})};
Rko=function(u,K){var l,D;return _.H(function(d){switch(d.nextAddress){case 1:l=[],D=0;case 2:if(!(D<3)){d.jumpTo(4);break}return d.yield(fetch(u,{cache:"no-store",method:K}).then(function(C){l.push(C.status)}).catch(function(){l.push(-1)}),3);
case 3:D++;d.jumpTo(2);break;case 4:return d.return(l)}})};
U1w=function(u){return u.domainLookupStart===0&&u.domainLookupEnd===0&&u.connectStart===0&&u.connectEnd===0};
fPq=function(u,K,l){l=l===void 0?"GET":l;var D,d,C,W,M,q,v,G,t,x;return _.H(function(O){if(O.nextAddress==1)return O.yield(Promise.all([Rko(u,l),Rko(K,l)]),2);D=O.yieldResult;d=_.y(D);C=d.next().value;W=d.next().value;M=C;q=W;if(Math.min.apply(Math,_.Am(q))!==Math.max.apply(Math,_.Am(q))||Math.min.apply(Math,_.Am(M))!==Math.max.apply(Math,_.Am(M)))return O.return(2);if(Math.min.apply(Math,_.Am(q))===Math.min.apply(Math,_.Am(M)))return O.return(1);G=(v=performance.getEntriesByName(u))==null?void 0:
v[0];x=(t=performance.getEntriesByName(K))==null?void 0:t[0];return G&&x?U1w(x)?O.return(1):U1w(G)?O.return(0):O.return(1):O.return(2)})};
d1y=function(){var u;return _.H(function(K){var l=[];var D;var d,C,W;(d=D=(d=St().objectRepresentation.streamingData)==null?void 0:(C=d.formats)==null?void 0:(W=C[0])==null?void 0:W.url)&&d&&!D.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(d=d.replace("initcwndbps","ctier=L&initcwndbps"),d=d.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),D={testUrl:d,baseUrl:D,method:"GET"}):D=void 0;D&&l.push(D);_.S("ab_net_tp_e")&&l.push({testUrl:_.lL.location.origin+"/ad_companion",baseUrl:_.lL.location.origin+
"/generate_204",method:"OPTIONS"});if(_.S("ad_net_pb_ab")){var M;b:{D=/api\/stats\/ads/;var q,v,G,t;d=(M=St().objectRepresentation.adPlacements)==null?void 0:(q=M[0])==null?void 0:(v=q.adPlacementRenderer)==null?void 0:(G=v.renderer)==null?void 0:(t=G.linearAdSequenceRenderer)==null?void 0:t.linearAds;if(d!=null&&d.length&&(M=_.b(d[0],Qiy))&&(M=M.pings,M!=null&&M.impressionPings))for(q=[].concat(_.Am(M.impressionPings)),M.progressPings&&(q=[].concat(_.Am(q),_.Am(M.progressPings))),M=_.y(q),q=M.next();!q.done;q=
M.next())if(q=q.value,q.baseUrl&&D.test(q.baseUrl)){M=q.baseUrl.replace("https://www.youtube.com","");break b}M=void 0}M&&l.push({testUrl:_.lL.location.origin+M,baseUrl:_.lL.location.origin+"/feed/download",method:"GET"})}if(_.S("ad_net_pb_pbp")){var x;b:{M=/api\/stats\/qoe/;if(q=St().objectRepresentation.playbackTracking){v=[];v.push(q==null?void 0:(x=q.videostatsPlaybackUrl)==null?void 0:x.baseUrl);var O;v.push(q==null?void 0:(O=q.videostatsDelayplayUrl)==null?void 0:O.baseUrl);var a;v.push(q==
null?void 0:(a=q.videostatsWatchtimeUrl)==null?void 0:a.baseUrl);var f;v.push(q==null?void 0:(f=q.ptrackingUrl)==null?void 0:f.baseUrl);var B;v.push(q==null?void 0:(B=q.qoeUrl)==null?void 0:B.baseUrl);var p;v.push(q==null?void 0:(p=q.atrUrl)==null?void 0:p.baseUrl);x=_.y(v);for(O=x.next();!O.done;O=x.next())if((O=O.value)&&M.test(O)){x=O.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}x=void 0}x&&l.push({testUrl:_.lL.location.origin+x,baseUrl:_.lL.location.origin+
"/feed/download",method:"GET"})}l=l.length!==0?l[Math.floor(Math.random()*l.length)]:void 0;return(u=l)?K.return(fPq(u.testUrl,u.baseUrl,u.method)):K.return(4)})};
_.$1R=function(){if(_.lL.rqf===void 0||_.lL.rqf===null||typeof _.lL.rqf!=="function")return 2;try{return _.lL.rqf()===!0?0:1}catch(u){return 0}};
PKy=function(u){switch(u){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.o2(u,"unknown result type")}};
_.Jio=function(u,K){var l=Number(_.E3("CATSTAT",0));if(K.xfn===void 0)return l;K=K.xfn;u=PKy(u);return l&~(3<<K)|u<<K};
jir=function(u){var K,l;if((u=(K=u.auxiliaryUi)==null?void 0:(l=K.messageRenderers)==null?void 0:l.bkaEnforcementMessageViewModel)&&u.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return u};
psq=function(){for(var u=_.y(Object.values(_.Bjr)),K=u.next();!K.done;K=u.next())K=K.value,K.isAsync&&K.xfn&&_.h8("CATSTAT",_.Jio(2,K))};
_.QR=function(u,K){u=_.R7("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",u);(K===void 0?0:K)?_.ilH(u,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Ud(_.fc(),u,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
wsH=function(){if(!TjR){if(Polymer.Base){var u=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{u.apply(this,arguments)}catch(t){_.uZ(t)}};
var K=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{K.apply(this,arguments)}catch(t){_.uZ(t)}};
var l=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{l.apply(this,arguments)}catch(t){_.uZ(t)}};
var D=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{D.apply(this,arguments)}catch(t){_.uZ(t)}};
var d=Polymer.Base._listen,C=new WeakMap;Polymer.Base._listen=function(t,x,O){var a=function(){try{O.apply(this,arguments)}catch(f){_.uZ(f)}};
C.set(O,a);d.call(this,t,x,a)};
var W=Polymer.Base._unlisten;Polymer.Base._unlisten=function(t,x,O){W.call(this,t,x,C.get(O))}}if(Polymer.Async){var M=Polymer.Async,q=M._atEndOfMicrotask;
M._atEndOfMicrotask=function(){try{q.apply(M,arguments)}catch(t){_.uZ(t)}}}if(Polymer.RenderStatus){var v=Polymer.RenderStatus,G=v.afterNextRender;
v.afterNextRender=function(t,x,O){G.call(v,t,function(){try{x.apply(this,arguments)}catch(a){_.uZ(a)}},O)}}TjR=!0}};
_.PI=function(u){var K=u?_.RK(u):"";if(K){if(K.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(K.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(K.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(K.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(K.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.S("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(K.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";K=K.toLowerCase();if(K==="/")return"home";if(K==="/channel_memberships")return"channel-memberships-shopfront";if(K.indexOf("/feed/trending")===0)return"trending";if(K.indexOf("/feed/explore")===0)return"explore";if(K.indexOf("/live")===0)return"live";if(K.indexOf("/results")===0)return"search";if(K.indexOf("/sports")===0)return"sports";if(K.indexOf("/fashion")===0||K.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(K))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(K))return _.S("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(K.indexOf("/channel/")===0||K.indexOf("/user/")===0||K.indexOf("/gaming")===0||K.indexOf("/post/")===0)return"channel";if(Frq(u))return"show";if(K==="/playlist"||K.indexOf("/playlist/")===0||K==="/view_play_list"||K.indexOf("/view_play_list/")===0||K.indexOf("/show/")===0)return"playlist";if(K==="/feed/history"||K.indexOf("/feed/history/")===0)return"history";if(K===
"/new")return"labs";if(K==="/feed/subscriptions")return"subscriptions";if(K.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(K==="/history_controls")return"standalone";if(K.indexOf("/account")===0||K==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(K.indexOf("/paid_memberships")===0||K.indexOf("/refund")===0||K.indexOf("/purchases")===0||K.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(K.indexOf("/product")===0)return"yts-products";if(K.indexOf("/premium")===
0||K.indexOf("/musicpremium")===0)return K.indexOf("/premium/offers")===0||K.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(K==="/cart/checkout"||K==="/cart")return"ypc-checkout";if(K.indexOf("/feed/downloads")===0||K.indexOf("/redeem")===0||K.indexOf("/reporthistory")===0)return"browse";if(K.indexOf("/hashtag")===0)return"hashtag-landing-page";if(K.indexOf("/handle")===0)return"handle";if(K.indexOf("/source")===0)return"audio-pivot";if(K.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(K.indexOf("/playables")===0)return"playables";if(K.indexOf("/create/live/join")===0)return"open-in-app";if(K.indexOf("/shorts")===0)return"shorts";if(K.indexOf("/feed/channels")===0)return"subscriptions-channels";(K=u?_.RK(u):"")&&K.indexOf("/watch")===0&&_.S("web_watch_enable_learning_journey")?(u=_.oK(u),u=!!u.list&&u.list.indexOf("LJPP")===0):u=!1;if(u)return"learning_journey_watch"}};
_.J_=function(u){var K,l;(u=(l=_.b(u==null?void 0:u.commandMetadata,_.nN))==null?void 0:l.url)&&(K=_.PI(u));return K};
Frq=function(u){var K=u?_.RK(u):"";if(!K)return!1;K=K.toLowerCase();return K.indexOf("/show/")===0||K.indexOf("/playlist")===0&&(u=_.oK(u),u.list&&u.list.indexOf("EL")===0)?!0:!1};
pc=function(u){var K="unknown",l;var D=((l=_.b(u==null?void 0:u.commandMetadata,_.nN))==null?void 0:l.webPageType)||"";D?(l=D.toLowerCase(),l.startsWith("web_page_type_")&&(l=l.slice(14))):l=D;l&&Vob[l.toUpperCase()]?K=Vob[l.toUpperCase()]:_.b(u,_.jt)||_.b(u,gML)?K="browse":_.b(u,_.BI)?K="search":_.b(u,_.oy)&&(K="watch");K==="watch"&&_.J_(u||null)==="learning_journey_watch"&&(K="learning_journey_watch");K==="unknown"&&_.hV(Error("Mf`"+JSON.stringify({clickTrackingParams:u==null?void 0:u.clickTrackingParams,
commandMetadata:u==null?void 0:u.commandMetadata,allEndpointKeys:Object.keys(u||[])})));return K};
_.iv=function(u){if(!_.Nj9||u)_.Nj9=_.BK();return _.Nj9};
_.knq=function(u){return!!_.b(u,_.oy)||!!_.b(u,_.TO)&&_.S("kevlar_enable_shorts_prefetch")};
_.ZlH=function(u,K){u=_.b(u,_.oy)||_.b(u,_.TO);return"v"+u.videoId+(u.playlistId?"-pl"+u.playlistId:"")+(K?"-an1":"")+(u.params?"-pr"+u.params:"")};
we=function(u){return function(){return new u}};
FQ=function(u){var K=_.GB();return function(){return K.resolve(u)}};
Aiq=function(u){var K=_.Sg("web_pbj_log_warning_rate",0);K=K>0&&Math.random()<K;if(!_.b(u,_.TO))return K&&_.hV(Error("Pf")),!1;var l;return _.S("shorts_controller_retrieve_seedless_sequence_v2")&&((l=_.b(u,_.TO))==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:YeH(u)?!0:(K&&_.hV(Error("Qf")),!1)};
YeH=function(u){var K=(_.b(u,_.oy)||_.b(u,_.TO)).videoId;if(!K||!Xsw.test(K))return!1;var l;return(u=(l=_.b(u.commandMetadata,_.nN))==null?void 0:l.url)&&(u.includes(K)||u.startsWith("/clip"))?!0:!1};
_.hky=function(){var u=_.jy();return u.getFlag(192)?u.getFlag(190):!(_.S("web_watch_cinematics_disabled_by_default")||_.S("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&m1r())};
_.VR=function(u,K,l){var D={};D.currentUrl=K;D.vis=u.vis!==void 0?u.vis:0;D.splay=!1;K=_.jy();D.autoCaptionsDefaultOn=K.getFlag(66);K.getFlag(141)?K.getFlag(140)?D.autonavState="STATE_OFF":D.autonavState="STATE_ON":D.autonavState="STATE_NONE";D.html5Preference="HTML5_PREF_WANTS";isNaN(_.E3("STS"))||(D.signatureTimestamp=_.E3("STS"));u.autonav&&(D.autoplay=!0,D.autonav=!0);u.mutedAutoplay&&(D.autoplay=!0,D.mutedAutoplay=!0);u.inlinePlayback&&(D.autoplay=!0,D.autonav=!1,D.isInlineUnmutedPlayback=!!u.inlineUnmuted);
D.referer=l;D.lactMilliseconds=u.lact!==void 0?u.lact.toString():"-1";_.S("enable_unknown_lact_fix_on_html5")&&D.lactMilliseconds==="-1"&&_.hV(new _.wv("Unknown LACT is set in playbackContext.",{"lact in tempData":u.lact||"undefined",autonav:u.autonav||"undefined"}));u={};K.getFlag(194)&&(u.hasShownAmbientMode=!0);K.getFlag(192)&&(u.hasToggledOffAmbientMode=!0);_.hky()&&(u.watchAmbientModeEnabled=!0);D.watchAmbientModeContext=u;return D};
EMq=function(u){var K={},l=u.pbis||0;l&&(K.playbackBeginsInSeconds=l);u.prefetch_reason&&u.prefetch_reason==="hc_pbis"&&(K.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return K};
_.Nu=function(u){u=u===void 0?!1:u;var K=_.jy(),l="USER_INTERFACE_THEME_LIGHT";K.getFlag(165)?l="USER_INTERFACE_THEME_DARK":K.getFlag(174)?l="USER_INTERFACE_THEME_LIGHT":_.ge()&&(l="USER_INTERFACE_THEME_DARK");return u?l:LrH()||l};
_.ulR=function(){return!_.S("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.ge=function(){return _.ulR()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.kO=function(){var u=_.jy();return _.ulR()&&!u.getFlag(165)&&!u.getFlag(174)};
LrH=function(){var u=u===void 0?window.location.href:u;if(_.S("kevlar_disable_theme_param"))return null;var K=_.RK(u);if(_.K9q(K))return"USER_INTERFACE_THEME_DARK";try{var l=_.oK(u).theme;return l1y.get(l)||null}catch(D){}return null};
_.K9q=function(u){return _.S("enable_dark_theme_only_on_shorts")?!(u==null||!u.startsWith("/shorts/")):!1};
_.C3q=function(u,K,l,D,d){K=K===void 0?!1:K;l=l===void 0?!1:l;var C=_.E3("INNERTUBE_CONTEXT");if(!C)return _.Xm(Error("Tf")),{};C=(0,_.k$.unsafeClone)(C);_.S("web_no_tracking_params_in_shell_killswitch")||delete C.clickTracking;C.client||(C.client={});var W=C.client;W.clientName==="MWEB"&&W.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(W.clientFormFactor=_.E3("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");W.screenWidthPoints=window.innerWidth;W.screenHeightPoints=window.innerHeight;W.screenPixelDensity=
Math.round(window.devicePixelRatio||1);W.screenDensityFloat=window.devicePixelRatio||1;W.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());W.userInterfaceTheme=_.Nu();if(!K){var M=_.X09();M&&(W.connectionType=M);_.S("web_log_effective_connection_type")&&(M=hdH())&&(C.client.effectiveConnectionType=M)}var q;if(_.S("web_log_memory_total_kbytes")&&((q=_.lL.navigator)==null?0:q.deviceMemory)){var v;q=(v=_.lL.navigator)==null?void 0:v.deviceMemory;C.client.memoryTotalKbytes=""+q*1E6}K&&D&&!_.S("web_it_context_set_original_url_ks")&&
(W.originalUrl=DRo(_.lL.location.href,D).toString());_.S("web_gcf_hashes_innertube")&&(M=s7q())&&(v=M.coldConfigData,q=M.coldHashData,M=M.hotHashData,C.client.configInfo=C.client.configInfo||{},v&&(C.client.configInfo.coldConfigData=v),q&&(C.client.configInfo.coldHashData=q),M&&(C.client.configInfo.hotHashData=M));v=_.oK(_.lL.location.href);!_.S("web_populate_internal_geo_killswitch")&&v.internalcountrycode&&(W.internalGeo=v.internalcountrycode);!_.S("web_populate_client_screen_killswitch")&&d&&(W.clientScreen=
d);W.clientName==="MWEB"||W.clientName==="WEB"?(W.mainAppWebInfo||(W.mainAppWebInfo={}),W.mainAppWebInfo.graftUrl=D||_.lL.location.href,_.S("kevlar_woffle")&&_.ZU.instance&&(D=_.ZU.instance,W.mainAppWebInfo.pwaInstallabilityStatus=!D.appInstalledEventFired&&D.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),W.mainAppWebInfo.webDisplayMode=uQq(),W.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):W.clientName==="TVHTML5"&&
(!_.S("web_lr_app_quality_killswitch")&&(D=_.E3("LIVING_ROOM_APP_QUALITY"))&&(W.tvAppInfo=Object.assign(W.tvAppInfo||{},{appQuality:D})),D=_.E3("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(W.tvAppInfo=Object.assign(W.tvAppInfo||{},{certificationScope:D}));!_.S("web_populate_time_zone_itc_killswitch")&&(D=Yxq())&&(W.timeZone=D);(D=qxq())?W.experimentsToken=D:delete W.experimentsToken;W=$BH();D=_.dRn();D=(0,_.k$.getValues)(D.tokenJars);C.request=Object.assign({},C.request,{internalExperimentFlags:W,consistencyTokenJars:D});
!_.S("web_prequest_context_killswitch")&&(W=_.E3("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(C.request.externalPrequestContext=W);D=_.jy();W=D.getFlag(58);D=D.get("gsml","");C.user=Object.assign({},C.user);W&&(C.user.enableSafetyMode=W);D&&(C.user.lockedSafetyMode=!0);_.S("warm_op_csn_cleanup")?l&&(K=_.AC())&&(C.clientScreenNonce=K):!K&&(K=_.AC())&&(C.clientScreenNonce=K);u&&(C.clickTracking={clickTrackingParams:u});if(u=_.lZ("yt.mdx.remote.remoteClient_"))C.remoteClient=u;_.YO.getInstance().setLocationOnInnerTubeContext(C);
try{var G=csq(),t=G.bid;delete G.bid;C.adSignalsInfo={params:[],bid:t};for(var x=_.y(Object.entries(G)),O=x.next();!O.done;O=x.next()){var a=_.y(O.value),f=a.next().value,B=a.next().value;G=f;t=B;u=void 0;(u=C.adSignalsInfo.params)==null||u.push({key:G,value:""+t})}var p,V;if(((p=C.client)==null?void 0:p.clientName)==="TVHTML5"||((V=C.client)==null?void 0:V.clientName)==="TVHTML5_UNPLUGGED"){var m=_.E3("INNERTUBE_CONTEXT");m.adSignalsInfo&&(C.adSignalsInfo.advertisingId=m.adSignalsInfo.advertisingId,
C.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",C.adSignalsInfo.limitAdTracking=m.adSignalsInfo.limitAdTracking)}}catch(Z){_.Xm(Z)}return C};
_.I1H=function(u){var K=new A_(_.E3("ONE_PICK_URL",""));K.urlParamMap_.set("hostId",u);(u=_.E3("GAPI_LOCALE"))&&K.urlParamMap_.set("hl",u);(u=_.E3("SESSION_INDEX"))&&K.urlParamMap_.set("authuser",u);(u=_.E3("DELEGATED_SESSION_ID"))&&K.urlParamMap_.set("groupId",u);return K};
sAH=function(){var u=_.GB(),K=u.resolve(_.XQ);u=u.resolve(_.md);return new yAH(K,u)};
W9o=function(u){if(window.IntersectionObserver)return new oR9(u,400);throw new TypeError("$f");};
M0H=function(){var u=Hammer.TouchAction,K=u.prototype.preventDefaults;u.prototype.preventDefaults=function(l){var D=this.actions.indexOf("pan-down")>-1;if(!D)return K.call(this,l);if(!HDq){var d=l.srcEvent;l=l.direction;var C;if((C=this.manager)==null?0:C.session.prevented)d.preventDefault();else if(D&&l&Hammer.DIRECTION_DOWN)return this.preventSrc(d)}}};
q8R=function(u){if(!u||u.size===0)return Hammer.DIRECTION_ALL;if(u.size===2){if(u.has("up")&&u.has("down"))return Hammer.DIRECTION_VERTICAL;if(u.has("right")&&u.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(u.size===1){if(u.has("up"))return Hammer.DIRECTION_UP;if(u.has("down"))return Hammer.DIRECTION_DOWN;if(u.has("right"))return Hammer.DIRECTION_RIGHT;if(u.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.nR9=function(){return $RH?Promise.resolve($RH):new Promise(function(u,K){var l=self.indexedDB.open("swpushnotificationsdb");l.onerror=K;l.onsuccess=function(){var D=l.result;if(D.objectStoreNames.contains("swpushnotificationsstore"))$RH=D,u($RH);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.nR9()};
l.onupgradeneeded=rAh})};
rAh=function(u){u=u.target.result;u.objectStoreNames.contains("swpushnotificationsstore")&&u.deleteObjectStore("swpushnotificationsstore");u.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
Gzq=function(u){var K=vRZ(),l;return _.H(function(D){switch(D.nextAddress){case 1:return _.Qg(D,2),D.yield(u.match(K,{cacheName:"yt-appshell-assets"}),4);case 4:l=D.yieldResult;_.I$(D,3);break;case 2:_.iY(D);case 3:return D.return(l)}})};
vRZ=function(){var u=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?t0b.registration.scope:xRb;u.endsWith("/")&&(u=u.slice(0,-1));return u+"/app_shell_home"};
S8w=function(u){u.map(function(K){return K.source}).join("|")};
_.bDR=function(u){return _.H(function(K){return K.return(Gzq(u))})};
ODL=function(){var u=window.caches,K;return _.H(function(l){if(l.nextAddress==1)return l.yield(_.bDR(u),2);K=l.yieldResult;return l.return(!!K)})};
f1b=function(){_.H(function(u){if(u.nextAddress==1){if(cAr)return u.jumpTo(0);cAr=!0;if(_.S("enable_system_health_primes_monitoring"))return _.zB(a1r,3E4),zUq(),u.return();if(!(Math.random()<_.Sg("web_system_health_fraction")))return u.jumpTo(0);eUr={heightPixels:screen.height,widthPixels:screen.width};h_&&!isNaN(h_.jsHeapSizeLimit)&&(eUr.memoryTotalKbytes=String(Math.round(h_.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(eUr.devicePixelRatio=window.devicePixelRatio);return u.yield(RUH(),4)}_.zB(a1r,
3E4);return u.yield(URo(),0)})};
RUH=function(){return _.H(function(u){if(u.nextAddress==1)return Ed.intersectionObserverPresent="IntersectionObserver"in window,Ed.serviceWorkerPresent="serviceWorker"in navigator,Ed.webSharePresent="share"in navigator,Ed.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Ed.cacheStoragePresent="caches"in window,Ed.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Ed.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Ed.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Lc&&Lc.webkitTemporaryStorage&&"queryUsageAndQuota"in Lc.webkitTemporaryStorage,Ed.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",u.yield(e8Z(),2);Ed.indexedDbPresent=u.yieldResult;Ed.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Ed.broadcastChannelPresent="BroadcastChannel"in window;Ed.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Ed.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Ed.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.TG(u)})};
a1r=function(){var u=9E4+Math.random()*2E3;_.Gr()>u||(_.S("enable_system_health_primes_monitoring")?zUq():URo())};
URo=function(){var u;return _.H(function(K){if(K.nextAddress==1)return K.yield(QAr(),2);u=K.yieldResult;_.YE("systemHealthCaptured",u);_.TG(K)})};
zUq=function(){var u={metric:{}},K=P3H();K.networkEvents.length&&(u.metric.networkEvents=JAZ(K));_.YE("systemHealthCaptured",u)};
QAr=function(){var u,K,l,D,d,C,W,M,q,v;return _.H(function(G){switch(G.nextAddress){case 1:u={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)};K=window.screen;_.S("enable_is_extended_monitoring")&&K&&"isExtended"in K&&(u.isExtended=!!K.isExtended);l={metric:{staticContext:eUr,dynamicContext:u,webMetric:jAb,webApiSupport:Ed}};
if(D=_.AC())l.csn=D;h_&&(l.metric.webMetric.currentHeapKbytes=Math.round(h_.usedJSHeapSize/1E3));window.matchMedia&&(l.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,l.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,l.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Lc&&typeof Lc.getBattery==="function")){G.jumpTo(2);break}return G.yield(Lc.getBattery(),3);case 3:if(d=
G.yieldResult)l.metric.dynamicContext.chargingStatus=d.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(l.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Ed.storageEstimatePresent)return G.yield(navigator.storage.estimate(),8);if(!Ed.webkitTemporaryStoragePresent){G.jumpTo(5);break}return G.yield(BPb(),7);case 7:C=G.yieldResult;G.jumpTo(5);break;case 8:C=G.yieldResult;case 5:return l.metric.dynamicContext.deviceStorageQuotaMbytes=((W=C)==null?0:W.quota)?String(Math.round(C.quota/
1048576/10)*10):"-1",l.metric.dynamicContext.deviceStorageUsageMbytes=((M=C)==null?0:M.usage)?String(Math.round(C.usage/1048576/10)*10):"-1",q=l.metric.dynamicContext,G.yield(ODL(),9);case 9:return q.hasAppShell=G.yieldResult,v=P3H(),v.networkEvents.length&&(l.metric.networkEvents=JAZ(v)),G.return(l)}})};
BPb=function(){return new Promise(function(u){var K;Ed.webkitTemporaryStoragePresent&&(K=Lc.webkitTemporaryStorage)!=null&&K.queryUsageAndQuota?Lc.webkitTemporaryStorage.queryUsageAndQuota(function(l,D){u({usage:l,quota:D})}):u(void 0)})};
_.ui=function(u){u&=16777215;u=[(u&16711680)>>16,(u&65280)>>8,u&255];return pBL(u[0],u[1],u[2])};
_.Kg=function(u){u=[(u&16711680)>>>16,(u&65280)>>>8,u&255,(u&4278190080)>>>24];var K=_.iDb(u,function(l){return l==(l&255)});
u[3]=(u[3]/255).toFixed(3);if(!K)throw Error("ag`"+u.join(","));return"rgba("+u.join(",")+")"};
_.TPr=function(u){return[(u&16711680)>>>16,(u&65280)>>>8,u&255]};
_.wBL=function(u){u=u.map(function(K){K/=255;return K<=.03928?K/12.92:Math.pow((K+.05)/1.05,2.4)});
return u[0]*.2126+u[1]*.7152+u[2]*.0722};
li=function(u,K){u=_.TPr(u);return"rgba("+u[0]+", "+u[1]+", "+u[2]+", "+K+")"};
_.F9r=function(){try{return!!self.localStorage}catch(u){return!1}};
kzH=function(){if(V0r())_.hV(Error("bg"));else{var u=document.createElement("iframe");u.style.display="none";var K=K===void 0?window.location.href:K;var l=_.AP(_.E3("PERSIST_IDENTITY_IFRAME_URL"));K=l?l:(new URL(K)).host.indexOf("studio")===0?_.Oy(gRh,"persist_identity"):_.Oy(NPy,"persist_identity");_.Nbh(u,1,K);u.id="persist_identity";var D;(D=document.body)==null||D.appendChild(u)}};
V0r=function(){var u=ZDq;u||(u=document.querySelector("#persist_identity"));return u};
Y8y=function(){var u=!1;try{u=!!window.sessionStorage.getItem("session_logininfo")}catch(K){u=!0}return(_.E3("INNERTUBE_CLIENT_NAME")==="WEB"||_.E3("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&u};
AAb=function(u,K){if(!Y8y())return!1;K||(K=_.E3("LOGIN_INFO"));return K?(u.session_logininfo=K,!0):!1};
mRq=function(u,K){u=u===void 0?!1:u;if((K===void 0||!K)&&XBZ!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.L0("LOG_STICKINESS",!1)){K=_.AC();var l=_.Yr(),D={identityStickinessData:{initialState:XBZ}};K&&l&&_.MK(K,l,D)}if(K=V0r())if(l=K.src?(new URL(K.src)).origin:"*",u){var d;(d=K.contentWindow)==null||d.postMessage({action:"clear"},l)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(u=window.sessionStorage.getItem("session_logininfo"))){var C;(C=K.contentWindow)==null||C.postMessage({loginInfo:u},l)}};
_.Dv=function(u){u=u===void 0?!0:u;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.h8("LOGIN_INFO",""),u&&window.sessionStorage.setItem("from_switch_account","1"),mRq(!0,u)}catch(K){}};
hUw=function(u){u&&(u.startsWith("https://accounts.google.com/AddSession")?_.Dv():u.startsWith("https://accounts.google.com/ServiceLogin")?_.Dv():u.startsWith("https://myaccount.google.com")&&_.lr(u).getPath().endsWith("/youtubeoptions")&&_.Dv())};
dn=function(u,K){hUw(u);if(_.L0("LOGGED_IN",!0)&&Y8y()){var l=N3R(u);l==null&&(l={});AAb(l,K)&&_.qB(u,l)}};
ERb=function(){function u(K){for(K=K.target;K&&K.nodeName!=="A";)if(K=K.parentNode,!(K&&K instanceof HTMLElement))return;if(K&&!K.hasAttribute("download")&&K.getAttribute("rel")!=="external"&&K.href)return K.href}
document.addEventListener("mousedown",function(K){K.button!==0&&(K=u(K))&&dn(K)});
document.addEventListener("click",function(K){(K=u(K))&&dn(K)})};
K8Z=function(){var u=new L9L;try{if(_.L0("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(M){u.increment(5,!1);return}if(_.E3("LOGIN_INFO")){var K=uEZ?uEZ:window.location;_.E3("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&kzH();var l=N3R(K.href);l==null&&(l={});var D=l.session_logininfo,d=Number(window.sessionStorage.getItem("stickiness_reload")),C=D===_.E3("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
d>=2||C)d>=2?u.increment(2,C):C?u.increment(7,C):window.sessionStorage.getItem("session_logininfo")||(u.increment(3,C),XBZ="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.E3("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.E3("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))u.increment(4,C),window.sessionStorage.removeItem("stickiness_reload");
else if(d<2){window.sessionStorage.setItem("stickiness_reload",String(d+1));var W=K.href;W=_.$s(W,"sttick");dn(W,window.sessionStorage.getItem("session_logininfo"));W=_.Wv(W,{sttick:d});u.increment(d,C);_.huZ(K,W)}}else u.increment(6,!1)}else _.Dv(!1)}catch(M){}};
_.Cg=function(u,K,l,D,d){K=K===void 0?{}:K;l=l===void 0?"":l;D=D===void 0?window:D;u=_.Hv(u,K);dn(u);l=_.ES(u+l,d);_.huZ(D.location,l)};
_.lth=function(u,K,l,D,d){d=d===void 0?!1:d;l&&_.qB(u,l);l=_.ES(u);var C=_.Yu(l);u!=C&&_.D_(Error("cg`"+u));u=C;K=K||lI(u).toString(36);try{if(d)return d=u,d=DEL(d),dn(d),_.s2(window,d,K,"attributionsrc")}catch(W){_.uZ(W)}dn(u);return _.s2(window,l,K,D)};
Dxb=function(u){if(u.urlEndpoint){if(u=_.oK(u.urlEndpoint.url),u.adurl)return rv(u.adurl)}else if(u.watchEndpoint)return"//www.youtube.com/watch?v="+u.watchEndpoint.videoId;return null};
dxw=function(u){if(!u||!u.reportingPings)return null;var K={};u.reportingPings.forEach(function(l){l.pingType in K?K[l.pingType].push(l.url):K[l.pingType]=[l.url]});
return{adpings:Kfq(K)}};
_.Ib=function(){return{isShellLoad:_.L0("IS_SHELL_LOAD",!1)}};
Itw=function(){navigator.serviceWorker.getRegistrations().then(function(u){u.forEach(CBb)})};
CBb=function(u){u&&_.yan(smL,u.scope)};
_.yan=function(u,K){K={scope:K||_.bZ("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.VS(u),K)};
yl=function(u,K,l,D){if(K&&K.serializedYpcCujLoggingParams){if(l){var d={};d.transactionErrorType=l;D&&(d.errorMessage=D);K.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:d}}}l={};l.ypcCujContext=K;u=_.R7("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",u,l);_.Ud(_.fc(),u,"FLOW_TYPE_YPC_ACQUISITION")}};
_.o_q=function(u,K,l,D){var d={};d.serializedTransactionFlowLoggingParams=K;l&&(d.errorType=l);D&&(d.errorMessage=D);_.YE(u,d);_.AV()};
_.W8q=function(u){u&&_.o_q("transactionFlowStarted",u)};
_.HZq=function(u){u&&_.o_q("transactionFlowCancelled",u)};
_.s9=function(u,K,l){K&&_.o_q("transactionFlowFailed",K,u,l)};
M$o=function(u){var K=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");K&&(K.inert=u)};
_.ob=function(){this.megabloxUrl_=null};
_.WF=function(u){try{var K=qsr==null?void 0:qsr.composedPath(u)}catch(l){K=u.composedPath?u.composedPath():[]}return K&&K.length>0?K:u.composedPath?u.composedPath():[]};
_.HF=function(u){return _.WF(u)[0]};
_.qn=function(u){if(!(u instanceof Element))return null;u=u.classList?Array.from(u.classList):void 0;if(!u)return null;var K=u.indexOf("style-scope");return K>-1&&K+1<u.length?u[K+1]:null};
$H=function(u){if(!(u instanceof HTMLElement))return null;var K=u&&(u.$$||u.polymerController)?u.tagName.toLowerCase():null;return K?K:_.qn(u)};
$xq=function(u,K){return u.replace(/[^a-z]*[^\s]+/g,function(l){return l+".style-scope."+K})};
n_n=function(u,K){return K?u.split(",").map(function(l){return $xq(l.trim(),K)}).join(", "):u};
_.rn=function(u){var K,l,D,d;return(d=(D=(l=(K=u.root)!=null?K:u.shadowRoot)!=null?l:u.__shady_native_shadowRoot)!=null?D:u.__shady_shadowRoot)!=null?d:u};
vF=function(u){return u instanceof ShadowRoot?ShadowRoot:u instanceof DocumentFragment?DocumentFragment:u instanceof Document?Document:HTMLElement};
rar=function(u){var K,l,D;return(D=(l=(K=u.parentElement)!=null?K:u.__shady_native_parentElement)!=null?l:u.__shady_parentElement)!=null?D:null};
v_H=function(u){var K,l,D;return(D=(l=(K=u.parentNode)!=null?K:u.__shady_native_parentNode)!=null?l:u.__shady_parentNode)!=null?D:null};
Gfr=function(u){var K,l,D;return(D=(l=(K=u.__shady_parentNode)!=null?K:u.__shady_native_parentNode)!=null?l:u.parentNode)!=null?D:null};
t$h=function(u){var K,l;return(l=(K=v_H(u))!=null?K:u.host)!=null?l:null};
xxn=function(u){var K,l,D;return(D=(l=(K=u.nextSibling)!=null?K:u.__shady_native_nextSibling)!=null?l:u.__shady_nextSibling)!=null?D:null};
Sso=function(u){var K,l,D;return(D=(l=(K=u.previousSibling)!=null?K:u.__shady_native_previousSibling)!=null?l:u.__shady_previousSibling)!=null?D:null};
bZZ=function(u){var K,l,D;return(D=(l=(K=u.nextElementSibling)!=null?K:u.__shady_native_nextElementSibling)!=null?l:u.__shady_nextElementSibling)!=null?D:null};
OZn=function(u){var K,l,D;return(D=(l=(K=u.previousElementSibling)!=null?K:u.__shady_native_previousElementSibling)!=null?l:u.__shady_previousElementSibling)!=null?D:null};
ca9=function(u){var K,l,D;return new Set([].concat(_.Am((K=u.children)!=null?K:[]),_.Am((l=u.__shady_native_children)!=null?l:[]),_.Am((D=u.__shady_children)!=null?D:[])))};
at9=function(u){var K,l,D;return new Set([].concat(_.Am((K=u.childNodes)!=null?K:[]),_.Am((l=u.__shady_native_childNodes)!=null?l:[]),_.Am((D=u.__shady_childNodes)!=null?D:[])))};
z0w=function(u){if(!u)return null;var K=_.qn(u);if(!K){var l;return(l=Node.prototype.getRootNode)==null?void 0:l.call(u)}K=K.toUpperCase();for(u=rar(u);u&&u.tagName!==K;)u=rar(u);return u?_.rn(u):null};
e0R=function(u){for(;u&&!(u instanceof HTMLElement);)u=t$h(u);return u};
R0w=function(u){var K=e0R(u);return u===K?_.qn(u):K?$H(K):null};
Uxn=function(u){return(u=e0R(u))?$H(u):null};
fto=function(u){if(u instanceof Comment)return!1;if(u instanceof Text){var K,l;if(((l=(K=u.textContent)==null?void 0:K.trim())!=null?l:"")==="")return!1}return!0};
GQ=function(u,K,l){var D=K(u);for(l=l===void 0?Uxn(u):l;D&&(R0w(D)!==l||!fto(D));)u=D,D=K(u);return D};
Qmq=function(u,K,l){if(!K)return null;u=Uxn(u);return R0w(K)===u&&fto(K)?K:GQ(K,l,u)};
PBb=function(u){return GQ(u,Gfr,_.qn(u))};
JaH=function(u){return GQ(u,bZZ)};
jmq=function(u){return GQ(u,xxn)};
BWn=function(u){return GQ(u,OZn)};
pR9=function(u){return GQ(u,Sso)};
iZL=function(u){return Qmq(u,u.firstChild||u.__shady_native_firstChild||u.__shady_firstChild||null,xxn)};
TWy=function(u){var K,l,D;var d=(D=(l=(K=u.firstElementChild)!=null?K:u.__shady_native_firstElementChild)!=null?l:u.__shady_firstElementChild)!=null?D:null;return Qmq(u,d,bZZ)};
wRq=function(u){var K,l,D;var d=(D=(l=(K=u.lastChild)!=null?K:u.__shady_native_lastChild)!=null?l:u.__shady_lastChild)!=null?D:null;return Qmq(u,d,Sso)};
F8r=function(u){var K,l,D;var d=(D=(l=(K=u.lastElementChild)!=null?K:u.__shady_native_lastElementChild)!=null?l:u.__shady_lastElementChild)!=null?D:null;return Qmq(u,d,OZn)};
V$n=function(u){var K=Uxn(u);return Array.from(at9(u)).filter(function(l){return R0w(l)===K})};
g_q=function(u){var K=$H(u);return Array.from(ca9(u)).filter(function(l){return _.qn(l)===K})};
_.tU=function(u,K,l){if(u instanceof HTMLElement&&_.qn(u)===l){var D=Array.from(u.classList).indexOf("style-scope");if(D===-1)u.classList.add("style-scope"),u.classList.add(K);else if(!(D+1>=u.classList.length)){D=u.classList[D+1];var d,C;u==null||(d=u.classList)==null||(C=d.replace)==null||C.call(d,D,K)}}if(u instanceof HTMLElement||u instanceof DocumentFragment)for(d=_.y(ca9(u)),C=d.next();!C.done;C=d.next())_.tU(C.value,K,l);return u};
xH=function(u,K){if(u instanceof HTMLElement&&_.qn(u)===K){var l=Array.from(u.classList).indexOf("style-scope");l===-1||l+1>=u.classList.length||u.classList.remove("style-scope",u.classList[l+1])}if(u instanceof HTMLElement||u instanceof DocumentFragment){l=_.y(u.children);for(var D=l.next();!D.done;D=l.next())xH(D.value,K)}return u};
_.NWq=function(u,K){return vF(u).prototype.appendChild.call(u,K)};
kfZ=function(u,K){if(u===K)return!0;u=at9(u);return Array.from(u).some(function(l){return kfZ(l,K)})};
_.bi=function(u,K){if(u instanceof S8)return u;(K==null?0:K.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(u,"ownerDocument")&&Object.defineProperty(u,"ownerDocument",{get:function(){return window.document}});
return new S8(u)};
Ysq=function(){var u=S8.prototype,K=[].concat(_.Am(ZZq?[]:["getRootNode"]),["setAttribute","removeAttribute"]);K=_.y(K);for(var l=K.next(),D={};!l.done;D={method$jscomp$51:void 0},l=K.next())D.method$jscomp$51=l.value,u[D.method$jscomp$51]=function(d){return function(){return this.host[d.method$jscomp$51].apply(this.host,arguments)}}(D)};
XRb=function(){var u=S8.prototype,K=[].concat(_.Am(ZZq?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Am(Aay?[]:["querySelector","querySelectorAll"]));K=_.y(K);for(var l=K.next(),D={};!l.done;D={method$jscomp$52:void 0},l=K.next())D.method$jscomp$52=l.value,u[D.method$jscomp$52]=function(d){return function(){return this.root[d.method$jscomp$52].apply(this.root,arguments)}}(D)};
E_r=function(){var u=S8.prototype,K=[].concat(_.Am(mxn?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Am(h0o?[]:["parentNode"]));K=_.y(K);for(var l=K.next(),D={};!l.done;D={prop$jscomp$62:void 0},l=K.next())D.prop$jscomp$62=l.value,Object.defineProperty(u,D.prop$jscomp$62,{get:function(d){return function(){return this.host[d.prop$jscomp$62]}}(D),
configurable:!0})};
Kjw=function(){var u=S8.prototype,K=["activeElement"].concat(_.Am(mxn?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Am(L8y?[]:["children"]),_.Am(ucR?[]:["lastChild"]));K=_.y(K);for(var l=K.next(),D={};!l.done;D={prop$jscomp$63:void 0},l=K.next())D.prop$jscomp$63=l.value,Object.defineProperty(u,D.prop$jscomp$63,{get:function(d){return function(){return this.root[d.prop$jscomp$63]}}(D),
configurable:!0})};
lXq=function(){for(var u=S8.prototype,K=_.y(["innerHTML","textContent"]),l=K.next(),D={};!l.done;D={prop$jscomp$64:void 0},l=K.next())D.prop$jscomp$64=l.value,Object.defineProperty(u,D.prop$jscomp$64,{get:function(d){return function(){return this.root[d.prop$jscomp$64]}}(D),
set:function(d){return function(C){this.root[d.prop$jscomp$64]=C}}(D),
configurable:!0})};
DgR=function(u){var K=S8.prototype;u=_.y(Object.entries(u));for(var l=u.next(),D={};!l.done;D={fn$jscomp$387:void 0},l=u.next()){var d=_.y(l.value);l=d.next().value;d=d.next().value;D.fn$jscomp$387=d;K[l]=function(C){return function(){return C.fn$jscomp$387.apply(null,[this.host.node||this.host].concat(_.Am(arguments)))}}(D)}};
CsR=function(){for(var u=S8.prototype,K=_.y(Object.entries(dgZ)),l=K.next(),D={};!l.done;D={fn$jscomp$388:void 0},l=K.next()){var d=_.y(l.value);l=d.next().value;d=d.next().value;D.fn$jscomp$388=d;Object.defineProperty(u,l,{get:function(C){return function(){return C.fn$jscomp$388.apply(null,[this.host.node||this.host].concat(_.Am(arguments)))}}(D),
configurable:!0})}};
_.O9=function(u){return u instanceof IXH||u instanceof Document?u:new IXH(u)};
ywb=function(){for(var u=IXH.prototype,K=_.y("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),l=K.next(),D={};!l.done;D={method$jscomp$53:void 0},l=K.next())D.method$jscomp$53=l.value,u[D.method$jscomp$53]=function(d){return function(){return HTMLElement.prototype[d.method$jscomp$53].call.apply(HTMLElement.prototype[d.method$jscomp$53],[this.node].concat(_.Am(arguments)))}}(D)};
s49=function(){for(var u=IXH.prototype,K=_.y("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),l=K.next(),D={};!l.done;D={prop$jscomp$65:void 0},l=K.next())D.prop$jscomp$65=l.value,Object.defineProperty(u,D.prop$jscomp$65,{get:function(d){return function(){var C;return(C=this.node["__shady_native_"+d.prop$jscomp$65])!=null?C:this.node[d.prop$jscomp$65]}}(D),
configurable:!0})};
_.cF=function(u,K,l){l===void 0&&(l=!u.classList.contains(K));l?u.classList.add(K):u.classList.remove(K)};
_.ab=function(u,K,l){l===void 0&&(l=!u.hasAttribute(K));if(K==="class")throw Error("gg");l?_.O9(u).setAttribute(K,""):_.O9(u).removeAttribute(K)};
oWy=function(u){return(u.localName!=="slot"?[]:(0,_.zQ)(u).assignedNodes({flatten:!0})).filter(function(K){return K.nodeType===Node.ELEMENT_NODE})};
_.Wjo=function(u){return(u=_.bi(u).querySelector("slot"))&&u.localName==="slot"?oWy(u):[]};
_.e8=function(u,K){window.ShadyCSS&&window.ShadyCSS.styleSubtree(u,K)};
fg=function(u,K){var l=K.bind(u);return function(D){l(D,D.detail)}};
_.Ql=function(u,K){var l=HKH.get(u);l||(l=new WeakMap,HKH.set(u,l));if(l.has(K))return l.get(K);if(_.S("web_fi_listen_disable_bound_fn_helper")){var D=K.bind(u);u=function(d){D(d,d==null?void 0:d.detail)}}else u=fg(u,K);
l.set(K,u);return u};
$gR=function(u,K){MOw(u);u.created[qar].push(K)};
MOw=function(u){if(!u.created||!u.created[qar]){var K=u.created,l=K?[K]:[];u.created=function(){for(var D=_.y(l),d=D.next();!d.done;d=D.next())d.value.apply(this)};
u.created[qar]=l}};
nWy=function(u){return function(){var K=_.uY.apply(0,arguments);return function(l,D,d){u.apply(null,_.Am(K))(l,D,d)}}};
rwR=function(){return function(){var u=_.uY.apply(0,arguments);return function(K,l,D){oA9.apply(null,_.Am(u))(K,l,D)}}};
_.e=function(u){return rwR()(u)};
_.R=function(){return nWy(qRq).apply(null,_.Am(_.uY.apply(0,arguments)))};
_.PF=function(u){return _.S("pbcm_fi_listen_decorators")?vWH(u):nWy(HaL)(u)};
vWH=function(u){return function(K,l){$gR(K,function(){var D=this[l],d=_.S("web_fi_listen_disable_bound_fn_helper")?function(C){D(C,C.detail)}.bind(this):fg(this,D);
Gx9.has(u)?Yf(this.hostElement,u,d):this.hostElement.addEventListener(u,d)})}};
_.JU=function(){return nWy(MQZ).apply(null,_.Am(_.uY.apply(0,arguments)))};
_.U=function(u){u=u===void 0?{}:u;return nWy(WIq)(u)};
_.j8=function(u){if(u.hostElement&&u!==u.hostElement){var K=_.wM(u.hostElement);K=u.renderIdom?K:K.shadowRoot}K||(u=u.root,K=u instanceof Node?_.wM(u):null);return K};
_.BF=function(u){return tOo?xgo(u):function(K,l){Object.defineProperty(K,l,{get:function(){var D;return(D=_.j8(this))==null?void 0:D.querySelector(u)},
enumerable:!0,configurable:!0})}};
xgo=function(u){return function(K,l){Object.defineProperty(K,l,{get:function(){var D,d=(D=_.bi(this.hostElement))==null?void 0:D.querySelector(u);if(d)return d;var C;return(C=_.j8(this))==null?void 0:C.querySelector(u)},
enumerable:!0,configurable:!0})}};
_.pg=function(u){return tOo?Saq(u):function(K,l){Object.defineProperty(K,l,{get:function(){var D;return(D=_.j8(this))==null?void 0:D.querySelectorAll(u)},
enumerable:!0,configurable:!0})}};
Saq=function(u){return function(K,l){Object.defineProperty(K,l,{get:function(){var D,d=(D=_.bi(this.hostElement))==null?void 0:D.querySelectorAll(u);if(d==null?0:d.length)return d;var C;return(C=_.j8(this))==null?void 0:C.querySelectorAll(u)},
enumerable:!0,configurable:!0})}};
bKo=function(u){return function(K){if(![_.qN,_.Q].includes(Object.getPrototypeOf(K.prototype).constructor))throw Error("hg");KIH(Object.assign({},typeof u!=="string"?u:{is:u,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(K)}};
_.TQ=function(){var u=u===void 0?{}:u;return function(K){if(![$r,_.ii].includes(Object.getPrototypeOf(K.prototype).constructor))throw Error("ig");l0q(Object.assign({},u,{disableInheritanceCheck:!0}))(K)}};
cwo=function(u,K){OK9[u]!=null||(OK9[u]=new Set);OK9[u].add(K)};
_.wn=function(){var u=_.JU.apply(null,_.Am(_.uY.apply(0,arguments)));return function(K,l){cwo(K.is,l);u(K,l)}};
gn=function(u,K,l){if(Fr(u)&&!aXR.has(K)){K=K.replace(/^JSC\$[\d]+_/,"");K=K.replace(/\.\d+(\.|$)/g,function(C,W){return".#"+W});
Vl[u]!=null||(Vl[u]={});var D,d;(D=Vl[u])[d=K]!=null||(D[d]=new Set);Vl[u][K].has(l)||(Vl[u][K].add(l),_.YE("polymerPropertyAccessEvent",{componentName:u,propertyName:K,accessType:l}))}};
zn9=function(){return _.S("polymer_property_access_logging_debug")||_.S("polymer_enable_property_access_logging")};
Fr=function(u){if(_.S("polymer_property_access_logging_debug"))return!0;if(!_.S("polymer_enable_property_access_logging"))return!1;enH||(enH=Date.now());return(lI(u)+enH)%100<_.Sg("polymer_property_access_logging_percent")};
RnH=function(u,K){return Fr(K)&&u.hostElement.loggingStatus?new Proxy(u,{get:function(l,D,d){if(l.hostElement.loggingStatus.bypassProxyController)return l[D];l.hostElement.loggingStatus.isExternalGet=!0;var C=l[D];l.hostElement.loggingStatus.isExternalGet=!1;if(C instanceof Function)return function(){var W=_.uY.apply(0,arguments);try{return l.hostElement.loggingStatus.currentExternalCall=D,gn(K,D,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),C.apply(this===d?l:this,W)}finally{l.hostElement.loggingStatus.currentExternalCall=
void 0}};
gn(K,D,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return C},
set:function(l,D,d){if(l.hostElement.loggingStatus.bypassProxyController)return l[D]=d,!0;l.hostElement.loggingStatus.isRendererStamper?gn(K,D,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):l.hostElement.loggingStatus.isDeclarativeExternal||gn(K,D,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{l.hostElement.loggingStatus.currentExternalSet=D,l[D]=d}finally{l.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):u};
Ugy=function(u,K){u&&u.loggingStatus&&!u.loggingStatus.isDeclarativeExternal&&!u.loggingStatus.isExternalGet&&u.loggingStatus.currentExternalSet!==K&&gn(u.tagName.toLowerCase(),K,"PROPERTY_ACCESS_GET_INTERNAL")};
Nn=function(u,K,l){u&&(l||u.loggingStatus&&!u.loggingStatus.isInitializing&&!u.loggingStatus.isDefiningPropertyAccessor&&u.loggingStatus.currentExternalSet!==K)&&gn(u.tagName.toLowerCase(),K,"PROPERTY_ACCESS_SET_INTERNAL")};
fXy=function(){return{_definePropertyAccessor:function(u,K){var l=this,D=l.hostElement.loggingStatus;D&&(D.isDefiningPropertyAccessor=!0);var d=l[u];d!==void 0&&(l.__data?l._setPendingProperty(u,d):(l.__dataProto!=null||(l.__dataProto={}),l.__dataProto[u]=d));D&&(D.isDefiningPropertyAccessor=!1);Object.defineProperty(this,u,{get:function(){Ugy(l.hostElement,u);return this.__data[u]},
set:function(C){K||this._setPendingProperty(u,C,!0)&&this._invalidateProperties()}})},
created:function(){var u=this._setPendingProperty.bind(this);this._setPendingProperty=function(K,l,D){Nn(this.hostElement,K);return u.apply(this,[K,l,D])}}}};
Q4q=function(u){zn9()&&_.e(kH.prototype)(u.prototype,"__templateBindingLoggingBehavior")};
Psq=function(u,K){if(K.resolvedFactories.length!==u.resolvedFactories.length)return!0;K=_.y(K.resolvedFactories.entries());for(var l=K.next();!l.done;l=K.next()){var D=_.y(l.value);l=D.next().value;D=D.next().value;if(D.providerClass){if(D.providerClass!==u.resolvedFactories[l].providerClass)return!0}else if(D.providerValue){if(D.providerValue!==u.resolvedFactories[l].providerValue)return!0}else if(D.factory!==u.resolvedFactories[l].factory)return!0}return!1};
Jww=function(u,K){u=_.y(u);for(var l=u.next();!l.done;l=u.next())if(l=l.value,l.constructor===Array)Jww(l,K);else{var D=K;D.has(l)||(l.inject&&D.add(l),l.behaviors&&Jww(l.behaviors,D))}};
Zv=function(u,K){var l=u[K];u[K]=function(){var D=_.uY.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(l)return l.apply(this,D)}};
iKr=function(){_.YH.Class=function(l,D){l=j4o(l,D);Zv(l.prototype,"created");return l};
Zv(AU.prototype,"_initializeProperties");Zv(_.Xr.prototype,"_initializeProperties");if(BLo)Zv(p6q,"created");else{var u=function(){Zv(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))u();else{var K=customElements.define;customElements.define=function(l,D,d){K.call(customElements,l,D,d);l==="tp-yt-iron-list"&&(u(),customElements.define=K)}}}};
w69=function(u,K){u.prototype.behaviors=u.prototype.behaviors||[];u.prototype.behaviors.unshift(TLZ.InjectBehavior);u.prototype.provide=K};
_.E9=function(u){return function(K){if(!u.disableElementRegistration){u.noInjection||w69(K,u.providers);var l=K.prototype;l.__templateHelpers||oA9(m3.prototype)(l,"__templateHelpers");l=u.is;Fjn||(Fjn=Date.now());(lI(l)+Fjn)%100<_.Sg("polymer_log_prop_change_observer_percent")&&oA9(hU.prototype)(K.prototype,"__propertyObserverObserver");K.prototype.behaviors=K.prototype.behaviors||[];K.prototype.behaviors.unshift(_.VOq.YtHostElementBehavior);Q4q(K);bKo({is:u.is,notifyObserversOnUndefined:u.notifyObserversOnUndefined!==
!1,fastInit:u.fastInit,template:u.template,disableEnforceFastDefaultValuesCheck:!0})(K)}}};
_.T=function(u){return _.E9({is:u.is,template:u.template,disableElementRegistration:u.disableElementRegistration,cssBuildOptOut:u.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
kxq=function(u,K){if(gW9){u=new u;for(var l=_.y(Object.getOwnPropertyNames(u)),D=l.next();!D.done;D=l.next())D=D.value,K[D]=u[D];for(l=K;l&&l!==Object.prototype;l=Object.getPrototypeOf(l)){D=_.y(Object.getOwnPropertyNames(l));for(var d=D.next();!d.done;d=D.next())d=d.value,u.hasOwnProperty(d)||Object.defineProperty(u,d,NL9(K,d))}}else u.apply(K)};
NL9=function(u,K){return{get:function(){var l=u[K];return l instanceof Function?l.bind(u):l},
set:function(l){u[K]=l}}};
Yar=function(u,K){for(var l=u._noAccessors,D=_.y(Object.getOwnPropertyNames(u)),d=D.next();!d.done;d=D.next())if(d=d.value,!ZKo.has(d))if(l)K[d]=u[d];else{var C=Object.getOwnPropertyDescriptor(u,d);C&&(C.configurable=!0,Object.defineProperty(K,d,C))}};
Awr=function(u,K,l){return function(D){if(l){var d=l();D.model=d}if(u[K])u[K](D,D.detail)}};
Lg=function(u){var K=[];if(typeof u==="string")u.length>0&&K.push.apply(K,_.Am(u.split(".")));else{u=_.y(u);for(var l=u.next();!l.done;l=u.next())l=l.value,typeof l==="string"?K.push.apply(K,_.Am(l.split("."))):K.push(l)}return K};
X6q=function(u,K){if(K[K.length-1]!=="*"&&K[K.length-1]!=="splices"){for(var l=0;l<K.length;l++){if(!u)return;u=u[K[l]]}return u}};
mgq=function(u,K){if(u.length>K.length)return!1;for(var l=0;l<u.length;l++)if(u[l]!==K[l])return!1;return!0};
EWo=function(u,K,l){if(K.type==="compute"){var D=K.getter.bind(l);var d=K.args}else D=function(){return l[K.method.methodName].apply(l,_.Am(_.uY.apply(0,arguments)))},d=K.method.args;
hnr(u,K.propertyKey,D,d,K.value)};
u8h=function(u,K){if(K.readOnly){var l=Object.getOwnPropertyDescriptor(u.model,K.propertyKey);Object.defineProperty(u.model,K.propertyKey,{get:l.get,set:function(){}});
u.model[Ljr(K.propertyKey)]=l.set}};
Kyq=function(u,K,l){if(l){var D=K.propertyKey,d=K.selector;K=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Am(K.selectorArgs.map(function(C){return{type:"path",path:C}})));
hnr(u,D,function(C){var W=_.uY.apply(1,arguments);return d.apply(null,[l.getState()].concat(_.Am(W)))},K)}};
Ddb=function(u,K,l){var D=_.Qi(K.propertyKey)+"-changed";lbb(u,function(d){var C={value:d.value,queueProperty:!0};d.path.split(".").length>1&&(C.path=d.path);l.dispatchEvent(new CustomEvent(D,{detail:C}))},[{type:"wildcard",
path:K.propertyKey}])};
ddb=function(u,K,l){lbb(u,function(){l[K.method.methodName].apply(l,_.Am(_.uY.apply(0,arguments)))},K.method.args)};
Ljr=function(u){return"_set"+(u.charAt(0).toUpperCase()+u.slice(1))};
Ib9=function(){return _.S("enable_track_defined_via_mutable_signal")||Cqq};
yJb=function(){var u,K=kT(function(l){u=l},!1);
return[u,K]};
MpR=function(u){u=u.trim().replace(sry,",").replace(oBq,"$1");var K=u[0];K==="-"&&(K=u[1]);if(K>="0"&&K<="9")return{type:"literal",value:Number(u)};if(K==="'"||K==='"')return{type:"literal",value:u.slice(1,-1)};if(K=u.match(Wyn)){K=K[1];var l=HG9[K];if(l)return{type:l,path:u.slice(0,-(K.length+1))}}return{type:"path",path:u}};
rJh=function(u){var K=u.match(qhb);if(K)return u={methodName:K[1],args:$dy},K[2].trim()&&(K=K[2].replace(nBR,"&comma;").split(","),u.args=K.map(MpR)),u};
vBy=function(u,K,l,D){D=D===void 0?!1:D;K=_.Qi(K);var d=B4;d&&(l=d(l,K,"attribute",u));uT(u,l,K,D)};
uT=function(u,K,l,D){K=Guo(K,D===void 0?!1:D);K===void 0?u.removeAttribute(l):u.setAttribute(l,K)};
Guo=function(u,K){switch(typeof u){case "object":case "function":if(u instanceof Date)return u.toString();if(u){if((K===void 0?0:K)&&!_.S("polymer_reflect_objects_as_boolean_killswitch"))return u?"":void 0;K=window.trustedTypes?window.trustedTypes.isHTML(u)||window.trustedTypes.isScript(u)||window.trustedTypes.isScriptURL(u):void 0;if(K)return u;try{return JSON.stringify(u)}catch(l){_.hV(Error("Eg`"+u))}}break;case "boolean":return u?"":void 0;default:return u!==null&&u!==void 0?u.toString():void 0}};
tph=function(u){if(u===void 0)throw Error("Fg");return u};
cJo=function(u,K,l,D){var d=xdq(D);if(d.length){D=l;var C="property";Shr.test(l)?C="attribute":l[l.length-1]==="$"&&(l=l.slice(0,-1),C="attribute");var W=bGR(d);W&&C==="attribute"&&(l==="class"&&u.hasAttribute("class")&&(W+=" "+u.getAttribute(l)),uT(u,W,l));C==="attribute"&&D==="disable-upgrade$"&&u.setAttribute("disable-upgrade","");u.localName==="input"&&D==="value"&&u.setAttribute("value","");u.removeAttribute(D);C==="property"&&(l=_.P_(l));K=tph(K);OGL(K,C,l,d);return!0}return l.slice(0,3)===
"on-"?(u.removeAttribute(l),(C=K).events!=null||(C.events=[]),K.events.push({name:l.slice(3),value:D}),!0):l==="id"?(K.id=D,!0):!1};
xdq=function(u){for(var K=[],l=0,D;(D=abb.exec(u))!==null;){D.index>l&&K.push({type:"literal",value:u.slice(l,D.index)});var d=D[1][0];l=!!D[2];D=D[3].trim();if(d==="{")throw Error("Gg");(d=rJh(D))?K.push({type:"method",negate:l,signature:d}):K.push({type:"path",negate:l,path:D});l=abb.lastIndex}l&&l<u.length&&(u=u.substring(l))&&K.push({type:"literal",value:u});return K};
bGR=function(u){for(var K="",l=0;l<u.length;l++){var D=u[l];D.type==="literal"&&(K+=D.value)}return K};
OGL=function(u,K,l,D){u.bindings!=null||(u.bindings=[]);u.bindings.push({kind:K,target:l,parts:D})};
fbZ=function(u,K,l){var D=!1;if(u.localName==="template"){D=l;var d=K.stripWhitespace;d=zfH(u,d===void 0?!1:d);var C=u.content.ownerDocument.createDocumentFragment();d.content=C;C.appendChild(u.content);D&&(D.templateInfo=d);D=!0}else u.localName==="slot"&&(K.hasInsertionPoint=!0);if(u.firstChild&&(d=l,u.localName!=="script"&&u.localName!=="style")){C=0;for(var W=u.firstChild;W;){var M=W;if(M.localName==="template"){var q=M.getAttribute("is");if((W=q==="dom-if")||q==="dom-repeat"){M.removeAttribute("is");
q=M.ownerDocument.createElement("ps-"+q);M.parentNode.replaceChild(q,M);q.appendChild(M);var v=Array.from(M.attributes);v=_.y(v);for(var G=v.next();!G.done;G=v.next())G=G.value,W?efH.has(G.name)&&uT(q,G.value,G.name):RfR.has(G.name)?uT(q,G.value,G.name):UdR.has(G.name),M.removeAttribute(G.name);W=q}else W=M}if(W.nodeType===Node.TEXT_NODE){M=void 0;q=u;for(v=W;((M=v.nextSibling)==null?void 0:M.nodeType)===Node.TEXT_NODE;)G=void 0,(G=v).textContent!=null||(G.textContent=""),v.nextSibling.textContent&&
(v.textContent+=v.nextSibling.textContent),q.removeChild(v.nextSibling);if(K.stripWhitespace&&W.textContent&&!W.textContent.trim()){u.removeChild(W);W=W.nextSibling;continue}}fbZ(W,K,{parentIndex:C,parentInfo:d});W.parentNode&&C++;W=W.nextSibling}}var t;if((t=u.hasAttributes)==null?0:t.call(u)){t=l=tph(l);d=!1;C=Array.from(u.attributes);C=_.y(C);for(M=C.next();!M.done;M=C.next())M=M.value,d=cJo(u,t,M.name,M.value)||d;D=d||D}u.nodeType===Node.TEXT_NODE&&(t=xdq(u.textContent),t.length&&(u.textContent=
bGR(t)||" ",l=tph(l),OGL(l,"text","textContent",t),D=!0));l&&D&&(l.infoIndex=K.nodeInfoList.push(l)-1)};
zfH=function(u,K){K={nodeInfoList:[],stripWhitespace:(K===void 0?!1:K)||u.hasAttribute("strip-whitespace")};fbZ(u.content,K);return K};
Qrq=function(u){Object.assign(u,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
JJH=function(u,K,l){K.signalCache!=null||(K.signalCache={});var D=K.signalCache[l];if(!D){var d=l.split(".");D=!Pqq(u,d[0]);if(d.length>1&&D){var C=u.getPathMutationSignal(d);D=function(){var W=XL(u.owner,function(){return u.getWithPath([d[0]])}),M,q=(M=C())==null?void 0:M.value;
return{rootWasDefined:W!==void 0,value:q}}}else D=function(){var W=u.getWithPath(d);
return{rootWasDefined:W!==void 0,value:W}};
K.signalCache[l]=D}return D()};
BF9=function(u,K,l,D,d){K=K.parts.map(function(W,M){if(W.type==="literal"){l.partWasDefined!=null||(l.partWasDefined=[]);var q;(q=l.partWasDefined)[M]||(q[M]=W.value!==void 0);return W.value}var v;if(W.type==="method"){var G,t=(G=(v=l.partWasDefined)==null?void 0:v[M])!=null?G:!1;t||(t=W.signature.args.every(function(a){return a.type==="literal"}));
var x=!1,O=!0;v=W.signature.args.map(function(a){if(a.type==="literal")return a.value;if(a.type!=="path")throw Error("Hg`"+a.type);var f=JJH(u,l,a.path);a=f.value;f=f.rootWasDefined;x||(x=f);O&&(O=f);return a});
t||(t=d===1?O:x);l.partWasDefined!=null||(l.partWasDefined={});l.partWasDefined[M]=t;if(!t)return;v=(M=JJH(u,l,W.signature.methodName).value)&&typeof M==="function"?M.apply(D,v):void 0}else G=JJH(u,l,W.path),v=G.value,l.partWasDefined!=null||(l.partWasDefined={}),(t=l.partWasDefined)[M]||(t[M]=v!==void 0||G.rootWasDefined);W.negate&&(v=!v);return v});
if(K.length===1){var C;return((C=l.partWasDefined)==null?0:C[0])?K[0]:jry}return K.join("")};
pjo=function(u){return typeof u==="object"&&!!u&&"notifyPath"in u&&"canNotifyPath"in u};
iGn=function(u){return typeof u==="object"&&!!u&&"notifyPath"in u};
TFq=function(u){return"polymerController"in u};
wjq=function(u,K){K=""+Lg(K)[0];if(pjo(u))return u.canNotifyPath(K);if(TFq(u)&&pjo(u.polymerController))return u.polymerController.canNotifyPath(K);if(iGn(u)){var l;return!((l=u.properties)==null||!l[K])}if(TFq(u)&&iGn(u.polymerController)){var D;return!((D=u.polymerController.properties)==null||!D[K])}return!1};
Fyq=function(u,K,l){pjo(u)||iGn(u)?u.notifyPath(K,l):TFq(u)&&(pjo(u.polymerController)||iGn(u.polymerController))&&u.polymerController.notifyPath(K,l)};
gBq=function(u,K,l){if(l!==jry){u.kind==="attribute"||u.target!=="textContent"&&(u.target!=="value"||K.localName!=="input"&&K.localName!=="textarea")||(l=l===void 0?"":l);var D,d=(D=VpR.Polymer)==null?void 0:D.sanitizeDOMValue;d&&(l=d(l,u.target,u.kind,K));if(u.kind==="attribute"){u=u.target;if(u==="class"||u==="name"||u==="slot")K=(0,_.zQ)(K);uT(K,l,u)}else if(u=u.target,l!==K[u]||typeof l==="object")K.loggingStatus&&(K.loggingStatus.isDeclarativeExternal=!0,gn(K.localName,u,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
K[u]=l,K.loggingStatus&&(K.loggingStatus.isDeclarativeExternal=!1)}};
NFr=function(u,K,l,D){var d=K.parts[0];if(K.parts.length!==1||d.type!=="path"||!wjq(l,K.target))return!1;var C=_.y(d.path.split(".")),W=C.next().value,M=y5(C);if(Pqq(u,W))return!1;D.signalCache!=null||(D.signalCache={});C=D.signalCache[d.path];var q;C=(q=C)==null?void 0:q().value;if((C==null?void 0:C.path)!==void 0){D=Lg(C.path);var v=Lg(d.path);D=[K.target].concat(_.Am(D.slice(v.length-1)));Fyq(l,D,d.negate?!C.value:C.value);return!0}var G=Kr(u,W);var t=G.getChangeRecordSignal(M),x=!1;C=function(){if(!x){var a=
XL(u.owner,function(){return G.getWithPath([])});
x||(x=a!==void 0)}return{value:t(),rootWasDefined:x}};
D.signalCache[d.path]=C;D.partWasDefined!=null||(D.partWasDefined={});C=C();(v=D.partWasDefined)[0]||(v[0]=C.rootWasDefined);var O=XL(u.owner,function(){return G.getWithPath(M)});
D.partWasDefined[0]&&XL(u.owner,function(){return void gBq(K,l,d.negate?!O:O)});
return!0};
kuL=function(u,K,l,D,d,C){if(!NFr(u,K,l,D)){var W=BF9(u,K,D,d,C);XL(u.owner,function(){return void gBq(K,l,W)})}};
ZGo=function(u,K,l,D,d,C){l=_.y(l);for(var W=l.next(),M={};!W.done;M={infoIndex:void 0},W=l.next()){W=W.value;var q=W.bindings;M.infoIndex=W.infoIndex;W=W.parentInfo;if(q){q=_.y(q);for(var v=q.next(),G={};!v.done;G={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},v=q.next()){G.b$jscomp$253=v.value;if(M.infoIndex===void 0)throw Error("Ig");G.bindingCtx$jscomp$4={};u.effect(function(t,x){return function(){d&&!d()||kuL(u,t.b$jscomp$253,K[x.infoIndex],t.bindingCtx$jscomp$4,D,C)}}(G,M))}}W&&ZGo(u,K,[W],
D,d,C)}};
Yhw=function(u,K){u=(K.parentInfo?Yhw(u,K.parentInfo):u).firstChild;for(var l=0;u;u=u.nextSibling)if(K.parentIndex===l++)return u;throw Error("Jg");};
XjL=function(u,K,l,D){u=document.importNode(u.content,!0);u.__noInsertionPoint=!(D==null?0:D.hasInsertionPoint);for(var d=Array(K.length),C={},W=0;W<K.length;W++){var M=K[W],q=Yhw(u,M);d[W]=q;M.id&&(C[M.id]=q);if(M.templateInfo){var v=q.parentElement;v&&(v.templateInfo=M.templateInfo,v.parentSignalProxy=l,v.eventListenerHost=D.eventListenerHost,v.stampingEnabled=D.enabledSignal)}v=void 0;if((v=M.events)==null?0:v.length)for(v=0;v<M.events.length;v++){var G=M.events[v];AJH(D.eventListenerHost,q,G.name,
G.value,D.getModel)}}ZGo(l,d,K,D.thisCtx,D.enabledSignal,D.methodInvocationRequirement);return{root:u,nodes:d,nodesById:C}};
hfR=function(u,K){u=u();var l;(l=mdZ.ShadyCSS)==null||l.prepareTemplate(u,K);K=zfH(u);return{template:u,nodeInfoList:K.nodeInfoList,hasInsertionPoint:K.hasInsertionPoint}};
uty=function(){EBR=!1;for(var u=lT.length,K=0;K<u;K++){var l=lT[K];if(l)try{l()}catch(D){Promise.resolve().then(function(){throw D;})}}lT.splice(0,u);
LyH+=u};
d$b=function(u){EBR||(EBR=!0,KSH.textContent=(l9w++).toString());lT.push(u);return D$q++};
_.Cr=function(u,K,l){Dp++;u=K?new CNL(Dp,u,K,l):new I9y(Dp,u);df.set(Dp,u);return Dp};
yLH=function(u){(u=df.get(u))&&u.cancel()};
olZ=function(u,K){u=sHq.get(u);return u?(K=u.get(K))?K:null:null};
_.It=function(u,K,l,D){var d=olZ(u,K);if(!d){d=new WSR;var C=sHq.get(u);C||(C=new Map,sHq.set(u,C));C.set(K,d)}u=l.bind(u);d.run(u,D,void 0)};
_.HhZ=function(u,K){var l;(l=olZ(u,K))==null||l.cancel()};
MPZ=function(u){var K;(K=olZ(u,"doRender"))==null||K.flush()};
y2=function(u){var K;return(K=u.hostElement)!=null?K:u};
q_y=function(u){var K=u.indexOf(".");return K===-1?u:u.slice(0,K)};
$$y=function(u,K,l,D,d,C){C=(d=(D=C?q_y(K):K)?K:null)?u.get(d):u.__data[K];d&&C===void 0&&(C=l[K]);_.xs(u.hostElement,FRw(D)+"-changed",{value:C,queueProperty:!0,path:d!=null?d:void 0},{bubbles:!1,composed:!1})};
nlH=function(u,K){u.__isReflecting=!0;vBy(u.hostElement,K,u.__data[K]);u.__isReflecting=!1};
rLZ=function(u){if(u._onIronRequestResizeNotifications){var K=u._onIronRequestResizeNotifications.bind(u);u._onIronRequestResizeNotifications=function(l){_.HF(l)!==u.hostElement&&K(l)}}u._ariaActiveAttributeChanged&&(u._ariaActiveAttributeChanged=u._ariaActiveAttributeChanged.bind(u.hostElement));
u._activeChanged&&(u._activeChanged=function(l){u.toggles?uT(u.hostElement,l?"true":"false",u.ariaActiveAttribute):u.hostElement.removeAttribute(u.ariaActiveAttribute);u._changedButtonState()});
u._asyncClick&&(u._asyncClick=function(){_.Cr(function(){u.hostElement.click()},1)});
!u.keyEventTarget||u.keyEventTarget instanceof EventTarget||(u.keyEventTarget=y2(u.keyEventTarget));u._disabledChanged&&(u._disabledChanged=u._disabledChanged.bind(u.hostElement));u._observeItems&&(u._observeItems=function(l){var D=y2(l);return _.wM(D).observeNodes(function(d){u._updateItems();u._updateSelected();_.xs(D,"iron-items-changed",d,{bubbles:!1,cancelable:!1})})});
u._updateItems&&u._updateItems===_.sp._updateItems&&(u._updateItems=function(){var l=_.wM(u.hostElement).queryDistributedElements(u.selectable||"*");l=Array.prototype.filter.call(l,u._bindFilterItem);u._setItems(l)});
u._computeKeyboardClass&&(u._computeKeyboardClass=function(l){_.cF(u.hostElement,"keyboard-focus",l)});
u.ensureRipple&&(u.ensureRipple=function(l){if(u.hasRipple&&!u.hasRipple()){if(!u._createRipple)return;u._ripple=u._createRipple();u._ripple.noink=u.noink;var D=u._rippleContainer||u.hostElement;D&&_.bi(D).appendChild(u._ripple)}var d;if(l&&((d=u._ripple)==null?0:d.uiDownAction)){D=_.bi(u._rippleContainer||u.hostElement);var C;d=(C=l.composedPath())==null?void 0:C[0];D.contains(d)&&u._ripple.uiDownAction(l)}});
u._updateMultiselectable&&(u._updateMultiselectable=function(l){l?u.hostElement.setAttribute("aria-multiselectable","true"):u.hostElement.removeAttribute("aria-multiselectable")})};
vlq=function(u,K,l){l=_.y(l);for(var D=l.next();!D.done;D=l.next())kxq(D.value.constructor,u);kxq(K.constructor,u)};
tPr=function(u,K){u=_.y(u);for(var l=u.next();!l.done;l=u.next())if(l=l.value,l.type==="signal"){var D=l.propertyKey;if(K.hasOwnProperty(D)&&K[D]!=null&&l.attributeType===Object){a:{D=K[D].constructor;for(var d=_.y(Gey),C=d.next();!C.done;C=d.next())if(C=C.value,D===C){D=C;break a}D=Object}l.attributeType=D}}};
x$o=function(){};
S_o=function(u){var K;return(K=u.hostElement)!=null?K:u};
bhH=function(){throw Error("Ng");};
Ohq=function(u,K){u.constructor.prototype.useSignals=!0;var l=new u.constructor;vlq(l,u,K.behaviors);tPr(K.reactiveSchemas,l);l={};for(var D=_.y(K.reactiveSchemas),d=D.next();!d.done;d=D.next())d=d.value,d.type==="signal"&&(l[d.propertyKey]=d.attributeType);var C={copyPropertiesToProto:bhH,didRegister:!1,typesForSignals:l},W=["disable-upgrade"].concat(_.Am(K.observedAttributes)),M=function(q){ot.call(this,u,K,C,q)};
_.c(M,ot);_.MN.Object.defineProperties(M,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return W}}});
C.copyPropertiesToProto=function(){for(var q=0;q<K.behaviors.length;q++)Yar(K.behaviors[q],M.prototype);Yar(u,M.prototype)};
K.legacyOptimizations||C.copyPropertiesToProto();M.prototype.is=u.is;return M};
cLw=function(u,K){if(Object.getPrototypeOf(K.prototype).constructor!==_.Q)throw Error("Og");K.prototype.is=u.is;return Ohq(K.prototype,u)};
a9q=function(u){return u.type==="compute"||u.type==="computeWithMethod"};
zor=function(u){for(var K=u.reactiveSchemas.filter(a9q),l=new Map,D=new Map,d=new Map,C=_.y(K),W=C.next();!W.done;W=C.next())W=W.value,l.set(W.propertyKey,W),D.set(W.propertyKey,[]),d.set(W.propertyKey,0);C=0;K=_.y(K);for(W=K.next();!W.done;W=K.next()){W=W.value;for(var M=_.y(W.type==="computeWithMethod"?W.method.args:W.args),q=M.next();!q.done;q=M.next())q=q.value,q.type!=="literal"&&(q=q.path.split(".")[0],D.has(q)&&(D.get(q).push(W.propertyKey),d.set(W.propertyKey,d.get(W.propertyKey)+1),C++))}W=
[].concat(_.Am(D.keys())).filter(function(v){return d.get(v)===0});
for(K=[];W.length;)for(M=W.shift(),K.push(l.get(M)),M=_.y(D.get(M)),q=M.next();!q.done;q=M.next())q=q.value,d.set(q,d.get(q)-1),C--,d.get(q)===0&&W.push(q);l=u.reactiveSchemas.filter(function(v){return!a9q(v)});
u.reactiveSchemas=[].concat(_.Am(l),_.Am(K))};
eoH=function(u,K){if(K.properties)for(var l=_.y(Object.entries(K.properties)),D=l.next();!D.done;D=l.next()){var d=_.y(D.value);D=d.next().value;d=d.next().value;u.properties[D]=typeof d==="function"?{type:d}:d}K.observers&&u.observers.push.apply(u.observers,_.Am(K.observers));K.disabledPolySiReactions&&u.disabledPolySiReactions.push.apply(u.disabledPolySiReactions,_.Am(K.disabledPolySiReactions))};
Rob=function(u,K){for(var l=K.length-1;l>=0;l--){var D=K[l];Array.isArray(D)?Rob(u,D):u.indexOf(D)<0&&u.unshift(D)}};
U$r=function(u,K){u.reactiveSchemas=u.reactiveSchemas.filter(function(l){return l.type==="observe"&&K.includes(l.method.methodName)||a9q(l)&&K.includes(l.propertyKey)?!1:!0})};
QHq=function(u,K){var l=K.prototype,D,d,C={is:u.is,reactiveSchemas:[],observedAttributes:[],behaviors:[TLZ.InjectBehavior,m3.prototype],disableElementRegistration:u.disableElementRegistration,provide:(D=u.providers)!=null?D:[],reactivityMode:u.reactivityMode,signalProperties:(d=l.signalProperties)!=null?d:[]};"template"in K?C.templateGetter=function(){return K.template}:u.getTemplate&&(C.templateGetter=u.getTemplate);
l.behaviors&&Rob(C.behaviors,l.behaviors);f9H(C,K);return C};
f9H=function(u,K){for(var l=K.prototype,D={properties:{},observers:[],disabledPolySiReactions:[]},d=_.y(u.behaviors),C=d.next();!C.done;C=d.next())eoH(D,C.value);eoH(D,l);if(u.signalProperties)for(l=_.y(u.signalProperties),d=l.next();!d.done;d=l.next())delete D.properties[d.value];l=_.y(Object.entries(D.properties));for(d=l.next();!d.done;d=l.next()){C=_.y(d.value);d=C.next().value;C=C.next().value;var W=void 0;if((W=u.signalProperties)==null||!W.includes(d)){W=void 0;var M=u,q=C.type;if(!q)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{q=Reflect.getMetadata("design:type",K,d);for(var v=_.y(PNr),G=v.next();!G.done;G=v.next())if(G=G.value,q===G){q=G;break a}q=Object}else q=String;C.computed||C.selector||(M.reactiveSchemas.push({type:"signal",propertyKey:d,value:C.value,attributeType:q,readOnly:C.readOnly}),M.observedAttributes.push(_.Qi(d)));C.reflectToAttribute&&M.reactiveSchemas.push({type:"reflect",propertyKey:d});if(C.computed){q=rJh(C.computed);if(!q)throw Error("Pg");M.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:d,method:q,value:C.value})}C.observer&&M.reactiveSchemas.push({type:"observe",method:{methodName:C.observer,args:[{type:"path",path:d}]}});C.notify&&M.reactiveSchemas.push({type:"notify",propertyKey:d});C.selector&&M.reactiveSchemas.push({type:"redux",propertyKey:d,selector:C.selector,selectorArgs:(W=C.selectorArgs)!=null?W:[]})}}JLZ&&zor(u);K=_.y(D.observers);for(d=K.next();!d.done;d=K.next())l=u,d=d.value,(C=rJh(d))?l.reactiveSchemas.push({type:"observe",method:C}):console.log('Warning: unable to parse observe declaration: "'+
d+'"');U$r(u,D.disabledPolySiReactions)};
jHH=function(u,K){for(var l=0;l<K.length;l++){var D=K[l],d=void 0;(d=D).showHideApi!=null||(d.showHideApi={});d=void 0;!!u!==!((d=D.showHideApi)==null||!d.hideTemplateChildren)&&(D.nodeType===Node.TEXT_NODE?u?(D.showHideApi.polymerTextContent=D.textContent,D.textContent=""):(d=void 0,D.textContent=(d=D.showHideApi.polymerTextContent)!=null?d:null):D instanceof Element&&D.localName==="slot"?u?(D.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.zQ)((0,_.zQ)(D).parentNode).replaceChild(D.showHideApi.polymerReplaced,
D)):(d=D.showHideApi.polymerReplaced)&&(0,_.zQ)((0,_.zQ)(d).parentNode).replaceChild(D,d):D instanceof HTMLElement&&D.style&&(u?(D.showHideApi.polymerDisplay=D.style.display,D.style.display="none"):D.style.display=D.showHideApi.polymerDisplay));D.showHideApi.hideTemplateChildren=u;D.showHideChildren&&D.showHideChildren(u)}};
pcq=function(){if(!BAr){var u=document.createElement("style");u.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(u);BAr=!0}};
Wb=function(){return _.S("disable_hidden_dom_if_using_stamper")};
ihR=function(u,K){var l=_.Hb().getState();return K?u.apply(null,[l].concat(_.Am(K))):u(l)};
FSy=function(){if(TAH)return TAH;var u=_.y(_.On(0,void 0,"Nl6eIe")),K=u.next().value;u.next();var l=u.next().value;_.Hb().subscribe(function(){wcR(l)});
return TAH=K};
wcR=function(u){_.S("delay_redux_signal_update_killswitch")?u(function(K){return K+1}):VPr||(VPr=!0,Promise.resolve().then(function(){u(function(K){return K+1});
VPr=!1}))};
_.Hb=function(){return glq.getAppStore()};
NAy=function(u,K){return glq.getSelectFn()(u,K)};
_.ME=function(u){glq.getDispatchFn()(u)};
keL=function(u,K){var l={},D;for(D in u)l[D]=K(u[D],D);return l};
_.qE=function(u,K){return function(){var l;return(l=_.Z7(u))!=null?l:K}};
_.$U=function(u,K){var l=Object.assign({},u),D;for(D in K)K.hasOwnProperty(D)&&(l[D]=_.qE(u[D],K[D]));return l};
Zh9=function(u,K,l){u instanceof Element&&(l.debugName||(l.debugName="<"+u.tagName.toLowerCase()+(u.tagName.includes("-")?">":"."+u.className+">")),_.S("ytwiz_enable_debug_component_props")&&(u.debugProps||(u.debugProps=keL(K,function(D){return function(){return D()}}))))};
Y_q=function(u){var K;if(!(K=nr.traceAllComponents)){var l;K=(l=$w)==null?void 0:l.activeSpan;K=(K==null?void 0:K.name)!=="ytComponent"}return K?tsq("ytComponent",{},u):u()};
_.rf=function(u,K){var l=function(D){return Y_q(function(d){var C=ALR={};var W;if(((W=l)==null?0:W.idomCompat)&&D.renderedFromIdom){var M;W=typeof l.idomCompat==="object"?(M=l)==null?void 0:M.idomCompat.callbacks:{};W=_.y(Xcq(D,W,l.debugName));M=W.next().value;W.next();W=W.next().value;var q=m$b(u,M);C.privateValue=q;ALR=void 0;Zh9(q,M,l);C={debugName:l.debugName};d&&C&&Object.assign(d.attributes,C);d=fho(q);d=Array.isArray(d)?d[0]:d;d[z1]||(d[z1]={});d[z1].updateSignalsFromIdomProps=W;hoh(M,q);return q}W=
keL(D,ElH);M=m$b(u,W);C.privateValue=M;ALR=void 0;Zh9(M,W,l);C={debugName:l.debugName};d&&C&&Object.assign(d.attributes,C);hoh(W,M);return M})};
l.debugName=K===void 0?"":K;return l};
m$b=function(u,K){u=u(K);return f0(u)};
LSH=function(u,K){u[K]||(u=new _.wv("IDOM interop setter undefined. Key:",K),_.Xm(u))};
ElH=function(u,K){return K==="children"||K==="ref"||typeof u==="function"||u===void 0?u:function(){return _.Z7(u)}};
Xcq=function(u,K,l){var D={},d={},C={},W={},M;for(M in u){W={key$jscomp$920:W.key$jscomp$920};W.key$jscomp$920=M;var q=u[W.key$jscomp$920];if(W.key$jscomp$920==="children"||W.key$jscomp$920==="ref")D[W.key$jscomp$920]=q;else if(typeof q==="function")W.key$jscomp$920 in K||q.length>0?(C[W.key$jscomp$920]=q,D[W.key$jscomp$920]=function(G){return function(){return C[G.key$jscomp$920].apply(C,_.Am(_.uY.apply(0,arguments)))}}(W)):D[W.key$jscomp$920]=q;
else if(!(u[W.key$jscomp$920]===void 0&&W.key$jscomp$920 in K)){var v=_.y(_.On(u[W.key$jscomp$920],{debugName:W.key$jscomp$920+":cwis:"+l},"orv71b"));q=v.next().value;v=v.next().value;D[W.key$jscomp$920]=q;d[W.key$jscomp$920]=v}}return[D,d,function(G){var t={},x;for(x in G)t={key$jscomp$921:t.key$jscomp$921,val$jscomp$117:void 0},t.key$jscomp$921=x,t.val$jscomp$117=G[t.key$jscomp$921],t.key$jscomp$921!=="children"&&t.key$jscomp$921!=="ref"&&(typeof t.val$jscomp$117==="function"?t.key$jscomp$921 in
K?C[t.key$jscomp$921]=t.val$jscomp$117:t.val$jscomp$117.length>0&&(C[t.key$jscomp$921]=t.val$jscomp$117,_.hV(new _.wv("Callback detected that was not set in the idomCompat callbacks map. Key:",t.key$jscomp$921))):t.key$jscomp$921 in K&&t.val$jscomp$117===void 0||(LSH(d,t.key$jscomp$921),Un(function(O){return function(){d[O.key$jscomp$921](O.val$jscomp$117)}}(t))))}]};
lgh=function(u,K,l){var D=heR(u.prototype,uFy,u.prototype.behaviors);D.prototype.is=K;D.prototype.localName=K;l&&Kxr(D,l);return function(d){d&&(D.prototype.hostElement=d);var C=new D;C.root=C;C.hostElement=d;return C}};
Kxr=function(u,K){var l;Object.defineProperty(u.prototype,"_template",{get:function(){l===void 0&&(l=K());return l},
set:function(D){l=D},
configurable:!0,enumerable:!0})};
yYH=function(u,K,l,D){function d(){if(!O){for(var a=new Set,f=_.y(G),B=f.next();!B.done;B=f.next()){B=B.value;for(var p=_.y(Object.getOwnPropertyNames(B)),V=p.next();!V.done;V=p.next()){V=V.value;var m=void 0,Z=(m=Object.getOwnPropertyDescriptor(B,V))==null?void 0:m.value;Z&&Z instanceof Function&&!vb(V)&&(!M[V]||_.S("polymer_forward_method_killswitch"))&&a.add(V)}}f=_.y(Object.entries(Object.getOwnPropertyDescriptors(u.prototype)));for(B=f.next();!B.done;B=f.next())p=_.y(B.value),B=p.next().value,
p=p.next().value,p.value instanceof Function&&!vb(B)&&a.add(B);O=a}return O}
Dro(u,K,D==null?void 0:D.providers);E2r(u.prototype,u,!0);var C=lgh(u,K,l),W,M=(W=u.prototype.properties)!=null?W:{},q,v,G=(v=(q=u.prototype.behaviors)==null?void 0:q.flat(Infinity))!=null?v:[];l=_.y(G);for(W=l.next();!W.done;W=l.next())M=Object.assign({},W.value.properties,M);var t=[].concat(_.Am(drq),_.Am(Object.keys(M).map(function(a){return _.Qi(a)}))),x=!1,O;
return{ctor:function(a,f){var B=C(a),p,V;a=[].concat(_.Am((p=D==null?void 0:D.allowedProps)!=null?p:[]),_.Am((V=D==null?void 0:D.allowedPropsFromBehaviors)!=null?V:[]));B.allowedProps=a.length>0?a:void 0;p={};V=_.y(t);for(a=V.next();!a.done;a=V.next())a=a.value,p[a]=_.P_(a);B.__dataAttributes=p;var m=B.ready.bind(B);B.ready=function(){f.beforeReady();m();if(Fr(K)&&!x){var Z=B.__templateInfo;if(Z==null?0:Z.hostProps){Z=_.y(Object.keys(Z.hostProps));for(var A=Z.next();!A.done;A=Z.next())gn(K,A.value,
"PROPERTY_ACCESS_GET_INTERNAL")}x=!0}};
B._overrideLegacyUndefined=!0;return B},
props:M,observedAttributes:t,getInitialMethods:d,getPropsToForwardBeforeRegister:function(){for(var a=[],f=new Set,B=_.y(Object.keys(M)),p=B.next();!p.done;p=B.next())p=p.value,a.push([p,M[p].readOnly]),f.add(p);B=d();p=_.y(Object.keys(Object.getOwnPropertyDescriptors(u.prototype)));for(var V=p.next();!V.done;V=p.next())V=V.value,!C8h(V)||B.has(V)||f.has(V)||(a.push([V,!1]),f.add(V));f=_.y(IgH);for(B=f.next();!B.done;B=f.next())a.push([B.value,!0]);return a},
getPropsToForwardBeforeReady:function(a){for(var f=[],B=_.y(Object.entries(a)),p=B.next();!p.done;p=B.next()){var V=_.y(p.value);p=V.next().value;V=V.next().value;if(C8h(p)&&!(V instanceof Function)&&(f.push([p,!1]),Fr(K))){var m=V=void 0;(m=(V=a)._createPropertyAccessor)==null||m.call(V,p)}}return f},
shouldForwardProp:C8h,shouldLog:Fr}};
Dro=function(u,K,l){w69(u,l);u.prototype.behaviors.unshift(sdH);if(zn9()){if(Fr(K)){var D;(D=u.prototype).behaviors!=null||(D.behaviors=[]);u.prototype.behaviors.unshift(fXy())}Q4q(u)}_.e(m3.prototype)(u.prototype,"__templateHelpers")};
vb=function(u){return oFo.has(u)||u.startsWith("__compute__")};
C8h=function(u){return!vb(u)&&!u.startsWith("_")&&!u.endsWith("_")};
$rq=function(u,K){function l(){var x=q();x=_.y(x);for(var O=x.next();!O.done;O=x.next()){var a=_.y(O.value);O=a.next().value;a=a.next().value;Wxq(t.prototype,O,a)}D=!0}
var D=!1,d=u.ctor,C=u.getInitialMethods,W=u.observedAttributes,M=u.getPropsToForwardBeforeReady,q=u.getPropsToForwardBeforeRegister,v=u.shouldForwardProp,G=u.shouldLog,t=function(){var x=HTMLElement.call(this)||this;x.didForwardDynamicProps=!1;x.loggingStatus={};D||l();x.inst=d(x,{beforeReady:function(){x.didForwardDynamicProps||(x.forwardDynamicProps(),x.didForwardDynamicProps=!0)}});
x.controllerProxy=RnH(x.inst,K);x.forwardMethods();return x};
_.c(t,HTMLElement);t.prototype.forwardMethods=function(){for(var x=this,O=_.y(this.inst.getExtraMethodsToForward()),a=O.next(),f={};!a.done;f={method$jscomp$63:void 0},a=O.next()){var B=_.y(a.value);a=B.next().value;B=B.next().value;f.method$jscomp$63=B;this[a]=function(p){return function(){return p.method$jscomp$63.call.apply(p.method$jscomp$63,[x.inst].concat(_.Am(_.uY.apply(0,arguments))))}}(f)}O=_.y(C());
for(f=O.next();!f.done;f=O.next())f=f.value,v(f)&&HdL(this,f),G(K)&&!vb(f)&&M4b(this.inst,f)};
t.prototype.forwardDynamicProps=function(){var x=M(this.inst);x=_.y(x);for(var O=x.next();!O.done;O=x.next()){var a=_.y(O.value);O=a.next().value;a=a.next().value;Wxq(this,O,a);G(K)&&!vb(O)&&qmn(this.inst,O)}};
t.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
t.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
t.prototype.attributeChangedCallback=function(x,O,a){this.inst.attributeChangedCallbackWrapper(x,O,a)};
_.MN.Object.defineProperties(t.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return K}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.MN.Object.defineProperties(t,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return W}}});
customElements.define(K,t)};
Wxq=function(u,K,l){u.hasOwnProperty(K)||Object.defineProperty(u,K,{get:function(){var D,d=((D=u.is)!=null?D:u.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||gn(d,K,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,D=this.polymerController[K],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,D},
set:function(D){if(!l){var d,C=((d=u.is)!=null?d:u.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||gn(C,K,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=K,this.loggingStatus.bypassProxyController=!0,this.polymerController[K]!==D&&(d={},this.polymerController.setProperties((d[K]=D,d)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
HdL=function(u,K,l){var D=u.polymerController;u[K]=function(){var d=_.uY.apply(0,arguments);u.loggingStatus.currentExternalCall=K;u.loggingStatus.bypassProxyController=!0;var C,W=((C=u.is)!=null?C:u.tagName).toLowerCase();gn(W,K,"PROPERTY_ACCESS_CALL_EXTERNAL");var M;C=(M=l!=null?l:D[K])==null?void 0:M.call.apply(M,[D].concat(_.Am(d)));u.loggingStatus.currentExternalCall=void 0;u.loggingStatus.bypassProxyController=!1;return C}};
M4b=function(u,K){var l=u.hostElement,D=u[K];u[K]=function(){var d=_.uY.apply(0,arguments);if(l.loggingStatus.currentExternalCall!==K){var C,W=((C=l.is)!=null?C:l.tagName).toLowerCase();gn(W,K,"PROPERTY_ACCESS_CALL_INTERNAL")}return D==null?void 0:D.apply(u,d)}};
qmn=function(u,K){var l=Object.getOwnPropertyDescriptor(u,K);l&&!l.get&&Object.defineProperty(u,K,{get:function(){Ugy(u.hostElement,K);return l.value},
set:function(D){Nn(u.hostElement,K);l.value=D}})};
nFb=function(u){return _.S("poly_si_dom_repeat_detached_fix_killswitch")||u.tagName!=="PS-DOM-REPEAT"?u.tagName==="DOM-REPEAT":!0};
vFq=function(u,K){var l=rYq(u);u instanceof Element&&l.unshift(u);u=_.y(l.filter(nFb));for(var D=u.next();!D.done;D=u.next()){var d=void 0;D=_.y((d=D.value.__instances)!=null?d:[]);for(d=D.next();!d.done;d=D.next())if(d=d.value,d.root){d=Array.from(d.root.children);d=_.y(d);for(var C=d.next();!C.done;C=d.next())l.push.apply(l,_.Am(vFq(C.value,K)))}}return l.filter(function(W){return W.usePatchedLifecycles&&W.lifecycleIsConnected===K})};
rYq=function(u){var K=null;u instanceof Element?K=Element.prototype.querySelectorAll:u instanceof DocumentFragment&&(K=DocumentFragment.prototype.querySelectorAll);return K?Array.from(K.call(u,"*")):[]};
GW=function(u){br(function(){for(var K=_.y(vFq(u,!1)),l=K.next();!l.done;l=K.next()){l=l.value;l.lifecycleIsConnected=!0;try{var D=void 0,d=void 0,C=void 0,W=void 0;(D=(W=l.polymerController)!=null?W:l)==null||(C=(d=D).connectedCallback)==null||C.call(d)}catch(M){_.Xm(M)}}})};
tl=function(u){br(function(){for(var K=_.y(vFq(u,!0)),l=K.next();!l.done;l=K.next()){l=l.value;l.lifecycleIsConnected=!1;try{var D=void 0,d=void 0,C=void 0,W=void 0;(D=(W=l.polymerController)!=null?W:l)==null||(C=(d=D).disconnectedCallback)==null||C.call(d)}catch(M){_.Xm(M)}}})};
cYw=function(){if(!Giq){Giq=!0;var u=[Node];xU&&u.push(xU.Wrapper);var K=Node.prototype.insertBefore,l=Node.prototype.removeChild;u=_.y(u);for(var D=u.next(),d={};!D.done;d={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},D=u.next())D=D.value,d.nativeInsertBefore=D.prototype.insertBefore,D.prototype.insertBefore=function(W){return function(M,q){if(M instanceof DocumentFragment){var v=Array.from(M.children);M=W.nativeInsertBefore.call(this,M,q);
if(this.isConnected&&W.nativeInsertBefore===K)for(q=_.y(v),v=q.next();!v.done;v=q.next())GW(v.value);return M}v=M instanceof Element&&M.isConnected;q=W.nativeInsertBefore.call(this,M,q);v&&tl(M);this.isConnected&&GW(M);return q}}(d),d.nativeAppendChild=D.prototype.appendChild,D.prototype.appendChild=function(W){return function(M){if(M instanceof DocumentFragment){var q=Array.from(M.children);
M=W.nativeAppendChild.call(this,M);if(this.isConnected){q=_.y(q);for(var v=q.next();!v.done;v=q.next())GW(v.value)}return M}q=M instanceof Element&&M.isConnected;v=W.nativeAppendChild.call(this,M);q&&tl(M);this.isConnected&&GW(M);return v}}(d),d.nativeRemoveChild=D.prototype.removeChild,D.prototype.removeChild=function(W){return function(M){var q=M instanceof Element&&M.isConnected,v=W.nativeRemoveChild.call(this,M);
q&&l===W.nativeRemoveChild&&tl(M);return v}}(d),d.nativeReplaceChild=D.prototype.replaceChild,D.prototype.replaceChild=function(W){return function(M,q){if(M instanceof DocumentFragment){var v=Array.from(M.children);
M=W.nativeReplaceChild.call(this,M,q);if(this.isConnected)for(tl(q),q=_.y(v),v=q.next();!v.done;v=q.next())GW(v.value);return M}v=M instanceof Element&&M.isConnected;var G=this.isConnected,t=W.nativeReplaceChild.call(this,M,q);G&&tl(q);v&&tl(M);G&&GW(M);return t}}(d);
u=[Element];xU&&u.push(xU.Wrapper);u=_.y(u);D=u.next();for(d={};!D.done;d={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},D=u.next())D=D.value,D.prototype.before=t4q(D.prototype.before),D.prototype.after=t4q(D.prototype.after),d.nativeReplaceWith=D.prototype.replaceWith,D.prototype.replaceWith=function(W){return function(){var M=_.uY.apply(0,arguments),q=_.y(xr9(M)),v=q.next().value,
G=q.next().value;q=this.isConnected;W.nativeReplaceWith.apply(this,M);M=_.y(G);for(G=M.next();!G.done;G=M.next())tl(G.value);if(q)for(tl(this),v=_.y(v),q=v.next();!q.done;q=v.next())q=q.value,q instanceof Element&&GW(q)}}(d),d.nativeRemove=D.prototype.remove,D.prototype.remove=function(W){return function(){var M=this.isConnected;
W.nativeRemove.call(this);M&&tl(this)}}(d),d.nativeInsertAdjacentElement=D.prototype.insertAdjacentElement,D.prototype.insertAdjacentElement=function(W){return function(M,q){var v=q.isConnected;
M=W.nativeInsertAdjacentElement.call(this,M,q);v&&tl(q);M.isConnected&&GW(M);return M}}(d),d.nativeSetAttribute=D.prototype.setAttribute,D.prototype.setAttribute=function(W){return function(M,q){var v=Smq(this);
if(!v.usePatchedLifecycles)return W.nativeSetAttribute.call(this,M,q);var G=this.getAttribute(M);W.nativeSetAttribute.call(this,M,q);q=this.getAttribute(M);bdn(v,M,G,q)}}(d),d.nativeRemoveAttribute=D.prototype.removeAttribute,D.prototype.removeAttribute=function(W){return function(M){var q=Smq(this);
if(!q.usePatchedLifecycles)return W.nativeRemoveAttribute.call(this,M);var v=this.getAttribute(M);W.nativeRemoveAttribute.call(this,M);v!==null&&bdn(q,M,v,null)}}(d),d.nativeToggleAttribute=D.prototype.toggleAttribute,D.prototype.toggleAttribute=function(W){return function(M,q){var v=Smq(this);
if(!this.usePatchedLifecycles)return W.nativeToggleAttribute.call(this,M,q);var G=this.getAttribute(M),t=G!==null;q=W.nativeToggleAttribute.call(this,M,q);q!==t&&bdn(v,M,G,q?"":null);return q}}(d);
u=[Document,DocumentFragment,Element,ShadowRoot];xU&&u.push(xU.Wrapper);u=_.y(u);for(d=u.next();!d.done;d=u.next())d=d.value,d.prototype.prepend=t4q(d.prototype.prepend),d.prototype.append=t4q(d.prototype.append);(xU==null?void 0:xU.noPatch)===!0&&OdH();document.readyState==="complete"?GW(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&GW(document.body)});
var C=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");C&&C.get&&C.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:C.enumerable,configurable:!0,get:C.get,set:function(W){W||tl(this);C.set.call(this,W);return W}})}};
t4q=function(u){return function(){var K=_.uY.apply(0,arguments),l=_.y(xr9(K)),D=l.next().value;l=l.next().value;u.apply(this,K);K=_.y(l);for(l=K.next();!l.done;l=K.next())tl(l.value);if(this.isConnected)for(D=_.y(D),K=D.next();!K.done;K=D.next())K=K.value,K instanceof Element&&GW(K)}};
OdH=function(){for(var u=_.y(agy),K=u.next();!K.done;K=u.next()){K=K.value.prototype;for(var l=_.y(zcq),D=l.next();!D.done;D=l.next()){D=D.value;var d=Object.getOwnPropertyDescriptor(K,D);d&&Object.defineProperty(K,"__shady_native_"+D,d)}}};
bdn=function(u,K,l,D){var d,C;if((d=u.polymerController)==null?0:(C=d.observedAttributes)==null?0:C.includes(K))if(u=u.polymerController,u.attributeChangedCallbackWrapper)u.attributeChangedCallbackWrapper.call(u,K,l,D);else{var W;(W=u.attributeChangedCallback)==null||W.call(u,K,l,D)}};
xr9=function(u){var K=[],l=[];u=_.y(u);for(var D=u.next();!D.done;D=u.next())D=D.value,D instanceof Element&&D.isConnected&&l.push(D),D instanceof DocumentFragment?K.push.apply(K,_.Am(Array.from(D.children))):K.push(D);return[K,l]};
Smq=function(u){return!(u instanceof Element)&&u.node instanceof Element?u.node:u};
ecn=function(u,K){var l=K?["children"].concat(_.Am(K)):["children"];K=[];l=_.y(l);for(var D=l.next();!D.done;D=l.next()){var d=D.value;if(u.hasOwnProperty(d)){D=u[d];D=typeof D==="function"?D():D;D=Array.isArray(D)?D:[D];D=f0(D).flat();if(d!=="children"){d=FRw(d);for(var C=_.y(D),W=C.next();!W.done;W=C.next())W=W.value,W instanceof Element&&W.setAttribute("slot",d)}K.push(D)}}K.length===0?u=[]:(u=f0(_.n("div",null,K)),u=Array.from(u.childNodes));return u};
UrZ=function(u,K,l){var D={};_.Ag(function(){var d={},C;for(C in K)if(K.hasOwnProperty(C)){var W=void 0,M=void 0;if(!(((W=l.slotProps)==null?0:W.includes(C))||C==="children"||((M=l.callbackProps)==null?0:M.includes(C))||C==="ref")&&(W=_.Z7(K[C]),D[C]!==W)){D[C]=W;M=void 0;var q=(M=u.hostElement)!=null?M:u;RcH.has(C)&&(q[C]=W);d[C]=W}}Un(function(){if(u.setProperties)u.setProperties(d);else for(var v=_.y(Object.entries(d)),G=v.next();!G.done;G=v.next()){var t=_.y(G.value);G=t.next().value;t=t.next().value;
u[G]=t}})})};
Qdb=function(u,K,l,D){var d=ecn(l,D.slotProps),C=(0,_.zQ)(u);d=_.y(d);for(var W=d.next();!W.done;W=d.next())C.appendChild(W.value);UrZ(K,l,D);D=_.y(D.callbackProps||[]);d=D.next();for(C={};!d.done;C={kebabEventName:void 0,eventListener:void 0},d=D.next())W=d=d.value,String(d).substring(0,2)==="on"&&l[W]?(C.kebabEventName=FRw(String(d).substring(2)),C.eventListener=l[W],u.addEventListener(C.kebabEventName,C.eventListener),_.No(function(G){return function(){u.removeEventListener(G.kebabEventName,G.eventListener)}}(C))):
K[W]=l[W];
if(l.ref){l=_.y(fgo(l.ref));var M=l.next().value,q=l.next().value,v=K.attached.bind(K);K.attached=function(){M(u);v()};
_.No(function(){q()})}};
fgo=function(u){if(typeof u==="function"){var K;return[function(l){K=u(l)},
function(){var l;(l=K)==null||l()}]}if(!u.onRender||!u.onUnmount)throw Error("Tg");
return[u.onRender,u.onUnmount]};
B5b=function(u,K,l,D,d){D=D===void 0?{}:D;var C=P8Z,W=!1;C?(W=!0,P8Z=void 0):(JYh=K,C=document.createElement(K),JYh=void 0);var M=C;M.usePatchedLifecycles=!0;M.lifecycleIsConnected=!1;C.loggingStatus={};var q=jdL(u,K,C,D,d);_.No(function(){M.lifecycleIsConnected&&(M.lifecycleIsConnected=!1,q.disconnectedCallback())});
W||(_.S("sink_wrapper_disable_runtime_shadycss")&&(C.__noInsertionPoint=!0),Qdb(C,q,l,D));return C};
jdL=function(u,K,l,D,d){d=d===void 0?yYH:d;pty[K]!=null||(pty[K]=d(u,K,D==null?void 0:D.getTemplate,D));var C=pty[K],W=C.ctor;d=C.getInitialMethods;var M=C.getPropsToForwardBeforeReady;u=C.getPropsToForwardBeforeRegister;D=C.shouldForwardProp;var q=C.observedAttributes,v=C.shouldLog,G=W(l,{beforeReady:function(){var t=G;t._takeAttributes?t._takeAttributes():t.setPropertiesFromInitialAttributeValues&&t.setPropertiesFromInitialAttributeValues();t=_.y(M(l.polymerController));for(var x=t.next();!x.done;x=
t.next()){var O=_.y(x.value);x=O.next().value;O=O.next().value;Wxq(l,x,O);v(K)&&!vb(x)&&qmn(l.polymerController,x)}l.polymerController=RnH(G,K)}});
l.polymerController=G;l.polymerController.observedAttributes=q;C=_.y(G.getExtraMethodsToForward());for(W=C.next();!W.done;W=C.next())q=_.y(W.value),W=q.next().value,q=q.next().value,HdL(l,W,q);d=_.y(d());for(C=d.next();!C.done;C=d.next())C=C.value,D(C)&&HdL(l,C),v(K)&&!vb(C)&&M4b(G,C);u=_.y(u());for(D=u.next();!D.done;D=u.next())d=_.y(D.value),D=d.next().value,d=d.next().value,Wxq(l,D,d);return G};
T5n=function(u,K){return S1===K?(u.isInert=!0,S1="",!0):id9===K?(u.isInert=!0,id9="",!0):!1};
wth=function(u){var K=bT;bT=u;return K};
V4w=function(u){if(Op.has(u))id9=u;else if(cb.has(u)&&bT&&FxH(bT)===u){var K;(K=bT)._numRenders!=null||(K._numRenders=0);bT._numRenders++;if(bT._numRenders>1)throw Error("Ug");return bT}};
gFH=function(u){Op.has(FxH(u))?id9=FxH(u):cb.has(FxH(u))&&bT!==u&&(u._isInert=!0)};
FxH=function(u){var K;return(K=u==null?void 0:u.tagName.toLowerCase())!=null?K:""};
N5R=function(u,K){if(u.componentType===pI)throw Error("Vg");cb.add(K);var l=function(){var D=HTMLElement.call(this)||this;D.is=K;if(JYh===K)return D.isInert=!0,D;D.createElement();return D};
_.c(l,HTMLElement);l.prototype.createElement=function(){if(!this.isInert){P8Z=this;var D=_.y(_.KUR(function(){return _.n(u,null)})).next().value;
P8Z=void 0;Qrq(this);return D}};
customElements.define(K,l)};
Zdq=function(u,K,l,D,d){u.prototype.is=K;(D==null?0:D.useSink)?kiZ(u,K,l,D,d):(l=yYH(u,K,l,D),$rq(l,K));return u};
kiZ=function(u,K,l,D,d){cYw();var C=_.rf(function(W){return B5b(u,K,W,Object.assign({},D,{getTemplate:l}),d)},"a");
C.debugName=K+" (CoW wrapped)";N5R(C,K);return C};
AYL=function(u){return!YmR.has(u)};
hch=function(u,K,l,D){function d(){if(!t){for(var x=new Set(Xtr),O=_.y(C.behaviors),a=O.next();!a.done;a=O.next()){a=a.value;for(var f=_.y(Object.getOwnPropertyNames(a)),B=f.next();!B.done;B=f.next()){B=B.value;var p=void 0,V=(p=Object.getOwnPropertyDescriptor(a,B))==null?void 0:p.value;V&&V instanceof Function&&(!v[B]||_.S("polymer_forward_method_killswitch"))&&x.add(B)}}O=_.y(Object.entries(Object.getOwnPropertyDescriptors(u.prototype)));for(a=O.next();!a.done;a=O.next())f=_.y(a.value),a=f.next().value,
f=f.next().value,f.value instanceof Function&&x.add(a);t=x}return t}
var C=QHq({is:K,disableElementRegistration:!1,getTemplate:l,providers:D==null?void 0:D.providers,reactivityMode:D==null?void 0:D.reactivityMode},u);if((D==null?0:D.allowedProps)||(D==null?0:D.allowedPropsFromBehaviors)){var W,M;C.allowedProps=[].concat(_.Am((W=D.allowedProps)!=null?W:[]),_.Am((M=D.allowedPropsFromBehaviors)!=null?M:[]))}var q=cLw(C,u);K=q.observedAttributes;var v={};l=_.y(C.reactiveSchemas);for(D=l.next();!D.done;D=l.next())if(D=D.value,D.type==="signal")v[D.propertyKey]={readOnly:D.readOnly},
D.readOnly&&(v[Ljr(D.propertyKey)]={readOnly:!0});else if(D.type==="compute"||D.type==="computeWithMethod"||D.type==="redux")v[D.propertyKey]={readOnly:!0};var G=C.reactiveSchemas.length,t;return{ctor:function(x,O){x=new q(x);x.beforeReady=O.beforeReady;return x},
props:v,observedAttributes:K,getInitialMethods:d,getPropsToForwardBeforeRegister:function(){for(var x=[],O=new Set,a=_.y(mrn),f=a.next();!f.done;f=a.next())f=f.value,x.push([f,f!=="observers"&&f!=="properties"]),O.add(f);a=_.y(Object.keys(v));for(f=a.next();!f.done;f=a.next())f=f.value,x.push([f,v[f].readOnly]),O.add(f);a=d();f=_.y(Object.keys(Object.getOwnPropertyDescriptors(u.prototype)));for(var B=f.next();!B.done;B=f.next())B=B.value,!AYL(B)||a.has(B)||O.has(B)||(x.push([B,!1]),O.add(B));x.push(["allowedProps",
!0]);return x},
getPropsToForwardBeforeReady:function(x){var O=[];x=_.y(Object.keys(x));for(var a=x.next();!a.done;a=x.next()){a=a.value;var f=d();AYL(a)&&!f.has(a)&&O.push([a,!1])}x=_.y(C.reactiveSchemas.slice(G));for(a=x.next();!a.done;a=x.next())a=a.value,a.type!=="compute"&&a.type!=="computeWithMethod"&&a.type!=="redux"&&a.type!=="signal"||O.push([a.propertyKey,a.type==="signal"?a.readOnly:!0]);return O},
shouldForwardProp:AYL,shouldLog:Fr}};
_.F=function(u,K,l,D){var d,C,W=(C=(d=D)==null?void 0:d.mode)!=null?C:0;D!=null||(D={});var M;(M=D).reactivityMode!=null||(M.reactivityMode=0);W===1&&_.OP("creator_poly_si_disable_list").includes(K)&&(W=2);return W===1?Zdq(u,K,l,Object.assign({},D,{useSink:!0}),hch):Zdq(u,K,l,Object.assign({},D,{useSink:W===2}))};
_.at=function(){return function(u,K,l,D){var d,C,W=(C=(d=D)==null?void 0:d.mode)!=null?C:2;D!=null||(D={});var M;(M=D).reactivityMode!=null||(M.reactivityMode=0);if(W===0)throw Error("Wg`"+W);return kiZ(u,K,l,D,W===1?hch:void 0)}};
_.zW=function(u){return _.S("creator_poly_si_killswitch")?!1:_.S("force_all_poly_si_batches")&&(u==="poly_si_all_on_test_check"||u==="creator_poly_si_batch_050"?0:u)||document.documentElement.hasAttribute("use-signals")?!0:!u||_.S(u+"_holdback_enabled")&&_.S("kevlar_polysi_holdback")?!1:_.S(u)};
e1=function(u){return u?u.icon?u.icon.iconType.toLowerCase():u.customThumbnail?"member":"":""};
EFh=function(u){if(!u)return"";u=_.y(u);for(var K=u.next();!K.done;K=u.next())if((K=K.value)&&K.liveChatAuthorBadgeRenderer&&(K=e1(K.liveChatAuthorBadgeRenderer))&&K!=="verified")return K;return""};
Lxw=function(u,K){if(!u)return null;var l;return((l=u.find(function(D){return D&&D.liveChatAuthorBadgeRenderer?e1(D.liveChatAuthorBadgeRenderer)===K:!1}))==null?void 0:l.liveChatAuthorBadgeRenderer)||null};
_.Car=function(u){var K=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;u=uUw(u);K=uUw(K);var l=K$n(u.hex);K=K$n(K.hex);var D=K[0]/255;var d=K[1]/255,C=K[2]/255,W=Math.max(D,d,C),M=Math.min(D,d,C),q=0,v=0,G=.5*(W+M);W!=M&&(W==D?q=60*(d-C)/(W-M):W==d?q=60*(C-D)/(W-M)+120:W==C&&(q=60*(D-d)/(W-M)+240),v=0<G&&G<=.5?(W-M)/(2*G):(W-M)/(2-2*G));D=[Math.round(q+360)%360,v,G];l=l5r(l,K);for(u=DyH(u.hex);l<4.5;){u=D[2]>=.5?u.darker((4.5-l)/2):u.brighter((4.5-l)/2);l=u.toString();
d=dyw(l);if(!d.length)throw Error("Td`"+l);l=d;l=l5r(l,K)}return u.hex()};
l5r=function(u,K){u=_.wBL(u);K=_.wBL(K);return(Math.max(u,K)+.05)/(Math.min(u,K)+.05)};
_.Rt=function(u){return"#"+("000000"+(u&16777215).toString(16)).slice(-6)};
_.I5y=function(u){for(var K=0,l=0;l<u.length;l++)K=u.charCodeAt(l)+((K<<5)-K);u="#";for(l=0;l<3;l++)u+=("00"+(K>>l*8&255).toString(16)).slice(-2);return u};
ycy=function(u){u=(u||"").split(":");u.length===1&&u.unshift("yt-icons");u[1]=u[1].toLowerCase();return u};
qlq=function(u,K){var l=(K=K===void 0?!1:K)?s6y:o3h,D=K?W$n:Hyr;u.getIconNames().forEach(function(d){d=K?d:d.substring(d.indexOf(":")+1);u.name==="yt-icons"?Mxb.add(d):d.includes("-filled")?l.add(d):D.add(d)})};
Up=function(u,K,l,D){l=l===void 0?!1:l;D=D===void 0?!1:D;var d,C,W;return _.H(function(M){if(M.nextAddress==1)return M.yield($yb,2);if(D)return M.return(Mxb.has(u));d=l?s6y:o3h;C=l?W$n:Hyr;return K?(W=u.includes("-filled")?u:u.concat("-filled"),M.return(d.has(W))):M.return(C.has(u))})};
_.v3H=function(u){if(n3y(u))return u;var K=u=u.toLowerCase();(u=rcy.get(u))&&(K=u);return K};
_.fr=function(u){if(n3y(u))return u.toString();var K=Gar.get(u);if(K)return K;K=u.toLowerCase();var l="yt-icons",D=K.replace(/_/g,"-");switch(u){case "MY_CHANNEL":K="account_circle";break;case "ADD_TO_LIBRARY":K="add";break;case "ALERT_WARN_RED":K="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":K="person_music";break;case "BLOCK_USER":K="block";break;case "CAPTIONS":K="closed_caption";break;case "CLOSED_CAPTION":l="av";K="closed-caption";break;case "COLLECTION":l="maps";K="layers";break;case "CONTACT":l=
"icons";K="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":l="ytcp-icons";K=D.split("creator-studio-")[1];break;case "DISMISSAL":K="close";break;case "DO_NOT_DISTURB":K="block";break;case "DOGFOOD":l="icons";K="pets";break;case "DRAFT":K="paper_corner_folded";break;
case "EMPTY_LIKE":K="like_outline";break;case "EXIT_APP":K="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":K=D;break;case "GAMES":l="ytg";K="my-games";break;case "GO_TO_PAGE":K="arrow-forward";break;case "GROUP":l="social";break;case "HIDE":K="not_interested";break;case "INPUT_COMPONENT":l="icons";K="settings-input-component";break;case "KIDS_BLOCK":K="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":l="ytg";K="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":l=
"ytg";K="membership-post-purchase";break;case "MULTIVIEW":K="screen_multi_view";break;case "MY_LOCATION":l="maps";K=D;break;case "NOTIFICATIONS_INBOX":K="NOTIFICATIONS";break;case "NEXT":K="chevron_right";break;case "OFFLINE":K="power-settings-new";break;case "PAUSE":l="miniplayer";break;case "PAYMENT":l="icons";break;case "PHONE_DOWNLOAD":K="phone_download";break;case "PREMIUM_STANDALONE":l="yt-logos";K="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":l="yt-logos";K="premium_standalone_cairo";
break;case "QUESTION_ANSWER":K="question_answer";break;case "REDEEM":l="icons";K="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":K="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":K="library_add";break;case "SCHOOL":l="yt-sys-icons";K="creator_academy";break;case "SETTINGS_LIGHT":K="settings_applications";break;case "SETTINGS_MATERIAL":K="settings";break;case "SEARCH_HISTORY":K="watch_history";break;case "SHOPPING_BAG":K="bag";break;case "SOCIAL":case "PEOPLE":l=
"yt-icons";K="people";break;case "STAFF_PICK":l="ytg";K="spotlight";break;case "START_DVR":K="add";break;case "STOP_DVR":l="av";K="stop";break;case "TAB_LIKED":K="like";break;case "TAB_INBOX":K="mail";break;case "TERMS_OF_SERVICE":l="icons";K="description";break;case "TRENDING":K="fire";break;case "UNBLOCK_USER":K="remove";break;case "UNPLUGGED_DARK_THEME":l="image";K="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":K="live";break;case "UNPLUGGED_SPORTS":l="ytu";K="visibility-off";break;
case "VIDEOS":l="av";K="play-circle-filled";break;case "YOUTUBE":l="yt-logos";K="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":l="yt-logos-ext";K="yt-logo-red-updated";break;case "YOUTUBE_LOGO":l="yt-logos-ext";K="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":l="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":l="shorts";K=D;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":l="yt-sys-icons";K="youtube_improve_tv";break;case "OUTLINE_BAG":l=
"yt-sys-icons";K="bag";break;case "QUEUE_PLAY_LAST":l="yt-sys-icons";K="list_queue_last";break;case "SLASH_CIRCLE_LEFT":K="slash_circle_left";break;case "SPEED_1_POINT_2X":K="1_point_2x";break;case "SPEED_1_POINT_5X":K="1_point_5x";break;case "SPEED_1_POINT_8X":K="1_point_8x";break;case "SPEED_POINT_2X":K="point_2x";break;case "SPEED_POINT_5X":K="point_5x";break;case "SPEED_POINT_8X":K="point_8x";break;case "SPEED_1X":K="1x";break;case "SPEED_2X":K="2x";break;case "TAB_BOOKMARK":K="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":l="yt-sys-icons";K="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":l="yt-sys-icons";K="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":l="yt-sys-icons",K="tic_tac_toe"}K=l+":"+K;Gar.set(u,K);return K};
n3y=function(u){var K;_.S("kevlar_use_wil_icons")?K=!!_.GB().resolve(_.Q2).resolveIcon({iconName:u.toString()}):K=!1;return K};
_.Jl=function(u,K,l,D){l=l===void 0?{}:l;D=D===void 0?!1:D;l===null&&(l={});var d=_.OP("kevlar_command_handler_command_banlist");d=_.y(d);for(var C=d.next();!C.done;C=d.next())if(C=u?u.hasOwnProperty(C.value):void 0,C)return!1;d=_.b(u.commandMetadata,_.nN);return D&&d!=null&&d.url?!1:!K.disableCommandHandlerOverride&&_.Pb.instance?(D=_.Pb.instance,l.form||(l.form={element:K}),l.form.element||(l.form.element=K),!l.clickedVisualElement&&K.visualElement&&(l.clickedVisualElement=K.visualElement),D.resolveCommand(u,
l),!0):!1};
txn=function(u,K){u=j1(u);for(var l=_.y(u.visibilityMonitorKeys||[]),D=l.next();!D.done;D=l.next())K.unobserveByKey(D.value);u.visibilityMonitorKeys=void 0};
Oyo=function(u,K){if(_.AC()){if(_.S("kevlar_vimio_use_shared_monitor"))xyR(u,K.data);else if(!xyR(u,K.data))return;var l=K.data,D=Slq(l);if(_.S("enable_client_ve_spec_logging"))txn(u,K.observer);else{var d=j1(u);d.trackedParams&&d.trackedParams!==D&&txn(u,K.observer)}d=j1(u);!l||d.data&&d.data===l||(d.data=l);byo(u,K);d.trackedParams=D}};
byo=function(u,K){var l=K.observer;if(!l&&_.S("web_skip_missing_vimio_observer")){var D,d;_.hV(new _.wv("VisibilityObserver is not defined.",u.tagName,u.trackedParams,(D=K.data)==null?void 0:D.trackingParams,(d=K.data)==null?void 0:d.loggingDirectives))}else{var C=K.layer,W=K.visibilityCallback||function(){},M=K.prescanCallback,q=j1(u);
D=[];K.showOption&&D.push(l.observe(u,function(){K.skipLogging&&K.skipLogging()||_.Bb().reportShown(q,void 0,C);W(!0)},K.showOption));
K.hideOption&&D.push(l.observe(u,function(){_.Bb().reportHidden(q,void 0,C);W(!1)},K.hideOption));
K.prescanOption&&M&&D.push(l.observe(u,function(){M()},K.prescanOption));
q.visibilityMonitorKeys=D}};
xyR=function(u,K){u=j1(u);if(u.visualElement&&!K)return!0;if(!K)return!1;var l=!1;if(_.S("enable_client_ve_spec_logging")){var D,d;l=!!((D=K.loggingDirectives)==null?0:(d=D.clientVeSpec)==null?0:d.uiType)}D=Slq(K);if(!D&&!l)return!1;_.S("mweb_component_visibility_logging")&&(u.veContainer||(u.veContainer={}),u.veContainer.trackingParams=D);if(u.trackedParams&&u.trackedParams===D)return!1;var C;if(_.S("enable_client_ve_spec_logging")&&((C=u.visualElement)==null?0:C.isClientVe())){var W;C=(W=u.visualElement)==
null?void 0:W.getAsJspb();var M,q,v,G;if(_.tq(C,2)===((M=K.loggingDirectives)==null?void 0:(q=M.clientVeSpec)==null?void 0:q.uiType)&&_.tq(C,3,-1)===((v=K.loggingDirectives)==null?void 0:(G=v.clientVeSpec)==null?void 0:G.elementIndex))return!1}if(_.S("enable_client_ve_spec_logging")){var t,x;!u.visualElement&&((t=K.loggingDirectives)==null?0:(x=t.clientVeSpec)==null?0:x.uiType)&&(M=K.loggingDirectives.clientVeSpec,K=M.uiType,W=M.elementIndex,M=M.clientYoutubeData,u.visualElement=_.pr(_.iT(),{veType:K,
elementIndex:W,clientYouTubeData:M}))}return!0};
Slq=function(u){if(u==null?0:u.rendererContext){var K=_.b(u.rendererContext,_.TW);if(K==null?0:K.loggingDirectives)return K.loggingDirectives.trackingParams}return(u==null?0:u.loggingDirectives)?u.loggingDirectives.trackingParams:u==null?void 0:u.trackingParams};
j1=function(u){var K;return(K=u.polymerController)!=null?K:u};
eKq=function(u){_.Bb();if(_.KT(wf().JSC$12442_elementShouldLogGesture).bind(wf())(u,4)){cco(u);var K=a5q(u);zKh.set(u,K)}};
cco=function(u){zKh.has(u)&&(zKh.get(u).cancel("untrack hover element"),zKh.delete(u))};
a5q=function(u){var K,l=[],D=!1,d=new _.RL(function(C,W){Fu(u,"mouseenter",_.KT(function(){var M,q,v;return _.H(function(G){if(G.nextAddress==1)return K=(0,_.vA)(),M=RKZ(u),l.push(M),q=Uyh(u,function(){D=!0;W(Error("Xg"))}),G.yield(M,2);
if(G.nextAddress!=3)return q&&V2(q),v=f5L(u),l.push(v),G.yield(v,3);C();_.TG(G)})}))});
d.then(function(){var C=(0,_.vA)()-K;C=Math.round(C);if(!(500>C||6E5<=C)){var W=u.getScreenLayer?u.getScreenLayer():void 0;W=_.AC(W)||"";var M=Q6b(_.Bb(),u);_.Hi(W,u.visualElement?u.visualElement:_.gf(M),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:C}})}eKq(u)},function(){NE&&(NE(),NE=null);
D&&(cco(u),eKq(u))});
return d};
RKZ=function(u){var K;return(new _.RL(function(l,D){NE=function(){D(Error("Yg"))};
K=_.YL.debounce(_.KT(function(){V2(d);l()}),1,100);
var d=_.kU(u,"mousemove",K)})).thenCatch(function(){var l=_.YL.cancelDebouncedJobMap.get(K);
l&&_.YL.cancelJob(l)})};
f5L=function(u){var K;return(new _.RL(function(l,D){NE=function(){D(Error("Zg"))};
K=Fu(u,"mouseleave",_.KT(function(){l()}))})).thenCatch(function(){V2(K)})};
Uyh=function(u,K){return Fu(u,"mouseleave",_.KT(K))};
Jch=function(u){PaL&&_.Zp.cancel(PaL);PaL=_.Zp.run(function(){_.xs(u,"yt-visibility-refresh");PaL=0})};
j6L=function(u){u=Number(u);return"rgba("+[u>>16&255,u>>8&255,u&255,(u>>24&255)/255].join()+")"};
pHq=function(u){if(!u)return!1;if(_.b(u,_.ByH))return!0;var K;if(u=(K=_.b(u,_.ey))==null?void 0:K.commands)for(K=_.y(u),u=K.next();!u.done;u=K.next())if(_.b(u.value,_.ByH))return!0;return!1};
iyw=function(u){var K=!0;K=K===void 0?!0:K;if(!u.useSignals&&!u.experimentalPropertiesChanged||_.S("experimental_templating_behavior_nopatch_killswitch")){var l=u._propertiesChanged;u._propertiesChanged=function(D,d,C){K?u.debounceRender():u.doRender();l&&l.call(u,D,d,C)}}};
TyZ=function(u,K){if(u.useSignals||u.experimentalPropertiesChanged)if(_.S("experimental_templating_behavior_nopatch_killswitch"))u.experimentalPropertiesChanged=function(){};
else return;var l=new Set,D=[u].concat(_.Am(u.behaviors));D=_.y(D);for(var d=D.next();!d.done;d=D.next()){d=d.value;for(var C in d.properties)l.has(C)||(u._addPropertyEffect(C,"function",K),l.add(C))}};
wHR=function(){var u=Polymer.Element,K=u._prepareTemplate;u._prepareTemplate=function(){K.call(this);var l=this.prototype;if(l.experimentalTemplatingInUse&&l.experimentalTemplatingInUse()&&l.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.Xm(Error("$g"));else{l=this.template.content.childNodes;for(var D=l.length-1;D>=0;D--){var d=l[D];d.nodeName!=="STYLE"&&d.nodeName!=="LINK"&&d.nodeName!=="SCRIPT"&&d.nodeName!=="#comment"&&d.remove()}}}};
F$L=function(u){var K=!0;K=K===void 0?!0:K;wHR();var l=u.ready;u.ready=function(){this._template=null;l.call(this)};
TyZ(u,K?u.debounceRender:u.doRender)};
g3r=function(u,K,l){if(l===null||l===void 0)return l;var D=N2b(u.tagName.toLowerCase(),K,function(){throw Error("Pb");});
if(D===null)return l;D=Vxh[D];var d;if((d=D.isUnwrappable)==null?0:d.call(D,l)){if(D.unwrap)return D.unwrap(l);throw Error("ch");}return D.filterString?D.filterString(u.tagName,K,String(l)):l};
NyH=function(u,K,l){var D=K[K.length-1]!=="$",d=g3r(u,K,l);if(D)if(typeof d==="function"&&K.startsWith("reactiveon")&&K===K.toLowerCase()){var C=W$;L0H(u,K.slice(8),function(W){XL(C,function(){d(W)})})}else u[K]=d;
else l=d==null?null:String(d),En(u,K.slice(0,-1),l)};
Al=function(u){kaH.length===0&&requestAnimationFrame(function(){setTimeout(function(){var K=kaH.slice();kaH.length=0;K=_.y(K);for(var l=K.next();!l.done;l=K.next()){l=l.value;try{l()}catch(D){_.YU(D)}}})});
kaH.push(u)};
Zyb=function(u){if(u){var K=u.component;if(K){var l;K==null||(l=K.events)==null||l.publish("DISCONNECTED");var D;K==null||(D=K.onDisconnected)==null||D.call(K)}var d,C;(d=u.__spec)==null||(C=d.didUnmount)==null||C.call(d);for(K=0;K<u.childNodes.length;K++)Zyb(u.childNodes[K])}};
mQ=function(u,K,l){var D=K&&K.key,d=s3;d[0]=u;d[1]=D;d[2]=void 0;for(var C in K)K.hasOwnProperty(C)&&(u=K[C],D=oE,D.push(C),D.push(u));K=s3;a:{if(C=s3[2])for(u=0;u<C.length;u+=2)if(C[u]==="nonce"){C=C[u+1];break a}C=""}C=MBZ(K[0],K[1],C);u=uc(C);D=K[2];if(!u.staticsApplied&&(u.staticsApplied=!0,D&&D.length))if((d=u._attrsArr)&&d.length){for(d=0;d<D.length;d+=2)Xu[D[d]]=d+1;d=u._attrsArr||(u._attrsArr=EEo(0));for(var W=0,M=0;M<d.length;M+=2){var q=d[M],v=d[M+1],G=Xu[q];G?D[G]===v&&delete Xu[q]:(d[W]=
q,d[W+1]=v,W+=2)}hg(d,W);for(var t in Xu)dPL(C,t,D[Xu[t]],qP),delete Xu[t]}else for(t=0;t<D.length;t+=2)dPL(C,D[t],D[t+1],qP);tBq(C,u,qP);hg(K,0);l&&l(K0);q6L()};
YlZ=function(u){var K=u.toString().toLowerCase();return function(l,D){mQ(K,l,D)}};
_.hl=function(u,K,l){l===void 0?delete u[K.name]:u[K.name]=l};
_.Ep=function(u){var K={androidIncludeFontPadding:!1},l=0,D=[],d=[],C=[];if(u.simpleText)return K.content=u.simpleText,K;if(u.runs===void 0)return K.content="",K;u=_.y(u.runs);for(var W=u.next();!W.done;W=u.next()){W=W.value;var M=W.text,q=void 0,v=(q=M)==null?void 0:q.length;if(M&&v){D.push(M);if(W.bold||W.italics||W.strikethrough||W.underline||W.textColor!=null&&W.textColor!==0||W.deemphasize){M=d;q=M.push;var G={startIndex:l,length:v};W.bold&&(G.weightLabel="FONT_WEIGHT_MEDIUM");W.italics&&(G.italic=
!0);W.strikethrough&&(G.strikethrough="LINE_STYLE_SINGLE");W.underline&&(G.underline="LINE_STYLE_SINGLE");W.textColor!=null&&W.textColor!==0?document.documentElement.hasAttribute("dark")?G.fontColor=W.darkModeTextColor||W.textColor:G.fontColor=W.textColor:W.deemphasize&&(document.documentElement.hasAttribute("dark")?G.fontColor=parseInt("ff"+Aco("#aaa").substring(1),16):G.fontColor=parseInt("ff"+Aco("#606060").substring(1),16));q.call(M,G)}W.navigationEndpoint&&(M=C,q=M.push,G={startIndex:l,length:v,
onTap:{innertubeCommand:W.navigationEndpoint}},W.loggingDirectives&&_.hl(G,XHZ,W.loggingDirectives),q.call(M,G));l+=v}}K.content=D.join("");K.styleRuns=d.length?d:void 0;K.commandRuns=C.length?C:void 0;return K};
hKq=function(u){if(u==null||!u.runs)return!0;u=_.y(u.runs);for(var K=u.next();!K.done;K=u.next())if(K=K.value,K.bracket||K.errorUnderline||K.deemphasize||_.b(K,Lr)||_.b(K,myq))return!1;return!0};
E39=function(u,K){return function(l){var D=K.unit;if(D!==l)throw Error("fh`"+u+"`"+D+"`"+l);return K}};
ut=function(u){if(!((u==null?0:u.value)&&(u==null?0:u.unit)))return"";switch(u.unit){case "DIMENSION_UNIT_FRACTION":var K="%";break;default:K="px"}u=u.value;K==="%"&&(u*=100);return""+u+K};
L$y=function(u){try{return u()}catch(K){_.hV(K)}};
_.lt=function(u){var K=_.b(u,_.K4);if(K)return K;if((K=_.b(u,uWq))&&K.commands)return KZZ(K.commands);if((K=_.b(u,lRR))&&K.commands)return KZZ(K.commands);if((u=_.b(u,DVw))&&u.identifier&&u.command&&(dVb||(dVb=[]),!dVb.includes(u.identifier)))return dVb.push(u.identifier),_.b(u.command,_.K4)};
KZZ=function(u){if(u.length!==0){var K=[];u=_.y(u);for(var l=u.next();!l.done;l=u.next())(l=_.lt(l.value))&&K.push(l);return{commandExecutorCommand:{commands:K}}}};
_.dY=function(u){var K=u.defaultTarget,l=u.elementConfig,D=u.elementsCommand,d=u.skipOnClick,C=u.forceNewState,W=u.additionalCommandArgs,M=u.innertubeCommand||_.lt(D);if(M){u={};var q=Czo(M);D=q.navigatingCommand;q=q.href;D&&q?(u.href$=q,IRH(u,D,q,K),_.S("web_atagconfig_pointerdown")&&ykq(u,D),C&&(u["force-new-state$"]=!0)):(u.role$="button",u.href$="javascript:void(0);");_.b(M,sGH)&&(u["aria-haspopup$"]=!0);d||(u.onclick=function(v){var G={};if(omq(v)){if(W==null?0:W.clickedVisualElement)G={clickedVisualElement:W.clickedVisualElement};
G=Object.assign({},{form:{element:v.target,event:v,createScreenConfig:G}},W);v.preventDefault();_.D$(M,G)}});
return Object.assign({},l,u)}};
WZq=function(u){if(u.length){if(u.length===1)return u[0];var K={};_.hl(K,_.ey,{commands:u});return K}};
C4=function(u){return u&&u.href$!=="javascript:void(0);"};
Czo=function(u){var K,l=((K=_.b(u,_.ey))==null?void 0:K.commands)||[u];u=_.y(l);for(K=u.next();!K.done;K=u.next()){K=K.value;var D=void 0,d=void 0;l=(d=_.b((D=K)==null?void 0:D.commandMetadata,_.nN))==null?void 0:d.url;_.S("web_remove_web_navigation_endpoint_data")||(D=void 0,l=l||((D=_.b(K,HfL))==null?void 0:D.url));if(l&&l!=="/service_ajax"){if(D=mJ(l,MmR))return u=_.Yu(D),{navigatingCommand:K,href:u};_.hV(new _.wv("AttributedString URL could not be sanitized",l))}}return{}};
omq=function(u){return u.button!==void 0?u.button===0&&!(u.shiftKey||u.altKey||u.metaKey||u.ctrlKey):!(u.shiftKey||u.altKey||u.metaKey||u.ctrlKey)};
IRH=function(u,K,l,D){l=!nT(l);var d,C,W;if((d=_.b(K,_.jt))!=null&&d.nofollow||(C=_.b(K,_.oy))!=null&&C.nofollow||(W=_.b(K,_.d_))!=null&&W.nofollow||l)u.rel$="nofollow";var M;K=((M=_.b(K,_.d_))==null?void 0:M.target)==="TARGET_NEW_WINDOW"?"_blank":D===void 0?"":D;u.target$=K};
ykq=function(u,K){K.clickTrackingParams&&(u.params={itct:K.clickTrackingParams});u.onpointerdown=function(l){qMq(l)};
u._data=K};
$Vq=function(u){(u.loggingUrls||[]).forEach(function(K){IL(K.baseUrl,K.attributionSrcMode)})};
nmq=function(u){u.currentTarget._data&&$Vq(u.currentTarget._data)};
qMq=function(u){var K=u.currentTarget;u=L$y(function(){return K.href});
var l=K.params;u&&_.qB(u,l||{},8,!0)};
rkn=function(u,K){if(K=_.b(K,_.d_))(K==null?void 0:K.target)==="TARGET_NEW_WINDOW"&&(u.target="_blank"),K.nofollow&&(u.rel="nofollow")};
vmH=function(u){u=_.b(u==null?void 0:u.commandMetadata,_.nN);return(u==null?0:u.url)?u.url:null};
_.IT=function(u,K){(u=_.lt(u))&&_.D$(u,K)};
_.D$=function(u,K){HNo(function(l){K?l.resolveCommand(u,K):l.resolveCommand(u)})};
SMb=function(u,K){var l=["yt-core-attributed-string__link"];K!=null&&K.noLinkColor||((K==null?0:K.isOverlay)?l.push("yt-core-attributed-string__link--overlay-call-to-action-color"):l.push("yt-core-attributed-string__link--call-to-action-color"),(K==null?0:K.linkInheritColor)&&l.push("yt-core-attributed-string--link-inherit-color"));l={className:l.join(" "),tabindex$:"0"};var D=u.onTap||u.onLongPress;if(!D)return l;var d=GJw(u);d&&(l["aria-label$"]=d);K=_.dY({elementsCommand:D,elementConfig:l,skipOnClick:!(K==
null||!K.skipOnClick),forceNewState:!0});u.onLongPress&&(D=new tmq(function(){var C=_.lt(u.onLongPress);C&&_.GB().resolve(_.t9).resolveCommand(C)}),K&&xVH(D,K));
return K||l};
GJw=function(u){var K,l;return(K=u.onTapOptions)==null?void 0:(l=K.accessibilityInfo)==null?void 0:l.accessibilityLabel};
bfL=function(u){var K=u;u<=16777215&&(K+=parseInt("ff000000",16));return _.Kg(K)};
Of9=function(u){var K=u.isDarkTheme;var l=u.extension;u=u.runColor;var D=void 0;if(l=l==null?void 0:l.colorMap){K=K?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";l=_.y(l);for(var d=l.next();!d.done;d=l.next())if(d=d.value,K===d.key){D=d.value;break}}D==null&&u&&(D=u);if(D)return bfL(D)};
yB=function(u){var K=u.config;var l=u.image;var D=u.imageConfig;var d=u.imageWrapperConfig;var C=u.run;var W=u.tag;var M=u.textLength;var q=u.startIndex===void 0?0:u.startIndex;u=u.length;q===void 0&&(q=0);C={run:C,startIndex:q,endIndex:u!==void 0?q+u:M,tag:W};l&&(C.image=l);D&&(C.imageConfig=D);d&&(C.imageWrapperConfig=d);K&&(C.config=K);return C};
aRb=function(u,K){var l=[];l.push("yt-core-attributed-string");(K==null?0:K.className)&&l.push(K==null?void 0:K.className);(K==null?0:K.ellipsisTruncate)?l.push("yt-core-attributed-string--ellipsis-truncate"):(K==null?0:K.noWrap)?l.push("yt-core-attributed-string--white-space-no-wrap"):(K==null?0:K.noPreWrap)||l.push("yt-core-attributed-string--white-space-pre-wrap");(K==null?0:K.linkInheritColor)&&l.push("yt-core-attributed-string--link-inherit-color");u.alignment&&l.push(ckn(u.alignment));u.lineBreakMode&&
l.push("yt-core-attributed-string--word-wrapping");return l.join(" ")};
zQb=function(u){if(u.weight)return u.weight;switch(u.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
eQn=function(u){switch(u){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"}};
ckn=function(u){switch(u){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"}};
W1=function(u,K,l){var D=K;u.content&&l&&(l=u.content.indexOf("\n"),l!==-1&&(D=Math.min(K,l)));if(!u.content||u.content.length<=D)K=u;else if(u.attachmentRuns||u.commandRuns||u.decorationRuns||u.styleRuns||u.paragraphStyleRuns){K=s4(u.content,D);l=D;var d=u.attachmentRuns;if(d){var C=[];d=_.y(d);for(var W=d.next();!W.done;W=d.next())W=Object.assign({},W.value),W.startIndex===void 0||W.startIndex>=l||(W.length||(W.length=0),W.length+W.startIndex>l&&(W.length=l-W.startIndex),C.push(W));l=C}else l=void 0;
C=RQr(D,u.commandRuns);d=D;var M=u.decorationRuns;if(M){W=[];M=_.y(M);for(var q=M.next();!q.done;q=M.next()){q=q.value;var v=_.b(q.textDecorator,oT);if(v&&v.startIndex!==void 0&&!(v.startIndex>=d)){q=Object.assign({},q,{textDecorator:{highlightTextDecorator:Object.assign({},v)}});v=_.b(q.textDecorator,oT);if(!v.length||v.length+v.startIndex>d)v.length=d-v.startIndex;W.push(q)}}d=W}else d=void 0;W=RQr(D,u.styleRuns);if(M=u.paragraphStyleRuns)for(u=[],M=_.y(M),q=M.next();!q.done;q=M.next()){var G=q.value;
q=Object.assign({},G);if(!(q.startIndex===void 0||q.startIndex>=D)){if(!q.length||q.length+q.startIndex>D)q.length=D-q.startIndex;v=[];var t=void 0,x=void 0;if((t=G)==null?0:(x=t.listGroup)==null?0:x.listItems)for(G=_.y(G.listGroup.listItems),t=G.next();!t.done;t=G.next())if(t=Object.assign({},t.value),!(t.startIndex===void 0||t.startIndex>=D)){if(!t.length||t.length+t.startIndex>D)t.length=D-t.startIndex;v.push(t)}v.length>0&&(q.listGroup||(q.listGroup={}),q.listGroup=Object.assign({},q.listGroup,
{listItems:v}));u.push(q)}}else u=void 0;K={content:K,attachmentRuns:l,commandRuns:C,decorationRuns:d,styleRuns:W,paragraphStyleRuns:u}}else K=Object.assign({},u,{content:s4(u.content,D)});return K};
RQr=function(u,K){if(K){var l=[];K=_.y(K);for(var D=K.next();!D.done;D=K.next())if(D=Object.assign({},D.value),!(D.startIndex===void 0||D.startIndex>=u)){if(!D.length||D.length+D.startIndex>u)D.length=u-D.startIndex;l.push(D)}return l}};
s4=function(u,K){var l=K,D;if(D=l>0)D=u.charCodeAt(l-1),D=D>=55296&&D<=56319;D&&(l=u.charCodeAt(l),D=l>=56320&&l<=57343);D&&--K;return u.substring(0,K)};
Pzb=function(u,K,l){l=l===void 0?UVR:l;if(u){var D=_.GB().resolve(ni);D||_.S("mweb_no_observer_killswitch")?Oyo(u,{data:K,observer:D,visibilityCallback:l,hideOption:fRy,showOption:QGo,layer:u.layer}):_.hV(new _.wv("Warning: monitorVisibility called with null observer",u.tagName,K==null?void 0:K.loggingDirectives,K==null?void 0:K.trackingParams))}else _.hV(new _.wv("Warning: monitorVisibility called with null element",K==null?void 0:K.loggingDirectives,K==null?void 0:K.trackingParams,K==null?void 0:
K.rendererContext))};
wlq=function(u,K){var l=[],D=u.content.length,d,C=(d=_.GB().resolve(_.vv(_.H1)))==null?void 0:d();if(u.paragraphStyleRuns){d=_.y(u.paragraphStyleRuns);for(var W=d.next();!W.done;W=d.next()){var M=l.push,q=M.apply;var v=void 0;W=W.value;if((v=W.listGroup)!=null&&v.listItems){v=[];b:switch(W.listGroup.listType){case "LIST_TYPE_BULLET":var G="ul";break b;default:G="span"}v.push(yB({run:W,textLength:D,tag:G,config:{className:"yt-core-attributed-string__list-group"},startIndex:W.startIndex,length:W.length}));
G=_.y(W.listGroup.listItems);for(var t=G.next();!t.done;t=G.next()){t=t.value;b:switch(W.listGroup.listType){case "LIST_TYPE_BULLET":var x="li";break b;default:x="span"}v.push(yB({run:W,textLength:D,tag:x,startIndex:t.startIndex,length:t.length}))}W=v}else W=[];q.call(M,l,_.Am(W))}}if(u.styleRuns&&(K==null||!K.noStyleRuns))for(d=_.y(u.styleRuns),M=d.next();!M.done;M=d.next()){M=M.value;q=Of9({extension:_.b(M.styleRunExtensions,JkR),isDarkTheme:C===void 0?!1:C,runColor:M.fontColor});v=[];q&&v.push("yt-core-attributed-string--link-inherit-color");
M.italic&&v.push("yt-core-attributed-string--italicized");M.underline&&M.strikethrough?v.push("yt-core-attributed-string--underline-strikethrough",eQn(M.underline)):M.underline?v.push("yt-core-attributed-string--underlined",eQn(M.underline)):M.strikethrough&&v.push("yt-core-attributed-string--strikethrough",eQn(M.strikethrough));if(M.baselineOffset){a:switch(M.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":W="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":W=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:W="yt-core-attributed-string--baseline-offset-unknown"}v.push(W)}W=v.join(" ");v=M;G={};if(v.weight||v.weightLabel)G.fontWeight=zQb(v).toString();q&&(G.color=q);l.push(yB({run:M,textLength:D,tag:"span",config:{className:W,style:G},startIndex:M.startIndex,length:M.length}))}if(u.decorationRuns)for(d=_.y(u.decorationRuns),M=d.next();!M.done;M=d.next())M=M.value,q={},M.textDecorator&&(G=M.textDecorator,W=C===void 0?!1:C,t=[],v=
_.b(G,oT),G=_.b(G,jGo),v?(G=t,t=G.concat,x=[],(W=Of9({extension:_.b(v.highlightTextDecoratorExtensions,Bgq),isDarkTheme:W,runColor:v.backgroundColor}))&&x.push("background-color: "+W+";"),v.backgroundCornerRadius!==void 0&&x.push("border-radius: "+v.backgroundCornerRadius+"px;"),v.leftPadding!==void 0&&x.push("padding-left: "+v.leftPadding+"px;"),v.rightPadding!==void 0&&x.push("padding-right: "+v.rightPadding+"px;"),v.topPadding!==void 0&&x.push("padding-top: "+v.topPadding+"px;"),v.bottomPadding!==
void 0&&x.push("padding-bottom: "+v.bottomPadding+"px;"),t=t.call(G,x)):G&&(v=t,t=v.concat,W=W?"#2ba640":"#107516",W=G.color?bfL(G.color):W,W=["padding: 2px;","border-top: solid "+W+" 2px;","border-bottom: solid "+W+" 2px;","background: linear-gradient(135deg, "+W+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+W+" 3px, rgba(0, 0, 0, 0) 3px);"],t=t.call(v,W)),W=t.join(" "),q.style$=W,W=M.textDecorator,v=[],G=_.b(W,jGo),_.b(W,oT)?v.push("yt-core-attributed-string--highlight-text-decorator"):
G&&v.push("yt-core-attributed-string--bracket-text-decorator"),W=v.join(" "),q.className=W,q.dir="auto"),W=_.b(M.textDecorator,oT),v=_.b(M.textDecorator,jGo),G=_.b(M.textDecorator,oT),t=_.b(M.textDecorator,jGo),l.push(yB({run:M,textLength:D,tag:"span",config:q,startIndex:(W==null?void 0:W.startIndex)||(v==null?void 0:v.startIndex)||0,length:(G==null?void 0:G.length)||(t==null?void 0:t.length)||0}));if(u.commandRuns&&(K==null||!K.noEndpoints))for(C=_.y(u.commandRuns),d=C.next();!d.done;d=C.next())d=
d.value,M=SMb(d,K),l.push(yB({run:d,textLength:D,tag:"a",config:M,startIndex:d.startIndex,length:d.length}));if(u.attachmentRuns)for(u=_.y(u.attachmentRuns),C=u.next();!C.done;C=u.next()){C=C.value;q=M=void 0;d={className:"yt-core-attributed-string--inline-block-mod"};if((q=C.element)==null?0:q.properties){q=(M=C.element)==null?void 0:M.properties;M=[];q=_.b(q,plw);if(q==null?0:q.margin)q=q.margin,q.left&&M.push("margin-left: "+ut(q.left)+";"),q.right&&M.push("margin-right: "+ut(q.right)+";"),q.top&&
M.push("margin-top: "+ut(q.top)+";"),q.bottom&&M.push("margin-bottom: "+ut(q.bottom)+";");M=M.length!==0?M.join(" "):void 0;d.style$=M}W=void 0;M={alt:"",preserveHeight:!0,preserveWidth:!0};q=["yt-core-attributed-string__image-element"];if(C.alignment){a:switch(C.alignment){case "ALIGNMENT_BASELINE":v="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":v="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:v=
"yt-core-attributed-string__image-element--image-alignment-bottom"}q.push(v)}if((W=C.element)==null?0:W.properties)W=[],v=_.b(C.element.properties,plw),(v==null?0:v.height)&&W.push("height: "+ut(v.height)+";"),(v==null?0:v.width)&&W.push("width: "+ut(v.width)+";"),W=W.length!==0?W.join(" "):void 0,M.style$=W,v=void 0,W=((v=_.b(C.element.properties,ifR))==null?void 0:v.label)||"",M.alt=W;M.className=q.join(" ");q=void 0;G=v=void 0;W=((G=C.element)==null?0:G.type)?(v=_.b(C.element.type,TgH))==null?
void 0:v.image:void 0;l.push(yB({run:C,textLength:D,tag:"img",image:W,imageConfig:M,imageWrapperConfig:d,startIndex:C.startIndex,length:(q=C.length)!=null?q:0}))}if(K==null?0:K.headerRuns)for(K=_.y(K.headerRuns),u=K.next();!u.done;u=K.next())if(u=u.value,u.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(u.headerMapping)){a:{switch(u.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":C=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":C="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":C="yt-core-attributed-string--heading-3";break a}C=void 0}l.push(yB({run:u,textLength:D,tag:"span",config:C?{className:C}:void 0,startIndex:u.startIndex,length:u.length}))}return l};
_.MI=function(u){return(u==null?void 0:u.content)!==void 0};
FZH=function(u){return _.MI(u)?u:_.Ep(u)};
Vm9=function(u){return u.image!==void 0&&u.imageConfig!==void 0};
gmy=function(u,K){if(K==null?0:K.userInput)for(u=_.y(u),K=u.next();!K.done;K=u.next())if(K=K.value,K.tag!=="a"&&K.tag!=="li"){var l=void 0;(l=K).config||(l.config={});K.config.dir=K.tag==="ul"?_.GB().resolve(_.qI):"auto"}};
NgZ=function(u){return function(K){var l=u.run;(l.onTap!==void 0||l.onLongPress!==void 0)&&_.b(l,XHZ)&&Pzb(K,{loggingDirectives:_.b(l,XHZ)})}};
kJw=function(u){return function(K){for(var l in u)(qP[l]||qP[LI["default"]])(K,l,u[l])}};
XlZ=function(u,K){ZfZ(K);var l={data:null,start:0,end:u.length,parts:[]};K=_.y(K);for(var D=K.next();!D.done;D=K.next())D=D.value,YML(l,D.startIndex,D.endIndex,D);Akq(u,l);return l};
YML=function(u,K,l,D){for(var d=_.y(u.parts),C=d.next();!C.done;C=d.next()){C=C.value;if(typeof C==="string")throw Error("hh");if(C.start<=K&&l<=C.end){YML(C,K,l,D);return}}u.parts.push({data:D,parts:[],start:K,end:l})};
Akq=function(u,K){for(var l=K.parts.length;l>=0;l--){var D=K.parts[l],d=K.parts[l-1],C=l===K.parts.length?K.end:D.start;d=l===0?K.start:d.end;C!==d&&K.parts.splice(l,0,u.slice(d,C));D&&Akq(u,D)}};
ZfZ=function(u){u.sort(function(K,l){if(K.startIndex<l.startIndex)return-1;if(l.startIndex<K.startIndex)return 1;K=K.endIndex-K.startIndex;l=l.endIndex-l.startIndex;return K>l?-1:l>K?1:0})};
_.mVb=function(u){var K=u.thumbnails;if(K){u={sources:[]};K=_.y(K);for(var l=K.next();!l.done;l=K.next()){l=l.value;var D={};D.url=l.url;D.width=l.width;D.height=l.height;u.sources.push(D)}return u}};
hQL=function(u,K,l,D){if(!K)return u.length>=1?u[u.length-1]:null;if(D)for(var d=_.y(u),C=d.next();!C.done;C=d.next()){C=C.value;var W=void 0,M=(W=C.url)==null?void 0:W.indexOf(D);if(M!==void 0&&M>=0)return C}D=_.y(u);for(d=D.next();!d.done;d=D.next())if(d=d.value,d.width&&d.height&&(l&&d.width>=K||!l&&d.height>=K))return d;for(K=u.length-1;K>=0;K--)if(l&&u[K].width||!l&&u[K].height)return u[K];return u[0]};
_.EmL=function(u){var K;return(u=(K=u.sources)==null?void 0:K[0])?u.width/u.height:0};
_.LZh=function(u){if(u.sources){u=_.y(u.sources);for(var K=u.next();!K.done;K=u.next()){K=K.value;var l=void 0;if((l=K.clientResource)==null?0:l.imageName)return K}}};
uJq=function(u){var K;if((K=u.clientResource)!=null&&K.imageColor)return _.Kg(u.clientResource.imageColor)};
_.ln9=function(u,K,l,D,d,C,W){if(!K||K.length===0||K[0].clientResource)return null;if(l&&K[0].url)return K[0].url;D===void 0&&(D=!0);if(D){var M;u=Kcq*(d||(u==null?void 0:(M=u.getBoundingClientRect())==null?void 0:M.width)||0)}else{var q;u=Kcq*(C||(u==null?void 0:(q=u.getBoundingClientRect())==null?void 0:q.height)||0)}K=hQL(K,u,D,W);return(K==null?0:K.url)?K.url:(K==null?0:K.imageData)?K.imageData:null};
D5r=function(u,K,l){l=l?[l]:[];u.opacity&&l.push("opacity: "+u.opacity+";");K&&u.placeholderColor?(u=_.Kg(u.placeholderColor),l.push("background-color: "+u+";")):l.push("background-color: transparent;");return l.join(" ")};
d5Z=function(u,K,l,D,d){var C=["yt-core-image"];K&&C.push(K);l||C.push("yt-core-image--fill-parent-height");D||C.push("yt-core-image--fill-parent-width");switch(u.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":C.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":C.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":C.push("yt-core-image--content-mode-center");break;default:C.push("yt-core-image--content-mode-scale-to-fill")}u.flipForRtlLayout&&
C.push("yt-core-image--flip-rtl");switch(d){case "TOP_START":var W;C.push(((W=document.body)==null?void 0:W.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return C.join(" ")};
InR=function(u){var K;if(u==null?0:(K=u.clientResource)==null?0:K.imageName){var l;u=(l=u.clientResource)==null?void 0:l.imageName;a:{switch(u){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":l="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":l="yt-logos-ext:yt-logo-updated";break a}l=void 0}return l||Cxq.get(u)||u}};
oky=function(u){return _.S("mweb_wiz_skip_render")?ytq(u):sWh(u)};
ytq=function(u){return function(K){var l=MBZ("wink-root");yI();q6L();jwn(l,_.n(u,K))}};
sWh=function(u){var K=K===void 0?!1:K;return function(l){if(!K||!_.S("mweb_skip_keto_to_c3_if_no_data")||l.data!==void 0){var D=t8(!1);try{var d=l.children;_.S("mweb_render_outside_patch_killswitch")||K0?d?MP(_.n(u,l,d)):MP(_.n(u,l)):_.hV(new _.wv("ketoToC3 called outside of a patch",{tagName:u.TAG_NAME}))}finally{t8(D)}}}};
Wcq=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
Mer=function(u,K){u.onViewportEntered=K;HLZ.observe(u)};
qDb=function(){var u={rootMargin:"10%",threshold:.01};_.S("mweb_enable_set_io_root_to_null_safari")?u.root=null:_.S("mweb_enable_set_io_root_to_body_safari")&&(u.root=document.body);return new IntersectionObserver(function(K,l){K.filter(function(D){return D.intersectionRect.height>0}).forEach(function(D){D=D.target;
if(!_.S("mweb_enable_only_update_image_when_connected")||D.isConnected!==!1){var d;(d=D.onViewportEntered)==null||d.call(D);l.unobserve(D)}})},u)};
$5q=function(u,K,l,D,d){function C(){if(D){var M=D.loadedClass,q=D.notifyOnUnloaded;M&&_.$o(u,M);q&&u.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function W(){var M=l(K,u);M&&u.getAttribute("src")!==M&&(_.S("mweb_enable_only_update_image_when_connected")&&u.isConnected===!1||M===u.src||(u.src=M),C())}
d=d===void 0?!0:d;u.removeAttribute("src");C();K&&(d?Mer(u,W):W())};
nkq=function(u,K,l){if(!K)return!1;K=l(K,u);l=u.getAttribute("src");return K&&K===l&&u.complete};
rtr=function(u,K){for(var l in K)l==="className"?u.className=K[l]:(qP[l]||qP[LI.default])(u,l,K[l])};
vkZ=function(u,K,l,D){oky(_.n4)({contentMode:K.contentMode,loadedClass:K.loadedClass,isPreloaded:K.isPreloaded,notifyOnLoaded:K.notifyOnLoaded,notifyOnUnloaded:K.notifyOnUnloaded,preferredThumbnail:K.preferredThumbnail,preserveHeight:K.preserveHeight,preserveWidth:K.preserveWidth,objectPosition:K.objectPosition,targetWidth:K.targetWidth,targetHeight:K.targetHeight,shouldShowPlaceholder:K.shouldShowPlaceholder,useWidth:K.useWidth,isToggled:K.isToggled,alt:K.alt,className:K.className,onerror:K.onerror,
onload:K.onload,style$:K.style$,color:K.color,width:K.width,height:K.height,"aria-hidden$":K["aria-hidden$"],draggable:K.draggable,"data-disabled$":K["data-disabled$"],data:u,callback:l,renderLazy:D===void 0?!0:D,hideOn404:!1})};
teo=function(u,K,l){l=l===void 0?!1:l;var D=u.sources!==void 0?u:_.mVb(u);if(D){var d=K.onload;K.onload=function(q){var v=q.target;l&&v.naturalWidth===120||_.rY(v,"yt-core-image--loaded");K.notifyOnLoaded&&v.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));d==null||d(q)};
K.targetWidth&&K.preserveWidth&&(K.width=K.targetWidth);K.targetHeight&&K.preserveHeight&&(K.height=K.targetHeight);var C=_.LZh(D),W=C&&InR(C);if(W)return(u=uJq(C))&&(K.color=u),{type:"icon",iconName:W,config:Object.assign({},K,K.alt?{}:{"aria-hidden$":"true"},{"aria-label$":K.alt,role:"img"})};if(u.sources===void 0){K.alt=u.accessibility&&u.accessibility.accessibilityData&&u.accessibility.accessibilityData.label||K.alt;K.style$=D5r(u,K.shouldShowPlaceholder,K.style$);var M;K.isPreloaded=!((M=_.b(u,
Gy9))==null||!M.isPreloaded)}K.contentMode&&!D.contentMode&&(D.contentMode=K.contentMode);K.className=d5Z(D,K.className,K.preserveHeight,K.preserveWidth,K.objectPosition);K.loadedClass="yt-core-image--loaded";return{type:"image",image:D,config:K}}};
_.v1=function(){var u=_.uY.apply(0,arguments);return _.W4(x5q,function(K){var l=u.map(function(D){return D==null?void 0:D(K)});
return function(){return void l.forEach(function(D){return void(D==null?void 0:D())})}})};
GH=function(u,K){var l=K==null?void 0:K.initial;return _.RZ(function(){_.Z7(!0);return l=u(l)},{equals:K==null?void 0:K.isEqual},"rSlKsc")};
SDb=function(u,K){if(u===K)return!0;if(u===void 0||K===void 0)return!1;var l,D,d,C,W,M,q,v;return u.content===K.content&&((l=u.styleRuns)==null?void 0:l.length)===((D=K.styleRuns)==null?void 0:D.length)&&((d=u.commandRuns)==null?void 0:d.length)===((C=K.commandRuns)==null?void 0:C.length)&&((W=u.attachmentRuns)==null?void 0:W.length)===((M=K.attachmentRuns)==null?void 0:M.length)&&((q=u.decorationRuns)==null?void 0:q.length)===((v=K.decorationRuns)==null?void 0:v.length)};
cto=function(u,K){if(u){var l=FZH(u);if(l!=null&&l.content)if(_.S("attr_string_reactive"))oky(bLb)({text:u,config:K});else{var D=!(K==null||!K.ariaLabel)||!(l.commandRuns&&l.commandRuns.length!==0||l.paragraphStyleRuns&&l.paragraphStyleRuns.length!==0);u=D?K==null?void 0:K.ariaLabel:null;D=D?"text":null;mQ("span",{className:aRb(l,K),dir$:(K==null?0:K.userInput)?"auto":void 0,"aria-label$":u,role$:D},function(){if(l.styleRuns||l.commandRuns||l.attachmentRuns||l.decorationRuns){var d=wlq(l,K);gmy(d,
K);d=XlZ(l.content,d);d=_.y(d.parts);for(var C=d.next();!C.done;C=d.next())OL9(C.value)}else q_(l.content)})}}};
OL9=function(u){typeof u==="string"?q_(u):Vm9(u.data)?mQ("span",u.data.imageWrapperConfig,function(){vkZ(u.data.image,u.data.imageConfig)}):mQ(u.data.tag,u.data.config,function(K){NgZ(u.data)(K);
K=_.y(u.parts);for(var l=K.next();!l.done;l=K.next())OL9(l.value)})};
zCZ=function(u){return u.parts.map(anw)};
anw=function(u){if(typeof u==="string")return u;u=Vm9(u.data)?_.n("span",{el:_.v1(kJw(u.data.imageWrapperConfig))},_.n(_.n4,Object.assign({},{data:u.data.image},u.data.imageConfig))):_.n(u.data.tag,{el:_.v1(NgZ(u.data),kJw(u.data.config))},u.parts.map(anw));return f0(u)};
eCr=function(u,K){return u===K?!0:u===void 0||K===void 0?!1:u.noStyleRuns===K.noStyleRuns&&u.noLinkColor===K.noLinkColor&&u.noEndpoints===K.noEndpoints&&u.headerRuns===K.headerRuns&&u.isOverlay===K.isOverlay&&u.linkInheritColor===K.linkInheritColor&&u.userInput===K.userInput};
RCr=function(u){return function(){var K,l,D,d,C,W,M,q,v,G,t,x,O,a;return{ariaLabel:(K=u.ariaLabel)==null?void 0:K.call(u),className:(l=u.className)==null?void 0:l.call(u),ellipsisTruncate:(D=u.ellipsisTruncate)==null?void 0:D.call(u),isOverlay:(d=u.isOverlay)==null?void 0:d.call(u),linkInheritColor:(C=u.linkInheritColor)==null?void 0:C.call(u),noEndpoints:(W=u.noEndpoints)==null?void 0:W.call(u),noStyleRuns:(M=u.noStyleRuns)==null?void 0:M.call(u),noLinkColor:(q=u.noLinkColor)==null?void 0:q.call(u),
noPreWrap:(v=u.noPreWrap)==null?void 0:v.call(u),noWrap:(G=u.noWrap)==null?void 0:G.call(u),skipOnClick:(t=u.skipOnClick)==null?void 0:t.call(u),stopPropagation:(x=u.stopPropagation)==null?void 0:x.call(u),userInput:(O=u.userInput)==null?void 0:O.call(u),headerRuns:(a=u.headerRuns)==null?void 0:a.call(u)}}};
U5o=function(u){return u.value===""||u.value==="true"?!0:u.value==="false"?!1:isNaN(Number(u.value))?u.value:Number(u.value)};
tB=function(u,K){u=new fnn(u,K);_.Xm(u);throw u;};
QWq=function(u,K,l){var D=wth(u);u._numRenders=0;try{var d=_.KUR(function(){return _.n(K,Object.assign({},l))})}catch(W){var C=function(M){M.args||(M.args=[]);
M.args.push("Error in web component wrapper");M.args.push(u.tagName.toLowerCase());return M};
_.m0(W instanceof Error?C(W):new fnn("Wiz rendering error",u.tagName.toLowerCase()));throw W;}finally{wth(D)}return d};
_.SX=function(u,K,l){function D(G){var t={};G=_.y(G);for(var x=G.next();!x.done;x=G.next()){x=x.value;var O=void 0,a=void 0,f=void 0,B=_.P_((f=(a=(O=x).getAttribute)==null?void 0:a.call(O,"slot"))!=null?f:"children");if(O=t[B])O.push(x);else if(B in C||B==="children")t[B]=[x]}G=_.y(Object.keys(t));B=G.next();for(x={};!B.done;x={content$jscomp$56:void 0},B=G.next())B=B.value,B!=="children"&&(x.content$jscomp$56=t[B],t[B]=function(p){return function(){return p.content$jscomp$56}}(x));
return t}
l=l===void 0?{}:l;u.componentType!==pI||tB("Components must be marked reactive to be used from web component wrapper.",K);Op.has(K)&&tB("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",K);var d,C=(d=l.props)!=null?d:{};cb.add(K);var W=Pxb();d=function(){var G=W.apply(this,arguments)||this;G.rawProps={};G.queuingRender=!1;G.dispose=function(){};
G.isWebComponentWrapper=!0;G.isReparenting=!1;G.hasRendered=!1;return G};
_.c(d,W);d.prototype.render=function(){this.hasRendered=!0;for(var G=_.y([].concat(_.Am(this.attributes))),t=G.next();!t.done;t=G.next())t=t.value,t.name!=="slot"&&t.name!=="hidden"&&this.removeAttribute(t.name);G=Object.assign({},this.componentProps,this.slotProps);t=_.y(QWq(this,u,G));G=t.next().value;t=t.next().value;!(G[0]instanceof Element)||G.length>1?tB("Wrapped Wiz components must return a single root element.",K):(G=G[0].tagName.toLowerCase(),G!==K&&tB("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(G+" !== '"+K),K),this.dispose=t)};
d.prototype.setUpProps=function(){for(var G=this.rawProps,t=this.attributes,x=_.y(Object.keys(C)),O=x.next();!O.done;O=x.next()){O=O.value;var a=void 0;((a=this)==null?0:a[O])&&this[O]!==Jtn&&G[O]===void 0&&(G[O]=this[O],(a=Object.getOwnPropertyDescriptor(this.constructor.prototype,O))&&Object.defineProperty(this,O,a))}x=_.y(t);for(O=x.next();!O.done;O=x.next()){a=O.value;O=_.P_(a.name);var f=O==="class"&&!t.getNamedItem("class-name");if(O in C||f)a=U5o(a),O!=="class"||G.className?G[O]=a:G.className=
a}t={};for(var B in C)C[B]!==_.xo&&C[B]!==jWb&&(G[B]instanceof Function&&tB("Function props must be configured as STATIC, not SIGNAL.",K),O=_.y(_.On(G[B],void 0,"Ri8MSe")),x=O.next().value,O=O.next().value,t[B]=O,G[B]=x);G=_.y([G,t]);this.componentProps=G.next().value;this.setters=G.next().value;this.slotProps=D(this.childNodes)};
d.prototype.connectedCallback=function(){S1===K&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in C&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
d.prototype.disconnectedCallback=function(){if(!this._isInert){var G;a:{if(_.BJ9)for(G=this;G;){if(_.pLn.has(G)){G=!0;break a}G=G.parentElement}G=!1}if(G)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){G=_.y([].concat(_.Am(this.attributes)));for(var t=G.next();!t.done;t=G.next()){t=t.value;var x=void 0;t.name==="slot"||t.name==="hidden"&&((x=l.unsafeExternallySettableAttributes)==null?0:x.has("hidden"))||this.removeAttribute(t.name)}}this.innerText="";Qrq(this)}}};
d.prototype._setPendingPropertyOrPath=function(){};
d.prototype.notifyPath=function(){};
_.MN.Object.defineProperties(d.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var M=_.y(Object.keys(C)),q=M.next(),v={};!q.done;v={prop$jscomp$104:void 0},q=M.next())v.prop$jscomp$104=q.value,q=void 0,((q=l.legacyPolymer)==null?0:q.forwardHostProps)&&RcH.has(v.prop$jscomp$104)||Object.defineProperty(d.prototype,v.prop$jscomp$104,{set:function(G){return function(t){var x=this;this._isInert||(this.setters?Un(function(){var O,a;return void((a=(O=x.setters)[G.prop$jscomp$104])==null?void 0:a.call(O,t))}):(this.rawProps[G.prop$jscomp$104]=t,this.queuingRender&&G.prop$jscomp$104===
"data"&&t!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(v),
get:iLL.has(v.prop$jscomp$104)?void 0:function(){return Jtn}});
customElements.define(K,d)};
_.TJh=function(u,K){return(u=_.bt(u,K))?_.Yu(_.ES(u)):null};
_.O4=function(u){if(u=_.bt(u,Number.MAX_VALUE,void 0,"width"))return _.ES(u)};
_.bt=function(u,K,l,D){D=D===void 0?"width":D;if(!u||!u.length)return null;if(_.S("kevlar_tuner_should_always_use_device_pixel_ratio")){var d=window.devicePixelRatio;_.S("kevlar_tuner_should_clamp_device_pixel_ratio")?d=Math.min(d,_.Sg("kevlar_tuner_clamp_device_pixel_ratio")):_.S("kevlar_tuner_should_use_thumbnail_factor")&&(d=_.Sg("kevlar_tuner_thumbnail_factor"));wLr=d}else wLr||(wLr=window.devicePixelRatio);d=wLr;_.S("kevlar_tuner_should_always_use_device_pixel_ratio")?K*=d:d>1&&(K*=d);if(_.S("kevlar_tuner_min_thumbnail_quality"))return u[0].url||
null;d=u.length;if(_.S("kevlar_tuner_max_thumbnail_quality"))return u[d-1].url||null;if(l)for(var C=0;C<d;C++)if(u[C].url.indexOf(l)>=0)return u[C].url||null;for(l=0;l<d;l++)if(u[l][D]>=K)return u[l].url||null;for(K=d-1;K>0;K--)if(u[K][D])return u[K].url||null;return u[0].url||null};
gkq=function(){c1.size?setTimeout(function(){aT(Fch)},0):VeZ=0};
Fch=function(){var u=(0,_.vA)(),K=null,l=!1;c1.forEach(function(d){d.loaded=!0;d.loadTime=u;d.pendingPaint=!1;var C=NJH.get(d);C&&C.resolve(u);K=d;l||!d.ftlEligible&&d.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(l=!0)});
var D;((D=K)==null?0:D.markDirty)&&K.markDirty();c1.clear();VeZ=0;l&&kyr(u)};
ZLq=function(u){c1.add(u);u.pendingPaint=!0;VeZ||(VeZ=_.zH(_.YL,gkq))};
YDo=function(u){u.loaded=!1;u.loadTime=Infinity;var K=NJH.get(u);K&&(K.reject(Error("nh")),NJH.delete(u));u.pendingPaint&&(c1.delete(u),u.pendingPaint=!1)};
_.Atq=function(u){var K=u.indexOf(":");return K===-1?{originalName:u}:{originalName:u.substring(0,K),datasyncId:u.substring(K+1)}};
_.m5n=function(){return _.H(function(u){if(XLb!==void 0)return u.return(XLb);XLb=new Promise(function(K){var l;return _.H(function(D){switch(D.nextAddress){case 1:return _.Qg(D,2),D.yield(_.eX.open("test-only"),4);case 4:return D.yield(_.eX.delete("test-only"),5);case 5:_.I$(D,3);break;case 2:if(l=_.iY(D),l instanceof Error&&l.name==="SecurityError")return K(!1),D.return();case 3:K("caches"in window),_.TG(D)}})});
return u.return(XLb)})};
Lc9=function(){return _.H(function(u){if(u.nextAddress==1)return u.yield(_.m5n(),2);if(!u.yieldResult)return u.return(void 0);hCL||(hCL=new Ek9);return u.return(hCL)})};
ujL=function(u){var K,l,D,d;return _.H(function(C){switch(C.nextAddress){case 1:return C.yield(Lc9(),2);case 2:K=C.yieldResult;if(!K)throw Error("ph");return C.yield(K.open("yt-player-local-img"),3);case 3:return l=C.yieldResult,C.yield(l.match(u),4);case 4:D=C.yieldResult;if(!D)throw Error("qh");return C.yield(D.blob(),5);case 5:return d=C.yieldResult,C.return(d)}})};
KwZ=function(u,K){for(var l in u)if(u.hasOwnProperty(l)&&K[l])return l;return null};
lfy=function(u){return"stamp"+u.replace("-","_")+"_"};
Djy=function(u){var K=u.match(/\[\[([\w\.]+)\]\]/);if(K&&K.length>1)return K[1];_.Xm(Error("sh`"+u));return null};
djq=function(u){return u===void 0?_.L0("REUSE_COMPONENTS",!1):u||!1};
yjn=function(u,K,l){l&&(K.is?(CRH.has(K)&&(u=CRH.get(K),l=u.listener,delete K[u.property],l.type==="element"&&K.removeEventListener(l.eventName,l.handler),CRH.delete(K)),Ifr(K)):K.__proto__==HTMLElement.prototype&&(K=new _.wv("Rendererstamper removed a non custom element","Stamper: "+u+" element: "+(K&&K.nodeName)),_.hV(K)))};
szb=function(u,K,l,D){var d=K.node?K.node:K;_.bi(l).parentNode===d&&(K.removeChild(l),yjn(u,l,D));if(u=RT.get(l))RT.delete(l),_.YL.cancelJob(u);l.hidden=!1};
obL=function(u,K,l,D){if(K&&K.children&&(l=K.children[l]))if(_.L0("DEFERRED_DETACH"))for(;l&&!RT.has(l);){var d=u,C=K,W=l,M=D;W.hidden=!0;d=_.Ve(_.YL,szb.bind(null,d,C,W,M),0);RT.set(W,d);l=l.nextElementSibling}else for(;(W=K.lastElementChild)&&(K.removeChild(W),yjn(u,W,D),W!=l););};
WwH=function(u){var K=_.o9("__slot-el");_.ZY(function(){for(var l=_.y(u.slotContent),D=l.next();!D.done;D=l.next())K.value.appendChild(D.value)});
return _.n("__slot-el",{el:K,skip:!0})};
_.U4=function(u,K,l){l=l===void 0?H$q:l;Op.add(K);var D;(D=l).propNames!=null||(D.propNames=[]);var d=new Set(l.propNames),C=Pxb();D=function(){var v=C.call(this)||this;v.props={};v.isUpdating=!1;v.hasAttached=!1;v.isInert=!1;v.updateQueued=!1;v.initialClasses=[];T5n(v,K);return v};
_.c(D,C);D.prototype.forwardKebabCaseProp=function(v,G){v=_.P_(v);if(d.has(v)||v==="children")this.props[v]=G};
D.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var v=_.y(this.initialClasses),G=v.next();!G.done;G=v.next())(G=G.value)&&this.classList.add(G);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
D.prototype.handleSlottedContent=function(){for(var v=new Map,G=_.y(this.children),t=G.next();!t.done;t=G.next()){t=t.value;var x=void 0,O=(x=t.getAttribute("slot"))!=null?x:"children";(x=v.get(O))?x.push(t):v.set(O,[t]);if(!t.getAttribute("key")){var a=void 0,f=void 0;t.setAttribute("key",O+"_"+((f=(a=x)==null?void 0:a.length)!=null?f:0))}}v=_.y(v);for(G=v.next();!G.done;G=v.next())t=_.y(G.value),G=t.next().value,t=t.next().value,this.forwardKebabCaseProp(G,_.n(WwH,{slotContent:t}))};
D.prototype.connectedCallback=function(){var v=this;if(!T5n(this,K)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var G=_.y(this.attributes),t=G.next();!t.done;t=G.next())t=t.value,this.forwardKebabCaseProp(t.name,U5o(t));this.handleSlottedContent();l.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){v.afterFirstPatch()});
this.hasAttached=!0}};
D.prototype.attributeChangedCallback=function(v,G,t){this.isInert||this.isUpdating||this.isConnected||v!=="class"||this.initialClasses.push.apply(this.initialClasses,_.Am(t.split(" ")))};
D.prototype.disconnectedCallback=function(){GSZ(this)};
D.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var v,G;jwn(this,_.n(u,Object.assign({},this.props,{idomKey:(G=(v=this.__incrementalDOMData)==null?void 0:v.key)!=null?G:K})),!0)}catch(x){var t=x instanceof Error?x:new _.wv("Wiz rendering error");t.args||(t.args=[]);t.args.push("Error in deprecated web component wrapper");t.args.push(K.toLowerCase());_.Xm(t);throw x;}finally{this.updateQueued=this.isUpdating=!1}}};
D.prototype.enqueueUpdate=function(){var v=this;return _.H(function(G){if(l.synchronous)return v.update(),G.return();if(v.updateQueued)return G.return();v.updateQueued=!0;return G.return(Promise.resolve().then(function(){v.update()}))})};
D.prototype.notifyPath=function(){l.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.MN.Object.defineProperties(D,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var W=_.y(l.propNames),M=W.next(),q={};!M.done;q={prop$jscomp$106:void 0},M=W.next())q.prop$jscomp$106=M.value,Object.defineProperty(D.prototype,q.prop$jscomp$106,{set:function(v){return function(G){this.isInert||G===this.props[v.prop$jscomp$106]||(this.props[v.prop$jscomp$106]=G,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(q)});
customElements.define(K,D)};
_.MCh=function(u,K){return _.eZ(u.entities,"markersEngagementPanelSyncEntity",K)};
qHH=function(u,K){return _.eZ(u.entities,"fantasyWinProbabilityEntity",K)};
$jo=function(u,K){return _.eZ(u.entities,"fantasyTeamEntity",K)};
nbL=function(u,K){return _.eZ(u.entities,"fantasyPlayerEntity",K)};
rjn=function(u,K){return _.eZ(u.entities,"booleanEntity",K)};
vbH=function(u,K){return _.eZ(u.entities,"qrCodeEntity",K)};
Gmn=function(u){return _.eZ(u.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
tCq=function(){if(f4)return f4;if(window.lottie)return f4=Promise.resolve(window.lottie);var u=_.AP(_.E3("LOTTIE_URL"));return u?f4=new Promise(function(K,l){var D=document.createElement("script");D.addEventListener("load",function(){K(lottie)});
D.addEventListener("error",function(d){var C="Lottie library failed to load.";d?d.message&&(C+=" Original description: "+d.message,_.E5(d,C)):d=Error(C);_.hV(d);l(d)});
D.setAttribute("async","");_.$P(D,u);document.head.appendChild(D)}):Promise.reject(Error("th"))};
xjn=function(){return f4?f4:tCq()};
SHw=function(u){if(u)switch(u){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.S("kevlar_use_wil_icons"))return u=(u=Gmn(_.Mu().getState()))&&u.animationLightUrl&&u.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:u.animationLightUrl,pathDarkTheme:u.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,u?u:QB.get("LIKE")}};
b$R=function(u){var K=SHw(u);if(K)return K;switch(u){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return QB.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return QB.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return QB.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return QB.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return QB.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return QB.get("NOTIFICATION_BELL")}};
cjL=function(u,K){if(!u||O$w)K=!1;else{if(u.closest){var l=!!SHw(K);l=_.E3("ID_TOKEN")&&l?!!u.closest("segmented-like-dislike-button-view-model"):!1}else l=!1;if(!l)if(u.closest)if(l=!_.E3("ID_TOKEN"),u=u.closest("ytd-subscription-notification-toggle-button-renderer-next"),l||!u)l=!1;else{var D;l=((D=u.data)==null?void 0:D.targetId)==="notification-bell"&&K!=="EXPAND_MORE"}else l=!1;K=l}return K};
af9=function(u){var K,l;return _.H(function(D){switch(D.nextAddress){case 1:return _.Qg(D,2),D.yield(fetch(u),4);case 4:return K=D.yieldResult,D.yield(K.json(),5);case 5:return D.return(D.yieldResult);case 2:l=_.iY(D),_.hV(l),_.TG(D)}})};
zRy=function(u,K){var l,D,d;return _.H(function(C){if(C.nextAddress==1)return(l=K?u.pathDarkTheme:u.path)?C.yield(Promise.all([af9(l),tCq()]),2):C.return();D=C.yieldResult;d=D[0];P1.set(l,d);_.TG(C)})};
_.JB=function(){for(var u=_.uY.apply(0,arguments),K=!0,l=_.y(u),D=l.next();!D.done;D=l.next())if(typeof D.value!=="string"){K=!1;break}return K?u.join(" ").trim()||void 0:function(){for(var d="",C=_.y(u),W=C.next();!W.done;W=C.next())if(W=W.value,typeof W==="function"&&(W=W()),W)if(typeof W==="string")d+=" "+W;else for(var M in W)if(W.hasOwnProperty(M)){var q=W[M];typeof q==="function"&&(q=q());q&&(d+=" "+M)}d=d.trim()||void 0;return _.Z7(d)}};
RRq=function(u,K,l,D){function d(W,M){if(K.value===M&&u!=null&&u.value){for(;u.value.firstChild;)u.value.removeChild(u.value.firstChild);u.value.classList.add("yt-spec-icon-shape");W(u.value,D)}}
l=_.eRo(_.GB().resolve(_.Q2),l);if(typeof l==="function")K.value=null,d(l,null);else{var C=new _.RL(l.then,l);K.value=C;C.then(function(W){d(W,C)})}};
ffr=function(u,K){var l=document.createElement("div"),D=_.gi(l,function(){return _.n(_.r,{cond:u,then:function(d){return _.n(UjZ,{data:d,options:K})}})});
return[l,D]};
_.jX=function(){for(var u=[],K=_.y(_.uY.apply(0,arguments)),l=K.next();!l.done;l=K.next())if(l=l.value)if(typeof l==="string")u.push(l);else{l=_.y(Object.entries(l));for(var D=l.next();!D.done;D=l.next()){var d=_.y(D.value);D=d.next().value;(d=d.next().value)&&u.push(D)}}return u.join(" ")};
jzo=function(u){var K=_.o9("animated-rolling-character"),l=A8(),D=H0(u.character)||H0(u.previousCharacter);inZ(function(){if(u.marginMultiplier){var d;(d=l.value)==null||d.cancel();D?(d=u.previousCharacter?Number(u.previousCharacter)+10:u.rollUp?0:30,u.shouldAnimate||(d-=QzH(u,d))):(d=u.rollUp?0:2,u.shouldAnimate||(d-=u.rollUp?-1:1));K.value.style.marginTop="-"+d*u.marginMultiplier+"px";u.shouldAnimate?l.value=PRh(K.value,u,d,D):K.value.style.display=u.character?"":"none"}});
return _.n("animated-rolling-character",{el:K,class:"animated-rolling-character-wiz"},oZ(D,function(){for(var d=[],C=1;C<30;C++)d.push(_.n("div",null,C%10));return _.n(_.G1,null,_.n("div",null,"\u00a0"),d,_.n("div",null,"\u00a0"))},function(){return Jjy(u.character)}))};
Jjy=function(u){return _.n(_.G1,null,_.n("div",null,"\u00a0"),_.n(_.G1,null,oZ(!u||_.oR(u),function(){return _.n("div",null,"\u00a0")},function(){return _.n("div",null,u)})),_.n("div",null,"\u00a0"))};
PRh=function(u,K,l,D){l=new Animation(new KeyframeEffect(u,[{transform:"translateY(0px)"},{transform:"translateY("+(D?QzH(K,l):K.rollUp?-1:1)*K.marginMultiplier+"px)"}],B4r),document.timeline);K.character?(u.style.display="",l.onfinish=null):l.onfinish=function(){u.style.display="none"};
l.play();return l};
QzH=function(u,K){var l=Number(u.character)+10;if(u.previousCharacter)if(u.character){var D=Number(u.character),d=Number(u.previousCharacter);u=u.rollUp?d<D?l:l+10:d<D?l-10:l}else u=u.rollUp?30:0;else u=u.character==="0"?l:u.rollUp?l-10:l+10;return K-u};
_.B1=function(u,K){return function(l){var D={},d;for(d in l){var C=void 0,W=void 0;((C=K)==null?0:(W=C.callbacks)==null?0:W[d])||(D[d]=l[d])}return _.n(uRq,null,function(){for(var M in D)l[M]=_.Z7(D[M]);l.disableReactiveLogging=!0;return _.n(u,Object.assign({},l))})}};
T4y=function(u,K,l,D,d,C,W){l=new Animation(new KeyframeEffect(u,[{transform:"translateY(0px)"},{transform:"translateY("+(C?ph9(K,l,D,d):D?-1:1)*W+"px)"}],i$b),document.timeline);K?(u.style.display="",l.onfinish=null):l.onfinish=function(){u.style.display="none"};
l.play();return l};
ph9=function(u,K,l,D){var d=Number(u)+10;K?u?(u=Number(u),K=Number(K),l=l?K<u?d:d+10:K<u?d-10:d):l=l?30:0:l=u==="0"?d:l?d-10:d+10;return D-l};
Fwr=function(u){var K=A8(),l=A8();_.kD(function(){K.value=u.numberText;l.value=u.numberValue},[u.numberText]);
var D=u.fontSizeMultiplier?u.heightPx*u.fontSizeMultiplier:u.heightPx,d=YWR(function(){if(u.numberText){var W=u.numberText;var M=u.forceRollUp||!l.value||!u.numberValue||l.value<u.numberValue;var q=!!u.shouldAnimate,v=K.value,G=[],t=0,x=0,O=(v?v.replace(/\D/g,"").length:0)-(W?W.replace(/\D/g,"").length:0);v=v?v.split(/(\d)/).filter(Boolean):[];for(W=W.split(/(\d)/).filter(Boolean);O<0;){var a=W[x];G.push({character:a,rollUp:M,marginMultiplier:D,shouldAnimate:q});x++;H0(a)&&O++}for(;t<O;)a=v[t],G.push({previousCharacter:a,
rollUp:M,marginMultiplier:D,shouldAnimate:q}),t++,H0(a)||O++;for(;x<W.length;)O=W[x],a=v[t],H0(O)===H0(a)?(x++,t++):H0(O)?(t++,O=void 0):H0(a)&&(x++,a=void 0),G.push({character:O,previousCharacter:a,rollUp:M,marginMultiplier:D,shouldAnimate:q});M=G}else M=[];return M},[u.numberText]),C=u.numberText?["height: "+D+"px;",
"line-height: "+u.heightPx+"px;"].join(" "):"";return _.n("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:C,dir:"ltr","aria-hidden":"true"},d.map(function(W){return _.n(whr,Object.assign({},W))}))};
gbr=function(u){var K;return(K=VCy[u])!=null?K:"EVENT_SPAN_TYPE_UNKNOWN"};
N4q=function(u){var K=u.nodeName;if(u.id)return K+="#"+u.id;if(u.classList)for(var l=_.y(u.classList),D=l.next();!D.done;D=l.next())K+="."+D.value;u.parentElement&&(K=N4q(u.parentElement)+" > "+K);return K};
kmn=function(u){return function(K){var l=gbr(K.type);return l==="EVENT_SPAN_TYPE_UNKNOWN"?u(K):tsq("event",{type:l,nodepath:K.target instanceof Element?N4q(K.target):void 0},function(){return u(K)})}};
_.p4=function(u){u&&reb("event")&&(u=kmn(u));return faH(function(K){var l,D=(l=u)==null?void 0:l(K);return typeof D==="boolean"?D:!0})};
TH=function(u){return function(){return u()?u():void 0}};
Z$H=function(u){return new KeyframeEffect(u,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
YHw=function(u){return new KeyframeEffect(u,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.wY=function(u){var K=GH(function(l){l=l?br(l[0]):void 0;return _.On(u(l),void 0,"AwTxXe")},{isEqual:function(l,D){return br(l[0])===br(D[0])}});
return[function(){return K()[0]()},
function(l){return void K()[1](l)}]};
_.Fb=function(u){return function(){var K="",l;for(l in u){for(var D=u[l];typeof D==="function";)D=D();D!==void 0&&D!==null&&(K+="; "+l+": "+D)}return K.length>0?_.Z7(K.slice(2)):_.Z7()}};
Ajq=function(u){switch(u){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"}};
Eby=function(u,K,l,D,d,C){var W=Xhb(u),M=W.disabled,q=W.iconPosition,v=W.style,G=W.focused,t=function(){return!!a()&&q()==="icon-only"},x=function(){return!!a()&&q()==="icon-only-40"},O=function(){return!!a()&&q()==="icon-with-label"},a=function(){return!!K||!(D==null||!D())};
return{type:function(){return v()==="call-to-action-inverse"?"text":v()==="overlay-dark"&&u().type!=="filled"&&u().type!=="tonal"?"tonal":u().type},
shouldFocus:function(){return(G()||(C==null?void 0:C()))&&!M()},
hasIconLeading:function(){return!!a()&&q()==="leading"},
hasIconTrailing:function(){return!!a()&&q()==="trailing"},
hasIconLeadingTrailing:function(){return!!a()&&!!(l||d!=null&&d())&&q()==="leading-trailing"},
hasIconOnly:t,hasIconOnly40:x,hasIconWithLabel:O,iconButton:function(){return t()||x()||O()},
visiblyDisabled:function(){return(M()?"disabled":u().state)==="disabled"||M()},
overrideSmallSizeIcon:function(){return!u().ignoreIconSizeOverride&&mj9(u(),a())},
iconToRender:K?K:function(){return _.n(_.VB,{icon:D,size:function(){return gY(u(),!0,u().ignoreIconSizeOverride)},
active:function(){return u().toggled},
iconFilter:function(){return hRn(u())}})},
secondaryIconToRender:l?l:function(){return _.n(_.VB,{icon:d,size:function(){return gY(u(),!0,u().ignoreIconSizeOverride)},
active:function(){return u().toggled},
iconFilter:function(){return hRn(u())}})}}};
Xhb=function(u){return{size:function(){return u().size},
style:function(){return u().style},
focused:function(){return u().focused},
disabled:function(){return u().disabled},
onTap:function(K){var l,D;return(D=(l=u()).onTap)==null?void 0:D.call(l,K)},
alignByText:function(){return u().alignByText},
aTagConfig:function(){return u().aTagConfig},
customColors:function(){return u().customColors},
segmentedPosition:function(){return u().segmentedPosition},
toggled:function(){return u().toggled},
toggleable:function(){return u().toggleable},
accessibilityLabel:function(){return u().accessibilityLabel},
onToggle:function(K){var l,D;return(D=(l=u()).onToggle)==null?void 0:D.call(l,K)},
iconPosition:function(){return u().iconPosition},
oneOffCustomTextWrap:function(){return u().oneOffCustomTextWrap},
disableTextEllipsis:function(){return u().disableTextEllipsis},
disableBackdropFilter:function(){return u().disableBackdropFilter},
tooltipText:function(){return u().tooltipText},
ariaHidden:function(){return u().ariaHidden},
tabIndex:function(){return u().tabIndex},
buttonText:function(){return u().buttonText},
formattedButtonText:function(){return u().formattedButtonText},
animatedTextProps:function(){return u().animatedTextProps}}};
Lwo=function(u){return u.style==="overlay-dark"?4:u.style==="overlay"?u.type==="filled"?4:3:u.type==="filled"||u.style==="call-to-action-inverse"||u.style==="mono-inverse"?2:1};
mj9=function(u,K){K=(u.iconPosition==="icon-only"||u.iconPosition==="icon-only-40"||u.iconPosition==="icon-with-label")&&K;return!u.segmentedPosition&&K&&u.size==="S"};
uyw=function(){return!_.S("web_disable_backdrop_filter")};
gY=function(u,K,l){switch(u.size){case "XS":return 16;case "S":return!l&&mj9(u,K)?24:16;default:return 24}};
KAw=function(u){switch(u){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"}};
lNL=function(u){switch(u){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"}};
Dlr=function(u){switch(u){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"}};
hRn=function(u){if(u.style==="overlay-dark"&&u.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
dlo=function(u){if(!u)return{};var K=u.color,l=u.backgroundColor;u=u.borderColor;var D="";K&&(D+="color: "+K+";");l&&(D+="background-color: "+l+";");u&&(D+="border-color: "+u+";");return{style:D}};
oNw=function(u,K,l){var D=u.buttonText,d=u.formattedButtonText,C=u.formattedButtonTextLegacy,W=u.animatedTextProps,M=u.style,q=u.size,v=u.focused,G=u.disabled,t=u.onTap,x=u.alignByText,O=u.aTagConfig,a=u.customColors,f=u.segmentedPosition,B=u.toggled,p=u.toggleable,V=u.accessibilityLabel,m=u.onToggle,Z=u.iconPosition,A=u.oneOffCustomTextWrap,h=u.disableTextEllipsis,C9=u.disableBackdropFilter,Wo=u.tooltipText,$y=u.ariaHidden,co=u.tabIndex,UZ=u.ignoreIconSizeOverride,tH=u.state,gq=u.type;M==="call-to-action-inverse"&&
(gq="text");M==="overlay-dark"&&gq!=="filled"&&gq!=="tonal"&&(gq="tonal");var Bo=!!K&&Z==="leading",uk=!!K&&Z==="trailing",ca=!!K&&!!l&&Z==="leading-trailing",Ha=!!K&&Z==="icon-only",hH=!!K&&Z==="icon-only-40",tR=!!K&&Z==="icon-with-label",ns=Ha||hH||tR;G&&(tH="disabled");var Pa=tH==="disabled"||G;UZ=!UZ&&mj9(u,!!K);tH={};var QV=(tH["yt-spec-button-shape-next"]=!0,tH[KAw(gq)]=!0,tH[lNL(M)]=!Pa,tH["yt-spec-button-shape-next--disabled"]=!!Pa,tH[Dlr(q)]=!0,tH["yt-spec-button-shape-next--focused"]=!!v&&
!G,tH["yt-spec-button-shape-next--icon-trailing"]=uk,tH["yt-spec-button-shape-next--icon-leading"]=Bo,tH["yt-spec-button-shape-next--icon-leading-trailing"]=ca,tH["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=ca&&!(D||d),tH["yt-spec-button-shape-next--icon-button"]=Ha||tR,tH["yt-spec-button-shape-next--icon-only-default"]=hH,tH["yt-spec-button-shape-next--align-by-text"]=!!x,tH["yt-spec-button-shape-next--segmented-start"]=f==="start",tH["yt-spec-button-shape-next--segmented-end"]=f===
"end",tH["yt-spec-button-shape-next--override-small-size-icon"]=UZ,tH["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!A,tH["yt-spec-button-shape-next--disable-text-ellipsis"]=!!h,tH["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!C9&&uyw(),tH),Ls=function(){if(W)oky(_.Cjy)(W);else if(C)C(Z==="icon-with-label"||A?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(d){var Vm=Z==="icon-with-label"||A;cto(Object.assign({},
d,Vm?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!Vm})}else D&&q_(D)},yn=function(Vm){t==null||t(Vm);
p&&(m==null||m(Vm))},dN=O?INb:yNr,OB=O?"aria-current$":"aria-pressed$",vE=function(){K&&(Bo||ca||ns)&&function(){NI({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){K()})}();
(D||d||C||W)&&!ns&&function(){NI({className:"yt-spec-button-shape-next__button-text-content"},function(){Ls()})}();
uk&&function(){NI({className:"yt-spec-button-shape-next__icon"},function(){K()})}();
ca&&function(){NI({className:"yt-spec-button-shape-next__secondary-icon"},function(){l()})}();
G||oky(_.ko)({model:{color:Lwo(u)}})},Gw=function(){var Vm={};
dN(Object.assign({},(Vm.className=_.jX(QV),Vm.onclick=O?void 0:yn,Vm.disabled=G,Vm["aria-disabled$"]=Pa,Vm.style=G&&O?"pointer-events:none":void 0,Vm[OB]=p?!!B:void 0,Vm["aria-label$"]=V,Vm.title$=Wo!=null?Wo:"",Vm["aria-hidden$"]=$y,Vm.tabindex$=co,Vm),O,dlo(a)),function(){vE()})};
tR?(q={},M=(q["yt-spec-button-shape-with-label"]=!0,q["yt-spec-button-shape-with-label--is-overlay"]=M==="overlay"||M==="overlay-dark",q),sUb({className:_.jX(M)},function(){Gw();NI({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},Ls)})):Gw()};
HA9=function(u,K){if(!W$){var l;F0q(function(){return l=EYH(u,K)});
return l}u.parent=_.WAh();return EYH(u,K)};
_.WAh=function(){var u=s$y(W$||void 0,XJH);return yPn(u)?void 0:u};
nNy=function(u){var K=K===void 0?{}:K;u=_.y(_.wY(u));var l=u.next().value;return[function(D){var d=_.RZ(function(){var M,q,v,G,t={text:(M=l())!=null?M:"",location:(q=K.location)!=null?q:"bottom",offset:(v=K.offset)!=null?v:16,delay:(G=K.delay)!=null?G:500};return Object.assign({},t,{location:t.location})},void 0,"MgTrkc");
_.gp(function(){var M=d();br(function(){_.YL.addJob(function(){McR.notify(D,M)},4)})},"Z01NSc");
var C=function(){qiL(D,d())},W=function(){$ln()};
D.addEventListener("mouseenter",C);D.addEventListener("focus",C);D.addEventListener("mouseleave",W);D.addEventListener("blur",W);D.addEventListener("tap",W);_.No(function(){D.removeEventListener("mouseenter",C);D.removeEventListener("mouseleave",W);D.removeEventListener("focus",C);D.removeEventListener("blur",W);D.removeEventListener("tap",W);$ln()})},
u.next().value]};
Z$=function(u,K){_.D$(u,Object.assign({},K,{forceClickLogging:!0}))};
rNL=function(u,K,l,D){Z$(u,Object.assign({},{form:{element:K,event:l}},D))};
Gqq=function(u,K,l,D,d){var C=void 0;return function(W){var M=_.lt(l?u==null?void 0:u.onDisabledTap:u==null?void 0:u.onTap);if(M){var q;C=(q=C)!=null?q:K==null?void 0:K.value;if(M)if(_.S("web_button_vm_click_client_ve_killswitch"))rNL(M,C,W);else{q=vN9(u,M);if(d){rNL(M,d,W,{clickedVisualElement:q,form:{element:d}});return}rNL(M,C,W,{clickedVisualElement:q})}}D&&D(W)}};
vN9=function(u,K){K=K==null?void 0:K.clickTrackingParams;var l,D;if((u=u==null?void 0:(l=u.loggingDirectives)==null?void 0:(D=l.clientVeSpec)==null?void 0:D.uiType)&&!K)return _.Yo(u)};
tcH=function(u){switch(u){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"}};
xlq=function(u){switch(u){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"}};
Siq=function(u){switch(u){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"}};
bAR=function(u){switch(u){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"}};
OAn=function(u,K){return _.eZ(u.entities,"engagementToolbarStateEntityPayload",K)};
aNo=function(u){(u=_.gf(u))&&_.cNh(u)};
_.cNh=function(u){var K=_.AC();K&&_.Cm(K,u)};
ztL=function(u,K,l){_.Sy(u,"yt-open-popup-action",[K,l||u])};
ety=function(u,K){var l=_.Xp(u,"endpoint"),D=_.Xp(u,"action");return(l=D?D:l)&&K&&(l=K.navigationEndpointPopupMap[l])&&(u=_.lZ(l,u),(l=_.Xp(u,"renderer"))&&K.supportedPopups.hasOwnProperty(l))?{openPopupAction:{popupType:K.popupTypeMap[l],popup:u}}:null};
Rtq=function(u,K,l,D){if(D){var d;l=l==null?void 0:(d=l.data)==null?void 0:d.contents;(d=l instanceof Array&&l.length?l[0]:l)&&(l=_.Xp(d,"renderer"))&&D.supportedPopups.hasOwnProperty(l)&&(K.stopPropagation(),ztL(u,{openPopupAction:{popupType:D.popupTypeMap[l],popup:d}}))}};
QUo=function(u,K,l,D){D=D===void 0?!1:D;var d=UlR(K);if(d){d.href&&dn(d.href);var C=K.button;C=C!==void 0?C===0&&!AB(K):!AB(K);d.data&&C&&fNy(u,d,K,l,D)}};
fNy=function(u,K,l,D,d){d=d===void 0?!1:d;var C=_.Sg("pbj_navigate_limit",-1)===0;Pjr(K);_.GB().resolve(_.vv(Dh));var W=K.data;if(Object.keys(W).length!==0)if(!_.S("unplugged_web_disable_actions_for_cec_endpoint")&&_.b(W,_.ey))_.S("endpoint_behavior_command_executor_fix_killswitch")||(l.preventDefault(),l.stopPropagation()),_.ay(u,[W],u);else if(D=ety(W,D))W.loggingUrls&&W.loggingUrls.forEach(function(q){q.baseUrl&&_.Cp(q.baseUrl)}),l.preventDefault(),l.stopPropagation(),ztL(u,D,K);
else{var M=JNL(0,K.data,l);if(u=K.getForm)u=u(),M.tempData=M.tempData||{},M.tempData=Object.assign({},M.tempData,u);u=_.WF(l);if(D=u.find(function(q){return!!q.visualElement}))M.createScreenConfig=M.createScreenConfig||{},M.createScreenConfig.clickedVisualElement=D.visualElement;
if(!C)if(l.preventDefault(),l.stopPropagation(),_.b(W,_.jUr)&&!d&&_.Pb.instance)_.Pb.instance.resolveCommand(W,M);else if(_.S("kevlar_command_handler_formatted_string")&&!d&&_.Pb.instance&&BIn(W))d=u.find(function(q){return!!q.is})||l.target,l={form:Object.assign({},M,{event:l,
element:d,originatingNode:K})},_.Pb.instance.resolveCommand(W,l);else{W=_.WF(l);l=[];for(d=0;d<W.length;d++)(C=W[d].is)&&l.push(C);qKZ({parents:l.join(","),text:K.innerText},function(){_.xs(K,"yt-navigate",M)})}}};
p9L=function(u){if(u=UlR(u))Pjr(u),hUw(u.href)};
UlR=function(u){u=_.WF(u);for(var K,l=0;l<u.length;l++)if(K=u[l],K.tagName==="A"&&K.classList.contains("yt-simple-endpoint")){if(!K.data)break;return K}return null};
AB=function(u){return u.shiftKey||u.altKey||u.metaKey||u.ctrlKey};
iAZ=function(u,K){var l={itct:K.clickTrackingParams};_.S("kevlar_client_side_screens")&&(!_.b(K,_.TO)||_.S("kevlar_exclude_endpoint_killswitch"))&&(l.endpoint=JSON.stringify(K));_.S("enable_unknown_lact_fix_on_html5")&&_.GB().resolve(_.vv(_.Xb))&&(l.lact=_.Gr());AAb(l);_.qB(u,l)};
Pjr=function(u){u.href&&Object.keys(u.data).length!==0&&iAZ(u.href,u.data)};
BIn=function(u){for(var K=_.y(TIq),l=K.next();!l.done;l=K.next())if(u[l.value])return!1;return!0};
_.mE=function(u,K){if(K){var l={};w9n.forEach(function(D){D=FAZ(K,D,"--yt-lightsource-");Object.assign(l,D)});
VcH.forEach(function(D){D=FAZ(K,D,"--yt-basic-");Object.assign(l,D)});
_.e8(u,l)}};
FAZ=function(u,K,l){var D={};D[l+_.Qi(K)]=u&&u[K]?_.Kg(u[K]):"";return D};
_.E4=function(u,K,l){hB[u]||(hB[u]={});hB[u][K]=l};
_.L4=function(u){hB[u]||(hB[u]={});return hB[u]};
gNq=function(u){if(!u)return{};var K=u.foregroundTitleColor,l=u.backgroundColor;u=u.borderColor;var D="text";u?D="outline":l&&(D="filled");return{type:D,customColors:{color:K?_.Kg(K):void 0,backgroundColor:l?_.Kg(l):void 0,borderColor:u?_.Kg(u):void 0}}};
ANR=function(u){var K=u.renderer;var l=u.element;var D=u.commandController;var d=u.onTapCallback;var C=u.skipCommandHandling;var W=u.overrides;var M=u.forceIcon;var q=u.forceModernIconButton;var v=u.forceDisabled;var G=u.isSubscribe===void 0?!1:u.isSubscribe;var t=u.isPressed===void 0?!1:u.isPressed;var x=u.useButtonSize===void 0?!1:u.useButtonSize;u=NIn(K);G&&(u.style="mono",u.type="filled");M=!K.icon||!M&&K.text?K.icon?K.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:q?"icon-only":"icon-only-40";M==="icon-only-40"&&(u.type="text");var O;q=Object;G=q.assign;x=kqq(K,x);t=!!K.isSelected||!_.S("web_propagate_is_pressed_killswitch")&&!!t;var a=K.isSelected!==void 0;v=v===void 0?K.isDisabled:v;var f=K.text?_.Ep(K.text):void 0;var B,p,V,m=((B=K.accessibilityData)==null?void 0:(p=B.accessibilityData)==null?void 0:p.label)||((V=K.accessibility)==null?void 0:V.label);B=m?m:_.WI(K.text);l=ZAq(K,l,D,d,C);D=Yin(K);D!=null&&D.length?(D=_.dY({innertubeCommand:WZq(D),
forceNewState:!0}),D=C4(D)?D:void 0):D=void 0;return G.call(q,{},u,x,{iconPosition:M},W,{focused:!1,toggled:t,toggleable:a,disabled:v,formattedButtonText:f,accessibilityLabel:B,onTap:l,aTagConfig:D},gNq((O=K.colorData)==null?void 0:O.basicColorPaletteData),{oneOffCustomTextWrap:K.oneOffCustomTextWrap})};
ZAq=function(u,K,l,D,d){return function(C){var W=Yin(u);D(W,C);if(!d){W=_.y(W);for(var M=W.next();!M.done;M=W.next())Z$(M.value,{form:{element:K,event:C},commandController:l})}}};
Yin=function(u){var K=[];u.command&&K.push(u.command);u.serviceEndpoint&&K.push(u.serviceEndpoint);u.navigationEndpoint&&K.push(u.navigationEndpoint);return K};
kqq=function(u,K){if(K)switch(u.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(u.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
NIn=function(u){switch(u.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.ue=function(u){return u!=null&&u.watch?u.watch.isTheaterMode:!1};
_.K1=function(u){return u!=null&&u.watch?u.watch.isWatchFullscreen:!1};
_.le=function(u){u=_.X9r(u);return _.S("web_watch_enable_single_column_grid_view")?u:!1};
_.X9r=function(u){return u.watch.isWatchNarrowWidth};
_.mlw=function(u){return u.watch.openEngagementPanels};
_.Da=function(u){return _.RZ(function(){FSy()();return NAy(u)},{debugName:"d8B62c"},"wfRQAb")};
dE=function(u,K){return _.eZ(u.entities,"likeStatusEntity",K)};
htH=function(u,K){return _.eZ(u.entities,"likeCountEntity",K)};
_.ENL=function(u,K){return _.eZ(u.entities,"stringEntity",K)};
LAo=function(u,K){if(!u)return!1;var l,D=(l=_.b(u,_.Ux))==null?void 0:l.signal;if(D&&K.signalEndpointMap)return!!K.signalEndpointMap[D];var d;if((l=(d=_.b(u,_.C1))==null?void 0:d.request)&&K.continuationEndpointMap)return!!K.continuationEndpointMap[l];for(var C in u)if(K.commandEndpointMap[C])return!0;return!1};
uS9=function(u,K){if(K.streamingEndpointMap)for(var l in u)if(K.streamingEndpointMap[l]&&(u=K.streamingEndpointMap[l]))return u()};
KBq=function(u,K){var l,D=(l=_.b(u,_.Ux))==null?void 0:l.signal;if(D&&K.signalEndpointMap&&(l=K.signalEndpointMap[D]))return l();var d;if((l=(d=_.b(u,_.C1))==null?void 0:d.request)&&K.continuationEndpointMap&&(d=K.continuationEndpointMap[l]))return d();for(var C in u)if(K.commandEndpointMap[C]&&(u=K.commandEndpointMap[C]))return u()};
lry=function(u){var K={"Content-Type":"application/json"};_.E3("EOM_VISITOR_DATA")?K["X-Goog-EOM-Visitor-Id"]=_.E3("EOM_VISITOR_DATA"):_.E3("VISITOR_DATA")&&(K["X-Goog-Visitor-Id"]=_.E3("VISITOR_DATA"));K["X-Youtube-Bootstrap-Logged-In"]=_.E3("LOGGED_IN",!1);_.E3("DEBUG_SETTINGS_METADATA")&&(K["X-Debug-Settings-Metadata"]=_.E3("DEBUG_SETTINGS_METADATA"));u!=="cors"&&((u=_.E3("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(K["X-Youtube-Client-Name"]=u),(u=_.E3("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(K["X-Youtube-Client-Version"]=
u),(u=_.E3("CHROME_CONNECTED_HEADER"))&&(K["X-Youtube-Chrome-Connected"]=u),(u=_.E3("DOMAIN_ADMIN_STATE"))&&(K["X-Youtube-Domain-Admin-State"]=u),_.L0("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(u=_.E3("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(K["X-YouTube-Lava-Device-Context"]=u));return K};
DcH=function(u,K){K.watchNextResponse||K.reelItemWatchResponse?K.watchNextResponse?u.content=K.watchNextResponse:u.content=K.reelItemWatchResponse:K.playerResponse?u.player=K.playerResponse:K.reelWatchSequenceResponse&&(u.reelSequence=K.reelWatchSequenceResponse)};
_.Iw=function(u){if(!u)return null;for(var K=[],l=0;l<u.textSegments.length;l++){var D=u.textSegments[l];D.text?K.push(D):D.emojiId&&K.push({emoji_id:D.emojiId})}return{text_segments:K}};
sly=function(u,K,l,D,d,C,W){C=C===void 0?[]:C;var M=new _.yo;M.endpoint=l;if(!l)return _.m0(new _.wv("handle undefined endpoint",K.tagName)),M;var q=b1h(l);q.length&&(_.ay(u,q,K,D),M.actions=q);l.loggingUrls&&l.loggingUrls.forEach(function(G){G.baseUrl&&IL(G.baseUrl,G.attributionSrcMode)});
q=!_.S("web_skip_impression_click_killswitch")&&D&&D.impression;if(l.clickTrackingParams&&!dc9(l)&&!CSn(K)&&!q&&(q=_.iT(),!_.sK(q,K))){var v=K.getScreenLayer&&K.getScreenLayer();v?q.clickCommand(l,null,v):q.clickCommand(l,null)}q=!1;for(v=0;v<C.length;v++)if((0,C[v])(K,l,D)){q=!0;break}!q&&Irh(l)&&(M.ajaxPromise=ySq(u,K,l,D,d,W));return M};
CSn=function(u){var K;return(u=(K=u.data)==null?void 0:K.navigationEndpoint)&&!!u.clickTrackingParams};
dc9=function(u){var K=_.b(u,_.Ux);if(K&&(K=K.signal)&&oQy.indexOf(K)>=0)return!0;for(var l in u)if(WBn.indexOf(l)>=0)return!0;return!1};
Irh=function(u){var K;if(((K=_.b(u,_.Ux))==null?void 0:K.signal)==="CLIENT_SIGNAL")return!1;for(var l in u)if(HjH.indexOf(l)>=0)return!1;u=Object.keys(u);return u.length===1&&u[0]==="loggingUrls"?!1:!0};
tWZ=function(u,K,l,D,d,C,W){var M=_.ow.instance;if(M&&_.WJ(M,D))var q=_.HJ(M,D,d).then(function(G){return(G==null?0:G.data)?G:{data:G}});
else q=u.requestDataForServiceEndpoint(D,d),_.b(D,MWZ)||_.b(D,qNo)||_.b(D,_.$cL)||_.b(D,nQZ)||_.hV(new _.wv("No RequestBuilder for endpoint",D));var v=_.MX();v.promise.thenCatch(function(){var G=_.Xp(D,"action")||_.Xp(D,"command")||_.Xp(D,"endpoint");G&&(G=D[G],G.hasOwnProperty("onFailureAction")?_.ay(K,[G.onFailureAction],l):G.hasOwnProperty("onFailureCommand")&&_.ay(K,G.onFailureCommand,l));q.cancel("Resolver promise rejected")});
q.then(function(G){if(G){var t=G.error;if(t){if(C&&C.onServerError)C.onServerError(D,G);v.reject(new _.wv("Response error",D,t))}else if(G=G.data)if(t=G.error){if(C&&C.onServerError)C.onServerError(D,G);v.reject(new _.wv("Returned error",D,t))}else{rSq(K,l,G,D);vQR(G);if(t=SKR(G))for(var x=_.y(t),O=x.next();!O.done;O=x.next()){O=O.value;var a=_.GB().resolve(_.vv(Gsr))||qX;if(!_.ow.instance||!a.some(function(B){return!!_.b(D,B)})||_.S("kevlar_response_processor_allowlist_killswitch")){var f=a=void 0;
((f=_.b((a=O)==null?void 0:a.commandMetadata,_.nN))==null?0:f.sendPost)?_.c0(K,[O]):_.ay(K,[O],l)}}(x=_.b(G==null?void 0:G.frameworkUpdates,$Y))&&W&&W(x);if(C&&C.onSuccess)C.onSuccess(D,G);v.resolve(new _.n1(G,t))}}else v.reject(new _.wv("Invalid service endpoint provided",D))},function(G){v.reject(G)});
return v.promise};
vQR=function(u){var K;(u=(K=_.b(u==null?void 0:u.onResponseReceivedCommand,_.xch))==null?void 0:K.continuationItems)&&(u==null?void 0:u.length)===1&&_.b(u[0],SNL)&&_.As("so_r",void 0,"search_overview_answer")};
ySq=function(u,K,l,D,d,C){var W;return(W=K.getNetworkManager&&K.getNetworkManager()?K.getNetworkManager():_.GB().resolve(_.vv(_.XQ)))?tWZ(W,u,K,l,D,d,C):_.YU("No network manager.")};
rSq=function(u,K,l,D){if(l=l.trackingParams||l.loggingDirectives&&l.loggingDirectives.trackingParams){var d;(_.b(D,bjq)||_.b(D,OjH)||_.b(D,cSy))&&D.clickTrackingParams?d=_.gf(D.clickTrackingParams):_.S("web_graft_to_parent_command")&&D.clickTrackingParams&&(d=_.gf(D.clickTrackingParams));var C;D=(C=K.getScreenLayer)==null?void 0:C.call(K);K=_.iT().graftServerVe(l,d,D);_.bI(u,"yt-store-grafted-ve-action",[K])}};
_.arL=function(u){var K=new Image;return new _.RL(function(l,D){K.addEventListener("load",function(){l()});
K.addEventListener("error",function(){D()});
K.src=u})};
zOZ=function(u){return!!u};
eOq=function(u){return!!u};
ROH=function(u,K,l){var D=u.rowIndex;D!==void 0&&_.bI(u.hostElement,"yt-section-reactive-dismissal",[D,K,l])};
_.rE=function(u,K,l){u=_.y(u);for(var D=u.next();!D.done;D=u.next()){D=D.value;if(D===K)break;for(var d=_.y(l),C=d.next();!C.done;C=d.next())if(C=C.value,D.tagName===C||!_.S("web_event_button_role_check_killswitch")&&D.role==="button"&&C==="BUTTON")return!0}return!1};
_.vJ=function(u,K,l){u=_.y(u);for(var D=u.next();!D.done;D=u.next()){D=D.value;if(D===K)break;for(var d=_.y(l),C=d.next();!C.done;C=d.next())if(D.id===C.value)return!0}return!1};
UcH=function(u){switch(u){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}};
frR=function(u,K){if(!u&&!K)return"medium";u=Math.max(u||0,K||0);return u>=256?"large":u>=96?"medium":"small"};
QlZ=function(u){switch(u){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.xY=function(){var u=_.GB().resolve(_.vv(_.GT));return u?(u=u.getCurrentPage())?_.tK(u):null:null};
_.SU=function(){var u=_.xY();if(!u){var K=_.GB().resolve(_.vv(_.GT)),l=K?typeof K:"no page manager";K=K?K.getCurrentPage():null;l=new _.wv("Player is missing when requested.",l,K?K.tagName:"no page");_.Xm(l)}return u};
_.tK=function(u){return u&&u.getPlayer?u.getPlayer():null};
PSy=function(u,K){u={args:{raw_player_response:u}};K&&(u.args=Object.assign({},u.args,K));return u};
JSq=function(u){if(u.args){if(u.args.raw_player_response)return u.args.raw_player_response;if(u.args.player_response)return JSON.parse(u.args.player_response)}};
_.jl9=function(u,K){var l={url:"/watch?v="+u.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};u.playlistId&&(l.url+="&list="+u.playlistId);u.playerParams&&(l.url+="&pp="+u.playerParams);u={watchEndpoint:u,commandMetadata:{webCommandMetadata:l}};K&&(u.clickTrackingParams=K);return u};
pmq=function(){return BUq||!!_.lZ("yt.player.Application")};
TUr=function(){return ijR||!!document.querySelector("link#player-css")};
FBr=function(){function u(){BUq=!0;wmq.resolve()}
var K,l;return _.H(function(D){wmq||(wmq=new _.et,pmq()?u():(K=document.createElement("script"),K.addEventListener("load",u),l=_.Vf(_.E3("PLAYER_JS_URL")),_.$P(K,l),document.head.appendChild(K)));return D.return(wmq.promise)})};
gQZ=function(){function u(){ijR=!0;VWL.resolve()}
if(!VWL)if(VWL=new _.et,TUr())u();else{var K=document.createElement("link");K.id="player-css";K.addEventListener("load",u);var l=_.Vf(_.E3("PLAYER_CSS_URL"));_.vZ(K,l,"stylesheet");document.head.appendChild(K)}return VWL.promise};
NUr=function(){return pmq()&&TUr()?Promise.resolve([]):Promise.all([FBr(),gQZ()])};
ksw=function(u,K,l){var D={args:{}};u&&(D.args.raw_player_response=u);K&&(D.args.raw_watch_next_response=K);l&&(D.args=Object.assign({},D.args,l));return D};
Xm9=function(u,K,l){var D=!1;D=D===void 0?!0:D;u=typeof u==="string"?_.be(document,u):u;var d=Zjq+"_"+_.DA(u),C=YNo[d];if(C&&D)return ASL(K,l)?C.api.loadVideoByPlayerVars(K.args||null):C.loadNewVideoConfig(K),C.api;C=new OK(u,d,K,l,void 0);YNo[d]=C;C.addOnDisposeCallback(function(){delete YNo[C.getId()]});
return C.api};
ASL=function(u,K){return K&&K.serializedExperimentFlags?K.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):u&&u.args&&u.args.fflags?u.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
mcq=function(){var u=new _.et;u.resolved=!1;var K=u.resolve;u.resolve=function(l){u.resolved=!0;K(l)};
return u};
EQq=function(u){var K={};hO9().install((K.document_disposed={callback:u},K))};
cJ=function(u,K){if(!u&&Math.random()<=_.Sg("kevlar_unified_player_logging_threshold")){u=Error("vh`"+(K?K:"Unspecified error"));if(_.S("kevlar_unified_player_throw_errors"))throw u;_.hV(u)}};
_.LBr=function(){var u=_.lZ("ytDebugData.callbacks");u||(u={},_.$L("ytDebugData.callbacks",u));return u};
KN9=function(u,K){var l=_.LBr();if(_.S("web_dd_iu")||uKH.includes(u))l[u]=K};
lxn=function(){return _.H(function(u){return u.return({isLeader:_.JFo(_.Mu().getState()),c:_.E3("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.E3("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
DFL=function(){var u;_.H(function(K){if(K.nextAddress==1)return KN9("APP_STATE",lxn),K.yield(_.GB().resolve(_.aw),2);u=K.yieldResult;KN9("PI",function(){return _.H(function(l){return l.return(u.getVideoStats())})});
_.TG(K)})};
dFn=function(u){var K=_.MB(_.dd(_.lL.location.href));u=_.MB(_.dd(u));return _.S("kevlar_clear_non_displayable_url_params")?K==zT(u):zT(K)==zT(u)};
zT=function(u){var K=_.CuZ(u);u=u.slice(0);var l=["frags"];_.S("kevlar_hide_pp_url_param")&&l.push("pp");_.S("kevlar_hide_time_continue_url_param")&&l.push("time_continue");l=_.y(l);for(var D=l.next();!D.done;D=l.next())D=D.value,u=_.$s(_.MB(u),D);return _.MB(u)+(K?"#"+K:"")};
eU=function(u,K){K=Number(K)*1E3;var l=Math.round((0,_.vA)()),D=l.toString();u={innertubeResponse:u,serverDateTimestampMs:D,lastModifiedTimestampMs:D,expireTimestampMs:(l+K).toString()};if(K=_.E3("INNERTUBE_CONTEXT_CLIENT_NAME"))u.clientName=K;return u};
yGR=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++Ixy};
_.s39=function(){var u=_.Yr(),K=_.AC();K&&u&&_.yM(K,[u],!0)};
WNr=function(u){return u&&o6Z.some(function(K){return u.includes(K)})};
rGy=function(u){var K=_.b(u,_.d_);if(!K)return!1;var l=K.url,D=K.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!l)return _.Xm(Error("Ah")),!1;if(K.target==="TARGET_NEW_WINDOW"){var d={};_.S("resolve_url_parent_tracking_params")&&(!_.q7(l)||$n(window.location.href,l))&&(d={endpoint:u,itct:u.clickTrackingParams});AAb(d);u=null;try{if(D)return u=_.lth(l,"_blank",d,void 0,D),HYL(_.GB().resolve(MzH),u,l),!0}catch(x){_.Xm(x)}_.qB(l,d);K={target:"_blank",noopener:_.S("set_window_noopener_ks")&&
!K.allowOpener};u=window;D=Zk(l)?l:_.ES(typeof l.href!="undefined"?l.href:String(l));d=self.crossOriginIsolated!==void 0;var C="strict-origin-when-cross-origin";window.Request&&(C=(new Request("/")).referrerPolicy);var W=K.noreferrer;if(d&&W&&C==="unsafe-url")throw Error("re");C=W&&!d;W=K.target||l.target;var M=[],q=[],v=!1;for(t in K){var G=K[t];switch(t){case "width":case "height":case "top":case "left":M.push(t+"="+G);break;case "target":break;case "noopener":case "noreferrer":G?q.push(t):(v=!0,
q.push(t+"=false"));break;case "attributionsrc":M.push(t+(G?"="+G:""));break;default:M.push(t+"="+(G?1:0))}}var t=W!==void 0&&!["_blank","_self","_top","_parent",""].includes(W);t=RR()&&t;qYb&&d&&M.length===0&&q.length>0&&!t&&!v?(q.length===2&&(q=["noreferrer"]),_.s2(u,D,W,q[0]),u=$Fy()):(t=M.join(","),_.jr()&&u.navigator&&u.navigator.standalone&&W&&W!="_self"?(t=_.PO("A"),lY(t,D),t.target=W,C&&(t.rel="noreferrer"),((K=K.attributionsrc)||K==="")&&t.setAttribute("attributionsrc",K),K=document.createEvent("MouseEvent"),
K.initMouseEvent("click",!0,!0,u,1),t.dispatchEvent(K),u=$Fy()):C?(u=_.s2(u,"",W,t),K=_.Yu(D),u&&(u.opener=null,K===""&&(K="javascript:''"),K='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Rw(K)+'">',K=CH(K),(D=u.document)&&D.write&&(D.write(IS(K)),D.close()))):((u=_.s2(u,D,W,t))&&K.noopener&&(u.opener=null),u&&K.noreferrer&&(u.opener=null)));HYL(_.GB().resolve(MzH),u,l);return!0}K=_.RK(l);K=WNr(K)||l==="https://studio.youtube.com/";D=!(!_.q7(l)||$n(window.location.href,
l));t=l.indexOf("disable_polymer=1")>=0;if(D||t||K)dn(l),ks(),_.Cg(l,void 0,void 0,window.top,n6q);else return _.hV(new _.wv("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",u)),!1;return!0};
_.tz9=function(u,K){K=K===void 0?0:K;if(!(_.b(u,v6b)||_.b(u,GK9)||_.b(u,_.d_)&&_.b(u,_.d_).url))return!1;var l,D=(l=_.b(u,_.d_))==null?void 0:l.url;l=D?{externalLinkData:{url:D}}:null;return _.iT().clickCommand(u,l,K)};
xFL=function(u,K){return _.eZ(u.entities,"subscriptionStateEntity",K)};
SYZ=function(u,K){return _.eZ(u.entities,"subscriptionNotificationStateEntity",K)};
bYq=function(u,K){return _.eZ(u.entities,"upcomingEventReminderStateEntity",K)};
OYn=function(u,K){return _.eZ(u.entities,"engagementToolbarSurfaceEntityPayload",K)};
cGq=function(u,K){return _.eZ(u.entities,"triStateButtonStateEntityPayload",K)};
axn=function(u,K){return _.eZ(u.entities,"commerceCartCheckoutButtonEntity",K)};
_.zzH=function(u,K){return _.eZ(u.entities,"playlistLoopStateEntity",K)};
ezZ=function(u,K){return _.eZ(u.entities,"commandEntity",K)};
UFq=function(u,K,l,D,d){d=d===void 0?{}:d;return function(C){var W,M;var q=((W=u.loggingDirectives)==null?0:(M=W.clientVeSpec)==null?0:M.uiType)?_.Yo(u.loggingDirectives.clientVeSpec.uiType):void 0;d.clickedVisualElement||(d.clickedVisualElement=q);q=RzZ(u,K);l(q,C);q=_.y(q);for(W=q.next();!W.done;W=q.next()){W=W.value;M=D;var v=C,G=d;G.form?G.form.event=v:G.form={element:M,event:v};Z$(W,G)}}};
RzZ=function(u,K){var l=[];K?(u.toggledCommand&&l.push(u.toggledCommand),u.toggledServiceEndpoint&&l.push(u.toggledServiceEndpoint)):(u.defaultCommand&&l.push(u.defaultCommand),u.defaultServiceEndpoint&&l.push(u.defaultServiceEndpoint),u.defaultNavigationEndpoint&&l.push(u.defaultNavigationEndpoint));return l};
fxq=function(u,K){var l=u.toggledStyle||u.style,D;switch((D=K?l:u.style)==null?void 0:D.styleType){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_SUGGESTIVE":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":return{style:"mono",type:"outline",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.UK=function(){return _.H(function(u){return u.nextAddress==1?u.yield(_.GB().resolve(_.aw),2):u.return(_.GB().resolve(Q3H)())})};
_.f1=function(){return _.GB().resolve(Q3H)()};
_.Qo=function(){return YD(function(){return{lottieEl:void 0}})};
PuR=function(u,K){return u.startsWith(K.uniqueId)};
JGL=function(u){var K,l;_.H(function(D){if(D.nextAddress==1)return D.yield(_.UK(),2);K=D.yieldResult;if((l=K)==null||!l.addEventListener)return PJ(),D.return();K.addEventListener("onCueRangeEnter",u);_.TG(D)})};
j3q=function(u){var K,l;_.H(function(D){if(D.nextAddress==1)return D.yield(_.UK(),2);K=D.yieldResult;if((l=K)==null||!l.removeEventListener)return PJ(),D.return();K.removeEventListener("onCueRangeEnter",u);_.TG(D)})};
B6q=function(u){var K,l,D,d,C;_.H(function(W){if(W.nextAddress==1)return W.yield(_.UK(),2);K=W.yieldResult;if((l=K)==null||!l.addCueRange)return PJ(),W.return();D=_.y(u.timings);for(d=D.next();!d.done;d=D.next())C=d.value,K.addCueRange(u.uniqueId+"-"+C,C/1E3,(C+100)/1E3);_.TG(W)})};
pYo=function(u){var K,l,D,d,C;_.H(function(W){if(W.nextAddress==1)return W.yield(_.UK(),2);K=W.yieldResult;if((l=K)==null||!l.removeCueRange)return PJ(),W.return();D=_.y(u.timings);for(d=D.next();!d.done;d=D.next())C=d.value,K.removeCueRange(u.uniqueId+"-"+C);_.TG(W)})};
iYo=function(){var u,K,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(_.UK(),2);u=D.yieldResult;if((K=u)==null||!K.getPlayerState)return PJ(),D.return();l=u.getPlayerState();return D.return(l===2)})};
PJ=function(){_.hV(new _.wv("Smartimation player does not exist or is corrupted"))};
T6H=function(){try{var u;return(u=window.CSS)!=null&&u.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(K){return _.hV(new _.wv("Smartimation CSS.supports threw an error")),!1}};
ZYR=function(u,K,l,D,d){var C=u.playlistId?wYo:FNL;K=K();l=l();d=!!u.videoId&&d()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.pm(K))return Vzb({data:u,actionType:C,disabled:d},l);if(u.videoId&&D())return g6r({data:u,actionType:C,disabled:d});switch(K){case "TRANSFER_STATE_UNKNOWN":return g6r({data:u,actionType:C,disabled:d});case "TRANSFER_STATE_FAILED":return u.videoId?N6Z({data:u,actionType:C,disabled:d}):kKL({data:u,actionType:C,disabled:d});case "TRANSFER_STATE_COMPLETE":return kKL({data:u,
actionType:C,disabled:d});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return Vzb({data:u,actionType:C,disabled:d},l);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return u.videoId?N6Z({data:u,actionType:C,disabled:d}):g6r({data:u,actionType:C,disabled:d});default:return g6r({data:u,actionType:C,disabled:d})}};
YYq=function(u,K){var l=u.onTapCommand,D=_.lt(l);if(u.videoId&&_.b(D,_.JK))return _.b(D,_.JK).action=K,l;u.playlistId&&_.b(D,_.BJ)&&(_.b(D,_.BJ).action=K);return l};
g6r=function(u){var K=u.data;var l=u.actionType;u=u.disabled;return{text:AGq,iconType:"OFFLINE_DOWNLOAD",onTap:YYq(K,l.ACTION_ADD),disabled:u}};
Vzb=function(u,K){var l=u.data;var D=u.actionType;u=u.disabled;var d="OFFLINE_DOWNLOAD";K>=0&&K<=.1?d="OFFLINE_DOWNLOADING_ZERO":K>.1&&K<=.3?d="OFFLINE_DOWNLOADING_TWENTY":K>.3&&K<=.5?d="OFFLINE_DOWNLOADING_FORTY":K>.5&&K<=.7?d="OFFLINE_DOWNLOADING_SIXTY":K>.7&&K<1?d="OFFLINE_DOWNLOADING_EIGHTY":K===1&&(d="OFFLINE_PIN");return{text:XYq,iconType:d,onTap:YYq(l,D.ACTION_REMOVE_WITH_PROMPT),disabled:u}};
kKL=function(u){var K=u.data;var l=u.actionType;u=u.disabled;return{text:mFq,iconType:"OFFLINE_PIN",onTap:YYq(K,l.ACTION_REMOVE_WITH_PROMPT),disabled:u}};
N6Z=function(u){var K=u.data;var l=u.actionType;u=u.disabled;return{text:hzn,iconType:"OFFLINE_DOWNLOAD",onTap:YYq(K,l.ACTION_RETRY),disabled:u}};
KFq=function(u){var K=E6H;LNR.push(u);u9r||(K(function(){for(var l=_.y(LNR),D=l.next();!D.done;D=l.next())D=D.value,D();LNR.length=0;u9r=!1}),u9r=!0)};
E6H=function(u){Promise.resolve().then(u)};
p1=function(u){u=_.y(YKn(u));var K=u.next().value,l=u.next().value,D=!1;_.ZY(function(){return function(){D=!0}});
return[K,function(d){KFq(function(){D&&!_.S("cow_prevent_state_setter_after_cleanup_killswitch")||l(d)})}]};
_.ie=function(u,K){var l=FSy();return _.RZ(function(){l();return NAy(u,[_.Z7(K)||""])},{debugName:"LUZslf"},"qYSKAc")};
l4n=function(u){var K=_.ie(_.EV,function(){return u().videoId}),l=_.ie(_.Lm,function(){return u().playlistId});
return function(){return u().videoId?K:u().playlistId?l:_.y(_.On("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
DYq=function(u){var K=_.ie(uv,function(){return u().videoId}),l=_.ie(_.PFq,function(){return u().playlistId});
return function(){return u().videoId?K:u().playlistId?l:_.y(_.On(0,void 0,"K4tgOc")).next().value}};
dYq=function(u){var K=_.ie(_.Vv9,function(){return u().videoId});
return function(){return u().videoId?K:_.y(_.On(!1,void 0,"Oaxwcf")).next().value}};
CJH=function(u){var K=_.ie(BzH,function(){return u().videoId});
return function(){return u().videoId?K:_.y(_.On("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
I4b=function(){return{}};
yIq=function(){var u,K;return(K=(u=_.GB().resolve(_.vv(_.H1)))==null?void 0:u())!=null?K:!1};
oJr=function(u,K){u=u===void 0?s_y:u;switch(K.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},u,{isOpen:K.payload});default:return u}};
Hxq=function(u,K){u=u===void 0?WFb:u;switch(K.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},u,{isAllowed:K.payload});default:return u}};
qbR=function(u,K){u=u===void 0?MLh:u;switch(K.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},u,{errorMessage:K.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},u,{title:K.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},u,{privacy:K.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},u,{isDisabled:K.payload});default:return u}};
nJH=function(u,K){u=u===void 0?$Yn:u;switch(K.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},u,{isOpen:K.payload});default:return u}};
vJR=function(u,K){u=u===void 0?rIH:u;switch(K.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},u,{isFullscreen:K.payload});case "SET_NAVIGATION_BUTTON":var l=K.payload.targetId,D=Object.assign({},u.navigationButtons);D[l]=K.payload.button;return Object.assign({},u,{navigationButtons:D});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},u,{topPanelId:K.payload});case "SET_SECONDARY_HEADER":return l=K.payload.panelId,D=Object.assign({},u.secondaryHeader),D[l]=K.payload.secondaryHeader,
Object.assign({},u,{secondaryHeader:D});default:return u}};
SbH=function(){return UW(Object.assign({},{entities:NC9,voiceSearch:e2L,engagementPanel:vJR,bottomSheet:oJr,cinematicSetting:Hxq,shorts:BwR,drawerLayout:nJH,createPlaylist:qbR,locationCollection:GL9,reportChannel:tLL,reportForm:xYh},per))};
bxb=function(u,K){_.YL.addLowPriorityJob(function(){var l,D,d;return _.H(function(C){switch(C.nextAddress){case 1:return _.Qg(C,2),C.yield(tCq(),4);case 4:return C.yield(fetch(u),5);case 5:return l=C.yieldResult,C.yield(l.json(),6);case 6:D=C.yieldResult;P1.set(u,D);requestAnimationFrame(function(){K(D)});
_.I$(C,0);break;case 2:d=_.iY(C),_.hV(d),_.TG(C)}})})};
Oxh=function(u){var K={animationConfig:{},listeners:{}},l=function(){u(!0)};
K.listeners.data_failed=l;K.listeners.error=l;K.listeners.data_ready=function(){u(!1)};
return K};
zFH=function(u){var K=u.model;var l=u.subscribed;var D=u.isOverlay;var d=u.element;var C=u.commandController;var W=u.notificationState;if(l){var M,q;var v=(K==null?void 0:(M=K.buttonStyle)==null?void 0:M.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:K==null?void 0:(q=K.unsubscribeButtonContent)==null?void 0:q.buttonText}else{var G;v=K==null?void 0:(G=K.subscribeButtonContent)==null?void 0:G.buttonText}a:{var t;switch(K==null?void 0:(t=K.buttonStyle)==
null?void 0:t.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":M="S";break a;default:M="M"}}a:if(D)D="overlay";else switch(K.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":D="overlay";break a;default:D="mono"}a:if(l)var x="tonal";else switch((x=K.buttonStyle)==
null?void 0:x.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":x="tonal";break a;default:x="filled"}return{style:D,type:x,state:K.disableSubscribeButton?"disabled":"active",size:M,focused:u.focused,toggled:l,accessibilityLabel:cIn(K,l,W),buttonText:v,iconPosition:K.disableNotificationBell?"none":"leading-trailing",onTap:a4n(K,l,d,C),disableTextEllipsis:!!u.disableTextEllipsis}};
a4n=function(u,K,l,D){return function(d){if(K){var C;var W=u.disableNotificationBell?_.lt(u==null?void 0:(C=u.unsubscribeButtonContent)==null?void 0:C.onTapCommand):_.lt(u==null?void 0:u.onShowSubscriptionOptions)}else{var M;W=_.lt(u==null?void 0:(M=u.subscribeButtonContent)==null?void 0:M.onTapCommand)}W&&Z$(W,{form:{element:l==null?void 0:l.value},commandController:D});d.stopPropagation()}};
cIn=function(u,K,l){if(K){if(u==null?0:u.disableNotificationBell){var D;return u==null?void 0:(D=u.unsubscribeButtonContent)==null?void 0:D.accessibilityText}switch(l){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var d;return u==null?void 0:(d=u.bellAccessibilityData)==null?void 0:d.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var C;return u==null?void 0:(C=u.bellAccessibilityData)==null?void 0:C.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var W;return u==null?void 0:(W=
u.bellAccessibilityData)==null?void 0:W.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var M;return u==null?void 0:(M=u.bellAccessibilityData)==null?void 0:M.disabledLabel;default:var q;return u==null?void 0:(q=u.unsubscribeButtonContent)==null?void 0:q.accessibilityText}}else{var v;return u==null?void 0:(v=u.subscribeButtonContent)==null?void 0:v.accessibilityText}};
eFr=function(u){if(u){switch(u){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":u="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":u="NOTIFICATIONS_OFF";break;default:u="NOTIFICATIONS_NONE"}return u}};
RFq=function(u,K,l){l.subscribed!==K&&((l=l.key)&&_.ME(_.TT("subscriptionStateEntity",l,{key:l,subscribed:K})),u.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:K})),K||_.Sy(u,"yt-unsubscribe-action"))};
f4y=function(u){u=_.b(_.lt(u),_.wE);var K,l,D,d;return(d=_.b(u==null?void 0:(K=u.panelLoadingStrategy)==null?void 0:(l=K.inlineContent)==null?void 0:(D=l.sheetViewModel)==null?void 0:D.content,UYq))==null?void 0:d.listItems};
Q_H=function(u,K){if(u.onShowSubscriptionOptions&&K&&(u=f4y(u.onShowSubscriptionOptions),u!=null&&u.length)){var l=eFr(K);u.forEach(function(D){D=_.b(D,_.Ff);var d,C,W,M,q=D==null?void 0:(d=D.leadingImage)==null?void 0:(C=d.sources)==null?void 0:(W=C[0])==null?void 0:(M=W.clientResource)==null?void 0:M.imageName;D&&q&&(D.isSelected=q===l)})}};
PJq=function(u,K,l,D){K&&l?u.style.width=l+"px":!K&&D&&(u.style.width=D+"px")};
JIh=function(u,K,l){var D;(D=u.lottieEl)==null||D.goToAndPlay(0);var d;(d=K.lottieEl)==null||d.goToAndPlay(0);_.Vo(_.YL,function(){var C;(C=l.lottieEl)==null||C.goToAndPlay(0)},300)};
gE=function(){return _.GB().resolve(_.vv(j_r))||{}};
Btw=function(u){return typeof u==="function"};
_.NX=function(u){Object.keys(u);var K=function(l,D){var d=K.mapping||u;if(!l)return _.n(_.G1,null);if(Array.isArray(l)&&(l=pGH(d,K,l),Array.isArray(l))){if(!l.length)return _.n(_.G1,null);if(l.length>1){for(var C=!1,W=!1,M=[],q={},v=0;v<l.length;q={data$jscomp$1893:void 0},v++)if(q.data$jscomp$1893=l[v],q.data$jscomp$1893){var G=ixq(q.data$jscomp$1893,d),t=G.mappingEntry;G=G.rendererName;t&&G&&(t&&(!Btw(t)&&TtH(t)&&(W=!0),!Btw(t)&&t.asyncId||(C=!0)),M.push(wGH(q.data$jscomp$1893,t,G,K,D)))}return W&&
!C?_.n(_.G1,null,FFw()):_.n(_.G1,null,M)}l=l[0]}if(!l)return _.n(_.G1,null);l=pGH(d,K,[l])[0];if(!l)return _.n(_.G1,null);C=ixq(l,d);d=C.mappingEntry;C=C.rendererName;return d&&C?_.n(_.G1,null,wGH(l,d,C,K,D)):_.n(_.G1,null)};
K.mapping=u;return K};
_.VLq=function(u){var K=void 0,l;for(l in u)if(u.hasOwnProperty(l)){K=l;break}return K};
pGH=function(u,K,l){var D,d=(D=gE().preProcessOptions)==null?void 0:D.idomOptions;if(!d)return l;gE();return d.preProcessPropsIdom(u,l,K.triggerRerender)};
ixq=function(u,K){return(u=_.VLq(u))?{mappingEntry:K[u],rendererName:u}:{mappingEntry:void 0,rendererName:void 0}};
wGH=function(u,K,l,D,d){if(!K)return _.n(_.G1,null);var C={};d&&d[l]&&(C=Object.assign({},d[l]));u[l]!==void 0&&(C.data=u[l]);if(Btw(K))return K.debugName||(K.debugName=l),_.n(K,C);K.asyncId&&(D.pendingIdsMap=D.pendingIdsMap||{},D.pendingIdsMap[l]=K.asyncId);return K.templateFn?K.templateFn(C):TtH(K)?FFw():_.n(_.G1,null)};
TtH=function(u){var K;return(K=u.showPlaceholder)!=null?K:gE().defaultShowPlaceholder};
FFw=function(){var u=gE().placeholder;return u()};
gJH=function(u){u=_.b(u,_.kY);return(u==null?void 0:u.iconName)&&!(u==null?0:u.title)};
Zxn=function(u,K,l){var D;return _.n(_.G1,null,u==null?void 0:(D=u.actions)==null?void 0:D.map(function(d){return _.n("div",{class:function(){var C={"yt-flexible-actions-view-model-wiz__action":!0};C["yt-flexible-actions-view-model-wiz__action--row-action"]=K;C["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(gJH(d))var W=!0;else if(W=_.b(d,_.Za),(W==null?0:W.isToggled)&&gJH(W==null?void 0:W.toggledButtonViewModel)||(W==null||!W.isToggled)&&gJH(W==null?void 0:W.defaultButtonViewModel))W=
!0;else{var M;W=((M=_.b(d,Ntq))==null?0:M.playlistId)?!0:!1}C=(C["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=W,C["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=l,C);return _.jX(C)}},kLR([d],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!K}}))}))};
Yby=function(u){var K=u.layout===1,l,D=((l=u.data)==null?void 0:l.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";l={};D=(l["yt-flexible-actions-view-model-wiz"]=!0,l["yt-flexible-actions-view-model-wiz--inline"]=!K,l["yt-flexible-actions-view-model-wiz--scrollable"]=D,l);var d,C;return _.n("yt-flexible-actions-view-model",{class:_.jX(u.className,D)},(d=u.data)==null?void 0:(C=d.actionsRows)==null?void 0:C.map(function(W){if(K){var M;return _.n("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
Zxn(W,K,!((M=u.data)==null||!M.respectActionIntrinsicWidth)))}return Zxn(W,K,!1)}))};
AIq=function(u,K){K=K===void 0?{shouldPersist:!0}:K;return{useUpdatableData:function(l,D){var d=[],C=_.y(_.wY(function(){var v=l();if(D!=null&&D.length&&d){var G=d.length>0;for(var t=!1,x=0;x<D.length;x++){var O=D[x]();G&&O!==d[x]&&(t=!0);d[x]=O}G=t}else G=!1;if(G)_.YY.remove(q());else if(G=_.YY.get(q()))return G;return v})),W=C.next().value,M=C.next().value,q=_.RZ(function(){return u(l())},void 0,"VFraLb");
_.gp(function(){if(q()!=null){AK.set(q(),[W,M,!1]);var v=q();_.No(function(){AK.delete(v)})}},"Fdafud");
return[W,function(v){M(v);K.shouldPersist&&_.YY.set(q(),v)}]},
getData:function(l){var D;return(D=AK.get(u(l)))==null?void 0:D[0]()},
updateData:function(l,D){l=u(l);var d=AK.get(l);if(!d)return!1;var C=_.y(d);d=C.next().value;C=C.next().value;D=D(d());C(D);K.shouldPersist&&_.YY.set(l,D);return!0},
useUpdatableDataIdom:function(l,D){var d=u(l),C=_.YY.get(d),W=_.y(p1(C!=null?C:l)),M=W.next().value,q=W.next().value,v=A8(C!=null?C:l);_.kD(function(){if(d!=null)return AK.set(d,[function(){return v.value},
function(G){q(G);v.value=G},
AK.has(d)]),_.YL.addJob(function(){_.Xf(_.YL,function(){var G=AK.get(d);G&&(G[2]=!1)},0)},8),function(){var G;
((G=AK.get(d))==null?0:G[2])||AK.delete(d)}},[d]);
_.kD(function(){M!==l&&(q(l),v.value=l)},D?[].concat(_.Am(D),[d]):[d]);
return[M,q]}}};
XGr=function(u){var K=_.y(_.On(!0,void 0,"bKtO6d")),l=K.next().value;K.next();return function(){var D=f0(u.children());return _.n(_.r,{cond:l,then:function(){return D},
else:u.fallback})}()};
_.mo=function(u){var K=mYZ(u),l=K.data,D=K.mapping,d=K.wrapper;K=K.pendingFallback;var C=function(){return hFn(_.Z7(l))},W=function(){var M=C(),q=[];
M=_.y(M);for(var v=M.next();!v.done;v=M.next()){var G=void 0;v=v.value;var t=void 0;for(G in v)if(!(!v).hasOwnProperty(G)){t=G;break}(G=t)&&q.push(G)}return q};
return u.data?_.n(XGr,{fallback:K},function(){return _.n(_.p0,{each:W},function(M,q){var v=d?function(t){return d(function(){return D[M](t,q)},G,q)}:function(t){return D[M](t,q)};
v.debugName||(v.debugName=String(M));if(!D[String(M)])return document.createComment("");v.componentType!==pI&&EJq(String(M));var G=LFw(C,M,q);return _.n(v,{data:G})})}):_.n(_.G1,null)};
mYZ=function(u){var K=u.targetId||uoo(u.children);if(!u.data||!K||_.S("mweb_new_replaceables_killswitch"))return Object.assign({},u,{mapping:u.children,wrapper:void 0});var l="stamper-"+K2r++,D=function(){var M;return(M=typeof u.targetId==="function"?u.targetId(l):u.targetId)!=null?M:l};
K=_.y(lZH(function(){var M=hFn(u.data());M.targetId=D;return M})).next().value;
var d=Object.assign({},gE().replaceableMapping,u.children);if(u.replacementWrapper){var C=d.notificationTextRenderer,W=d.notificationMultiActionRenderer;C&&(d.notificationTextRenderer=function(M,q){return u.replacementWrapper(C({data:M.data},q))});
W&&(d.notificationMultiActionRenderer=function(M,q){return u.replacementWrapper(W({data:M.data},q))})}return Object.assign({},u,{data:K,
mapping:d,wrapper:function(M,q,v){return HA9({targetId:D,stamperIndex:v},M)}})};
LFw=function(u,K,l){var D;return _.RZ(function(){var d=u()[l()];if(d)D=d[K];else return _.hV(new _.wv("Stamper failed to find "+String(K)+" at index "+l()+" of data array of length "+(u().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),D;return d[K]},void 0,"wgRPHd")};
uoo=function(u){u=_.y(Object.keys(u));for(var K=u.next();!K.done;K=u.next())if(K=K.value,D8y.includes(K)||d8H.includes(K)||CVo.includes(K))return!0;return!1};
hFn=function(u){return u?Array.isArray(u)?u:[u]:[]};
EJq=function(u){if(_.S("web_enable_renderer_logger")){var K;(K=_.GB().resolve(_.vv(IZh)))!=null&&K.loggingEnabled&&!K.ids.has(u)&&K.ids.add(u)}};
yvb=function(u){return!(u==null||!u.iconName||(u==null?0:u.title))};
sVo=function(u,K,l,D){l&&_.YL.cancelJob(l);l=_.YL.addLowPriorityJob(function(){D(void 0)},5E3);
D(l);K&&u!==(K.likeStatus==="LIKE")&&K.key&&_.ME(_.TT("likeStatusEntity",K.key,{key:K.key,likeStatus:u?"LIKE":"INDIFFERENT",hadUserInteraction:u}))};
_.o7q=function(u,K){return _.eZ(u.entities,"accountLinkStatusEntity",K)};
W2Z=function(u,K){return _.eZ(u.entities,"hatsSurveyEntity",K)};
Hbb=function(u,K){return _.eZ(u.entities,"hatsSurveyStateEntity",K)};
MEZ=function(u,K){return _.eZ(u.entities,"quantityIncrementerEntity",K)};
qXb=function(u){switch(u){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 7;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;case "BADGE_STYLE_TYPE_YPC":return 8;case "BADGE_STYLE_TYPE_FEATURED":return 4;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 18;default:return 0}};
$8L=function(u){switch(u){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}};
n7b=function(u){switch(u){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.v7r=function(u){var K=_.Sg("web_generic_client_event_wait_period ",0);K||(K=3E5);var l=rvq.get(u);!_.S("enable_web_client_experiment_event_timeout_killswitch")&&l&&(0,_.vA)()-l<K||(rvq.set(u,(0,_.vA)()),_.YE("genericClientExperimentEvent",{eventType:u}))};
GDh=function(u){switch(u){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
tEL=function(u){if(!u)return"";var K,l=(K=_.GB().resolve(_.vv(_.H1)))==null?void 0:K(),D;if(!l&&((D=u.vibrantColorPalette)==null?0:D.iconInactiveColor))return li(u.vibrantColorPalette.iconInactiveColor,"1");var d;return l&&((d=u.darkColorPalette)==null?0:d.iconInactiveColor)?li(u.darkColorPalette.iconInactiveColor,"1"):u.color?li(u.color,"1"):u.sampledThumbnailColor?(u=u.sampledThumbnailColor,"rgba("+u.red+","+u.green+","+u.blue+");"):""};
_.hK=function(u,K){if(!u.includes("DATE_PLACEHOLDER"))return u;var l=new Date(0);l.setUTCSeconds(K);return u.replace("DATE_PLACEHOLDER",x8n(l))};
SXZ=function(u,K,l){return function(D){var d=u.command;d&&(Z$(d,{form:{element:l}}),K([d],D))}};
ObH=function(u,K,l,D,d){return function(C){var W=bbo(u,K);W&&Z$(W,{form:{element:l},commandController:D});d&&C.stopPropagation()}};
bbo=function(u,K){if(u.signInEndpoint&&!_.S("web_subscribe_sign_in_endpoint_killswitch"))return u.signInEndpoint;if(K){if(u.serviceEndpoints)return u.serviceEndpoints[1];if(u.onUnsubscribeEndpoints)return u.onUnsubscribeEndpoints[0]}else{if(u.serviceEndpoints)return u.serviceEndpoints[0];if(u.onSubscribeEndpoints)return u.onSubscribeEndpoints[0]}};
cvq=function(u,K){var l,D,d,C;K=K&&((l=u.unsubscribeAccessibility)==null?void 0:(D=l.accessibilityData)==null?void 0:D.label)||((d=u.subscribeAccessibility)==null?void 0:(C=d.accessibilityData)==null?void 0:C.label);return u.longSubscriberCountText?[K,_.WI(u.longSubscriberCountText)].filter(function(W){return W}).join(" "):K};
EK=function(u,K){return K||(u==null?0:u.isChannelDelegate)?"disabled":"active"};
aZL=function(u,K){var l;switch((l=u.style)==null?void 0:l.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:EK(u)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:EK(u)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:EK(u,!0)};case "OVERLAY":return K?{style:"overlay",type:"tonal",state:EK(u)}:{style:"overlay",type:"filled",state:EK(u)};default:return K?{style:"mono",type:"tonal",state:EK(u)}:{style:"mono",type:"filled",state:EK(u)}}};
zHH=function(u){switch(u){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
eHq=function(u){switch(u){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
RHH=function(u,K){var l=u.map(function(D){return D.toString()});
return _.p4(function(D){if(l.includes(D.key)){K&&D.preventDefault();var d;(d=D.currentTarget)==null||d.click()}})};
_.U8o=function(){return RHH(["Enter"])};
_.fZh=function(){return RHH(["Enter"," "],!0)};
_.L1=function(u){if(u.composedPath)return u.composedPath();if(!u.__composedPath){for(var K=[],l=u.target;l;)K.push(l),l=l.parentNode;K.push(window);u.__composedPath=K}return u.__composedPath};
_.uC=function(u,K,l){u=_.y(u);for(var D=u.next();!D.done;D=u.next()){D=D.value;if(D===K)break;for(var d=_.y(l),C=d.next();!C.done;C=d.next())if(C=C.value,D.tagName===C||D.role==="button"&&C==="BUTTON")return!0}return!1};
PVZ=function(u,K){var l,D=(l=K.observer)!=null?l:_.GB().resolve(ni);if(u){l=QVq(u);var d=[];K.showOption&&d.push(D.observe(u,function(){K.visibilityCallback(!0,u)},K.showOption));
K.hideOption&&d.push(D.observe(u,function(){K.visibilityCallback(!1,u)},K.hideOption));
K.prescanOption&&K.prescanCallback&&d.push(D.observe(u,function(){K.prescanCallback()},K.prescanOption));
var C;l.visibilityMonitorKeys=((C=l.visibilityMonitorKeys)!=null?C:[]).concat(d)}};
QVq=function(u){var K;return(K=u.polymerController)!=null?K:u};
_.lC=function(u){return!!_.Kz(u)};
_.DS=function(u,K,l,D,d){return function(C){var W=_.WAh();_.gp(function(){if(C){_.Jvo(C,u(),d);var M=_.jVH(C,u(),K,l,D,W);_.No(M)}},"nr377e")}};
_.Jvo=function(u,K,l){var D=B1y(K),d=pDn(K);K=D&&ibr;var C=d&&T1o;(D||d)&&PVZ(u,{visibilityCallback:function(W){var M=_.GB().resolve(_.t9);W&&D?M.resolveCommand(D,{form:{element:l?u:void 0},disableClickTracking:!0}):!W&&d&&M.resolveCommand(d,{form:{element:l?u:void 0},disableClickTracking:!0})},
showOption:K,hideOption:C})};
_.jVH=function(u,K,l,D,d,C){var W=new Map;if(K=_.Kz(K)){var M;u=(D==null?void 0:(M=D.onTap)==null?void 0:M.value)||u;l=wDw(K,u,l==null?void 0:l.onTap,d,C);u.addEventListener("click",l);W.set("click",l)}return function(){for(var q=_.y(W),v=q.next();!v.done;v=q.next()){var G=_.y(v.value);v=G.next().value;G=G.next().value;u.removeEventListener(v,G)}}};
_.Kz=function(u){var K;return(u=(K=_.b(u,F2o))==null?void 0:K.onTap)&&_.lt(u)};
B1y=function(u){var K;return(u=(K=_.b(u,F2o))==null?void 0:K.onVisible)&&_.lt(u)};
pDn=function(u){var K;return(u=(K=_.b(u,F2o))==null?void 0:K.onHidden)&&_.lt(u)};
wDw=function(u,K,l,D,d){var C=function(M){_.GB().resolve(_.t9).resolveCommand(u,M)},W=function(M){D&&_.uC(_.L1(M),K,D)||C(M.target?{form:{element:M.target,
sourceData:u,mutationContext:d}}:void 0)};
l&&(W=function(M){l(M,C)});
return W};
VEy=function(u){switch(u){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}};
g7L=function(u){var K=u.numAvatarsInCluster;switch(u.clusterSize){case "small":return K===2?22:18;case "40":return K===2?24:22;default:return K===2?24:20}};
N1h=function(u,K){return function(l){var D=Object.keys(K);_.gp(function(){if(u!=null&&u()){for(var d=_.y(D),C=d.next();!C.done;C=d.next())C=C.value,l.addEventListener(C,K[C]);_.No(function(){for(var W=_.y(D),M=W.next();!M.done;M=W.next())M=M.value,l.removeEventListener(M,K[M])})}},"bXZGfe")}};
kDw=function(u){switch(g7L(u)){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""}};
Zbq=function(u){switch(u){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""}};
YXq=function(u){switch(g7L(u)){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""}};
Avn=function(u){switch(u){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""}};
XDw=function(u){switch(u){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}};
m89=function(u){return u==="medium"||u==="48"||u==="large"||u==="extra-large"||u==="extra-extra-large"||u==="giant"};
hHb=function(u){return!!((u==null?0:u.includes(3))||(u==null?0:u.includes(5)))};
L2q=function(u){return{size:E7R(u.data.avatarImageSize),onTap:u.onTap,decorations:u.decorations||[],badgeText:u.badgeText,accessibilityText:u.accessibilityText,avatarButtonCustomClassName:u.avatarButtonCustomClassName,clusterLayoutConfig:u.clusterLayoutConfig}};
E7R=function(u){switch(u){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"}};
uA9=function(u){switch(u){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}};
K7w=function(u){switch(u){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
lDL=function(u){var K=u.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",l,D=u.avatars&&u.avatars.length>0?(l=_.b(u.avatars[0],_.ds))==null?void 0:l.avatarImageSize:"AVATAR_SIZE_UNKNOWN";l=uA9(D)||0;if(K){var d,C=(d=u.avatarClusterSize)!=null?d:"AVATAR_SIZE_M";K=uA9(C);var W,M,q=Math.min((M=(W=u.avatars)==null?void 0:W.length)!=null?M:0,4),v;return{avatars:((v=u.avatars)==null?void 0:v.slice(0,4))||[],avatarSizeInPx:l,avatarStackStyle:{width:K+"px",height:K+"px",position:"relative"},avatarStyle:function(t){var x=
g7L({clusterSize:E7R(C),numAvatarsInCluster:q,avatarIndex:t});var O=uA9(C);q===3&&t===2?(O=(O-x)/2,O=(_.E3("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*O):O=void 0;return{position:"absolute",top:q===2&&t===1||q===3&&t===2||q===4&&t>=2?"0":void 0,bottom:q===2&&t===0||q>2&&t<2?"0":void 0,left:q===2&&t===1||q>2&&(t===1||t===3)?"0":void 0,right:q<=3&&t===0||q===4&&(t===0||t===2)?"0":void 0,transform:O?"translateX("+O+"px)":void 0,width:x+"px",height:x+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(t){return{clusterSize:E7R(u.avatarClusterSize),numAvatarsInCluster:q,avatarIndex:t}},
avatarButtonCustomClassName:void 0}}var G;return{avatars:((G=u.avatars)==null?void 0:G.slice())||[],avatarSizeInPx:l,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:K7w(D),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
D3H=function(u,K,l){return function(){Z$(u,{form:{element:K},commandController:l})}};
d3n=function(u){switch(u){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
C9L=function(u){switch(u){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
IDq=function(u){var K=u.data;u=u.hidden===void 0?!1:u.hidden;var l={};u={class:_.jX("yt-page-indicator-view-model",(l["yt-page-indicator-view-model__indicator--hidden"]=!K.indicatorCount,l)),hidden:u};if(K.indicatorCount){l=[];for(var D=0;D<K.indicatorCount;D++){var d={};d=_.jX("yt-page-indicator-view-model__indicator",(d["yt-page-indicator-view-model__indicator--selected"]=K.selectedIndex===D,d));l.push(_.n("div",{class:d}))}K=_.n(_.G1,null,l)}else K=_.n(_.G1,null);return _.n("yt-page-indicator-view-model",
u,K)};
sJq=function(u){u&&(y6o(u)?delete u.inlinePlayerData:"inlinePlaybackEndpoint"in u&&delete u.inlinePlaybackEndpoint)};
oqH=function(u){if("accessibilityText"in u)return u.accessibilityText||"";if("title"in u){var K,l,D;return((K=u.title)==null?void 0:(l=K.accessibility)==null?void 0:(D=l.accessibilityData)==null?void 0:D.label)||""}if("accessibility"in u){var d,C;return((d=u.accessibility)==null?void 0:(C=d.accessibilityData)==null?void 0:C.label)||""}return""};
y6o=function(u){return"inlinePlayerData"in u};
Cz=function(u){return new W7r(u)};
HvH=function(u){var K=u.data;u=_.p4(function(){var d=_.b(K.onTap,_.K4);d&&_.GB().resolve(_.t9).resolveCommand(d);return!1});
var l={sources:[{url:K.thumbnailUrl,width:120,height:90}]},D=K.rating&&K.ratingA11yLabel&&K.reviewsCount&&K.reviewsCountA11yLabel;return _.n("place-data-view-model",null,K.placeName&&K.placeCategory?_.n("div",{class:"yt-spec-place-data-view-model-shape","on:click":u},_.n(_.n4,{data:l,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.n(_.I5,{className:"yt-spec-place-data-view-model-shape__place-link",command:K.onTap},_.n("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:K.placeName},K.placeName)),_.n("div",{class:"yt-spec-place-data-view-model-shape__metadata"},D?_.n("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.n("span",{class:"score",title:K.ratingA11yLabel},K.rating),_.n("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.n(_.VB,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.n("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",
title:K.reviewsCountA11yLabel},K.reviewsCount)):_.n("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.n("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.n("span",{class:"category",title:K.placeCategory},K.placeCategory)))):null)};
Miw=function(u){return function(K){u&&(u.thumbnailElRef=K.thumbnailElRef,u.thumbnail=K.thumbnail,u.thumbnailOverlays=K.thumbnailOverlays,u.thumbnailSize=K.thumbnailSize)}};
q1r=function(u){var K;return(K=u.sharedUi)==null?void 0:K.animatedThumbnailEnabled};
$3L=function(u){var K;return(K=u.sharedUi)==null?void 0:K.inlinePreviewEnabled};
_.nqq=function(u){var K;return(K=u.sharedUi)==null?void 0:K.currentPageSubType};
r6Z=function(u){switch(u){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
G4b=function(u){var K=_.y(_.On(!1,void 0,"RIOonf")),l=K.next().value,D=K.next().value;_.ZY(function(){var d=u==null?void 0:u();if(d){var C=_.GB().resolve(_.vv(vq9));if(C){var W={triggeringElement:d,onDwellTriggeredFn:function(){D(!0)},
onDwellEndFn:function(){D(!1)}};
C.registerElement(W);_.No(function(){_.y$(C,W)})}}});
return l};
tib=function(u,K,l){l?l(K):_.IT(K,u.target?{form:{element:u.target}}:void 0)};
_.sL=function(u,K,l){return function(D){_.gp(function(){var d=new Map,C,W=(C=u())==null?void 0:C.onTap;W&&(C=function(M){a:{var q=M.composedPath();q=_.y(q);for(var v=q.next();!v.done;v=q.next()){v=v.value;if(v===D)break;if(v.className.indexOf("HostIsClickableAdComponent")>=0||v.tagName==="A".toString()||v.tagName==="BUTTON".toString()){q=!0;break a}}q=!1}q||tib(M,W,K)},(l==null?0:l())||_.S("enable_web_home_top_landscape_image_layout_level_click")?(D.addEventListener("tap",C),d.set("tap",C)):(D.addEventListener("click",
C),d.set("click",C)));
_.No(function(){for(var M=_.y(d),q=M.next();!q.done;q=M.next()){var v=_.y(q.value);q=v.next().value;v=v.next().value;D.removeEventListener(q,v)}})},"NMyqj")}};
x3h=function(u,K){var l,D=(l=u.interaction)==null?void 0:l.onTap;if(u=_.dY({elementsCommand:D,forceNewState:!0,skipOnClick:!0}))return u.onclick=function(d){omq(d)&&(d.preventDefault(),D&&tib(d,D,K))},C4(u)?u:void 0};
S1q=function(u){switch(u){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
bvn=function(u){switch(u){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"}};
Ovn=function(u){switch(u){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"}};
_.c6o=function(u){return _.S("rich_grid_enable_dynamic_offset")&&u?Math.max(Math.round((u-_.Sg("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Sg("rich_grid_dynamic_offset_offset_per_100",10)),_.Sg("rich_grid_dynamic_offset_lower_bound",-60)):0};
aDr=function(u,K){switch(K){case 4:return 16;case 1:return u<528?16:u<1024?32:48;case 2:return(u>=528?16:8)/2;case 3:return(u<528?16:u<1024?32:48)+(u>=528?16:8)/2;default:return 0}};
zgy=function(u){var K=u.originalContainerWidth;var l=u.sizing;var D=u.standardUnit;if(u.isCompactList&&K<528)return 1;switch(l){case "STANDARD":return D;case "COMPACT":return D+1;case "EXTRA_COMPACT":return _.S("web_responsive_extra_compact_2x")?D*2:_.S("web_responsive_current")?D===1?2:D%2===0?D/2*3:D+2:D<4?D*2:Math.ceil(D*3/2);case "MINI":return D>1?D*2:3;default:return D}};
Rgr=function(u){var K=u.containerWidth;var l=u.peek;var D=u.gutter;var d=u.numItems;u=u.ignoreMaxWidthLimit;K=l?Math.max((K-l-D*d)/d,0):Math.max((K-D*(d-1))/d,0);return u?K:Math.min(K,egH)};
_.o5=function(u){var K=u.containerWidth;var l=u.hasPeek;var D=u.sizing;var d=u.marginSettings;var C=u.isCompactList;var W=u.enableFullBleedForSingleCol;var M=u.standardUnitMinWidth;D=D||"STANDARD";l=!!l;u=K>=528?16:8;var q=l?K>=528?48:24:0;d=aDr(K,d);var v=Math.max(K-d*2,0);M=_.S("kevlar_disable_min_width_override")?void 0:M;M=Math.min(Math.max(Math.floor((v-q+u)/((M!=null?M:U39)+_.c6o(K)+u)),1),6);var G=(W=!!W&&M===1)||M===1&&D!=="STANDARD";l=l||G?v:Math.min(v,(egH+u)*M-u);D=zgy({originalContainerWidth:K,
sizing:D,standardUnit:M,isCompactList:C});return{itemWidth:Rgr({containerWidth:l,peek:q,gutter:u,numItems:D,ignoreMaxWidthLimit:G}),gutter:u,maxContainerWidth:l,numItems:D,margin:W?0:d,contentMargin:aDr(K,1),typographyBump:Rgr({containerWidth:l,peek:q,gutter:u,numItems:M,ignoreMaxWidthLimit:G})>400&&!(C&&K<528),standardUnit:M}};
fDZ=function(u){switch(u){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.QJZ=function(u){if(u){var K;if((K=u.responsiveContainerConfiguration)==null?0:K.responsiveSize)return fDZ(u.responsiveContainerConfiguration.responsiveSize);if(u.layoutSizing)switch(u.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"}}};
P9r=function(u){if(u.fullbleed)return 1;switch(u.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
pgR=function(u,K,l,D,d,C,W,M){a:if(u===4&&D==="LOCKUP_CONTENT_TYPE_SOURCE")var q=1;else switch(u){case 3:q=1;break a;default:q=0}a:switch(u){case 4:C=!!(C&&C<100);break a;default:C=!1}a:switch(u){case 3:case 4:var v=D==="LOCKUP_CONTENT_TYPE_CHANNEL"||D==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:v=!1}a:switch(u){case 5:var G=!0;break a;case 4:G=!1;break a;default:G=!1}return{isOverlay:G,isCard:J6q(D,W),sizing:K!=null?K:"STANDARD",typographyBump:l!=null?l:!1,isTiny:C,isCentered:v,isCollection:jJo(D),
arrangement:q,addMarginForFullbleed:u===1&&D!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:u===1&&D==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:BcH(D,d,M),disableRounding:u===5||J6q(D,W)||u===1&&D==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:jJo(D)?2:0,useLegacyTypography:!(M==null||!M.useLegacyTypography),useRichGridLegacyTypography:!(M==null||!M.useRichGridLegacyTypography)&&!_.S("web_enable_typography_bump"),compactMetadata:q===0&&D==="LOCKUP_CONTENT_TYPE_VIDEO"}};
jJo=function(u){switch(u){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}};
J6q=function(u,K){if(K&&u==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(u){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
BcH=function(u,K,l){if(K&&(l==null||!l.alwaysRespectPodcastShowAspectRatio||u!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(u){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}};
ivH=function(u){switch(u){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"}};
TcH=function(u){switch(u){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
wgq=function(u){switch(u){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}};
_.Wk=function(u){if(u){var K;return((K=_.GB().resolve(_.vv(_.H1)))==null?0:K())?u.darkThemeImage:u.image}};
gqo=function(u,K,l,D,d,C){if(d&&C&&K==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:d,height:C};if(!l)return{};d=l.size;l=l.allowFullWidth;if(K==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&l)return{fullWidth:!0};if(d===void 0)return{};switch(u){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:d,height:d};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:d,height:1/F7w*d};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:d*
Vih,height:d};default:return(D==null?0:D.height)&&(D==null?0:D.width)?D.width/D.height>1?{maxWidth:d*Vih}:{maxWidth:d}:{maxWidth:d}}};
Ncq=function(u){var K;return u&&((K=_.Wk(u.themedImage))!=null?K:u.image)};
k4y=function(u){var K;return u==null?void 0:(K=u.sources)==null?void 0:K[0]};
Zvq=function(u){switch(u){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
Y1r=function(u){switch(u.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"}}};
A6n=function(u){var K=_.nqq(_.Hb().getState())||"";return u?u+K:""};
Xgq=function(u){switch(u){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
Eqq=function(u){var K=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],l=_.y(_.On(void 0,void 0,"JrqNsb")),D=l.next().value,d=l.next().value,C=_.y(_.On(void 0,void 0,"rWytse"));l=C.next().value;var W=C.next().value;C=_.y(_.On(void 0,void 0,"DHRqxe"));var M=C.next().value,q=C.next().value;return{touchFeedbackEvents:{pointerUpEvent:D,pointerDownEvent:l,pointerLeaveEvent:M},touchFeedbackOnPointerUp:_.p4(function(v){m3Z(_.L1(v),K)||(d(v),W(void 0),q(void 0))}),
touchFeedbackOnPointerDown:_.p4(function(v){u==null||u(v);m3Z(_.L1(v),K)||(W(v),d(void 0),q(void 0))}),
touchFeedbackOnPointerLeave:_.p4(function(v){m3Z(_.L1(v),K)||(q(v),W(void 0),d(void 0))})}};
m3Z=function(u,K){K=K===void 0?[]:K;K=[].concat(_.Am(K),["BUTTON".toString()]);u=_.y(u);for(var l=u.next();!l.done;l=u.next()){l=l.value;for(var D=_.y(K),d=D.next();!d.done;d=D.next())if(l.tagName===d.value)return!0}return!1};
L7H=function(u){switch(u){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"}};
uCb=function(u){return u.scrollHeight-u.offsetHeight>1};
KCH=function(u,K){var l;return W1(u,((l=u.content)==null?void 0:l.length)||0,!K)};
l6R=function(u,K){K=KCH(u,K);var l,D;return(((l=u.content)==null?void 0:l.length)||0)>(((D=K.content)==null?void 0:D.length)||0)};
dk9=function(u,K,l,D,d,C){if(!K||Hk){var W;return W1(u,((W=u.content)==null?void 0:W.length)||0,!0)}K=D.value;if(!l.value||!K||!u.content)return u;l=0;D=u.content.length;W=0;Dko||(Dko=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var M=Dko;for(d=d*C*M;l<=D;)C=Math.floor(l+(D-l)/2),M=W1(u,C)||u,K.firstChild&&(K.firstChild.textContent=M.content),K.scrollHeight>d?D=C-1:(W=C,l=C+1);return W1(u,W)};
CoH=function(u,K){var l,D;return(((l=u.content)==null?void 0:l.length)||0)>(((D=K.content)==null?void 0:D.length)||0)};
I6o=function(u){var K=u.isTruncated;var l=u.isAbsoluteButton;var D=u.lineHeight;var d=u.contentRef.value,C=u.placeholderTruncationTextRef.value,W=u.truncationTextRef.value;u=u.appDirection==="rtl";if(d&&C){var M=C.offsetLeft;u&&(M=d.offsetWidth-C.offsetWidth-C.offsetLeft);if(K){K=C.offsetWidth;C=d.offsetWidth;var q=l?C-K-70:M-70;D="linear-gradient(\n      to top, transparent 0%,\n      transparent "+D+"rem,\n      #000 "+D+"rem,\n      #000 100%), linear-gradient(\n      to "+((u?"left":"right")+
",\n      #000 0px,\n      #000 "+q+"px,\n      transparent "+(l?C-K:q+70)+"px)");d.style.setProperty("-webkit-mask-image",D);d.style.setProperty("mask-image",D)}else d.style.setProperty("-webkit-mask-image",""),d.style.setProperty("mask-image","");l?u?(W.style.setProperty("left","0"),W.style.setProperty("right","unset")):(W.style.setProperty("left",""),W.style.setProperty("right","0")):u?(W.style.setProperty("left","unset"),W.style.setProperty("right",M+"px")):(W.style.setProperty("left",M+"px"),
W.style.setProperty("right","unset"))}};
ydh=function(u,K,l,D,d){var C=_.o9("truncated-text-content"),W=_.o9("truncated-text-content"),M=_.o9("button"),q=_.o9("button"),v=_.o9("button"),G=_.GB().resolve(_.qI),t=_.y(p1(KCH(u,d))),x=t.next().value,O=t.next().value;t=_.y(p1(_.S("enable_truncated_text_max_lines")?CoH(u,x):l6R(u,d)));var a=t.next().value,f=t.next().value,B=A8(null);_.kD(function(){function p(){if(C.value&&M.value&&v.value)if(_.S("enable_truncated_text_max_lines")){var Z=dk9(u,d,C,W,K,l);O(Z);D||requestAnimationFrame(function(){if(C.value&&
M.value&&v.value){var A=uCb(C.value)||CoH(u,Z);f(A);I6o({isTruncated:A,isAbsoluteButton:uCb(C.value),lineHeight:l,contentRef:C,placeholderTruncationTextRef:M,truncationTextRef:v,appDirection:G})}})}else O(KCH(u,d)),requestAnimationFrame(function(){if(C.value&&M.value&&v.value)if(uCb(C.value))f(!0),D||I6o({isTruncated:!0,
isAbsoluteButton:!0,lineHeight:l,contentRef:C,placeholderTruncationTextRef:M,truncationTextRef:v,appDirection:G});else{var A=l6R(u,d);f(A);D||I6o({isTruncated:A,isAbsoluteButton:!1,lineHeight:l,contentRef:C,placeholderTruncationTextRef:M,truncationTextRef:v,appDirection:G})}})}
var V,m;(V=B.value)==null||(m=V.stop)==null||m.call(V);V=new _.MC(p,17);p();B.value=V},[u.content,
K,l,G,D,d]);_.ZY(function(){var p=function(){Dko=void 0;var m,Z;(m=B.value)==null||(Z=m.fire)==null||Z.call(m)};
if(window.ResizeObserver){var V=new ResizeObserver(p);V.observe(C.value);return function(){var m,Z;(m=B.value)==null||(Z=m.stop)==null||Z.call(m);V.disconnect()}}window.addEventListener("resize",p);
return function(){var m,Z;(m=B.value)==null||(Z=m.stop)==null||Z.call(m);window.removeEventListener("resize",p)}});
return{isTruncated:a,displayText:x,contentRef:C,hiddenRef:W,placeholderTruncationTextRef:M,hiddenTruncationTextRef:q,truncationTextRef:v}};
s1q=function(u){var K=u.text;var l=u.alwaysShowTruncationText;var D=u.truncationText;var d=u.onTextClick;var C=u.maxLines===void 0?2:u.maxLines;var W=u.disableTextMask===void 0?!1:u.disableTextMask;var M=u.textStyle===void 0?"default":u.textStyle;var q=u.accessibilityLabel===void 0?"":u.accessibilityLabel;var v=u.textSize===void 0?"small":u.textSize;var G=u.alwaysTruncateAtMaxLines===void 0?!1:u.alwaysTruncateAtMaxLines;var t=u.expandOnClick===void 0?!1:u.expandOnClick;u=_.y(p1(!1));var x=u.next().value,
O=u.next().value;u=_.p4(function(){t&&O(!x);d==null||d()});
a:switch(v){case "medium":var a=2;break a;case "large":a=2.2;break a;default:a=1.8}var f=ydh(K,x?Infinity:C,a,W,G),B=f.isTruncated;K=f.displayText;G=f.contentRef;var p=f.hiddenRef,V=f.placeholderTruncationTextRef,m=f.hiddenTruncationTextRef;f=f.truncationTextRef;var Z={};l=_.jX((Z["truncated-text-wiz__absolute-button"]=!W,Z["truncated-text-wiz__bottom-button"]=W,Z["truncated-text-wiz--hidden"]=!(!x&&(l||B)),Z));W={};M=_.jX((W["truncated-text-wiz"]=!0,W["truncated-text-wiz--overlay"]=M==="overlay",
W["truncated-text-wiz--medium-text"]=v==="medium",W["truncated-text-wiz--large-text"]=v==="large",W["truncated-text-wiz--primary-text"]=M==="primary-text",W));v={};v=_.jX((v["truncated-text-wiz__truncated-text-content"]=!0,v["truncated-text-wiz__truncated-text-content--hidden-text-content"]=!0,v));return _.n("truncated-text",{class:M,"on:click":u,style:"line-height: "+a+"rem;"},_.n("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:G,style:x?"":"max-height: "+C*a+"rem;"},
_.n(_.qC,{text:K}),_.n("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:V,style:"line-height: "+a+"rem;"},_.n(_.qC,{text:D}))),_.n("truncated-text-content",{class:v,el:p,style:x?"":"max-height: "+C*a+"rem;","aria-hidden":"true"},_.n(_.qC,{text:K}),_.n("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:m,style:"line-height: "+a+"rem;"},_.n(_.qC,{text:D}))),_.n("button",{"aria-label":q,class:l,el:f,style:"line-height: "+a+"rem;"},
_.n(_.qC,{text:D})))};
o9n=function(u){return u.scrollHeight-u.offsetHeight>1};
WCH=function(u,K){var l;return W1(u,((l=u.content)==null?void 0:l.length)||0,!K)};
H69=function(u,K){K=WCH(u,K);var l,D;return(((l=u.content)==null?void 0:l.length)||0)>(((D=K.content)==null?void 0:D.length)||0)};
qzq=function(u,K,l,D,d,C){if(!K||Hk){var W;return W1(u,((W=u.content)==null?void 0:W.length)||0,!0)}K=D.value;if(!l.value||!K||!u.content)return u;l=0;D=u.content.length;W=0;MMq||(MMq=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var M=MMq;for(d=d*C*M;l<=D;)C=Math.floor(l+(D-l)/2),M=W1(u,C)||u,K.firstChild&&(K.firstChild.textContent=M.content),K.scrollHeight>d?D=C-1:(W=C,l=C+1);return W1(u,W)};
$kh=function(u,K){var l,D;return(((l=u.content)==null?void 0:l.length)||0)>(((D=K.content)==null?void 0:D.length)||0)};
n9Z=function(u){var K=u.isTruncated;var l=u.isAbsoluteButton;var D=u.lineHeight;var d=u.contentRef.value,C=u.placeholderTruncationTextRef.value,W=u.truncationTextRef.value;u=u.appDirection==="rtl";if(d&&C){var M=C.offsetLeft;u&&(M=d.offsetWidth-C.offsetWidth-C.offsetLeft);if(K){K=C.offsetWidth;C=d.offsetWidth;var q=l?C-K-70:M-70;D="linear-gradient(\n      to top, transparent 0%,\n      transparent "+D+"rem,\n      #000 "+D+"rem,\n      #000 100%), linear-gradient(\n      to "+((u?"left":"right")+
",\n      #000 0px,\n      #000 "+q+"px,\n      transparent "+(l?C-K:q+70)+"px)");d.style.setProperty("-webkit-mask-image",D);d.style.setProperty("mask-image",D)}else d.style.setProperty("-webkit-mask-image",""),d.style.setProperty("mask-image","");l?u?(W.style.setProperty("left","0"),W.style.setProperty("right","unset")):(W.style.setProperty("left",""),W.style.setProperty("right","0")):u?(W.style.setProperty("left","unset"),W.style.setProperty("right",M+"px")):(W.style.setProperty("left",M+"px"),
W.style.setProperty("right","unset"))}};
rdq=function(u,K,l,D,d){var C=_.o9("truncated-text-content"),W=_.o9("truncated-text-content"),M=_.o9("button"),q=_.o9("button"),v=_.o9("button"),G=_.GB().resolve(_.qI),t=_.y(_.wY(function(){return WCH(u(),d())})),x=t.next().value,O=t.next().value;
t=_.y(_.wY(function(){return _.S("enable_truncated_text_max_lines")?$kh(u(),x()):H69(u(),d())}));
var a=t.next().value,f=t.next().value,B=null;_.gp(function(){function p(){if(C.value&&M.value&&v.value)if(_.S("enable_truncated_text_max_lines")){var Z=qzq(u(),d(),C,W,K(),l());O(Z);D()||requestAnimationFrame(function(){if(C.value&&M.value&&v.value){var A=o9n(C.value)||$kh(u(),Z);f(A);n9Z({isTruncated:A,isAbsoluteButton:o9n(C.value),lineHeight:l(),contentRef:C,placeholderTruncationTextRef:M,truncationTextRef:v,appDirection:G})}})}else O(WCH(u(),d())),requestAnimationFrame(function(){if(C.value&&M.value&&
v.value){var A=u();
K();var h=l(),C9=D(),Wo=d();o9n(C.value)?(f(!0),C9||n9Z({isTruncated:!0,isAbsoluteButton:!0,lineHeight:h,contentRef:C,placeholderTruncationTextRef:M,truncationTextRef:v,appDirection:G})):(A=H69(A,Wo),f(A),C9||n9Z({isTruncated:A,isAbsoluteButton:!1,lineHeight:h,contentRef:C,placeholderTruncationTextRef:M,truncationTextRef:v,appDirection:G}))}})}
var V,m;(V=B)==null||(m=V.stop)==null||m.call(V);V=new _.MC(p,17);p();B=V},"EujZId");
_.ZY(function(){O(WCH(u(),d()));f(_.S("enable_truncated_text_max_lines")?$kh(u(),x()):H69(u(),d()));var p=function(){MMq=void 0;var m,Z;(m=B)==null||(Z=m.fire)==null||Z.call(m)};
if(window.ResizeObserver){var V=new ResizeObserver(p);V.observe(C.value);_.No(function(){var m,Z;(m=B)==null||(Z=m.stop)==null||Z.call(m);V.disconnect()})}else window.addEventListener("resize",p),_.No(function(){var m,Z;
(m=B)==null||(Z=m.stop)==null||Z.call(m);window.removeEventListener("resize",p)})});
return{isTruncated:a,displayText:x,contentRef:C,hiddenRef:W,placeholderTruncationTextRef:M,hiddenTruncationTextRef:q,truncationTextRef:v}};
_.v9y=function(u,K,l,D,d,C){var W=function(v){v.preventDefault()},M=function(){var v=u.value;
if(v)return(v._data=K)?(v.addEventListener("touchstart",qMq,{passive:!0}),v.addEventListener("click",nmq),K.clickTrackingParams&&(v.params={itct:K.clickTrackingParams}),rkn(v,K),lY(v,vmH(K)||"")):v.addEventListener("click",W),function(){K?(v.removeEventListener("touchstart",qMq,{passive:!0}),v.removeEventListener("click",nmq)):v.removeEventListener("click",W)}},q=function(){var v=u.value;
if(v){var G=_.dY({innertubeCommand:K,elementsCommand:l,forceNewState:D,stopPropagation:C});if(G)return v._data=G._data,G["aria-haspopup$"]&&v.setAttribute("aria-haspopup",G["aria-haspopup$"].toString()),G["force-new-state$"]&&v.setAttribute("force-new-state",G["force-new-state$"].toString()),G.href$&&lY(v,G.href$),G.rel$&&(v.rel=G.rel$),G.role$&&v.setAttribute("role",G.role$),G.target$&&(v.target=G.target$),v.params=G.params,G.onclick&&v.addEventListener("click",G.onclick),G.onpointerdown&&v.addEventListener("onpointerdown",
G.onpointerdown),function(){G.onclick&&v.removeEventListener("click",G.onclick);G.onpointerdown&&v.removeEventListener("onpointerdown",G.onpointerdown)}}};
_.kD(d?q:M,[K,l])};
GNq=function(u){var K=u.children;var l=u.className;var D=u.dir;var d=u.style;var C=u.role;var W=u.ariaSelected;var M=u.ariaLabel;var q=u.ariaHidden;var v=u.ariaLabelledby;var G=u.ariaDescribedby;var t=u.command;var x=u.elementsCommand;var O=u.forceNewState;var a=u.isPlaceholder;var f=u.tabIdentifier;var B=u.target;var p=u.tabIndex;var V=u.useATagConfig;var m=u.stopPropagation;u=_.o9("a");_.v9y(u,t,x,O,V,m);return _.n("a",{el:u,"on:click":_.p4(function(){return m===!1}),
class:l,style:d,dir:D,role:C?C:t?void 0:"group","aria-hidden":q?!0:void 0,"aria-label":M,"aria-labelledby":v,"aria-describedby":G,"aria-selected":W,tabindex:p!==void 0?p:void 0,target:B,"tab-identifier":f,"force-new-state":O?!0:void 0,"is-placeholder":a?!0:void 0},K)};
tMq=function(u){return{content:u!=null?u:""}};
xk9=function(u){return _.lt(u.onTap)||_.Kz(u.rendererContext)};
O6L=function(u){var K=u.data;u={class:u.className};a:switch(K.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var l="yt-video-attribute-view-model--vertical";break a;default:l="yt-video-attribute-view-model--horizontal"}a:switch(K.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var D="yt-video-attribute-view-model--image-small";break a;default:D="yt-video-attribute-view-model--image-large"}a:switch(K.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var d="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":d="yt-video-attribute-view-model--image-avatar";break a;default:d=""}a:switch(K.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var C="yt-video-attribute-view-model--metadata-header";break a;default:C=""}a:switch(K.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var W="yt-video-attribute-view-model--container-card";break a;default:W=""}l=["yt-video-attribute-view-model",l,D,d,C,W,xk9(K)?"yt-video-attribute-view-model--clickable":
""].join(" ");if(K.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var M="";else D=K.lightColorPalette,d=K.darkColorPalette,C=((M=_.GB().resolve(_.vv(_.H1)))==null?0:M())&&d?d:D,M=(M=C==null?void 0:C.section2Color)?_.Kg(M):"";return _.n("yt-video-attribute-view-model",u,_.n("div",{class:l,style:_.Fb({"background-color":M})},xk9(K)||!_.S("web_video_attribute_view_model_a11y_fix")?_.n(GNq,{className:"yt-video-attribute-view-model__content-container",useATagConfig:!0,stopPropagation:!1,command:xk9(K),
role:"group",ariaLabel:K.title,forceNewState:!0},K.heroText||K.image?_.n(Szq,{data:K}):null,_.n(b6o,{data:K,sizeSmall:K.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"})):_.n("div",{class:"yt-video-attribute-view-model__content-container"},K.heroText||K.image?_.n(Szq,{data:K}):null,_.n(b6o,{data:K,sizeSmall:K.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
cdL=function(u){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:u.overflowMenuA11yLabel,onTap:function(K){K.preventDefault();K.stopPropagation();if(u.overflowMenuOnTap){var l=_.dY({elementsCommand:u.overflowMenuOnTap,forceNewState:!0});if(l==null?0:l.onclick)l.onclick(K)}}}};
Szq=function(u){u=u.data;var K,l=((K=_.GB().resolve(_.vv(_.H1)))==null?0:K())&&u.darkThemeImage?u.darkThemeImage:u.image;K=cdL(u);return _.n("div",{class:"yt-video-attribute-view-model__hero-section"},l?_.n(_.n4,{data:l,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):u.heroText?_.n("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.n("span",{class:"yt-video-attribute-view-model__hero-text"},u.heroText)):null,u.overflowMenuOnTap?
_.n("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.n($e,{data:K,iconName:"MORE_VERT"})):null)};
b6o=function(u){var K=u.data;u=u.sizeSmall;var l=K.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",D=xk9(K);D=_.dY({innertubeCommand:D});D=C4(D);var d={};u={class:_.jX("yt-video-attribute-view-model__metadata",(d["yt-video-attribute-view-model--small-font"]=u,d)),role:D?"link":"group"};D=_.n("h1",{class:"yt-video-attribute-view-model__title"},K.title);l=K.subtitle?_.n("h4",{class:"yt-video-attribute-view-model__subtitle"},l?_.n(a6Z,{text:tMq(K.subtitle),truncationText:tMq(K.subtitleTruncationText),
maxLines:2}):_.n("span",null,K.subtitle)):null;if(K.secondarySubtitle){d=K.secondarySubtitle;if(d!=null&&d.attachmentRuns){for(var C=[],W=_.y(d.attachmentRuns),M=W.next();!M.done;M=W.next())M=M.value,M.element&&C.push(Object.assign({},M,{element:Object.assign({},M.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));d=Object.assign({},d,{attachmentRuns:C})}d=_.n("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.n(_.qC,{text:d}))}else d=null;return _.n("div",u,D,l,d,K.buttonViewModel?zIw(K.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
eI9=function(u){return{content:u!=null?u:""}};
RIq=function(u){return _.lt(u.onTap)||_.Kz(u.rendererContext)};
Ukq=function(u){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:u.overflowMenuA11yLabel,onTap:function(K){K.preventDefault();K.stopPropagation();if(u.overflowMenuOnTap){var l=_.dY({elementsCommand:u.overflowMenuOnTap,forceNewState:!0});if(l==null?0:l.onclick)l.onclick(K)}}}};
_.nz=function(u,K,l,D,d){D=D===void 0?{}:D;if(!d||Math.random()<5E-4){K=K||null;l=l||null;u=u instanceof Error?u:new _.wv(u);if(u.args)for(var C=_.y(u.args),W=C.next();!W.done;W=C.next())W=W.value,W instanceof Object&&(D=Object.assign({},W,D));D.category="H5 Ads Control Flow";K&&(D.slot=K?"slot:  "+K.slotType:"");l&&(D.layout=l?"layout:  "+l.layoutType:"",D.layoutId=l.layoutId);d&&(D.known_error_aggressively_sampled=!0);u.args=[D];_.hV(u)}};
_.f6q=function(u,K){_.Sy(u,"yt-open-popup-action",[_.nc(K),u])};
_.rs=function(u,K){_.f6q(u,_.o7(K))};
Poq=function(u){if(!u)return"";if(Q1Z[u])return Q1Z[u];vk||(vk=_.PO("A"));vk.href!==u&&lY(vk,u);var K=vk.pathname;Q1Z[u]=K.startsWith("/")?K:"/"+K;return Q1Z[u]};
Jdh=function(){var u=Poq(window.location.href);if(u==="/")return"home";if(u.startsWith("/results"))return"search";if(u.startsWith("/watch"))return"watch";if(u.startsWith("/shorts"))return"shorts";if(u.startsWith("/hashtag"))return"hashtag";if(u.startsWith("/create_channel"))return"create_channel";if(u.startsWith("/@")||u.startsWith("/user/")||u.startsWith("/channel/"))return"channel";if(u.startsWith("/experiments"))return"experiments";if(u.startsWith("/sponsor_channel"))return"sponsorship";if(u.startsWith("/select_site"))return"settings";
if(u.startsWith("/locate"))return"locate";if(u.startsWith("/redeem"))return"redeem";if(u.startsWith("/musicpremium")||u.startsWith("/premium")||u.startsWith("/red"))return"premium";if(u.startsWith("/paid_memberships"))return"paid_memberships";if(u.startsWith("/oops"))return"oops";if(u.startsWith("/clip"))return"clip";var K;return(Gk==null?void 0:(K=Gk.response)==null?void 0:K.page)==="404"?"404":u.startsWith("/feed/history")?"history":u.startsWith("/feed/library")?"library":u.startsWith("/feed/subscriptions")?
"subscriptions":u.startsWith("/feed/trending")?"trending":u.startsWith("/feed/news_destination")?"news":u.startsWith("/playlist")?"playlist":u.startsWith("/minor_moment")?"minor_moment":u.startsWith("/playable/")||u.match("^/playables/(?!saved).")?"mini_app":u.startsWith("/playables")?"playables":u.startsWith("/create/live/join")?"open_in_app":u.startsWith("/feed/explore")?"explore":"browse"};
_.i6q=function(){var u=Gk==null?void 0:Gk.response,K=u==null?void 0:u.endpoint;if(!K)return(u==null?void 0:u.page)==="watch"?"watch":Jdh();var l;u=(l=_.b(K==null?void 0:K.commandMetadata,_.nN))==null?void 0:l.webPageType;l=!1;if(u&&!j1H.includes(u))switch(u){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var D;return((D=_.b(K==null?void 0:K.commandMetadata,_.nN))==null?0:D.url)&&Poq(_.b(K.commandMetadata,_.nN).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var d;return(K=(d=_.b(K,_.jt))==null?void 0:d.browseId)?B8w[K]||"browse":"browse";default:l=!0}if(_.b(K,_.t3)||_.b(K,ppb))return"sponsorship";d=Poq(window.location.href);if(d.startsWith("/experiments"))return"experiments";if(d.startsWith("/create_channel"))return"create_channel";
if(_.b(K,_.d_)&&d.startsWith("/shorts"))return"shorts";if(_.b(K,_.d_)&&d.startsWith("/watch"))return"watch";l&&(K=new _.wv("Unsupported mWeb page type",{pathname:d,webPageType:u}),_.Xm(K));return"browse"};
xe=function(u,K,l,D){return u&&K?u!==l||K!==D?(_.nz(Error("Ih"),void 0,void 0,{"stored-slot":u,"stored-layout":K,"latest-slot":l,"latest-layout":D}),!1):!0:!1};
T8q=function(u,K,l){return u({targetId:K},function(D){return l.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},D,{header:l.continuationItems?l.continuationItems[0]:void 0}):Object.assign({},D,{contents:l.continuationItems?l.continuationItems:[]})})};
wpH=function(u,K,l,D){if(K=K.trackingParams){var d,C=(d=l.getScreenLayer)==null?void 0:d.call(l);l=_.AC(C);d=_.Yr(C);if(l&&d){var W=_.gf(K);_.S("combine_ve_grafts")?u.graftServerVe(K,d,C):_.DJ(l,d,W);D==null||D(W)}}};
VML=function(u){var K;return((K=FCw.get(u))==null?void 0:K.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
kNn=function(u,K){var l={type:K.slotType,controlFlowManagerLayer:g9H.get(K.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};K.slotEntryTrigger&&(l.entryTriggerType=K.slotEntryTrigger.triggerType);K.slotPhysicalPosition!==1&&(l.slotPhysicalPosition=K.slotPhysicalPosition);if(u){l.debugData={slotId:K.slotId};if(u=K.slotEntryTrigger)l.debugData.slotEntryTriggerData=N8o(u);u=K.slotFulfillmentTriggers;l.debugData.fulfillmentTriggerData=[];u=_.y(u);for(var D=u.next();!D.done;D=u.next())l.debugData.fulfillmentTriggerData.push(N8o(D.value));
K=K.slotExpirationTriggers;l.debugData.expirationTriggerData=[];K=_.y(K);for(u=K.next();!u.done;u=K.next())l.debugData.expirationTriggerData.push(N8o(u.value))}return l};
N8o=function(u,K){var l={type:u.triggerType};K!=null&&(l.category=K);u.triggeringSlotId!=null&&(l.triggerSourceData||(l.triggerSourceData={}),l.triggerSourceData.associatedSlotId=u.triggeringSlotId);u.triggeringLayoutId!=null&&(l.triggerSourceData||(l.triggerSourceData={}),l.triggerSourceData.associatedLayoutId=u.triggeringLayoutId);return l};
Z6n=function(u,K,l,D){K={opportunityType:K};u&&(D||l)&&(D=_.ZM(D||[],function(d){return kNn(u,d)}),K.debugData=Object.assign({},l&&l.length>0?{associatedSlotId:l}:{},D.length>0?{slots:D}:{}));
return K};
Yzw=function(u){return Sd(u.opportunityAdapterMap).concat(Sd(u.triggerAdapterMap)).concat(Sd(u.fulfillmentAdapterFactoryMap)).concat(Sd(u.slotAdapterFactoryMap)).concat(Sd(u.layoutRenderingAdapterFactoryMap))};
Sd=function(u){var K=[];u=_.y(u.values());for(var l=u.next();!l.done;l=u.next())l=l.value,l.isAdsControlFlowEventListener&&K.push(l);return K};
OL=function(u){var K=u.slotId,l=u.slotType,D=u.slotPhysicalPosition;return K===void 0?new bC("Cannot construct a slot due to the missing id.",{adSlotMetadata:u}):l===void 0?new bC("Cannot construct a slot due to the missing type.",{adSlotMetadata:u}):D===void 0?new bC("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:u}):{slotId:K,slotType:l,slotPhysicalPosition:D,managerLayer:"external",adSlotLoggingData:u.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new Adr}};
Xpq=function(u){var K=u.layoutId,l=u.layoutType;return K===void 0?new ck("Cannot construct a layout due to the missing id.",{adLayoutMetadata:u}):l===void 0?new ck("Cannot construct a layout due to the missing type.",{adLayoutMetadata:u}):{layoutId:K,layoutType:l,managerLayer:"external",adLayoutLoggingData:u.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new Adr,interactionLoggingAdsClientData:{}}};
mkq=function(u){if(u.querySelector("img")){var K=u.querySelector("img");K.addEventListener("error",function(){ujL(K.src).then(function(l){(l=_.LM(l).toString())?K.src=l:K.removeAttribute("src")}).catch(function(){K.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
zk=function(u,K){if(K&&(hIL(K.viewableCommand)||hIL(K.endOfSessionCommand))){var l=E9h(K==null?void 0:K.viewableCommand);K=E9h(K==null?void 0:K.endOfSessionCommand);if(!a5){var D=_.Sg("custom_active_view_tos_timeout_ms");a5=D>0&&D!==36E5?new LCZ(uvq(),D):new LCZ(uvq())}Kn9(a5,u);lio(a5,u,l,K)}};
ed=function(u){a5&&Kn9(a5,u)};
uvq=function(){var u=_.E3("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(u==null?void 0:u.length)===2?u[1]:null};
hIL=function(u){u=_.lt(u);return!(u==null||!u.loggingUrls)&&u.loggingUrls.length>0};
E9h=function(u){if(!u)return[];var K=[],l,D;((D=(l=_.lt(u))==null?void 0:l.loggingUrls)!=null?D:[]).forEach(function(d){d.baseUrl&&K.push(d.baseUrl)});
return K};
D4H=function(u){if(_.S("stop_av_measurement_on_detach"))return function(){ed(u)}};
d4q=function(u){return function(){_.S("stop_av_measurement_on_detach")&&ed(u)}};
Cdn=function(u){if(_.S("stop_av_measurement_on_detach"))return function(){ed(u)}};
Iih=function(u){return u.shorts.isDesktopSmallWidth};
_.yf9=function(u){return u.shorts.isShortsActive};
_.sIq=function(u){return u.shorts.isWatchWhileMode};
_.R5=function(u){return u.shorts.isFullscreen};
_.UL=function(u){return u.shorts.isShortsPipActive};
WnZ=function(u){var K,l;if(u=(K=_.b(u.reelsAdCardButtoned,ot9))==null?void 0:(l=K.animatedRenderingConfig)==null?void 0:l.easeOutSeconds)return u+"s"};
MIL=function(u,K,l){return _.H(function(D){return D.return(new Promise(function(d){var C=new Image;C.onload=function(){d(new Hwh(u,K,l,C.naturalWidth,C.naturalHeight))};
C.src=l.toString()}))})};
qEL=function(u,K){return Math.round(u/1E-5)===Math.round(K/1E-5)};
$4w=function(u,K){return Math.round(u/1E-5)===Math.round(K/1E-5)};
nty=function(u,K){return u.year===K.year&&u.month===K.month&&u.day===K.day};
rfL=function(u,K){return u.year!==K.year?u.year<K.year:u.month!==K.month?u.month<K.month:u.day<K.day};
G0n=function(u){return u.day===vtR(u.year,u.month)?u.month===11?{year:u.year+1,month:0,day:1}:{year:u.year,month:u.month+1,day:1}:{year:u.year,month:u.month,day:u.day+1}};
tI9=function(){var u=new Date,K={year:u.getFullYear(),month:u.getMonth(),day:u.getDate()};return{start:K,end:{year:u.getFullYear()+2,month:u.getMonth(),day:u.getDate()},selectedDate:G0n(K)}};
x4n=function(u){return(new yR(2)).format(new Date(u.year,u.month,u.day))};
SEZ=function(u){return{year:u.getFullYear(),month:u.getMonth(),day:u.getDate()}};
bwR=function(u,K){u=(u+(Number(K.utcOffsetSec)+(new Date(u*1E3)).getTimezoneOffset()*60))*1E3;K=SEZ(new Date(u));return{date:K,secondsSinceMidnight:Math.floor((u-(new Date(K.year,K.month,K.day)).getTime())/1E3)}};
Owq=function(u,K){K=K.months.findIndex(function(l){return l.year===u.year&&l.month===u.month});
return K>=0?K:void 0};
cfR=function(u){if(!u)return!1;try{if(u.host&&u.host.tagName==="YT-FORMATTED-STRING"&&u.host.id==="contenteditable-textarea"||u.nodeType===Node.ELEMENT_NODE&&u.tagName==="YTD-COMMENTBOX")return!0}catch(K){return!1}return cfR(u.parentNode)};
fz=function(u){return u?!(u.tagName!=="A"||!u.href||!u.classList.contains("yt-simple-endpoint")):!1};
aiq=function(u){return u?u.tagName==="IMG"&&u.classList.contains("emoji"):!1};
zWH=function(u,K,l){if(!u)return null;var D=fz(u);if(D&&l)return K=u.pathname.substring(u.pathname.indexOf("/channel/")+9),document.createTextNode("@"+K);if(D&&!l)return document.createTextNode("");if(aiq(u))return l=u.alt,u=u.dataset.emojiId,!u&&K&&(K=_.Q$(K,l))&&K.isCustomEmoji&&(u=K.emojiId),u?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+u+">"):document.createTextNode(l);D=u.cloneNode(!1);for(var d=0;d<u.childNodes.length;++d){var C=zWH(u.childNodes[d],K,l);C&&D.appendChild(C)}return D};
Pk=function(u){return u?fz(u)?u:Pk(u.lastChild):null};
eWZ=function(u){return u?fz(u)?u:eWZ(u.firstChild):null};
RWq=function(u){if(!u)return null;for(var K=u.previousSibling;K;)if(K.nodeType===Node.ELEMENT_NODE&&K.nodeName==="BR")K=K.previousSibling;else if(K.nodeType===Node.TEXT_NODE&&/\s+/.test(K.textContent))K=K.previousSibling;else break;(K=Pk(K))?u=K:u=(u=u.parentNode)?Pk(u.previousElementSibling):null;return u};
U4L=function(u){if(!u)return null;for(var K=u.nextSibling;K;)if(K.nodeType===Node.ELEMENT_NODE&&K.nodeName==="BR")K=K.nextSibling;else if(K.nodeType===Node.TEXT_NODE&&/\s+/.test(K.textContent))K=K.nextSibling;else break;return(K=eWZ(K))?K:U4L(u.parentNode)};
fiL=function(u){var K=_.J3(),l=K.JSC$11223_getStartNode();if(!cfR(l.parentNode))return null;K=K.JSC$11223_getStartOffset();if(l.nodeType===Node.TEXT_NODE){var D=_.LS(l,fz);if(D){if(u&&K===0||!u&&K===l.length)return D}else{if(u&&K===l.length)return!l||l.nodeName==="BR"||l.nextElementSibling&&_.jd(l.nextElementSibling,"display")==="block"?null:eWZ(l.nextElementSibling);if(!u&&K===0)return l?Pk(l.previousElementSibling):null}}if(l.nodeType===Node.ELEMENT_NODE)if(u){if(0<=K&&K<l.childNodes.length)return eWZ(l.childNodes[K])}else if(0<
K&&K<=l.childNodes.length)return Pk(l.childNodes[K-1]);return null};
QIb=function(u,K,l){if(!u)return null;if(u.nodeType===Node.TEXT_NODE)if(l){var D=RWq(u);if(D&&!/^\s+\S/.test(u.wholeText.substr(0,K)))return D}else if((D=U4L(u))&&!/\S\s+/.test(u.wholeText.substr(K,u.wholeText.length)))return D;return u.nodeType===Node.ELEMENT_NODE?l?RWq(u.childNodes[K]):U4L(u.childNodes[K]):QIb(u.parentNode,K,l)};
Pdo=function(u){if(u.hasChildNodes())switch(u.tagName){case "DIV":case "A":case "SPAN":var K="";for(u=u.firstChild;u;u=u.nextSibling)K+=Pdo(u);return K;default:return""}else switch(u.nodeType){case 3:return u.textContent;default:return""}};
Bk=function(u,K){return u.year===K.year&&u.month===K.month&&u.day===K.day};
pz=function(u,K){return u.year!==K.year?u.year<K.year:u.month!==K.month?u.month<K.month:u.day<K.day};
Jfh=function(u){return{year:u.getFullYear(),month:u.getMonth(),day:u.getDate()}};
jIn=function(u){var K=h1L;K=K===void 0?h1L:K;K(new Date(u.year,u.month,u.day))};
iC=function(u){return Jfh(new Date(Number(u.seconds)*1E3))};
BGq=function(u){return u.year!==void 0&&u.month!==void 0&&u.day!==void 0};
pq9=function(u){return u.start!==void 0&&u.end!==void 0};
iwb=function(u){return pq9(u)?u.start:u};
TGq=function(u){return pq9(u)?u.end:void 0};
Fno=function(u,K){for(var l=[],D=new Date(u.start.year,u.start.month);D.getFullYear()<u.end.year||D.getFullYear()===u.end.year&&D.getMonth()<=u.end.month;){var d=l,C=d.push,W=D.getFullYear(),M=D.getMonth(),q=u,v=K,G=void 0,t=[],x=Object.freeze({extraCssClass:"invisible"}),O=new Date(W,M),a=Jfh(O);O=O.getDay();for(var f=Jfh(new Date);a.month===M;){O!==wqL&&G||(G=Array.from({length:7}).fill(x),t.push(G));var B={date:{year:W,month:M,day:a.day},extraCssClass:"",debugClass:""};B.extraCssClass=v(B.date,
a,f,q).trim();G[(O-wqL+7)%7]=B;a=a.day===vtR(a.year,a.month)?a.month===11?{year:a.year+1,month:0,day:1}:{year:a.year,month:a.month+1,day:1}:{year:a.year,month:a.month,day:a.day+1};O=(O+1)%7}C.call(d,{weeks:t,monthLabel:Tk.SHORTMONTHS[M]+" "+W,year:W,month:M,monthLabelExtraCssClass:t[0][2]===x?"shift-down-label":""});D.setMonth(D.getMonth()+1)}return l};
VIn=function(u,K){K=K.months.findIndex(function(l){return l.year===u.year&&l.month===u.month});
return K>=0?K:void 0};
NGZ=function(u,K){a:{var l=l===void 0?[2,3]:l;l=_.y(l);for(var D=l.next();!D.done;D=l.next()){var d=new Date;if((new gtn(D.value)).parse(K,d,{validate:!0})){d.setHours(0,0,0,0);K=d;break a}}K=null}if(!K)return{isValid:!1,value:void 0};K=Jfh(K);l=u.end;return pz(K,u.start)||pz(l,K)?{isValid:!1,value:void 0}:{isValid:!0,value:K}};
Xqy=function(u){var K=k0n;K=K===void 0?Zwh:K;var l=u.columnsToShow||[],D=YEn(u.columnDimensions,u.columnsToShow,u.leftFloatingColumns,K);return l.map(function(d,C){var W=u.columns[d];if(W===void 0)throw Error("Oh");var M=D?D[C]:"";var q=u.getCustomTooltip?u.getCustomTooltip(d,W.headerTooltipParagraphs):W.headerTooltipParagraphs;var v=Afb(u,d);return{type:d,index:C,style:M,classes:v,headerName:W.headerName||"",headerIcon:W.headerIcon,headerTooltipParagraphs:q||[],headerTooltipHelpContext:W.headerTooltipHelpContext,
sortOrders:W.sortOrders||[],selectionState:W.isSelectionCheckbox?u.selectionState:void 0}})};
Afb=function(u,K){var l=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],D=u.columns[K];if(D===void 0)return"";var d=l.includes("DEFAULTS")&&D.cssClass?[D.cssClass]:[];if(l.includes("SORTING")){D.sortOrders&&D.sortOrders.length&&d.push("sortable");if(u.sorting&&u.sorting.columnType===K)a:switch(u.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var C="column-sorted";break a;default:C=""}else C="";C&&d.push(C)}l.includes("FLOATING")&&(K=u.columnsToShow.indexOf(K),u.leftFloatingColumns&&K<u.leftFloatingColumns&&
d.push("floating-column"),u.leftFloatingColumns&&K===u.leftFloatingColumns-1&&d.push("last-floating-column"));l.includes("RIGHT_ALIGN")&&D.rightAlignHeader&&d.push("right-align");return d.filter(function(W){return W}).join(" ")};
YEn=function(u,K,l,D){l=l===void 0?0:l;D=D===void 0?Zwh:D;if(u){var d=[],C=0;m4o(u,K,D).forEach(function(W,M){var q="min-width:"+W.minWidth+"px;padding-left:"+W.paddingLeft+"px;padding-right:"+W.paddingRight+"px;flex:"+W.flexGrow+" 0 "+W.minWidth+"px;";W.maxWidth!==Infinity&&(q=[q,"max-width:"+W.maxWidth+"px;"].join(""));C>0&&M<l&&(q=[q,"left:"+C+"px;"].join(""));d.push(q);C+=W.minWidth+W.paddingLeft+W.paddingRight});
return d}};
m4o=function(u,K,l){l=l===void 0?Zwh:l;return K.map(function(D,d){D=u&&u[D]||{};var C=d===0?l.paddingLeftFirstColumn:l.padding;D.paddingLeft!==void 0&&(C=D.paddingLeft);d=d===K.length-1?l.paddingRightLastColumn:l.padding;D.paddingRight!==void 0&&(d=D.paddingRight);return{paddingLeft:C,paddingRight:d,minWidth:D.minWidth!==void 0?D.minWidth:l.minWidth,maxWidth:D.maxWidth!==void 0?D.maxWidth:l.maxWidth,flexGrow:D.flexGrow!==void 0?D.flexGrow:l.flexGrow}})};
hWh=function(u){var K=u.reduce(function(D,d){var C=d.columnId,W={};d.headerText&&(W.headerName=_.WI(d.headerText));d.rightAlignHeader&&(W.rightAlignHeader=d.rightAlignHeader);var M;if((M=d.headerIcon)==null?0:M.iconType)W.headerIcon=_.fr(d.headerIcon.iconType);D[C]=W;return D},{}),l=u.filter(function(D){return!D.hideColumn}).map(function(D){return D.columnId});
u=u.filter(function(D){return!!D.dimensions}).reduce(function(D,d){D[d.columnId]=d.dimensions;
return D},{});
return{columns:K,columnsToShow:l,columnDimensions:u}};
_.Etn=function(u){return u?u.simpleText?u.simpleText:u.runs?u.runs.map(function(K){return K.text}).join(""):"":""};
DUH=function(u){var K=u.data;var l=u.onTap;var D=u.isSelected;var d=u.onFocusIn;if(!K)return{};u=Lnw(K);D===void 0&&(D=K==null?void 0:K.isSelected);var C;return{text:uhq(K,u),startIcon:(C=K.icon)==null?void 0:C.iconType,state:D?0:2,type:0,onTap:KPZ(K,l),accessibilityLabel:lcq(K,u),onFocusIn:function(){return d==null?void 0:d()}}};
uhq=function(u,K){if(!K)return u.text?_.Etn(u.text):void 0};
KPZ=function(u,K){return function(l){K==null||K(l,u)}};
Lnw=function(u){u=u.style&&u.style.styleType;return!Hk&&u==="STYLE_EXPLORE_LAUNCHER_CHIP"};
lcq=function(u,K){if(K){var l,D,d;return(d=(l=u.accessibilityData)==null?void 0:(D=l.accessibilityData)==null?void 0:D.label)!=null?d:uhq(u,!1)}};
ws=function(u){return{signalAction:{signal:u}}};
IcH=function(){return _.E3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?dUq:_.Cb9};
yxq=function(u,K){u=u===void 0?"SOFT_RELOAD_PAGE":u;K=K===void 0?49504:K;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.GI(_.QQ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:K}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:u}}]}}}};
saH=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.GI(_.QQ("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:IcH()}};
oGZ=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.GI(_.QQ("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:IcH()}};
WPR=function(u,K){var l=_.GI(_.QQ("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),D=_.GI(_.QQ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),d={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.GI(_.QQ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};d.serviceEndpoint=u?u:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[ws("SOFT_RELOAD_PAGE")]}};return{title:l,bodyText:D,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:d},
style:{value:K!=null?K:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
MuR=function(u){u=u===void 0?{}:u;return{title:_.GI(u.localizedZeroStateTitleText===void 0?"":u.localizedZeroStateTitleText),bodyText:_.GI(u.localizedZeroStateMessage===void 0?"":u.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.GI(u.localizedZeroStateButtonText===void 0?"":u.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[Huh]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
$Uq=function(u){u=u===void 0?{}:u;return{title:_.GI(u.localizedOptInBannerTitleText===void 0?"":u.localizedOptInBannerTitleText),titleLength:19,subtitle:_.GI(u.localizedOptInMessage===void 0?"":u.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.GI(_.QQ("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:_.GI(_.QQ("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:[qqo]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
vGr=function(u,K){var l=K=K===void 0?{}:K;K=l.offlineTitleText===void 0?"":l.offlineTitleText;var D=l.offlineDescriptionText===void 0?"":l.offlineDescriptionText,d=l.formattedSupplementalText,C=l.actionButtonText===void 0?"":l.actionButtonText,W=l.titleText===void 0?"":l.titleText;l=l.descriptionText===void 0?"":l.descriptionText;var M={style:"STYLE_PRIMARY",size:"SIZE_DEFAULT",text:_.GI(C),isDisabled:!1,navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",
webPageType:"WEB_PAGE_TYPE_PROMO"}},urlEndpoint:{url:"https://www.youtube.com/premium"}},loggingDirectives:{clientVeSpec:{uiType:266213}}};u||(W=K,l=D,M={style:"STYLE_MONO_TONAL",size:"SIZE_DEFAULT",text:_.GI(C),isDisabled:!0,loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.GI(W),titleLength:W.length,overrideTitleMaxFontSize:30,subtitle:_.GI(l),supplementalText:d,primaryButton:{buttonRenderer:M},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},
tileImage:{thumbnails:[nGb]},darkTileImage:{thumbnails:[rxy]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.xUn=function(u,K,l,D,d,C,W,M,q,v,G){d=d===void 0?!1:d;C=C===void 0?!1:C;W=W===void 0?0:W;M=M===void 0?-Infinity:M;q=q===void 0?!1:q;v=v===void 0?!1:v;G=G===void 0?!1:G;var t=[],x=_.GI(_.QQ("SMART_DOWNLOADS",void 0,"Smart downloads")),O=_.GI(Gph(W,M,u.length));M=W=void 0;v?W={statementBannerRenderer:vGr(G,D)}:d?u.length>0?M=tuH(u,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.S("kevlar_manual_downloads_above"),x,O):q?M={alertBannerViewModel:{heading:{content:l.localizedOptInBannerTitleText===
void 0?"":l.localizedOptInBannerTitleText},body:{content:l.localizedPromptMessage===void 0?"":l.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.QQ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.QQ("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:_.Htr}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:C&&(M={backgroundPromoRenderer:{bodyText:_.GI(_.QQ("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"}}}):
C&&(M={alertBannerViewModel:{heading:{content:l.localizedOptInBannerTitleText===void 0?"":l.localizedOptInBannerTitleText},body:{content:l.localizedOptInMessage===void 0?"":l.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.QQ("TURN_ON",void 0,"Turn on"),accessibilityText:_.QQ("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}}}}}});l=_.GI(_.QQ("YOUR_DOWNLOADS",void 0,"Your downloads"));D=void 0;K.length>0?(D=void 0,_.S("kevlar_display_downloads_numbers")&&(D=_.GI(_.P0("VIDEO_COUNT",K.length))),D=tuH(K,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,l,D)):d||u.length||
v||(D={backgroundPromoRenderer:{bodyText:_.GI(_.QQ("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}}}});W?t.push({richSectionRenderer:{content:W}}):M&&!_.S("kevlar_manual_downloads_above")&&t.push({richSectionRenderer:{content:M,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
D&&t.push({richSectionRenderer:{content:D,loggingDirectives:{clientVeSpec:{uiType:51721}}}});M&&_.S("kevlar_manual_downloads_above")&&t.push({richSectionRenderer:{content:M,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(K.length>0||d&&u.length>0&&!v)&&t.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.GI(_.QQ("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:t}};
_.bun=function(u){return Sqq(u,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.Ouq=function(u){return Sqq(u,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
Sqq=function(u,K){var l=[];u=tuH(u,K,!0);l.push({richSectionRenderer:{content:u}});return{contents:l}};
tuH=function(u,K,l,D,d){l=l===void 0?!1:l;var C="RESPONSIVE_SIZE_STANDARD";_.S("kevlar_modern_downloads_compact")?C="RESPONSIVE_SIZE_COMPACT":_.S("kevlar_modern_downloads_extra_compact")&&(C="RESPONSIVE_SIZE_EXTRA_COMPACT");u={isExpanded:l,contents:FR(u),entitySelectorType:K,responsiveContainerConfiguration:{responsiveSize:C}};D&&(u.title=D);d&&(u.subtitle=d);l||(_.S("kevlar_smart_downloads_show_more_button")?(u.showMoreButton={buttonRenderer:{accessibility:{label:_.QQ("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.GI(_.QQ("SHOW_MORE",void 0,"Show more"))}},u.showLessButton={buttonRenderer:{accessibility:{label:_.QQ("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.GI(_.QQ("SHOW_LESS",void 0,"Show less"))}}):(u.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.QQ("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}}}},u.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.QQ("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}}}},u.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.QQ("VIEW_ALL",void 0,"View all"),accessibilityText:_.QQ("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:rZ("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:u}};
FR=function(u){var K=[];u=_.y(u);for(var l=u.next();!l.done;l=u.next())if(l=l.value,AWq(l)){var D=K,d=D.push;var C=void 0;if(l==null?0:(C=l.videoEntity)==null?0:C.videoId){C=Kc(_.Mu().getState(),l.videoEntity.videoId);var W=_.Mu().getState();var M=_.zI(l.videoEntity.videoId,"mainVideoEntity");W=!!_.VM(W.entities)[M];W={videoId:l.videoEntity.videoId,title:tu(l.videoEntity.title),shortBylineText:tu(l.channelEntity.title),thumbnail:l.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:W&&_.S("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:ceh(l.videoEntity.videoId,C,l.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.QQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};l.videoEntity.lengthSeconds&&(W.thumbnailOverlays=rTn(l.videoEntity.lengthSeconds,C));W.isWatched=C>0;_.S("kevlar_modern_downloads_page")&&(W.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:l.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.QQ("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},W.badges=void 0);l=W}else l={};d.call(D,{richItemRenderer:{content:{videoRenderer:l},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(YUn(l)){D=K;d=D.push;var q=M=C=void 0,v=void 0,G=void 0,t=void 0,x=void 0,O=void 0,a=void 0,f=void 0,B=void 0,p=void 0;W=l.mainPlaylistEntity.playlistId;var V=l==null?void 0:(p=l.mainPlaylistEntity)==null?void 0:(B=p.thumbnailStyleData)==null?void 0:(f=B[0])==null?void 0:(a=f.value)==null?void 0:(O=a.collageThumbnail)==
null?void 0:O.coverThumbnail;if(W&&V){O=ajq(W);!_.S("enable_offline_playlist_page")&&(l==null?0:(x=l.mainPlaylistEntity)==null?0:x.videos)&&(x=l==null?void 0:(t=l.mainPlaylistEntity)==null?void 0:(G=t.videos)==null?void 0:G[0],G=_.OV(x).entityId,G=JSON.parse(G).videoId,G!==void 0&&(t=Kc(_.Mu().getState(),G),O=_.vi(G,W,void 0,void 0,t)));G=[];if(l==null?0:(v=l.mainPlaylistEntity)==null?0:(q=v.videos)==null?0:q.length)G=[mGo(),Object.assign({},(M=X3b(l==null?void 0:l.mainPlaylistEntity.videos.length))!=
null?M:{})];l={playlistId:W,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:V}},navigationEndpoint:O,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:G,title:tu(l.mainPlaylistEntity.title),shortBylineText:tu(l==null?void 0:(C=l.channelEntity)==null?void 0:C.title),badges:[{metadataBadgeRenderer:{label:_.QQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.S("kevlar_modern_downloads_page")&&(l.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:cxq,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:W,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.QQ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},l.badges=void 0)}else l=void 0;d.call(D,{richItemRenderer:{content:{playlistRenderer:l},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return K};
Gph=function(u,K,l){u=u?acR(u):"";K!==void 0&&isFinite(K)?K===0?K=_.QQ("UPDATING",void 0,"Updating..."):(K=nxw(new Date(K),new Date),K=_.QQ("UPDATED_TIME",{relative_time:K},"Updated "+K)):K="";var D="";u&&K&&(D=" \u2022 ");if(l&&_.S("kevlar_display_downloads_numbers")){l=_.P0("VIDEO_COUNT",l);if(u||K)D=" \u2022 ";return l+D+u+D+K}return u+D+K};
z7r=function(u){return T0r(u.entities).length};
_.e7h=function(u,K){var l=fDZ(u.responsiveSize),D;u=!((D=u.responsiveMap)==null||!D.some(function(d){return d.containerSize==="CONTAINER_SIZE_NARROW"&&d.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:K,sizing:l,enableFullBleedForSingleCol:!1,isCompactList:l==="COMPACT"&&u}};
R7r=function(u,K){return _.eZ(u.entities,"votingEntity",K)};
UUh=function(u){if(u){var K;return((K=_.GB().resolve(_.vv(_.H1)))==null?0:K())?u.darkTheme:u.lightTheme}};
fc9=function(u,K){if(u.simpleText)return Object.assign({},u,{simpleText:s4(u.simpleText,K)});if(!u.runs)return u;for(var l=Object.assign({},u,{runs:[]}),D=0,d=_.y(u.runs),C=d.next();!C.done;C=d.next())if(C=C.value,C.text)if(D+C.text.length<=K)l.runs.push(C),D+=C.text.length;else return l.runs.push(Object.assign({},C,{text:s4(C.text,K-D)})),l;return u};
QaL=function(u,K){return _.eZ(u.entities,"chipBarStateEntity",K)};
Pbr=function(u,K){return _.eZ(u.entities,"chipEntity",K)};
jaH=function(u,K,l,D){return function(){var d=Jxh.has(u.displayType)&&u.selected,C=d&&u.deselectCommand?u.deselectCommand:u.tapCommand;!C||d&&D||_.IT(C,{form:{element:K==null?void 0:K.value}});l==null||l()}};
BkZ=function(u){switch(u){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
p5Z=function(u,K){return{triggeringElement:u,onDwellTriggeredFn:function(){var l={triggeringElement:u,loadVideoPreviewEventData:K},D=document.querySelector(".video-preview");D&&D.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:l}))},
onDwellEndFn:function(){var l=document.querySelector(".video-preview");l&&l.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
iuh=function(u,K){var l=_.GB().resolve(_.vv(vq9)),D=function(){var d=K();return l&&d?p5Z(u.value,d):null};
_.gp(function(){var d=D();l&&d&&Promise.resolve().then(function(){l.registerElement(d)});
_.No(function(){l&&d&&Promise.resolve().then(function(){_.y$(l,d)})})},"csPUge")};
w5b=function(u){var K=u.dataset.resizeObserverId;if(K)return K;K=""+TkZ++;return u.dataset.resizeObserverId=K};
FPo=function(u,K){var l=w5b(u);V$.has(l)||V$.set(l,new Set);V$.get(l).add(K);gs.has(l)&&K(Object.assign({},{target:u},gs.get(l)))};
Vuh=function(u){u=_.y(u);for(var K=u.next();!K.done;K=u.next()){K=K.value;var l=w5b(K.target),D=Object.assign({},{target:K.target},gs.get(l));if(D!=null&&D.contentRect?D.contentRect.width!==K.contentRect.width||D.contentRect.height!==K.contentRect.height:1)for(gs.set(l,{borderBoxSize:K.borderBoxSize,contentBoxSize:K.contentBoxSize,contentRect:K.contentRect,devicePixelContentBoxSize:K.devicePixelContentBoxSize}),l=_.y(V$.get(l)||[]),D=l.next();!D.done;D=l.next())D=D.value,D(K)}};
Nkb=function(){return NC?NC:NC=new gGq(Vuh)};
kpw=function(u,K){var l=w5b(u);V$.has(l)&&(V$.get(l).delete(K),V$.get(l).size===0&&(V$.delete(l),gs.delete(l),NC.unobserve(u),delete u.dataset.resizeObserverId));V$.size===0&&NC&&(NC.disconnect(),NC=void 0)};
Yqn=function(u,K){var l=_.GB().resolve(ni);return Zu9.map(function(D){return l.observe(u,K,D)})};
Axr=function(u){var K=_.GB().resolve(ni);u.forEach(function(l){K.unobserveByKey(l)})};
_.h7y=function(u,K){var l=Object.assign({},X5q,K);K=_.y(q5H());var D=K.next().value,d=K.next().value,C=function(W){var M=W.contentRect.height;if((W=W.contentRect.width)||M||l.canHaveZeroSize)D.width()===W&&D.height()===M||d(D,{height:M,width:W})};
_.ZY(function(){var W=u instanceof HTMLElement?u:u.value,M=mUZ(C,l.throttleMs),q=[];l.useVisibilityObserver&&(q=Yqn(W,function(v,G){requestAnimationFrame(function(){G==="visible"?(FPo(W,M),Nkb().observe(W)):kpw(W,M)})}));
q.length||(FPo(W,M),Nkb().observe(W));_.No(function(){q.length&&(Axr(q),q.length=0);kpw(W,M)})});
return D};
LPo=function(u){var K=u.data;var l=u.callback;var D=u.enableSingleChipSelection;var d=u.disableChipsScrollAnimation;var C=_.W4("div"),W=A8(!1),M=A8(0);u={};u=_.y(p1(K.autoselectedChipIndex!=null?(u[K.autoselectedChipIndex]=!0,u):{}));var q=u.next().value,v=u.next().value,G=function(){var Wo=C.value;return Wo==null||Wo.scrollLeft-1<=0},t=function(){var Wo=C.value;
return Wo==null?!1:Wo.scrollLeft+1>=(Wo==null?NaN:Wo.scrollWidth)-(Wo==null?NaN:Wo.clientWidth)};
u=_.y(p1(G()));var x=u.next().value,O=u.next().value;u=_.y(p1(t()));var a=u.next().value,f=u.next().value;u=K.isHorizontallyScrollable;var B=function(Wo){C.value!=null&&(_.E3("HTML_DIR")==="rtl"&&(Wo=-Wo),C.value.scrollBy({left:Wo,behavior:d?"instant":"smooth"}))},p=function(){B(-320)},V=function(){B(320)},m=_.p4(function(Wo){W.value=!0;
M.value=Wo.clientX}),Z=_.p4(function(Wo){if(W.value){Wo=Wo.clientX;
var $y=Wo-M.value;M.value=Wo;var co;(co=C.value)==null||co.scrollBy({left:-$y})}}),A=_.p4(function(){var Wo=G(),$y=t();
Wo!==x&&O(Wo);$y!==a&&f($y)});
$f("pointerup",function(){W.value&&(W.value=!1)});
var h={},C9={};return _.n("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},oZ(K.title,function(){return _.n("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.n("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},K.title),EGR(K.overflowButton))}),_.n("div",{class:"ytChipsShelfViewModelChipsShelfContent"},oZ(K.previousButton!=null,function(){var Wo={};
return _.n("div",{class:_.jX("ytChipsShelfViewModelLeftArrowContainer",(Wo.ytChipsShelfViewModelLeftArrowContainerIsHidden=x,Wo))},EGR(K.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:p}}))}),_.n("div",{el:C,
"on:pointerdown":m,"on:pointermove":Z,"on:scroll":A,class:_.jX("ytChipsShelfViewModelChipsScrollContainer",(h.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!u,h))},_.n("div",{class:_.jX("ytChipsShelfViewModelChipsContainer",(C9.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!u,C9.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!u&&!1,C9)),role:"tablist"},(K.contents||[]).map(function(Wo,$y){return _.n("div",{class:"ytChipsShelfViewModelChipWrapper"},
EGR(Wo,{chipViewModel:{callback:function(co,UZ){if(D){var tH={};v((tH[$y]=UZ,tH))}else tH={},v(Object.assign({},q,(tH[$y]=UZ,tH)));l==null||l(co,UZ,$y)},
disableDeselection:D,selected:!!q[$y]}}))}))),oZ(K.nextButton!=null,function(){var Wo={};
return _.n("div",{class:_.jX("ytChipsShelfViewModelRightArrowContainer",(Wo.ytChipsShelfViewModelRightArrowContainerIsHidden=a,Wo))},EGR(K.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:V}}))})))};
Khy=function(u,K,l,D,d){u=K?u.switchOffCommand:u.switchOnCommand;if(D&&d)uNh(u,l,d);else{var C,W;(C=_.dY({elementsCommand:u}))==null||(W=C.onclick)==null||W.call(C,l)}};
uNh=function(u,K,l){u=_.dY({elementsCommand:u,additionalCommandArgs:{commandController:{onSuccess:function(){l(!1)},
onServerError:function(){l(!1)}}}});
if(u==null?0:u.onclick)u.onclick(K),l(!0)};
DOw=function(u){if(u)return _.b(u,lW9)};
svy=function(u,K,l){if(K)return[dOn];switch(u){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[ke];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return l?[ke]:[CML,ke];case "TRANSFER_STATE_PAUSED_BY_USER":return[IWH,ke];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[yo9,ke];default:return[dOn]}};
oa9=function(u,K,l,D){return svy(u,K,D).map(function(d){var C=d.text,W=d.iconType,M=d.videoAction;d=d.playlistAction;C=C?{content:C}:void 0;W=W&&{sources:[{clientResource:{imageName:W}}]};var q=(0,_.k$.unsafeClone)(l);if(q){var v=_.b(q,_.JK),G=_.b(q,_.BJ);v&&M?v.action=M:G&&d&&(G.action=d)}return{title:C,leadingImage:W,rendererContext:q&&{commandContext:{onTap:{innertubeCommand:q}}}}})};
Who=function(u){u=_.Kz(u.rendererContext);var K;return(K=_.b(u,_.BJ))==null?void 0:K.playlistId};
HFo=function(u){var K;return(K=u.listItems)==null?void 0:K.some(function(l){var D;return _.lC((D=_.b(l,_.Ff))==null?void 0:D.rendererContext)})};
qOw=function(u){var K;return(K=u.listItems)==null?void 0:K.some(function(l){l=_.b(l,_.Ff);return!!_.b(l==null?void 0:l.leadingAccessory,MTL)})};
roq=function(u){var K=u.element;var l=u.veType;var D=u.storedVisualElement===void 0?null:u.storedVisualElement;var d=u.elementIndex===void 0?0:u.elementIndex;u=u.clientYouTubeData;var C=_.AC();C!==$Oo&&(nan.clear(),$Oo=C);if(K.visualElement&&nan.has(K.visualElement))return null;if(D&&nan.has(D))return K.visualElement=D,null;l=_.pr(_.iT(),{veType:l,elementIndex:d,clientYouTubeData:u});if(!l)return null;K.visualElement=l;nan.add(l);return l};
_.ZS=function(u,K,l,D){l=l===void 0?null:l;D=D===void 0?UVR:D;var d=d===void 0?null:d;Al(function(){if(K){l instanceof Function&&(l=l());var C=roq({element:K,veType:u,storedVisualElement:l,clientYouTubeData:void 0});C&&(Pzb(K,d),D(C))}})};
Ye=function(u,K){if(u){switch(K){case 0:u=u.primaryTitleColor;break;case 1:u=u.secondaryTitleColor;break;case 2:u=u.surgeColor;break;case 3:u=u.section2Color;break;case 4:u=u.section3Color;break;default:return}if(u)return _.ui(u)}};
vay=function(u){return u?_.Kg(u):""};
GUH=function(u){return(u==null?void 0:u.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
tTZ=function(u,K){var l;return"linear-gradient(to bottom, "+((l=K==null?void 0:K.map(function(D){var d=u?D.darkThemeColor:D.lightThemeColor;return d?_.Kg(d)+" "+((D==null?void 0:D.startLocation)||0)*100+"%":"transparent"}))==null?void 0:l.join(", "))+")"};
xOH=function(u,K,l,D,d){if(!((D==null?0:D.height)&&(D==null?0:D.width)))return{size:0};var C=D.width;D=D.height;if(d)return K==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||K==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&C>D?{size:312/Vih}:K==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(l!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||u!==1&&u!==2||K!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&K!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&K!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(K==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||K==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||D===C)switch(u){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(K==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||D>C)switch(u){case 1:case 3:return{size:240*F7w};default:return{size:360*F7w}}switch(u){case 1:case 2:return{size:1/Vih*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.SOy=function(u){if(!("matchMedia"in window))return _.D_(Error("Ph")),function(){return!1};
var K=window.matchMedia(u);u=_.y(_.On(K.matches,void 0,"jLJc8e"));var l=u.next().value,D=u.next().value,d=function(C){D(C.matches)};
K.addEventListener?(K.addEventListener("change",d),_.No(function(){K.removeEventListener("change",d)})):K.addListener&&(K.addListener(d),_.No(function(){K.removeListener(d)}));
return l};
bFn=function(u){return u==="IMAGE_BANNER_STYLE_INSET"||u==="IMAGE_BANNER_STYLE_UNKNOWN"};
OFR=function(){if(!("matchMedia"in window))return _.D_(Error("Ph")),function(){return 0};
var u=YD(function(){return window.matchMedia("(max-width: 527.9px)")}),K=YD(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),l=YD(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),D=YD(function(){return window.matchMedia("(min-width: 1024px)")}),d=_.y(_.On(u.matches,void 0,"og9kEc")),C=d.next().value,W=d.next().value;
d=_.y(_.On(K.matches,void 0,"ybDWCb"));var M=d.next().value,q=d.next().value;d=_.y(_.On(l.matches,void 0,"o0Gfh"));var v=d.next().value,G=d.next().value;d=_.y(_.On(D.matches,void 0,"yqUUgd"));var t=d.next().value,x=d.next().value,O=YD(function(){return function(p){W(p.matches)}}),a=YD(function(){return function(p){q(p.matches)}}),f=YD(function(){return function(p){G(p.matches)}}),B=YD(function(){return function(p){x(p.matches)}});
_.ZY(function(){u.addEventListener?(u.addEventListener("change",O),K.addEventListener("change",a),l.addEventListener("change",f),D.addEventListener("change",B)):u.addListener&&(u.addListener(O),K.addListener(a),l.addListener(f),D.addListener(B));_.No(function(){u.removeEventListener?(u.removeEventListener("change",O),K.removeEventListener("change",a),l.removeEventListener("change",f),D.removeEventListener("change",B)):u.removeListener&&(u.removeListener(O),K.removeListener(a),l.removeListener(f),
D.removeListener(B))})});
return function(){return C()?1:M()?2:v()?3:t()?4:0}};
coo=function(u){var K=0;u=_.y([u.title,u.metadata,u.actions,u.description,u.attribution]);for(var l=u.next();!l.done;l=u.next())l.value&&K++;return K};
aWq=function(u){return u===1||u===2?1:0};
ehw=function(u){var K,l=((K=_.GB().resolve(_.vv(_.H1)))==null?0:K())&&u.data.darkThemeImage?u.data.darkThemeImage:u.data.image;K=_.n("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.n("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},l?_.n(_.n4,{data:l,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),zhH(u.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));l=_.n(_.qC,{text:u.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var D=u.data;if(D.bodyText){var d=[];D=_.y(D.bodyText);for(var C=D.next();!C.done;C=D.next())d.push(_.n(_.qC,{text:C.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else d=_.n(_.G1,null);return _.n("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},K,l,d,zhH(u.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.n(_.qC,{text:u.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.n(_.qC,{text:u.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
UOH=function(u){u=(new Rhq).parse(u);return(new eR).render(u).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(K){var l=K.split(":").map(Number),D=0,d=0;if(l.length===3)l=_.y(l),D=l.next().value,d=l.next().value,l=l.next().value;else if(l.length===2)l=_.y(l),d=l.next().value,l=l.next().value;else if(l.length===1)l=_.y(l).next().value;else throw Error("Qh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(D*3600+d*60+l)+'" role="button">'+K+"</span>"})};
fWq=function(u){u=_.y(u.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var K=u.next(),l={};!K.done;l={clickHandler$jscomp$4:void 0},K=u.next()){K=K.value;l.clickHandler$jscomp$4=function(d){d=Number(d.target.getAttribute("data-time"));if(isNaN(d))throw Error("Rh");var C;(C=_.f1())==null||C.seekTo(d,!0)};
var D=function(d){return function(C){C.key!=="Enter"&&C.key!=="Space"||(0,d.clickHandler$jscomp$4)(C)}}(l);
K.setAttribute("tabindex","0");K.removeEventListener("click",l.clickHandler$jscomp$4);K.removeEventListener("keydown",D);K.addEventListener("click",l.clickHandler$jscomp$4);K.addEventListener("keydown",D)}};
QvH=function(){return _.n("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.n(A3,{percentWidth:100}),_.n(A3,{animationDelay:200}),_.n(A3,{animationDelay:400}),_.n(A3,{animationDelay:600}),_.n(A3,{animationDelay:800,percentWidth:60}),_.n("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.n(A3,{percentWidth:100}),_.n(A3,{animationDelay:200}),_.n(A3,{animationDelay:400}),_.n(A3,{animationDelay:600,percentWidth:50}))};
A3=function(u){return _.n("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(u.percentWidth===void 0?100:u.percentWidth)+"%"},_.n("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(u.animationDelay===void 0?0:u.animationDelay)+"ms"}))};
PMn=function(){var u=_.y(_.On(function(){return""},void 0,"v2wS5e")),K=u.next().value;
return[function(){return K()()},
u.next().value]};
JoH=function(u,K){u=u?acR(u):"";K!==void 0&&isFinite(K)?K===0?K=_.QQ("UPDATING",void 0,"Updating..."):(K=nxw(new Date(K),new Date),K=_.QQ("UPDATED_TIME",{relative_time:K},"Updated "+K)):K="";var l="";u&&K&&(l=" \u2022 ");return _.GI(u+l+K)};
p7y=function(u,K,l,D,d,C){K=K===void 0?0:K;var W=jvq[K],M=W.title,q=W.iconType,v=W.topButtonRenderer,G=W.sectionClientVE;W=W.videoClientVE;var t;if(K!==1||u.length){l=[];u=_.y(u);for(D=u.next();!D.done;D=u.next()){var x=D.value;if(AWq(x))l.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:x.videoEntity.videoId,title:tu(x.videoEntity.title),shortBylineText:tu(x.channelEntity.title),thumbnail:x.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:x.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.QQ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:W}}}}}});else if(YUn(x)){D=l;var O=D.push;var a=void 0,f=void 0,B=void 0,p=void 0,V=void 0,m=void 0,Z=void 0,A=void 0,h=x.mainPlaylistEntity.playlistId,C9=x==null?void 0:(A=x.mainPlaylistEntity)==null?void 0:(Z=A.thumbnailStyleData)==null?void 0:(m=Z[0])==null?void 0:(V=m.value)==null?void 0:(p=V.collageThumbnail)==null?void 0:p.coverThumbnail;p=ajq(h);if(!_.S("enable_offline_playlist_page")&&
(x==null?0:(B=x.mainPlaylistEntity)==null?0:B.videos)){b:{B=x==null?void 0:(f=x.mainPlaylistEntity)==null?void 0:f.videos;f=_.Mu().getState().entities;if(B!=null&&B.length&&f)for(B=_.y(B),V=B.next();!V.done;V=B.next())if(V=_.OV(V.value).entityId,(V=JSON.parse(V).videoId)&&pdZ(f,V)==="TRANSFER_STATE_COMPLETE"){f=V;break b}f=""}f!==void 0&&(p=Kc(_.Mu().getState(),f),p=_.vi(f,h,void 0,void 0,p))}f=emb(_.QQ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),ajq(h));x=h&&C9&&f?{playlistId:h,navigationEndpoint:p,
viewPlaylistText:f,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:C9}},title:tu(x.mainPlaylistEntity.title),shortBylineText:tu(x==null?void 0:(a=x.channelEntity)==null?void 0:a.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:B9h,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:h,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.QQ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:W}}}:
void 0;O.call(D,{gridPlaylistRenderer:x})}}W={gridRenderer:{items:l}};K===1&&(t=JoH(d,C))}else if(D){var Wo=_.GI((O=l==null?void 0:l.localizedPromptMessage)!=null?O:"");W={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.GI(_.QQ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.Htr}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.GI(_.QQ("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};t=JoH(d,C)}else Wo=_.GI(_.QQ("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
W={};return{contents:[{shelfRenderer:{title:M,titleAnnotation:t,icon:{iconType:q},subtitle:Wo,content:W,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:v}]}}}}],loggingDirectives:{clientVeSpec:{uiType:G}}}};
iFr=function(u,K,l,D,d,C,W,M,q,v,G){l=l===void 0?{}:l;D=D===void 0?{}:D;d=d===void 0?!1:d;C=C===void 0?!1:C;W=W===void 0?!1:W;M=M===void 0?!1:M;q=q===void 0?!1:q;v=v===void 0?0:v;G=G===void 0?-Infinity:G;if(!(K.length||u.length||d||M))return C?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:MuR(l)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.GI(_.QQ("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},
loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];var t=[];u.length&&t.push(p7y(u,0));M?t.push({contents:[{statementBannerRenderer:vGr(q,D)}]}):d?t.push(p7y(K,1,l,W,v,G)):C&&t.push({contents:[{statementBannerRenderer:$Uq(l)}]});(d&&K.length||u.length)&&t.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.GI(_.QQ("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});
return t.map(function(x){return{itemSectionRenderer:x}})};
mU=function(u,K){if(typeof u!=="object")return null;u=_.y(Object.entries(u));for(var l=u.next();!l.done;l=u.next()){var D=_.y(l.value);l=D.next().value;D=D.next().value;if(l===K)return l;if(D=mU(D,K))return l+"."+D}return null};
h3=function(u){var K=u.content;return(u=u.styleRuns)&&K?{runs:u.map(function(l){var D={text:K.slice(l.startIndex,l.startIndex+l.length)};l.fontColor&&(D.textColor=l.fontColor);return D})}:{simpleText:K}};
Fhw=function(u,K,l,D){var d=T9Z;D&&(u.quantity=D);if(!u.quantity||!u.maxQuantity)return{};D=u.minusButton;var C=u.plusButton,W,M,q,v;return{value:u.quantity,maxValue:u.maxQuantity,onChangeCallback:function(G){d(u,G)},
minusLabel:(W=_.b(D,w7q))==null?void 0:W.label,minimumReachedLabel:(M=_.b(D,w7q))==null?void 0:M.limitReachedLabel,plusLabel:(q=_.b(C,w7q))==null?void 0:q.label,maximumReachedLabel:(v=_.b(C,w7q))==null?void 0:v.limitReachedLabel,disabled:K,onRemoveCommand:l}};
T9Z=function(u,K){var l=u.quantityIncrementerEntityKey;if(l){var D={};D.quantity=K;_.ME(_.EL("quantityIncrementerEntity",l,D));u.onChangeCommand&&_.IT(u.onChangeCommand)}};
N9R=function(u,K){(u=VTR(u))&&(K?gay.push({command:u,sourceData:{},commandContext:void 0}):_.GB().resolve(_.t9).resolveCommand(u))};
VTR=function(u){return _.b(u,_.K4)};
kUH=function(){var u=window.performance.timeOrigin+window.performance.now(),K=(new _.Lz).setSeconds(u/1E9);return _.M9(K,2,_.bG(u%1E9),0)};
uw=function(u,K){var l=_.b(_.b(u,_.K4),ZF9);l&&(K&&(l.serializedAdditionalMetadata=_.Yp(K)),N9R(u,!0))};
YOL=function(u){switch(u){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"}};
Ao9=function(){return!!_.E3("ID_TOKEN")};
hhh=function(u){return u instanceof Error&&u.cause instanceof X7b&&u.cause.rpcErrorCode!==void 0?!mO9.includes(u.cause.rpcErrorCode):!0};
Lh9=function(){return _.Hv(Ea9,{authuser:""+(_.E3("SESSION_INDEX")||0)})};
K5=function(u,K,l,D){l=l===void 0?"MINI_APP_SDK_API_UNSPECIFIED":l;D=D===void 0?"":D;var d=new _.wv;l={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:D,sdkApi:l};u instanceof Error&&(d.message=u.message,d.name=u.name,u.cause instanceof X7b&&u.cause.rpcErrorCode!==void 0&&(l.rpcErrorCode=u.cause.rpcErrorCode));var C;(C=K.onError)==null||C.call(K,{loggingError:d,metadata:l})};
KXo=function(u,K,l,D){switch(u){case "MINI_APP_SOURCE_GAMESNACKS":return new lw(K,l,D);default:return new ugq(K,l,D)}};
l2n=function(u){switch(u){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"}};
DJZ=function(u){switch(u){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"}};
dJr=function(u){switch(u){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"}};
Cpq=function(){return Math.floor(Math.random()*4)+1};
I2o=function(u,K,l,D){u=_.y(Object.entries(u));for(var d=u.next(),C={};!d.done;C={message$jscomp$989:void 0},d=u.next()){var W=_.y(d.value);d=W.next().value;W=W.next().value;C.message$jscomp$989=W;K.push(setTimeout(function(M){return function(){D(!1);l(M.message$jscomp$989.text)}}(C),C.message$jscomp$989.delayMs));
Number(d)>0&&K.push(setTimeout(function(){D(!0)},C.message$jscomp$989.delayMs-400))}};
yrq=function(u,K){var l=l===void 0?UVR:l;_.S("mweb_fix_monitor_visibility_after_render")?u&&Al(function(){Pzb(u,K,l)}):Al(function(){Pzb(u,K,l)})};
WXq=function(u){var K=u.data;var l=u.uniqueId;u=u.overrides;var D,d=((D=K.timedAnimationData)==null?void 0:D.animationTiming)||[];return _.n("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.n(sFq,{settings:{uniqueId:l,timings:d,experimentEnabled:d.length>0,enabled:d.length>0}},ocr(K.buttonRenderer,{buttonRenderer:{buttonOverrides:u}})))};
$JH=function(u){HQZ||(HQZ=M5w(new _.DU(1,void 0,void 0,qth),0));var K=HQZ.format(Math.floor(u));K=_.lv==="be"||_.lv==="bg"||_.lv==="es"||_.lv==="et"||_.lv==="hu"||_.lv==="ka"||_.lv==="lv"||_.lv==="pl"||_.lv==="pt-PT"||_.lv==="sq"?K.replace(new RegExp("^(\\d)"+qth.GROUP_SEP.replace(".","\\.")+"(\\d+("+qth.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):K;return u>=1E3&&u<=9999&&K[1]==="."&&(_.lv==="sl"||_.lv==="it")?K.replace(".",""):K};
ncn=function(u,K){mQ("ytd-button-renderer",{data:u,className:K?K.className:"",overrides:K==null?void 0:K.buttonOverrides},yI)};
GcR=function(u,K,l,D){if(u)return D=D||u.likeStatus,K?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:D==="LIKE",isDisabled:!u.likesAllowed,defaultIcon:{iconType:l},defaultText:D==="LIKE"?u.likeCountWithUnlikeText:u.likeCountText,toggledText:D==="LIKE"?u.likeCountText:u.likeCountWithLikeText,defaultNavigationEndpoint:rro(u,"LIKE"),defaultServiceEndpoint:vcb(u,"LIKE"),toggledServiceEndpoint:vcb(u,"INDIFFERENT"),defaultTooltip:_.WI(u.likeCountTooltipText),toggledTooltip:_.WI(u.likeCountTooltipText),
targetId:u.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:D==="DISLIKE",isDisabled:!u.likesAllowed,defaultIcon:{iconType:l},defaultText:D==="DISLIKE"?u.dislikeCountWithUndislikeText:u.dislikeCountText,toggledText:D==="DISLIKE"?u.dislikeCountText:u.dislikeCountWithDislikeText,defaultNavigationEndpoint:rro(u,"DISLIKE"),defaultServiceEndpoint:vcb(u,"DISLIKE"),toggledServiceEndpoint:vcb(u,"INDIFFERENT"),defaultTooltip:_.WI(u.dislikeCountTooltipText),
toggledTooltip:_.WI(u.dislikeCountTooltipText)}};
rro=function(u,K){if(K==="LIKE")return u.likeCommand;if(K==="DISLIKE")return u.dislikeNavigationEndpoint};
vcb=function(u,K){var l;return(l=u.serviceEndpoints)==null?void 0:l.find(function(D){var d;return((d=_.b(D,_.DL))==null?void 0:d.status)===K})};
_.Stq=function(u,K,l){return window.spf&&!_.S("web_disable_spfjs_client")?t5w(u,K,l):xJh(u,K)};
t5w=function(u,K,l){var D=null,d=(new _.RL(function(C,W){var M={};if(K){M.method=K.method;var q=K.postParams||{};edb(u,K)&&(q[_.E3("XSRF_FIELD_NAME")]=_.E3("XSRF_TOKEN"));M.postData=_.fT(q);K.type&&(M.type=K.type);q=K.headers}M.headers=Sxw(u,q);_.S("debug_forward_web_query_parameters")&&(u=_.ayo(u,window.location.search));M.experimental_headers=M.headers;M.onError=function(v){v.err&&v.xhr&&(v.err.params={url:v.xhr.responseURL,response:v.xhr.responseText.substr(0,64)});W(v.err)};
M.onPartDone=function(v){l&&l.call(null,v.part)};
M.onDone=function(v){var G=bQw(v.response,"xsrf_token");$n(window.location.href,u)&&G&&_.h8("XSRF_TOKEN",G);if(G=bQw(v.response,"service_worker_killswitch"))_.h8("SERVICE_WORKER_KILLSWITCH",G),Itw();C(v.response)};
D=spf.request(u,M)})).then(OQR);
d.thenCatch(function(C){var W=C instanceof _.dr,M=C&&C.hasOwnProperty("params")&&C.params.response?C.params.response:"";C instanceof Error&&(M?W?MUw(C):M===')]}\'\n{"reload":"now"}'?MUw(C):(crq(C,u,M),a2y(C,M)?_.hV(C):_.Xm(C)):MUw(C));D&&D.abort()});
return d};
OQR=function(u){if(u.type==="multipart"){var K=u.timing;u=u.parts.reduce(function(l,D){Object.assign(l,D);return l},{});
u.timing=u.timing||{};Object.assign(u.timing,K);u.type="reduced"}return u};
xJh=function(u,K){K=K===void 0?{}:K;var l=null,D=new _.RL(function(d,C){K.onFinish=function(W){if(W.readyState===XMLHttpRequest.DONE)if(W.status===200){if(W.responseType!=="json"){var M=W.response;M.substring(0,5)===")]}'\n"&&(M=M.substring(5));try{var q=JSON.parse(M)}catch(v){q=v}}else q=W.response;q instanceof Error?C(q):(M=bQw(q,"xsrf_token"),$n(window.location.href,u)&&M&&_.h8("XSRF_TOKEN",M),W=W.responseURL,window.performance&&window.performance.getEntriesByName?(M=window.performance.getEntriesByName(W).pop())?
W={responseStart:(0,_.vA)()-(M.responseEnd-M.responseStart)}:(Math.random()<.01&&(M=Error("ci"),M.params=W,_.hV(M)),W={responseStart:-1}):W={responseStart:0},q.timing=q.timing||{},Object.assign(q.timing,W),d(q))}else C(Error("bi`"+W.status))};
(l=_.UP(u,K))||C(Error("bi`"+l.status))});
D.thenCatch(function(d){d instanceof Error&&(crq(d,u),a2y(d)&&(d.level="WARNING"))});
_.S("cancel_pending_navs")&&D.thenCatch(function(){l.abort()});
return D};
bQw=function(u,K){var l=u[K],D=u.parts;u.type==="multipart"&&D&&(l=(u=D.find(function(d){return K in d}))&&u[K]);
return l};
crq=function(u,K,l){var D=u.message||"";K={original:D,url:K};if(l)if(D=D.match(/position:?\s*(\d+)/)){D=D&&Number(D[1])?Number(D[1]):0;var d=Math.max(D-25,0);K.position=D;K.response=l.substring(d,D+25)}else K.response=l.substring(0,50);_.E5(u,K);try{u.message="JSON parse error"}catch(C){}};
a2y=function(u,K){u=u.message||"";u=!!(u.indexOf("<")>=0||u.indexOf("end of ")>=0||u.indexOf("Unterminated string")>=0||u.indexOf("Unexpected EOF"));if(!u&&K)for(var l=K.length,D=!1,d=0;d<l;d++)if(D&&K[d]==="\\")d++;else if(K[d]==='"')D=!D;else if(K[d]==="<"&&!D){u=!0;break}return u};
zrq=function(){return document.documentElement.hasAttribute("dark")};
_.erH=function(u,K){if(u!=="GFEEDBACK"&&u!=="GUIDED_HELP")_.uZ(Error("di`"+u));else{var l=_.GB().resolve(_.vv(_.GT));if(l&&(l=l.getCurrentPage())&&l.getServiceTrackingParams&&(l=l.getServiceTrackingParams()))for(var D=0,d;d=l[D++];)if(d.service===u){if(u=d.params)for(l=0;D=u[l++];)K[D.key]=D.value;break}}};
_.RrH=function(u){var K=_.xY();K&&(K=K.getPlayer())&&(K.pauseVideo(),u.playback_id=K.getVideoData().cpn,u.eid=K.getVideoData().eventId,Object.assign(u,K.getFeedbackProductData()))};
UJw=function(){var u={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.E3("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(u.enableAnonymousFeedback=!0);_.E3("SESSION_INDEX")&&(u.authuser=String(_.E3("SESSION_INDEX")));_.S("enable_pageid_for_feedback")&&_.E3("DELEGATED_SESSION_ID")&&(u.pageId=String(_.E3("DELEGATED_SESSION_ID")));return u};
_.C5=function(u){_.S("enable_ypc_spinners")&&_.Sy(u,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},u])};
_.IX=function(u){_.S("enable_ypc_spinners")&&_.Sy(u,"yt-close-popup-action",["yt-loading-renderer"])};
f2n=function(u){return new Promise(function(K,l){_.D$({verifyCommand:{recaptchaToken:u.recaptchaResponse}},{commandController:{onSuccess:function(D,d){d||l("ChallengeService did not return a response.");var C;K({challengeCompleted:(C=d.verified)!=null?C:!1})},
onServerError:function(D,d){l(d)}}})})};
QFZ=function(u,K,l,D){K({recaptchaResponse:D}).then(function(d){d.challengeCompleted?_.pT()?(l(3),_.GB().resolve(_.t9).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:u}})):l(2):l(4)},function(){l(4)})};
JrZ=function(u,K,l){_.KN(_.Oy(PpH,_.E3("HL")),function(){var D;(D=window.grecaptcha)==null||D.ready(function(){var d=window.grecaptcha;d?(l(d.render(u,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:QFZ.bind(null,u,f2n,K)})),K(1)):K(4)})})};
jFq=function(u,K){return function(){switch(K()){case 0:return u().captchaLoadingMessage;case 1:return u().challengeReason;case 3:return u().captchaSuccessfulMessage;case 2:return u().captchaCookieSetFailureMessage;case 4:return u().captchaFailedMessage;default:return u().challengeReason}}()};
_.yU=function(){if(!BSH){var u=document.querySelector("#player.skeleton");u&&(_.Jq(u),BSH=!0)}};
_.iQy=function(){return pML=IPy()};
FXy=function(){return _.H(function(u){return TSZ!==void 0?u.return():u.yield(wMb(),0)})};
wMb=function(){return _.H(function(u){if(u.nextAddress==1)return u.yield(siq(),2);pML=u.yieldResult;TSZ=_.YL.addLowPriorityJob(wMb,5E3);_.TG(u)})};
Ytq=function(u){var K=K===void 0?V5q:K;var l,D,d=(l=u.responseContext)==null?void 0:(D=l.mainAppWebResponseContext)==null?void 0:D.trackingParam;if(!d){K.increment("MISSING");var C,W,M,q,v,G;_.hV(new _.wv("282054944_a",{mWz:!!((C=u.responseContext)==null?0:(W=C.mainAppWebResponseContext)==null?0:W.loggedOut),zJJ:((M=u.responseContext)==null?void 0:M.mainAppWebResponseContext)===void 0,bgV:u.responseContext===void 0,cp:(q=u.playabilityStatus)==null?void 0:q.contextParams,iT9:(((v=u.streamingData)==
null?void 0:v.formats)||[]).length>0,kpV:(((G=u.streamingData)==null?void 0:G.adaptiveFormats)||[]).length>0,os:!!u.offlineState,cotn:u.cotn}));return 2}l="";try{l=gc9(d)}catch(O){return K.increment("C_ERROR"),_.Xm(O),2}try{var t=_.NSq(l);var x=kcq(t)}catch(O){return K.increment("P_ERROR"),_.Xm(O),2}x=_.rB(x,ZQ9,1,_.vO());d=[];x=_.y(x);for(t=x.next();!t.done;t=x.next())D=t.value,t=D.getPath(),l=(0,_.k$.getValueByKeys)(u,t.split(".")),l=String(l===void 0||l===null?"":l),D=D.getValue()||"",C=/[+\-\/_]/g,
l.replace(C,"")!==D.replace(C,"")&&(K.increment("MISMATCH"),_.S("ab_mis_log_err")&&(l=new _.wv("282054944_p",{q0J:t,g:String(l),e:String(D)}),_.Xm(l)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(t)||(t.match(/enforcementMessageViewModel/i)?d.push(3):d.push(2)));if(d.length>0)return Math.max.apply(Math,_.Am(d));K.increment("SUCCESS");return 1};
mJh=function(u){var K=new sA;if(u.interpreterJavascript){var l=_.dnb(u.interpreterJavascript);l=kgh(l).toString();var D=new Arh;_.Tj(D,6,l);_.jF(K,1,D,NS)}else u.interpreterUrl&&(l=_.AP(u.interpreterUrl),l=_.VS(l).toString(),D=new _.XMH,_.Tj(D,4,l),_.jF(K,2,D,NS));u.interpreterHash&&_.oX(K,3,u.interpreterHash,NS);u.program&&_.oX(K,4,u.program,NS);u.globalName&&_.oX(K,5,u.globalName,NS);u.clientExperimentsStateBlob&&_.oX(K,7,u.clientExperimentsStateBlob,NS);return K};
WU=function(u){var K={};u=_.y(u.split("&"));for(var l=u.next();!l.done;l=u.next())l=l.value.split("="),l.length===2&&(K[l[0]]=l[1]);return K};
hry=function(u){return Number(u.t)||7200};
q3o=function(){if(_.S("bg_st_hr"))return"havuokmhhs-0";var u,K=((u=performance)==null?void 0:u.timeOrigin)||0;return"havuokmhhs-"+Math.floor(K)};
Ecq=function(){return new Promise(function(u){var K=window.top;K.ntpevasrs!==void 0?u(new HU(K.ntpevasrs)):(K.ntpqfbel===void 0&&(K.ntpqfbel=[]),K.ntpqfbel.push(function(l){u(new HU(l))}))})};
LXq=function(u){var K=u.vOC.bind(u);_.$L("yt.aba.att",K);u=u.eFA.bind(u);_.$L("yt.aba.att2",u)};
KlH=function(u){switch(_.RK(u.input)){case _.qu(uDL):var K={};return K.encryptedVideoId=u.innerTubeRequest.externalVideoId,K}return{}};
dvw=function(u){switch(_.RK(u.input)){case _.qu(uDL):if(_.S("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.qu(leb):if(_.S("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.qu(MZ):if(_.S("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&u.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.qu(DvH):var K,l;if(_.S("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((l=_.b((K=u.config)==null?void 0:K.command,bjq))==null?0:l.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.IeZ=function(u){var K;if(u.playlistVideoRenderer&&((K=u.playlistVideoRenderer)==null?0:K.engagementBar))return Cmw(u.playlistVideoRenderer.engagementBar);if(_.b(u,qZ)){var l;if(u=(l=_.b(u,qZ))==null?void 0:l.engagementBar)return Cmw(u)}return""};
Cmw=function(u){if(!u)return"";u=_.b(u,_.yhH);if(u==null||!u.actions)return"";u=_.y(u.actions);for(u=u.next();!u.done;u=u.next()){u=_.b(u.value,_.skZ);var K=void 0;if((K=u)==null||!K.itemId)break;return u.itemId}return""};
_.oIL=function(u){var K;if(u.playlistVideoRenderer&&((K=u.playlistVideoRenderer)==null?0:K.videoId))return u.playlistVideoRenderer.videoId;if(_.b(u,qZ)){var l,D;if(u=(l=_.b(u,qZ))==null?void 0:(D=l.playlistItemData)==null?void 0:D.videoId)return u}return""};
_.Wl9=function(u){var K;if(u.playlistVideoRenderer&&((K=u.playlistVideoRenderer)==null?0:K.voteCount))return u.playlistVideoRenderer.voteCount;if(_.b(u,qZ)){var l,D;if(u=(l=_.b(u,qZ))==null?void 0:(D=l.playlistItemData)==null?void 0:D.voteCount)return u}return 0};
_.$5=function(u,K){return _.eZ(u.entities,"flowStateEntity",K)};
MNw=function(u,K,l,D){var d=void 0;u=_.y(u[K.iconName]||[]);for(var C=u.next();!C.done;C=u.next()){C=C.value;var W=K.iconSize;var M=K.iconStyle;W=!W||W===C[2];var q=HCy[C[0]];D&&D!==C[1]||!W||M&&M!==q?M=!1:d?(M=HCy[C[0]],M=!!K.iconStyle||M==="youtube_outline",W=d.version<=C[1],M=(!!K.iconSize||C[2]===24)&&M&&W):M=!0;M&&(d={name:K.iconName,style:HCy[C[0]],size:C[2],version:C[1],allowMirroring:!!C[3],url:l(K.iconName,C)})}return d};
q0h=function(u,K,l,D){return u+(""+HCy[l[0]]+((D===void 0?0:D)?"_experimental":"")+"/"+K+"/v"+l[1]+"/")+(l[2]+"px.svg")};
$vH=function(u){return _.E3("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"?"bookmark":u};
nIr=function(u,K){return q0h("https://fonts.gstatic.com/s/i/",u,K)};
rhq=function(u,K){return q0h("https://fonts.gstatic.com/s/i/",u,K,!0)};
vIh=function(u,K){return q0h("https://www.gstatic.com/youtube/img/icons/web/",u,K)};
tNn=function(u){var K=u.enabled;var l=u.itemPlaybackModel;var D=u.thumbnailElRef;var d=u.containerElRef;var C=u.options;var W;_.gp(function(){var M=d==null?void 0:d.value;var q,v=(q=D())==null?void 0:q.value;q=l();var G=C();if(K&&q&&M&&v&&(G==null?0:G.thumbnail)){var t={data:q,hostElement:M},x,O,a=_.S("web_explore_hub_on_hover")||_.S("web_client_explore_hub_on_hover")?[].concat(_.Am((x=G.thumbnailOverlays)!=null?x:[]),_.Am((O=q.overlays)!=null?O:[])):G.thumbnailOverlays||[],f,B;M={mediaRenderer:t,
lockupElement:M,thumbnailElement:v,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.lt((f=q.inlinePlayerData)==null?void 0:f.onVisible),navigationEndpoint:_.lt((B=q.inlinePlayerData)==null?void 0:B.onSelect),thumbnail:G.thumbnail,thumbnailOverlays:a,accessibilityText:G.accessibilityText||""},thumbnailSize:G.thumbnailSize,enableRounding:G.enableRounding}}}else M=void 0;if(f=M){var p;(p=W)==null||n5(p);W=Cz(f);var V,m;((V=l())==null?0:(m=V.inlinePlayerData)==null?0:m.forceImpAutoplay)&&
GXr(W)}},"B33dEc");
_.No(function(){var M;(M=W)==null||n5(M)})};
xvr=function(u){u=atob(u);for(var K=[],l=0;l<u.length;l++)K.push(u.charCodeAt(l));return new Blob([new Uint8Array(K)],{type:"image/png"})};
bCw=function(u,K,l,D){D=D===void 0?"INSERTION_POSITION_UNSPECIFIED":D;return u({targetId:K},function(d){var C,W=(C=d.contents)!=null?C:[];C=l!=null?l:[];var M=S0Z(W);switch(D){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},d,{contents:[].concat(_.Am(W.slice(0,M)),_.Am(C),_.Am(W.slice(M+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},d,{contents:[].concat(_.Am(C),_.Am(W))});case "INSERTION_POSITION_LAST":return Object.assign({},d,{contents:[].concat(_.Am(W),_.Am(C))});
default:return d}})};
chH=function(u,K,l,D,d){d=d===void 0?"RELATIVE_INSERTION_POSITION_AFTER":d;return u({targetId:K},function(C){var W,M=(W=C.contents)!=null?W:[];W=OCq(M,l);if(W<0)return C;W=d==="RELATIVE_INSERTION_POSITION_BEFORE"?W:W+1;return Object.assign({},C,{contents:[].concat(_.Am(M.slice(0,W)),_.Am(D),_.Am(M.slice(W)))})})};
S0Z=function(u){var K=u.findIndex(function(l){return _.b(l,_.rr)});
return K>=0?K:u.length};
OCq=function(u,K){return u.findIndex(function(l){a:{l=_.y(Object.values(l));for(var D=l.next();!D.done;D=l.next())if((D=D.value)&&D.targetId){l=D.targetId;break a}l=""}return l===K})};
zTn=function(u,K,l){return u({targetId:K},function(D){var d,C=(d=D.contents)!=null?d:[];return Object.assign({},D,{contents:aeq(C,l)})})};
aeq=function(u,K){return u.filter(function(l){var D=K.includes;a:{l=_.y(Object.values(l));for(var d=l.next();!d.done;d=l.next())if((d=d.value)&&d.targetId){l=d.targetId;break a}l=""}return!D.call(K,l||"")})};
_.eTq=function(u,K){return{engagementPanelSectionListRenderer:{panelIdentifier:u,identifier:K,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.Uvy=function(u){var K,l=(K=u.getOption("captions","tracklist",{includeAsr:!0}))!=null?K:[];return l=RTq(l,u)};
feh=function(u){return u.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
RTq=function(u,K){K=feh(K);if(K==null||!K.length)return u;var l=K.filter(function(W){return W});
K=u.filter(function(W){return W.languageCode.startsWith("en")});
l=_.y(l);for(var D=l.next();!D.done;D=l.next())if(D=D.value,K.length){var d=K[0],C=Object.assign({},d);d.languageCode!==D.languageCode&&(C.displayName=d.languageName+" >> "+D.languageName,C.translationLanguage=D,u.push(C))}return u};
Qkh=function(u,K,l){u=_.Uvy(u);if(u.length)return l?u.find(function(D){if(typeof(D==null?void 0:D.translationLanguage)==="object"){var d;return((d=D.translationLanguage)==null?void 0:d.languageCode)===K}return!1}):u==null?void 0:u.find(function(D){return D.languageCode===K})};
Pmr=function(u){return u.getOption("captions","tracklist",{includeAsr:!0})};
Jhq=function(u){return u.getOption("captions","tracklist",{includeAsr:!0})};
jkq=function(u){var K=Jhq(u);if(K==null?0:K.length)return K;u.loadModule("captions");return Jhq(u)};
BT9=function(u){var K=u.getOption("captions","track");if(K)return K;u.loadModule("captions");return u.getOption("captions","track")};
iCq=function(u){var K=jkq(u);if(K!=null&&K.length){var l=BT9(u),D;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.QQ("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(l==null?0:l.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.Am(K.map(function(d){return{listItemViewModel:{title:{content:d.displayName},
isSelected:d.displayName===(l==null?void 0:l.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:d.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.QQ("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!l.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!l.translationLanguage&&{selectionText:{content:(l==null?void 0:(D=l.translationLanguage)==null?void 0:D.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[pwR(u)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
pwR=function(u){var K=feh(u);if(K==null||!K.length)throw Error("Bi");var l=BT9(u);u=K.filter(function(D){return!D.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Am(u.map(function(D){var d;return{listItemViewModel:{title:{content:D.languageName},isSelected:D.languageName===(l==null?void 0:(d=l.translationLanguage)==null?void 0:d.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:D.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
VNo=function(u){return new Promise(function(K,l){if(u===void 0)_.Xm(Error("Fi"),"ERROR"),l(Error("Fi"));else{l=new _.TTq;var D=_.wwb();l=l.init();var d=_.FlL(_.E3("YPC_MB_URL"),!0);Promise.all([l,d]).then(function(){var C=payments.business.integration.ClientTokenFactory.createClientToken(u,D);K(C)})}})};
kXo=function(u,K,l,D,d,C,W){var M=_.MX();l=l.replace(/-/g,"+").replace(/_/g,"/");var q=_.jy().get("hl"),v=_.vU(_.ob),G=K==null?void 0:K.element;G&&_.C5(G);gIy(K,!0);_.NT9(v,l,M.resolve,function(){G&&_.IX(G)},function(t){G&&_.IX(G);
M.reject(t)},q,D?function(t){D&&_.HJ(u,D,{backend_analytics:t})}:void 0,M.resolve,d,C,W);
return M.promise};
gIy=function(u,K){!(u=u==null?void 0:u.element)||u.tagName!=="YT-BUTTON-RENDERER"&&u.tagName!=="YTD-BUTTON-RENDERER"||(u.disabled=K)};
ZCZ=function(){var u=_.QQ("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.GI(u),actionButton:{buttonRenderer:oGZ()}}},popupType:"TOAST"}};
Y0r=function(){var u=_.QQ("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.GI(u),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
Ahn=function(u){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:u}]}}};
Gb=function(u,K,l,D){var d;return _.H(function(C){if(C.nextAddress==1)return _.Qg(C,2),C.yield(u,4);if(C.nextAddress!=2)return(d=_.TI(K.getState().entities).length>0)?C.return({title:_.GI(_.QQ("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.GI(_.QQ("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:saH()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
C.return(WPR(l,D));_.iY(C);return C.return(WPR(l,D))})};
Xwr=function(u,K){return K?K==="PPSV"||wdH(u,K):!1};
mvn=function(u){u.responseContext||(u.responseContext={});u.responseContext.maxAgeSeconds=0;return u};
x5=function(u){var K;return _.H(function(l){return l.nextAddress==1?l.yield(hTb(u,"service:topbar:fallback"),2):(K=l.yieldResult)&&_.tn(K)?l.return(mvn(_.tn(K))):l.return()})};
EIZ=function(u){var K;return _.H(function(l){return l.nextAddress==1?l.yield(hTb(u,"service:downloads_settings:fallback"),2):(K=l.yieldResult)&&_.tn(K)?l.return(K):l.return()})};
hTb=function(u,K){var l;return _.H(function(D){if(D.nextAddress==1)return u?D.yield(u.get(K),2):D.return();l=D.yieldResult;return!l||!_.tn(l)||!isNaN(Number(l.data.expireTimestampMs))&&l.isExpired()?D.return():D.return(l)})};
Lly=function(u){var K=_.GB().resolve(cU).getState().entities;return u.playlistId?Xwr(K,u.playlistId):!1};
uTH=function(u,K){var l;if(K==null?0:(l=K.requestTemplate)==null?0:l.panelId)u.panelId=K.requestTemplate.panelId;var D;if(K==null?0:(D=K.requestTemplate)==null?0:D.params)u.params=K.requestTemplate.params};
ldh=function(){if(KOo)return KOo();var u=!_.S("idb_response_store_auth_killswitch"),K={};KOo=rl("yt-it-response-store",{objectStores:(K.ResponseStore={addedAtVersion:1},K),shared:!u,upgrade:function(l,D){D(1)&&(l=lP(l,"ResponseStore",{keyPath:["key","clientName"]}),Ds(l,"byExpiration","expireTimestampMs"),Ds(l,"byInterface","clientName"))},
version:1});return KOo()};
DH9=function(u){return _.sv(ldh(),u)};
CWH=function(u,K){var l;return _.H(function(D){return D.nextAddress==1?D.yield(_.nU(),2):(l=D.yieldResult)?D.return(new dHn(u,K,l)):D.return()})};
Idy=function(u){var K=Object.keys(u)[0];if(K)return u.screenExit&&(K=K+";"+u.screenExit.screen),K};
yZq=function(u){var K=new Map;u=_.y(u);for(var l=u.next();!l.done;l=u.next())l=l.value,l!=null&&(K.has(l.taskType)||K.set(l.taskType,[]),K.get(l.taskType).push(l));return K};
sYr=function(u){return!isNaN(u)&&u>0};
oSq=function(u){u=[].concat(_.Am(u)).sort(function(l,D){return l-D});
var K=Math.floor(u.length/2);return u.length%2?u[K]:(u[K-1]+u[K])/2};
MVq=function(u,K){u=u===void 0?hMw:u;K=K===void 0?{}:K;_.$L("yt.logging.errors.log",_.Xm);X1w();WOq(lab(),K);window.onerror=u;HRq=mIh;window.addEventListener("unhandledrejection",function(l){if(l.reason instanceof Error){var D=l.reason;_.E5(D,{source:"unhandledrejection"});D.name==="AbortError"&&(D.level="WARNING")}mIh(l.reason);l.preventDefault()})};
_.qGr=function(u){return u.a11y.ephemeralAction||null};
_.$H9=function(u){var K,l,D,d,C,W,M,q,v,G,t,x,O,a,f,B,p,V,m,Z,A,h,C9,Wo,$y,co,UZ,tH,gq,Bo,uk,ca,Ha,hH,tR,ns,Pa,QV,Ls,yn;return _.H(function(dN){if(dN.nextAddress==1)return dN.yield(_.Ju(u,{mode:"readonly",enableRetries:!0},function(OB){return jZ(OB,"playbackData").then(function(vE){var Gw=vE.map(function(oC){return oC.transfer}).filter(function(oC){return!!oC}),Vm=vE.map(function(oC){return oC.offlineVideoPolicy}).filter(function(oC){return!!oC}),DI=vE.filter(function(oC){return!!oC.key}).map(function(oC){return _.zI(_.OV(oC.key).entityId,
"downloadStatusEntity")});
Gw=jZ(OB,"transfer",Gw);Vm=jZ(OB,"offlineVideoPolicy",Vm);DI=jZ(OB,"downloadStatusEntity",DI);var uG=Gw.then(function(oC){oC=oC.reduce(function(ma,$p){($p==null?0:$p.offlineVideoStreams)&&ma.push.apply(ma,_.Am($p.offlineVideoStreams));return ma},[]).filter(function(ma){return!!ma});
return jZ(OB,"offlineVideoStreams",oC)});
return KU.all([Gw,Vm,uG,DI]).then(function(oC){var ma=_.y(oC);oC=ma.next().value;var $p=ma.next().value;var aC=ma.next().value;ma=ma.next().value;return[vE,oC,$p,aC,ma]})})}),2);
if(dN.nextAddress!=3)return K=dN.yieldResult,dN.yield(_.Ju(u,{mode:"readonly",enableRetries:!0},function(OB){return jZ(OB,"mainDownloadsListEntity").then(function(vE){var Gw,Vm;return(Vm=(Gw=vE[0])==null?void 0:Gw.downloads)!=null?Vm:[]})}),3);
l=dN.yieldResult;D=_.y(K);d=D.next().value;C=D.next().value;W=D.next().value;M=D.next().value;q=D.next().value;v=d;G=C;t=W;x=M;O=q;a={};f={};B={};p={};V={};m=[];Z=_.y(G);for(A=Z.next();!A.done;A=Z.next())(h=A.value)&&(a[h.key]=h);C9=_.y(t);for(Wo=C9.next();!Wo.done;Wo=C9.next())($y=Wo.value)&&(f[$y.key]=$y);co=_.y(O);for(UZ=co.next();!UZ.done;UZ=co.next())(tH=UZ.value)&&(B[tH.key]=tH);gq=_.y(x);for(Bo=gq.next();!Bo.done;Bo=gq.next())(uk=Bo.value)&&(p[uk.key]=uk);ca=_.y(l);for(Ha=ca.next();!Ha.done;Ha=
ca.next())hH=Ha.value,tR=void 0,V[(tR=hH.videoItem)!=null?tR:""]=!0,hH.videoItem&&(Pa=ns=void 0,QV=(Pa=(ns=_.OV(hH.videoItem))==null?void 0:ns.entityId)!=null?Pa:"",m.push({externalVideoId:QV}));Ls=v.filter(function(OB){if(!OB||!OB.key||!OB.offlineVideoPolicy)return!1;OB=_.OV(OB.key).entityId;OB=_.zI(OB,"downloadStatusEntity");var vE;return!(OB&&((vE=B[OB])==null?void 0:vE.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
yn=Ls.map(function(OB){var vE=a[OB.transfer],Gw=[];if(vE==null?0:vE.offlineVideoStreams)for(var Vm=_.y(vE.offlineVideoStreams),DI=Vm.next();!DI.done;DI=Vm.next())(DI=p[DI.value])&&Gw.push(DI);Vm=f[OB.offlineVideoPolicy];DI=V;var uG=OB==null?void 0:OB.playerResponseTimestamp,oC=_.OV(Vm.key).entityId;OB=_.zI(oC,"mainVideoEntity");if(Vm.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var ma="OFFLINE_VIDEO_STATE_DISABLED";Vm.expirationTimestamp&&Number(Vm.expirationTimestamp)<Date.now()/1E3&&(ma="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Vm.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")ma="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(vE==null?void 0:vE.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":ma="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":ma="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":ma="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":ma="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":ma="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":ma="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:ma="OFFLINE_VIDEO_STATE_UNKNOWN"}if(ma==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(vE==null?void 0:vE.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":ma="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":ma="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":ma=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}oC={id:oC,videoState:ma};if(vE==null?0:vE.cotn)oC.cotn=vE.cotn;if(vE==null?0:vE.maximumDownloadQuality)oC.selectedVideoQuality=vE==null?void 0:vE.maximumDownloadQuality;if(vE==null?0:vE.lastProgressTimeMs)oC.lastProgressTimeMs=vE.lastProgressTimeMs;uG&&(oC.playerResponseSavedTimeMs=String(Number(uG)*1E3));vE=String;uG=0;Gw=_.y(Gw);for(ma=Gw.next();!ma.done;ma=Gw.next())if(ma=ma.value,ma.streamsProgress){ma=_.y(ma.streamsProgress);for(var $p=ma.next();!$p.done;$p=
ma.next()){var aC=void 0;uG+=Number((aC=$p.value.numBytesDownloaded)!=null?aC:0)}}oC.downloadedBytes=vE(uG);oC.selectedOfflineMode=DI[OB]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Vm.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(oC.offlinePlaybackDisabledReason=Vm.offlinePlaybackDisabledReason);return oC});
return dN.return({offlineVideos:yn,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:m}}})})};
nSq=function(){var u;return _.H(function(K){return K.nextAddress==1?K.yield(_.fm(),2):(u=K.yieldResult)?K.return(_.$H9(u)):K.return({state:"PES Unavailable"})})};
GPq=function(){var u,K,l,D;return _.H(function(d){if(d.nextAddress==1)return d.yield(_.fm(),2);if(d.nextAddress!=3)return(u=d.yieldResult)?d.yield(rZq(u),3):d.return({state:"PES Unavailable"});K=d.yieldResult;l={};D=K.reduce(function(C,W){C[W.key]=W;return C},l);
return d.return(vS9(D))})};
vS9=function(u){for(var K={},l=[],D=_.y(Object.keys(u)),d=D.next();!d.done;d=D.next()){var C=d.value;d=u[C];var W=void 0;if(((W=d)==null?void 0:W.entityType)==="mainVideoEntity"){delete u[C];var M=d.data;d={};if(M){var q=void 0;W=(q=M.videoId)!=null?q:"vid-"+C;C=u;d.video=M;delete d.video.formattedDescription;delete d.video.thumbnail;M.owner&&(q=C[M.owner],q==null?0:q.data)&&(delete C[q.key],d.video.owner=q.data,delete d.video.owner.avatar);if(M=M.downloadState)if(q=C[M],q==null?0:q.data)if(delete C[M],
M=q.data.playbackData)if(q=C[M],q!=null&&q.data){delete C[M];M=q.data;delete M.playerResponseJson;d.playbackData=M;if(M.transfer&&(q=C[M.transfer],q==null?0:q.data)){delete C[q.key];var v=q.data;d.transfer=v;q=[];v=_.y(v.offlineVideoStreams||[]);for(var G=v.next();!G.done;G=v.next())if(G=C[G.value])delete C[G.key],q.push(G.data);q&&(d.streams=q)}(M=M.offlineVideoPolicy)&&(M=C[M])&&M.data&&(delete C[M.key],d.offlineVideoPolicy=M.data)}K[W]=d}}else d&&d.entityType==="offlineOrchestrationActionWrapperEntity"&&
d.data&&(delete u[d.key],W=d.data,C=void 0,l.push({id:W.rootActionId,type:((C=W.actionProto)==null?void 0:C.actionType)||"",entity:d}))}K.wrapperEntities=l;Object.keys(u).length>0&&(K.unknownKeys=u);return K};
tVq=function(){var u,K,l,D,d,C,W,M,q;return _.H(function(v){if(v.nextAddress==1)return u=!!(new _.Ev("")).expiringStorage_,D=!!((K=_.lL.crypto)==null?0:(l=K.subtle)==null?0:l.importKey),d=!!_.lL.BroadcastChannel,C=!!_.lL.navigator.locks,v.yield(e8Z(),2);W=v.yieldResult;M=u&&D&&d&&C&&W;q={isSupported:M};if(M)return v.return(q);q.missingBrowserFeatures=[];W||q.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");u||q.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
D||q.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");d||q.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");C||q.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return v.return(q)})};
xHq=function(){var u;return!((u=aX?aX:null)==null||!u.window)};
_.bRZ=function(u){if(_.f9()&&_.H9R("Chromium")>=120){var K=_.SGH().mediaSession;try{K.setActionHandler("enterpictureinpicture",function(){u()})}catch(l){}}};
ORr=function(u){for(var K=[],l=_.y(document.styleSheets),D=l.next(),d={};!D.done;d={node$jscomp$727:void 0},D=l.next())d.node$jscomp$727=D.value.ownerNode,d.node$jscomp$727&&(d.node$jscomp$727 instanceof HTMLStyleElement||d.node$jscomp$727 instanceof HTMLLinkElement)&&K.push(new Promise(function(C){return function(W){var M=C.node$jscomp$727.cloneNode(!0);M.onload=function(){W()};
M.onerror=function(){_.hV(Error("hj"));W()};
u.document.head.appendChild(M)}}(d)));
return Promise.all(K)};
JZq=function(u){var K=[_.SA(cZb),_.SA(adH),_.SA(zLo)];eLq(window.document.documentElement,u.document.documentElement,[_.SA(RL9),_.SA(UHq),_.SA(fdh),_.SA(QYq),_.SA(PWH)]);eLq(window.document.body,u.document.body,K)};
eLq=function(u,K,l){u=_.y(u.attributes);for(var D=u.next();!D.done;D=u.next())if(D=D.value)try{_.rm(l,K,D.name,D.value)}catch(d){}};
Bo9=function(u,K){u=new _.zb(u.document.documentElement);u.start(jYH,K);return u};
pfR=function(u){var K=u.document.documentElement;K.addEventListener("click",function(l){QUo(K,l)});
K.addEventListener("touchstart",function(l){p9L(l)});
K.addEventListener("mousedown",function(l){p9L(l)})};
ToH=function(u,K,l,D){D=D===void 0?!1:D;K=new iRo(K||u,l||u);return{x:u.x+((D===void 0?0:D)?K.lengthX*-1:K.lengthX)*.2,y:u.y+((D===void 0?0:D)?K.lengthY*-1:K.lengthY)*.2}};
wfy=function(u){if(!u)return!1;var K=u.status==="OK"||u.status==="LIVE_STREAM_OFFLINE",l,D,d,C=(d=(l=u.errorScreen)==null?void 0:l.playerLegacyDesktopYpcTrailerRenderer)!=null?d:(D=u.errorScreen)==null?void 0:D.ypcTrailerRenderer;return!!K||!!C};
_.FO9=function(u,K){if(!u)return!1;var l,D=(l=u.errorScreen)==null?void 0:l.playerLegacyDesktopYpcOfferRenderer,d;K=!!(K==null?0:(d=K.playerOverlayRenderer)==null?0:d.gatedActionsOverlayRenderer);return!!wfy(u)||!!D||!!K};
NoR=function(u){return VVq(u,0,"gclid",u.search(gSZ))>=0||VVq(u,0,"gad_source",u.search(gSZ))>=0};
kPq=function(u){var K=[],l=0;return{clear:function(){l=K.length=0},
push:function(D){K[l]=D;l=(l+1)%u},
iterate:function(){return function d(){var C,W,M,q;return _.el(d,function(v){switch(v.nextAddress){case 1:_.BZ(v,2),C=K.length,W=0;case 4:if(!(W<C)){v.jumpTo(2);break}M=l+W;q=_.RX;return v.yield(K[M%C],7);case 7:q(v.yieldResult);W++;v.jumpTo(4);break;case 2:_.jj(v),_.pH(v,0)}})}()}}};
YGy=function(){var u=ZRL,K=nr.bufferSize;u||(u=[]);u=u.map(gbr);var l=new Set(u),D=kPq(K);return{flush:function(){var d=Array.from(D.iterate());D.clear();d=d.map(function(C){return{name:C.name,timestamp:C.startTime,attributes:C.attributes}});
return JSON.stringify(d)},
onSpanStart:function(d){d.name==="event"&&l.has(d.attributes.type)||D.push(d)}}};
AZo=function(){var u=YGy(),K=u.flush;vXn({onSpanStart:u.onSpanStart});yKR.subscribe("handleError",function(l){try{l.params.breadcrumbs=K()}catch(D){_.Xm(D,"WARNING")}})};
Xfb=function(u,K,l){var D=u.endTime;if(D==null)throw Error("jj");var d=u.name,C={};D-=u.startTime;var W=u.startTime;C={webTracing:(C[d]=u.attributes,C)};l=_.KT(P1L)(d,D,W,C,l,K);if(u.children)for(u=_.y(u.children),d=u.next();!d.done;d=u.next())Xfb(d.value,K,l)};
hLo=function(){for(var u={},K=_.y(nr.enabledSpansArray),l=K.next();!l.done;l=K.next())u[l.value]=!0;if(nr.exportToCsi||nr.exportBreadcrumbs)u={enabledSpans:u},$w={sessionId:u.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:u.enabledSpans};nr.exportBreadcrumbs&&AZo();nr.exportToCsi&&vXn(mHH)};
ESn=function(u){return new Promise(function(K){window.setTimeout(K,u)})};
LOr=function(u){var K={bicf:function(C){u.kxO=C},
blc:function(){return u.getLatestChallengeResponse()},
bcr:function(C){u.eAf.push(C)}},l=window.top;
l.ntpevasrs=K;if(l.ntpqfbel!==void 0)for(var D=_.y(l.ntpqfbel),d=D.next();!d.done;d=D.next())d=d.value,d(K);l.ntpqfbel=void 0};
u$q=function(u){return _.H(function(K){if(K.nextAddress==1)return _.Qg(K,2),K.yield(u.s2m(),4);if(K.nextAddress!=2)return _.I$(K,0);_.iY(K);_.TG(K)})};
K6q=function(u){var K,l;(K=u.ytcsi)==null||(l=K.tick)==null||l.call(K,"pot_ist")};
lKq=function(u){if(u instanceof Error){var K=_.lZ("yt.logging.errors.log");K&&K(u,"WARNING")}};
DQq=function(u){try{var K=JSON.parse(u);if(K.bgChallenge)return K}catch(l){}};
CUy=function(){var u=window,K={networkStatusManagerPromise:_.GB().resolve(new Wfb(_.ye)),initialChallengeSli:_.S("wpo_att_sli")?new _.vvH("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};u=u===void 0?window:u;var l=u.ytAtR,D;K==null||(D=K.initialChallengeSli)==null||_.UA(D);if(l){if(l=DQq(l)){var d;K==null||(d=K.initialChallengeSli)==null||_.f5(d,"SUCCESS");dQo(l,K)}u.ytAtR=void 0}else u.ytAtRC=function(C){if(C=DQq(C)){var W;K==null||(W=K.initialChallengeSli)==null||
_.f5(W,"SUCCESS");dQo(C,K);u.ytAtRC=void 0}}};
ssR=function(){if(IKy)return IKy;try{var u=_.PO("IFRAME");_.yg(u,_.Oy(yD9));u.sandbox.add("allow-same-origin");u.style.display="none";document.body.appendChild(u);return IKy=u}catch(K){u=new _.wv("Failed to create sandbox iframe"),_.Xm(u)}};
ohh=function(u){var K,l;return(l=u==null?void 0:(K=u.contentWindow)==null?void 0:K.fetch)!=null?l:window.fetch};
W69=function(u){var K,l;return(l=u==null?void 0:(K=u.contentWindow)==null?void 0:K.JSON.parse)!=null?l:JSON.parse};
HEn=function(u){var K,l;return(l=u==null?void 0:(K=u.contentWindow)==null?void 0:K.Request)!=null?l:window.Request};
Mnq=function(u){var K,l;return(l=u==null?void 0:(K=u.contentWindow)==null?void 0:K.TextDecoder)!=null?l:window.TextDecoder};
qJy=function(){return function(u,K){_.E3("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[u]=K}};
$QL=function(){return function(u,K){var l={};l[u]=K;u=_.KT(_.fFw)(l);Object.keys(u).length>0&&_.Zy(u)}};
vhh=function(){if(t1r()==="hidden")var u="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else t1r()==="visible"&&(u="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",nhr=null);u&&rDo(u)};
rDo=function(u){if(u==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||u==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(G5q===u)return;G5q=u}var K=9E4+Math.random()*2E3;if(u!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Gr()>K)&&t1r()==="visible"){K=-1;nhr&&(K=Math.round((0,_.vA)()-nhr));var l=String;var D=_.lZ("_fact",window);D=D==null||D==-1?-1:Math.max(Date.now()-D,0);_.YE("foregroundHeartbeat",{firstActivityMs:l(D),clientDocumentNonce:Lmq,index:String(tnq),lastEventDeltaMs:String(K),trigger:u});
_.$L("_fact",-1,window);tnq++;nhr=(0,_.vA)()}};
_.xQZ=function(){try{return!!self.sessionStorage}catch(u){return!1}};
SJo=function(){var u=navigator;return new Promise(function(K,l){var D;(D=u.webkitTemporaryStorage)!=null&&D.queryUsageAndQuota?u.webkitTemporaryStorage.queryUsageAndQuota(function(d,C){K({usage:d,quota:C})},function(d){l(d)}):l(Error("rj"))})};
bEH=function(u,K){var l={errorSeverity:K.errorSeverity.toString(),wizFeatureFlags:Object.entries(K.featureFlags).join("\n")};ABh(K,l);K=K.errorSeverity;K===3?_.Xm(u,"ERROR",void 0,void 0,void 0,l):K===2&&_.Xm(u,"WARNING",void 0,void 0,void 0,l);_.S("cow_if_errors_in_popup")&&K===3&&u.message.indexOf("<If>")!==-1&&window.alert(u.message)};
OEq=function(u,K){var l=qK.get(u)||{layerNode:K};l.layerNode=K;nXR(u,l);u.getScreenLayer=function(){return QU(l.layerNode)}};
cDZ=function(u){var K;u=u.parentNode;for(var l;u&&((K=qK.get(u))==null||!K.isRenderer)&&!((l=u.polymerController)!=null?l:u).isRenderer_;)u=u.parentNode||u.host;if(K=u)return qK.get(K)};
aKr=function(u){if(u){qK.delete(u);var K=_.GB().resolve(ni);txn(u,K)}};
eln=function(u,K,l){if(l===void 0?0:l){if(l=u.getAttribute("client-ve-type"),K.data&&!K.disableReactiveLogging||l)_.Ag(function(){zlq(u,_.Z7(K.data))}),_.No(function(){return void aKr(u)})}else typeof K.data!=="function"&&zlq(u,K.data)};
zlq=function(u,K){RlH++;UQw(u,K)&&_.YL.addJob(function(){_.Xf(_.YL,function(){if(UQw(u,K)&&u.ownerDocument.documentElement===document.documentElement&&u){var l;if(u.getAttribute("layer")){var D=l=Number(u.getAttribute("layer")),d=qK.get(u);d?d.layerNode.layer=D:OEq(u,new fKw(D));(D=cDZ(u))&&(d=qK.get(u))!=null&&(d.layerNode.parent=D.layerNode)}else if(l=qK.get(u))l=QU(l.layerNode);else{l=QU;D=new fKw;if(d=cDZ(u))D.parent=d.layerNode;OEq(u,D);l=l(D)}l!=null||(l=0);D=u.getAttribute("client-ve-type");
d=Number(D);var C=!1;D=!1;var W=qK.get(u),M;if((M=W)&&!(M=W[Qsb]!==K)&&(M=d)){var q;M=((q=qK.get(u))==null?void 0:q.clientVeType)===void 0}M&&(W[Qsb]=K,C=D=W.isRenderer=!0);qK.has(u)&&(qK.get(u).clientVeType=d);u.visualElement&&(D=!0);if(_.S("wiz_next_ld_fix_client_ve_spec")){var v;q=((v=_.b(K==null?void 0:K.rendererContext,_.TW))==null?void 0:v.loggingDirectives)||(K==null?void 0:K.loggingDirectives)}else q=K==null?void 0:K.loggingDirectives;q&&q.clientVeSpec&&(v=PUH(_.Bb(),u),v=_.JDr(_.iT(),q,v||
void 0,l))&&(u.visualElement=v);!u.visualElement&&d&&C&&(u.veType=d,v=void 0,_.S("wiz_next_client_ve_parent_fix")&&(v=PUH(_.Bb(),u)),v=_.pr(_.iT(),u,v,l),u.visualElement=v);D&&(v=_.GB().resolve(ni),Oyo(u,{data:K,observer:v,layer:l,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
UQw=function(u,K){return(K==null?0:K.trackingParams)||(K==null?0:K.loggingDirectives)||_.b(K==null?void 0:K.rendererContext,_.TW)||u.getAttribute("client-ve-type")?!0:!1};
jso=function(u,K,l){u.componentType!==pI&&l instanceof HTMLElement&&K&&!_.S("cow_logging_in_component_wrapper")&&eln(l,K,!0)};
F6q=function(){if(!B$L){B$L=!0;var u=Object.assign({},{enableLazyTsx:_.S("mweb_enable_wiz_lazy_tsx")||_.S("kevlar_enable_wiz_lazy_tsx")||_.S("creator_enable_wiz_lazy_tsx")||pnL,flushRenderEffectsDuringRender:!0},{handleError:bEH,enableComponentStacksInErrorMessages:!1});Object.assign($T,u);Hnq=iER;T$h();rCb=V4w;qWr=gFH;_.S("ytwiz_enable_debug_component_props")&&(u=document.body.firstElementChild,window.ng||u.__ngContext__||(u.__ngContext__={},u.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
wny))}};
T$h=function(){_.S("cow_logging_in_component_wrapper")?(hoh=function(u,K){K instanceof HTMLElement&&eln(K,u,!0)},uXh=function(){}):(hoh=function(){},uXh=jso)};
Vnw=function(u,K,l){K=K===void 0?{}:K;var D,d=(D=_.b(u.commandMetadata,_.nN))==null?void 0:D.url;D=K.form||{};!l||D.element||D.skipDefaultElement||(K.form=K.form||{},K.form.element=l);if(d&&d!=="/service_ajax")return{type:0,command:u,form:K.form};if(_.S("kevlar_service_command_check")){if(_.WJ(_.GB().resolve(_.md),u))return Object.assign({},{type:1,command:u},K)}else{var C;if((C=_.b(u.commandMetadata,_.nN))==null?0:C.apiUrl)return Object.assign({},{type:1,command:u},K)}return{type:2,command:u,form:K.form}};
gho=function(u){if(u.form){var K=u.form,l=Object.assign({},K);K=K.element;l=(delete l.element,l);if(K)return[_.c0(K,[u.command,l,u.commandController])]}return[]};
N$Z=function(u){if(u.form){var K=u.form,l=Object.assign({},K);K=K.element;l=(delete l.element,l);K&&_.ay(K,[u.command],K,l)}};
ZEH=function(u,K,l){var D=new k5o(u,K),d=new PU(u,K,l);u={"/youtubei/v1/browse":new Jn(u,K,l),"/youtubei/v1/player":D,"/youtubei/v1/navigation/resolve_url":new jl,"/youtubei/v1/next":d,"/youtubei/v1/guide":new BU(l),"/youtubei/v1/search":new p5(u,K,l),"/youtubei/v1/reel/reel_item_watch":new iw(u,K,l),"/youtubei/v1/get_watch":new Tb(D,d)};u["/youtubei/v1/account/account_menu"]=new wr;u["/youtubei/v1/notification/get_notification_menu"]=new F_;return u};
gr=function(){var u=_.GB().resolve(VU);return Promise.resolve(YJh(u,_.lL.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
ADR=function(u){return u&&(u=_.NZ(_.CuZ(u)))?(new URLSearchParams(u)).get("service"):null};
Y5=function(u,K){_.zH(_.k5(),function(){_.As("adl")});
_.GB().resolve(XnR)(K);u=u.root;u.loadData&&u.loadData(K);(K==null?0:K.response)?_.f5(x2Z(),"SUCCESS"):_.hV(new _.wv("Lifecycle: No response in data",_.L0("IS_SHELL_LOAD"),K?K.page:"NO_PAGE",K?K.endpoint:"NO_ENDPOINT"));u.polymerController.$["page-manager"].lazyPrepareCriticalPages((K==null?void 0:K.page)||"",K.endpoint);var l,D;((D=_.b(K==null?void 0:(l=K.endpoint)==null?void 0:l.commandMetadata,_.nN))==null?0:D.webPageType)&&_.Mu().dispatch(_.ZL(_.b(K.endpoint.commandMetadata,_.nN).webPageType))};
mQb=function(){var u,K;return _.H(function(l){switch(l.nextAddress){case 1:u=window;if(!u.getDataPromise){l.jumpTo(2);break}_.Qg(l,3);return l.yield(u.getDataPromise(),5);case 5:return l.return(l.yieldResult);case 3:return _.iY(l),l.yield(gr(),6);case 6:return l.return(l.yieldResult);case 2:if(u.getInitialData)return K=u.getInitialData(),u.getInitialData=void 0,l.return(K);throw Error("tj`"+_.lL.location.href);}})};
Ehq=function(){_.h8("CSI_SERVICE_NAME","youtube");_.Zy({loadType:"cold"});_.S("kevlar_log_lcp")&&hlH(function(u){_.As("lcp",u.value)})};
L6q=function(){var u=_.ur(document.location.href,"enable");u&&u.indexOf("scraper")>-1&&_.h8("ADD_SCRAPER_ATTRIBUTES",!0)};
dM9=function(u){var K=u.root;u=[ukq,Kun,_.An];_.S("web_feedback_endpoint_autolog_allowlist_killswitch")&&u.push(_.X_,lon);DMq(function(l,D){return Vnw(l,D,K)},function(l){if(!l.command)return[];
var D;((D=l.form)==null?0:D.element)?l.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},l.form,{endpoint:l.command})})):K.handleNavigate(l);return[]},u);
_.GB().addProvider({provide:_.t9,useValue:_.Pb.instance})};
Ioh=function(){var u={},K={},l;for(l in C_H){var D=_.y(_.On(C_H[l],void 0,"NBH2te"));u[l]=D.next().value;K[l]=D.next().value}return[u,function(d){for(var C in d){var W=void 0;(W=K[C])==null||W(d[C])}}]};
_.ojZ=function(u,K){var l=!1;l=l===void 0?!1:l;var D=_.k$.getValueByKeys(u,"contents","twoColumnWatchNextResults","results","results","contents"),d=_.k$.getValueByKeys(u,"contents","twoColumnWatchNextResults","playlist","playlist")||null;l&&(d=null);var C=l=null;if(d)l=_.k$.getValueByKeys(d,"titleText"),C=_.k$.unsafeClone(_.k$.getValueByKeys(d,"longBylineText")),D="",C&&(D=_.WI(C)),C=_.o7(D);else if(D){D=_.y(D);for(var W=D.next();!W.done;W=D.next())W=W.value,W.videoPrimaryInfoRenderer&&(l=_.k$.getValueByKeys.apply(_.k$,
[W].concat(_.Am(yMb)))),W.videoSecondaryInfoRenderer&&(C=_.k$.getValueByKeys.apply(_.k$,[W].concat(_.Am(sgZ))))}else _.D_(Error("yj"));var M;u.currentVideoEndpoint?M=u.currentVideoEndpoint:_.D_(Error("zj"));var q;K&&(q=_.k$.getValueByKeys(K,"playabilityStatus","miniplayer","miniplayerRenderer"));u={miniplayerTitle:l,miniplayerSubtitle:C,watchEndpoint:M,playlistData:d};q&&(u.miniplayerRenderer=q);return u};
Wuo=function(u){if(u)return _.Ep(u)};
_.H2q=function(){return{isFullscreen:function(){throw Error("Aj");},
toggleFullscreen:function(){throw Error("Bj");},
exitFullscreen:function(){throw Error("Cj");},
isAutonavEnabled:function(){throw Error("Dj");},
setAutonavEnabled:function(){throw Error("Ej");},
isAutoplaySetExplicitly:function(){throw Error("Fj");}}};
M6r=function(u){return u.videoDuration?u.numTaps>1&&u.tapDirection!==0?_.mz(u.draggedTime/u.videoDuration,0,1):_.mz((u.playedTime||0)/u.videoDuration,0,1):0};
qrZ=function(u){return u.videoDuration?u.isDragging||u.numTaps>1&&u.tapDirection!==0?_.mz(u.draggedTime/u.videoDuration,0,1):_.mz((u.playedTime||0)/u.videoDuration,0,1):0};
njH=function(u){var K,l,D;return _.b(u==null?void 0:(K=u.markersMap)==null?void 0:(l=K.find(function(d){return d.key==="HEATSEEKER"}))==null?void 0:(D=l.value)==null?void 0:D.heatmap,$Mh)};
rMH=function(u){var K,l;return(l=(K=njH(u))==null?void 0:K.heatMarkersDecorations)!=null?l:[]};
vjZ=function(u){if(_.S("mweb_supported_chapters_killswitch"))return!0;var K;return!!(u==null?0:(K=u.markersMap)==null?0:K.find(function(l){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(l.key)}))};
_.Goq=function(u){var K=Object,l=K.assign,D;u={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(D=u==null?void 0:u.getPlayerState())!=null?D:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return l.call(K,{},{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},u,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
t6R=function(u){return function(K){var l=u(),D,d=(D=l.playerApi)==null?void 0:D.getPlayerState();K&&K!==l.playerState&&(K===1||K===2)&&l.setState({playerState:d})}};
Srb=function(u){return function(K){var l=u(),D=l.playerApi;D&&(K==null?void 0:K.type)==="newdata"&&(xMr&&(clearTimeout(xMr),xMr=void 0),_.S("web_shorts_use_progress_state_for_gapless")?(K=D==null?void 0:D.getProgressState(K==null?void 0:K.playertype),K=K.seekableEnd-K.seekableStart):K=D==null?void 0:D.getDuration(K==null?void 0:K.playertype),l.setState({playedTime:0,videoDuration:K}))}};
b2H=function(u){return function(K){var l=u(),D=l.playerApi;if(D){var d=D.getPresentingPlayerType();_.S("web_shorts_use_progress_state_for_gapless")?(D=D.getProgressState(d),D=D.seekableEnd-D.seekableStart):D=D.getDuration(d);l.setState({playedTime:K,videoDuration:D})}}};
cMH=function(u){_.ZS(112394,u,function(){return O29},function(K){O29=K})};
e6w=function(u,K){if(!u)return[];var l,D,d;u=((l=u.markersMap)==null?void 0:(D=l.find(function(C){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(C.key)}))==null?void 0:(d=D.value)==null?void 0:d.chapters)||[];
!aor(u)||(K==null?0:K.ignoreStub)||(u=[z6Z()].concat(_.Am(u)));return u};
z6Z=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
aor=function(u){if(u.length===0)return!1;var K;return((K=_.b(u[0],hn))==null?void 0:K.timeRangeStartMillis)!==0};
EA=function(u){return u?u.timeRangeStartMillis||0:0};
UMZ=function(u,K){if(u.isDragging&&K)return u=R6L(u,K),u===-1?z6Z():e6w(K)[u]};
R6L=function(u,K){return u.isDragging&&K?e6w(K,{ignoreStub:!0}).findIndex(function(l,D,d){l=foH(u);return Qgw(l,d,D).scrubberHovering}):-1};
foH=function(u){return Object.assign({},u,{videoDuration:u.videoDuration*1E3,playedTime:u.playedTime*1E3,draggedTime:u.draggedTime*1E3})};
Qgw=function(u,K,l){var D=EA(_.b(K[l],hn));K=EA(_.b(K[l+1],hn))||u.videoDuration;l=u.isDragging;var d;if(d=u.isDragging)d=u.draggedTime,d=d!==null&&d>=D&&d<K;var C=u.playedTime;return C!==null&&C>=D&&C<K?{videoPosition:"active",isScrubbing:l,scrubberHovering:d}:u.playedTime<D?{videoPosition:"pending",isScrubbing:l,scrubberHovering:d}:{videoPosition:"seen",isScrubbing:l,scrubberHovering:d}};
P_H=function(u,K){return u.videoPosition==="seen"||(K===void 0?0:K)>0};
JMy=function(u,K,l){K=u/K.storyboardInterval;var D=e6w(l);if(!D.length)return-K*72;l=0;D=_.y(D);for(var d=D.next();!d.done;d=D.next())if(EA(_.b(d.value,hn))/1E3<u)l++;else break;return-(K*72)-l*56};
jgq=function(u){return u?u.width/u.columns:0};
BX9=function(u){return u.isHovering?u.hoveredTime:u.draggedTime};
pTq=function(u,K){u=u.draggedTime*1E3;return u>=K.visibleTimeRangeStartMillis&&u<=K.visibleTimeRangeEndMillis};
_.i2q=function(u){if(u===void 0||Number.isNaN(u))return"--:--";var K=Math.abs(Math.floor(u)),l=Math.floor(K/86400),D=Math.floor(K%86400/3600),d=Math.floor(K%3600/60);K=Math.floor(K%60);var C="";l>0&&(C+=l+":",D<10&&(C+="0"));if(l>0||D>0)C+=D+":",d<10&&(C+="0");C+=d+":";K<10&&(C+="0");C+=K;return u>=0?C:"-"+C};
TXq=function(u,K){return function(){var l=BX9(u());var D=K();var d=u().playerApi;if(d&&d.getNumberOfStoryboardLevels()!==0){var C=d.getStoryboardFrameIndex(l,1);C!==-1?D=d.getStoryboardFrame(C,1):(l=d.getStoryboardFrameIndex(l,0),d=d.getStoryboardFrame(l,0),D&&d&&(d.height*=3,d.width*=3),D=d)}else D=null;if(!D)return null;K()&&(D.width=90*D.columns,D.height=160*D.rows);return D}};
_.L5=function(u){if(!u||u.getVideoData)return u};
wTL=function(){var u;return{playerApi:(u=_.f1())!=null?u:void 0}};
Fuq=function(u){var K;_.H(function(l){if(l.nextAddress==1)return l.yield(_.UK(),2);if(K=l.yieldResult)K.unMute(!0),K.setVolume(u,!0);_.TG(l)})};
V6q=function(u,K){u&&(u.value=""+K,u.style.setProperty("--gradient-percent",K+"%"))};
gjH=function(u){var K;return(K=u==null?void 0:u.value)!=null?K:0};
NXq=function(){var u;_.H(function(K){if(K.nextAddress==1)return K.yield(_.UK(),2);u=K.yieldResult;if(!u)return K.return();u.isMuted()?u.unMute(!0):u.mute(!0);_.TG(K)})};
koq=function(u){var K=_.GB().resolve(_.uD).getPlayerElement();K&&u&&(u===1?K.pause():K.play())};
Z2Z=function(u){_.bI(u,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
Yrq=function(u){_.bI(u,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
XTy=function(u){return _.gi(u.document.body,function(){return _.n(AML,null)})};
mMH=function(){var u=window.performance.getEntriesByType("navigation");return u?u.map(function(K){return K.type}).includes("reload"):!1};
dfy=function(){K3(K3(K3(K3(K3(K3(K3(_.GB().resolve(_.lD),_.h6L),_.Ejo),_.LuH),_.ueR),_.KkH),_.lmr),_.Dfb)};
ClH=function(u,K){K=K===void 0?!1:K;var l,D,d,C;return _.H(function(W){if(W.nextAddress==1)return K||!_.S("kevlar_shorts_seedless_retry_initial_load")||(l=window,D=!(!l.getDataPromise&&!l.getInitialData),D)?W.yield(mQb(),2):(setTimeout(ClH.bind(window,u,!0),1E3),W.return());if(W.nextAddress!=3)return d=W.yieldResult,W.yield(Imw(d),3);C=W.yieldResult;Y5(u,C);_.TG(W)})};
Imw=function(u){var K;if((K=u.response)==null||!K.replacementEndpoint)return _.zA(u);K=_.GB().resolve(VU);u=u.response;_.b(u.replacementEndpoint,_.TO)&&u.sequenceContinuation&&(_.b(u.replacementEndpoint,_.TO).sequenceParams=u.sequenceContinuation);return DO(K,u.replacementEndpoint,{},_.lL.location.href,"shorts",function(){},function(){return!1})};
scn=function(u){var K=_.GB().resolve(ybZ);u.playerResponse&&K.handleResponse(u.playerResponse);u.response&&K.handleResponse(u.response)};
o8L=function(u){var K=_.Mu(),l,D=_.b((l=u.response)==null?void 0:l.frameworkUpdates,$Y),d;l=_.b((d=u.playerResponse)==null?void 0:d.frameworkUpdates,$Y);var C;u=_.b((C=u.reelWatchSequenceResponse)==null?void 0:C.frameworkUpdates,$Y);D&&_.Pi(D,K);l&&_.Pi(l,K);u&&_.Pi(u,K)};
Wk9=function(u){var K;_.S("enable_redirect_linking_for_desktop_web_client")&&((K=window.location.hash)==null?0:K.includes("redirect_state"))&&u.url&&(u.url=u.url.toString()+window.location.hash)};
qkq=function(u){var K=_.GB(),l=K.resolve(VU);K=K.resolve(_.HBZ);u.endpoint&&(l=M79(l,u.endpoint),l.content&&u.response&&_.da(K,u.response,l.content),l.player&&u.playerResponse&&_.da(K,u.playerResponse,l.player),l.reelSequence&&u.reelWatchSequenceResponse&&_.da(K,u.reelWatchSequenceResponse,l.reelSequence))};
C3=function(u,K){_.S("web_service_params_response_processor")&&scn(K);o8L(K);var l;(K==null?0:K.url)&&((l=window.location.hash)==null?0:l.includes("redirect_state"))&&(Wk9(K),(l=ADR(K.url))&&_.Sy(u.root,"yt-initialize-third-party",[l,K]));qkq(K);l=_.GB();var D=l.resolve($fH);K.playerResponse&&l.resolve(n8y).handleResponse(K.playerResponse);if(K.playerResponse){l=void 0;if(_.S("ab_v_vid_sig")&&K.endpoint){var d,C=(d=_.b(K.endpoint,_.oy))!=null?d:_.b(K.endpoint,_.TO);C&&(l=C.videoId)}rbw(D,K.playerResponse,
l)}K.playerResponse&&jir(K.playerResponse)&&_.S("web_enable_ab_rsp_cl")?FXy().then(function(){v8o(D,K.playerResponse);Y5(u,K)}):Y5(u,K)};
t7b=function(u){if(u=u.root.data){var K=_.GB().resolve(GM9);u.endpoint&&(u.response&&K.handleResponse(u.response,void 0,document.querySelector("ytd-app")),u.playerResponse&&K.handleResponse(u.playerResponse),u.reelWatchSequenceResponse&&K.handleResponse(u.reelWatchSequenceResponse))}};
xfb=function(u){var K,l,D,d,C,W;return _.H(function(M){switch(M.nextAddress){case 1:K=window;if(!K.getDataPromise){M.jumpTo(2);break}_.Qg(M,3);return M.yield(K.getDataPromise(),5);case 5:l=M.yieldResult;C3(u,l);_.I$(M,4);break;case 3:return _.iY(M),M.yield(gr(),6);case 6:D=M.yieldResult,Y5(u,D);case 4:return M.return();case 2:if(!_.S("sw_nav_preload_pbj")){M.jumpTo(7);break}K.fetchInitialData=function(){var q;return _.H(function(v){if(v.nextAddress==1)return v.yield(gr(),2);q=v.yieldResult;Y5(u,q);
_.TG(v)})};
if(K.getInitialData){K.loadInitialData=function(q){C3(u,q)};
d=K.getInitialData();K.getInitialData=void 0;C3(u,d);M.jumpTo(8);break}K.fetchInitialData=void 0;return M.yield(gr(),9);case 9:C=M.yieldResult,Y5(u,C);case 8:return M.return();case 7:K.getInitialData?(W=K.getInitialData(),K.getInitialData=void 0,C3(u,W)):K.loadInitialData=function(q){C3(u,q)},_.TG(M)}})};
Sk9=function(u){var K=0;return function(){return K<u.length?{done:!1,value:u[K++]}:{done:!0}}};
bBL=typeof Object.defineProperties=="function"?Object.defineProperty:function(u,K,l){if(u==Array.prototype||u==Object.prototype)return u;u[K]=l.value;return u};
OBq=function(u){u=["object"==typeof globalThis&&globalThis,u,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var K=0;K<u.length;++K){var l=u[K];if(l&&l.Math==Math)return l}throw Error("a");};
_.MN=OBq(this);Ij=function(u,K){if(K)a:{var l=_.MN;u=u.split(".");for(var D=0;D<u.length-1;D++){var d=u[D];if(!(d in l))break a;l=l[d]}u=u[u.length-1];D=l[u];K=K(D);K!=D&&K!=null&&bBL(l,u,{configurable:!0,writable:!0,value:K})}};
Ij("Symbol",function(u){if(u)return u;var K=function(C,W){this.$jscomp$symbol$id_=C;bBL(this,"description",{configurable:!0,writable:!0,value:W})};
K.prototype.toString=function(){return this.$jscomp$symbol$id_};
var l="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",D=0,d=function(C){if(this instanceof d)throw new TypeError("b");return new K(l+(C||"")+"_"+D++,C)};
return d});
Ij("Symbol.iterator",function(u){if(u)return u;u=Symbol("c");for(var K="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),l=0;l<K.length;l++){var D=_.MN[K[l]];typeof D==="function"&&typeof D.prototype[u]!="function"&&bBL(D.prototype,u,{configurable:!0,writable:!0,value:function(){return cbo(Sk9(this))}})}return u});
Ij("Symbol.asyncIterator",function(u){return u?u:Symbol("d")});
var cbo=function(u){u={next:u};u[Symbol.iterator]=function(){return this};
return u},amq=typeof Object.create=="function"?Object.create:function(u){var K=function(){};
K.prototype=u;return new K},zZn=function(){function u(){function l(){}
new l;Reflect.construct(l,[],function(){});
return new l instanceof l}
if(typeof Reflect!="undefined"&&Reflect.construct){if(u())return Reflect.construct;var K=Reflect.construct;return function(l,D,d){l=K(l,D);d&&Reflect.setPrototypeOf(l,d.prototype);return l}}return function(l,D,d){d===void 0&&(d=l);
d=amq(d.prototype||Object.prototype);return Function.prototype.apply.call(l,d,D)||d}}(),eZ9;
if(typeof Object.setPrototypeOf=="function")eZ9=Object.setPrototypeOf;else{var RZq;a:{var Ufo={a:!0},fmL={};try{fmL.__proto__=Ufo;RZq=fmL.a;break a}catch(u){}RZq=!1}eZ9=RZq?function(u,K){u.__proto__=K;if(u.__proto__!==K)throw new TypeError("e`"+u);return u}:null}yW=eZ9;
_.c=function(u,K){u.prototype=amq(K.prototype);u.prototype.constructor=u;if(yW)yW(u,K);else for(var l in K)if(l!="prototype")if(Object.defineProperties){var D=Object.getOwnPropertyDescriptor(K,l);D&&Object.defineProperty(u,l,D)}else u[l]=K[l];u.superClass_=K.prototype};
_.y=function(u){var K=typeof Symbol!="undefined"&&Symbol.iterator&&u[Symbol.iterator];if(K)return K.call(u);if(typeof u.length=="number")return{next:Sk9(u)};throw Error("f`"+String(u));};
y5=function(u){for(var K,l=[];!(K=u.next()).done;)l.push(K.value);return l};
_.Am=function(u){return u instanceof Array?u:y5(_.y(u))};
_.oj=function(u){return sf(u,u)};
sf=function(u,K){u.raw=K;Object.freeze&&(Object.freeze(u),Object.freeze(K));return u};
W8=function(u,K){return Object.prototype.hasOwnProperty.call(u,K)};
Qch=typeof Object.assign=="function"?Object.assign:function(u,K){for(var l=1;l<arguments.length;l++){var D=arguments[l];if(D)for(var d in D)W8(D,d)&&(u[d]=D[d])}return u};
Ij("Object.assign",function(u){return u||Qch});
var H8=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},Plh=function(u){if(u.isRunning_)throw new TypeError("h");
u.isRunning_=!0};
H8.prototype.JSC$8654_next_=function(u){this.yieldResult=u};
var JbL=function(u,K){u.abruptCompletion_={exception:K,isException:!0};u.nextAddress=u.catchAddress_||u.finallyAddress_};
H8.prototype.return=function(u){this.abruptCompletion_={return:u};this.nextAddress=this.finallyAddress_};
H8.prototype.yield=function(u,K){this.nextAddress=K;return{value:u}};
H8.prototype.jumpTo=function(u){this.nextAddress=u};
_.TG=function(u){u.nextAddress=0};
_.Qg=function(u,K,l){u.catchAddress_=K;l!=void 0&&(u.finallyAddress_=l)};
_.BZ=function(u,K){u.catchAddress_=0;u.finallyAddress_=K||0};
_.I$=function(u,K,l){u.nextAddress=K;u.catchAddress_=l||0};
_.iY=function(u,K){u.catchAddress_=K||0;K=u.abruptCompletion_.exception;u.abruptCompletion_=null;return K};
_.jj=function(u,K,l,D){D?u.finallyContexts_[D]=u.abruptCompletion_:u.finallyContexts_=[u.abruptCompletion_];u.catchAddress_=K||0;u.finallyAddress_=l||0};
_.pH=function(u,K,l){l=u.finallyContexts_.splice(l||0)[0];(l=u.abruptCompletion_=u.abruptCompletion_||l)?l.isException?u.nextAddress=u.catchAddress_||u.finallyAddress_:l.jumpTo!=void 0&&u.finallyAddress_<l.jumpTo?(u.nextAddress=l.jumpTo,u.abruptCompletion_=null):u.nextAddress=u.finallyAddress_:u.nextAddress=K};
jcH=function(u){this.JSC$8659_context_=new H8;this.program_=u};
pxw=function(u,K){Plh(u.JSC$8659_context_);var l=u.JSC$8659_context_.yieldAllIterator_;if(l)return BKR(u,"return"in l?l["return"]:function(D){return{value:D,done:!0}},K,u.JSC$8659_context_.return);
u.JSC$8659_context_.return(K);return Ma(u)};
BKR=function(u,K,l,D){try{var d=K.call(u.JSC$8659_context_.yieldAllIterator_,l);if(!(d instanceof Object))throw new TypeError("g`"+d);if(!d.done)return u.JSC$8659_context_.isRunning_=!1,d;var C=d.value}catch(W){return u.JSC$8659_context_.yieldAllIterator_=null,JbL(u.JSC$8659_context_,W),Ma(u)}u.JSC$8659_context_.yieldAllIterator_=null;D.call(u.JSC$8659_context_,C);return Ma(u)};
Ma=function(u){for(;u.JSC$8659_context_.nextAddress;)try{var K=u.program_(u.JSC$8659_context_);if(K)return u.JSC$8659_context_.isRunning_=!1,{value:K.value,done:!1}}catch(l){u.JSC$8659_context_.yieldResult=void 0,JbL(u.JSC$8659_context_,l)}u.JSC$8659_context_.isRunning_=!1;if(u.JSC$8659_context_.abruptCompletion_){K=u.JSC$8659_context_.abruptCompletion_;u.JSC$8659_context_.abruptCompletion_=null;if(K.isException)throw K.exception;return{value:K.return,done:!0}}return{value:void 0,done:!0}};
iBb=function(u){this.next=function(K){Plh(u.JSC$8659_context_);u.JSC$8659_context_.yieldAllIterator_?K=BKR(u,u.JSC$8659_context_.yieldAllIterator_.next,K,u.JSC$8659_context_.JSC$8654_next_):(u.JSC$8659_context_.JSC$8654_next_(K),K=Ma(u));return K};
this.throw=function(K){Plh(u.JSC$8659_context_);u.JSC$8659_context_.yieldAllIterator_?K=BKR(u,u.JSC$8659_context_.yieldAllIterator_["throw"],K,u.JSC$8659_context_.JSC$8654_next_):(JbL(u.JSC$8659_context_,K),K=Ma(u));return K};
this.return=function(K){return pxw(u,K)};
this[Symbol.iterator]=function(){return this}};
_.el=function(u,K){K=new iBb(new jcH(K));yW&&u.prototype&&yW(K,u.prototype);return K};
TKZ=function(u){function K(D){return u.next(D)}
function l(D){return u.throw(D)}
return new Promise(function(D,d){function C(W){W.done?D(W.value):Promise.resolve(W.value).then(K,l).then(C,d)}
C(u.next())})};
_.H=function(u){return TKZ(new iBb(new jcH(u)))};
_.PZ=function(u){var K=u[Symbol.asyncIterator];return K!==void 0?K.call(u):new wxo(_.y(u))};
wxo=function(u){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return u};
this.next=function(K){return Promise.resolve(u.next(K))};
this["throw"]=function(K){return new Promise(function(l,D){var d=u["throw"];d!==void 0?l(d.call(u,K)):(l=u["return"],l!==void 0&&l.call(u),D(new TypeError("i")))})};
u["return"]!==void 0&&(this["return"]=function(K){return Promise.resolve(u["return"](K))})};
_.uY=function(){for(var u=Number(this),K=[],l=u;l<arguments.length;l++)K[l-u]=arguments[l];return K};
_.RX=function(u){return u};
Ij("globalThis",function(u){return u||_.MN});
Ij("Reflect",function(u){return u?u:{}});
Ij("Reflect.construct",function(){return zZn});
Ij("Reflect.setPrototypeOf",function(u){return u?u:yW?function(K,l){try{return yW(K,l),!0}catch(D){return!1}}:null});
Ij("Promise",function(u){function K(){this.batch_=null}
function l(W){return W instanceof d?W:new d(function(M){M(W)})}
if(u&&(typeof _.MN.PromiseRejectionEvent!=="undefined"||!_.MN.Promise||_.MN.Promise.toString().indexOf("[native code]")===-1))return u;K.prototype.asyncExecute=function(W){if(this.batch_==null){this.batch_=[];var M=this;this.asyncExecuteFunction(function(){M.executeBatch_()})}this.batch_.push(W)};
var D=_.MN.setTimeout;K.prototype.asyncExecuteFunction=function(W){D(W,0)};
K.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var W=this.batch_;this.batch_=[];for(var M=0;M<W.length;++M){var q=W[M];W[M]=null;try{q()}catch(v){this.asyncThrow_(v)}}}this.batch_=null};
K.prototype.asyncThrow_=function(W){this.asyncExecuteFunction(function(){throw W;})};
var d=function(W){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var M=this.createResolveAndReject_();try{W(M.resolve,M.reject)}catch(q){M.reject(q)}};
d.prototype.createResolveAndReject_=function(){function W(v){return function(G){q||(q=!0,v.call(M,G))}}
var M=this,q=!1;return{resolve:W(this.resolveTo_),reject:W(this.JSC$8687_reject_)}};
d.prototype.resolveTo_=function(W){if(W===this)this.JSC$8687_reject_(new TypeError("m"));else if(W instanceof d)this.settleSameAsPromise_(W);else{a:switch(typeof W){case "object":var M=W!=null;break a;case "function":M=!0;break a;default:M=!1}M?this.resolveToNonPromiseObj_(W):this.fulfill_(W)}};
d.prototype.resolveToNonPromiseObj_=function(W){var M=void 0;try{M=W.then}catch(q){this.JSC$8687_reject_(q);return}typeof M=="function"?this.settleSameAsThenable_(M,W):this.fulfill_(W)};
d.prototype.JSC$8687_reject_=function(W){this.settle_(2,W)};
d.prototype.fulfill_=function(W){this.settle_(1,W)};
d.prototype.settle_=function(W,M){if(this.state_!=0)throw Error("n`"+W+"`"+M+"`"+this.state_);this.state_=W;this.result_=M;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
d.prototype.scheduleUnhandledRejectionCheck_=function(){var W=this;D(function(){if(W.notifyUnhandledRejection_()){var M=_.MN.console;typeof M!=="undefined"&&M.error(W.result_)}},1)};
d.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var W=_.MN.CustomEvent,M=_.MN.Event,q=_.MN.dispatchEvent;if(typeof q==="undefined")return!0;typeof W==="function"?W=new W("unhandledrejection",{cancelable:!0}):typeof M==="function"?W=new M("unhandledrejection",{cancelable:!0}):(W=_.MN.document.createEvent("CustomEvent"),W.initCustomEvent("unhandledrejection",!1,!0,W));W.promise=this;W.reason=this.result_;return q(W)};
d.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var W=0;W<this.onSettledCallbacks_.length;++W)C.asyncExecute(this.onSettledCallbacks_[W]);this.onSettledCallbacks_=null}};
var C=new K;d.prototype.settleSameAsPromise_=function(W){var M=this.createResolveAndReject_();W.callWhenSettled_(M.resolve,M.reject)};
d.prototype.settleSameAsThenable_=function(W,M){var q=this.createResolveAndReject_();try{W.call(M,q.resolve,q.reject)}catch(v){q.reject(v)}};
d.prototype.then=function(W,M){function q(x,O){return typeof x=="function"?function(a){try{v(x(a))}catch(f){G(f)}}:O}
var v,G,t=new d(function(x,O){v=x;G=O});
this.callWhenSettled_(q(W,v),q(M,G));return t};
d.prototype.catch=function(W){return this.then(void 0,W)};
d.prototype.callWhenSettled_=function(W,M){function q(){switch(v.state_){case 1:W(v.result_);break;case 2:M(v.result_);break;default:throw Error("o`"+v.state_);}}
var v=this;this.onSettledCallbacks_==null?C.asyncExecute(q):this.onSettledCallbacks_.push(q);this.isRejectionHandled_=!0};
d.resolve=l;d.reject=function(W){return new d(function(M,q){q(W)})};
d.race=function(W){return new d(function(M,q){for(var v=_.y(W),G=v.next();!G.done;G=v.next())l(G.value).callWhenSettled_(M,q)})};
d.all=function(W){var M=_.y(W),q=M.next();return q.done?l([]):new d(function(v,G){function t(a){return function(f){x[a]=f;O--;O==0&&v(x)}}
var x=[],O=0;do x.push(void 0),O++,l(q.value).callWhenSettled_(t(x.length-1),G),q=M.next();while(!q.done)})};
return d});
var qa=function(u,K,l){if(u==null)throw new TypeError("p`"+l);if(K instanceof RegExp)throw new TypeError("q`"+l);return u+""};
Ij("String.prototype.startsWith",function(u){return u?u:function(K,l){var D=qa(this,K,"startsWith"),d=D.length,C=K.length;l=Math.max(0,Math.min(l|0,D.length));for(var W=0;W<C&&l<d;)if(D[l++]!=K[W++])return!1;return W>=C}});
Ij("Object.setPrototypeOf",function(u){return u||yW});
Ij("Symbol.dispose",function(u){return u?u:Symbol("r")});
Ij("SuppressedError",function(u){function K(l,D,d){if(!(this instanceof K))return new K(l,D,d);d=Error(d);"stack"in d&&(this.stack=d.stack);this.message=d.message;this.error=l;this.suppressed=D}
if(u)return u;_.c(K,Error);K.prototype.name="SuppressedError";return K});
var Fkn=function(u,K,l){u instanceof String&&(u=String(u));for(var D=u.length,d=0;d<D;d++){var C=u[d];if(K.call(l,C,d,u))return{i:d,v:C}}return{i:-1,v:void 0}};
Ij("Array.prototype.find",function(u){return u?u:function(K,l){return Fkn(this,K,l).v}});
Ij("WeakMap",function(u){function K(){}
function l(q){var v=typeof q;return v==="object"&&q!==null||v==="function"}
function D(q){if(!W8(q,C)){var v=new K;bBL(q,C,{value:v})}}
function d(q){var v=Object[q];v&&(Object[q]=function(G){if(G instanceof K)return G;Object.isExtensible(G)&&D(G);return v(G)})}
if(function(){if(!u||!Object.seal)return!1;try{var q=Object.seal({}),v=Object.seal({}),G=new u([[q,2],[v,3]]);if(G.get(q)!=2||G.get(v)!=3)return!1;G.delete(q);G.set(v,4);return!G.has(q)&&G.get(v)==4}catch(t){return!1}}())return u;
var C="$jscomp_hidden_"+Math.random();d("freeze");d("preventExtensions");d("seal");var W=0,M=function(q){this.JSC$8694_id_=(W+=Math.random()+1).toString();if(q){q=_.y(q);for(var v;!(v=q.next()).done;)v=v.value,this.set(v[0],v[1])}};
M.prototype.set=function(q,v){if(!l(q))throw Error("s");D(q);if(!W8(q,C))throw Error("t`"+q);q[C][this.JSC$8694_id_]=v;return this};
M.prototype.get=function(q){return l(q)&&W8(q,C)?q[C][this.JSC$8694_id_]:void 0};
M.prototype.has=function(q){return l(q)&&W8(q,C)&&W8(q[C],this.JSC$8694_id_)};
M.prototype.delete=function(q){return l(q)&&W8(q,C)&&W8(q[C],this.JSC$8694_id_)?delete q[C][this.JSC$8694_id_]:!1};
return M});
Ij("Map",function(u){if(function(){if(!u||typeof u!="function"||!u.prototype.entries||typeof Object.seal!="function")return!1;try{var M=Object.seal({x:4}),q=new u(_.y([[M,"s"]]));if(q.get(M)!="s"||q.size!=1||q.get({x:4})||q.set({x:4},"t")!=q||q.size!=2)return!1;var v=q.entries(),G=v.next();if(G.done||G.value[0]!=M||G.value[1]!="s")return!1;G=v.next();return G.done||G.value[0].x!=4||G.value[1]!="t"||!v.next().done?!1:!0}catch(t){return!1}}())return u;
var K=new WeakMap,l=function(M){this[0]={};this[1]=C();this.size=0;if(M){M=_.y(M);for(var q;!(q=M.next()).done;)q=q.value,this.set(q[0],q[1])}};
l.prototype.set=function(M,q){M=M===0?0:M;var v=D(this,M);v.list||(v.list=this[0][v.id]=[]);v.entry?v.entry.value=q:(v.entry={next:this[1],previous:this[1].previous,head:this[1],key:M,value:q},v.list.push(v.entry),this[1].previous.next=v.entry,this[1].previous=v.entry,this.size++);return this};
l.prototype.delete=function(M){M=D(this,M);return M.entry&&M.list?(M.list.splice(M.index,1),M.list.length||delete this[0][M.id],M.entry.previous.next=M.entry.next,M.entry.next.previous=M.entry.previous,M.entry.head=null,this.size--,!0):!1};
l.prototype.clear=function(){this[0]={};this[1]=this[1].previous=C();this.size=0};
l.prototype.has=function(M){return!!D(this,M).entry};
l.prototype.get=function(M){return(M=D(this,M).entry)&&M.value};
l.prototype.entries=function(){return d(this,function(M){return[M.key,M.value]})};
l.prototype.keys=function(){return d(this,function(M){return M.key})};
l.prototype.values=function(){return d(this,function(M){return M.value})};
l.prototype.forEach=function(M,q){for(var v=this.entries(),G;!(G=v.next()).done;)G=G.value,M.call(q,G[1],G[0],this)};
l.prototype[Symbol.iterator]=l.prototype.entries;var D=function(M,q){var v=q&&typeof q;v=="object"||v=="function"?K.has(q)?v=K.get(q):(v=""+ ++W,K.set(q,v)):v="p_"+q;var G=M[0][v];if(G&&W8(M[0],v))for(M=0;M<G.length;M++){var t=G[M];if(q!==q&&t.key!==t.key||q===t.key)return{id:v,list:G,index:M,entry:t}}return{id:v,list:G,index:-1,entry:void 0}},d=function(M,q){var v=M[1];
return cbo(function(){if(v){for(;v.head!=M[1];)v=v.previous;for(;v.next!=v.head;)return v=v.next,{done:!1,value:q(v)};v=null}return{done:!0,value:void 0}})},C=function(){var M={};
return M.previous=M.next=M.head=M},W=0;
return l});
Ij("Set",function(u){if(function(){if(!u||typeof u!="function"||!u.prototype.entries||typeof Object.seal!="function")return!1;try{var l=Object.seal({x:4}),D=new u(_.y([l]));if(!D.has(l)||D.size!=1||D.add(l)!=D||D.size!=1||D.add({x:4})!=D||D.size!=2)return!1;var d=D.entries(),C=d.next();if(C.done||C.value[0]!=l||C.value[1]!=l)return!1;C=d.next();return C.done||C.value[0]==l||C.value[0].x!=4||C.value[1]!=C.value[0]?!1:d.next().done}catch(W){return!1}}())return u;
var K=function(l){this.JSC$8708_map_=new Map;if(l){l=_.y(l);for(var D;!(D=l.next()).done;)this.add(D.value)}this.size=this.JSC$8708_map_.size};
K.prototype.add=function(l){l=l===0?0:l;this.JSC$8708_map_.set(l,l);this.size=this.JSC$8708_map_.size;return this};
K.prototype.delete=function(l){l=this.JSC$8708_map_.delete(l);this.size=this.JSC$8708_map_.size;return l};
K.prototype.clear=function(){this.JSC$8708_map_.clear();this.size=0};
K.prototype.has=function(l){return this.JSC$8708_map_.has(l)};
K.prototype.entries=function(){return this.JSC$8708_map_.entries()};
K.prototype.values=function(){return this.JSC$8708_map_.values()};
K.prototype.keys=K.prototype.values;K.prototype[Symbol.iterator]=K.prototype.values;K.prototype.forEach=function(l,D){var d=this;this.JSC$8708_map_.forEach(function(C){return l.call(D,C,C,d)})};
return K});
Ij("Math.log2",function(u){return u?u:function(K){return Math.log(K)/Math.LN2}});
Ij("Object.values",function(u){return u?u:function(K){var l=[],D;for(D in K)W8(K,D)&&l.push(K[D]);return l}});
Ij("Object.is",function(u){return u?u:function(K,l){return K===l?K!==0||1/K===1/l:K!==K&&l!==l}});
Ij("Array.prototype.includes",function(u){return u?u:function(K,l){var D=this;D instanceof String&&(D=String(D));var d=D.length;l=l||0;for(l<0&&(l=Math.max(l+d,0));l<d;l++){var C=D[l];if(C===K||Object.is(C,K))return!0}return!1}});
Ij("String.prototype.includes",function(u){return u?u:function(K,l){return qa(this,K,"includes").indexOf(K,l||0)!==-1}});
Ij("Array.from",function(u){return u?u:function(K,l,D){l=l!=null?l:function(M){return M};
var d=[],C=typeof Symbol!="undefined"&&Symbol.iterator&&K[Symbol.iterator];if(typeof C=="function"){K=C.call(K);for(var W=0;!(C=K.next()).done;)d.push(l.call(D,C.value,W++))}else for(C=K.length,W=0;W<C;W++)d.push(l.call(D,K[W],W));return d}});
Ij("Object.entries",function(u){return u?u:function(K){var l=[],D;for(D in K)W8(K,D)&&l.push([D,K[D]]);return l}});
Ij("Number.isFinite",function(u){return u?u:function(K){return typeof K!=="number"?!1:!isNaN(K)&&K!==Infinity&&K!==-Infinity}});
Ij("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Ij("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Ij("Number.isInteger",function(u){return u?u:function(K){return Number.isFinite(K)?K===Math.floor(K):!1}});
Ij("Number.isSafeInteger",function(u){return u?u:function(K){return Number.isInteger(K)&&Math.abs(K)<=Number.MAX_SAFE_INTEGER}});
Ij("String.prototype.endsWith",function(u){return u?u:function(K,l){var D=qa(this,K,"endsWith");l===void 0&&(l=D.length);l=Math.max(0,Math.min(l|0,D.length));for(var d=K.length;d>0&&l>0;)if(D[--l]!=K[--d])return!1;return d<=0}});
var V7b=function(u,K){u instanceof String&&(u+="");var l=0,D=!1,d={next:function(){if(!D&&l<u.length){var C=l++;return{value:K(C,u[C]),done:!1}}D=!0;return{done:!0,value:void 0}}};
d[Symbol.iterator]=function(){return d};
return d};
Ij("Array.prototype.entries",function(u){return u?u:function(){return V7b(this,function(K,l){return[K,l]})}});
Ij("Math.trunc",function(u){return u?u:function(K){K=Number(K);if(isNaN(K)||K===Infinity||K===-Infinity||K===0)return K;var l=Math.floor(Math.abs(K));return K<0?-l:l}});
Ij("Number.isNaN",function(u){return u?u:function(K){return typeof K==="number"&&isNaN(K)}});
Ij("Array.prototype.keys",function(u){return u?u:function(){return V7b(this,function(K){return K})}});
Ij("Array.prototype.values",function(u){return u?u:function(){return V7b(this,function(K,l){return l})}});
Ij("Array.prototype.fill",function(u){return u?u:function(K,l,D){var d=this.length||0;l<0&&(l=Math.max(0,d+l));if(D==null||D>d)D=d;D=Number(D);D<0&&(D=Math.max(0,d+D));for(l=Number(l||0);l<D;l++)this[l]=K;return this}});
var $2=function(u){return u?u:Array.prototype.fill};
Ij("Int8Array.prototype.fill",$2);Ij("Uint8Array.prototype.fill",$2);Ij("Uint8ClampedArray.prototype.fill",$2);Ij("Int16Array.prototype.fill",$2);Ij("Uint16Array.prototype.fill",$2);Ij("Int32Array.prototype.fill",$2);Ij("Uint32Array.prototype.fill",$2);Ij("Float32Array.prototype.fill",$2);Ij("Float64Array.prototype.fill",$2);
Ij("Object.fromEntries",function(u){return u?u:function(K){var l={};if(!(Symbol.iterator in K))throw new TypeError("u`"+K);K=K[Symbol.iterator].call(K);for(var D=K.next();!D.done;D=K.next()){D=D.value;if(Object(D)!==D)throw new TypeError("v");l[D[0]]=D[1]}return l}});
Ij("String.prototype.replaceAll",function(u){return u?u:function(K,l){if(K instanceof RegExp&&!K.global)throw new TypeError("w");return K instanceof RegExp?this.replace(K,l):this.replace(new RegExp(String(K).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),l)}});
Ij("Object.getOwnPropertySymbols",function(u){return u?u:function(){return[]}});
Ij("String.prototype.repeat",function(u){return u?u:function(K){var l=qa(this,null,"repeat");if(K<0||K>1342177279)throw new RangeError("x");K|=0;for(var D="";K;)if(K&1&&(D+=l),K>>>=1)l+=l;return D}});
Ij("Array.prototype.findIndex",function(u){return u?u:function(K,l){return Fkn(this,K,l).i}});
Ij("Array.prototype.flatMap",function(u){return u?u:function(K,l){var D=[];Array.prototype.forEach.call(this,function(d,C){d=K.call(l,d,C,this);Array.isArray(d)?D.push.apply(D,d):D.push(d)});
return D}});
Ij("String.prototype.codePointAt",function(u){return u?u:function(K){var l=qa(this,null,"codePointAt"),D=l.length;K=Number(K)||0;if(K>=0&&K<D){K|=0;var d=l.charCodeAt(K);if(d<55296||d>56319||K+1===D)return d;K=l.charCodeAt(K+1);return K<56320||K>57343?d:(d-55296)*1024+K+9216}}});
Ij("String.fromCodePoint",function(u){return u?u:function(K){for(var l="",D=0;D<arguments.length;D++){var d=Number(arguments[D]);if(d<0||d>1114111||d!==Math.floor(d))throw new RangeError("y`"+d);d<=65535?l+=String.fromCharCode(d):(d-=65536,l+=String.fromCharCode(d>>>10&1023|55296),l+=String.fromCharCode(d&1023|56320))}return l}});
Ij("String.prototype.trimLeft",function(u){function K(){return this.replace(/^[\s\xa0]+/,"")}
return u||K});
Ij("String.prototype.trimStart",function(u){return u||String.prototype.trimLeft});
Ij("String.prototype.padStart",function(u){return u?u:function(K,l){var D=qa(this,null,"padStart");K-=D.length;l=l!==void 0?String(l):" ";return(K>0&&l?l.repeat(Math.ceil(K/l.length)).substring(0,K):"")+D}});
Ij("Promise.prototype.finally",function(u){return u?u:function(K){return this.then(function(l){return Promise.resolve(K()).then(function(){return l})},function(l){return Promise.resolve(K()).then(function(){throw l;
})})}});
Ij("Math.imul",function(u){return u?u:function(K,l){K=Number(K);l=Number(l);var D=K&65535,d=l&65535;return D*d+((K>>>16&65535)*d+D*(l>>>16&65535)<<16>>>0)|0}});
Ij("Object.hasOwn",function(u){return u?u:function(K,l){return Object.prototype.hasOwnProperty.call(K,l)}});
Ij("Math.sign",function(u){return u?u:function(K){K=Number(K);return K===0||isNaN(K)?K:K>0?1:-1}});
Ij("Array.prototype.flat",function(u){return u?u:function(K){K=K===void 0?1:K;var l=[];Array.prototype.forEach.call(this,function(D){Array.isArray(D)&&K>0?(D=Array.prototype.flat.call(D,K-1),l.push.apply(l,D)):l.push(D)});
return l}});
Ij("String.raw",function(u){return u?u:function(K,l){if(K==null)throw new TypeError("z");for(var D=K.raw,d=D.length,C="",W=0;W<d;++W)C+=D[W],W+1<d&&W+1<arguments.length&&(C+=String(arguments[W+1]));return C}});
Ij("Reflect.ownKeys",function(u){return u?u:function(K){var l=[],D=Object.getOwnPropertyNames(K);K=Object.getOwnPropertySymbols(K);for(var d=0;d<D.length;d++)(D[d].substring(0,14)=="jscomp_symbol_"?K:l).push(D[d]);return l.concat(K)}});
Ij("Object.getOwnPropertyDescriptors",function(u){return u?u:function(K){for(var l={},D=Reflect.ownKeys(K),d=0;d<D.length;d++)l[D[d]]=Object.getOwnPropertyDescriptor(K,D[d]);return l}});
Ij("WeakSet",function(u){if(function(){if(!u||!Object.seal)return!1;try{var l=Object.seal({}),D=Object.seal({}),d=new u([l]);if(!d.has(l)||d.has(D))return!1;d.delete(l);d.add(D);return!d.has(l)&&d.has(D)}catch(C){return!1}}())return u;
var K=function(l){this.JSC$8715_map_=new WeakMap;if(l){l=_.y(l);for(var D;!(D=l.next()).done;)this.add(D.value)}};
K.prototype.add=function(l){this.JSC$8715_map_.set(l,!0);return this};
K.prototype.has=function(l){return this.JSC$8715_map_.has(l)};
K.prototype.delete=function(l){return this.JSC$8715_map_.delete(l)};
return K});
Ij("Promise.allSettled",function(u){function K(D){return{status:"fulfilled",value:D}}
function l(D){return{status:"rejected",reason:D}}
return u?u:function(D){var d=this;D=Array.from(D,function(C){return d.resolve(C).then(K,l)});
return d.all(D)}});
Ij("Number.parseInt",function(u){return u||parseInt});
_._DumpException=window._DumpException||function(u){throw u;};
window._DumpException=_._DumpException;var g8r,n3,ra,GR,NKL,kMq,ZBn,Ykb,kp,Abb;g8r=g8r||{};_.lL=this||self;_.$L=function(u,K,l){u=u.split(".");l=l||_.lL;for(var D;u.length&&(D=u.shift());)u.length||K===void 0?l[D]&&l[D]!==Object.prototype[D]?l=l[D]:l=l[D]={}:l[D]=K};
n3=function(u){var K=_.lZ("WIZ_global_data.oxN3nb");u=K&&K[u];return u!=null?u:!1};
ra=_.lL._F_toggles_default_kevlar_base||[];GR=function(){};
GR.get=function(){return null};
_.lZ=function(u,K){u=u.split(".");K=K||_.lL;for(var l=0;l<u.length;l++)if(K=K[u[l]],K==null)return null;return K};
_.t0=function(u){u.instance_=void 0;u.getInstance=function(){return u.instance_?u.instance_:u.instance_=new u}};
_.qp=function(u){var K=typeof u;return K!="object"?K:u?Array.isArray(u)?"array":K:"null"};
_.mb=function(u){var K=_.qp(u);return K=="array"||K=="object"&&typeof u.length=="number"};
_.Ks=function(u){var K=typeof u;return K=="object"&&u!=null||K=="function"};
_.DA=function(u){return Object.prototype.hasOwnProperty.call(u,NKL)&&u[NKL]||(u[NKL]=++kMq)};
NKL="closure_uid_"+(Math.random()*1E9>>>0);kMq=0;ZBn=function(u,K,l){return u.call.apply(u.bind,arguments)};
Ykb=function(u,K,l){if(!u)throw Error();if(arguments.length>2){var D=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,D);return u.apply(K,d)}}return function(){return u.apply(K,arguments)}};
_.wB=function(u,K,l){_.wB=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ZBn:Ykb;return _.wB.apply(null,arguments)};
_.Js=function(u,K){var l=Array.prototype.slice.call(arguments,1);return function(){var D=l.slice();D.push.apply(D,arguments);return u.apply(this,D)}};
_.x2=function(){return Date.now()};
kp=function(u){return u};
_.Sa=function(u,K){function l(){}
l.prototype=K.prototype;u.superClass_=K.prototype;u.prototype=new l;u.prototype.constructor=u;u.base=function(D,d,C){for(var W=Array(arguments.length-2),M=2;M<arguments.length;M++)W[M-2]=arguments[M];return K.prototype[d].apply(D,W)}};
Abb=function(u){return u};var Xx9,mfb;_.g=function(u,K,l,D){var d=arguments.length,C=d<3?K:D===null?D=Object.getOwnPropertyDescriptor(K,l):D,W;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")C=Reflect.decorate(u,K,l,D);else for(var M=u.length-1;M>=0;M--)if(W=u[M])C=(d<3?W(C):d>3?W(K,l,C):W(K,l))||C;d>3&&C&&Object.defineProperty(K,l,C)};
_.N=function(u,K){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(u,K)};
Xx9=function(u,K){if(K!==null&&K!==void 0){if(typeof K!=="object"&&typeof K!=="function")throw new TypeError("A");if(l===void 0){if(!Symbol.dispose)throw new TypeError("C");var l=K[Symbol.dispose]}if(typeof l!=="function")throw new TypeError("D");u.stack.push({value:K,dispose:l,async:!1})}return K};
mfb=function(u){function K(C){u.error=u.hasError?new SuppressedError(C,u.error,"An error was suppressed during disposal."):C;u.hasError=!0}
function l(){for(;D=u.stack.pop();)try{if(!D.async&&d===1)return d=0,u.stack.push(D),Promise.resolve().then(l);if(D.dispose){var C=D.dispose.call(D.value);if(D.async)return d|=2,Promise.resolve(C).then(l,function(W){K(W);return l()})}else d|=1}catch(W){K(W)}if(d===1)return u.hasError?Promise.reject(u.error):Promise.resolve();
if(u.hasError)throw u.error;}
var D,d=0;l()};_.Sa(_.uL,Error);_.uL.prototype.name="CustomError";var hZq;var E8h=void 0,LkR,u2o=typeof TextDecoder!=="undefined",Dwr,lHq=typeof String.prototype.isWellFormed==="function",KbZ=typeof TextEncoder!=="undefined";var K4H;_.i2=function(u){for(var K=[],l=0,D=0;D<u.length;D++){var d=u.charCodeAt(D);d<128?K[l++]=d:(d<2048?K[l++]=d>>6|192:((d&64512)==55296&&D+1<u.length&&(u.charCodeAt(D+1)&64512)==56320?(d=65536+((d&1023)<<10)+(u.charCodeAt(++D)&1023),K[l++]=d>>18|240,K[l++]=d>>12&63|128):K[l++]=d>>12|224,K[l++]=d>>6&63|128),K[l++]=d&63|128)}return K};
K4H=function(u){for(var K=[],l=0,D=0;l<u.length;){var d=u[l++];if(d<128)K[D++]=String.fromCharCode(d);else if(d>191&&d<224){var C=u[l++];K[D++]=String.fromCharCode((d&31)<<6|C&63)}else if(d>239&&d<365){C=u[l++];var W=u[l++],M=u[l++];d=((d&7)<<18|(C&63)<<12|(W&63)<<6|M&63)-65536;K[D++]=String.fromCharCode(55296+(d>>10));K[D++]=String.fromCharCode(56320+(d&1023))}else C=u[l++],W=u[l++],K[D++]=String.fromCharCode((d&15)<<12|(C&63)<<6|W&63)}return K.join("")};var qw=String.prototype.trim?function(u){return u.trim()}:function(u){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(u)[1]},lzh=/&/g,DzH=/</g,dzH=/>/g,Cg9=/"/g,Izh=/'/g,y4y=/\x00/g,s0q=/[\x00&<>"']/;var bD=!!(ra[0]>>15&1),oZq=!!(ra[0]>>16&1),W4r=!!(ra[0]&8),Hqq=!!(ra[0]&2),Mqq=!!(ra[0]&4),qTb=!!(ra[0]&16),$zy=!!(ra[0]&128);var Gh=bD?oZq:n3(610401301),nZq=bD?W4r:n3(772657768),r4y=bD?Hqq:n3(513659523),vZq=bD?Mqq:n3(568333945),qYb=bD?qTb:n3(1331761403),uIq=bD?$zy:n3(748402147);var xy,GCy=_.lL.navigator;xy=GCy?GCy.userAgentData||null:null;var oL;_.Fq=function(u,K){return Array.prototype.indexOf.call(u,K,void 0)};
_.yx=function(u,K,l){Array.prototype.forEach.call(u,K,l)};
_.Of=function(u,K,l){return Array.prototype.filter.call(u,K,l)};
_.ZM=function(u,K,l){return Array.prototype.map.call(u,K,l)};
oL=function(u,K,l){return Array.prototype.some.call(u,K,l)};
_.iDb=function(u,K,l){return Array.prototype.every.call(u,K,l)};var c8=function(u){c8[" "](u);return u};
c8[" "]=function(){};
var ZVH=function(u,K){try{return c8(u[K]),!0}catch(l){}return!1},lq9=function(u,K,l,D){D=D?D(K):K;
return Object.prototype.hasOwnProperty.call(u,D)?u[D]:u[D]=l(K)};var tq9,Mh,xzq,STq,OqL,c4r,iew,azR,zGo,eGL,Hk,UzL,fzR,j0L,BQZ,pCh;_.SGH=function(){return _.lL.navigator||null};
tq9=er();_.aj=IHH();Mh=OZ("Edge");xzq=Mh||_.aj;_.zR=OZ("Gecko")&&!(_.Mw(_.rq(),"WebKit")&&!OZ("Edge"))&&!(OZ("Trident")||OZ("MSIE"))&&!OZ("Edge");_.ea=_.Mw(_.rq(),"WebKit")&&!OZ("Edge");STq=_.ea&&OZ("Mobile");_.bqr=_.$wn();OqL=_.nyZ();c4r=(JH()?xy.platform==="Linux":OZ("Linux"))||_.rHH();iew=_.Mrw();azR=qZ9();zGo=OZ("iPad");eGL=OZ("iPod");_.RGr=_.jr();Hk=_.Mw(_.rq(),"KaiOS");UzL=function(){var u=_.lL.document;return u?u.documentMode:void 0};
a:{var Q0b="",PgL=function(){var u=_.rq();if(_.zR)return/rv:([^\);]+)(\)|;)/.exec(u);if(Mh)return/Edge\/([\d\.]+)/.exec(u);if(_.aj)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(u);if(_.ea)return/WebKit\/(\S+)/.exec(u);if(tq9)return/(?:Version)[ \/]?(\S+)/.exec(u)}();
PgL&&(Q0b=PgL?PgL[1]:"");if(_.aj){var J4q=UzL();if(J4q!=null&&J4q>parseFloat(Q0b)){fzR=String(J4q);break a}}fzR=Q0b}j0L=fzR;BQZ={};_.Rj=function(u){return lq9(BQZ,u,function(){return _.n9(j0L,u)>=0})};
if(_.lL.document&&_.aj){var iq9=UzL();pCh=iq9?iq9:parseInt(j0L,10)||void 0}else pCh=void 0;_.TQq=pCh;var ChH,IJr,wCH;_.Uf=RR();ChH=qZ9()||OZ("iPod");IJr=OZ("iPad");wCH=_.sRr();_.f3=_.f9();_.LT=_.Qn()&&!_.jr();var F4h,QW,cOZ,FHZ,gZq,Vqq;F4h={};QW=null;cOZ=_.zR||_.ea||typeof _.lL.btoa=="function";_.Yp=function(u,K){K===void 0&&(K=0);Vqq();K=F4h[K];for(var l=Array(Math.floor(u.length/3)),D=K[64]||"",d=0,C=0;d<u.length-2;d+=3){var W=u[d],M=u[d+1],q=u[d+2],v=K[W>>2];W=K[(W&3)<<4|M>>4];M=K[(M&15)<<2|q>>6];q=K[q&63];l[C++]=v+W+M+q}v=0;q=D;switch(u.length-d){case 2:v=u[d+1],q=K[(v&15)<<2]||D;case 1:u=u[d],l[C]=K[u>>2]+K[(u&3)<<4|v>>4]+q+D}return l.join("")};
FHZ=function(u){var K="";gZq(u,function(l){K+=String.fromCharCode(l)});
return K};
_.NSq=function(u){var K=[];gZq(u,function(l){K.push(l)});
return K};
_.Wa=function(u){var K=u.length,l=K*3/4;l%3?l=Math.floor(l):_.Ho("=.",u[K-1])&&(l=_.Ho("=.",u[K-2])?l-2:l-1);var D=new Uint8Array(l),d=0;gZq(u,function(C){D[d++]=C});
return d!==l?D.subarray(0,d):D};
gZq=function(u,K){function l(q){for(;D<u.length;){var v=u.charAt(D++),G=QW[v];if(G!=null)return G;if(!_.oR(v))throw Error("H`"+v);}return q}
Vqq();for(var D=0;;){var d=l(-1),C=l(0),W=l(64),M=l(64);if(M===64&&d===-1)break;K(d<<2|C>>4);W!=64&&(K(C<<4&240|W>>2),M!=64&&K(W<<6&192|M))}};
Vqq=function(){if(!QW){QW={};for(var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),K=["+/=","+/","-_=","-_.","-_"],l=0;l<5;l++){var D=u.concat(K[l].split(""));F4h[l]=D;for(var d=0;d<D.length;d++){var C=D[d];QW[C]===void 0&&(QW[C]=d)}}}};var Bqq=typeof Uint8Array!=="undefined",zqZ=!_.aj&&typeof btoa==="function",eqH=/[-_.]/g,cHn={"-":"+",_:"/",".":"="},Tw={};var ik,kCL;ik=function(u,K){if(K!==Tw)throw Error("J");this.JSC$8745_value_=u;if(u!=null&&u.length===0)throw Error("I");};
_.wN=function(){return NQH||(NQH=new ik(null,Tw))};
kCL=function(u){return new Uint8Array(b_R(u)||0)};
ik.prototype.isEmpty=function(){return this.JSC$8745_value_==null};
ik.prototype.sizeBytes=function(){var u=b_R(this);return u?u.length:0};
var b_R=function(u){if(Tw!==Tw)throw Error("J");var K=u.JSC$8745_value_;K==null||Bqq&&K!=null&&K instanceof Uint8Array||(typeof K==="string"?K=Rqy(K):(_.qp(K),K=null));return K==null?K:u.JSC$8745_value_=K},NQH;var fHh=void 0;var zw=typeof Symbol==="function"&&typeof Symbol()==="symbol",Zqb=bk("jas",void 0,!0),xSr=bk(void 0,"0di"),q9=bk(void 0,"1oa"),ZB=bk(void 0,Symbol()),BNh=bk(void 0,"0ub"),iso=bk(void 0,"0ubs"),lky=bk(void 0,"0ubsb"),lBq=bk(void 0,"0actk"),FI=bk("m_m","messagePrototypeMarker",!0),ARq=bk(void 0,"vps"),PkR=bk();var PLq,QRq,CM,YTr;PLq={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};QRq=Object.defineProperties;_.e2=zw?Zqb:"internalArrayState";YTr=[];Qm(YTr,7);CM=Object.freeze(YTr);var VV={},Ba={},A4L=function(u,K,l){this.iterable=u;this.mapper=K;this.thisArg=l};
A4L.prototype.next=function(){var u=this.iterable.next();u.done||(u.value=this.mapper.call(this.thisArg,u.value));return u};
A4L.prototype[Symbol.iterator]=function(){return this};
var XCb=Object.freeze({}),NS={};_.mzh=ZA(function(u){return u!==null&&u!==void 0});var Fbh=ZA(function(u){return typeof u==="number"}),woq=ZA(function(u){return typeof u==="string"}),Vrb=ZA(function(u){return typeof u==="boolean"}),hGZ=ZA(function(u){return u!=null&&typeof u==="object"&&typeof u.then==="function"}),U7b=ZA(function(u){return typeof u==="function"}),nI=ZA(function(u){return!!u&&(typeof u==="object"||typeof u==="function")});var Y0=typeof _.lL.BigInt==="function"&&typeof _.lL.BigInt(0)==="bigint";var $SR=ZA(function(u){return Y0?u>=EZn&&u<=L4o:u[0]==="-"?gyH(u,uwq):gyH(u,KVn)}),uwq=Number.MIN_SAFE_INTEGER.toString(),EZn=Y0?BigInt(Number.MIN_SAFE_INTEGER):void 0,KVn=Number.MAX_SAFE_INTEGER.toString(),L4o=Y0?BigInt(Number.MAX_SAFE_INTEGER):void 0;var lQq=typeof Uint8Array.prototype.slice==="function",EB=0,K_=0,C5q;var ek,JE,n_,jk,hqq;ek=typeof BigInt==="function"?BigInt.asIntN:void 0;_.BE=typeof BigInt==="function"?BigInt.asUintN:void 0;JE=Number.isSafeInteger;n_=Number.isFinite;jk=Math.trunc;hqq=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Xab={};var USq={},DqR=function(){try{var u=function(){return zZn(Map,[],this.constructor)};
_.c(u,Map);c8(new u);return!1}catch(K){return!0}}(),P8=function(){this.JSC$8765_map_=new Map};
_.I=P8.prototype;_.I.get=function(u){return this.JSC$8765_map_.get(u)};
_.I.set=function(u,K){this.JSC$8765_map_.set(u,K);this.size=this.JSC$8765_map_.size;return this};
_.I.delete=function(u){u=this.JSC$8765_map_.delete(u);this.size=this.JSC$8765_map_.size;return u};
_.I.clear=function(){this.JSC$8765_map_.clear();this.size=this.JSC$8765_map_.size};
_.I.has=function(u){return this.JSC$8765_map_.has(u)};
_.I.entries=function(){return this.JSC$8765_map_.entries()};
_.I.keys=function(){return this.JSC$8765_map_.keys()};
_.I.values=function(){return this.JSC$8765_map_.values()};
_.I.forEach=function(u,K){return this.JSC$8765_map_.forEach(u,K)};
P8.prototype[Symbol.iterator]=function(){return this.entries()};
var AE=function(){if(DqR)return Object.setPrototypeOf(P8.prototype,Map.prototype),Object.defineProperties(P8.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),P8;var u=function(){return zZn(Map,[],this.constructor)};
_.c(u,Map);return u}(),gH=function(u,K,l,D){l=l===void 0?cRh:l;
D=D===void 0?cRh:D;var d=AE.call(this)||this;d.arrayState=u[_.e2]|0;d.valueCtor=K;d.keyToApi=l;d.valueToApi=d.valueCtor?zwq:D;for(var C=0;C<u.length;C++){var W=u[C],M=l(W[0],!1,!0),q=W[1];K?q===void 0&&(q=null):q=D(W[1],!1,!0,void 0,void 0,d.arrayState);AE.prototype.set.call(d,M,q)}return d};
_.c(gH,AE);var dq9=function(u){if(u.arrayState&2)throw Error("N");};
_.I=gH.prototype;_.I.clear=function(){dq9(this);AE.prototype.clear.call(this)};
_.I.delete=function(u){dq9(this);return AE.prototype.delete.call(this,this.keyToApi(u,!0,!1))};
_.I.entries=function(){if(this.valueCtor){var u=AE.prototype.keys.call(this);u=new A4L(u,ew9,this)}else u=AE.prototype.entries.call(this);return u};
_.I.values=function(){if(this.valueCtor){var u=AE.prototype.keys.call(this);u=new A4L(u,gH.prototype.get,this)}else u=AE.prototype.values.call(this);return u};
_.I.forEach=function(u,K){this.valueCtor?AE.prototype.forEach.call(this,function(l,D,d){u.call(K,d.get(D),D,d)}):AE.prototype.forEach.call(this,u,K)};
_.I.set=function(u,K){dq9(this);u=this.keyToApi(u,!0,!1);return u==null?this:K==null?(AE.prototype.delete.call(this,u),this):AE.prototype.set.call(this,u,this.valueToApi(K,!0,!0,this.valueCtor,!1,this.arrayState))};
_.I.has=function(u){return AE.prototype.has.call(this,this.keyToApi(u,!1,!1))};
_.I.get=function(u){u=this.keyToApi(u,!1,!1);var K=AE.prototype.get.call(this,u);if(K!==void 0){var l=this.valueCtor;return l?(l=this.valueToApi(K,!1,!0,l,this.callToMutableOnAccess,this.arrayState),l!==K&&AE.prototype.set.call(this,u,l),l):K}};
gH.prototype[Symbol.iterator]=function(){return this.entries()};
gH.prototype.toJSON=void 0;var Rww;var V2L=function(){},wab=function(u,K){for(var l in u)!isNaN(l)&&K(u,+l,u[l])},g0q=function(u){var K=new V2L;
wab(u,function(l,D,d){K[D]=so(d)});
K.reviveUnknownFields=u.reviveUnknownFields;return K},JRH={reviveIntoImmutable:!0};var Faq;var mSw,hwZ;var C7q,Wr,U5,Bu,IQH,FY,Pu,yzh,snR,ZO,odo,Y2,Ef,L3;C7q=_.XH(0);_.J0={};_.ja=function(u,K,l,D,d){K=Wr(u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K,l,d);if(K!==null||D&&u.noLegacyNull!==Ba)return K};
Wr=function(u,K,l,D){if(K===-1)return null;var d=K+(l?0:-1),C=u.length-1;if(!(C<1+(l?0:-1))){if(d>=C){var W=u[C];if(W!=null&&typeof W==="object"&&W.constructor===Object){l=W[K];var M=!0}else if(d===C)l=W;else return}else l=u[d];if(D&&l!=null){D=D(l);if(D==null)return D;if(!Object.is(D,l))return M?W[K]=D:u[d]=D,D}return l}};
_.SG=function(u,K,l,D){u5(u);var d=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;l5(d,d[_.e2]|0,K,l,D);return u};
_.B8=function(u,K,l){u=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return vpn(u,u[_.e2]|0,K,l)!==void 0};
_.p3=function(u,K,l,D){var d=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return vpn(d,d[_.e2]|0,K,Bu(u,D,l))!==void 0};
_.vO=function(u){return u===XCb?2:4};
_.iD=function(u,K){u=_.ja(u,K,void 0,void 0,H_r);return u==null?_.wN():u};
U5=function(u,K,l,D){u5(u);var d=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=d[_.e2]|0;if(D==null){var W=$pL(d);if(npy(W,d,C,l)===K)W.set(l,0);else return u}else C=rEb(d,C,l,K);l5(d,C,K,D);return u};
_.TR=function(u,K,l,D){var d=u[_.e2]|0,C=k0(d);d=rEb(u,d,l,K,C);l5(u,d,K,D,C)};
Bu=function(u,K,l){return _.wa(u,K)===l?l:-1};
_.wa=function(u,K){u=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return npy($pL(u),u,void 0,K,void 0)};
IQH=function(u,K,l){var D=u[_.e2]|0,d=k0(D),C=Wr(u,l,d);if(C!=null&&C[FI]===VV){if(!ps(C))return L_(C),C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var W=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(C)&&(W=C);if(W){var M=W[_.e2]|0;M&2&&(W=Eo(W,M))}W=LaL(W,K,!0);W!==C&&l5(u,D,l,W,d);return W};
_.fV=function(u,K,l,D){var d=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=d[_.e2]|0;K=vpn(d,C,K,l,D);if(K==null)return K;C=d[_.e2]|0;if(!ps(u,C)){var W=aAZ(K);W!==K&&(L_(u)&&(d=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=d[_.e2]|0),K=W,C=l5(d,C,l,K,D),KM(d,C))}return K};
_.rB=function(u,K,l,D){var d=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return G6y(u,d,d[_.e2]|0,K,l,D,!1,!0)};
_.jF=function(u,K,l,D){l=tkH(l);_.SG(u,K,l,D);l&&!ps(l)&&KM(u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return u};
_.Br=function(u,K,l,D){D=tkH(D);U5(u,K,l,D);D&&!ps(D)&&KM(u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return u};
FY=function(u,K,l){u5(u);var D=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=D[_.e2]|0;if(l==null)return l5(D,d,K),u;for(var C=l===CM?7:l[_.e2]|0,W=C,M=oQ(C),q=M||Object.isFrozen(l),v=!0,G=!0,t=0;t<l.length;t++){var x=l[t];M||(x=ps(x),v&&(v=!x),G&&(G=x))}M||(C=v?13:5,C=G?C&-4097:C|4096);q&&C===W||(l=so(l),W=0,C=IQ(C,d));C!==W&&Qm(l,C);d=l5(D,d,K,l);2&C||!(4096&C||16&C)||KM(D,d);return u};
Pu=function(u,K,l,D){Sob(u,K,l,D);return u};
yzh=function(u,K,l){Sob(u,K,VW,void 0,l,1,!0);return u};
_.Na=function(u,K,l){u=_.ja(u,K,void 0,l);K=typeof u;u=u==null?u:K==="bigint"?_.XH((0,_.BE)(64,u)):_.rH(u)?K==="string"?_.qBH(u):_.Hsq(u):void 0;return u};
_.k2=function(u,K){var l=l===void 0?!1:l;var D;return(D=_.mwq(_.ja(u,K)))!=null?D:l};
_.tq=function(u,K,l){l=l===void 0?0:l;var D;return(D=_.cE(_.ja(u,K)))!=null?D:l};
snR=function(u,K){var l=l===void 0?0:l;u=_.LbZ(_.ja(u,K));return u!=null?u:l};
ZO=function(u,K,l){l=l===void 0?C7q:l;var D;return(D=_.v0H(_.ja(u,K)))!=null?D:l};
odo=function(u){var K=K===void 0?C7q:K;var l;return(l=_.Na(u,23))!=null?l:K};
Y2=function(u,K){var l=l===void 0?0:l;var D;return(D=_.ja(u,K,void 0,void 0,_.AHb))!=null?D:l};
_.A0=function(u,K,l,D){l=l===void 0?"":l;var d;return(d=_.wH(_.ja(u,K,D)))!=null?d:l};
_.h0=function(u,K){var l=l===void 0?0:l;var D;return(D=_.Sk(_.ja(u,K)))!=null?D:l};
Ef=function(u,K){var l=l===void 0?"0":l;u=rRH(_.ja(u,K),!0);return u!=null?u:l};
L3=function(u,K,l){return _.A0(u,Bu(u,l,K))};
_.uO=function(u,K,l,D){return _.fV(u,K,Bu(u,D,l),void 0)};
_.Qf=function(u,K){return _.wH(_.ja(u,K,void 0,_.J0))};
_.OQ=function(u,K,l){return _.SG(u,K,Xoh(l))};
_.NN=function(u,K,l){return _.M9(u,K,Xoh(l),!1)};
_.Ka=function(u,K,l){return _.SG(u,K,_.bG(l))};
_.iP=function(u,K,l){return _.SG(u,K,f_(l))};
_.Tj=function(u,K,l){return _.SG(u,K,T6(l))};
_.oX=function(u,K,l,D){return _.M9(u,K,T6(l),"",D)};
_.xL=function(u,K,l){return _.SG(u,K,l==null?l:_.G6(l))};
_.lO=function(u,K,l){return _.M9(u,K,l==null?l:_.G6(l),0)};var $u=function(u,K,l){this.buffer=u;if(l&&!K)throw Error();this.JSC$8777_isImmutable=K};var WVq=function(u,K,l,D){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8780_start_=0;this.init(u,K,l,D)},D0,Mwq,qIZ,ndq,k6Z,HOq;
_.I=WVq.prototype;_.I.init=function(u,K,l,D){var d=D===void 0?{}:D;D=d.aliasBytesFields===void 0?!1:d.aliasBytesFields;d=d.treatNewDataAsImmutable===void 0?!1:d.treatNewDataAsImmutable;this.aliasBytesFields=D;this.treatNewDataAsImmutable=d;u&&(u=O_q(u,this.treatNewDataAsImmutable),this.bytes_=u.buffer,this.bytesAreImmutable_=u.JSC$8777_isImmutable,this.JSC$8780_start_=K||0,this.end_=l!==void 0?this.JSC$8780_start_+l:this.bytes_.length,this.cursor_=this.JSC$8780_start_)};
_.I.free=function(){this.clear();HOq.length<100&&HOq.push(this)};
_.I.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8780_start_=0;this.aliasBytesFields=!1};
_.I.reset=function(){this.cursor_=this.JSC$8780_start_};
_.I.atEnd=function(){return this.cursor_==this.end_};
_.dR=function(u,K){var l=0,D=0,d=0,C=u.bytes_,W=u.cursor_;do{var M=C[W++];l|=(M&127)<<d;d+=7}while(d<32&&M&128);if(d>32)for(D|=(M&127)>>4,d=3;d<32&&M&128;d+=7)M=C[W++],D|=(M&127)<<d;D0(u,W);if(!(M&128))return K(l>>>0,D>>>0);throw Error();};
D0=function(u,K){u.cursor_=K;if(K>u.end_)throw Error();};
_.Ca=function(u){var K=u.bytes_,l=u.cursor_,D=K[l++],d=D&127;if(D&128&&(D=K[l++],d|=(D&127)<<7,D&128&&(D=K[l++],d|=(D&127)<<14,D&128&&(D=K[l++],d|=(D&127)<<21,D&128&&(D=K[l++],d|=D<<28,D&128&&K[l++]&128&&K[l++]&128&&K[l++]&128&&K[l++]&128&&K[l++]&128)))))throw Error();D0(u,l);return d};
_.Iq=function(u){var K=u.bytes_,l=u.cursor_,D=K[l],d=K[l+1],C=K[l+2];K=K[l+3];D0(u,u.cursor_+4);return(D<<0|d<<8|C<<16|K<<24)>>>0};
Mwq=function(u){var K=_.Iq(u);u=_.Iq(u);return Z9b(K,u)};
qIZ=function(u){var K=_.Iq(u),l=_.Iq(u);u=(l>>31)*2+1;var D=l>>>20&2047;K=4294967296*(l&1048575)+K;return D==2047?K?NaN:u*Infinity:D==0?u*4.9E-324*K:u*Math.pow(2,D-1075)*(K+4503599627370496)};
_.$qr=function(u){for(var K=0,l=u.cursor_,D=l+10,d=u.bytes_;l<D;){var C=d[l++];K|=C;if((C&128)===0)return D0(u,l),!!(K&127)}throw Error();};
ndq=function(u,K){if(K<0)throw Error();var l=u.cursor_;K=l+K;if(K>u.end_)throw Error();u.cursor_=K;return l};
k6Z=function(u,K){if(K==0)return _.wN();var l=ndq(u,K);u.aliasBytesFields&&u.bytesAreImmutable_?l=u.bytes_.subarray(l,l+K):(u=u.bytes_,K=l+K,l=l===K?new Uint8Array(0):lQq?u.slice(l,K):new Uint8Array(u.subarray(l,K)));return l.length==0?_.wN():new ik(l,Tw)};
HOq=[];var vdh=function(u,K,l,D){if(HOq.length){var d=HOq.pop();d.init(u,K,l,D);u=d}else u=new WVq(u,K,l,D);this.decoder_=u;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;rzZ(this,D)},rzZ=function(u,K){K=K===void 0?{}:K;
u.discardUnknownFields=K.discardUnknownFields===void 0?!1:K.discardUnknownFields},AEw=function(u,K,l,D){if(Gl9.length){var d=Gl9.pop();
rzZ(d,D);d.decoder_.init(u,K,l,D);return d}return new vdh(u,K,l,D)},VkZ,NHR,twq,Gl9;
vdh.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;Gl9.length<100&&Gl9.push(this)};
vdh.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
VkZ=function(u){if(u.decoder_.atEnd())return!1;u.fieldCursor_=u.decoder_.cursor_;var K=_.Ca(u.decoder_)>>>0,l=K>>>3;K&=7;if(!(K>=0&&K<=5))throw Error();if(l<1)throw Error();u.nextField_=l;u.nextWireType_=K;return!0};
NHR=function(u){switch(u.nextWireType_){case 0:u.nextWireType_!=0?NHR(u):_.$qr(u.decoder_);break;case 1:u=u.decoder_;D0(u,u.cursor_+8);break;case 2:if(u.nextWireType_!=2)NHR(u);else{var K=_.Ca(u.decoder_)>>>0;u=u.decoder_;D0(u,u.cursor_+K)}break;case 5:u=u.decoder_;D0(u,u.cursor_+4);break;case 3:K=u.nextField_;do{if(!VkZ(u))throw Error();if(u.nextWireType_==4){if(u.nextField_!=K)throw Error();break}NHR(u)}while(1);break;default:throw Error();}};
twq=function(u,K,l){var D=u.decoder_.end_,d=_.Ca(u.decoder_)>>>0;d=u.decoder_.cursor_+d;var C=d-D;C<=0&&(u.decoder_.end_=d,l(K,u,void 0,void 0,void 0),C=d-u.decoder_.cursor_);if(C)throw Error();u.decoder_.cursor_=d;u.decoder_.end_=D};
_.xqH=function(u){var K=_.Ca(u.decoder_)>>>0;u=u.decoder_;var l=ndq(u,K);u=u.bytes_;if(u2o){var D=u,d;(d=LkR)||(d=LkR=new TextDecoder("utf-8",{fatal:!0}));K=l+K;D=l===0&&K===D.length?D:D.subarray(l,K);try{var C=d.decode(D)}catch(v){if(E8h===void 0){try{d.decode(new Uint8Array([128]))}catch(G){}try{d.decode(new Uint8Array([97])),E8h=!0}catch(G){E8h=!1}}!E8h&&(LkR=void 0);throw v;}}else{C=l;K=C+K;l=[];for(var W=null,M,q;C<K;)M=u[C++],M<128?l.push(M):M<224?C>=K?K9():(q=u[C++],M<194||(q&192)!==128?(C--,
K9()):l.push((M&31)<<6|q&63)):M<240?C>=K-1?K9():(q=u[C++],(q&192)!==128||M===224&&q<160||M===237&&q>=160||((d=u[C++])&192)!==128?(C--,K9()):l.push((M&15)<<12|(q&63)<<6|d&63)):M<=244?C>=K-2?K9():(q=u[C++],(q&192)!==128||(M<<28)+(q-144)>>30!==0||((d=u[C++])&192)!==128||((D=u[C++])&192)!==128?(C--,K9()):(M=(M&7)<<18|(q&63)<<12|(d&63)<<6|D&63,M-=65536,l.push((M>>10&1023)+55296,(M&1023)+56320))):K9(),l.length>=8192&&(W=uq9(W,l),l.length=0);C=uq9(W,l)}return C};
_.SIo=function(u){var K=_.Ca(u.decoder_)>>>0;return k6Z(u.decoder_,K)};
_.bOR=function(u,K,l){var D=_.Ca(u.decoder_)>>>0;for(D=u.decoder_.cursor_+D;u.decoder_.cursor_<D;)l.push(K(u.decoder_))};
Gl9=[];var OO9=function(u,K){this.JSC$8787_lo=u>>>0;this.JSC$8787_hi=K>>>0},aQb=function(u){if(!u)return czL||(czL=new OO9(0,0));
if(!/^\d+$/.test(u))return null;yV(u);return new OO9(EB,K_)},czL,ouy=function(u,K){this.JSC$8789_lo=u>>>0;
this.JSC$8789_hi=K>>>0},yXq=function(u){if(!u)return z$b||(z$b=new ouy(0,0));
if(!/^-?\d+$/.test(u))return null;yV(u);return new ouy(EB,K_)},z$b;var yF=function(){this.JSC$8791_buffer_=[]},sQq,e$L;
yF.prototype.length=function(){return this.JSC$8791_buffer_.length};
yF.prototype.end=function(){var u=this.JSC$8791_buffer_;this.JSC$8791_buffer_=[];return u};
sQq=function(u,K,l){for(;l>0||K>127;)u.JSC$8791_buffer_.push(K&127|128),K=(K>>>7|l<<25)>>>0,l>>>=7;u.JSC$8791_buffer_.push(K)};
e$L=function(u,K){for(;K>127;)u.JSC$8791_buffer_.push(K&127|128),K>>>=7;u.JSC$8791_buffer_.push(K)};
_.WJb=function(u,K){if(K>=0)e$L(u,K);else{for(var l=0;l<9;l++)u.JSC$8791_buffer_.push(K&127|128),K>>=7;u.JSC$8791_buffer_.push(1)}};
yF.prototype.writeUint8=function(u){this.JSC$8791_buffer_.push(u>>>0&255)};
_.eF=function(u,K){u.JSC$8791_buffer_.push(K>>>0&255);u.JSC$8791_buffer_.push(K>>>8&255);u.JSC$8791_buffer_.push(K>>>16&255);u.JSC$8791_buffer_.push(K>>>24&255)};
yF.prototype.writeInt8=function(u){this.JSC$8791_buffer_.push(u>>>0&255)};var R$R,OS,MFL,nuH;R$R=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new yF};
OS=function(u,K){K.length!==0&&(u.blocks_.push(K),u.totalLength_+=K.length)};
_.ei9=function(u,K){_.zg(u,K,2);K=u.encoder_.end();OS(u,K);K.push(u.totalLength_);return K};
_.Rir=function(u,K){var l=K.pop();for(l=u.totalLength_+u.encoder_.length()-l;l>127;)K.push(l&127|128),l>>>=7,u.totalLength_++;K.push(l);u.totalLength_++};
_.zg=function(u,K,l){e$L(u.encoder_,K*8+l)};
MFL=function(u,K,l){if(l!=null){switch(typeof l){case "string":aQb(l)}_.zg(u,K,1);switch(typeof l){case "number":u=u.encoder_;NqR(l);_.eF(u,EB);_.eF(u,K_);break;case "bigint":l=BigInt.asUintN(64,l);l=new OO9(Number(l&BigInt(4294967295)),Number(l>>BigInt(32)));u=u.encoder_;K=l.JSC$8787_hi;_.eF(u,l.JSC$8787_lo);_.eF(u,K);break;default:l=aQb(l),u=u.encoder_,K=l.JSC$8787_hi,_.eF(u,l.JSC$8787_lo),_.eF(u,K)}}};
nuH=function(u,K,l){_.zg(u,K,2);e$L(u.encoder_,l.length);OS(u,u.encoder_.end());OS(u,l)};var cEq,Qnq,P7Z,BDn,pXq;cEq=nM();_.UqH=nM();_.fQq=nM();Qnq=nM();P7Z=nM();_.JzR=nM();_.sR=nM();_.jnq=nM();BDn=nM();pXq=nM();_.iOH=nM();_.TDH=nM();_.b5=function(u,K,l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u,K,l)};
_.b5.prototype.toJSON=function(){return XI(this)};
_.b5.prototype.serialize=function(u){return JSON.stringify(XI(this,u))};
var OMn=function(u,K){if(K==null||K=="")return new u;K=JSON.parse(K);if(!Array.isArray(K))throw Error("V");return new u(jRo(K))};
_.b5.prototype.getExtension=function(u){paq(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u.fieldIndex);jCq(this,u.fieldIndex);return u.ctor?u.isRepeated?u.getExtensionFn(this,u.ctor,u.fieldIndex,_.vO(),u.JSC$8802_hasMessageId):u.getExtensionFn(this,u.ctor,u.fieldIndex,u.JSC$8802_hasMessageId):u.isRepeated?u.getExtensionFn(this,u.fieldIndex,_.vO(),u.JSC$8802_hasMessageId):u.getExtensionFn(this,u.fieldIndex,u.defaultValue,u.JSC$8802_hasMessageId)};
_.b5.prototype.clone=function(){var u=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=u[_.e2]|0;return yEy(this,u,K)?IBw(this,u,!0):new this.constructor(Eo(u,K,!1))};
_.b5.prototype[FI]=VV;_.b5.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var vr=function(u,K,l){this.$$binaryReaderFn=u;this.$$binaryWriterFn=K;u=kp(cEq);this.$$isMsg=!!u&&l===u||!1},JEh=aBb(function(u,K,l,D,d){if(u.nextWireType_!==2)return!1;
twq(u,IQH(K,D,l),d);return!0},Upo),j2o=aBb(function(u,K,l,D,d){if(u.nextWireType_!==2)return!1;
twq(u,IQH(K,D,l),d);return!0},Upo),mpn=Symbol(),i_h=Symbol(),F_r=Symbol(),L_w=Symbol(),Z_R=Symbol(),fBr,Q2H;var x9n,wXq,FVr,Vwq,gd9,NDb,klh,ZOH,YIH,Azb,XXq,h$b,EdH,uar,Ksh;x9n=function(u,K){var l=new R$R;uzL(u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l,xu(mpn,XEh,hiq,K));OS(l,l.encoder_.end());u=new Uint8Array(l.totalLength_);K=l.blocks_;for(var D=K.length,d=0,C=0;C<D;C++){var W=K[C];u.set(W,d);d+=W.length}l.blocks_=[u];return u};
wXq=_.cr(function(u,K,l){if(u.nextWireType_!==1)return!1;_.aQ(K,l,qIZ(u.decoder_));return!0},Iky,pXq);
FVr=_.cr(function(u,K,l,D){if(u.nextWireType_!==1)return!1;_.TR(K,l,D,qIZ(u.decoder_));return!0},Iky,pXq);
Vwq=_.cr(function(u,K,l,D){if(u.nextWireType_!==5)return!1;var d=_.Iq(u.decoder_);u=(d>>31)*2+1;var C=d>>>23&255;d&=8388607;_.TR(K,l,D,C==255?d?NaN:u*Infinity:C==0?u*1.401298464324817E-45*d:u*Math.pow(2,C-150)*(d+8388608));return!0},function(u,K,l){K=_.AHb(K);
K!=null&&(_.zg(u,l,5),u=u.encoder_,l=C5q||(C5q=new DataView(new ArrayBuffer(8))),l.setFloat32(0,+K,!0),K_=0,EB=l.getUint32(0,!0),_.eF(u,EB))},BDn);
_.oq=_.cr(function(u,K,l){if(u.nextWireType_!==0)return!1;_.aQ(K,l,_.dR(u.decoder_,dH));return!0},_.RQ,_.sR);
gd9=_.cr(function(u,K,l){if(u.nextWireType_!==0)return!1;u=_.dR(u.decoder_,dH);_.aQ(K,l,u===0?void 0:u);return!0},_.RQ,_.sR);
NDb=_.cr(function(u,K,l,D){if(u.nextWireType_!==0)return!1;_.TR(K,l,D,_.dR(u.decoder_,dH));return!0},_.RQ,_.sR);
_.Wy=_.cr(function(u,K,l){if(u.nextWireType_!==0)return!1;_.aQ(K,l,_.Ca(u.decoder_));return!0},HM9,Qnq);
klh=_.cr(function(u,K,l){if(u.nextWireType_!==0)return!1;u=_.Ca(u.decoder_);_.aQ(K,l,u===0?void 0:u);return!0},HM9,Qnq);
ZOH=_.cr(function(u,K,l,D){if(u.nextWireType_!==0)return!1;_.TR(K,l,D,_.Ca(u.decoder_));return!0},HM9,Qnq);
YIH=_.cr(function(u,K,l){if(u.nextWireType_!==1)return!1;_.aQ(K,l,Mwq(u.decoder_));return!0},_.qSZ,_.jnq);
Azb=_.d99(function(u,K,l){if(u.nextWireType_!==1&&u.nextWireType_!==2)return!1;K=_.qoy(K,K[_.e2]|0,l);u.nextWireType_==2?_.bOR(u,Mwq,K):K.push(Mwq(u.decoder_));return!0},function(u,K,l){K=_.D9Z(t2q,K,!1);
if(K!=null)for(var D=0;D<K.length;D++)MFL(u,l,K[D])},_.jnq);
_.Hy=_.cr(function(u,K,l){if(u.nextWireType_!==0)return!1;_.aQ(K,l,_.$qr(u.decoder_));return!0},_.$9n,_.UqH);
XXq=_.cr(function(u,K,l,D){if(u.nextWireType_!==0)return!1;_.TR(K,l,D,_.$qr(u.decoder_));return!0},_.$9n,_.UqH);
_.Mb=_.cr(function(u,K,l){if(u.nextWireType_!==2)return!1;_.aQ(K,l,_.xqH(u));return!0},_.rXR,_.fQq);
_.mqy=_.cr(function(u,K,l,D){if(u.nextWireType_!==2)return!1;_.TR(K,l,D,_.xqH(u));return!0},_.rXR,_.fQq);
h$b=_.d99(function(u,K,l){if(u.nextWireType_!==2)return!1;u=_.xqH(u);_.qoy(K,K[_.e2]|0,l).push(u);return!0},function(u,K,l){K=_.D9Z(_.wH,K,!0);
if(K!=null)for(var D=0;D<K.length;D++){var d=u,C=l,W=K[D];W!=null&&nuH(d,C,dw9(W))}},_.fQq);
EdH=void 0;EdH=EdH===void 0?cEq:EdH;_.qb=new vr(function(u,K,l,D,d){if(u.nextWireType_!==2)return!1;D=LaL(void 0,D,!0);_.qoy(K,K[_.e2]|0,l).push(D);twq(u,D,d);return!0},function(u,K,l,D,d){if(Array.isArray(K))for(var C=0;C<K.length;C++)vuq(u,K[C],l,D,d)},EdH);
_.$A=aBb(function(u,K,l,D,d,C){if(u.nextWireType_!==2)return!1;var W=K[_.e2]|0;rEb(K,W,C,l,k0(W));K=IQH(K,D,l);twq(u,K,d);return!0},vuq);
_.LVq=_.cr(function(u,K,l){if(u.nextWireType_!==2)return!1;_.aQ(K,l,_.SIo(u));return!0},_.Ggq,_.iOH);
uar=_.cr(function(u,K,l,D){if(u.nextWireType_!==2)return!1;_.TR(K,l,D,_.SIo(u));return!0},_.Ggq,_.iOH);
Ksh=_.cr(function(u,K,l,D){if(u.nextWireType_!==0)return!1;_.TR(K,l,D,_.Ca(u.decoder_)>>>0);return!0},function(u,K,l){K=_.LbZ(K);
K!=null&&K!=null&&(_.zg(u,l,0),e$L(u.encoder_,K))},P7Z);
_.rR=_.cr(function(u,K,l){if(u.nextWireType_!==0)return!1;_.aQ(K,l,_.Ca(u.decoder_));return!0},_.tFL,_.TDH);var dWq=function(){var u=lEh,K=DWh;this.fieldIndex=175237375;this.ctor=K;this.isRepeated=0;this.getExtensionFn=_.fV;this.defaultValue=void 0;this.JSC$8802_hasMessageId=u.messageId!=null?NS:void 0};
dWq.prototype.register=function(){c8(this)};var C$Z=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(C$Z,_.b5);var IEq=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(IEq,_.b5);var zuL=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(zuL,_.b5);var y2h=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(y2h,_.b5);var spr=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(spr,_.b5);var oCy=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(oCy,_.b5);var Wsb=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Wsb,_.b5);Wsb.prototype.getData=function(){return _.iD(this,2)};var H8q=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(H8q,_.b5);var MJw=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(MJw,_.b5);MJw.prototype.getStyle=function(){return _.fV(this,C$Z,1)};var JX=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(JX,_.b5);JX.prototype.getPayloadCase=function(){return _.wa(this,i5)};
JX.prototype.getStyle=function(){return _.uO(this,MJw,6,i5)};
var qw9=function(){var u=new JX,K=new spr;return _.Br(u,7,i5,K)},$WH=function(){var u=new JX,K=new oCy;
return _.Br(u,8,i5,K)},i5=[1,
2,3,4,5,6,7,8];var nCZ=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(nCZ,_.b5);var r2L=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(r2L,_.b5);var vCb=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(vCb,_.b5);var Gvr=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Gvr,_.b5);var tJb=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(tJb,_.b5);var xWw=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(xWw,_.b5);var Swq=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Swq,_.b5);var b8h=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(b8h,_.b5);b8h.prototype.getData=function(){return _.iD(this,2)};var O8q=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(O8q,_.b5);var akq=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(akq,_.b5);akq.prototype.getPayloadCase=function(){return _.wa(this,vy)};
var vy=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var G3=function(u,K){u=Error.call(this,u);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.code=K===void 0?2:K};
_.c(G3,Error);var c2r=Promise;var aEZ=function(u){this.channelPromise=u};
aEZ.prototype.send=function(u,K,l){this.channelPromise.then(function(D){D.send(u,K,l)})};var zvy=function(u,K){this.data=u;this.channel=K};
zvy.prototype.reply=function(u,K,l){this.channel.send(u,K,l)};var ev9=function(u){this.JSC$8868_port_=u};
ev9.prototype.send=function(u,K,l){l=l===void 0?[]:l;var D=new MessageChannel;Rvo(D.port1,K);this.JSC$8868_port_.postMessage(u,[D.port2].concat(l))};
var UWq=function(u,K){Rvo(u,K);return new ev9(u)},Rvo=function(u,K){K&&(u.onmessage=function(l){K(new zvy(l.data,UWq(l.ports[0])))})};var fEb=function(u){this.verifier_=u};
fEb.prototype.verify=function(u){return this.verifier_(u)};
var Qpr=function(u){var K=Object.create(null);(typeof u==="string"?[u]:u).forEach(function(l){if(l==="null")throw Error("X");K[l]=!0});
return function(l){return K[l]===!0}};_.P$R=function(){if(!_.lL.addEventListener||!Object.defineProperty)return!1;var u=!1,K=Object.defineProperty({},"passive",{get:function(){u=!0}});
try{var l=function(){};
_.lL.addEventListener("test",l,K);_.lL.removeEventListener("test",l,K)}catch(D){}return u}();var J2Z;_.ty=function(u){var K=u.destination;var l=u.iframe;var D=u.origin;var d=u.channelName===void 0?"ZNWN1d":u.channelName;var C=u.onMessage===void 0?void 0:u.onMessage;u=u.onEstablished===void 0?void 0:u.onEstablished;return J2Z({destination:K,getSource:function(){return l.contentWindow},
originVerifier:D instanceof fEb?D:typeof D==="function"?new fEb(D):new fEb(Qpr(D)),channelName:d,onMessage:C,onEstablished:u})};
J2Z=function(u){var K=u.destination;var l=u.getSource;var D=u.originVerifier;var d=u.token===void 0?void 0:u.token;var C=u.channelName;var W=u.onMessage===void 0?void 0:u.onMessage;var M=u.onEstablished===void 0?void 0:u.onEstablished;return new aEZ(new c2r(function(q,v){var G=function(t){t.source&&t.source===l()&&D.verify(t.origin)&&(t.data.n||t.data)===C&&(K.removeEventListener("message",G,!1),d&&t.data.t!==d?v(Error("Y`"+C+"`"+d+"`"+t.data.t)):(q(UWq(t.ports[0],W)),M&&M(t)))};
K.addEventListener("message",G,!1)}))};var jpH=function(u){try{u()}catch(K){DH(K)}};var pQn=function(u){var K=this;var l=u.getMessageType;var D=u.onUnregisteredMessage===void 0?function(){}:u.onUnregisteredMessage;
var d=u.onBeforeRegisteredMessage===void 0?function(){}:u.onBeforeRegisteredMessage;
u=u.onAfterRegisteredMessage===void 0?function(){}:u.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=l;this.onUnregisteredMessage_=D;this.onBeforeRegisteredMessage_=d;this.onAfterRegisteredMessage_=u;this.onMessage=function(C){return B7h(K,C)}};
pQn.prototype.register=function(u,K){this.registry_.set(u,K);return this};
var B7h=function(u,K){var l=u.getMessageType_(K.data),D=u.registry_.get(l);D?(jpH(function(){return u.onBeforeRegisteredMessage_(K,l)}),jpH(function(){return D(K)}),jpH(function(){return u.onAfterRegisteredMessage_(K,l)})):jpH(function(){return u.onUnregisteredMessage_(K,l)})};var i8r=function(u){this.JSC$8885_channel_=u},wQq,Fsq;
i8r.prototype.send=function(u,K,l){this.JSC$8885_channel_.send(XI(u),K,l)};
_.T7h=function(u,K){return function(l){var D=new u(l.data);return K(new zvy(D,l.channel))}};
wQq=function(u){return function(K){return u(new zvy(K.data,new i8r(K.channel)))}};
Fsq=function(u,K){return wQq(_.T7h(u,K))};var VJw=function(u,K,l,D){this.registry=u;this.delegate=K;this.receiveMessageConstructor=l;this.createInitMessage=D;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},cXR=function(u){var K=new pQn({getMessageType:u.getPayloadCase});
return new VJw(K,new i8r(_.ty({iframe:u.child,destination:window,origin:u.origin,channelName:u.channelName,onMessage:Fsq(u.receiveMessageConstructor,K.onMessage)})),u.receiveMessageConstructor,u.createInitMessage)},gCH=function(u,K){u.createInitMessage=K};
VJw.prototype.send=function(u){if(!this.initialised)throw new G3("Attempted to send a message before initialisation.");this.delegate.send(u)};
var N7b=function(u,K){return _.H(function(l){if(!u.initialised)throw new G3("Attempted to send a message before initialisation.");return l.return(new Promise(function(D){u.delegate.send(K,Fsq(u.receiveMessageConstructor,D))}))})};
VJw.prototype.init=function(){var u=this;return _.H(function(K){if(u.initialised)throw new G3("Attempted to initialise twice. The SDK can only be initialised once.");if(u.createInitMessage!==void 0){var l=u.delegate,D=l.send,d=u.createInitMessage;var C=new IEq;var W=[].concat(_.Am(u.features));C=_.Hr(C,1,W,_.G6);D.call(l,d.call(u,C))}u.initialised=!0;_.TG(K)})};
var xA=function(u,K){if(u.initialised)throw new G3('Attempted to set up API "'+K+'" after initialisation. All APIs must be set up before initialising the SDK.');u.features.add(K);return u.registry};
_.MN.Object.defineProperties(VJw.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var kvq=function(u){this.channel=u;this.registered=!1};
kvq.prototype.update=function(u){if(this.channel.isInitialised){if(!this.registered)throw new G3("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var K=new JX;var l=new y2h;l=_.OQ(l,1,u);K=_.Br(K,2,i5,l);this.channel.send(K)}else this.register();this.JSC$8899_audioEnabled=u};
kvq.prototype.register=function(){xA(this.channel,1);this.registered=!0};
kvq.prototype.isAudioEnabled=function(){return this.JSC$8899_audioEnabled};var Z8H=function(u){this.channel=u};
_.I=Z8H.prototype;_.I.onFirstFrameReady=function(u){xA(this.channel,2).register(11,function(K){K=_.uO(K.data,nCZ,11,vy);if(!K)throw new G3("Unexpectedly nonexistent GameFirstFrameReadyEvent");u(_.A0(K,1))})};
_.I.onReady=function(u){xA(this.channel,2).register(4,function(K){K=_.uO(K.data,vCb,4,vy);if(!K)throw new G3("Unexpectedly nonexistent GameReadyEvent");u(_.A0(K,1))})};
_.I.onLevelComplete=function(u){xA(this.channel,2).register(5,function(K){K=_.uO(K.data,Gvr,5,vy);if(!K)throw new G3("Unexpectedly nonexistent LevelCompleteEvent");u(_.A0(K,1),_.tq(K,2))})};
_.I.onGameOver=function(u){xA(this.channel,2).register(6,function(K){K=_.uO(K.data,r2L,6,vy);if(!K)throw new G3("Unexpectedly nonexistent GameOverEvent");u(_.A0(K,1))})};
_.I.pause=function(){var u=this;if(!this.channel.isInitialised)return xA(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new G3("Using unregistered Game Feature: pause.");var K=qw9();return new Promise(function(l){return _.H(function(D){if(D.nextAddress==1)return D.yield(N7b(u.channel,K),2);l();_.TG(D)})})};
_.I.resume=function(){var u=this;if(!this.channel.isInitialised)return xA(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new G3("Using unregistered Game Feature: resume.");var K=$WH();return new Promise(function(l){return _.H(function(D){if(D.nextAddress==1)return D.yield(N7b(u.channel,K),2);l();_.TG(D)})})};var Yww=function(u){this.channel=u};
Yww.prototype.onReady=function(u){xA(this.channel,5).register(8,function(K){if(!_.uO(K.data,tJb,8,vy))throw new G3("Unexpectedly nonexistent PageReadyEvent");u()})};var A2q=function(u){this.channel=u};
A2q.prototype.onChange=function(u){xA(this.channel,3).register(7,function(K){K=_.uO(K.data,xWw,7,vy);if(!K)throw new G3("Unexpectedly nonexistent ScoreEvent");u(_.A0(K,1),_.tq(K,2))})};var XQL={load:function(){throw new G3("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new G3("Storage used, but storage.onSave() listener not set!");}},mWn=function(u){this.channel=u;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},hvq=function(u){xA(u.channel,4).register(2,XQL.load).register(3,XQL.save);
u.initialSetupDone=!0};
mWn.prototype.onLoad=function(u){this.initialSetupDone||hvq(this);this.loadRegistered||(this.loadRegistered=!0,xA(this.channel,4).register(2,function(K){var l,D,d;return _.H(function(C){if(C.nextAddress==1){l=_.uO(K.data,Swq,2,vy);if(!l)throw new G3("Unexpectedly nonexistent StorageLoad");D=_.A0(l,1);return C.yield(u(D),2)}d=C.yieldResult;var W=K.reply,M=new JX;var q=new Wsb;q=_.Tj(q,1,D);q=_.SG(q,2,_.FH(d,!1));M=_.Br(M,3,i5,q);W.call(K,M);_.TG(C)})}))};
mWn.prototype.onSave=function(u){this.initialSetupDone||hvq(this);this.saveRegistered||(this.saveRegistered=!0,xA(this.channel,4).register(3,function(K){var l,D,d;return _.H(function(C){if(C.nextAddress==1){l=_.uO(K.data,b8h,3,vy);if(!l)throw new G3("Unexpectedly nonexistent StorageSave");D=_.A0(l,1);d=kCL(l.getData());return C.yield(u(D,d),2)}var W=K.reply,M=new JX;var q=new H8q;q=_.Tj(q,1,D);M=_.Br(M,4,i5,q);W.call(K,M);_.TG(C)})}))};var ECL=function(u){this.channel=u};
ECL.prototype.update=function(u){if(!this.channel.features.has(6))throw new G3("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var K=new JX,l=new MJw;u=_.jF(l,1,u);K=_.Br(K,6,i5,u);this.channel.send(K)};
ECL.prototype.register=function(){xA(this.channel,6)};var Lsq=function(u){this.channel=u;this.userActivityLoggingIntervalMs=0};
Lsq.prototype.onUserActivity=function(u,K){this.userActivityLoggingIntervalMs=K;xA(this.channel,7).register(9,function(l){if(!_.uO(l.data,O8q,9,vy))throw new G3("Unexpectedly nonexistent ClickEvent");u()})};var uqs=function(u){var K=this;this.channel=u;this.init=this.channel.init.bind(this.channel);this.page=new Yww(this.channel);this.game=new Z8H(this.channel);this.audio=new kvq(this.channel);this.score=new A2q(this.channel);this.storage=new mWn(this.channel);this.style=new ECL(this.channel);this.userActivity=new Lsq(this.channel);gCH(this.channel,function(l){var D=new zuL;l=_.jF(D,1,l);l=_.Ka(l,3,K.userActivity.userActivityLoggingIntervalMs);D=K.audio.isAudioEnabled();D!==void 0&&_.OQ(l,2,D);D=new JX;
return _.Br(D,5,i5,l)})};var KbB=function(){this.timedFunctionContext=0};
KbB.prototype.timeExecution=function(u,K){var l=this;return function(){var D=_.uY.apply(0,arguments);l.timedFunctionContext=u;return K.apply(null,_.Am(D))}};var lHH=function(){var u={};this.priorityTasks=(u[3]=[],u[2]=[],u[1]=[],u);this.isFlushing=!1},QY=function(u,K,l){var D=Dw2(u,l);
u.priorityTasks[l].push(K);D&&u.priorityTasks[l].length===1&&u.flush()},Dw2=function(u,K){return Object.keys(u.priorityTasks).map(function(l){return Number(l)}).filter(function(l){return!isNaN(l)&&l>K}).every(function(l){return u.priorityTasks[l].length===0})};
lHH.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(u){return u.length>0});)dws(this,3),dws(this,2),dws(this,1)}catch(u){throw Object.values(this.priorityTasks).forEach(function(K){return void K.splice(0,K.length)}),u;
}finally{this.isFlushing=!1}}};
var dws=function(u,K){for(;Dw2(u,K)&&u.priorityTasks[K].length>0;)u.priorityTasks[K][0](),u.priorityTasks[K].shift()};
_.MN.Object.defineProperties(lHH.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(u){return u.length>0})}}});var jQh={};var CLS=globalThis.trustedTypes,Ru9=CLS,fkZ;var wb=function(u){this.privateDoNotAccessOrElseWrappedResourceUrl=u};
wb.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var IHR,yHN,sR2,oyH,Wbw,H9C,MrS,qZs;IHR=_.oj([""]);yHN=sf(["\x00"],["\\0"]);sR2=sf(["\n"],["\\n"]);oyH=sf(["\x00"],["\\u0000"]);Wbw=_.oj([""]);H9C=sf(["\x00"],["\\0"]);MrS=sf(["\n"],["\\n"]);qZs=sf(["\x00"],["\\u0000"]);_.$wm=P5L(function(u){return u(IHR)})||P5L(function(u){return u(yHN)})||P5L(function(u){return u(sR2)})||P5L(function(u){return u(oyH)});
_.nyB=_.gb(Wbw)&&_.gb(H9C)&&_.gb(MrS)&&_.gb(qZs);var hX;_.N9=function(u,K){this.privateDoNotAccessOrElseWrappedUrl=K};
_.N9.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.rHR=ku("about:blank");hX=ku("about:invalid#zClosurez");var Bbq=function(u){this.isValid=u},vyw=new Bbq(function(u){return/^[^:]*([/?#]|$)/.test(u)}),GhS=AX("data"),trC=AX("http"),xw0=AX("https"),SZB=AX("ftp"),b90=AX("mailto"),O9m=AX("intent"),cHm=AX("vnd.youtube"),prr=[GhS,
trC,xw0,b90,SZB,vyw],Tbw=Tg(function(){return typeof URL==="function"}),aH2=["data:",
"http:","https:","mailto:","ftp:"],FJZ=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var dm=function(u){this.privateDoNotAccessOrElseWrappedHtml=u};
dm.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var LgZ=Tg(function(){return new dm(CLS?CLS.emptyHTML:"")});var zqB={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"},guR=function(u,K){var l=Error.call(this,u+" cannot be used with intent "+zqB[K]);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.type=u;this.intent=K;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.c(guR,Error);_.WZ=function(u){this.privateDoNotAccessOrElseWrappedScript=u};
_.WZ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var YSh=function(u){this.privateDoNotAccessOrElseWrappedAttributePrefix=u};
YSh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var AXL="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var Kor=function(u){var K=_.lZ("window.location.href");u==null&&(u='Unknown Error of type "null/undefined"');if(typeof u==="string")return{message:u,name:"Unknown error",lineNumber:"Not available",fileName:K,stack:"Not available"};var l=!1;try{var D=u.lineNumber||u.line||"Not available"}catch(W){D="Not available",l=!0}try{var d=u.fileName||u.filename||u.sourceURL||_.lL.$googDebugFname||K}catch(W){d="Not available",l=!0}K=eqA(u);if(!(!l&&u.lineNumber&&u.fileName&&u.stack&&u.message&&u.name)){l=u.message;
if(l==null){if(u.constructor&&u.constructor instanceof Function){if(u.constructor.name)l=u.constructor.name;else if(l=u.constructor,SQ[l])l=SQ[l];else{l=String(l);if(!SQ[l]){var C=/function\s+([^\(]+)/m.exec(l);SQ[l]=C?C[1]:"[Anonymous]"}l=SQ[l]}l='Unknown Error of type "'+l+'"'}else l="Unknown Error of unknown type";typeof u.toString==="function"&&Object.prototype.toString!==u.toString&&(l+=": "+u.toString())}return{message:l,name:u.name||"UnknownError",lineNumber:D,fileName:d,stack:K||"Not available"}}return{message:u.message,
name:u.name,lineNumber:u.lineNumber,fileName:u.fileName,stack:K}},eqA=function(u,K){K||(K={});
K[Rq0(u)]=!0;var l=u.stack||"",D=u.cause;D&&!K[Rq0(D)]&&(l+="\nCaused by: ",D.stack&&D.stack.indexOf(D.toString())==0||(l+=typeof D==="string"?D:D.message+"\n"),l+=eqA(D,K));u=u.errors;if(Array.isArray(u)){D=1;var d;for(d=0;d<u.length&&!(D>4);d++)K[Rq0(u[d])]||(l+="\nInner error "+D++ +": ",u[d].stack&&u[d].stack.indexOf(u[d].toString())==0||(l+=typeof u[d]==="string"?u[d]:u[d].message+"\n"),l+=eqA(u[d],K));d<u.length&&(l+="\n... "+(u.length-d)+" more inner errors")}return l},Rq0=function(u){var K=
"";
typeof u.toString==="function"&&(K=""+u);return K+u.stack},SQ={};var Uww,rv,Rw,QRw,PLN,fHw,KI,lI,jRa;Uww=function(u,K){for(var l=u.split("%s"),D="",d=Array.prototype.slice.call(arguments,1);d.length&&l.length>1;)D+=l.shift()+d.shift();return D+l.join("%s")};
_.CT=function(u){return encodeURIComponent(String(u))};
rv=function(u){return decodeURIComponent(u.replace(/\+/g," "))};
Rw=function(u){s0q.test(u)&&(u.indexOf("&")!=-1&&(u=u.replace(lzh,"&amp;")),u.indexOf("<")!=-1&&(u=u.replace(DzH,"&lt;")),u.indexOf(">")!=-1&&(u=u.replace(dzH,"&gt;")),u.indexOf('"')!=-1&&(u=u.replace(Cg9,"&quot;")),u.indexOf("'")!=-1&&(u=u.replace(Izh,"&#39;")),u.indexOf("\x00")!=-1&&(u=u.replace(y4y,"&#0;")));return u};
QRw=function(u){var K={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var l=_.lL.document.createElement("div");return u.replace(fHw,function(D,d){var C=K[D];if(C)return C;d.charAt(0)=="#"&&(d=Number("0"+d.slice(1)),isNaN(d)||(C=String.fromCharCode(d)));C||(_.nH(l,CH(D+" ")),C=l.firstChild.nodeValue.slice(0,-1));return K[D]=C})};
PLN=function(u){return u.replace(/&([^;]+);/g,function(K,l){switch(l){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return l.charAt(0)!="#"||(l=Number("0"+l.slice(1)),isNaN(l))?K:String.fromCharCode(l)}})};
fHw=/&([^;\s<&]+);?/g;_.OJy=function(u){return String(u).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.JHN=String.prototype.repeat?function(u,K){return u.repeat(K)}:function(u,K){return Array(K+1).join(u)};
_.bO=function(u,K){if(!Number.isFinite(u))return String(u);u=String(u);var l=u.indexOf(".");l===-1&&(l=u.length);var D=u[0]==="-"?"-":"";D&&(u=u.substring(1));return D+(0,_.JHN)("0",Math.max(0,K-l))+u};
KI=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.x2()).toString(36)};
lI=function(u){for(var K=0,l=0;l<u.length;++l)K=31*K+u.charCodeAt(l)>>>0;return K};
_.P_=function(u){return String(u).replace(/\-([a-z])/g,function(K,l){return l.toUpperCase()})};
_.Qi=function(u){return String(u).replace(/([A-Z])/g,"-$1").toLowerCase()};
jRa=function(u){return u.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(K,l,D){return l+D.toUpperCase()})};var BqN=function(){this.names=new Map};
BqN.prototype.getName=function(u){var K=this.names.get(u);if(K)return K;var l;K=(l=u.description)!=null?l:KI();this.names.set(u,K);return K};var poS=function(u){var K=Error.call(this,u?u.length+" errors occurred during unsubscription:\n"+u.map(function(l,D){return D+1+") "+l.toString()}).join("\n  "):"");
this.message=K.message;"stack"in K&&(this.stack=K.stack);this.errors=u;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.c(poS,Error);var xP=function(u){this.initialTeardown=u;this.closed=!1;this._teardowns=this._parentage=null};
_.I=xP.prototype;
_.I.unsubscribe=function(){if(!this.closed){this.closed=!0;var u=this._parentage;if(Array.isArray(u))for(var K=_.y(u),l=K.next();!l.done;l=K.next())l.value.remove(this);else u==null||u.remove(this);K=this.initialTeardown;if(tm(K))try{K()}catch(C){var D=C instanceof poS?C.errors:[C]}var d=this._teardowns;if(d)for(this._teardowns=null,K=_.y(d),l=K.next();!l.done;l=K.next()){l=l.value;try{tm(l)?l():l.unsubscribe()}catch(C){l=void 0,D=(l=D)!=null?l:[],C instanceof poS?D=[].concat(_.Am(D),_.Am(C.errors)):
D.push(C)}}if(D)throw new poS(D);}};
_.I.add=function(u){if(u&&u!==this)if(this.closed)tm(u)?u():u.unsubscribe();else{if(u instanceof xP){if(u.closed||u._hasParent(this))return;u._addParent(this)}var K;(this._teardowns=(K=this._teardowns)!=null?K:[]).push(u)}};
_.I._hasParent=function(u){var K=this._parentage;return K===u||Array.isArray(K)&&K.includes(u)};
_.I._addParent=function(u){var K=this._parentage;this._parentage=Array.isArray(K)?(K.push(u),K):K?[K,u]:u};
_.I._removeParent=function(u){var K=this._parentage;K===u?this._parentage=null:Array.isArray(K)&&Eu9(K,u)};
_.I.remove=function(u){var K=this._teardowns;K&&Eu9(K,u);u instanceof xP&&u._removeParent(this)};
var i9k=new xP;i9k.closed=!0;xP.JSC$8995_EMPTY=i9k;var unr=function(){setTimeout.apply(null,_.Am(_.uY.apply(0,arguments)))};var OR=function(u){xP.call(this);this.JSC$9000_isStopped=!1;this.destination=u instanceof OR?u:new cy(!u||tm(u)?{next:u!=null?u:void 0}:u);LJq(u)&&u.add(this)};
_.c(OR,xP);OR.JSC$8995_EMPTY=xP.JSC$8995_EMPTY;OR.create=function(u,K,l){return new aq(u,K,l)};
_.I=OR.prototype;_.I.next=function(u){this.JSC$9000_isStopped||this._next(u)};
_.I.error=function(u){this.JSC$9000_isStopped||(this.JSC$9000_isStopped=!0,this._error(u))};
_.I.complete=function(){this.JSC$9000_isStopped||(this.JSC$9000_isStopped=!0,this._complete())};
_.I.unsubscribe=function(){this.closed||(this.JSC$9000_isStopped=!0,xP.prototype.unsubscribe.call(this))};
_.I._next=function(u){this.destination.next(u)};
_.I._error=function(u){this.destination.error(u);this.unsubscribe()};
_.I._complete=function(){this.destination.complete();this.unsubscribe()};
var cy=function(u){this.partialObserver=u};
cy.prototype.next=function(u){var K=this.partialObserver;if(K.next)try{K.next(u)}catch(l){bY(l)}};
cy.prototype.error=function(u){var K=this.partialObserver;if(K.error)try{K.error(u)}catch(l){bY(l)}else bY(u)};
cy.prototype.complete=function(){var u=this.partialObserver;if(u.complete)try{u.complete()}catch(K){bY(K)}};
var aq=function(u,K,l){OR.call(this);var D;tm(u)||!u?D={next:u!=null?u:void 0,error:K!=null?K:void 0,complete:l!=null?l:void 0}:D=u;this.destination=new cy(D)};
_.c(aq,OR);aq.JSC$8995_EMPTY=OR.JSC$8995_EMPTY;aq.create=OR.create;var RS=typeof Symbol==="function"&&Symbol.observable||"@@observable";var ej=function(u){u&&(this._subscribe=u)};
_.I=ej.prototype;_.I.lift=function(u){var K=new ej;K.source=this;K.operator=u;return K};
_.I.subscribe=function(u,K,l){u=u&&u instanceof OR||u&&tm(u.next)&&tm(u.error)&&tm(u.complete)&&LJq(u)?u:new aq(u,K,l);K=this.operator;l=this.source;u.add(K?K.call(u,l):l?this._subscribe(u):this._trySubscribe(u));return u};
_.I._trySubscribe=function(u){try{return this._subscribe(u)}catch(K){u.error(K)}};
_.I.forEach=function(u,K){var l=this;K=lIh(K);return new K(function(D,d){var C=l.subscribe(function(W){try{u(W)}catch(M){d(M),C==null||C.unsubscribe()}},d,D)})};
_.I._subscribe=function(u){var K;return(K=this.source)==null?void 0:K.subscribe(u)};
ej.prototype[RS]=function(){return this};
ej.prototype.pipe=function(){var u=_.uY.apply(0,arguments);return u.length?KWr(u)(this):this};
ej.create=function(u){return new ej(u)};var Tqa=function(){var u=Error.call(this,"object unsubscribed");this.message=u.message;"stack"in u&&(this.stack=u.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.c(Tqa,Error);var RO=function(){this.observers=[];this.hasError=this.JSC$9016_isStopped=this.closed=!1;this.thrownError=null};
_.c(RO,ej);_.I=RO.prototype;_.I.lift=function(u){var K=new z3(this,this);K.operator=u;return K};
_.I._throwIfClosed=function(){if(this.closed)throw new Tqa;};
_.I.next=function(u){this._throwIfClosed();if(!this.JSC$9016_isStopped){var K=this.observers.slice();K=_.y(K);for(var l=K.next();!l.done;l=K.next())l.value.next(u)}};
_.I.error=function(u){this._throwIfClosed();if(!this.JSC$9016_isStopped){this.hasError=this.JSC$9016_isStopped=!0;this.thrownError=u;for(var K=this.observers;K.length;)K.shift().error(u)}};
_.I.complete=function(){this._throwIfClosed();if(!this.JSC$9016_isStopped){this.JSC$9016_isStopped=!0;for(var u=this.observers;u.length;)u.shift().complete()}};
_.I.unsubscribe=function(){this.JSC$9016_isStopped=this.closed=!0;this.observers=null};
_.I._trySubscribe=function(u){this._throwIfClosed();return ej.prototype._trySubscribe.call(this,u)};
_.I._subscribe=function(u){this._throwIfClosed();this._checkFinalizedStatuses(u);return this._innerSubscribe(u)};
_.I._innerSubscribe=function(u){var K=this,l=this.JSC$9016_isStopped,D=this.observers;return this.hasError||l?xP.JSC$8995_EMPTY:(D.push(u),new xP(function(){return Eu9(K.observers,u)}))};
_.I._checkFinalizedStatuses=function(u){var K=this.thrownError,l=this.JSC$9016_isStopped;this.hasError?u.error(K):l&&u.complete()};
RO.create=function(u,K){return new z3(u,K)};
var z3=function(u,K){RO.call(this);this.destination=u;this.source=K};
_.c(z3,RO);z3.create=RO.create;z3.prototype.next=function(u){var K,l;(K=this.destination)==null||(l=K.next)==null||l.call(K,u)};
z3.prototype.error=function(u){var K,l;(K=this.destination)==null||(l=K.error)==null||l.call(K,u)};
z3.prototype.complete=function(){var u,K;(u=this.destination)==null||(K=u.complete)==null||K.call(u)};
z3.prototype._subscribe=function(u){var K,l;return(l=(K=this.source)==null?void 0:K.subscribe(u))!=null?l:xP.JSC$8995_EMPTY};var Du=function(u){RO.call(this);this._value=u};
_.c(Du,RO);Du.create=RO.create;Du.prototype._subscribe=function(u){var K=RO.prototype._subscribe.call(this,u);!K.closed&&u.next(this._value);return K};
Du.prototype.getValue=function(){var u=this.thrownError,K=this._value;if(this.hasError)throw u;this._throwIfClosed();return K};
Du.prototype.next=function(u){RO.prototype.next.call(this,this._value=u)};
_.MN.Object.defineProperties(Du.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var LH=new ej(function(u){return u.complete()});var IIh=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var HHh=function(u){return u&&typeof u.length==="number"&&typeof u!=="function"};var woN={now:function(){return(woN.delegate||Date).now()},
delegate:void 0};var nS=function(u,K,l){u=u===void 0?Infinity:u;K=K===void 0?Infinity:K;l=l===void 0?woN:l;RO.call(this);this.bufferSize=u;this.windowTime=K;this.timestampProvider=l;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=K===Infinity;this.bufferSize=Math.max(1,u);this.windowTime=Math.max(1,K)};
_.c(nS,RO);nS.create=RO.create;nS.prototype.next=function(u){var K=this.buffer,l=this.infiniteTimeWindow,D=this.timestampProvider,d=this.windowTime;this.JSC$9016_isStopped||(K.push(u),!l&&K.push(D.now()+d));Fbw(this);RO.prototype.next.call(this,u)};
nS.prototype._subscribe=function(u){this._throwIfClosed();Fbw(this);for(var K=this._innerSubscribe(u),l=this.infiniteTimeWindow,D=this.buffer.slice(),d=0;d<D.length&&!u.closed;d+=l?1:2)u.next(D[d]);this._checkFinalizedStatuses(u);return K};
var Fbw=function(u){var K=u.bufferSize,l=u.timestampProvider,D=u.buffer;u=u.infiniteTimeWindow;var d=(u?1:2)*K;K<Infinity&&d<D.length&&D.splice(0,D.length-d);if(!u){K=l.now();l=0;for(u=1;u<D.length&&D[u]<=K;u+=2)l=u;l&&D.splice(0,l+1)}};var gyA=function(u,K){K=K===void 0?Vra:K;this.schedulerActionCtor=u;this.now=K};
gyA.prototype.schedule=function(u,K,l){K=K===void 0?0:K;return(new this.schedulerActionCtor(this,u)).schedule(l,K)};
var Vra=woN.now;var D0q=function(){var u=Error.call(this,"no elements in sequence");this.message=u.message;"stack"in u&&(this.stack=u.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.c(D0q,Error);var kP=function(u,K,l,D,d){OR.call(this,u);this.onUnsubscribe=d;K&&(this._next=function(C){try{K(C)}catch(W){this.destination.error(W)}});
l&&(this._error=function(C){try{l(C)}catch(W){this.destination.error(W)}this.unsubscribe()});
D&&(this._complete=function(){try{D()}catch(C){this.destination.error(C)}this.unsubscribe()})};
_.c(kP,OR);kP.JSC$8995_EMPTY=OR.JSC$8995_EMPTY;kP.create=OR.create;kP.prototype.unsubscribe=function(){var u;this.closed||(u=this.onUnsubscribe)!=null&&u.call(this);OR.prototype.unsubscribe.call(this)};var HK=function(u,K){this.source=u;this.subjectFactory=K;this._subject=null;this._refCount=0;this._connection=null};
_.c(HK,ej);HK.create=ej.create;HK.prototype._subscribe=function(u){return NqC(this).subscribe(u)};
var NqC=function(u){var K=u._subject;if(!K||K.JSC$9016_isStopped)u._subject=u.subjectFactory();return u._subject};
HK.prototype._teardown=function(){this._refCount=0;var u=this._connection;this._subject=this._connection=null;u==null||u.unsubscribe()};
HK.prototype.connect=function(){var u=this,K=this._connection;if(!K){K=this._connection=new xP;var l=NqC(this);K.add(this.source.subscribe(new kP(l,void 0,function(D){u._teardown();l.error(D)},function(){u._teardown();
l.complete()},function(){return u._teardown()})));
K.closed&&(this._connection=null,K=xP.JSC$8995_EMPTY)}return K};var OHZ=Array.isArray;var aIo=Array.isArray,kha=Object,z39=kha.getPrototypeOf,e3q=kha.prototype,R3h=kha.keys;var mW=function(u,K,l){OR.call(this,u);this._next=K;this.shouldComplete=l};
_.c(mW,OR);mW.JSC$8995_EMPTY=OR.JSC$8995_EMPTY;mW.create=OR.create;mW.prototype._complete=function(){this.shouldComplete()?OR.prototype._complete.call(this):this.unsubscribe()};var iHH=["addListener","removeListener"],pZZ=["addEventListener","removeEventListener"],wZR=["on","off"];var eQ=function(){xP.call(this)};
_.c(eQ,xP);eQ.JSC$8995_EMPTY=xP.JSC$8995_EMPTY;eQ.prototype.schedule=function(){return this};var Z9a=function(u,K){return setInterval.apply(null,[u,K].concat(_.Am(_.uY.apply(2,arguments))))};var Rq=function(u,K){xP.call(this);this.scheduler=u;this.work=K;this.pending=!1};
_.c(Rq,eQ);Rq.JSC$8995_EMPTY=eQ.JSC$8995_EMPTY;Rq.prototype.schedule=function(u,K){K=K===void 0?0:K;if(this.closed)return this;this.state=u;u=this.id;var l=this.scheduler;u!=null&&(this.id=YZA(this,u,K));this.pending=!0;this.delay=K;this.id=this.id||this.requestAsyncId(l,this.id,K);return this};
Rq.prototype.requestAsyncId=function(u,K,l){l=l===void 0?0:l;return Z9a(u.flush.bind(u,this),l)};
var YZA=function(u,K,l){l=l===void 0?0:l;if(l!=null&&u.delay===l&&u.pending===!1)return K;clearInterval(K)};
Rq.prototype.execute=function(u,K){if(this.closed)return Error("ha");this.pending=!1;if(u=this._execute(u,K))return u;this.pending===!1&&this.id!=null&&(this.id=YZA(this,this.id,null))};
Rq.prototype._execute=function(u){var K=!1;try{this.work(u)}catch(D){K=!0;var l=!!D&&D||Error(D)}if(K)return this.unsubscribe(),l};
Rq.prototype.unsubscribe=function(){if(!this.closed){var u=this.id,K=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Eu9(K,this);u!=null&&(this.id=YZA(this,u,null));this.delay=null;eQ.prototype.unsubscribe.call(this)}};var AHa=function(u,K){K=K===void 0?Vra:K;gyA.call(this,u,K);this.actions=[];this.active=!1;this.scheduled=void 0};
_.c(AHa,gyA);AHa.prototype.flush=function(u){var K=this.actions;if(this.active)K.push(u);else{var l;this.active=!0;do if(l=u.execute(u.state,u.delay))break;while(u=K.shift());this.active=!1;if(l){for(;u=K.shift();)u.unsubscribe();throw l;}}};var VY=new ej(Sj);var FWo=Array.isArray;var UR=function(u,K){Rq.call(this,u,K);this.scheduler=u;this.work=K};
_.c(UR,Rq);UR.JSC$8995_EMPTY=Rq.JSC$8995_EMPTY;UR.prototype.schedule=function(u,K){K=K===void 0?0:K;if(K>0)return Rq.prototype.schedule.call(this,u,K);this.delay=K;this.state=u;this.scheduler.flush(this);return this};
UR.prototype.execute=function(u,K){return K>0||this.closed?Rq.prototype.execute.call(this,u,K):this._execute(u,K)};
UR.prototype.requestAsyncId=function(u,K,l){l=l===void 0?0:l;return l!=null&&l>0||l==null&&this.delay>0?Rq.prototype.requestAsyncId.call(this,u,K,l):u.flush(this)};var Xow=function(){AHa.apply(this,arguments)};
_.c(Xow,AHa);var S2h=new Xow(UR);var mwN=function(){this.performanceMonitor=new KbB;this.queue=new lHH;this.internalSymbol=Symbol();this.debugNames=new BqN};
mwN.prototype.getOnBackgrounded=function(){return VY};
_.MN.Object.defineProperties(mwN.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var fa=function(u,K){K=Error.call(this,K?u+": "+K:String(u));this.message=K.message;"stack"in K&&(this.stack=K.stack);this.code=u;this.__proto__=fa.prototype;this.name=String(u)};
_.c(fa,Error);var gu=function(u){fa.call(this,1E3,'sfr:"'+u+'"');this.measurementStrategyFailureReason=u;this.__proto__=gu.prototype};
_.c(gu,fa);var N0=function(){fa.call(this,1003);this.__proto__=N0.prototype};
_.c(N0,fa);var QF=function(){fa.call(this,1009);this.__proto__=QF.prototype};
_.c(QF,fa);var hqH=function(){fa.call(this,1011);this.__proto__=hqH.prototype};
_.c(hqH,fa);var Ey0=function(){fa.call(this,1007);this.__proto__=N0.prototype};
_.c(Ey0,fa);var wu=function(u){fa.call(this,1004,String(u));this.inputObservableIndex=u;this.__proto__=wu.prototype};
_.c(wu,fa);var nVq=function(u){fa.call(this,1010,u);this.__proto__=rqo.prototype};
_.c(nVq,fa);var rqo=function(u){fa.call(this,1005,u);this.__proto__=rqo.prototype};
_.c(rqo,fa);var LbB=function(u){var K=_.uY.apply(1,arguments),l=this;this.orderedFactories=[];this.orderedFactories.push(u);K.forEach(function(D){l.orderedFactories.push(D)})};
LbB.prototype.isSupported=function(u){return this.orderedFactories.some(function(K){return K.isSupported(u)})};
LbB.prototype.makeBeacon=function(u,K){for(var l=0;l<this.orderedFactories.length;l++)if(this.orderedFactories[l].isSupported(K))return this.orderedFactories[l].makeBeacon(u,K);throw new QF;};var Crh=Symbol("ia"),uHw=Symbol("ja"),DM=function(u,K){this.value=u;this.timeline=K},lQ=function(u,K){if(K.timeline!==u.timeline)throw new Ey0;
return u.value-K.value};
_.I=DM.prototype;_.I.equals=function(u){return lQ(this,u)===0};
_.I.maximum=function(u){if(u.timeline!==this.timeline)throw new Ey0;return this.value>=u.value?this:u};
_.I.round=function(){return new DM(Math.round(this.value),this.timeline)};
_.I.add=function(u){return new DM(this.value+u,this.timeline)};
_.I.toString=function(){return String(this.value)};var Py=function(u,K){this.context=u;this.JSC$9122_pinger=K};
Py.prototype.isSupported=function(u){return this.JSC$9122_pinger.isSupported(u)};
Py.prototype.makeBeacon=function(u,K){if(!this.isSupported(K))throw new QF;return new Jy(this.context,this.JSC$9122_pinger,K!=null?K:void 0,u)};
var Jy=function(u,K,l,D){var d=this;this.JSC$9128_pinger=K;this.properties=l;this.url=D;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var C;this.method=(C=l==null?void 0:l.beaconMethod)!=null?C:"GET";this.backgroundedSubscription=u.getOnBackgrounded().subscribe(function(){d.sendNow()})};
Jy.prototype.deactivate=function(){this.internalIsPending=!1};
Jy.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9128_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var u,K;this.JSC$9128_pinger.pingWithHeadersAndBody((u=this.properties)!=null?u:{},this.customHeaders,(K=this.body)!=null?K:"",this.url)}else this.JSC$9128_pinger.ping(this.url);this.internalIsPending=!1}catch(l){}else this.internalIsPending=!1};
Jy.prototype.setHeader=function(u,K){this.customHeaders.set(u,K)};
_.MN.Object.defineProperties(Jy.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var lAs=function(){for(var u=_.y(_.uY.apply(0,arguments)),K=u.next();!K.done;K=u.next())if(K=K.value,K.available()){this.timeProvider=K;return}this.timeProvider=new Ka0};
_.I=lAs.prototype;_.I.available=function(){return this.timeProvider.available()};
_.I.now=function(){return this.timeProvider.now()};
_.I.setTimeout=function(u,K){return this.timeProvider.setTimeout(u,K)};
_.I.clearTimeout=function(u){this.timeProvider.clearTimeout(u)};
_.I.interval=function(u,K){var l=this.intervalObservable(u).subscribe(K);return function(){return void l.unsubscribe()}};
_.I.intervalObservable=function(u){return this.timeProvider.intervalObservable(u)};
_.MN.Object.defineProperties(lAs.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var Ka0=function(){this.timeline=Symbol()};
_.I=Ka0.prototype;_.I.available=function(){return!1};
_.I.now=function(){return new DM(0,this.timeline)};
_.I.setTimeout=function(){return 0};
_.I.clearTimeout=function(){};
_.I.interval=function(){return function(){}};
_.I.intervalObservable=function(){return VY};var jQ=function(u,K){this.intrinsicFunctionNamespace=u;this.performanceMonitor=K};
_.I=jQ.prototype;_.I.setTimeout=function(u,K){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,u),K)};
_.I.clearTimeout=function(u){this.intrinsicFunctionNamespace.clearTimeout(u)};
_.I.interval=function(u,K){var l=this.intervalObservable(u).subscribe(K);return function(){return void l.unsubscribe()}};
_.I.intervalObservable=function(u){var K=this;return new ej(function(l){var D=0,d=K.intrinsicFunctionNamespace.setInterval(function(){l.next(D++)},u);
return function(){K.intrinsicFunctionNamespace.clearInterval(d)}})};
_.I.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var DSS=function(u,K){jQ.call(this,u,K);this.timeline=uHw};
_.c(DSS,jQ);DSS.prototype.now=function(){return new DM(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
DSS.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&jQ.prototype.available.call(this)};var dSs=function(u,K){jQ.call(this,u,K);this.timeline=Crh};
_.c(dSs,jQ);dSs.prototype.now=function(){return new DM(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
dSs.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&jQ.prototype.available.call(this)};var IAH=function(u){this.context=u;if(Ckk===void 0)a:{var K,l,D=(K=u.global)==null?void 0:(l=K.document)==null?void 0:l.createElement("meta");if(D)try{D.httpEquiv="origin-trial";D.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";u.global.document.head.append(D);Ckk=D;break a}catch(d){}Ckk=void 0}},
Ckk;
IAH.prototype.isSupported=function(u){return h3n(this.context)!==void 0&&!(u==null||!u.endOfSession)&&!By(this.context)&&!(u==null?0:u.attributionEnabled)&&!(u==null?0:u.customHeaders)&&!(u==null?0:u.customBody)};
IAH.prototype.makeBeacon=function(u,K){if(!this.isSupported(K))throw new QF;return new pa(this.context,u,K)};
var pa=function(u,K,l){this.context=u;this.properties=l;this.JSC$9155_urlWithoutToken=K;var D;this.beaconMethod=(D=l==null?void 0:l.beaconMethod)!=null?D:"GET";u=h3n(this.context);if(u===void 0)throw Error();this.fetchLater=u;yRA(this,sCH(this))},yRA=function(u,K){u.beaconResult&&u.beaconResult.activated||(u.beaconAbort=new AbortController,u.beaconResult=u.fetchLater(K,{method:u.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:u.beaconAbort.signal,activateAfter:96E4}))},sCH=function(u){u=u.JSC$9155_urlWithoutToken;
return(u.slice(-1)[0]==="&"?u:u+"&")+"flapi=1"};
pa.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
pa.prototype.sendNow=function(){};
pa.prototype.setHeader=function(){};
_.MN.Object.defineProperties(pa.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9155_urlWithoutToken},
set:function(u){this.JSC$9155_urlWithoutToken=u;u=sCH(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);yRA(this,u)}},
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 o0R=function(u){this.context=u};
o0R.prototype.isSupported=function(){return!By(this.context)&&!!this.context.global.fetch};
o0R.prototype.ping=function(){var u=this;return uQ.apply(null,_.Am(_.uY.apply(0,arguments).map(function(K){return fH(u.context.global.fetch(K,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(YP(function(l){return l.status===200}))}))).pipe(d0h(function(K){return K}),IMy())};
o0R.prototype.pingWithHeadersAndBody=function(u,K,l){for(var D=_.uY.apply(3,arguments),d=this,C=new Headers,W=_.y(K.entries()),M=W.next();!M.done;M=W.next()){var q=_.y(M.value);M=q.next().value;q=q.next().value;C.set(M,q)}var v,G=(v=u.keepAlive)!=null?v:!1;uQ.apply(null,_.Am(D.map(function(t){return fH(d.context.global.fetch(t,Object.assign({},{method:String(u.beaconMethod),cache:"no-cache"},G?{keepalive:!0}:{},{mode:"no-cors",headers:C,body:l}))).pipe(YP(function(x){return x.status===200}))}))).pipe(d0h(function(t){return t}),
IMy())};var WaB,mUZ;_.iO=function(){};
_.wq=function(u){return u};
WaB=function(u){var K=K||0;return function(){return u.apply(this,Array.prototype.slice.call(arguments,0,K))}};
_.T3=function(u){var K=!1,l;return function(){K||(l=u(),K=!0);return l}};
_.wR=function(u,K){var l=0;return function(D){_.lL.clearTimeout(l);var d=arguments;l=_.lL.setTimeout(function(){u.apply(void 0,d)},K)}};
mUZ=function(u,K){var l=0,D=!1,d=[],C=function(){l=0;D&&(D=!1,W())},W=function(){l=_.lL.setTimeout(C,K);
var M=d;d=[];u.apply(void 0,M)};
return function(M){d=arguments;l?D=!0:W()}};var M2a=function(){return Gh&&xy?xy.mobile:!HsH()&&(OZ("iPod")||OZ("iPhone")||OZ("Android")||OZ("IEMobile"))},HsH=function(){return Gh&&xy?!xy.mobile&&(OZ("iPad")||OZ("Android")||OZ("Silk")):OZ("iPad")||OZ("Android")&&!OZ("Mobile")||OZ("Silk")};var qBR;_.k$={};qBR="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.k$.add=function(u,K,l){if(u!==null&&K in u)throw Error("la`"+K);u[K]=l};
_.k$.clear=function(u){for(var K in u)delete u[K]};
_.k$.clone=function(u){var K={},l;for(l in u)K[l]=u[l];return K};
_.k$.contains=function(u,K){return WpL(u,K)};
_.k$.containsKey=function(u,K){return u!==null&&K in u};
_.k$.containsValue=WpL;_.k$.create=qyn;_.k$.createImmutableView=function(u){var K=u;Object.isFrozen&&!Object.isFrozen(u)&&(K=Object.create(u),Object.freeze(K));return K};
_.k$.createSet=$0h;_.k$.equals=function(u,K){for(var l in u)if(!(l in K)||u[l]!==K[l])return!1;for(var D in K)if(!(D in u))return!1;return!0};
_.k$.every=function(u,K,l){for(var D in u)if(!K.call(l,u[D],D,u))return!1;return!0};
_.k$.extend=function(u,K){for(var l,D,d=1;d<arguments.length;d++){D=arguments[d];for(l in D)u[l]=D[l];for(var C=0;C<qBR.length;C++)l=qBR[C],Object.prototype.hasOwnProperty.call(D,l)&&(u[l]=D[l])}};
_.k$.filter=function(u,K,l){var D={},d;for(d in u)K.call(l,u[d],d,u)&&(D[d]=u[d]);return D};
_.k$.findKey=HSR;_.k$.findValue=function(u,K,l){return(K=HSR(u,K,l))&&u[K]};
_.k$.forEach=function(u,K,l){for(var D in u)K.call(l,u[D],D,u)};
_.k$.get=function(u,K,l){return u!==null&&K in u?u[K]:l};
_.k$.getAllPropertyNames=function(u,K,l){if(!u)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return o$r(u);for(var D={};u&&(u!==Object.prototype||K)&&(u!==Function.prototype||l);){for(var d=Object.getOwnPropertyNames(u),C=0;C<d.length;C++)D[d[C]]=!0;u=Object.getPrototypeOf(u)}return o$r(D)};
_.k$.getAnyKey=function(u){for(var K in u)return K};
_.k$.getAnyValue=function(u){for(var K in u)return u[K]};
_.k$.getCount=function(u){var K=0,l;for(l in u)K++;return K};
_.k$.getKeys=o$r;_.k$.getSuperClass=function(u){return(u=Object.getPrototypeOf(u.prototype))&&u.constructor};
_.k$.getValueByKeys=function(u,K){var l=_.mb(K),D=l?K:arguments;for(l=l?0:1;l<D.length;l++){if(u==null)return;u=u[D[l]]}return u};
_.k$.getValues=function(u){var K=[],l=0,D;for(D in u)K[l++]=u[D];return K};
_.k$.isEmpty=function(u){for(var K in u)return!1;return!0};
_.k$.isImmutableView=function(u){return!!Object.isFrozen&&Object.isFrozen(u)};
_.k$.map=function(u,K,l){var D={},d;for(d in u)D[d]=K.call(l,u[d],d,u);return D};
_.k$.remove=function(u,K){var l;(l=K in u)&&delete u[K];return l};
_.k$.set=function(u,K,l){u[K]=l};
_.k$.setIfUndefined=function(u,K,l){return K in u?u[K]:u[K]=l};
_.k$.setWithReturnValueIfNotSet=function(u,K,l){if(K in u)return u[K];l=l();return u[K]=l};
_.k$.some=function(u,K,l){for(var D in u)if(K.call(l,u[D],D,u))return!0;return!1};
_.k$.transpose=function(u){var K={},l;for(l in u)K[u[l]]=l;return K};
_.k$.unsafeClone=MAq;var FV=function(u,K,l,D,d){this.allowedElements=u;this.elementPolicies=K;this.allowedGlobalAttributes=l;this.globalAttributePolicies=D;this.globallyAllowedAttributePrefixes=d},$SC=function(u,K,l){l=u.elementPolicies.get(l);
return(l==null?0:l.has(K))?l.get(K):u.allowedGlobalAttributes.has(K)?{policyAction:1}:(l=u.globalAttributePolicies.get(K))?l:u.globallyAllowedAttributePrefixes&&[].concat(_.Am(u.globallyAllowedAttributePrefixes)).some(function(D){return K.indexOf(D)===0})?{policyAction:1}:{policyAction:0}};var n0k="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(" "),
rRR=[["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}]])]],v0A="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(" "),
Gw2=[["dir",{policyAction:3,conditions:Tg(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Tg(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Tg(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Tg(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],t2H=new FV(new Set(n0k),new Map(rRR),new Set(v0A),new Map(Gw2)),xS2=new FV(new Set(n0k.concat(["BUTTON",
"INPUT"])),new Map(rRR),new Set(Tg(function(){return v0A.concat(["class","id","name"])})),new Map(Tg(function(){return Gw2.concat([["style",
{policyAction:1}]])})));var SB0,bss,cRw;SB0=function(u,K,l,D,d){this.JSC$9215_sanitizerTable=u;this.styleElementSanitizer=K;this.styleAttributeSanitizer=l;this.JSC$9215_resourceUrlPolicy=D;this.JSC$9215_navigationUrlPolicy=d;this.changes=[]};
_.OsR=function(u,K){var l=document.implementation.createHTMLDocument("");u=bss(u,K,l);l=l.body;l.appendChild(u);l=(new XMLSerializer).serializeToString(l);l=l.slice(l.indexOf(">")+1,l.lastIndexOf("</"));return CH(l)};
bss=function(u,K,l){K=rOq(K,l);K=document.createTreeWalker(K,5,function(M){if(M.nodeType===3)M=1;else if(GjH(M))if(M=v$q(M),M===null)M=2;else{var q=u.JSC$9215_sanitizerTable;M=M!=="FORM"&&(q.allowedElements.has(M)||q.elementPolicies.has(M))?1:2}else M=2;return M});
for(var D=K.nextNode(),d=l.createDocumentFragment(),C=d;D!==null;){var W=void 0;if(D.nodeType===3)u.styleElementSanitizer&&C.nodeName==="STYLE"?(D=u.styleElementSanitizer(D.data),W=u.createTextNode(D)):W=u.createTextNode(D.data);else if(GjH(D))W=cRw(u,D,l);else throw Error("Z");C.appendChild(W);if(D=K.firstChild())C=W;else for(;!(D=K.nextSibling())&&(D=K.parentNode());)C=C.parentNode}return d};
SB0.prototype.createTextNode=function(u){return document.createTextNode(u)};
cRw=function(u,K,l){var D,d=v$q(K);l=l.createElement(d);K=K.attributes;for(var C=_.y(K),W=C.next();!W.done;W=C.next()){var M=W.value;W=M.name;M=M.value;var q=$SC(u.JSC$9215_sanitizerTable,W,d);a:{if(D=q.conditions){D=_.y(D);for(var v=D.next();!v.done;v=D.next()){var G=_.y(v.value);v=G.next().value;G=G.next().value;var t=void 0;if((v=(t=K.getNamedItem(v))==null?void 0:t.value)&&!G.has(v)){D=!1;break a}}}D=!0}if(D)switch(q.policyAction){case 1:bQ(l,W,M);break;case 2:throw Error();case 3:bQ(l,W,M.toLowerCase());
break;case 4:u.styleAttributeSanitizer?(M=u.styleAttributeSanitizer(M),bQ(l,W,M)):bQ(l,W,M);break;case 5:u.JSC$9215_resourceUrlPolicy?(q={type:2,attributeName:W,elementName:d},M=n$q(M),(M=u.JSC$9215_resourceUrlPolicy(M,q))&&bQ(l,W,M.toString())):bQ(l,W,M);break;case 6:if(u.JSC$9215_resourceUrlPolicy){q={type:2,attributeName:W,elementName:d};D=[];M=_.y(M.split(","));for(v=M.next();!v.done;v=M.next())G=_.y(v.value.trim().split(/\s+/,2)),v=G.next().value,G=G.next().value,D.push({url:v,descriptor:G});
M={parts:[]};D=_.y(D);for(v=D.next();!v.done;v=D.next())v=v.value,G=n$q(v.url),(G=u.JSC$9215_resourceUrlPolicy(G,q))&&M.parts.push({url:G.toString(),descriptor:v.descriptor});bQ(l,W,tAR(M))}else bQ(l,W,M);break;case 7:q=M;if(u.JSC$9215_navigationUrlPolicy){q={type:2,attributeName:W,elementName:d};M=n$q(M);M=u.JSC$9215_navigationUrlPolicy(M,q);if(M===null)break;q=M.toString()}M=q;q=_.wrb(M);q=q!==void 0&&aH2.indexOf(q.toLowerCase())!==-1?M:"about:invalid#zClosurez";bQ(l,W,q)}}return l};
_.aAB=Tg(function(){return new SB0(t2H)});
_.zww=Tg(function(){return new SB0(xS2)});var ews=function(){this.calledBuild=!1;this.JSC$9227_sanitizerTable=t2H},RwS=function(){ews.apply(this,arguments)};
_.c(RwS,ews);RwS.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new SB0(this.JSC$9227_sanitizerTable,void 0,void 0,this.JSC$9227_resourceUrlPolicy,this.JSC$9227_navigationUrlPolicy)};var USH=/[^#]*/;var Ftq=function(u){try{return!!u&&u.location.href!=null&&ZVH(u,"foo")}catch(K){return!1}},QCS=function(u){var K=fAs;
if(K)for(var l in K)Object.prototype.hasOwnProperty.call(K,l)&&u(K[l],l,K)},PkC=function(){var u=[];
QCS(function(K){u.push(K)});
return u},fAs={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"},JRA=_.T3(function(){return PkC()}),BNw=function(){var u=jCH("IFRAME"),
K={};
_.yx(JRA(),function(l){u.sandbox&&u.sandbox.supports&&u.sandbox.supports(l)&&(K[l]=!0)});
return K},jCH=function(u,K){K=K===void 0?document:K;
return K.createElement(String(u).toLowerCase())};var VF;_.mz=function(u,K,l){return Math.min(Math.max(u,K),l)};
VF=function(u,K,l){return u+l*(K-u)};_.XB=function(u,K){this.x=u!==void 0?u:0;this.y=K!==void 0?K:0};
_.I=_.XB.prototype;_.I.clone=function(){return new _.XB(this.x,this.y)};
_.I.equals=function(u){return u instanceof _.XB&&(this==u?!0:this&&u?this.x==u.x&&this.y==u.y:!1)};
_.I.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.I.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.I.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.I.translate=function(u,K){u instanceof _.XB?(this.x+=u.x,this.y+=u.y):(this.x+=Number(u),typeof K==="number"&&(this.y+=K));return this};
_.I.scale=function(u,K){this.x*=u;this.y*=typeof K==="number"?K:u;return this};_.jA=function(u,K){this.width=u;this.height=K};
_.I=_.jA.prototype;_.I.clone=function(){return new _.jA(this.width,this.height)};
_.I.area=function(){return this.width*this.height};
_.I.aspectRatio=function(){return this.width/this.height};
_.I.isEmpty=function(){return!this.area()};
_.I.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.I.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.I.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.I.scale=function(u,K){this.width*=u;this.height*=typeof K==="number"?K:u;return this};var Lp=function(u,K){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=u===dXq&&K||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=paw};
Lp.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var isa=function(u){return u instanceof Lp&&u.constructor===Lp&&u.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===paw?u.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},paw={},dXq={};
new Lp(dXq,"");var iQ,jb,Nb,TNC,V2k,Faw,mp,NNB,ZsN,kwB,Ay,YBS,uIH,Lak,E0H,K_0,lBN,Dpw,dpm,brq,CGw,yE0,s2B,IBS,gR;iQ=function(u){return u?new gR(_.hO(u)):hZq||(hZq=new gR)};
_.be=function(u,K){return typeof K==="string"?u.getElementById(K):K};
jb=function(u,K){return(K||document).getElementsByTagName(String(u))};
_.waa=function(u){return TNC("yt-formatted-string","paper-input-input",u)};
Nb=function(u,K,l,D){u=D||u;return(K=K&&K!="*"?String(K).toUpperCase():"")||l?u.querySelectorAll(K+(l?"."+l:"")):u.getElementsByTagName("*")};
TNC=function(u,K,l){var D=document,d=u&&u!="*"?String(u).toUpperCase():"";return d||K?(l||D).querySelector(d+(K?"."+K:"")):Nb(D,u,K,l)[0]||null};
V2k=function(u,K){_.k$.forEach(K,function(l,D){D=="style"?u.style.cssText=l:D=="class"?u.className=l:D=="for"?u.htmlFor=l:Faw.hasOwnProperty(D)?u.setAttribute(Faw[D],l):_.dq(D,"aria-")||_.dq(D,"data-")?u.setAttribute(D,l):u[D]=l})};
Faw={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"};_.BK=function(u){u=(u||window).document;u=u.compatMode=="CSS1Compat"?u.documentElement:u.body;return new _.jA(u.clientWidth,u.clientHeight)};
_.g0H=function(u){var K=_.kA(u);u=u.defaultView;return new _.XB(u.pageXOffset||K.scrollLeft,u.pageYOffset||K.scrollTop)};
_.kA=function(u){return u.scrollingElement?u.scrollingElement:_.ea||u.compatMode!="CSS1Compat"?u.body||u.documentElement:u.documentElement};
mp=function(u){return u?u.defaultView:window};
_.Z0=function(u,K,l){return NNB(document,arguments)};
NNB=function(u,K){var l=K[1],D=kwB(u,String(K[0]));l&&(typeof l==="string"?D.className=l:Array.isArray(l)?D.className=l.join(" "):V2k(D,l));K.length>2&&ZsN(u,D,K,2);return D};
ZsN=function(u,K,l,D){function d(M){M&&K.appendChild(typeof M==="string"?u.createTextNode(M):M)}
for(;D<l.length;D++){var C=l[D];if(!_.mb(C)||_.Ks(C)&&C.nodeType>0)d(C);else{a:{if(C&&typeof C.length=="number"){if(_.Ks(C)){var W=typeof C.item=="function"||typeof C.item=="string";break a}if(typeof C==="function"){W=typeof C.item=="function";break a}}W=!1}_.yx(W?_.Xq(C):C,d)}}};
_.PO=function(u){return kwB(document,u)};
kwB=function(u,K){K=String(K);u.contentType==="application/xhtml+xml"&&(K=K.toLowerCase());return u.createElement(K)};
_.YA=function(){return document.createTextNode("\n")};
Ay=function(u){if(u.nodeType!=1)return!1;switch(u.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};
YBS=function(u,K){ZsN(_.hO(u),u,arguments,1)};
_.XV=function(u){for(var K;K=u.firstChild;)u.removeChild(K)};
_.mI=function(u,K){K.parentNode&&K.parentNode.insertBefore(u,K)};
_.hy=function(u,K){K.parentNode&&K.parentNode.insertBefore(u,K.nextSibling)};
_.Jq=function(u){return u&&u.parentNode?u.parentNode.removeChild(u):null};
_.ARw=function(u,K){var l=K.parentNode;l&&l.replaceChild(u,K)};
_.Xaa=function(u){var K,l=u.parentNode;if(l&&l.nodeType!=11)if(u.removeNode)u.removeNode(!1);else{for(;K=u.firstChild;)l.insertBefore(K,u);_.Jq(u)}};
_.ER=function(u){return u.children!=void 0?u.children:Array.prototype.filter.call(u.childNodes,function(K){return K.nodeType==1})};
_.hwB=function(u){return u.nextElementSibling!==void 0?u.nextElementSibling:_.mSS(u.nextSibling,!0)};
_.mSS=function(u,K){for(;u&&u.nodeType!=1;)u=K?u.nextSibling:u.previousSibling;return u};
_.Mm=function(u){return _.Ks(u)&&u.nodeType==1};
_.LV=function(u,K){if(!u||!K)return!1;if(u.contains&&K.nodeType==1)return u==K||u.contains(K);if(typeof u.compareDocumentPosition!="undefined")return u==K||!!(u.compareDocumentPosition(K)&16);for(;K&&u!=K;)K=K.parentNode;return K==u};
uIH=function(u,K){if(u==K)return 0;if(u.compareDocumentPosition)return u.compareDocumentPosition(K)&2?1:-1;if("sourceIndex"in u||u.parentNode&&"sourceIndex"in u.parentNode){var l=u.nodeType==1,D=K.nodeType==1;if(l&&D)return u.sourceIndex-K.sourceIndex;var d=u.parentNode,C=K.parentNode;return d==C?E0H(u,K):!l&&_.LV(d,K)?-1*Lak(u,K):!D&&_.LV(C,u)?Lak(K,u):(l?u.sourceIndex:d.sourceIndex)-(D?K.sourceIndex:C.sourceIndex)}D=_.hO(u);l=D.createRange();l.selectNode(u);l.collapse(!0);u=D.createRange();u.selectNode(K);
u.collapse(!0);return l.compareBoundaryPoints(_.lL.Range.START_TO_END,u)};
Lak=function(u,K){var l=u.parentNode;if(l==K)return-1;for(;K.parentNode!=l;)K=K.parentNode;return E0H(K,u)};
E0H=function(u,K){for(;K=K.previousSibling;)if(K==u)return-1;return 1};
K_0=function(u){var K,l=arguments.length;if(!l)return null;if(l==1)return arguments[0];var D=[],d=Infinity;for(K=0;K<l;K++){for(var C=[],W=arguments[K];W;)C.unshift(W),W=W.parentNode;D.push(C);d=Math.min(d,C.length)}C=null;for(K=0;K<d;K++){W=D[0][K];for(var M=1;M<l;M++)if(W!=D[M][K])return C;C=W}return C};
_.hO=function(u){return u.nodeType==9?u:u.ownerDocument||u.document};
lBN=function(u){return u.contentDocument||u.contentWindow.document};
_.La=function(u,K){if("textContent"in u)u.textContent=K;else if(u.nodeType==3)u.data=String(K);else if(u.firstChild&&u.firstChild.nodeType==3){for(;u.lastChild!=u.firstChild;)u.removeChild(u.lastChild);u.firstChild.data=String(K)}else _.XV(u),u.appendChild(_.hO(u).createTextNode(String(K)))};
Dpw={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};dpm={IMG:" ",BR:"\n"};brq=function(u){var K;u.tagName=="A"&&u.hasAttribute("href")||u.tagName=="INPUT"||u.tagName=="TEXTAREA"||u.tagName=="SELECT"||u.tagName=="BUTTON"?K=!u.disabled&&(!u.hasAttribute("tabindex")||CGw(u)):K=u.hasAttribute("tabindex")&&CGw(u);return K};
CGw=function(u){u=u.tabIndex;return typeof u==="number"&&u>=0&&u<32768};
yE0=function(u){var K=[];IBS(u,K,!0);u=K.join("");u=u.replace(/ \xAD /g," ").replace(/\xAD/g,"");u=u.replace(/\u200B/g,"");u=u.replace(/ +/g," ");u!=" "&&(u=u.replace(/^\s*/,""));return u};
s2B=function(u){var K=[];IBS(u,K,!1);return K.join("")};
IBS=function(u,K,l){if(!(u.nodeName in Dpw))if(u.nodeType==3)l?K.push(String(u.nodeValue).replace(/(\r\n|\r|\n)/g,"")):K.push(u.nodeValue);else if(u.nodeName in dpm)K.push(dpm[u.nodeName]);else for(u=u.firstChild;u;)IBS(u,K,l),u=u.nextSibling};
_.op2=function(u,K,l){if(!K&&!l)return null;var D=K?String(K).toUpperCase():null;return _.LS(u,function(d){return(!D||d.nodeName==D)&&(!l||typeof d.className==="string"&&_.Vn(d.className.split(/\s+/),l))},!0)};
_.LS=function(u,K,l){u&&!l&&(u=u.parentNode);for(l=0;u;){if(K(u))return u;u=u.parentNode;l++}return null};
gR=function(u){this.JSC$9252_document_=u||_.lL.document||document};
_.I=gR.prototype;_.I.getElement=function(u){return _.be(this.JSC$9252_document_,u)};
_.I.$=gR.prototype.getElement;_.I.getElementsByTagName=function(u,K){return(K||this.JSC$9252_document_).getElementsByTagName(String(u))};
_.I.getElementsByTagNameAndClass=function(u,K,l){return Nb(this.JSC$9252_document_,u,K,l)};
_.I.$$=gR.prototype.getElementsByTagNameAndClass;_.I.setProperties=V2k;_.I.JSC$9254_createDom=function(u,K,l){return NNB(this.JSC$9252_document_,arguments)};
_.I.createElement=function(u){return kwB(this.JSC$9252_document_,u)};
_.I.createTextNode=function(u){return this.JSC$9252_document_.createTextNode(String(u))};
_.I.getWindow=function(){return this.JSC$9252_document_.defaultView};
var pS=function(u){return _.g0H(u.JSC$9252_document_)};
_.I=gR.prototype;_.I.appendChild=function(u,K){u.appendChild(K)};
_.I.append=YBS;_.I.canHaveChildren=Ay;_.I.removeNode=_.Jq;_.I.getChildren=_.ER;_.I.contains=_.LV;_.I=eA.prototype;_.I.getWidth=function(){return this.right-this.left};
_.I.getHeight=function(){return this.bottom-this.top};
_.I.clone=function(){return new eA(this.top,this.right,this.bottom,this.left)};
_.I.contains=function(u){return this&&u?u instanceof eA?u.left>=this.left&&u.right<=this.right&&u.top>=this.top&&u.bottom<=this.bottom:u.x>=this.left&&u.x<=this.right&&u.y>=this.top&&u.y<=this.bottom:!1};
_.I.expand=function(u,K,l,D){_.Ks(u)?(this.top-=u.top,this.right+=u.right,this.bottom+=u.bottom,this.left-=u.left):(this.top-=u,this.right+=Number(K),this.bottom+=Number(l),this.left-=Number(D));return this};
_.I.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};
_.I.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};
_.I.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};
_.I.translate=function(u,K){u instanceof _.XB?(this.left+=u.x,this.right+=u.x,this.top+=u.y,this.bottom+=u.y):(this.left+=u,this.right+=u,typeof K==="number"&&(this.top+=K,this.bottom+=K));return this};
_.I.scale=function(u,K){K=typeof K==="number"?K:u;this.left*=u;this.right*=u;this.top*=K;this.bottom*=K;return this};var u4=function(u,K,l,D){this.left=u;this.top=K;this.width=l;this.height=D};
_.I=u4.prototype;_.I.clone=function(){return new u4(this.left,this.top,this.width,this.height)};
_.I.boundingRect=function(u){var K=Math.max(this.left+this.width,u.left+u.width),l=Math.max(this.top+this.height,u.top+u.height);this.left=Math.min(this.left,u.left);this.top=Math.min(this.top,u.top);this.width=K-this.left;this.height=l-this.top};
_.I.contains=function(u){return u instanceof _.XB?u.x>=this.left&&u.x<=this.left+this.width&&u.y>=this.top&&u.y<=this.top+this.height:this.left<=u.left&&this.left+this.width>=u.left+u.width&&this.top<=u.top&&this.top+this.height>=u.top+u.height};
_.I.distance=function(u){var K=u.x<this.left?this.left-u.x:Math.max(u.x-(this.left+this.width),0);u=u.y<this.top?this.top-u.y:Math.max(u.y-(this.top+this.height),0);return Math.sqrt(K*K+u*u)};
_.I.getSize=function(){return new _.jA(this.width,this.height)};
_.I.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};
_.I.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};
_.I.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};
_.I.translate=function(u,K){u instanceof _.XB?(this.left+=u.x,this.top+=u.y):(this.left+=u,typeof K==="number"&&(this.top+=K));return this};
_.I.scale=function(u,K){K=typeof K==="number"?K:u;this.left*=u;this.width*=u;this.top*=K;this.height*=K;return this};var H_2,DV,YQn,l4,np0,$pk,rEa,$bo,vpm,tkA;_.KJ=function(u,K,l){if(typeof K==="string")(K=_.W_C(u,K))&&(u.style[K]=l);else for(var D in K){l=u;var d=K[D],C=_.W_C(l,D);C&&(l.style[C]=d)}};
H_2={};_.W_C=function(u,K){var l=H_2[K];if(!l){var D=_.P_(K);l=D;u.style[D]===void 0&&(D=(_.ea?"Webkit":_.zR?"Moz":null)+jRa(D),u.style[D]!==void 0&&(l=D));H_2[K]=l}return l};
_.jd=function(u,K){var l=_.hO(u);return l.defaultView&&l.defaultView.getComputedStyle&&(u=l.defaultView.getComputedStyle(u,null))?u[K]||u.getPropertyValue(K)||"":""};
_.EQ=function(u,K){return _.jd(u,K)||(u.currentStyle?u.currentStyle[K]:null)||u.style&&u.style[K]};
_.Mkw=function(u){return _.EQ(u,"position")};
DV=function(u,K,l){if(K instanceof _.XB){var D=K.x;K=K.y}else D=K,K=l;u.style.left=l4(D,!1);u.style.top=l4(K,!1)};
YQn=function(u){try{return u.getBoundingClientRect()}catch(K){return{left:0,top:0,right:0,bottom:0}}};
_.Ey=function(u){var K=_.hO(u),l=new _.XB(0,0);if(u==(K?_.hO(K):document).documentElement)return l;u=YQn(u);K=pS(iQ(K));l.x=u.left+K.x;l.y=u.top+K.y;return l};
_.qo0=function(u,K,l){if(K instanceof _.jA)l=K.height,K=K.width;else if(l==void 0)throw Error("oa");u.style.width=l4(K,!0);u.style.height=l4(l,!0)};
l4=function(u,K){typeof u=="number"&&(u=(K?Math.round(u):u)+"px");return u};
np0=function(u){return $pk(u)};
$pk=function(u){var K=rEa;if(_.EQ(u,"display")!="none")return K(u);var l=u.style,D=l.display,d=l.visibility,C=l.position;l.visibility="hidden";l.position="absolute";l.display="inline";u=K(u);l.display=D;l.position=C;l.visibility=d;return u};
rEa=function(u){var K=u.offsetWidth,l=u.offsetHeight,D=_.ea&&!K&&!l;return(K===void 0||D)&&u.getBoundingClientRect?(u=YQn(u),new _.jA(u.right-u.left,u.bottom-u.top)):new _.jA(K,l)};
$bo=function(u){var K=_.Ey(u);u=$pk(u);return new u4(K.x,K.y,u.width,u.height)};
vpm=function(u,K){u=u.style;"opacity"in u?u.opacity=K:"MozOpacity"in u?u.MozOpacity=K:"filter"in u&&(u.filter=K===""?"":"alpha(opacity="+Number(K)*100+")")};
_.CI=function(u,K){u.style.display=K?"":"none"};
_.G60=function(u){return"rtl"==_.EQ(u,"direction")};
tkA=function(u){var K=_.jd(u,"marginLeft"),l=_.jd(u,"marginRight"),D=_.jd(u,"marginTop");u=_.jd(u,"marginBottom");return new eA(parseFloat(D),parseFloat(l),parseFloat(u),parseFloat(K))};
_.xpB=function(u){var K=_.jd(u,"borderLeftWidth"),l=_.jd(u,"borderRightWidth"),D=_.jd(u,"borderTopWidth");u=_.jd(u,"borderBottomWidth");return new eA(parseFloat(D),parseFloat(l),parseFloat(u),parseFloat(K))};var dx=function(u){this.context=u};
dx.prototype.isSupported=function(u){return(u==null?0:u.attributionEnabled)||(u==null?void 0:u.beaconMethod)==="POST"||(u==null?0:u.customHeaders)||(u==null?0:u.customBody)||(u==null?0:u.keepAlive)?!1:!By(this.context)};
dx.prototype.ping=function(){var u=this;return Fn(_.uY.apply(0,arguments).map(function(K){try{var l=u.context.global,D=!1;D=D===void 0?!1:D;l.google_image_requests||(l.google_image_requests=[]);var d=jCH("IMG",l.document);D&&(d.attributionSrc="");d.src=K;l.google_image_requests.push(d);return!0}catch(C){return!1}}).every(function(K){return K}))};
dx.prototype.pingWithHeadersAndBody=function(u,K,l){this.ping.apply(this,_.Am(_.uY.apply(3,arguments)))};var Soa=function(u){this.context=u};
Soa.prototype.isSupported=function(u){return b_C&&!By(this.context)&&Syq(this.context)!==void 0&&!(u==null?0:u.attributionEnabled)&&(u==null?void 0:u.beaconMethod)!=="POST"&&!(u==null?0:u.customHeaders)&&!(u==null?0:u.customBody)};
Soa.prototype.makeBeacon=function(u,K){if(!this.isSupported(K))throw new QF;return new CJ(this.context,u)};
var b_C=!1,CJ=function(u,K){this.context=u;this.JSC$9273_urlWithoutToken=K;u=Syq(this.context);if(u===void 0)throw Error();this.wrappedBeacon=new u(O_N(this),{})},O_N=function(u){u=u.JSC$9273_urlWithoutToken;
return(u.slice(-1)[0]==="&"?u:u+"&")+"pbapi=1"};
CJ.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
CJ.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
CJ.prototype.setHeader=function(){};
_.MN.Object.defineProperties(CJ.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9273_urlWithoutToken},
set:function(u){this.JSC$9273_urlWithoutToken=u;this.wrappedBeacon.setURL(O_N(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(u){if(u!=="GET")throw new QF;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var cEN=function(u){this.context=u};
cEN.prototype.isSupported=function(u){if((u==null?0:u.attributionEnabled)||(u==null?void 0:u.beaconMethod)==="GET"||(u==null?0:u.customHeaders)||(u==null?0:u.customBody)||(u==null?0:u.keepAlive))return!1;var K;return!By(this.context)&&((K=this.context.global.navigator)==null?void 0:K.sendBeacon)!==void 0};
cEN.prototype.ping=function(){var u=this;return Fn(_.uY.apply(0,arguments).map(function(K){var l;return(l=u.context.global.navigator)==null?void 0:l.sendBeacon(K)}).every(function(K){return K}))};
cEN.prototype.pingWithHeadersAndBody=function(u,K,l){this.ping.apply(this,_.Am(_.uY.apply(3,arguments)))};var PK=function(u){this.value=u},oe=function(u,K){return Fn(u.value).pipe(fS(K))},HO=new PK(!1),IYH=new PK(!0);var u2=function(u){this.value=u;this.releasedSubject=new RO};
u2.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.MN.Object.defineProperties(u2.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9286_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var jOH=["FRAME","IMG","IFRAME"],R_q=/^[01](px)?$/,JOZ=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},PQq=function(){var u=new JOZ;
u.crossDomainLoadedDefault=!0;u.pendingImagesBlockLoad=!0;return u};var aBa=function(u,K){var l=VAb(u);if(l)if(l.onCreativeLoad)l.onCreativeLoad(K);else{var D=K?[K]:[],d=function(C){for(var W=0;W<D.length;++W)try{D[W](1,C)}catch(M){}D={push:function(M){M(1,C)}}};
l.onCreativeLoad=function(C){D.push(C)};
l.setAttribute("data-creative-load-listener","");l.addEventListener("creativeLoad",function(C){d(C.detail)});
_.lL.addEventListener("message",function(C){Fpq(l,d,C)})}};var IB=function(u,K){var l=this;this.global=u;this.parentContext=K;this.JSC$9297_onVisibilityChange=this.document?uQ(Fn(!0),E2(this.document,"visibilitychange")).pipe(du(this.parentContext.performanceMonitor,748),YP(function(){return l.getVisibilityState()}),oO()):Fn("visible");
this.document?E2(this.document,"DOMContentLoaded").pipe(du(this.parentContext.performanceMonitor,739),sy(1)):Fn(z_9("DOMContentLoaded"))},Ccq=function(u){return u.document!==null&&u.document.visibilityState!==void 0};
IB.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
IB.prototype.querySelector=function(u){return this.document?this.document.querySelector(u):null};
IB.prototype.querySelectorAll=function(u){return this.document?_.Xq(this.document.querySelectorAll(u)):[]};
IB.prototype.elementFromPoint=function(u,K){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;u=this.document.elementFromPoint(u,K);return u===null?null:new u2(u)};
var AgR=function(u,K,l){l=l===void 0?!1:l;if(K.ref===void 0||!u.document)return Fn(K).pipe(du(u.parentContext.performanceMonitor,749));var D=new nS(1),d=function(){D.next(K)};
l||aBa(K.ref,d);Bun(K.ref,d);return D.pipe(du(u.parentContext.performanceMonitor,749),sy(1))};
_.MN.Object.defineProperties(IB.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return ZVH(this.global,"document")?this.global.document||null:null}}});var g$b=_.oj(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),NuR=_.oj(["./reach_worklet.js"]),kjq=_.oj(["./reach_worklet.js"]),ziC=_.oj(["./reach_worklet.html"]),eis=_.oj(["./reach_worklet.js"]),Ri2=_.oj(["./reach_worklet.js"]);_.Oy(ziC);_.Oy(eis);_.Oy(Ri2);var dB={left:0,top:0,width:0,height:0};var Upa,fB2,Q2R,PGk,$n,j2a,BHH,pEC,VVq,gSZ,wEw,F_2;Upa=function(u,K,l,D,d,C,W){var M="";u&&(M+=u+":");l&&(M+="//",K&&(M+=K+"@"),M+=l,D&&(M+=":"+D));d&&(M+=d);C&&(M+="?"+C);W&&(M+="#"+W);return M};
fB2=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.M7=function(u){return u.match(fB2)};
_.NZ=function(u,K){return u?K?decodeURI(u):decodeURIComponent(u):u};
Q2R=function(u){u=_.M7(u)[1]||null;!u&&_.lL.self&&_.lL.self.location&&(u=_.lL.self.location.protocol.slice(0,-1));return u?u.toLowerCase():""};
_.q7=function(u){return _.NZ(_.M7(u)[3]||null,!0)};
_.RK=function(u){return _.NZ(_.M7(u)[5]||null,!0)};
_.CuZ=function(u){var K=u.indexOf("#");return K<0?null:u.slice(K+1)};
PGk=function(u){u=_.M7(u);return Upa(u[1],u[2],u[3],u[4])};
_.JEw=function(u){u=_.M7(u);return Upa(u[1],null,u[3],u[4])};
_.dd=function(u){u=_.M7(u);return Upa(null,null,null,null,u[5],u[6],u[7])};
_.MB=function(u){var K=u.indexOf("#");return K<0?u:u.slice(0,K)};
$n=function(u,K){u=_.M7(u);K=_.M7(K);return u[3]==K[3]&&u[1]==K[1]&&u[4]==K[4]};
j2a=function(u,K){if(u){u=u.split("&");for(var l=0;l<u.length;l++){var D=u[l].indexOf("="),d=null;if(D>=0){var C=u[l].substring(0,D);d=u[l].substring(D+1)}else C=u[l];K(C,d?rv(d):"")}}};
BHH=function(u){var K=u.indexOf("#");K<0&&(K=u.length);var l=u.indexOf("?");if(l<0||l>K){l=K;var D=""}else D=u.substring(l+1,K);return[u.slice(0,l),D,u.slice(K)]};
pEC=function(u,K){return K?u?u+"&"+K:K:u};
_.i_w=function(u,K){if(!K)return u;u=BHH(u);u[1]=pEC(u[1],K);return u[0]+(u[1]?"?"+u[1]:"")+u[2]};
_.THA=function(u,K,l){if(Array.isArray(K))for(var D=0;D<K.length;D++)_.THA(u,String(K[D]),l);else K!=null&&l.push(u+(K===""?"":"="+_.CT(K)))};
_.fT=function(u){var K=[],l;for(l in u)_.THA(l,u[l],K);return K.join("&")};
_.Hv=function(u,K){K=_.fT(K);return _.i_w(u,K)};
_.yK=function(u,K,l){l=l!=null?"="+_.CT(l):"";return _.i_w(u,K+l)};
VVq=function(u,K,l,D){for(var d=l.length;(K=u.indexOf(l,K))>=0&&K<D;){var C=u.charCodeAt(K-1);if(C==38||C==63)if(C=u.charCodeAt(K+d),!C||C==61||C==38||C==35)return K;K+=d+1}return-1};
gSZ=/#|$/;_.ur=function(u,K){var l=u.search(gSZ),D=VVq(u,0,K,l);if(D<0)return null;var d=u.indexOf("&",D);if(d<0||d>l)d=l;D+=K.length+1;return rv(u.slice(D,d!==-1?d:0))};
wEw=/[?&]($|#)/;_.$s=function(u,K){for(var l=u.search(gSZ),D=0,d,C=[];(d=VVq(u,D,K,l))>=0;)C.push(u.substring(D,d)),D=Math.min(u.indexOf("&",d)+1||l,l);C.push(u.slice(D));return C.join("").replace(wEw,"$1")};
_.uy=function(u,K,l){return _.yK(_.$s(u,K),K,l)};
F_2=function(u){var K=BHH(window.location.href),l=K[1],D=[];l&&l.split("&").forEach(function(d){var C=d.indexOf("=");C=C>=0?d.slice(0,C):d;u.hasOwnProperty(C)||D.push(d)});
K[1]=pEC(D.join("&"),_.fT(u));return K[0]+(K[1]?"?"+K[1]:"")+K[2]};var HVL=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(HVL,_.b5);HVL.prototype.getVersion=function(){return _.A0(this,2)};var WMo=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(WMo,_.b5);var dtH=function(u,K){return _.Tj(u,2,K)},oVy=function(u,K){return _.Tj(u,3,K)};
WMo.prototype.getModel=function(){return _.A0(this,4)};
var IuR=function(u,K){return _.Tj(u,4,K)},DtR=function(u,K){return _.Tj(u,5,K)},seH=function(u,K){return _.Tj(u,9,K)},luH=function(u,K){return FY(u,10,K)},KMZ=function(u,K){return _.OQ(u,11,K)},C2H=function(u,K){return _.Tj(u,1,K)},yqH=function(u,K){return _.OQ(u,7,K)};var Lpn="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var WO=function(u,K,l,D){u=u===void 0?window:u;K=K===void 0?null:K;l=l===void 0?new KbB:l;D=D===void 0?ZSh():D;mwN.call(this);var d=this;this.global=u;this.debugChannel=K;this.performanceMonitor=l;this.onPageHide=Bmn(function(){return E2(d.global,"pagehide")}).pipe(du(this.performanceMonitor,941));
this.onLoad=Bmn(function(){return E2(d.global,"load")}).pipe(du(this.performanceMonitor,738),sy(1));
this.onResize=Bmn(function(){return E2(d.global,"resize")}).pipe(du(this.performanceMonitor,741));
this.onMessage=Bmn(function(){return E2(d.global,"message")}).pipe(du(this.performanceMonitor,740));
this.document=new IB(this.global,this);this.timeProvider=new lAs(new dSs(this.intrinsicFunctionNamespace,this.performanceMonitor),new DSS(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new LbB(new IAH(this),new Soa(this),new Py(this,new o0R(this)),new Py(this,new cEN(this)),new Py(this,new dx(this)))};
_.c(WO,mwN);var By=function(u){var K=u.global;return!!u.global.HTMLFencedFrameElement&&!!K.fence&&typeof K.fence.reportEvent==="function"};
_.I=WO.prototype;_.I.reportFencedFrameEvent=function(u){By(this)&&this.global.fence.reportEvent(u)};
_.I.getOnBackgrounded=function(){return this.onPageHide.pipe(du(this.performanceMonitor,942),fS(this.queue),YP(function(){}))};
_.I.postMessage=function(u,K,l){l=l===void 0?[]:l;this.global.postMessage(u,K,l)};
_.I.getWidth=function(){return Ftq(this.global)?this.global.width:0};
_.I.getHeight=function(){return Ftq(this.global)?this.global.height:0};
_.I.isMobile=function(){return HsH()||M2a()};
var KV=function(u,K){try{var l=m0q(K,u.global,u.isMobile());return{left:l.left,top:l.top,width:l.getWidth(),height:l.getHeight()}}catch(D){return dB}};
WO.prototype.validate=function(){var u=this.beaconFactory.isSupported()||By(this);return this.global&&this.timeProvider.available()&&u};
var OSZ=function(u){return(u=qQn(u.global))?fH(u):null};
_.MN.Object.defineProperties(WO.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(u){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Ftq(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}}});_.VkB=!_.aj&&!_.Qn();var y8Z=function(u){return u};var oDh=function(u){return u.pipe(KS(function(K){var l=K.endOfSessionReason;var D;return((D=K.viewable)==null?void 0:D.extrapolateToNow().value)||l!=void 0}),sy(1),IO())};var xtq=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},SQq=function(u){var K=u.sequenceNumber.toString(10).padStart(2,"0");
K=""+u.startTime+K;u.sequenceNumber<99&&u.sequenceNumber++;return K};var d_q=zG(x$(function(u){return u.endOfSessionReason===void 0}),YP(function(u){return Object.assign({},u,{timestamps:FB(u)})}),KS(function(u){var K=u.viewable;
u=u.timestamps;var l;return(l=K==null?void 0:K.extrapolateUsingTimestampMap(u).value)!=null?l:!1}),YP(function(u){var K=u.beaconFactory;
var l=u.timestampedExposureHistory;var D=u.timeOnScreen;var d=u.binaryContext;u=u.timestamps;if(K===void 0||l===void 0||D===void 0||d===void 0)return!1;if(D.extrapolateUsingTimestampMap(u).value.every(function(C){return C>=0}))return!0;
l=l.map(function(C){return C.timestamp+":"+C.value}).join(",");
D=bVw({bin:d,tos:D},u);K.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+D+("&eh="+l)).sendNow();return!0}),x$(function(u){return!u}),IO());var cqL=function(u){return{id:u.pingId,mcvt:u.maxConsecutiveViewTime,p:u.creativePosition,asp:u.adSpeedPosition,tm:u.totalMeasurementTime,tu:u.totalUnviewedTime,mtos:u.maxTimeOnScreen,tos:u.timeOnScreen,v:u.binaryVersion,bin:u.binaryContext,avms:u.measurementStrategy,bs:u.browserSize,mc:u.maximumExposure,"if":u.crossDomainIframeState,vu:u.delayedImpressionJsState,app:u.inApp,mse:u.mraidError,mtop:u.mraidSituation,itpl:u.injectedTemplateId,adk:u.adKey,exk:u.awbidKey,rs:u.requestSource,la:u.isLargeAd,
cr:u.isContentRecommendationAd,uach:u.userAgentClientHints,vs:u.viewState,r:u.reasonCode,pay:u.hasCpmavUrl,co:u.clientPingOrderCounter,rst:u.adRenderStartTime,rpt:u.adRenderPeriodTime,isd:u.initialScrollDepth,lsd:u.loadedScrollDepth,context:u.errorContext,msg:u.errorMessage,stack:u.errorStack,name:u.errorName,ec:u.hasElementChanged,sfr:u.strategyFailureReasons,met:u.creativeSearchResult,wmsd:u.webMeasurementStartDiagnostic,pv:u.pageVisible,epv:u.eosPageVisible,pbe:u.inStatefulBeaconExperiment,fle:u.inFetchLaterBeaconExperiment,
vae:u.inViewableAttributionExperiment,spb:u.supportsPendingBeacon,sfl:u.supportsFetchLater,ffslot:u.isFencedFrameSlotTurtlex,reach:u.sharedStorageReachMode,io2:u.v2VisibilityBitVector,rxdbg:u.rxDebugger,omida:u.omidAppId,omidp:u.omidPartner,omidpv:u.omidPartnerVersion,omidor:u.omidOcclusionReasons,omidv:u.omidVersion,omids:u.omidSessionType,omidam:u.omidAccessMode,omidct:u.omidCreativeType,omidia:u.omidInApp,omiddc:u.omidDeviceCategory,omidlat:u.omidLastActivity,omiddit:u.omidDeviceIdleTime,qid:u.errorEscapedQueryId}};var sEo=function(u){var K=[];return u.pipe(YP(function(l){var D=l.beaconFactory,d=l.fetchBeaconFactory,C=l.timeOnScreen,W=l.timeOnScreenUrlPrefixes,M=l.payloadMapper,q=l.timeOnScreenPingId,v=l.timeOnScreenReason,G=l.urlSerializer,t=l.viewable,x=l.hasImpressionFired,O=l.inStatefulBeaconExperiment,a=l.supportsPendingBeacon,f=l.supportsFetchLater,B=l.turtlexReportEventData;if(!l.geometryMeasurable||!x||l.maxTimeOnScreen===void 0||C===void 0||W===void 0||M===void 0||q===void 0||G===void 0||D===void 0)return!1;
if(l.isTurtlex){if(v===void 0)return!1;W=l.reportFencedFrameEvent;if(!W)return!1;W({eventType:"active-view-time-on-screen",eventData:B!=null?B:"",destination:["buyer"]});return!0}if(!(O||f||v))return!1;B=FB(l);var p;t=(p=t==null?void 0:t.extrapolateUsingTimestampMap(B).value)!=null?p:!1;p=G(Object.assign({},l,{pingId:q,viewState:t?4:3,reasonCode:v!=null?v:"u",payloadMapper:M,urlPrefixes:W}),B);if(O){for(;K.length>W.length;)l=void 0,(l=K.shift())==null||l.deactivate();p.forEach(function(m,Z){Z>=K.length?
K.push(D.makeBeacon(m)):K[Z].url=m});
return a&&d&&v!==void 0?(p.forEach(function(m){d.makeBeacon(m).sendNow()}),!0):v!==void 0}if(a&&d&&v!==void 0)return p.forEach(function(m){d.makeBeacon(m).sendNow()}),!0;
if(f&&d){for(;K.length>W.length;)a=void 0,(a=K.shift())==null||a.deactivate();var V=G(Object.assign({},l,{pingId:q,viewState:t?4:3,reasonCode:v!=null?v:"u",payloadMapper:M,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),B)[0];p.forEach(function(m,Z){Z>=K.length?K.push(D.makeBeacon(V,{endOfSession:!0})):K[Z].url=V});
return v!==void 0?(p.forEach(function(m){d.makeBeacon(m).sendNow()}),!0):v!==void 0}return v!==void 0?(p.forEach(function(m){D.makeBeacon(m).sendNow()}),!0):!1}),x$(function(l){return!l}),IO())};var WTq=zG(KS(function(u){return u.immediateUrlPrefixes!==void 0&&u.payloadMapper!==void 0&&u.urlSerializer!==void 0&&u.inferredPingId!==void 0&&u.beaconFactory!==void 0}),KS(function(u){return P29(u)!==null}),fuy(function(u){return u.activeViewUnmeasurableEvent},function(u){return u.emit}),YP(function(u){if(u.isTurtlex){var K=u.reportFencedFrameEvent;
if(K){var l;K({eventType:"active-view-unmeasurable",eventData:(l=u.turtlexReportEventData)!=null?l:"",destination:["buyer"]})}}else{l=void 0;var D=P29(u);if(D==="x"){var d,C=(d=u.geometricMeasurementErrors)!=null?d:u.contextValidationErrors;C&&(K=C.stack,l=C.message)}u.urlSerializer(Object.assign({},u,{urlPrefixes:u.immediateUrlPrefixes,payloadMapper:u.payloadMapper,pingId:u.inferredPingId,viewState:2,reasonCode:D,errorMessage:l,errorStack:K}),FB(u)).forEach(function(W){u.beaconFactory.makeBeacon(W).sendNow()})}}),
sy(1),IO());var Jqo=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var D_Z=zG(KS(function(u){return u.payloadMapper!==void 0&&u.immediateUrlPrefixes!==void 0&&u.urlSerializer!==void 0&&u.inferredPingId!==void 0&&u.beaconFactory!==void 0}),YP(function(u){return Object.assign({},u,{timestamps:FB(u)})}),KS(function(u){var K=u.viewable;
var l=u.hasImpressionFired;u=u.timestamps;var D;return!!l&&((D=K==null?void 0:K.extrapolateUsingTimestampMap(u).value)!=null?D:!1)}),fuy(function(u){return u.activeViewViewableEvent},function(u){return u.emit}),YP(function(u){var K=u.beaconFactory,l=u.turtlexReportEventData;
if(u.isTurtlex){var D=u.reportFencedFrameEvent;if(!D)return!1;D({eventType:"active-view-viewable",eventData:l!=null?l:"",destination:["buyer"]});return!0}l=u.urlSerializer(Object.assign({},u,{urlPrefixes:u.immediateUrlPrefixes,payloadMapper:u.payloadMapper,pingId:u.inferredPingId,viewState:4,reasonCode:"v"}),u.timestamps);(D=u.cpmavUrls)&&D.length>0&&u.viewUrlSerializer&&u.viewUrlSerializer(D,u).forEach(function(d){K.makeBeacon(d).sendNow()});
(D=u.viewableRelayUrls)&&D.length>0&&u.viewUrlSerializer&&u.viewUrlSerializer(D,u).forEach(function(d){K.makeBeacon(d).sendNow()});
l.forEach(function(d){K.makeBeacon(d,{attributionEnabled:u.isViewableAttributionEnabled}).sendNow()});
return!0}),x$(function(u){return!u}),IO());var a79=YP(function(u){return[u.value.topWindowViewportExternalGeometry.width,u.value.topWindowViewportExternalGeometry.height]});var l2=function(u,K){this.callback=u;this.options=K;this.intersectionObserverV2=this.intersectionObserverV1=null},ygZ=function(u,K){K?u.intersectionObserverV2||(K=Object.assign({},u.options,{delay:100,
trackVisibility:!0}),u.intersectionObserverV2=new IntersectionObserver(u.callback,K)):u.intersectionObserverV1||(u.intersectionObserverV1=new IntersectionObserver(u.callback,u.options))},gpB=function(u,K){u=K?u.intersectionObserverV2:u.intersectionObserverV1;
if(!u)throw new hqH;return u};
l2.prototype.observe=function(u,K){gpB(this,u).observe(K)};
l2.prototype.unobserve=function(u,K){gpB(this,u).unobserve(K)};
l2.prototype.disconnect=function(u){gpB(this,u).disconnect()};
l2.prototype.takeRecords=function(u){return gpB(this,u).takeRecords()};var XOh={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:dB,topWindowViewportExternalGeometry:dB,measurementRequests:new RO,elementGeometrySourceName:"ns",elementGeometry:dB,intersectionGeometry:dB,viewportLocalAppOffset:{x:0,y:0}};var $o9=CV(zG(YP(function(u){var K;return(K=u.exposureOverride)!=null?K:oTn(u)}),YP(function(u){return isFinite(u)?u:0}))),Snn=CV(zG(YP(function(u){var K;
return(K=u.exposureOverride)!=null?K:oTn(u)}),YP(function(u){return isFinite(u)?u:-1})));var su=function(u,K){this.a=u;this.b=K;if(u.clock.timeline!==K.clock.timeline)throw Error();};
su.prototype.equivalentTo=function(u){return u instanceof su?this.a.equivalentTo(u.a)&&this.b.equivalentTo(u.b):!1};
su.prototype.extrapolateToTime=function(u){var K=this.a.extrapolateToTime(u).value,l=this.b.extrapolateToTime(u).value;return{timestamp:u,value:[K,l]}};
_.MN.Object.defineProperties(su.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 u=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),K=this.a.lastMeasurement.timestamp.equals(u)?this.a.lastMeasurement.value:this.a.extrapolateToTime(u).value,l=this.b.lastMeasurement.timestamp.equals(u)?this.b.lastMeasurement.value:this.b.extrapolateToTime(u).value;return{timestamp:u,value:[K,l]}}}});var oB=function(u,K){this.input=u;this.mapFunction=K;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
oB.prototype.equivalentTo=function(u){return u instanceof oB?this.input.equivalentTo(u.input)&&this.mapFunction===u.mapFunction:!1};
oB.prototype.extrapolateToTime=function(u){u=this.input.extrapolateToTime(u);return{timestamp:u.timestamp,value:this.mapFunction(u.value)}};
_.MN.Object.defineProperties(oB.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var WW=function(){};
WW.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
WW.prototype.extrapolateUsingTimestampMap=function(u){var K=this.clock.timeline,l,D=(l=u.get(K))!=null?l:this.clock.now();u.set(K,D);return this.extrapolateToTime(D)};
WW.prototype.map=function(u){return new NHC(this,u)};
WW.prototype.joinWith=function(u){return new k6B(this,u)};
var k6B=function(){su.apply(this,arguments);this.map=WW.prototype.map;this.joinWith=WW.prototype.joinWith;this.extrapolateToNow=WW.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=WW.prototype.extrapolateUsingTimestampMap};
_.c(k6B,su);var NHC=function(){oB.apply(this,arguments);this.map=WW.prototype.map;this.joinWith=WW.prototype.joinWith;this.extrapolateToNow=WW.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=WW.prototype.extrapolateUsingTimestampMap};
_.c(NHC,oB);var yf=function(u,K){this.lastMeasurement=K;this.extrapolateToNow=WW.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=WW.prototype.extrapolateUsingTimestampMap;this.map=WW.prototype.map;this.joinWith=WW.prototype.joinWith;this.clock=u};
yf.prototype.equivalentTo=function(u){return u.active};
yf.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.MN.Object.defineProperties(yf.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var cgq=YP(function(u){if(u.value.viewportGeometrySourceName==="omid"){if(u.value.elementGeometrySourceName==="nio")return"omio";if(u.value.elementGeometrySourceName==="geo")return"omgeo"}return u.value.elementGeometrySourceName==="geo"||u.value.elementGeometrySourceName==="nio"?u.value.viewportGeometrySourceName:u.value.elementGeometrySourceName});var HIb=zG(KS(function(u){return!isNaN(u)}),vK(function(u,K){return isNaN(u)?K:Math.min(u,K)},NaN),oO());var nTZ=CV(zG(YP(function(u){return u.intersectionGeometry.width*u.intersectionGeometry.height/(u.exposedViewportLocalGeometry.width*u.exposedViewportLocalGeometry.height)}),YP(function(u){return isFinite(u)?Math.min(1,u):0})));var OIn=zG(CV(YP(function(u){u=u.exposureOverride?u.elementGeometry.width*u.elementGeometry.height*u.exposureOverride/(u.topWindowViewportExternalGeometry.width*u.topWindowViewportExternalGeometry.height):u.intersectionGeometry.width*u.intersectionGeometry.height/(u.topWindowViewportExternalGeometry.width*u.topWindowViewportExternalGeometry.height);return isFinite(u)?u:0})));var Rpr=function(u,K){var l=this;this.timeProvider=u;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=K.pipe(oO()).subscribe(function(D){f7L(l);l.measurementRequestObserver=D})},QZq=function(u,K){f7L(u);
u.lastMeasurementRequest=u.timeProvider.setTimeout(function(){var l;return void((l=u.measurementRequestObserver)==null?void 0:l.next())},K)},f7L=function(u){u.lastMeasurementRequest!==null&&u.timeProvider.clearTimeout(u.lastMeasurementRequest);
u.lastMeasurementRequest=null};
Rpr.prototype.dispose=function(){f7L(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var Z_C=function(){};var upy=function(u,K){this.context=u;this.strategies=K};
_.c(upy,Z_C);upy.prototype.buildGeometrySource=function(u,K){var l=this.strategies.map(function(C){return C.buildGeometrySource(u,K)}),D=p$r(l.map(function(C){return C.geometrySource})),d=D.capturedErrors.pipe(YoC());
return{geometrySource:D.chain.pipe(fS(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:d,strategyErrors:D.capturedErrors}].concat(_.Am(l.map(function(C){return C.additionalOutputs}))))}};
var YoC=function(){return vK(function(u,K){K instanceof gu?u.push(K.measurementStrategyFailureReason):u.push(-1);return u},[])};var lYq=function(u,K){this.context=u;this.poller=K};
_.c(lYq,Z_C);lYq.prototype.buildGeometrySource=function(u,K){var l=iI9(w$h(this.context,this.poller),mtL(this.context,K.requestSource));return{geometrySource:Bp9(u.measurableCreative.pipe(l),K.inApp),additionalOutputs:{}}};var KTw=function(u,K,l){l=l===void 0?l7q(u,K):l;this.context=u;this.intersectionObserverStrategy=l};
_.c(KTw,Z_C);KTw.prototype.buildGeometrySource=function(u,K){var l=this.intersectionObserverStrategy(K.useV2);return{geometrySource:Bp9(u.measurableCreative.pipe(l,Doy(this.context)),K.inApp),additionalOutputs:{}}};var AES=function(u,K,l){var D=D===void 0?Symbol():D;this.element=u;this.immediateUrls=K;this.timeOnScreenUrls=l;this.symbol=D};var epo=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),ZIo=Object.freeze([1,.75,epo.exposureThreshold,epo.largeAdExposureThreshold,0]);var LCZ=function(u,K){K=K===void 0?36E5:K;var l=l===void 0?!0:l;this.creatives=new RO;this.elementsToUnregister=new RO;this.elementMap=new Map;var D=new WO(window,null);D.beaconFactory=new Py(D,new dx(D));LtZ(D,this.creatives,this.elementsToUnregister,u,K,l).subscribe()},lio=function(u,K,l,D){if(!u.elementMap.has(K)){var d=new u2(K);
u.elementMap.set(K,d);u.creatives.next(new AES(d,l,D))}},Kn9=function(u,K){u.elementsToUnregister.next(K);
var l=u.elementMap.get(K);l!==void 0&&(l.release(),u.elementMap.delete(K))};var EHq=function(u){var K=u.url;u=u.uaDataValues;this.JSC$9402_url_=K;this.uaDataValues_=u;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var l=/[?&]([^&=]+)=([^&]*)/g;u=l.exec(K);)this.urlParamValues_[u[1]]=u[2]},L3L=function(u){u=u.uaDataValues_;
if(!u)return"";var K=Mt("uap",u.platform)+Mt("uapv",u.platformVersion)+Mt("uafv",u.uaFullVersion)+Mt("uaa",u.architecture)+Mt("uam",u.model)+Mt("uab",u.bitness);u.fullVersionList&&(K+="&uafvl="+encodeURIComponent(u.fullVersionList.map(function(l){return encodeURIComponent(l.brand)+";"+encodeURIComponent(l.version)}).join("|")));
u.wow64!=null&&(K+="&uaw="+Number(u.wow64));return K.slice(1)};var XEw=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(XEw,_.b5);XEw.prototype.getId=function(){return _.A0(this,1)};var HW=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(HW,_.b5);HW.prototype.getSeconds=function(){return ZO(this,1)};
HW.prototype.setSeconds=function(u){return _.M9(this,1,f_(u),"0")};_.Lz=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(_.Lz,_.b5);_.Lz.prototype.getSeconds=function(){return ZO(this,1)};
_.Lz.prototype.setSeconds=function(u){return _.M9(this,1,f_(u),"0")};
_.mpm=function(u){var K=Number(Ef(u,1));u=_.tq(u,2);return new Date(K*1E3+u/1E6)};var Me=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Me,_.b5);Me.prototype.getUrl=function(){return _.A0(this,1)};
Me.prototype.setUrl=function(u){return _.oX(this,1,u)};
Me.prototype.getHeight=function(){return _.tq(this,2)};
Me.prototype.getWidth=function(){return _.tq(this,3)};var qe=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(qe,_.b5);qe.prototype.getAspectRatio=function(){return Y2(this,1)};
qe.prototype.setAspectRatio=function(u){return _.M9(this,1,_.Mp(u),0)};
qe.prototype.getDuration=function(){return _.fV(this,HW,2)};var hiN=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(hiN,_.b5);var Epw=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Epw,_.b5);var L_S=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(L_S,_.b5);var uzk=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(uzk,_.b5);var KJk=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(KJk,_.b5);var lk0=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(lk0,_.b5);var D9B=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(D9B,_.b5);var d9s=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(d9s,_.b5);var C5N=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(C5N,_.b5);var $z=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c($z,_.b5);var nJ=[2,4,5,6,7];var Ik0=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Ik0,_.b5);var VW=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(VW,_.b5);_.I=VW.prototype;_.I.getId=function(){return _.fV(this,XEw,1)};
_.I.getName=function(){return _.A0(this,2)};
_.I.setDescription=function(u){return _.oX(this,3,u)};
_.I.getUrl=function(){return _.A0(this,8)};
_.I.setUrl=function(u){return _.oX(this,8,u)};
var rx=function(u){return _.rB(u,Me,10,_.vO())};
VW.prototype.getOwner=function(u){var K=_.sS(this,40,_.wH,3,!0);gN(K,u);return K[u]};
VW.prototype.getVersion=function(){return ZO(this,45)};
var vW=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(vW,_.b5);_.yXw=[0,gd9,klh];_.sQw=[0,gd9,klh];var ou0=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(ou0,_.b5);var GY=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(GY,_.b5);GY.prototype.getStatus=function(){return _.h0(this,1)};
GY.prototype.removeItem=function(u){return yzh(this,2,u)};var WJa=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(WJa,_.b5);WJa.prototype.getName=function(){return _.A0(this,8)};var t1=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(t1,_.b5);t1.prototype.getCommand=function(){return _.h0(this,1)};
t1.prototype.getSource=function(){return _.fV(this,WJa,2)};
t1.prototype.setVisible=function(u){return _.NN(this,5,u)};
t1.prototype.removeItem=function(u){return yzh(this,7,u)};var HMs=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(HMs,_.b5);HMs.prototype.getCommand=function(){return _.h0(this,1)};
HMs.prototype.removeItem=function(u){return yzh(this,4,u)};
var MFk=_.QS(HMs);var xz=function(u,K,l){l=l===void 0?Error():l;var D=Error.call(this);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.code=u;K+=":";l instanceof Error?(this.message=K+l.message,this.stack=l.stack||""):(this.message=K+String(l),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(xz,Error);_.TZ=function(){this.JSC$9460_disposed_=this.JSC$9460_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.TZ.prototype.JSC$9460_disposed_=!1;_.TZ.prototype.isDisposed=function(){return this.JSC$9460_disposed_};
_.TZ.prototype.dispose=function(){this.JSC$9460_disposed_||(this.JSC$9460_disposed_=!0,this.disposeInternal())};
_.TZ.prototype[Symbol.dispose]=function(){this.dispose()};
_.eb=function(u,K){u.addOnDisposeCallback(_.Js(_.qt,K))};
_.TZ.prototype.addOnDisposeCallback=function(u,K){this.JSC$9460_disposed_?K!==void 0?u.call(K):u():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),K&&(u=u.bind(K)),this.onDisposeCallbacks_.push(u))};
_.TZ.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var S3=function(u){_.TZ.call(this);this.wpc=u};
_.c(S3,_.TZ);S3.prototype.s2m=function(){return this.wpc.f()};
S3.prototype.l3K=function(u){return this.wpc.c(u)};
S3.prototype.u7=function(u){return this.wpc.m(nDn(u))};
S3.prototype.mt8=function(u){return this.wpc.mws(nDn(u))};
var nV=function(u){_.TZ.call(this);var K=this;this.vm=u;this.c12="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.i1Q=void 0;this.ceC=this.vm.p;this.fmJ=this.pyp.bind(this);this.addOnDisposeCallback(function(){return void qSB(K)})};
_.c(nV,_.TZ);var $9m=function(u){var K;return _.H(function(l){if(l.nextAddress==1){if(!u.vm.wpc)throw new xz(30,"NWA");return u.jHu?l.return(u.jHu):l.yield(u.vm.wpc(),2)}K=l.yieldResult;u.jHu=new S3(K);return l.return(u.jHu)})};
nV.prototype.snapshot=function(u){return this.vm.s(Object.assign({},u.mk&&{c:u.mk},u.egq&&{s:u.egq},u.n6O!==void 0&&{p:u.n6O}))};
nV.prototype.pyp=function(u){this.vm.e(u)};
nV.prototype.in9=function(u,K){return this.vm.c(u,K,!1)};
var qSB=function(u){u.i1Q!==void 0&&(u.c12.forEach(function(K){var l;(l=u.i1Q)==null||l.removeEventListener(K,u.fmJ)}),u.i1Q=void 0)};
nV.prototype.ncF=function(){return this.vm.l()};var nuA,b4=function(){_.TZ.apply(this,arguments);this.reJ=1;this[nuA]=this.dispose};
_.c(b4,_.TZ);b4.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.reJ++;return this};
b4.prototype.dispose=function(){--this.reJ||_.TZ.prototype.dispose.call(this)};
nuA=Symbol.dispose;var rXC=function(u){this.sV5=u;u.addNewEventMetric("/client_streamz/bg/frs",_.b2("mk"))};
rXC.prototype.record=function(u,K){this.sV5.record("/client_streamz/bg/frs",u,K)};
var vuw=function(u){this.ewf=u;u.addNewEventMetric("/client_streamz/bg/wrl",_.b2("mn"),Sb("ac"),Sb("sc"),_.b2("rk"),_.b2("mk"))};
vuw.prototype.record=function(u,K,l,D,d,C){this.ewf.record("/client_streamz/bg/wrl",u,K,l,D,d,C)};
var Ggw=function(u){this.pWm=u;u.addNewCounter("/client_streamz/bg/ec",_.b2("en"),_.b2("mk"))};
Ggw.prototype.increment=function(u,K){this.pWm.JSC$9714_incrementCounter("/client_streamz/bg/ec",u,K)};
var tFk=function(u){this.rEJ=u;u.addNewEventMetric("/client_streamz/bg/el",_.b2("en"),_.b2("mk"))};
tFk.prototype.record=function(u,K,l){this.rEJ.record("/client_streamz/bg/el",u,K,l)};
var x9m=function(u){this.g0c=u;u.addNewCounter("/client_streamz/bg/cec",Sb("ec"),_.b2("mk"))};
x9m.prototype.increment=function(u,K){this.g0c.JSC$9714_incrementCounter("/client_streamz/bg/cec",u,K)};
var SSH=function(u){this.lv4=u;u.addNewCounter("/client_streamz/bg/po/csc",Sb("cs"),_.b2("mk"))};
SSH.prototype.increment=function(u,K){this.lv4.JSC$9714_incrementCounter("/client_streamz/bg/po/csc",u,K)};
var bMN=function(u){this.mpb=u;u.addNewCounter("/client_streamz/bg/po/ctav",_.b2("av"),_.b2("mk"))};
bMN.prototype.increment=function(u,K){this.mpb.JSC$9714_incrementCounter("/client_streamz/bg/po/ctav",u,K)};
var OMm=function(u){this.wWb=u;u.addNewCounter("/client_streamz/bg/po/cwsc",_.b2("su"),_.b2("mk"))};
OMm.prototype.increment=function(u,K){this.wWb.JSC$9714_incrementCounter("/client_streamz/bg/po/cwsc",u,K)};var Nib=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Nib,_.b5);var gDL=function(u,K){return _.Hr(u,3,K,Eyy)};var cXC=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(cXC,_.b5);var akN=[1,2,3];var zuk=[0,akN,_.mqy,ZOH,XXq];var eu0=[0,_.qb,[0,wXq,_.oq]];var Rus=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Rus,_.b5);var U9a=[1,2,3];var fkB=[0,U9a,NDb,FVr,_.$A,eu0];var QQR=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(QQR,_.b5);var P5k=[0,_.qb,zuk,fkB];var JXa=[0,_.Mb];var jQw=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(jQw,_.b5);var BbH=[0,_.Mb,-1,_.Hy];var pr2=[0,_.Mb,-1,_.Wy,_.Hy];var iMk=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(iMk,_.b5);var TbS=[1,2,3];var wra=[0,TbS,_.$A,BbH,_.$A,pr2,_.$A,JXa];var FJB=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(FJB,_.b5);FJB.prototype.JSC$9534_serializeBinary=SSq([0,_.Mb,wra,h$b,_.qb,P5k,YIH,Azb]);var VFa=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(VFa,_.b5);var kgw=function(u){var K=new FJB;K=_.Tj(K,1,u.JSC$9650_metricName);var l=guC(u);K=_.Hr(K,3,l,_.iG);l=[];for(var D=[],d=_.y(u.cellMap.keys()),C=d.next();!C.done;C=d.next())D.push(C.value.split(","));for(d=0;d<D.length;d++){C=D[d];for(var W=u.cellType,M=u.getCells(C)||[],q=[],v=0;v<M.length;v++){var G=M[v],t=G&&G.cellValue;G=new Rus;switch(W){case 3:t=Number(t);Number.isFinite(t)&&U5(G,1,U9a,f_(t));break;case 2:U5(G,2,U9a,_.Mp(Number(t)))}q.push(G)}W=q;for(M=0;M<W.length;M++){q=W[M];v=new QQR;q=_.jF(v,
2,q);v=[];G=Nbw(u);for(t=0;t<G.length;t++){var x=G[t],O=C[t],a=new cXC;switch(x){case 3:U5(a,1,akN,T6(String(O)));break;case 2:x=Number(O);Number.isFinite(x)&&U5(a,2,akN,_.bG(x));break;case 1:U5(a,3,akN,Xoh(O==="true"))}v.push(a)}FY(q,1,v);l.push(q)}}FY(K,4,l);return K};var ZMm=function(u){if(!u)return"";if(/^about:(?:blank|srcdoc)$/.test(u))return window.origin||"";u.indexOf("blob:")===0&&(u=u.substring(5));u=u.split("#")[0].split("?")[0];u=u.toLowerCase();u.indexOf("//")==0&&(u=window.location.protocol+u);/^[\w\-]*:\/\//.test(u)||(u=window.location.href);var K=u.substring(u.indexOf("://")+3),l=K.indexOf("/");l!=-1&&(K=K.substring(0,l));l=u.substring(0,u.indexOf("://"));if(!l)throw Error("qa`"+u);if(l!=="http"&&l!=="https"&&l!=="chrome-extension"&&l!=="moz-extension"&&
l!=="file"&&l!=="android-app"&&l!=="chrome-search"&&l!=="chrome-untrusted"&&l!=="chrome"&&l!=="app"&&l!=="devtools")throw Error("ra`"+l);u="";var D=K.indexOf(":");if(D!=-1){var d=K.substring(D+1);K=K.substring(0,D);if(l==="http"&&d!=="80"||l==="https"&&d!=="443")u=":"+d}return l+"://"+K+u};var AXk=function(u,K,l){var D=String(_.lL.location.href);return D&&u&&K?[K,YSw(ZMm(D),u,l||null)].join(" "):null},YSw=function(u,K,l){var D=[],d=[];
if((Array.isArray(l)?2:1)==1)return d=[K,u],_.yx(D,function(M){d.push(M)}),XrC(d.join(" "));
var C=[],W=[];_.yx(l,function(M){W.push(M.key);C.push(M.value)});
l=Math.floor((new Date).getTime()/1E3);d=C.length==0?[l,K,u]:[C.join(":"),l,K,u];_.yx(D,function(M){d.push(M)});
u=XrC(d.join(" "));u=[l,u];W.length==0||u.push(W.join(""));return u.join("_")},XrC=function(u){var K=O0H();
K.update(u);return K.digestString().toLowerCase()};var Ou=function(u){this.JSC$9545_document_=u||{cookie:""}},m9k;
_.I=Ou.prototype;_.I.isEnabled=function(){if(!_.lL.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};
_.I.set=function(u,K,l){var D=!1;if(typeof l==="object"){var d=l.sameSite;D=l.secure||!1;var C=l.domain||void 0;var W=l.path||void 0;var M=l.maxAge}if(/[;=\s]/.test(u))throw Error("sa`"+u);if(/[;\r\n]/.test(K))throw Error("ta`"+K);M===void 0&&(M=-1);l=C?";domain="+C:"";W=W?";path="+W:"";D=D?";secure":"";M=M<0?"":M==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+M*1E3)).toUTCString();this.JSC$9545_document_.cookie=u+"="+K+l+W+M+D+(d!=null?";samesite="+d:"")};
_.I.get=function(u,K){for(var l=u+"=",D=(this.JSC$9545_document_.cookie||"").split(";"),d=0,C;d<D.length;d++){C=qw(D[d]);if(C.lastIndexOf(l,0)==0)return C.slice(l.length);if(C==u)return""}return K};
_.I.remove=function(u,K,l){var D=this.containsKey(u);this.set(u,"",{maxAge:0,path:K,domain:l});return D};
_.I.getKeys=function(){return m9k(this).keys};
_.I.getValues=function(){return m9k(this).values};
_.I.isEmpty=function(){return!this.JSC$9545_document_.cookie};
_.I.getCount=function(){return this.JSC$9545_document_.cookie?(this.JSC$9545_document_.cookie||"").split(";").length:0};
_.I.containsKey=function(u){return this.get(u)!==void 0};
_.I.containsValue=function(u){for(var K=m9k(this).values,l=0;l<K.length;l++)if(K[l]==u)return!0;return!1};
_.I.clear=function(){for(var u=m9k(this).keys,K=u.length-1;K>=0;K--)this.remove(u[K])};
m9k=function(u){u=(u.JSC$9545_document_.cookie||"").split(";");for(var K=[],l=[],D,d,C=0;C<u.length;C++)d=qw(u[C]),D=d.indexOf("="),D==-1?(K.push(""),l.push(d)):(K.push(d.substring(0,D)),l.push(d.substring(D+1)));return{keys:K,values:l}};
_.jg=new Ou(typeof document=="undefined"?null:document);var pPn,huB;pPn=function(){var u=_.lL.__SAPISID||_.lL.__APISID||_.lL.__3PSAPISID||_.lL.__1PSAPISID||_.lL.__OVERRIDE_SID;if(u)return!0;typeof document!=="undefined"&&(u=new Ou(document),u=u.get("SAPISID")||u.get("APISID")||u.get("__Secure-3PAPISID")||u.get("__Secure-1PAPISID"));return!!u};
huB=function(u,K,l,D){(u=_.lL[u])||typeof document==="undefined"||(u=(new Ou(document)).get(K));return u?AXk(u,l,D):null};
_.e4Z=function(u){var K=ZMm(_.lL==null?void 0:_.lL.location.href),l=[];if(pPn()){K=K.indexOf("https:")==0||K.indexOf("chrome-extension:")==0||K.indexOf("chrome-untrusted://new-tab-page")==0||K.indexOf("moz-extension:")==0;var D=K?_.lL.__SAPISID:_.lL.__APISID;D||typeof document==="undefined"||(D=new Ou(document),D=D.get(K?"SAPISID":"APISID")||D.get("__Secure-3PAPISID"));(D=D?AXk(D,K?"SAPISIDHASH":"APISIDHASH",u):null)&&l.push(D);K&&((K=huB("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",u))&&l.push(K),
(u=huB("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",u))&&l.push(u))}return l.length==0?null:l.join(" ")};var Eus=function(){this.minSize=1024};
Eus.prototype.compress=function(u){var K,l,D,d;return _.H(function(C){switch(C.nextAddress){case 1:return K=new CompressionStream("gzip"),l=(new Response(K.readable)).arrayBuffer(),D=K.writable.getWriter(),C.yield(D.write((new TextEncoder).encode(u)),2);case 2:return C.yield(D.close(),3);case 3:return d=Uint8Array,C.yield(l,4);case 4:return C.return(new d(C.yieldResult))}})};
Eus.prototype.isSupported=function(u){return u<this.minSize?!1:typeof CompressionStream!=="undefined"};var LJw=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(LJw,_.b5);var cW=function(u,K){this.intervalMs=u;this.callback=K;this.enabled=!1;this.nowFn=function(){return _.x2()};
this.lastTimeMs=this.nowFn()};
cW.prototype.setInterval=function(u){this.intervalMs=u;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
cW.prototype.start=function(){var u=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){u.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
cW.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
cW.prototype.tick=function(){var u=this;if(this.enabled){var K=Math.max(this.nowFn()-this.lastTimeMs,0);K<this.intervalMs*.8?this.timer=setTimeout(function(){u.tick()},this.intervalMs-K):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var un2=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(un2,_.b5);var KW2=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(KW2,_.b5);var lIw=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(lIw,_.b5);lIw.prototype.getTransmissionType=function(){return _.h0(this,1)};var e99=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(e99,_.b5);e99.prototype.getVersion=function(){return _.A0(this,2)};var aB=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(aB,_.b5);var z9q=function(u){FY(R99,1,u)};
aB.prototype.getModel=function(){return _.A0(this,6)};
var DT0=_.QS(aB);var dTk=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(dTk,_.b5);var c8b=["platform","platformVersion","architecture","model","uaFullVersion"],R99=new aB,aYL=null;var zY=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(zY,_.b5);var CYR=function(u){return _.xL(u,1,1)};var IIw=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u,4)};
_.c(IIw,_.b5);_.e3=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u,36)};
_.c(_.e3,_.b5);_.e3.prototype.getExperimentIds=function(){return _.fV(this,LJw,16)};var ymS=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u,19)};
_.c(ymS,_.b5);ymS.prototype.setLogSource=function(u){return _.xL(this,2,u)};
ymS.prototype.setScheduler=function(u){return _.xL(this,10,u)};var oPm=function(u,K){this.isServiceWorkerScope=K=K===void 0?!1:K;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new ymS;Number.isInteger(u)&&this.logRequest.setLogSource(u);K||(this.locale=document.documentElement.getAttribute("lang"));sSB(this,new zY)};
oPm.prototype.setLogSource=function(u){this.logRequest.setLogSource(u);return this};
var sSB=function(u,K){_.jF(u.logRequest,1,K);_.h0(K,1)||CYR(K);u.isServiceWorkerScope||(K=RB(u),_.A0(K,5)||_.Tj(K,5,u.locale));u.uach&&(K=RB(u),_.fV(K,aB,9)||_.jF(K,9,u.uach))},WWN=function(u,K){u.transmissionType=K},HHw=function(u){var K=K===void 0?c8b:K;
var l=u.isServiceWorkerScope?void 0:mp();l?U_L(l,K).then(function(D){u.uach=DT0(D!=null?D:"[]");D=RB(u);_.jF(D,9,u.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},RB=function(u){var K=_.fV(u.logRequest,zY,1);
K||(K=new zY,sSB(u,K));u=K;K=_.fV(u,dTk,11);K||(K=new dTk,_.jF(u,11,K));return K};
oPm.prototype.build=function(u,K,l,D,d,C){K=K===void 0?0:K;l=l===void 0?0:l;D=D===void 0?null:D;d=d===void 0?0:d;C=C===void 0?0:C;if(!this.isServiceWorkerScope){var W=RB(this);var M=new lIw;M=_.xL(M,1,this.transmissionType);M=_.OQ(M,2,this.isFinal);l=_.Ka(M,3,l>0?l:void 0);l=_.Ka(l,4,d>0?d:void 0);l=_.Ka(l,5,C>0?C:void 0);d=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;C=d[_.e2]|0;l=ps(l,C)?l:yEy(l,d,C)?IBw(l,d):new l.constructor(Eo(d,C,!0));_.jF(W,10,l)}W=this.logRequest.clone();l=Date.now().toString();
W=_.SG(W,4,f_(l));u=u.slice();u=FY(W,3,u);D&&(W=new un2,D=_.Ka(W,13,D),W=new KW2,D=_.jF(W,2,D),W=new IIw,D=_.jF(W,1,D),D=_.xL(D,2,9),_.jF(u,18,D));K&&_.iP(u,14,K);return u};cO.prototype.currBackoffCount_=0;cO.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
cO.prototype.getValue=function(){return this.currValue_};
var Mja=function(u){u.currBaseValue_=Math.min(u.maxValue_,u.currBaseValue_*u.backoffFactor_);u.currValue_=Math.min(u.maxValue_,u.currBaseValue_+(u.randomFactor_?Math.round(u.randomFactor_*(Math.random()-.5)*2*u.currBaseValue_):0));u.currBackoffCount_++};var lEh=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u,8)};
_.c(lEh,_.b5);var q2C=_.QS(lEh);var DWh=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(DWh,_.b5);var Uu;Uu=new dWq;var fJ=function(u){_.TZ.call(this);var K=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9623_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$9623_sendBeaconApiEnabled=!1;this.logSource=u.logSource;this.getAuthHeaderValue=
u.getAuthHeaderValue||function(){};
this.logRequestBuilder=new oPm(u.logSource,u.isServiceWorkerScope);this.network=u.network||null;this.productID=u.productID||null;this.bufferSize=1E3;this.clearcutUrl=u.urlOverride||null;this.sessionIndex=u.sessionIndex||null;this.disableAutomaticFlush=u.disableAutomaticFlush||!1;this.withCredentials=!u.disableWithCredentials;this.isServiceWorkerScope=u.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!mp()&&!!mp().navigator&&mp().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL($Tw())).searchParams&&!!(new URL($Tw())).searchParams.set;var l=CYR(new zY);sSB(this.logRequestBuilder,l);this.flushBackoff=new cO(1E4,3E5,.1);u=nP2(this,u.backgroundJobDeferrer);this.JSC$9623_flushTimer=new cW(this.flushBackoff.getValue(),u);this.backupTimer=new cW(6E5,u);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){rmw(K);
var D;(D=K.metalogService)==null||D.flush()}}),document.addEventListener("pagehide",function(){rmw(K);
var D;(D=K.metalogService)==null||D.flush()}))};
_.c(fJ,_.TZ);var nP2=function(u,K){return u.isBrowserSupported?K?function(){K().then(function(){u.flush()})}:function(){u.flush()}:function(){}};
fJ.prototype.disposeInternal=function(){rmw(this);this.JSC$9623_flushTimer.stop();this.backupTimer.stop();_.TZ.prototype.disposeInternal.call(this)};
var vPm=function(u){u.clearcutUrl||(u.clearcutUrl=$Tw());try{return(new URL(u.clearcutUrl)).toString()}catch(K){return(new URL(u.clearcutUrl,mp().location.origin)).toString()}};
fJ.prototype.dispatch=function(u){if(u instanceof _.e3)this.log(u);else try{var K=new _.e3,l=u.serialize();var D=_.Tj(K,8,l);this.log(D)}catch(d){QK(this,4,1)}};
var QK=function(u,K,l){u.metalogService&&u.metalogService.increment(K,l)};
fJ.prototype.log=function(u){QK(this,2,1);if(this.isBrowserSupported){u=u.clone();var K=this.sequencePosition++;u=_.iP(u,21,K);this.componentId&&_.Tj(u,26,this.componentId);K=u;if(rRH(_.ja(K,1))==null){var l=Date.now();l=Number.isFinite(l)?l.toString():"0";_.SG(K,1,f_(l))}_.n0L(_.ja(K,15))!=null||_.iP(K,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(l=this.experimentIds.clone(),_.jF(K,16,l));QK(this,1,1);K=this.pendingEvents.length-this.bufferSize+1;K>0&&(this.pendingEvents.splice(0,K),
this.numLogsDroppedSinceLastFlush+=K,QK(this,3,K));this.pendingEvents.push(u);this.disableAutomaticFlush||this.JSC$9623_flushTimer.enabled||this.JSC$9623_flushTimer.start()}};
fJ.prototype.flush=function(u,K){var l=this;if(this.pendingEvents.length===0)u&&u();else if(this.JSC$9623_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,GGk(this);else{var D=Date.now();if(this.noFlushUntilMs>D&&this.startWaitingMs<D)K&&K("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?WWN(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var d=this.pendingEvents.length,
C=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),W=this.getAuthHeaderValue();if(W&&this.lastFailedAuth===W)K&&K("stale-auth-token");else{this.pendingEvents=[];this.JSC$9623_flushTimer.enabled&&this.JSC$9623_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;D=C.serialize();var M;this.JSC$9623_compressor&&this.JSC$9623_compressor.isSupported(D.length)&&
(M=this.JSC$9623_compressor.compress(D));var q=tj2(this,D,W),v=function(x){l.flushBackoff.reset();l.JSC$9623_flushTimer.setInterval(l.flushBackoff.getValue());if(x){var O=null;try{var a=JSON.stringify(JSON.parse(x.replace(")]}'\n","")));O=q2C(a)}catch(f){}O&&(x=Number(ZO(O,1,_.XH("-1"))),x>0&&(l.startWaitingMs=Date.now(),l.noFlushUntilMs=l.startWaitingMs+x),paq(O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Uu.fieldIndex),jCq(O,Uu.fieldIndex),O=Uu.ctor?Uu.getExtensionFn(O,Uu.ctor,Uu.fieldIndex,
Uu.JSC$8802_hasMessageId):Uu.getExtensionFn(O,Uu.fieldIndex,null,Uu.JSC$8802_hasMessageId),O=O===null?void 0:O)&&(O=_.tq(O,1,-1),O!==-1&&(l.flushBackoff=new cO(O<1?1:O,3E5,.1),l.JSC$9623_flushTimer.setInterval(l.flushBackoff.getValue())))}u&&u();l.numRetriesSinceLastSuccessfulFlush=0},G=function(x,O){var a=_.rB(C,_.e3,3,_.vO());
var f=Number(ZO(C,14));Mja(l.flushBackoff);l.JSC$9623_flushTimer.setInterval(l.flushBackoff.getValue());x===401&&W&&(l.lastFailedAuth=W);f&&(l.numLogsDroppedSinceLastFlush+=f);O===void 0&&(O=l.isRetryable(x));O&&(l.pendingEvents=a.concat(l.pendingEvents),l.disableAutomaticFlush||l.JSC$9623_flushTimer.enabled||l.JSC$9623_flushTimer.start());QK(l,7,1);K&&K("net-send-failed",x);++l.numRetriesSinceLastSuccessfulFlush},t=function(){l.network&&l.network.send(q,v,G)};
M?M.then(function(x){QK(l,5,d);q.requestHeaders["Content-Encoding"]="gzip";q.requestHeaders["Content-Type"]="application/binary";q.body=x;q.bodyType=2;t()},function(){QK(l,6,d);
t()}):t()}}}};
var tj2=function(u,K,l){l=l===void 0?null:l;var D=D===void 0?u.withCredentials:D;var d={},C=new URL(vPm(u));l&&(d.Authorization=l);u.sessionIndex&&(d["X-Goog-AuthUser"]=u.sessionIndex,C.searchParams.set("authuser",u.sessionIndex));u.pageId&&(Object.defineProperty(d,"X-Goog-PageId",{value:u.pageId}),C.searchParams.set("pageId",u.pageId));return{url:C.toString(),body:K,bodyType:1,requestHeaders:d,requestType:"POST",withCredentials:D,timeoutMillis:u.timeoutMillis}},rmw=function(u){u.logRequestBuilder.isFinal=
!0;
u.flush();u.logRequestBuilder.isFinal=!1},GGk=function(u){xTN(u,function(K,l){K=new URL(K);
K.searchParams.set("format","json");var D=!1;try{D=mp().navigator.sendBeacon(K.toString(),l.serialize())}catch(d){}D||(u.isSendBeaconSupported=!1);return D})},xTN=function(u,K){if(u.pendingEvents.length!==0){var l=new URL(vPm(u));
l.searchParams.delete("format");var D=u.getAuthHeaderValue();D&&l.searchParams.set("auth",D);l.searchParams.set("authuser",u.sessionIndex||"0");for(D=0;D<10&&u.pendingEvents.length;++D){var d=u.pendingEvents.slice(0,32),C=u.logRequestBuilder.build(d,u.numLogsDroppedSinceLastFlush,u.numRetriesSinceLastSuccessfulFlush,u.productID,u.persistedLogRecoveredCount,u.persistedLogExpiredCount);if(!K(l.toString(),C)){++u.numRetriesSinceLastSuccessfulFlush;break}u.numLogsDroppedSinceLastFlush=0;u.numRetriesSinceLastSuccessfulFlush=
0;u.persistedLogRecoveredCount=0;u.persistedLogExpiredCount=0;u.pendingEvents=u.pendingEvents.slice(d.length)}u.JSC$9623_flushTimer.enabled&&u.JSC$9623_flushTimer.stop()}};
fJ.prototype.isRetryable=function(u){return 500<=u&&u<600||u===401||u===0};
var $Tw=function(){return"https://play.google.com/log?format=json&hasfast=true"};var S2w=function(){this.abortSupported=typeof AbortController!=="undefined"};
S2w.prototype.send=function(u,K,l){var D=this,d,C,W,M,q,v,G,t,x,O;return _.H(function(a){switch(a.nextAddress){case 1:return C=(d=D.abortSupported?new AbortController:void 0)?setTimeout(function(){d.abort()},u.timeoutMillis):void 0,_.Qg(a,2,3),W=Object.assign({},{method:u.requestType,
headers:Object.assign({},u.requestHeaders)},u.body&&{body:u.body},u.withCredentials&&{credentials:"include"},{signal:u.timeoutMillis&&d?d.signal:null}),a.yield(fetch(u.url,W),5);case 5:M=a.yieldResult;if(M.status!==200){(q=l)==null||q(M.status);a.jumpTo(3);break}if((v=K)==null){a.jumpTo(7);break}return a.yield(M.text(),8);case 8:v(a.yieldResult);case 7:case 3:_.jj(a);clearTimeout(C);_.pH(a,0);break;case 2:G=_.iY(a);switch((t=G)==null?void 0:t.name){case "AbortError":(x=l)==null||x(408);break;default:(O=
l)==null||O(400)}a.jumpTo(3)}})};
S2w.prototype.getTransmissionType=function(){return 4};_.zZ=function(u,K){K=K===void 0?"0":K;_.TZ.call(this);this.logSource=u;this.sessionIndex=K;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9641_clearExperimentIds=this.productID=null;this.JSC$9641_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.c(_.zZ,_.TZ);var wVo=function(u,K){u.buildLabel=K;return u},Tiy=function(u,K){u.network=K;
return u},VfH=function(u,K){u.JSC$9641_clearExperimentIds=K},i0h=function(u){u.JSC$9641_sendBeaconApiEnabled=!0;
return u};
_.zZ.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.zZ.prototype.build=function(){this.network||(this.network=new S2w);var u=new fJ({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.e4Z,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.eb(this,u);if(this.buildLabel){var K=this.buildLabel,l=
RB(u.logRequestBuilder);_.Tj(l,7,K)}u.JSC$9623_compressor=new Eus;this.componentId&&(u.componentId=this.componentId);this.productID&&(u.productID=this.productID);this.pageId&&(u.pageId=this.pageId);this.JSC$9641_clearExperimentIds&&((l=this.JSC$9641_clearExperimentIds)?(u.experimentIds||(u.experimentIds=new LJw),K=u.experimentIds,l=l.serialize(),_.Tj(K,4,l)):u.experimentIds&&_.SG(u.experimentIds,4));this.JSC$9641_sendBeaconApiEnabled&&(u.JSC$9623_sendBeaconApiEnabled=u.isSendBeaconSupported);HHw(u.logRequestBuilder);
this.bufferSize&&(u.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(u);return u};var k1H=function(u,K,l,D,d,C,W){u=u===void 0?-1:u;K=K===void 0?"":K;l=l===void 0?"":l;D=D===void 0?!1:D;d=d===void 0?"":d;_.TZ.call(this);this.logSource=u;this.componentId=K;C?K=C:(u=new _.zZ(u,"0"),u.componentId=K,_.eb(this,u),l!==""&&(u.destinationUrl=l),D&&(u.serviceWorkerScopeEnabled=!0),d&&wVo(u,d),W&&Tiy(u,W),K=u.build());this.JSC$9645_transport=K};
_.c(k1H,_.TZ);k1H.prototype.flush=function(u){u=u||[];if(u.length){for(var K=new VFa,l=[],D=0;D<u.length;D++){var d=u[D],C=kgw(d);l.push(C);d.clear()}FY(K,1,l);this.JSC$9645_transport.dispatch(K);this.JSC$9645_transport.flush()}};var bHR=function(u){this.cellValue=u};var PW=function(u,K,l){this.JSC$9650_metricName=u;this.cellType=K;this.fields=l||[];this.cellMap=new Map},Nbw=function(u){return u.fields.map(function(K){return K.fieldType})},guC=function(u){return u.fields.map(function(K){return K.fieldName})};
_.I=PW.prototype;_.I.addCell=function(u){var K=_.uY.apply(1,arguments),l=this.getCells(K);l?l.push(new bHR(u)):this.JSC$9650_setCell(u,K)};
_.I.JSC$9650_setCell=function(u){var K=this.JSC$9650_getKey(_.uY.apply(1,arguments));this.cellMap.set(K,[new bHR(u)])};
_.I.getCells=function(){var u=this.JSC$9650_getKey(_.uY.apply(0,arguments));return this.cellMap.has(u)?this.cellMap.get(u):void 0};
_.I.getCell=function(){var u=this.getCells(_.uY.apply(0,arguments));return u&&u.length?u[0]:void 0};
_.I.clear=function(){this.cellMap.clear()};
_.I.JSC$9650_getKey=function(){var u=_.uY.apply(0,arguments);return u?u.join(","):"key"};var OHB=function(u,K){PW.call(this,u,3,K)};
_.c(OHB,PW);OHB.prototype.JSC$9653_incrementCounterBy=function(u){var K=_.uY.apply(1,arguments),l=0,D=this.getCell(K);D&&(l=D.cellValue);this.JSC$9650_setCell(l+u,K)};var cmw=function(u,K){PW.call(this,u,2,K)};
_.c(cmw,PW);cmw.prototype.record=function(u){this.addCell(u,_.uY.apply(1,arguments))};_.J1=function(u){this.id=u};
_.J1.prototype.toString=function(){return this.id};_.j3=function(u,K){this.type=u instanceof _.J1?String(u):u;this.currentTarget=this.target=K;this.defaultPrevented=this.propagationStopped_=!1};
_.j3.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.j3.prototype.preventDefault=function(){this.defaultPrevented=!0};_.BW=function(u,K){_.j3.call(this,u?u.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;u&&this.init(u,K)};
_.Sa(_.BW,_.j3);
_.BW.prototype.init=function(u,K){var l=this.type=u.type,D=u.changedTouches&&u.changedTouches.length?u.changedTouches[0]:null;this.target=u.target||u.srcElement;this.currentTarget=K;K=u.relatedTarget;K||(l=="mouseover"?K=u.fromElement:l=="mouseout"&&(K=u.toElement));this.relatedTarget=K;D?(this.clientX=D.clientX!==void 0?D.clientX:D.pageX,this.clientY=D.clientY!==void 0?D.clientY:D.pageY,this.screenX=D.screenX||0,this.screenY=D.screenY||0):(this.offsetX=_.ea||u.offsetX!==void 0?u.offsetX:u.layerX,
this.offsetY=_.ea||u.offsetY!==void 0?u.offsetY:u.layerY,this.clientX=u.clientX!==void 0?u.clientX:u.pageX,this.clientY=u.clientY!==void 0?u.clientY:u.pageY,this.screenX=u.screenX||0,this.screenY=u.screenY||0);this.button=u.button;this.keyCode=u.keyCode||0;this.key=u.key||"";this.charCode=u.charCode||(l=="keypress"?u.keyCode:0);this.ctrlKey=u.ctrlKey;this.altKey=u.altKey;this.shiftKey=u.shiftKey;this.metaKey=u.metaKey;this.pointerId=u.pointerId||0;this.pointerType=u.pointerType;this.state=u.state;
this.timeStamp=u.timeStamp;this.event_=u;u.defaultPrevented&&_.BW.superClass_.preventDefault.call(this)};
_.BW.prototype.stopPropagation=function(){_.BW.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.BW.prototype.preventDefault=function(){_.BW.superClass_.preventDefault.call(this);var u=this.event_;u.preventDefault?u.preventDefault():u.returnValue=!1};var aIa="closure_listenable_"+(Math.random()*1E6|0),pJ=function(u){return!(!u||!u[aIa])};var z3s=0;var e3N=function(u,K,l,D,d){this.listener=u;this.proxy=null;this.src=K;this.type=l;this.capture=!!D;this.handler=d;this.key=++z3s;this.removed=this.callOnce=!1},R3w=function(u){u.removed=!0;
u.listener=null;u.proxy=null;u.src=null;u.handler=null};ae.prototype.add=function(u,K,l,D,d){var C=u.toString();u=this.listeners[C];u||(u=this.listeners[C]=[],this.typeCount_++);var W=UTB(u,K,D,d);W>-1?(K=u[W],l||(K.callOnce=!1)):(K=new e3N(K,this.src,C,!!D,d),K.callOnce=l,u.push(K));return K};
ae.prototype.remove=function(u,K,l,D){u=u.toString();if(!(u in this.listeners))return!1;var d=this.listeners[u];K=UTB(d,K,l,D);return K>-1?(R3w(d[K]),_.Yy(d,K),d.length==0&&(delete this.listeners[u],this.typeCount_--),!0):!1};
var fIs=function(u,K){var l=K.type;if(!(l in u.listeners))return!1;var D=_.AH(u.listeners[l],K);D&&(R3w(K),u.listeners[l].length==0&&(delete u.listeners[l],u.typeCount_--));return D};
ae.prototype.removeAll=function(u){u=u&&u.toString();var K=0,l;for(l in this.listeners)if(!u||l==u){for(var D=this.listeners[l],d=0;d<D.length;d++)++K,R3w(D[d]);delete this.listeners[l];this.typeCount_--}return K};
ae.prototype.getListener=function(u,K,l,D){u=this.listeners[u.toString()];var d=-1;u&&(d=UTB(u,K,l,D));return d>-1?u[d]:null};
ae.prototype.hasListener=function(u,K){var l=u!==void 0,D=l?u.toString():"",d=K!==void 0;return _.k$.some(this.listeners,function(C){for(var W=0;W<C.length;++W)if(!(l&&C[W].type!=D||d&&C[W].capture!=K))return!0;return!1})};
var UTB=function(u,K,l,D){for(var d=0;d<u.length;++d){var C=u[d];if(!C.removed&&C.listener==K&&C.capture==!!l&&C.handler==D)return d}return-1};var QSk,PY2,Jmk,Bmm,pZB,Fu,V2,wZC,iHR,TmN,i4,FWa,jSa;QSk="closure_lm_"+(Math.random()*1E6|0);PY2={};Jmk=0;_.kU=function(u,K,l,D,d){if(D&&D.once)return Fu(u,K,l,D,d);if(Array.isArray(K)){for(var C=0;C<K.length;C++)_.kU(u,K[C],l,D,d);return null}l=jSa(l);return pJ(u)?u.listen(K,l,_.Ks(D)?!!D.capture:!!D,d):Bmm(u,K,l,!1,D,d)};
Bmm=function(u,K,l,D,d,C){if(!K)throw Error("va");var W=_.Ks(d)?!!d.capture:!!d,M=i4(u);M||(u[QSk]=M=new ae(u));l=M.add(K,l,D,W,C);if(l.proxy)return l;D=pZB();l.proxy=D;D.src=u;D.listener=l;if(u.addEventListener)_.P$R||(d=W),d===void 0&&(d=!1),u.addEventListener(K.toString(),D,d);else if(u.attachEvent)u.attachEvent(iHR(K.toString()),D);else if(u.addListener&&u.removeListener)u.addListener(D);else throw Error("wa");Jmk++;return l};
pZB=function(){var u=TmN,K=function(l){return u.call(K.src,K.listener,l)};
return K};
Fu=function(u,K,l,D,d){if(Array.isArray(K)){for(var C=0;C<K.length;C++)Fu(u,K[C],l,D,d);return null}l=jSa(l);return pJ(u)?u.listenOnce(K,l,_.Ks(D)?!!D.capture:!!D,d):Bmm(u,K,l,!0,D,d)};
_.TY=function(u,K,l,D,d){if(Array.isArray(K))for(var C=0;C<K.length;C++)_.TY(u,K[C],l,D,d);else D=_.Ks(D)?!!D.capture:!!D,l=jSa(l),pJ(u)?u.unlisten(K,l,D,d):u&&(u=i4(u))&&(K=u.getListener(K,l,D,d))&&V2(K)};
V2=function(u){if(typeof u==="number"||!u||u.removed)return!1;var K=u.src;if(pJ(K))return fIs(K.eventTargetListeners_,u);var l=u.type,D=u.proxy;K.removeEventListener?K.removeEventListener(l,D,u.capture):K.detachEvent?K.detachEvent(iHR(l),D):K.addListener&&K.removeListener&&K.removeListener(D);Jmk--;(l=i4(K))?(fIs(l,u),l.typeCount_==0&&(l.src=null,K[QSk]=null)):R3w(u);return!0};
wZC=function(u,K,l,D,d){l=jSa(l);D=!!D;return pJ(u)?u.getListener(K,l,D,d):u?(u=i4(u))?u.getListener(K,l,D,d):null:null};
iHR=function(u){return u in PY2?PY2[u]:PY2[u]="on"+u};
TmN=function(u,K){if(u.removed)u=!0;else{K=new _.BW(K,this);var l=u.listener,D=u.handler||u.src;u.callOnce&&V2(u);u=l.call(D,K)}return u};
i4=function(u){u=u[QSk];return u instanceof ae?u:null};
FWa="__closure_events_fn_"+(Math.random()*1E9>>>0);jSa=function(u){if(typeof u==="function")return u;u[FWa]||(u[FWa]=function(K){return u.handleEvent(K)});
return u[FWa]};_.wx=function(){_.TZ.call(this);this.eventTargetListeners_=new ae(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Sa(_.wx,_.TZ);_.wx.prototype[aIa]=!0;_.I=_.wx.prototype;_.I.setParentEventTarget=function(u){this.parentEventTarget_=u};
_.I.addEventListener=function(u,K,l,D){_.kU(this,u,K,l,D)};
_.I.removeEventListener=function(u,K,l,D){_.TY(this,u,K,l,D)};
_.I.dispatchEvent=function(u){var K,l=this.parentEventTarget_;if(l)for(K=[];l;l=l.parentEventTarget_)K.push(l);l=this.actualEventTarget_;var D=u.type||u;if(typeof u==="string")u=new _.j3(u,l);else if(u instanceof _.j3)u.target=u.target||l;else{var d=u;u=new _.j3(D,l);_.k$.extend(u,d)}d=!0;var C;if(K)for(C=K.length-1;!u.propagationStopped_&&C>=0;C--){var W=u.currentTarget=K[C];d=Vjs(W,D,!0,u)&&d}u.propagationStopped_||(W=u.currentTarget=l,d=Vjs(W,D,!0,u)&&d,u.propagationStopped_||(d=Vjs(W,D,!1,u)&&
d));if(K)for(C=0;!u.propagationStopped_&&C<K.length;C++)W=u.currentTarget=K[C],d=Vjs(W,D,!1,u)&&d;return d};
_.I.disposeInternal=function(){_.wx.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.I.listen=function(u,K,l,D){return this.eventTargetListeners_.add(String(u),K,!1,l,D)};
_.I.listenOnce=function(u,K,l,D){return this.eventTargetListeners_.add(String(u),K,!0,l,D)};
_.I.unlisten=function(u,K,l,D){return this.eventTargetListeners_.remove(String(u),K,l,D)};
_.I.removeAllListeners=function(u){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(u):0};
var Vjs=function(u,K,l,D){K=u.eventTargetListeners_.listeners[String(K)];if(!K)return!0;K=K.concat();for(var d=!0,C=0;C<K.length;++C){var W=K[C];if(W&&!W.removed&&W.capture==l){var M=W.listener,q=W.handler||W.src;W.callOnce&&fIs(u.eventTargetListeners_,W);d=M.call(q,D)!==!1&&d}}return d&&!D.defaultPrevented};
_.wx.prototype.getListener=function(u,K,l,D){return this.eventTargetListeners_.getListener(String(u),K,l,D)};
_.wx.prototype.hasListener=function(u,K){return this.eventTargetListeners_.hasListener(u!==void 0?String(u):void 0,K)};var F4=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(u){return u&&AsyncContext.Snapshot.wrap(u)}:function(u){return u};var gPk=function(u,K){this.create_=u;this.reset_=K;this.occupants_=0;this.JSC$9685_head_=null};
gPk.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var u=this.JSC$9685_head_;this.JSC$9685_head_=u.next;u.next=null}else u=this.create_();return u};
gPk.prototype.put=function(u){this.reset_(u);this.occupants_<100&&(this.occupants_++,u.next=this.JSC$9685_head_,this.JSC$9685_head_=u)};var Nms=function(){this.workTail_=this.workHead_=null};
Nms.prototype.add=function(u,K){var l=QEZ.get();l.set(u,K);this.workTail_?this.workTail_.next=l:this.workHead_=l;this.workTail_=l};
Nms.prototype.remove=function(){var u=null;this.workHead_&&(u=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),u.next=null);return u};
var QEZ=new gPk(function(){return new kGH},function(u){return u.reset()}),kGH=function(){this.next=this.scope=this.fn=null};
kGH.prototype.set=function(u,K){this.fn=u;this.scope=K;this.next=null};
kGH.prototype.reset=function(){this.next=this.scope=this.fn=null};var ZHw,Pcq,fYq,Y2a;Pcq=!1;fYq=new Nms;_.VK=function(u,K){ZHw||Y2a();Pcq||(ZHw(),Pcq=!0);fYq.add(u,K)};
Y2a=function(){var u=Promise.resolve(void 0);ZHw=function(){u.then(J8n)}};var Ams=function(u){u.prototype.$goog_Thenable=!0},XZk=function(u){if(!u)return!1;
try{return!!u.$goog_Thenable}catch(K){return!1}};var mTC,h3m,EPC,uBR,KpR,lM2,IM0,o$2,qym,HSC,HRq;_.RL=function(u,K){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(u!=_.iO)try{var l=this;u.call(K,function(D){l.resolve_(2,D)},function(D){l.resolve_(3,D)})}catch(D){this.resolve_(3,D)}};
mTC=function(){this.next=this.context=this.JSC$9696_onRejected=this.JSC$9696_onFulfilled=this.child=null;this.always=!1};
mTC.prototype.reset=function(){this.context=this.JSC$9696_onRejected=this.JSC$9696_onFulfilled=this.child=null;this.always=!1};
h3m=new gPk(function(){return new mTC},function(u){u.reset()});
EPC=function(u,K,l){var D=h3m.get();D.JSC$9696_onFulfilled=u;D.JSC$9696_onRejected=K;D.context=l;return D};
_.zA=function(u){if(u instanceof _.RL)return u;var K=new _.RL(_.iO);K.resolve_(2,u);return K};
_.YU=function(u){return new _.RL(function(K,l){l(u)})};
uBR=function(u,K,l){LW0(u,K,l,null)||_.VK(_.Js(K,u))};
_.gx=function(u){return new _.RL(function(K,l){var D=u.length,d=[];if(D)for(var C=function(v,G){D--;d[v]=G;D==0&&K(d)},W=function(v){l(v)},M,q=0;q<u.length;q++)M=u[q],uBR(M,_.Js(C,q),W);
else K(d)})};
KpR=function(u){return new _.RL(function(K){var l=u.length,D=[];if(l)for(var d=function(M,q,v){l--;D[M]=q?{fulfilled:!0,value:v}:{fulfilled:!1,reason:v};l==0&&K(D)},C,W=0;W<u.length;W++)C=u[W],uBR(C,_.Js(d,W,!0),_.Js(d,W,!1));
else K(D)})};
lM2=function(u){return new _.RL(function(K,l){var D=u.length,d=[];if(D)for(var C=function(v){K(v)},W=function(v,G){D--;
d[v]=G;D==0&&l(d)},M,q=0;q<u.length;q++)M=u[q],uBR(M,C,_.Js(W,q));
else K(void 0)})};
_.MX=function(){var u,K,l=new _.RL(function(D,d){u=D;K=d});
return new D0N(l,u,K)};
_.RL.prototype.then=function(u,K,l){return d0w(this,F4(typeof u==="function"?u:null),F4(typeof K==="function"?K:null),l)};
Ams(_.RL);IM0=function(u,K,l,D){CQC(u,EPC(K||_.iO,l||null,D))};
_.Ne=function(u,K){K=F4(K);K=EPC(K,K);K.always=!0;CQC(u,K);return u};
_.RL.prototype.finally=function(u){var K=this;u=F4(u);return new Promise(function(l,D){IM0(K,function(d){u();l(d)},function(d){u();
D(d)})})};
_.RL.prototype.thenCatch=function(u,K){return d0w(this,null,F4(u),K)};
_.RL.prototype.catch=_.RL.prototype.thenCatch;_.RL.prototype.cancel=function(u){if(this.state_==0){var K=new _.dr(u);_.VK(function(){yOa(this,K)},this)}};
var yOa=function(u,K){if(u.state_==0)if(u.parent_){var l=u.parent_;if(l.callbackEntries_){for(var D=0,d=null,C=null,W=l.callbackEntries_;W&&(W.always||(D++,W.child==u&&(d=W),!(d&&D>1)));W=W.next)d||(C=W);d&&(l.state_==0&&D==1?yOa(l,K):(C?(D=C,D.next==l.callbackEntriesTail_&&(l.callbackEntriesTail_=D),D.next=D.next.next):sOw(l),o$2(l,d,3,K)))}u.parent_=null}else u.resolve_(3,K)},CQC=function(u,K){u.callbackEntries_||u.state_!=2&&u.state_!=3||Wpk(u);
u.callbackEntriesTail_?u.callbackEntriesTail_.next=K:u.callbackEntries_=K;u.callbackEntriesTail_=K},d0w=function(u,K,l,D){var d=EPC(null,null,null);
d.child=new _.RL(function(C,W){d.JSC$9696_onFulfilled=K?function(M){try{var q=K.call(D,M);C(q)}catch(v){W(v)}}:C;
d.JSC$9696_onRejected=l?function(M){try{var q=l.call(D,M);q===void 0&&M instanceof _.dr?W(M):C(q)}catch(v){W(v)}}:W});
d.child.parent_=u;CQC(u,d);return d.child};
_.RL.prototype.unblockAndFulfill_=function(u){this.state_=0;this.resolve_(2,u)};
_.RL.prototype.unblockAndReject_=function(u){this.state_=0;this.resolve_(3,u)};
_.RL.prototype.resolve_=function(u,K){this.state_==0&&(this===K&&(u=3,K=new TypeError("xa")),this.state_=1,LW0(K,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=K,this.state_=u,this.parent_=null,Wpk(this),u!=3||K instanceof _.dr||HSC(this,K)))};
var LW0=function(u,K,l,D){if(u instanceof _.RL)return IM0(u,K,l,D),!0;if(XZk(u))return u.then(K,l,D),!0;if(_.Ks(u))try{var d=u.then;if(typeof d==="function")return MAw(u,d,K,l,D),!0}catch(C){return l.call(D,C),!0}return!1},MAw=function(u,K,l,D,d){var C=!1,W=function(q){C||(C=!0,l.call(d,q))},M=function(q){C||(C=!0,D.call(d,q))};
try{K.call(u,W,M)}catch(q){M(q)}},Wpk=function(u){u.executing_||(u.executing_=!0,_.VK(u.executeCallbacks_,u))},sOw=function(u){var K=null;
u.callbackEntries_&&(K=u.callbackEntries_,u.callbackEntries_=K.next,K.next=null);u.callbackEntries_||(u.callbackEntriesTail_=null);return K};
_.RL.prototype.executeCallbacks_=function(){for(var u;u=sOw(this);)o$2(this,u,this.state_,this.result_);this.executing_=!1};
o$2=function(u,K,l,D){if(l==3&&K.JSC$9696_onRejected&&!K.always)for(;u&&u.hadUnhandledRejection_;u=u.parent_)u.hadUnhandledRejection_=!1;if(K.child)K.child.parent_=null,qym(K,l,D);else try{K.always?K.JSC$9696_onFulfilled.call(K.context):qym(K,l,D)}catch(d){HRq.call(null,d)}h3m.put(K)};
qym=function(u,K,l){K==2?u.JSC$9696_onFulfilled.call(u.context,l):u.JSC$9696_onRejected&&u.JSC$9696_onRejected.call(u.context,l)};
HSC=function(u,K){u.hadUnhandledRejection_=!0;_.VK(function(){u.hadUnhandledRejection_&&HRq.call(null,K)})};
HRq=DH;_.dr=function(u){_.uL.call(this,u)};
_.Sa(_.dr,_.uL);_.dr.prototype.name="cancel";var D0N=function(u,K,l){this.promise=u;this.resolve=K;this.reject=l};var kz;_.GS=function(u,K){_.wx.call(this);this.JSC$9708_interval_=u||1;this.timerObject_=K||_.lL;this.boundTick_=(0,_.wB)(this.tick_,this);this.last_=_.x2()};
_.Sa(_.GS,_.wx);_.I=_.GS.prototype;_.I.enabled=!1;_.I.JSC$9710_timer_=null;_.I.setInterval=function(u){this.JSC$9708_interval_=u;this.JSC$9710_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9710_timer_&&this.stop()};
_.I.tick_=function(){if(this.enabled){var u=_.x2()-this.last_;u>0&&u<this.JSC$9708_interval_*.8?this.JSC$9710_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9708_interval_-u):(this.JSC$9710_timer_&&(this.timerObject_.clearTimeout(this.JSC$9710_timer_),this.JSC$9710_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.I.start=function(){this.enabled=!0;this.JSC$9710_timer_||(this.JSC$9710_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9708_interval_),this.last_=_.x2())};
_.I.stop=function(){this.enabled=!1;this.JSC$9710_timer_&&(this.timerObject_.clearTimeout(this.JSC$9710_timer_),this.JSC$9710_timer_=null)};
_.I.disposeInternal=function(){_.GS.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
kz=function(u,K,l){if(typeof u==="function")l&&(u=(0,_.wB)(u,l));else if(u&&typeof u.handleEvent=="function")u=(0,_.wB)(u.handleEvent,u);else throw Error("ya");return Number(K)>2147483647?-1:_.lL.setTimeout(u,K||0)};
_.$0w=function(u){var K=null;return(new _.RL(function(l,D){K=kz(function(){l(void 0)},u);
K==-1&&D(Error("za"))})).thenCatch(function(l){_.lL.clearTimeout(K);
throw l;})};var Re=function(u){_.TZ.call(this);this.streamzLogger=u;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9714_flushTimer=new _.GS(this.flushInterval);this.JSC$9714_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.eb(this,this.JSC$9714_flushTimer)};
_.c(Re,_.TZ);Re.prototype.sendIsolatedPayload=function(u){this.shouldSendIsolatedPayload=u;this.invocationLimit=1};
var n$w=function(u){u.JSC$9714_flushTimer.enabled||u.JSC$9714_flushTimer.start();u.invocationCount++;u.invocationCount>=u.invocationLimit&&u.snapshotAndFlush()};
Re.prototype.snapshotAndFlush=function(){var u=this.metricMap.values();u=[].concat(_.Am(u)).filter(function(K){return K.cellMap.size});
u.length&&this.streamzLogger.flush(u,this.shouldSendIsolatedPayload);rOH(u);this.invocationCount=0;this.JSC$9714_flushTimer.enabled&&this.JSC$9714_flushTimer.stop()};
Re.prototype.addNewCounter=function(u){var K=_.uY.apply(1,arguments);this.metricMap.has(u)||this.metricMap.set(u,new OHB(u,K))};
Re.prototype.addNewEventMetric=function(u){var K=_.uY.apply(1,arguments);this.metricMap.has(u)||this.metricMap.set(u,new cmw(u,K))};
var v$H=function(u,K){return u.disabledMetrics.has(K)?void 0:u.metricMap.get(K)};
Re.prototype.JSC$9714_incrementCounter=function(u){this.JSC$9714_incrementCounterBy(u,1,_.uY.apply(1,arguments))};
Re.prototype.JSC$9714_incrementCounterBy=function(u,K){var l=_.uY.apply(2,arguments),D=v$H(this,u);D&&D instanceof OHB&&(D.JSC$9653_incrementCounterBy(K,l),n$w(this))};
Re.prototype.record=function(u,K){var l=_.uY.apply(2,arguments),D=v$H(this,u);D&&D instanceof cmw&&(D.record(K,l),n$w(this))};
var rOH=function(u){for(var K=0;K<u.length;K++)u[K].clear()};_.ZV=function(u,K,l){l=l===void 0?{}:l;K=Error.call(this,K);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.code=u;this.metadata=l;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(_.ZV,Error);_.ZV.prototype.toString=function(){var u="RpcError("+(Biq(this.code)||String(this.code))+")";this.message&&(u+=": "+this.message);return u};_.GjA=_.lL.JSON.parse;_.Yz=_.lL.JSON.stringify;_.gM=_.lL.JSON.parse;_.tAC=function(u){switch(u){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 x0C=function(u){switch(u){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var SyN,bSa=function(){};
_.Sa(bSa,_.pVq);bSa.prototype.createInstance=function(){return new XMLHttpRequest};
SyN=new bSa;_.A1=function(u){_.wx.call(this);this.headers=new Map;this.JSC$9723_xmlHttpFactory_=u||null;this.JSC$9723_active_=!1;this.JSC$9723_xhr_=null;this.JSC$9723_lastUri_="";this.JSC$9723_lastErrorCode_=0;this.JSC$9723_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9723_timeoutId_=null;this.responseType_="";this.JSC$9723_withCredentials_=!1};
_.Sa(_.A1,_.wx);var OSB=/^https?$/i,cOB=["POST","PUT"],aM2=[],VSq=function(u,K,l,D,d,C,W){var M=new _.A1;aM2.push(M);K&&M.listen("complete",K);M.listenOnce("ready",M.cleanupSend_);C&&(M.timeoutInterval_=Math.max(0,C));W&&(M.JSC$9723_withCredentials_=W);M.send(u,l,D,d)};
_.A1.prototype.cleanupSend_=function(){this.dispose();_.AH(aM2,this)};
_.A1.prototype.send=function(u,K,l,D){if(this.JSC$9723_xhr_)throw Error("Aa`"+this.JSC$9723_lastUri_+"`"+u);K=K?K.toUpperCase():"GET";this.JSC$9723_lastUri_=u;this.JSC$9723_lastError_="";this.JSC$9723_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9723_active_=!0;this.JSC$9723_xhr_=this.createXhr();this.JSC$9723_xhr_.onreadystatechange=F4((0,_.wB)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9723_xhr_.open(K,String(u),!0),this.inOpen_=!1}catch(W){z_s(this,W);return}u=l||"";l=new Map(this.headers);
if(D)if(Object.getPrototypeOf(D)===Object.prototype)for(var d in D)l.set(d,D[d]);else if(typeof D.keys==="function"&&typeof D.get==="function"){d=_.y(D.keys());for(var C=d.next();!C.done;C=d.next())C=C.value,l.set(C,D.get(C))}else throw Error("Ba`"+String(D));D=Array.from(l.keys()).find(function(W){return"content-type"==W.toLowerCase()});
d=_.lL.FormData&&u instanceof _.lL.FormData;!_.Vn(cOB,K)||D||d||l.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");K=_.y(l);for(D=K.next();!D.done;D=K.next())l=_.y(D.value),D=l.next().value,l=l.next().value,this.JSC$9723_xhr_.setRequestHeader(D,l);this.responseType_&&(this.JSC$9723_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9723_xhr_&&this.JSC$9723_xhr_.withCredentials!==this.JSC$9723_withCredentials_&&(this.JSC$9723_xhr_.withCredentials=this.JSC$9723_withCredentials_);
try{this.JSC$9723_timeoutId_&&(clearTimeout(this.JSC$9723_timeoutId_),this.JSC$9723_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9723_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9723_xhr_.send(u),this.inSend_=!1}catch(W){z_s(this,W)}};
_.A1.prototype.createXhr=function(){return this.JSC$9723_xmlHttpFactory_?this.JSC$9723_xmlHttpFactory_.createInstance():SyN.createInstance()};
_.A1.prototype.timeout_=function(){typeof g8r!="undefined"&&this.JSC$9723_xhr_&&(this.JSC$9723_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9723_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var z_s=function(u,K){u.JSC$9723_active_=!1;u.JSC$9723_xhr_&&(u.inAbort_=!0,u.JSC$9723_xhr_.abort(),u.inAbort_=!1);u.JSC$9723_lastError_=K;u.JSC$9723_lastErrorCode_=5;e_B(u);R_w(u)},e_B=function(u){u.errorDispatched_||(u.errorDispatched_=!0,u.dispatchEvent("complete"),u.dispatchEvent("error"))};
_.A1.prototype.abort=function(u){this.JSC$9723_xhr_&&this.JSC$9723_active_&&(this.JSC$9723_active_=!1,this.inAbort_=!0,this.JSC$9723_xhr_.abort(),this.inAbort_=!1,this.JSC$9723_lastErrorCode_=u||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),R_w(this))};
_.A1.prototype.disposeInternal=function(){this.JSC$9723_xhr_&&(this.JSC$9723_active_&&(this.JSC$9723_active_=!1,this.inAbort_=!0,this.JSC$9723_xhr_.abort(),this.inAbort_=!1),R_w(this,!0));_.A1.superClass_.disposeInternal.call(this)};
_.A1.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)U0a(this);else this.onReadyStateChangeEntryPoint_()};
_.A1.prototype.onReadyStateChangeEntryPoint_=function(){U0a(this)};
var U0a=function(u){if(u.JSC$9723_active_&&typeof g8r!="undefined")if(u.inSend_&&_.X4(u)==4)setTimeout(u.onReadyStateChange_.bind(u),0);else if(u.dispatchEvent("readystatechange"),u.isComplete()){u.JSC$9723_active_=!1;try{if(u.isSuccess())u.dispatchEvent("complete"),u.dispatchEvent("success");else{u.JSC$9723_lastErrorCode_=6;try{var K=_.X4(u)>2?u.JSC$9723_xhr_.statusText:""}catch(l){K=""}u.JSC$9723_lastError_=K+" ["+u.getStatus()+"]";e_B(u)}}finally{R_w(u)}}},R_w=function(u,K){if(u.JSC$9723_xhr_){u.JSC$9723_timeoutId_&&
(clearTimeout(u.JSC$9723_timeoutId_),u.JSC$9723_timeoutId_=null);
var l=u.JSC$9723_xhr_;u.JSC$9723_xhr_=null;K||u.dispatchEvent("ready");try{l.onreadystatechange=null}catch(D){}}};
_.A1.prototype.isActive=function(){return!!this.JSC$9723_xhr_};
_.A1.prototype.isComplete=function(){return _.X4(this)==4};
_.A1.prototype.isSuccess=function(){var u=this.getStatus(),K;if(!(K=x0C(u))){if(u=u===0)u=Q2R(String(this.JSC$9723_lastUri_)),u=!OSB.test(u);K=u}return K};
_.X4=function(u){return u.JSC$9723_xhr_?u.JSC$9723_xhr_.readyState:0};
_.I=_.A1.prototype;_.I.getStatus=function(){try{return _.X4(this)>2?this.JSC$9723_xhr_.status:-1}catch(u){return-1}};
_.I.getResponseText=function(){try{return this.JSC$9723_xhr_?this.JSC$9723_xhr_.responseText:""}catch(u){return""}};
_.I.getResponse=function(){try{if(!this.JSC$9723_xhr_)return null;if("response"in this.JSC$9723_xhr_)return this.JSC$9723_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9723_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9723_xhr_)return this.JSC$9723_xhr_.mozResponseArrayBuffer}return null}catch(u){return null}};
_.I.getAllResponseHeaders=function(){return this.JSC$9723_xhr_&&_.X4(this)>=2?this.JSC$9723_xhr_.getAllResponseHeaders()||"":""};
_.I.getLastError=function(){return typeof this.JSC$9723_lastError_==="string"?this.JSC$9723_lastError_:String(this.JSC$9723_lastError_)};var FT9=function(){};
FT9.prototype.send=function(u,K,l){K=K===void 0?function(){}:K;
l=l===void 0?function(){}:l;
VSq(u.url,function(D){D=D.target;D.isSuccess()?K(D.getResponseText()):l(D.getStatus())},u.requestType,u.body,u.requestHeaders,u.timeoutMillis,u.withCredentials)};
FT9.prototype.getTransmissionType=function(){return 1};var fMA=function(u,K){this.brm=u;this.event=K;this.startTime=UQ()},Y3R;
fMA.prototype.done=function(){this.brm.vV(this.event,UQ()-this.startTime)};
var mi=function(){b4.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.c(mi,b4);_.h1=function(u,K,l){var D=UQ();K=K();u.vV(l,UQ()-D);return K};
Y3R=function(){mi.apply(this,arguments)};
_.c(Y3R,mi);_.I=Y3R.prototype;_.I.zWq=function(){};
_.I.iB=function(){};
_.I.vV=function(){};
_.I.logError=function(){};
_.I.wk=function(){};
_.I.wan=function(){};
_.I.ltC=function(){};
_.I.mTO=function(){};
var QOk=function(u){mi.call(this);var K=this;this.dU=u;this.TEST_ONLY={gTN:function(){return K.dU},
getExperimentIds:function(){return K.dU.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void K.dU.dispose()})};
_.c(QOk,mi);_.I=QOk.prototype;_.I.update=function(u){this.dU.dispose();this.dU=u};
_.I.iB=function(u){this.dU.iB(u)};
_.I.vV=function(u,K){this.dU.vV(u,K)};
_.I.logError=function(u){this.dU.logError(u)};
_.I.wk=function(){this.dU.wk()};
_.I.wan=function(u){this.dU.wan(u)};
_.I.ltC=function(u){this.dU.ltC(u)};
_.I.mTO=function(u){this.dU.mTO(u)};
_.I.zWq=function(u){this.dU.zWq(u)};
var PQN=function(u,K){_.TZ.call(this);var l=this;this.callback=u;this.zzR=K;this.p6O=-K;this.addOnDisposeCallback(function(){return void clearTimeout(l.timer)})};
_.c(PQN,_.TZ);var JOB=function(u){if(u.timer===void 0){var K=Math.max(0,u.p6O+u.zzR-UQ());u.timer=setTimeout(function(){try{u.callback()}finally{u.p6O=UQ(),u.timer=void 0}},K)}},jOR=function(u,K){mi.call(this);
this.metrics=u;this.po=K};
_.c(jOR,mi);_.I=jOR.prototype;_.I.zWq=function(u){this.metrics.vme.record(u,this.po)};
_.I.iB=function(u){this.metrics.eventCount.increment(u,this.po)};
_.I.vV=function(u,K){this.metrics.sor.record(K,u,this.po)};
_.I.logError=function(u){this.metrics.errorCount.increment(u,this.po)};
_.I.wan=function(u){this.metrics.d5g.increment(u,this.po)};
_.I.ltC=function(u){this.metrics.zQJ.increment(u,this.po)};
_.I.mTO=function(u){this.metrics.qeV.increment(u,this.po)};
var XVH=function(u,K){K=K===void 0?[]:K;var l={po:u.po||"_",uWj:u.uWj||[],rZO:u.rZO|0,destinationUrl:u.destinationUrl,disableClearcutCredentialBinding:u.disableClearcutCredentialBinding,hdq:u.hdq||function(){},
g8g:u.g8g||function(C,W){return Z0Z(C,W,l.hdq,l.destinationUrl,l.disableClearcutCredentialBinding)}},D=l.g8g("50",l.uWj.concat(K));
jOR.call(this,{vme:new rXC(D),errorCount:new x9m(D),eventCount:new Ggw(D),sor:new tFk(D),vwE:new vuw(D),d5g:new SSH(D),zQJ:new bMN(D),qeV:new OMm(D)},l.po);var d=this;this.TEST_ONLY={getExperimentIds:function(){return d.options.uWj.concat(d.vYb).sort(function(C,W){return C-W})}};
this.options=l;this.service=D;this.a04=!u.g8g;this.flushDebouncer=new PQN(function(){return void d.service.snapshotAndFlush()},l.rZO);
this.addOnDisposeCallback(function(){d.flushDebouncer.dispose();d.a04&&d.service.dispose()});
(this.vYb=K.slice()).sort(_.ym)};
_.c(XVH,jOR);XVH.prototype.wk=function(){JOB(this.flushDebouncer)};var Arh=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Arh,_.b5);_.XMH=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(_.XMH,_.b5);var sA=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u,0,sA.messageId)};
_.c(sA,_.b5);var Bum=_.bMq(sA);sA.messageId="bfkj";var A8r=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(A8r,_.b5);var tfw=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(tfw,_.b5);var pKN=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(pKN,_.b5);var iSR=_.QS(pKN);_.et=function(){var u=this;this.promise=new Promise(function(K,l){u.resolve=K;u.reject=l})};_.Eu=function(u){_.TZ.call(this);var K=this;this.tRI=Math.floor(Math.random()*200);this.iqp=new pKN;if("challenge"in u&&Bum(u.challenge)){var l=_.A0(u.challenge,4,void 0,NS);var D=_.A0(u.challenge,5,void 0,NS);_.A0(u.challenge,7,void 0,NS)&&(this.iqp=iSR(_.A0(u.challenge,7,void 0,NS)))}else l=u.program,D=u.globalName;this.addOnDisposeCallback(function(){var a,f,B;return _.H(function(p){if(p.nextAddress==1)return p.yield(K.iFg,2);a=p.yieldResult;f=a.wME;(B=f)==null||B();_.TG(p)})});
this.xp=m_H(u.lqp||{},this.iqp);_.eb(this,this.xp);var d=new _.et;this.iFg=d.promise;this.xp.iB("t");var C=this.xp.share(),W=new fMA(C,"t"),M=function(a,f,B,p){if(!K.xp.isDisposed()){var V="k";f?V="h":B&&(V="u");V!=="k"?p!==0&&(K.xp.iB(V),K.xp.vV(V,a)):K.tRI<=0?(K.xp.iB(V),K.xp.vV(V,a),K.tRI=Math.floor(Math.random()*200)):K.tRI--}},q=function(a,f,B,p){Promise.resolve().then(function(){W.done();
C.wk();C.dispose();d.resolve({y65:a,wME:f,kJV:B,pLb:p})})};
if(!_.lL[D])throw this.xp.logError(25),Error("Ca");if(!_.lL[D].a)throw this.xp.logError(26),Error("Da");try{var v=_.lL[D].a;D=[];for(var G=[],t=x_R(this.iqp),x=0;x<t.length;x++)D.push(t[x]),G.push(1);var O=S3H(this.iqp);for(t=0;t<O.length;t++)D.push(O[t]),G.push(2);this.swV=_.y(v(l,q,!0,u.umf,M,[D,G],_.A0(this.iqp,5))).next().value;this.ceC=d.promise.then(function(){})}catch(a){throw this.xp.logError(28),a;
}};
_.c(_.Eu,_.TZ);_.Eu.prototype.snapshot=function(u){if(this.isDisposed())throw Error("Ea");this.xp.iB("n");var K=this.xp.share();return this.iFg.then(function(l){var D=l.y65;return new Promise(function(d){var C=new fMA(K,"n");D(function(W){C.done();K.zWq(W.length);K.wk();K.dispose();d(W)},[u.mk,
u.egq,u.lko,u.n6O])})})};
_.Eu.prototype.pyp=function(u){this.iFg.then(function(K){var l;(l=K.kJV)==null||l(u)})};
_.Eu.prototype.in9=function(u,K){return this.iFg.then(function(l){var D;return(D=l.pLb)==null?void 0:D(u,K,!1)})};
_.Eu.prototype.ncF=function(){return this.xp.share()};var TuA=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(TuA,_.b5);var j9R=_.bMq(TuA);var wKm=function(){this.promises={};this.wRO=null},FpH=function(){wKm.instance||(wKm.instance=new wKm);
return wKm.instance},g$a=function(u,K){return VAa(u,_.fV(K,Arh,1,NS),_.fV(K,_.XMH,2,NS),_.A0(K,3,void 0,NS))},VAa=function(u,K,l,D){if(!K&&!l)return Promise.resolve();
if(!D)return KgL(K,l);var d;(d=u.promises)[D]||(d[D]=new Promise(function(C,W){KgL(K,l).then(function(){u.wRO=D;C()},function(M){delete u.promises[D];
W(M)})}));
return u.promises[D]};var NuC=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(NuC,_.b5);var kjw=function(u,K){return _.oX(u,1,K)},ZSw=function(u,K){return _.oX(u,2,K)};var LJ=function(u){_.TZ.call(this);var K=this;this.options=u;this.vtO=new _.et;this.ceC=this.vtO.promise;this.oFj=new _.et;this.ugO=1;this.rV9=new _.et;this.oEu=[];this.edn=u.edn||function(){};
this.a4F=new QOk(m_H(u.lqp||{}));YyS(this,u.n5,u.n94,u.o5g,u.dvV,Object.assign({},AOw,u.o69||{}));this.addOnDisposeCallback(function(){return void XK0(K)})};
_.c(LJ,_.TZ);LJ.prototype.snapshot=function(u){var K=this;return _.H(function(l){switch(l.nextAddress){case 1:if(K.isDisposed())throw Error("Ea");if(K.bu||K.mZI){l.jumpTo(2);break}return l.yield(K.oFj.promise,2);case 2:if(!K.bu){l.jumpTo(4);break}return l.yield(K.bu.snapshot(u),5);case 5:return l.return(l.yieldResult);case 4:throw K.mZI;}})};
var m0w=function(u){var K;return _.H(function(l){if(u.isDisposed())throw Error("Ea");(K=u.gw)!=null&&(K.endTimeMs=0,K.resolver(1));return l.yield(u.rV9.promise,0)})},XK0=function(u){u.mZI=Error("Ga");
u.oFj.resolve();b0L(u.vtO.promise);u.vtO.reject(Error("Ga"));u.a4F.dispose();Promise.all(u.oEu).then(function(){var l;return _.H(function(D){(l=u.bu)==null||l.dispose();u.bu=void 0;_.TG(D)})});
u.oEu=[];var K;(K=u.gw)!=null&&(K.endTimeMs=0,K.resolver(1));b0L(u.rV9.promise);u.rV9.reject(Error("Ga"))};
LJ.prototype.pyp=function(u){var K,l;(K=this.bu)==null||(l=K.pyp)==null||l.call(K,u)};
LJ.prototype.in9=function(u,K){var l,D,d;return(d=(l=this.bu)==null?void 0:(D=l.in9)==null?void 0:D.call(l,u,K))!=null?d:Promise.resolve()};
var h_k=function(u,K){var l=u.edn;u.edn=function(){l();K()}},E$w=function(u,K){u.isDisposed()||(u.bu=K,u.a4F.update(K.ncF()),u.oFj.resolve(),u.vtO.resolve(void 0),u.edn())};
LJ.prototype.handleError=function(u){if(!this.isDisposed()){this.mZI=u;this.oFj.resolve();var K,l;(l=(K=this.options).hAg)==null||l.call(K,u)}};
var Lpm=function(u,K){K&&(Promise.all(u.oEu).then(function(){return void K.dispose()}),u.oEu=[])},uA=function(u,K){u.ugO=K;
var l,D;(D=(l=u.options).c0J)==null||D.call(l,K)},uda=function(u){u.isDisposed()||(u.rV9.resolve(),u.rV9=new _.et)},YyS=function(u,K,l,D,d,C){D=D===void 0?FpH():D;
d=d===void 0?Promise.resolve(void 0):d;var W,M,q,v,G,t,x,O,a,f,B,p;_.H(function(V){switch(V.nextAddress){case 1:return V.yield(0,3);case 3:M=null;if(!W){V.jumpTo(6);break}uA(u,7);_.Qg(V,7);return V.yield(BO(W.snapshot({}),C.aUm,function(){return Promise.resolve("E:CTO")}),9);
case 9:M=V.yieldResult;_.I$(V,6);break;case 7:_.iY(V),M="E:UCE";case 6:q=void 0,v=W?C.n24:C.hv8,G=new cO(v,C.aA4,C.o2b,C.joR),t=1;case 10:if(!(t<=C.maxAttempts)){V.jumpTo(12);break}if(t===1){V.jumpTo(13);break}uA(u,0);u.gw=new KMB(G.getValue(),C.yZc,C.cPr);return V.yield(u.gw.promise,14);case 14:x=V.yieldResult,u.gw=void 0,x===1?(t=1,G.reset()):Mja(G);case 13:_.Qg(V,15);O=void 0;if(l){O=l;V.jumpTo(17);break}uA(u,5);a=D.wRO;return V.yield(BO(luA(K,a,M),C.hs4,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:O=V.yieldResult;case 17:return uA(u,3),V.yield(BO(g$a(D,O),C.l4b,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return uA(u,8),V.yield(d,20);case 20:return f=new _.Eu({challenge:O,lqp:u.options.lqp,umf:u.options.umf}),V.yield(BO(f.ceC,C.ePV,function(){return Promise.reject(Error("Ja"))}),21);
case 21:q=f;V.jumpTo(12);break;case 15:B=_.iY(V),u.handleError(B),uda(u);case 11:t++;V.jumpTo(10);break;case 12:if(u.isDisposed()){V.jumpTo(5);break}q&&(l=void 0,Lpm(u,W),W=q,E$w(u,q),uda(u));uA(u,2);u.gw=new KMB(C.g8A,C.yZc,C.cPr);return V.yield(u.gw.promise,22);case 22:u.gw=void 0;if(u.isDisposed()){V.jumpTo(5);break}V.jumpTo(3);break;case 5:(p=W)==null||p.dispose(),_.TG(V)}})};
LJ.prototype.ncF=function(){return this.a4F.share()};
var AOw={g8A:432E5,yZc:3E5,cPr:10,aUm:1E4,hs4:3E4,l4b:3E4,ePV:6E4,hv8:1E3,n24:6E4,aA4:6E5,o2b:.25,joR:2,maxAttempts:10},KMB=function(u,K,l){var D=this;this.endTimeMs=Date.now()+u;this.promise=new Promise(function(C){D.resolver=C});
var d=function(){var C=D.endTimeMs-Date.now();C<=l?D.resolver(0):setTimeout(d,Math.min(C,K))};
d()};var DtC,SPq=(DtC=Math.imul)!=null?DtC:function(u,K){return u*K|0},pV=[196,
200,224,18],KX=function(u,K,l){l=l===void 0?[]:l;this.maxItems=u;this.zX=K===void 0?0:K;this.zn=l},dtA=function(u){var K=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!K)return new KX(u);var l=K.split(",");if(l.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new KX(u);K=l.slice(1);K.length===1&&K[0]===""&&(K=[]);l=Number(l[0]);return isNaN(l)||l<0||l>K.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new KX(u)):new KX(u,l,K)};
KX.prototype.serialize=function(){return String(this.zX)+","+this.zn.join()};
KX.prototype.insert=function(u,K){var l=void 0;if(this.zn[this.zX]!==u){var D=this.zn.indexOf(u);D!==-1?(this.zn.splice(D,1),D<this.zX&&this.zX--,this.zn.splice(this.zX,0,u)):(l=this.zn[this.zX],this.zn[this.zX]=u)}this.zX=(this.zX+1)%this.maxItems;u=l_o("iU5q-!O9@$",this.serialize());l&&u&&K(l);return u};
var C2A=function(u,K){this.xQ9=K;try{var l=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(D){l=!1}l&&(this.index=dtA(u))},IuC=function(u,K,l,D,d){var C=u.index?_.h1(u.xQ9,function(){return a_n(u.index,OTh(K),l,D,d)},"W"):"u";
u.xQ9.mTO(C)},yqA=function(u,K,l){var D=_.y(u.index?_.h1(u.xQ9,function(){return zXq(OTh(K),l)},"R"):["u"]),d=D.next().value;
D=D.next().value;u.xQ9.ltC(d);return D};var seA={toString:function(u){var K=[],l=0;u-=-2147483648;K[l++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(u%52);for(u=Math.floor(u/52);u>0;)K[l++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(u%62),u=Math.floor(u/62);return K.join("")}};var HVk=function(u){u=oV0(u);for(var K=2654435769,l=2654435769,D=314159265,d=u.length,C=d,W=0,M=function(){K-=l;K-=D;K^=D>>>13;l-=D;l-=K;l^=K<<8;D-=K;D-=l;D^=l>>>13;K-=l;K-=D;K^=D>>>12;l-=D;l-=K;l^=K<<16;D-=K;D-=l;D^=l>>>5;K-=l;K-=D;K^=D>>>3;l-=D;l-=K;l^=K<<10;D-=K;D-=l;D^=l>>>15};C>=12;C-=12,W+=12)K+=WMa(u,W),l+=WMa(u,W+4),D+=WMa(u,W+8),M();
D+=d;switch(C){case 11:D+=u[W+10]<<24;case 10:D+=u[W+9]<<16;case 9:D+=u[W+8]<<8;case 8:l+=u[W+7]<<24;case 7:l+=u[W+6]<<16;case 6:l+=u[W+5]<<8;case 5:l+=u[W+4];case 4:K+=u[W+3]<<24;case 3:K+=u[W+2]<<16;case 2:K+=u[W+1]<<8;case 1:K+=u[W]}M();return seA.toString(D)},oV0=function(u){for(var K=[],l=0;l<u.length;l++)K.push(u.charCodeAt(l));
return K},WMa=function(u,K){return u[K]+(u[K+1]<<8)+(u[K+2]<<16)+(u[K+3]<<24)};var Mb2,lA=function(u){_.TZ.call(this);this.kq=u;this.m5g=new _.et;this[Mb2]=this.dispose};
_.c(lA,_.TZ);var qQm=function(u,K){var l=setTimeout(function(){u.m5g.resolve()},K);
u.addOnDisposeCallback(function(){return void clearTimeout(l)})};
lA.prototype.mt8=function(u,K){var l=this.u7(u);K==null||K(l);return _.h1(this.kq,function(){return _.Yp(l,2)},this.cnC)};
var $tw=function(u,K,l,D){return _.h1(u.kq,function(){return l?u.mt8(K,D):u.u7(K,D)},u.wjf)};
Mb2=Symbol.dispose;var nVN=function(u,K,l,D){lA.call(this,u);this.xWg=K;this.qlc=l;this.wjf="m";this.cnC="x";this.ugm=0;qQm(this,D)};
_.c(nVN,lA);nVN.prototype.u7=function(u,K){var l=this;this.kq.iB(this.wjf);++this.ugm>=this.qlc&&this.m5g.resolve();var D=u();u=_.h1(this.kq,function(){return l.xWg(D)},"C");
if(u===void 0)throw new xz(17,"YNJ:Undefined");if(!(u instanceof Uint8Array))throw new xz(18,"ODM:Invalid");K==null||K(u);return u};
var rqa=function(u,K,l){lA.call(this,u);this.cNr=K;this.wjf="f";this.cnC="z";qQm(this,l)};
_.c(rqa,lA);rqa.prototype.u7=function(){return this.cNr};
var vV0=function(u,K,l){lA.call(this,u);this.mLo=K;this.wjf="w";this.cnC="z";qQm(this,l)};
_.c(vV0,lA);vV0.prototype.u7=function(){var u=this;return _.h1(this.kq,function(){return _.Wa(u.mLo)},"d")};
vV0.prototype.mt8=function(){return this.mLo};
var GZk=function(u,K){lA.call(this,u);this.error=K;this.wjf="e";this.cnC="y"};
_.c(GZk,lA);var tba=function(u,K){var l=(K(u.error.message)+":"+K(u.error.stack)).substring(0,2048);K=l.length+1;l=eXo(l);var D=new Uint8Array(4+l.length);D.set([42,K&127|128,K>>7,u.error.code]);D.set(l,4);return D};
GZk.prototype.u7=function(){if(this.oVK)return this.oVK;this.oVK=tba(this,function(u){return"_"+HVk(u)});
return tba(this,function(u){return u})};
var xtw=function(u,K,l){lA.call(this,u);this.kjm=K;this.clientState=l;this.wjf="S";this.cnC="q"};
_.c(xtw,lA);xtw.prototype.u7=function(){var u=Math.floor(Date.now()/1E3),K=[Math.random()*255,Math.random()*255],l=K.concat([this.kjm&255,this.clientState],[u>>24&255,u>>16&255,u>>8&255,u&255]);u=new Uint8Array(2+l.length);u[0]=34;u[1]=l.length;u.set(l,2);l=u.subarray(2);for(var D=K=K.length;D<l.length;++D)l[D]^=l[D%K];this.kq.wan(this.clientState);return u};var SQw={oVo:3E4,cUJ:2E4},DC=function(u){_.TZ.call(this);var K=this;this.emn=new _.et;this.gdp=0;this.hg=void 0;this.state=2;this.vm=u.vm;this.n5=u.n5;this.o69=Object.assign({},SQw,u.o69||{});this.a4=u.vm.ncF();var l;this.onError=(l=u.onError)!=null?l:function(){};
this.eY0=u.eY0||!1;if(bVS(u)){var D=this.vm;this.hCE=function(){return m0w(D).catch(function(W){W=K.reportError(new xz(K.uP?20:32,"TRG:Disposed",W));K.hg=W;var M;(M=K.uP)==null||M.dispose();K.uP=void 0;K.emn.reject(W)})};
h_k(D,function(){return void OVk(K)});
D.ugO===2&&OVk(this)}else this.hCE=u.b8J,OVk(this);var d=this.a4.share();d.iB("o");var C=new fMA(d,"o");this.emn.promise.then(function(){C.done();d.wk();d.dispose()},function(){return void d.dispose()});
this.addOnDisposeCallback(function(){K.uP?(K.uP.dispose(),K.uP=void 0):K.hg?K.a4.wk():(K.hg=K.reportError(new xz(32,"TNP:Disposed")),K.a4.wk(),K.emn.reject(K.hg))});
_.eb(this,this.a4)};
_.c(DC,_.TZ);DC.prototype.s2m=function(){return this.emn.promise};
var cqk=function(u,K){if(!(K instanceof xz))if(K instanceof _.ZV){var l=Error(K.toString());l.stack=K.stack;K=new xz(11,"EBH:Error",l)}else K=new xz(12,"BSO:Unknown",K);return u.reportError(K)},OVk=function(u){var K,l,D,d,C,W,M,q,v,G,t,x,O,a,f;
return _.H(function(B){switch(B.nextAddress){case 1:K=void 0;u.gdp++;l=new _.et;u.vm instanceof LJ&&u.vm.oEu.push(l.promise);if(!u.eY0){B.jumpTo(2);break}D=new _.et;setTimeout(function(){return void D.resolve()});
return B.yield(D.promise,2);case 2:return d=u.a4.share(),_.Qg(B,4,5),u.state=5,C={},W=[],B.yield(BO(u.vm.snapshot({mk:C,lko:W}),u.o69.cUJ,function(){return Promise.reject(new xz(15,"MDA:Timeout"))}),7);
case 7:M=B.yieldResult;if(u.isDisposed())throw new xz(u.uP?20:32,"MDA:Disposed");q=W[0];u.state=6;return B.yield(BO(au2(u.n5,M),u.o69.oVo,function(){return Promise.reject(new xz(10,"BWB:Timeout"))}),8);
case 8:v=B.yieldResult;if(u.isDisposed())throw new xz(u.uP?20:32,"BWB:Disposed");u.state=7;K=_.h1(d,function(){var V=zyA(u,v,l,q);V.m5g.promise.then(function(){return void u.hCE()});
return V},"i");
case 5:_.jj(B);d.dispose();_.pH(B,6);break;case 4:G=_.iY(B);(t=K)==null||t.dispose();if(!u.hg){x=cqk(u,G);l.resolve();var p;if(p=u.vm instanceof LJ&&u.gdp<2)a:if(G instanceof xz)p=G.code!==32&&G.code!==20&&G.code!==10;else{if(G instanceof _.ZV)switch(G.code){case 2:case 13:case 14:case 4:break;default:p=!1;break a}p=!0}if(p)return O=(1+Math.random()*.25)*(u.uP?6E4:1E3),a=setTimeout(function(){return void u.hCE()},O),u.addOnDisposeCallback(function(){return void clearTimeout(a)}),B.return();
u.hg=x}d.logError(u.uP?13:14);u.emn.reject(u.hg);return B.return();case 6:u.state=8,u.gdp=0,(f=u.uP)==null||f.dispose(),u.uP=K,u.emn.resolve(),_.TG(B)}})},zyA=function(u,K,l,D){var d=snR(K,2)*1E3;
if(d<=0)throw new xz(31,"TTM:Invalid");if(_.A0(K,4))return new vV0(u.a4,_.A0(K,4),d);if(!snR(K,3))return new rqa(u.a4,kCL(_.iD(K,1)),d);if(!D)throw new xz(4,"PMD:Undefined");D=D(kCL(_.iD(K,1)));if(!(D instanceof Function))throw new xz(16,"APF:Failed");u.tmm=Math.floor((Date.now()+d)/1E3);u=new nVN(u.a4,D,snR(K,3),d);u.addOnDisposeCallback(function(){return void l.resolve()});
return u};
DC.prototype.u7=function(u){return eym(this,Object.assign({},u),!1)};
DC.prototype.mt8=function(u){return eym(this,Object.assign({},u),!0)};
DC.prototype.l3K=function(u){if(u>150)return!1;try{return this.cache=new C2A(u,this.a4),!0}catch(K){return this.reportError(new xz(22,"GBJ:init",K)),!1}};
DC.prototype.reportError=function(u){this.a4.logError(u.code);this.onError(u);return u};
var RyR=function(u,K){K=K instanceof xz?K:new xz(5,"TVD:error",K);return u.reportError(K)},eym=function(u,K,l){try{if(u.isDisposed())throw new xz(21,"BNT:disposed");
if(!u.uP&&u.hg)throw u.hg;var D,d;return(d=(D=Utw(u,K,l))!=null?D:fu0(u,K,l))!=null?d:QeS(u,K,l)}catch(C){if(!K.bDe)throw RyR(u,C);return P2s(u,l,C)}},Utw=function(u,K,l){var D;
return(D=u.uP)==null?void 0:$tw(D,function(){return Jqa(u,K)},l,function(d){var C;
if(u.uP instanceof nVN&&((C=K.vZ)==null?0:C.i1R))try{var W;(W=u.cache)==null||IuC(W,Jqa(u,K),d,K.vZ.dbn,u.tmm-120)}catch(M){u.reportError(new xz(24,"ELX:write",M))}})},fu0=function(u,K,l){var D;
if((D=K.vZ)!=null&&D.cB0)try{var d,C=(d=u.cache)==null?void 0:yqA(d,Jqa(u,K),K.vZ.dbn);return C?l?_.h1(u.a4,function(){return _.Yp(C,2)},"a"):C:void 0}catch(W){u.reportError(new xz(23,"RXO:read",W))}},QeS=function(u,K,l){var D={stack:[],
error:void 0,hasError:!1};try{if(!K.tof)throw new xz(29,"SDF:notready");return $tw(Xx9(D,new xtw(u.a4,0,u.state)),function(){return Jqa(u,K)},l)}catch(d){D.error=d,D.hasError=!0}finally{mfb(D)}},P2s=function(u,K,l){var D={stack:[],
error:void 0,hasError:!1};try{var d=RyR(u,l);return $tw(Xx9(D,new GZk(u.a4,d)),function(){return[]},K)}catch(C){D.error=C,D.hasError=!0}finally{mfb(D)}},Jqa=function(u,K){return K.pIC?K.pIC:K.mk?_.h1(u.a4,function(){return K.pIC=eXo(K.mk)},"c"):[]},bVS=function(u){return ZA(function(K){if(!nI(K))return!1;
for(var l=_.y(Object.entries(u)),D=l.next();!D.done;D=l.next()){var d=_.y(D.value);D=d.next().value;d=d.next().value;if(!(D in K)){if(d.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!d(K[D]))return!1}return!0})}({vm:function(u){return ZA(function(K){return K instanceof u})}(LJ)},"");var jek=function(){var u=_.Od();this.JSC$9843_streamzService=u;u.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",xV("cookie_enabled"),xV("cookie_3p_enabled"),_.b2("browser"))};
jek.prototype.increment=function(u,K,l){this.JSC$9843_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",u,K,l)};
var L9L=function(){var u=_.Od();this.JSC$9867_streamzService=u;u.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Sb("tick"),xV("from_st_cookie"))};
L9L.prototype.increment=function(u,K){this.JSC$9867_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",u,K)};
var BBs=function(){var u=_.Od();this.JSC$9873_streamzService=u;u.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.b2("status"))};
BBs.prototype.increment=function(u){this.JSC$9873_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",u)};
var pOS=function(){var u=_.Od();this.JSC$9876_streamzService=u;u.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.b2("stage"),xV("is_using_ytd_player"),xV("has_expandable_tiles"))};
pOS.prototype.increment=function(u,K,l){this.JSC$9876_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",u,K,l)};
var iV0=function(){var u=_.Od();this.JSC$9879_streamzService=u;u.addNewCounter("/client_streamz/youtube/web/response_signature",_.b2("check_status"))};
iV0.prototype.increment=function(u){this.JSC$9879_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/web/response_signature",u)};
var TBk=function(){var u=_.Od();this.JSC$9882_streamzService=u;u.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.b2("sig"),Sb("de"))};
TBk.prototype.increment=function(u,K){this.JSC$9882_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/web/e_sig_log",u,K)};
var wOa=function(){var u=_.Od();this.JSC$9885_streamzService=u;u.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.b2("sig"),Sb("de"))};
wOa.prototype.increment=function(u,K){this.JSC$9885_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/web/e_sig_en",u,K)};
_.FMB=function(){var u=_.Od();this.JSC$9888_streamzService=u;u.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.b2("action"))};
_.FMB.prototype.increment=function(u){this.JSC$9888_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/web/enforcement_intent",u)};var dO=window;var VbH=(new Date).getTime();_.k$.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.k$.createSet("action","cite","data","formaction","href","manifest","poster","src");var gVH=function(u){this.servicePromise_=u;u.then((0,_.wB)(function(){},this),function(){},this)},NBH=function(u,K,l){u.servicePromise_.then(function(D){var d=D[K];
if(!d)throw Error("Ka`"+K);return d.apply(D,l)})},YQm=function(u,K,l){for(var D=Array(arguments.length-2),d=2;d<arguments.length;d++)D[d-2]=arguments[d];
d=kZm(u,K).then(function(C){return C.apply(null,D)},function(C){C=Error("La`"+K+"`"+u,{cause:C});
delete ZVR[K];return _.YU(C)});
return new gVH(d)},ZVR={},kZm=function(u,K){var l=ZVR[K];
if(l)return l;l=(l=_.lZ(K))?_.zA(l):(new _.RL(function(D,d){var C=(new gR(document)).createElement("SCRIPT");C.async=!0;_.$P(C,_.Fz(isa(u)));C.onload=C.onreadystatechange=function(){C.readyState&&C.readyState!="loaded"&&C.readyState!="complete"||D()};
C.onerror=function(W){d(Error("Ma`"+K+"`"+u,{cause:W}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(C)})).then(function(){var D=_.lZ(K);
if(!D)throw Error("Na`"+K+"`"+u);return D});
return ZVR[K]=l};var AqA={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},mtk=function(){var u=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=RXq(function(){return _.H(function(K){if(K.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?K.return(Promise.resolve()):K.yield(XOw(u),2);u.rsaForList.length>
0&&document.addEventListener("click",u.requestAccessForHelpPanel);_.TG(K)})});
this.requestAccessForHelpPanel=function(){if(!(u.rsaForPromises.length>0)){for(var K=_.y(u.rsaForList),l=K.next();!l.done;l=K.next()){l=l.value;try{u.rsaForPromises.push(document.requestStorageAccessFor(l))}catch(D){}}Promise.all(u.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){u.reset()})}}};
mtk.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var XOw=function(u){var K,l,D,d;return _.H(function(C){switch(C.nextAddress){case 1:K=_.y(Object.values(AqA)),l=K.next();case 2:if(l.done){C.jumpTo(0);break}D=l.value;_.Qg(C,5);return C.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:D}),7);case 7:d=C.yieldResult;d.state!=="granted"&&u.rsaForList.push(D);_.I$(C,3);break;case 5:_.iY(C);C.jumpTo(0);break;case 3:l=K.next(),C.jumpTo(2)}})};(new mtk).initialize();var hyR=function(u){this.JSC$9902_loader_=u};
hyR.prototype.startHelp=function(u){NBH(this.JSC$9902_loader_,"startHelp",arguments)};
hyR.prototype.JSC$9904_loadChatSupport=function(u){NBH(this.JSC$9902_loader_,"loadChatSupport",arguments)};
var LMB=function(u,K){K=K||{};u=YQm(EVw,"help.service.Lazy.create",u,{apiKey:K.apiKey||K.apiKey,asxUiUri:K.asxUiUri||K.asxUiUri,environment:K.environment||K.environment,flow:K.flow||K.flow,frdProductData:K.frdProductData||K.frdProductData,frdProductDataSerializedJspb:K.frdProductDataSerializedJspb||K.frdProductDataSerializedJspb,helpCenterPath:K.helpCenterPath||K.helpCenterPath,locale:K.locale||K.locale||"en-US".replace(/-/g,"_"),nonce:K.nonce||K.nonce,productData:K.productData||K.productData,receiverUri:K.receiverUri||
K.receiverUri,renderApiUri:K.renderApiUri||K.renderApiUri,theme:K.theme||K.theme,window:K.window||K.window});return new hyR(u)},EVw=new Lp(dXq,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var uL0=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(uL0,_.b5);var Ktk=_.QS(uL0);_.l7N=new function(u,K,l,D){this.configType=u;this.flagName=l;this.defaultValue=D;this.flagType="bool"}(2,0,"external_fullscreen",!0);
new Uint8Array([10,2,75,82]);new Uint8Array([10,2,78,76,10,2,69,83]);new Uint8Array([]);new Uint8Array([]);new Uint8Array([]);var dow=function(){this.retriever=_.GB().resolve(Do0)};f_L(Node);f_L(Element);var Crw=f_L(HTMLElement);f_L(SVGElement);var I70,ygB,yp,sZk;I70=function(u){return typeof u.className=="string"?u.className:u.getAttribute&&u.getAttribute("class")||""};
ygB=function(u){return u.classList?u.classList:I70(u).match(/\S+/g)||[]};
_.CX=function(u,K){typeof u.className=="string"?u.className=K:u.setAttribute&&u.setAttribute("class",K)};
_.IM=function(u,K){return u.classList?u.classList.contains(K):_.Vn(ygB(u),K)};
_.rY=function(u,K){if(u.classList)u.classList.add(K);else if(!_.IM(u,K)){var l=I70(u);_.CX(u,l+(l.length>0?" "+K:K))}};
yp=function(u,K){if(u.classList)Array.prototype.forEach.call(K,function(d){_.rY(u,d)});
else{var l={};Array.prototype.forEach.call(ygB(u),function(d){l[d]=!0});
Array.prototype.forEach.call(K,function(d){l[d]=!0});
K="";for(var D in l)K+=K.length>0?" "+D:D;_.CX(u,K)}};
_.$o=function(u,K){u.classList?u.classList.remove(K):_.IM(u,K)&&_.CX(u,Array.prototype.filter.call(ygB(u),function(l){return l!=K}).join(" "))};
sZk=function(u,K){u.classList?Array.prototype.forEach.call(K,function(l){_.$o(u,l)}):_.CX(u,Array.prototype.filter.call(ygB(u),function(l){return!_.Vn(K,l)}).join(" "))};var oTm=function(u){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=u.document},M9w=function(u,K){WtN(u);
var l=document.createElement("div"),D;(D=K.parentNode)==null||D.insertBefore(l,K);l.tabIndex=0;l.id="fc-focus-trap-pre-div";l=document.createElement("div");var d;(d=K.parentNode)==null||d.insertBefore(l,K.nextSibling);l.tabIndex=0;l.id="fc-focus-trap-post-div";var C=HIa(u,K),W=HIa(u,K,!0);C&&W&&(u.focusChangeHandler=function(){var M=u.document.activeElement;if(M)if(_.LV(K,M))u.previouslyFocusedElement=M;else if(M===u.document.activeElement)switch(u.previouslyFocusedElement){case C:W.focus();u.previouslyFocusedElement=
W;break;default:C.focus(),u.previouslyFocusedElement=C}},u.document.addEventListener("focus",u.focusChangeHandler,!0),u.document.addEventListener("focusin",u.focusChangeHandler))},WtN=function(u){u.focusChangeHandler&&(document.removeEventListener("focus",u.focusChangeHandler,!0),document.removeEventListener("focusin",u.focusChangeHandler),u.focusChangeHandler=null);
var K;(K=document.getElementById("fc-focus-trap-pre-div"))==null||K.remove();var l;(l=document.getElementById("fc-focus-trap-post-div"))==null||l.remove()},qnR=function(u,K,l,D,d){l=l===void 0?!0:l;
var C;d=(C=d===void 0?null:d)!=null?C:HIa(u,K,D===void 0?!1:D);d!==null&&(d.focus(),l&&M9w(u,K))};
oTm.prototype.disableButton=function(u,K){K=K===void 0?null:K;u.disabled=!0;K&&_.rY(u,K)};
var HIa=function(u,K,l){l=l===void 0?!1:l;if(brq(K)&&!l)return K;var D=l?[].slice.call(K.children,0).reverse():K.children;D=_.y(D);for(var d=D.next();!d.done;d=D.next())if(d=d.value,Crw(d)&&(d=HIa(u,d,l)))return d;return brq(K)&&l?K:null};var $os=function(u){this.originalBodyOverflow="";this.JSC$9928_domHelper=iQ(u)};
$os.prototype.enableScrolling=function(){this.JSC$9928_domHelper.JSC$9252_document_.body.style.overflow=this.originalBodyOverflow};_.Sa(_.Fd,_.TZ);_.I=_.Fd.prototype;_.I.JSC$9931_id_=0;_.I.disposeInternal=function(){_.Fd.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9929_listener_;delete this.handler_};
_.I.start=function(u){this.stop();this.JSC$9931_id_=kz(this.callback_,u!==void 0?u:this.JSC$9929_interval_)};
_.I.stop=function(){this.isActive()&&_.lL.clearTimeout(this.JSC$9931_id_);this.JSC$9931_id_=0};
_.I.fire=function(){this.stop();this.JSC$9931_doAction_()};
_.I.isActive=function(){return this.JSC$9931_id_!=0};
_.I.JSC$9931_doAction_=function(){this.JSC$9931_id_=0;this.JSC$9929_listener_&&this.JSC$9929_listener_.call(this.handler_)};_.tC=function(u){_.TZ.call(this);this.handler_=u;this.JSC$9932_keys_={}};
_.Sa(_.tC,_.TZ);var nTB=[];_.tC.prototype.listen=function(u,K,l,D){Array.isArray(K)||(K&&(nTB[0]=K.toString()),K=nTB);for(var d=0;d<K.length;d++){var C=_.kU(u,K[d],l||this.handleEvent,D||!1,this.handler_||this);if(!C)break;this.JSC$9932_keys_[C.key]=C}return this};
_.tC.prototype.listenOnce=function(u,K,l,D){return rg2(this,u,K,l,D)};
var rg2=function(u,K,l,D,d,C){if(Array.isArray(l))for(var W=0;W<l.length;W++)rg2(u,K,l[W],D,d,C);else{K=Fu(K,l,D||u.handleEvent,d,C||u.handler_||u);if(!K)return u;u.JSC$9932_keys_[K.key]=K}return u};
_.tC.prototype.unlisten=function(u,K,l,D,d){if(Array.isArray(K))for(var C=0;C<K.length;C++)this.unlisten(u,K[C],l,D,d);else if(u=wZC(u,K,l||this.handleEvent,_.Ks(D)?!!D.capture:!!D,d||this.handler_||this))V2(u),delete this.JSC$9932_keys_[u.key];return this};
_.tC.prototype.removeAll=function(){_.k$.forEach(this.JSC$9932_keys_,function(u,K){this.JSC$9932_keys_.hasOwnProperty(K)&&V2(u)},this);
this.JSC$9932_keys_={}};
_.tC.prototype.disposeInternal=function(){_.tC.superClass_.disposeInternal.call(this);this.removeAll()};
_.tC.prototype.handleEvent=function(){throw Error("Oa");};var sg=function(){_.TZ.call(this);this.services_={}};
_.Sa(sg,_.TZ);sg.prototype.connect=function(u){u&&u()};
sg.prototype.isConnected=function(){return!0};
sg.prototype.registerService=function(u,K,l){this.services_[u]={callback:K,objectPayload:!!l}};
sg.prototype.getService=function(u,K){var l=this.services_[u];return l?l:this.defaultService_?{callback:_.Js(this.defaultService_,u),objectPayload:_.Ks(K)}:null};
var vTa=function(u,K){if(K&&typeof u==="string")try{return JSON.parse(u)}catch(l){return null}else if(!K&&typeof u!=="string")return(0,_.Yz)(u);return u};
sg.prototype.disposeInternal=function(){sg.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 oM=function(u,K){this.sequence_=[];this.onCancelFunction_=u;this.defaultScope_=K||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};
oM.prototype.cancel=function(u){if(this.fired_)this.result_ instanceof oM&&this.result_.cancel();else{if(this.parent_){var K=this.parent_;delete this.parent_;u?K.cancel(u):(K.branches_--,K.branches_<=0&&K.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new WN(this))}};
oM.prototype.continue_=function(u,K){this.blocked_=!1;Gda(this,u,K)};
var Gda=function(u,K,l){u.fired_=!0;u.result_=l;u.hadError_=!K;t9H(u)},Snm=function(u){if(u.fired_){if(!u.silentlyCanceled_)throw new xoa(u);
u.silentlyCanceled_=!1}};
oM.prototype.callback=function(u){Snm(this);Gda(this,!0,u)};
oM.prototype.errback=function(u){Snm(this);Gda(this,!1,u)};
var bI2=function(u,K,l){HN(u,K,null,l)};
oM.prototype.finally=function(u){var K=this;return OIm(new Promise(function(l,D){HN(K,function(d){u();l(d)},function(d){u();
D(d)})}))};
var HN=function(u,K,l,D){var d=u.fired_;d||(K===l?K=l=F4(K):(K=F4(K),l=F4(l)));u.sequence_.push([K,l,D]);d&&t9H(u)};
oM.prototype.then=function(u,K,l){var D,d,C=new _.RL(function(W,M){d=W;D=M});
HN(this,d,function(W){W instanceof WN?C.cancel():D(W);return cgH},this);
return C.then(u,K,l)};
Ams(oM);var a7s=function(u,K){K instanceof oM?bI2(u,(0,_.wB)(K.branch,K)):bI2(u,function(){return K})};
oM.prototype.branch=function(u){var K=new oM;HN(this,K.callback,K.errback,K);u&&(K.parent_=this,this.branches_++);return K};
oM.prototype.isError=function(u){return u instanceof Error};
var zpR=function(u){return oL(u.sequence_,function(K){return typeof K[1]==="function"})},cgH={},t9H=function(u){if(u.unhandledErrorId_&&u.fired_&&zpR(u)){var K=u.unhandledErrorId_,l=epa[K];
l&&(_.lL.clearTimeout(l.JSC$9949_id_),delete epa[K]);u.unhandledErrorId_=0}u.parent_&&(u.parent_.branches_--,delete u.parent_);K=u.result_;for(var D=l=!1;u.sequence_.length&&!u.blocked_;){var d=u.sequence_.shift(),C=d[0],W=d[1];d=d[2];if(C=u.hadError_?W:C)try{var M=C.call(d||u.defaultScope_,K);M===cgH&&(M=void 0);M!==void 0&&(u.hadError_=u.hadError_&&(M==K||u.isError(M)),u.result_=K=M);if(XZk(K)||typeof _.lL.Promise==="function"&&K instanceof _.lL.Promise)D=!0,u.blocked_=!0}catch(q){K=q,u.hadError_=
!0,zpR(u)||(l=!0)}}u.result_=K;D&&(M=(0,_.wB)(u.continue_,u,!0),D=(0,_.wB)(u.continue_,u,!1),K instanceof oM?(HN(K,M,D),K.blocking_=!0):K.then(M,D));l&&(K=new Rp2(K),epa[K.JSC$9949_id_]=K,u.unhandledErrorId_=K.JSC$9949_id_)},OIm=function(u){var K=new oM;
u.then(function(l){K.callback(l)},function(l){K.errback(l)});
return K},xoa=function(){_.uL.call(this)};
_.Sa(xoa,_.uL);xoa.prototype.message="Deferred has already fired";xoa.prototype.name="AlreadyCalledError";var WN=function(){_.uL.call(this)};
_.Sa(WN,_.uL);WN.prototype.message="Deferred was canceled";WN.prototype.name="CanceledError";var Rp2=function(u){this.JSC$9949_id_=_.lL.setTimeout((0,_.wB)(this.throwError,this),0);this.JSC$9949_error_=u};
Rp2.prototype.throwError=function(){delete epa[this.JSC$9949_id_];throw this.JSC$9949_error_;};
var epa={};var UoS={1:"NativeMessagingTransport"},f7k=["pu","lru","pru","lpu","ppu"],PrR=function(){for(var u=10,K=QZH,l=K.length,D="";u-- >0;)D+=K.charAt(Math.floor(Math.random()*l));return D},QZH="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Mi=function(u){_.TZ.call(this);this.JSC$9952_domHelper_=u||iQ()};
_.Sa(Mi,_.TZ);Mi.prototype.transportType=0;Mi.prototype.getWindow=function(){return this.JSC$9952_domHelper_.getWindow()};
Mi.prototype.getName=function(){return UoS[String(this.transportType)]||""};var qi=function(u,K,l,D,d){Mi.call(this,l);this.JSC$9955_channel_=u;this.protocolVersion_=d||2;this.peerHostname_=K||"*";this.JSC$9955_eventHandler_=new _.tC(this);this.maybeAttemptToConnectTimer_=new _.GS(100,this.getWindow());this.oneSidedHandshake_=!!D;this.setupAckReceived_=new oM;this.setupAckSent_=new oM;this.JSC$9955_connected_=new oM;this.endpointId_=PrR();this.peerEndpointId_=null;this.oneSidedHandshake_?JgB(this.JSC$9955_channel_)==1?a7s(this.JSC$9955_connected_,this.setupAckReceived_):
a7s(this.JSC$9955_connected_,this.setupAckSent_):(a7s(this.JSC$9955_connected_,this.setupAckReceived_),this.protocolVersion_==2&&a7s(this.JSC$9955_connected_,this.setupAckSent_));bI2(this.JSC$9955_connected_,this.notifyConnected_,this);this.JSC$9955_connected_.callback(!0);this.JSC$9955_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Sa(qi,Mi);qi.prototype.peerProtocolVersion_=null;qi.prototype.initialized_=!1;qi.prototype.transportType=1;var jZm={};qi.prototype.sendTimerId_=0;
var iIs=function(u){var K=u.event_.data;if(typeof K!=="string")return!1;var l=K.indexOf("|"),D=K.indexOf(":");if(l==-1||D==-1)return!1;var d=K.substring(0,l);l=K.substring(l+1,D);K=K.substring(D+1);if(D=$4[d])return D.xpcDeliver(l,K,u.event_.origin),!0;D=Bps(K)[0];for(var C in $4){var W=$4[C];if(JgB(W)==1&&!W.isConnected()&&l=="tp"&&(D=="SETUP"||D=="SETUP_NTPV2")&&p$2(W,u.event_.origin))return delete $4[W.name],W.name=d,$4[d]=W,W.xpcDeliver(l,K),!0}return!1},Tpw=function(u){u.protocolVersion_!=2||
u.peerProtocolVersion_!=null&&u.peerProtocolVersion_!=2||u.send("tp","SETUP_NTPV2,"+u.endpointId_);
u.peerProtocolVersion_!=null&&u.peerProtocolVersion_!=1||u.send("tp","SETUP")},w$w=function(u,K){if(u.protocolVersion_!=2||u.peerProtocolVersion_!=null&&u.peerProtocolVersion_!=2||K!=2){if(u.peerProtocolVersion_!=null&&u.peerProtocolVersion_!=1||K!=1)return;
u.send("tp","SETUP_ACK")}else u.send("tp","SETUP_ACK_NTPV2");u.setupAckSent_.fired_||u.setupAckSent_.callback(!0)},FtH=function(u,K){K>u.peerProtocolVersion_&&(u.peerProtocolVersion_=K);
u.peerProtocolVersion_==1&&(u.setupAckSent_.fired_||u.oneSidedHandshake_||u.setupAckSent_.callback(!0),u.peerEndpointId_=null)};
_.I=qi.prototype;_.I.connect=function(){var u=this.getWindow(),K=_.DA(u),l=jZm[K];typeof l!=="number"&&(l=0);l==0&&_.kU(u.postMessage?u:u.document,"message",iIs,!1,qi);jZm[K]=l+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.I.maybeAttemptToConnect_=function(){var u=JgB(this.JSC$9955_channel_)==0;this.oneSidedHandshake_&&u||this.JSC$9955_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),Tpw(this))};
_.I.send=function(u,K){var l=this.JSC$9955_channel_.peerWindowObject_;l&&(this.send=function(D,d){var C=this,W=this.JSC$9955_channel_.name;this.sendTimerId_=kz(function(){C.sendTimerId_=0;try{var M=l.postMessage?l:l.document;M.postMessage&&M.postMessage(W+"|"+D+":"+d,C.peerHostname_)}catch(q){}},0)},this.send(u,K))};
_.I.notifyConnected_=function(){var u=this.JSC$9955_channel_,K=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;u.isConnected()||u.connectionDelay_&&u.connectionDelay_.isActive()||(u.state_=2,_.qt(u.connectionDelay_),K!==void 0?(u.connectionDelay_=new _.Fd(u.connectCb_,K),u.connectionDelay_.start()):(u.connectionDelay_=null,u.connectCb_()))};
_.I.disposeInternal=function(){if(this.initialized_){var u=this.getWindow(),K=_.DA(u),l=jZm[K];jZm[K]=l-1;l==1&&_.TY(u.postMessage?u:u.document,"message",iIs,!1,qi)}this.sendTimerId_&&(_.lL.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.qt(this.JSC$9955_eventHandler_);delete this.JSC$9955_eventHandler_;_.qt(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$9955_connected_.cancel();delete this.JSC$9955_connected_;delete this.send;qi.superClass_.disposeInternal.call(this)};
var Bps=function(u){u=u.split(",");u[1]=u[1]||null;return u};var gTC;_.nX=function(u){if(u.getValues&&typeof u.getValues=="function")return u.getValues();if(typeof Map!=="undefined"&&u instanceof Map||typeof Set!=="undefined"&&u instanceof Set)return Array.from(u.values());if(typeof u==="string")return u.split("");if(_.mb(u)){for(var K=[],l=u.length,D=0;D<l;D++)K.push(u[D]);return K}return _.k$.getValues(u)};
_.V9R=function(u){if(u.getKeys&&typeof u.getKeys=="function")return u.getKeys();if(!u.getValues||typeof u.getValues!="function"){if(typeof Map!=="undefined"&&u instanceof Map)return Array.from(u.keys());if(!(typeof Set!=="undefined"&&u instanceof Set)){if(_.mb(u)||typeof u==="string"){var K=[];u=u.length;for(var l=0;l<u;l++)K.push(l);return K}return _.k$.getKeys(u)}}};
gTC=function(u,K,l){if(u.forEach&&typeof u.forEach=="function")u.forEach(K,l);else if(_.mb(u)||typeof u==="string")Array.prototype.forEach.call(u,K,l);else for(var D=_.V9R(u),d=_.nX(u),C=d.length,W=0;W<C;W++)K.call(l,d[W],D&&D[W],u)};var DRo,Og,aM,moC,Npm,ZIa,kd2,X$0,Ynw;
_.W0=function(u,K){this.JSC$9960_domain_=this.userInfo_=this.scheme_="";this.JSC$9960_port_=null;this.fragment_=this.JSC$9960_path_="";this.JSC$9960_ignoreCase_=!1;var l;u instanceof _.W0?(this.JSC$9960_ignoreCase_=K!==void 0?K:u.JSC$9960_ignoreCase_,_.rO(this,u.scheme_),this.userInfo_=u.userInfo_,_.vN(this,u.JSC$9960_domain_),_.G2(this,u.JSC$9960_port_),_.x4(this,u.getPath()),_.SS(this,u.JSC$9960_queryData_.clone()),_.bA(this,u.fragment_)):u&&(l=_.M7(String(u)))?(this.JSC$9960_ignoreCase_=!!K,_.rO(this,
l[1]||"",!0),this.userInfo_=Og(l[2]||""),_.vN(this,l[3]||"",!0),_.G2(this,l[4]),_.x4(this,l[5]||"",!0),_.SS(this,l[6]||"",!0),_.bA(this,l[7]||"",!0)):(this.JSC$9960_ignoreCase_=!!K,this.JSC$9960_queryData_=new _.cN(null,this.JSC$9960_ignoreCase_))};
_.W0.prototype.toString=function(){var u=[],K=this.scheme_;K&&u.push(aM(K,Npm,!0),":");var l=this.JSC$9960_domain_;if(l||K=="file")u.push("//"),(K=this.userInfo_)&&u.push(aM(K,Npm,!0),"@"),u.push(_.CT(l).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),l=this.JSC$9960_port_,l!=null&&u.push(":",String(l));if(l=this.getPath())this.JSC$9960_domain_&&l.charAt(0)!="/"&&u.push("/"),u.push(aM(l,l.charAt(0)=="/"?kd2:ZIa,!0));(l=this.JSC$9960_queryData_.toString())&&u.push("?",l);(l=this.fragment_)&&u.push("#",aM(l,
Ynw));return u.join("")};
_.W0.prototype.resolve=function(u){var K=this.clone(),l=!!u.scheme_;l?_.rO(K,u.scheme_):l=!!u.userInfo_;l?K.userInfo_=u.userInfo_:l=!!u.JSC$9960_domain_;l?_.vN(K,u.JSC$9960_domain_):l=u.JSC$9960_port_!=null;var D=u.getPath();if(l)_.G2(K,u.JSC$9960_port_);else if(l=!!u.JSC$9960_path_){if(D.charAt(0)!="/")if(this.JSC$9960_domain_&&!this.JSC$9960_path_)D="/"+D;else{var d=K.getPath().lastIndexOf("/");d!=-1&&(D=K.getPath().slice(0,d+1)+D)}d=D;if(d==".."||d==".")D="";else if(_.Ho(d,"./")||_.Ho(d,"/.")){D=
_.dq(d,"/");d=d.split("/");for(var C=[],W=0;W<d.length;){var M=d[W++];M=="."?D&&W==d.length&&C.push(""):M==".."?((C.length>1||C.length==1&&C[0]!="")&&C.pop(),D&&W==d.length&&C.push("")):(C.push(M),D=!0)}D=C.join("/")}else D=d}l?_.x4(K,D):l=u.JSC$9960_queryData_.toString()!=="";l?_.SS(K,u.JSC$9960_queryData_.clone()):l=!!u.fragment_;l&&_.bA(K,u.fragment_);return K};
_.W0.prototype.clone=function(){return new _.W0(this)};
_.rO=function(u,K,l){u.scheme_=l?Og(K,!0):K;u.scheme_&&(u.scheme_=u.scheme_.replace(/:$/,""));return u};
_.vN=function(u,K,l){u.JSC$9960_domain_=l?Og(K,!0):K;return u};
_.G2=function(u,K){if(K){K=Number(K);if(isNaN(K)||K<0)throw Error("Pa`"+K);u.JSC$9960_port_=K}else u.JSC$9960_port_=null;return u};
_.W0.prototype.getPath=function(){return this.JSC$9960_path_};
_.x4=function(u,K,l){u.JSC$9960_path_=l?Og(K,!0):K;return u};
_.SS=function(u,K,l){K instanceof _.cN?(u.JSC$9960_queryData_=K,AgC(u.JSC$9960_queryData_,u.JSC$9960_ignoreCase_)):(l||(K=aM(K,X$0)),u.JSC$9960_queryData_=new _.cN(K,u.JSC$9960_ignoreCase_));return u};
_.dp=function(u,K,l){u.JSC$9960_queryData_.set(K,l);return u};
_.D7=function(u,K){return u.JSC$9960_queryData_.get(K)};
_.bA=function(u,K,l){u.fragment_=l?Og(K):K;return u};
_.z2=function(u){_.dp(u,"zx",KI());return u};
_.lr=function(u,K){return u instanceof _.W0?u.clone():new _.W0(u,K)};
DRo=function(u,K){u instanceof _.W0||(u=_.lr(u));K instanceof _.W0||(K=_.lr(K));return u.resolve(K)};
Og=function(u,K){return u?K?decodeURI(u.replace(/%25/g,"%2525")):decodeURIComponent(u):""};
aM=function(u,K,l){return typeof u==="string"?(u=encodeURI(u).replace(K,moC),l&&(u=u.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),u):null};
moC=function(u){u=u.charCodeAt(0);return"%"+(u>>4&15).toString(16)+(u&15).toString(16)};
Npm=/[#\/\?@]/g;ZIa=/[#\?:]/g;kd2=/[#\?]/g;X$0=/[#\?@]/g;Ynw=/#/g;_.cN=function(u,K){this.count_=this.keyMap_=null;this.encodedQuery_=u||null;this.JSC$9961_ignoreCase_=!!K};
_.eS=function(u){u.keyMap_||(u.keyMap_=new Map,u.count_=0,u.encodedQuery_&&j2a(u.encodedQuery_,function(K,l){u.add(rv(K),l)}))};
_.I=_.cN.prototype;_.I.getCount=function(){_.eS(this);return this.count_};
_.I.add=function(u,K){_.eS(this);this.encodedQuery_=null;u=RM(this,u);var l=this.keyMap_.get(u);l||this.keyMap_.set(u,l=[]);l.push(K);this.count_+=1;return this};
_.I.remove=function(u){_.eS(this);u=RM(this,u);return this.keyMap_.has(u)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(u).length,this.keyMap_.delete(u)):!1};
_.I.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.I.isEmpty=function(){_.eS(this);return this.count_==0};
_.I.containsKey=function(u){_.eS(this);u=RM(this,u);return this.keyMap_.has(u)};
_.I.containsValue=function(u){var K=this.getValues();return _.Vn(K,u)};
_.I.forEach=function(u,K){_.eS(this);this.keyMap_.forEach(function(l,D){l.forEach(function(d){u.call(K,d,D,this)},this)},this)};
_.I.getKeys=function(){_.eS(this);for(var u=Array.from(this.keyMap_.values()),K=Array.from(this.keyMap_.keys()),l=[],D=0;D<K.length;D++)for(var d=u[D],C=0;C<d.length;C++)l.push(K[D]);return l};
_.I.getValues=function(u){_.eS(this);var K=[];if(typeof u==="string")this.containsKey(u)&&(K=K.concat(this.keyMap_.get(RM(this,u))));else{u=Array.from(this.keyMap_.values());for(var l=0;l<u.length;l++)K=K.concat(u[l])}return K};
_.I.set=function(u,K){_.eS(this);this.encodedQuery_=null;u=RM(this,u);this.containsKey(u)&&(this.count_-=this.keyMap_.get(u).length);this.keyMap_.set(u,[K]);this.count_+=1;return this};
_.I.get=function(u,K){if(!u)return K;u=this.getValues(u);return u.length>0?String(u[0]):K};
_.hpa=function(u,K,l){u.remove(K);l.length>0&&(u.encodedQuery_=null,u.keyMap_.set(RM(u,K),_.Xq(l)),u.count_+=l.length)};
_.cN.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var u=[],K=Array.from(this.keyMap_.keys()),l=0;l<K.length;l++){var D=K[l],d=_.CT(D);D=this.getValues(D);for(var C=0;C<D.length;C++){var W=d;D[C]!==""&&(W+="="+_.CT(D[C]));u.push(W)}}return this.encodedQuery_=u.join("&")};
_.cN.prototype.clone=function(){var u=new _.cN;u.encodedQuery_=this.encodedQuery_;this.keyMap_&&(u.keyMap_=new Map(this.keyMap_),u.count_=this.count_);return u};
var RM=function(u,K){K=String(K);u.JSC$9961_ignoreCase_&&(K=K.toLowerCase());return K},AgC=function(u,K){K&&!u.JSC$9961_ignoreCase_&&(_.eS(u),u.encodedQuery_=null,u.keyMap_.forEach(function(l,D){var d=D.toLowerCase();
D!=d&&(this.remove(D),_.hpa(this,d,l))},u));
u.JSC$9961_ignoreCase_=K};
_.cN.prototype.extend=function(u){for(var K=0;K<arguments.length;K++)gTC(arguments[K],function(l,D){this.add(D,l)},this)};var Ug=function(u,K){sg.call(this);for(var l=0,D;D=f7k[l];l++)if(D in u&&!/^https?:\/\//.test(u[D]))throw Error("Ra`"+u[D]+"`"+D);this.cfg_=u;this.name=this.cfg_.cn||PrR();this.JSC$9956_domHelper_=K||iQ();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.tC(this);u.lpu=u.lpu||PGk(this.JSC$9956_domHelper_.getWindow().location.href)+"/robots.txt";u.ppu=u.ppu||PGk(u.pu||"")+"/robots.txt";$4[this.name]=this;wZC(window,"unload",ETm)||Fu(window,"unload",ETm)};
_.Sa(Ug,sg);var LtB=RegExp("^%*tp$"),up0=RegExp("^%+tp$");_.I=Ug.prototype;_.I.connectionDelay_=null;_.I.peerWindowDeferred_=null;_.I.transport_=null;_.I.state_=1;_.I.isConnected=function(){return this.state_==2};
_.I.peerWindowObject_=null;_.I.iframeElement_=null;_.I.connect=function(u){this.connectCb_=u||_.iO;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?bI2(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.I.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$9956_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var u=this.iframeElement_.contentWindow;u||(u=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=u}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$9956_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new qi(this,this.cfg_.ph,this.JSC$9956_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()()};
_.I.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.qt(this.transport_);this.connectCb_=this.transport_=null;_.qt(this.connectionDelay_);this.connectionDelay_=null};
_.I.send=function(u,K){if(this.isConnected()){try{var l=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(d){l=!1}if(l){_.Ks(K)&&(K=(0,_.Yz)(K));l=this.transport_;var D=l.send;LtB.test(u)&&(u="%"+u);u=u.replace(/[%:|]/g,encodeURIComponent);D.call(l,u,K)}else this.close()}};
_.I.xpcDeliver=function(u,K,l){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.wB)(this.xpcDeliver,this,u,K,l));else if(p$2(this,l)&&!this.isDisposed()&&this.state_!=3)if(u&&u!="tp")this.isConnected()&&(u=u.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),u=up0.test(u)?u.substring(1):u,u=this.getService(u,K))&&(K=vTa(K,u.objectPayload),K!=null&&u.callback(K));else switch(u=this.transport_,l=Bps(K),K=l[1],l[0]){case "SETUP_ACK":FtH(u,1);u.setupAckReceived_.fired_||u.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":u.protocolVersion_==2&&(FtH(u,2),u.setupAckReceived_.fired_||u.setupAckReceived_.callback(!0));break;case "SETUP":FtH(u,1);w$w(u,1);break;case "SETUP_NTPV2":u.protocolVersion_==2&&(l=u.peerProtocolVersion_,FtH(u,2),w$w(u,2),l!=1&&u.peerEndpointId_==null||u.peerEndpointId_==K||Tpw(u),u.peerEndpointId_=K)}};
var JgB=function(u){var K=u.cfg_.role;return typeof K==="number"?K:window.parent==u.peerWindowObject_?1:0},p$2=function(u,K){var l=u.cfg_.ph;
return _.oR(K==null?"":String(K))||_.oR(l==null?"":String(l))||K==u.cfg_.ph};
Ug.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete $4[this.name];_.qt(this.peerLoadHandler_);delete this.peerLoadHandler_;Ug.superClass_.disposeInternal.call(this)};
var ETm=function(){for(var u in $4)_.qt($4[u])},$4={};var lYH=function(u,K){this.JSC$9970_win=u;this.allowAdsHttpEndpoint=K;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$9970_domHelper=iQ(u);this.scrollManager=new $os(u);this.accessibilityManager=new oTm(u);KTS(this)},KTS=function(u){var K=function(){u.allowAdsPopup&&u.allowAdsPopup.style.setProperty("display","none","important");
u.wallElement.style.setProperty("display","","important");WtN(u.accessibilityManager);qnR(u.accessibilityManager,u.wallElement.querySelector(".fc-dialog-container"),!1,!1,u.wallElement.querySelector(".fc-button-whitelist"));u.scrollManager.enableScrolling()};
u.allowAdsPopup=u.JSC$9970_domHelper.JSC$9254_createDom("DIV",{"class":"fc-whitelist-root"});u.allowAdsPopup.style.setProperty("display","none","important");u.JSC$9970_domHelper.appendChild(u.JSC$9970_domHelper.JSC$9252_document_.body,u.allowAdsPopup);var l=u.JSC$9970_domHelper.JSC$9254_createDom("DIV",{"class":"fc-dialog-overlay"});u.JSC$9970_domHelper.appendChild(u.allowAdsPopup,l);var D=u.JSC$9970_domHelper.JSC$9254_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:K});u.JSC$9970_domHelper.appendChild(u.allowAdsPopup,
D);l=u.JSC$9970_domHelper.JSC$9254_createDom("IFRAME");l.className="fc-whitelist-dialog";l.frameBorder="0";l.id="fc-whitelist-iframe";l.tabIndex="0";_.yg(l,u.allowAdsHttpEndpoint);u.JSC$9970_domHelper.appendChild(D,l);D={};D.pu=_.VS(u.allowAdsHttpEndpoint).toString();D.tp=1;D.cn="fc-whitelist-channel";D.ifrid=l.id;D.osh=!0;u.allowAdsCrossPageChannel=new Ug(D);u.allowAdsCrossPageChannel.registerService("close",K);u.allowAdsCrossPageChannel.registerService("refresh",function(){u.JSC$9970_win.location.reload()});
u.allowAdsCrossPageChannel.registerService("resize",function(d){if(d){var C=u.allowAdsPopup.querySelector(".fc-whitelist-dialog");d.width&&C.style.setProperty("width",d.width,"important");d.height&&C.style.setProperty("height",d.height,"important")}},!0);
u.allowAdsCrossPageChannel.connect()};
lYH.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$9970_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var fX=window,Qp=document,D_B=fX.location,d_w=function(){},CcH=/\[native code\]/,PN=function(u,K,l){return u[K]=u[K]||l},IYR=function(u){u=u.sort();
for(var K=[],l=void 0,D=0;D<u.length;D++){var d=u[D];d!=l&&K.push(d);l=d}return K},J5=function(){var u;
if((u=Object.create)&&CcH.test(u))u=u(null);else{u={};for(var K in u)u[K]=void 0}return u},jS=PN(fX,"gapi",{});var BN={};BN=PN(fX,"___jsl",J5());PN(BN,"I",0);PN(BN,"hel",10);var y8B=function(){var u=D_B.href;if(BN.dpo)var K=BN.h;else{K=BN.h;var l=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),D=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(u=u&&(l.exec(u)||D.exec(u)))try{K=decodeURIComponent(u[2])}catch(d){}}return K},sEa=function(u){var K=PN(BN,"PQ",[]);
BN.PQ=[];var l=K.length;if(l===0)u();else for(var D=0,d=function(){++D===l&&u()},C=0;C<l;C++)K[C](d)},oDw=function(u){return PN(PN(BN,"H",J5()),u,J5())};var pX=function(u){this.JSC$9972_obj_=u};
pX.prototype.value=function(){return this.JSC$9972_obj_};
pX.prototype.getWidth=function(){return this.JSC$9972_obj_.width};
pX.prototype.getHeight=function(){return this.JSC$9972_obj_.height};
pX.prototype.getStyle=function(){return this.JSC$9972_obj_.style};var WTH=function(u){this.JSC$9975_obj_=u||{}};
_.I=WTH.prototype;_.I.value=function(){return this.JSC$9975_obj_};
_.I.setUrl=function(u){this.JSC$9975_obj_.url=u;return this};
_.I.getUrl=function(){return this.JSC$9975_obj_.url};
_.I.getStyle=function(){return this.JSC$9975_obj_.style};
_.I.getId=function(){return this.JSC$9975_obj_.id};
_.I.getContext=function(){return this.JSC$9975_obj_.context};
var H0R=function(u){u.JSC$9975_obj_.attributes=u.JSC$9975_obj_.attributes||{};return new pX(u.JSC$9975_obj_.attributes)};var MfS=function(){WTH.apply(this,arguments)};
_.c(MfS,WTH);var q3a=PN(BN,"perf",J5());PN(q3a,"g",J5());var $_w=PN(q3a,"i",J5());PN(q3a,"r",[]);J5();J5();var r8s=function(u,K,l){K&&K.length>0&&(K=nDm(K),l&&l.length>0&&(K+="___"+nDm(l)),K.length>28&&(K=K.substr(0,28)+(K.length-28)),l=K,K=PN($_w,"_p",J5()),PN(K,l,J5())[u]=(new Date).getTime(),K=q3a.r,typeof K==="function"?K(u,"_p",l):K.push([u,"_p",l]))},nDm=function(u){return u.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var vDA=J5(),G1a=[],iA=function(u){throw Error("Ua`"+u);};
G1a.push(["jsl",function(u){for(var K in u)if(Object.prototype.hasOwnProperty.call(u,K)){var l=u[K];typeof l=="object"?BN[K]=PN(BN,K,[]).concat(l):PN(BN,K,l)}if(K=u.u)u=PN(BN,"us",[]),u.push(K),(K=/^https:(.*)$/.exec(K))&&u.push("http:"+K[1])}]);
var tfS=/^(\/[a-zA-Z0-9_\-]+)+$/,x_C=[/\/amp\//,/\/amp$/,/^\/amp$/],S3A=/^[a-zA-Z0-9\-_\.,!]+$/,b0k=/^gapi\.loaded_[0-9]+$/,O0R=/^[a-zA-Z0-9,._-]+$/,e9s=function(u,K,l,D,d){var C=u.split(";"),W=C.shift(),M=vDA[W],q=null;M?q=M(C,K,l,D):iA("no hint processor for: "+W);q||iA("failed to generate load url");K=q;l=K.match(c8a);(D=K.match(aYk))&&D.length===1&&z9H.test(K)&&l&&l.length===1||iA("failed sanity: "+u);try{u="?";if(d&&d.length>0){IC(d);var v=d.join(",");q=q+"?le="+v;u="&"}if(BN.rol){var G=BN.ol;
G&&G.length&&(q=""+q+u+"ol="+G.length)}}catch(t){}return q},fYH=function(u,K,l,D){u=R9s(u);
b0k.test(l)||iA("invalid_callback");K=U_k(K);D=D&&D.length?U_k(D):null;var d=function(C){return encodeURIComponent(C).replace(/%2C/g,",")};
return[encodeURIComponent(u.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",d(u.version),"/m=",d(K),D?"/exm="+d(D):"","/rt=j/sv=1/d=1/ed=1",u.activeMods?"/am="+d(u.activeMods):"",u.resourceSig?"/rs="+d(u.resourceSig):"",u.zcms?"/t="+d(u.zcms):"","/cb=",d(l)].join("")},R9s=function(u){u.charAt(0)!=="/"&&iA("relative path");
for(var K=u.substring(1).split("/"),l=[];K.length;){u=K.shift();if(!u.length||u.indexOf(".")==0)iA("empty/relative directory");else if(u.indexOf("=")>0){K.unshift(u);break}l.push(u)}u={};for(var D=0,d=K.length;D<d;++D){var C=K[D].split("="),W=decodeURIComponent(C[0]),M=decodeURIComponent(C[1]);C.length==2&&W&&M&&(u[W]=u[W]||M)}K="/"+l.join("/");tfS.test(K)||iA("invalid_prefix");l=0;for(D=x_C.length;l<D;++l)x_C[l].test(K)&&iA("invalid_prefix");l=QEB(u,"k",!0);D=QEB(u,"am");d=QEB(u,"rs");u=QEB(u,"t");
return{pathPrefix:K,version:l,activeMods:D,resourceSig:d,zcms:u}},U_k=function(u){for(var K=[],l=0,D=u.length;l<D;++l){var d=u[l].replace(/\./g,"_").replace(/-/g,"_");
O0R.test(d)&&K.push(d)}return K.join(",")},QEB=function(u,K,l){u=u[K];
!u&&l&&iA("missing: "+K);if(u){if(S3A.test(u))return u;iA("invalid: "+K)}return null},z9H=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,aYk=/\/cb=/g,c8a=/\/\//g;
vDA.m=function(u,K,l,D){(u=u[0])||iA("missing_hint");return"https://apis.google.com"+fYH(u,K,l,D)};
var PcN=decodeURI("%73cript"),J8m=/^[-+_0-9\/A-Za-z]+={0,2}$/,jEs=function(u,K){for(var l=[],D=0;D<u.length;++D){var d=u[D],C;if(C=d){a:{for(C=0;C<K.length;C++)if(K[C]===d)break a;C=-1}C=C<0}C&&l.push(d)}return l},BiN=function(){var u=BN.nonce;
return u!==void 0?u&&u===String(u)&&u.match(J8m)?u:BN.nonce=null:Qp.querySelector?(u=Qp.querySelector("script[nonce]"))?(u=u.nonce||u.getAttribute("nonce")||"",u&&u===String(u)&&u.match(J8m)?BN.nonce=u:BN.nonce=null):null:null},Ti0=function(u){if(Qp.readyState!="loading")pVw(u);
else{var K=BiN(),l="";K!==null&&(l=' nonce="'+K+'"');u="<"+PcN+' src="'+encodeURI(u)+'"'+l+"></"+PcN+">";Qp.write(i0w?i0w.createHTML(u):u)}},pVw=function(u){var K=Qp.createElement(PcN);
K.setAttribute("src",i0w?i0w.createScriptURL(u):u);u=BiN();u!==null&&K.setAttribute("nonce",u);K.async="true";(u=Qp.getElementsByTagName(PcN)[0])?u.parentNode.insertBefore(K,u):(Qp.head||Qp.body||Qp.documentElement).appendChild(K)},FTs=function(u,K,l){wVa(function(){var D=K===y8B()?PN(jS,"_",J5()):J5();
D=PN(oDw(K),"_",D);u(D)},l)},EvR=function(u,K){var l=K||{};
typeof K=="function"&&(l={},l.callback=K);var D=(K=l)&&K._c;if(D)for(var d=0;d<G1a.length;d++){var C=G1a[d][0],W=G1a[d][1];W&&Object.prototype.hasOwnProperty.call(D,C)&&W(D[C],u,K)}K=[];u?K=u.split(":"):l.features&&(K=l.features);if(!(u=l.h)&&(u=y8B(),!u))throw Error("Va");VfR(K||[],l,u)},VfR=function(u,K,l){u=IYR(u)||[];
var D=K.callback,d=K.config,C=K.timeout,W=K.ontimeout,M=K.onerror,q=void 0;typeof M=="function"&&(q=M);var v=null,G=!1;if(C&&!W||!C&&W)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";M=PN(oDw(l),"r",[]).sort();var t=PN(oDw(l),"L",[]).sort(),x=BN.le||[],O=[].concat(M),a=function(m,Z){if(G)return 0;fX.clearTimeout(v);t.push.apply(t,f);var A=((jS||{}).config||{}).update;A?A(d):d&&PN(BN,"cu",[]).push(d);if(Z){r8s("me0",m,O);try{FTs(Z,l,q)}finally{r8s("me1",m,O)}}return 1};
C>0&&(v=fX.setTimeout(function(){G=!0;W()},C));
var f=jEs(u,t);if(f.length){f=jEs(u,M);var B=PN(BN,"CP",[]),p=B.length;B[p]=function(m){if(!m)return 0;r8s("ml1",f,O);var Z=function(h){B[p]=null;a(f,m)&&sEa(function(){D&&D();h()})},A=function(){var h=B[p+1];
h&&h()};
p>0&&B[p-1]?B[p]=function(){Z(A)}:Z(A)};
if(f.length){var V="loaded_"+BN.I++;jS[V]=function(m){B[p](m);jS[V]=null};
u=e9s(l,f,"gapi."+V,M,x);M.push.apply(M,f);r8s("ml0",f,O);K.sync||fX.___gapisync?Ti0(u):pVw(u)}else B[p](d_w)}else a(f)&&D&&D()},gDk;
var Nia=null,k1R=_.lL.trustedTypes;if(k1R&&k1R.createPolicy){try{Nia=k1R.createPolicy("goog#gapi",{createHTML:Abb,createScript:Abb,createScriptURL:Abb})}catch(u){_.lL.console&&_.lL.console.error(u.message)}gDk=Nia}else gDk=Nia;var i0w=gDk,wVa=function(u,K){if(BN.hee&&BN.hel>0)try{return u()}catch(l){K&&K(l),BN.hel--,EvR("debug_error",function(){try{window.___jsl.hefn(l)}catch(D){throw l;}})}else try{return u()}catch(l){throw K&&K(l),l;
}},Z0B=jS.load;
Z0B&&PN(BN,"ol",[]).push(Z0B);jS.load=function(u,K){return wVa(function(){return EvR(u,K)})};var Bv9;var A82=function(u,K){var l=l||[];this.serviceId_=u;this.moduleId_=K||null;this.dependencies_=[];Y3C(this,l)};
A82.prototype.toString=function(){return this.serviceId_};
A82.prototype.getModuleId=function(){return this.moduleId_};
var Y3C=function(u,K){var l=!1;l=l===void 0?!1:l;u.dependencies_=u.dependencies_.concat(K);if(l){if(!u.moduleId_)throw Error("Wa`"+u.serviceId_);K.map(function(D){return D.getModuleId()}).forEach(function(D){pvw(function(d){d.addExtraEdge(u.moduleId_,D)})})}};var w_q=new A82("MpJwZc","MpJwZc");var VRn=new _.J1("a"),Fqq=function(u,K,l){_.j3.call(this,u,K);this.node=K;this.kind=l};
_.c(Fqq,_.j3);var XVA=function(){this.JSC$9988_keys_={};this.urlPrefix_="";this.JSC$9988_queryData_={}};
XVA.prototype.toString=function(){var u=this.urlPrefix_+m_R(this),K=_.fT(this.JSC$9988_queryData_),l="";K!=""&&(l="?"+K);return u+l};
var h90=function(u){u=T2(u,"md");return!!u&&u!=="0"},m_R=function(u){var K=[],l=(0,_.wB)(function(D){this.JSC$9988_keys_[D]!==void 0&&K.push(D+"="+this.JSC$9988_keys_[D])},u);
h90(u)?(l("md"),l("k"),l("ck"),l("am"),l("rs"),l("gssmodulesetproto"),l("slk"),l("dti")):(l("sdch"),l("k"),l("ck"),l("am"),l("rt"),"d"in u.JSC$9988_keys_||wO(u,"d","0"),l("d"),l("exm"),l("excm"),(u.JSC$9988_keys_.excm||u.JSC$9988_keys_.exm)&&K.push("ed=1"),l("im"),l("dg"),l("sm"),T2(u,"br")!="1"&&T2(u,"br")!="0"||l("br"),l("br-d"),T2(u,"rb")=="1"&&l("rb"),T2(u,"zs")!=="0"&&l("zs"),EDm(u)!==""&&l("wt"),l("gssmodulesetproto"),l("ujg"),l("sp"),l("rs"),l("cb"),l("ee"),l("slk"),l("dti"),l("m"));return K.join("/")},
T2=function(u,K){return u.JSC$9988_keys_[K]?u.JSC$9988_keys_[K]:null},wO=function(u,K,l){l?u.JSC$9988_keys_[K]=l:delete u.JSC$9988_keys_[K]},LTw=function(u,K){u.urlPrefix_=K},u0s=function(u,K){K&&K.length>0?(K.sort(),wO(u,"exm",K.join(","))):wO(u,"exm",null)},Kgk=function(u,K){K&&K.length>0?(K.sort(),wO(u,"excm",K.join(","))):wO(u,"excm",null)},l_a=function(u){return(u=T2(u,"m"))?u.split(","):[]},EDm=function(u){switch(T2(u,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},D7S=function(u,K){var l=Object.keys(K).filter(function(D){return!!Object.keys(K[D]).length}).map(function(D){var d=Object.keys(K[D]);
d.length>1&&d.sort();return D+":"+d.join(",")});
l.sort();wO(u,"ee",l.join(";"))},RJR=function(u){var K=T2(u,"ee");
if(!K)return{};u={};K=_.y(K.split(";"));for(var l=K.next();!l.done;l=K.next()){var D=_.y(l.value.split(":"));l=D.next().value;D=D.next().value;u[l]={};D=_.y(D.split(","));for(var d=D.next();!d.done;d=D.next())u[l][d.value]=!0}return u},d7k=function(u){delete u.JSC$9988_keys_.m;
delete u.JSC$9988_keys_.exm;delete u.JSC$9988_keys_.ed};
XVA.prototype.clone=function(){var u=new XVA;u.JSC$9988_keys_=Object.assign({},this.JSC$9988_keys_);u.urlPrefix_=this.urlPrefix_;u.JSC$9988_queryData_=Object.assign({},this.JSC$9988_queryData_);return u};
var Uhn=function(u,K){K=K===void 0?!0:K;var l=CZH(u),D=new XVA,d=_.M7(l)[5];_.k$.forEach(I_B,function(W){var M=d.match("/"+W+"=([^/]+)");M&&wO(D,W,M[1])});
var C="";C=u.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";LTw(D,u.substr(0,u.indexOf(C)+C.length));if(!K)return D;(u=_.M7(l)[6]||null)&&j2a(u,function(W,M){D.JSC$9988_queryData_[W]=M});
return D},aqy=function(u){u=_.RK(CZH(u));
return u===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(u)?/\/k=/.test(u):!1},CZH=function(u){return u.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?u.substr(65):u},I_B={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"},y9s=RegExp("^loaded_(g|h)?[_\\d]+$");_.Fx=function(u){this.JSC$10000_id_=u;this.opts={}};
_.Fx.prototype.JSC$10002_setLabel=function(u){this.label_=u||void 0;return this};
_.Fx.prototype.addUploadMetadata=function(u,K){var l=this.opts.data||{};l[u]=K;this.opts.data=l;return this};
var sKR=function(u){var K=_.k$.filter(u.opts,function(l){return l!==null});
K=_.k$.isEmpty(K)?null:K;u=[u.JSC$10000_id_,u.label_,K];K=Ghw(u);return u=u.slice(0,K+1)};
_.Fx.prototype.toString=function(){var u=sKR(this);return"("+_.ZM(u,function(K){return JSON.stringify(K)}).join(",")+")"};
_.Fx.prototype.getId=function(){return this.JSC$10000_id_};
_.Fx.prototype.getOptions=function(){return _.k$.clone(this.opts)};var Vp=function(){_.Fx.call(this,"image-search")};
_.c(Vp,_.Fx);Vp.prototype.setSize=function(u){this.opts.imgsz=u;return this};
Vp.prototype.JSC$10002_setLabel=function(u){_.Fx.prototype.JSC$10002_setLabel.call(this,u);return this};
Vp.prototype.addUploadMetadata=function(u,K){_.Fx.prototype.addUploadMetadata.call(this,u,K);return this};var gO=function(){_.Fx.call(this,"maps")};
_.c(gO,_.Fx);gO.prototype.setZoom=function(u){this.opts.zoom=u;return this};
gO.prototype.JSC$10002_setLabel=function(u){_.Fx.prototype.JSC$10002_setLabel.call(this,u);return this};
gO.prototype.addUploadMetadata=function(u,K){_.Fx.prototype.addUploadMetadata.call(this,u,K);return this};_.Ni=function(){_.Fx.call(this,"photos")};
_.c(_.Ni,_.Fx);_.Ni.prototype.JSC$10002_setLabel=function(u){_.Fx.prototype.JSC$10002_setLabel.call(this,u);return this};
_.Ni.prototype.addUploadMetadata=function(u,K){_.Fx.prototype.addUploadMetadata.call(this,u,K);return this};var k4=function(){_.Fx.call(this,"url")};
_.c(k4,_.Fx);var onN=function(){var u=new k4;u.opts.type="video";u.opts.site="youtube.com";return u};
k4.prototype.JSC$10002_setLabel=function(u){_.Fx.prototype.JSC$10002_setLabel.call(this,u);return this};
k4.prototype.addUploadMetadata=function(u,K){_.Fx.prototype.addUploadMetadata.call(this,u,K);return this};var ZC=function(){_.Fx.call(this,"video-search")};
_.c(ZC,_.Fx);var Wg0=function(){var u=new ZC;u.opts.site="youtube.com";return u};
ZC.prototype.JSC$10002_setLabel=function(u){_.Fx.prototype.JSC$10002_setLabel.call(this,u);return this};
ZC.prototype.addUploadMetadata=function(u,K){_.Fx.prototype.addUploadMetadata.call(this,u,K);return this};var HTa=function(){_.Fx.call(this,"web")};
_.c(HTa,_.Fx);HTa.prototype.JSC$10002_setLabel=function(u){_.Fx.prototype.JSC$10002_setLabel.call(this,u);return this};
HTa.prototype.addUploadMetadata=function(u,K){_.Fx.prototype.addUploadMetadata.call(this,u,K);return this};var Y4=function(){this.items_=[];this.opts={}},Mgw=function(u){switch(u){case "image-search":return new Vp;
case "maps":return new gO;case "photos":return new _.Ni;case "url":return new k4;case "video-search":return new ZC;case "web":return new HTa}return new _.Fx(u)};
Y4.prototype.addView=function(u){this.items_.push(typeof u==="string"?Mgw(u):u);return this};
var qPS=function(u){return"("+_.ZM(u.items_,function(K){return K.toString()}).join(",")+")"};
Y4.prototype.toString=function(){return qPS(this)};
Y4.prototype.getViews=function(u,K){K=K===void 0?[]:K;for(var l=this.items_,D=0;D<l.length;D++){var d=l[D];d instanceof Y4?d.getViews(u,K):d.getId()==u&&K.push(d)}return K};
Y4.prototype.getOptions=function(){return _.k$.clone(this.opts)};var mM=function(u){this.basePickerUrl_=u||"https://docs.google.com/picker";this.nav_=new Y4};
mM.prototype.nav_=null;mM.prototype.addView=function(u){this.nav_.addView(u);return this};
mM.prototype.getBaseUrl=function(){return this.basePickerUrl_};
mM.prototype.getViews=function(u){return this.nav_.getViews(u)};
_.$7S=function(u,K){u.callback_=K;return u};var nnA=new Map;nnA.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");nnA.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");nnA.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var r9a=new Set;r9a.add("application/vnd.google-apps.kix");r9a.add("application/vnd.google-apps.ritz");r9a.add("application/vnd.google-apps.punch");var RXN=function(u,K,l){var D=l&&_.A0(l,1);l=vnw(l);var d=u[0].getId();switch(_.h0(d,2)){case 13:return GBw(u,K,D,l);case 3:return tgH(u,K,D,l);case 10:return x7s(u,K,D,l);case 27:return x7s(u,K,D,l);case 12:return SPw(u,K);case 2:return bTB(u,K,D,l);case 5:return OTw(u,K,D,l);case 9:return c9w(u,K,D,l);case 6:return a_m(u,K,D,l);case 25:return zXH(u,K,D,l);case 1:return _.B8(u[0],hiN,26)?eXa(u,K,D,l):x7s(u,K,D,l);default:return{}}},a_m=function(u,K,l,D){u=u.map(function(d){return{id:d.getId().getId(),
serviceId:"youtube",name:d.getName(),description:_.A0(d,3),type:A5(d),lastEditedUtc:_.mpm(_.fV(d,_.Lz,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:d.getUrl(),embedUrl:_.A0(d,13),thumbnails:Xx(rx(d))}});
return{action:K,docs:u,viewToken:D,view:l||"youtube",v2Translated:!0}},bTB=function(u,K,l,D){var d=u.map(function(C){var W=C.getId().getId(),M=_.A0(C,7),q=C.getName(),v=A5(C),G=_.mpm(_.fV(C,_.Lz,12)).getTime(),t=C.getUrl(),x=Number(odo(C)),O=_.A0(C,3),a=_.A0(C,11),f=Xx(rx(C));
var B=_.fV(C,vW,21);B=_.k2(B,1);var p=_.fV(C,vW,21);p=_.A0(p,10);var V=_.A0(C,13);var m=_.fV(C,vW,21);m=_.k2(m,9);var Z=_.fV(C,vW,21);Z=_.A0(Z,11);W={id:W,serviceId:"docs",mimeType:M,name:q,type:v,lastEditedUtc:G,url:t,sizeBytes:x,description:O,iconUrl:a,thumbnails:f,isShared:B,downloadUrl:p,embedUrl:V,copyable:m,resourceKey:Z};M=_.fV(C,vW,21);_.k2(M,12)&&(W.uploadState="success",W.isNew=!0);M=_.fV(C,vW,21);_.B8(M,qe,3)&&(C=_.fV(C,vW,21),C=_.fV(C,qe,3),_.B8(C,HW,2)&&(M=Aq(C.getDuration().getSeconds()),
q=C.getDuration(),q=_.tq(q,2),W.duration=M+q/1E9),W.aspectRatio=C.getAspectRatio());return W});
return{action:K,docs:d,viewToken:D,view:l||"all",extraUserInputs:U7a(u),v2Translated:!0}},OTw=function(u,K,l,D){u=u.map(function(d){var C=_.fV(d,Ik0,15);
C=_.fV(C,Me,1);Pu(d,10,Me,C);return{id:d.getId().getId(),serviceId:"web",mimeType:_.A0(d,7),name:d.getName(),type:A5(d),url:d.getUrl(),description:_.A0(d,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Xx(rx(d))}});
return{action:K,docs:u,viewToken:D,view:l||"image-search",v2Translated:!0}},c9w=function(u,K,l,D){u=u.map(function(d){return{serviceId:"url",
name:rx(d)[0].getUrl().split("/").pop(),type:A5(d),mimeType:_.A0(d,7),url:d.getUrl(),description:_.A0(d,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Xx(rx(d))}});
return{action:K,docs:u,viewToken:D,view:l||"url",v2Translated:!0}},eXa=function(u,K,l,D){u=u.map(function(d){return{id:d.getId().getId(),
serviceId:"picasa",name:d.getName(),type:A5(d),description:_.A0(d,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Xx(rx(d))}});
return{action:K,docs:u,viewToken:D,view:l||"webcam",v2Translated:!0}},x7s=function(u,K,l,D){return{action:K,
docs:u.map(f_k),viewToken:D,view:QKk(l||"upload",u),extraUserInputs:U7a(u),v2Translated:!0}},QKk=function(u,K){return K.some(function(l){var D;
return((D=_.fV(l,$z,30))==null?void 0:_.h0(D,3))===9})?u+"/gmailphotos":u},tgH=function(u,K,l,D){var d=u.map(function(C){var W={id:C.getId().getId(),
serviceId:"picasa",mimeType:_.A0(C,7),name:C.getName(),type:A5(C),lastEditedUtc:_.mpm(_.fV(C,_.Lz,12)).getTime(),url:C.getUrl(),sizeBytes:Number(odo(C)),description:_.A0(C,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Xx(rx(C)),mediaKey:C.getId().getId(),parentId:_.A0(C,4)},M,q=(M=_.fV(C,uzk,18))==null?void 0:_.fV(M,L_S,3);q&&(W.latitude=Y2(q,1),W.longitude=Y2(q,2));var v;C=(v=_.fV(C,uzk,18))==null?void 0:ZO(v,6);v=C!=null?Aq(C):void 0;v&&(W.version=
v);return W});
return{action:K,docs:d,viewToken:D,view:l||"photos",extraUserInputs:U7a(u),v2Translated:!0}},GBw=function(u,K,l,D){u=u.map(function(d){return{id:d.getId().getId(),
serviceId:"et",name:rx(d)[0].getUrl().split("/").pop(),description:_.A0(d,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Xx(rx(d),"etjpg")}});
return{action:K,docs:u,viewToken:D,view:l||"et",v2Translated:!0}},zXH=function(u,K,l,D){u=u.map(function(d){var C=d.getId().getId(),W=D["2"];
return{id:C,serviceId:W.type!=="gmail_themes"&&W.parent==="6226252643674576769"?"picasa":"static_themes",name:d.getName(),mimeType:_.A0(d,7),type:A5(d),description:_.A0(d,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:d.getUrl(),embedUrl:d.getUrl(),thumbnails:Xx(rx(d))}});
return{action:K,docs:u,viewToken:D,view:l||"photos",v2Translated:!0}},SPw=function(u,K){u=u.map(function(l){var D=_.fV(l,Epw,27);
D=_.sS(D,1,_.wH,_.vO())[0];return{id:l.getId().getId(),serviceId:"contacts",mimeType:_.A0(l,7),name:l.getName(),description:_.A0(l,3),url:"mailto:"+D,thumbnail:[{url:_.A0(l,11)}],email:D}});
return{action:K,docs:u,view:"contacts",v2Translated:!0}},vnw=function(u){if(!u)return{};
var K=_.A0(u,3);K=K&&JSON.parse(K)||{};return{0:_.A0(u,1),1:_.A0(u,2),2:K}},Xx=function(u,K){K=K===void 0?"":K;
if(!u.length)return null;K=="etjpg"&&(u=u.filter(function(l){return l.getUrl().includes("w1200-h300")}));
return u.map(function(l){return{url:l.getUrl(),height:l.getHeight(),width:l.getWidth(),type:K}})},U7a=function(u){return{isAttachment:u.some(function(K){return _.k2(K,31)})}},f_k=function(u){var K,l={id:(K=u.getId())==null?void 0:K.getId(),
serviceId:PZH(u),mimeType:_.A0(u,7),name:u.getName(),type:A5(u),sizeBytes:Number(odo(u)),description:_.A0(u,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Xx(rx(u)),isNew:!0};if(K=_.fV(u,$z,30)){l.dataUrl=_.A0(K,1)||null;a:{var D=_.fV(u,$z,30);switch(_.h0(D,3)){case 9:D=_.uO(D,d9s,2,nJ);D={remoteRefs:D&&_.A0(D,1)};break a;case 10:case 15:D=_.uO(D,D9B,4,nJ);var d=rx(u);D={photo_id:D&&_.A0(D,1),media_key:u.getId().getId(),media_type:_.h0(u,6)===1?1:2,image_url:d&&
d[0].getUrl(),width:d&&String(d[0].getWidth()),height:d&&String(d[0].getHeight())};break a}D=null}l.uploadMetadata=D;l.uploadId=_.A0(K,9)||null;l.uploadState=J9w(K)||null}(D=K&&_.uO(K,D9B,4,nJ))&&(l.id=_.A0(D,1));(D=K&&_.uO(K,C5N,5,nJ))&&(l.contentId=_.A0(D,1));(D=K&&_.uO(K,KJk,7,nJ))&&(l.contentId=_.A0(D,1));(D=K&&_.uO(K,lk0,6,nJ))&&(l.contentId=_.A0(D,1));(K==null?void 0:_.h0(K,3))===1&&(l.mediaKey=u.getId().getId());return l},PZH=function(u){var K;
switch(((K=_.fV(u,$z,30))==null?void 0:_.h0(K,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},A5=function(u){switch(_.h0(u,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 _.A0(u,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},J9w=function(u){switch(u==null?void 0:_.h0(u,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 iTk,jKA,Bvs,pvS;_.Tvk=function(u,K){var l=K||{};K=l.document||document;var D=_.VS(u).toString(),d=(new gR(K)).createElement("SCRIPT"),C={script_:d,timeout_:void 0},W=new oM(jKA,C),M=null,q=l.timeout!=null?l.timeout:5E3;q>0&&(M=window.setTimeout(function(){Bvs(d,!0);W.errback(new pvS(1,"Timeout reached for loading script "+D))},q),C.timeout_=M);
d.onload=d.onreadystatechange=function(){d.readyState&&d.readyState!="loaded"&&d.readyState!="complete"||(Bvs(d,l.cleanupWhenDone||!1,M),W.callback(null))};
d.onerror=function(){Bvs(d,!0,M);W.errback(new pvS(0,"Error while loading script "+D))};
C=l.attributes||{};_.k$.extend(C,{type:"text/javascript",charset:"UTF-8"});V2k(d,C);_.$P(d,u);iTk(K).appendChild(d);return W};
iTk=function(u){var K=jb("HEAD",u);return K&&K.length!==0?K[0]:u.documentElement};
jKA=function(){if(this&&this.script_){var u=this.script_;u&&u.tagName=="SCRIPT"&&Bvs(u,!0,this.timeout_)}};
Bvs=function(u,K,l){l!=null&&_.lL.clearTimeout(l);u.onload=function(){};
u.onerror=function(){};
u.onreadystatechange=function(){};
K&&window.setTimeout(function(){_.Jq(u)},0)};
pvS=function(u,K){var l="Jsloader error (code #"+u+")";K&&(l+=": "+K);_.uL.call(this,l);this.code=u};
_.Sa(pvS,_.uL);var wvH=_.oj(["https://apis.google.com/js/api.js"]),Fgw=_.Oy(wvH),kBH=function(u,K){var l=!1,D=VgS(u,K).then(function(C){l=!0;return C}),d=_.$0w(5E3).then(function(){return l?VgS(u,K):gna(K).then(function(C){return NvA(C,u)})});
return lM2([D,d])},VgS=function(u,K){return ZT2(K).then(function(l){return NvA(l,u)})},NvA=function(u,K){var l=_.dq(K,"gapi.")?K.slice(5):K;
return u[l]?_.zA(u[l]):new _.RL(function(D,d){var C=kz(function(){d(Error("Ya"))},3E4);
u.load(K,{callback:function(){_.lL.clearTimeout(C);D(u[l])},
onerror:function(W){_.lL.clearTimeout(C);d(W)}})})},ZT2=function(u){return u.gapi&&u.gapi.load?_.zA(u.gapi):gna(u)},gna=function(u){return _.Tvk(Fgw,{document:u.document}).then(function(){return u.gapi})},YPw=function(){};
YPw.prototype.load=function(u,K){K=K===void 0?window:K;var l=Date.now();return kBH(u,K).then(function(D){var d=Date.now();return{library:D,loadStartMs:l,loadEndMs:d}},function(D){throw D instanceof Error?D:Error(String(D));
})};var Xvq=function(){_.TZ.call(this);this.gapiLoader_=new YPw;this.origin_=null;this.gapiPickerIframeResolver_=_.MX();this.gapiIframesResolver_=_.MX();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.c(Xvq,_.TZ);var A9a=function(u,K){var l=_.lZ("gapi.iframes",K);return l?(u=Date.now(),_.zA({library:l,loadStartMs:u,loadEndMs:u})):u.gapiLoader_.load("gapi.iframes",K)},Xvw=function(u,K,l,D,d,C){var W=!1;
W=W===void 0?!1:W;A9a(u,mp(K.ownerDocument)).then(function(M){var q=M.library;u.gapiIframesResolver_.resolve(q);M=u.gapiPickerIframeResolver_;var v=M.resolve,G=W;G=G===void 0?!1:G;var t={};t["host-message-handler"]=l;u.hostMessageHandlerInternal_=t;var x=_.lr(D);x=_.lr(x);x=_.G2(_.vN(_.rO(new _.W0,x.scheme_),x.JSC$9960_domain_),x.JSC$9960_port_).toString();u.origin_=x;x=(new MfS).setUrl(D);x.JSC$9975_obj_.where=K;x.JSC$9975_obj_.allowPost=G;x.JSC$9975_obj_.messageHandlers=t;G=_.lZ("makeWhiteListIframesFilter",
q)([u.origin_]);x.JSC$9975_obj_.messageHandlersFilter=G;d!=null&&(x.JSC$9975_obj_.id=d);C!=null&&(x.JSC$9975_obj_.rpctoken=C);G=H0R(x);G.JSC$9972_obj_.style={display:"block","min-width":"100%",width:"1px"};G.JSC$9972_obj_.height="100%";H0R(x).value().allow="camera 'src' "+u.origin_;q=q.getContext().openChild(x.value());v.call(M,q)},function(M){u.gapiIframesResolver_.reject(M);
u.gapiPickerIframeResolver_.reject(M)});
return u.gapiPickerIframeResolver_.promise},m7C=function(u,K){return _.gx([u.gapiIframesResolver_.promise,
u.gapiPickerIframeResolver_.promise]).then(function(l){var D=_.y(l);l=D.next().value;return(D=D.next().value)?D.send("picker-message-handler",K,void 0,_.lZ("makeWhiteListIframesFilter",l)([u.origin_])):_.YU(Error("Za"))})};
Xvq.prototype.disposeInternal=function(){hXB(this);_.TZ.prototype.disposeInternal.call(this)};
var hXB=function(u){u.gapiPickerIframeResolver_.promise.then(function(K){K&&(K.unregister("host-message-handler"),delete u.hostMessageHandlerInternal_["host-message-handler"])})};var En0=function(){this.JSC$10062_nextId=0};var uZw=function(u,K){switch(u.action){case "select-contacts":u=LgB(u.contacts);break;case "visibility":u=u.visible;var l=new t1;u=_.lO(l,1,7).setVisible(u);l={};l["iframe-command"]=u.serialize();u=l;break;default:u=null}return u?m7C(K,u):_.zA()},LgB=function(u){if(!u||u.length==0)return null;
var K=new t1;_.lO(K,1,11);var l=new En0;u.forEach(function(D){if(D.email){var d=new VW;d=_.oX(d,2,D.name?D.name:D.email);var C=new Epw;D=_.xpZ(C,1,_.iG,D.email,_.wH);D=_.jF(d,27,D);d=new XEw;C=":"+(l.JSC$10062_nextId++).toString(36);d=_.oX(d,1,C);d=_.lO(d,2,12);D=_.jF(D,1,d)}else D=null;D&&Pu(K,7,VW,D)});
u={};u["iframe-command"]=K.serialize();return u};_.K52=function(){if(OqL){var u=/Windows NT ([0-9.]+)/;return(u=u.exec(_.rq()))?u[1]:"0"}return _.bqr?(u=/1[0|1][_.][0-9_.]+/,(u=u.exec(_.rq()))?u[0].replace(/_/g,"."):"10"):iew?(u=/Android\s+([^\);]+)(\)|;)/,(u=u.exec(_.rq()))?u[1]:""):azR||zGo||eGL?(u=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(u=u.exec(_.rq()))?u[1].replace(/_/g,"."):""):""}();var mm;mm=function(u){return(u=u.exec(_.rq()))?u[1]:""};
_.lqs=function(){if(_.Uf)return mm(/Firefox\/([0-9.]+)/);if(_.aj||Mh||tq9)return j0L;if(_.f3){if(_.jr()||_.$wn()){var u=mm(/CriOS\/([0-9.]+)/);if(u)return u}return mm(/Chrome\/([0-9.]+)/)}if(_.LT&&!_.jr())return mm(/Version\/([0-9.]+)/);if(ChH||IJr){if(u=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.rq()))return u[1]+"."+u[2]}else if(wCH)return(u=mm(/Android\s+([0-9.]+)/))?u:mm(/Version\/([0-9.]+)/);return""}();var Dhk=function(){};
_.t0(Dhk);Dhk.prototype.nextId_=0;_.h5=function(u){return":"+(u.nextId_++).toString(36)};var Eg=function(u){_.wx.call(this);this.JSC$10070_dom_=u||iQ();this.JSC$10070_id_=null;this.inDocument_=!1;this.JSC$10070_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Sa(Eg,_.wx);Eg.prototype.idGenerator_=Dhk.getInstance();Eg.prototype.getId=function(){return this.JSC$10070_id_||(this.JSC$10070_id_=_.h5(this.idGenerator_))};
Eg.prototype.getElement=function(){return this.JSC$10070_element_};
var LX=function(u){u.googUiComponentHandler_||(u.googUiComponentHandler_=new _.tC(u));return u.googUiComponentHandler_},dha=function(u,K){if(u==K)throw Error("$a");
var l;if(l=K&&u.parent_&&u.JSC$10070_id_){l=u.parent_;var D=u.JSC$10070_id_;l=l.childIndex_&&D?_.k$.get(l.childIndex_,D)||null:null}if(l&&u.parent_!=K)throw Error("$a");u.parent_=K;Eg.superClass_.setParentEventTarget.call(u,K)};
Eg.prototype.setParentEventTarget=function(u){if(this.parent_&&this.parent_!=u)throw Error("ab");Eg.superClass_.setParentEventTarget.call(this,u)};
Eg.prototype.JSC$10072_createDom=function(){this.JSC$10070_element_=this.JSC$10070_dom_.createElement("DIV")};
Eg.prototype.render=function(u){CnS(this,u)};
var CnS=function(u,K,l){if(u.inDocument_)throw Error("bb");u.JSC$10070_element_||u.JSC$10072_createDom();K?K.insertBefore(u.JSC$10070_element_,l||null):u.JSC$10070_dom_.JSC$9252_document_.body.appendChild(u.JSC$10070_element_);u.parent_&&!u.parent_.inDocument_||u.enterDocument()};
_.I=Eg.prototype;_.I.decorate=function(u){if(this.inDocument_)throw Error("bb");if(u&&this.canDecorate(u)){this.wasDecorated_=!0;var K=_.hO(u);this.JSC$10070_dom_&&this.JSC$10070_dom_.JSC$9252_document_==K||(this.JSC$10070_dom_=iQ(u));this.decorateInternal(u);this.enterDocument()}else throw Error("cb");};
_.I.canDecorate=function(){return!0};
_.I.decorateInternal=function(u){this.JSC$10070_element_=u};
_.I.enterDocument=function(){this.inDocument_=!0;Iqm(this,function(u){!u.inDocument_&&u.getElement()&&u.enterDocument()})};
_.I.exitDocument=function(){Iqm(this,function(u){u.inDocument_&&u.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.I.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);Iqm(this,function(u){u.dispose()});
!this.wasDecorated_&&this.JSC$10070_element_&&_.Jq(this.JSC$10070_element_);this.parent_=this.model_=this.JSC$10070_element_=this.childIndex_=this.children_=null;Eg.superClass_.disposeInternal.call(this)};
_.I.getModel=function(){return this.model_};
_.I.addChild=function(u,K){var l=this.children_?this.children_.length:0;if(u.inDocument_&&(K||!this.inDocument_))throw Error("bb");if(l<0||l>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);u.parent_==this?(_.k$.set(this.childIndex_,u.getId(),u),_.AH(this.children_,u)):_.k$.add(this.childIndex_,u.getId(),u);dha(u,this);_.xwy(this.children_,l,0,u);u.inDocument_&&this.inDocument_&&u.parent_==this?(K=this.getContentElement(),
(K.childNodes[l]||null)!=u.getElement()&&(u.getElement().parentElement==K&&K.removeChild(u.getElement()),l=K.childNodes[l]||null,K.insertBefore(u.getElement(),l))):K?(this.JSC$10070_element_||this.JSC$10072_createDom(),l=this.children_?this.children_[l+1]||null:null,CnS(u,this.getContentElement(),l?l.JSC$10070_element_:null)):this.inDocument_&&!u.inDocument_&&u.JSC$10070_element_&&u.JSC$10070_element_.parentNode&&u.JSC$10070_element_.parentNode.nodeType==1&&u.enterDocument()};
_.I.getContentElement=function(){return this.JSC$10070_element_};
var Iqm=function(u,K){u.children_&&u.children_.forEach(K,void 0)};
Eg.prototype.removeChild=function(u,K){if(u){var l=typeof u==="string"?u:u.getId();u=this.childIndex_&&l?_.k$.get(this.childIndex_,l)||null:null;l&&u&&(_.k$.remove(this.childIndex_,l),_.AH(this.children_,u),K&&(u.exitDocument(),u.JSC$10070_element_&&_.Jq(u.JSC$10070_element_)),dha(u,null))}if(!u)throw Error("eb");return u};_.Sa(wvq,TvL);_.Sa(Fgh,TvL);var yPm;_.k$.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var s$0=function(u,K){K?u.setAttribute("role",K):u.removeAttribute("role")},uH=function(u,K,l){Array.isArray(l)&&(l=l.join(" "));
var D="aria-"+K;l===""||l==void 0?(yPm||(l={},yPm=(l.atomic=!1,l.autocomplete="none",l.dropeffect="none",l.haspopup=!1,l.live="off",l.multiline=!1,l.multiselectable=!1,l.orientation="vertical",l.readonly=!1,l.relevant="additions text",l.required=!1,l.sort="none",l.busy=!1,l.disabled=!1,l.hidden=!1,l.invalid="false",l)),l=yPm,K in l?u.setAttribute(D,l[K]):u.removeAttribute(D)):u.setAttribute(D,l)};var oLC;_.Ke=function(u,K,l){_.wx.call(this);this.target=u;this.handle=K||u;this.limits=l||new u4(NaN,NaN,NaN,NaN);this.JSC$10075_document_=_.hO(u);this.JSC$10075_eventHandler_=new _.tC(this);_.eb(this,this.JSC$10075_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;_.kU(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=oLC};
_.Sa(_.Ke,_.wx);oLC=_.lL.document&&_.lL.document.documentElement&&!!_.lL.document.documentElement.setCapture&&!!_.lL.document.releaseCapture;_.W5A=function(u,K){u.hysteresisDistanceSquared_=Math.pow(K,2)};
_.I=_.Ke.prototype;_.I.setEnabled=function(u){this.enabled_=u};
_.I.disposeInternal=function(){_.Ke.superClass_.disposeInternal.call(this);_.TY(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10075_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10075_document_.releaseCapture();this.handle=this.target=null};
_.I.startDrag=function(u){var K=u.type=="mousedown";if(!this.enabled_||this.dragging_||K&&(u.event_.button!=0||_.bqr&&u.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new lH("start",this,u.clientX,u.clientY,u)))this.dragging_=!0,K&&u.preventDefault();else return;else K&&u.preventDefault();K=this.JSC$10075_document_;var l=K.documentElement,D=!this.useSetCapture_;this.JSC$10075_eventHandler_.listen(K,["touchmove","mousemove"],this.handleMove_,
{capture:D,passive:!1});this.JSC$10075_eventHandler_.listen(K,["touchend","mouseup"],this.endDrag,D);this.useSetCapture_?(l.setCapture(!1),this.JSC$10075_eventHandler_.listen(l,"losecapture",this.endDrag)):this.JSC$10075_eventHandler_.listen(mp(K),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10075_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,D);this.clientX=this.startX=u.clientX;this.clientY=this.startY=u.clientY;this.screenX=u.screenX;this.screenY=u.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=pS(iQ(this.JSC$10075_document_))}};
_.I.endDrag=function(u,K){this.JSC$10075_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10075_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new lH("end",this,u.clientX,u.clientY,u,HUR(this,this.deltaX),MGa(this,this.deltaY),K||u.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.I.handleMove_=function(u){if(this.enabled_){var K=u.clientX-this.clientX,l=u.clientY-this.clientY;this.clientX=u.clientX;this.clientY=u.clientY;this.screenX=u.screenX;this.screenY=u.screenY;if(!this.dragging_){var D=this.startX-this.clientX,d=this.startY-this.clientY;if(D*D+d*d>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new lH("start",this,u.clientX,u.clientY,u)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(u);return}}l=qvC(this,K,l);K=l.x;l=l.y;this.dragging_&&this.dispatchEvent(new lH("beforedrag",
this,u.clientX,u.clientY,u,K,l))&&($hH(this,u,K,l),u.preventDefault())}};
var qvC=function(u,K,l){var D=pS(iQ(u.JSC$10075_document_));K+=D.x-u.pageScroll.x;l+=D.y-u.pageScroll.y;u.pageScroll=D;u.deltaX+=K;u.deltaY+=l;return new _.XB(HUR(u,u.deltaX),MGa(u,u.deltaY))};
_.Ke.prototype.onScroll_=function(u){var K=qvC(this,0,0);u.clientX=this.clientX;u.clientY=this.clientY;$hH(this,u,K.x,K.y)};
var $hH=function(u,K,l,D){u.target.style.left=l+"px";u.target.style.top=D+"px";u.dispatchEvent(new lH("drag",u,K.clientX,K.clientY,K,l,D))},HUR=function(u,K){var l=u.limits;
u=isNaN(l.left)?null:l.left;l=isNaN(l.width)?0:l.width;return Math.min(u!=null?u+l:Infinity,Math.max(u!=null?u:-Infinity,K))},MGa=function(u,K){var l=u.limits;
u=isNaN(l.top)?null:l.top;l=isNaN(l.height)?0:l.height;return Math.min(u!=null?u+l:Infinity,Math.max(u!=null?u:-Infinity,K))};
_.Ke.prototype.isDragging=function(){return this.dragging_};
var lH=function(u,K,l,D,d,C,W){_.j3.call(this,u);this.clientX=l;this.clientY=D;this.browserEvent=d;this.left=C!==void 0?C:K.deltaX;this.top=W!==void 0?W:K.deltaY};
_.Sa(lH,_.j3);var Dw=function(u){this.JSC$10082_map_=new Map;var K=arguments.length;if(K>1){if(K%2)throw Error("ka");for(var l=0;l<K;l+=2)this.set(arguments[l],arguments[l+1])}else u&&this.addAll(u)};
_.I=Dw.prototype;_.I.getCount=function(){return this.JSC$10082_map_.size};
_.I.getValues=function(){return Array.from(this.JSC$10082_map_.values())};
_.I.getKeys=function(){return Array.from(this.JSC$10082_map_.keys())};
_.I.containsKey=function(u){return this.JSC$10082_map_.has(u)};
_.I.containsValue=function(u){return this.getValues().some(function(K){return K==u})};
_.I.equals=function(u,K){var l=this;K=K===void 0?function(D,d){return D===d}:K;
return this===u?!0:this.JSC$10082_map_.size!=u.getCount()?!1:this.getKeys().every(function(D){return K(l.JSC$10082_map_.get(D),u.get(D))})};
_.I.isEmpty=function(){return this.JSC$10082_map_.size==0};
_.I.clear=function(){this.JSC$10082_map_.clear()};
_.I.remove=function(u){return this.JSC$10082_map_.delete(u)};
_.I.get=function(u,K){return this.JSC$10082_map_.has(u)?this.JSC$10082_map_.get(u):K};
_.I.set=function(u,K){this.JSC$10082_map_.set(u,K);return this};
_.I.addAll=function(u){if(u instanceof Dw){u=_.y(u.JSC$10082_map_);for(var K=u.next();!K.done;K=u.next()){var l=_.y(K.value);K=l.next().value;l=l.next().value;this.JSC$10082_map_.set(K,l)}}else if(u)for(u=_.y(Object.entries(u)),K=u.next();!K.done;K=u.next())l=_.y(K.value),K=l.next().value,l=l.next().value,this.JSC$10082_map_.set(K,l)};
_.I.forEach=function(u,K){var l=this;K=K===void 0?this:K;this.JSC$10082_map_.forEach(function(D,d){return u.call(K,D,d,l)})};
_.I.clone=function(){return new Dw(this)};(function(){for(var u=["ms","moz","webkit","o"],K,l=0;K=u[l]&&!_.lL.requestAnimationFrame;++l)_.lL.requestAnimationFrame=_.lL[K+"RequestAnimationFrame"],_.lL.cancelAnimationFrame=_.lL[K+"CancelAnimationFrame"]||_.lL[K+"CancelRequestAnimationFrame"];if(!_.lL.requestAnimationFrame){var D=0;_.lL.requestAnimationFrame=function(d){var C=(new Date).getTime(),W=Math.max(0,16-(C-D));D=C+W;return _.lL.setTimeout(function(){d(C+W)},W)};
_.lL.cancelAnimationFrame||(_.lL.cancelAnimationFrame=function(d){clearTimeout(d)})}})();
var nLR=[[],[]],rPH=0,vLa=!1,G_N=0,xhw=function(u,K){var l=G_N++,D={measureTask:{id:l,fn:u.measure,context:K},mutateTask:{id:l,fn:u.mutate,context:K},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(D.args||(D.args=[]),D.args.length=0,D.args.push.apply(D.args,arguments),D.args.push(D.state)):D.args&&D.args.length!=0?(D.args[0]=D.state,D.args.length=1):D.args=[D.state];D.isScheduled||(D.isScheduled=!0,nLR[rPH].push(D));vLa||(vLa=!0,window.requestAnimationFrame(tGs))}},tGs=
function(){vLa=!1;
var u=nLR[rPH],K=u.length;rPH=(rPH+1)%2;for(var l,D=0;D<K;++D){l=u[D];var d=l.measureTask;l.isScheduled=!1;d.fn&&d.fn.apply(d.context,l.args)}for(D=0;D<K;++D)l=u[D],d=l.mutateTask,l.isScheduled=!1,d.fn&&d.fn.apply(d.context,l.args),l.state={};u.length=0};var Sva=_.oj(["about:blank"]),bU2=_.oj(["javascript:undefined"]),OUH=_.Oy(Sva);_.VS(OUH);var cPw=_.Oy(bU2);_.VS(cPw);var d3=function(u){_.wx.call(this);this.JSC$10088_element_=u;this.listenKeyIn_=_.kU(this.JSC$10088_element_,"focus",this,!0);this.listenKeyOut_=_.kU(this.JSC$10088_element_,"blur",this,!0)};
_.Sa(d3,_.wx);d3.prototype.handleEvent=function(u){var K=new _.BW(u.event_);K.type=u.type=="focusin"||u.type=="focus"?"focusin":"focusout";this.dispatchEvent(K)};
d3.prototype.disposeInternal=function(){d3.superClass_.disposeInternal.call(this);V2(this.listenKeyIn_);V2(this.listenKeyOut_);delete this.JSC$10088_element_};var aq0=function(u,K){this.JSC$10091_element_=u;this.JSC$10091_dom_=K};var Ce=function(u,K){Eg.call(this,K);this.useIframeMask_=!!u;this.lastFocus_=null;this.resizeBackgroundTask_=xhw({mutate:this.resizeBackground_},this);xhw({mutate:this.updateModalAndBackground_},this)};
_.Sa(Ce,Eg);_.I=Ce.prototype;_.I.focusHandler_=null;_.I.visible_=!1;_.I.bgEl_=null;_.I.bgIframeEl_=null;_.I.tabCatcherElement_=null;_.I.backwardTabWrapInProgress_=!1;_.I.getCssClass=function(){return"goog-modalpopup"};
_.I.getBackgroundElement=function(){return this.bgEl_};
_.I.JSC$10072_createDom=function(){Ce.superClass_.JSC$10072_createDom.call(this);var u=this.getElement(),K=qw(this.getCssClass()).split(" ");yp(u,K);u.tabIndex=0;_.CI(u,!1);zJw(this);eJH(this)};
var zJw=function(u){if(u.useIframeMask_&&!u.bgIframeEl_){var K=u.JSC$10070_dom_.JSC$9254_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.yg(K,OUH);u.bgIframeEl_=K;u.bgIframeEl_.className=u.getCssClass()+"-bg";_.CI(u.bgIframeEl_,!1);vpm(u.bgIframeEl_,0)}u.bgEl_||(u.bgEl_=u.JSC$10070_dom_.JSC$9254_createDom("DIV",u.getCssClass()+"-bg"),_.CI(u.bgEl_,!1))},eJH=function(u){u.tabCatcherElement_||(u.tabCatcherElement_=u.JSC$10070_dom_.createElement("SPAN"),_.CI(u.tabCatcherElement_,
!1),u.tabCatcherElement_.tabIndex=0,u.tabCatcherElement_.style.position="absolute")};
_.I=Ce.prototype;_.I.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.I.canDecorate=function(u){return!!u&&u.tagName=="DIV"};
_.I.decorateInternal=function(u){Ce.superClass_.decorateInternal.call(this,u);u=qw(this.getCssClass()).split(" ");yp(this.getElement(),u);zJw(this);eJH(this);this.getElement().tabIndex=0;_.CI(this.getElement(),!1)};
_.I.enterDocument=function(){this.bgIframeEl_&&_.mI(this.bgIframeEl_,this.getElement());_.mI(this.bgEl_,this.getElement());Ce.superClass_.enterDocument.call(this);_.hy(this.tabCatcherElement_,this.getElement());this.focusHandler_=new d3(this.JSC$10070_dom_.JSC$9252_document_);LX(this).listen(this.focusHandler_,"focusin",this.onFocus);RJC(this,!1)};
_.I.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.qt(this.focusHandler_);Ce.superClass_.exitDocument.call(this);_.Jq(this.bgIframeEl_);_.Jq(this.bgEl_);_.Jq(this.tabCatcherElement_)};
_.I.setVisible=function(u){if(u!=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_&&RJC(this,u),u){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10070_dom_.JSC$9252_document_.activeElement}catch(d){}this.updateModalAndBackground_();LX(this).listen(this.JSC$10070_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10070_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);Uhm(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)Fu(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){LX(this).unlisten(this.JSC$10070_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10070_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)Fu(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var K=this.JSC$10070_dom_,l=K.JSC$9252_document_.body,D=K.JSC$9252_document_.activeElement||l;if(!this.lastFocus_||this.lastFocus_==l){this.lastFocus_=null;break a}(D==l||K.contains(this.getElement(),D))&&this.lastFocus_.focus()}catch(d){}this.lastFocus_=
null}}};
var RJC=function(u,K){u.modalAriaVisibilityHelper_||(u.modalAriaVisibilityHelper_=new aq0(u.JSC$10070_element_,u.JSC$10070_dom_));u=u.modalAriaVisibilityHelper_;if(K){u.hiddenElements_||(u.hiddenElements_=[]);K=u.JSC$10091_dom_.getChildren(u.JSC$10091_dom_.JSC$9252_document_.body);for(var l=0;l<K.length;l++){var D=K[l],d;if(d=D!=u.JSC$10091_element_)d=D.getAttribute("aria-hidden"),d=!(d==null||d==void 0?0:String(d));d&&(uH(D,"hidden",!0),u.hiddenElements_.push(D))}}else if(u.hiddenElements_){for(K=
0;K<u.hiddenElements_.length;K++)u.hiddenElements_[K].removeAttribute("aria-hidden");u.hiddenElements_=null}};
Ce.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var Uhm=function(u,K){u.bgIframeEl_&&_.CI(u.bgIframeEl_,K);u.bgEl_&&_.CI(u.bgEl_,K);_.CI(u.getElement(),K);_.CI(u.tabCatcherElement_,K)};
_.I=Ce.prototype;_.I.onShow=function(){this.dispatchEvent("show")};
_.I.onHide=function(){Uhm(this,!1);this.dispatchEvent("hide")};
_.I.isVisible=function(){return this.visible_};
_.I.focus=function(){this.focusElement_()};
_.I.resizeBackground_=function(){this.bgIframeEl_&&_.CI(this.bgIframeEl_,!1);this.bgEl_&&_.CI(this.bgEl_,!1);var u=this.JSC$10070_dom_.JSC$9252_document_;var K=_.BK(mp(this.JSC$10070_dom_.JSC$9252_document_)||window);var l=Math.max(K.width,Math.max(u.body.scrollWidth,u.documentElement.scrollWidth));u=Math.max(K.height,Math.max(u.body.scrollHeight,u.documentElement.scrollHeight));this.bgIframeEl_&&(_.CI(this.bgIframeEl_,!0),_.qo0(this.bgIframeEl_,l,u));this.bgEl_&&(_.CI(this.bgEl_,!0),_.qo0(this.bgEl_,
l,u))};
_.I.reposition=function(){var u;if(_.Mkw(this.getElement())=="fixed")var K=u=0;else K=pS(this.JSC$10070_dom_),u=K.x,K=K.y;var l=np0(this.getElement());var D=_.BK(mp(this.JSC$10070_dom_.JSC$9252_document_)||window);u=Math.max(u+D.width/2-l.width/2,0);K=Math.max(K+D.height/2-l.height/2,0);DV(this.getElement(),u,K);DV(this.tabCatcherElement_,u,K)};
_.I.onFocus=function(u){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():u.target==this.tabCatcherElement_&&kz(this.focusElement_,0,this)};
_.I.focusElement_=function(){try{this.getElement().focus()}catch(u){}};
_.I.disposeInternal=function(){_.qt(this.popupShowTransition_);this.popupShowTransition_=null;_.qt(this.popupHideTransition_);this.popupHideTransition_=null;_.qt(this.bgShowTransition_);this.bgShowTransition_=null;_.qt(this.bgHideTransition_);this.bgHideTransition_=null;Ce.superClass_.disposeInternal.call(this)};var Xd=function(u,K,l){Ce.call(this,K,l);this.JSC$10101_class_=u||"modal-dialog";this.buttons_=(new Ih).addButton(fqB,!0).addButton(Q$0,!1,!0)};
_.Sa(Xd,Ce);_.I=Xd.prototype;_.I.escapeToCancel_=!0;_.I.hasTitleCloseButton_=!0;_.I.modal_=!0;_.I.draggable_=!0;_.I.backgroundElementOpacity_=.5;_.I.title_="";_.I.JSC$10103_dragger_=null;_.I.JSC$10103_disposeOnHide_=!1;_.I.titleEl_=null;_.I.titleTextEl_=null;_.I.titleTextId_=null;_.I.titleCloseEl_=null;_.I.contentEl_=null;_.I.buttonEl_=null;_.I.getCssClass=function(){return this.JSC$10101_class_};
_.I.setTitle=function(u){this.title_=u;this.titleTextEl_&&_.La(this.titleTextEl_,u)};
_.I.getTitle=function(){return this.title_};
_.I.getContent=function(){return""};
_.I.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var PnA=function(u){u.getElement()||u.render();return u.getElement()};
Xd.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Xd.superClass_.getBackgroundElement.call(this)};
var JPw=function(u,K){u.backgroundElementOpacity_=K;u.getElement()&&(K=u.getBackgroundElement())&&vpm(K,u.backgroundElementOpacity_)};
Xd.prototype.setDraggable=function(u){this.draggable_=u;j$k(this,u&&this.inDocument_)};
Xd.prototype.JSC$10103_handleDrag=function(){};
var j$k=function(u,K){var l=qw(u.JSC$10101_class_+"-title-draggable").split(" ");u.getElement()&&(K?yp(u.titleEl_,l):sZk(u.titleEl_,l));K&&!u.JSC$10103_dragger_?(K=new _.Ke(u.getElement(),u.titleEl_),u.JSC$10103_dragger_=K,yp(u.titleEl_,l),_.kU(u.JSC$10103_dragger_,"start",u.setDraggerLimits_,!1,u),_.kU(u.JSC$10103_dragger_,"drag",u.JSC$10103_handleDrag,!1,u)):!K&&u.JSC$10103_dragger_&&(u.JSC$10103_dragger_.dispose(),u.JSC$10103_dragger_=null)};
_.I=Xd.prototype;
_.I.JSC$10072_createDom=function(){Xd.superClass_.JSC$10072_createDom.call(this);var u=this.getElement(),K=this.JSC$10070_dom_;this.titleTextId_=this.getId();var l=this.getId()+".contentEl";this.titleEl_=K.JSC$9254_createDom("DIV",this.JSC$10101_class_+"-title",this.titleTextEl_=K.JSC$9254_createDom("SPAN",{className:this.JSC$10101_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=K.JSC$9254_createDom("SPAN",this.JSC$10101_class_+"-title-close"));YBS(u,this.titleEl_,this.contentEl_=
K.JSC$9254_createDom("DIV",{className:this.JSC$10101_class_+"-content",id:l}),this.buttonEl_=K.JSC$9254_createDom("DIV",this.JSC$10101_class_+"-buttons"));s$0(this.titleTextEl_,"heading");s$0(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;uH(this.titleCloseEl_,"label","Close");s$0(u,"dialog");uH(u,"labelledby",this.titleTextId_||"");_.CI(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(u=this.buttons_,u.JSC$10104_element_=this.buttonEl_,u.render());_.CI(this.buttonEl_,!!this.buttons_);
JPw(this,this.backgroundElementOpacity_)};
_.I.decorateInternal=function(u){Xd.superClass_.decorateInternal.call(this,u);u=this.getElement();var K=this.JSC$10101_class_+"-content";this.contentEl_=Nb(document,null,K,u)[0];this.contentEl_||(this.contentEl_=this.JSC$10070_dom_.JSC$9254_createDom("DIV",K),u.appendChild(this.contentEl_));K=this.JSC$10101_class_+"-title";var l=this.JSC$10101_class_+"-title-text",D=this.JSC$10101_class_+"-title-close";(this.titleEl_=Nb(document,null,K,u)[0])?(this.titleTextEl_=Nb(document,null,l,this.titleEl_)[0],
this.titleCloseEl_=Nb(document,null,D,this.titleEl_)[0]):(this.titleEl_=this.JSC$10070_dom_.JSC$9254_createDom("DIV",K),u.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=yE0(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Z0("SPAN",{className:l,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;uH(u,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10070_dom_.JSC$9254_createDom("SPAN",D),this.titleEl_.appendChild(this.titleCloseEl_));_.CI(this.titleCloseEl_,this.hasTitleCloseButton_);K=this.JSC$10101_class_+"-buttons";(this.buttonEl_=Nb(document,null,K,u)[0])?(this.buttons_=new Ih(this.JSC$10070_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10070_dom_.JSC$9254_createDom("DIV",K),u.appendChild(this.buttonEl_),this.buttons_&&(u=this.buttons_,u.JSC$10104_element_=this.buttonEl_,u.render()),_.CI(this.buttonEl_,
!!this.buttons_));JPw(this,this.backgroundElementOpacity_)};
_.I.enterDocument=function(){Xd.superClass_.enterDocument.call(this);LX(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);LX(this).listen(this.buttonEl_,"click",this.onButtonClick_);j$k(this,this.draggable_);LX(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var u=this.getElement();s$0(u,"dialog");this.titleTextEl_.id!==""&&uH(u,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){u=this.JSC$10070_dom_;
var K=this.getBackgroundElement();u.removeNode(this.bgIframeEl_);u.removeNode(K)}this.isVisible()&&RJC(this,!1)}};
_.I.exitDocument=function(){this.isVisible()&&this.setVisible(!1);j$k(this,!1);Xd.superClass_.exitDocument.call(this)};
_.I.setVisible=function(u){u!=this.isVisible()&&(this.inDocument_||this.render(),Xd.superClass_.setVisible.call(this,u))};
_.I.onShow=function(){Xd.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.I.onHide=function(){Xd.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10103_disposeOnHide_&&this.dispose()};
_.I.setDraggerLimits_=function(){var u=this.JSC$10070_dom_.JSC$9252_document_,K=_.BK(mp(u)||window),l=Math.max(u.body.scrollWidth,K.width);u=Math.max(u.body.scrollHeight,K.height);var D=np0(this.getElement());_.Mkw(this.getElement())=="fixed"?this.JSC$10103_dragger_.limits=new u4(0,0,Math.max(0,K.width-D.width),Math.max(0,K.height-D.height)):this.JSC$10103_dragger_.limits=new u4(0,0,l-D.width,u-D.height)};
_.I.onTitleCloseClick_=function(){BlA(this)};
var BlA=function(u){if(u.hasTitleCloseButton_){var K=u.buttons_,l=K&&K.cancelButton_;l?(K=K.get(l),u.dispatchEvent(new yT(l,K))&&u.setVisible(!1)):u.setVisible(!1)}},pAs=function(u){u.hasTitleCloseButton_=!1;
u.titleCloseEl_&&_.CI(u.titleCloseEl_,u.hasTitleCloseButton_)};
Xd.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Xd.superClass_.disposeInternal.call(this)};
Xd.prototype.onButtonClick_=function(u){a:{for(u=u.target;u!=null&&u!=this.buttonEl_;){if(u.tagName=="BUTTON")break a;u=u.parentNode}u=null}if(u&&!u.disabled){u=u.name;var K=this.buttons_.get(u);this.dispatchEvent(new yT(u,K))&&this.setVisible(!1)}};
Xd.prototype.onKey_=function(u){var K=!1,l=!1,D=this.buttons_,d=u.target;if(u.type=="keydown")if(this.escapeToCancel_&&u.keyCode==27){var C=D&&D.cancelButton_;d=d.tagName=="SELECT"&&!d.disabled;C&&!d?(l=!0,K=D.get(C),K=this.dispatchEvent(new yT(C,K))):d||(K=!0)}else{if(u.keyCode==9&&u.shiftKey&&d==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(G){}kz(this.resetBackwardTabWrap_,0,this)}}else if(u.keyCode==13){if(d.tagName=="BUTTON"&&!d.disabled)C=d.name;
else if(d==this.titleCloseEl_)BlA(this);else if(D){var W=D.defaultButton_,M;if(M=W)a:{M=jb("BUTTON",D.JSC$10104_element_);for(var q,v=0;q=M[v];v++)if(q.name==W||q.id==W){M=q;break a}M=null}d=(d.tagName=="TEXTAREA"||d.tagName=="SELECT"||d.tagName=="A")&&!d.disabled;!M||M.disabled||d||(C=W)}C&&D&&(l=!0,K=this.dispatchEvent(new yT(C,String(D.get(C)))))}else d!=this.titleCloseEl_||u.keyCode!=32&&u.key!=" "||BlA(this);if(K||l)u.stopPropagation(),u.preventDefault();K&&this.setVisible(!1)};
var yT=function(u,K){this.type="dialogselect";this.key=u;this.caption=K};
_.Sa(yT,_.j3);var Ih=function(u){Dw.call(this);u||iQ();this.cancelButton_=this.JSC$10104_element_=this.defaultButton_=null};
_.Sa(Ih,Dw);_.I=Ih.prototype;_.I.clear=function(){Dw.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.I.set=function(u,K,l,D){Dw.prototype.set.call(this,u,K);l&&(this.defaultButton_=u);D&&(this.cancelButton_=u);return this};
_.I.addButton=function(u,K,l){return this.set(u.key,u.caption,K,l)};
_.I.render=function(){if(this.JSC$10104_element_){_.nH(this.JSC$10104_element_,LgZ);var u=iQ(this.JSC$10104_element_);this.forEach(function(K,l){K=u.JSC$9254_createDom("BUTTON",{name:l},K);l==this.defaultButton_&&(K.className="goog-buttonset-default");this.JSC$10104_element_.appendChild(K)},this)}};
_.I.decorate=function(u){if(u&&u.nodeType==1){this.JSC$10104_element_=u;u=jb("BUTTON",this.JSC$10104_element_);for(var K,l,D,d=0;K=u[d];d++)if(l=K.name||K.id,D=yE0(K)||K.value,l){var C=d==0;this.set(l,D,C,K.name=="cancel");C&&_.rY(K,"goog-buttonset-default")}}};
_.I.getElement=function(){return this.JSC$10104_element_};
var fqB={key:"ok",caption:"OK"},Q$0={key:"cancel",caption:"Cancel"},iUs={key:"yes",caption:"Yes"},TlR={key:"no",caption:"No"},wAS={key:"save",caption:"Save"},F5R={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Ih).addButton(fqB,!0,!0),(new Ih).addButton(fqB,!0).addButton(Q$0,!1,!0),(new Ih).addButton(iUs,!0).addButton(TlR,!1,!0),(new Ih).addButton(iUs).addButton(TlR,!0).addButton(Q$0,!1,!0),(new Ih).addButton(F5R).addButton(wAS).addButton(Q$0,!0,!0));_.Sa(Vgw,Xd);_.Sa(gno,mM);var VGH=_.oj(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),gLa=_.oj(["//apis.google.com/js/rpc.js"]),Eny=_.Oy(VGH),hXZ=_.Oy(gLa),kBq=null;var hq=function(u,K){_.wx.call(this);this.JSC$10113_element_=u;u=_.Mm(this.JSC$10113_element_)?this.JSC$10113_element_:this.JSC$10113_element_?this.JSC$10113_element_.body:null;this.isRtl_=!!u&&_.G60(u);this.listenKey_=_.kU(this.JSC$10113_element_,_.zR?"DOMMouseScroll":"mousewheel",this,K)};
_.Sa(hq,_.wx);hq.prototype.handleEvent=function(u){var K=0,l=0,D=u.event_;D.type=="mousewheel"?(u=NlH(-D.wheelDelta),D.wheelDeltaX!==void 0?(K=NlH(-D.wheelDeltaX),l=NlH(-D.wheelDeltaY)):l=u):(u=D.detail,u>100?u=3:u<-100&&(u=-3),D.axis!==void 0&&D.axis===D.HORIZONTAL_AXIS?K=u:l=u);typeof this.maxDeltaX_==="number"&&(K=_.mz(K,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(l=_.mz(l,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(K=-K);K=new k_R(u,D,K,l);this.dispatchEvent(K)};
var NlH=function(u){return _.ea&&(_.bqr||c4r)&&u%40!=0?u:u/40};
hq.prototype.disposeInternal=function(){hq.superClass_.disposeInternal.call(this);V2(this.listenKey_);this.listenKey_=null};
var k_R=function(u,K,l,D){_.BW.call(this,K);this.type="mousewheel";this.detail=u;this.deltaX=l;this.deltaY=D};
_.Sa(k_R,_.BW);_.vU=function(u){var K="instance_";if(u.instance_&&u.hasOwnProperty(K))return u.instance_;K=new u;return u.instance_=K};var m7R;var ZUN=_.oj(["https://about:blank"]),Yvs=_.oj(['javascript:""']),AP0=_.oj(["about:blank"]);_.Sa(IZ,Vgw);_.I=IZ.prototype;_.I.JSC$10121_url_="";_.I.JSC$10121_iframe_=null;_.I.iframeLoaded_=!1;_.I.loadedFired_=!1;_.I.callback_=function(){};
_.I.enterDocument=function(){IZ.superClass_.enterDocument.call(this);A9b(this.getBackgroundElement(),LX(this))};
_.I.render=function(u){var K=this;IZ.superClass_.render.call(this,u);this.useGapi_?A9a(this.iframeManager_,window).then(function(){return XAw(K)}).then(null,function(){K.callback_({action:"error"})}):mhB(this)};
var XAw=function(u){var K=u.JSC$10070_dom_.JSC$9254_createDom("div",["picker-dialog-content","picker-frame"]);_.CI(K,!1);u.getContentElement().appendChild(K);return Xvw(u.iframeManager_,K,function(l){var D=MFk(l["iframe-command"]);switch(D.getCommand()){case 1:l=u.callback_;D=_.fV(D,GY,2);var d="";switch(D.getStatus()){case 2:d="cancel";break;case 1:d="picked";break;case 3:d="error"}var C=_.rB(D,VW,2,_.vO(XCb));D=C.length===0?{action:d}:RXN(C,d,_.fV(D,ou0,7));l.call(u,D);u.setVisible(!1);break;case 4:pAs(u);
u.callback_({action:"loaded"});break;case 7:case 8:l=u.callback_;a:{d=D.getCommand();C=_.fV(D,GY,2);switch(d){case 7:d="uploadScheduled";break;case 8:d="uploadStateChange";break;default:D={};break a}D=_.rB(C,VW,2,_.vO(XCb));if(D.length===0)D={action:d};else{var W=_.fV(C,ou0,7);C=W&&_.A0(W,1);W=vnw(W);D=x7s(D,d,C,W)}}l.call(u,D)}},u.JSC$10121_url_,u.targetId_,u.rpcToken_).then(function(l){u.JSC$10121_iframe_=l.getIframeEl();
hJs(u);_.CI(u.JSC$10121_iframe_.parentElement,!0);_.rY(u.getElement(),"picker-dialog");ELH(u);return l})},mhB=function(u){u.JSC$10121_iframe_=u.JSC$10070_dom_.JSC$9254_createDom("IFRAME",{id:u.targetId_,
name:u.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.yg(u.JSC$10121_iframe_,L5a(u));_.rY(u.getElement(),"picker-dialog");u.getContentElement().appendChild(u.JSC$10121_iframe_);LX(u).listen(u.JSC$10121_iframe_,"load",function(){return void hJs(u)});
u.JSC$10121_iframe_.src=u.JSC$10121_url_;ELH(u)},K0N=function(u){ums(u,(0,_.wB)(function(K){K.setAuthToken(this.targetId_,this.rpcToken_)},u))},ELH=function(u){var K=_.D7(_.lr(u.JSC$10121_url_),"title");
K&&u.setTitle(K)},L5a=function(u){return _.H9R("Internet Explorer")>=7&&_.dq(u.JSC$10121_url_,"https")?_.Oy(ZUN):_.aj?_.Oy(Yvs):_.Oy(AP0)},hJs=function(u){K0N(u);
u.iframeLoaded_=!0;u.JSC$10121_iframe_.tabIndex=0;u.isVisible()&&u.focus()};
IZ.prototype.handleKeydown_=function(u){u.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),u.stopPropagation(),u.preventDefault())};
var ums=function(u,K){var l=u.JSC$10119_gadgetsDomHelper_;ZTr(function(){K(l.getWindow().gadgets.rpc)},l)};
IZ.prototype.setUrl=function(u){u=_.dp(new _.W0(u),"rpcService",this.targetId_);_.dp(u,"rpctoken",this.rpcToken_);_.bA(u,"rpctoken="+this.rpcToken_);_.rO(u,"https");this.JSC$10121_url_=u.toString();this.JSC$10121_iframe_&&(this.JSC$10121_iframe_.src=this.JSC$10121_url_)};
var lss=function(u,K){u.callback_=K;ums(u,(0,_.wB)(function(l){l.register(this.targetId_,(0,_.wB)(this.handlePickerAction_,this))},u))};
IZ.prototype.handlePickerAction_=function(u){var K=u.action;K=="loaded"&&(this.loadedFired_=!0,DmC(this,new Fgh(this.isVisible())),dmH(this),pAs(this),LX(this).unlisten(this.JSC$10070_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10121_iframe_.tabIndex=0);K!="picked"&&K!="cancel"||this.setVisible(!1);this.callback_(u)};
var dmH=function(u){u.JSC$10121_appId_&&DmC(u,new wvq(u.JSC$10121_appId_,window.location.protocol+"//"+window.location.host))};
IZ.prototype.setRelayUrl=function(u){ums(this,(0,_.wB)(function(K){K.setRelayUrl(this.targetId_,u)},this))};
var DmC=function(u,K){u.useGapi_&&uZw(K,u.iframeManager_).then(null,function(){u.callback_({action:"error"})});
ums(u,(0,_.wB)(function(l){l.call(this.targetId_,"picker",null,K)},u))};
IZ.prototype.resizePicker_=function(){var u=mp(this.JSC$10070_dom_.JSC$9252_document_)||window;if(_.D7(_.lr(this.JSC$10121_url_),"ignoreLimits")=="true")u=new _.jA(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.D7(_.lr(this.JSC$10121_url_),"shadeDialog")=="true"){var K=PnA(this);K=tkA(K);var l=_.BK(u);u=l.width-80;l=l.height-40;K&&(u-=K.left?K.left:0,u-=K.right?K.right:0,l-=K.top?K.top:0,l-=K.bottom?K.bottom:0);u=new _.jA(u>0?u:0,l>0?l:0)}else(K=this.preferredDialogWidth_)?(K=Math.max(320,
Math.min(1051,K)),(l=this.preferredDialogHeight_)||(l=_.BK(u).height*.85),l=Math.max(480,Math.min(650,l))):(K=_.BK(u),l=K.width*.618,l=l<K.height?Math.round(Math.max(480,Math.min(650,l*.85))):Math.round(Math.max(480,Math.min(650,K.height*.85))),K=Math.round(l/.618)),u=_.BK(u),K=Math.min(K,Math.max(u.width,320)),l=Math.min(l,Math.max(u.height,480)),u=new _.jA(K,l);_.qo0(this.getContentElement(),u);this.reposition()};
IZ.prototype.reposition=function(){if(_.D7(_.lr(this.JSC$10121_url_),"shadeDialog")=="true"){var u=np0(this.getElement()),K=_.BK(this.JSC$10070_dom_.getWindow());u=Math.floor(K.width/2-u.width/2);K=PnA(this);if(K=tkA(K)){var l=K.left?K.left:0;l+=K.right?K.right:0;u=Math.floor(u-l/2)}u=u>0?u:0;K=pS(this.JSC$10070_dom_).y;DV(this.getElement(),u,K)}else IZ.superClass_.reposition.call(this)};
IZ.prototype.setVisible=function(u){if(u!=this.isVisible()&&this.autoSizeDialog_){var K=this.JSC$10070_dom_.getWindow();u?(this.resizePicker_(),LX(this).listen(K,"resize",this.resizePicker_),this.iframeLoaded_||LX(this).listen(K,"keydown",this.handleKeydown_)):(LX(this).unlisten(K,"resize",this.resizePicker_),this.iframeLoaded_||LX(this).unlisten(K,"keydown",this.handleKeydown_))}IZ.superClass_.setVisible.call(this,u);DmC(this,new Fgh(u))};
IZ.prototype.focus=function(){IZ.superClass_.focus.call(this);if(this.JSC$10121_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10121_iframe_.focus()}catch(u){}};var A_=function(u,K){K=K===void 0?IZ:K;mM.call(this,u);this.pickerConstructor=K;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(u=window.location.origin)||(u=window.location.protocol+"//"+window.location.host);u&&this.urlParamMap_.set("origin",u);this.postProcessors_=[]};
_.c(A_,gno);A_.prototype.JSC$10126_disposeOnHide_=!1;
A_.prototype.build=function(){this.JSC$10027_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10027_appId_);this.getRelayUrl()||this.setRelayUrl(_.x4(_.bA(_.SS(_.lr(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var u=new this.pickerConstructor(CPB(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);u.JSC$10103_disposeOnHide_=this.JSC$10126_disposeOnHide_;
u.JSC$10121_appId_=this.JSC$10027_appId_;u.loadedFired_&&dmH(u);lss(u,this.callback_);return u};
var IsN=function(u){u.urlParamMap_.set("multiselectEnabled","true");return u};
_.I=A_.prototype;_.I.getHeight=function(){return this.dialogHeight_};
_.I.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.I.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.I.getTitle=function(){return this.urlParamMap_.get("title")};
_.I.getWidth=function(){return this.dialogWidth_};
var yVs=function(u){u.JSC$10126_disposeOnHide_=void 0;return u};
A_.prototype.setRelayUrl=function(u){this.urlParamMap_.set("parent",u);return this};
var sLw=function(u,K){u.urlParamMap_.set("selectButtonLabel",K);return u};
A_.prototype.setSize=function(u,K){this.dialogWidth_=u;this.dialogHeight_=K;return this};
A_.prototype.setTitle=function(u){this.urlParamMap_.set("title",u);return this};
var CPB=function(u){u.postProcessors_.length&&u.urlParamMap_.set("pp",JSON.stringify(u.postProcessors_));u.urlParamMap_.set("nav",qPS(u.nav_));var K=new _.W0(u.getBaseUrl());u.urlParamMap_.forEach(function(l,D){_.dp(K,D,l)});
return K};var HpR=function(u,K){u.name!==void 0?(this.name=u.name,this.code=oER[u.name]):(this.code=u=u.code,this.name=W0A(u));_.uL.call(this,Uww("%s %s",this.name,K))};
_.Sa(HpR,_.uL);var W0A=function(u){var K=_.k$.findKey(oER,function(l){return u==l});
if(K===void 0)throw Error("hb`"+u);return K},sc={},oER=(sc.AbortError=3,sc.EncodingError=5,sc.InvalidModificationError=9,sc.InvalidStateError=7,sc.NotFoundError=1,sc.NotReadableError=4,sc.NoModificationAllowedError=6,sc.PathExistsError=12,sc.QuotaExceededError=10,sc.SecurityError=2,sc.SyntaxError=8,sc.TypeMismatchError=11,sc);var MHa=function(u,K){_.j3.call(this,u.type,K);this.event_=u};
_.Sa(MHa,_.j3);var q5A=function(u,K,l){l===void 0&&(l=u.size);return u.slice?u.slice(K,l):null};var K5r=new WeakMap,uZh=function(u,K){u=[u];for(var l=K.length-1;l>=0;--l)u.push(typeof K[l],K[l]);return u.join("\v")};_.DhL(function(){if(!_.lL.Blob)return!1;var u=new Uint8Array(100);try{var K=new Blob([u])}catch(l){return!1}return K.size!=100?!1:!0});
var $mA=_.DhL(function(){if(!_.lL.Blob)return!1;var u=new Uint8Array(100);try{var K=new Blob([u])}catch(l){return!1}return q5A(K,0,1)===null?!1:!0});_.lL.U3bHHf!=null||(_.lL.U3bHHf=0);_.lL.U3bHHf++;var dho={};var W$=void 0;var Iqn=Symbol("qb");var xhh=Mo("WizInjectionContext_Dispatcher");var vV=Symbol("rb");var U3=function(){this.afterRenderCallbacks=null},P09=Symbol("sb"),BV=function(u){this.props=u;
this.__unmounted=!1};
BV.prototype.didPatch=function(){};
BV.prototype.didMount=function(){};
BV.prototype.didUnmount=function(){};
BV.prototype.didUpdate=function(){};var nLH=Mo("WizInjectionContext_RootElement");var vLb=Mo("WizInjectionContext_AppContext"),rPq=Mo("WizInjectionContext_ModelRootElement"),G_q=Mo("WizInjectionContext_RendererData"),tG9=Mo("WizInjectionContext_InjectingConstructor"),$hq=Mo("WizInjectionContext_AsyncDeps"),Svo={};var eJq=!1;var Q$y={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:r4y,enableLazyTsx:vZq,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:nZq,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var $T=Object.assign({},{attributes:{},handleError:function(u){throw u;}},Q$y);var nEB=Symbol("wb"),fI=Symbol("xb"),S5y=Symbol("yb"),tHq=Symbol("zb"),Rab=ZA(function(u){return nI(u)&&nEB in u});var TlH=Symbol("Ab"),oh={},pA9=(oh[TlH]=!0,oh.debugName="[component]",oh.getComponentStack=function(){for(var u=[],K=this;K;)wAw(K)&&u.push(K.debugName),K=K.parent;return u},oh.registerSignal=function(){},oh.registerEffect=function(){},oh);var rp=null,Gd=!1,Nlq=1,S9=Symbol("Bb"),e9={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 WP=Symbol("Cb"),HP=Symbol("Db"),xT=Symbol("Eb"),ELq=Object.assign({},e9,{value:WP,dirty:!0,error:null,equal:F5H,kind:"computed",producerMustRecompute:function(u){return u.value===WP||u.value===HP},
producerRecomputeValue:function(u){if(u.value===HP)throw Error("Z");var K=u.value;u.value=HP;var l=XAq(u),D=!1;try{var d=u.computation();v$(null);D=K!==WP&&K!==xT&&d!==xT&&u.equal(K,d)}catch(C){d=xT,u.error=C}finally{hJ9(u,l)}D?u.value=K:(u.value=d,u.version++)}});var ls9=function(){throw Error();};var dmq=null,um9=Object.assign({},e9,{equal:F5H,value:void 0,kind:"signal"});Object.assign({},e9,{value:WP,dirty:!0,error:null,equal:F5H,kind:"linkedSignal",producerMustRecompute:function(u){return u.value===WP||u.value===HP},
producerRecomputeValue:function(u){if(u.value===HP)throw Error("Z");var K=u.value;u.value=HP;var l=XAq(u);try{var D=u.source();var d=u.computation(D,K===WP||K===xT?void 0:{source:u.sourceValue,value:K});u.sourceValue=D}catch(C){d=xT,u.error=C}finally{hJ9(u,l)}K!==WP&&d!==xT&&u.equal(K,d)?u.value=K:(u.value=d,u.version++)}});Object.assign({},e9,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(u){u.schedule!==null&&u.schedule(u.ref)},
hasRun:!1,cleanupFn:function(){}});var Isq=Symbol("Fb"),c$=Symbol("Gb");var aZ=Array.isArray;var nEZ;var rVB={},vEq=$mH(Object.assign({},{consumerAllowSignalWrites:!0},rVB)),QI=$mH(Object.assign({},{consumerAllowSignalWrites:!0},rVB));var Q5=0,P$=!1,M2=function(){this.queue=new Set};
M2.prototype.remove=function(u){this.queue.delete(u)};
M2.prototype.clear=function(){this.queue.clear()};
var vEH=function(){M2.apply(this,arguments)};
_.c(vEH,M2);vEH.prototype.schedule=function(u){this.queue.add(u)};
vEH.prototype.flush=function(){if(this.queue.size){P$=!0;try{for(var u=_.y(this.queue),K=u.next();!K.done;K=u.next()){var l=K.value;this.queue.delete(l);try{l.run()}catch(D){GrA(D)}}}finally{P$=!1}}};
var tHH=new vEH,q2=function(){M2.apply(this,arguments)};
_.c(q2,M2);var xm0=function(){q2.apply(this,arguments)};
_.c(xm0,q2);xm0.prototype.schedule=function(u){u.hasRun?this.queue.add(u):u.run()};
xm0.prototype.flush=function(){if(this.queue.size)if($T.flushRenderEffectsDuringRender){var u=this.queue;this.queue=new Set;UmL(u)}else UmL(this.queue)};
var GrH=new xm0,S50=function(){q2.apply(this,arguments)};
_.c(S50,q2);S50.prototype.schedule=function(u){var K=this;return _.H(function(l){if(l.nextAddress==1)return u.hasRun?l.jumpTo(2):l.yield(Promise.resolve(),3);if(l.nextAddress!=2)return u.run(),l.return();K.queue.add(u);_.TG(l)})};
S50.prototype.flush=function(){var u=this;return _.H(function(K){if(K.nextAddress==1)return u.queue.size?K.yield(Promise.resolve(),2):K.return();UmL(u.queue);_.TG(K)})};
var bpq=new S50,bpw=function(){q2.apply(this,arguments)};
_.c(bpw,q2);bpw.prototype.schedule=function(u){this.queue.add(u)};
bpw.prototype.flush=function(){this.queue.size&&UmL(this.queue)};
var xmy=new bpw,zaH=[GrH,tHH,xmy,bpq],OpS=[GrH,xmy,bpq],cVq=[];dmq=function(){ear();for(var u=_.y(cVq),K=u.next();!K.done;K=u.next())K=K.value,K()};
var GrA=DH;var pI=Symbol("Lb");var B$=null,PPH,JVZ=null,jLn;var $v={},cVN=Object.assign({},e9,($v[nEB]=!0,$v.effectType=fI,$v.isResettableContext=!0,$v.hasRun=!1,$v.effectFn=null,$v.consumerIsAlwaysLive=!0,$v.consumerAllowSignalWrites=!0,$v.consumerMarkedDirty=Opw,$v.kind="effect",$v.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Gd)throw Error("Mb");this.dirty=!1;if(!this.hasRun||k_H(this)){this.hasRun=!0;qvR(this);var u=_.H$(this),K=XAq(this);JPq("effectRun",this.debugName);try{V5(this.effectFn,this.componentStack,this)}catch(l){throw $T.enableContextBasedComponentStacks&&
FL(l),l;}finally{j$L("effectRun",this.debugName),hJ9(this,K),_.H$(u)}}}},$v.componentStack=void 0,$v.debugName="[effect]",$v[Symbol.dispose]=function(){if(tg(this))for(var u=this.producers;u!==void 0;)u=mhZ(u);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;u=_.y(OpS);for(var K=u.next();!K.done;K=u.next())K.value.remove(this);MGb(this)},$v));var ipq=Object.assign({},cVN,{effectType:S5y});var T2q=Symbol("Nb");var wuL=Object.assign({},cVN,{effectType:fI});var xPy=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 gEZ={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},VHL=
{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}]}},nzh={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},Zp9=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],kro={"*":{async:1,dir:0,loading:2,target:3}};var asa=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,ne={},AVh=(ne[1]=null,ne[2]=function(u,K){return K instanceof dm?IS(K):hX.toString()},ne[3]=function(u,K){return Zk(K)?_.Yu(K):asa.test(String(K))?String(K):hX.toString()},ne[4]=function(u,K){return K instanceof wb?_.VS(K):hX.toString()},ne[5]=function(u,K){return String(K)},ne[7]=null,ne[8]=null,ne[10]=null,ne);var i1H=Symbol("Qb");var acR=function(u){var K=zaR,l=u,D="",d="",C=1;u<0&&(u=-u);if(u===Infinity)u=(Infinity*Math.sign(l)).toString();else{for(var W=0;W<ea2.length;W++){var M=ea2[W];C=K[M];if(u>=C||C<=1&&u>.1*C){D=M;break}}D?(D+="B",d=" "):C=1;u=Math.round(l/C*10)/10+d+D}return u},ea2="Y Z E P T G M K  m u n".split(" "),zaR={"":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};_.Raa=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 O3={};RegExp.prototype.hasOwnProperty("sticky");var bir=function(u){u=String(u);for(var K=function(D,d,C){for(var W=Math.min(d.length-C,D.length),M=0;M<W;M++){var q=d[C+M];if(D[M]!==("A"<=q&&q<="Z"?q.toLowerCase():q))return!1}return!0},l=0;(l=u.indexOf("<",l))!=-1;){if(K("\x3c/script",u,l)||K("\x3c!--",u,l))return"zSoyz";
l+=1}return u};var LI={default:"__default"};var u3L=Object.prototype.hasOwnProperty;haZ.prototype=Object.create(null);var qP=DPH();var WV=null;var $Pq=function(u){this.created=[];this.deleted=[];this.node=u};var nfL=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var u=this,K=u;u;)K=u,u=u.parentNode;return K};var Cyo=function(u,K){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=u;this.key=K;this.text=void 0};var DY=null,di=null,K0=null,IE=null,WYq=[],ofb=yph,s3=[],oE=[],pJh=function(u){return rp9(function(K,l,D){K0=di=K;di=null;l(D);s9R(null);di=K0;K0=K0.parentNode;return K},u)}(),BEh=function(u){return rp9(function(K,l,D){var d={nextSibling:K};
di=d;l(D);K0&&s9R(K.nextSibling);return d===di?null:di},u)}();var HV=[],G9Z=0;var M_=new haZ;var Xu=new haZ;var Umk=DPH(),ahy=Umk[LI.default],cp9=Umk.style,S6r=["focusin","focusout"],R5n="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var Hnq=function(){},uXh=function(){},rCb=function(){},qWr=function(){};var ri=Symbol("Xb");var Jpr,PyR=Q9h;var z1=Symbol("Yb");var nrR=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(" ")),
$Nn=new Set(["a","font","script","style","title"]);var aE={setUp:Y6y,tearDown:Y6y,log:Y6y,logNodeRange:Y6y,graft:function(u,K){K()}};var PV={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var J8=null,jf=function(u,K){BV.call(this,u);var l=this;this.functionComponent=K;this.hooks=[];this.hookCounter=0;this.disposeEffects=kT(function(D){l.effectContext=D;_.No(function(){dNq(l,l.el)})},$T.alwaysTrackContexts||!!W$)};
_.c(jf,BV);jf.prototype.render=function(u){var K=J8;J8=this;this.hookCounter=0;var l=v$(QI),D=_.H$(this.effectContext);try{return JPq("render",this.componentName),this.functionComponent(u)}finally{j$L("render",this.componentName),_.H$(D),v$(l),J8=K}};
_.MN.Object.defineProperties(jf.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return fsZ(this.functionComponent)}}});var vrb=Symbol("lc"),orq=function(u,K,l){this.afterRenderCallbacks=null;this.kind=u;this.props=K;this.children=l};
_.c(orq,U3);orq.prototype.render=function(){var u=sNo(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var K=_.y(this.afterRenderCallbacks),l=K.next();!l.done;l=K.next())l=l.value,u=l(u);return u};
orq.prototype.getChildren=function(){return this.children};var tRh=[];ls9=function(u){throw Error("pb`"+u.debugName);};
(function(){var u=WV;WV=function(K){u==null||u(K);xN9(K)}})();var fsB=new WeakMap,QLR=0;var PPA=void 0,JVB={},jLm=new WeakMap,wny={getComponent:function(u){if(u.hasAttribute("ng-version"))return JVB;if(!u.__wizComponent)return null;u=u.__wizComponent;jLm.set(u.propsAndState,u);return u.propsAndState},
getDirectiveMetadata:function(u){if(u===JVB)return{framework:"wiz",name:"<Root>",props:{}};u=jLm.get(u);if(!u)throw Error("mc");return{framework:"wiz",name:u.name,props:Object.fromEntries(Object.keys(u.props).map(function(K){return[K,K]}))}},
"\u0275setProfiler":function(u){var K;(K=PPA)==null||K();PPA=aso(function(){u(2)})},
getInjector:function(u){return u.__wizComponent},
"\u0275getSignalGraph":function(u){var K;u=(K=u.effects)!=null?K:[];var l=SWq(u),D=Array.from(l.keys());K=[];u=[];for(var d=new Map,C=0;C<D.length;C++)d.set(D[C],C);l=_.y(l.entries());for(D=l.next();!D.done;D=l.next()){C=_.y(D.value);D=C.next().value;var W=C.next().value;C=D;D=d.get(C);var M=fsB.get(C);M||(M=QLR.toString(),fsB.set(C,M),QLR++);var q=void 0,v=(q=C.debugName)!=null?q:"";q=v.startsWith("[signal]")?v:v.replace(/@.+/,"");if(C.kind==="computed"){v=C.computation;var G=void 0;K.push({label:q,
value:C.value,kind:C.kind,epoch:C.version,debuggableFn:(G=v.userFn)!=null?G:v,id:M})}else if(C.kind==="signal")K.push({label:q,value:C.value,kind:C.kind,epoch:C.version,id:M});else if(C.kind==="effect"){G=void 0;v=(G=C.effectFn)!=null?G:void 0;var t=G=void 0;K.push({label:q,kind:C.kind,epoch:C.version,debuggableFn:(t=(G=v)==null?void 0:G.userFn)!=null?t:v,id:M})}else K.push({label:q,kind:C.kind,epoch:C.version,id:M});C=_.y(W);for(W=C.next();!W.done;W=C.next())u.push({consumer:D,producer:d.get(W.value)})}return{nodes:K,
edges:u}},
isSignal:function(u){return typeof u==="function"&&u[S9]!==void 0}};Object.assign({},cVN,{effectType:fI,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var u=this.elementRef;var K;u.element!=null||(u.element=(K=u.document.getElementById(u.value))!=null?K:void 0);u=u.element;for(K=this.attributes;K;){var l=K.signal();l!==K.prevValue&&(K.prevValue=l,xPy.has(K.name)?En(u,K.name,l?"":null):En(u,K.name,l));K=K.next}}});Object.assign({},cVN,{effectType:fI,hasRun:!0});_.r.debugName="RlDudd";var bny={nonNullableCondIsNull:function(){return Error("sc")}};var RSR=function(){this.map=new Map};
RSR.prototype.push=function(u,K){var l=this.map;l.has(u)&&(this.multi||(this.multi=new Map),this.multi.set(K,l.get(u)));l.set(u,K)};
RSR.prototype.pop=function(u){var K=this.map,l=K.get(u),D;l!==void 0&&((D=this.multi)==null?0:D.has(l))?(K.set(u,this.multi.get(l)),this.multi.delete(l)):K.delete(u);return l};_.p0.debugName="nsTGHd";_.ic.debugName="tbhMcf";_.Fp.debugName="zyMFzb";_.VI.debugName="vI1rtf";_.jNn={OUT_OF_ORDER_HOOK_CALL:function(u){return Error("tc`"+u)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("uc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("vc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("wc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(u,K){return Error("xc`"+((K===void 0?0:K)?"IDOM":"Reactive")+"`"+u)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(u,K){return Error("yc`"+u+"`"+K)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(u){return Error("zc`"+u)},
USE_ELEMENT_NOT_ASSIGNED:function(u){return Error("Ac`"+String(u))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(u){return Error("Bc`"+String(u))}};Jpr=WqL;var grR=Symbol("Cc");l89({beforeRender:function(u){var K=_.H$(u.effectContext);try{var l;((l=u.__syncEffects)==null?0:l.length)&&kSn(u.__syncEffects)}finally{_.H$(K)}},
didPatch:function(u){var K=_.H$(u.effectContext);try{var l;((l=u.__syncEffects)==null?0:l.length)&&kSn(u.__syncEffects)}finally{_.H$(K)}},
didUnmount:function(u){var K;((K=u.hooks)==null?0:K.length)&&u.hooks.forEach(NMr)}});var B2m,pum,ipN;B2m=_.lL.window;_.mT=(B2m==null?void 0:(pum=B2m.yt)==null?void 0:pum.config_)||(B2m==null?void 0:(ipN=B2m.ytcfg)==null?void 0:ipN.data_)||{};_.$L("yt.config_",_.mT);var T2N={},X_b=[];_.wv=function(u){var K=_.uY.apply(1,arguments);var l=Error.call(this,u);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.args=[].concat(_.Am(K));Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(_.wv,Error);var hYo=function(u,K,l){this.actionName=u;this.optionalAction=K===void 0?!1:K;this.args=l===void 0?null:l;this.returnValue=[]};_.r3=function(u){this.name=u};_.ly=new _.r3("signalAction");var IyZ=/^[\w.]*$/,uin={q:!0,search_query:!0},LqR=String(ErH);var vP;vP=Symbol("Dc");_.G$=function(u){this.name=u};
_.G$.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var ysL=function(u){this.key=u},Wfb=function(u){this.deferredKey=u},osH=function(){var u=this;
this.providers=new Map;this.JSC$10383_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(u.providers)}}};
osH.prototype.addProvider=function(u){this.providers.set(u.provide,u);var K=this.JSC$10383_deferred.get(u.provide);if(K)try{K.resolver(this.resolve(u.provide))}catch(l){K.rejector(l)}};
osH.prototype.resolve=function(u){return u instanceof Wfb?wuk(this,u):u instanceof ysL?F0w(this,u.key,[],!0):F0w(this,u,[])};
var wuk=function(u,K){K=K.deferredKey;if(u.JSC$10383_deferred.has(K))return u.JSC$10383_deferred.get(K).promise;var l={};l.promise=new Promise(function(D,d){l.resolver=D;l.rejector=d});
u.JSC$10383_deferred.set(K,l);return l.promise},F0w=function(u,K,l,D){D=D===void 0?!1:D;
if(l.indexOf(K)>-1)throw Error("Ec`"+K);if(u.cachedValues.has(K))return u.cachedValues.get(K);if(!u.providers.has(K)){if(D)return;throw Error("Fc`"+K);}D=u.providers.get(K);l.push(K);if(D.useValue!==void 0)var d=D.useValue;else if(D.useFactory)d=D[vP]?VHk(u,D[vP],l):[],d=D.useFactory.apply(D,_.Am(d));else if(D.useClass){d=D.useClass;var C=d[vP]?VHk(u,d[vP],l):[];d=new (Function.prototype.bind.apply(d,[null].concat(_.Am(C))))}else throw Error("Gc`"+K);l.pop();D.skipCache||u.cachedValues.set(K,d);return d},
VHk=function(u,K,l){return K?K.map(function(D){return D instanceof ysL?F0w(u,D.key,l,!0):F0w(u,D,l)}):[]};var syq;var Dh=new _.G$("ENDPOINT_HANDLER_TOKEN");_.d_=new _.r3("urlEndpoint");var gEB=function(){this.data=[];this.cachedPackedInt52=-1};
gEB.prototype.set=function(u,K){K=K===void 0?!0:K;0<=u&&u<52&&Number.isInteger(u)&&this.data[u]!==K&&(this.data[u]=K,this.cachedPackedInt52=-1)};
gEB.prototype.get=function(u){return!!this.data[u]};
var N2a=function(u){u.cachedPackedInt52===-1&&(u.cachedPackedInt52=u.data.reduce(function(K,l,D){return K+(l?Math.pow(2,D):0)},0));
return u.cachedPackedInt52};var csq=function(u){var K=kra;u=u===void 0?_.lZ("yt.ads.biscotti.lastId_")||"":u;var l=Object,D=l.assign,d={};d.dt=VbH;d.flash="0";a:{try{var C=K.JSC$10388_win_.top.location.href}catch(C9){C=2;break a}C=C?C===K.doc_.location.href?0:1:2}d=(d.frm=C,d);try{d.u_tz=-(new Date).getTimezoneOffset();try{var W=dO.history.length}catch(C9){W=0}d.u_his=W;var M;d.u_h=(M=dO.screen)==null?void 0:M.height;var q;d.u_w=(q=dO.screen)==null?void 0:q.width;var v;d.u_ah=(v=dO.screen)==null?void 0:v.availHeight;var G;d.u_aw=
(G=dO.screen)==null?void 0:G.availWidth;var t;d.u_cd=(t=dO.screen)==null?void 0:t.colorDepth}catch(C9){}W=K.JSC$10388_win_;try{var x=W.screenX;var O=W.screenY}catch(C9){}try{var a=W.outerWidth;var f=W.outerHeight}catch(C9){}try{var B=W.innerWidth;var p=W.innerHeight}catch(C9){}try{var V=W.screenLeft;var m=W.screenTop}catch(C9){}try{B=W.innerWidth,p=W.innerHeight}catch(C9){}try{var Z=W.screen.availWidth;var A=W.screen.availTop}catch(C9){}x=[V,m,x,O,Z,A,a,f,B,p];O=XKy(!1,K.JSC$10388_win_.top);a={};
var h=h===void 0?_.lL:h;f=new gEB;"SVGElement"in h&&"createElementNS"in h.document&&f.set(0);B=BNw();B["allow-top-navigation-by-user-activation"]&&f.set(1);B["allow-popups-to-escape-sandbox"]&&f.set(2);h.crypto&&h.crypto.subtle&&f.set(3);"TextDecoder"in h&&"TextEncoder"in h&&f.set(4);h=N2a(f);K=(a.bc=h,a.bih=O.height,a.biw=O.width,a.brdim=x.join(),a.vis=V9H(K.doc_),a.wgl=!!dO.WebGLRenderingContext,a);l=D.call(l,d,K);l.ca_type="image";u&&(l.bid=u);return l},kra=new function(){var u=window.document;
this.JSC$10388_win_=window;this.doc_=u};
_.$L("yt.ads_.signals_.getAdSignalsString",function(u){return Kfq(csq(u))});_.x2();navigator.userAgent.indexOf(" (CrKey ");var nsh="XMLHttpRequest"in _.lL?function(){return new XMLHttpRequest}:null;var Zps="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Y5a=[].concat(_.Am(Zps),["client_dev_set_cookie"]);var ONr={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"},GAb="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(_.Am(Zps)),Jsn=!1,xBq=_.ayo,fyr=bNr;var DXy=[{messageFn:function(u){return"Cannot read property '"+u.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(u){return"Cannot call '"+u.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(u){return u.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var AVw={messageWeights:[],callbackWeights:[{callback:iNL,weight:500},{callback:Tdn,weight:500}]};var Xum=function(){this.callbackWeights=[];this.messageWeights=[]},mm2,lab=function(){if(!mm2){var u=mm2=new Xum;
u.messageWeights.length=0;u.callbackWeights.length=0;WOq(u,AVw)}return mm2},WOq=function(u,K){K.messageWeights&&u.messageWeights.push.apply(u.messageWeights,K.messageWeights);
K.callbackWeights&&u.callbackWeights.push.apply(u.callbackWeights,K.callbackWeights)};_.Sa(_.Qx,_.TZ);_.Qx.prototype.subscribe=function(u,K,l){var D=this.topics_[u];D||(D=this.topics_[u]=[]);var d=this.JSC$10412_key_;this.subscriptions_[d]=u;this.subscriptions_[d+1]=K;this.subscriptions_[d+2]=l;this.JSC$10412_key_=d+3;D.push(d);return d};
var haB=function(u){var K=yKR,l=!1,D=K.subscribe("handleError",function(d){l||(l=!0,this.unsubscribeByKey(D),u.apply(void 0,arguments))},K)};
_.Qx.prototype.unsubscribe=function(u,K,l){if(u=this.topics_[u]){var D=this.subscriptions_;if(u=u.find(function(d){return D[d+1]==K&&D[d+2]==l}))return this.unsubscribeByKey(u)}return!1};
_.Qx.prototype.unsubscribeByKey=function(u){var K=this.subscriptions_[u];if(K){var l=this.topics_[K];this.publishDepth_!=0?(this.pendingKeys_.push(u),this.subscriptions_[u+1]=function(){}):(l&&_.AH(l,u),delete this.subscriptions_[u],delete this.subscriptions_[u+1],delete this.subscriptions_[u+2])}return!!K};
_.Qx.prototype.publish=function(u,K){var l=this.topics_[u];if(l){var D=Array(arguments.length-1),d=arguments.length,C;for(C=1;C<d;C++)D[C-1]=arguments[C];if(this.async_)for(C=0;C<l.length;C++)d=l[C],EEa(this.subscriptions_[d+1],this.subscriptions_[d+2],D);else{this.publishDepth_++;try{for(C=0,d=l.length;C<d&&!this.isDisposed();C++){var W=l[C];this.subscriptions_[W+1].apply(this.subscriptions_[W+2],D)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;l=this.pendingKeys_.pop();)this.unsubscribeByKey(l)}}return C!=
0}return!1};
var EEa=function(u,K,l){_.VK(function(){u.apply(K,l)})};
_.Qx.prototype.clear=function(u){if(u){var K=this.topics_[u];K&&(K.forEach(this.unsubscribeByKey,this),delete this.topics_[u])}else this.subscriptions_.length=0,this.topics_={}};
_.Qx.prototype.getCount=function(u){if(u){var K=this.topics_[u];return K?K.length:0}u=0;for(K in this.topics_)u+=this.getCount(K);return u};
_.Qx.prototype.disposeInternal=function(){_.Qx.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var yKR=new _.Qx;var bn=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(bn,_.b5);bn.prototype.getColdHashData=function(){return _.A0(this,3)};
bn.prototype.getHotHashData=function(){return _.A0(this,5)};
bn.prototype.setHotHashData=function(u){return _.Tj(this,5,u)};var LGH=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(LGH,_.b5);var zMy=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(zMy,_.b5);_.I=zMy.prototype;_.I.getDeviceId=function(){return _.A0(this,6)};
_.I.getExperimentIds=function(u){var K=_.sS(this,9,_.cE,3,!0);gN(K,u);return K[u]};
_.I.getPlayerType=function(){return _.h0(this,36)};
_.I.setHomeGroupInfo=function(u){return _.jF(this,81,u)};
_.I.clearLocationPlayabilityToken=function(){return _.SG(this,89)};var Qe=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Qe,_.b5);Qe.prototype.setKey=function(u){return _.Tj(this,1,u)};
Qe.prototype.getValue=function(){return L3(this,2,RMh)};
var RMh=[2,3,4,5,6];var L0R=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(L0R,_.b5);L0R.prototype.setTrackingParams=function(u){return _.SG(this,1,_.FH(u,!1))};var eMq=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(eMq,_.b5);var lUq=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(lUq,_.b5);lUq.prototype.getExperimentIds=function(u){var K=_.sS(this,5,_.LbZ,3,!0);gN(K,u);return K[u]};var pp=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(pp,_.b5);pp.prototype.getToken=function(){return _.Qf(this,2)};
pp.prototype.setToken=function(u){return _.Tj(this,2,u)};var jH=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(jH,_.b5);jH.prototype.setSafetyMode=function(u){return _.xL(this,5,u)};var fp=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(fp,_.b5);fp.prototype.setClient=function(u){return _.jF(this,1,u)};var Kdy={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 uQq;_.ZU=function(){var u=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.lL.addEventListener("beforeinstallprompt",function(K){K.preventDefault();u.deferredInstallPrompt=K});
_.lL.addEventListener("appinstalled",function(){u.appInstalledEventFired=!0},{once:!0})};
uQq=function(){if(!_.lL.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.lL.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.lL.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.lL.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.lL.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(u){return"WEB_DISPLAY_MODE_UNKNOWN"}};var CvL=function(){this.syncHeaders=!0},IUZ=function(u){var K={},l=[];
"USER_SESSION_ID"in _.mT&&l.push({key:"u",value:_.E3("USER_SESSION_ID")});if(l=_.e4Z(l))K.Authorization=l,l=u=u==null?void 0:u.sessionIndex,l===void 0&&(l=Number(_.E3("SESSION_INDEX",0)),l=isNaN(l)?0:l),_.S("voice_search_auth_header_removal")||(K["X-Goog-AuthUser"]=l.toString()),"INNERTUBE_HOST_OVERRIDE"in _.mT||(K["X-Origin"]=window.location.origin),u===void 0&&"DELEGATED_SESSION_ID"in _.mT&&(K["X-Goog-PageId"]=_.E3("DELEGATED_SESSION_ID"));return K};var u3k={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var t7=_.lZ("ytglobal.prefsUserPrefsPrefs_")||{},KYk;_.$L("ytglobal.prefsUserPrefsPrefs_",t7);_.xv=function(){this.cookieName=_.E3("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.E3("ALT_PREF_COOKIE_DOMAIN","youtube.com");var u=_.jg.get(this.cookieName,void 0);u&&this.parse(u)};
_.jy=function(){KYk||(KYk=new _.xv);return KYk};
_.xv.prototype.get=function(u,K){lhN(u);DPA(u);u=t7[u]!==void 0?t7[u].toString():null;return u!=null?u:K?K:""};
_.xv.prototype.set=function(u,K){lhN(u);DPA(u);if(K==null)throw Error("Jc");t7[u]=K.toString()};
_.xv.prototype.getFlag=function(u){return!!((dPk("f"+(Math.floor(u/31)+1))||0)&1<<u%31)};
_.B0=function(u,K,l){u="f"+(Math.floor(K/31)+1);K=1<<K%31;var D=dPk(u)||0;D=l?D|K:D&~K;D===0?delete t7[u]:(l=D.toString(16),t7[u]=l.toString())};
_.xv.prototype.remove=function(u){lhN(u);DPA(u);delete t7[u]};
_.xv.prototype.save=function(){var u=!0;_.S("web_secure_pref_cookie_killswitch")&&(u=!1);_.Bv(this.cookieName,this.dump(),63072E3,this.cookieDomain,u)};
_.xv.prototype.clear=function(){_.k$.clear(t7)};
_.xv.prototype.dump=function(){var u=[],K;for(K in t7)t7.hasOwnProperty(K)&&u.push(K+"="+encodeURIComponent(String(t7[K])));return u.join("&")};
var DPA=function(u){if(/^f([1-9][0-9]*)$/.test(u))throw Error("Kc`"+u);},lhN=function(u){if(!/^\w+$/.test(u))throw Error("Lc`"+u);
},dPk=function(u){u=t7[u]!==void 0?t7[u].toString():null;
return u!=null&&/^[A-Fa-f0-9]+$/.test(u)?parseInt(u,16):null};
_.xv.prototype.parse=function(u){u=decodeURIComponent(u).split("&");for(var K=0;K<u.length;K++){var l=u[K].split("="),D=l[0];(l=l[1])&&(t7[D]=l.toString())}};var Asr={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"},Duq={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},duL={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},mBh={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var aT;_.SD=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Ve=function(u,K,l){return u.addJob(K,0,l)};
_.SD.prototype.addLowPriorityJob=function(u,K){return this.addJob(u,1,K)};
_.Vo=function(u,K,l){return u.addJob(K,2,l)};
_.Xf=function(u,K,l){return u.addJob(K,3,l)};
_.zH=function(u,K,l){return u.addJob(K,4,l)};
aT=function(u){var K=_.lZ("yt.scheduler.instance.addImmediateJob");K?K(u):u()};
_.SD.prototype.debounce=function(u,K,l){var D=this,d=0,C=function(){d&&D.cancelJob(d);d=D.addJob(u,K,l);D.cancelDebouncedJobMap.set(C,d)};
return C};
_.SD.prototype.cancelThrottle=function(u){(u=this.cancelThrottledJobMap.get(u))&&u()};var bH=function(){_.SD.apply(this,arguments)};
_.c(bH,_.SD);_.k5=function(){bH.instance||(bH.instance=new bH);return bH.instance};
bH.prototype.addJob=function(u,K,l){l!==void 0&&Number.isNaN(Number(l))&&(l=void 0);var D=_.lZ("yt.scheduler.instance.addJob");return D?D(u,K,l):l===void 0?(u(),NaN):_.aK(u,l||0)};
bH.prototype.cancelJob=function(u){if(u===void 0||!Number.isNaN(Number(u))){var K=_.lZ("yt.scheduler.instance.cancelJob");K?K(u):_.eg(u)}};
bH.prototype.start=function(){var u=_.lZ("yt.scheduler.instance.start");u&&u()};
bH.prototype.pause=function(){var u=_.lZ("yt.scheduler.instance.pause");u&&u()};
_.YL=_.k5();_.F0.prototype.set=function(u,K){K===void 0?this.mechanism.remove(u):this.mechanism.set(u,(0,_.Yz)(K))};
_.F0.prototype.get=function(u){try{var K=this.mechanism.get(u)}catch(l){return}if(K!==null)try{return JSON.parse(K)}catch(l){throw"Storage: Invalid value was encountered";}};
_.F0.prototype.remove=function(u){this.mechanism.remove(u)};var Oc=function(u){this.mechanism=u};
_.Sa(Oc,_.F0);var Cya=function(u){this.data=u},Iha=function(u){return u===void 0||u instanceof Cya?u:new Cya(u)};
Oc.prototype.set=function(u,K){Oc.superClass_.set.call(this,u,Iha(K))};
Oc.prototype.getWrapper=function(u){u=Oc.superClass_.get.call(this,u);if(u===void 0||u instanceof Object)return u;throw"Storage: Invalid value was encountered";};
Oc.prototype.get=function(u){if(u=this.getWrapper(u)){if(u=u.data,u===void 0)throw"Storage: Invalid value was encountered";}else u=void 0;return u};_.Sa(Vx,Oc);_.ypw=function(u){var K=u.creation;u=u.expiration;return!!u&&u<_.x2()||!!K&&K>_.x2()};
Vx.prototype.set=function(u,K,l){if(K=Iha(K)){if(l){if(l<_.x2()){Vx.prototype.remove.call(this,u);return}K.expiration=l}K.creation=_.x2()}Vx.superClass_.set.call(this,u,K)};
Vx.prototype.getWrapper=function(u,K){var l=Vx.superClass_.getWrapper.call(this,u);if(l)if(!K&&_.ypw(l))Vx.prototype.remove.call(this,u);else return l};var cP=function(){};
cP.prototype.next=function(){return ah};
var ah={done:!0,value:void 0},z$=function(u){return{value:u,done:!1}};
cP.prototype.__iterator__=function(){return this};
_.s9C=function(u){if(u instanceof cP)return u;if(typeof u.__iterator__=="function")return u.__iterator__(!1);if(_.mb(u)){var K=0,l=new cP;l.next=function(){for(;;){if(K>=u.length)return ah;if(K in u)return z$(u[K++]);K++}};
return l}throw Error("Mc");};var ofa=function(u){if(u instanceof eD||u instanceof Rh||u instanceof Uc)return u;if(typeof u.next=="function")return new eD(function(){return u});
if(typeof u[Symbol.iterator]=="function")return new eD(function(){return u[Symbol.iterator]()});
if(typeof u.__iterator__=="function")return new eD(function(){return u.__iterator__()});
throw Error("Nc");},eD=function(u){this.func_=u};
eD.prototype.__iterator__=function(){return new Rh(this.func_())};
eD.prototype[Symbol.iterator]=function(){return new Uc(this.func_())};
eD.prototype.toEs6=function(){return new Uc(this.func_())};
var Rh=function(u){this.JSC$10496_iter_=u};
_.c(Rh,cP);Rh.prototype.next=function(){return this.JSC$10496_iter_.next()};
Rh.prototype[Symbol.iterator]=function(){return new Uc(this.JSC$10496_iter_)};
Rh.prototype.toEs6=function(){return new Uc(this.JSC$10496_iter_)};
var Uc=function(u){eD.call(this,function(){return u});
this.JSC$10499_iter_=u};
_.c(Uc,eD);Uc.prototype.next=function(){return this.JSC$10499_iter_.next()};var WYH=function(){};var fe=function(){};
_.Sa(fe,WYH);fe.prototype.getCount=function(){for(var u=0,K=_.y(this),l=K.next();!l.done;l=K.next())u++;return u};
fe.prototype[Symbol.iterator]=function(){return ofa(this.__iterator__(!0)).toEs6()};
fe.prototype.clear=function(){var u=Array.from(this);u=_.y(u);for(var K=u.next();!K.done;K=u.next())this.remove(K.value)};_.Sa(gv,fe);_.I=gv.prototype;_.I.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var u=this.storage_;if(u)try{u.setItem("__sak","1");u.removeItem("__sak");var K=!0}catch(l){K=l instanceof DOMException&&(l.name==="QuotaExceededError"||l.code===22||l.code===1014||l.name==="NS_ERROR_DOM_QUOTA_REACHED")&&u&&u.length!==0}else K=!1;this.cachedIsStorageAvailable_=K}return this.cachedIsStorageAvailable_};
_.I.set=function(u,K){QT(this);try{this.storage_.setItem(u,K)}catch(l){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.I.get=function(u){QT(this);u=this.storage_.getItem(u);if(typeof u!=="string"&&u!==null)throw"Storage mechanism: Invalid value was encountered";return u};
_.I.remove=function(u){QT(this);this.storage_.removeItem(u)};
_.I.getCount=function(){QT(this);return this.storage_.length};
_.I.__iterator__=function(u){QT(this);var K=0,l=this.storage_,D=new cP;D.next=function(){if(K>=l.length)return ah;var d=l.key(K++);if(u)return z$(d);d=l.getItem(d);if(typeof d!=="string")throw"Storage mechanism: Invalid value was encountered";return z$(d)};
return D};
_.I.clear=function(){QT(this);this.storage_.clear()};
_.I.key=function(u){QT(this);return this.storage_.key(u)};
var QT=function(u){if(u.storage_==null)throw Error("Oc");u.isAvailable()||DH(Error("Oc"))};_.Sa(Eso,gv);_.Sa(LfL,gv);_.Sa(N7,fe);N7.prototype.set=function(u,K){this.mechanism_.set(this.JSC$10514_prefix_+u,K)};
N7.prototype.get=function(u){return this.mechanism_.get(this.JSC$10514_prefix_+u)};
N7.prototype.remove=function(u){this.mechanism_.remove(this.JSC$10514_prefix_+u)};
N7.prototype.__iterator__=function(u){var K=this.mechanism_[Symbol.iterator](),l=this,D=new cP;D.next=function(){var d=K.next();if(d.done)return d;for(d=d.value;d.slice(0,l.JSC$10514_prefix_.length)!=l.JSC$10514_prefix_;){d=K.next();if(d.done)return d;d=d.value}return z$(u?d.slice(l.JSC$10514_prefix_.length):l.mechanism_.get(d))};
return D};_.Ev=function(u){this.expiringStorage_=(u=_.u6b(u))?new Vx(u):null;this.JSC$10518_domain_=document.domain||window.location.hostname};
_.Ev.prototype.set=function(u,K,l,D){l=l||31104E3;this.remove(u);if(this.expiringStorage_)try{this.expiringStorage_.set(u,K,Date.now()+l*1E3);return}catch(C){}var d="";if(D)try{d=escape((0,_.Yz)(K))}catch(C){return}else d=escape(K);_.Bv(u,d,l,this.JSC$10518_domain_)};
_.Ev.prototype.get=function(u,K){var l=void 0,D=!this.expiringStorage_;if(!D)try{l=this.expiringStorage_.get(u)}catch(d){D=!0}if(D&&(l=_.jg.get(u,void 0))&&(l=unescape(l),K))try{l=JSON.parse(l)}catch(d){this.remove(u),l=void 0}return l};
_.Ev.prototype.remove=function(u){this.expiringStorage_&&this.expiringStorage_.remove(u);_.kAq(u,"/",this.JSC$10518_domain_)};
_.Ev.prototype.getCreationTime=function(u){return this.expiringStorage_&&(u=(this.expiringStorage_.getWrapper(u)||{}).creation,typeof u==="number")?u:null};var lJy=function(){var u;return function(){u||(u=new _.Ev("ytidb"));return u}}();var dKh;_.Z_=[];dKh=!1;var Omy=ChH||IJr;var PP={},HiB=(PP.AUTH_INVALID="No user identifier specified.",PP.EXPLICIT_ABORT="Transaction was explicitly aborted.",PP.IDB_NOT_SUPPORTED="IndexedDB is not supported.",PP.MISSING_INDEX="Index not created.",PP.MISSING_OBJECT_STORES="Object stores not created.",PP.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",PP.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",PP.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",PP.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",PP.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",PP.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",PP.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",PP),J7={},MBB=(J7.AUTH_INVALID="ERROR",J7.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",J7.EXPLICIT_ABORT="IGNORED",
J7.IDB_NOT_SUPPORTED="ERROR",J7.MISSING_INDEX="WARNING",J7.MISSING_OBJECT_STORES="ERROR",J7.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",J7.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",J7.QUOTA_EXCEEDED="WARNING",J7.QUOTA_MAYBE_EXCEEDED="WARNING",J7.UNKNOWN_ABORT="WARNING",J7.INCOMPATIBLE_DB_VERSION="WARNING",J7),jD={},q6k=(jD.AUTH_INVALID=!1,jD.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,jD.EXPLICIT_ABORT=!1,jD.IDB_NOT_SUPPORTED=!1,jD.MISSING_INDEX=!1,jD.MISSING_OBJECT_STORES=!1,jD.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,jD.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,jD.QUOTA_EXCEEDED=!1,jD.QUOTA_MAYBE_EXCEEDED=!0,jD.UNKNOWN_ABORT=!0,jD.INCOMPATIBLE_DB_VERSION=!1,jD),EP=function(u,K,l,D,d){K=K===void 0?{}:K;l=l===void 0?HiB[u]:l;D=D===void 0?MBB[u]:D;d=d===void 0?q6k[u]:d;_.wv.call(this,l,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:u},K));this.type=u;this.message=l;this.level=D;this.retryable=d;Object.setPrototypeOf(this,EP.prototype)};
_.c(EP,_.wv);var $PN=function(u,K){EP.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:K,foundObjectStores:u},HiB.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,$PN.prototype)};
_.c($PN,EP);var sfy=function(u,K){var l=Error.call(this);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.index=u;this.objectStore=K;Object.setPrototypeOf(this,sfy.prototype)};
_.c(sfy,Error);var own=["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 ln=function(u){this.executor=u},KU=function(u){var K=this;
this.state={status:"PENDING"};this.JSC$10546_onFulfilled=[];this.JSC$10546_onRejected=[];u=u.executor;var l=function(d){if(K.state.status==="PENDING"){K.state={status:"FULFILLED",value:d};d=_.y(K.JSC$10546_onFulfilled);for(var C=d.next();!C.done;C=d.next())C=C.value,C()}},D=function(d){if(K.state.status==="PENDING"){K.state={status:"REJECTED",
reason:d};d=_.y(K.JSC$10546_onRejected);for(var C=d.next();!C.done;C=d.next())C=C.value,C()}};
try{u(l,D)}catch(d){D(d)}};
KU.all=function(u){return new KU(new ln(function(K,l){var D=[],d=u.length;d===0&&K(D);for(var C={i$jscomp$463:0};C.i$jscomp$463<u.length;C={i$jscomp$463:C.i$jscomp$463},++C.i$jscomp$463)KU.resolve(u[C.i$jscomp$463]).then(function(W){return function(M){D[W.i$jscomp$463]=M;d--;d===0&&K(D)}}(C)).catch(function(W){l(W)})}))};
KU.resolve=function(u){return new KU(new ln(function(K,l){u instanceof KU?u.then(K,l):K(u)}))};
KU.reject=function(u){return new KU(new ln(function(K,l){l(u)}))};
KU.prototype.then=function(u,K){var l=this,D=u!=null?u:MZH,d=K!=null?K:Hmb;return new KU(new ln(function(C,W){l.state.status==="PENDING"?(l.JSC$10546_onFulfilled.push(function(){nfk(l,l,D,C,W)}),l.JSC$10546_onRejected.push(function(){rps(l,l,d,C,W)})):l.state.status==="FULFILLED"?nfk(l,l,D,C,W):l.state.status==="REJECTED"&&rps(l,l,d,C,W)}))};
KU.prototype.catch=function(u){return this.then(void 0,u)};
var nfk=function(u,K,l,D,d){try{if(u.state.status!=="FULFILLED")throw Error("Rc");var C=l(u.state.value);C instanceof KU?vfs(u,K,C,D,d):D(C)}catch(W){d(W)}},rps=function(u,K,l,D,d){try{if(u.state.status!=="REJECTED")throw Error("Sc");
var C=l(u.state.reason);C instanceof KU?vfs(u,K,C,D,d):D(C)}catch(W){d(W)}},vfs=function(u,K,l,D,d){K===l?d(new TypeError("Tc")):l.then(function(C){C instanceof KU?vfs(u,K,C,D,d):D(C)},function(C){d(C)})};var BP;BP=window;_.vA=BP.ytcsi&&BP.ytcsi.now?BP.ytcsi.now:BP.performance&&BP.performance.timing&&BP.performance.now&&BP.performance.timing.navigationStart?function(){return BP.performance.timing.navigationStart+BP.performance.now()}:function(){return(new Date).getTime()};var dl=function(u,K){this.JSC$10558_wrapped=u;this.options=K;this.transactionCount=0;this.startedMs=Math.round((0,_.vA)());this.hasUnknownAbortedTransaction=!1},xP0,S62,T$,cps;
dl.prototype.add=function(u,K,l){return _.o$(this,[u],{mode:"readwrite",enableRetries:!0},function(D){return D.objectStore(u).add(K,l)})};
dl.prototype.clear=function(u){return _.o$(this,[u],{mode:"readwrite",enableRetries:!0},function(K){return K.objectStore(u).clear()})};
dl.prototype.close=function(){this.JSC$10558_wrapped.close();var u;((u=this.options)==null?0:u.closed)&&this.options.closed()};
dl.prototype.count=function(u,K){return _.o$(this,[u],{mode:"readonly",enableRetries:!0},function(l){return l.objectStore(u).count(K)})};
var lP=function(u,K,l){u=u.JSC$10558_wrapped.createObjectStore(K,l);return new pe(u)};
dl.prototype.delete=function(u,K){return _.o$(this,[u],{mode:"readwrite",enableRetries:!0},function(l){return l.objectStore(u).delete(K)})};
var G9B=function(u,K){return _.o$(u,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(l){return l.objectStore("ResponseStore").index("byInterface").delete(K)})};
dl.prototype.get=function(u,K){return _.o$(this,[u],{mode:"readonly",enableRetries:!0},function(l){return l.objectStore(u).get(K)})};
dl.prototype.getAll=function(u,K,l){return _.o$(this,[u],{mode:"readonly",enableRetries:!0},function(D){return D.objectStore(u).getAll(K,l)})};
dl.prototype.put=function(u,K,l){return _.o$(this,[u],{mode:"readwrite",enableRetries:!0},function(D){return D.objectStore(u).put(K,l)})};
dl.prototype.objectStoreNames=function(){return Array.from(this.JSC$10558_wrapped.objectStoreNames)};
_.o$=function(u,K,l,D){var d,C,W,M,q,v,G,t,x,O,a,f;return _.H(function(B){switch(B.nextAddress){case 1:var p={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof l==="string"?p.mode=l:Object.assign(p,l);d=p;u.transactionCount++;C=d.enableRetries?3:1;W=0;case 2:if(M){B.jumpTo(4);break}W++;q=Math.round((0,_.vA)());_.Qg(B,5);v=u.JSC$10558_wrapped.transaction(K,d.mode);p=B.yield;var V=new ruw(v);V=tBN(V,D);return p.call(B,V,7);case 7:return G=B.yieldResult,t=Math.round((0,_.vA)()),
xP0(u,q,t,W,void 0,K.join(),d),B.return(G);case 5:x=_.iY(B);O=Math.round((0,_.vA)());a=WGH(x,u.JSC$10558_wrapped.name,K.join(),u.JSC$10558_wrapped.version);if((f=a instanceof EP&&!a.retryable)||W>=C)xP0(u,q,O,W,a,K.join(),d),M=a;B.jumpTo(2);break;case 4:return B.return(Promise.reject(M))}})};
xP0=function(u,K,l,D,d,C,W){K=l-K;d?(d instanceof EP&&(d.type==="QUOTA_EXCEEDED"||d.type==="QUOTA_MAYBE_EXCEEDED")&&A9("QUOTA_EXCEEDED",{dbName:mg(u.JSC$10558_wrapped.name),objectStoreNames:C,transactionCount:u.transactionCount,transactionMode:W.mode}),d instanceof EP&&d.type==="UNKNOWN_ABORT"&&(l-=u.startedMs,l<0&&l>=2147483648&&(l=0),A9("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:C,transactionDuration:K,transactionCount:u.transactionCount,dbDuration:l}),u.hasUnknownAbortedTransaction=!0),
S62(u,!1,D,C,K,W.tag),_.Yn(d)):S62(u,!0,D,C,K,W.tag)};
S62=function(u,K,l,D,d,C){A9("TRANSACTION_ENDED",{objectStoreNames:D,connectionHasUnknownAbortedTransaction:u.hasUnknownAbortedTransaction,duration:d,isSuccessful:K,tryCount:l,tag:C===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":C})};
dl.prototype.getVersion=function(){return this.JSC$10558_wrapped.version};
dl.prototype.getName=function(){return this.JSC$10558_wrapped.name};
var pe=function(u){this.JSC$10572_wrapped=u};
pe.prototype.add=function(u,K){return Dq(this.JSC$10572_wrapped.add(u,K))};
pe.prototype.autoIncrement=function(){return this.JSC$10572_wrapped.autoIncrement};
pe.prototype.clear=function(){return Dq(this.JSC$10572_wrapped.clear()).then(function(){})};
var Ds=function(u,K,l){u.JSC$10572_wrapped.createIndex(K,l,{unique:!1})};
pe.prototype.count=function(u){return Dq(this.JSC$10572_wrapped.count(u))};
var bi2=function(u,K){return HA(u,{query:K},function(l){return l.delete().then(function(){return l.continue()})}).then(function(){})};
pe.prototype.delete=function(u){return u instanceof IDBKeyRange?bi2(this,u):Dq(this.JSC$10572_wrapped.delete(u))};
pe.prototype.get=function(u){return Dq(this.JSC$10572_wrapped.get(u))};
pe.prototype.getAll=function(u,K){return"getAll"in IDBObjectStore.prototype?Dq(this.JSC$10572_wrapped.getAll(u,K)):Oik(this,u,K)};
var Oik=function(u,K,l){var D=[];return HA(u,{query:K},function(d){if(!(l!==void 0&&D.length>=l))return D.push(d.getValue()),d.continue()}).then(function(){return D})};
pe.prototype.index=function(u){try{return new iH(this.JSC$10572_wrapped.index(u))}catch(K){if(K instanceof Error&&K.name==="NotFoundError")throw new sfy(u,this.JSC$10572_wrapped.name);throw K;}};
pe.prototype.getName=function(){return this.JSC$10572_wrapped.name};
pe.prototype.keyPath=function(){return this.JSC$10572_wrapped.keyPath};
pe.prototype.put=function(u,K){return Dq(this.JSC$10572_wrapped.put(u,K))};
var HA=function(u,K,l){u=u.JSC$10572_wrapped.openCursor(K.query,K.direction);return cps(u).then(function(D){return nwq(D,l)})},ruw=function(u){var K=this;
this.JSC$10580_wrapped=u;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(l,D){K.JSC$10580_wrapped.addEventListener("complete",function(){l()});
K.JSC$10580_wrapped.addEventListener("error",function(d){d.currentTarget===d.target&&D(K.JSC$10580_wrapped.error)});
K.JSC$10580_wrapped.addEventListener("abort",function(){var d=K.JSC$10580_wrapped.error;if(d)D(d);else if(!K.aborted){d=EP;for(var C=K.JSC$10580_wrapped.objectStoreNames,W=[],M=0;M<C.length;M++){var q=C.item(M);if(q===null)throw Error("Uc");W.push(q)}d=new d("UNKNOWN_ABORT",{objectStoreNames:W.join(),dbName:K.JSC$10580_wrapped.db.name,mode:K.JSC$10580_wrapped.mode});D(d)}})})},tBN=function(u,K){var l=new Promise(function(D,d){try{K(u).then(function(C){D(C)}).catch(d)}catch(C){d(C),u.abort()}});
return Promise.all([l,u.done]).then(function(D){return _.y(D).next().value})};
ruw.prototype.abort=function(){this.JSC$10580_wrapped.abort();this.aborted=!0;throw new EP("EXPLICIT_ABORT");};
ruw.prototype.objectStore=function(u){u=this.JSC$10580_wrapped.objectStore(u);var K=this.objectStoreCache.get(u);K||(K=new pe(u),this.objectStoreCache.set(u,K));return K};
var iH=function(u){this.JSC$10582_wrapped=u};
iH.prototype.count=function(u){return Dq(this.JSC$10582_wrapped.count(u))};
iH.prototype.delete=function(u){return _.G_(this,{query:u},function(K){return K.delete().then(function(){return K.continue()})})};
iH.prototype.get=function(u){return Dq(this.JSC$10582_wrapped.get(u))};
iH.prototype.getAll=function(u,K){return"getAll"in IDBIndex.prototype?Dq(this.JSC$10582_wrapped.getAll(u,K)):ah0(this,u,K)};
var ah0=function(u,K,l){var D=[];return _.G_(u,{query:K},function(d){if(!(l!==void 0&&D.length>=l))return D.push(d.getValue()),d.continue()}).then(function(){return D})};
iH.prototype.keyPath=function(){return this.JSC$10582_wrapped.keyPath};
iH.prototype.unique=function(){return this.JSC$10582_wrapped.unique};
_.G_=function(u,K,l){u=u.JSC$10582_wrapped.openCursor(K.query===void 0?null:K.query,K.direction===void 0?"next":K.direction);return cps(u).then(function(D){return nwq(D,l)})};
T$=function(u,K){this.request=u;this.cursor=K};
cps=function(u){return Dq(u).then(function(K){return K?new T$(u,K):null})};
T$.prototype.continue=function(u){this.cursor.continue(u);return cps(this.request)};
T$.prototype.delete=function(){return Dq(this.cursor.delete()).then(function(){})};
T$.prototype.getValue=function(){return this.cursor.value};
T$.prototype.update=function(u){return Dq(this.cursor.update(u))};var w3=function(u,K){this.name=u;this.options=K;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},z50;
w3.prototype.openDb=function(u,K,l){l=l===void 0?{}:l;return GIR(u,K,l)};
w3.prototype.delete=function(u){u=u===void 0?{}:u;return _.ys(this.name,u)};
z50=function(u,K){return new EP("INCOMPATIBLE_DB_VERSION",{dbName:u.name,oldVersion:u.options.version,newVersion:K})};
_.sv=function(u,K){if(!K)throw un("openWithToken",mg(u.name));return u.open()};
w3.prototype.open=function(){var u=this;if(!this.isCompatible)throw z50(this);if(this.connectionPromise)return this.connectionPromise;var K,l=function(){u.connectionPromise===K&&(u.connectionPromise=void 0)},D={blocking:function(C){C.close()},
closed:l,terminated:l,upgrade:this.options.upgrade},d=function(){var C,W,M,q,v,G,t,x,O,a;return _.H(function(f){switch(f.nextAddress){case 1:return W=(C=Error().stack)!=null?C:"",_.Qg(f,2),f.yield(u.openDb(u.name,u.options.version,D),4);case 4:for(var B=M=f.yieldResult,p=u.options,V=[],m=_.y(Object.keys(p.objectStores)),Z=m.next();!Z.done;Z=m.next()){Z=Z.value;var A=p.objectStores[Z],h=A.removedAtVersion===void 0?Number.MAX_VALUE:A.removedAtVersion;!(B.JSC$10558_wrapped.version>=A.addedAtVersion)||
B.JSC$10558_wrapped.version>=h||B.JSC$10558_wrapped.objectStoreNames.contains(Z)||V.push(Z)}q=V;if(q.length===0){f.jumpTo(5);break}v=Object.keys(u.options.objectStores);G=M.objectStoreNames();if(u.timesReopenedToFixMissingObjectStore<_.Sg("ytidb_reopen_db_retries",0))return u.timesReopenedToFixMissingObjectStore++,M.close(),_.Yn(new EP("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:u.name,expectedObjectStores:v,foundObjectStores:G})),f.return(d());if(!(u.timesDeletedToFixMissingObjectStore<_.Sg("ytidb_remake_db_retries",
1))){f.jumpTo(6);break}u.timesDeletedToFixMissingObjectStore++;return f.yield(u.delete(),7);case 7:return _.Yn(new EP("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:u.name,expectedObjectStores:v,foundObjectStores:G})),f.return(d());case 6:throw new $PN(G,v);case 5:return f.return(M);case 2:t=_.iY(f);if(t instanceof DOMException?t.name!=="VersionError":"DOMError"in self&&t instanceof DOMError?t.name!=="VersionError":!(t instanceof Object&&"message"in t)||t.message!=="An attempt was made to open a database using a lower version than the existing version."){f.jumpTo(8);
break}return f.yield(u.openDb(u.name,void 0,Object.assign({},D,{upgrade:void 0})),9);case 9:x=f.yieldResult;O=x.getVersion();if(u.options.version!==void 0&&O>u.options.version+1)throw x.close(),u.isCompatible=!1,z50(u,O);return f.return(x);case 8:throw l(),t instanceof Error&&!_.S("ytidb_async_stack_killswitch")&&(t.stack=t.stack+"\n"+W.substring(W.indexOf("\n")+1)),WGH(t,u.name,"",(a=u.options.version)!=null?a:-1);}})};
return this.connectionPromise=K=d()};var tZq=new w3("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(u,K){K(1)&&lP(u,"databases",{keyPath:"actualName"})}});var z8y,cuL=new function(){}(new function(){});new _.et;var e5C=function(u,K){w3.call(this,u,K);this.options=K;X0(u)};
_.c(e5C,w3);var pio=function(u,K){var l;return function(){l||(l=new e5C(u,K));return l}};
e5C.prototype.openDb=function(u,K,l){l=l===void 0?{}:l;return(this.options.shared?QfH:fJr)(u,K,Object.assign({},l))};
e5C.prototype.delete=function(u){u=u===void 0?{}:u;return(this.options.shared?BZq:Phn)(this.name,u)};var R5m={},imq=rl("ytGcfConfig",{objectStores:(R5m.coldConfigStore={addedAtVersion:1},R5m.hotConfigStore={addedAtVersion:1},R5m),shared:!1,upgrade:function(u,K){K(1)&&(Ds(lP(u,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),Ds(lP(u,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var UPa=function(){_.TZ.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var u=_.lZ("yt.gcf.config.hotUpdateCallbacks");u?(this.localHotConfigJobQueue=[].concat(_.Am(u)),this.sharedHotConfigJobQueue=u):(this.sharedHotConfigJobQueue=[],_.$L("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.c(UPa,_.TZ);UPa.prototype.disposeInternal=function(){for(var u=_.y(this.localHotConfigJobQueue),K=u.next();!K.done;K=u.next()){var l=this.sharedHotConfigJobQueue;K=l.indexOf(K.value);K>=0&&l.splice(K,1)}this.localHotConfigJobQueue.length=0;_.TZ.prototype.disposeInternal.call(this)};var g2=function(){var u=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new UPa;this.TEST_ONLY={initializeConfigDb:function(){u.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return u.coldGlobalConfigGroup},
setHotConfigGroup:function(K){fha(u,K)},
setHotHashData:function(K){u.setHotHashData(K)},
setColdConfigGroup:function(K){Q9w(u,K)},
getColdHashData:function(){return u.coldHashData},
getHotHashData:function(){return u.hotHashData},
getHotConfigGroup:function(){return u.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return PyC()},
getExportedHotConfigGroup:function(){return Fs()},
getExportedColdHashData:function(){return _.lZ("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.lZ("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){Jp2(u)},
resetInstance:function(){u.setHotHashData(void 0);j9C(u);delete g2.instance},
setDebounceTimer:function(K){u.debounceTimer=K},
getDebounceTimer:function(){return u.debounceTimer}}},B_C=function(){if(!g2.instance){var u=new g2;
g2.instance=u}return g2.instance},T_C=function(u){var K;
_.H(function(l){if(l.nextAddress==1)return _.S("start_client_gcf")||_.S("delete_gcf_config_db")?_.S("start_client_gcf")?l.yield(_.nU(),3):l.jumpTo(2):l.return();l.nextAddress!=2&&((K=l.yieldResult)&&_.TB()&&!_.S("delete_gcf_config_db")?(u.isConfigDbInitialized=!0,Jp2(u)):(p4R(u),iik(u)));return _.S("delete_gcf_config_db")?l.yield(NZH(),0):l.jumpTo(0)})},kHq=function(){var u;
return(u=Fs())!=null?u:_.E3("RAW_HOT_CONFIG_GROUP")},w4N=function(u){var K,l,D,d,C,W;
return _.H(function(M){switch(M.nextAddress){case 1:if(u.hotGlobalConfigGroup)return M.return(Fs());if(!u.isConfigDbInitialized)return K=un("getHotConfig IDB not initialized"),_.D_(K),M.return(Promise.reject(K));l=qh();D=_.E3("TIME_CREATED_MS");if(!l){d=un("getHotConfig token error");_.D_(d);M.jumpTo(2);break}return M.yield(gwr(l),3);case 3:if((C=M.yieldResult)&&C.timestamp>D)return fha(u,C.config),u.setHotHashData(C.hashData),M.return(Fs());case 2:iik(u);if(!(l&&u.hotGlobalConfigGroup&&u.hotHashData)){M.jumpTo(4);
break}return M.yield(wiy(u.hotGlobalConfigGroup,u.hotHashData,l,D),4);case 4:return u.hotGlobalConfigGroup?M.return(Fs()):(W=new _.wv("Config not available in ytConfig"),_.D_(W),M.return(Promise.reject(W)))}})},VBm=function(u){var K,l,D,d,C,W;
return _.H(function(M){switch(M.nextAddress){case 1:if(u.coldGlobalConfigGroup)return M.return(PyC());if(!u.isConfigDbInitialized)return K=un("getColdConfig IDB not initialized"),_.D_(K),M.return(Promise.reject(K));l=qh();D=_.E3("TIME_CREATED_MS");if(!l){d=un("getColdConfig");_.D_(d);M.jumpTo(2);break}return M.yield(VZH(l),3);case 3:if((C=M.yieldResult)&&C.timestamp>D)return Q9w(u,C.config),FYC(u,C.configData),j9C(u,C.hashData),M.return(PyC());case 2:p4R(u);if(!(l&&u.coldGlobalConfigGroup&&u.coldHashData&&
u.configData)){M.jumpTo(4);break}return M.yield(FGL(u.coldGlobalConfigGroup,u.coldHashData,u.configData,l,D),4);case 4:return u.coldGlobalConfigGroup?M.return(PyC()):(W=new _.wv("Config not available in ytConfig"),_.D_(W),M.return(Promise.reject(W)))}})},Jp2=function(u){if(!u.hotGlobalConfigGroup||!u.coldGlobalConfigGroup){if(!qh()){var K=un("scheduleGetConfigs");
_.D_(K)}u.initJob||(u.initJob=_.YL.addLowPriorityJob(function(){return _.H(function(l){switch(l.nextAddress){case 1:return _.Qg(l,2),l.yield(w4N(u),4);case 4:_.I$(l,3);break;case 2:_.iY(l);case 3:return _.Qg(l,5),l.yield(VBm(u),7);case 7:_.I$(l,6);break;case 5:_.iY(l);case 6:u.initJob&&(u.initJob=0),_.TG(l)}})},100))}},w1b=function(u,K,l){var D,d,C;
return _.H(function(W){switch(W.nextAddress){case 1:if(!_.S("start_client_gcf")){W.jumpTo(0);break}l&&fha(u,l);u.setHotHashData(K);D=qh();if(!D){W.jumpTo(3);break}if(l){W.jumpTo(4);break}return W.yield(gwr(D),5);case 5:d=W.yieldResult,l=(C=d)==null?void 0:C.config;case 4:return W.yield(wiy(l,K,D),3);case 3:if(l)for(var M=l,q=_.y(u.configUpdateService.sharedHotConfigJobQueue),v=q.next();!v.done;v=q.next())v=v.value,v(M);_.TG(W)}})},FEo=function(u,K,l){var D,d,C,W;
return _.H(function(M){if(M.nextAddress==1){if(!_.S("start_client_gcf"))return M.jumpTo(0);j9C(u,K);return(D=qh())?l?M.jumpTo(4):M.yield(VZH(D),5):M.jumpTo(0)}M.nextAddress!=4&&(d=M.yieldResult,l=(C=d)==null?void 0:C.config);if(!l)return M.jumpTo(0);W=l.configData;return M.yield(FGL(l,K,W,D),0)})},s7q=function(){var u=B_C(),K=(0,_.vA)()-u.debounceTimer;
if(!(u.debounceTimer!==0&&K<_.Sg("send_config_hash_timer"))){K=_.lZ("yt.gcf.config.coldConfigData");var l=_.lZ("yt.gcf.config.hotHashData"),D=_.lZ("yt.gcf.config.coldHashData");K&&l&&D&&(u.debounceTimer=(0,_.vA)());return{coldConfigData:K,hotHashData:l,coldHashData:D}}},p4R=function(u){Q9w(u,_.E3("RAW_COLD_CONFIG_GROUP"));
j9C(u,_.E3("SERIALIZED_COLD_HASH_DATA"));var K;FYC(u,(K=u.coldGlobalConfigGroup)==null?void 0:K.configData)},iik=function(u){fha(u,_.E3("RAW_HOT_CONFIG_GROUP"));
u.setHotHashData(_.E3("SERIALIZED_HOT_HASH_DATA"))},fha=function(u,K){u.hotGlobalConfigGroup=K;
_.$L("yt.gcf.config.hotConfigGroup",u.hotGlobalConfigGroup||null)},Q9w=function(u,K){u.coldGlobalConfigGroup=K;
_.$L("yt.gcf.config.coldConfigGroup",u.coldGlobalConfigGroup||null)};
g2.prototype.setHotHashData=function(u){this.hotHashData=u;_.$L("yt.gcf.config.hotHashData",this.hotHashData||null)};
var j9C=function(u,K){u.coldHashData=K;_.$L("yt.gcf.config.coldHashData",u.coldHashData||null)},FYC=function(u,K){u.configData=K;
_.$L("yt.gcf.config.coldConfigData",u.configData||null)},Fs=function(){return _.lZ("yt.gcf.config.hotConfigGroup")},PyC=function(){return _.lZ("yt.gcf.config.coldConfigGroup")};var eG={},gfa=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";eG.assign=function(u){for(var K=Array.prototype.slice.call(arguments,1);K.length;){var l=K.shift();if(l){if(typeof l!=="object")throw new TypeError("Xc`"+l);for(var D in l)Object.prototype.hasOwnProperty.call(l,D)&&(u[D]=l[D])}}return u};
eG.shrinkBuf=function(u,K){if(u.length===K)return u;if(u.subarray)return u.subarray(0,K);u.length=K;return u};
var N_H={arraySet:function(u,K,l,D,d){if(K.subarray&&u.subarray)u.set(K.subarray(l,l+D),d);else for(var C=0;C<D;C++)u[d+C]=K[l+C]},
flattenChunks:function(u){var K,l;var D=l=0;for(K=u.length;D<K;D++)l+=u[D].length;var d=new Uint8Array(l);D=l=0;for(K=u.length;D<K;D++){var C=u[D];d.set(C,l);l+=C.length}return d}},k9R={arraySet:function(u,K,l,D,d){for(var C=0;C<D;C++)u[d+C]=K[l+C]},
flattenChunks:function(u){return[].concat.apply([],u)}};
eG.setTyped=function(){gfa?(eG.Buf8=Uint8Array,eG.Buf16=Uint16Array,eG.Buf32=Int32Array,eG.assign(eG,N_H)):(eG.Buf8=Array,eG.Buf16=Array,eG.Buf32=Array,eG.assign(eG,k9R))};
eG.setTyped();var Zik=!0;try{new Uint8Array(1)}catch(u){Zik=!1}
var gOR=function(u){var K,l,D=u.length,d=0;for(K=0;K<D;K++){var C=u.charCodeAt(K);if((C&64512)===55296&&K+1<D){var W=u.charCodeAt(K+1);(W&64512)===56320&&(C=65536+(C-55296<<10)+(W-56320),K++)}d+=C<128?1:C<2048?2:C<65536?3:4}var M=new eG.Buf8(d);for(K=l=0;l<d;K++)C=u.charCodeAt(K),(C&64512)===55296&&K+1<D&&(W=u.charCodeAt(K+1),(W&64512)===56320&&(C=65536+(C-55296<<10)+(W-56320),K++)),C<128?M[l++]=C:(C<2048?M[l++]=192|C>>>6:(C<65536?M[l++]=224|C>>>12:(M[l++]=240|C>>>18,M[l++]=128|C>>>12&63),M[l++]=
128|C>>>6&63),M[l++]=128|C&63);return M};var Uuq={};Uuq=function(u,K,l,D){var d=u&65535|0;u=u>>>16&65535|0;for(var C;l!==0;){C=l>2E3?2E3:l;l-=C;do d=d+K[D++]|0,u=u+d|0;while(--C);d%=65521;u%=65521}return d|u<<16|0};for(var Vs={},VT,Y60=[],Apm=0;Apm<256;Apm++){VT=Apm;for(var X4a=0;X4a<8;X4a++)VT=VT&1?3988292384^VT>>>1:VT>>>1;Y60[Apm]=VT}Vs=function(u,K,l,D){l=D+l;for(u^=-1;D<l;D++)u=u>>>8^Y60[(u^K[D])&255];return u^-1};var Qs={};Qs={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 GOh=[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],xuw=[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],Vtw=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],eVr=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],BA=Array(576);Ov(BA);var pU=Array(60);Ov(pU);var Uv=Array(512);Ov(Uv);var R$=Array(256);Ov(R$);var ttZ=Array(29);Ov(ttZ);var Sdq=Array(30);Ov(Sdq);var Teh,wIH,Fdo,icq=!1;var Zq;
Zq=[new kL(0,0,0,0,function(u,K){var l=65535;for(l>u.pending_buf_size-5&&(l=u.pending_buf_size-5);;){if(u.lookahead<=1){gl(u);if(u.lookahead===0&&K===0)return 1;if(u.lookahead===0)break}u.strstart+=u.lookahead;u.lookahead=0;var D=u.block_start+l;if(u.strstart===0||u.strstart>=D)if(u.lookahead=u.strstart-D,u.strstart=D,T_(u,!1),u.strm.avail_out===0)return 1;if(u.strstart-u.block_start>=u.w_size-262&&(T_(u,!1),u.strm.avail_out===0))return 1}u.insert=0;if(K===4)return T_(u,!0),u.strm.avail_out===0?3:
4;u.strstart>u.block_start&&T_(u,!1);return 1}),
new kL(4,4,8,4,fUh),new kL(4,5,16,8,fUh),new kL(4,6,32,32,fUh),new kL(4,4,16,16,Nh),new kL(8,16,32,32,Nh),new kL(8,16,128,128,Nh),new kL(8,32,128,256,Nh),new kL(32,128,258,1024,Nh),new kL(32,258,258,4096,Nh)];var pIy={};pIy=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 Ney=Object.prototype.toString;
Beb.prototype.push=function(u,K){var l=this.strm,D=this.options.chunkSize;if(this.ended)return!1;var d=K===~~K?K:K===!0?4:0;typeof u==="string"?l.input=gOR(u):Ney.call(u)==="[object ArrayBuffer]"?l.input=new Uint8Array(u):l.input=u;l.next_in=0;l.avail_in=l.input.length;do{l.avail_out===0&&(l.output=new eG.Buf8(D),l.next_out=0,l.avail_out=D);u=j7n(l,d);if(u!==1&&u!==0)return mP0(this,u),this.ended=!0,!1;if(l.avail_out===0||l.avail_in===0&&(d===4||d===2))if(this.options.to==="string"){var C=eG.shrinkBuf(l.output,
l.next_out);K=C;C=C.length;if(C<65537&&(K.subarray&&Zik||!K.subarray))K=String.fromCharCode.apply(null,eG.shrinkBuf(K,C));else{for(var W="",M=0;M<C;M++)W+=String.fromCharCode(K[M]);K=W}this.chunks.push(K)}else K=eG.shrinkBuf(l.output,l.next_out),this.chunks.push(K)}while((l.avail_in>0||l.avail_out===0)&&u!==1);if(d===4)return(l=this.strm)&&l.state?(D=l.state.status,D!==42&&D!==69&&D!==73&&D!==91&&D!==103&&D!==113&&D!==666?u=PA(l,-2):(l.state=null,u=D===113?PA(l,-3):0)):u=-2,mP0(this,u),this.ended=
!0,u===0;d===2&&(mP0(this,0),l.avail_out=0);return!0};
var mP0=function(u,K){K===0&&(u.result=u.options.to==="string"?u.chunks.join(""):eG.flattenChunks(u.chunks));u.chunks=[];u.err=K;u.msg=u.strm.msg};var h5m=typeof TextEncoder!=="undefined"?new TextEncoder:null,t8q=h5m?function(u){return h5m.encode(u)}:function(u){u=_.i2(u);
for(var K=new Uint8Array(u.length),l=0;l<K.length;l++)K[l]=u[l];return K};var ZWb={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},A$w={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var g3=function(u,K){this.version=u;this.args=K};
g3.prototype.serialize=function(){return{version:this.version,args:this.args}};var XIo=function(u,K){this.topic=u;this.dataClass=K};
XIo.prototype.toString=function(){return this.topic};var EfB=_.lZ("ytPubsub2Pubsub2Instance")||new _.Qx;_.Qx.prototype.subscribe=_.Qx.prototype.subscribe;_.Qx.prototype.unsubscribeByKey=_.Qx.prototype.unsubscribeByKey;_.Qx.prototype.publish=_.Qx.prototype.publish;_.Qx.prototype.clear=_.Qx.prototype.clear;_.$L("ytPubsub2Pubsub2Instance",EfB);var A_q=_.lZ("ytPubsub2Pubsub2SubscribedKeys")||{};_.$L("ytPubsub2Pubsub2SubscribedKeys",A_q);var hVR=_.lZ("ytPubsub2Pubsub2TopicToKeys")||{};_.$L("ytPubsub2Pubsub2TopicToKeys",hVR);
var muR=_.lZ("ytPubsub2Pubsub2IsAsync")||{};_.$L("ytPubsub2Pubsub2IsAsync",muR);_.$L("ytPubsub2Pubsub2SkipSubKey",null);var yUh=void 0,Cih=void 0;var nHL=_.Sg("max_body_size_to_compress",5E5),rUL=_.Sg("min_body_size_to_compress",500),XZ=!0,bgw=0,m5=0,S9h=_.Sg("compression_performance_threshold_lr",250),Ogy=_.Sg("slow_compressions_before_abandon_count",4),W3o=!1,Hgo=new Map,GQh=1,vHh=!0;_.Sa(hP,z4Z);hP.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 LY0=function(u,K,l){l||(l=0);var D=u.W_;if(typeof K==="string")for(var d=0;d<16;d++)D[d]=K.charCodeAt(l)<<24|K.charCodeAt(l+1)<<16|K.charCodeAt(l+2)<<8|K.charCodeAt(l+3),l+=4;else for(d=0;d<16;d++)D[d]=K[l]<<24|K[l+1]<<16|K[l+2]<<8|K[l+3],l+=4;for(K=16;K<80;K++)l=D[K-3]^D[K-8]^D[K-14]^D[K-16],D[K]=(l<<1|l>>>31)&4294967295;K=u.chain_[0];l=u.chain_[1];d=u.chain_[2];for(var C=u.chain_[3],W=u.chain_[4],M,q,v=0;v<80;v++)v<40?v<20?(M=C^l&(d^C),q=1518500249):(M=l^d^C,q=1859775393):v<60?(M=l&d|C&(l|d),
q=2400959708):(M=l^d^C,q=3395469782),M=(K<<5|K>>>27)+M+W+q+D[v]&4294967295,W=C,C=d,d=(l<<30|l>>>2)&4294967295,l=K,K=M;u.chain_[0]=u.chain_[0]+K&4294967295;u.chain_[1]=u.chain_[1]+l&4294967295;u.chain_[2]=u.chain_[2]+d&4294967295;u.chain_[3]=u.chain_[3]+C&4294967295;u.chain_[4]=u.chain_[4]+W&4294967295};
hP.prototype.update=function(u,K){if(u!=null){K===void 0&&(K=u.length);for(var l=K-this.blockSize,D=0,d=this.buf_,C=this.inbuf_;D<K;){if(C==0)for(;D<=l;)LY0(this,u,D),D+=this.blockSize;if(typeof u==="string")for(;D<K;){if(d[C]=u.charCodeAt(D),++C,++D,C==this.blockSize){LY0(this,d);C=0;break}}else for(;D<K;)if(d[C]=u[D],++C,++D,C==this.blockSize){LY0(this,d);C=0;break}}this.inbuf_=C;this.total_+=K}};
hP.prototype.digest=function(){var u=[],K=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var l=this.blockSize-1;l>=56;l--)this.buf_[l]=K&255,K/=256;LY0(this,this.buf_);for(l=K=0;l<5;l++)for(var D=24;D>=0;D-=8)u[K]=this.chain_[l]>>D&255,++K;return u};var Unq;var kv=function(u){var K=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(G){K.databaseToken=G},
triggerThrottle:function(){K.throttledSend()},
cancelThrottle:function(){K.cancelThrottledSend()},
immediateSend:function(G){return _.H(function(t){return t.yield(K.immediateSend(G),0)})},
requestWithinAgeLimit:function(G,t){return K.requestWithinAgeLimit(G,t)},
retryQueuedRequests:function(){K.retryQueuedRequests()}};
var l;this.throttleTimeout=(l=u.throttleTimeout)!=null?l:100;var D;this.retryMaxAttempts=(D=u.retryMaxAttempts)!=null?D:1;var d;this.requestAgeLimitMs=(d=u.requestAgeLimitMs)!=null?d:2592E6;var C;this.queuedRequestAgeLimitMs=(C=u.queuedRequestAgeLimitMs)!=null?C:12E4;var W;this.retryDelayMs=(W=u.retryDelayMs)!=null?W:5E3;var M;this.databaseToken=(M=u.databaseToken)!=null?M:void 0;this.enableCleaning=!!u.enableCleaning;var q;this.cleaningRate=(q=u.cleaningRate)!=null?q:.1;var v;this.potentialEsfErrorLimit=
(v=u.potentialEsfErrorLimit)!=null?v:10;u.handleError&&(this.handleError=u.handleError);u.handleWarning&&(this.handleWarning=u.handleWarning);u.disableYtIdbTransactions&&(this.disableYtIdbTransactions=u.disableYtIdbTransactions);u.bypassDbTokenDependency&&(this.bypassDbTokenDependency=u.bypassDbTokenDependency);this.getBooleanFlag=u.getBooleanFlag;this.jobManager=u.jobManager;this.logsStore=u.logsStore;this.networkManager=u.networkManager;this.sendFn=u.sendFn;this.onlineEvent=u.onlineEvent;this.offlineEvent=
u.offlineEvent;N2(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&uXw(this)},uXw=function(u){N2(u)&&!u.disableYtIdbTransactions&&(u.initialized=!0,u.enableCleaning&&Math.random()<=u.cleaningRate&&u.logsStore.cleanLogsStore(u.databaseToken),u.retryQueuedRequests(),u.networkManager.isNetworkAvailable()&&u.throttledSend(),u.networkManager.listen(u.onlineEvent,u.throttledSend.bind(u)),u.networkManager.listen(u.offlineEvent,u.cancelThrottledSend.bind(u)))};
_.I=kv.prototype;_.I.writeThenSend=function(u,K){var l=this;K=K===void 0?{}:K;if(N2(this)&&this.initialized){var D={url:u,options:K,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(D,this.databaseToken).then(function(d){D.id=d;l.networkManager.isNetworkAvailable()&&l.immediateSend(D)}).catch(function(d){l.immediateSend(D);
KqN(l,d)})}else this.sendFn(u,K)};
_.I.sendThenWrite=function(u,K,l){var D=this;K=K===void 0?{}:K;if(N2(this)&&this.initialized){var d={url:u,options:K,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(d.skipRetry=l);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!d.skipRetry){if(!d.skipRetry){var C=K.onError?K.onError:function(){};
K.onError=function(W,M){return _.H(function(q){if(q.nextAddress==1)return q.yield(D.logsStore.set(d,D.databaseToken).catch(function(v){KqN(D,v)}),2);
C(W,M);_.TG(q)})}}this.sendFn(u,K,d.skipRetry)}else this.logsStore.set(d,this.databaseToken).catch(function(W){D.sendFn(u,K,d.skipRetry);
KqN(D,W)})}else this.sendFn(u,K,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&l)};
_.I.sendAndWrite=function(u,K){var l=this;K=K===void 0?{}:K;if(N2(this)&&this.initialized){var D={url:u,options:K,timestamp:this.now(),status:"NEW",sendCount:0},d=!1,C=K.onSuccess?K.onSuccess:function(){};
D.options.onSuccess=function(W,M){D.id!==void 0?l.logsStore.deleteRequest(D.id,l.databaseToken):d=!0;l.networkManager.networkStatusHint&&l.getBooleanFlag&&l.getBooleanFlag("vss_network_hint")&&l.networkManager.networkStatusHint(!0);C(W,M)};
this.sendFn(D.url,D.options,void 0,!0);this.logsStore.set(D,this.databaseToken).then(function(W){D.id=W;d&&l.logsStore.deleteRequest(D.id,l.databaseToken)}).catch(function(W){KqN(l,W)})}else this.sendFn(u,K,void 0,!0)};
_.I.throttledSend=function(){var u=this;if(!N2(this))throw Error("$c");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var K;return _.H(function(l){if(l.nextAddress==1)return l.yield(u.logsStore.getMostRecentByStatus("NEW",u.databaseToken),2);if(l.nextAddress!=3)return K=l.yieldResult,K?l.yield(u.immediateSend(K),3):(u.cancelThrottledSend(),l.return());u.intervalJob&&(u.intervalJob=0,u.throttledSend());_.TG(l)})},this.throttleTimeout))};
_.I.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.I.immediateSend=function(u){var K=this,l;return _.H(function(D){switch(D.nextAddress){case 1:if(!N2(K))throw Error("ad");if(u.id===void 0){D.jumpTo(2);break}return D.yield(K.logsStore.markAsQueued(u.id,K.databaseToken),3);case 3:(l=D.yieldResult)||K.handleWarning(Error("bd"));case 2:if(K.requestWithinAgeLimit(u,K.requestAgeLimitMs)){D.jumpTo(4);break}K.handleWarning(Error("cd"));if(u.id===void 0){D.jumpTo(5);break}return D.yield(K.logsStore.deleteRequest(u.id,K.databaseToken),5);case 5:return D.return();
case 4:u.skipRetry||(u=l8s(K,u));if(!u){D.jumpTo(0);break}if(!u.skipRetry||u.id===void 0){D.jumpTo(8);break}return D.yield(K.logsStore.deleteRequest(u.id,K.databaseToken),8);case 8:K.sendFn(u.url,u.options,!!u.skipRetry),_.TG(D)}})};
var l8s=function(u,K){if(!N2(u))throw Error("dd");var l=K.options.onError?K.options.onError:function(){};
K.options.onError=function(d,C){var W,M,q,v;return _.H(function(G){switch(G.nextAddress){case 1:W=jby(C);(M=Bny(C))&&u.getBooleanFlag&&u.getBooleanFlag("web_enable_error_204")&&u.handleError(Error("ed"),K.url,C);if(!(u.getBooleanFlag&&u.getBooleanFlag("nwl_consider_error_code")&&W||u.getBooleanFlag&&!u.getBooleanFlag("nwl_consider_error_code")&&u.potentialEsfErrorCounter<=u.potentialEsfErrorLimit)){G.jumpTo(2);break}if(!u.networkManager.sendNetworkCheckRequest){G.jumpTo(3);break}return G.yield(u.networkManager.sendNetworkCheckRequest(),
3);case 3:if(u.networkManager.isNetworkAvailable()){G.jumpTo(2);break}l(d,C);if(!u.getBooleanFlag||!u.getBooleanFlag("nwl_consider_error_code")||((q=K)==null?void 0:q.id)===void 0){G.jumpTo(6);break}return G.yield(u.logsStore.resetRequest(K.id,u.databaseToken,!1),6);case 6:return G.return();case 2:if(u.getBooleanFlag&&u.getBooleanFlag("nwl_consider_error_code")&&!W&&u.potentialEsfErrorCounter>u.potentialEsfErrorLimit)return G.return();u.potentialEsfErrorCounter++;if(((v=K)==null?void 0:v.id)===void 0){G.jumpTo(8);
break}return K.sendCount<u.retryMaxAttempts?G.yield(u.logsStore.resetRequest(K.id,u.databaseToken,!0,M?!1:void 0),12):G.yield(u.logsStore.deleteRequest(K.id,u.databaseToken),8);case 12:u.jobManager.addLowPriorityJob(function(){u.networkManager.isNetworkAvailable()&&u.throttledSend()},u.retryDelayMs);
case 8:l(d,C),_.TG(G)}})};
var D=K.options.onSuccess?K.options.onSuccess:function(){};
K.options.onSuccess=function(d,C){var W;return _.H(function(M){if(M.nextAddress==1)return((W=K)==null?void 0:W.id)===void 0?M.jumpTo(2):M.yield(u.logsStore.deleteRequest(K.id,u.databaseToken),2);u.networkManager.networkStatusHint&&u.getBooleanFlag&&u.getBooleanFlag("vss_network_hint")&&u.networkManager.networkStatusHint(!0);D(d,C);_.TG(M)})};
return K};
kv.prototype.requestWithinAgeLimit=function(u,K){u=u.timestamp;return this.now()-u>=K?!1:!0};
kv.prototype.retryQueuedRequests=function(){var u=this;if(!N2(this))throw Error("fd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(K){K&&!u.requestWithinAgeLimit(K,u.queuedRequestAgeLimitMs)?u.jobManager.addLowPriorityJob(function(){return _.H(function(l){if(l.nextAddress==1)return K.id===void 0?l.jumpTo(2):l.yield(u.logsStore.resetRequest(K.id,u.databaseToken),2);u.retryQueuedRequests();_.TG(l)})}):u.networkManager.isNetworkAvailable()&&u.throttledSend()})};
var KqN=function(u,K){u.writeError&&!u.networkManager.isNetworkAvailable()?u.writeError(K):u.handleError(K)},N2=function(u){return!!u.databaseToken||u.bypassDbTokenDependency};var pFH;var NYy={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,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};var DNA={},Y9b=rl("ServiceWorkerLogsDatabase",{objectStores:(DNA.SWHealthLog={addedAtVersion:1},DNA),shared:!0,upgrade:function(u,K){K(1)&&Ds(lP(u,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var KQy={},uuh=0;var CTZ;var Zw=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},s5=function(){if(!Zw.instance){var u=_.lZ("yt.networkRequestMonitor.instance")||new Zw;
_.$L("yt.networkRequestMonitor.instance",u);Zw.instance=u}return Zw.instance};
Zw.prototype.requestComplete=function(u,K){K&&(this.anyRequestHasSucceeded=!0);u=this.removeParams(u);this.requestMap.get(u)||this.requestMap.set(u,K)};
Zw.prototype.isEndpointCFR=function(u){u=this.removeParams(u);return(u=this.requestMap.get(u))?!1:u===!1&&this.anyRequestHasSucceeded?!0:null};
Zw.prototype.removeParams=function(u){return u.split("?")[0]};
Zw.prototype.removeParams=Zw.prototype.removeParams;Zw.prototype.isEndpointCFR=Zw.prototype.isEndpointCFR;Zw.prototype.requestComplete=Zw.prototype.requestComplete;Zw.getInstance=s5;var Yv=function(u){_.wx.call(this);var K=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=u!=null?u:{addLowPriorityJob:function(d,C){return setTimeout(d,C)},
cancelJob:function(d){clearTimeout(d)}};
var l,D;this.isOnline=(D=(l=window.navigator)==null?void 0:l.onLine)!=null?D:!0;this.onNavigatorChange=function(){return _.H(function(d){return d.yield(dNH(K),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||C0k(this)};
_.c(Yv,_.wx);Yv.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete Yv.instance};
Yv.prototype.isNetworkAvailable=function(){return this.isOnline};
var C0k=function(u){u.pollingJob=u.jobManager.addLowPriorityJob(function(){var K;return _.H(function(l){if(l.nextAddress==1)return u.isOnline?((K=window.navigator)==null?0:K.onLine)?l.jumpTo(3):l.yield(dNH(u),3):l.yield(dNH(u),3);C0k(u);_.TG(l)})},3E4)},dNH=function(u,K){return u.networkRequestPromise?u.networkRequestPromise:u.networkRequestPromise=new Promise(function(l){var D,d,C,W;
return _.H(function(M){switch(M.nextAddress){case 1:return D=window.AbortController?new window.AbortController:void 0,C=(d=D)==null?void 0:d.signal,W=!1,_.Qg(M,2,3),D&&(u.abortTimeoutKey=u.jobManager.addLowPriorityJob(function(){D.abort()},K||2E4)),M.yield(fetch("/generate_204",{method:"HEAD",
signal:C}),5);case 5:W=!0;case 3:_.jj(M);u.networkRequestPromise=void 0;u.abortTimeoutKey&&(u.jobManager.cancelJob(u.abortTimeoutKey),u.abortTimeoutKey=0);W!==u.isOnline&&(u.isOnline=W,u.isOnline?u.dispatchEvent("networkstatus-online"):u.dispatchEvent("networkstatus-offline"));l(W);_.pH(M,0);break;case 2:_.iY(M),W=!1,M.jumpTo(3)}})})};var A7=function(){_.wx.call(this);var u=this;this.shouldFlushErrors=!1;Yv.instance||(Yv.instance=new Yv(_.YL));this.sharedNetworkStatusManager=Yv.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(u.shouldFlushErrors&&_.S("offline_error_handling")){var K=IpR().get("errors",!0);if(K){for(var l in K)if(K[l]){var D=new _.wv(l,"sent via offline_errors");D.name=K[l].name;D.stack=K[l].stack;D.level=K[l].level;_.uZ(D)}IpR().set("errors",{},2592E3,!0)}}})};
_.c(A7,_.wx);var I8m=function(){if(!A7.instance){var u=_.lZ("yt.networkStatusManager.instance")||new A7;_.$L("yt.networkStatusManager.instance",u);A7.instance=u}return A7.instance};
_.I=A7.prototype;_.I.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.I.networkStatusHint=function(u){this.sharedNetworkStatusManager.isOnline=u};
_.I.getWindowStatus=function(){var u=window.navigator.onLine;return u===void 0?!0:u};
_.I.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.I.listen=function(u,K){return this.sharedNetworkStatusManager.listen(u,K)};
_.I.sendNetworkCheckRequest=function(u){u=dNH(this.sharedNetworkStatusManager,u);u.then(function(K){_.S("use_cfr_monitor")&&s5().requestComplete("generate_204",K)});
return u};
A7.prototype.sendNetworkCheckRequest=A7.prototype.sendNetworkCheckRequest;A7.prototype.listen=A7.prototype.listen;A7.prototype.enableErrorFlushing=A7.prototype.enableErrorFlushing;A7.prototype.getWindowStatus=A7.prototype.getWindowStatus;A7.prototype.networkStatusHint=A7.prototype.networkStatusHint;A7.prototype.isNetworkAvailable=A7.prototype.isNetworkAvailable;A7.getInstance=I8m;_.ye=function(u){u=u===void 0?{}:u;_.wx.call(this);var K=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=I8m();var l=_.lZ("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);l&&(u.rateLimit?(this.rateLimit=u.rateLimit,l("networkstatus-online",function(){yCH(K,"publicytnetworkstatus-online")}),l("networkstatus-offline",function(){yCH(K,"publicytnetworkstatus-offline")})):(l("networkstatus-online",function(){K.dispatchEvent("publicytnetworkstatus-online")}),l("networkstatus-offline",
function(){K.dispatchEvent("publicytnetworkstatus-offline")})))};
_.c(_.ye,_.wx);_.ye.prototype.isNetworkAvailable=function(){var u=_.lZ("yt.networkStatusManager.instance.isNetworkAvailable");return u?u.bind(this.nsmInstance)():!0};
_.ye.prototype.networkStatusHint=function(u){var K=_.lZ("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);K&&K(u)};
_.ye.prototype.sendNetworkCheckRequest=function(u){var K=this,l;return _.H(function(D){l=_.lZ("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(K.nsmInstance);return _.S("skip_network_check_if_cfr")&&s5().isEndpointCFR("generate_204")?D.return(new Promise(function(d){var C;K.networkStatusHint(((C=window.navigator)==null?void 0:C.onLine)||!0);d(K.isNetworkAvailable())})):l?D.return(l(u)):D.return(!0)})};
var yCH=function(u,K){u.rateLimit?u.lastJobTime?(_.YL.cancelJob(u.schedulerJob),u.schedulerJob=_.YL.addLowPriorityJob(function(){u.lastPublicSignalSent!==K&&(u.dispatchEvent(K),u.lastPublicSignalSent=K,u.lastJobTime=(0,_.vA)())},u.rateLimit-((0,_.vA)()-u.lastJobTime))):(u.dispatchEvent(K),u.lastPublicSignalSent=K,u.lastJobTime=(0,_.vA)()):u.dispatchEvent(K)};var Hrn,Xs=function(){kv.call(this,{logsStore:{cleanLogsStore:kQZ,deleteRequest:NnH,getMostRecentByStatus:F3h,markAsQueued:V8b,resetRequest:gH9,set:wFo},networkManager:_.M1h(),handleError:function(u,K,l){var D,d=l==null?void 0:(D=l.error)==null?void 0:D.code;if(d===400||d===415){var C;u=new _.wv(u.message,K,l==null?void 0:(C=l.error)==null?void 0:C.code);_.D_(u,void 0,void 0,void 0,!0)}else _.uZ(u)},
handleWarning:_.D_,sendFn:oUn,now:_.vA,writeError:ylH,jobManager:_.k5(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Sg("potential_esf_error_limit",10),getBooleanFlag:_.S,disableYtIdbTransactions:!(_.TB()&&_.qpR())});this.initializationPromise=new _.et;_.S("networkless_immediately_drop_all_requests")&&Zgq();BZq("LogsDatabaseV2")};
_.c(Xs,kv);_.orN=function(){var u=_.lZ("yt.networklessRequestController.instance");u||(u=new Xs,_.$L("yt.networklessRequestController.instance",u),_.S("networkless_logging")&&_.nU().then(function(K){u.databaseToken=K;uXw(u);u.initializationPromise.resolve();u.enableCleaning&&Math.random()<=u.cleaningRate&&u.databaseToken&&XF9(u.databaseToken);_.S("networkless_immediately_drop_sw_health_store")&&sNa(u)}));
return u};
Xs.prototype.writeThenSend=function(u,K){K||(K={});K=WQH(u,K);_.TB()||(this.initialized=!1);kv.prototype.writeThenSend.call(this,u,K)};
Xs.prototype.sendThenWrite=function(u,K,l){K||(K={});K=WQH(u,K);_.TB()||(this.initialized=!1);kv.prototype.sendThenWrite.call(this,u,K,l)};
Xs.prototype.sendAndWrite=function(u,K){K||(K={});K=WQH(u,K);_.TB()||(this.initialized=!1);kv.prototype.sendAndWrite.call(this,u,K)};
Xs.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var sNa=function(u){var K;_.H(function(l){if(!u.databaseToken)throw K=un("clearSWHealthLogsDb"),K;return l.return(mnq(u.databaseToken).catch(function(D){u.handleError(D)}))})};_.nUZ=!1;_.$E9=_.lL.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.nUZ};_.$L("ytNetworklessLoggingInitializationOptions",_.$E9);var Zs=function(u){var K=this;this.config_=null;u?this.config_=u:kI9()&&(this.config_=_.tP());_.Ve(_.YL,function(){JUq(K)},5E3)};
Zs.prototype.isReady=function(){!this.config_&&kI9()&&(this.config_=_.tP());return!!this.config_};
var PiH=function(u,K,l,D){!_.E3("VISITOR_DATA")&&K!=="visitor_id"&&Math.random()<.01&&_.D_(new _.wv("Missing VISITOR_DATA when sending innertube request.",K,l,D));if(!u.isReady()){var d=new _.wv("innertube xhrclient not ready",K,l,D);_.uZ(d);throw d;}var C={headers:D.headers||{},method:"POST",postParams:l,postBody:D.postBody,postBodyFormat:D.postBodyFormat||"JSON",onTimeout:function(){D.onTimeout()},
onFetchTimeout:D.onTimeout,onSuccess:function(t,x){if(D.onSuccess)D.onSuccess(x)},
onFetchSuccess:function(t){if(D.onSuccess)D.onSuccess(t)},
onProgress:function(t){if(D.onProgress)D.onProgress(t)},
onError:function(t,x){if(D.onError)D.onError(x)},
onFetchError:function(t){if(D.onError)D.onError(t)},
timeout:D.timeout,withCredentials:!0,compress:D.compress};C.headers["Content-Type"]||(C.headers["Content-Type"]="application/json");var W="";(d=u.config_.innertubeHostOverride)&&(W=d);var M=u.config_.innertubeUseThirdPartyAuth||!1,q=_.y_q(M,W,D);Object.assign(C.headers,q);C.headers.Authorization&&!W&&M&&(C.headers["x-origin"]=window.location.origin);var v=_.Wv(W+("/youtubei/"+u.config_.innertubeApiVersion+"/"+K),{alt:"json"}),G=function(t){t=t===void 0?!1:t;var x;if(D.retry&&W!="www.youtube-nocookie.com"&&
(t||_.S("skip_ls_gel_retry")||C.headers["Content-Type"]!=="application/json"||(x=fvH(K,l,q,M)),x)){var O=C.onSuccess,a=C.onFetchSuccess;C.onSuccess=function(p,V){QbZ(x);O(p,V)};
l.onFetchSuccess=function(p,V){QbZ(x);a(p,V)}}try{if(t&&D.retry&&!D.networklessOptions.bypassNetworkless)C.method="POST",D.networklessOptions.writeThenSend?_.orN().writeThenSend(v,C):_.orN().sendAndWrite(v,C);
else if(D.compress){var f=!D.networklessOptions.writeThenSend;if(C.postBody){var B=C.postBody;typeof B!=="string"&&(B=JSON.stringify(C.postBody));xnn(v,B,C,_.UP,f)}else xnn(v,JSON.stringify(C.postParams),C,zdr,f)}else _.S("web_all_payloads_via_jspb")?_.UP(v,C):zdr(v,C)}catch(p){if(p.name==="InvalidAccessError")x&&(QbZ(x),x=0),_.D_(Error("gd"));else throw p;}x&&_.Ve(_.YL,function(){JUq(u)},5E3)};
_.rly()?e8Z().then(function(t){G(t)}):G(!1)};var tYH=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(tYH,_.b5);var Wqk=0,GWh=_.ea?"webkit":_.zR?"moz":_.aj?"ms":tq9?"o":"";_.$L("ytDomDomGetNextId",_.lZ("ytDomDomGetNextId")||function(){return++Wqk});var HnN={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},$E=function(u){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(u=
u||window.event){this.event=u;for(var K in u)K in HnN||(this[K]=u[K]);this.scale=u.scale;this.rotation=u.rotation;var l=u.target||u.srcElement;l&&l.nodeType==3&&(l=l.parentNode);this.target=l;var D=u.relatedTarget;if(D)try{D=D.nodeName?D:null}catch(d){D=null}else this.type=="mouseover"?D=u.fromElement:this.type=="mouseout"&&(D=u.toElement);this.relatedTarget=D;this.clientX=u.clientX!=void 0?u.clientX:u.pageX;this.clientY=u.clientY!=void 0?u.clientY:u.pageY;this.keyCode=u.keyCode?u.keyCode:u.which;
this.charCode=u.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=u.altKey;this.ctrlKey=u.ctrlKey;this.shiftKey=u.shiftKey;this.metaKey=u.metaKey;this.pageX_=u.pageX;this.pageY_=u.pageY}}catch(d){}},MRs=function(u){if(document.body&&document.documentElement){var K=document.body.scrollTop+document.documentElement.scrollTop;
u.pageX_=u.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);u.pageY_=u.clientY+K}};
$E.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
$E.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
$E.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var qm=_.lL.ytEventsEventsListeners||{};_.$L("ytEventsEventsListeners",qm);var cln=_.lL.ytEventsEventsCounter||{count:0};_.$L("ytEventsEventsCounter",cln);var apL=_.T3(function(){var u=!1;try{var K=Object.defineProperty({},"capture",{get:function(){u=!0}});
window.addEventListener("test",null,K)}catch(l){}return u});_.Sa(r2,_.TZ);r2.prototype.onMouseMove_=function(u){u.pageX_===void 0&&MRs(u);var K=u.pageX_;u.pageY_===void 0&&MRs(u);this.position_=new _.XB(K,u.pageY_)};
r2.prototype.checkPosition_=function(){if(this.position_){var u=(0,_.vA)();if(this.previousTime_!=0){var K=this.previousPosition_,l=this.position_,D=K.x-l.x;K=K.y-l.y;D=Math.sqrt(D*D+K*K)/(u-this.previousTime_);this.cycles_[this.index_]=Math.abs((D-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(l=K=0;l<4;l++)K+=this.cycles_[l]||0;K>=3&&this.callback_();this.previousVelocity_=D}this.previousTime_=u;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
r2.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.zPr(this.mouseListenerKey_)};var fpH={};var TYH=new _.r3("rawColdConfigGroup");var i4r=new _.r3("rawHotConfigGroup");var qW2=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(qW2,_.b5);var GVw=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(GVw,_.b5);var Tr=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u,500)};
_.c(Tr,_.b5);Tr.prototype.getPayloadCase=function(){return _.wa(this,$Nm)};
Tr.prototype.getContext=function(){return _.fV(this,GVw,33)};
var $Nm=[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];var QTq=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(QTq,_.b5);var yBn=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(yBn,_.b5);yBn.prototype.setVideoId=function(u){return U5(this,1,sTh,T6(u))};
yBn.prototype.getPlaylistId=function(){return _.Qf(this,Bu(this,sTh,2))};
var sTh=[1,2];var a$w=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(a$w,_.b5);a$w.prototype.getContext=function(){return _.fV(this,fp,1)};
a$w.prototype.getTier=function(){return _.h0(this,7)};var nrC,xE,SH;nrC=_.lL.ytPubsubPubsubInstance||new _.Qx;xE=_.lL.ytPubsubPubsubSubscribedKeys||{};SH=_.lL.ytPubsubPubsubTopicToKeys||{};_.Qth=_.lL.ytPubsubPubsubIsSynchronous||{};_.Qx.prototype.subscribe=_.Qx.prototype.subscribe;_.Qx.prototype.unsubscribeByKey=_.Qx.prototype.unsubscribeByKey;_.Qx.prototype.publish=_.Qx.prototype.publish;_.Qx.prototype.clear=_.Qx.prototype.clear;_.$L("ytPubsubPubsubInstance",nrC);_.$L("ytPubsubPubsubTopicToKeys",SH);_.$L("ytPubsubPubsubIsSynchronous",_.Qth);
_.$L("ytPubsubPubsubSubscribedKeys",xE);var O5=window;var mR=_.S("web_enable_lifecycle_monitoring")&&pbq()!==0,rCa=_.S("web_enable_lifecycle_monitoring");var vra=function(u){var K=this;var l=l===void 0?0:l;var D=D===void 0?_.k5():D;this.JSC$10779_defaultPriority=l;this.scheduler=D;this.completedResolver=new _.et;this.scheduledPayloads=u;for(u={i$jscomp$487:0};u.i$jscomp$487<this.scheduledPayloads.length;u={payload$jscomp$19:void 0,i$jscomp$487:u.i$jscomp$487},u.i$jscomp$487++)u.payload$jscomp$19=this.scheduledPayloads[u.i$jscomp$487],l=function(d){return function(){d.payload$jscomp$19.job();K.scheduledPayloads[d.i$jscomp$487].processed=!0;K.scheduledPayloads.every(function(C){return C.processed===
!0})&&K.completedResolver.resolve()}}(u),D=this.getPriority(u.payload$jscomp$19),D=this.scheduler.addJob(l,D),this.scheduledPayloads[u.i$jscomp$487]=Object.assign({},u.payload$jscomp$19,{job:l,
jobId:D})};
vra.prototype.flushJobs=function(){var u=this,K=Array.from(this.scheduledPayloads.keys()).sort(function(D,d){return u.getPriority(u.scheduledPayloads[d])-u.getPriority(u.scheduledPayloads[D])});
K=_.y(K);for(var l=K.next();!l.done;l=K.next())l=this.scheduledPayloads[l.value],l.jobId===void 0||l.processed||(this.scheduler.cancelJob(l.jobId),this.scheduler.addJob(l.job,10))};
vra.prototype.cancel=function(){for(var u=_.y(this.scheduledPayloads),K=u.next();!K.done;K=u.next())K=K.value,K.jobId===void 0||K.processed||this.scheduler.cancelJob(K.jobId),K.processed=!0;this.completedResolver.resolve()};
vra.prototype.getPriority=function(u){var K;return(K=u.priority)!=null?K:this.JSC$10779_defaultPriority};var h7=function(u){this.state=u;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};mR&&irr(this.state)};
h7.prototype.install=function(u){this.plugins.push(u);return this};
h7.prototype.uninstall=function(){var u=this;_.uY.apply(0,arguments).forEach(function(K){K=u.plugins.indexOf(K);K>-1&&u.plugins.splice(K,1)})};
h7.prototype.transition=function(u,K){var l=this;mR&&TfR(this.state);var D=this.transitions.find(function(C){return Array.isArray(C.from)?C.from.find(function(W){return W===l.state&&C.to===u}):C.from===l.state&&C.to===u});
if(D){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);GSB(this,u,K);this.state=u;mR&&irr(this.state);D=D.action.bind(this);var d=this.plugins.filter(function(C){return C[u]}).map(function(C){return C[u]});
D(tRw(this,d),K)}else throw Error("hd`"+this.state+"`"+u);};
var tRw=function(u,K){var l=K.filter(function(d){return xNs(u,d)===10}),D=K.filter(function(d){return xNs(u,d)!==10});
return u.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var d=_.uY.apply(0,arguments);return _.H(function(C){if(C.nextAddress==1)return C.yield(u.runImmediateJobsAsync.apply(u,[l].concat(_.Am(d))),2);u.setJobSetWithScheduledJobs.apply(u,[D].concat(_.Am(d)));_.TG(C)})}:function(){var d=_.uY.apply(0,arguments);
u.runImmediateJobsSync.apply(u,[l].concat(_.Am(d)));u.setJobSetWithScheduledJobs.apply(u,[D].concat(_.Am(d)))}};
h7.prototype.runImmediateJobsSync=function(u){var K=_.uY.apply(1,arguments);_.k5();for(var l=_.y(u),D=l.next(),d={};!D.done;d={lifecycle$jscomp$2:void 0},D=l.next())d.lifecycle$jscomp$2=D.value,aT(function(C){return function(){SWH(C.lifecycle$jscomp$2.name);FQh(function(){return C.lifecycle$jscomp$2.callback.apply(C.lifecycle$jscomp$2,_.Am(K))});
Ec(C.lifecycle$jscomp$2.name)}}(d))};
h7.prototype.runImmediateJobsAsync=function(u){var K=_.uY.apply(1,arguments),l,D,d,C;return _.H(function(W){W.nextAddress==1&&(_.k5(),l=_.y(u),D=l.next(),d={});if(W.nextAddress!=3){if(D.done)return W.jumpTo(0);d.lifecycle$jscomp$3=D.value;d.asyncJobCompletion=void 0;C=function(M){return function(){SWH(M.lifecycle$jscomp$3.name);var q=FQh(function(){return M.lifecycle$jscomp$3.callback.apply(M.lifecycle$jscomp$3,_.Am(K))});
hGZ(q)?M.asyncJobCompletion=_.S("web_lifecycle_error_handling_killswitch")?q.then(function(){Ec(M.lifecycle$jscomp$3.name)}):q.then(function(){Ec(M.lifecycle$jscomp$3.name)},function(v){wbb(v);
Ec(M.lifecycle$jscomp$3.name)}):Ec(M.lifecycle$jscomp$3.name)}}(d);
aT(C);return d.asyncJobCompletion?W.yield(d.asyncJobCompletion,3):W.jumpTo(3)}d={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};D=l.next();return W.jumpTo(2)})};
h7.prototype.setJobSetWithScheduledJobs=function(u){var K=_.uY.apply(1,arguments),l=this,D=u.map(function(d){return{job:function(){SWH(d.name);FQh(function(){return d.callback.apply(d,_.Am(K))});
Ec(d.name)},
priority:xNs(l,d)}});
D.length&&(this.jobSet=new vra(D))};
var xNs=function(u,K){var l,D;return(D=(l=u.overridePriority)!=null?l:K.priority)!=null?D:0},SWH=function(u){mR&&u&&irr(u)},Ec=function(u){mR&&u&&TfR(u)},GSB=function(u,K,l){rCa&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+u.constructor.name+"] '"+u.state+"' to '"+K+"'"),console.log("with message: ",l),console.groupEnd())};
_.MN.Object.defineProperties(h7.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var bn0=function(u){h7.call(this,u===void 0?"none":u);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(){}}]},Ons;
_.c(bn0,h7);bn0.prototype.runApplicationNavigationBegin=function(u,K){var l=this;this.navigationTimer=_.Ve(_.YL,function(){l.currentState==="application_navigating"&&l.transition("none")},5E3);
u(K==null?void 0:K.event)};
bn0.prototype.runApplicationNavigationEnd=function(u,K){this.navigationTimer&&(_.YL.cancelJob(this.navigationTimer),this.navigationTimer=null);u(K==null?void 0:K.event)};
_.p1w=function(){Ons||(Ons=new bn0);return Ons};var BYw=[];_.$L("yt.logging.transport.getScrapedGelPayloads",function(){return BYw});var cu=function(){var u=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return u.totalEntries}}};
cu.prototype.storePayload=function(u,K){u=V1r(u);this.store[u]?this.store[u].push(K):(this.memoizedKeySequences={},this.store[u]=[K]);this.totalEntries++;_.S("more_accurate_gel_parser")&&(K=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(K));return u};
cu.prototype.smartExtractMatchingEntries=function(u){if(!u.keys.length)return[];for(var K=cCa(this,u.keys.splice(0,1)[0]),l=[],D=0;D<K.length;D++)this.store[K[D]]&&u.sizeLimit&&(this.store[K[D]].length<=u.sizeLimit?(l.push.apply(l,_.Am(this.store[K[D]])),delete this.store[K[D]]):l.push.apply(l,_.Am(this.store[K[D]].splice(0,u.sizeLimit))));this.totalEntries-=l.length;(u==null?0:u.sizeLimit)&&l.length<(u==null?void 0:u.sizeLimit)&&(u.sizeLimit-=l.length,l.push.apply(l,_.Am(this.smartExtractMatchingEntries(u))));
return l};
cu.prototype.extractMatchingEntries=function(u){u=cCa(this,u);for(var K=[],l=0;l<u.length;l++)this.store[u[l]]&&(K.push.apply(K,_.Am(this.store[u[l]])),delete this.store[u[l]]);this.totalEntries-=K.length;return K};
cu.prototype.getSequenceCount=function(u){u=cCa(this,u);for(var K=0,l=0;l<u.length;l++){var D=void 0;K+=((D=this.store[u[l]])==null?void 0:D.length)||0}return K};
var cCa=function(u,K){var l=V1r(K);if(u.memoizedKeySequences[l])return u.memoizedKeySequences[l];var D=Object.keys(u.store)||[];if(D.length<=1&&V1r(K)===D[0])return D;for(var d=[],C=0;C<D.length;C++){var W=D[C].split("/");if(a80(K.auth,W[0])){var M=K.isJspb;a80(M===void 0?"undefined":M?"true":"false",W[1])&&a80(K.cttAuthInfo,W[2])&&(M=K.tier,M=M===void 0?"undefined":JSON.stringify(M),a80(M,W[3])&&d.push(D[C]))}}return u.memoizedKeySequences[l]=d},a80=function(u,K){return u===void 0||u==="undefined"?
!0:u===K};
cu.prototype.getSequenceCount=cu.prototype.getSequenceCount;cu.prototype.extractMatchingEntries=cu.prototype.extractMatchingEntries;cu.prototype.smartExtractMatchingEntries=cu.prototype.smartExtractMatchingEntries;cu.prototype.storePayload=cu.prototype.storePayload;var von,noq,GH9,eH,zS0,goq,VXy,$Iq,q4q,l$r,rBq,JB9,WEw;von=_.Sg("initial_gel_batch_timeout",2E3);noq=_.Sg("gel_queue_timeout_max_ms",6E4);GH9=_.Sg("gel_min_batch_size",5);eH=void 0;zS0=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
goq=new zS0;VXy=new zS0;$Iq=new zS0;q4q=new zS0;rBq=!0;JB9=1;_.Ptb=new Map;WEw=_.lL.ytLoggingTransportTokensToCttTargetIds_||{};_.$L("ytLoggingTransportTokensToCttTargetIds_",WEw);var ooL=_.lL.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.$L("ytLoggingTransportTokensToJspbCttTargetIds_",ooL);var zr={};var Nm=_.lL.ytLoggingGelSequenceIdObj_||{};_.$L("ytLoggingGelSequenceIdObj_",Nm);var Y4R=[];var Cer=new Set,Eow=0,oYq=0,sww=0,ufq=[],LEq=[],Woq=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var O1H=function(){};
O1H.prototype.getUrl=function(u,K){K=K===void 0?!1:K;return u.hasOwnProperty("shareEndpoint")?null:_.$XH(u,null,K)};
var JNL=function(u,K,l){u={endpoint:K,actions:[]};l=(l.path?l.path[0]:l.target).icon||"";K=l.indexOf(":");K>0&&(l=l.substr(K+1));l&&u.actions.push(l);return u};var xXR=/Command$/,tUq=/Endpoint$/,rKq=new Map;var eSm,RSC;eSm=1;_.Ci=function(){this.actionRoutingMap=new Map};
_.Ci.prototype.triggerAction=function(u){var K=new hYo(u,!1,_.uY.apply(1,arguments));this.handleAction(K);return K.returnValue};
_.Ci.prototype.triggerOptionalAction=function(u){var K=new hYo(u,!0,_.uY.apply(1,arguments));this.handleAction(K);return K.returnValue};
_.Le=function(u,K,l){K.forEach(function(D){var d=GTb(D);d&&u.triggerOptionalAction(d,D,l,void 0)})};
_.Ci.prototype.handleAction=function(u){var K=this.actionRoutingMap.get(u.actionName);K&&RSC(u,K);u.optionalAction||u.returnValue.length!==0||(u=new _.wv("Unhandled action",u.actionName),_.D_(u))};
RSC=function(u,K){K.forEach(function(l){var D=null;l?D=l.apply(null,u.args):(l=Error("id"),l.params=u.actionName,_.uZ(l));u.returnValue.push(D)})};
_.I9=function(u,K,l){l||(l=eSm++);for(var D=_.y(Object.keys(K)),d=D.next();!d.done;d=D.next()){d=d.value;var C=u.actionRoutingMap.get(d);C||(C=new Map,u.actionRoutingMap.set(d,C));u.registerActionHandler(l,d,K[d],C)}return l};
_.Ci.prototype.registerActionHandler=function(u,K,l,D){D.set(u,_.KT(l))};
_.yH=function(u,K,l){K=_.y(Object.keys(K));for(var D=K.next();!D.done;D=K.next())(D=u.actionRoutingMap.get(D.value))&&D.delete(l)};
_.t0(_.Ci);var zEh=function(u,K){var l=_.Ci.getInstance();_.ZY(function(){var D={},d=_.I9(l,(D[u]=K,D));_.No(function(){var C={};_.yH(l,(C[u]="",C),d)})})};var x5q=Symbol("kd");Jpr=WqL;var gYo=new Set(["For","If","Match","Watch"]),UNH={},f8C=(UNH[LI.default]=function(){return z5y},UNH.style=function(){return z5y},UNH),QNC;
for(QNC in f8C)$T.attributes[QNC]=f8C[QNC]($T.attributes[QNC]);var ni=new _.G$("VISIBILITY_OBSERVER");var Lob={retrieve:function(u){return this.id.\u0275prov.token===u.\u0275prov.token?this.contextValue:this?s$y(this,this.id):Iqn}};var iER=function(u,K,l){if(u!==H4)return!1;u=pJh(document.createElement("div"),function(){var D=t8(!1);try{l[0]()}finally{t8(D)}});
u=Array.from(u.childNodes);u.length===1&&(u=u[0]);return u};var P0s=function(u){u=u.clone();d7k(u);wO(u,"dg",null);wO(u,"d","0");u0s(u,null);Kgk(u,null);return u},JCH=!0,jNm=function(u,K,l){var D=l===void 0?{}:l;
l=D.cssRowKey===void 0?void 0:D.cssRowKey;var d=D.combinedSignature===void 0?void 0:D.combinedSignature;var C=D.extraEdges===void 0?void 0:D.extraEdges;D=D.callback===void 0?void 0:D.callback;wO(u,"m",K.join(","));C&&D7S(u,C);l&&(wO(u,"ck",l),d?wO(u,"rs",d):JCH&&(JCH=!1));if(D){if(D!=null&&!y9s.test(D))throw Error("Xa`"+D);wO(u,"cb",D)}u=u.toString();_.dq(u,"/")&&(u=PGk(document.location.href)+u);return _.Fz(u)};var p_N=function(u){return BMa(u).then(function(K){return JSON.parse(K.responseText)})},BMa=function(u){var K={},l=K.xmlHttpFactory?K.xmlHttpFactory.createInstance():SyN.createInstance();
return(new _.RL(function(D,d){var C;try{l.open("GET",u,!0)}catch(q){d(new u1("Error opening XHR: "+q.message,u,l))}l.onreadystatechange=function(){if(l.readyState==4){_.lL.clearTimeout(C);var q;!(q=x0C(l.status))&&(q=l.status===0)&&(q=Q2R(u),q=!(q=="http"||q=="https"||q==""));q?D(l):d(new inB(l.status,u,l))}};
l.onerror=function(){d(new u1("Network error",u,l))};
if(K.headers)for(var W in K.headers){var M=K.headers[W];M!=null&&l.setRequestHeader(W,M)}K.withCredentials&&(l.withCredentials=K.withCredentials);K.responseType&&(l.responseType=K.responseType);K.mimeType&&l.overrideMimeType(K.mimeType);K.timeoutMs>0&&(C=_.lL.setTimeout(function(){l.onreadystatechange=function(){};
l.abort();d(new TMC(u,l))},K.timeoutMs));
try{l.send(null)}catch(q){l.onreadystatechange=function(){},_.lL.clearTimeout(C),d(new u1("Error sending XHR: "+q.message,u,l))}})).thenCatch(function(D){D instanceof _.dr&&l.abort();
throw D;})},u1=function(u,K,l){_.uL.call(this,u+", url="+K);
this.url=K;this.xhr=l};
_.Sa(u1,_.uL);u1.prototype.name="XhrError";var inB=function(u,K,l){u1.call(this,"Request Failed, status="+u,K,l);this.status=u};
_.Sa(inB,u1);inB.prototype.name="XhrHttpError";var TMC=function(u,K){u1.call(this,"Request timed out",u,K)};
_.Sa(TMC,u1);TMC.prototype.name="XhrTimeoutError";GR=GR||{};var KW=function(){_.TZ.call(this)};
_.Sa(KW,_.TZ);KW.prototype.initialize=function(){};var w_w=function(u,K){this.fn_=u;this.handler_=K};
w_w.prototype.execute=function(u){this.fn_&&(this.fn_.call(this.handler_||null,u),this.fn_=this.handler_=null)};
w_w.prototype.abort=function(){this.handler_=this.fn_=null};var l1=function(u,K){_.TZ.call(this);this.deps_=u;this.JSC$10906_id_=K;this.onloadCallbacks_=[];this.JSC$10906_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Sa(l1,_.TZ);l1.prototype.moduleConstructor_=KW;l1.prototype.module_=null;l1.prototype.getId=function(){return this.JSC$10906_id_};
l1.prototype.registerCallback=function(u,K){return Fqw(this.onloadCallbacks_,u,K)};
var VRm=function(u,K){Fqw(u.JSC$10906_onErrorCallbacks_,K)},Fqw=function(u,K,l){K=new w_w(K,l);
u.push(K);return K};
l1.prototype.isLoaded=function(){return!!this.module_};
l1.prototype.onLoad=function(u){var K=new this.moduleConstructor_;K.initialize(u());this.module_=K;K=(K=grC(this.earlyOnloadCallbacks_,u()))||grC(this.onloadCallbacks_,u());K||(this.JSC$10906_onErrorCallbacks_.length=0);return K};
l1.prototype.onError=function(u){(u=grC(this.JSC$10906_onErrorCallbacks_,u))&&DH(Error("od`"+u));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var grC=function(u,K){for(var l=[],D=0;D<u.length;D++)try{u[D].execute(K)}catch(d){DH(d),l.push(d)}u.length=0;return l.length?l:null};
l1.prototype.disposeInternal=function(){l1.superClass_.disposeInternal.call(this);_.qt(this.module_)};var NM2,mNN,AC2,X_a,ZnS,YWC,Kfw,LqC,uim;
_.dV=function(u,K,l,D,d){D=D===void 0?!1:D;d=d===void 0?!1:d;var C=C===void 0?!0:C;this.scsReferenceUrl_=Uhn(_.VS(u).toString(),C);this.cssRowKey_=K;this.combinedSignature_=l;this.useNegativeLoading_=D;this.requestedModuleMap_={};this.JSC$10909_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(u=T2(this.scsReferenceUrl_,"excm"))?u.split(","):[];this.shouldScanForCss_=d;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;fqZ();_.DF(this,l_a(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
NM2=function(u,K){if(K.href||K.getAttribute("data-href"))if(K=K.href||K.getAttribute("data-href"),aqy(K)&&!Uhn(K).urlPrefix_.endsWith("_/js/")){K=l_a(Uhn(K));K=_.y(K);for(var l=K.next();!l.done;l=K.next())l=l.value,u.loadedCssModuleList_.includes(l)||u.loadedCssModuleList_.push(l)}};
_.dV.prototype.JSC$10911_loadModules=function(u,K,l){var D=l===void 0?{}:l;l=D.extraEdges;var d=D.onError;var C=D.onSuccess;D=D.forceReload;this.JSC$10909_moduleInfoMap_=K;if(!u)throw Error("pd");if(this.shouldScanForCss_){K=_.y(document.getElementsByTagName("style"));for(var W=K.next();!W.done;W=K.next())NM2(this,W.value);K=_.y(document.getElementsByTagName("link"));for(W=K.next();!W.done;W=K.next())NM2(this,W.value)}kSm(this,ZnS(this,u),l,d,C,D)};
var kSm=function(u,K,l,D,d,C){D=D===void 0?function(){}:D;
d=d===void 0?function(){}:d;
C=C===void 0?!1:C;YWC(u,K,function(W,M,q){q=q===void 0?M:q;u.enableFallbackFetch&&C?u.loadWithFetch(W,M,D,d,q):u.load(W,M,D,d,q,l)},l)||D(-1)};
_.dV.prototype.loadWithFetch=function(){_.H(function(){throw Error("qd");})};
_.dV.prototype.maybeSetAdditionalFields=function(){};
mNN=function(u,K,l){if(u.useNegativeLoading_){var D=u.scsReferenceUrl_;u={cssRowKey:u.cssRowKey_,combinedSignature:u.combinedSignature_,extraEdges:l,requestedModuleIds:AC2(u),requestedCssModuleIds:X_a(u)};var d=u===void 0?{}:u;u=d.requestedModuleIds===void 0?[]:d.requestedModuleIds;l=d.requestedCssModuleIds===void 0?[]:d.requestedCssModuleIds;var C=d.cssRowKey===void 0?void 0:d.cssRowKey;var W=d.combinedSignature===void 0?void 0:d.combinedSignature;var M=d.extraEdges===void 0?void 0:d.extraEdges;
d=d.callback===void 0?void 0:d.callback;D=P0s(D);wO(D,"d","1");u0s(D,u);Kgk(D,l);K=jNm(D,K,{cssRowKey:C,combinedSignature:W,extraEdges:M,callback:d})}else D=u.scsReferenceUrl_,u={cssRowKey:u.cssRowKey_,combinedSignature:u.combinedSignature_,requestedModuleIds:AC2(u),requestedCssModuleIds:X_a(u)},M=u===void 0?{}:u,u=M.requestedCssModuleIds===void 0?[]:M.requestedCssModuleIds,l=M.cssRowKey===void 0?void 0:M.cssRowKey,C=M.combinedSignature===void 0?void 0:M.combinedSignature,W=M.extraEdges===void 0?
void 0:M.extraEdges,M=M.callback===void 0?void 0:M.callback,D=P0s(D),Kgk(D,u),K=jNm(D,K,{cssRowKey:l,combinedSignature:C,extraEdges:W,callback:M});return K};
_.DF=function(u,K){for(var l=!1,D=[],d=0;d<K.length;++d){var C=K[d];u.requestedModuleMap_[C]||(u.requestedModuleMap_[C]=!0,u.requestedModuleList_.push(C),l=!0,D.push(C))}l&&(u.requestedModuleListSorted_=!1)};
_.CW=function(u,K){for(var l=[],D=0;D<K.length;++D){var d=K[D];u.requestedModuleMap_[d]&&(delete u.requestedModuleMap_[d],_.AH(u.requestedModuleList_,d),l.push(d))}};
_.dV.prototype.load=function(u,K,l,D,d){d=d===void 0?K:d;_.VS(u);var C=this.useCors_,W=this.corsMode_,M=this.fetchPriority,q=_.PO("SCRIPT");_.$P(q,u);C&&(q.crossOrigin=W);q.async=!1;M&&q.setAttribute("fetchpriority",M);_.DF(this,K);_.hSA(this,u,q,K,l,D,d)};
_.hSA=function(u,K,l,D,d,C,W){W=W===void 0?D:W;u.lastScript_=l;u.insertPos.insertBefore(l,u.insertPos.firstChild);_.ErR(l,D,function(){l.parentElement.removeChild(l);u.lastScript_==l&&(u.lastScript_=null);var M=new Set;D.map(function(v){return M.add(v)});
for(var q in u.JSC$10909_moduleInfoMap_)u.JSC$10909_moduleInfoMap_[q].isLoaded()&&M.add(q);Array.from(M);C()},function(M){l.parentElement.removeChild(l);
u.lastScript_==l&&(u.lastScript_=null);_.CW(u,M);u.pendingModuleGraphUpdate_?u.pendingModuleGraphUpdate_.then(function(){d(-1,K)}):d(-1,K)},W)};
_.ErR=function(u,K,l,D,d){d=d===void 0?K:d;var C=K.length,W=function(){C=0;u.onload=null;u.onerror=null;M=function(){}},M=function(){W();
var v=d.filter(function(G){return!kV().getModuleInfo(G).isLoaded()});
v.length!==0?D(v,"Response was successful but was missing module(s) "+v+"."):l()},q=function(){C--;
C==0&&M()};
K.forEach(function(v){v=kV().getModuleInfo(v);v.isLoaded()?q():(Fqw(v.earlyOnloadCallbacks_,q),VRm(v,q))});
u.onload=function(){return M()};
u.onerror=function(){W();D(K)}};
AC2=function(u){u.requestedModuleListSorted_||(u.requestedModuleListSorted_=!0,u.requestedModuleList_.sort());return u.requestedModuleList_};
X_a=function(u){u=u.loadedCssModuleList_;u.sort();return u};
ZnS=function(u,K){return K.filter(function(l){return!u.requestedModuleMap_[l]})};
YWC=function(u,K,l,D){if(u.pendingModuleGraphUpdate_)return u.pendingModuleGraphUpdate_.then(function(){YWC(u,K,l,D)}),!0;
if(!u.useNegativeLoading_){var d=[],C=Object.assign({},u.requestedModuleMap_);LqC(u,K,function(G){d.push(G.getId())},D,function(G){return!G.isLoaded()},C);
K=d}for(C=0;C<K.length;){for(var W=K.length-C,M=C==0?K:K.slice(C,K.length),q=mNN(u,M,D),v=_.VS(q).toString();v.length>u.urlMaxLength;)if(W>1)W-=Math.ceil((v.length-u.urlMaxLength)/6),W=Math.max(W,1),M=K.slice(C,C+W),q=mNN(u,M,D),v=_.VS(q).toString();else return u.useNegativeLoading_?(u.useNegativeLoading_=!1,u.pendingModuleGraphUpdate_=uim(u).then(function(G){Kfw(u,G,D)}),YWC(u,K.slice(C),l,D)):!1;
C+=W;u.useNegativeLoading_?l(q,M):l(q,M,C===K.length?K:[])}return!0};
Kfw=function(u,K,l){kV().setAllModuleInfoString((K||{}).moduleGraph);LqC(u,AC2(u),function(D){_.DF(u,[D.getId()])},l);
u.pendingModuleGraphUpdate_=null};
LqC=function(u,K,l,D,d,C){C=C===void 0?{}:C;var W=kV();K=_.y(K);for(var M=K.next();!M.done;M=K.next()){M=M.value;var q=W.getModuleInfo(M);if(!(C[M]||d&&!d(q))){C[M]=!0;var v=q.deps_||[];if(D){var G=[];D[M]&&(G=Object.keys(D[M]));v=v.concat(G)}LqC(u,v,l,D,d,C);l(q)}}};
uim=function(u){u=u.scsReferenceUrl_.clone();d7k(u);wO(u,"dg",null);wO(u,"md","1");return p_N(u.toString())};var lSH=new Uint8Array(123);var ly0=[];var DBS=function(){this.JSC$9982_loader_=null};
_.I=DBS.prototype;_.I.setBatchModeEnabled=function(){};
_.I.setAllModuleInfoString=function(){};
_.I.addExtraEdge=function(){throw Error("rd");};
_.I.removeExtraEdge=function(){throw Error("sd");};
_.I.getModuleContext=function(){return null};
_.I.isActive=function(){return!1};
_.I.isUserActive=function(){return!1};
_.I.registerCallback=function(){};var Io=function(u,K,l,D,d){var C=Error.call(this);this.message=C.message;"stack"in C&&(this.stack=C.stack);this.name="ModuleLoadFailure";this.type=u;this.status=K;this.requestedModuleIds=l;this.url=D;this.cause=d;this.message=this.toString()};
_.c(Io,Error);Io.prototype.toString=function(){return dBH(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var dBH=function(u){switch(u.type){case Io.Type.UNAUTHORIZED:return"Unauthorized";case Io.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Io.Type.TIMEOUT:return"Timed out";case Io.Type.OLD_CODE_GONE:return"Out of date module id";case Io.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+u.type}};
GR.ModuleLoadFailure=Io;GR.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var y9=function(){this.moduleIds_=this.JSC$9982_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$10924_extraEdges_={};this.JSC$10924_callbackMap_={};this.JSC$10924_currentlyLoadingModule_=this.baseModuleInfo_=new l1([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new oM;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Sa(y9,DBS);var CIa=function(u,K){_.uL.call(this,"Error loading "+u+": "+K)};
_.Sa(CIa,_.uL);y9.prototype.setBatchModeEnabled=function(u){this.batchModeEnabled_=u};
y9.prototype.setAllModuleInfoString=function(u,K){if(!(this instanceof y9))this.setAllModuleInfoString(u,K);else if(typeof u==="string"){if(u.startsWith("d$")){u=u.substring(2);for(var l=[],D=0,d=u.indexOf("/"),C=0,W=!1,M=0;;){var q=W?u.substring(C):u.substring(C,d);if(q.length===0)D++,C="sy"+D.toString(36),q=[];else{var v=q.indexOf(":");if(v<0)C=q,q=[];else if(v===q.length-1)C=q.substring(0,v),q=Array(l[M-1]);else{C=q.substring(0,v);q=q.substring(v+1).split(",");v=M;for(var G=0;G<q.length;G++)v-=
q[G].length===0?1:Number(q[G]),q[G]=l[v]}v=0;if(C.length===0)v=1;else if(C.charAt(0)==="+"||C.charAt(0)==="-")v=Number(C);v!==0&&(D+=v,C="sy"+D.toString(36))}l.push(C);IyB(this,C,q);if(W)break;C=d+1;d=u.indexOf("/",C);d===-1&&(W=!0);M++}this.moduleIds_=l}else if(u.startsWith("p$"))ysk(this,u);else{u=u.split("/");l=[];for(D=0;D<u.length;D++){M=u[D].split(":");d=M[0];W=[];if(M[1])for(W=M[1].split(","),M=0;M<W.length;M++)W[M]=l[parseInt(W[M],36)];l.push(d);IyB(this,d,W)}this.moduleIds_=l}K&&K.length?
(_.L9(this.loadingModuleIds_,K),this.lastInitialModuleId_=_.p9(K)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$10924_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$10924_currentlyLoadingModule_=null,(K=this.baseModuleInfo_.onLoad((0,_.wB)(this.getModuleContext,this)))&&K.length&&syN(this,new GR.ModuleLoadFailure(GR.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,K[0])),sC(this))}};
var ysk=function(u,K){var l=K.substring(2);for(K=0;K<64;K++)lSH["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(K)]=K;var D={buf:l,pos:0};G9(D);var d=G9(D),C=G9(D)+1;K=Array(d);var W=Array(d),M=Array(d);C=Array(C);var q=0,v=0,G=D.pos,t=D.buf.indexOf("|",D.pos);D.pos=t+1;for(t=0;t<d;t++){var x=G9(D),O=x&2,a=x&1;x>>>=2;a?(q+=x>>>1^-(x&1),x="sy"+q.toString(36)):(a=G,G+=x,x=l.substring(a,G));K[t]=x;O&&(C[v++]=x)}C[v]="";D.pos++;v=d&-2;l=d&1;for(q=0;q<v;q+=2)G=DCq(D),M[q]=
G&7,M[q+1]=G>>>3&7;l&&(l=DCq(D),M[v]=l&7);D.pos++;for(v=0;v<d;v++)M[v]===7&&(M[v]=G9(D));D.pos++;for(l=v=0;l<d;l++){q=M[l];G=q===0?ly0:Array(q);W[l]=G;t=v;for(O=0;O<q;O++)t-=G9(D),G[O]=C[t];C[v]===K[l]&&v++}for(D=0;D<K.length;D++)IyB(u,K[D],W[D]);u.moduleIds_=K};
_.I=y9.prototype;_.I.getModuleInfo=function(u){return this.moduleInfoMap[u]};
_.I.addExtraEdge=function(u,K){var l=this.getModuleInfo(u);l&&l.isLoaded()?this.load(K):(this.JSC$10924_extraEdges_[u]||(this.JSC$10924_extraEdges_[u]={}),this.JSC$10924_extraEdges_[u][K]=!0)};
_.I.removeExtraEdge=function(u,K){if(this.JSC$10924_extraEdges_[u]){delete this.JSC$10924_extraEdges_[u][K];for(var l in this.JSC$10924_extraEdges_[u])return;delete this.JSC$10924_extraEdges_[u]}};
_.I.isActive=function(){return this.loadingModuleIds_.length>0};
_.I.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var sC=function(u){var K=u.lastActive_,l=u.isActive();l!=K&&(u.executeCallbacks_(l?"active":"idle"),u.lastActive_=l);K=u.isUserActive();K!=u.userLastActive_&&(u.executeCallbacks_(K?"userActive":"userIdle"),u.userLastActive_=K)},IyB=function(u,K,l){u.moduleInfoMap[K]?(u=u.moduleInfoMap[K].deps_,u!=l&&u.splice.apply(u,[0,
u.length].concat(_.Am(l)))):u.moduleInfoMap[K]=new l1(l,K)},Wfa=function(u,K,l){var D=[];
IC(K,D);K=[];for(var d={},C=0;C<D.length;C++){var W=D[C],M=u.getModuleInfo(W);if(!M)throw Error("td`"+W);var q=new oM;d[W]=q;M.isLoaded()?q.callback(null):(osR(u,W,M,!!l,q),u.isModuleLoading(W)||K.push(W))}K.length>0&&(u.loadingModuleIds_.length===0?u.loadModules_(K):(u.requestedModuleIdsQueue_.push(K),sC(u)));return d},osR=function(u,K,l,D,d){l.registerCallback(d.callback,d);
VRm(l,function(C){d.errback(new CIa(K,C))});
u.isModuleLoading(K)?D&&(HNa(u,K),sC(u)):D&&HNa(u,K)};
y9.prototype.loadModules_=function(u,K,l){var D=this;K||(this.consecutiveFailures_=0);var d=Myk(this,u);this.loadingModuleIds_=d;this.requestedLoadingModuleIds_=this.batchModeEnabled_?u:_.Xq(d);sC(this);if(d.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,d);if(Object.keys(this.JSC$10924_extraEdges_).length>0&&!this.JSC$9982_loader_.supportsExtraEdges)throw Error("ud");u=(0,_.wB)(this.JSC$9982_loader_.JSC$10911_loadModules,this.JSC$9982_loader_,_.Xq(d),this.moduleInfoMap,
{extraEdges:this.JSC$10924_extraEdges_,forceReload:!!l,onError:function(C,W){var M=D.requestedLoadingModuleIds_;C=C!=null?C:void 0;D.consecutiveFailures_++;var q=_.Xq(d);D.requestedLoadingModuleIds_=M;d.forEach(_.Js(_.AH,D.requestedModuleIds_),D);C==401?(syN(D,new GR.ModuleLoadFailure(GR.ModuleLoadFailure.Type.UNAUTHORIZED,C)),D.requestedModuleIdsQueue_.length=0):C==410?(qxH(D,new GR.ModuleLoadFailure(GR.ModuleLoadFailure.Type.OLD_CODE_GONE,C)),$BR(D)):D.consecutiveFailures_>=3?(qxH(D,new GR.ModuleLoadFailure(GR.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
C,q,W)),$BR(D)):D.loadModules_(D.requestedLoadingModuleIds_,!0,C==8001||!1)},
onTimeout:(0,_.wB)(this.handleLoadTimeout_,this)});(K=Math.pow(this.consecutiveFailures_,2)*5E3)?_.lL.setTimeout(u,K):u()}};
var Myk=function(u,K){K=K.filter(function(d){return u.moduleInfoMap[d].isLoaded()?(_.lL.setTimeout(function(){return Error("vd`"+d)},0),!1):!0});
for(var l=[],D=0;D<K.length;D++)l=l.concat(nsw(u,K[D]));IC(l);return!u.batchModeEnabled_&&l.length>1?(K=l.shift(),u.requestedModuleIdsQueue_=l.map(function(d){return[d]}).concat(u.requestedModuleIdsQueue_),[K]):l},nsw=function(u,K){var l=_.k$.createSet(u.requestedModuleIds_),D=[];
l[K]||D.push(K);K=[K];for(var d=0;d<K.length;d++)for(var C=u.getModuleInfo(K[d]).deps_,W=C.length-1;W>=0;W--){var M=C[W];u.getModuleInfo(M).isLoaded()||l[M]||(D.push(M),K.push(M))}D.reverse();IC(D);return D};
y9.prototype.JSC$10919_setLoaded=function(){if(this.JSC$10924_currentlyLoadingModule_){var u=this.JSC$10924_currentlyLoadingModule_.getId(),K=[];if(this.JSC$10924_extraEdges_[u]){for(var l=_.y(Object.keys(this.JSC$10924_extraEdges_[u])),D=l.next();!D.done;D=l.next()){D=D.value;var d=this.getModuleInfo(D);d&&!d.isLoaded()&&(this.removeExtraEdge(u,D),K.push(D))}this.loadMultiple(K)}this.isDisposed()||((K=this.moduleInfoMap[u].onLoad((0,_.wB)(this.getModuleContext,this)))&&K.length&&syN(this,new GR.ModuleLoadFailure(GR.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,K[0])),_.AH(this.userInitiatedLoadingModuleIds_,u),_.AH(this.loadingModuleIds_,u),this.loadingModuleIds_.length===0&&$BR(this),this.lastInitialModuleId_&&u==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),sC(this),this.JSC$10924_currentlyLoadingModule_=null)}};
y9.prototype.isModuleLoading=function(u){if(_.Vn(this.loadingModuleIds_,u))return!0;for(var K=0;K<this.requestedModuleIdsQueue_.length;K++)if(_.Vn(this.requestedModuleIdsQueue_[K],u))return!0;return!1};
y9.prototype.load=function(u,K){return Wfa(this,[u],K)[u]};
y9.prototype.loadMultiple=function(u){return Wfa(this,u)};
var HNa=function(u,K){_.Vn(u.userInitiatedLoadingModuleIds_,K)||u.userInitiatedLoadingModuleIds_.push(K)};
y9.prototype.beforeLoadModuleCode=function(u){var K=this;this.JSC$10924_currentlyLoadingModule_&&this.JSC$10924_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$10919_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[u]&&rsB(this,this.moduleInfoMap[u].deps_||[],function(l){l.module_=new KW;_.AH(K.loadingModuleIds_,l.getId())},function(l){return!l.isLoaded()});
this.JSC$10924_currentlyLoadingModule_=this.getModuleInfo(u)};
y9.prototype.handleLoadTimeout_=function(){qxH(this,new GR.ModuleLoadFailure(GR.ModuleLoadFailure.Type.TIMEOUT));$BR(this)};
var qxH=function(u,K){u.requestedLoadingModuleIds_.length>1?u.requestedModuleIdsQueue_=u.requestedLoadingModuleIds_.map(function(l){return[l]}).concat(u.requestedModuleIdsQueue_):syN(u,K)},syN=function(u,K){var l=u.requestedLoadingModuleIds_;
u.loadingModuleIds_.length=0;for(var D=[],d=0;d<u.requestedModuleIdsQueue_.length;d++){var C=u.requestedModuleIdsQueue_[d].filter(function(q){var v=nsw(this,q);return oL(l,function(G){return _.Vn(v,G)})},u);
_.L9(D,C)}for(d=0;d<l.length;d++)_.Nw(D,l[d]);for(d=0;d<D.length;d++){for(C=0;C<u.requestedModuleIdsQueue_.length;C++)_.AH(u.requestedModuleIdsQueue_[C],D[d]);_.AH(u.userInitiatedLoadingModuleIds_,D[d])}if(d=u.JSC$10924_callbackMap_.error)for(C=0;C<d.length;C++)for(var W=d[C],M=0;M<D.length;M++)W("error",D[M],K);for(D=0;D<l.length;D++)if(u.moduleInfoMap[l[D]])u.moduleInfoMap[l[D]].onError(K);u.requestedLoadingModuleIds_.length=0;sC(u)},$BR=function(u){for(;u.requestedModuleIdsQueue_.length;){var K=
u.requestedModuleIdsQueue_.shift().filter(function(l){return!this.getModuleInfo(l).isLoaded()},u);
if(K.length>0){u.loadModules_(K);return}}sC(u)};
y9.prototype.registerCallback=function(u,K){Array.isArray(u)||(u=[u]);for(var l=0;l<u.length;l++){var D=u[l],d=K,C=this.JSC$10924_callbackMap_;C[D]||(C[D]=[]);C[D].push(d)}};
y9.prototype.executeCallbacks_=function(u){for(var K=this.JSC$10924_callbackMap_[u],l=0;K&&l<K.length;l++)K[l](u)};
var rsB=function(u,K,l,D,d){D=D===void 0?function(){return!0}:D;
d=d===void 0?{}:d;K=_.y(K);for(var C=K.next();!C.done;C=K.next()){C=C.value;var W=u.getModuleInfo(C);!d[C]&&D(W)&&(d[C]=!0,rsB(u,W.deps_||[],l,D,d),l(W))}};
y9.prototype.dispose=function(){_.$V(_.k$.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$10924_callbackMap_={};this.isDisposed_=!0};
y9.prototype.isDisposed=function(){return this.isDisposed_};
_.Nt=function(){return new y9};var vsm=[5E3,2E4],GAa=function(){this.JSC$9982_loader_=null;this.JSC$10932_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$10932_queue_=[];this.JSC$10932_extraEdges_=Object.create(null);this.JSC$10932_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.c(GAa,DBS);_.I=GAa.prototype;_.I.setAllModuleInfoString=function(){this.JSC$10932_currentlyLoadingModule_&&this.JSC$10932_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$10919_setLoaded()};
_.I.getModuleInfo=function(u){var K=this.JSC$10932_moduleInfoMap_[u];K||(K=new l1([],u),this.JSC$10932_moduleInfoMap_[u]=K);return K};
_.I.addExtraEdge=function(u,K){this.getModuleInfo(u).isLoaded()?this.load(K):(this.JSC$10932_extraEdges_[u]||(this.JSC$10932_extraEdges_[u]={}),this.JSC$10932_extraEdges_[u][K]=!0)};
_.I.removeExtraEdge=function(u,K){if(this.JSC$10932_extraEdges_[u]){delete this.JSC$10932_extraEdges_[u][K];for(var l in this.JSC$10932_extraEdges_[u])return;delete this.JSC$10932_extraEdges_[u]}};
_.I.isModuleLoading=function(u){return!!this.loadingModules_[u]};
_.I.load=function(u){ty0(this,[u]);return xBH(this,u)};
_.I.loadMultiple=function(u){var K=this,l=Object.create(null),D=[];u.forEach(function(d){l[d]||(l[d]=xBH(K,d),D.push(d))});
ty0(this,D);return l};
_.I.beforeLoadModuleCode=function(u){var K;((K=this.JSC$10932_currentlyLoadingModule_)==null?void 0:K.getId())==="synthetic_module_overhead"&&this.JSC$10919_setLoaded();var l,D;SxS(this,(D=(l=this.JSC$10932_moduleInfoMap_[u])==null?void 0:l.deps_)!=null?D:[],function(d){d.module_=new KW},function(d){return!d.isLoaded()});
this.JSC$10932_currentlyLoadingModule_=this.getModuleInfo(u)};
_.I.JSC$10919_setLoaded=function(){if(this.JSC$10932_currentlyLoadingModule_){var u=this.JSC$10932_currentlyLoadingModule_.getId(),K=[];if(this.JSC$10932_extraEdges_[u]){for(var l=_.y(Object.keys(this.JSC$10932_extraEdges_[u])),D=l.next();!D.done;D=l.next())D=D.value,this.getModuleInfo(D).isLoaded()||(this.removeExtraEdge(u,D),K.push(D));this.loadMultiple(K)}this.JSC$10932_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$10932_currentlyLoadingModule_=null;(!this.isModuleLoading(u)&&/^sy[0-9a-z]{0,4}$/.test(u)||u==="synthetic_module_overhead")&&delete this.JSC$10932_moduleInfoMap_[u];this.unsetModulesAsLoading(u)}};
_.I.setModulesAsLoading=function(){var u=this;_.uY.apply(0,arguments).forEach(function(K){u.loadingModules_[K]=!0})};
_.I.unsetModulesAsLoading=function(){var u=this;_.uY.apply(0,arguments).forEach(function(K){delete u.loadingModules_[K]})};
var xBH=function(u,K){return new _.RL(function(l,D){var d=u.getModuleInfo(K);d.isLoaded()?l(null):(d.registerCallback(function(){l(null)}),VRm(d,function(C){var W="Error loading "+K+": "+C;
C instanceof GR.ModuleLoadFailure&&C.url&&(W=W+", requested url: "+C.url.toString());D(Error(W))}))})},ty0=function(u,K){K=K.filter(function(l){return!u.isModuleLoading(l)&&!u.getModuleInfo(l).isLoaded()});
K.length>0&&(u.setModulesAsLoading.apply(u,_.Am(K)),u.JSC$10932_queue_.push(K),bN2(u))},bN2=function(u){for(var K={};u.activeLoads_<Infinity&&u.JSC$10932_queue_.length>0;K={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})K.ids$jscomp$36=u.JSC$10932_queue_.shift().filter(function(l){return!u.getModuleInfo(l).isLoaded()}),K.ids$jscomp$36.length>0&&(u.activeLoads_++,K.finishLoad=function(l){return function(){u.activeLoads_--;
bN2(u);l.finishLoad=function(){}}}(K),_.gx(K.ids$jscomp$36.map(function(l){return xBH(u,l)})).then(function(l){return function(){(0,l.finishLoad)()}}(K)),K.attempt$jscomp$6=0,K.load$jscomp$1=function(l){return function(){if(Object.keys(u.JSC$10932_extraEdges_).length>0&&!u.JSC$9982_loader_.supportsExtraEdges)throw Error("ud");
u.JSC$9982_loader_.JSC$10911_loadModules(l.ids$jscomp$36,u.JSC$10932_moduleInfoMap_,{extraEdges:u.JSC$10932_extraEdges_,onError:function(D,d){var C=vsm[l.attempt$jscomp$6++];C!==void 0?setTimeout(function(){(0,l.load$jscomp$1)()},C):(u.unsetModulesAsLoading.apply(u,_.Am(l.ids$jscomp$36)),(0,l.finishLoad)(),l.ids$jscomp$36.forEach(function(W){W=u.getModuleInfo(W);
if(!W.isLoaded())W.onError(new GR.ModuleLoadFailure(GR.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,D,l.ids$jscomp$36,d))}))}})}}(K),(0,K.load$jscomp$1)())},SxS=function(u,K,l,D,d){D=D===void 0?function(){return!0}:D;
d=d===void 0?{}:d;K=_.y(K);for(var C=K.next();!C.done;C=K.next()){C=C.value;var W=u.getModuleInfo(C);!d[C]&&D(W)&&(d[C]=!0,SxS(u,W.deps_||[],l,D,d),l(W))}};var ON2=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var CCq=Symbol("xd");window.JSCompiler_renameProperty=function(u){return u};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var csN=!ON2||HTMLElement.es5Shimmed||_.lL.Reflect===void 0||_.lL.customElements===void 0||_.lL.customElements.polyfillWrapFlushCallback||!1,aya,Pxb=function(){var u=HTMLElement;if(csN)return u;if(aya!==void 0)return aya;var K=_.lL.Reflect,l=function(){return K.construct(u,[],this.constructor)};
l.prototype=u.prototype;l.prototype.constructor=l;l.es5Shimmed=!0;Object.setPrototypeOf(l,u);return aya=l},zd2=!1;csN||zd2||(zd2=!0,_.lL.HTMLElement=Pxb());/*

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 WUo=/(url\()([^)]*)(\))/g,s5r=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,oe9,tp;var Li=!window.ShadyDOM||!window.ShadyDOM.inUse,eda=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Rdw=!window.customElements.polyfillWrapFlushCallback,UBw;if(UBw=Li&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var fy2=new CSSStyleSheet;fy2.replaceSync("");var Qy2=document.createElement("div");Qy2.attachShadow({mode:"open"});Qy2.shadowRoot.adoptedStyleSheets=[fy2];UBw=Qy2.shadowRoot.adoptedStyleSheets[0]===fy2}catch(u){UBw=!1}
var PIC=UBw,Jsm=window.Polymer&&window.Polymer.rootPath||Mdn(document.baseURI||window.location.href),B4=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,xZn=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,D8=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,jyw=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,E6=window.Polymer&&window.Polymer.legacyOptimizations||!1,l0=window.Polymer&&window.Polymer.legacyWarnings||!1,Bds=window.Polymer&&window.Polymer.syncInitialRender||
!1,iy=window.Polymer&&window.Polymer.legacyUndefined||!1,p0w=window.Polymer&&window.Polymer.orderedComputed||!1,oo=window.Polymer&&window.Polymer.removeNestedTemplates||!1,WS=window.Polymer&&window.Polymer.fastDomIf||!1,HS=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,iNk=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Tdm=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var ML={},w0w={},w_=function(){return HTMLElement.apply(this,arguments)||this};
_.c(w_,HTMLElement);w_.import=function(u,K){return u?(u=ML[u]||w0w[u.toLowerCase()])&&K?u.querySelector(K):u:null};
w_.prototype.attributeChangedCallback=function(u,K,l){K!==l&&this.register()};
w_.prototype.register=function(u){if(u=u||this.id){if(D8&&(ML[u]||w0w[u.toLowerCase()])!==void 0)throw ML[u]=w0w[u.toLowerCase()]=null,Error("yd`"+u);this.id=u;ML[u]=w0w[u.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.MN.Object.defineProperties(w_.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var u=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;u=_.xf(this.getAttribute("assetpath")||"",u.baseURI);this.__assetpath=Mdn(u)}return this.__assetpath}}});
_.MN.Object.defineProperties(w_,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
w_["import"]=w_.import;w_.prototype.modules=ML;customElements.define("dom-module",w_);var FfC=0,$CH=0,SB=[],Vy2=0,qLZ=!1,gsa=document.createTextNode(""),Nda,mY;(new window.MutationObserver(neb)).observe(gsa,{characterData:!0});_.qL={after:function(u){return{run:function(K){return window.setTimeout(K,u)},
cancel:function(K){window.clearTimeout(K)}}},
run:function(u,K){return window.setTimeout(u,K)},
cancel:function(u){window.clearTimeout(u)}};
_.Zp={run:function(u){return window.requestAnimationFrame(u)},
cancel:function(u){window.cancelAnimationFrame(u)}};
Nda={run:function(u){return window.requestIdleCallback?window.requestIdleCallback(u):window.setTimeout(u,16)},
cancel:function(u){window.cancelIdleCallback?window.cancelIdleCallback(u):window.clearTimeout(u)}};
mY={run:function(u){qLZ||(qLZ=!0,gsa.textContent=Vy2++);SB.push(u);return FfC++},
cancel:function(u){var K=u-$CH;if(K>=0){if(!SB[K])throw Error("zd`"+u);SB[K]=null}}};var kAN=0,$1=function(u){var K=u.__mixinApplications;K||(K=new WeakMap,u.__mixinApplications=K);var l=kAN++;return function(D){var d=D.__mixinSet;if(d&&d[l])return D;var C=K,W=C.get(D);W||(W=u(D),C.set(D,W),D=Object.create(W.__mixinSet||d||null),D[l]=!0,W.__mixinSet=D);return W}};_.jB=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(u){return ShadyDOM.patch(u)}:function(u){return u};var ZN2=$1(function(u){var K=function(){var l=u.call(this)||this;l.__dataEnabled=!1;l.__dataReady=!1;l.__dataInvalid=!1;l.__data={};l.__dataPending=null;l.__dataOld=null;l.__dataInstanceProps=null;l.__dataCounter=0;l.__serializing=!1;l._initializeProperties();return l};
_.c(K,u);K.createProperties=function(l){var D=this.prototype,d;for(d in l)d in D||D._createPropertyAccessor(d)};
K.attributeNameForProperty=function(l){return l.toLowerCase()};
K.typeForProperty=function(){};
K.prototype._createPropertyAccessor=function(l,D){this._addPropertyToAttributeMap(l);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[l]||(this.__dataHasAccessor[l]=!0,this._definePropertyAccessor(l,D))};
K.prototype._addPropertyToAttributeMap=function(l){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var D=this.__dataAttributes[l];D||(D=this.constructor.attributeNameForProperty(l),this.__dataAttributes[D]=l);return D};
K.prototype._definePropertyAccessor=function(l,D){Object.defineProperty(this,l,{get:function(){return this.__data[l]},
set:D?function(){}:function(d){this._setPendingProperty(l,d,!0)&&this._invalidateProperties()}})};
K.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
K.prototype._initializeProperties=function(){for(var l in this.__dataHasAccessor)this.hasOwnProperty(l)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[l]=this[l],delete this[l])};
K.prototype._initializeInstanceProperties=function(l){Object.assign(this,l)};
K.prototype._setProperty=function(l,D){this._setPendingProperty(l,D)&&this._invalidateProperties()};
K.prototype._getProperty=function(l){return this.__data[l]};
K.prototype._setPendingProperty=function(l,D){var d=this.__data[l],C=this._shouldPropertyChange(l,D,d);C&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||l in this.__dataOld||(this.__dataOld[l]=d),this.__data[l]=D,this.__dataPending[l]=D);return C};
K.prototype._isPropertyPending=function(l){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(l))};
K.prototype._invalidateProperties=function(){var l=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,mY.run(function(){l.__dataInvalid&&(l.__dataInvalid=!1,l._flushProperties())}))};
K.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
K.prototype._flushProperties=function(){this.__dataCounter++;var l=this.__data,D=this.__dataPending,d=this.__dataOld;this._shouldPropertiesChange(l,D,d)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(l,D,d));this.__dataCounter--};
K.prototype._shouldPropertiesChange=function(l,D){return!!D};
K.prototype._propertiesChanged=function(){};
K.prototype._shouldPropertyChange=function(l,D,d){return d!==D&&(d===d||D===D)};
K.prototype.attributeChangedCallback=function(l,D,d,C){D!==d&&this._attributeToProperty(l,d);u.prototype.attributeChangedCallback&&u.prototype.attributeChangedCallback.call(this,l,D,d,C)};
K.prototype._attributeToProperty=function(l,D,d){if(!this.__serializing){var C=this.__dataAttributes;l=C&&C[l]||l;this[l]=this._deserializeValue(D,d||this.constructor.typeForProperty(l))}};
K.prototype._propertyToAttribute=function(l,D,d){this.__serializing=!0;d=arguments.length<3?this[l]:d;this._valueToNodeAttribute(this,d,D||this.constructor.attributeNameForProperty(l));this.__serializing=!1};
K.prototype._valueToNodeAttribute=function(l,D,d){D=this._serializeValue(D);if(d==="class"||d==="name"||d==="slot")l=(0,_.jB)(l);D===void 0?l.removeAttribute(d):l.setAttribute(d,D===""&&window.trustedTypes?window.trustedTypes.emptyScript:D)};
K.prototype._serializeValue=function(l){switch(typeof l){case "boolean":return l?"":void 0;default:return l!=null?l.toString():void 0}};
K.prototype._deserializeValue=function(l,D){switch(D){case Boolean:return l!==null;case Number:return Number(l);default:return l}};
return K});var YxN=0,r3o=[];var As2=$1(function(u){function K(C){C=Object.getPrototypeOf(C);return C.prototype instanceof d?C:null}
function l(C){if(!C.hasOwnProperty("__ownProperties")){var W=null;if(C.hasOwnProperty("properties")){var M=C.properties;if(M){W={};for(var q in M){var v=M[q];W[q]=typeof v==="function"?{type:v}:v}}}C.__ownProperties=W}return C.__ownProperties}
var D=ZN2(u),d=function(){return D.apply(this,arguments)||this};
_.c(d,D);d.finalize=function(){if(!this.hasOwnProperty("__finalized")){var C=K(this);C&&C.finalize();this.__finalized=!0;this._finalizeClass()}};
d._finalizeClass=function(){var C=l(this);C&&this.createProperties(C)};
d.typeForProperty=function(C){return(C=this._properties[C])&&C.type};
d.prototype._initializeProperties=function(){YxN++;this.constructor.finalize();D.prototype._initializeProperties.call(this)};
d.prototype.connectedCallback=function(){D.prototype.connectedCallback&&D.prototype.connectedCallback.call(this);this._enableProperties()};
d.prototype.disconnectedCallback=function(){D.prototype.disconnectedCallback&&D.prototype.disconnectedCallback.call(this)};
_.MN.Object.defineProperties(d,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var C=this;if(!this.hasOwnProperty("__observedAttributes")){vew(this.prototype);var W=this._properties;this.__observedAttributes=W?Object.keys(W).map(function(M){return C.prototype._addPropertyToAttributeMap(M)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var C=K(this);this.__properties=Object.assign({},C&&C._properties,l(this))}return this.__properties}}});
return d});var Gkw={},tdn=/-[a-z]/g,xCL=/([A-Z])/g;for(var X0s={},mBw=HTMLElement.prototype;mBw;){for(var hdA=Object.getOwnPropertyNames(mBw),Esa=0;Esa<hdA.length;Esa++)X0s[hdA[Esa]]=!0;mBw=Object.getPrototypeOf(mBw)}var Lfk=window.trustedTypes?function(u){return trustedTypes.isHTML(u)||trustedTypes.isScript(u)||trustedTypes.isScriptURL(u)}:function(){return!1},u6a=$1(function(u){var K=ZN2(u);
u=function(){return K.apply(this,arguments)||this};
_.c(u,K);u.createPropertiesForAttributes=function(){for(var l=this.observedAttributes,D=0;D<l.length;D++)this.prototype._createPropertyAccessor(by(l[D]))};
u.attributeNameForProperty=function(l){return O6(l)};
u.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);K.prototype._initializeProperties.call(this)};
u.prototype._initializeProtoProperties=function(l){for(var D in l)this._setProperty(D,l[D])};
u.prototype._ensureAttribute=function(l,D){this.hasAttribute(l)||this._valueToNodeAttribute(this,D,l)};
u.prototype._serializeValue=function(l){switch(typeof l){case "object":if(l instanceof Date)return l.toString();if(l){if(Lfk(l))return l;try{return JSON.stringify(l)}catch(D){return""}}default:return K.prototype._serializeValue.call(this,l)}};
u.prototype._deserializeValue=function(l,D){switch(D){case Object:try{var d=JSON.parse(l)}catch(C){d=l}break;case Array:try{d=JSON.parse(l)}catch(C){d=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+l)}break;case Date:d=isNaN(l)?String(l):Number(l);d=new Date(d);break;default:d=K.prototype._deserializeValue.call(this,l,D)}return d};
u.prototype._definePropertyAccessor=function(l,D){if(!X0s[l]){var d=this[l];d!==void 0&&(this.__data?this._setPendingProperty(l,d):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[l]=d))}K.prototype._definePropertyAccessor.call(this,l,D)};
u.prototype._hasAccessor=function(l){return this.__dataHasAccessor&&this.__dataHasAccessor[l]};
u.prototype._isPropertyPending=function(l){return!!(this.__dataPending&&l in this.__dataPending)};
return u});var KGs={"dom-if":!0,"dom-repeat":!0},lJ0=!1,DKm=!1,dKw=function(){var u=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(K){return K}});
return function(K,l,D){l=l.getAttribute(D);u&&D.startsWith("on-")?K.setAttribute(D,u.createScript(l,D)):K.setAttribute(D,l)}}(),ChA=$1(function(u){var K=function(){return u.apply(this,arguments)||this};
_.c(K,u);K._parseTemplate=function(l,D){if(!l._templateInfo){var d=l._templateInfo={};d.nodeInfoList=[];d.nestedTemplate=!!D;d.stripWhiteSpace=D&&D.stripWhiteSpace||l.hasAttribute&&l.hasAttribute("strip-whitespace");this._parseTemplateContent(l,d,{parent:null})}return l._templateInfo};
K._parseTemplateContent=function(l,D,d){return this._parseTemplateNode(l.content,D,d)};
K._parseTemplateNode=function(l,D,d){var C=!1;l.localName!="template"||l.hasAttribute("preserve-content")?l.localName==="slot"&&(D.hasInsertionPoint=!0):C=this._parseTemplateNestedTemplate(l,D,d)||C;if(!lJ0){lJ0=!0;var W=document.createElement("textarea");W.placeholder="a";DKm=W.placeholder===W.textContent}DKm&&l.localName==="textarea"&&l.placeholder&&l.placeholder===l.textContent&&(l.textContent=null);l.firstChild&&this._parseTemplateChildNodes(l,D,d);l.hasAttributes&&l.hasAttributes()&&(C=this._parseTemplateNodeAttributes(l,
D,d)||C);return C||d.noted};
K._parseTemplateChildNodes=function(l,D,d){if(l.localName!=="script"&&l.localName!=="style")for(var C=l.firstChild,W=0,M;C;C=M){if(C.localName=="template"){var q=C.getAttribute("is");if(q&&KGs[q])for(M=C,M.removeAttribute("is"),C=M.ownerDocument.createElement(q),M.parentNode.replaceChild(C,M),C.appendChild(M);M.attributes.length;)q=M.attributes[0].name,dKw(C,M,q),M.removeAttribute(q)}M=C.nextSibling;if(C.nodeType===Node.TEXT_NODE){for(q=M;q&&q.nodeType===Node.TEXT_NODE;)C.textContent+=q.textContent,
M=q.nextSibling,l.removeChild(q),q=M;if(D.stripWhiteSpace&&!C.textContent.trim()){l.removeChild(C);continue}}q={parentIndex:W,parentInfo:d};this._parseTemplateNode(C,D,q)&&(q.infoIndex=D.nodeInfoList.push(q)-1);C.parentNode&&W++}};
K._parseTemplateNestedTemplate=function(l,D,d){D=this._parseTemplate(l,D);(D.content=l.content.ownerDocument.createDocumentFragment()).appendChild(l.content);d.templateInfo=D;return!0};
K._parseTemplateNodeAttributes=function(l,D,d){for(var C=!1,W=Array.from(l.attributes),M=W.length-1,q;q=W[M];M--)C=this._parseTemplateNodeAttribute(l,D,d,q.name,q.value)||C;return C};
K._parseTemplateNodeAttribute=function(l,D,d,C,W){return C.slice(0,3)==="on-"?(l.removeAttribute(C),d.events=d.events||[],d.events.push({name:C.slice(3),value:W}),!0):C==="id"?(d.id=W,!0):!1};
K._contentForTemplate=function(l){var D=l._templateInfo;return D&&D.content||l.content};
K.prototype._stampTemplate=function(l,D){l&&!l.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(l);D=D||this.constructor._parseTemplate(l);var d=D.nodeInfoList;l=document.importNode(D.content||l.content,!0);l.__noInsertionPoint=!D.hasInsertionPoint;var C=l.nodeList=Array(d.length);l.$={};for(var W=0,M=d.length,q=void 0;W<M&&(q=d[W]);W++){var v=C[W]=SLn(l,q);q.id&&(l.$[q.id]=v);var G=v,t=q,x=D;t.templateInfo&&(G._templateInfo=t.templateInfo,G._parentTemplateInfo=
x);if(q.events&&q.events.length)for(G=0,t=q.events,x=void 0;G<t.length&&(x=t[G]);G++)this._addMethodEventListenerToNode(v,x.name,x.value,this)}return l};
K.prototype._addMethodEventListenerToNode=function(l,D,d,C){d=bz9(C||l,d);this._addEventListenerToNode(l,D,d);return d};
K.prototype._addEventListenerToNode=function(l,D,d){l.addEventListener(D,d)};
K.prototype._removeEventListenerFromNode=function(l,D,d){l.removeEventListener(D,d)};
return K});var P4=0,pi=[],IJ2={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},yuR=/[A-Z]/,sf0=function(u,K,l,D,d){var C=d?eB(u):u;if(K=K[C])for(C=0;C<K.length;C++){var W=K[C];if(W.info.lastRun!==P4&&(!d||RBh(u,W.trigger))){W.info.lastRun=P4;W=W.info;for(var M=l,q=D,v=0,G=M.length-1,t=-1;v<=G;){var x=v+G>>1,O=q.get(M[x].methodInfo)-q.get(W.methodInfo);if(O<0)v=x+1;else if(O>0)G=x-1;else{t=x;break}}t<
0&&(t=G+1);M.splice(t,0,W)}}},Nsh=[],owm=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"),rV=$1(function(u){var K=ChA(u6a(u));
u=function(){var l=K.call(this)||this;l.__isPropertyEffectsClient=!0;return l};
_.c(u,K);u.prototype._initializeProperties=function(){K.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};
u.prototype._registerHost=function(){if(nW.length){var l=nW[nW.length-1];l._enqueueClient(this);this.__dataHost=l}};
u.prototype._initializeProtoProperties=function(l){this.__data=Object.create(l);this.__dataPending=Object.create(l);this.__dataOld={}};
u.prototype._initializeInstanceProperties=function(l){var D=this.__readOnly,d;for(d in l)D&&D[d]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[d]=this.__dataPending[d]=l[d])};
u.prototype._addPropertyEffect=function(l,D,d){this._createPropertyAccessor(l,D=="__readOnly");var C=eB9(this,D,!0)[l];C||(C=this[D][l]=[]);C.push(d)};
u.prototype._removePropertyEffect=function(l,D,d){l=eB9(this,D,!0)[l];d=l.indexOf(d);d>=0&&l.splice(d,1)};
u.prototype._hasPropertyEffect=function(l,D){D=this[D];return!(!D||!D[l])};
u.prototype._hasReadOnlyEffect=function(l){return this._hasPropertyEffect(l,"__readOnly")};
u.prototype._hasNotifyEffect=function(l){return this._hasPropertyEffect(l,"__notifyEffects")};
u.prototype._hasReflectEffect=function(l){return this._hasPropertyEffect(l,"__reflectEffects")};
u.prototype._hasComputedEffect=function(l){return this._hasPropertyEffect(l,"__computeEffects")};
u.prototype._setPendingPropertyOrPath=function(l,D,d,C){if(C||eB(Array.isArray(l)?l[0]:l)!==l){if(!C&&(C=QH(this,l),l=zB9(this,l,D),!l||!K.prototype._shouldPropertyChange.call(this,l,D,C)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(l,D,d)){if(d=this.__dataLinkedPaths)for(var W in d)C=d[W],R9(W,l)?(C=U6(W,C,l),this._setPendingPropertyOrPath(C,D,!0,!0)):R9(C,l)&&(C=U6(C,W,l),this._setPendingPropertyOrPath(C,D,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[l])return this._setPendingProperty(l,
D,d);this[l]=D}return!1};
u.prototype._setUnmanagedPropertyToNode=function(l,D,d){if(d!==l[D]||typeof d=="object")D==="className"&&(l=(0,_.jB)(l)),l[D]=d};
u.prototype._setPendingProperty=function(l,D,d){var C=this.__dataHasPaths&&c4(l);if(this._shouldPropertyChange(l,D,(C?this.__dataTemp:this.__data)[l])){this.__dataPending||(this.__dataPending={},this.__dataOld={});l in this.__dataOld||(this.__dataOld[l]=this.__data[l]);C?this.__dataTemp[l]=D:this.__data[l]=D;this.__dataPending[l]=D;if(C||this.__notifyEffects&&this.__notifyEffects[l])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[l]=d;return!0}return!1};
u.prototype._setProperty=function(l,D){this._setPendingProperty(l,D,!0)&&this._invalidateProperties()};
u.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
u.prototype._enqueueClient=function(l){this.__dataPendingClients=this.__dataPendingClients||[];l!==this&&this.__dataPendingClients.push(l)};
u.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
u.prototype.__enableOrFlushClients=function(){var l=this.__dataPendingClients;if(l){this.__dataPendingClients=null;for(var D=0;D<l.length;D++){var d=l[D];d.__dataEnabled?d.__dataPending&&d._flushProperties():d._enableProperties()}}};
u.prototype._readyClients=function(){this.__enableOrFlushClients()};
u.prototype.setProperties=function(l,D){for(var d in l)!D&&this.__readOnly&&this.__readOnly[d]||this._setPendingPropertyOrPath(d,l[d],!0);this._invalidateProperties()};
u.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
u.prototype._propertiesChanged=function(l,D,d){l=this.__dataHasPaths;this.__dataHasPaths=!1;var C;if(C=this.__computeEffects)if(p0w){P4++;var W=j5w(this),M=[],q;for(q in D)sf0(q,C,M,W,l);for(;q=M.shift();)pkq(this,"",D,d,q)&&sf0(q.methodInfo,C,M,W,l);Object.assign(d,this.__dataOld);Object.assign(D,this.__dataPending);this.__dataPending=null}else for(W=D;Jp(this,C,W,d,l);)Object.assign(d,this.__dataOld),Object.assign(D,this.__dataPending),W=this.__dataPending,this.__dataPending=null;C=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(D,d,l);this._flushClients();Jp(this,this.__reflectEffects,D,d,l);Jp(this,this.__observeEffects,D,d,l);if(C){W=this.__notifyEffects;M=P4++;for(var v in C)if(C[v]){if(q=W){var G=W;q=M;var t=v,x=D,O=d,a=l,f=!1,B=a?eB(t):t;if(G=G[B]){B=0;for(var p=G.length,V=void 0;B<p&&(V=G[B]);B++)V.info&&V.info.lastRun===q||a&&!RBh(t,V.trigger)||(V.info&&(V.info.lastRun=q),V.fn(this,t,x,O,V.info,a,void 0),f=!0)}q=f}if(q)var m=!0;else{if(q=l)q=v,t=D,x=eB(q),x!==
q?(x=O6(x)+"-changed",fSH(this,x,t[q],q),q=!0):q=!1;q&&(m=!0)}}var Z;m&&(Z=this.__dataHost)&&Z._invalidateProperties&&Z._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
u.prototype._propagatePropertyChanges=function(l,D,d){this.__propagateEffects&&Jp(this,this.__propagateEffects,l,D,d);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,l,D,d)};
u.prototype._runEffectsForTemplate=function(l,D,d,C){var W=this,M=function(q,v){Jp(W,l.propertyEffects,q,d,v,l.nodeList);for(var G=l.firstChild;G;G=G.nextSibling)W._runEffectsForTemplate(G,q,d,v)};
l.runEffects?l.runEffects(M,D,C):M(D,C)};
u.prototype.linkPaths=function(l,D){l=fi(l);D=fi(D);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[l]=D};
u.prototype.unlinkPaths=function(l){l=fi(l);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[l]};
u.prototype.notifySplices=function(l,D){var d={path:""};l=QH(this,l,d);A3n(this,l,d.path,D)};
u.prototype.get=function(l,D){return QH(D||this,l)};
u.prototype.set=function(l,D,d){d?zB9(d,l,D):this.__readOnly&&this.__readOnly[l]||this._setPendingPropertyOrPath(l,D,!0)&&this._invalidateProperties()};
u.prototype.push=function(l){var D=_.uY.apply(1,arguments),d={path:""},C=QH(this,l,d),W=C.length,M=C.push.apply(C,_.Am(D));D.length&&T9(this,C,d.path,W,D.length,[]);return M};
u.prototype.pop=function(l){var D={path:""};l=QH(this,l,D);var d=!!l.length,C=l.pop();d&&T9(this,l,D.path,l.length,0,[C]);return C};
u.prototype.splice=function(l,D,d){var C=_.uY.apply(3,arguments),W={path:""},M=QH(this,l,W);D<0?D=M.length-Math.floor(-D):D&&(D=Math.floor(D));var q=arguments.length===2?M.splice(D):M.splice.apply(M,[D,d].concat(_.Am(C)));(C.length||q.length)&&T9(this,M,W.path,D,C.length,q);return q};
u.prototype.shift=function(l){var D={path:""};l=QH(this,l,D);var d=!!l.length,C=l.shift();d&&T9(this,l,D.path,0,0,[C]);return C};
u.prototype.unshift=function(l){var D=_.uY.apply(1,arguments),d={path:""},C=QH(this,l,d),W=C.unshift.apply(C,_.Am(D));D.length&&T9(this,C,d.path,0,D.length,[]);return W};
u.prototype.notifyPath=function(l,D){if(arguments.length==1){var d={path:""};D=QH(this,l,d);d=d.path}else d=Array.isArray(l)?fi(l):l;this._setPendingPropertyOrPath(d,D,!0,!0)&&this._invalidateProperties()};
u.prototype._createReadOnlyProperty=function(l,D){this._addPropertyEffect(l,"__readOnly");D&&(this["_set"+(l[0].toUpperCase()+l.substring(1))]=function(d){this._setProperty(l,d)})};
u.prototype._createPropertyObserver=function(l,D,d){var C={property:l,method:D,dynamicFn:!!d};this._addPropertyEffect(l,"__observeEffects",{fn:UC9,info:C,trigger:{name:l}});d&&this._addPropertyEffect(D,"__observeEffects",{fn:UC9,info:C,trigger:{name:D}})};
u.prototype._createMethodObserver=function(l,D){var d=Zzw(l);if(!d)throw Error("Ad`"+l);Vd9(this,d,"__observeEffects",Bs9,null,D)};
u.prototype._createNotifyingProperty=function(l){this._addPropertyEffect(l,"__notifyEffects",{fn:Q5q,info:{eventName:O6(l)+"-changed",property:l}})};
u.prototype._createReflectedProperty=function(l){var D=this.constructor.attributeNameForProperty(l);D[0]==="-"?console.warn("Property "+l+" cannot be reflected to attribute "+D+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(l,"__reflectEffects",{fn:PCy,info:{attrName:D}})};
u.prototype._createComputedProperty=function(l,D,d){var C=Zzw(D);if(!C)throw Error("Bd`"+D);D=Vd9(this,C,"__computeEffects",pkq,l,d);eB9(this,"__computeInfo")[l]=D};
u.prototype._marshalArgs=function(l,D,d){for(var C=this.__data,W=[],M=0,q=l.length;M<q;M++){var v=l[M],G=v.name,t=v.structured,x=v.wildcard,O=v.value;v.literal||(x?(v=R9(G,D),t=YLn(C,d,v?D:G),O={path:v?D:G,value:t,base:v?QH(C,G):t}):O=t?YLn(C,d,G):C[G]);if(iy&&!this._overrideLegacyUndefined&&O===void 0&&l.length>1)return pi;W[M]=O}return W};
u.addPropertyEffect=function(l,D,d){this.prototype._addPropertyEffect(l,D,d)};
u.createPropertyObserver=function(l,D,d){this.prototype._createPropertyObserver(l,D,d)};
u.createMethodObserver=function(l,D){this.prototype._createMethodObserver(l,D)};
u.createNotifyingProperty=function(l){this.prototype._createNotifyingProperty(l)};
u.createReadOnlyProperty=function(l,D){this.prototype._createReadOnlyProperty(l,D)};
u.createReflectedProperty=function(l){this.prototype._createReflectedProperty(l)};
u.createComputedProperty=function(l,D,d){this.prototype._createComputedProperty(l,D,d)};
u.bindTemplate=function(l){return this.prototype._bindTemplate(l)};
u.prototype._bindTemplate=function(l,D){var d=this.constructor._parseTemplate(l),C=this.__preBoundTemplateInfo==d;if(!C)for(var W in d.propertyEffects)this._createPropertyAccessor(W);D?(d=Object.create(d),d.wasPreBound=C,this.__templateInfo?(l=l._parentTemplateInfo||this.__templateInfo,D=l.lastChild,d.parent=l,l.lastChild=d,(d.previousSibling=D)?D.nextSibling=d:l.firstChild=d):this.__templateInfo=d):this.__preBoundTemplateInfo=d;return d};
u._addTemplatePropertyEffect=function(l,D,d){(l.hostProps=l.hostProps||{})[D]=!0;l=l.propertyEffects=l.propertyEffects||{};(l[D]=l[D]||[]).push(d)};
u.prototype._stampTemplate=function(l,D){D=D||this._bindTemplate(l,!0);nW.push(this);l=K.prototype._stampTemplate.call(this,l,D);nW.pop();D.nodeList=l.nodeList;if(!D.wasPreBound)for(var d=D.childNodes=[],C=l.firstChild;C;C=C.nextSibling)d.push(C);l.templateInfo=D;d=D.nodeList;C=D.nodeInfoList;if(C.length)for(var W=0;W<C.length;W++){var M=d[W],q=C[W].bindings;if(q)for(var v=0;v<q.length;v++){var G=q[v],t=M,x=G;if(x.isCompound){for(var O=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),a=x.parts,
f=Array(a.length),B=0;B<a.length;B++)f[B]=a[B].literal;a=x.target;O[a]=f;x.literal&&x.kind=="property"&&(a==="className"&&(t=(0,_.jB)(t)),t[a]=x.literal)}FUn(M,this,G)}M.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(D,this.__data,null,!1),this._flushClients());return l};
u.prototype._removeBoundDom=function(l){l=l.templateInfo;var D=l.previousSibling,d=l.nextSibling,C=l.parent;D?D.nextSibling=d:C&&(C.firstChild=d);d?d.previousSibling=D:C&&(C.lastChild=D);l.nextSibling=l.previousSibling=null;l=l.childNodes;for(D=0;D<l.length;D++)d=l[D],(0,_.jB)((0,_.jB)(d).parentNode).removeChild(d)};
u._parseTemplateNode=function(l,D,d){var C=K._parseTemplateNode.call(this,l,D,d);if(l.nodeType===Node.TEXT_NODE){var W=this._parseBindings(l.textContent,D);W&&(l.textContent=geq(W)||" ",wk9(this,D,d,"text","textContent",W),C=!0)}return C};
u._parseTemplateNodeAttribute=function(l,D,d,C,W){var M=this._parseBindings(W,D);if(M){W=C;var q="property";yuR.test(C)?q="attribute":C[C.length-1]=="$"&&(C=C.slice(0,-1),q="attribute");var v=geq(M);v&&q=="attribute"&&(C=="class"&&l.hasAttribute("class")&&(v+=" "+l.getAttribute(C)),l.setAttribute(C,v));q=="attribute"&&W=="disable-upgrade$"&&l.setAttribute(C,"");l.localName==="input"&&W==="value"&&l.setAttribute(W,"");l.removeAttribute(W);q==="property"&&(C=by(C));wk9(this,D,d,q,C,M,v);return!0}return K._parseTemplateNodeAttribute.call(this,
l,D,d,C,W)};
u._parseTemplateNestedTemplate=function(l,D,d){var C=K._parseTemplateNestedTemplate.call(this,l,D,d),W=l.parentNode,M=d.templateInfo,q=W.localName==="dom-if",v=W.localName==="dom-repeat";oo&&(q||v)&&(W.removeChild(l),d=d.parentInfo,d.templateInfo=M,d.noted=!0,C=!1);l=M.hostProps;if(WS&&q)l&&(D.hostProps=Object.assign(D.hostProps||{},l),oo||(d.parentInfo.noted=!0));else for(var G in l)wk9(this,D,d,"property","_host_"+G,[{mode:"{",source:G,dependencies:[G],hostProp:!0}]);return C};
u._parseBindings=function(l,D){for(var d=[],C=0,W;(W=owm.exec(l))!==null;){W.index>C&&d.push({literal:l.slice(C,W.index)});C=W[1][0];var M=!!W[2];W=W[3].trim();var q=!1,v="",G=-1;C=="{"&&(G=W.indexOf("::"))>0&&(v=W.substring(G+2),W=W.substring(0,G),q=!0);G=Zzw(W);var t=[];if(G){var x=G,O=x.args;x=x.methodName;for(var a=0;a<O.length;a++){var f=O[a];f.literal||t.push(f)}if((O=D.dynamicFns)&&O[x]||G.static)t.push(x),G.dynamicFn=!0}else t.push(W);d.push({source:W,mode:C,negate:M,customEvent:q,signature:G,
dependencies:t,event:v});C=owm.lastIndex}C&&C<l.length&&(l=l.substring(C))&&d.push({literal:l});return d.length?d:null};
u._evaluateBinding=function(l,D,d,C,W,M){l=D.signature?Bs9(l,d,C,W,D.signature):d!=D.source?QH(l,D.source):M&&c4(d)?QH(l,d):l.__data[d];D.negate&&(l=!l);return l};
_.MN.Object.defineProperties(u.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return IJ2}}});
return u}),nW=[];var WGR=window.ShadyCSS&&window.ShadyCSS.cssBuild,vS=$1(function(u){function K(D,d,C,W){if(!WGR){for(var M=d.content.querySelectorAll("style"),q=EeH(d),v=LUq(C),G=d.content.firstElementChild,t=0;t<v.length;t++){var x=v[t];x.textContent=D._processStyleText(x.textContent,W);d.content.insertBefore(x,G)}for(G=v=0;G<q.length;G++)t=q[G],x=M[v],x!==t?(t=t.cloneNode(!0),x.parentNode.insertBefore(t,x)):v++,t.textContent=D._processStyleText(t.textContent,W)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,
C);if(Tdm&&WGR&&PIC&&(d=d.content.querySelectorAll("style"))){var O="";Array.from(d).forEach(function(a){O+=a.textContent;a.parentNode.removeChild(a)});
D._styleSheet=new CSSStyleSheet;D._styleSheet.replaceSync(O)}}
var l=As2(rV(u));u=function(){return l.call(this)||this};
_.c(u,l);u._finalizeClass=function(){l._finalizeClass.call(this);var D;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(D=this.__ownObservers)&&this.createObservers(D,this._properties);this._prepareTemplate()};
u._prepareTemplate=function(){var D=this.template;D&&(typeof D==="string"?(console.error("template getter must return HTMLTemplateElement"),D=null):E6||(D=D.cloneNode(!0)));this.prototype._template=D};
u.createProperties=function(D){for(var d in D){var C=this.prototype,W=d,M=D[d],q=D;M.computed&&(M.readOnly=!0);M.computed&&(C._hasReadOnlyEffect(W)?console.warn("Cannot redefine computed property '"+W+"'."):C._createComputedProperty(W,M.computed,q));M.readOnly&&!C._hasReadOnlyEffect(W)?C._createReadOnlyProperty(W,!M.computed):M.readOnly===!1&&C._hasReadOnlyEffect(W)&&console.warn("Cannot make readOnly property '"+W+"' non-readOnly.");M.reflectToAttribute&&!C._hasReflectEffect(W)?C._createReflectedProperty(W):
M.reflectToAttribute===!1&&C._hasReflectEffect(W)&&console.warn("Cannot make reflected property '"+W+"' non-reflected.");M.notify&&!C._hasNotifyEffect(W)?C._createNotifyingProperty(W):M.notify===!1&&C._hasNotifyEffect(W)&&console.warn("Cannot make notify property '"+W+"' non-notify.");M.observer&&C._createPropertyObserver(W,M.observer,q[M.observer]);C._addPropertyToAttributeMap(W)}};
u.createObservers=function(D,d){for(var C=this.prototype,W=0;W<D.length;W++)C._createMethodObserver(D[W],d)};
u.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);l.prototype._initializeProperties.call(this);this.rootPath=Jsm;this.importPath=this.constructor.importPath;var D=this.constructor;if(!D.hasOwnProperty("__propertyDefaults")){D.__propertyDefaults=null;var d=D._properties,C;for(C in d){var W=d[C];"value"in W&&(D.__propertyDefaults=D.__propertyDefaults||{},D.__propertyDefaults[C]=W)}}if(D=D.__propertyDefaults)for(var M in D)d=D[M],
this._canApplyPropertyDefault(M)&&(d=typeof d.value=="function"?d.value.call(this):d.value,this._hasAccessor(M)?this._setPendingProperty(M,d,!0):this[M]=d)};
u.prototype._canApplyPropertyDefault=function(D){return!this.hasOwnProperty(D)};
u._processStyleText=function(D,d){return HzH(D,d)};
u._finalizeTemplate=function(D){var d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;var C=this.importPath;C=C?_.xf(C):"";K(this,d,D,C);this.prototype._bindTemplate(d)}};
u.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);l.prototype.connectedCallback.call(this)};
u.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);l.prototype.ready.call(this)};
u.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));l.prototype._readyClients.call(this)};
u.prototype._attachDom=function(D){var d=(0,_.jB)(this);if(d.attachShadow)return D?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:D}),d.shadowRoot.appendChild(D),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Bds&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw Error("Dd");};
u.prototype.updateStyles=function(D){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,D)};
u.prototype.resolveUrl=function(D,d){!d&&this.importPath&&(d=_.xf(this.importPath));return _.xf(D,d)};
u._parseTemplateContent=function(D,d,C){d.dynamicFns=d.dynamicFns||this._properties;return l._parseTemplateContent.call(this,D,d,C)};
u._addTemplatePropertyEffect=function(D,d,C){!l0||d in this._properties||C.info.part.signature&&C.info.part.signature.static||C.info.part.hostProp||D.nestedTemplate||console.warn("Property '"+d+"' used in template but not declared in 'properties'; attribute will not be observed.");return l._addTemplatePropertyEffect.call(this,D,d,C)};
_.MN.Object.defineProperties(u,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var D=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof D==="function"&&(D=D());if(D===void 0){if(D=this.hasOwnProperty("is")){D=this.is;var d=null;if(D&&(!D8||jyw)&&(d=w_.import(D,"template"),D8&&!d))throw Error("Cd`"+D);D=d}D=D||Object.getPrototypeOf(this.prototype).constructor.template}this._template=D}return this._template},
set:function(D){this._template=D}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var D=this.importMeta;D?this._importPath=Mdn(D.url):this._importPath=(D=w_.import(this.is))&&D.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return u});var Hma=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(u){return u}}),ILw=function(u,K){MZA(u,K);
this.value=K.reduce(function(l,D,d){return l+ynq(D)+u[d+1]},u[0]).toString()},MZA;
ILw.prototype.toString=function(){return this.value};
_.qVa=function(u){var K=_.uY.apply(1,arguments);MZA(u,K);var l=document.createElement("template");K=K.reduce(function(D,d,C){if(d instanceof HTMLTemplateElement)d=d.innerHTML;else if(d instanceof ILw)d=ynq(d);else throw Error("Fd`"+d);return D+d+u[C+1]},u[0]);
Hma&&(K=Hma.createHTML(K));l.innerHTML=K;return l};
MZA=function(u,K){if(!Array.isArray(u)||!Array.isArray(u.raw)||K.length!==u.length-1)throw new TypeError("Gd");};var GV=vS(HTMLElement);var $K0=$1(function(u){var K=vS(u);u=function(){var l=K.call(this)||this;l.__lastItems=null;l.__lastMulti=null;l.__selectedMap=null;return l};
_.c(u,K);u.prototype.__updateSelection=function(l,D){var d=D.path;d=="items"?(D=D.base||[],d=this.__lastItems,l!==this.__lastMulti&&this.clearSelection(),d&&(d=Cwr(D,d),this.__applySplices(d)),this.__lastItems=D,this.__lastMulti=l):D.path=="items.splices"?this.__applySplices(D.value.indexSplices):(l=d.slice(6),D=parseInt(l,10),l.indexOf(".")<0&&l==D&&this.__deselectChangedIdx(D))};
u.prototype.__applySplices=function(l){for(var D=this,d=this.__selectedMap,C={},W=0;W<l.length;C={s$jscomp$108:void 0},W++){C.s$jscomp$108=l[W];d.forEach(function(G){return function(t,x){t<G.s$jscomp$108.index||(t>=G.s$jscomp$108.index+G.s$jscomp$108.removed.length?d.set(x,t+G.s$jscomp$108.addedCount-G.s$jscomp$108.removed.length):d.set(x,-1))}}(C));
for(var M=0;M<C.s$jscomp$108.addedCount;M++){var q=C.s$jscomp$108.index+M;d.has(this.items[q])&&d.set(this.items[q],q)}}this.__updateLinks();var v=0;d.forEach(function(G,t){G<0?(D.multi?D.splice("selected",v,1):D.selected=D.selectedItem=null,d.delete(t)):v++})};
u.prototype.__updateLinks=function(){var l=this;this.__dataLinkedPaths={};if(this.multi){var D=0;this.__selectedMap.forEach(function(d){d>=0&&l.linkPaths("items."+d,"selected."+D++)})}else this.__selectedMap.forEach(function(d){l.linkPaths("selected","items."+d);
l.linkPaths("selectedItem","items."+d)})};
u.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
u.prototype.isSelected=function(l){return this.__selectedMap.has(l)};
u.prototype.isIndexSelected=function(l){return this.isSelected(this.items[l])};
u.prototype.__deselectChangedIdx=function(l){var D=this,d=this.__selectedIndexForItemIndex(l);if(d>=0){var C=0;this.__selectedMap.forEach(function(W,M){d==C++&&D.deselect(M)})}};
u.prototype.__selectedIndexForItemIndex=function(l){if(l=this.__dataLinkedPaths["items."+l])return parseInt(l.slice(9),10)};
u.prototype.deselect=function(l){var D=this.__selectedMap.get(l);if(D>=0){this.__selectedMap.delete(l);var d;this.multi&&(d=this.__selectedIndexForItemIndex(D));this.__updateLinks();this.multi?this.splice("selected",d,1):this.selected=this.selectedItem=null}};
u.prototype.deselectIndex=function(l){this.deselect(this.items[l])};
u.prototype.select=function(l){this.selectIndex(this.items.indexOf(l))};
u.prototype.selectIndex=function(l){var D=this.items[l];this.isSelected(D)?this.toggle&&this.deselectIndex(l):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(D,l),this.__updateLinks(),this.multi?this.push("selected",D):this.selected=this.selectedItem=D)};
_.MN.Object.defineProperties(u,{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 u}),nwN=$K0(GV),t$=function(){return nwN.apply(this,arguments)||this};
_.c(t$,nwN);_.MN.Object.defineProperties(t$,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(t$.is,t$);var ruS=window.Polymer;window.Polymer=function(u){return window.Polymer._polymerFn(u)};
ruS&&Object.assign(Polymer,ruS);Polymer._polymerFn=function(){throw Error("Hd");};/*

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:HzH,resolveUrl:_.xf,pathFromUrl:Mdn};Polymer.DomModule=w_;Polymer.Async={timeOut:_.qL,animationFrame:_.Zp,idlePeriod:Nda,microTask:mY};Polymer.dedupingMixin=$1;Polymer.wrap=_.jB;Polymer.PropertiesChanged=ZN2;Polymer.telemetry={instanceCount:YxN,incrementInstanceCount:function(){YxN++},
registrations:r3o,register:vew,dumpRegistrations:function(){r3o.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=As2;Polymer.CaseMap={dashToCamelCase:by,camelToDashCase:O6};Polymer.PropertyAccessors=u6a;Polymer.TemplateStamp=ChA;Polymer.Path={isPath:c4,root:eB,isAncestor:OzH,isDescendant:R9,translate:U6,matches:c3q,normalize:fi,split:aSq,get:QH,set:zB9,isDeep:c4};Polymer.Settings={useShadow:Li,useNativeCSSProperties:eda,useNativeCustomElements:Rdw,get rootPath(){return Jsm},setRootPath:function(u){Jsm=u},
get sanitizeDOMValue(){return B4},setSanitizeDOMValue:function(u){B4=u},
get passiveTouchGestures(){return xZn},setPassiveTouchGestures:function(u){xZn=u},
get strictTemplatePolicy(){return D8},setStrictTemplatePolicy:function(u){D8=u},
get allowTemplateFromDomModule(){return jyw},setAllowTemplateFromDomModule:function(u){jyw=u},
get legacyOptimizations(){return E6},setLegacyOptimizations:function(u){E6=u},
get syncInitialRender(){return Bds},setSyncInitialRender:function(u){Bds=u},
get legacyUndefined(){return iy},setLegacyUndefined:function(u){iy=u},
get legacyWarnings(){return l0},setLegacyWarnings:function(u){l0=u},
get orderedComputed(){return p0w},setOrderedComputed:function(u){p0w=u},
get fastDomIf(){return WS},setFastDomIf:function(u){WS=u},
get removeNestedTemplates(){return oo},setRemoveNestedTemplates:function(u){oo=u},
get suppressTemplateNotifications(){return HS},setSuppressTemplateNotifications:HS};Polymer.rootPath!==void 0&&(Jsm=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(B4=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(xZn=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(D8=Polymer.strictTemplatePolicy);jyw=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(E6=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(Bds=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(iy=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(l0=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(p0w=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(WS=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(oo=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(HS=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return B4},
set:function(u){B4=u}});Polymer.PropertyEffects=rV;Polymer.StyleGather={stylesFromModules:hBb,stylesFromModule:mCw,stylesFromTemplate:EeH,stylesFromModuleImports:LUq,cssFromModules:KzR,cssFromModule:u_9,cssFromTemplate:lLq,cssFromModuleImports:function(u){return(u=w_.import(u))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(u):""}};Polymer.ElementMixin=vS;Polymer.updateStyles=function(u){window.ShadyCSS&&window.ShadyCSS.styleDocument(u)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:Cwr};Polymer.html=_.qVa;Polymer.htmlLiteral=function(u){return new ILw(u,_.uY.apply(1,arguments))};Polymer.Element=GV;Polymer.ArraySelectorMixin=$K0;Polymer.ArraySelector=t$;var vww=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,GIC=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,F1Z=/@media\s(.*)/;var H5L=null,Wzh=window.HTMLImports&&window.HTMLImports.whenReady||null,Mlq;var tZw=null,x1=null,SY=function(){this.customStyles=[];this.enqueued=!1;qA9(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},xKA=function(u){!u.enqueued&&x1&&(u.enqueued=!0,qA9(x1))};
SY.prototype.addCustomStyle=function(u){u.__seenByShadyCSS||(u.__seenByShadyCSS=!0,this.customStyles.push(u),xKA(this))};
SY.prototype.getStyleForCustomStyle=function(u){if(u.__shadyCSSCachedStyle)return u.__shadyCSSCachedStyle;var K;u.getStyle?K=u.getStyle():K=u;return K};
SY.prototype.processStyles=function(){for(var u=this.customStyles,K=0;K<u.length;K++){var l=u[K];if(!l.__shadyCSSCachedStyle){var D=this.getStyleForCustomStyle(l);D&&(D=D.__appliedElement||D,tZw&&tZw(D),l.__shadyCSSCachedStyle=D)}}return u};
SY.prototype.addCustomStyle=SY.prototype.addCustomStyle;SY.prototype.getStyleForCustomStyle=SY.prototype.getStyleForCustomStyle;SY.prototype.processStyles=SY.prototype.processStyles;Object.defineProperties(SY.prototype,{transformCallback:{get:function(){return tZw},
set:function(u){tZw=u}},
validateCallback:{get:function(){return x1},
set:function(u){var K=!1;x1||(K=!0);x1=u;K&&xKA(this)}}});var n5n=!(window.ShadyDOM&&window.ShadyDOM.inUse),$Zq,H_;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(H_=window.ShadyCSS.cssBuild);var SVA=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?$Zq=window.ShadyCSS.nativeCss:window.ShadyCSS?(rnZ(window.ShadyCSS),window.ShadyCSS=void 0):rnZ(window.WebComponents&&window.WebComponents.flags);var i3o=$Zq;var bmH=new SY;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(u,K){bmH.processStyles();sXZ(u,K)},
styleElement:function(){bmH.processStyles()},
styleDocument:function(u){bmH.processStyles();sXZ(document.body,u)},
getComputedStyleValue:function(u,K){return o5Z(u,K)},
flushCustomStyles:function(){},
nativeCss:i3o,nativeShadow:n5n,cssBuild:H_,disableRuntime:SVA});window.ShadyCSS.CustomStyleInterface=bmH;var Om0=window.ShadyCSS.CustomStyleInterface,b1=function(){var u=HTMLElement.call(this)||this;u._style=null;Om0.addCustomStyle(u);return u};
_.c(b1,HTMLElement);b1.prototype.getStyle=function(){if(this._style)return this._style;var u=this.querySelector("style");if(!u)return null;this._style=u;var K=u.getAttribute("include");K&&(u.removeAttribute("include"),u.textContent=KzR(K)+u.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
b1.prototype.getStyle=b1.prototype.getStyle;window.customElements.define("custom-style",b1);Polymer.CustomStyle=b1;var OC=function(){this._timer=this._callback=this._asyncModule=null},cS,aJB;
OC.prototype.setConfig=function(u,K){var l=this;this._asyncModule=u;this._callback=K;this._timer=this._asyncModule.run(function(){l._timer=null;cS.delete(l);l._callback()})};
OC.prototype.cancel=function(){this.isActive()&&(cuk(this),cS.delete(this))};
var cuk=function(u){u.isActive()&&(u._asyncModule.cancel(u._timer),u._timer=null)};
OC.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
OC.prototype.isActive=function(){return this._timer!=null};
_.ao=function(u,K,l){u instanceof OC?cuk(u):u=new OC;u.setConfig(K,l);return u};
cS=new Set;_.zV=function(u){cS.add(u)};
aJB=function(){var u=!!cS.size;cS.forEach(function(K){try{K.flush()}catch(l){setTimeout(function(){throw l;})}});
return u};var GbH=typeof document.head.style.touchAction==="string",v5w=["mousedown","mousemove","mouseup","click"],exL=[0,1,4,2],z80;try{z80=(new MouseEvent("test",{buttons:1})).buttons===1}catch(u){z80=!1}var zxb=z80,tlH=!1;(function(){try{var u=Object.defineProperty({},"passive",{get:function(){tlH=!0}});
window.addEventListener("test",null,u);window.removeEventListener("test",null,u)}catch(K){}})();
var b59=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),O59=[],e8B={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},wUq={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},cny=function(u){var K=u.sourceCapabilities;if(!K||K.firesTouchEvents)if(u.__polymerGesturesHandled={skip:!0},u.type==="click"){K=!1;for(var l=QXb(u),D=0;D<l.length;D++){if(l[D].nodeType===Node.ELEMENT_NODE)if(l[D].localName==="label")O59.push(l[D]);
else if(e8B[l[D].localName]){var d=l[D];var C=Array.prototype.slice.call(d.labels||[]);if(!C.length){C=[];try{var W=d.getRootNode();if(d.id){var M=W.querySelectorAll("label[for = '"+d.id+"']");for(d=0;d<M.length;d++)C.push(M[d])}}catch(q){}}for(d=0;d<C.length;d++)K=K||O59.indexOf(C[d])>-1}if(l[D]===R8C)return}K||(u.preventDefault(),u.stopPropagation())}},R8C=null,eY=null,Jnb=0,jXR=0,PwL=-1,Brq=!1;
document.addEventListener("touchend",function(u){eY||aLb(!0);R8C=QXb(u)[0];eY=_.ao(eY,_.qL.after(2500),function(){aLb();eY=R8C=null})},tlH?{passive:!0}:!1);
var QXb=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(u){return u.composedPath&&u.composedPath()||[]},Zh={},NP=[];
pUn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){g_(this.info)},
mousedown:function(u){if(VH(u)){var K=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u),l=this;UZR(this.info,function(D){VH(D)||(hp("up",K,D),g_(l.info))},function(D){VH(D)&&hp("up",K,D);
g_(l.info)});
hp("down",K,u)}},
touchstart:function(u){hp("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u),u.changedTouches[0],u)},
touchend:function(u){hp("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u),u.changedTouches[0],u)}});
pUn({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(u){this.moves.length>2&&this.moves.shift();this.moves.push(u)},
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;g_(this.info)},
mousedown:function(u){if(VH(u)){var K=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u),l=this,D=function(d){var C=d.clientX,W=d.clientY;i5q(l.info,C,W)&&(l.info.state=l.info.started?d.type==="mouseup"?"end":"track":"start",l.info.state==="start"&&kf("tap"),l.info.addMove({x:C,y:W}),VH(d)||(l.info.state="end",g_(l.info)),K&&TrZ(l.info,K,d),l.info.started=!0)};
UZR(this.info,D,function(d){l.info.started&&D(d);g_(l.info)});
this.info.x=u.clientX;this.info.y=u.clientY}},
touchstart:function(u){u=u.changedTouches[0];this.info.x=u.clientX;this.info.y=u.clientY},
touchmove:function(u){var K=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u);u=u.changedTouches[0];var l=u.clientX,D=u.clientY;i5q(this.info,l,D)&&(this.info.state==="start"&&kf("tap"),this.info.addMove({x:l,y:D}),TrZ(this.info,K,u),this.info.state="track",this.info.started=!0)},
touchend:function(u){var K=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u);u=u.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:u.clientX,y:u.clientY}),TrZ(this.info,K,u))}});
pUn({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(u){VH(u)&&(this.info.x=u.clientX,this.info.y=u.clientY)},
click:function(u){VH(u)&&Fzq(this.info,u)},
touchstart:function(u){u=u.changedTouches[0];this.info.x=u.clientX;this.info.y=u.clientY},
touchend:function(u){Fzq(this.info,u.changedTouches[0],u)}});var UKk=$1(function(u){var K=function(){return u.apply(this,arguments)||this};
_.c(K,u);K.prototype._addEventListenerToNode=function(l,D,d){Yf(l,D,d)||u.prototype._addEventListenerToNode.call(this,l,D,d)};
K.prototype._removeEventListenerFromNode=function(l,D,d){Ap(l,D,d)||u.prototype._removeEventListenerFromNode.call(this,l,D,d)};
return K});var Ro=$1(function(u){var K=function(){return u.apply(this,arguments)||this};
_.c(K,u);K.prototype._shouldPropertyChange=function(l,D,d){return Vlr(this,l,D,d,!0)};
return K}),fJ2=$1(function(u){var K=function(){return u.apply(this,arguments)||this};
_.c(K,u);K.prototype._shouldPropertyChange=function(l,D,d){return Vlr(this,l,D,d,this.mutableData)};
_.MN.Object.defineProperties(K,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return K});
Ro._mutablePropertyChange=Vlr;var g5q=!1;var QfA=UKk(fJ2(rV(HTMLElement))),UC=function(){var u=QfA.call(this)||this;if(D8)throw Error("Id");u.root=null;u.$=null;u.__children=null;return u};
_.c(UC,QfA);_.I=UC.prototype;_.I.attributeChangedCallback=function(){this.mutableData=!0};
_.I.connectedCallback=function(){Nrq()||(this.style.display="none");this.render()};
_.I.disconnectedCallback=function(){this.__removeChildren()};
_.I.__insertChildren=function(){(0,_.jB)((0,_.jB)(this).parentNode).insertBefore(this.root,this)};
_.I.__removeChildren=function(){if(this.__children)for(var u=0;u<this.__children.length;u++)this.root.appendChild(this.__children[u])};
_.I.render=function(){var u=this;if(!this.__children){var K=K||this.querySelector("template");if(!K){var l=new MutationObserver(function(){if(K=u.querySelector("template"))l.disconnect(),u.render();else throw Error("Jd");});
l.observe(this,{childList:!0});return}this.root=this._stampTemplate(K);this.$=this.root.$;this.__children=[];for(var D=this.root.firstChild;D;D=D.nextSibling)this.__children[this.__children.length]=D;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.MN.Object.defineProperties(UC,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",UC);Polymer.Debouncer=OC;Polymer.Gestures={gestures:Zh,recognizers:NP,deepTargetFind:fLq,addListener:Yf,removeListener:Ap,register:pUn,setTouchAction:_.X3,prevent:kf,resetMouseCanceller:function(){eY&&eY.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Yf,remove:Ap};Polymer.GestureEventListeners=UKk;Polymer.MutableData=Ro;Polymer.OptionalMutableData=fJ2;Polymer.DomBind=UC;_.fW=function(){do{var u=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var K=aJB()}while(u||K)};var kb9=null;Z5R.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Z5R,writable:!0}});var uYL=rV(Z5R),Lzw=Ro(uYL),Phm=rV(function(){}),u0=function(u){var K=Phm.call(this)||this;
K._configureProperties(u);K.root=K._stampTemplate(K.__dataHost);var l=[];K.children=l;for(var D=K.root.firstChild;D;D=D.nextSibling)l.push(D),D.__templatizeInstance=K;K.__templatizeOwner&&K.__templatizeOwner.__hideTemplateChildren__&&K._showHideChildren(!0);l=K.__templatizeOptions;(u&&l.instanceProps||!l.instanceProps)&&K._enableProperties();return K};
_.c(u0,Phm);_.I=u0.prototype;_.I._configureProperties=function(u){if(this.__templatizeOptions.forwardHostProp)for(var K in this.__hostProps)this._setPendingProperty(K,this.__dataHost["_host_"+K]);for(var l in u)this._setPendingProperty(l,u[l])};
_.I.forwardHostProp=function(u,K){this._setPendingPropertyOrPath(u,K,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.I._addEventListenerToNode=function(u,K,l){var D=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(u,K,function(C){C.model=D;l(C)});
else{var d=this.__dataHost.__dataHost;d&&d._addEventListenerToNode(u,K,l)}};
_.I._showHideChildren=function(u){Ann(u,this.children)};
_.I._setUnmanagedPropertyToNode=function(u,K,l){u.__hideTemplateChildren__&&u.nodeType==Node.TEXT_NODE&&K=="textContent"?u.__polymerTextContent__=l:Phm.prototype._setUnmanagedPropertyToNode.call(this,u,K,l)};
_.I.dispatchEvent=function(){return!0};
_.MN.Object.defineProperties(u0.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var u=this.__parentModel;if(!u){var K;u=this;do u=u.__dataHost.__dataHost;while((K=u.__templatizeOptions)&&!K.parentModel);this.__parentModel=u}return u}}});
var mZh=Ro(u0);var Q9=function(){var u=GV.call(this)||this;u.__renderDebouncer=null;u._lastIf=!1;u.__hideTemplateChildren__=!1;return u};
_.c(Q9,GV);_.I=Q9.prototype;_.I.__debounceRender=function(){var u=this;this.__renderDebouncer=_.ao(this.__renderDebouncer,mY,function(){return u.__render()});
_.zV(this.__renderDebouncer)};
_.I.disconnectedCallback=function(){GV.prototype.disconnectedCallback.call(this);var u=(0,_.jB)(this).parentNode;u&&(u.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.jB)(u).host)||this.__teardownInstance()};
_.I.connectedCallback=function(){GV.prototype.connectedCallback.call(this);Nrq()||(this.style.display="none");this.if&&this.__debounceRender()};
_.I.__ensureTemplate=function(){var u=this;if(!this.__template){var K=this._templateInfo?this:(0,_.jB)(this).querySelector("template");if(!K){var l=new MutationObserver(function(){if((0,_.jB)(u).querySelector("template"))l.disconnect(),u.__render();else throw Error("Md");});
l.observe(this,{childList:!0});return!1}this.__template=K}return!0};
_.I.__ensureInstance=function(){var u=(0,_.jB)(this).parentNode;if(this.__hasInstance()){var K=this.__getInstanceNodes();if(K&&K.length&&(0,_.jB)(this).previousSibling!==K[K.length-1])for(var l=0,D=void 0;l<K.length&&(D=K[l]);l++)(0,_.jB)(u).insertBefore(D,this)}else{if(!u||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(u)}return!0};
_.I.render=function(){_.fW()};
_.I.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();HS&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.I.__hasInstance=function(){};
_.I.__getInstanceNodes=function(){};
_.I.__createAndInsertInstance=function(){};
_.I.__teardownInstance=function(){};
_.I._showHideChildren=function(){};
_.MN.Object.defineProperties(Q9,{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:Q9.prototype.__debounceRender},restamp:{type:Boolean,observer:Q9.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var Juk=function(){var u=Q9.call(this)||this;u.__instance=null;u.__syncInfo=null;return u};
_.c(Juk,Q9);_.I=Juk.prototype;_.I.__hasInstance=function(){return!!this.__instance};
_.I.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.I.__createAndInsertInstance=function(u){var K=this,l=this.__dataHost||this;if(D8&&!this.__dataHost)throw Error("Kd");var D=l._bindTemplate(this.__template,!0);D.runEffects=function(d,C,W){var M=K.__syncInfo;if(K.if)M&&(K.__syncInfo=null,K._showHideChildren(),C=Object.assign(M.changedProps,C)),d(C,W);else if(K.__instance)if(M||(M=K.__syncInfo={runEffects:d,changedProps:{}}),W)for(var q in C)d=eB(q),M.changedProps[d]=K.__dataHost[d];else Object.assign(M.changedProps,C)};
this.__instance=l._stampTemplate(this.__template,D);(0,_.jB)(u).insertBefore(this.__instance,this)};
_.I.__syncHostProperties=function(){var u=this.__syncInfo;u&&(this.__syncInfo=null,u.runEffects(u.changedProps,!1))};
_.I.__teardownInstance=function(){var u=this.__dataHost||this;this.__instance&&(u._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.I._showHideChildren=function(){var u=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==u&&(this.__instance.__hidden=u,Ann(u,this.__instance.templateInfo.childNodes));u||this.__syncHostProperties()};
var jfB=function(){var u=Q9.call(this)||this;u.__ctor=null;u.__instance=null;u.__invalidProps=null;return u};
_.c(jfB,Q9);_.I=jfB.prototype;_.I.__hasInstance=function(){return!!this.__instance};
_.I.__getInstanceNodes=function(){return this.__instance.children};
_.I.__createAndInsertInstance=function(u){this.__ctor||(this.__ctor=Kn(this.__template,this,{mutableData:!0,forwardHostProp:function(K,l){this.__instance&&(this.if?this.__instance.forwardHostProp(K,l):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[eB(K)]=!0))}}));
this.__instance=new this.__ctor;(0,_.jB)(u).insertBefore(this.__instance.root,this)};
_.I.__teardownInstance=function(){if(this.__instance){var u=this.__instance.children;if(u&&u.length){var K=(0,_.jB)(u[0]).parentNode;if(K){K=(0,_.jB)(K);for(var l=0,D=void 0;l<u.length&&(D=u[l]);l++)K.removeChild(D)}}this.__instance=this.__invalidProps=null}};
_.I.__syncHostProperties=function(){var u=this.__invalidProps;if(u){this.__invalidProps=null;for(var K in u)this.__instance._setPendingProperty(K,this.__dataHost[K]);this.__instance._flushProperties()}};
_.I._showHideChildren=function(){var u=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==u&&(this.__instance.__hidden=u,this.__instance._showHideChildren(u));u||this.__syncHostProperties()};
_.Xr=WS?Juk:jfB;customElements.define(_.Xr.is,_.Xr);Polymer.enqueueDebouncer=_.zV;Polymer.flush=_.fW;Polymer.Templatize={templatize:Kn,modelForElement:IOZ};Polymer.TemplateInstanceBase=u0;Polymer.DomIf=_.Xr;var BZH=fJ2(GV),AU=function(){var u=BZH.call(this)||this;u.__instances=[];u.__renderDebouncer=null;u.__itemsIdxToInstIdx={};u.__chunkCount=null;u.__renderStartTime=null;u.__itemsArrayChanged=!1;u.__shouldMeasureChunk=!1;u.__shouldContinueChunking=!1;u.__chunkingId=0;u.__sortFn=null;u.__filterFn=null;u.__observePaths=null;u.__ctor=null;u.__isDetached=!0;u.template=null;return u};
_.c(AU,BZH);_.I=AU.prototype;_.I.disconnectedCallback=function(){BZH.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var u=0;u<this.__instances.length;u++)this.__detachInstance(u);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.I.connectedCallback=function(){BZH.prototype.connectedCallback.call(this);Nrq()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var u=(0,_.jB)((0,_.jB)(this).parentNode),K=0;K<this.__instances.length;K++)this.__attachInstance(K,u);this.__chunkingId&&this.__render()}};
_.I.__ensureTemplatized=function(){var u=this;if(!this.__ctor){var K=this.template=this._templateInfo?this:this.querySelector("template");if(!K){var l=new MutationObserver(function(){if(u.querySelector("template"))l.disconnect(),u.__render();else throw Error("Nd");});
l.observe(this,{childList:!0});return!1}var D={};D[this.as]=!0;D[this.indexAs]=!0;D[this.itemsIndexAs]=!0;this.__ctor=Kn(K,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:D,forwardHostProp:function(d,C){for(var W=this.__instances,M=0,q=void 0;M<W.length&&(q=W[M]);M++)q.forwardHostProp(d,C)},
notifyInstanceProp:function(d,C,W){c3q(this.as,C)&&(d=d[this.itemsIndexAs],C==this.as&&(this.items[d]=W),C=U6(this.as,"items."+d,C),this.notifyPath(C,W))}})}return!0};
_.I.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.I.__functionFromPropertyValue=function(u){if(typeof u==="string"){var K=this.__getMethodHost();return function(){return K[u].apply(K,arguments)}}return u};
_.I.__sortChanged=function(u){this.__sortFn=this.__functionFromPropertyValue(u);this.items&&this.__debounceRender(this.__render)};
_.I.__filterChanged=function(u){this.__filterFn=this.__functionFromPropertyValue(u);this.items&&this.__debounceRender(this.__render)};
_.I.__computeFrameTime=function(u){return Math.ceil(1E3/u)};
_.I.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.I.__handleObservedPaths=function(u){if(this.__sortFn||this.__filterFn)if(!u)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var K=this.__observePaths,l=0;l<K.length;l++)u.indexOf(K[l])===0&&this.__debounceRender(this.__render,this.delay)};
_.I.__itemsChanged=function(u){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(u.path,u.value)||(u.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.I.__debounceRender=function(u,K){K=K===void 0?0:K;this.__renderDebouncer=_.ao(this.__renderDebouncer,K>0?_.qL.after(K):mY,u.bind(this));_.zV(this.__renderDebouncer)};
_.I.render=function(){this.__debounceRender(this.__render);_.fW()};
_.I.__render=function(){var u=this;if(this.__ensureTemplatized()){var K=this.items||[],l=this.__sortAndFilterItems(K),D=this.__calculateLimit(l.length);this.__updateInstances(K,D,l);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){u.__chunkingId=null;u.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);HS&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.I.__sortAndFilterItems=function(u){for(var K=this,l=Array(u.length),D=0;D<u.length;D++)l[D]=D;this.__filterFn&&(l=l.filter(function(d,C,W){return K.__filterFn(u[d],C,W)}));
this.__sortFn&&l.sort(function(d,C){return K.__sortFn(u[d],u[C])});
return l};
_.I.__calculateLimit=function(u){var K=u,l=this.__instances.length;if(this.initialCount){var D;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(K=Math.min(u,this.initialCount),this.__chunkCount=(D=Math.max(K-l,0))||1):(D=Math.min(Math.max(u-l,0),this.__chunkCount),K=Math.min(l+D,u));this.__shouldMeasureChunk=D===this.__chunkCount;this.__shouldContinueChunking=K<u;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return K};
_.I.__continueChunking=function(){if(this.__shouldMeasureChunk){var u=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/u*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.I.__updateInstances=function(u,K,l){var D=this.__itemsIdxToInstIdx={},d;for(d=0;d<K;d++){var C=this.__instances[d],W=l[d],M=u[W];D[W]=d;C?(C._setPendingProperty(this.as,M),C._setPendingProperty(this.indexAs,d),C._setPendingProperty(this.itemsIndexAs,W),C._flushProperties()):this.__insertInstance(M,d,W)}for(u=this.__instances.length-1;u>=d;u--)this.__detachAndRemoveInstance(u)};
_.I.__detachInstance=function(u){u=this.__instances[u];for(var K=(0,_.jB)(u.root),l=0;l<u.children.length;l++)K.appendChild(u.children[l]);return u};
_.I.__attachInstance=function(u,K){K.insertBefore(this.__instances[u].root,this)};
_.I.__detachAndRemoveInstance=function(u){this.__detachInstance(u);this.__instances.splice(u,1)};
_.I.__stampInstance=function(u,K,l){var D={};D[this.as]=u;D[this.indexAs]=K;D[this.itemsIndexAs]=l;return new this.__ctor(D)};
_.I.__insertInstance=function(u,K,l){u=this.__stampInstance(u,K,l);l=(l=this.__instances[K+1])?l.children[0]:this;(0,_.jB)((0,_.jB)(this).parentNode).insertBefore(u.root,l);return this.__instances[K]=u};
_.I._showHideChildren=function(u){for(var K=0;K<this.__instances.length;K++)this.__instances[K]._showHideChildren(u)};
_.I.__handleItemPath=function(u,K){var l=u.slice(6),D=l.indexOf(".");u=D<0?l:l.substring(0,D);if(u==parseInt(u,10)){l=D<0?"":l.substring(D+1);this.__handleObservedPaths(l);if(u=this.__instances[this.__itemsIdxToInstIdx[u]])u._setPendingPropertyOrPath(this.as+(l?"."+l:""),K,!1,!0),u._flushProperties();return!0}};
_.I.itemForElement=function(u){return(u=this.modelForElement(u))&&u[this.as]};
_.I.indexForElement=function(u){return(u=this.modelForElement(u))&&u[this.indexAs]};
_.I.modelForElement=function(u){return IOZ(this.template,u)};
_.MN.Object.defineProperties(AU,{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:AU.prototype.__sortChanged},filter:{type:Function,observer:AU.prototype.__filterChanged},observe:{type:String,observer:AU.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!HS,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.*)"]}}});
AU.prototype._setRenderedItemCount=function(){};
customElements.define(AU.is,AU);Polymer.DomRepeat=AU;var pia=function(u,K){var l=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=u;this.callback=K;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){l._schedule()};
this.connect();this._schedule()},imN=function(u){var K=(0,_.jB)(u);
if(dM(u))return K.assignedNodes({flatten:!0});u=[];for(var l=0;l<K.childNodes.length;l++){var D=K.childNodes[l];dM(D)?u.push.apply(u,_.Am((0,_.jB)(D).assignedNodes({flatten:!0}))):u.push(D)}return u};
_.I=pia.prototype;_.I.connect=function(){var u=this;dM(this._target)?this._listenSlots([this._target]):(0,_.jB)(this._target).children&&(this._listenSlots((0,_.jB)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(K){u._processMutations(K)}):(this._nativeChildrenObserver=new MutationObserver(function(K){u._processMutations(K)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.I.disconnect=function(){dM(this._target)?this._unlistenSlots([this._target]):(0,_.jB)(this._target).children&&(this._unlistenSlots((0,_.jB)(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};
_.I._schedule=function(){var u=this;this._scheduled||(this._scheduled=!0,mY.run(function(){return u.flush()}))};
_.I._processMutations=function(u){this._processSlotMutations(u);this.flush()};
_.I._processSlotMutations=function(u){if(u)for(var K=0;K<u.length;K++){var l=u[K];l.addedNodes&&this._listenSlots(l.addedNodes);l.removedNodes&&this._unlistenSlots(l.removedNodes)}};
_.I.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 u={target:this._target,addedNodes:[],removedNodes:[]},K=imN(this._target),l=Cwr(K,this._effectiveNodes),D=0,d=void 0;D<l.length&&(d=l[D]);D++)for(var C=0,W=void 0;C<d.removed.length&&(W=d.removed[C]);C++)u.removedNodes.push(W);
D=0;for(d=void 0;D<l.length&&(d=l[D]);D++)for(C=d.index;C<d.index+d.addedCount;C++)u.addedNodes.push(K[C]);this._effectiveNodes=K;K=!1;if(u.addedNodes.length||u.removedNodes.length)K=!0,this.callback.call(this._target,u);return K};
_.I._listenSlots=function(u){for(var K=0;K<u.length;K++){var l=u[K];dM(l)&&l.addEventListener("slotchange",this._boundSchedule)}};
_.I._unlistenSlots=function(u){for(var K=0;K<u.length;K++){var l=u[K];dM(l)&&l.removeEventListener("slotchange",this._boundSchedule)}};var PS=Element.prototype,TZm=PS.matches||PS.matchesSelector||PS.mozMatchesSelector||PS.msMatchesSelector||PS.oMatchesSelector||PS.webkitMatchesSelector,wi0=function(u,K){return TZm.call(u,K)},Cn=function(u){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(u);
this.node=u},NZR;
_.I=Cn.prototype;_.I.observeNodes=function(u){return new pia(this.node,u)};
_.I.unobserveNodes=function(u){u.disconnect()};
_.I.notifyObserver=function(){};
_.I.deepContains=function(u){if((0,_.jB)(this.node).contains(u))return!0;var K=u;for(u=u.ownerDocument;K&&K!==u&&K!==this.node;)K=(0,_.jB)(K).parentNode||(0,_.jB)(K).host;return K===this.node};
_.I.getOwnerRoot=function(){return(0,_.jB)(this.node).getRootNode()};
_.I.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.jB)(this.node).assignedNodes({flatten:!0}):[]};
_.I.getDestinationInsertionPoints=function(){for(var u=[],K=(0,_.jB)(this.node).assignedSlot;K;)u.push(K),K=(0,_.jB)(K).assignedSlot;return u};
_.I.importNode=function(u,K){return(0,_.jB)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(u,K)};
_.I.getEffectiveChildNodes=function(){return imN(this.node)};
_.I.queryDistributedElements=function(u){for(var K=this.getEffectiveChildNodes(),l=[],D=0,d=K.length,C=void 0;D<d&&(C=K[D]);D++)C.nodeType===Node.ELEMENT_NODE&&wi0(C,u)&&l.push(C);return l};
_.MN.Object.defineProperties(Cn.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var u=this.node;return u._activeElement!==void 0?u._activeElement:u.activeElement}}});
var J$=function(u){this.event=u};
_.MN.Object.defineProperties(J$.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 FGk=Cn;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var VZR=window.ShadyDOM.Wrapper,gw2=function(){return VZR.apply(this,arguments)||this};
_.c(gw2,VZR);Object.getOwnPropertyNames(Cn.prototype).forEach(function(u){u!="activeElement"&&u!="constructor"&&(gw2.prototype[u]=Cn.prototype[u])});
sjb(gw2.prototype,["classList"]);FGk=gw2;Object.defineProperties(J$.prototype,{localTarget:{get:function(){var u=this.event.currentTarget;u=u&&_.wM(u).getOwnerRoot();for(var K=this.path,l=0;l<K.length;l++){var D=K[l];if(_.wM(D).getOwnerRoot()===u)return D}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else y0q(),sjb(Cn.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),o2n();NZR=FGk;_.wM=function(u){u=u||document;if(u instanceof FGk)return u;if(u instanceof J$)return u;var K=u.__domApi;K||(u instanceof Event?K=new J$(u):K=new FGk(u),u.__domApi=K);return K};var kIs=/:host\(:dir\((ltr|rtl)\)\)/g,ZmH=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,YVa=/:dir\((?:ltr|rtl)\)/,Aua=!(!window.ShadyDOM||!window.ShadyDOM.inUse),yi=[],jY=null,IN="",XiR=$1(function(u){Aua||jY||(IN=document.documentElement.getAttribute("dir"),jY=new MutationObserver(W1H),jY.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var K=u6a(u);u=function(){var l=K.call(this)||this;l.__autoDirOptOut=!1;return l};
_.c(u,K);u._processStyleText=function(l,D){l=K._processStyleText.call(this,l,D);!Aua&&YVa.test(l)&&(l=this._replaceDirInCssText(l),this.__activateDir=!0);return l};
u._replaceDirInCssText=function(l){l=l.replace(kIs,':host([dir="$1"])');return l=l.replace(ZmH,':host([dir="$2"]) $1')};
u.prototype.ready=function(){K.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
u.prototype.connectedCallback=function(){K.prototype.connectedCallback&&K.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(jY&&jY.takeRecords().length&&W1H(),yi.push(this),this.__autoDirOptOut||this.setAttribute("dir",IN))};
u.prototype.disconnectedCallback=function(){K.prototype.disconnectedCallback&&K.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var l=yi.indexOf(this);l>-1&&yi.splice(l,1)}};
u.__activateDir=!1;return u});var mKw=function(u){for(;u;){var K=Object.getOwnPropertyDescriptor(u,"observedAttributes");if(K)return K.get;u=Object.getPrototypeOf(u.prototype).constructor}return function(){return[]}};
$1(function(u){var K=vS(u),l=mKw(K);u=function(){return K.call(this)||this};
_.c(u,K);u.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:K.prototype._initializeProperties.call(this)};
u.prototype._enableProperties=function(){this.__isUpgradeDisabled||K.prototype._enableProperties.call(this)};
u.prototype._canApplyPropertyDefault=function(D){return K.prototype._canApplyPropertyDefault.call(this,D)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(D))};
u.prototype.attributeChangedCallback=function(D,d,C,W){D=="disable-upgrade"?this.__isUpgradeDisabled&&C==null&&(K.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.jB)(this).isConnected&&K.prototype.connectedCallback.call(this)):K.prototype.attributeChangedCallback.call(this,D,d,C,W)};
u.prototype.connectedCallback=function(){this.__isUpgradeDisabled||K.prototype.connectedCallback.call(this)};
u.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||K.prototype.disconnectedCallback.call(this)};
_.MN.Object.defineProperties(u,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return l.call(this).concat("disable-upgrade")}}});
return u});var sW=!1,MaZ=[],oN=[];var r0y=window.ShadyDOM,v2R=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",taR):document.readyState==="interactive"||document.readyState==="complete"?taR():window.addEventListener("DOMContentLoaded",taR);var b3q=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=""},xaH=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Sfn=/@import[^;]*;/gim,Req=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Uaq=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,fOy=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Qjo=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,zeL=/^@[^\s]*keyframes/,
aOH=/\s+/g;var PDw={};var Baw=Promise.resolve();var h8w=new Set;var Eww=/;\s*/m,LGA=/^\s*(initial)|(inherit)\s*$/,uQH=/\s*!important/,Kd0=function(){this._map={}};
Kd0.prototype.set=function(u,K){u=u.trim();this._map[u]={properties:K,dependants:{}}};
Kd0.prototype.get=function(u){u=u.trim();return this._map[u]||null};
var lUN=null,BS=function(){this._measureElement=this._currentElement=null;this._map=new Kd0};
_.I=BS.prototype;_.I.detectMixin=function(u){u=GIC.test(u)||vww.test(u);GIC.lastIndex=0;vww.lastIndex=0;return u};
_.I.transformTemplate=function(u,K){if(u._gatheredStyle===void 0){var l=[];for(var D=u.content.querySelectorAll("style"),d=0;d<D.length;d++){var C=D[d];if(C.hasAttribute("shady-unscoped")){if(!n5n){var W=C.textContent;if(!h8w.has(W)){h8w.add(W);var M=document.createElement("style");M.setAttribute("shady-unscoped","");M.textContent=W;document.head.appendChild(M)}C.parentNode.removeChild(C)}}else l.push(C.textContent),C.parentNode.removeChild(C)}(l=l.join("").trim())?(D=document.createElement("style"),
D.textContent=l,u.content.insertBefore(D,u.content.firstChild),l=D):l=null;u._gatheredStyle=l}return(u=u._gatheredStyle)?this.JSC$11141_transformStyle(u,K):null};
_.I.JSC$11141_transformStyle=function(u,K){K=K===void 0?"":K;var l=w8R(u);this.transformRules(l,K);u.textContent=TaL(l);return l};
_.I.transformCustomStyle=function(u){var K=this,l=w8R(u);VaL(l,function(D){D.selector===":root"&&(D.selector="html");K.transformRule(D)});
u.textContent=TaL(l);return l};
_.I.transformRules=function(u,K){var l=this;this._currentElement=K;VaL(u,function(D){l.transformRule(D)});
this._currentElement=null};
_.I.transformRule=function(u){u.cssText=DuH(this,u.parsedCssText,u);u.selector===":root"&&(u.selector=":host > *")};
var DuH=function(u,K,l){K=K.replace(vww,function(D,d,C,W){return u._produceCssProperties(D,d,C,W,l)});
return u._consumeCssProperties(K,l)};
_.I=BS.prototype;_.I._getInitialValueForProperty=function(u){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(u)};
_.I._fallbacksFromPreviousRules=function(u){for(var K=this,l=u;l.parent;)l=l.parent;var D={},d=!1;VaL(l,function(C){(d=d||C===u)||C.selector===u.selector&&Object.assign(D,K._cssTextToMap(C.parsedCssText))});
return D};
_.I._consumeCssProperties=function(u,K){for(var l;l=GIC.exec(u);){var D=l[0],d=l[1];l=l.index;var C=l+D.indexOf("@apply"),W=l+D.length;D=u.slice(0,C);u=u.slice(W);C=K?this._fallbacksFromPreviousRules(K):{};Object.assign(C,this._cssTextToMap(D));d=this._atApplyToCssProperties(d,C);u=D+d+u;GIC.lastIndex=l+d.length}return u};
_.I._atApplyToCssProperties=function(u,K){u=u.replace(Eww,"");var l=[],D=this._map.get(u);D||(this._map.set(u,{}),D=this._map.get(u));if(D){this._currentElement&&(D.dependants[this._currentElement]=!0);var d,C=D.properties;for(d in C){var W=K&&K[d];D=[d,": var(",u,"_-_",d];W&&D.push(",",W.replace(uQH,""));D.push(")");uQH.test(C[d])&&D.push(" !important");l.push(D.join(""))}}return l.join("; ")};
_.I._replaceInitialOrInherit=function(u,K){var l=LGA.exec(K);l&&(K=l[1]?this._getInitialValueForProperty(u):"apply-shim-inherit");return K};
_.I._cssTextToMap=function(u,K){K=K===void 0?!1:K;u=u.split(";");for(var l,D,d={},C=0;C<u.length;C++)if(l=u[C])D=l.split(":"),D.length>1&&(l=D[0].trim(),D=D.slice(1).join(":"),K&&(D=this._replaceInitialOrInherit(l,D)),d[l]=D);return d};
_.I._invalidateMixinEntry=function(u){if(lUN)for(var K in u.dependants)K!==this._currentElement&&lUN(K)};
_.I._produceCssProperties=function(u,K,l,D,d){var C=this;l&&g2n(l,function(a,f){f&&C._map.get(f)&&(D="@apply "+f+";")});
if(!D)return u;var W=this._consumeCssProperties(""+D,d);d=u.slice(0,u.indexOf("--"));var M=W=this._cssTextToMap(W,!0),q=this._map.get(K),v=q&&q.properties;v?M=Object.assign(Object.create(v),W):this._map.set(K,M);var G=[],t,x=!1;for(t in M){var O=W[t];O===void 0&&(O="initial");!v||t in v||(x=!0);G.push(K+"_-_"+t+": "+O)}x&&this._invalidateMixinEntry(q);q&&(q.properties=M);l&&(d=u+";"+d);return d+G.join("; ")+";"};
BS.prototype.detectMixin=BS.prototype.detectMixin;BS.prototype.transformStyle=BS.prototype.JSC$11141_transformStyle;BS.prototype.transformCustomStyle=BS.prototype.transformCustomStyle;BS.prototype.transformRules=BS.prototype.transformRules;BS.prototype.transformRule=BS.prototype.transformRule;BS.prototype.transformTemplate=BS.prototype.transformTemplate;BS.prototype._separator="_-_";Object.defineProperty(BS.prototype,"invalidCallback",{get:function(){return lUN},
set:function(u){lUN=u}});var pW=new BS,duk=function(){this.customStyleInterface=null;pW.invalidCallback=J0R},i1=function(u){!u.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(u.customStyleInterface=window.ShadyCSS.CustomStyleInterface,u.customStyleInterface.transformCallback=function(K){pW.transformCustomStyle(K)},u.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){u.customStyleInterface.enqueued&&u.flushCustomStyles()})})};
_.I=duk.prototype;_.I.prepareTemplate=function(u,K){i1(this);Nah(u)===""&&(PDw[K]=u,K=pW.transformTemplate(u,K),u._styleAst=K)};
_.I.flushCustomStyles=function(){i1(this);if(this.customStyleInterface){var u=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var K=0;K<u.length;K++){var l=this.customStyleInterface.getStyleForCustomStyle(u[K]);l&&pW.transformCustomStyle(l)}this.customStyleInterface.enqueued=!1}}};
_.I.styleSubtree=function(u,K){i1(this);K&&sXZ(u,K);if(u.shadowRoot)for(this.styleElement(u),u=u.shadowRoot.children||u.shadowRoot.childNodes,K=0;K<u.length;K++)this.styleSubtree(u[K]);else for(u=u.children||u.childNodes,K=0;K<u.length;K++)this.styleSubtree(u[K])};
_.I.styleElement=function(u){i1(this);var K=u.localName,l;K?K.indexOf("-")>-1?l=K:l=u.getAttribute&&u.getAttribute("is")||"":l=u.is;K=PDw[l];if(!(K&&Nah(K)!==""||!K||jjL(K))){if(jjL(K)||K._applyShimValidatingVersion!==K._applyShimNextVersion)this.prepareTemplate(K,l),p8Z(K);if(u=u.shadowRoot)if(u=u.querySelector("style"))u.__cssRules=K._styleAst,u.textContent=TaL(K._styleAst)}};
_.I.styleDocument=function(u){i1(this);this.styleSubtree(document.body,u)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var TV=new duk,Cvk=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(u,K){TV.flushCustomStyles();TV.prepareTemplate(u,K)},
prepareTemplateStyles:function(u,K,l){window.ShadyCSS.prepareTemplate(u,K,l)},
prepareTemplateDom:function(){},
styleSubtree:function(u,K){TV.flushCustomStyles();TV.styleSubtree(u,K)},
styleElement:function(u){TV.flushCustomStyles();TV.styleElement(u)},
styleDocument:function(u){TV.flushCustomStyles();TV.styleDocument(u)},
getComputedStyleValue:function(u,K){return o5Z(u,K)},
flushCustomStyles:function(){TV.flushCustomStyles()},
nativeCss:i3o,nativeShadow:n5n,cssBuild:H_,disableRuntime:SVA};Cvk&&(window.ShadyCSS.CustomStyleInterface=Cvk)}window.ShadyCSS.ApplyShim=pW;var IUB;IUB=window.ShadyCSS;_.wV=$1(function(u){u=UKk(vS(u));var K=WGR?u:XiR(u),l=mKw(K),D={x:"pan-x",y:"pan-y",none:"none",all:"auto"};u=function(){return K.call(this)||this};
_.c(u,K);u.prototype.created=function(){};
u.prototype.__attributeReaction=function(d,C,W){(this.__dataAttributes&&this.__dataAttributes[d]||d==="disable-upgrade")&&this.attributeChangedCallback(d,C,W,null)};
u.prototype.setAttribute=function(d,C){if(iNk&&!this._legacyForceObservedAttributes){var W=this.getAttribute(d);K.prototype.setAttribute.call(this,d,C);this.__attributeReaction(d,W,String(C))}else K.prototype.setAttribute.call(this,d,C)};
u.prototype.removeAttribute=function(d){if(iNk&&!this._legacyForceObservedAttributes){var C=this.getAttribute(d);K.prototype.removeAttribute.call(this,d);this.__attributeReaction(d,C,null)}else K.prototype.removeAttribute.call(this,d)};
u.prototype._enableProperties=function(){this.__isUpgradeDisabled||K.prototype._enableProperties.call(this)};
u.prototype._canApplyPropertyDefault=function(d){return K.prototype._canApplyPropertyDefault.call(this,d)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(d))};
u.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(K.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
u.prototype.attached=function(){};
u.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(K.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
u.prototype.detached=function(){};
u.prototype.attributeChangedCallback=function(d,C,W,M){C!==W&&(d=="disable-upgrade"?this.__isUpgradeDisabled&&W==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.jB)(this).isConnected&&this.connectedCallback()):(K.prototype.attributeChangedCallback.call(this,d,C,W,M),this.attributeChanged(d,C,W)))};
u.prototype.attributeChanged=function(){};
u.prototype._initializeProperties=function(){if(E6&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var d=Object.getPrototypeOf(this);d.hasOwnProperty("__hasRegisterFinished")||(this._registered(),d.__hasRegisterFinished=!0);K.prototype._initializeProperties.call(this);this.root=this;this.created();iNk&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
u.prototype._takeAttributes=function(){for(var d=this.attributes,C=0,W=d.length;C<W;C++){var M=d[C];this.__attributeReaction(M.name,null,M.value)}};
u.prototype._registered=function(){};
u.prototype.ready=function(){this._ensureAttributes();K.prototype.ready.call(this)};
u.prototype._ensureAttributes=function(){};
u.prototype._applyListeners=function(){};
u.prototype.serialize=function(d){return this._serializeValue(d)};
u.prototype.deserialize=function(d,C){return this._deserializeValue(d,C)};
u.prototype.reflectPropertyToAttribute=function(d,C,W){this._propertyToAttribute(d,C,W)};
u.prototype.serializeValueToAttribute=function(d,C,W){this._valueToNodeAttribute(W||this,d,C)};
u.prototype.extend=function(d,C){if(!d||!C)return d||C;for(var W=Object.getOwnPropertyNames(C),M=0,q=void 0;M<W.length&&(q=W[M]);M++){var v=Object.getOwnPropertyDescriptor(C,q);v&&Object.defineProperty(d,q,v)}return d};
u.prototype.mixin=function(d,C){for(var W in C)d[W]=C[W];return d};
u.prototype.chainObject=function(d,C){d&&C&&d!==C&&(d.__proto__=C);return d};
u.prototype.instanceTemplate=function(d){d=this.constructor._contentForTemplate(d);return document.importNode(d,!0)};
u.prototype.fire=function(d,C,W){W=W||{};C=C===null||C===void 0?{}:C;d=new Event(d,{bubbles:W.bubbles===void 0?!0:W.bubbles,cancelable:!!W.cancelable,composed:W.composed===void 0?!0:W.composed});d.detail=C;(0,_.jB)(W.node||this).dispatchEvent(d);return d};
u.prototype.listen=function(d,C,W){d=d||this;var M=this.__boundListeners||(this.__boundListeners=new WeakMap),q=M.get(d);q||(q={},M.set(d,q));M=C+W;q[M]||(q[M]=this._addMethodEventListenerToNode(d,C,W,this))};
u.prototype.unlisten=function(d,C,W){d=d||this;var M=this.__boundListeners&&this.__boundListeners.get(d);W=C+W;var q=M&&M[W];q&&(this._removeEventListenerFromNode(d,C,q),M[W]=null)};
u.prototype.setScrollDirection=function(d,C){_.X3(C||this,D[d]||"auto")};
u.prototype.$$=function(d){return this.root.querySelector(d)};
u.prototype.distributeContent=function(){var d=_.wM(this);window.ShadyDOM&&d.shadowRoot&&ShadyDOM.flush()};
u.prototype.getEffectiveChildNodes=function(){return _.wM(this).getEffectiveChildNodes()};
u.prototype.queryDistributedElements=function(d){return _.wM(this).queryDistributedElements(d)};
u.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(d){return d.nodeType===Node.ELEMENT_NODE})};
u.prototype.getEffectiveTextContent=function(){for(var d=this.getEffectiveChildNodes(),C=[],W=0,M;M=d[W];W++)M.nodeType!==Node.COMMENT_NODE&&C.push(M.textContent);return C.join("")};
u.prototype.queryEffectiveChildren=function(d){return(d=this.queryDistributedElements(d))&&d[0]};
u.prototype.queryAllEffectiveChildren=function(d){return this.queryDistributedElements(d)};
u.prototype.getContentChildNodes=function(d){return(d=this.root.querySelector(d||"slot"))?_.wM(d).getDistributedNodes():[]};
u.prototype.getContentChildren=function(d){return this.getContentChildNodes(d).filter(function(C){return C.nodeType===Node.ELEMENT_NODE})};
u.prototype.isLightDescendant=function(d){return this!==d&&(0,_.jB)(this).contains(d)&&(0,_.jB)(this).getRootNode()===(0,_.jB)(d).getRootNode()};
u.prototype.isLocalDescendant=function(d){return this.root===(0,_.jB)(d).getRootNode()};
u.prototype.scopeSubtree=function(d,C){return GRR(d,C===void 0?!1:C)};
u.prototype.getComputedStyleValue=function(d){return IUB.getComputedStyleValue(this,d)};
u.prototype.debounce=function(d,C,W){this._debouncers=this._debouncers||{};return this._debouncers[d]=_.ao(this._debouncers[d],W>0?_.qL.after(W):mY,C.bind(this))};
u.prototype.isDebouncerActive=function(d){this._debouncers=this._debouncers||{};d=this._debouncers[d];return!(!d||!d.isActive())};
u.prototype.flushDebouncer=function(d){this._debouncers=this._debouncers||{};(d=this._debouncers[d])&&d.flush()};
u.prototype.cancelDebouncer=function(d){this._debouncers=this._debouncers||{};(d=this._debouncers[d])&&d.cancel()};
u.prototype.async=function(d,C){return C>0?_.qL.run(d.bind(this),C):~mY.run(d.bind(this))};
u.prototype.cancelAsync=function(d){d<0?mY.cancel(~d):_.qL.cancel(d)};
u.prototype.create=function(d,C){d=document.createElement(d);if(C)if(d.setProperties)d.setProperties(C);else for(var W in C)d[W]=C[W];return d};
u.prototype.elementMatches=function(d,C){return wi0(C||this,d)};
u.prototype.toggleAttribute=function(d,C){var W=this;arguments.length===3&&(W=arguments[2]);arguments.length==1&&(C=!W.hasAttribute(d));if(C)return(0,_.jB)(W).setAttribute(d,""),!0;(0,_.jB)(W).removeAttribute(d);return!1};
u.prototype.toggleClass=function(d,C,W){W=W||this;arguments.length==1&&(C=!W.classList.contains(d));C?W.classList.add(d):W.classList.remove(d)};
u.prototype.transform=function(d,C){C=C||this;C.style.webkitTransform=d;C.style.transform=d};
u.prototype.translate3d=function(d,C,W,M){this.transform("translate3d("+d+","+C+","+W+")",M||this)};
u.prototype.arrayDelete=function(d,C){if(Array.isArray(d)){if(C=d.indexOf(C),C>=0)return d.splice(C,1)}else if(C=QH(this,d).indexOf(C),C>=0)return this.splice(d,C,1);return null};
u.prototype._logger=function(d,C){Array.isArray(C)&&C.length===1&&Array.isArray(C[0])&&(C=C[0]);switch(d){case "log":case "warn":case "error":console[d].apply(console,_.Am(C))}};
u.prototype._log=function(){this._logger("log",_.uY.apply(0,arguments))};
u.prototype._warn=function(){this._logger("warn",_.uY.apply(0,arguments))};
u.prototype._error=function(){this._logger("error",_.uY.apply(0,arguments))};
u.prototype._logf=function(d){return["[%s::%s]",this.is,d].concat(_.Am(_.uY.apply(1,arguments)))};
_.MN.Object.defineProperties(u.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var d=(0,_.jB)(this).getRootNode();return d instanceof DocumentFragment?d.host:d}}});
_.MN.Object.defineProperties(u,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return iNk&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],vew(this.prototype)),this.__observedAttributes):l.call(this).concat("disable-upgrade")}}});
u.prototype.is="";return u});Polymer.FlattenedNodesObserver=pia;Polymer.DomApi=NZR;Polymer.EventApi=J$;Polymer.dom=_.wM;Polymer.dom.matchesSelector=wi0;Polymer.dom.flush=_.fW;Polymer.dom.addDebouncer=_.zV;Polymer.DirMixin=XiR;Polymer.RenderStatus={beforeNextRender:_.n2Z,afterNextRender:_.W_,flush:function(){for(;MaZ.length||oN.length;)H3R(MaZ),H3R(oN);sW=!1}};Polymer.LegacyElementMixin=_.wV;var y_N;y_N=Ro._mutablePropertyChange;var s7N={properties:{mutableData:Boolean},_shouldPropertyChange:function(u,K,l){return y_N(this,u,K,l,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(u,K,l){return y_N(this,u,K,l,!0)}};
Polymer.OptionalMutableDataBehavior=s7N;var kRb={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},mar={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},X8y=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},mar),oOk=(0,_.wV)(HTMLElement),j4o=function(u,K){u||console.warn("Polymer.Class requires `info` argument");K=K?K(oOk):oOk;K=heR(u,K,u.behaviors);K.is=K.prototype.is=
u.is;return K};Polymer.Class=j4o;Polymer.mixinBehaviors=function(u,K){return heR({},(0,_.wV)(K),u)};
Polymer.GenerateClassFromInfo=heR;_.YH=function(u){var K=typeof u==="function"?u:_.YH.Class(u);u._legacyForceObservedAttributes&&(K.prototype._legacyForceObservedAttributes=u._legacyForceObservedAttributes);customElements.define(K.is,K);return K};
_.YH.Class=j4o;Polymer._polymerFn=_.YH;var WdR=window.onLegacyPolymerFunctionDefinedCallback;WdR&&WdR();var p6q={templatize:function(u,K){this._templatizerTemplate=u;this.ctor=Kn(u,this,{mutableData:!!K,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(u){return new this.ctor(u)},
modelForElement:function(u){return IOZ(this._templatizerTemplate,u)}};Polymer.Templatizer=p6q;_.FG=(0,_.wV)(HTMLElement).prototype;Polymer.Base=_.FG;var L1h=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.qN=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.c(_.qN,PolymerFakeBaseClass);var $r=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.c($r,PolymerFakeBaseClass);var uVq=Symbol("Od"),sqr=[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 Hcs=Hcs||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},MtA;(function(u){function K(Z,A,h){var C9=m.get(Z);if(!C9){if(!h)return;C9=new p;m.set(Z,C9)}Z=C9.get(A);if(!Z){if(!h)return;Z=new p;C9.set(A,Z)}return Z}
function l(Z,A,h){if(D(Z,A,h))return!0;A=x(A);return A!==null?l(Z,A,h):!1}
function D(Z,A,h){A=K(A,h,!1);return A===void 0?!1:!!A.has(Z)}
function d(Z,A,h){if(D(Z,A,h))return C(Z,A,h);A=x(A);if(A!==null)return d(Z,A,h)}
function C(Z,A,h){A=K(A,h,!1);if(A!==void 0)return A.get(Z)}
function W(Z,A){var h=M(Z,A);Z=x(Z);if(Z===null)return h;var C9=W(Z,A);if(C9.length<=0)return h;if(h.length<=0)return C9;A=new V;Z=[];h=_.y(h);for(var Wo=h.next();!Wo.done;Wo=h.next())Wo=Wo.value,A.has(Wo)||(A.add(Wo),Z.push(Wo));h=_.y(C9);for(C9=h.next();!C9.done;C9=h.next())C9=C9.value,A.has(C9)||(A.add(C9),Z.push(C9));return Z}
function M(Z,A){Z=K(Z,A,!1);var h=[];Z&&Z.forEach(function(C9,Wo){return h.push(Wo)});
return h}
function q(Z){return Z===void 0}
function v(Z){return typeof Z==="object"?Z!==null:typeof Z==="function"}
function G(Z){return typeof Z==="function"}
function t(Z){return typeof Z==="symbol"?Z:String(Z)}
function x(Z){var A=Object.getPrototypeOf(Z);if(typeof Z!=="function"||Z===B||A!==B)return A;var h=Object.getPrototypeOf(Z.prototype);if(h==null||h===Object.prototype)return A;h=h.constructor;return typeof h!=="function"||h===Z?A:h}
function O(){function Z(){this._keys=[];this._values=[];this._cache=A}
var A={};Z.prototype={get size(){return this._keys.length},has:function(h){return h===this._cache?!0:this._find(h)>=0?(this._cache=h,!0):!1},
get:function(h){var C9=this._find(h);if(C9>=0)return this._cache=h,this._values[C9]},
set:function(h,C9){this.delete(h);this._keys.push(h);this._values.push(C9);this._cache=h;return this},
delete:function(h){h=this._find(h);return h>=0?(this._keys.splice(h,1),this._values.splice(h,1),this._cache=A,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=A},
forEach:function(h){for(var C9=this.size,Wo=0;Wo<C9;++Wo){var $y=this._keys[Wo],co=this._values[Wo];this._cache=$y;h.call(this,co,$y,this)}},
_find:function(h){for(var C9=this._keys,Wo=C9.length,$y=0;$y<Wo;++$y)if(C9[$y]===h)return $y;return-1}};
return Z}
function a(){function Z(){this._map=new p}
Z.prototype={get size(){return this._map.length},has:function(A){return this._map.has(A)},
add:function(A){this._map.set(A,A);return this},
delete:function(A){return this._map.delete(A)},
clear:function(){this._map.clear()},
forEach:function(A,h){this._map.forEach(A,h)}};
return Z}
function f(){function Z(){this._key=h()}
function A(tH,gq){for(var Bo=0;Bo<gq;++Bo)tH[Bo]=Math.random()*255|0}
function h(){do{if(Wo)var tH=Wo.randomBytes(16);else typeof Uint8Array==="function"?(tH=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(tH):A(tH,16)):(tH=Array(16),A(tH,16));tH[6]=tH[6]&79|64;tH[8]=tH[8]&191|128;for(var gq="",Bo=0;Bo<16;++Bo){var uk=tH[Bo];if(Bo===4||Bo===6||Bo===8)gq+="-";uk<16&&(gq+="0");gq+=uk.toString(16).toLowerCase()}tH="@@WeakMap@@"+gq}while($y.call(co,tH));co[tH]=!0;return tH}
function C9(tH,gq){if(!$y.call(tH,UZ)){if(!gq)return;Object.defineProperty(tH,UZ,{value:Object.create(null)})}return tH[UZ]}
var Wo=typeof global!=="undefined"&&typeof Hcs==="object"&&typeof require==="function"&&require("crypto"),$y=Object.prototype.hasOwnProperty,co={},UZ=h();Z.prototype={has:function(tH){return(tH=C9(tH,!1))?this._key in tH:!1},
get:function(tH){if(tH=C9(tH,!1))return tH[this._key]},
set:function(tH,gq){C9(tH,!0)[this._key]=gq;return this},
delete:function(tH){return(tH=C9(tH,!1))&&this._key in tH?delete tH[this._key]:!1},
clear:function(){this._key=h()}};
return Z}
var B=Object.getPrototypeOf(Function),p=typeof Map==="function"?Map:O(),V=typeof Set==="function"?Set:a(),m=new (typeof WeakMap==="function"?WeakMap:f());u.decorate=function(Z,A,h,C9){if(q(C9)){if(q(h)){if(!Array.isArray(Z))throw new TypeError;if(!G(A))throw new TypeError;for(h=Z.length-1;h>=0;--h)if(C9=(0,Z[h])(A),!q(C9)){if(!G(C9))throw new TypeError;A=C9}return A}if(!Array.isArray(Z))throw new TypeError;if(!v(A))throw new TypeError;h=t(h);for(C9=Z.length-1;C9>=0;--C9)(0,Z[C9])(A,h)}else{if(Array.isArray(Z))if(v(A)){if(q(h))throw new TypeError;
if(!v(C9))throw new TypeError;}else throw new TypeError;else throw new TypeError;h=t(h);for(var Wo=Z.length-1;Wo>=0;--Wo){var $y=(0,Z[Wo])(A,h,C9);if(!q($y)){if(!v($y))throw new TypeError;C9=$y}}return C9}};
u.metadata=function(Z,A){return function(h,C9){if(q(C9)){if(!G(h))throw new TypeError;K(h,void 0,!0).set(Z,A)}else{if(!v(h))throw new TypeError;C9=t(C9);K(h,C9,!0).set(Z,A)}}};
u.defineMetadata=function(Z,A){var h;if(v(A))q(h)||(h=t(h));else throw new TypeError;K(A,h,!0).set("parameters",Z)};
u.hasMetadata=function(Z,A,h){if(v(A))q(h)||(h=t(h));else throw new TypeError;return l(Z,A,h)};
u.hasOwnMetadata=function(Z,A,h){if(v(A))q(h)||(h=t(h));else throw new TypeError;return D(Z,A,h)};
u.getMetadata=function(Z,A,h){if(v(A))q(h)||(h=t(h));else throw new TypeError;return d(Z,A,h)};
u.getOwnMetadata=function(Z,A,h){if(v(A))q(h)||(h=t(h));else throw new TypeError;return C(Z,A,h)};
u.getMetadataKeys=function(Z,A){if(v(Z))q(A)||(A=t(A));else throw new TypeError;return W(Z,A)};
u.getOwnMetadataKeys=function(Z,A){if(v(Z))q(A)||(A=t(A));else throw new TypeError;return M(Z,A)};
u.deleteMetadata=function(Z,A,h){if(v(A))q(h)||(h=t(h));else throw new TypeError;var C9=K(A,h,!1);if(!q(C9)){if(!C9.delete(Z))return!1;if(C9.size>0)return!0;Z=m.get(A);Z.delete(h);if(Z.size>0)return!0;m.delete(A);return!0}};
(function(Z){if(typeof Z.Reflect!=="undefined"){if(Z.Reflect!==u)for(var A in u)Z.Reflect[A]=u[A]}else Z.Reflect=u})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(MtA||(MtA={}));var qdC=function(){this.aborted=!1;this.onabort=null;this.target=document.createDocumentFragment?document.createDocumentFragment():document.createElement("div")};
qdC.prototype.addEventListener=function(u,K,l){this.target.addEventListener(u,K,l)};
qdC.prototype.removeEventListener=function(u,K,l){this.target.removeEventListener(u,K,l)};
qdC.prototype.dispatchEvent=function(u){if(this.onabort&&u.type==="abort")this.onabort(u);return this.target.dispatchEvent(u)};var $uH=function(){this.signal=new qdC};
$uH.prototype.abort=function(){if(!this.signal.aborted){this.signal.aborted=!0;var u=document.createEvent("Event");u.initEvent("abort",!1,!1);this.signal.dispatchEvent(u)}};var t0b=self;var nOw=[0,_.Wy,_.Mb,_.Wy];var r_m=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(r_m,_.b5);var vO0=_.US(r_m,[0,_.LVq,_.qb,nOw,_.Mb,_.rR]);_.Sa(_.nn,_.TZ);_.I=_.nn.prototype;_.I.start=function(){this.stop();this.usingListeners_=!1;var u=GOw(this),K=ttB(this);u&&!K&&this.JSC$11190_win_.mozRequestAnimationFrame?(this.JSC$11190_id_=_.kU(this.JSC$11190_win_,"MozBeforePaint",this.callback_),this.JSC$11190_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11190_id_=u&&K?u.call(this.JSC$11190_win_,this.callback_):this.JSC$11190_win_.setTimeout(WaB(this.callback_),20)};
_.I.stop=function(){if(this.isActive()){var u=GOw(this),K=ttB(this);u&&!K&&this.JSC$11190_win_.mozRequestAnimationFrame?V2(this.JSC$11190_id_):u&&K?K.call(this.JSC$11190_win_,this.JSC$11190_id_):this.JSC$11190_win_.clearTimeout(this.JSC$11190_id_)}this.JSC$11190_id_=null};
_.I.fire=function(){this.stop();this.JSC$11192_doAction_()};
_.I.isActive=function(){return this.JSC$11190_id_!=null};
_.I.JSC$11192_doAction_=function(){this.usingListeners_&&this.JSC$11190_id_&&V2(this.JSC$11190_id_);this.JSC$11190_id_=null;this.JSC$11190_listener_.call(this.handler_,_.x2())};
_.I.disposeInternal=function(){this.stop();_.nn.superClass_.disposeInternal.call(this)};
var GOw=function(u){u=u.JSC$11190_win_;return u.requestAnimationFrame||u.webkitRequestAnimationFrame||u.mozRequestAnimationFrame||u.oRequestAnimationFrame||u.msRequestAnimationFrame||null},ttB=function(u){u=u.JSC$11190_win_;
return u.cancelAnimationFrame||u.cancelRequestAnimationFrame||u.webkitCancelRequestAnimationFrame||u.mozCancelRequestAnimationFrame||u.oCancelRequestAnimationFrame||u.msCancelRequestAnimationFrame||null};_.MC=function(u,K,l){_.TZ.call(this);this.JSC$11193_listener_=l!=null?u.bind(l):u;this.JSC$11193_interval_=K;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11193_timer_=null};
_.c(_.MC,_.TZ);_.I=_.MC.prototype;_.I.fire=function(u){this.args_=arguments;this.JSC$11193_timer_||this.pauseCount_?this.shouldFire_=!0:xuS(this)};
_.I.stop=function(){this.JSC$11193_timer_&&(_.lL.clearTimeout(this.JSC$11193_timer_),this.JSC$11193_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.I.pause=function(){this.pauseCount_++};
_.I.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11193_timer_||(this.shouldFire_=!1,xuS(this))};
_.I.disposeInternal=function(){_.TZ.prototype.disposeInternal.call(this);this.stop()};
var xuS=function(u){u.JSC$11193_timer_=kz(function(){u.JSC$11193_timer_=null;u.shouldFire_&&!u.pauseCount_&&(u.shouldFire_=!1,xuS(u))},u.JSC$11193_interval_);
var K=u.args_;u.args_=null;u.JSC$11193_listener_.apply(null,K)};var SdN=function(u,K){this.childIterator_=u[_.lL.Symbol.iterator]();this.mapFn_=K};
SdN.prototype[Symbol.iterator]=function(){return this};
SdN.prototype.next=function(){var u=this.childIterator_.next();return{value:u.done?void 0:this.mapFn_.call(void 0,u.value),done:u.done}};
var bca=function(u,K){return new SdN(u,K)};var Ocw={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 uUw=function(u){var K=c_a(u);if(!K)throw Error("Sd`"+u);return K},c_a=function(u){var K={};
u=String(u);var l=u.charAt(0)=="#"?u:"#"+u;if(aUw.test(l))return K.hex=Aco(l),K.type="hex",K;l=dyw(u);return l.length?(K.hex=pBL(l[0],l[1],l[2]),K.type="rgb",K):Ocw&&(u=Ocw[u.toLowerCase()])?(K.hex=u,K.type="named",K):null},zVS=/#(.)(.)(.)/,Aco=function(u){if(!aUw.test(u))throw Error("Ud`"+u);
u.length==4&&(u=u.replace(zVS,"#$1$1$2$2$3$3"));return u.toLowerCase()},K$n=function(u){u=Aco(u);
u=parseInt(u.slice(1),16);return[u>>16,u>>8&255,u&255]},pBL=function(u,K,l){u=Number(u);
K=Number(K);l=Number(l);if(u!=(u&255)||K!=(K&255)||l!=(l&255))throw Error("Vd`"+u+"`"+K+"`"+l);K=u<<16|K<<8|l;return u<16?"#"+(16777216|K).toString(16).slice(1):"#"+K.toString(16)},aUw=/^#(?:[0-9a-f]{3}){1,2}$/i,eV2=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,dyw=function(u){var K=u.match(eV2);
if(K){u=Number(K[1]);var l=Number(K[2]);K=Number(K[3]);if(u>=0&&u<=255&&l>=0&&l<=255&&K>=0&&K<=255)return[u,l,K]}return[]};var RVa={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},Tk=RVa;Tk=RVa;var vtR,UuH,fUw;vtR=function(u,K){switch(K){case 1:return u%4!=0||u%100==0&&u%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
UuH=function(u,K,l,D,d){u=new Date(u,K,l);d=d||0;return u.valueOf()+(((D!==void 0?D:3)-d+7)%7-((u.getDay()+6)%7-d+7)%7)*864E5};
_.V9=function(u,K,l){typeof u==="number"?(this.date=fUw(u,K||0,l||1),Q70(this,l||1)):_.Ks(u)?(this.date=fUw(u.getFullYear(),u.getMonth(),u.getDate()),Q70(this,u.getDate())):(this.date=new Date(_.x2()),u=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Q70(this,u))};
fUw=function(u,K,l){K=new Date(u,K,l);u>=0&&u<100&&K.setFullYear(K.getFullYear()-1900);return K};
_.I=_.V9.prototype;_.I.firstDayOfWeek_=Tk.FIRSTDAYOFWEEK;_.I.firstWeekCutOffDay_=Tk.FIRSTWEEKCUTOFFDAY;_.I.clone=function(){var u=new _.V9(this.date);u.firstDayOfWeek_=this.firstDayOfWeek_;u.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return u};
_.I.getFullYear=function(){return this.date.getFullYear()};
_.I.getYear=function(){return this.getFullYear()};
_.I.getMonth=function(){return this.date.getMonth()};
_.I.getDate=function(){return this.date.getDate()};
_.I.getTime=function(){return this.date.getTime()};
_.I.getDay=function(){return this.date.getDay()};
_.I.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.I.getUTCMonth=function(){return this.date.getUTCMonth()};
_.I.getUTCDate=function(){return this.date.getUTCDate()};
_.I.getUTCDay=function(){return this.date.getDay()};
_.I.getUTCHours=function(){return this.date.getUTCHours()};
_.I.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.I.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.I.set=function(u){this.date=new Date(u.getFullYear(),u.getMonth(),u.getDate())};
_.I.setFullYear=function(u){this.date.setFullYear(u)};
_.I.setYear=function(u){this.setFullYear(u)};
_.I.setMonth=function(u){this.date.setMonth(u)};
_.I.setDate=function(u){this.date.setDate(u)};
_.I.setTime=function(u){this.date.setTime(u)};
_.I.setUTCFullYear=function(u){this.date.setUTCFullYear(u)};
_.I.setUTCMonth=function(u){this.date.setUTCMonth(u)};
_.I.setUTCDate=function(u){this.date.setUTCDate(u)};
_.I.add=function(u){if(u.years||u.months){var K=this.getMonth()+u.months+u.years*12,l=this.getYear()+Math.floor(K/12);K%=12;K<0&&(K+=12);var D=Math.min(vtR(l,K),this.getDate());this.setDate(1);this.setFullYear(l);this.setMonth(K);this.setDate(D)}u.days&&(l=this.getYear(),K=l>=0&&l<=99?-1900:0,u=new Date((new Date(l,this.getMonth(),this.getDate(),12)).getTime()+u.days*864E5),this.setDate(1),this.setFullYear(u.getFullYear()+K),this.setMonth(u.getMonth()),this.setDate(u.getDate()),Q70(this,u.getDate()))};
_.I.JSC$11206_toIsoString=function(u){var K=this.getFullYear(),l=K<0?"-":K>=1E4?"+":"";return[l+_.bO(Math.abs(K),l?6:4),_.bO(this.getMonth()+1,2),_.bO(this.getDate(),2)].join(u?"-":"")};
_.I.equals=function(u){return!(!u||this.getYear()!=u.getYear()||this.getMonth()!=u.getMonth()||this.getDate()!=u.getDate())};
_.I.toString=function(){return this.JSC$11206_toIsoString()};
var Q70=function(u,K){u.getDate()!=K&&u.date.setUTCHours(u.date.getUTCHours()+(u.getDate()<K?1:-1))};
_.V9.prototype.valueOf=function(){return this.date.valueOf()};var NL=function(u,K,l,D,d){this.reversed=!!K;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!l;u&&gV(this,u,D);this.depth=d!=void 0?d:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Sa(NL,cP);var gV=function(u,K,l,D){if(u.node=K)u.tagType=typeof l==="number"?l:u.node.nodeType!=1?0:u.reversed?-1:1;typeof D==="number"&&(u.depth=D)};
_.I=NL.prototype;_.I.JSC$11221_copyFrom=function(u){this.node=u.node;this.tagType=u.tagType;this.depth=u.depth;this.reversed=u.reversed;this.constrained=u.constrained};
_.I.clone=function(){return new NL(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.I.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return ah;var u=this.node;var K=this.reversed?-1:1;if(this.tagType==K){var l=this.reversed?u.lastChild:u.firstChild;l?gV(this,l):gV(this,u,K*-1)}else(l=this.reversed?u.previousSibling:u.nextSibling)?gV(this,l):gV(this,u.parentNode,K*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(u=this.node)?z$(u):ah};
_.I.equals=function(u){return u.node==this.node&&(!this.node||u.tagType==this.tagType)};
_.I.splice=function(u){var K=this.node,l=this.reversed?1:-1;this.tagType==l&&(this.tagType=l*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;NL.prototype.next.call(this);this.reversed=!this.reversed;l=_.mb(arguments[0])?arguments[0]:arguments;for(var D=l.length-1;D>=0;D--)_.hy(l[D],K);_.Jq(K)};var Pvw=function(){},k1=function(u){for(var K=[],l=u.getTextRangeCount(),D=0;D<l;D++)K.push(u.getTextRange(D));
return K};
Pvw.prototype.isReversed=function(){return!1};
Pvw.prototype.getWindow=function(){return mp(_.hO(this.JSC$11223_getStartNode()))};
var J_0=function(u,K){NL.call(this,u,K,!0)};
_.Sa(J_0,NL);var ZF=function(u,K,l,D,d){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!d;if(u){this.startNode_=u;this.startOffset_=K;this.endNode_=l;this.endOffset_=D;if(u.nodeType==1&&u.tagName!="BR")if(u=u.childNodes,K=u[K])this.startNode_=K,this.startOffset_=0;else{u.length&&(this.startNode_=_.p9(u));var C=!0}l.nodeType==1&&((this.endNode_=l.childNodes[D])?this.endOffset_=0:this.endNode_=l)}NL.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);C&&this.next()};
_.Sa(ZF,J_0);_.I=ZF.prototype;_.I.JSC$11229_getStartNode=function(){return this.startNode_};
_.I.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)};
_.I.next=function(){return this.isLast()?ah:ZF.superClass_.next.call(this)};
_.I.JSC$11221_copyFrom=function(u){this.startNode_=u.startNode_;this.endNode_=u.endNode_;this.startOffset_=u.startOffset_;this.endOffset_=u.endOffset_;this.isReversed_=u.isReversed_;ZF.superClass_.JSC$11221_copyFrom.call(this,u)};
_.I.clone=function(){var u=new ZF(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);u.JSC$11221_copyFrom(this);return u};var j7m=function(){};
j7m.prototype.__iterator__=function(){return new ZF(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Y1=function(u){this.range_=u};
_.Sa(Y1,j7m);var Bea=function(u){var K=_.hO(u).createRange();if(u.nodeType==3)K.setStart(u,0),K.setEnd(u,u.length);else if(Ay(u)||u.nodeType==3){for(var l,D=u;(l=D.firstChild)&&(Ay(l)||l.nodeType==3);)D=l;K.setStart(D,0);for(D=u;(l=D.lastChild)&&(Ay(l)||l.nodeType==3);)D=l;K.setEnd(D,D.nodeType==1?D.childNodes.length:D.length)}else l=u.parentNode,u=Array.prototype.indexOf.call(l.childNodes,u),K.setStart(l,u),K.setEnd(l,u+1);return K},pI0=function(u,K,l,D){var d=_.hO(u).createRange();
d.setStart(u,K);d.setEnd(l,D);return d};
_.I=Y1.prototype;_.I.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.I.getContainer=function(){return this.range_.commonAncestorContainer};
_.I.compareBrowserRangeEndpoints=function(u,K,l){return this.range_.compareBoundaryPoints(l==1?K==1?_.lL.Range.START_TO_START:_.lL.Range.START_TO_END:K==1?_.lL.Range.END_TO_START:_.lL.Range.END_TO_END,u)};
_.I.isCollapsed=function(){return this.range_.collapsed};
_.I.select=function(u){this.selectInternal(mp(_.hO(this.range_.startContainer)).getSelection(),u)};
_.I.selectInternal=function(u){u.removeAllRanges();u.addRange(this.range_)};
_.I.insertNode=function(u,K){var l=this.range_.cloneRange();l.collapse(K);l.insertNode(u);l.detach();return u};
_.I.collapse=function(u){this.range_.collapse(u)};_.Sa(rM,Y1);rM.prototype.selectInternal=function(u,K){!K||this.isCollapsed()?rM.superClass_.selectInternal.call(this,u,K):(u.collapse(this.range_.endContainer,this.range_.endOffset),u.extend(this.range_.startContainer,this.range_.startOffset))};_.Sa(v_,Y1);v_.prototype.compareBrowserRangeEndpoints=function(u,K,l){return v_.superClass_.compareBrowserRangeEndpoints.call(this,u,K,l)};
v_.prototype.selectInternal=function(u,K){K?u.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):u.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var icN=function(u){return _.ea?new v_(u):_.zR?new rM(u):new Y1(u)};var A$=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},Tew;
_.Sa(A$,Pvw);Tew=function(u,K){var l=new A$;l.browserRangeWrapper_=u;l.isReversed_=!!K;return l};
_.wIA=function(u){u=_.ea?new v_(Bea(u)):_.zR?new rM(Bea(u)):new Y1(Bea(u));return Tew(u)};
_.XG=function(u,K,l,D){var d=new A$;d.isReversed_=Fda(u,K,l,D);if(_.Mm(u)&&!Ay(u)){var C=u.parentNode;K=Array.prototype.indexOf.call(C.childNodes,u);u=C}_.Mm(l)&&!Ay(l)&&(C=l.parentNode,D=Array.prototype.indexOf.call(C.childNodes,l),l=C);d.isReversed_?(d.startNode_=l,d.startOffset_=D,d.endNode_=u,d.endOffset_=K):(d.startNode_=u,d.startOffset_=K,d.endNode_=l,d.endOffset_=D);return d};
_.I=A$.prototype;_.I.clone=function(){var u=new A$;u.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();u.startNode_=this.startNode_;u.startOffset_=this.startOffset_;u.endNode_=this.endNode_;u.endOffset_=this.endOffset_;u.isReversed_=this.isReversed_;return u};
_.I.JSC$11223_getType=function(){return"text"};
_.I.getBrowserRangeObject=function(){return me(this).range_};
_.I.getTextRangeCount=function(){return 1};
_.I.getTextRange=function(){return this};
var me=function(u){var K;if(!(K=u.browserRangeWrapper_)){K=u.JSC$11223_getStartNode();var l=u.JSC$11223_getStartOffset(),D=u.JSC$11223_getEndNode(),d=u.JSC$11223_getEndOffset();K=_.ea?new v_(pI0(K,l,D,d)):_.zR?new rM(pI0(K,l,D,d)):new Y1(pI0(K,l,D,d));K=u.browserRangeWrapper_=K}return K};
_.I=A$.prototype;_.I.getContainer=function(){return me(this).getContainer()};
_.I.JSC$11223_getStartNode=function(){return this.startNode_||(this.startNode_=me(this).range_.startContainer)};
_.I.JSC$11223_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=me(this).range_.startOffset};
_.I.JSC$11223_getEndNode=function(){return this.endNode_||(this.endNode_=me(this).range_.endContainer)};
_.I.JSC$11223_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=me(this).range_.endOffset};
_.I.isReversed=function(){return this.isReversed_};
_.I.JSC$11223_containsRange=function(u,K){if(u.JSC$11223_getType()=="text"){var l=me(this);u=me(u);K=K&&!u.isCollapsed();u=u.range_;l=K?l.compareBrowserRangeEndpoints(u,0,1)>=0&&l.compareBrowserRangeEndpoints(u,1,0)<=0:l.compareBrowserRangeEndpoints(u,0,0)>=0&&l.compareBrowserRangeEndpoints(u,1,1)<=0}else l=!1;return l};
_.I.isCollapsed=function(){return me(this).isCollapsed()};
_.I.JSC$11223_getText=function(){return me(this).range_.toString()};
_.I.__iterator__=function(){return new ZF(this.JSC$11223_getStartNode(),this.JSC$11223_getStartOffset(),this.JSC$11223_getEndNode(),this.JSC$11223_getEndOffset())};
_.I.select=function(){me(this).select(this.isReversed_)};
_.I.JSC$11223_removeContents=function(){var u=me(this).range_;u.extractContents();if(u.startContainer.hasChildNodes()&&(u=u.startContainer.childNodes[u.startOffset])){var K=u.previousSibling;s2B(u)==""&&_.Jq(u);K&&s2B(K)==""&&_.Jq(K)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.I.insertNode=function(u,K){u=me(this).insertNode(u,K);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return u};
_.I.collapse=function(u){u=this.isReversed()?!u:u;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(u);u?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var VtS=function(){};
_.Sa(VtS,Pvw);VtS.prototype.JSC$11223_containsRange=function(u,K){var l=k1(this);u=k1(u);return(K?oL:_.iDb)(u,function(D){return oL(l,function(d){return d.JSC$11223_containsRange(D,K)})})};
VtS.prototype.insertNode=function(u,K){K?_.mI(u,this.JSC$11223_getStartNode()):_.hy(u,this.JSC$11223_getEndNode());return u};var gOC,Ne0=iQ().JSC$9252_document_.documentElement;gOC=Ne0.requestFullscreen?"fullscreenchange":Ne0.webkitRequestFullscreen?"webkitfullscreenchange":Ne0.mozRequestFullScreen?"mozfullscreenchange":Ne0.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var kOS=function(){var u=iQ().JSC$9252_document_;return!!(u.webkitIsFullScreen||u.mozFullScreen||u.msFullscreenElement||u.fullscreenElement)};var h$=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Sa(h$,VtS);_.I=h$.prototype;_.I.clone=function(){var u=new h$;u.browserRanges_=_.Xq(this.browserRanges_);return u};
_.I.JSC$11223_getType=function(){return"mutli"};
_.I.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.I.getTextRangeCount=function(){return this.browserRanges_.length};
_.I.getTextRange=function(u){this.ranges_[u]||(this.ranges_[u]=Tew(icN(this.browserRanges_[u])));return this.ranges_[u]};
_.I.getContainer=function(){if(!this.container_){for(var u=[],K=this.getTextRangeCount(),l=0;l<K;l++)u.push(this.getTextRange(l).getContainer());this.container_=K_0.apply(null,u)}return this.container_};
var EC=function(u){u.sortedRanges_||(u.sortedRanges_=k1(u),u.sortedRanges_.sort(function(K,l){var D=K.JSC$11223_getStartNode();K=K.JSC$11223_getStartOffset();var d=l.JSC$11223_getStartNode();l=l.JSC$11223_getStartOffset();return D==d&&K==l?0:Fda(D,K,d,l)?1:-1}));
return u.sortedRanges_};
_.I=h$.prototype;_.I.JSC$11223_getStartNode=function(){return EC(this)[0].JSC$11223_getStartNode()};
_.I.JSC$11223_getStartOffset=function(){return EC(this)[0].JSC$11223_getStartOffset()};
_.I.JSC$11223_getEndNode=function(){return _.p9(EC(this)).JSC$11223_getEndNode()};
_.I.JSC$11223_getEndOffset=function(){return _.p9(EC(this)).JSC$11223_getEndOffset()};
_.I.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.I.JSC$11223_getText=function(){return k1(this).map(function(u){return u.JSC$11223_getText()}).join("")};
_.I.__iterator__=function(){return new LW(this)};
_.I.select=function(){var u=this.getWindow().getSelection();u.removeAllRanges();for(var K=this.getTextRangeCount(),l=0;l<K;l++)u.addRange(this.getTextRange(l).getBrowserRangeObject())};
_.I.JSC$11223_removeContents=function(){k1(this).forEach(function(u){u.JSC$11223_removeContents()})};
_.I.collapse=function(u){if(!this.isCollapsed()){var K=u?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;K.collapse(u);this.ranges_=[K];this.sortedRanges_=[K];this.browserRanges_=[K.getBrowserRangeObject()]}};
var LW=function(u){this.iterators_=null;this.currentIdx_=0;u&&(this.iterators_=EC(u).map(function(K){return _.s9C(K)}));
NL.call(this,u?this.JSC$11229_getStartNode():null,!1,!0)};
_.Sa(LW,J_0);_.I=LW.prototype;_.I.JSC$11229_getStartNode=function(){return this.iterators_[0].JSC$11229_getStartNode()};
_.I.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.I.next=function(){for(;this.currentIdx_<this.iterators_.length;){var u=this.iterators_[this.currentIdx_],K=u.next();if(K.done)this.currentIdx_++;else return gV(this,u.node,u.tagType,u.depth),K}return ah};
_.I.JSC$11221_copyFrom=function(u){this.iterators_=_.Xq(u.iterators_);LW.superClass_.JSC$11221_copyFrom.call(this,u)};
_.I.clone=function(){var u=new LW(null);u.JSC$11221_copyFrom(this);return u};var ZcN,Fda;_.J3=function(){var u=window.getSelection();return u&&ZcN(u)};
ZcN=function(u){var K=!1;if(u.createRange)try{var l=u.createRange()}catch(d){return null}else if(u.rangeCount){if(u.rangeCount>1){l=new h$;K=u.rangeCount;for(var D=0;D<K;D++)l.browserRanges_.push(u.getRangeAt(D));return l}l=u.getRangeAt(0);K=Fda(u.anchorNode,u.anchorOffset,u.focusNode,u.focusOffset)}else return null;return Tew(icN(l),K)};
_.u6=function(u,K){return _.XG(u,K,u,K)};
_.Kk=function(u,K,l,D){return _.XG(u,K,l,D)};
Fda=function(u,K,l,D){if(u==l)return D<K;var d;if(u.nodeType==1&&K)if(d=u.childNodes[K])u=d,K=0;else if(_.LV(u,l))return!0;if(l.nodeType==1&&D)if(d=l.childNodes[D])l=d,D=0;else if(_.LV(l,u))return!1;return(uIH(u,l)||K-D)>0};var l6=function(){_.wx.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.wB)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.wB)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.wB)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.wB)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.wB)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.wB)(this.dispatchProgressEvent_,this)};
_.Sa(l6,_.wx);l6.prototype.abort=function(){try{this.reader_.abort()}catch(u){throw new HpR(u,"aborting read");}};
l6.prototype.getError=function(){return this.reader_.error&&new HpR(this.reader_.error,"reading file")};
l6.prototype.dispatchProgressEvent_=function(u){this.dispatchEvent(new MHa(u,this))};
l6.prototype.disposeInternal=function(){l6.superClass_.disposeInternal.call(this);delete this.reader_};
var A_N=function(u){var K=new l6,l=YdB(K);K.reader_.readAsArrayBuffer(u);return l},XIa=function(u){var K=new l6,l=YdB(K);
K.reader_.readAsDataURL(u);return l},YdB=function(u){var K=new oM;
u.listen("loadend",_.Js(function(l,D){var d=D.reader_.result,C=D.getError();d==null||C?l.errback(C):l.callback(d);D.dispose()},K,u));
return K};var Dj=function(){_.wx.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11263_eventHandler_=new _.tC(this);this.JSC$11263_isInitialized_=!1};
_.Sa(Dj,_.wx);var muC=new _.J1("d"),hVC=new _.J1("beforedragstart"),EOH=new _.J1("dragstart"),Ldk=new _.J1("beforedragmove"),urm=new _.J1("dragmove"),K32=new _.J1("beforedragend"),lvB=new _.J1("dragend"),Dnw=new _.J1("e");Dj.prototype.isDragging=function(){return!!this.JSC$11263_dragger_};
var dna=function(u,K){K.dlgGrowthDirection_=0;K.dlgDragHoverClass_=void 0;K.dlgDragPermission=0;u.dragLists_.push(K)},Ciw=function(u,K){u.getHandleForDragItem_=K};
Dj.prototype.init=function(){if(!this.JSC$11263_isInitialized_){for(var u=this.dragLists_.length,K=0;K<u;K++)for(var l=_.ER(this.dragLists_[K]),D=l.length,d=0;d<D;++d){var C=l[d],W=this.getHandleForDragItem_(C),M=_.DA(W);this.dragItemForHandle_[M]=C;this.dragItemHoverClasses_&&(this.JSC$11263_eventHandler_.listen(C,"mouseover",this.handleDragItemMouseover_),this.JSC$11263_eventHandler_.listen(C,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11263_eventHandler_.listen(W,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11263_eventHandler_.listen(W,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(C);this.JSC$11263_eventHandler_.listen(W,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11263_isInitialized_=!0}};
Dj.prototype.disposeInternal=function(){this.JSC$11263_eventHandler_.dispose();for(var u=this.dragLists_.length,K=0;K<u;K++){var l=this.dragLists_[K];l.dlgGrowthDirection_=void 0;l.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;IvH(this);Dj.superClass_.disposeInternal.call(this)};
var yUw=function(u,K){for(var l=u.dragLists_.length,D=0;D<l;D++){var d=u.dragLists_[D];d.dlgBounds_=$bo(d)}l=u.dragItems_.length;for(D=0;D<l;D++)d=u.dragItems_[D],d!=K&&(d.dlgBounds_=$bo(d))};
_.I=Dj.prototype;
_.I.handlePotentialDragStart_=function(u){var K=_.DA(u.currentTarget);K=this.dragItemForHandle_[K];if(K.parentElement.dlgDragPermission!=2){this.currDragItem_=K;a:{K=this.currDragItem_;for(var l=K.cloneNode(!0),D=jb("TEXTAREA",K),d=jb("TEXTAREA",l),C=0;C<D.length;C++)d[C].value=D[C].value;switch(K.tagName){case "TR":K=_.Z0("TABLE",null,_.Z0("TBODY",null,l));break a;case "TD":case "TH":K=_.Z0("TABLE",null,_.Z0("TBODY",null,_.Z0("TR",null,l)));break a;case "TEXTAREA":l.value=K.value;default:K=l;break a}K=
void 0}this.draggerEl_=K;this.draggerElClasses_&&yp(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.hO(this.currDragItem_).body.appendChild(this.draggerEl_);l=_.Ey(this.currDragItem_);K=this.draggerEl_;D=_.Ey(K);if(l instanceof _.XB){var W=l.y;l=l.x}DV(K,K.offsetLeft+(l-D.x),K.offsetTop+(Number(W)-D.y));this.JSC$11263_dragger_=new _.Ke(this.draggerEl_);_.W5A(this.JSC$11263_dragger_,this.hysteresisDistance_);
_.kU(this.JSC$11263_dragger_,"start",this.handleDragStart_,!1,this);_.kU(this.JSC$11263_dragger_,"end",this.handleDragEnd_,!1,this);_.kU(this.JSC$11263_dragger_,"earlycancel",this.JSC$11265_cleanup_,!1,this);this.dispatchEvent(new dC(muC,this,u,this.currDragItem_,this.draggerEl_,this.JSC$11263_dragger_));this.JSC$11263_dragger_.startDrag(u)}};
_.I.handleDragStart_=function(u){if(this.dispatchEvent(new dC(hVC,this,u.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.hwB(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?yp(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var K=$pk(this.draggerEl_);this.draggerEl_.halfWidth=K.width/2;this.draggerEl_.halfHeight=K.height/2;K=this.draggerEl_.getBoundingClientRect();
var l=u.clientY,D=HUR(this.JSC$11263_dragger_,u.clientX);if(D>K.right){var d=this.currDragItem_.getBoundingClientRect();this.JSC$11263_dragger_.deltaX=D-(D-d.left)/d.width*K.width}l=MGa(this.JSC$11263_dragger_,l);l>K.bottom&&(this.JSC$11263_dragger_.deltaY+=l-K.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";yUw(this,this.currDragItem_);this.currDragItem_.style.display="";_.kU(this.JSC$11263_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new dC(EOH,
this,u.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11263_dragger_))}else u.preventDefault(),this.JSC$11265_cleanup_()};
_.I.handleDragMove_=function(u){var K=_.Ey(this.draggerEl_);K=new _.XB(K.x+this.draggerEl_.halfWidth,K.y+this.draggerEl_.halfHeight);a:{var l=null;if(this.currDragItem_.style.display!="none"){l=this.currDragItem_.parentNode;var D=$bo(l);if(sbN(K,D))break a}D=this.dragLists_.length;for(var d=0;d<D;d++){var C=this.dragLists_[d];if(C!=l&&sbN(K,C.dlgBounds_)){l=C;break a}}l=null}if(l){if(l==null)throw Error("Wd");D=0;d=!1;C=void 0;switch(l.dlgGrowthDirection_){case 0:D=K.y;var W=oHa;var M=W3a;break;case 4:d=
!0;case 2:D=K.x;W=Hga;M=W3a;break;case 5:d=!0;case 3:D=K.x,W=M8B,M=q9A}for(var q=null,v,G=_.ER(l),t=G.length,x=0;x<t;x++){var O=G[x];if(O!=this.currDragItem_){var a=W(O.dlgBounds_);if(d){var f=$nw(O,K);C===void 0&&(C=f);M(D,a)&&(v==void 0||f<C||f==C&&(M(a,v)||a==v))&&(q=O,v=a);f<C&&(C=f)}else M(D,a)&&(v==void 0||M(a,v))&&(q=O,v=a)}}W=q!==null&&$nw(q,K)>C?null:q}else W=null;if(!this.dispatchEvent(new dC(Ldk,this,u,this.currDragItem_,this.draggerEl_,this.JSC$11263_dragger_,K,l,W)))return!1;if(l&&l.dlgDragPermission!=
1)this.currDragItem_.parentNode==l&&_.hwB(this.currDragItem_)==W||l.insertBefore(this.currDragItem_,W),this.currDragItem_.style.display="",l.dlgDragHoverClass_&&_.rY(l,l.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",M=this.dragLists_.length,v=0;v<M;v++)D=this.dragLists_[v],D.dlgDragHoverClass_&&_.$o(D,D.dlgDragHoverClass_);l!=this.currHoverList_&&(this.currHoverList_=l,yUw(this,this.currDragItem_));this.dispatchEvent(new dC(urm,this,u,this.currDragItem_,this.draggerEl_,this.JSC$11263_dragger_,
K,l,W));return!1};
_.I.JSC$11265_cleanup_=function(){IvH(this);this.JSC$11263_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var u=this.dragLists_.length,K=0;K<u;K++)this.dragLists_[K].dlgBounds_=null;u=this.dragItems_.length;for(K=0;K<u;K++)this.dragItems_[K].dlgBounds_=null};
_.I.handleDragEnd_=function(u){if(!this.dispatchEvent(new dC(K32,this,u,this.currDragItem_,this.draggerEl_,this.JSC$11263_dragger_)))return!1;IvH(this);this.dispatchEvent(new dC(lvB,this,u,this.currDragItem_,this.draggerEl_,this.JSC$11263_dragger_));this.JSC$11265_cleanup_();return!0};
var IvH=function(u){_.qt(u.JSC$11263_dragger_);var K=u.draggerEl_&&u.draggerEl_.parentElement;u.draggerEl_&&_.Jq(u.draggerEl_);u.currDragItem_&&u.currDragItem_.style.display=="none"&&(u.origList_.insertBefore(u.currDragItem_,u.origNextItem_),u.currDragItem_.style.display="");u.currDragItemClasses_&&u.currDragItem_?sZk(u.currDragItem_,u.currDragItemClasses_||[]):u.currDragItem_&&(u.currDragItem_.style.visibility="");for(var l=u.dragLists_.length,D=0;D<l;D++){var d=u.dragLists_[D];d.dlgDragHoverClass_&&
_.$o(d,d.dlgDragHoverClass_)}K&&u.dispatchEvent(new dC(Dnw,u,null,u.currDragItem_,u.draggerEl_,u.JSC$11263_dragger_))};
_.I=Dj.prototype;_.I.getHandleForDragItem_=function(u){return u};
_.I.handleDragItemMouseover_=function(u){yp(u.currentTarget,this.dragItemHoverClasses_||[])};
_.I.handleDragItemMouseout_=function(u){sZk(u.currentTarget,this.dragItemHoverClasses_||[])};
_.I.handleDragItemHandleMouseover_=function(u){yp(u.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.I.handleDragItemHandleMouseout_=function(u){sZk(u.currentTarget,this.dragItemHandleHoverClasses_||[])};
var sbN=function(u,K){return u.x>K.left&&u.x<K.left+K.width&&u.y>K.top&&u.y<K.top+K.height},$nw=function(u,K){u=u.dlgBounds_;
return Math.abs(K.y-(u.top+(u.height-1)/2))},oHa=function(u){return u.top+u.height-1},Hga=function(u){return u.left+u.width-1},M8B=function(u){return u.left||0},W3a=function(u,K){return u<K},q9A=function(u,K){return u>K},dC=function(u,K,l,D,d,C){_.j3.call(this,u);
this.event=l;this.currDragItem=D;this.draggerEl=d;this.JSC$11267_dragger=C};
_.Sa(dC,_.j3);_.Sa(xr,_.TZ);var nHk=new _.XB(0,0);xr.prototype.JSC$11271_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
xr.prototype.JSC$11271_onMouseMove=function(u){var K=this.containerIsActuallyContent_?nHk:pS(iQ(this.containerNode_)),l=this.horizontalScrolling_?this.calculateScrollDelta(u.clientX+K.x,this.scrollBounds_.left,this.scrollBounds_.width):0,D=this.calculateScrollDelta(u.clientY+K.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=l;this.scrollDelta_.y=D;!(l=!l&&!D)&&(l=this.constrainScroll_)&&(l=u.clientX+K.x,u=u.clientY+K.y,K=this.containerBounds_,l=!(K.left<=l&&K.left+K.width>=
l&&K.top<=u&&K.top+K.height>=u));l?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
xr.prototype.calculateScrollDelta=function(u,K,l){var D=0;u<K?D=-8:u>K+l&&(D=8);return D};
xr.prototype.disposeInternal=function(){xr.superClass_.disposeInternal.call(this);this.JSC$11269_eventHandler_.dispose();this.scrollTimer_.dispose()};var rUk={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"}}},Ck=rUk;Ck=rUk;var Ix={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 vHw=function(){},I7=function(u){if(typeof u=="number"){var K=new vHw;
K.standardOffset_=u;var l=u;if(l==0)l="Etc/GMT";else{var D=["Etc/GMT",l<0?"-":"+"];l=Math.abs(l);D.push(Math.floor(l/60)%100);l%=60;l!=0&&D.push(":",_.bO(l,2));l=D.join("")}K.timeZoneId_=l;l=u;l==0?l="UTC":(D=["UTC",l<0?"+":"-"],l=Math.abs(l),D.push(Math.floor(l/60)%100),l%=60,l!=0&&D.push(":",l),l=D.join(""));u=GQw(u);K.tzNames_=[l,l];K.tzNamesExt_={STD_LONG_NAME_GMT:u,STD_GENERIC_LOCATION:u};K.transitions_=[];return K}K=new vHw;K.timeZoneId_=u.id;K.standardOffset_=-u.std_offset;K.tzNames_=u.names;
K.tzNamesExt_=u.names_ext;K.transitions_=u.transitions;return K},GQw=function(u){var K=["GMT"];
K.push(u<=0?"+":"-");u=Math.abs(u);K.push(_.bO(Math.floor(u/60)%100,2),":",_.bO(u%60,2));return K.join("")},t8H=function(u,K){K=Date.UTC(K.getUTCFullYear(),K.getUTCMonth(),K.getUTCDate(),K.getUTCHours(),K.getUTCMinutes())/36E5;
for(var l=0;l<u.transitions_.length&&K>=u.transitions_[l];)l+=2;return l==0?0:u.transitions_[l-1]},xnm=function(u,K){u=u.standardOffset_-t8H(u,K);
return u===-1440?0:u};var yR=function(u,K){this.patternParts_=[];this.JSC$11282_dateTimeSymbols_=K||Tk;typeof u=="number"?S9w(this,u):bgS(this,u)},Og0=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],y7=function(u){return u.getHours?u.getHours():0},bgS=function(u,K){for(yTy&&(K=K.replace(/\u200f/g,""));K;){for(var l=K,D=0;D<Og0.length;++D){var d=K.match(Og0[D]);
if(d){var C=d[0];K=K.substring(C.length);D==0&&(C=="''"?C="'":(C=C.substring(1,d[1]=="'"?C.length-1:C.length),C=C.replace(/''/g,"'")));u.patternParts_.push({text:C,type:D});break}}if(l===K)throw Error("Xd`"+K);}};
yR.prototype.format=function(u,K){if(!u)throw Error("Yd");var l=K?(u.getTimezoneOffset()-xnm(K,u))*6E4:0,D=l?new Date(u.getTime()+l):u,d=D;K&&D.getTimezoneOffset()!=u.getTimezoneOffset()&&(D=new Date(D.getTime()+(D.getTimezoneOffset()-u.getTimezoneOffset())*6E4),d=new Date(u.getTime()+(l+(l>0?-864E5:864E5))));l=[];for(var C=0;C<this.patternParts_.length;++C){var W=this.patternParts_[C].text;1==this.patternParts_[C].type?l.push(cUw(this,W,u,D,d,K)):l.push(W)}return l.join("")};
var S9w=function(u,K){if(K<4)var l=u.JSC$11282_dateTimeSymbols_.DATEFORMATS[K];else if(K<8)l=u.JSC$11282_dateTimeSymbols_.TIMEFORMATS[K-4];else if(K<12)l=u.JSC$11282_dateTimeSymbols_.DATETIMEFORMATS[K-8],l=l.replace("{1}",u.JSC$11282_dateTimeSymbols_.DATEFORMATS[K-8]),l=l.replace("{0}",u.JSC$11282_dateTimeSymbols_.TIMEFORMATS[K-8]);else if(K===12)l=u.JSC$11282_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(K===13)l=u.JSC$11282_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{S9w(u,10);return}bgS(u,l)},sF=function(u,K){K=String(K);
u=u.JSC$11282_dateTimeSymbols_||Tk;if(u.ZERODIGIT!==void 0&&!IT9){for(var l=[],D=0;D<K.length;D++){var d=K.charCodeAt(D);l.push(48<=d&&d<=57?String.fromCharCode(u.ZERODIGIT+d-48):K.charAt(D))}K=l.join("")}return K},IT9=!1,yTy=!1,z4B=function(u,K,l,D){l=l.getFullYear();
l<=0&&D&&(l=1-l);return sF(u,ava(l,K))},ava=function(u,K){K==2&&(u%=100);
u<0&&K++;return _.bO(u,K)},ox=function(u){if(!(u.getHours&&u.getSeconds&&u.getMinutes))throw Error("Zd");
},e4B=function(u,K){ox(K);
K=y7(K);return u.JSC$11282_dateTimeSymbols_.AMPMS[K>=12&&K<24?1:0]},cUw=function(u,K,l,D,d,C){var W=K.length;
switch(K.charAt(0)){case "G":return l=D.getFullYear()>0?1:0,W>=4?u.JSC$11282_dateTimeSymbols_.ERANAMES[l]:u.JSC$11282_dateTimeSymbols_.ERAS[l];case "y":return z4B(u,W,D,!0);case "Y":return l=(new Date(UuH(D.getFullYear(),D.getMonth(),D.getDate(),u.JSC$11282_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,u.JSC$11282_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),W==2&&(l%=100),sF(u,ava(l,W));case "u":return z4B(u,W,D,!1);case "M":a:switch(l=D.getMonth(),W){case 5:W=u.JSC$11282_dateTimeSymbols_.NARROWMONTHS[l];
break a;case 4:W=u.JSC$11282_dateTimeSymbols_.MONTHS[l];break a;case 3:W=u.JSC$11282_dateTimeSymbols_.SHORTMONTHS[l];break a;default:W=sF(u,_.bO(l+1,W))}return W;case "k":return ox(d),sF(u,_.bO(y7(d)||24,W));case "S":return sF(u,(d.getMilliseconds()/1E3).toFixed(Math.min(3,W)).slice(2)+(W>3?_.bO(0,W-3):""));case "E":return l=D.getDay(),W>=4?u.JSC$11282_dateTimeSymbols_.WEEKDAYS[l]:u.JSC$11282_dateTimeSymbols_.SHORTWEEKDAYS[l];case "a":return e4B(u,d);case "b":return e4B(u,d);case "B":return e4B(u,
d);case "h":return ox(d),sF(u,_.bO(y7(d)%12||12,W));case "K":return ox(d),sF(u,_.bO(y7(d)%12,W));case "H":return ox(d),sF(u,_.bO(y7(d),W));case "c":a:switch(l=D.getDay(),W){case 5:W=u.JSC$11282_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[l];break a;case 4:W=u.JSC$11282_dateTimeSymbols_.STANDALONEWEEKDAYS[l];break a;case 3:W=u.JSC$11282_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[l];break a;default:W=sF(u,_.bO(l,1))}return W;case "L":a:switch(l=D.getMonth(),W){case 5:W=u.JSC$11282_dateTimeSymbols_.STANDALONENARROWMONTHS[l];
break a;case 4:W=u.JSC$11282_dateTimeSymbols_.STANDALONEMONTHS[l];break a;case 3:W=u.JSC$11282_dateTimeSymbols_.STANDALONESHORTMONTHS[l];break a;default:W=sF(u,_.bO(l+1,W))}return W;case "Q":return l=Math.floor(D.getMonth()/3),W<4?u.JSC$11282_dateTimeSymbols_.SHORTQUARTERS[l]:u.JSC$11282_dateTimeSymbols_.QUARTERS[l];case "d":return sF(u,_.bO(D.getDate(),W));case "m":return ox(d),sF(u,_.bO(d.getMinutes?d.getMinutes():0,W));case "s":return ox(d),sF(u,_.bO(d.getSeconds(),W));case "v":return(C||I7(l.getTimezoneOffset())).timeZoneId_;
case "V":return u=C||I7(l.getTimezoneOffset()),W<=2?u.timeZoneId_:t8H(u,l)>0?u.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?u.tzNamesExt_.DST_GENERIC_LOCATION:u.tzNamesExt_.DST_GENERIC_LOCATION:u.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?u.tzNamesExt_.STD_GENERIC_LOCATION:u.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return l=UuH(d.getFullYear(),d.getMonth(),d.getDate(),u.JSC$11282_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,u.JSC$11282_dateTimeSymbols_.FIRSTDAYOFWEEK),sF(u,_.bO(Math.floor(Math.round((l-(new Date((new Date(l)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,W));case "z":return u=C||I7(l.getTimezoneOffset()),W<4?u.tzNames_[t8H(u,l)>0?2:0]:u.tzNames_[t8H(u,l)>0?3:1];case "Z":return K=C||I7(l.getTimezoneOffset()),W<4?(W=-xnm(K,l),u=[W<0?"-":"+"],W=Math.abs(W),u.push(_.bO(Math.floor(W/60)%100,2),_.bO(W%60,2)),W=u.join("")):W=sF(u,GQw(xnm(K,l))),W;default:return""}};var R4S=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,UnH=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,gtn=function(u){this.patternParts_=[];this.JSC$11291_dateTimeSymbols_=Tk;if(typeof u=="number"){u>11&&(u=10);if(u<4)var K=this.JSC$11291_dateTimeSymbols_.DATEFORMATS[u];else u<8?K=this.JSC$11291_dateTimeSymbols_.TIMEFORMATS[u-4]:(K=this.JSC$11291_dateTimeSymbols_.DATETIMEFORMATS[u-8],K=K.replace("{1}",this.JSC$11291_dateTimeSymbols_.DATEFORMATS[u-8]),K=K.replace("{0}",this.JSC$11291_dateTimeSymbols_.TIMEFORMATS[u-
8]));fvR(this,K)}else fvR(this,u)},fvR=function(u,K){for(var l=!1,D="",d=0;d<K.length;d++){var C=K.charAt(d);
if(R4S.test(C))for(D.length>0&&(u.patternParts_.push({text:D,count:0,abutStart:!1,numeric:!1}),D=""),u.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});d<K.length-1&&K.charAt(d+1)==" ";)d++;else if(l)C=="'"?d+1<K.length&&K.charAt(d+1)=="'"?(D+="'",d++):l=!1:D+=C;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(C)>=0){D.length>0&&(u.patternParts_.push({text:D,count:0,abutStart:!1,numeric:!1}),D="");for(var W=K.charAt(d),M=d+1;M<K.length&&K.charAt(M)==W;)M++;W=M-d;W<=0?M=!1:(M="MydhHmsSDkK".indexOf(C),
M=M>0||M==0&&W<3);u.patternParts_.push({text:C,count:W,abutStart:!1,numeric:M});d+=W-1}else C=="'"?d+1<K.length&&K.charAt(d+1)=="'"?(D+="'",d++):l=!0:D+=C}D.length>0&&u.patternParts_.push({text:D,count:0,abutStart:!1,numeric:!1});K=!1;for(l=0;l<u.patternParts_.length;l++)u.patternParts_[l].numeric?!K&&l+1<u.patternParts_.length&&u.patternParts_[l+1].numeric&&(K=!0,u.patternParts_[l].abutStart=!0):K=!1};
gtn.prototype.parse=function(u,K,l){var D=!1,d=!1;l&&(D=l.predictive||!1,d=l.validate||!1);if(D)for(l=0;l<this.patternParts_.length;l++){var C=this.patternParts_[l];if(C.count>0&&("abBhHkKm".indexOf(C.text.charAt(0))<0||C.count>2||C.abutStart))throw Error("$d`"+C.text.charAt(0));}C=new QbB;l=[0];C.dayPeriodIndex=-1;for(var W=0;W<this.patternParts_.length&&!(D&&l[0]>=u.length);W++){if(this.patternParts_[W].count==0){a:{var M=u;var q=l,v=this.patternParts_[W],G=D;if(v.text.match(R4S)!=null){if(v=q[0],
PiA(M,q),q[0]>v){M=!0;break a}}else{if(M.indexOf(v.text,q[0])==q[0]){q[0]+=v.text.length;M=!0;break a}if(G&&v.text.indexOf(M.substring(q[0]))==0){q[0]+=M.length-q[0];M=!0;break a}}M=!1}if(M)continue;return 0}if(this.patternParts_[W].abutStart){a:{q=u;v=l;G=W;var t=v[0],x=0;for(M=G;M<this.patternParts_.length;M++){var O=this.patternParts_[M],a=O.count;if(a===0)break;if(M==G&&(a-=x,x++,a==0)){M=0;break a}var f=M>G&&O.numeric,B=v[0];if(!JUw(this,q,v,O,a,C,!1)||f&&v[0]-B<a)M=G-1,v[0]=t}M-=G}if(M<=0)return 0;
W+=M-1}else if(!JUw(this,u,l,this.patternParts_[W],0,C,D))return 0}a:{u=d;if(K==null)throw Error("ae");C.era!=void 0&&C.year!=void 0&&C.era==0&&C.year>0&&(C.year=-(C.year-1));C.year!=void 0&&K.setFullYear(C.year);D=K.getDate();K.setDate(1);C.month!=void 0&&K.setMonth(C.month);C.day!=void 0?K.setDate(C.day):(d=vtR(K.getFullYear(),K.getMonth()),K.setDate(D>d?d:D));typeof K.setHours==="function"&&(C.hours==void 0&&(C.hours=K.getHours()),C.hours<12&&(C.ampm!=void 0&&C.ampm>0?C.hours+=12:C.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(C.dayPeriodName)||["night1","night2"].includes(C.dayPeriodName)&&C.hours>=6)&&(C.hours+=12)),K.setHours(C.hours));typeof K.setMinutes==="function"&&C.minutes!=void 0&&K.setMinutes(C.minutes);typeof K.setSeconds==="function"&&C.seconds!=void 0&&K.setSeconds(C.seconds);typeof K.setMilliseconds==="function"&&C.milliseconds!=void 0&&K.setMilliseconds(C.milliseconds);if(u&&(C.year&&C.year!=K.getFullYear()||C.month&&C.month!=
K.getMonth()||C.day&&C.day!=K.getDate()||C.hours&&C.hours>=24||C.minutes&&C.minutes>=60||C.seconds&&C.seconds>=60||C.milliseconds&&C.milliseconds>=1E3))K=!1;else{C.tzOffset!=void 0&&K.setTime(K.getTime()+(C.tzOffset-K.getTimezoneOffset())*60*1E3);C.ambiguousYear&&(u=new Date,u.setFullYear(u.getFullYear()-80),K.getTime()<u.getTime()&&K.setFullYear(u.getFullYear()+100));if(C.dayOfWeek!=void 0)if(C.day==void 0)C=(7+C.dayOfWeek-K.getDay())%7,C>3&&(C-=7),u=K.getMonth(),K.setDate(K.getDate()+C),K.getMonth()!=
u&&K.setDate(K.getDate()+(C>0?-7:7));else if(C.dayOfWeek!=K.getDay()){K=!1;break a}K=!0}}return K?l[0]:0};
var JUw=function(u,K,l,D,d,C,W){PiA(K,l);if(D.numeric&&d>0&&l[0]+d>K.length)return!1;switch(D.text.charAt(0)){case "G":return Wz(K,l,[u.JSC$11291_dateTimeSymbols_.ERAS],function(M){return C.era=M}),!0;
case "M":case "L":return jb0(u,K,l,d,D,C);case "E":return Wz(K,l,[u.JSC$11291_dateTimeSymbols_.WEEKDAYS,u.JSC$11291_dateTimeSymbols_.SHORTWEEKDAYS],function(M){return C.dayOfWeek=M});
case "B":case "b":return d=[],u=[[].concat(u.JSC$11291_dateTimeSymbols_.AMPMS)],d.push("isAm"),d.push("isPm"),K=Wz(K,l,u,function(M){return C.dayPeriodIndex=M},W),C.dayPeriodName=d[C.dayPeriodIndex],W?K:!0;
case "a":return K=Wz(K,l,[u.JSC$11291_dateTimeSymbols_.AMPMS],function(M){return C.ampm=M},W),W?K:!0;
case "y":return Bn0(u,K,l,D,d,C);case "Q":return Wz(K,l,[u.JSC$11291_dateTimeSymbols_.QUARTERS,u.JSC$11291_dateTimeSymbols_.SHORTQUARTERS],function(M){C.month=M*3;C.day=1});
case "d":return Hz(u,K,l,D,d,function(M){C.day=M}),!0;
case "S":return pFR(u,K,l,d,C);case "h":case "K":case "H":case "k":return K=Hz(u,K,l,D,d,function(M){C.hours=D.text.charAt(0)==="h"&&M===12?0:M},W),W?K:!0;
case "m":return K=Hz(u,K,l,D,d,function(M){C.minutes=M},W),W?K:!0;
case "s":return Hz(u,K,l,D,d,function(M){C.seconds=M}),!0;
case "z":case "Z":case "v":return igs(u,K,l,C);default:return!1}},Bn0=function(u,K,l,D,d,C){var W=l[0];
d=MD(u,K,l,d);d===null&&(d=MD(u,K,l,0,!0));if(d===null)return!1;d>=0&&l[0]-W==2&&D.count==2?(u=d,K=(new Date).getFullYear()-80,l=K%100,C.ambiguousYear=u==l,u+=Math.floor(K/100)*100+(u<l?100:0),C.year=u):C.year=d;return!0},jb0=function(u,K,l,D,d,C){return d.numeric&&Hz(u,K,l,d,D,function(W){C.month=W-1})?!0:Wz(K,l,[u.JSC$11291_dateTimeSymbols_.MONTHS,
u.JSC$11291_dateTimeSymbols_.STANDALONEMONTHS,u.JSC$11291_dateTimeSymbols_.SHORTMONTHS,u.JSC$11291_dateTimeSymbols_.STANDALONESHORTMONTHS],function(W){C.month=W})},pFR=function(u,K,l,D,d){var C=l[0];
u=MD(u,K,l,D);if(u===null)return!1;l=l[0]-C;d.milliseconds=l<3?u*Math.pow(10,3-l):Math.round(u/Math.pow(10,l-3));return!0},igs=function(u,K,l,D){K.indexOf("GMT",l[0])==l[0]&&(l[0]+=3);
if(l[0]>=K.length)return D.tzOffset=0,!0;var d=l[0],C=MD(u,K,l,0,!0);if(C===null)return!1;if(l[0]<K.length&&K.charAt(l[0])==":"){var W=C*60;l[0]++;C=MD(u,K,l,0);if(C===null)return!1;W+=C}else W=C,W=W<24&&l[0]-d<=3?W*60:W%100+W/100*60;D.tzOffset=-W;return!0},Hz=function(u,K,l,D,d,C,W){W=W||!1;
var M=l[0];u=MD(u,K,l,d);if(u===null)return!1;if(W&&l[0]-M<D.count){if(l[0]<K.length)return!1;u*=Math.pow(10,D.count-(l[0]-M))}C(u);return!0},Wz=function(u,K,l,D,d){d=d||!1;
for(var C,W=0;W<l.length;W++){C=K;for(var M=l[W],q=d,v=0,G=null,t=u.substring(C[0]).toLowerCase(),x=0;x<M.length;x++){var O=M[x].toLowerCase();if(q&&O.indexOf(t)==0){v=t.length;G=x;break}M[x].length>v&&t.indexOf(O)==0&&(v=M[x].length,G=x)}G!==null&&(C[0]+=v);C=G;if(C!==null)return D(C),!0}return!1},PiA=function(u,K){(u=u.substring(K[0]).match(UnH))&&(K[0]+=u[0].length)},MD=function(u,K,l,D,d){K=D>0?K.substring(0,l[0]+D):K;
d=d||!1;if(u.JSC$11291_dateTimeSymbols_.ZERODIGIT){D=[];for(var C=l[0];C<K.length;C++){var W=K.charCodeAt(C)-u.JSC$11291_dateTimeSymbols_.ZERODIGIT;D.push(0<=W&&W<=9?String.fromCharCode(W+48):K.charAt(C))}K=D.join("")}else K=K.substring(l[0]);u=K.match(new RegExp("^"+(d?"[+-]?":"")+"\\d+"));if(!u)return null;l[0]+=u[0].length;return parseInt(u[0],10)},QbB=function(){};
QbB.prototype.ambiguousYear=!1;_.TnS={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 wFa={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"},F3w=wFa,V8a=wFa;V8a=F3w=wFa;var NnR,qD,nk,M5w,$X,gHs;
_.DU=function(u,K,l,D){var d;if(d=K){a:if(K&&K.length===3){for(d=0;d<3;d++){var C=K[d];if(C<"A"||C>"Z"&&C<"a"||C>"z"){d=!1;break a}}d=!0}else d=!1;d=!d}if(d)throw new TypeError("be");this.intlCurrencyCode_=K?K.toUpperCase():null;this.currencyStyle_=l||0;this.overrideNumberFormatSymbols_=D||null;this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.useSignForPositiveExponent_=!1;
this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=qD(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof u==="number")switch(u){case 1:$X(this,qD(this).DECIMAL_PATTERN);break;case 2:$X(this,qD(this).SCIENTIFIC_PATTERN);break;case 3:$X(this,qD(this).PERCENT_PATTERN);break;case 4:u=qD(this).CURRENCY_PATTERN;K=["0"];if(l=
Ix[nk(this)]){l=l[0]&7;if(l>0)for(K.push("."),D=0;D<l;D++)K.push("0");u=u.replace(/0.00/g,K.join(""))}$X(this,u);break;case 5:gHs(this,1);break;case 6:gHs(this,2);break;default:throw Error("ee");}else $X(this,u)};
NnR=!1;qD=function(u){return u.overrideNumberFormatSymbols_||(NnR?V8a:F3w)};
nk=function(u){return u.intlCurrencyCode_||qD(u).DEF_CURRENCY_CODE};
M5w=function(u,K){if(K>308)throw Error("de`"+K);u.maximumFractionDigits_=K;return u};
$X=function(u,K){var l=[0];u.positivePrefix_=kQB(u,K,l);for(var D=l[0],d=-1,C=0,W=0,M=0,q=-1,v=K.length,G=!0;l[0]<v&&G;l[0]++)switch(K.charAt(l[0])){case "#":W>0?M++:C++;q>=0&&d<0&&q++;break;case "0":if(M>0)throw Error("ke`"+K);W++;q>=0&&d<0&&q++;break;case ",":q>0&&u.groupingArray_.push(q);q=0;break;case ".":if(d>=0)throw Error("le`"+K);d=C+W+M;break;case "E":if(u.useExponentialNotation_)throw Error("me`"+K);u.useExponentialNotation_=!0;u.minExponentDigits_=0;l[0]+1<v&&K.charAt(l[0]+1)=="+"&&(l[0]++,
u.useSignForPositiveExponent_=!0);for(;l[0]+1<v&&K.charAt(l[0]+1)=="0";)l[0]++,u.minExponentDigits_++;if(C+W<1||u.minExponentDigits_<1)throw Error("ne`"+K);G=!1;break;default:l[0]--,G=!1}W==0&&C>0&&d>=0&&(W=d,W==0&&W++,M=C-W,C=W-1,W=1);if(d<0&&M>0||d>=0&&(d<C||d>C+W)||q==0)throw Error("oe`"+K);M=C+W+M;u.maximumFractionDigits_=d>=0?M-d:0;d>=0&&(u.minimumFractionDigits_=C+W-d,u.minimumFractionDigits_<0&&(u.minimumFractionDigits_=0));u.minimumIntegerDigits_=(d>=0?d:M)-C;u.useExponentialNotation_&&(u.maximumIntegerDigits_=
C+u.minimumIntegerDigits_,u.maximumFractionDigits_==0&&u.minimumIntegerDigits_==0&&(u.minimumIntegerDigits_=1));u.groupingArray_.push(Math.max(0,q));u.decimalSeparatorAlwaysShown_=d==0||d==M;D=l[0]-D;u.positiveSuffix_=kQB(u,K,l);l[0]<K.length&&K.charAt(l[0])==";"?(l[0]++,u.multiplier_!=1&&(u.negativePercentSignExpected_=!0),u.negativePrefix_=kQB(u,K,l),l[0]+=D,u.negativeSuffix_=kQB(u,K,l)):(u.negativePrefix_+=u.positivePrefix_,u.negativeSuffix_+=u.positiveSuffix_)};
gHs=function(u,K){u.compactStyle_=K;$X(u,qD(u).DECIMAL_PATTERN);u.minimumFractionDigits_=0;M5w(u,2);if(u.minimumFractionDigits_>0)throw Error("ce");u.significantDigits_=2};
_.DU.prototype.parse=function(u,K){K=K||[0];if(this.compactStyle_!==0)throw Error("fe");u=u.replace(/ |\u202f/g,"\u00a0");var l=u.indexOf(this.positivePrefix_,K[0])==K[0],D=u.indexOf(this.negativePrefix_,K[0])==K[0];l&&D&&(this.positivePrefix_.length>this.negativePrefix_.length?D=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(l=!1));l?K[0]+=this.positivePrefix_.length:D&&(K[0]+=this.negativePrefix_.length);if(u.indexOf(qD(this).INFINITY,K[0])==K[0]){K[0]+=qD(this).INFINITY.length;var d=
Infinity}else{d=u;var C=!1,W=!1,M=!1,q=-1,v=1,G=qD(this).DECIMAL_SEP,t=qD(this).GROUP_SEP,x=qD(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ge");t=t.replace(/\u202f/g,"\u00a0");for(var O="";K[0]<d.length;K[0]++){var a=d.charAt(K[0]),f=Zgw(this,a);if(f>=0&&f<=9)O+=f,M=!0;else if(a==G.charAt(0)){if(C||W)break;O+=".";C=!0}else if(a==t.charAt(0)&&("\u00a0"!=t.charAt(0)||K[0]+1<d.length&&Zgw(this,d.charAt(K[0]+1))>=0)){if(C||W)break}else if(a==x.charAt(0)){if(W)break;O+="E";W=!0;q=K[0]}else if(a==
"+"||a=="-"){if(M&&q!=K[0]-1)break;O+=a}else if(this.multiplier_==1&&a==qD(this).PERCENT.charAt(0)){if(v!=1)break;v=100;if(M){K[0]++;break}}else if(this.multiplier_==1&&a==qD(this).PERMILL.charAt(0)){if(v!=1)break;v=1E3;if(M){K[0]++;break}}else break}this.multiplier_!=1&&(v=this.multiplier_);d=parseFloat(O)/v}if(l){if(u.indexOf(this.positiveSuffix_,K[0])!=K[0])return NaN;K[0]+=this.positiveSuffix_.length}else if(D){if(u.indexOf(this.negativeSuffix_,K[0])!=K[0])return NaN;K[0]+=this.negativeSuffix_.length}return D?
-d:d};
_.DU.prototype.format=function(u){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("he");if(isNaN(u))return qD(this).NAN;var K=[];var l=u;if(this.compactStyle_==0)l=rC;else{l=Math.abs(l);var D=Y9a(this,l<=1?0:AU0(l)).divisorBase;l=Y9a(this,D+AU0(XFs(this,vz(l,-D)).intValue))}u=vz(u,-l.divisorBase);(D=u<0||u==0&&1/u<0)?l.negative_prefix?K.push(l.negative_prefix):(K.push(l.prefix),K.push(this.negativePrefix_)):(K.push(l.prefix),K.push(this.positivePrefix_));if(isFinite(u))if(u*=
D?-1:1,u*=this.multiplier_,this.useExponentialNotation_){var d=u;if(d==0)mnH(this,d,this.minimumIntegerDigits_,K),h4m(this,0,K);else{var C=Math.floor(Math.log(d)/Math.log(10)+2E-15);d=vz(d,-C);var W=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(W=C%this.maximumIntegerDigits_,W<0&&(W=this.maximumIntegerDigits_+W),d=vz(d,W),C-=W,W=1):this.minimumIntegerDigits_<1?(C++,d=vz(d,-1)):(C-=this.minimumIntegerDigits_-1,d=vz(d,this.minimumIntegerDigits_-
1));mnH(this,d,W,K);h4m(this,C,K)}}else mnH(this,u,this.minimumIntegerDigits_,K);else K.push(qD(this).INFINITY);D?l.negative_suffix?K.push(l.negative_suffix):(isFinite(u)&&K.push(l.suffix),K.push(this.negativeSuffix_)):(isFinite(u)&&K.push(l.suffix),K.push(this.positiveSuffix_));return K.join("")};
var XFs=function(u,K){var l=vz(K,u.maximumFractionDigits_);u.significantDigits_>0&&(l=EHH(l,u.significantDigits_,u.maximumFractionDigits_));l=Math.round(l);if(isFinite(l)){var D=Math.floor(vz(l,-u.maximumFractionDigits_));l=Math.floor(l-vz(D,u.maximumFractionDigits_));if(l<0||l>=vz(1,u.maximumFractionDigits_))D=Math.round(K),l=0}else D=K,l=0;return{intValue:D,fracValue:l}},mnH=function(u,K,l,D){if(u.minimumFractionDigits_>u.maximumFractionDigits_)throw Error("he");
D||(D=[]);K=XFs(u,K);var d=K.intValue,C=K.fracValue,W=u.minimumFractionDigits_>0||C>0||!1;K=u.minimumFractionDigits_;W&&(K=u.minimumFractionDigits_);for(var M="",q=d;q>1E20;)M="0"+M,q=Math.round(vz(q,-1));M=q+M;var v=qD(u).DECIMAL_SEP;q=qD(u).ZERO_DIGIT.codePointAt(0);var G=M.length,t=0;if(d>0||l>0){for(d=G;d<l;d++)D.push(String.fromCodePoint(q));if(u.groupingArray_.length>=2)for(l=1;l<u.groupingArray_.length;l++)t+=u.groupingArray_[l];l=G-t;if(l>0){d=u.groupingArray_;t=G=0;for(var x,O=qD(u).GROUP_SEP,
a=M.length,f=0;f<a;f++)if(D.push(String.fromCodePoint(q+Number(M.charAt(f)))),a-f>1)if(x=d[t],f<l){var B=l-f;(x===1||x>0&&B%x===1)&&D.push(O)}else t<d.length&&(f===l?t+=1:x===f-l-G+1&&(D.push(O),G+=x,t+=1))}else{l=M;M=u.groupingArray_;d=qD(u).GROUP_SEP;x=l.length;O=[];for(G=M.length-1;G>=0&&x>0;G--){t=M[G];for(a=0;a<t&&x-a-1>=0;a++)O.push(String.fromCodePoint(q+Number(l.charAt(x-a-1))));x-=t;x>0&&O.push(d)}D.push.apply(D,O.reverse())}}else W||D.push(String.fromCodePoint(q));(u.decimalSeparatorAlwaysShown_||
W)&&D.push(v);C=String(C);W=C.split("e+");W.length==2&&(C=String(EHH(parseFloat(W[0]),u.significantDigits_,1)),C=C.replace(".",""),C+=(0,_.JHN)("0",parseInt(W[1],10)-C.length+1));u.maximumFractionDigits_+1>C.length&&(C="1"+(0,_.JHN)("0",u.maximumFractionDigits_-C.length)+C);for(u=C.length;C.charAt(u-1)=="0"&&u>K+1;)u--;for(K=1;K<u;K++)D.push(String.fromCodePoint(q+Number(C.charAt(K))))},h4m=function(u,K,l){l.push(qD(u).EXP_SYMBOL);
K<0?(K=-K,l.push(qD(u).MINUS_SIGN)):u.useSignForPositiveExponent_&&l.push(qD(u).PLUS_SIGN);K=""+K;for(var D=qD(u).ZERO_DIGIT,d=K.length;d<u.minExponentDigits_;d++)l.push(D);u=D.codePointAt(0)-L3k;for(D=0;D<K.length;D++)l.push(String.fromCodePoint(u+K.codePointAt(D)))},Zgw=function(u,K){K=K.codePointAt(0);
if(48<=K&&K<58)return K-48;u=qD(u).ZERO_DIGIT.codePointAt(0);return u<=K&&K<u+10?K-u:-1},L3k="0".codePointAt(0),kQB=function(u,K,l){for(var D="",d=!1,C=K.length;l[0]<C;l[0]++){var W=K.charAt(l[0]);
if(W=="'")l[0]+1<C&&K.charAt(l[0]+1)=="'"?(l[0]++,D+="'"):d=!d;else if(d)D+=W;else switch(W){case "#":case "0":case ",":case ".":case ";":return D;case "\u00a4":if(l[0]+1<C&&K.charAt(l[0]+1)=="\u00a4")l[0]++,D+=nk(u);else switch(u.currencyStyle_){case 0:W=nk(u);D+=W in Ix?Ix[W][1]:W;break;case 2:W=nk(u);var M=Ix[W];D+=M?W==M[1]?W:W+" "+M[1]:W;break;case 1:W=nk(u),D+=W in Ix?Ix[W][2]:W}break;case "%":if(!u.negativePercentSignExpected_&&u.multiplier_!=1)throw Error("ie");if(u.negativePercentSignExpected_&&
u.multiplier_!=100)throw Error("je");u.multiplier_=100;u.negativePercentSignExpected_=!1;D+=qD(u).PERCENT;break;case "\u2030":if(!u.negativePercentSignExpected_&&u.multiplier_!=1)throw Error("ie");if(u.negativePercentSignExpected_&&u.multiplier_!=1E3)throw Error("je");u.multiplier_=1E3;u.negativePercentSignExpected_=!1;D+=qD(u).PERMILL;break;default:D+=W}}return D},rC={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},Y9a=function(u,K){u=u.compactStyle_==1?Ck.COMPACT_DECIMAL_SHORT_PATTERN:Ck.COMPACT_DECIMAL_LONG_PATTERN;u==null&&(u=Ck.COMPACT_DECIMAL_SHORT_PATTERN);if(K<3)return rC;K=Math.min(14,K);var l=u[vz(1,K)];for(--K;!l&&K>=3;)l=u[vz(1,K)],K--;if(!l)return rC;l=l.other;var D=u="",d=l.indexOf(";");d>=0&&(l=l.substring(0,d),d=l.substring(d+1))&&(D=/([^0]*)(0+)(.*)/.exec(d),u=D[1],D=D[3]);return l&&l!="0"?(l=/([^0]*)(0+)(.*)/.exec(l))?{divisorBase:K+
1-(l[2].length-1),negative_prefix:u,negative_suffix:D,prefix:l[1],suffix:l[3]}:rC:rC},AU0=function(u){if(!isFinite(u))return u>0?u:0;
for(var K=0;(u/=10)>=1;)K++;return K},vz=function(u,K){if(!u||!isFinite(u)||K==0)return u;
u=String(u).split("e");return parseFloat(u[0]+"e"+(parseInt(u[1]||0,10)+K))},uuw=function(u,K){return u&&isFinite(u)?vz(Math.round(vz(u,K)),-K):u},EHH=function(u,K,l){if(!u)return u;
K=K-AU0(u)-1;return K<-l?uuw(u,-l):uuw(u,K)};var KQ0=function(u){return u%10==1&&u%100!=11?"one":u%10==2&&u%100!=12?"two":u%10==3&&u%100!=13?"few":"other"},lp0=KQ0;
lp0=KQ0;var DEk;DEk=function(u,K){var l=u|0;if(void 0===K){K=Math;var D=K.min,d=u+"",C=d.indexOf(".");K=D.call(K,C===-1?0:d.length-C-1,3)}D=Math.pow(10,K);u={v:K,f:(u*D|0)%D};return l==1&&u.v==0?"one":"other"};
_.sd=DEk;_.sd=DEk;var dE0,CTB,IpC,stk,oUm;_.ylR=function(u){this.JSC$11334_pattern_=u;this.parsedPattern_=this.literals_=this.initialLiterals_=null;u=F3w;var K=Ck;if(dE0!==u||CTB!==K)dE0=u,CTB=K,IpC=new _.DU(1);this.numberFormatter_=IpC};
dE0=null;CTB=null;IpC=null;stk=RegExp("'([{}#].*?)'","g");oUm=RegExp("''","g");
_.ylR.prototype.format=function(u){if(this.JSC$11334_pattern_){this.initialLiterals_=[];var K=WQA(this,this.JSC$11334_pattern_);this.parsedPattern_=Hrm(this,K);this.JSC$11334_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Xq(this.initialLiterals_),K=[],M1w(this,this.parsedPattern_,u,!1,K),u=K.join("");this.literals_.length>0;)u=u.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else u="";return u};
var M1w=function(u,K,l,D,d){for(var C=0;C<K.length;C++)switch(K[C].type){case 4:d.push(K[C].value);break;case 3:var W=K[C].value;var M=u,q=d,v=l[W];v===void 0?q.push("Undefined parameter - "+W):(M.literals_.push(v),q.push(M.buildPlaceholder_(M.literals_)));break;case 2:W=K[C].value;M=u;q=l;v=D;var G=d,t=W.argumentIndex;q[t]===void 0?G.push("Undefined parameter - "+t):(t=W[q[t]],t===void 0&&(t=W.other),M1w(M,t,q,v,G));break;case 0:W=K[C].value;qpC(u,W,l,_.sd,D,d);break;case 1:W=K[C].value,qpC(u,W,
l,lp0,D,d)}},qpC=function(u,K,l,D,d,C){var W=K.argumentIndex,M=K.argumentOffset,q=+l[W];
isNaN(q)?C.push("Undefined or invalid parameter - "+W):(M=q-M,W=K[l[W]],W===void 0&&(D=D(Math.abs(M)),W=K[D],W===void 0&&(W=K.other)),K=[],M1w(u,W,l,d,K),l=K.join(""),d?C.push(l):(u=u.numberFormatter_.format(M),C.push(l.replace(/#/g,u))))},WQA=function(u,K){var l=u.initialLiterals_,D=u.buildPlaceholder_.bind(u);
K=K.replace(oUm,function(){l.push("'");return D(l)});
return K=K.replace(stk,function(d,C){l.push(C);return D(l)})},$Es=function(u){var K=0,l=[],D=[],d=/[{}]/g;
d.lastIndex=0;for(var C;C=d.exec(u);){var W=C.index;C[0]=="}"?(l.pop(),l.length==0&&(C={type:1},C.value=u.substring(K,W),D.push(C),K=W+1)):(l.length==0&&(K=u.substring(K,W),K!=""&&D.push({type:0,value:K}),K=W+1),l.push("{"))}u=u.substring(K);u!=""&&D.push({type:0,value:u});return D},nUB=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,rl0=/^\s*(\w+)\s*,\s*selectordinal\s*,/,vUA=/^\s*(\w+)\s*,\s*select\s*,/,Hrm=function(u,K){var l=[];
K=$Es(K);for(var D=0;D<K.length;D++){var d={};if(0==K[D].type)d.type=4,d.value=K[D].value;else if(1==K[D].type){var C=K[D].value;switch(nUB.test(C)?0:rl0.test(C)?1:vUA.test(C)?2:/^\s*\w+\s*/.test(C)?3:5){case 2:d.type=2;d.value=GWw(u,K[D].value);break;case 0:d.type=0;d.value=t12(u,K[D].value);break;case 1:d.type=1;d.value=xEB(u,K[D].value);break;case 3:d.type=3,d.value=K[D].value}}l.push(d)}return l},GWw=function(u,K){var l="";
K=K.replace(vUA,function(M,q){l=q;return""});
var D={};D.argumentIndex=l;K=$Es(K);for(var d=0;d<K.length;){var C=K[d].value;d++;var W=void 0;1==K[d].type&&(W=Hrm(u,K[d].value));D[C.replace(/\s/g,"")]=W;d++}return D},t12=function(u,K){var l="",D=0;
K=K.replace(nUB,function(q,v,G){l=v;G&&(D=parseInt(G,10));return""});
var d={};d.argumentIndex=l;d.argumentOffset=D;K=$Es(K);for(var C=0;C<K.length;){var W=K[C].value;C++;var M=void 0;1==K[C].type&&(M=Hrm(u,K[C].value));d[W.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=M;C++}return d},xEB=function(u,K){var l="";
K=K.replace(rl0,function(M,q){l=q;return""});
var D={};D.argumentIndex=l;D.argumentOffset=0;K=$Es(K);for(var d=0;d<K.length;){var C=K[d].value;d++;var W=void 0;1==K[d].type&&(W=Hrm(u,K[d].value));D[C.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=W;d++}return D};
_.ylR.prototype.buildPlaceholder_=function(u){return"\ufddf_"+(u.length-1).toString(10)+"_"};var Spm;
Spm={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 WLq=function(){this.rdtfSymbols_=brw||Spm;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
WLq.prototype.format=function(u,K){a:{K=Ork(this,K);switch(this.style_){case 2:if(K.NARROW!=void 0){K=K.NARROW;break a}case 1:if(K.SHORT!=void 0){K=K.SHORT;break a}default:K=K.LONG;break a}K=void 0}if(!this.alwaysNumeric_&&K&&K.R&&K.R[""+u])u=K.R[""+u];else if(K){var l=Math.abs(u);u=(new _.ylR("{N,plural,"+(u>0||u==0&&1/u==Infinity?K.F:K.P)+"}")).format({N:l})}else u="";return u};
var Ork=function(u,K){switch(K){default:case 0:return u.rdtfSymbols_.YEAR;case 1:return u.rdtfSymbols_.QUARTER;case 2:return u.rdtfSymbols_.MONTH;case 3:return u.rdtfSymbols_.WEEK;case 4:return u.rdtfSymbols_.DAY;case 5:return u.rdtfSymbols_.HOUR;case 6:return u.rdtfSymbols_.MINUTE;case 7:return u.rdtfSymbols_.SECOND}};var clm=function(u,K,l,D,d,C,W,M){this.x0=u;this.y0=K;this.x1=l;this.y1=D;this.x2=d;this.y2=C;this.x3=W;this.y3=M};
clm.prototype.clone=function(){return new clm(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
clm.prototype.equals=function(u){return this.x0==u.x0&&this.y0==u.y0&&this.x1==u.x1&&this.y1==u.y1&&this.x2==u.x2&&this.y2==u.y2&&this.x3==u.x3&&this.y3==u.y3};
var apk=function(u,K){if(K==0)return u.x0;if(K==1)return u.x3;var l=VF(u.x0,u.x1,K),D=VF(u.x1,u.x2,K);u=VF(u.x2,u.x3,K);l=VF(l,D,K);D=VF(D,u,K);return VF(l,D,K)},zP2=function(u,K){var l=(K-u.x0)/(u.x3-u.x0);
if(l<=0)return 0;if(l>=1)return 1;for(var D=0,d=1,C=0,W=0;W<8;W++){C=apk(u,l);var M=(apk(u,l+1E-6)-C)/1E-6;if(Math.abs(C-K)<1E-6)return l;if(Math.abs(M)<1E-6)break;else C<K?D=l:d=l,l-=(C-K)/M}for(W=0;Math.abs(C-K)>1E-6&&W<8;W++)C<K?(D=l,l=(l+d)/2):(d=l,l=(l+D)/2),C=apk(u,l);return l};var G7=function(){_.wx.call(this);this.JSC$11355_name_="closure_frame"+ePS++;this.iframesForDisposal_=[];RPR[this.JSC$11355_name_]=this},te;
_.Sa(G7,_.wx);var RPR={},ePS=0,UEB=function(u,K){var l=iQ(u);gTC(K,function(D,d){Array.isArray(D)||(D=[D]);_.yx(D,function(C){C=l.JSC$9254_createDom("INPUT",{type:"hidden",name:d,value:C});u.appendChild(C)})})};
_.I=G7.prototype;_.I.JSC$11357_form_=null;_.I.JSC$11357_iframe_=null;_.I.iframeName_=null;_.I.nextIframeId_=0;_.I.JSC$11357_active_=!1;_.I.complete_=!1;_.I.success_=!1;_.I.lastContent_=null;_.I.JSC$11357_lastErrorCode_=0;_.I.iframeDisposalTimer_=null;
_.I.send=function(u,K,l,D){if(this.JSC$11357_active_)throw Error("pe");u=new _.W0(u);K=K?K.toUpperCase():"GET";l&&_.z2(u);te||(te=_.Z0("FORM"),te.acceptCharset="utf-8",l=te.style,l.position="absolute",l.visibility="hidden",l.top=l.left="-10px",l.width=l.height="10px",l.overflow="hidden",document.body.appendChild(te));this.JSC$11357_form_=te;K=="GET"&&UEB(this.JSC$11357_form_,u.JSC$9960_queryData_);D&&UEB(this.JSC$11357_form_,D);l=u.toString();l=QKL(l);D=this.JSC$11357_form_;l=_.KH(ku(l));l!==void 0&&
(D.action=l);this.JSC$11357_form_.method=K;fpR(this);Qtw(this)};
_.I.abort=function(u){if(this.JSC$11357_active_){var K=xX(this);if(K)if(pJ(K))K.removeAllListeners(void 0);else if(K=i4(K)){var l=0,D;for(D in K.listeners)for(var d=K.listeners[D].concat(),C=0;C<d.length;++C)V2(d[C])&&++l}this.success_=this.JSC$11357_active_=this.complete_=!1;this.JSC$11357_lastErrorCode_=u||7;this.dispatchEvent("abort");PTk(this)}};
_.I.disposeInternal=function(){this.JSC$11357_active_&&this.abort();G7.superClass_.disposeInternal.call(this);this.JSC$11357_iframe_&&JlC(this);Qtw(this);this.JSC$11357_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11357_form_=null;this.JSC$11357_lastErrorCode_=0;delete RPR[this.JSC$11355_name_]};
_.I.isComplete=function(){return this.complete_};
_.I.isSuccess=function(){return this.success_};
_.I.isActive=function(){return this.JSC$11357_active_};
_.I.getResponseText=function(){return this.lastContent_};
_.I.getLastError=function(){return _.tAC(this.JSC$11357_lastErrorCode_)};
var fpR=function(u){u.JSC$11357_active_=!0;u.complete_=!1;u.JSC$11357_lastErrorCode_=0;u.iframeName_=u.JSC$11355_name_+"_"+(u.nextIframeId_++).toString(36);u.JSC$11357_iframe_=iQ(u.JSC$11357_form_).JSC$9254_createDom("IFRAME",{name:u.iframeName_,id:u.iframeName_});var K=u.JSC$11357_iframe_.style;K.visibility="hidden";K.width=K.height="10px";K.display="none";_.ea?K.marginTop=K.marginLeft="-10px":(K.position="absolute",K.top=K.left="-10px");iQ(u.JSC$11357_form_).JSC$9252_document_.body.appendChild(u.JSC$11357_iframe_);
K=u.iframeName_+"_inner";var l=lBN(u.JSC$11357_iframe_);if(document.baseURI){var D=Rw(K);D='<head><base href="'+Rw(document.baseURI)+'"></head><body><iframe id="'+D+'" name="'+D+'"></iframe>';D=CH(D)}else D=Rw(K),D=CH('<body><iframe id="'+D+'" name="'+D+'"></iframe>');l.write(IS(D));_.kU(l.getElementById(K),"load",u.onIframeLoaded_,!1,u);D=jb("TEXTAREA",u.JSC$11357_form_);for(var d=0,C=D.length;d<C;d++){var W=D[d].value;s2B(D[d])!=W&&(_.La(D[d],W),D[d].value=W)}D=l.importNode(u.JSC$11357_form_,!0);
D.target=K;D.action=u.JSC$11357_form_.action;l.body.appendChild(D);d=jb("SELECT",u.JSC$11357_form_);C=jb("SELECT",D);W=0;for(var M=d.length;W<M;W++)for(var q=jb("OPTION",d[W]),v=jb("OPTION",C[W]),G=0,t=q.length;G<t;G++)v[G].selected=q[G].selected;d=jb("INPUT",u.JSC$11357_form_);C=jb("INPUT",D);W=0;for(M=d.length;W<M;W++)if(d[W].type=="file"&&d[W].value!=C[W].value){u.JSC$11357_form_.target=K;D=u.JSC$11357_form_;break}try{u.errorHandled_=!1,D.submit(),l.close(),_.zR&&setTimeout(u.testForFirefoxSilentError_.bind(u),
250)}catch(x){_.TY(l.getElementById(K),"load",u.onIframeLoaded_,!1,u),l.close(),Ss(u,2)}};
G7.prototype.onIframeLoaded_=function(){_.TY(xX(this),"load",this.onIframeLoaded_,!1,this);try{var u=this.JSC$11357_iframe_?lBN(xX(this)):null;this.complete_=!0;this.JSC$11357_active_=!1;try{var K=u.body;this.lastContent_=K.textContent||K.innerText}catch(d){var l=1}var D;l||typeof this.errorChecker_!="function"||(D=this.errorChecker_(u))&&(l=4);l?Ss(this,l):(this.success_=!0,this.JSC$11357_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),PTk(this))}catch(d){Ss(this,1)}};
var Ss=function(u,K){u.errorHandled_||(u.success_=!1,u.JSC$11357_active_=!1,u.complete_=!0,u.JSC$11357_lastErrorCode_=K,u.dispatchEvent("complete"),u.dispatchEvent("error"),PTk(u),u.errorHandled_=!0)},PTk=function(u){JlC(u);
Qtw(u);u.JSC$11357_form_=null;u.dispatchEvent("ready")},JlC=function(u){var K=u.JSC$11357_iframe_;
K&&(K.onreadystatechange=null,K.onload=null,K.onerror=null,u.iframesForDisposal_.push(K));u.iframeDisposalTimer_&&(clearTimeout(u.iframeDisposalTimer_),u.iframeDisposalTimer_=null);_.zR?u.iframeDisposalTimer_=setTimeout(u.disposeIframes_.bind(u),2E3):u.disposeIframes_();u.JSC$11357_iframe_=null;u.iframeName_=null};
G7.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var u=this.iframesForDisposal_.pop();_.Jq(u)}};
var Qtw=function(u){u.JSC$11357_form_&&u.JSC$11357_form_==te&&_.XV(u.JSC$11357_form_)},xX=function(u){return u.JSC$11357_iframe_?lBN(u.JSC$11357_iframe_).getElementById(u.iframeName_+"_inner"):null};
G7.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11357_active_){var u=this.JSC$11357_iframe_?lBN(xX(this)):null;u&&!ZVH(u,"documentUri")?(_.TY(xX(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Ss(this,3):Ss(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.b6=function(u){return u=="\r"||u=="\n"||u==" "||u=="\t"};var jtS;_.OF=function(u){this.errorMessage_=null;this.result_=[];this.JSC$11359_buffer_="";this.stack_=[];this.JSC$11359_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!u||!u.deliverMessageAsRawString)};
jtS={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};_.OF.prototype.isInputValid=function(){return this.streamState_!=3};
_.OF.prototype.done=function(){return this.streamState_===2};
var cz=function(u,K,l){u.streamState_=3;u.errorMessage_="The stream is broken @"+u.JSC$11359_pos_+"/"+l+". With input:\n"+K;throw Error(u.errorMessage_);};
_.OF.prototype.acceptsBinaryInput=function(){return!1};
_.OF.prototype.parse=function(u){function K(){for(;x<u.length;)if(_.b6(u[x]))x++,C.JSC$11359_pos_++;else break;return x<v}
function l(){for(var a;;){a=u[x++];if(!a)break;C.JSC$11359_pos_++;switch(C.state_){case q.INIT:a==="{"?C.state_=q.OBJECT_OPEN:a==="["?C.state_=q.ARRAY_OPEN:_.b6(a)||cz(C,u,x);continue;case q.KEY_START:case q.OBJECT_OPEN:if(_.b6(a))continue;if(C.state_===q.KEY_START)W.push(q.KEY_END);else if(a==="}"){d("{}");C.state_=D();continue}else W.push(q.OBJECT_END);a==='"'?C.state_=q.STRING:cz(C,u,x);continue;case q.KEY_END:case q.OBJECT_END:if(_.b6(a))continue;a===":"?(C.state_===q.OBJECT_END&&(W.push(q.OBJECT_END),
C.depth_++),C.state_=q.VALUE):a==="}"?(C.depth_--,d(),C.state_=D()):a===","?(C.state_===q.OBJECT_END&&W.push(q.OBJECT_END),C.state_=q.KEY_START):cz(C,u,x);continue;case q.ARRAY_OPEN:case q.VALUE:if(_.b6(a))continue;if(C.state_===q.ARRAY_OPEN)if(C.depth_++,C.state_=q.VALUE,a==="]"){C.depth_--;if(C.depth_===0){C.state_=q.ARRAY_END;return}d("[]");C.state_=D();continue}else W.push(q.ARRAY_END);a==='"'?C.state_=q.STRING:a==="{"?C.state_=q.OBJECT_OPEN:a==="["?C.state_=q.ARRAY_OPEN:a==="t"?C.state_=q.TRUE1:
a==="f"?C.state_=q.FALSE1:a==="n"?C.state_=q.NULL1:a!=="-"&&("0123456789".indexOf(a)!==-1?C.state_=q.NUM_DIGIT:cz(C,u,x));continue;case q.ARRAY_END:if(a===",")W.push(q.ARRAY_END),C.state_=q.VALUE,C.depth_===1&&(t=x);else if(a==="]"){C.depth_--;if(C.depth_===0)return;d();C.state_=D()}else if(_.b6(a))continue;else cz(C,u,x);continue;case q.STRING:var f=x;a:for(;;){for(;C.unicodeCount_>0;)if(a=u[x++],C.unicodeCount_===4?C.unicodeCount_=0:C.unicodeCount_++,!a)break a;if(a==='"'&&!C.slashed_){C.state_=
D();break}if(a==="\\"&&!C.slashed_&&(C.slashed_=!0,a=u[x++],!a))break;if(C.slashed_)if(C.slashed_=!1,a==="u"&&(C.unicodeCount_=1),a=u[x++])continue;else break;M.lastIndex=x;a=M.exec(u);if(!a){x=u.length+1;break}x=a.index+1;a=u[a.index];if(!a)break}C.JSC$11359_pos_+=x-f;continue;case q.TRUE1:if(!a)continue;a==="r"?C.state_=q.TRUE2:cz(C,u,x);continue;case q.TRUE2:if(!a)continue;a==="u"?C.state_=q.TRUE3:cz(C,u,x);continue;case q.TRUE3:if(!a)continue;a==="e"?C.state_=D():cz(C,u,x);continue;case q.FALSE1:if(!a)continue;
a==="a"?C.state_=q.FALSE2:cz(C,u,x);continue;case q.FALSE2:if(!a)continue;a==="l"?C.state_=q.FALSE3:cz(C,u,x);continue;case q.FALSE3:if(!a)continue;a==="s"?C.state_=q.FALSE4:cz(C,u,x);continue;case q.FALSE4:if(!a)continue;a==="e"?C.state_=D():cz(C,u,x);continue;case q.NULL1:if(!a)continue;a==="u"?C.state_=q.NULL2:cz(C,u,x);continue;case q.NULL2:if(!a)continue;a==="l"?C.state_=q.NULL3:cz(C,u,x);continue;case q.NULL3:if(!a)continue;a==="l"?C.state_=D():cz(C,u,x);continue;case q.NUM_DECIMAL_POINT:a===
"."?C.state_=q.NUM_DIGIT:cz(C,u,x);continue;case q.NUM_DIGIT:if("0123456789.eE+-".indexOf(a)!==-1)continue;else x--,C.JSC$11359_pos_--,C.state_=D();continue;default:cz(C,u,x)}}}
function D(){var a=W.pop();return a!=null?a:q.VALUE}
function d(a){C.depth_>1||(a||(a=t===-1?C.JSC$11359_buffer_+u.substring(G,x):u.substring(t,x)),C.deliverMessageAsRawString_?C.result_.push(a):C.result_.push(JSON.parse(a)),t=x)}
for(var C=this,W=C.stack_,M=C.stringInputPattern_,q=jtS,v=u.length,G=0,t=-1,x=0;x<v;)switch(C.streamState_){case 3:return cz(C,u,x),null;case 2:return K()&&cz(C,u,x),null;case 0:if(K()){var O=u[x++];C.JSC$11359_pos_++;if(O==="["){C.streamState_=1;G=x;C.state_=q.ARRAY_OPEN;continue}else cz(C,u,x)}return null;case 1:return l(),C.depth_===0&&C.state_==q.ARRAY_END?(C.streamState_=2,C.JSC$11359_buffer_=u.substring(x)):C.JSC$11359_buffer_=t===-1?C.JSC$11359_buffer_+u.substring(G):u.substring(t),C.result_.length>
0?(O=C.result_,C.result_=[],O):null}return null};_.Sa(_.SR,Vx);b0.prototype.getValue=function(){return this.JSC$11367_value_};
b0.prototype.clone=function(){return new b0(this.JSC$11367_key_,this.JSC$11367_value_)};var ax=function(u){this.nodes_=[];if(u)a:{if(u instanceof ax){var K=u.getKeys();u=u.getValues();if(this.getCount()<=0){for(var l=this.nodes_,D=0;D<K.length;D++)l.push(new b0(K[D],u[D]));break a}}else K=_.k$.getKeys(u),u=_.k$.getValues(u);for(l=0;l<K.length;l++)this.insert(K[l],u[l])}};
_.I=ax.prototype;_.I.insert=function(u,K){var l=this.nodes_;l.push(new b0(u,K));u=l.length-1;K=this.nodes_;for(l=K[u];u>0;){var D=u-1>>1;if(K[D].JSC$11367_key_>l.JSC$11367_key_)K[u]=K[D],u=D;else break}K[u]=l};
_.I.remove=function(){var u=this.nodes_,K=u.length,l=u[0];if(!(K<=0)){if(K==1)u.length=0;else{u[0]=u.pop();u=0;K=this.nodes_;for(var D=K.length,d=K[u];u<D>>1;){var C=u*2+1,W=u*2+2;C=W<D&&K[W].JSC$11367_key_<K[C].JSC$11367_key_?W:C;if(K[C].JSC$11367_key_>d.JSC$11367_key_)break;K[u]=K[C];u=C}K[u]=d}return l.getValue()}};
_.I.peek=function(){var u=this.nodes_;if(u.length!=0)return u[0].getValue()};
_.I.getValues=function(){for(var u=this.nodes_,K=[],l=u.length,D=0;D<l;D++)K.push(u[D].getValue());return K};
_.I.getKeys=function(){for(var u=this.nodes_,K=[],l=u.length,D=0;D<l;D++)K.push(u[D].JSC$11367_key_);return K};
_.I.containsValue=function(u){return this.nodes_.some(function(K){return K.getValue()==u})};
_.I.containsKey=function(u){return this.nodes_.some(function(K){return K.JSC$11367_key_==u})};
_.I.clone=function(){return new ax(this)};
_.I.getCount=function(){return this.nodes_.length};
_.I.isEmpty=function(){return this.nodes_.length===0};
_.I.clear=function(){this.nodes_.length=0};_.z7=function(u,K){this.JSC$11373_map_={};this.JSC$11373_keys_=[];this.version_=this.size=0;var l=arguments.length;if(l>1){if(l%2)throw Error("ka");for(var D=0;D<l;D+=2)this.set(arguments[D],arguments[D+1])}else u&&this.addAll(u)};
_.I=_.z7.prototype;_.I.getCount=function(){return this.size};
_.I.getValues=function(){es(this);for(var u=[],K=0;K<this.JSC$11373_keys_.length;K++)u.push(this.JSC$11373_map_[this.JSC$11373_keys_[K]]);return u};
_.I.getKeys=function(){es(this);return this.JSC$11373_keys_.concat()};
_.I.containsKey=function(u){return this.has(u)};
_.I.has=function(u){return Rx(this.JSC$11373_map_,u)};
_.I.containsValue=function(u){for(var K=0;K<this.JSC$11373_keys_.length;K++){var l=this.JSC$11373_keys_[K];if(Rx(this.JSC$11373_map_,l)&&this.JSC$11373_map_[l]==u)return!0}return!1};
_.I.equals=function(u,K){if(this===u)return!0;if(this.size!=u.getCount())return!1;K=K||Bf0;es(this);for(var l,D=0;l=this.JSC$11373_keys_[D];D++)if(!K(this.get(l),u.get(l)))return!1;return!0};
var Bf0=function(u,K){return u===K};
_.z7.prototype.isEmpty=function(){return this.size==0};
_.z7.prototype.clear=function(){this.JSC$11373_map_={};this.version_=this.size=this.JSC$11373_keys_.length=0};
_.z7.prototype.remove=function(u){return this.delete(u)};
_.z7.prototype.delete=function(u){return Rx(this.JSC$11373_map_,u)?(delete this.JSC$11373_map_[u],--this.size,this.version_++,this.JSC$11373_keys_.length>2*this.size&&es(this),!0):!1};
var es=function(u){if(u.size!=u.JSC$11373_keys_.length){for(var K=0,l=0;K<u.JSC$11373_keys_.length;){var D=u.JSC$11373_keys_[K];Rx(u.JSC$11373_map_,D)&&(u.JSC$11373_keys_[l++]=D);K++}u.JSC$11373_keys_.length=l}if(u.size!=u.JSC$11373_keys_.length){K={};for(D=l=0;l<u.JSC$11373_keys_.length;){var d=u.JSC$11373_keys_[l];Rx(K,d)||(u.JSC$11373_keys_[D++]=d,K[d]=1);l++}u.JSC$11373_keys_.length=D}};
_.I=_.z7.prototype;_.I.get=function(u,K){return Rx(this.JSC$11373_map_,u)?this.JSC$11373_map_[u]:K};
_.I.set=function(u,K){Rx(this.JSC$11373_map_,u)||(this.size+=1,this.JSC$11373_keys_.push(u),this.version_++);this.JSC$11373_map_[u]=K};
_.I.addAll=function(u){if(u instanceof _.z7)for(var K=u.getKeys(),l=0;l<K.length;l++)this.set(K[l],u.get(K[l]));else for(K in u)this.set(K,u[K])};
_.I.forEach=function(u,K){for(var l=this.getKeys(),D=0;D<l.length;D++){var d=l[D],C=this.get(d);u.call(K,C,d,this)}};
_.I.clone=function(){return new _.z7(this)};
_.I.transpose=function(){for(var u=new _.z7,K=0;K<this.JSC$11373_keys_.length;K++){var l=this.JSC$11373_keys_[K];u.set(this.JSC$11373_map_[l],l)}return u};
_.I.keys=function(){return ofa(this.__iterator__(!0)).toEs6()};
_.I.values=function(){return ofa(this.__iterator__(!1)).toEs6()};
_.I.entries=function(){var u=this;return bca(this.keys(),function(K){return[K,u.get(K)]})};
_.I.__iterator__=function(u){es(this);var K=0,l=this.version_,D=this,d=new cP;d.next=function(){if(l!=D.version_)throw Error("qe");if(K>=D.JSC$11373_keys_.length)return ah;var C=D.JSC$11373_keys_[K++];return z$(u?C:D.JSC$11373_map_[C])};
return d};
var Rx=function(u,K){return Object.prototype.hasOwnProperty.call(u,K)};var ir2=function(){this.JSC$11376_map_=new _.z7;this.JSC$11376_head_=new pbw("");this.JSC$11376_head_.next=this.JSC$11376_head_.prev=this.JSC$11376_head_},TfC=function(u,K){if(K=u.JSC$11376_map_.get(K))K.remove(),u.insert_(K);
return K};
_.I=ir2.prototype;_.I.get=function(u,K){return(u=TfC(this,u))?u.value:K};
_.I.set=function(u,K){var l=TfC(this,u);l?l.value=K:(l=new pbw(u,K),this.JSC$11376_map_.set(u,l),this.insert_(l))};
_.I.peek=function(){return this.JSC$11376_head_.next.value};
_.I.shift=function(){return wba(this,this.JSC$11376_head_.next)};
_.I.pop=function(){return wba(this,this.JSC$11376_head_.prev)};
_.I.remove=function(u){return(u=this.JSC$11376_map_.get(u))?(this.removeNode(u),!0):!1};
_.I.removeNode=function(u){u.remove();this.JSC$11376_map_.remove(u.key)};
_.I.getCount=function(){return this.JSC$11376_map_.getCount()};
_.I.isEmpty=function(){return this.JSC$11376_map_.isEmpty()};
_.I.getKeys=function(){return this.map(function(u,K){return K})};
_.I.getValues=function(){return this.map(function(u){return u})};
_.I.contains=function(u){return this.some(function(K){return K==u})};
_.I.containsKey=function(u){return this.JSC$11376_map_.containsKey(u)};
_.I.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11376_head_.prev)};
_.I.forEach=function(u,K){for(var l=this.JSC$11376_head_.next;l!=this.JSC$11376_head_;l=l.next)u.call(K,l.value,l.key,this)};
_.I.map=function(u,K){for(var l=[],D=this.JSC$11376_head_.next;D!=this.JSC$11376_head_;D=D.next)l.push(u.call(K,D.value,D.key,this));return l};
_.I.some=function(u,K){for(var l=this.JSC$11376_head_.next;l!=this.JSC$11376_head_;l=l.next)if(u.call(K,l.value,l.key,this))return!0;return!1};
_.I.every=function(u,K){for(var l=this.JSC$11376_head_.next;l!=this.JSC$11376_head_;l=l.next)if(!u.call(K,l.value,l.key,this))return!1;return!0};
_.I.insert_=function(u){u.next=this.JSC$11376_head_.next;u.prev=this.JSC$11376_head_;this.JSC$11376_head_.next=u;for(u.next.prev=u;this.getCount()>100;)this.removeNode(this.JSC$11376_head_.prev)};
var wba=function(u,K){u.JSC$11376_head_!=K&&u.removeNode(K);return K.value},pbw=function(u,K){this.key=u;
this.value=K};
pbw.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var FQw=function(){ax.apply(this,arguments)};
_.c(FQw,ax);FQw.prototype.enqueue=function(u,K){this.insert(u,K)};var V12=function(){var u=Error();u.name="SecurityError";throw u;},$Fy=function(){return{get opener(){return null},
get closed(){return!0},get location(){V12()},get document(){V12()},postMessage:function(){},
close:function(){},
focus:function(){}}};var nAL={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 tQH={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 gUN={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(tQH).join("|");var NfR=function(){function u(M){M.substr(-1)!==";"&&(M+=";");return W(M)}
for(var K=Object.keys(gUN).sort(vAn),l=Object.keys(tQH).sort(vAn),D=0,d=0;D<l.length;D++)K[d]===l[D]?(l[D]+=";?",d++):l[D]+=";";var C=new RegExp("&(?:"+l.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),W=xbn();return function(M){return String(M).replace(C,u)}}();/*

 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 kWA={};var Zra=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"),YpB=/[\\&]/,Ala=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),XbH=RegExp('[&<>"]',"g"),mEB=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),hPm=function(u){return u.charCodeAt(0)===92?u.charAt(1):NfR(u)},EUa=function(u){return YpB.test(u)?u.replace(Ala,hPm):u},LQ0=function(u){try{var K,l="";
if(typeof d!=="string"){var D=d;var d=";/?:@&=+$,-_.!~*'()#"}typeof D==="undefined"&&(D=!0);var C,W=kWA[d];if(W)var M=W;else{W=kWA[d]=[];for(C=0;C<128;C++){var q=String.fromCharCode(C);/^[0-9a-z]$/i.test(q)?W.push(q):W.push("%"+("0"+C.toString(16).toUpperCase()).slice(-2))}for(C=0;C<d.length;C++)W[d.charCodeAt(C)]=d[C];M=W}var v=0;for(K=u.length;v<K;v++){var G=u.charCodeAt(v);if(D&&G===37&&v+2<K&&/^[0-9a-f]{2}$/i.test(u.slice(v+1,v+3)))l+=u.slice(v,v+3),v+=2;else if(G<128)l+=M[G];else if(G>=55296&&
G<=57343){if(G>=55296&&G<=56319&&v+1<K){var t=u.charCodeAt(v+1);if(t>=56320&&t<=57343){l+=encodeURIComponent(u[v]+u[v+1]);v++;continue}}l+="%EF%BF%BD"}else l+=encodeURIComponent(u[v])}return l}catch(x){return u}},ubR=function(u){switch(u){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return u}},UF=function(u,K){return XbH.test(u)?K?u.replace(mEB,ubR):u.replace(XbH,ubR):u};/*

 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 fk;if(String.fromCodePoint)fk=function(u){try{return String.fromCodePoint(u)}catch(K){if(K instanceof RangeError)return String.fromCharCode(65533);throw K;}};
else{var KEH=String.fromCharCode,l$2=Math.floor;fk=function(){var u=[],K=-1,l=arguments.length;if(!l)return"";for(var D="";++K<l;){var d=Number(arguments[K]);if(!isFinite(d)||d<0||d>1114111||l$2(d)!==d)return String.fromCharCode(65533);if(d<=65535)u.push(d);else{d-=65536;var C=(d>>10)+55296;d=d%1024+56320;u.push(C,d)}if(K+1===l||u.length>16384)D+=KEH.apply(null,u),u.length=0}return D}};var DIA=function(u){this.root=this.current=u;this.entering=!0};
DIA.prototype.next=function(){var u=this.current,K=this.entering;if(u===null)return null;a:switch(u._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 l=!0;break a;default:l=!1}K&&l?u._firstChild?(this.current=u._firstChild,this.entering=!0):this.entering=!1:u===this.root?this.current=null:u._next===null?(this.current=
u._parent,this.entering=!1):(this.current=u._next,this.entering=!0);return{entering:K,node:u}};
var zS=function(u,K){this._type=u;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=K;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};
zS.prototype.appendChild=function(u){u.unlink();u._parent=this;this._lastChild?(this._lastChild._next=u,u._prev=this._lastChild):this._firstChild=u;this._lastChild=u};
zS.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 dIk=function(u,K){K.unlink();K._next=u._next;K._next&&(K._next._prev=K);K._prev=u;u._next=K;K._parent=u._parent;K._next||(K._parent._lastChild=K)};
zS.prototype.insertBefore=function(u){u.unlink();u._prev=this._prev;u._prev&&(u._prev._next=u);u._next=this;this._prev=u;u._parent=this._parent;u._prev||(u._parent._firstChild=u)};
_.MN.Object.defineProperties(zS.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(u){this._literal=u}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(u){this._destination=u}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(u){this._title=u}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(u){this._info=u}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(u){this._level=u}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(u){this._listData.type=u}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(u){this._listData.tight=u}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(u){this._listData.start=u}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(u){this._onEnter=u}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(u){this._onExit=u}}});var SR9=/[ \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,
bab={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 Ctm=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]/),
I$B=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),yBm=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),sTw=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),ook=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),WES=/`+/,H4s=/^`+/,MXa=/\.\.\./g,q4N=/--+/g,$Iw=/^<([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])?)*)>/,
noN=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,rBN=/^ *(?:\n *)?/,vom=/^[ \t\n\x0b\x0c\x0d]/,GHs=/[ \t\n\x0b\x0c\x0d]+/g,tX2=/^\s/,xIa=/ *$/,S4C=/^ */,b4s=/^ *(?:\n|$)/,O4C=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),cBS=/^[^\n`\[\]\\!<&*_'"]+/m,Q7=function(u){var K=new zS("text");K._literal=u;return K},Pz=function(u){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=u||{}};
Pz.prototype.match=function(u){u=u.exec(this.subject.slice(this.pos));if(u===null)return null;this.pos+=u.index+u[0].length;return u[0]};
Pz.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Je=function(u){u.match(rBN);return!0},a$S=function(u,K,l){var D=0;
var d=u.pos;if(K===39||K===34)D++,u.pos++;else for(;u.peek()===K;)D++,u.pos++;if(D===0)D=null;else{var C=d===0?"\n":u.subject.charAt(d-1);var W=u.peek();W=W===-1?"\n":fk(W);var M=tX2.test(W);W=Ctm.test(W);var q=tX2.test(C);var v=Ctm.test(C);C=!M&&!(W&&!q&&!v);M=!q&&!(v&&!M&&!W);K===95?(q=C&&(!M||v),W=M&&(!C||W)):(q=K===39||K===34?C&&!M:C,W=M);u.pos=d;D={numdelims:D,can_open:q,can_close:W}}if(!D)return!1;d=D.numdelims;W=u.pos;u.pos+=d;W=K===39?"\u2019":K===34?"\u201c":u.subject.slice(W,u.pos);W=Q7(W);
l.appendChild(W);u.delimiters={cc:K,numdelims:d,origdelims:d,node:W,previous:u.delimiters,next:null,can_open:D.can_open,can_close:D.can_close};u.delimiters.previous!==null&&(u.delimiters.previous.next=u.delimiters);return!0},zM0=function(u,K){K.previous!==null&&(K.previous.next=K.next);
K.next===null?u.delimiters=K.previous:K.next.previous=K.previous},eMN=function(u,K){var l,D,d=[],C=!1;
d[95]=K;d[42]=K;d[39]=K;d[34]=K;for(l=u.delimiters;l!==null&&l.previous!==K;)l=l.previous;for(;l!==null;){var W=l.cc;if(l.can_close){var M=l.previous;for(D=!1;M!==null&&M!==K&&M!==d[W];){C=(l.can_open||M.can_close)&&(M.origdelims+l.origdelims)%3===0;if(M.cc===l.cc&&M.can_open&&!C){D=!0;break}M=M.previous}var q=l;if(W===42||W===95)if(D){var v=l.numdelims>=2&&M.numdelims>=2?2:1;var G=M.node;var t=l.node;M.numdelims-=v;l.numdelims-=v;G._literal=G._literal.slice(0,G._literal.length-v);t._literal=t._literal.slice(0,
t._literal.length-v);var x=new zS(v===1?"emph":"strong");for(v=G._next;v&&v!==t;){var O=v._next;v.unlink();x.appendChild(v);v=O}dIk(G,x);v=M;O=l;v.next!==O&&(v.next=O,O.previous=v);M.numdelims===0&&(G.unlink(),zM0(u,M));l.numdelims===0&&(t.unlink(),M=l.next,zM0(u,l),l=M)}else l=l.next;else W===39?(l.node._literal="\u2019",D&&(M.node._literal="\u2018"),l=l.next):W===34&&(l.node._literal="\u201d",D&&(M.node.literal="\u201c"),l=l.next);D||C||(d[W]=q.previous,q.can_open||zM0(u,q))}else l=l.next}for(;u.delimiters!==
null&&u.delimiters!==K;)zM0(u,u.delimiters)},RMw=function(u){u=u.match(I$B);
return u===null?null:EUa(u.substr(1,u.length-2))},UIa=function(u){var K=u.match(yBm);
if(K===null){K=u.pos;for(var l=0,D;(D=u.peek())!==-1;)if(D===92)u.pos+=1,u.peek()!==-1&&(u.pos+=1);else if(D===40)u.pos+=1,l+=1;else if(D===41)if(l<1)break;else u.pos+=1,--l;else if(vom.exec(fk(D))!==null)break;else u.pos+=1;K=u.subject.substr(K,u.pos-K);return LQ0(EUa(K))}return LQ0(EUa(K.substr(1,K.length-2)))},f$N=function(u){u=u.match(O4C);
return u===null||u.length>1001?0:u.length},QTH=function(u,K,l,D){u.brackets!==null&&(u.brackets.bracketAfter=!0);
u.brackets={node:K,previous:u.brackets,previousDelimiter:u.delimiters,index:l,image:D,active:!0}},Pta=function(u,K){var l;
return(l=u.match(cBS))?(u.options.smart?K.appendChild(Q7(l.replace(MXa,"\u2026").replace(q4N,function(D){var d=0,C=0;D.length%3===0?C=D.length/3:D.length%2===0?d=D.length/2:D.length%3===2?(d=1,C=(D.length-2)/3):(d=2,C=(D.length-4)/3);D="";var W;for(W=0;W<C;W++)D+="\u2014";for(W=0;W<d;W++)D+="\u2013";return D}))):K.appendChild(Q7(l)),!0):!1},JBs=function(u,K,l){u.subject=K;
u.pos=0;K=u.pos;var D=f$N(u);if(D===0)return 0;var d=u.subject.substr(0,D);if(u.peek()===58)u.pos++;else return u.pos=K,0;Je(u);D=UIa(u);if(D===null||D.length===0)return u.pos=K,0;var C=u.pos;Je(u);var W=RMw(u);W===null&&(W="",u.pos=C);var M=!0;u.match(b4s)===null&&(W===""?M=!1:(W="",u.pos=C,M=u.match(b4s)!==null));if(!M)return u.pos=K,0;d=Oa9(d);if(d==="")return u.pos=K,0;l[d]||(l[d]={destination:D,title:W});return u.pos-K},jTa=function(u,K){var l,D=u.peek();
if(D===-1)return!1;switch(D){case 10:u.pos+=1;if((l=K._lastChild)&&l.type==="text"&&l._literal[l._literal.length-1]===" "){var d=l._literal[l._literal.length-2]===" ";l._literal=l._literal.replace(xIa,"");K.appendChild(new zS(d?"linebreak":"softbreak"))}else K.appendChild(new zS("softbreak"));u.match(S4C);l=!0;break;case 92:l=u.subject;u.pos+=1;u.peek()===10?(u.pos+=1,l=new zS("linebreak"),K.appendChild(l)):sTw.test(l.charAt(u.pos))?(K.appendChild(Q7(l.charAt(u.pos))),u.pos+=1):K.appendChild(Q7("\\"));
l=!0;break;case 96:a:if(l=u.match(H4s),l===null)l=!1;else{d=u.pos;for(var C;(C=u.match(WES))!==null;)if(C===l){C=new zS("code");C._literal=u.subject.slice(d,u.pos-l.length).trim().replace(GHs," ");K.appendChild(C);l=!0;break a}u.pos=d;K.appendChild(Q7(l));l=!0}break;case 42:case 95:l=a$S(u,D,K);break;case 39:case 34:l=u.options.smart&&a$S(u,D,K);break;case 91:l=u.pos;u.pos+=1;d=Q7("[");K.appendChild(d);QTH(u,d,l,!1);l=!0;break;case 33:l=u.pos;u.pos+=1;u.peek()===91?(u.pos+=1,d=Q7("!["),K.appendChild(d),
QTH(u,d,l+1,!0)):K.appendChild(Q7("!"));l=!0;break;case 93:var W,M=!1,q;u.pos+=1;var v=u.pos;d=u.brackets;if(d===null)K.appendChild(Q7("]"));else if(d.active){l=d.image;var G=u.pos;u.peek()===40&&(u.pos++,Je(u)&&(C=UIa(u))!==null&&Je(u)&&(vom.test(u.subject.charAt(u.pos-1))&&(W=RMw(u)),1)&&Je(u)&&u.peek()===41?(u.pos+=1,M=!0):u.pos=G);if(!M){var t=u.pos,x=f$N(u);x>2?q=u.subject.slice(t,t+x):d.bracketAfter||(q=u.subject.slice(d.index,v));x===0&&(u.pos=G);q&&(q=u.refmap[Oa9(q)])&&(C=q.destination,W=
q.title,M=!0)}if(M){v=new zS(l?"image":"link");v._destination=C;v._title=W||"";for(C=d.node._next;C;)W=C._next,C.unlink(),v.appendChild(C),C=W;K.appendChild(v);eMN(u,d.previousDelimiter);u.brackets=u.brackets.previous;d.node.unlink();if(!l)for(d=u.brackets;d!==null;)d.image||(d.active=!1),d=d.previous}else u.brackets=u.brackets.previous,u.pos=v,K.appendChild(Q7("]"))}else K.appendChild(Q7("]")),u.brackets=u.brackets.previous;l=!0;break;case 60:(l=u.match($Iw))?(l=l.slice(1,l.length-1),d=new zS("link"),
d._destination=LQ0("mailto:"+l),d._title="",d.appendChild(Q7(l)),K.appendChild(d),l=!0):(l=u.match(noN))?(l=l.slice(1,l.length-1),d=new zS("link"),d._destination=LQ0(l),d._title="",d.appendChild(Q7(l)),K.appendChild(d),l=!0):l=!1;l||(l=u.match(Zra),l===null?l=!1:(d=new zS("html_inline"),d._literal=l,K.appendChild(d),l=!0));break;case 38:(l=u.match(ook))?(K.appendChild(Q7(NfR(l))),l=!0):l=!1;break;default:l=Pta(u,K)}l||(u.pos+=1,K.appendChild(Q7(fk(D))));return!0};
Pz.prototype.parseInlines=function(u){this.subject=u._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;jTa(this,u););u._string_content=null;eMN(this,null)};
Pz.prototype.parse=Pz.prototype.parseInlines;var BYS=[/./,/^<(?: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")],p1S=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],i42=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,TYR=/^[#`~*+_=<>0-9-\|]|\|/,w1a=/[^ \t\f\v\r\n]/,FEa=/^[*+-]/,VX0=/^(\d{1,9})([.)])/,goH=/^#{1,6}(?:[ \t]+|$)/,NY0=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,kHN=/^(?:`{3,}|~{3,})(?= *$)/,Z4k=/^(?:=+|-+)[ \t]*$/,Y4C=/\r\n|\n|\r/,a0Z=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,zbq=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,ABw={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(u){return u!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(u,K){for(u=K._firstChild;u;){if(cyo(u)&&u._next){K._listData.tight=!1;break}for(var l=u._firstChild;l;){if(cyo(l)&&(u._next||l._next)){K._listData.tight=!1;break}l=l._next}u=u._next}},
canContain:function(u){return u==="item"},
acceptsLines:!1},block_quote:{continue:function(u){var K=u.currentLine;if(u.indented||c_(K,u.nextNonspace)!==62)return 1;js(u);Bz(u,1,!1);OW(c_(K,u.offset))&&Bz(u,1,!0);return 0},
finalize:function(){},
canContain:function(u){return u!=="item"},
acceptsLines:!1},item:{continue:function(u,K){if(u.blank){if(K._firstChild==null)return 1;js(u)}else if(u.indent>=K._listData.markerOffset+K._listData.padding)Bz(u,K._listData.markerOffset+K._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(u){return u!=="item"&&!ebq(u)},
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(u,K){var l=u.currentLine,D=u.indent;if(K._isFenced){if((D=D<=3&&l.charAt(u.nextNonspace)===K._fenceChar&&l.slice(u.nextNonspace).match(kHN))&&D[0].length>=K._fenceLength)return u.finalize(K,u.lineNumber),2;for(K=K._fenceOffset;K>0&&OW(c_(l,u.offset));)Bz(u,1,!0),K--}else if(D>=4)Bz(u,4,!0);else if(u.blank)js(u);else return 1;return 0},
finalize:function(u,K){if(K._isFenced){var l=K._string_content,D=l.indexOf("\n");u=l.slice(0,D);l=l.slice(D+1);K.info=EUa(u.trim());K._literal=l}else K._literal=K._string_content.replace(/(\n *)+$/,"\n");K._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(u,K){return!u.blank||K._htmlBlockType!==6&&K._htmlBlockType!==7?0:1},
finalize:function(u,K){K._literal=K._string_content.replace(/(\n *)+$/,"");K._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(u){return u.blank?1:0},
finalize:function(u,K){for(var l,D=!1;c_(K._string_content,0)===91&&(l=JBs(u.inlineParser,K._string_content,u.refmap));)K._string_content=K._string_content.slice(l),D=!0;D&&!w1a.test(K._string_content)&&K.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(u){return aN(u.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(u){return u=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(u,K){if(!K._rowIsDelimiter){u=K._isHeader?"th":"td";for(var l=K._parent._tableColumns,D=K._string_content,d=0,C="",W,M=K._sourcepos[0][0];d<D.length;){switch(D[d]){case "|":W&&(W._string_content=C.trim(),C="",W=null,l--,l<=0&&(d=D.length));break;default:if(!W){W=new zS(u,[[M,d],[M,d]]);var q=K._parent._columnAlignment,v=K._parent._tableColumns-l;q&&v<=q.length&&v>=0&&(W._alignment=q[v]);K.appendChild(W)}C+=D[d];W._sourcepos[1][1]=d}d++}W&&(W._string_content=C.trim());K._string_content=
""}},
canContain:function(u){return u!=="row"},
acceptsLines:!1}},X1S=[function(u){if(u.indented||c_(u.currentLine,u.nextNonspace)!==62)return 0;js(u);Bz(u,1,!1);OW(c_(u.currentLine,u.offset))&&Bz(u,1,!0);pk(u);u.addChild("block_quote",u.nextNonspace);return 1},
function(u){var K;if(!u.indented&&(K=u.currentLine.slice(u.nextNonspace).match(goH))){js(u);Bz(u,K[0].length,!1);pk(u);var l=u.addChild("heading",u.nextNonspace);l.level=K[0].trim().length;l._string_content=u.currentLine.slice(u.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");Bz(u,u.currentLine.length-u.offset);return 2}return 0},
function(u){var K;if(!u.indented&&(K=u.currentLine.slice(u.nextNonspace).match(NY0))){var l=K[0].length;pk(u);var D=u.addChild("code_block",u.nextNonspace);D._isFenced=!0;D._fenceLength=l;D._fenceChar=K[0][0];D._fenceOffset=u.indent;js(u);Bz(u,l,!1);return 2}return 0},
function(u,K){if(!u.indented&&c_(u.currentLine,u.nextNonspace)===60){var l=u.currentLine.slice(u.nextNonspace),D;for(D=1;D<=7;D++)if(BYS[D].test(l)&&(D<7||K.type!=="paragraph"))return pk(u),u.addChild("html_block",u.offset)._htmlBlockType=D,2}return 0},
function(u,K){var l;if(!u.indented&&K.type==="paragraph"&&(l=u.currentLine.slice(u.nextNonspace).match(Z4k))){pk(u);var D=new zS("heading",K.sourcepos);D.level=l[0][0]==="="?1:2;D._string_content=K._string_content;dIk(K,D);K.unlink();u.tip=D;Bz(u,u.currentLine.length-u.offset,!1);return 2}return 0},
function(u){return!u.indented&&i42.test(u.currentLine.slice(u.nextNonspace))?(pk(u),u.addChild("thematic_break",u.nextNonspace),Bz(u,u.currentLine.length-u.offset,!1),2):0},
function(u,K){var l,D;if(!(D=u.indented&&K.type!=="list")){a:{var d=K,C=u.currentLine.slice(u.nextNonspace);D={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:u.indent};if(l=C.match(FEa))D.type="bullet",D.bulletChar=l[0][0];else{if(!(l=C.match(VX0))||d.type==="paragraph"&&l[1]!=="1"){l=null;break a}D.type="ordered";D.start=parseInt(l[1],10);D.delimiter=l[2]}var W=c_(u.currentLine,u.nextNonspace+l[0].length);if(W!==-1&&W!==9&&W!==32||d.type==="paragraph"&&!u.currentLine.slice(u.nextNonspace+
l[0].length).match(w1a))l=null;else{js(u);Bz(u,l[0].length,!0);d=u.column;C=u.offset;do Bz(u,1,!0),W=c_(u.currentLine,u.offset);while(u.column-d<5&&OW(W));W=c_(u.currentLine,u.offset)===-1;var M=u.column-d;M>=5||M<1||W?(D.padding=l[0].length+1,u.column=d,u.offset=C,OW(c_(u.currentLine,u.offset))&&Bz(u,1,!0)):D.padding=l[0].length+M;l=D}}D=!l}if(D)return 0;pk(u);(D=u.tip.type!=="list")||(K=K._listData,D=!(K.type===l.type&&K.delimiter===l.delimiter&&K.bulletChar===l.bulletChar));D&&(K=u.addChild("list",
u.nextNonspace),K._listData=l);K=u.addChild("item",u.nextNonspace);K._listData=l;return 1},
function(u){var K;return((K=u.options.shouldParseIndentAsCodeBlock)!=null?K:1)&&u.indented&&u.tip.type!=="paragraph"&&!u.blank?(Bz(u,4,!0),pk(u),u.addChild("code_block",u.offset),2):0},
function(u,K){var l=aN(u.currentLine),D=aN(u.lookahead);if(l!==0&&D<0&&Math.abs(l)==Math.abs(D)&&!ebq(K.type)){pk(u);K=u.addChild("table",u.nextNonspace);K._tableRows=1;K._tableColumns=Math.abs(l);l=u.lookahead;if(zbq.test(l)){D=[];for(var d=0,C=!1,W=0,M=void 0;d<l.length;){var q=W>=3;switch(l[d]){case "-":W++;break;case "|":C&&(D.push(M),M=void 0,W=0);C=!0;break;case ":":M||q||(M="left"),!M&&q&&(M="right"),M==="left"&&q&&(M="center")}d++}l=D}else l=void 0;K._columnAlignment=l;K=u.addChild("row",
u.nextNonspace);K._isHeader=!0;Bz(u,u.currentLine.length-u.offset,!1);K._string_content=u.currentLine;return 1}return 0},
function(u,K){if(K.type=="table"&&aN(u.currentLine)!==0){pk(u);var l=K;K=u.addChild("row",u.nextNonspace);aN(u.currentLine)<0?K._rowIsDelimiter=!0:l._tableRows+=1;Bz(u,u.currentLine.length-u.offset,!1);K._string_content=u.currentLine;return 2}return 0}],Rhq=function(){var u={shouldParseIndentAsCodeBlock:!1};
u=u===void 0?{}:u;this.lastMatchedContainer=this.doc=RbL();this.refmap={};this.lastLineLength=0;this.inlineParser=new Pz(u);this.options=u;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=ABw;this.blockStarts=X1S},mIw=function(u){u.partiallyConsumedTab&&(u.offset+=1,u.tip._string_content+=" ".repeat(4-u.column%
4));
u.tip._string_content+=u.currentLine.slice(u.offset)+"\n"};
Rhq.prototype.addChild=function(u,K){for(;!this.blocks[this.tip.type].canContain(u);)this.finalize(this.tip,this.lineNumber-1);u=new zS(u,[[this.lineNumber,K+1],[0,0]]);u._string_content="";this.tip.appendChild(u);return this.tip=u};
var pk=function(u){if(!u.allClosed){for(;u.oldtip!==u.lastMatchedContainer;){var K=u.oldtip._parent;u.finalize(u.oldtip,u.lineNumber-1);u.oldtip=K}u.allClosed=!0}},Bz=function(u,K,l){for(var D=u.currentLine,d,C;K>0&&(C=D[u.offset]);)C==="\t"?(d=4-u.column%4,l?(u.partiallyConsumedTab=d>K,d=d>K?K:d,u.column+=d,u.offset+=u.partiallyConsumedTab?0:1,K-=d):(u.partiallyConsumedTab=!1,u.column+=d,u.offset+=1,--K)):(u.partiallyConsumedTab=!1,u.offset+=1,u.column+=1,--K)},js=function(u){u.offset=u.nextNonspace;
u.column=u.nextNonspaceColumn;u.partiallyConsumedTab=!1},hMS=function(u){for(var K=u.currentLine,l=u.offset,D=u.column,d;(d=K.charAt(l))!=="";)if(d===" ")l++,D++;
else if(d==="\t")l++,D+=4-D%4;else break;u.blank=d==="\n"||d==="\r"||d==="";u.nextNonspace=l;u.nextNonspaceColumn=D;u.indent=u.nextNonspaceColumn-u.column;u.indented=u.indent>=4};
Rhq.prototype.finalize=function(u,K){var l=u._parent;u._open=!1;u.sourcepos[1]=[K,this.lastLineLength];this.blocks[u.type].finalize(this,u);this.tip=l};
Rhq.prototype.parse=function(u){this.tip=this.doc=RbL();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!u)return this.doc;this.options.time&&console.time("preparing input");var K=u.split(Y4C),l=K.length;u.charCodeAt(u.length-1)===10&&--l;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(u=0;u<l;u++)a:{var D=void 0,d=K[u],C=K[u+1],W=!0,M=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;d.indexOf("\x00")!==-1&&(d=d.replace(/\0/g,"\ufffd"));this.currentLine=d;for(this.lookahead=C;(D=M._lastChild)&&D._open;){M=D;hMS(this);switch(this.blocks[M.type].continue(this,M)){case 0:break;case 1:W=!1;break;case 2:this.lastLineLength=d.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!W){M=M._parent;break}}this.allClosed=M===this.oldtip;this.lastMatchedContainer=
M;D=M.type!=="paragraph"&&ABw[M.type].acceptsLines;C=this.blockStarts;for(W=C.length;!D;){hMS(this);if(!this.indented&&!TYR.test(d.slice(this.nextNonspace))){js(this);break}for(var q=0;q<W;){var v=C[q](this,M);if(v===1){M=this.tip;break}else if(v===2){M=this.tip;D=!0;break}else q++}if(q===W){js(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){pk(this);this.blank&&M.lastChild&&(M.lastChild._lastLineBlank=!0);D=M.type;C=this.blank&&!(D==="block_quote"||D==="code_block"&&M._isFenced||
D==="item"&&!M._firstChild&&M.sourcepos[0][0]===this.lineNumber);for(W=M;W;)W._lastLineBlank=C,W=W._parent;this.blocks[D].acceptsLines?(mIw(this),D==="html_block"&&M._htmlBlockType>=1&&M._htmlBlockType<=5&&p1S[M._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(M,this.lineNumber)):this.offset<d.length&&!this.blank&&(this.addChild("paragraph",this.offset),js(this),mIw(this))}else mIw(this);this.lastLineLength=d.length}for(;this.tip;)this.finalize(this.tip,l);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");d=new DIA(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;l=d.next();)K=l.node,u=K.type,l.entering||u!=="paragraph"&&u!=="heading"&&u!=="th"&&u!="td"||this.inlineParser.parse(K);this.options.time&&console.timeEnd("inline parsing");return this.doc};Ubb.prototype.render=function(u){u=new DIA(u);var K;this.buffer="";for(this.lastOut="\n";K=u.next();){var l=K.node.type;if(this[l])this[l](K.node,K.entering)}return this.buffer};
Ubb.prototype.out=function(u){i6(this,u)};
var i6=function(u,K){u.buffer+=K;u.lastOut=K};
Ubb.prototype.cr=function(){this.lastOut!=="\n"&&i6(this,"\n")};var EoS=/^javascript:|vbscript:|file:|data:/i,LEN=/^data:image\/(?:png|gif|jpeg|webp)/i,ufw=function(u){return EoS.test(u)&&!LEN.test(u)};
eR.prototype=Object.create(Ubb.prototype);_.I=eR.prototype;_.I.text=function(u){this.out(u.literal)};
_.I.html_inline=function(u){this.options.safe?i6(this,"\x3c!-- raw HTML omitted --\x3e"):i6(this,u.literal)};
_.I.html_block=function(u){this.cr();this.options.safe?i6(this,"\x3c!-- raw HTML omitted --\x3e"):i6(this,u.literal);this.cr()};
_.I.softbreak=function(){i6(this,this.options.softbreak)};
_.I.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.I.link=function(u,K){var l=this.attrs(u);K?(this.options.safe&&ufw(u.destination)||l.push(["href",UF(u.destination,!0)]),u.title&&l.push(["title",UF(u.title,!0)]),this.tag("a",l)):this.tag("/a")};
_.I.image=function(u,K){K?(this.disableTags===0&&(this.options.safe&&ufw(u.destination)?i6(this,'<img src="" alt="'):i6(this,'<img src="'+UF(u.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(u.title&&i6(this,'" title="'+UF(u.title,!0)),i6(this,'" />')))};
_.I.emph=function(u,K){this.tag(K?"em":"/em")};
_.I.strong=function(u,K){this.tag(K?"strong":"/strong")};
_.I.paragraph=function(u,K){var l=u.parent.parent;u=this.attrs(u);l!==null&&l.type==="list"&&l.listTight||(K?(this.cr(),this.tag("p",u)):(this.tag("/p"),this.cr()))};
_.I.heading=function(u,K){var l="h"+u.level;u=this.attrs(u);K?(this.cr(),this.tag(l,u)):(this.tag("/"+l),this.cr())};
_.I.code=function(u){this.tag("code");this.out(u.literal);this.tag("/code")};
_.I.code_block=function(u){var K=u.info?u.info.split(/\s+/):[],l=this.attrs(u);K.length>0&&K[0].length>0&&l.push(["class","language-"+UF(K[0],!0)]);this.cr();this.tag("pre");this.tag("code",l);this.out(u.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.I.thematic_break=function(u){u=this.attrs(u);this.cr();this.tag("hr",u,!0);this.cr()};
_.I.block_quote=function(u,K){u=this.attrs(u);K?(this.cr(),this.tag("blockquote",u)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.I.list=function(u,K){var l=u.listType==="bullet"?"ul":"ol",D=this.attrs(u);K?(u=u.listStart,u!==null&&u!==1&&D.push(["start",u.toString()]),this.cr(),this.tag(l,D)):(this.cr(),this.tag("/"+l));this.cr()};
_.I.item=function(u,K){u=this.attrs(u);K?this.tag("li",u):(this.tag("/li"),this.cr())};
_.I.custom_inline=function(u,K){K&&u.onEnter?i6(this,u.onEnter):!K&&u.onExit&&i6(this,u.onExit)};
_.I.custom_block=function(u,K){this.cr();K&&u.onEnter?i6(this,u.onEnter):!K&&u.onExit&&i6(this,u.onExit);this.cr()};
_.I.table=function(u,K){u=this.attrs(u);K?(this.cr(),this.tag("table",u)):(this.tag("/table"),this.cr())};
_.I.row=function(u,K){u._rowIsDelimiter||(u=this.attrs(u),K?this.tag("tr",u):this.tag("/tr"))};
_.I.td=function(u,K){var l=this.attrs(u);u._alignment&&l.push(["align",u._alignment]);K?this.tag("td",l):this.tag("/td")};
_.I.th=function(u,K){var l=this.attrs(u);u._alignment&&l.push(["align",u._alignment]);K?this.tag("th",l):this.tag("/th")};
_.I.out=function(u){i6(this,UF(u,!1))};
_.I.tag=function(u,K,l){if(!(this.disableTags>0)){this.buffer+="<"+u;if(K&&K.length>0){u=0;for(var D;(D=K[u])!==void 0;)this.buffer+=" "+D[0]+'="'+D[1]+'"',u++}l&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.I.attrs=function(u){var K=[];this.options.sourcepos&&(u=u.sourcepos)&&K.push(["data-sourcepos",String(u[0][0])+":"+String(u[0][1])+"-"+String(u[1][0])+":"+String(u[1][1])]);return K};
eR.prototype.text=eR.prototype.text;eR.prototype.html_inline=eR.prototype.html_inline;eR.prototype.html_block=eR.prototype.html_block;eR.prototype.softbreak=eR.prototype.softbreak;eR.prototype.linebreak=eR.prototype.linebreak;eR.prototype.link=eR.prototype.link;eR.prototype.image=eR.prototype.image;eR.prototype.emph=eR.prototype.emph;eR.prototype.strong=eR.prototype.strong;eR.prototype.paragraph=eR.prototype.paragraph;eR.prototype.heading=eR.prototype.heading;eR.prototype.code=eR.prototype.code;
eR.prototype.code_block=eR.prototype.code_block;eR.prototype.thematic_break=eR.prototype.thematic_break;eR.prototype.block_quote=eR.prototype.block_quote;eR.prototype.list=eR.prototype.list;eR.prototype.item=eR.prototype.item;eR.prototype.custom_inline=eR.prototype.custom_inline;eR.prototype.custom_block=eR.prototype.custom_block;eR.prototype.table=eR.prototype.table;eR.prototype.row=eR.prototype.row;eR.prototype.td=eR.prototype.td;eR.prototype.th=eR.prototype.th;eR.prototype.out=eR.prototype.out;
eR.prototype.tag=eR.prototype.tag;eR.prototype.attrs=eR.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 Ko2,laa,DyH;(function(){function u(J,P){return J<P?-1:J>P?1:J>=P?0:NaN}
function K(J){return function(P,w){return u(J(P),w)}}
function l(){for(var J=0,P=arguments.length,w={},E;J<P;++J){if(!(E=arguments[J]+"")||E in w)throw Error("se`"+E);w[E]=[]}return new D(w)}
function D(J){this._=J}
function d(J,P){return J.trim().split(/^|\s+/).map(function(w){var E="",sZ=w.indexOf(".");sZ>=0&&(E=w.slice(sZ+1),w=w.slice(0,sZ));if(w&&!P.hasOwnProperty(w))throw Error("te`"+w);return{type:w,name:E}})}
function C(J,P,w){for(var E=0,sZ=J.length;E<sZ;++E)if(J[E].name===P){J[E]=A7G;J=J.slice(0,E).concat(J.slice(E+1));break}w!=null&&J.push({name:P,value:w});return J}
function W(J){var P=J,w=P.indexOf(":");w>=0&&(P=J.slice(0,w))!=="xmlns"&&(J=J.slice(w+1));return Sl.hasOwnProperty(P)?{space:Sl[P],local:J}:J}
function M(J){return function(){var P=this.ownerDocument,w=this.namespaceURI;return w==="http://www.w3.org/1999/xhtml"&&P.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?P.createElement(J):P.createElementNS(w,J)}}
function q(J){return function(){return this.ownerDocument.createElementNS(J.space,J.local)}}
function v(J){J=W(J);return(J.local?q:M)(J)}
function G(){}
function t(J){return J==null?G:function(){return this.querySelector(J)}}
function x(J){return Array(J.length)}
function O(J,P){this.ownerDocument=J.ownerDocument;this.namespaceURI=J.namespaceURI;this._next=null;this._parent=J;this.__data__=P}
function a(J){return function(){return J}}
function f(J,P,w,E,sZ,vo){for(var bL=0,Po,lk=P.length,EZ=vo.length;bL<EZ;++bL)(Po=P[bL])?(Po.__data__=vo[bL],E[bL]=Po):w[bL]=new O(J,vo[bL]);for(;bL<lk;++bL)if(Po=P[bL])sZ[bL]=Po}
function B(J,P,w,E,sZ,vo,bL){var Po,lk,EZ={},Cs=P.length,$0=vo.length,hR=Array(Cs),Oo;for(Po=0;Po<Cs;++Po)if(lk=P[Po])hR[Po]=Oo="$"+bL.call(lk,lk.__data__,Po,P),Oo in EZ?sZ[Po]=lk:EZ[Oo]=lk;for(Po=0;Po<$0;++Po)Oo="$"+bL.call(J,vo[Po],Po,vo),(lk=EZ[Oo])?(E[Po]=lk,lk.__data__=vo[Po],EZ[Oo]=null):w[Po]=new O(J,vo[Po]);for(Po=0;Po<Cs;++Po)(lk=P[Po])&&EZ[hR[Po]]===lk&&(sZ[Po]=lk)}
function p(J,P){return J<P?-1:J>P?1:J>=P?0:NaN}
function V(J){return function(){this.removeAttribute(J)}}
function m(J){return function(){this.removeAttributeNS(J.space,J.local)}}
function Z(J,P){return function(){this.setAttribute(J,P)}}
function A(J,P){return function(){this.setAttributeNS(J.space,J.local,P)}}
function h(J,P){return function(){var w=P.apply(this,arguments);w==null?this.removeAttribute(J):this.setAttribute(J,w)}}
function C9(J,P){return function(){var w=P.apply(this,arguments);w==null?this.removeAttributeNS(J.space,J.local):this.setAttributeNS(J.space,J.local,w)}}
function Wo(J){return function(){this.style.removeProperty(J)}}
function $y(J,P,w){return function(){this.style.setProperty(J,P,w)}}
function co(J,P,w){return function(){var E=P.apply(this,arguments);E==null?this.style.removeProperty(J):this.style.setProperty(J,E,w)}}
function UZ(J,P){return J.style.getPropertyValue(P)||(J.ownerDocument&&J.ownerDocument.defaultView||J.document&&J||J.defaultView).getComputedStyle(J,null).getPropertyValue(P)}
function tH(J){return function(){delete this[J]}}
function gq(J,P){return function(){this[J]=P}}
function Bo(J,P){return function(){var w=P.apply(this,arguments);w==null?delete this[J]:this[J]=w}}
function uk(){this.textContent=""}
function ca(J){return function(){this.textContent=J}}
function Ha(J){return function(){var P=J.apply(this,arguments);this.textContent=P==null?"":P}}
function hH(){this.innerHTML=""}
function tR(J){return function(){this.innerHTML=J}}
function ns(J){return function(){var P=J.apply(this,arguments);this.innerHTML=P==null?"":P}}
function Pa(){return null}
function QV(){var J=this.parentNode;J&&J.removeChild(this)}
function Ls(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function yn(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function dN(J,P,w){J=OB(J,P,w);return function(E){var sZ=E.relatedTarget;sZ&&(sZ===this||sZ.compareDocumentPosition(this)&8)||J.call(this,E)}}
function OB(J,P,w){return function(){J.call(this,this.__data__,P,w)}}
function vE(J){return J.trim().split(/^|\s+/).map(function(P){var w="",E=P.indexOf(".");E>=0&&(w=P.slice(E+1),P=P.slice(0,E));return{type:P,name:w}})}
function Gw(J){return function(){var P=this.__on;if(P){for(var w=0,E=-1,sZ=P.length,vo;w<sZ;++w)(vo=P[w],J.type&&vo.type!==J.type||vo.name!==J.name)?P[++E]=vo:this.removeEventListener(vo.type,vo.listener,vo.capture);++E?P.length=E:delete this.__on}}}
function Vm(J,P,w){var E=Ht2.hasOwnProperty(J.type)?dN:OB;return function(sZ,vo,bL){sZ=this.__on;var Po;vo=E(P,vo,bL);if(sZ){bL=0;for(var lk=sZ.length;bL<lk;++bL)if((Po=sZ[bL]).type===J.type&&Po.name===J.name){this.removeEventListener(Po.type,Po.listener,Po.capture);this.addEventListener(Po.type,Po.listener=vo,Po.capture=w);Po.value=P;return}}this.addEventListener(J.type,vo,w);Po={type:J.type,name:J.name,value:P,listener:vo,capture:w};sZ?sZ.push(Po):this.__on=[Po]}}
function DI(J,P,w){var E=J.ownerDocument&&J.ownerDocument.defaultView||J.document&&J||J.defaultView,sZ=E.CustomEvent;typeof sZ==="function"?sZ=new sZ(P,w):(sZ=E.document.createEvent("Event"),w?(sZ.initEvent(P,w.bubbles,w.cancelable),sZ.detail=w.detail):sZ.initEvent(P,!1,!1));J.dispatchEvent(sZ)}
function uG(J,P){return function(){return DI(this,J,P)}}
function oC(J,P){return function(){return DI(this,J,P.apply(this,arguments))}}
function ma(J,P){this._groups=J;this._parents=P}
function $p(){return new ma([[document.documentElement]],XPE)}
function aC(){this._="@"+(++m2p).toString(36)}
function RC(J,P,w){J.prototype=P.prototype=w;w.constructor=J}
function tE(J,P){J=Object.create(J.prototype);for(var w in P)J[w]=P[w];return J}
function HZ(){}
function HE(J){var P;J=(J+"").trim().toLowerCase();return(P=hYE.exec(J))?(P=parseInt(P[1],16),new Dk(P>>8&15|P>>4&240,P>>4&15|P&240,(P&15)<<4|P&15,1)):(P=Ev2.exec(J))?aO(parseInt(P[1],16)):(P=LRp.exec(J))?new Dk(P[1],P[2],P[3],1):(P=uG6.exec(J))?new Dk(P[1]*255/100,P[2]*255/100,P[3]*255/100,1):(P=Ke2.exec(J))?mf(P[1],P[2],P[3],P[4]):(P=lFV.exec(J))?mf(P[1]*255/100,P[2]*255/100,P[3]*255/100,P[4]):(P=DL6.exec(J))?CU(P[1],P[2]/100,P[3]/100,1):(P=dLE.exec(J))?CU(P[1],P[2]/100,P[3]/100,P[4]):Mva.hasOwnProperty(J)?
aO(Mva[J]):J==="transparent"?new Dk(NaN,NaN,NaN,0):null}
function aO(J){return new Dk(J>>16&255,J>>8&255,J&255,1)}
function mf(J,P,w,E){E<=0&&(J=P=w=NaN);return new Dk(J,P,w,E)}
function AR(J){J instanceof HZ||(J=HE(J));if(!J)return new Dk;J=J.rgb();return new Dk(J.r,J.g,J.b,J.opacity)}
function PE(J,P,w,E){return arguments.length===1?AR(J):new Dk(J,P,w,E==null?1:E)}
function Dk(J,P,w,E){this.r=+J;this.g=+P;this.b=+w;this.opacity=+E}
function hE(J){J=Math.max(0,Math.min(255,Math.round(J)||0));return(J<16?"0":"")+J.toString(16)}
function CU(J,P,w,E){E<=0?J=P=w=NaN:w<=0||w>=1?J=P=NaN:P<=0&&(J=NaN);return new Jg(J,P,w,E)}
function Y$(J){if(J instanceof Jg)return new Jg(J.h,J.s,J.l,J.opacity);J instanceof HZ||(J=HE(J));if(!J)return new Jg;if(J instanceof Jg)return J;J=J.rgb();var P=J.r/255,w=J.g/255,E=J.b/255,sZ=Math.min(P,w,E),vo=Math.max(P,w,E),bL=NaN,Po=vo-sZ,lk=(vo+sZ)/2;Po?(bL=P===vo?(w-E)/Po+(w<E)*6:w===vo?(E-P)/Po+2:(P-w)/Po+4,Po/=lk<.5?vo+sZ:2-vo-sZ,bL*=60):Po=lk>0&&lk<1?0:bL;return new Jg(bL,Po,lk,J.opacity)}
function J9(J,P,w,E){return arguments.length===1?Y$(J):new Jg(J,P,w,E==null?1:E)}
function Jg(J,P,w,E){this.h=+J;this.s=+P;this.l=+w;this.opacity=+E}
function Jm(J,P,w){return(J<60?P+(w-P)*J/60:J<180?w:J<240?P+(w-P)*(240-J)/60:P)*255}
function JV(J){if(J instanceof aR)return new aR(J.l,J.a,J.b,J.opacity);if(J instanceof S2){if(isNaN(J.h))return new aR(J.l,0,0,J.opacity);var P=J.h*q7w;return new aR(J.l,Math.cos(P)*J.c,Math.sin(P)*J.c,J.opacity)}J instanceof Dk||(J=AR(J));var w=WE(J.r),E=WE(J.g),sZ=WE(J.b);P=Th(.2225045*w+.7168786*E+.0606169*sZ);if(w===E&&E===sZ)var vo=w=P;else vo=Th((.4360747*w+.3850649*E+.1430804*sZ)/.96422),w=Th((.0139322*w+.0971045*E+.7141733*sZ)/.82521);return new aR(116*P-16,500*(vo-P),200*(P-w),J.opacity)}
function aR(J,P,w,E){this.l=+J;this.a=+P;this.b=+w;this.opacity=+E}
function Th(J){return J>C1E?Math.pow(J,1/3):J/$GA+nis}
function ky(J){return J>AN?J*J*J:$GA*(J-nis)}
function x0(J){return 255*(J<=.0031308?12.92*J:1.055*Math.pow(J,1/2.4)-.055)}
function WE(J){return(J/=255)<=.04045?J/12.92:Math.pow((J+.055)/1.055,2.4)}
function Pr(J){if(J instanceof S2)return new S2(J.h,J.c,J.l,J.opacity);J instanceof aR||(J=JV(J));if(J.a===0&&J.b===0)return new S2(NaN,0,J.l,J.opacity);var P=Math.atan2(J.b,J.a)*rFs;return new S2(P<0?P+360:P,Math.sqrt(J.a*J.a+J.b*J.b),J.l,J.opacity)}
function xp(J,P,w,E){return arguments.length===1?Pr(J):new S2(J,P,w,E==null?1:E)}
function S2(J,P,w,E){this.h=+J;this.c=+P;this.l=+w;this.opacity=+E}
function va(J,P,w,E){if(arguments.length===1){var sZ=J;if(sZ instanceof R2)sZ=new R2(sZ.h,sZ.s,sZ.l,sZ.opacity);else{sZ instanceof Dk||(sZ=AR(sZ));var vo=sZ.g/255,bL=sZ.b/255,Po=(viN*bL+sZ.r/255*-1.7884503806-3.5172982438*vo)/(viN+-1.7884503806-3.5172982438);bL-=Po;var lk=(1.97294*(vo-Po)- -.29227*bL)/-.90649;bL=(vo=Math.sqrt(lk*lk+bL*bL)/(1.97294*Po*(1-Po)))?Math.atan2(lk,bL)*rFs-120:NaN;sZ=new R2(bL<0?bL+360:bL,vo,Po,sZ.opacity)}}else sZ=new R2(J,P,w,E==null?1:E);return sZ}
function R2(J,P,w,E){this.h=+J;this.s=+P;this.l=+w;this.opacity=+E}
function Gg(J,P,w,E,sZ){var vo=J*J,bL=vo*J;return((1-3*J+3*vo-bL)*P+(4-6*vo+3*bL)*w+(1+3*J+3*vo-3*bL)*E+bL*sZ)/6}
function MS(J){return function(){return J}}
function O2(J,P){return function(w){return J+w*P}}
function dv(J,P,w){return J=Math.pow(J,w),P=Math.pow(P,w)-J,w=1/w,function(E){return Math.pow(J+E*P,w)}}
function pM(J,P){var w=P-J;return w?O2(J,w>180||w<-180?w-360*Math.round(w/360):w):MS(isNaN(J)?P:J)}
function zj(J){return(J=+J)===1?LU:function(P,w){return w-P?dv(P,w,J):MS(isNaN(P)?w:P)}}
function LU(J,P){var w=P-J;return w?O2(J,w):MS(isNaN(J)?P:J)}
function XY(J){return function(P){var w=P.length,E=Array(w),sZ=Array(w),vo=Array(w),bL;for(bL=0;bL<w;++bL){var Po=PE(P[bL]);E[bL]=Po.r||0;sZ[bL]=Po.g||0;vo[bL]=Po.b||0}E=J(E);sZ=J(sZ);vo=J(vo);Po.opacity=1;return function(lk){Po.r=E(lk);Po.g=sZ(lk);Po.b=vo(lk);return Po+""}}}
function ZH(J,P){return J=+J,P-=J,function(w){return J+P*w}}
function I2(J){return function(){return J}}
function Np(J){return function(P){return J(P)+""}}
function db(J,P){var w=FLr.lastIndex=V_y.lastIndex=0,E,sZ,vo,bL=-1,Po=[],lk=[];J+="";for(P+="";(E=FLr.exec(J))&&(sZ=V_y.exec(P));)(vo=sZ.index)>w&&(vo=P.slice(w,vo),Po[bL]?Po[bL]+=vo:Po[++bL]=vo),(E=E[0])===(sZ=sZ[0])?Po[bL]?Po[bL]+=sZ:Po[++bL]=sZ:(Po[++bL]=null,lk.push({i:bL,x:ZH(E,sZ)})),w=V_y.lastIndex;w<P.length&&(vo=P.slice(w),Po[bL]?Po[bL]+=vo:Po[++bL]=vo);return Po.length<2?lk[0]?Np(lk[0].x):I2(P):(P=lk.length,function(EZ){for(var Cs=0,$0;Cs<P;++Cs)Po[($0=lk[Cs]).i]=$0.x(EZ);return Po.join("")})}
function M0(J,P,w,E,sZ,vo){var bL,Po,lk;if(bL=Math.sqrt(J*J+P*P))J/=bL,P/=bL;if(lk=J*w+P*E)w-=J*lk,E-=P*lk;if(Po=Math.sqrt(w*w+E*E))w/=Po,E/=Po,lk/=Po;J*E<P*w&&(J=-J,P=-P,lk=-lk,bL=-bL);return{translateX:sZ,translateY:vo,rotate:Math.atan2(P,J)*GE0,skewX:Math.atan(lk)*GE0,scaleX:bL,scaleY:Po}}
function AO(J,P,w,E){function sZ(EZ){return EZ.length?EZ.pop()+" ":""}
function vo(EZ,Cs,$0,hR,Oo,SF){EZ!==$0||Cs!==hR?(Oo=Oo.push("translate(",null,P,null,w),SF.push({i:Oo-4,x:ZH(EZ,$0)},{i:Oo-2,x:ZH(Cs,hR)})):($0||hR)&&Oo.push("translate("+$0+P+hR+w)}
function bL(EZ,Cs,$0,hR){EZ!==Cs?(EZ-Cs>180?Cs+=360:Cs-EZ>180&&(EZ+=360),hR.push({i:$0.push(sZ($0)+"rotate(",null,E)-2,x:ZH(EZ,Cs)})):Cs&&$0.push(sZ($0)+"rotate("+Cs+E)}
function Po(EZ,Cs,$0,hR){EZ!==Cs?hR.push({i:$0.push(sZ($0)+"skewX(",null,E)-2,x:ZH(EZ,Cs)}):Cs&&$0.push(sZ($0)+"skewX("+Cs+E)}
function lk(EZ,Cs,$0,hR,Oo,SF){EZ!==$0||Cs!==hR?(Oo=Oo.push(sZ(Oo)+"scale(",null,",",null,")"),SF.push({i:Oo-4,x:ZH(EZ,$0)},{i:Oo-2,x:ZH(Cs,hR)})):$0===1&&hR===1||Oo.push(sZ(Oo)+"scale("+$0+","+hR+")")}
return function(EZ,Cs){var $0=[],hR=[];EZ=J(EZ);Cs=J(Cs);vo(EZ.translateX,EZ.translateY,Cs.translateX,Cs.translateY,$0,hR);bL(EZ.rotate,Cs.rotate,$0,hR);Po(EZ.skewX,Cs.skewX,$0,hR);lk(EZ.scaleX,EZ.scaleY,Cs.scaleX,Cs.scaleY,$0,hR);EZ=Cs=null;return function(Oo){for(var SF=-1,Vg=hR.length,cZ;++SF<Vg;)$0[(cZ=hR[SF]).i]=cZ.x(Oo);return $0.join("")}}}
function tX(J){return function(P,w){var E=J((P=J9(P)).h,(w=J9(w)).h),sZ=LU(P.s,w.s),vo=LU(P.l,w.l),bL=LU(P.opacity,w.opacity);return function(Po){P.h=E(Po);P.s=sZ(Po);P.l=vo(Po);P.opacity=bL(Po);return P+""}}}
function Mn(J){return function(P,w){var E=J((P=xp(P)).h,(w=xp(w)).h),sZ=LU(P.c,w.c),vo=LU(P.l,w.l),bL=LU(P.opacity,w.opacity);return function(Po){P.h=E(Po);P.c=sZ(Po);P.l=vo(Po);P.opacity=bL(Po);return P+""}}}
function m1(J){return function E(w){function sZ(vo,bL){var Po=J((vo=va(vo)).h,(bL=va(bL)).h),lk=LU(vo.s,bL.s),EZ=LU(vo.l,bL.l),Cs=LU(vo.opacity,bL.opacity);return function($0){vo.h=Po($0);vo.s=lk($0);vo.l=EZ(Math.pow($0,w));vo.opacity=Cs($0);return vo+""}}
w=+w;sZ.gamma=E;return sZ}(1)}
function us(){return bq||(tvR(JXb),bq=XD.now()+d7L)}
function JXb(){bq=0}
function KK(){this._call=this._time=this._next=null}
function mP(J,P,w){var E=new KK;E.restart(J,P,w);return E}
function hx(){bq=(CZq=XD.now())+d7L;Xy=ml=0;try{us();++Xy;for(var J=I_Z,P;J;)(P=bq-J._time)>=0&&J._call.call(null,P),J=J._next;--Xy}finally{Xy=0;J=I_Z;for(var w=Infinity;J;)if(J._call){w>J._time&&(w=J._time);var E=J;J=J._next}else P=J._next,J._next=null,J=E?E._next=P:I_Z=P;hh=E;Eq(w);bq=0}}
function G3R(){var J=XD.now(),P=J-CZq;P>1E3&&(d7L-=P,CZq=J)}
function Eq(J){Xy||(ml&&(ml=clearTimeout(ml)),J-bq>24?(J<Infinity&&(ml=setTimeout(hx,J-XD.now()-d7L)),E0&&(E0=clearInterval(E0))):(E0||(CZq=XD.now(),E0=setInterval(G3R,1E3)),Xy=1,tvR(hx)))}
function xGm(J,P,w){var E=new KK;P=P==null?0:+P;E.restart(function(sZ){E.stop();J(sZ+P)},P,w);
return E}
function gx9(J,P,w,E,sZ,vo){var bL=J.__transition;if(!bL)J.__transition={};else if(w in bL)return;IFo(J,w,{name:P,index:E,group:sZ,on:y$V,tween:so6,time:vo.time,delay:vo.delay,duration:vo.duration,ease:vo.ease,timer:null,state:0})}
function Nwn(J,P){J=t5(J,P);if(J.state>0)throw Error("ue");return J}
function Oh(J,P){J=t5(J,P);if(J.state>2)throw Error("ve");return J}
function t5(J,P){J=J.__transition;if(!J||!(J=J[P]))throw Error("we");return J}
function IFo(J,P,w){function E(lk){var EZ,Cs;if(w.state!==1)return vo();for(hR in bL){var $0=bL[hR];if($0.name===w.name){if($0.state===3)return xGm(E);$0.state===4?($0.state=6,$0.timer.stop(),$0.on.call("interrupt",J,J.__data__,$0.index,$0.group),delete bL[hR]):+hR<P&&($0.state=6,$0.timer.stop(),delete bL[hR])}}xGm(function(){w.state===3&&(w.state=4,w.timer.restart(sZ,w.delay,w.time),sZ(lk))});
w.state=2;w.on.call("start",J,J.__data__,w.index,w.group);if(w.state===2){w.state=3;Po=Array(Cs=w.tween.length);var hR=0;for(EZ=-1;hR<Cs;++hR)if($0=w.tween[hR].value.call(J,J.__data__,w.index,w.group))Po[++EZ]=$0;Po.length=EZ+1}}
function sZ(lk){lk=lk<w.duration?w.ease.call(null,lk/w.duration):(w.timer.restart(vo),w.state=5,1);for(var EZ=-1,Cs=Po.length;++EZ<Cs;)Po[EZ].call(null,lk);w.state===5&&(w.on.call("end",J,J.__data__,w.index,w.group),vo())}
function vo(){w.state=6;w.timer.stop();delete bL[P];for(var lk in bL)return;delete J.__transition}
var bL=J.__transition,Po;bL[P]=w;w.timer=mP(function(lk){w.state=1;w.timer.restart(E,w.delay,w.time);w.delay<=lk&&E(lk-w.delay)},0,w.time)}
function o1V(J,P){var w,E;return function(){var sZ=Oh(this,J),vo=sZ.tween;if(vo!==w){E=w=vo;vo=0;for(var bL=E.length;vo<bL;++vo)if(E[vo].name===P){E=E.slice();E.splice(vo,1);break}}sZ.tween=E}}
function WeB(J,P,w){var E,sZ;if(typeof w!=="function")throw Error();return function(){var vo=Oh(this,J),bL=vo.tween;if(bL!==E){sZ=(E=bL).slice();bL={name:P,value:w};for(var Po=0,lk=sZ.length;Po<lk;++Po)if(sZ[Po].name===P){sZ[Po]=bL;break}Po===lk&&sZ.push(bL)}vo.tween=sZ}}
function ktr(J,P,w){var E=J._id;J.each(function(){var sZ=Oh(this,E);(sZ.value||(sZ.value={}))[P]=w.apply(this,arguments)});
return function(sZ){return t5(sZ,E).value[P]}}
function S7m(J,P){var w;return(typeof P==="number"?ZH:P instanceof HE?bta:(w=HE(P))?(P=w,bta):db)(J,P)}
function HW_(J){return function(){this.removeAttribute(J)}}
function MYi(J){return function(){this.removeAttributeNS(J.space,J.local)}}
function qCH(J,P,w){var E,sZ;return function(){var vo=this.getAttribute(J);return vo===w?null:vo===E?sZ:sZ=P(E=vo,w)}}
function $L2(J,P,w){var E,sZ;return function(){var vo=this.getAttributeNS(J.space,J.local);return vo===w?null:vo===E?sZ:sZ=P(E=vo,w)}}
function n1E(J,P,w){var E,sZ,vo;return function(){var bL=w(this);if(bL==null)return void this.removeAttribute(J);var Po=this.getAttribute(J);return Po===bL?null:Po===E&&bL===sZ?vo:vo=P(E=Po,sZ=bL)}}
function r$G(J,P,w){var E,sZ,vo;return function(){var bL=w(this);if(bL==null)return void this.removeAttributeNS(J.space,J.local);var Po=this.getAttributeNS(J.space,J.local);return Po===bL?null:Po===E&&bL===sZ?vo:vo=P(E=Po,sZ=bL)}}
function v1_(J,P){function w(){var E=this,sZ=P.apply(E,arguments);return sZ&&function(vo){E.setAttributeNS(J.space,J.local,sZ(vo))}}
w._value=P;return w}
function GVp(J,P){function w(){var E=this,sZ=P.apply(E,arguments);return sZ&&function(vo){E.setAttribute(J,sZ(vo))}}
w._value=P;return w}
function tYE(J,P){return function(){Nwn(this,J).delay=+P.apply(this,arguments)}}
function xL_(J,P){return P=+P,function(){Nwn(this,J).delay=P}}
function SCk(J,P){return function(){Oh(this,J).duration=+P.apply(this,arguments)}}
function bWE(J,P){return P=+P,function(){Oh(this,J).duration=P}}
function OW_(J,P){if(typeof P!=="function")throw Error();return function(){Oh(this,J).ease=P}}
function c$_(J){return(J+"").trim().split(/^|\s+/).every(function(P){var w=P.indexOf(".");w>=0&&(P=P.slice(0,w));return!P||P==="start"})}
function aF6(J,P,w){var E,sZ,vo=c$_(P)?Nwn:Oh;return function(){var bL=vo(this,J),Po=bL.on;if(Po!==E)(sZ=(E=Po).copy()).on(P,w);bL.on=sZ}}
function zsB(J){return function(){var P=this.parentNode,w;for(w in this.__transition)if(+w!==J)return;P&&P.removeChild(this)}}
function esV(J,P){var w,E,sZ;return function(){var vo=UZ(this,J),bL=(this.style.removeProperty(J),UZ(this,J));return vo===bL?null:vo===w&&bL===E?sZ:sZ=P(w=vo,E=bL)}}
function RsG(J){return function(){this.style.removeProperty(J)}}
function ULp(J,P,w){var E,sZ;return function(){var vo=UZ(this,J);return vo===w?null:vo===E?sZ:sZ=P(E=vo,w)}}
function fFp(J,P,w){var E,sZ,vo;return function(){var bL=UZ(this,J),Po=w(this);Po==null&&(Po=(this.style.removeProperty(J),UZ(this,J)));return bL===Po?null:bL===E&&Po===sZ?vo:vo=P(E=bL,sZ=Po)}}
function Qoi(J,P,w){function E(){var sZ=this,vo=P.apply(sZ,arguments);return vo&&function(bL){sZ.style.setProperty(J,vo(bL),w)}}
E._value=P;return E}
function P1G(J){return function(){this.textContent=J}}
function J$k(J){return function(){var P=J(this);this.textContent=P==null?"":P}}
function U$(J,P,w,E){this._groups=J;this._parents=P;this._name=w;this._id=E}
function Z7r(J){return{type:J}}
function Yjo(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function y99(){}
function OtS(J,P){var w=new y99;if(J instanceof y99)J.each(function(bL,Po){w.set(Po,bL)});
else if(Array.isArray(J)){var E=-1,sZ=J.length,vo;if(P==null)for(;++E<sZ;)w.set(E,J[E]);else for(;++E<sZ;)w.set(P(vo=J[E],E,J),vo)}else if(J)for(E in J)w.set(E,J[E]);return w}
function sKH(){}
function cFa(J){return function(P){for(var w={},E=0;E<J.length;E++)w[J[E]]=P[E]||"";return w}}
function joE(J,P){var w=cFa(J);return function(E,sZ){return P(w(E),sZ,J)}}
function BVk(J){var P=Object.create(null),w=[];J.forEach(function(E){for(var sZ in E)sZ in P||w.push(P[sZ]=sZ)});
return w}
function aGA(J){function P(bL,Po){function lk(){if(SF)return ATo;if(Vg)return Vg=!1,z1s;var w2,Td=$0,sV;if(bL.charCodeAt(Td)===34){for(;$0++<Cs&&bL.charCodeAt($0)!==34||bL.charCodeAt(++$0)===34;);(w2=$0)>=Cs?SF=!0:(sV=bL.charCodeAt($0++))===10?Vg=!0:sV===13&&(Vg=!0,bL.charCodeAt($0)===10&&++$0);return bL.slice(Td+1,w2-1).replace(/""/g,'"')}for(;$0<Cs;){if((sV=bL.charCodeAt(w2=$0++))===10)Vg=!0;else if(sV===13)Vg=!0,bL.charCodeAt($0)===10&&++$0;else if(sV!==vo)continue;return bL.slice(Td,w2)}return SF=
!0,bL.slice(Td,Cs)}
var EZ=[],Cs=bL.length,$0=0,hR=0,Oo,SF=Cs<=0,Vg=!1;bL.charCodeAt(Cs-1)===10&&--Cs;for(bL.charCodeAt(Cs-1)===13&&--Cs;(Oo=lk())!==ATo;){for(var cZ=[];Oo!==z1s&&Oo!==ATo;)cZ.push(Oo),Oo=lk();Po&&(cZ=Po(cZ,hR++))==null||EZ.push(cZ)}return EZ}
function w(bL){return bL.map(E).join(J)}
function E(bL){return bL==null?"":sZ.test(bL)?'"'+bL.replace(/"/g,'""')+'"':bL}
var sZ=new RegExp('["'+J+"\n\r]"),vo=J.charCodeAt(0);return{parse:function(bL,Po){var lk,EZ;bL=P(bL,function(Cs,$0){if(lk)return lk(Cs,$0-1);EZ=Cs;lk=Po?joE(Cs,Po):cFa(Cs)});
bL.columns=EZ||[];return bL},
parseRows:P,format:function(bL,Po){Po==null&&(Po=BVk(bL));return[Po.map(E).join(J)].concat(bL.map(function(lk){return Po.map(function(EZ){return E(lk[EZ])}).join(J)})).join("\n")},
formatRows:function(bL){return bL.map(w).join("\n")}}}
function pS_(J){if(!J.ok)throw Error("xe`"+J.status+"`"+J.statusText);return J.text()}
function e1C(J){return function(P,w,E){arguments.length===2&&typeof w==="function"&&(E=w,w=void 0);return fetch(P,w).then(pS_).then(function(sZ){return J(sZ,E)})}}
function R1a(J,P,w,E){if(isNaN(P)||isNaN(w))return J;var sZ,vo=J._root;E={data:E};var bL=J._x0,Po=J._y0,lk=J._x1,EZ=J._y1,Cs,$0,hR,Oo,SF;if(!vo)return J._root=E,J;for(;vo.length;)if((hR=P>=(Cs=(bL+lk)/2))?bL=Cs:lk=Cs,(Oo=w>=($0=(Po+EZ)/2))?Po=$0:EZ=$0,sZ=vo,!(vo=vo[SF=Oo<<1|hR]))return sZ[SF]=E,J;var Vg=+J._x.call(null,vo.data);var cZ=+J._y.call(null,vo.data);if(P===Vg&&w===cZ)return E.next=vo,sZ?sZ[SF]=E:J._root=E,J;do sZ=sZ?sZ[SF]=Array(4):J._root=Array(4),(hR=P>=(Cs=(bL+lk)/2))?bL=Cs:lk=Cs,(Oo=
w>=($0=(Po+EZ)/2))?Po=$0:EZ=$0;while((SF=Oo<<1|hR)===(hR=(cZ>=$0)<<1|Vg>=Cs));return sZ[hR]=vo,sZ[SF]=E,J}
function Rb(J,P,w,E,sZ){this.node=J;this.x0=P;this.y0=w;this.x1=E;this.y1=sZ}
function iW_(J){return J[0]}
function TVI(J){return J[1]}
function Xen(J,P,w,E,sZ,vo){this._x=J;this._y=P;this._x0=w;this._y0=E;this._x1=sZ;this._y1=vo;this._root=void 0}
function UGC(J){for(var P={data:J.data},w=P;J=J.next;)w=w.next={data:J.data};return P}
function onq(J,P){if((P=(J=P?J.toExponential(P-1):J.toExponential()).indexOf("e"))<0)return null;var w=J.slice(0,P);return[w.length>1?w[0]+w.slice(2):w,+J.slice(P+1)]}
function wSk(J){return J=onq(Math.abs(J)),J?J[1]:NaN}
function FeG(J,P){return function(w,E){for(var sZ=w.length,vo=[],bL=0,Po=J[0],lk=0;sZ>0&&Po>0;){lk+Po+1>E&&(Po=Math.max(1,E-lk));vo.push(w.substring(sZ-=Po,sZ+Po));if((lk+=Po+1)>E)break;Po=J[bL=(bL+1)%J.length]}return vo.reverse().join(P)}}
function VYG(J){return function(P){return P.replace(/[0-9]/g,function(w){return J[+w]})}}
function mso(J){return new h2b(J)}
function h2b(J){if(!(P=g1B.exec(J)))throw Error("ye`"+J);var P;this.fill=P[1]||" ";this.align=P[2]||">";this.sign=P[3]||"-";this.symbol=P[4]||"";this.zero=!!P[5];this.width=P[6]&&+P[6];this.comma=!!P[7];this.precision=P[8]&&+P[8].slice(1);this.trim=!!P[9];this.type=P[10]||""}
function fGa(J,P){P=onq(J,P);if(!P)return J+"";J=P[0];P=P[1];return P<0?"0."+Array(-P).join("0")+J:J.length>P+1?J.slice(0,P+1)+"."+J.slice(P+1):J+Array(P-J.length+2).join("0")}
function QDa(J){return J}
function NVB(J){function P(Po){function lk(Xz){var Kp=sV,p_=jU,rb,yS;if(Td==="c")p_=wp(Xz)+p_,Xz="";else{Xz=+Xz;var z6=Xz<0;Xz=wp(Math.abs(Xz),cZ);if(w2){var T1=Xz.length,a9=1,Fm=-1;a:for(;a9<T1;++a9)switch(Xz[a9]){case ".":Fm=rb=a9;break;case "0":Fm===0&&(Fm=a9);rb=a9;break;default:if(!+Xz[a9])break a;Fm>0&&(Fm=0)}Xz=Fm>0?Xz.slice(0,Fm)+Xz.slice(rb+1):Xz}z6&&+Xz===0&&(z6=!1);Kp=(z6?$0==="("?$0:"-":$0==="-"||$0==="("?"":$0)+Kp;p_=(Td==="s"?PFH[8+JFa/3]:"")+p_+(z6&&$0==="("?")":"");if(GZ)for(z6=-1,
rb=Xz.length;++z6<rb;)if(yS=Xz.charCodeAt(z6),48>yS||yS>57){p_=(yS===46?sZ+Xz.slice(z6+1):Xz.slice(z6))+p_;Xz=Xz.slice(0,z6);break}}Vg&&!Oo&&(Xz=w(Xz,Infinity));yS=Kp.length+Xz.length+p_.length;z6=yS<SF?Array(SF-yS+1).join(EZ):"";Vg&&Oo&&(Xz=w(z6+Xz,z6.length?SF-p_.length:Infinity),z6="");switch(Cs){case "<":Xz=Kp+Xz+p_+z6;break;case "=":Xz=Kp+z6+Xz+p_;break;case "^":Xz=z6.slice(0,yS=z6.length>>1)+Kp+Xz+p_+z6.slice(yS);break;default:Xz=z6+Kp+Xz+p_}return vo(Xz)}
Po=mso(Po);var EZ=Po.fill,Cs=Po.align,$0=Po.sign,hR=Po.symbol,Oo=Po.zero,SF=Po.width,Vg=Po.comma,cZ=Po.precision,w2=Po.trim,Td=Po.type;Td==="n"?(Vg=!0,Td="g"):jD0[Td]||(cZ==null&&(cZ=12),w2=!0,Td="g");if(Oo||EZ==="0"&&Cs==="=")Oo=!0,EZ="0",Cs="=";var sV=hR==="$"?E[0]:hR==="#"&&/[boxX]/.test(Td)?"0"+Td.toLowerCase():"",jU=hR==="$"?E[1]:/[%p]/.test(Td)?bL:"",wp=jD0[Td],GZ=/[defgprs%]/.test(Td);cZ=cZ==null?6:/[gprs]/.test(Td)?Math.max(1,Math.min(21,cZ)):Math.max(0,Math.min(20,cZ));lk.toString=function(){return Po+
""};
return lk}
var w=J.grouping&&J.thousands?FeG(J.grouping,J.thousands):QDa,E=J.currency,sZ=J.decimal,vo=J.numerals?VYG(J.numerals):QDa,bL=J.percent||"%";return{format:P,formatPrefix:function(Po,lk){var EZ=P((Po=mso(Po),Po.type="f",Po));Po=Math.max(-8,Math.min(8,Math.floor(wSk(lk)/3)))*3;var Cs=Math.pow(10,-Po),$0=PFH[8+Po/3];return function(hR){return EZ(Cs*hR)+$0}}}}
function na(){this.reset()}
function BzR(J,P,w){var E=J.s=P+w,sZ=E-P;J.t=P-(E-sZ)+(w-sZ)}
function Wgy(J){return J>1?bw:J<-1?-bw:Math.asin(J)}
function kVI(){}
function p3w(J){var P=J[0];J=J[1];var w=OA(J);return[w*OA(P),w*$O(P),$O(J)]}
function itk(J,P){return[J[1]*P[2]-J[2]*P[1],J[2]*P[0]-J[0]*P[2],J[0]*P[1]-J[1]*P[0]]}
function TzN(J){var P=HTo(J[0]*J[0]+J[1]*J[1]+J[2]*J[2]);J[0]/=P;J[1]/=P;J[2]/=P}
function ZW_(){var J=[],P;return{point:function(w,E){P.push([w,E])},
lineStart:function(){J.push(P=[])},
lineEnd:kVI,rejoin:function(){J.length>1&&J.push(J.pop().concat(J.shift()))},
result:function(){var w=J;J=[];P=null;return w}}}
function Mgq(J,P,w,E){this.x=J;this.z=P;this.o=w;this.e=E;this.v=!1;this.n=this.p=null}
function YCo(J,P,w,E,sZ){var vo=[],bL=[];J.forEach(function($0){if(!((hR=$0.length-1)<=0)){var hR,Oo=$0[0],SF=$0[hR],Vg=Oo;if(fo(Vg[0]-SF[0])<1E-6&&fo(Vg[1]-SF[1])<1E-6){sZ.lineStart();for(Po=0;Po<hR;++Po)sZ.point((Oo=$0[Po])[0],Oo[1]);sZ.lineEnd()}else vo.push(hR=new Mgq(Oo,$0,null,!0)),bL.push(hR.o=new Mgq(Oo,null,hR,!1)),vo.push(hR=new Mgq(SF,$0,null,!1)),bL.push(hR.o=new Mgq(SF,null,hR,!0))}});
if(vo.length){bL.sort(P);w3S(vo);w3S(bL);var Po=0;for(J=bL.length;Po<J;++Po)bL[Po].e=w=!w;w=vo[0];for(var lk;;){for(var EZ=w,Cs=!0;EZ.v;)if((EZ=EZ.n)===w)return;P=EZ.z;sZ.lineStart();do{EZ.v=EZ.o.v=!0;if(EZ.e){if(Cs)for(Po=0,J=P.length;Po<J;++Po)sZ.point((lk=P[Po])[0],lk[1]);else E(EZ.x,EZ.n.x,1,sZ);EZ=EZ.n}else{if(Cs)for(P=EZ.p.z,Po=P.length-1;Po>=0;--Po)sZ.point((lk=P[Po])[0],lk[1]);else E(EZ.x,EZ.p.x,-1,sZ);EZ=EZ.p}EZ=EZ.o;P=EZ.z;Cs=!Cs}while(!EZ.v);sZ.lineEnd()}}}
function w3S(J){if(P=J.length){for(var P,w=0,E=J[0],sZ;++w<P;)E.n=sZ=J[w],sZ.p=E,E=sZ;E.n=sZ=J[0];sZ.p=E}}
function A$p(J){return J.length>1}
function XSI(J,P){return((J=J.x)[0]<0?J[1]-bw-1E-6:bw-J[1])-((P=P.x)[0]<0?P[1]-bw-1E-6:bw-P[1])}
function ExH(){}
function FKC(J){return function(P,w){var E=OA(P),sZ=OA(w);E=J(E*sZ);return[E*sZ*$O(P),E*$O(w)]}}
function LC(J){return function(P,w){var E=HTo(P*P+w*w),sZ=J(E),vo=$O(sZ);sZ=OA(sZ);return[Vvs(P*vo,E*sZ),Wgy(E&&w*vo/E)]}}
function mLp(J){var P=0,w=J.children,E=w&&w.length;if(E)for(;--E>=0;)P+=w[E].value;else P=1;J.value=P}
function gis(J,P){var w=new uW(J);J=+J.value&&(w.value=J.value);var E,sZ=[w],vo,bL,Po,lk;for(P==null&&(P=hso);E=sZ.pop();)if(J&&(E.value=+E.data.value),(bL=P(E.data))&&(lk=bL.length))for(E.children=Array(lk),Po=lk-1;Po>=0;--Po)sZ.push(vo=E.children[Po]=new uW(bL[Po])),vo.parent=E,vo.depth=E.depth+1;return w.eachBefore(E1V)}
function hso(J){return J.children}
function Lek(J){J.data=J.data.data}
function E1V(J){var P=0;do J.height=P;while((J=J.parent)&&J.height<++P)}
function uW(J){this.data=J;this.depth=this.height=0;this.parent=null}
function Dy(J,P,w,E){function sZ(vo){return J(vo=new Date(+vo)),vo}
sZ.floor=sZ;sZ.ceil=function(vo){return J(vo=new Date(vo-1)),P(vo,1),J(vo),vo};
sZ.round=function(vo){var bL=sZ(vo),Po=sZ.ceil(vo);return vo-bL<Po-vo?bL:Po};
sZ.offset=function(vo,bL){return P(vo=new Date(+vo),bL==null?1:Math.floor(bL)),vo};
sZ.range=function(vo,bL,Po){var lk=[],EZ;vo=sZ.ceil(vo);Po=Po==null?1:Math.floor(Po);if(!(vo<bL&&Po>0))return lk;do lk.push(EZ=new Date(+vo)),P(vo,Po),J(vo);while(EZ<vo&&vo<bL);return lk};
sZ.filter=function(vo){return Dy(function(bL){if(bL>=bL)for(;J(bL),!vo(bL);)bL.setTime(bL-1)},function(bL,Po){if(bL>=bL)if(Po<0)for(;++Po<=0;)for(;P(bL,-1),!vo(bL););
else for(;--Po>=0;)for(;P(bL,1),!vo(bL););})};
w&&(sZ.count=function(vo,bL){LLy.setTime(+vo);uOy.setTime(+bL);J(LLy);J(uOy);return Math.floor(w(LLy,uOy))},sZ.every=function(vo){vo=Math.floor(vo);
return isFinite(vo)&&vo>0?vo>1?sZ.filter(E?function(bL){return E(bL)%vo===0}:function(bL){return sZ.count(0,bL)%vo===0}):sZ:null});
return sZ}
function cj(J){return Dy(function(P){P.setDate(P.getDate()-(P.getDay()+7-J)%7);P.setHours(0,0,0,0)},function(P,w){P.setDate(P.getDate()+w*7)},function(P,w){return(w-P-(w.getTimezoneOffset()-P.getTimezoneOffset())*6E4)/6048E5})}
function ar(J){return Dy(function(P){P.setUTCDate(P.getUTCDate()-(P.getUTCDay()+7-J)%7);P.setUTCHours(0,0,0,0)},function(P,w){P.setUTCDate(P.getUTCDate()+w*7)},function(P,w){return(w-P)/6048E5})}
function uME(J){if(0<=J.y&&J.y<100){var P=new Date(-1,J.m,J.d,J.H,J.M,J.S,J.L);P.setFullYear(J.y);return P}return new Date(J.y,J.m,J.d,J.H,J.M,J.S,J.L)}
function qPw(J){if(0<=J.y&&J.y<100){var P=new Date(Date.UTC(-1,J.m,J.d,J.H,J.M,J.S,J.L));P.setUTCFullYear(J.y);return P}return new Date(Date.UTC(J.y,J.m,J.d,J.H,J.M,J.S,J.L))}
function KR(J){return{y:J,m:0,d:1,H:0,M:0,S:0,L:0}}
function KvG(J){function P(p_,rb){return function(yS){var z6=[],T1=-1,a9=0,Fm=p_.length,IK,Lk;for(yS instanceof Date||(yS=new Date(+yS));++T1<Fm;)if(p_.charCodeAt(T1)===37){z6.push(p_.slice(a9,T1));(a9=NzN[IK=p_.charAt(++T1)])!=null?IK=p_.charAt(++T1):a9=IK==="e"?" ":"0";if(Lk=rb[IK])IK=Lk(yS,a9);z6.push(IK);a9=T1+1}z6.push(p_.slice(a9,T1));return z6.join("")}}
function w(p_,rb){return function(yS){var z6=KR(1900);if(E(z6,p_,yS,0)!=yS.length)return null;if("Q"in z6)return new Date(z6.Q);"p"in z6&&(z6.H=z6.H%12+z6.p*12);if("V"in z6){if(z6.V<1||z6.V>53)return null;"w"in z6||(z6.w=1);if("Z"in z6){yS=qPw(KR(z6.y));var T1=yS.getUTCDay();yS=T1>4||T1===0?KHb.ceil(yS):KHb(yS);yS=kER.offset(yS,(z6.V-1)*7);z6.y=yS.getUTCFullYear();z6.m=yS.getUTCMonth();z6.d=yS.getUTCDate()+(z6.w+6)%7}else yS=rb(KR(z6.y)),T1=yS.getDay(),yS=T1>4||T1===0?llq.ceil(yS):llq(yS),yS=Zta.offset(yS,
(z6.V-1)*7),z6.y=yS.getFullYear(),z6.m=yS.getMonth(),z6.d=yS.getDate()+(z6.w+6)%7}else if("W"in z6||"U"in z6)"w"in z6||(z6.w="u"in z6?z6.u%7:"W"in z6?1:0),T1="Z"in z6?qPw(KR(z6.y)).getUTCDay():rb(KR(z6.y)).getDay(),z6.m=0,z6.d="W"in z6?(z6.w+6)%7+z6.W*7-(T1+5)%7:z6.w+z6.U*7-(T1+6)%7;return"Z"in z6?(z6.H+=z6.Z/100|0,z6.M+=z6.Z%100,qPw(z6)):rb(z6)}}
function E(p_,rb,yS,z6){for(var T1=0,a9=rb.length,Fm=yS.length,IK;T1<a9;){if(z6>=Fm)return-1;IK=rb.charCodeAt(T1++);if(IK===37){if(IK=rb.charAt(T1++),IK=Kp[IK in NzN?rb.charAt(T1++):IK],!IK||(z6=IK(p_,yS,z6))<0)return-1}else if(IK!=yS.charCodeAt(z6++))return-1}return z6}
var sZ=J.dateTime,vo=J.date,bL=J.time,Po=J.periods,lk=J.days,EZ=J.shortDays,Cs=J.months,$0=J.shortMonths,hR=lW(Po),Oo=Dd(Po),SF=lW(lk),Vg=Dd(lk),cZ=lW(EZ),w2=Dd(EZ),Td=lW(Cs),sV=Dd(Cs),jU=lW($0),wp=Dd($0),GZ={a:function(p_){return EZ[p_.getDay()]},
A:function(p_){return lk[p_.getDay()]},
b:function(p_){return $0[p_.getMonth()]},
B:function(p_){return Cs[p_.getMonth()]},
c:null,d:Y7S,e:Y7S,f:ljI,H:DDE,I:dD6,j:C6k,L:AFa,m:IjE,M:yeE,p:function(p_){return Po[+(p_.getHours()>=12)]},
Q:X3a,s:mGa,S:sxH,u:oXI,U:WvH,V:Hk2,w:Ms2,W:qFp,x:null,X:null,y:$DB,Y:nX2,Z:re_,"%":h1k},Xz={a:function(p_){return EZ[p_.getUTCDay()]},
A:function(p_){return lk[p_.getUTCDay()]},
b:function(p_){return $0[p_.getUTCMonth()]},
B:function(p_){return Cs[p_.getUTCMonth()]},
c:null,d:Eia,e:Eia,f:vXV,H:G7k,I:tsi,j:xDE,L:LK2,m:SFB,M:bkE,p:function(p_){return Po[+(p_.getUTCHours()>=12)]},
Q:X3a,s:mGa,S:Okk,u:ce6,U:aji,V:zmH,w:em_,W:RmV,x:null,X:null,y:UDp,Y:fjI,Z:Qxi,"%":h1k},Kp={a:function(p_,rb,yS){return(rb=cZ.exec(rb.slice(yS)))?(p_.w=w2[rb[0].toLowerCase()],yS+rb[0].length):-1},
A:function(p_,rb,yS){return(rb=SF.exec(rb.slice(yS)))?(p_.w=Vg[rb[0].toLowerCase()],yS+rb[0].length):-1},
b:function(p_,rb,yS){return(rb=jU.exec(rb.slice(yS)))?(p_.m=wp[rb[0].toLowerCase()],yS+rb[0].length):-1},
B:function(p_,rb,yS){return(rb=Td.exec(rb.slice(yS)))?(p_.m=sV[rb[0].toLowerCase()],yS+rb[0].length):-1},
c:function(p_,rb,yS){return E(p_,sZ,rb,yS)},
d:u5s,e:u5s,f:P6_,H:KLa,I:KLa,j:JeB,L:jx_,m:BCB,M:pzI,p:function(p_,rb,yS){return(rb=hR.exec(rb.slice(yS)))?(p_.p=Oo[rb[0].toLowerCase()],yS+rb[0].length):-1},
Q:ikE,s:TCH,S:wzH,u:FvG,U:Vs2,V:gXk,w:NC_,W:k7H,x:function(p_,rb,yS){return E(p_,vo,rb,yS)},
X:function(p_,rb,yS){return E(p_,bL,rb,yS)},
y:Zk6,Y:YFk,Z:Ae_,"%":XzI};GZ.x=P(vo,GZ);GZ.X=P(bL,GZ);GZ.c=P(sZ,GZ);Xz.x=P(vo,Xz);Xz.X=P(bL,Xz);Xz.c=P(sZ,Xz);return{format:function(p_){var rb=P(p_,GZ);rb.toString=function(){return p_};
return rb},
parse:function(p_){var rb=w(p_,uME);rb.toString=function(){return p_};
return rb},
utcFormat:function(p_){var rb=P(p_,Xz);rb.toString=function(){return p_};
return rb},
utcParse:function(p_){var rb=w(p_,qPw);rb.toString=function(){return p_};
return rb}}}
function $D(J,P,w){var E=J<0?"-":"";J=(E?-J:J)+"";var sZ=J.length;return E+(sZ<w?Array(w-sZ+1).join(P)+J:J)}
function mDI(J){return J.replace(hm_,"\\$&")}
function lW(J){return new RegExp("^(?:"+J.map(mDI).join("|")+")","i")}
function Dd(J){for(var P={},w=-1,E=J.length;++w<E;)P[J[w].toLowerCase()]=w;return P}
function NC_(J,P,w){return(P=of.exec(P.slice(w,w+1)))?(J.w=+P[0],w+P[0].length):-1}
function FvG(J,P,w){return(P=of.exec(P.slice(w,w+1)))?(J.u=+P[0],w+P[0].length):-1}
function Vs2(J,P,w){return(P=of.exec(P.slice(w,w+2)))?(J.U=+P[0],w+P[0].length):-1}
function gXk(J,P,w){return(P=of.exec(P.slice(w,w+2)))?(J.V=+P[0],w+P[0].length):-1}
function k7H(J,P,w){return(P=of.exec(P.slice(w,w+2)))?(J.W=+P[0],w+P[0].length):-1}
function YFk(J,P,w){return(P=of.exec(P.slice(w,w+4)))?(J.y=+P[0],w+P[0].length):-1}
function Zk6(J,P,w){return(P=of.exec(P.slice(w,w+2)))?(J.y=+P[0]+(+P[0]>68?1900:2E3),w+P[0].length):-1}
function Ae_(J,P,w){return(P=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(P.slice(w,w+6)))?(J.Z=P[1]?0:-(P[2]+(P[3]||"00")),w+P[0].length):-1}
function BCB(J,P,w){return(P=of.exec(P.slice(w,w+2)))?(J.m=P[0]-1,w+P[0].length):-1}
function u5s(J,P,w){return(P=of.exec(P.slice(w,w+2)))?(J.d=+P[0],w+P[0].length):-1}
function JeB(J,P,w){return(P=of.exec(P.slice(w,w+3)))?(J.m=0,J.d=+P[0],w+P[0].length):-1}
function KLa(J,P,w){return(P=of.exec(P.slice(w,w+2)))?(J.H=+P[0],w+P[0].length):-1}
function pzI(J,P,w){return(P=of.exec(P.slice(w,w+2)))?(J.M=+P[0],w+P[0].length):-1}
function wzH(J,P,w){return(P=of.exec(P.slice(w,w+2)))?(J.S=+P[0],w+P[0].length):-1}
function jx_(J,P,w){return(P=of.exec(P.slice(w,w+3)))?(J.L=+P[0],w+P[0].length):-1}
function P6_(J,P,w){return(P=of.exec(P.slice(w,w+6)))?(J.L=Math.floor(P[0]/1E3),w+P[0].length):-1}
function XzI(J,P,w){return(J=EXI.exec(P.slice(w,w+1)))?w+J[0].length:-1}
function ikE(J,P,w){return(P=of.exec(P.slice(w)))?(J.Q=+P[0],w+P[0].length):-1}
function TCH(J,P,w){return(P=of.exec(P.slice(w)))?(J.Q=+P[0]*1E3,w+P[0].length):-1}
function Y7S(J,P){return $D(J.getDate(),P,2)}
function DDE(J,P){return $D(J.getHours(),P,2)}
function dD6(J,P){return $D(J.getHours()%12||12,P,2)}
function C6k(J,P){return $D(1+Zta.count(mA(J),J),P,3)}
function AFa(J,P){return $D(J.getMilliseconds(),P,3)}
function ljI(J,P){return AFa(J,P)+"000"}
function IjE(J,P){return $D(J.getMonth()+1,P,2)}
function yeE(J,P){return $D(J.getMinutes(),P,2)}
function sxH(J,P){return $D(J.getSeconds(),P,2)}
function oXI(J){J=J.getDay();return J===0?7:J}
function WvH(J,P){return $D(Lvi.count(mA(J),J),P,2)}
function Hk2(J,P){var w=J.getDay();J=w>=4||w===0?D6L(J):D6L.ceil(J);return $D(D6L.count(mA(J),J)+(mA(J).getDay()===4),P,2)}
function Ms2(J){return J.getDay()}
function qFp(J,P){return $D(llq.count(mA(J),J),P,2)}
function $DB(J,P){return $D(J.getFullYear()%100,P,2)}
function nX2(J,P){return $D(J.getFullYear()%1E4,P,4)}
function re_(J){J=J.getTimezoneOffset();return(J>0?"-":(J*=-1,"+"))+$D(J/60|0,"0",2)+$D(J%60,"0",2)}
function Eia(J,P){return $D(J.getUTCDate(),P,2)}
function G7k(J,P){return $D(J.getUTCHours(),P,2)}
function tsi(J,P){return $D(J.getUTCHours()%12||12,P,2)}
function xDE(J,P){return $D(1+kER.count(hN(J),J),P,3)}
function LK2(J,P){return $D(J.getUTCMilliseconds(),P,3)}
function vXV(J,P){return LK2(J,P)+"000"}
function SFB(J,P){return $D(J.getUTCMonth()+1,P,2)}
function bkE(J,P){return $D(J.getUTCMinutes(),P,2)}
function Okk(J,P){return $D(J.getUTCSeconds(),P,2)}
function ce6(J){J=J.getUTCDay();return J===0?7:J}
function aji(J,P){return $D(uPH.count(hN(J),J),P,2)}
function zmH(J,P){var w=J.getUTCDay();J=w>=4||w===0?d6q(J):d6q.ceil(J);return $D(d6q.count(hN(J),J)+(hN(J).getUTCDay()===4),P,2)}
function em_(J){return J.getUTCDay()}
function RmV(J,P){return $D(KHb.count(hN(J),J),P,2)}
function UDp(J,P){return $D(J.getUTCFullYear()%100,P,2)}
function fjI(J,P){return $D(J.getUTCFullYear()%1E4,P,4)}
function Qxi(){return"+0000"}
function h1k(){return"%"}
function X3a(J){return+J}
function mGa(J){return Math.floor(+J/1E3)}
function q0(J){for(var P=J.length/6|0,w=Array(P),E=0;E<P;)w[E]="#"+J.slice(E*6,++E*6);return w}
function wi(J){return KDB(J[J.length-1])}
function $7w(J){var P=J.length;return function(w){return J[Math.max(0,Math.min(P-1,Math.floor(w*P)))]}}
function lTm(J){this._context=J}
function Dsm(J){this._curve=J}
function dsm(J,P,w){var E=J._x1-J._x0;P-=J._x1;var sZ=(J._y1-J._y0)/(E||P<0&&-0);J=(w-J._y1)/(P||E<0&&-0);return((sZ<0?-1:1)+(J<0?-1:1))*Math.min(Math.abs(sZ),Math.abs(J),.5*Math.abs((sZ*P+J*E)/(E+P)))||0}
function CXH(J,P){var w=J._x1-J._x0;return w?(3*(J._y1-J._y0)/w-P)/2:P}
function CfH(J,P,w){var E=J._x0,sZ=J._x1,vo=J._y1,bL=(sZ-E)/3;J._context.bezierCurveTo(E+bL,J._y0+bL*P,sZ-bL,vo-bL*w,sZ,vo)}
function Iln(J){this._context=J}
function ITs(J){this._context=J}
function CR(J,P,w){this.k=J;this.x=P;this.y=w}
(function(J){J.length===1&&(J=K(J));return{left:function(P,w,E,sZ){E==null&&(E=0);sZ==null&&(sZ=P.length);for(;E<sZ;){var vo=E+sZ>>>1;J(P[vo],w)<0?E=vo+1:sZ=vo}return E},
right:function(P,w,E,sZ){E==null&&(E=0);sZ==null&&(sZ=P.length);for(;E<sZ;){var vo=E+sZ>>>1;J(P[vo],w)>0?sZ=vo:E=vo+1}return E}}})(u);
var A7G={value:function(){}};
D.prototype=l.prototype={constructor:D,on:function(J,P){var w=this._,E=d(J+"",w),sZ,vo=-1,bL=E.length;if(arguments.length<2)for(;++vo<bL;){var Po;if(Po=sZ=(J=E[vo]).type){a:{Po=w[sZ];for(var lk=0,EZ=Po.length;lk<EZ;++lk)if((sZ=Po[lk]).name===J.name){sZ=sZ.value;break a}sZ=void 0}Po=sZ}if(Po)return sZ}else{if(P!=null&&typeof P!=="function")throw Error("ze`"+P);for(;++vo<bL;)if(sZ=(J=E[vo]).type)w[sZ]=C(w[sZ],J.name,P);else if(P==null)for(sZ in w)w[sZ]=C(w[sZ],J.name,null);return this}},
copy:function(){var J={},P=this._,w;for(w in P)J[w]=P[w].slice();return new D(J)},
call:function(J,P){if((sZ=arguments.length-2)>0)for(var w=Array(sZ),E=0,sZ,vo;E<sZ;++E)w[E]=arguments[E+2];if(!this._.hasOwnProperty(J))throw Error("te`"+J);vo=this._[J];E=0;for(sZ=vo.length;E<sZ;++E)vo[E].value.apply(P,w)},
apply:function(J,P,w){if(!this._.hasOwnProperty(J))throw Error("te`"+J);J=this._[J];for(var E=0,sZ=J.length;E<sZ;++E)J[E].value.apply(P,w)}};
var Sl={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/"},yT0=function(J){return function(){return this.matches(J)}};
if(typeof document!=="undefined"){var IY=document.documentElement;if(!IY.matches){var l3p=IY.webkitMatchesSelector||IY.msMatchesSelector||IY.mozMatchesSelector||IY.oMatchesSelector;yT0=function(J){return function(){return l3p.call(this,J)}}}}var s8N=yT0;
O.prototype={constructor:O,appendChild:function(J){return this._parent.insertBefore(J,this._next)},
insertBefore:function(J,P){return this._parent.insertBefore(J,P)},
querySelector:function(J){return this._parent.querySelector(J)},
querySelectorAll:function(J){return this._parent.querySelectorAll(J)}};
var Ht2={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(Ht2={mouseenter:"mouseover",mouseleave:"mouseout"}));var XPE=[null];ma.prototype=$p.prototype={constructor:ma,select:function(J){typeof J!=="function"&&(J=t(J));for(var P=this._groups,w=P.length,E=Array(w),sZ=0;sZ<w;++sZ)for(var vo=P[sZ],bL=vo.length,Po=E[sZ]=Array(bL),lk,EZ,Cs=0;Cs<bL;++Cs)(lk=vo[Cs])&&(EZ=J.call(lk,lk.__data__,Cs,vo))&&("__data__"in lk&&(EZ.__data__=lk.__data__),Po[Cs]=EZ);return new ma(E,this._parents)},
filter:function(J){typeof J!=="function"&&(J=s8N(J));for(var P=this._groups,w=P.length,E=Array(w),sZ=0;sZ<w;++sZ)for(var vo=P[sZ],bL=vo.length,Po=E[sZ]=[],lk,EZ=0;EZ<bL;++EZ)(lk=vo[EZ])&&J.call(lk,lk.__data__,EZ,vo)&&Po.push(lk);return new ma(E,this._parents)},
data:function(J,P){if(!J)return Oo=Array(this.size()),EZ=-1,this.each(function(Td){Oo[++EZ]=Td}),Oo;
var w=P?B:f,E=this._parents,sZ=this._groups;typeof J!=="function"&&(J=a(J));for(var vo=sZ.length,bL=Array(vo),Po=Array(vo),lk=Array(vo),EZ=0;EZ<vo;++EZ){var Cs=E[EZ],$0=sZ[EZ],hR=$0.length,Oo=J.call(Cs,Cs&&Cs.__data__,EZ,E),SF=Oo.length,Vg=Po[EZ]=Array(SF),cZ=bL[EZ]=Array(SF);hR=lk[EZ]=Array(hR);w(Cs,$0,Vg,cZ,hR,Oo,P);$0=Cs=0;for(var w2;Cs<SF;++Cs)if(hR=Vg[Cs]){for(Cs>=$0&&($0=Cs+1);!(w2=cZ[$0])&&++$0<SF;);hR._next=w2||null}}bL=new ma(bL,E);bL._enter=Po;bL._exit=lk;return bL},
enter:function(){return new ma(this._enter||this._groups.map(x),this._parents)},
exit:function(){return new ma(this._exit||this._groups.map(x),this._parents)},
merge:function(J){var P=this._groups;J=J._groups;for(var w=P.length,E=Math.min(w,J.length),sZ=Array(w),vo=0;vo<E;++vo)for(var bL=P[vo],Po=J[vo],lk=bL.length,EZ=sZ[vo]=Array(lk),Cs,$0=0;$0<lk;++$0)if(Cs=bL[$0]||Po[$0])EZ[$0]=Cs;for(;vo<w;++vo)sZ[vo]=P[vo];return new ma(sZ,this._parents)},
order:function(){for(var J=this._groups,P=-1,w=J.length;++P<w;)for(var E=J[P],sZ=E.length-1,vo=E[sZ],bL;--sZ>=0;)if(bL=E[sZ])vo&&vo!==bL.nextSibling&&vo.parentNode.insertBefore(bL,vo),vo=bL;return this},
sort:function(J){function P($0,hR){return $0&&hR?J($0.__data__,hR.__data__):!$0-!hR}
J||(J=p);for(var w=this._groups,E=w.length,sZ=Array(E),vo=0;vo<E;++vo){for(var bL=w[vo],Po=bL.length,lk=sZ[vo]=Array(Po),EZ,Cs=0;Cs<Po;++Cs)if(EZ=bL[Cs])lk[Cs]=EZ;lk.sort(P)}return(new ma(sZ,this._parents)).order()},
call:function(){var J=arguments[0];arguments[0]=this;J.apply(null,arguments);return this},
nodes:function(){var J=Array(this.size()),P=-1;this.each(function(){J[++P]=this});
return J},
node:function(){for(var J=this._groups,P=0,w=J.length;P<w;++P)for(var E=J[P],sZ=0,vo=E.length;sZ<vo;++sZ){var bL=E[sZ];if(bL)return bL}return null},
size:function(){var J=0;this.each(function(){++J});
return J},
empty:function(){return!this.node()},
each:function(J){for(var P=this._groups,w=0,E=P.length;w<E;++w)for(var sZ=P[w],vo=0,bL=sZ.length,Po;vo<bL;++vo)(Po=sZ[vo])&&J.call(Po,Po.__data__,vo,sZ);return this},
attr:function(J,P){var w=W(J);if(arguments.length<2){var E=this.node();return w.local?E.getAttributeNS(w.space,w.local):E.getAttribute(w)}return this.each((P==null?w.local?m:V:typeof P==="function"?w.local?C9:h:w.local?A:Z)(w,P))},
style:function(J,P,w){return arguments.length>1?this.each((P==null?Wo:typeof P==="function"?co:$y)(J,P,w==null?"":w)):UZ(this.node(),J)},
property:function(J,P){return arguments.length>1?this.each((P==null?tH:typeof P==="function"?Bo:gq)(J,P)):this.node()[J]},
text:function(J){return arguments.length?this.each(J==null?uk:(typeof J==="function"?Ha:ca)(J)):this.node().textContent},
html:function(J){return arguments.length?this.each(J==null?hH:(typeof J==="function"?ns:tR)(J)):this.node().innerHTML},
append:function(J){var P=typeof J==="function"?J:v(J);return this.select(function(){return this.appendChild(P.apply(this,arguments))})},
insert:function(J,P){var w=typeof J==="function"?J:v(J),E=P==null?Pa:typeof P==="function"?P:t(P);return this.select(function(){return this.insertBefore(w.apply(this,arguments),E.apply(this,arguments)||null)})},
remove:function(){return this.each(QV)},
clone:function(J){return this.select(J?yn:Ls)},
datum:function(J){return arguments.length?this.property("__data__",J):this.node().__data__},
on:function(J,P,w){var E=vE(J+""),sZ=E.length,vo;if(arguments.length<2){var bL=this.node().__on;if(bL)for(var Po=0,lk=bL.length,EZ;Po<lk;++Po){var Cs=0;for(EZ=bL[Po];Cs<sZ;++Cs)if((vo=E[Cs]).type===EZ.type&&vo.name===EZ.name)return EZ.value}}else{bL=P?Vm:Gw;w==null&&(w=!1);for(Cs=0;Cs<sZ;++Cs)this.each(bL(E[Cs],P,w));return this}},
dispatch:function(J,P){return this.each((typeof P==="function"?oC:uG)(J,P))}};
var m2p=0;aC.prototype=function(){return new aC}.prototype={constructor:aC,
get:function(J){for(var P=this._;!(P in J);)if(!(J=J.parentNode))return;return J[P]},
set:function(J,P){return J[this._]=P},
remove:function(J){return this._ in J&&delete J[this._]},
toString:function(){return this._}};
var Ei=1/.7,hYE=/^#([0-9a-f]{3})$/,Ev2=/^#([0-9a-f]{6})$/,LRp=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),uG6=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Ke2=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),lFV=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*\\)$"),
DL6=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),dLE=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*\\)$"),Mva={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};
RC(HZ,HE,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
RC(Dk,PE,tE(HZ,{brighter:function(J){J=J==null?Ei:Math.pow(Ei,J);return new Dk(this.r*J,this.g*J,this.b*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new Dk(this.r*J,this.g*J,this.b*J,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"#"+hE(this.r)+hE(this.g)+hE(this.b)},
toString:function(){var J=this.opacity;J=isNaN(J)?1:Math.max(0,Math.min(1,J));return(J===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))+(J===1?")":", "+J+")")}}));
RC(Jg,J9,tE(HZ,{brighter:function(J){J=J==null?Ei:Math.pow(Ei,J);return new Jg(this.h,this.s,this.l*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new Jg(this.h,this.s,this.l*J,this.opacity)},
rgb:function(){var J=this.h%360+(this.h<0)*360,P=this.l,w=P+(P<.5?P:1-P)*(isNaN(J)||isNaN(this.s)?0:this.s);P=2*P-w;return new Dk(Jm(J>=240?J-240:J+120,P,w),Jm(J,P,w),Jm(J<120?J+240:J-120,P,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 q7w=Math.PI/180,rFs=180/Math.PI,nis=4/29,AN=6/29,$GA=3*AN*AN,C1E=AN*AN*AN;RC(aR,function(J,P,w,E){return arguments.length===1?JV(J):new aR(J,P,w,E==null?1:E)},tE(HZ,{brighter:function(J){return new aR(this.l+18*(J==null?1:J),this.a,this.b,this.opacity)},
darker:function(J){return new aR(this.l-18*(J==null?1:J),this.a,this.b,this.opacity)},
rgb:function(){var J=(this.l+16)/116,P=isNaN(this.a)?J:J+this.a/500,w=isNaN(this.b)?J:J-this.b/200;P=.96422*ky(P);J=1*ky(J);w=.82521*ky(w);return new Dk(x0(3.1338561*P-1.6168667*J-.4906146*w),x0(-.9787684*P+1.9161415*J+.033454*w),x0(.0719453*P-.2289914*J+1.4052427*w),this.opacity)}}));
RC(S2,xp,tE(HZ,{brighter:function(J){return new S2(this.h,this.c,this.l+18*(J==null?1:J),this.opacity)},
darker:function(J){return new S2(this.h,this.c,this.l-18*(J==null?1:J),this.opacity)},
rgb:function(){return JV(this).rgb()}}));
var viN=1.78277*-.29227-.1347134789;RC(R2,va,tE(HZ,{brighter:function(J){J=J==null?Ei:Math.pow(Ei,J);return new R2(this.h,this.s,this.l*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new R2(this.h,this.s,this.l*J,this.opacity)},
rgb:function(){var J=isNaN(this.h)?0:(this.h+120)*q7w,P=+this.l,w=isNaN(this.s)?0:this.s*P*(1-P),E=Math.cos(J);J=Math.sin(J);return new Dk(255*(P+w*(-.14861*E+1.78277*J)),255*(P+w*(-.29227*E+-.90649*J)),255*(P+1.97294*E*w),this.opacity)}}));
var bta=function w(P){function E(vo,bL){var Po=sZ((vo=PE(vo)).r,(bL=PE(bL)).r),lk=sZ(vo.g,bL.g),EZ=sZ(vo.b,bL.b),Cs=LU(vo.opacity,bL.opacity);return function($0){vo.r=Po($0);vo.g=lk($0);vo.b=EZ($0);vo.opacity=Cs($0);return vo+""}}
var sZ=zj(P);E.gamma=w;return E}(1),KDB=XY(function(P){var w=P.length-1;
return function(E){var sZ=E<=0?E=0:E>=1?(E=1,w-1):Math.floor(E*w),vo=P[sZ],bL=P[sZ+1];return Gg((E-sZ/w)*w,sZ>0?P[sZ-1]:2*vo-bL,vo,bL,sZ<w-1?P[sZ+2]:2*bL-vo)}});
XY(function(P){var w=P.length;return function(E){var sZ=Math.floor(((E%=1)<0?++E:E)*w);return Gg((E-sZ/w)*w,P[(sZ+w-1)%w],P[sZ%w],P[(sZ+1)%w],P[(sZ+2)%w])}});
var FLr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,V_y=new RegExp(FLr.source,"g"),GE0=180/Math.PI,yQH={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},y3,suR,oxH,nnH,DAB=AO(function(P){if(P==="none")return yQH;y3||(y3=document.createElement("DIV"),suR=document.documentElement,oxH=document.defaultView);y3.style.transform=P;P=oxH.getComputedStyle(suR.appendChild(y3),null).getPropertyValue("transform");suR.removeChild(y3);P=P.slice(7,-1).split(",");return M0(+P[0],+P[1],+P[2],+P[3],
+P[4],+P[5])},"px, ","px)","deg)"),dAI=AO(function(P){if(P==null)return yQH;
nnH||(nnH=document.createElementNS("http://www.w3.org/2000/svg","g"));nnH.setAttribute("transform",P);if(!(P=nnH.transform.baseVal.consolidate()))return yQH;P=P.matrix;return M0(P.a,P.b,P.c,P.d,P.e,P.f)},", ",")",")");
tX(pM);tX(LU);Mn(pM);Mn(LU);m1(pM);var oKw=m1(LU),Xy=0,ml=0,E0=0,I_Z,hh,CZq=0,bq=0,d7L=0,XD=typeof performance==="object"&&performance.now?performance:Date,tvR=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(P){setTimeout(P,17)};
KK.prototype=mP.prototype={constructor:KK,restart:function(P,w,E){if(typeof P!=="function")throw new TypeError("Ae");E=(E==null?us():+E)+(w==null?0:+w);this._next||hh===this||(hh?hh._next=this:I_Z=this,hh=this);this._call=P;this._time=E;Eq()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Eq())}};
var y$V=l("start","end","interrupt"),so6=[],CEi=$p.prototype.constructor,WLN=0,LA=$p.prototype;U$.prototype=function(P){return $p().transition(P)}.prototype={constructor:U$,
select:function(P){var w=this._name,E=this._id;typeof P!=="function"&&(P=t(P));for(var sZ=this._groups,vo=sZ.length,bL=Array(vo),Po=0;Po<vo;++Po)for(var lk=sZ[Po],EZ=lk.length,Cs=bL[Po]=Array(EZ),$0,hR,Oo=0;Oo<EZ;++Oo)($0=lk[Oo])&&(hR=P.call($0,$0.__data__,Oo,lk))&&("__data__"in $0&&(hR.__data__=$0.__data__),Cs[Oo]=hR,gx9(Cs[Oo],w,E,Oo,Cs,t5($0,E)));return new U$(bL,this._parents,w,E)},
filter:function(P){typeof P!=="function"&&(P=s8N(P));for(var w=this._groups,E=w.length,sZ=Array(E),vo=0;vo<E;++vo)for(var bL=w[vo],Po=bL.length,lk=sZ[vo]=[],EZ,Cs=0;Cs<Po;++Cs)(EZ=bL[Cs])&&P.call(EZ,EZ.__data__,Cs,bL)&&lk.push(EZ);return new U$(sZ,this._parents,this._name,this._id)},
merge:function(P){if(P._id!==this._id)throw Error();var w=this._groups;P=P._groups;for(var E=w.length,sZ=Math.min(E,P.length),vo=Array(E),bL=0;bL<sZ;++bL)for(var Po=w[bL],lk=P[bL],EZ=Po.length,Cs=vo[bL]=Array(EZ),$0,hR=0;hR<EZ;++hR)if($0=Po[hR]||lk[hR])Cs[hR]=$0;for(;bL<E;++bL)vo[bL]=w[bL];return new U$(vo,this._parents,this._name,this._id)},
selection:function(){return new CEi(this._groups,this._parents)},
transition:function(){for(var P=this._name,w=this._id,E=++WLN,sZ=this._groups,vo=sZ.length,bL=0;bL<vo;++bL)for(var Po=sZ[bL],lk=Po.length,EZ,Cs=0;Cs<lk;++Cs)if(EZ=Po[Cs]){var $0=t5(EZ,w);gx9(EZ,P,E,Cs,Po,{time:$0.time+$0.delay+$0.duration,delay:0,duration:$0.duration,ease:$0.ease})}return new U$(sZ,this._parents,P,E)},
call:LA.call,nodes:LA.nodes,node:LA.node,size:LA.size,empty:LA.empty,each:LA.each,on:function(P,w){var E=this._id;return arguments.length<2?t5(this.node(),E).on.on(P):this.each(aF6(E,P,w))},
attr:function(P,w){var E=W(P),sZ=E==="transform"?dAI:S7m;return this.attrTween(P,typeof w==="function"?(E.local?r$G:n1E)(E,sZ,ktr(this,"attr."+P,w)):w==null?(E.local?MYi:HW_)(E):(E.local?$L2:qCH)(E,sZ,w+""))},
attrTween:function(P,w){var E="attr."+P;if(arguments.length<2)return(E=this.tween(E))&&E._value;if(w==null)return this.tween(E,null);if(typeof w!=="function")throw Error();var sZ=W(P);return this.tween(E,(sZ.local?v1_:GVp)(sZ,w))},
style:function(P,w,E){var sZ=P==="transform"?DAB:S7m;return w==null?this.styleTween(P,esV(P,sZ)).on("end.style."+P,RsG(P)):this.styleTween(P,typeof w==="function"?fFp(P,sZ,ktr(this,"style."+P,w)):ULp(P,sZ,w+""),E)},
styleTween:function(P,w,E){var sZ="style."+P;if(arguments.length<2)return(sZ=this.tween(sZ))&&sZ._value;if(w==null)return this.tween(sZ,null);if(typeof w!=="function")throw Error();return this.tween(sZ,Qoi(P,w,E==null?"":E))},
text:function(P){return this.tween("text",typeof P==="function"?J$k(ktr(this,"text",P)):P1G(P==null?"":P+""))},
remove:function(){return this.on("end.remove",zsB(this._id))},
tween:function(P,w){var E=this._id;if(arguments.length<2){E=t5(this.node(),E).tween;for(var sZ=0,vo=E.length,bL;sZ<vo;++sZ)if((bL=E[sZ]).name===P)return bL.value;return null}return this.each((w==null?o1V:WeB)(E,P,w))},
delay:function(P){var w=this._id;return arguments.length?this.each((typeof P==="function"?tYE:xL_)(w,P)):t5(this.node(),w).delay},
duration:function(P){var w=this._id;return arguments.length?this.each((typeof P==="function"?SCk:bWE)(w,P)):t5(this.node(),w).duration},
ease:function(P){var w=this._id;return arguments.length?this.each(OW_(w,P)):t5(this.node(),w).ease}};
var WHb={time:null,delay:0,duration:250,ease:function(P){return((P*=2)<=1?P*P*P:(P-=2)*P*P+2)/2}};
$p.prototype.transition=function(P){var w;if(P instanceof U$){var E=P._id;P=P._name}else E=++WLN,(w=WHb).time=us(),P=P==null?null:P+"";for(var sZ=this._groups,vo=sZ.length,bL=0;bL<vo;++bL)for(var Po=sZ[bL],lk=Po.length,EZ,Cs=0;Cs<lk;++Cs)if(EZ=Po[Cs]){var $0=EZ,hR=P,Oo=E,SF=Cs,Vg=Po,cZ;if(!(cZ=w))a:{cZ=void 0;for(var w2=E;!(cZ=EZ.__transition)||!(cZ=cZ[w2]);)if(!(EZ=EZ.parentNode)){cZ=(WHb.time=us(),WHb);break a}}gx9($0,hR,Oo,SF,Vg,cZ)}return new U$(sZ,this._parents,P,E)};
["e","w"].map(Z7r);["n","s"].map(Z7r);"n e s w nw ne se sw".split(" ").map(Z7r);Yjo.prototype=function(){return new Yjo}.prototype={constructor:Yjo,
moveTo:function(P,w){this._+="M"+(this._x0=this._x1=+P)+","+(this._y0=this._y1=+w)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(P,w){this._+="L"+(this._x1=+P)+","+(this._y1=+w)},
bezierCurveTo:function(P,w,E,sZ,vo,bL){this._+="C"+ +P+","+ +w+","+ +E+","+ +sZ+","+(this._x1=+vo)+","+(this._y1=+bL)},
rect:function(P,w,E,sZ){this._+="M"+(this._x0=this._x1=+P)+","+(this._y0=this._y1=+w)+"h"+ +E+"v"+ +sZ+"h"+-E+"Z"},
toString:function(){return this._}};
y99.prototype=OtS.prototype={constructor:y99,has:function(P){return" "+P in this},
get:function(P){return this[" "+P]},
set:function(P,w){this[" "+P]=w;return this},
remove:function(P){P=" "+P;return P in this&&delete this[P]},
clear:function(){for(var P in this)P[0]===" "&&delete this[P]},
keys:function(){var P=[],w;for(w in this)w[0]===" "&&P.push(w.slice(1));return P},
values:function(){var P=[],w;for(w in this)w[0]===" "&&P.push(this[w]);return P},
entries:function(){var P=[],w;for(w in this)w[0]===" "&&P.push({key:w.slice(1),value:this[w]});return P},
size:function(){var P=0,w;for(w in this)w[0]===" "&&++P;return P},
empty:function(){for(var P in this)if(P[0]===" ")return!1;return!0},
each:function(P){for(var w in this)w[0]===" "&&P(this[w],w.slice(1),this)}};
var zu=OtS.prototype;sKH.prototype=function(P,w){var E=new sKH;if(P instanceof sKH)P.each(function(bL){E.add(bL)});
else if(P){var sZ=-1,vo=P.length;if(w==null)for(;++sZ<vo;)E.add(P[sZ]);else for(;++sZ<vo;)E.add(w(P[sZ],sZ,P))}return E}.prototype={constructor:sKH,
has:zu.has,add:function(P){this[" "+P]=P;return this},
remove:zu.remove,clear:zu.clear,values:zu.keys,size:zu.size,empty:zu.empty,each:zu.each};var z1s={},ATo={},I3H=aGA(",").parse,yWi=aGA("\t").parse;e1C(I3H);e1C(yWi);var U9=function(P,w,E){w=new Xen(w==null?iW_:w,E==null?TVI:E,NaN,NaN,NaN,NaN);return P==null?w:w.addAll(P)}.prototype=Xen.prototype;
U9.copy=function(){var P=new Xen(this._x,this._y,this._x0,this._y0,this._x1,this._y1),w=this._root,E,sZ;if(!w)return P;if(!w.length)return P._root=UGC(w),P;for(E=[{source:w,target:P._root=Array(4)}];w=E.pop();)for(var vo=0;vo<4;++vo)if(sZ=w.source[vo])sZ.length?E.push({source:sZ,target:w.target[vo]=Array(4)}):w.target[vo]=UGC(sZ);return P};
U9.add=function(P){var w=+this._x.call(null,P),E=+this._y.call(null,P);return R1a(this.cover(w,E),w,E,P)};
U9.addAll=function(P){var w,E,sZ=P.length,vo,bL,Po=Array(sZ),lk=Array(sZ),EZ=Infinity,Cs=Infinity,$0=-Infinity,hR=-Infinity;for(E=0;E<sZ;++E)isNaN(vo=+this._x.call(null,w=P[E]))||isNaN(bL=+this._y.call(null,w))||(Po[E]=vo,lk[E]=bL,vo<EZ&&(EZ=vo),vo>$0&&($0=vo),bL<Cs&&(Cs=bL),bL>hR&&(hR=bL));$0<EZ&&(EZ=this._x0,$0=this._x1);hR<Cs&&(Cs=this._y0,hR=this._y1);this.cover(EZ,Cs).cover($0,hR);for(E=0;E<sZ;++E)R1a(this,Po[E],lk[E],P[E]);return this};
U9.cover=function(P,w){if(isNaN(P=+P)||isNaN(w=+w))return this;var E=this._x0,sZ=this._y0,vo=this._x1,bL=this._y1;if(isNaN(E))vo=(E=Math.floor(P))+1,bL=(sZ=Math.floor(w))+1;else if(E>P||P>vo||sZ>w||w>bL){var Po=vo-E,lk=this._root,EZ;switch(EZ=(w<(sZ+bL)/2)<<1|P<(E+vo)/2){case 0:do{var Cs=Array(4);Cs[EZ]=lk;lk=Cs}while(Po*=2,vo=E+Po,bL=sZ+Po,P>vo||w>bL);break;case 1:do Cs=Array(4),Cs[EZ]=lk,lk=Cs;while(Po*=2,E=vo-Po,bL=sZ+Po,E>P||w>bL);break;case 2:do Cs=Array(4),Cs[EZ]=lk,lk=Cs;while(Po*=2,vo=E+Po,
sZ=bL-Po,P>vo||sZ>w);break;case 3:do Cs=Array(4),Cs[EZ]=lk,lk=Cs;while(Po*=2,E=vo-Po,sZ=bL-Po,E>P||sZ>w)}this._root&&this._root.length&&(this._root=lk)}else return this;this._x0=E;this._y0=sZ;this._x1=vo;this._y1=bL;return this};
U9.data=function(){var P=[];this.visit(function(w){if(!w.length){do P.push(w.data);while(w=w.next)}});
return P};
U9.extent=function(P){return arguments.length?this.cover(+P[0][0],+P[0][1]).cover(+P[1][0],+P[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
U9.find=function(P,w,E){var sZ=this._x0,vo=this._y0,bL,Po,lk,EZ,Cs=this._x1,$0=this._y1,hR=[],Oo=this._root,SF;Oo&&hR.push(new Rb(Oo,sZ,vo,Cs,$0));E==null?E=Infinity:(sZ=P-E,vo=w-E,Cs=P+E,$0=w+E,E*=E);for(;SF=hR.pop();)if(!(!(Oo=SF.node)||(bL=SF.x0)>Cs||(Po=SF.y0)>$0||(lk=SF.x1)<sZ||(EZ=SF.y1)<vo))if(Oo.length){SF=(bL+lk)/2;var Vg=(Po+EZ)/2;hR.push(new Rb(Oo[3],SF,Vg,lk,EZ),new Rb(Oo[2],bL,Vg,SF,EZ),new Rb(Oo[1],SF,Po,lk,Vg),new Rb(Oo[0],bL,Po,SF,Vg));if(Oo=(w>=Vg)<<1|P>=SF)SF=hR[hR.length-1],hR[hR.length-
1]=hR[hR.length-1-Oo],hR[hR.length-1-Oo]=SF}else if(SF=P-+this._x.call(null,Oo.data),Vg=w-+this._y.call(null,Oo.data),SF=SF*SF+Vg*Vg,SF<E){var cZ=Math.sqrt(E=SF);sZ=P-cZ;vo=w-cZ;Cs=P+cZ;$0=w+cZ;cZ=Oo.data}return cZ};
U9.remove=function(P){if(isNaN(EZ=+this._x.call(null,P))||isNaN(Cs=+this._y.call(null,P)))return this;var w,E=this._root,sZ,vo=this._x0,bL=this._y0,Po=this._x1,lk=this._y1,EZ,Cs,$0,hR,Oo,SF,Vg;if(!E)return this;if(E.length)for(;;){(Oo=EZ>=($0=(vo+Po)/2))?vo=$0:Po=$0;(SF=Cs>=(hR=(bL+lk)/2))?bL=hR:lk=hR;if(!(w=E,E=E[Vg=SF<<1|Oo]))return this;if(!E.length)break;if(w[Vg+1&3]||w[Vg+2&3]||w[Vg+3&3]){var cZ=w;var w2=Vg}}for(;E.data!==P;)if(!(sZ=E,E=E.next))return this;(P=E.next)&&delete E.next;if(sZ)return P?
sZ.next=P:delete sZ.next,this;if(!w)return this._root=P,this;P?w[Vg]=P:delete w[Vg];(E=w[0]||w[1]||w[2]||w[3])&&E===(w[3]||w[2]||w[1]||w[0])&&!E.length&&(cZ?cZ[w2]=E:this._root=E);return this};
U9.removeAll=function(P){for(var w=0,E=P.length;w<E;++w)this.remove(P[w]);return this};
U9.root=function(){return this._root};
U9.size=function(){var P=0;this.visit(function(w){if(!w.length){do++P;while(w=w.next)}});
return P};
U9.visit=function(P){var w=[],E,sZ=this._root,vo,bL,Po,lk,EZ;for(sZ&&w.push(new Rb(sZ,this._x0,this._y0,this._x1,this._y1));E=w.pop();)if(!P(sZ=E.node,bL=E.x0,Po=E.y0,lk=E.x1,EZ=E.y1)&&sZ.length){E=(bL+lk)/2;var Cs=(Po+EZ)/2;(vo=sZ[3])&&w.push(new Rb(vo,E,Cs,lk,EZ));(vo=sZ[2])&&w.push(new Rb(vo,bL,Cs,E,EZ));(vo=sZ[1])&&w.push(new Rb(vo,E,Po,lk,Cs));(vo=sZ[0])&&w.push(new Rb(vo,bL,Po,E,Cs))}};
U9.visitAfter=function(P){var w=[],E=[],sZ;for(this._root&&w.push(new Rb(this._root,this._x0,this._y0,this._x1,this._y1));sZ=w.pop();){var vo=sZ.node;if(vo.length){var bL,Po=sZ.x0,lk=sZ.y0,EZ=sZ.x1,Cs=sZ.y1,$0=(Po+EZ)/2,hR=(lk+Cs)/2;(bL=vo[0])&&w.push(new Rb(bL,Po,lk,$0,hR));(bL=vo[1])&&w.push(new Rb(bL,$0,lk,EZ,hR));(bL=vo[2])&&w.push(new Rb(bL,Po,hR,$0,Cs));(bL=vo[3])&&w.push(new Rb(bL,$0,hR,EZ,Cs))}E.push(sZ)}for(;sZ=E.pop();)P(sZ.node,sZ.x0,sZ.y0,sZ.x1,sZ.y1);return this};
U9.x=function(P){return arguments.length?(this._x=P,this):this._x};
U9.y=function(P){return arguments.length?(this._y=P,this):this._y};
var g1B=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;mso.prototype=h2b.prototype;h2b.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 JFa,jD0={"%":function(P,w){return(P*100).toFixed(w)},
b:function(P){return Math.round(P).toString(2)},
c:function(P){return P+""},
d:function(P){return Math.round(P).toString(10)},
e:function(P,w){return P.toExponential(w)},
f:function(P,w){return P.toFixed(w)},
g:function(P,w){return P.toPrecision(w)},
o:function(P){return Math.round(P).toString(8)},
p:function(P,w){return fGa(P*100,w)},
r:fGa,s:function(P,w){var E=onq(P,w);if(!E)return P+"";var sZ=E[0];E=E[1];E=E-(JFa=Math.max(-8,Math.min(8,Math.floor(E/3)))*3)+1;var vo=sZ.length;return E===vo?sZ:E>vo?sZ+Array(E-vo+1).join("0"):E>0?sZ.slice(0,E)+"."+sZ.slice(E):"0."+Array(1-E).join("0")+onq(P,Math.max(0,w+E-1))[0]},
X:function(P){return Math.round(P).toString(16).toUpperCase()},
x:function(P){return Math.round(P).toString(16)}},PFH="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),sPp;
(function(P){return sPp=NVB(P)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});na.prototype={constructor:na,reset:function(){this.s=this.t=0},
add:function(P){BzR(r9b,P,this.t);BzR(this,r9b.s,this.s);this.s?this.t+=r9b.t:this.s=r9b.t},
valueOf:function(){return this.s}};
var r9b=new na,z9=Math.PI,bw=z9/2,H7m=z9/4,ogp=z9*2,Hob=z9/180,fo=Math.abs,MKn=Math.atan,Vvs=Math.atan2,OA=Math.cos,$O=Math.sin,HTo=Math.sqrt;new na;new na;new na;var q$y=new na;(function(P,w,E,sZ){return function(vo){function bL(wp,GZ){P(wp,GZ)&&vo.point(wp,GZ)}
function Po(wp,GZ){Oo.point(wp,GZ)}
function lk(){jU.point=Po;Oo.lineStart()}
function EZ(){jU.point=bL;Oo.lineEnd()}
function Cs(wp,GZ){sV.push([wp,GZ]);Vg.point(wp,GZ)}
function $0(){Vg.lineStart();sV=[]}
function hR(){Cs(sV[0][0],sV[0][1]);Vg.lineEnd();var wp=Vg.clean(),GZ=SF.result(),Xz=GZ.length,Kp;sV.pop();w2.push(sV);sV=null;if(Xz)if(wp&1){if(Xz=GZ[0],(GZ=Xz.length-1)>0){cZ||(vo.polygonStart(),cZ=!0);vo.lineStart();for(wp=0;wp<GZ;++wp)vo.point((Kp=Xz[wp])[0],Kp[1]);vo.lineEnd()}}else Xz>1&&wp&2&&GZ.push(GZ.pop().concat(GZ.shift())),Td.push(GZ.filter(A$p))}
var Oo=w(vo),SF=ZW_(),Vg=w(SF),cZ=!1,w2,Td,sV,jU={point:bL,lineStart:lk,lineEnd:EZ,polygonStart:function(){jU.point=Cs;jU.lineStart=$0;jU.lineEnd=hR;Td=[];w2=[]},
polygonEnd:function(){jU.point=bL;jU.lineStart=lk;jU.lineEnd=EZ;var wp=Td,GZ=wp.length;var Xz=-1;for(var Kp=0,p_,rb;++Xz<GZ;)Kp+=wp[Xz].length;for(p_=Array(Kp);--GZ>=0;)for(rb=wp[GZ],Xz=rb.length;--Xz>=0;)p_[--Kp]=rb[Xz];Td=p_;wp=w2;GZ=sZ[0];Kp=sZ[1];var yS=$O(Kp);Xz=[$O(GZ),-OA(GZ),0];rb=p_=0;q$y.reset();yS===1?Kp=bw+1E-6:yS===-1&&(Kp=-bw-1E-6);yS=0;for(var z6=wp.length;yS<z6;++yS)if(a9=(T1=wp[yS]).length){var T1,a9,Fm=T1[a9-1],IK=Fm[0],Lk=Fm[1]/2+H7m,vnq=$O(Lk),M_B=OA(Lk);for(Lk=0;Lk<a9;++Lk,IK=
$6q,vnq=qjH,M_B=sG,Fm=GBh){var GBh=T1[Lk],$6q=GBh[0];sG=GBh[1]/2+H7m;var qjH=$O(sG),sG=OA(sG),uS=$6q-IK,nKw=uS>=0?1:-1,rQr=nKw*uS,tgq=rQr>z9;vnq*=qjH;q$y.add(Vvs(vnq*nKw*$O(rQr),M_B*sG+vnq*OA(rQr)));p_+=tgq?uS+nKw*ogp:uS;tgq^IK>=GZ^$6q>=GZ&&(Fm=itk(p3w(Fm),p3w(GBh)),TzN(Fm),IK=itk(Xz,Fm),TzN(IK),IK=(tgq^uS>=0?-1:1)*Wgy(IK[2]),Kp>IK||Kp===IK&&(Fm[0]||Fm[1]))&&(rb+=tgq^uS>=0?1:-1)}}wp=(p_<-1E-6||p_<1E-6&&q$y<-1E-6)^rb&1;Td.length?(cZ||(vo.polygonStart(),cZ=!0),YCo(Td,XSI,wp,E,vo)):wp&&(cZ||(vo.polygonStart(),
cZ=!0),vo.lineStart(),E(null,null,1,vo),vo.lineEnd());cZ&&(vo.polygonEnd(),cZ=!1);Td=w2=null},
sphere:function(){vo.polygonStart();vo.lineStart();E(null,null,1,vo);vo.lineEnd();vo.polygonEnd()}};
return jU}})(function(){return!0},function(P){var w=NaN,E=NaN,sZ=NaN,vo;
return{lineStart:function(){P.lineStart();vo=1},
point:function(bL,Po){var lk=bL>0?z9:-z9,EZ=fo(bL-w);if(fo(EZ-z9)<1E-6)P.point(w,E=(E+Po)/2>0?bw:-bw),P.point(sZ,E),P.lineEnd(),P.lineStart(),P.point(lk,E),P.point(bL,E),vo=0;else if(sZ!==lk&&EZ>=z9){fo(w-sZ)<1E-6&&(w-=sZ*1E-6);fo(bL-lk)<1E-6&&(bL-=lk*1E-6);EZ=w;var Cs=E,$0=bL,hR,Oo,SF=$O(EZ-$0);E=fo(SF)>1E-6?MKn(($O(Cs)*(Oo=OA(Po))*$O($0)-$O(Po)*(hR=OA(Cs))*$O(EZ))/(hR*Oo*SF)):(Cs+Po)/2;P.point(sZ,E);P.lineEnd();P.lineStart();P.point(lk,E);vo=0}P.point(w=bL,E=Po);sZ=lk},
lineEnd:function(){P.lineEnd();w=E=NaN},
clean:function(){return 2-vo}}},function(P,w,E,sZ){P==null?(E*=bw,sZ.point(-z9,E),sZ.point(0,E),sZ.point(z9,E),sZ.point(z9,0),sZ.point(z9,-E),sZ.point(0,-E),sZ.point(-z9,-E),sZ.point(-z9,0),sZ.point(-z9,E)):fo(P[0]-w[0])>1E-6?(P=P[0]<w[0]?z9:-z9,E=E*P/2,sZ.point(-P,E),sZ.point(0,E),sZ.point(P,E)):sZ.point(w[0],w[1])},[-z9,
-bw]);new na;new na;new na;new na;ExH.prototype={constructor:ExH,point:function(P,w){this.stream.point(P,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()}};
OA(30*Hob);(function(P){return function(w){var E=new ExH,sZ;for(sZ in P)E[sZ]=P[sZ];E.stream=w;return E}})({point:function(P,w){this.stream.point(P*Hob,w*Hob)}});
FKC(function(P){return HTo(2/(1+P))}).invert=LC(function(P){return 2*Wgy(P/2)});
FKC(function(P){return(P=P>1?0:P<-1?z9:Math.acos(P))&&P/$O(P)}).invert=LC(function(P){return P});
HTo(3);LC(MKn);LC(Wgy);LC(function(P){return 2*MKn(P)});
uW.prototype=gis.prototype={constructor:uW,count:function(){return this.eachAfter(mLp)},
each:function(P){var w,E=[this],sZ;do{var vo=E.reverse();for(E=[];w=vo.pop();)if(P(w),w=w.children){var bL=0;for(sZ=w.length;bL<sZ;++bL)E.push(w[bL])}}while(E.length);return this},
eachAfter:function(P){for(var w,E=[this],sZ=[],vo,bL;w=E.pop();)if(sZ.push(w),w=w.children)for(vo=0,bL=w.length;vo<bL;++vo)E.push(w[vo]);for(;w=sZ.pop();)P(w);return this},
eachBefore:function(P){for(var w,E=[this],sZ;w=E.pop();)if(P(w),w=w.children)for(sZ=w.length-1;sZ>=0;--sZ)E.push(w[sZ]);return this},
sum:function(P){return this.eachAfter(function(w){for(var E=+P(w.data)||0,sZ=w.children,vo=sZ&&sZ.length;--vo>=0;)E+=sZ[vo].value;w.value=E})},
sort:function(P){return this.eachBefore(function(w){w.children&&w.children.sort(P)})},
path:function(P){var w=this;var E=w;var sZ=P;if(E!==sZ){var vo=E.ancestors(),bL=sZ.ancestors(),Po=null;E=vo.pop();for(sZ=bL.pop();E===sZ;)Po=E,E=vo.pop(),sZ=bL.pop();E=Po}for(sZ=[w];w!==E;)w=w.parent,sZ.push(w);for(w=sZ.length;P!==E;)sZ.splice(w,0,P),P=P.parent;return sZ},
ancestors:function(){for(var P=this,w=[P];P=P.parent;)w.push(P);return w},
links:function(){var P=this,w=[];P.each(function(E){E!==P&&w.push({source:E.parent,target:E})});
return w},
copy:function(){return gis(this).eachBefore(Lek)}};
(function(P,w){this._=P;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(uW.prototype);
var LLy=new Date,uOy=new Date,$sC=Dy(function(){},function(P,w){P.setTime(+P+w)},function(P,w){return w-P});
$sC.every=function(P){P=Math.floor(P);return isFinite(P)&&P>0?P>1?Dy(function(w){w.setTime(Math.floor(w/P)*P)},function(w,E){w.setTime(+w+E*P)},function(w,E){return(E-w)/P}):$sC:null};
Dy(function(P){P.setTime(Math.floor(P/1E3)*1E3)},function(P,w){P.setTime(+P+w*1E3)},function(P,w){return(w-P)/1E3},function(P){return P.getUTCSeconds()});
Dy(function(P){P.setTime(Math.floor(P/6E4)*6E4)},function(P,w){P.setTime(+P+w*6E4)},function(P,w){return(w-P)/6E4},function(P){return P.getMinutes()});
Dy(function(P){var w=P.getTimezoneOffset()*6E4%36E5;w<0&&(w+=36E5);P.setTime(Math.floor((+P-w)/36E5)*36E5+w)},function(P,w){P.setTime(+P+w*36E5)},function(P,w){return(w-P)/36E5},function(P){return P.getHours()});
var Zta=Dy(function(P){P.setHours(0,0,0,0)},function(P,w){P.setDate(P.getDate()+w)},function(P,w){return(w-P-(w.getTimezoneOffset()-P.getTimezoneOffset())*6E4)/864E5},function(P){return P.getDate()-1}),Lvi=cj(0),llq=cj(1);
cj(2);cj(3);var D6L=cj(4);cj(5);cj(6);Dy(function(P){P.setDate(1);P.setHours(0,0,0,0)},function(P,w){P.setMonth(P.getMonth()+w)},function(P,w){return w.getMonth()-P.getMonth()+(w.getFullYear()-P.getFullYear())*12},function(P){return P.getMonth()});
var mA=Dy(function(P){P.setMonth(0,1);P.setHours(0,0,0,0)},function(P,w){P.setFullYear(P.getFullYear()+w)},function(P,w){return w.getFullYear()-P.getFullYear()},function(P){return P.getFullYear()});
mA.every=function(P){return isFinite(P=Math.floor(P))&&P>0?Dy(function(w){w.setFullYear(Math.floor(w.getFullYear()/P)*P);w.setMonth(0,1);w.setHours(0,0,0,0)},function(w,E){w.setFullYear(w.getFullYear()+E*P)}):null};
Dy(function(P){P.setUTCSeconds(0,0)},function(P,w){P.setTime(+P+w*6E4)},function(P,w){return(w-P)/6E4},function(P){return P.getUTCMinutes()});
Dy(function(P){P.setUTCMinutes(0,0,0)},function(P,w){P.setTime(+P+w*36E5)},function(P,w){return(w-P)/36E5},function(P){return P.getUTCHours()});
var kER=Dy(function(P){P.setUTCHours(0,0,0,0)},function(P,w){P.setUTCDate(P.getUTCDate()+w)},function(P,w){return(w-P)/864E5},function(P){return P.getUTCDate()-1}),uPH=ar(0),KHb=ar(1);
ar(2);ar(3);var d6q=ar(4);ar(5);ar(6);Dy(function(P){P.setUTCDate(1);P.setUTCHours(0,0,0,0)},function(P,w){P.setUTCMonth(P.getUTCMonth()+w)},function(P,w){return w.getUTCMonth()-P.getUTCMonth()+(w.getUTCFullYear()-P.getUTCFullYear())*12},function(P){return P.getUTCMonth()});
var hN=Dy(function(P){P.setUTCMonth(0,1);P.setUTCHours(0,0,0,0)},function(P,w){P.setUTCFullYear(P.getUTCFullYear()+w)},function(P,w){return w.getUTCFullYear()-P.getUTCFullYear()},function(P){return P.getUTCFullYear()});
hN.every=function(P){return isFinite(P=Math.floor(P))&&P>0?Dy(function(w){w.setUTCFullYear(Math.floor(w.getUTCFullYear()/P)*P);w.setUTCMonth(0,1);w.setUTCHours(0,0,0,0)},function(w,E){w.setUTCFullYear(w.getUTCFullYear()+E*P)}):null};
var NzN={"-":"",_:" ",0:"0"},of=/^\s*\d+/,EXI=/^%/,hm_=/[\\^$*+?|[\]().{}]/g,x79;(function(P){x79=KvG(P);Ko2=x79.utcFormat;laa=x79.utcParse;return x79})({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||Ko2("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||laa("%Y-%m-%dT%H:%M:%S.%LZ");q0("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
q0("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");q0("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");q0("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");q0("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");q0("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");q0("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
q0("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");q0("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");q0("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");q0("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");q0("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var WD2=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(q0);wi(WD2);var HP6=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(q0);wi(HP6);var Mh2=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(q0);wi(Mh2);var qUG=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(q0);
wi(qUG);var $A_=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(q0);wi($A_);var ngI=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(q0);wi(ngI);var rW_=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(q0);wi(rW_);var vgo=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(q0);wi(vgo);var G8I=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(q0);wi(G8I);var thi=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(q0);wi(thi);var xAE=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(q0);wi(xAE);var SU2=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(q0);wi(SU2);var bP_=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(q0);wi(bP_);var OPp=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(q0);wi(OPp);var cWV=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(q0);wi(cWV);var a3o=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(q0);wi(a3o);var zAp=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(q0);wi(zAp);var eAE=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(q0);wi(eAE);var RA_=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(q0);wi(RA_);var UAI=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(q0);wi(UAI);var f3o=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(q0);wi(f3o);var QP_=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(q0);wi(QP_);var PE_=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(q0);wi(PE_);var JWp=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(q0);wi(JWp);var jP2=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(q0);wi(jP2);var B0V=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(q0);wi(B0V);var pdo=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(q0);wi(pdo);oKw(va(300,.5,0),va(-240,.5,1));oKw(va(-100,.75,.35),va(80,1.5,.8));oKw(va(260,.75,.35),va(80,1.5,.8));va();PE();$7w(q0("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
$7w(q0("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
$7w(q0("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
$7w(q0("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
lTm.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(P,w){P=+P;w=+w;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(P,w):this._context.moveTo(P,w);break;case 1:this._point=2;default:this._context.lineTo(P,w)}}};
(function(P){function w(E){return new Dsm(P(E))}
w._curve=P;return w})(function(P){return new lTm(P)});
Dsm.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(P,w){this._curve.point(w*Math.sin(P),w*-Math.cos(P))}};
Iln.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:CfH(this,this._t0,CXH(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(P,w){var E=NaN;P=+P;w=+w;if(P!==this._x1||w!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(P,w):this._context.moveTo(P,w);break;case 1:this._point=2;break;case 2:this._point=3;CfH(this,CXH(this,E=dsm(this,P,w)),E);break;default:CfH(this,this._t0,E=dsm(this,P,w))}this._x0=this._x1;this._x1=P;this._y0=this._y1;this._y1=w;this._t0=E}}};
(function(P){this._context=new ITs(P)}.prototype=Object.create(Iln.prototype)).point=function(P,w){Iln.prototype.point.call(this,w,P)};
ITs.prototype={moveTo:function(P,w){this._context.moveTo(w,P)},
closePath:function(){this._context.closePath()},
lineTo:function(P,w){this._context.lineTo(w,P)},
bezierCurveTo:function(P,w,E,sZ,vo,bL){this._context.bezierCurveTo(w,P,sZ,E,bL,vo)}};
CR.prototype={constructor:CR,scale:function(P){return P===1?this:new CR(this.k*P,this.x,this.y)},
translate:function(P,w){return P===0&w===0?this:new CR(this.k,this.x+this.k*P,this.y+this.k*w)},
apply:function(P){return[P[0]*this.k+this.x,P[1]*this.k+this.y]},
invert:function(P){return[(P[0]-this.x)/this.k,(P[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new CR(1,0,0);DyH=HE;Sl.svg=Sl.svg;Sl.xhtml=Sl.xhtml;Sl.xlink=Sl.xlink;Sl.xml=Sl.xml;Sl.xmlns=Sl.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 DX0="hammer_"+(Math.random()*1E6|0),dXw=function(){var u=document||document;if(!u[DX0]){var K=function(){(function(l,D,d,C){function W(aR,Th,ky){return setTimeout(x(aR,ky),Th)}
function M(aR,Th,ky){return Array.isArray(aR)?(q(aR,ky[Th],ky),!0):!1}
function q(aR,Th,ky){var x0;if(aR)if(aR.forEach)aR.forEach(Th,ky);else if(aR.length!==C){var WE=0;for(x0=aR.length;WE<x0;WE++)Th.call(ky,aR[WE],WE,aR)}else for(WE in aR)aR.hasOwnProperty(WE)&&Th.call(ky,aR[WE],WE,aR)}
function v(aR,Th,ky){for(var x0=Object.keys(Th),WE=0,Pr=x0.length;WE<Pr;WE++)if(!ky||ky&&aR[x0[WE]]===C)aR[x0[WE]]=Th[x0[WE]];return aR}
function G(aR,Th){return v(aR,Th,!0)}
function t(aR,Th,ky){Th=Th.prototype;var x0=aR.prototype=Object.create(Th);x0.constructor=aR;x0._super=Th;ky&&v(x0,ky)}
function x(aR,Th){return function(){return aR.apply(Th,arguments)}}
function O(aR,Th){return typeof aR=="function"?aR.apply(Th?Th[0]||C:C,Th):aR}
function a(aR,Th,ky){q(B(Th),function(x0){aR.addEventListener(x0,ky,!1)})}
function f(aR,Th,ky){q(B(Th),function(x0){aR.removeEventListener(x0,ky,!1)})}
function B(aR){return aR.trim().split(/\s+/g)}
function p(aR,Th,ky){if(aR.indexOf&&!ky)return aR.indexOf(Th);for(var x0=0,WE=aR.length;x0<WE;x0++)if(ky&&aR[x0][ky]==Th||!ky&&aR[x0]===Th)return x0;return-1}
function V(aR,Th,ky){for(var x0=[],WE=[],Pr=0,xp=aR.length;Pr<xp;Pr++){var S2=Th?aR[Pr][Th]:aR[Pr];p(WE,S2)<0&&x0.push(aR[Pr]);WE[Pr]=S2}ky&&(x0=Th?x0.sort(function(va,R2){return va[Th]>R2[Th]}):x0.sort());
return x0}
function m(aR,Th){for(var ky,x0=Th[0].toUpperCase()+Th.slice(1),WE=0,Pr=oC.length;WE<Pr;WE++)if(ky=(ky=oC[WE])?ky+x0:Th,ky in aR)return ky;return C}
function Z(aR,Th){var ky=this;this.manager=aR;this.callback=Th;this.element=aR.element;this.target=aR.options.inputTarget;this.domHandler=function(x0){O(aR.options.enable,[aR])&&ky.handler(x0)};
this.evEl&&a(this.element,this.evEl,this.domHandler);this.evTarget&&a(this.target,this.evTarget,this.domHandler);this.evWin&&a(l,this.evWin,this.domHandler)}
function A(aR){var Th;aO?Th=gq:mf?Th=Bo:HE?Th=uk:Th=tH;return new Th(aR,h)}
function h(aR,Th,ky){var x0=ky.pointers.length,WE=ky.changedPointers.length,Pr=Th&1&&x0-WE===0;ky.isFirst=!!Pr;ky.isFinal=!!(Th&12&&x0-WE===0);Pr&&(aR.session={});ky.eventType=Th;Th=aR.session;x0=ky.pointers;WE=x0.length;Th.firstInput||(Th.firstInput=C9(ky));WE>1&&!Th.firstMultiple?Th.firstMultiple=C9(ky):WE===1&&(Th.firstMultiple=!1);Pr=Th.firstInput;var xp=(WE=Th.firstMultiple)?WE.center:Pr.center,S2=ky.center=Wo(x0);ky.timeStamp=RC();ky.deltaTime=ky.timeStamp-Pr.timeStamp;ky.angle=UZ(xp,S2);ky.distance=
co(xp,S2);Pr=ky.center;xp=Th.offsetDelta||{};S2=Th.prevDelta||{};var va=Th.prevInput||{};if(ky.eventType===1||va.eventType===4)S2=Th.prevDelta={x:va.deltaX||0,y:va.deltaY||0},xp=Th.offsetDelta={x:Pr.x,y:Pr.y};ky.deltaX=S2.x+(Pr.x-xp.x);ky.deltaY=S2.y+(Pr.y-xp.y);ky.offsetDirection=$y(ky.deltaX,ky.deltaY);WE?(Pr=WE.pointers,Pr=co(x0[0],x0[1],PE)/co(Pr[0],Pr[1],PE)):Pr=1;ky.scale=Pr;WE?(WE=WE.pointers,x0=UZ(x0[1],x0[0],PE)-UZ(WE[1],WE[0],PE)):x0=0;ky.rotation=x0;xp=Th.lastInterval||ky;x0=ky.timeStamp-
xp.timeStamp;ky.eventType!=8&&(x0>25||xp.velocity===C)?(Pr=xp.deltaX-ky.deltaX,xp=xp.deltaY-ky.deltaY,S2=Pr/x0||0,va=xp/x0||0,x0=S2,WE=va,S2=aC(S2)>aC(va)?S2:va,Pr=$y(Pr,xp),Th.lastInterval=ky):(S2=xp.velocity,x0=xp.velocityX,WE=xp.velocityY,Pr=xp.direction);ky.velocity=S2;ky.velocityX=x0;ky.velocityY=WE;ky.direction=Pr;Th=aR.element;a:{for(x0=ky.srcEvent.target;x0;){if(x0==Th){x0=!0;break a}x0=x0.parentNode}x0=!1}x0&&(Th=ky.srcEvent.target);ky.target=Th;aR.emit("hammer.input",ky);aR.recognize(ky);
aR.session.prevInput=ky}
function C9(aR){for(var Th=[],ky=0;ky<aR.pointers.length;ky++)Th[ky]={clientX:$p(aR.pointers[ky].clientX),clientY:$p(aR.pointers[ky].clientY)};return{timeStamp:RC(),pointers:Th,center:Wo(Th),deltaX:aR.deltaX,deltaY:aR.deltaY}}
function Wo(aR){var Th=aR.length;if(Th===1)return{x:$p(aR[0].clientX),y:$p(aR[0].clientY)};for(var ky=0,x0=0,WE=0;WE<Th;WE++)ky+=aR[WE].clientX,x0+=aR[WE].clientY;return{x:$p(ky/Th),y:$p(x0/Th)}}
function $y(aR,Th){return aR===Th?1:aC(aR)>=aC(Th)?aR>0?2:4:Th>0?8:16}
function co(aR,Th,ky){ky||(ky=AR);var x0=Th[ky[0]]-aR[ky[0]];aR=Th[ky[1]]-aR[ky[1]];return Math.sqrt(x0*x0+aR*aR)}
function UZ(aR,Th,ky){ky||(ky=AR);return Math.atan2(Th[ky[1]]-aR[ky[1]],Th[ky[0]]-aR[ky[0]])*180/Math.PI}
function tH(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;Z.apply(this,arguments)}
function gq(){this.evEl=Y$;this.evWin=J9;Z.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Bo(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};Z.apply(this,arguments)}
function uk(){Z.apply(this,arguments);var aR=x(this.handler,this);this.touch=new Bo(this.manager,aR);this.mouse=new tH(this.manager,aR)}
function ca(aR,Th){this.manager=aR;this.set(Th)}
function Ha(aR){if(aR.indexOf("none")>-1)return"none";var Th=aR.indexOf("pan-x")>-1,ky=aR.indexOf("pan-y")>-1;return Th&&ky?"pan-x pan-y":Th||ky?Th?"pan-x":"pan-y":aR.indexOf("manipulation")>-1?"manipulation":"auto"}
function hH(aR){this.id=tE++;this.manager=null;this.options=G(aR||{},this.defaults);aR=this.options.enable;this.options.enable=aR===C?!0:aR;this.state=1;this.simultaneous={};this.requireFail=[]}
function tR(aR){return aR==16?"down":aR==8?"up":aR==2?"left":aR==4?"right":""}
function ns(aR,Th){return(Th=Th.manager)?Th.get(aR):aR}
function Pa(){hH.apply(this,arguments)}
function QV(){Pa.apply(this,arguments);this.pY=this.pX=null}
function Ls(){Pa.apply(this,arguments)}
function yn(){hH.apply(this,arguments);this._input=this._timer=null}
function dN(){Pa.apply(this,arguments)}
function OB(){Pa.apply(this,arguments)}
function vE(){hH.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Gw(aR,Th){Th=Th||{};var ky=Th.recognizers;Th.recognizers=ky===C?Gw.defaults.preset:ky;return new Vm(aR,Th)}
function Vm(aR,Th){Th=Th||{};this.options=G(Th,Gw.defaults);this.options.inputTarget=this.options.inputTarget||aR;this.handlers={};this.session={};this.recognizers=[];this.element=aR;this.input=A(this);this.touchAction=new ca(this,this.options.touchAction);DI(this,!0);q(Th.recognizers,function(ky){var x0=this.add(new ky[0](ky[1]));ky[2]&&x0.recognizeWith(ky[2]);ky[3]&&x0.requireFailure(ky[2])},this)}
function DI(aR,Th){var ky=aR.element;q(aR.options.cssProps,function(x0,WE){ky.style[m(ky.style,WE)]=Th?x0:""})}
function uG(aR,Th){var ky=D.createEvent("Event");ky.initEvent(aR,!0,!0);ky.gesture=Th;Th.target.dispatchEvent(ky)}
var oC=" webkit moz MS ms o".split(" "),ma=D.createElement("div"),$p=Math.round,aC=Math.abs,RC=Date.now,tE=1,HZ=/mobile|tablet|ip(ad|hone|od)|android/i,HE="ontouchstart"in l,aO=m(l,"PointerEvent")!==C,mf=HE&&HZ.test(navigator.userAgent),AR=["x","y"],PE=["clientX","clientY"];Z.prototype={handler:function(){},
destroy:function(){this.evEl&&f(this.element,this.evEl,this.domHandler);this.evTarget&&f(this.target,this.evTarget,this.domHandler);this.evWin&&f(l,this.evWin,this.domHandler)}};
var Dk={mousedown:1,mousemove:2,mouseup:4};t(tH,Z,{handler:function(aR){var Th=Dk[aR.type];Th&1&&aR.button===0&&(this.pressed=!0);Th&2&&aR.which!==1&&(Th=4);this.pressed&&this.allow&&(Th&4&&(this.pressed=!1),this.callback(this.manager,Th,{pointers:[aR],changedPointers:[aR],pointerType:"mouse",srcEvent:aR}))}});
var hE={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},CU={2:"touch",3:"pen",4:"mouse",5:"kinect"},Y$="pointerdown",J9="pointermove pointerup pointercancel";l.MSPointerEvent&&(Y$="MSPointerDown",J9="MSPointerMove MSPointerUp MSPointerCancel");t(gq,Z,{handler:function(aR){var Th=this.store,ky=!1,x0=aR.type.toLowerCase().replace("ms","");x0=hE[x0];var WE=CU[aR.pointerType]||aR.pointerType;x0&1&&(aR.button===0||WE=="touch")?Th.push(aR):x0&12&&(ky=!0);var Pr=p(Th,aR.pointerId,"pointerId");
Pr<0||(Th[Pr]=aR,this.callback(this.manager,x0,{pointers:Th,changedPointers:[aR],pointerType:WE,srcEvent:aR}),ky&&Th.splice(Pr,1))}});
var Jg={touchstart:1,touchmove:2,touchend:4,touchcancel:8};t(Bo,Z,{handler:function(aR){var Th=Jg[aR.type];var ky=Array.prototype.slice.call(aR.touches,0);var x0=this.targetIds;if(Th&3&&ky.length===1)x0[ky[0].identifier]=!0,x0=[ky,ky];else{var WE,Pr=Array.prototype.slice.call(aR.targetTouches,0),xp=Array.prototype.slice.call(aR.changedTouches,0),S2=[];if(Th===1)for(ky=0,WE=Pr.length;ky<WE;ky++)x0[Pr[ky].identifier]=!0;ky=0;for(WE=xp.length;ky<WE;ky++)x0[xp[ky].identifier]&&S2.push(xp[ky]),Th&12&&
delete x0[xp[ky].identifier];x0=S2.length?[V(Pr.concat(S2),"identifier",!0),S2]:void 0}x0&&this.callback(this.manager,Th,{pointers:x0[0],changedPointers:x0[1],pointerType:"touch",srcEvent:aR})}});
t(uk,Z,{handler:function(aR,Th,ky){var x0=ky.pointerType=="mouse";if(ky.pointerType=="touch")this.mouse.allow=!1;else if(x0&&!this.mouse.allow)return;Th&12&&(this.mouse.allow=!0);this.callback(aR,Th,ky)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Jm=m(ma.style,"touchAction"),JV=Jm!==C;ca.prototype={set:function(aR){aR=="compute"&&(aR=this.compute());JV&&(this.manager.element.style[Jm]=aR);this.actions=aR.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var aR=[];q(this.manager.recognizers,function(Th){O(Th.options.enable,[Th])&&(aR=aR.concat(Th.getTouchAction()))});
return Ha(aR.join(" "))},
preventDefaults:function(aR){if(!JV){var Th=aR.srcEvent;aR=aR.offsetDirection;if(this.manager.session.prevented)Th.preventDefault();else{var ky=this.actions,x0=ky.indexOf("none")>-1,WE=ky.indexOf("pan-y")>-1;ky=ky.indexOf("pan-x")>-1;if(x0||WE&&ky||WE&&aR&6||ky&&aR&24)return this.preventSrc(Th)}}},
preventSrc:function(aR){this.manager.session.prevented=!0;aR.preventDefault()}};
hH.prototype={defaults:{},set:function(aR){v(this.options,aR);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(aR){if(M(aR,"recognizeWith",this))return this;var Th=this.simultaneous;aR=ns(aR,this);Th[aR.id]||(Th[aR.id]=aR,aR.recognizeWith(this));return this},
dropRecognizeWith:function(aR){if(M(aR,"dropRecognizeWith",this))return this;aR=ns(aR,this);delete this.simultaneous[aR.id];return this},
requireFailure:function(aR){if(M(aR,"requireFailure",this))return this;var Th=this.requireFail;aR=ns(aR,this);p(Th,aR)===-1&&(Th.push(aR),aR.requireFailure(this));return this},
dropRequireFailure:function(aR){if(M(aR,"dropRequireFailure",this))return this;aR=ns(aR,this);aR=p(this.requireFail,aR);aR>-1&&this.requireFail.splice(aR,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(aR){return!!this.simultaneous[aR.id]},
emit:function(aR){function Th(WE){ky.manager.emit(ky.options.event+(WE?x0&16?"cancel":x0&8?"end":x0&4?"move":x0&2?"start":"":""),aR)}
var ky=this,x0=this.state;x0<8&&Th(!0);Th();x0>=8&&Th(!0)},
tryEmit:function(aR){if(this.canEmit())return this.emit(aR);this.state=32},
canEmit:function(){for(var aR=0;aR<this.requireFail.length;aR++)if(!(this.requireFail[aR].state&33))return!1;return!0},
recognize:function(aR){aR=v({},aR);O(this.options.enable,[this,aR])?(this.state&56&&(this.state=1),this.state=this.process(aR),this.state&30&&this.tryEmit(aR)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
t(Pa,hH,{defaults:{pointers:1},attrTest:function(aR){var Th=this.options.pointers;return Th===0||aR.pointers.length===Th},
process:function(aR){var Th=this.state,ky=aR.eventType,x0=Th&6;aR=this.attrTest(aR);return x0&&(ky&8||!aR)?Th|16:x0||aR?ky&4?Th|8:Th&2?Th|4:2:32}});
t(QV,Pa,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var aR=this.options.direction;if(aR===30)return["none"];var Th=[];aR&6&&Th.push("pan-y");aR&24&&Th.push("pan-x");return Th},
directionTest:function(aR){var Th=this.options,ky=!0,x0=aR.distance,WE=aR.direction,Pr=aR.deltaX,xp=aR.deltaY;WE&Th.direction||(Th.direction&6?(WE=Pr===0?1:Pr<0?2:4,ky=Pr!=this.pX,x0=Math.abs(aR.deltaX)):(WE=xp===0?1:xp<0?8:16,ky=xp!=this.pY,x0=Math.abs(aR.deltaY)));aR.direction=WE;return ky&&x0>Th.threshold&&WE&Th.direction},
attrTest:function(aR){return Pa.prototype.attrTest.call(this,aR)&&(this.state&2||!(this.state&2)&&this.directionTest(aR))},
emit:function(aR){this.pX=aR.deltaX;this.pY=aR.deltaY;var Th=tR(aR.direction);Th&&this.manager.emit(this.options.event+Th,aR);this._super.emit.call(this,aR)}});
t(Ls,Pa,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(aR){return this._super.attrTest.call(this,aR)&&(Math.abs(aR.scale-1)>this.options.threshold||this.state&2)},
emit:function(aR){this._super.emit.call(this,aR);aR.scale!==1&&this.manager.emit(this.options.event+(aR.scale<1?"in":"out"),aR)}});
t(yn,hH,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(aR){var Th=this.options,ky=aR.pointers.length===Th.pointers,x0=aR.distance<Th.threshold,WE=aR.deltaTime>Th.time;this._input=aR;if(!x0||!ky||aR.eventType&12&&!WE)this.reset();else if(aR.eventType&1)this.reset(),this._timer=W(function(){this.state=8;this.tryEmit()},Th.time,this);
else if(aR.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(aR){this.state===8&&(aR&&aR.eventType&4?this.manager.emit(this.options.event+"up",aR):(this._input.timeStamp=RC(),this.manager.emit(this.options.event,this._input)))}});
t(dN,Pa,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(aR){return this._super.attrTest.call(this,aR)&&(Math.abs(aR.rotation)>this.options.threshold||this.state&2)}});
t(OB,Pa,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return QV.prototype.getTouchAction.call(this)},
attrTest:function(aR){var Th=this.options.direction;if(Th&30)var ky=aR.velocity;else Th&6?ky=aR.velocityX:Th&24&&(ky=aR.velocityY);return this._super.attrTest.call(this,aR)&&Th&aR.direction&&aC(ky)>this.options.velocity&&aR.eventType&4},
emit:function(aR){var Th=tR(aR.direction);Th&&this.manager.emit(this.options.event+Th,aR);this.manager.emit(this.options.event,aR)}});
t(vE,hH,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(aR){var Th=this.options,ky=aR.pointers.length===Th.pointers,x0=aR.distance<Th.threshold,WE=aR.deltaTime<Th.time;this.reset();if(aR.eventType&1&&this.count===0)return this.failTimeout();if(x0&&WE&&ky){if(aR.eventType!=4)return this.failTimeout();ky=this.pTime?aR.timeStamp-this.pTime<Th.interval:!0;x0=!this.pCenter||co(this.pCenter,aR.center)<Th.posThreshold;this.pTime=aR.timeStamp;this.pCenter=aR.center;x0&&ky?this.count+=1:this.count=1;this._input=aR;if(this.count%Th.taps===0)return this.hasRequireFailures()?
(this._timer=W(function(){this.state=8;this.tryEmit()},Th.interval,this),2):8}return 32},
failTimeout:function(){this._timer=W(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))}});
Gw.VERSION="2.0.2";Gw.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[dN,{enable:!1}],[Ls,{enable:!1},["rotate"]],[OB,{direction:6}],[QV,{direction:6},["swipe"]],[vE],[vE,{event:"doubletap",taps:2},["tap"]],[yn]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Vm.prototype={set:function(aR){v(this.options,aR);return this},
stop:function(aR){this.session.stopped=aR?2:1},
recognize:function(aR){var Th=this.session;if(!Th.stopped){this.touchAction.preventDefaults(aR);var ky=this.recognizers,x0=Th.curRecognizer;if(!x0||x0&&x0.state&8)x0=Th.curRecognizer=null;for(var WE=0,Pr=ky.length;WE<Pr;WE++){var xp=ky[WE];Th.stopped===2||x0&&xp!=x0&&!xp.canRecognizeWith(x0)?xp.reset():xp.recognize(aR);!x0&&xp.state&14&&(x0=Th.curRecognizer=xp)}}},
get:function(aR){if(aR instanceof hH)return aR;for(var Th=this.recognizers,ky=0;ky<Th.length;ky++)if(Th[ky].options.event==aR)return Th[ky];return null},
add:function(aR){if(M(aR,"add",this))return this;var Th=this.get(aR.options.event);Th&&this.remove(Th);this.recognizers.push(aR);aR.manager=this;this.touchAction.update();return aR},
remove:function(aR){if(M(aR,"remove",this))return this;var Th=this.recognizers;aR=this.get(aR);Th.splice(p(Th,aR),1);this.touchAction.update();return this},
on:function(aR,Th){var ky=this.handlers;q(B(aR),function(x0){ky[x0]=ky[x0]||[];ky[x0].push(Th)});
return this},
off:function(aR,Th){var ky=this.handlers;q(B(aR),function(x0){Th?ky[x0].splice(p(ky[x0],Th),1):delete ky[x0]});
return this},
emit:function(aR,Th){this.options.domEvents&&uG(aR,Th);var ky=this.handlers[aR]&&this.handlers[aR].slice();if(ky&&ky.length){Th.type=aR;Th.preventDefault=function(){Th.srcEvent.preventDefault()};
aR=0;for(var x0=ky.length;aR<x0;aR++)ky[aR](Th)}},
destroy:function(){this.element&&DI(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
v(Gw,{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:Vm,Input:Z,TouchAction:ca,Recognizer:hH,AttrRecognizer:Pa,Tap:vE,Pan:QV,Swipe:OB,Pinch:Ls,Rotate:dN,Press:yn,on:a,off:f,each:q,merge:G,extend:v,inherit:t,bindFn:x,prefixed:m});
l[d]=Gw})(window,document,"Hammer");
return window.Hammer}.call({});
K.DOCUMENT=u;u[DX0]=K}return u[DX0]};/*

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

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 RER;_.eES="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");RER=function(){var u=[],K;var l=l||_.eES.length;for(K=0;K<8;K++)u[K]=_.eES[0|Math.random()*l];return u.join("")};var YRZ=function(){return Math.random().toString(36).substring(7).split("").join(".")},Zaq="@@redux/INIT"+YRZ(),mbq="@@redux/REPLACE"+YRZ();var hbn=typeof Symbol==="function"&&Symbol.observable||"@@observable";var UXa=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var faR="top right bottom left width height size weight".split(" "),QwS=typeof MutationObserver!=="undefined",Pew=UXa&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,JKm=function(){this.mutationEventsAdded_=this.JSC$11632_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=EAR(this.refresh.bind(this))},jwm=function(u,
K){var l=u.observers_;
K=l.indexOf(K);~K&&l.splice(K,1);!l.length&&u.JSC$11632_connected_&&UXa&&u.JSC$11632_connected_&&(document.removeEventListener("transitionend",u.onTransitionEnd_),window.removeEventListener("resize",u.refresh),u.mutationsObserver_&&(u.mutationsObserver_.disconnect(),Pew&&(HTMLElement.prototype.attachShadow=Pew)),u.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",u.refresh),u.mutationsObserver_=null,u.mutationEventsAdded_=!1,u.JSC$11632_connected_=!1)};
JKm.prototype.refresh=function(){BEw(this)&&this.refresh()};
var BEw=function(u){u=u.observers_.filter(function(K){return pJw(K),K.activeObservations_.length>0});
u.forEach(function(K){return i1R(K)});
return u.length>0},TE0=function(u){if(UXa&&!u.JSC$11632_connected_){document.addEventListener("transitionend",u.onTransitionEnd_);
window.addEventListener("resize",u.refresh);if(QwS){u.mutationsObserver_=new MutationObserver(u.refresh);var K={attributes:!0,childList:!0,characterData:!0,subtree:!0};u.mutationsObserver_.observe(document,K);Pew&&(function d(D){var C=D.shadowRoot;C&&(u.mutationsObserver_.observe(C,K),d(C));for(D=D.firstElementChild;D;)d(D),D=D.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var D=Pew.apply(this,_.uY.apply(0,arguments));
u.mutationsObserver_.observe(D,K);return D})}else document.addEventListener("DOMSubtreeModified",u.refresh),u.mutationEventsAdded_=!0;
u.JSC$11632_connected_=!0}};
JKm.prototype.onTransitionEnd_=function(u){var K=u.propertyName===void 0?"":u.propertyName;faR.some(function(l){return!!~K.indexOf(l)})&&this.refresh()};
var wJk=null;var Fok=function(u,K){for(var l=_.y(Object.keys(K)),D=l.next();!D.done;D=l.next())D=D.value,Object.defineProperty(u,D,{value:K[D],enumerable:!1,writable:!1,configurable:!0})};var he=function(u){var K;return(u==null?void 0:(K=u.ownerDocument)==null?void 0:K.defaultView)||globalThis};var VUa={x:0,y:0,width:0,height:0},gYa=typeof SVGGraphicsElement!=="undefined"?function(u){return u instanceof he(u).SVGGraphicsElement}:function(u){return u instanceof he(u).SVGElement&&typeof u.getBBox==="function"};var NEN=function(u){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=u};
NEN.prototype.isActive=function(){var u=this.target;if(UXa)if(gYa(u)){var K=u.getBBox();K={x:0,y:0,width:K.width,height:K.height}}else{var l=u.clientWidth,D=u.clientHeight;if(l||D){var d=he(u).getComputedStyle(u);K=fn(d["padding-top"]);var C=fn(d["padding-left"]),W=C+fn(d["padding-right"]),M=K+fn(d["padding-bottom"]),q=fn(d.width),v=fn(d.height);d.boxSizing==="border-box"&&(Math.round(q+W)!==l&&(q-=LIR(d,"left","right")+W),Math.round(v+M)!==D&&(v-=LIR(d,"top","bottom")+M));u!==he(u).document.documentElement&&
(u=Math.round(q+W)-l,D=Math.round(v+M)-D,Math.abs(u)!==1&&(q-=u),Math.abs(D)!==1&&(v-=D));K={x:C,y:K,width:q,height:v}}else K=VUa}else K=VUa;this.contentRect_=K;return K.width!==this.broadcastWidth||K.height!==this.broadcastHeight};var kTw=function(u,K){var l=K.x;var D=K.y;var d=K.width;K=K.height;var C=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);Fok(C,{x:l,y:D,width:d,height:K,top:D,right:l+d,bottom:K+D,left:l});Fok(this,{target:u,contentRect:C})};var Z1m=function(u,K){var l=wJk;this.activeObservations_=[];this.observations_=new Map;if(typeof u!=="function")throw new TypeError("Re");this.callback_=u;this.controller_=l;this.callbackCtx_=K};
Z1m.prototype.observe=function(u){if(u===void 0)throw new TypeError("Se");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(u instanceof he(u).Element))throw new TypeError("Te");var K=this.observations_;K.has(u)||(K.set(u,new NEN(u)),u=this.controller_,~u.observers_.indexOf(this)||u.observers_.push(this),u.JSC$11632_connected_||TE0(u),this.controller_.refresh())}};
Z1m.prototype.unobserve=function(u){if(u===void 0)throw new TypeError("Se");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(u instanceof he(u).Element))throw new TypeError("Te");var K=this.observations_;K.has(u)&&(K.delete(u),K.size||jwm(this.controller_,this))}};
Z1m.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();jwm(this.controller_,this)};
var pJw=function(u){u.activeObservations_.splice(0);u.observations_.forEach(function(K){K.isActive()&&u.activeObservations_.push(K)})},i1R=function(u){if(u.activeObservations_.length>0){var K=u.callbackCtx_,l=u.activeObservations_.map(function(D){var d=D.target,C=D.contentRect_;
D.broadcastWidth=C.width;D.broadcastHeight=C.height;return new kTw(d,C)});
u.callback_.call(K,l,K);u.activeObservations_.splice(0)}};var EF=function(u){if(!(this instanceof EF))throw new TypeError("Ue");if(!arguments.length)throw new TypeError("Se");wJk||(wJk=new JKm);this.observer_=new Z1m(u,this)};
EF.prototype.observe=function(u){this.observer_.observe(u)};
EF.prototype.unobserve=function(u){this.observer_.unobserve(u)};
EF.prototype.disconnect=function(){this.observer_.disconnect()};var gGq=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:EF;var y1q="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(" "),IVZ={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},C4Z=null,u4h=null;var sBL={},ozq=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 r1q={text:1},M3L={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var YKm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,AKN={CONSTANT:{isUnwrappable:function(u){return u instanceof Lp},
unwrap:isa},JAVASCRIPT:{isUnwrappable:function(u){return u instanceof _.WZ},
unwrap:kgh},HTML:{isUnwrappable:function(u){return u instanceof dm},
unwrap:function(u){return IS(u)}},
RESOURCE_URL:{isUnwrappable:function(u){return u instanceof wb},
unwrap:_.VS},STRING:{isUnwrappable:function(u){return u instanceof Object},
unwrap:function(u){return String(u)}},
STYLE:{isUnwrappable:function(u){return typeof u==="string"},
unwrap:function(u){return u}},
URL:{isUnwrappable:function(u){return Zk(u)},
unwrap:_.Yu}},XJR={CONSTANT:vzL,JAVASCRIPT:vzL,HTML:function(u){u=u instanceof dm?u:CH(String(u).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return IS(u)},
RESOURCE_URL:vzL,STRING:String,STYLE:vzL,URL:function(u,K){u=YKm.test(u)?u:void 0;return u===void 0?K:u}};var RNh=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,GYH=/[\t\n\f\r ]+/,xeq=/[\t\n\f\r ,]+/g,bJn=function(u,K,l){return l},jR={},mXw=function(){var u=function(){var D={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",D):D}(),K=u.createHTML(""),l=u.createScript("");
u=u.createScriptURL("");return{INNOCUOUS_STRING:K,INNOCUOUS_SCRIPT:l,INNOCUOUS_URL:u}}(),JC=mXw.INNOCUOUS_STRING,eN9=mXw.INNOCUOUS_SCRIPT,zNh=mXw.INNOCUOUS_URL;var hEa=function(u){var K=Uen(u);return function(l,D,d,C){return C?K(C,D,d,l):JC}}({reportHandler:function(u,K){if(u)try{throw Error(K);
}catch(l){_.Xm(l)}},
safeTypesBridge:function(u,K,l){var D=AKN[K];return D.isUnwrappable(u)&&(D=D.unwrap(u,l),D!==l)?D:(0,XJR[K])(String(u),l)},
allowedIdentifierPrefixes:[""]});if(B4!==void 0)throw Error("Ve");B4=hEa;if(B4!==hEa)throw Error("We");B_("Injectable",[]);var lCr=B_("Inject",[["token",void 0]]),dir=B_("Optional",[]);B_("Injectable",[]);var CAh=B_("Self",[]),ICq=B_("SkipSelf",[]);B_("Host",[]);var EYA={},Loa=function(){};
Loa.prototype.resolve=function(){throw Error("Ye");};
Loa.prototype.addProvider=function(){throw Error("Ye");};var uxR=Function;var uRN=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,KUC=function(){this._reflect=window.Reflect};
_.I=KUC.prototype;_.I.factory=function(u){return function(){return new (Function.prototype.bind.apply(u,[null].concat(_.Am(_.uY.apply(0,arguments)))))}};
_.I._zipTypesAndAnnotations=function(u,K){var l=typeof u==="undefined"?Array(K.length):Array(u.length);for(var D=0;D<l.length;D++)l[D]=typeof u==="undefined"?[]:u[D]!=Object?[u[D]]:[],K&&QBq(K[D])&&(l[D]=l[D].concat(K[D]));return l};
_.I._ownParameters=function(u,K){if(uRN.exec(u.toString()))return null;if(u.parameters&&u.parameters!==K.parameters)return u.parameters;var l=u.ctorParameters;return l&&l!==K.ctorParameters?(K=typeof l==="function"?l():l,u=K.map(function(D){return D&&D.type}),K=K.map(function(D){return D&&J1o(D.decorators)}),this._zipTypesAndAnnotations(u,K)):QBq(this._reflect)&&QBq(this._reflect.getOwnMetadata)&&(K=this._reflect.getOwnMetadata("parameters",u),(l=this._reflect.getOwnMetadata("design:paramtypes",u))||
K)?this._zipTypesAndAnnotations(l,K):Array(u.length).fill(void 0)};
_.I.parameters=function(u){if(!u.prototype)return[];var K=Object.getPrototypeOf(u.prototype).constructor;(u=this._ownParameters(u,K))||K===Object||(u=this.parameters(K));return u||[]};
_.I._ownAnnotations=function(u,K){if(u.annotations&&u.annotations!==K.annotations)return u=u.annotations,typeof u==="function"&&u.annotations&&(u=u.annotations),u;if(u.decorators&&u.decorators!==K.decorators)return J1o(u.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",u)};
_.I.annotations=function(u){var K=Object.getPrototypeOf(u.prototype).constructor;u=this._ownAnnotations(u,K)||[];return(K!==Object?this.annotations(K):[]).concat(u)};
_.I._ownPropMetadata=function(u,K){if(u.propMetadata&&u.propMetadata!==K.propMetadata)return u=u.propMetadata,typeof u==="function"&&u.propMetadata&&(u=u.propMetadata),u;if(u.propDecorators&&u.propDecorators!==K.propDecorators){var l=u.propDecorators,D={};Object.keys(l).forEach(function(d){D[d]=J1o(l[d])});
return D}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",u)};
_.I.propMetadata=function(u){var K=Object.getPrototypeOf(u.prototype).constructor,l={};if(K!==Object){var D=this.propMetadata(K);Object.keys(D).forEach(function(C){l[C]=D[C]})}var d=this._ownPropMetadata(u,K);
d&&Object.keys(d).forEach(function(C){var W=[];l.hasOwnProperty(C)&&W.push.apply(W,_.Am(l[C]));W.push.apply(W,_.Am(d[C]));l[C]=W});
return l};
_.I.getter=function(u){return function(K){return K[u]}};
_.I.setter=function(u){return function(K,l){return K[u]=l}};
_.I.method=function(u){return function(K,l){if(!K[u])throw Error("Ze`"+u);return K[u].apply(K,l)}};var lSR=function(){};var DCH=function(u){this.reflectionCapabilities=u};
_.c(DCH,lSR);_.I=DCH.prototype;_.I.factory=function(u){return this.reflectionCapabilities.factory(u)};
_.I.parameters=function(u){return this.reflectionCapabilities.parameters(u)};
_.I.annotations=function(u){return this.reflectionCapabilities.annotations(u)};
_.I.propMetadata=function(u){return this.reflectionCapabilities.propMetadata(u)};
_.I.getter=function(u){return this.reflectionCapabilities.getter(u)};
_.I.setter=function(u){return this.reflectionCapabilities.setter(u)};
_.I.method=function(u){return this.reflectionCapabilities.method(u)};var gzq=new DCH(new KUC);var uE=function(u,K){this.token=u;this.id=K;if(u===void 0||u===null)throw Error("df");};
_.MN.Object.defineProperties(uE.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return pn(this.token)}}});
_.MN.Object.defineProperties(uE,{JSC$11674_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return TS.JSC$11678_numberOfKeys}}});
var dCC=function(){this._allKeys=new Map};
dCC.prototype.get=function(u){if(u instanceof uE)return u;if(this._allKeys.has(u))return this._allKeys.get(u);var K=new uE(u,uE.JSC$11674_numberOfKeys);this._allKeys.set(u,K);return K};
_.MN.Object.defineProperties(dCC.prototype,{JSC$11678_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var TS=new dCC;var y59=function(u,K,l){this.key=u;this.optional=K;this.visibility=l},kYn=function(u){return new y59(u,!1,null)},Yuq=[],mer=function(u,K,l){this.key=u;
this.resolvedFactories=K;this.multiProvider=l},A1H=function(u,K,l,D){this.factory=u;
this.dependencies=K;this.providerClass=l;this.providerValue=D};var KP={},lE=function(u,K){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=K===void 0?null:K;u=_.y(u);for(K=u.next();!K.done;K=u.next())this.addProvider(K.value)};
_.I=lE.prototype;_.I.addProvider=function(u){this.keyIdToIndex.set(u.key.id,this.keyIds.length);this.providers.push(u);this.keyIds.push(u.key.id);this.objs.push(KP)};
_.I.resolve=function(u,K){K=K===void 0?EYA:K;return this._getByKey(TS.get(i0(u)),null,K)};
_.I._new=function(u){if(this.constructedKeyIds[u.key.id])throw wWn(this,u.key);this.constructedKeyIds[u.key.id]=!0;return this._instantiateProvider(u)};
_.I._instantiateProvider=function(u){if(u.multiProvider){for(var K=Array(u.resolvedFactories.length),l=0;l<u.resolvedFactories.length;++l)K[l]=this._instantiate(u,u.resolvedFactories[l]);return K}return this._instantiate(u,u.resolvedFactories[0])};
_.I._instantiate=function(u,K){var l=this,D=K.factory;try{var d=K.dependencies.map(function(W){return l._getByReflectiveDependency(W)})}catch(W){throw W.addKey&&W.addKey(this,u.key),W;
}try{var C=D.apply(null,_.Am(d))}catch(W){throw Fin(this,W,u.key);}return C};
_.I._getByReflectiveDependency=function(u){return this._getByKey(u.key,u.visibility,u.optional?null:EYA)};
_.I._getByKey=function(u,K,l){return u===CCw?this:K instanceof CAh?this._getByKeySelf(u,l):this._getByKeyDefault(u,l,K)};
_.I._getObjByKeyId=function(u){for(var K=0;K<this.keyIds.length;K++)if(this.keyIds[K]===u)return this.objs[K]===KP&&(this.objs[K]=this._new(this.providers[K])),this.objs[K];return KP};
_.I._throwOrNull=function(u,K){if(K!==EYA)return K;throw Tx9(this,u);};
_.I._getByKeySelf=function(u,K){var l=this._getObjByKeyId(u.id);return l!==KP?l:this._throwOrNull(u,K)};
_.I._getByKeyDefault=function(u,K,l){for(var D=l=l instanceof ICq?this.parent:this;l instanceof lE;){var d=l._getObjByKeyId(u.id);if(d!==KP)return d;l=l.parent}d=void 0;if(l!==null)try{var C=l.resolve(u.token,K);if(C!==KP)return C}catch(W){d=W}if(!(D instanceof lE&&o4b(u.token))){if(d)throw d;return this._throwOrNull(u,K)}for(C=D;C.parent instanceof lE;)C=C.parent;C.addProvider(hN9({provide:u.token,useClass:u.token}));return C.resolve(u.token,K)};
_.I.toString=function(){return this.displayName};
_.MN.Object.defineProperties(lE.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+sMy(this,function(u){return' "'+u.key.displayName+'" '}).join(", ")+"])"}}});
var CCw=TS.get(i0(Loa));(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 IS0=window.XRegExp;var y3N=-1,s52=function(u){addEventListener("pageshow",function(K){K.persisted&&(y3N=K.timeStamp,u(K))},!0)};var WUa=function(u,K,l){var D=oes,d,C;return function(W){if(K.value>=0&&(W||l)){var M;if((C=K.value-((M=d)!=null?M:0))||d===void 0)d=K.value,K.delta=C,W=K.value,K.rating=W>D[1]?"poor":W>D[0]?"needs-improvement":"good",u(K)}}};var HzR=function(u){requestAnimationFrame(function(){return requestAnimationFrame(function(){return u()})})};var Mdm=function(){var u=performance.getEntriesByType("navigation")[0];if(u&&u.responseStart>0&&u.responseStart<performance.now())return u};var qLB=function(){var u,K;return(K=(u=Mdm())==null?void 0:u.activationStart)!=null?K:0};var $CR=function(){var u=u===void 0?-1:u;var K=Mdm(),l="navigate";y3N>=0?l="back-forward-cache":K&&(document.prerendering||qLB()>0?l="prerender":document.wasDiscarded?l="restore":K.type&&(l=K.type.replace(/_/g,"-")));return{name:"LCP",value:u,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:l}};var HXy=new WeakMap;var nea=function(u){var K=K===void 0?{}:K;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var l=new PerformanceObserver(function(D){Promise.resolve().then(function(){u(D.getEntries())})});
l.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},K));return l}}catch(D){}};var r3a=function(u){var K=!1;return function(){K||(u(),K=!0)}};var D3=-1,veS=function(u){document.visibilityState==="hidden"&&D3>-1&&(D3=u.type==="visibilitychange"?u.timeStamp:0,removeEventListener("visibilitychange",veS,!0),removeEventListener("prerenderingchange",veS,!0))},GkS=function(){addEventListener("visibilitychange",veS,!0);
addEventListener("prerenderingchange",veS,!0)},tdm=function(){if(D3<0){var u=qLB(),K,l;
D3=(l=document.prerendering?void 0:(K=globalThis.performance.getEntriesByType("visibility-state").filter(function(D){return D.name==="hidden"&&D.startTime>u})[0])==null?void 0:K.startTime)!=null?l:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
GkS();s52(function(){setTimeout(function(){D3=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;GkS()})})}return{get firstHiddenTime(){return D3}}};var xCk=function(u){document.prerendering?addEventListener("prerenderingchange",function(){return u()},!0):u()};var SLm=function(u){var K=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?u():(u=r3a(u),document.addEventListener("visibilitychange",u,{once:!0}),K(function(){u();document.removeEventListener("visibilitychange",u)}))};var Wmb=function(){};
Wmb.prototype._processEntry=function(u){var K;(K=this._onBeforeProcessingEntry)==null||K.call(this,u)};var oes=[2500,4E3],hlH=function(u){var K=K===void 0?{}:K;xCk(function(){var l=tdm(),D=$CR(),d=MSq(K),C=function(t){K.reportAllChanges||(t=t.slice(-1));t=_.y(t);for(var x=t.next();!x.done;x=t.next())x=x.value,d._processEntry(x),x.startTime<l.firstHiddenTime&&(D.value=Math.max(x.startTime-qLB(),0),D.entries=[x],M())},W=nea(C);
if(W){var M=WUa(u,D,K.reportAllChanges);for(var q=r3a(function(){C(W.takeRecords());W.disconnect();M(!0)}),v=_.y(["keydown",
"click","visibilitychange"]),G=v.next();!G.done;G=v.next())addEventListener(G.value,function(){return SLm(q)},{capture:!0,
once:!0});s52(function(t){D=$CR();M=WUa(u,D,K.reportAllChanges);HzR(function(){D.value=performance.now()-t.timeStamp;M(!0)})})}})};var bzs;var OzR;_.k=function(){return OzR!==void 0?OzR:OzR=document.createElement("template")};
document.head.appendChild(_.k().content);var c3H;_.YH({_template:function(){if(c3H!==void 0)return c3H;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
var K=u.content,l=K.insertBefore;bzs===void 0&&(bzs=document.createElement("template"));var D=bzs;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return c3H=u},
is:"tp-yt-app-toolbar"});var aSw;var zBs;_.d0=function(){};
_.d0=_.YH({_template:function(){if(zBs!==void 0)return zBs;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;aSw===void 0&&(aSw=document.createElement("template"));var D=aSw;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return zBs=u},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.d0.instance||(_.d0.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(u){this._text===u&&(u+="\u00a0");this._text="";this.async(function(){this._text=u},this.timeout)},
_onIronAnnounce:function(u){u.detail&&u.detail.text&&this.announce(u.detail.text)}});
_.d0.instance=null;_.d0.requestAvailability=function(){_.d0.instance||(_.d0.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.d0.instance):document.addEventListener("load",function(){document.body.appendChild(_.d0.instance)})};var eBs;var RBw;/*

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

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

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 kkB=new _.ND({type:"iconset"});
_.YH({_template:function(){if(Nsw!==void 0)return Nsw;var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;geH===void 0&&(geH=document.createElement("template"));
var D=geH;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return Nsw=u},
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(u){u=(u||"").split(":");this._iconName=u.pop();this._iconsetName=u.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&&_.wM(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=kkB.byKey(this._iconsetName)){var u=this._iconset.applyIcon(this,this._iconName,this.theme);u&&u.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,_.wM(this.root).appendChild(this._img)}});var ZzS;var YLm;_.YH({_template:function(){if(YLm!==void 0)return YLm;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
var K=u.content,l=K.insertBefore;ZzS===void 0&&(ZzS=document.createElement("template"));var D=ZzS;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return YLm=u},
is:"tp-yt-iron-input",behaviors:[_.Zj],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(){_.d0.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.wM(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.wM(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 u=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":u=/[0-9.,e-]/}return u},_bindValueChanged:function(u,K){K&&(u===void 0?K.value=null:u!==K.value&&(this.inputElement.value=u),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:u}))},
_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(u){var K=u.keyCode==19||u.keyCode==20||u.keyCode==45||u.keyCode==46||u.keyCode==144||u.keyCode==145||u.keyCode>32&&u.keyCode<41||u.keyCode>111&&u.keyCode<124;return!(u.keyCode==8||u.keyCode==9||u.keyCode==13||u.keyCode==27)&&!(u.charCode==0&&K)},
_onKeypress:function(u){if(this.allowedPattern||this.inputElement.type==="number"){var K=this._patternRegExp;if(K&&!(u.metaKey||u.ctrlKey||u.altKey)){this._patternAlreadyChecked=!0;var l=String.fromCharCode(u.charCode);this._isPrintable(u)&&!K.test(l)&&(u.preventDefault(),this._announceInvalidCharacter("Invalid character "+l+" not entered."))}}},
_checkPatternValidity:function(){var u=this._patternRegExp;if(!u)return!0;for(var K=0;K<this.inputElement.value.length;K++)if(!u.test(this.inputElement.value[K]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var u=this.inputElement.checkValidity();u&&(this.required&&this.bindValue===""?u=!1:this.hasValidator()&&(u=_.Zj.validate.call(this,this.bindValue)));this.invalid=!u;this.fire("iron-input-validate");return u},
_announceInvalidCharacter:function(u){this.fire("iron-announce",{text:u})},
_computeValue:function(u){return u}});var A3m;var Xkw;var mCS=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),hBa=mCS&&mCS[1]>=8;
_.YH({_template:function(){if(Xkw!==void 0)return Xkw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;A3m===void 0&&(A3m=document.createElement("template"));var D=A3m;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return Xkw=u},
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:[p6q,_.Ae,_.SKC,s7N],_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 _.wM(_.wM(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var u=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,u-this._physicalCount)},set _virtualStart(u){u=this._clamp(u,0,this._maxVirtualStart);this.grid&&(u-=u%this._itemsPerRow);this._virtualStartVal=u},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(u){u%=this._physicalCount;u<0&&(u=this._physicalCount+u);this.grid&&(u-=u%this._itemsPerRow);this._physicalStartVal=u},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(u){this._physicalCountVal=u},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 u=this._firstVisibleIndexVal;if(u==null){var K=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
u=this._iterateItems(function(l,D){K+=this._getPhysicalSizeIncrement(l);if(K>this._scrollPosition)return this.grid?D-D%this._itemsPerRow:D;if(this.grid&&this._virtualCount-1===D)return D-D%this._itemsPerRow})||0}return u},
get lastVisibleIndex(){var u=this._lastVisibleIndexVal;if(u==null){if(this.grid)u=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var K=this._physicalTop+this._scrollOffset;this._iterateItems(function(l,D){K<this._scrollBottom&&(u=D);K+=this._getPhysicalSizeIncrement(l)})}this._lastVisibleIndexVal=u}return u},
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,_.Zp);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(u){this.style.webkitOverflowScrolling=u===this?"touch":"";this.style.overflowY=u===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.Zp)},
updateViewportBoundaries:function(){var u=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(u["padding-top"],10);this._isRTL=u.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var u=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),K=u-this._scrollPosition,l=K>=0;this._scrollPosition=u;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(K)>this._physicalSize&&this._physicalSize>0?(K-=this._scrollOffset,l=Math.round(K/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=l,this._physicalStart+=l,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(u=this._getReusables(l),l?(this._physicalTop=u.physicalTop,this._virtualStart+=u.indexes.length,this._physicalStart+=u.indexes.length):(this._virtualStart=this._virtualStart-u.indexes.length,this._physicalStart=this._physicalStart-u.indexes.length),this._update(u.indexes,l?null:u.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),mY))},
_getReusables:function(u){var K=[],l=this._hiddenContentSize*this._ratio,D=this._virtualStart,d=this._virtualEnd,C=this._physicalCount,W=this._physicalTop+this._scrollOffset;var M=this._physicalBottom+this._scrollOffset;var q=this._scrollPosition,v=this._scrollBottom;if(u){var G=this._physicalStart;M=q-W}else G=this._physicalEnd,M-=v;for(;;){var t=this._getPhysicalSizeIncrement(G);M-=t;if(K.length>=C||M<=l)break;if(u){if(d+K.length+1>=this._virtualCount)break;if(W+t>=q-this._scrollOffset)break;K.push(G);
W+=t;G=(G+1)%C}else{if(D-K.length<=0)break;if(W+this._physicalSize-t<=v)break;K.push(G);W-=t;G=G===0?C-1:G-1}}return{indexes:K,physicalTop:W-this._scrollOffset}},
_update:function(u,K){if(!(u&&u.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(u);this._updateMetrics(u);if(K)for(;K.length;)u=K.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(u);this._positionItems();this._updateScrollerSize()}},
_createPool:function(u){this._ensureTemplatized();var K,l=Array(u);for(K=0;K<u;K++){var D=this.stamp(null);l[K]=D.root.querySelector("*");this._itemsParent.appendChild(D.root)}return l},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(u){u=this._clamp(this._physicalCount+u,3,this._virtualCount-this._virtualStart);u=this._convertIndexToCompleteRow(u);if(this.grid){var K=u%this._itemsPerRow;K&&u-K<=this._physicalCount&&(u+=this._itemsPerRow);u-=K}u-=this._physicalCount;K=Math.round(this._physicalCount*.5);if(!(u<0)){if(u>0){K=window.performance.now();[].push.apply(this._physicalItems,this._createPool(u));for(var l=0;l<u;l++)this._physicalSizes.push(0);this._physicalCount+=u;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=u);this._update();this._templateCost=(window.performance.now()-K)/u;K=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||K===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,K)),Nda):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,K),mY))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var u=this._getReusables(!0);this._physicalTop=u.physicalTop;this._virtualStart+=u.indexes.length;this._physicalStart+=u.indexes.length;this._update(u.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 u={__key__:!0};u[this.as]=!0;u[this.indexAs]=!0;u[this.selectedAs]=!0;u.tabIndex=!0;this._instanceProps=u;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(u,K){typeof K!=="undefined"&&(this.notifyResize(),_.fW(),u&&this._updateGridMetrics())},
_itemsChanged:function(u){if(u.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,
_.Zp);else if(u.path==="items.splices"){this._adjustVirtualIndex(u.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(u.value.indexSplices.some(function(l){return l.addedCount>0||l.removed.length>0})){var K=this._getActiveElement();
this.contains(K)&&K.blur()}u=u.value.indexSplices.some(function(l){return l.index+l.addedCount>=this._virtualStart&&l.index<=this._virtualEnd},this);
this._isClientFull()&&!u||this._debounce("_render",this._render,_.Zp)}else u.path!=="items.length"&&this._forwardItemPath(u.path,u.value)},
_forwardItemPath:function(u,K){u=u.slice(6);var l=u.indexOf(".");l===-1&&(l=u.length);var D,d=this.modelForElement(this._offscreenFocusedItem),C=parseInt(u.substring(0,l),10);if(D=this._isIndexRendered(C)){var W=this._getPhysicalIndex(C);var M=this.modelForElement(this._physicalItems[W])}else d&&(M=d);M&&M[this.indexAs]===C&&(u=u.substring(l+1),u=this.as+(u?"."+u:""),M._setPendingPropertyOrPath(u,K,!1,!0),M._flushProperties&&M._flushProperties(),D&&(this._updateMetrics([W]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(u){u.forEach(function(K){K.removed.forEach(this._removeItem,this);K.index<this._virtualStart&&(K=Math.max(K.addedCount-K.removed.length,K.index-this._virtualStart),this._virtualStart+=K,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=K))},this)},
_removeItem:function(u){this.$.selector.deselect(u);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===u&&this._removeFocusedItem()},
_iterateItems:function(u,K){var l,D;if(arguments.length===2&&K)for(D=0;D<K.length;D++){var d=K[D];var C=this._computeVidx(d);if((l=u.call(this,d,C))!=null)return l}else{d=this._physicalStart;for(C=this._virtualStart;d<this._physicalCount;d++,C++)if((l=u.call(this,d,C))!=null)return l;for(d=0;d<this._physicalStart;d++,C++)if((l=u.call(this,d,C))!=null)return l}},
_computeVidx:function(u){return u>=this._physicalStart?this._virtualStart+(u-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+u},
_assignModels:function(u){this._iterateItems(function(K,l){var D=this._physicalItems[K],d=this.items&&this.items[l];if(d!=null){var C=this.modelForElement(D);C.__key__=null;this._forwardProperty(C,this.as,d);this._forwardProperty(C,this.selectedAs,this.$.selector.isSelected(d));this._forwardProperty(C,this.indexAs,l);this._forwardProperty(C,"tabIndex",this._focusedVirtualIndex===l?0:-1);this._physicalIndexForKey[C.__key__]=K;C._flushProperties&&C._flushProperties(!0);D.removeAttribute("hidden")}else D.setAttribute("hidden",
"")},u)},
_updateMetrics:function(u){_.fW();var K=0,l=0,D=this._physicalAverageCount,d=this._physicalAverage;this._iterateItems(function(C){l+=this._physicalSizes[C];this._physicalSizes[C]=this._physicalItems[C].offsetHeight;K+=this._physicalSizes[C];this._physicalAverageCount+=this._physicalSizes[C]?1:0},u);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(l=this._itemsPerRow===1?l:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+K-l,this._itemsPerRow=1);this._physicalAverageCount!==D&&(this._physicalAverage=Math.round((d*D+K)/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 u=this._physicalTop;if(this.grid){var K=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(l,D){var d=Math.floor(D%this._itemsPerRow*this._itemWidth+K);this._isRTL&&(d*=-1);this.translate3d(d+"px",u+"px",0,this._physicalItems[l]);this._shouldRenderNextRow(D)&&(u+=this._rowHeight)})}else this._iterateItems(function(l){this.translate3d(0,u+"px",0,this._physicalItems[l]);
u+=this._physicalSizes[l]})},
_getPhysicalSizeIncrement:function(u){return this.grid?this._computeVidx(u)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[u]},
_shouldRenderNextRow:function(u){return u%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var u=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(u!==0){this._physicalTop=this._physicalTop-u;var K=this._scrollPosition;!hBa&&K>0&&this._resetScrollPosition(K-u)}},
_resetScrollPosition:function(u){this.scrollTarget&&u>=0&&(this._scrollPosition=this._scrollTop=u)},
_updateScrollerSize:function(u){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((u=(u=(u=u||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(u){return this.scrollToIndex(this.items.indexOf(u))},
scrollToIndex:function(u){if(!(typeof u!=="number"||u<0||u>this.items.length-1)&&(_.fW(),this._physicalCount!==0)){u=this._clamp(u,0,this._virtualCount-1);if(!this._isIndexRendered(u)||u>=this._maxVirtualStart)this._virtualStart=this.grid?u-this._itemsPerRow*2:u-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var K=this._physicalStart,l=this._virtualStart,D=0,d=this._hiddenContentSize;l<u&&
D<=d;)D+=this._getPhysicalSizeIncrement(K),K=(K+1)%this._physicalCount,l++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+D);this._increasePoolIfNeeded(0);this._lastVisibleIndexVal=this._firstVisibleIndexVal=null}},
_resetAverage:function(){this._physicalAverageCount=this._physicalAverage=0},
_resizeHandler:function(){this._debounce("_render",function(){this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},_.Zp)},
selectItem:function(u){return this.selectIndex(this.items.indexOf(u))},
selectIndex:function(u){if(!(u<0||u>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(u)){var K=this.modelForElement(this._physicalItems[this._getPhysicalIndex(u)]);K&&(K[this.selectedAs]=!0);this.updateSizeForIndex(u)}this.$.selector.selectIndex(u)}},
deselectItem:function(u){return this.deselectIndex(this.items.indexOf(u))},
deselectIndex:function(u){u<0||u>=this._virtualCount||(this._isIndexRendered(u)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(u)])[this.selectedAs]=!1,this.updateSizeForIndex(u)),this.$.selector.deselectIndex(u))},
toggleSelectionForItem:function(u){return this.toggleSelectionForIndex(this.items.indexOf(u))},
toggleSelectionForIndex:function(u){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(u):this.$.selector.isSelected(this.items[u]))?this.deselectIndex(u):this.selectIndex(u)},
clearSelection:function(){this._iterateItems(function(u){this.modelForElement(this._physicalItems[u])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(u){(u?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(u){var K=this.modelForElement(u.target);if(K){var l=_.wM(u).path[0];u=this._getActiveElement();var D=this._physicalItems[this._getPhysicalIndex(K[this.indexAs])];if(l.localName!=="input"&&l.localName!=="button"&&l.localName!=="select"){l=K.tabIndex;K.tabIndex=-100;var d=u?u.tabIndex:-1;K.tabIndex=l;u&&D!==u&&D.contains(u)&&d!==-100||this.toggleSelectionForItem(K[this.as])}}},
_multiSelectionChanged:function(u){this.clearSelection();this.$.selector.multi=u},
updateSizeForItem:function(u){return this.updateSizeForIndex(this.items.indexOf(u))},
updateSizeForIndex:function(u){if(!this._isIndexRendered(u))return null;this._updateMetrics([this._getPhysicalIndex(u)]);this._positionItems();return null},
_manageFocus:function(){var u=this._focusedVirtualIndex;u>=0&&u<this._virtualCount?this._isIndexRendered(u)?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(u){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(u/this._itemsPerRow)*this._itemsPerRow:u},
_isIndexRendered:function(u){return u>=this._virtualStart&&u<=this._virtualEnd},
_isIndexVisible:function(u){return u>=this.firstVisibleIndex&&u<=this.lastVisibleIndex},
_getPhysicalIndex:function(u){return(this._physicalStart+(u-this._virtualStart))%this._physicalCount},
focusItem:function(u){this._focusPhysicalItem(u)},
_focusPhysicalItem:function(u){if(!(u<0||u>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(u)||this.scrollToIndex(u);var K=this._physicalItems[this._getPhysicalIndex(u)],l=this.modelForElement(K),D;l.tabIndex=-100;K.tabIndex===-100&&(D=K);D||(D=_.wM(K).querySelector('[tabindex="-100"]'));l.tabIndex=0;this._focusedVirtualIndex=u;D&&D.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var u=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var K=this.stamp(null);this._focusBackfillItem=K.root.querySelector("*");this._itemsParent.appendChild(K.root)}this._offscreenFocusedItem=this._physicalItems[u];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[u]=this._focusBackfillItem;this._focusedPhysicalIndex=u;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var u=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),K=this._physicalItems[u];if(K){var l=this.modelForElement(K),D=this.modelForElement(this._offscreenFocusedItem);l[this.as]===D[this.as]?(this._focusBackfillItem=K,l.tabIndex=-1,this._physicalItems[u]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(u){u=this.modelForElement(u.target);var K=this.modelForElement(this._focusedItem),l=this._offscreenFocusedItem!==null,D=this._focusedVirtualIndex;u&&(K===u?this._isIndexVisible(D)||this.scrollToIndex(D):(this._restoreFocusedItem(),K&&(K.tabIndex=-1),u.tabIndex=0,this._focusedVirtualIndex=D=u[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(D),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],l&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(u){switch(u.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&u.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&&u.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(u)}},
_clamp:function(u,K,l){return Math.min(l,Math.max(K,u))},
_debounce:function(u,K,l){this._debouncers=this._debouncers||{};this._debouncers[u]=_.ao(this._debouncers[u],l,K.bind(this));_.zV(this._debouncers[u])},
_forwardProperty:function(u,K,l){u._setPendingProperty(K,l)},
_forwardHostPropV2:function(u,K){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(l){l&&this.modelForElement(l).forwardHostProp(u,K)},this)},
_notifyInstancePropV2:function(u,K,l){c3q(this.as,K)&&(u=u[this.indexAs],K==this.as&&(this.items[u]=l),this.notifyPath(U6(this.as,"items."+u,K),l))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(u,K,l){K.indexOf(this.as+".")===0&&this.notifyPath("items."+u.__key__+"."+K.slice(this.as.length+1),l)},
_forwardParentPath:function(u,K){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(l){l&&this.modelForElement(l).notifyPath(u,K)},this)},
_forwardParentProp:function(u,K){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(l){l&&(this.modelForElement(l)[u]=K)},this)},
_getActiveElement:function(){var u=this._itemsParent.node.domHost;return _.wM(u?u.root:document).activeElement},
_scrollTargetChanged:function(u,K){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(K)if(u==="document")this.scrollTarget=this._doc;else if(typeof u==="string"){var l,D;this.scrollTarget=(K=(D=(l=this.domHost)==null?void 0:l.polymerController)!=null?D:this.domHost)&&K.$?K.$[u]:_.wM(this.ownerDocument).querySelector("#"+u)}else this._isValidScrollTarget()&&(this._oldScrollTarget=u,this._toggleScrollListener(this._shouldHaveListener,u))}});var EeR;var LUN;var u_s=function(u,K,l,D){u-=l;K-=D;return Math.sqrt(u*u+K*K)},KzC=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
G2H.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var tSy=function(u){u.maxRadius=0;u.mouseDownStart=0;u.mouseUpStart=0;u.xStart=0;u.yStart=0;u.xEnd=0;u.yEnd=0;u.containerMetrics=new G2H(u.element)};
xiq.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var u=KzC()-this.mouseDownStart;this.mouseUpStart&&(u-=this.mouseUpElapsed);return u},get mouseUpElapsed(){return this.mouseUpStart?KzC()-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 u=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(u*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-u/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var u=this.radius/(this.containerMetrics.size/2);var K=this.xNow-this.containerMetrics.width/2;var l=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+K+"px, "+l+"px)";this.waveContainer.style.transform="translate3d("+K+"px, "+l+"px, 0)";this.wave.style.webkitTransform="scale("+u+","+u+")";this.wave.style.transform="scale3d("+u+","+u+",1)"},
downAction:function(u){var K=this.containerMetrics.width/2,l=this.containerMetrics.height/2;tSy(this);this.mouseDownStart=KzC();this.center?(this.xStart=K,this.yStart=l):(this.xStart=u?u.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=u?u.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=K,this.yEnd=l);u=this.containerMetrics;K=this.xStart;l=this.yStart;this.maxRadius=Math.max(u_s(K,l,0,0),u_s(K,l,
u.width,0),u_s(K,l,0,u.height),u_s(K,l,u.width,u.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=KzC())},
remove:function(){_.wM(_.wM(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.YH({_template:function(){if(LUN!==void 0)return LUN;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;EeR===void 0&&(EeR=document.createElement("template"));var D=EeR;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return LUN=u},
is:"tp-yt-paper-ripple",behaviors:[_.T7],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(){_.wM(this).parentNode.nodeType==11?this.keyEventTarget=_.wM(this).getOwnerRoot().host:this.keyEventTarget=_.wM(this).parentNode;var u=this.keyEventTarget;this.listen(u,"up","uiUpAction");this.listen(u,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(u){u.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var u=0;u<this.ripples.length;++u)if(!this.ripples[u].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(u){this.noink||this.downAction(u)},
downAction:function(u){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(u),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(u){this.noink||this.upAction(u)},
upAction:function(u){this.holdDown||(this.ripples.forEach(function(K){K.upAction(u)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var u=0;u<this.ripples.length;++u){var K=this.ripples[u];K.isOpacityFullyDecayed&&!K.isRestingAtMaxRadius&&this.removeRipple(K)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var u=new xiq(this);_.wM(this.$.waves).appendChild(u.waveContainer);this.$.background.style.backgroundColor=u.color;this.ripples.push(u);this._setAnimating(!0);return u},
removeRipple:function(u){var K=this.ripples.indexOf(u);K<0||(this.ripples.splice(K,1),u.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var u;for(u=0;u<this.ripples.length;++u){var K=this.ripples[u];K.draw();this.$.background.style.opacity=K.outerOpacity;K.isOpacityFullyDecayed&&!K.isRestingAtMaxRadius&&this.removeRipple(K)}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(u,K){K!==void 0&&(u?this.downAction():this.upAction())}});var Wd={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(u){FM._downHandler.call(this,u);this.pressed&&this.ensureRipple(u)},
ensureRipple:function(u){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var K=this._rippleContainer||this.root;K&&_.wM(K).appendChild(this._ripple);if(u){K=_.wM(this._rippleContainer||this);var l=_.wM(u).rootTarget;K.deepContains(l)&&this._ripple.uiDownAction(u)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(u){this.hasRipple()&&(this._ripple.noink=u)}};var lLH={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 u=1;this.disabled?u=0:this.active||this.pressed?u=4:this.receivedFocusFromKeyboard&&(u=3);this._setElevation(u)},
_computeKeyboardClass:function(u){this.toggleClass("keyboard-focus",u)},
_spaceKeyDownHandler:function(u){FM._spaceKeyDownHandler.call(this,u);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(u){FM._spaceKeyUpHandler.call(this,u);this.hasRipple()&&this._ripple.uiUpAction()}},DZC=[WoH,
_.wC,Wd,lLH];_.dZA={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(u){u&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=u)},
_createRipple:function(){var u=Wd._createRipple();u.id="ink";u.setAttribute("center","");u.classList.add("circle");return u}};
_.Cw2=[WoH,_.wC,Wd,_.dZA];_.ILS=[_.Cw2,qKB,{_checkedChanged:function(){MUS._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){Wd._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var ynN;var sXB;var o5B=function(){};
_.I=o5B.prototype;_.I.registered=function(){};
_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I._tapHandler=function(){};
_.I._focusChanged=function(){};
_.I._detectKeyboardFocus=function(){};
_.I._userActivate=function(){};
_.I._upHandler=function(){};
_.I._asyncClick=function(){};
_.I._pressedChanged=function(){};
_.I._ariaActiveAttributeChanged=function(){};
_.I._activeChanged=function(){};
_.I._controlStateChanged=function(){};
_.I._changedButtonState=function(){};
_.I._focusBlurHandler=function(){};
_.I._disabledChanged=function(){};
_.I._changedControlState=function(){};
_.I._buttonStateChanged=function(){};
_.I._downHandler=function(){};
_.I.ensureRipple=function(){};
_.I.getRipple=function(){};
_.I.hasRipple=function(){};
_.I._createRipple=function(){};
_.I._noinkChanged=function(){};
_.I._computeKeyboardClass=function(){};
_.I._spaceKeyDownHandler=function(){};
_.I._spaceKeyUpHandler=function(){};
_.I._setPressed=function(){};
_.I._setPointerDown=function(){};
_.I._setReceivedFocusFromKeyboard=function(){};
_.I._setFocused=function(){};
_.I._setElevation=function(){};
o5B=_.YH({_template:function(){if(sXB!==void 0)return sXB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
var K=u.content,l=K.insertBefore;ynN===void 0&&(ynN=document.createElement("template"));var D=ynN;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return sXB=u},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[DZC],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?lLH._calculateElevation.apply(this):this._setElevation(0)}});var Wzw;var H5k;var MlH={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(u){_.S("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(u)},
_onDialogClickWrapped:function(u){_.S("dialog_behavior_no_tap_killswitch")||this._onDialogClick(u)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(u,K){K&&(u?(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(u){u?this.setAttribute("aria-modal","true"):this.removeAttribute("aria-modal")},
_updateClosingReasonConfirmed:function(u){this.closingReason=this.closingReason||{};this.closingReason.confirmed=u},
_onDialogClick:function(u){for(var K=_.wM(u).path,l=0,D,d=K.indexOf((D=this.hostElement)!=null?D:this);l<d;l++)if(D=K[l],D.hasAttribute&&(D.hasAttribute("dialog-dismiss")||D.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(D.hasAttribute("dialog-confirm"));this.close();u.stopPropagation();break}}},qAs=[_.oP,
MlH];var $Zw=document.createElement("template");_.z($Zw,'<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($Zw.content);var n5m=document.createElement("template");_.z(n5m,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(n5m.content);_.YH({_template:function(){if(H5k!==void 0)return H5k;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
var K=u.content,l=K.insertBefore;Wzw===void 0&&(Wzw=document.createElement("template"));var D=Wzw;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return H5k=u},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[qAs,b1w],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 rnB;var v5S;_.YH({_template:function(){if(v5S!==void 0)return v5S;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;rnB===void 0&&(rnB=document.createElement("template"));var D=rnB;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return v5S=u},
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 u,K,l;if(((u=window.ShadyDOM)==null?void 0:u.noPatch)!==!0&&((K=window.ShadyDOM)==null?void 0:K.noPatch)!=="on-demand"||((l=this.__shady_parentNode)==null?void 0:l.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(MlH)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var GbR=_.oj(['<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>']),tlA=_.qVa(GbR);tlA.setAttribute("style","display: none;");document.head.appendChild(tlA.content);var xZm;var SAA;var b5s;var O5s;_.YH({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[XM],configure:function(u){var K=u.node,l=K.getBoundingClientRect().height;return this._effect=new KeyframeEffect(K,[{height:l/2+"px"},{height:l+"px"}],this.timingFromConfig(u))}});
_.YH({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[XM],configure:function(u){var K=u.node,l=K.getBoundingClientRect().width;return this._effect=new KeyframeEffect(K,[{width:l/2+"px"},{width:l+"px"}],this.timingFromConfig(u))}});
_.YH({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[XM],configure:function(u){var K=u.node,l=K.getBoundingClientRect().width;return this._effect=new KeyframeEffect(K,[{width:l+"px"},{width:l-l/20+"px"}],this.timingFromConfig(u))}});
_.YH({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[XM],configure:function(u){var K=u.node,l=K.getBoundingClientRect().height;this.setPrefixedProperty(K,"transformOrigin","0 0");return this._effect=new KeyframeEffect(K,[{height:l+"px",transform:"translateY(0)"},{height:l/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(u))}});var Hd={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},cn0=function(){};
_.I=cn0.prototype;_.I.registered=function(){};
_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I._focusBlurHandler=function(){};
_.I._changedControlState=function(){};
_.I._setFocused=function(){};
cn0=_.YH({_template:function(){if(O5s!==void 0)return O5s;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;b5s===void 0&&(b5s=document.createElement("template"));var D=b5s;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return O5s=u},
is:"tp-yt-paper-menu-button",behaviors:[_.T7,_.wC],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:Hd.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Hd.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:Hd.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 u=_.wM(this.$.content).getDistributedNodes(),K=0,l=u.length;K<l;K++)if(u[K].nodeType===Node.ELEMENT_NODE)return u[K]},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(u,K){u?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):K!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(u){_.wC._disabledChanged.apply(this,arguments);u&&this.opened&&this.close()},
__onIronOverlayCanceled:function(u){var K=this.$.trigger;_.wM(u.detail).path.indexOf(K)>-1&&u.preventDefault()}});
Object.keys(Hd).forEach(function(u){cn0[u]=Hd[u]});var aLa=_.V7.IronButtonState,zxa=(0,_.wV)(HTMLElement);
_.YH({_template:function(){if(SAA!==void 0)return SAA;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;xZm===void 0&&(xZm=document.createElement("template"));var D=xZm;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return SAA=u},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[aLa,_.wC,Wd,_.gC,_.Zj],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(u){var K=(0,_.jB)(this);K.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:u});K.shadowRoot.appendChild(u);return zxa.prototype._attachDom.call(this,u)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var u=this.contentElement;u&&u.selectedItem&&this._setSelectedItem(u.selectedItem)},
get contentElement(){for(var u=_.wM(this.$.content).getDistributedNodes(),K=0,l=u.length;K<l;K++)if(u[K].nodeType===Node.ELEMENT_NODE)return u[K]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(u){this._setSelectedItem(u.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(u){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u)===this&&this.open()},
_selectedItemChanged:function(u){var K="";u?K=u.label||u.getAttribute("label")||u.textContent.trim():K="";this.value=K;this._setSelectedItemLabel(K)},
_computeMenuVerticalOffset:function(u,K){return K?K:u?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var u=this.opened?"true":"false",K=this.contentElement;K&&K.setAttribute("aria-expanded",u)},
_computeLabelClass:function(u,K,l){var D="label";if(u)l&&(D+=" label-is-hidden");else if(l||K)D+=" label-is-floating";return D},
_valueChanged:function(){this.$.input&&this.$.input.textContent!==this.value&&(this.$.input.textContent=this.value);this._setHasContent(!!this.value);this.hasContent||(this.$.input.textContent="\u00a0")}});var exk;var Rxm;_.YH({is:"tp-yt-paper-icon-button",_template:function(){if(Rxm!==void 0)return Rxm;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;exk===void 0&&(exk=document.createElement("template"));var D=exk;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return Rxm=u},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.Cw2],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(u,K){var l=this.getAttribute("aria-label");l&&K!=l||this.setAttribute("aria-label",u)}});var UZC;var fLw;_.MA=[WoH,_.wC,{hostAttributes:{role:"option",tabindex:"0"}}];_.YH({_template:function(){if(fLw!==void 0)return fLw;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;UZC===void 0&&(UZC=document.createElement("template"));var D=UZC;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return fLw=u},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.MA]});var QXa;var Pwk;var Jna={attached:function(){this.fire("addon-attached")},
update:function(){}};var jXC=1,BrH=1,pUm=1,i5H=[_.wC,_.T7,{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();!GV&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(u,K){u?u=u+" "+K:u=K;return u},
_onAddonAttached:function(u){u=_.wM(u).rootTarget;if(u.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,u.id);else{var K="paper-input-add-on-"+BrH++;u.id=K;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,K)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(u){_.wC._focusBlurHandler.call(this,u);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var u=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",u);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(u){try{var K=this.inputElement.selectionStart;this.value=u;this.inputElement.selectionStart=K;this.inputElement.selectionEnd=K}catch(l){this.value=u}},
_computeAlwaysFloatLabel:function(u,K){return K||u},
_updateAriaLabelledBy:function(){var u=_.wM(this.root).querySelector("label");if(u){if(u.id)var K=u.id;else K="paper-input-label-"+jXC++,u.id=K;this._ariaLabelledBy=K}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+pUm++)},
_onChange:function(u){this.shadowRoot&&this.fire(u.type,{sourceEvent:u},{node:this,bubbles:u.bubbles,cancelable:u.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var u=document.activeElement;u instanceof HTMLElement&&u!==document.body&&u!==document.documentElement||this._focusableElement.focus()}}}];var TrB;var wUw;_.YH({_template:function(){if(wUw!==void 0)return wUw;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;TrB===void 0&&(TrB=document.createElement("template"));var D=TrB;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return wUw=u},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[Jna],properties:{_charCounterStr:{type:String,value:"0"}},update:function(u){if(u.inputElement){u.value=u.value||"";var K=u.value.toString().length.toString();u.inputElement.hasAttribute("maxlength")&&(K+="/"+u.inputElement.getAttribute("maxlength"));this._charCounterStr=K}}});var FzN;var Vl2;_.YH({_template:function(){if(Vl2!==void 0)return Vl2;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;FzN===void 0&&(FzN=document.createElement("template"));var D=FzN;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return Vl2=u},
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 by(this.attrForValue)},get _inputElement(){return _.wM(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(u){this._addons||(this._addons=[]);u=u.target;this._addons.indexOf(u)===-1&&(this._addons.push(u),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(u){this._handleValueAndAutoValidate(u.target)},
_onValueChanged:function(u){var K=u.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,K.value===void 0||K.value===""))return;this._handleValueAndAutoValidate(u.target)},
_handleValue:function(u){var K=this._inputElementValue;K||K===0||u.type==="number"&&!u.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:u,value:K,invalid:this.invalid})},
_handleValueAndAutoValidate:function(u){this.autoValidate&&u&&(this.invalid=!(u.validate?u.validate(this._inputElementValue):u.checkValidity()));this._handleValue(u)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(u){if(this._addons)for(var K,l=0;K=this._addons[l];l++)K.update(u)},
_computeInputContentClass:function(u,K,l,D,d){var C="input-content";u?(d&&(C+=" label-is-hidden"),D&&!this.noUnfloatedLabelError&&(C+=" is-invalid")):(u=this.querySelector("label"),K||d?(C+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",D?C+=" is-invalid":l&&(C+=" label-is-highlighted")):(u&&(this.$.labelAndInputContainer.style.position="relative"),D&&!this.noUnfloatedLabelError&&(C+=" is-invalid")));l&&(C+=" focused");return C},
_computeUnderlineClass:function(u,K){var l="underline";K?l+=" is-invalid":u&&(l+=" is-highlighted");return l},
_computeAddOnContentClass:function(u,K){var l="add-on-content";K?l+=" is-invalid":u&&(l+=" is-highlighted");return l}});var g5H;var NrH;_.YH({_template:function(){if(NrH!==void 0)return NrH;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;g5H===void 0&&(g5H=document.createElement("template"));var D=g5H;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return NrH=u},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[Jna],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(u){this._setInvalid(u.invalid)}});_.YH({is:"tp-yt-paper-input",_template:function(){if(Pwk!==void 0)return Pwk;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;QXa===void 0&&(QXa=document.createElement("template"));var D=QXa;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return Pwk=u},
behaviors:[i5H,_.gC],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 kbs;var Z5C;_.YH({_template:function(){if(Z5C!==void 0)return Z5C;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=
u.content,l=K.insertBefore;kbs===void 0&&(kbs=document.createElement("template"));var D=kbs;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return Z5C=u},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.MA]});var YAA;var Anm;_.YH({_template:function(){if(Anm!==void 0)return Anm;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
var K=u.content,l=K.insertBefore;YAA===void 0&&(YAA=document.createElement("template"));var D=YAA;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return Anm=u},
is:"tp-yt-paper-item-body"});var XUa;var mZw;var hxB=function(){};
_.I=hxB.prototype;_.I.indexOf=function(){};
_.I.selectPrevious=function(){};
_.I.selectNext=function(){};
_.I.selectIndex=function(){};
_.I.forceSynchronousItemUpdate=function(){};
_.I._checkFallback=function(){};
_.I._addListener=function(){};
_.I._removeListener=function(){};
_.I._activateEventChanged=function(){};
_.I._updateItems=function(){};
_.I._selectSelected=function(){};
_.I._filterItem=function(){};
_.I._valueToItem=function(){};
_.I._valueToIndex=function(){};
_.I._indexToValue=function(){};
_.I._valueForItem=function(){};
_.I._observeItems=function(){};
_.I._itemActivate=function(){};
_.I.multiChanged=function(){};
_.I._updateAttrForSelected=function(){};
_.I._updateSelected=function(){};
_.I._selectMulti=function(){};
_.I._selectionChange=function(){};
_.I._toggleSelected=function(){};
_.I._valuesToItems=function(){};
_.I.registered=function(){};
_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I.select=function(){};
_.I._resetTabindices=function(){};
_.I._updateMultiselectable=function(){};
_.I._focusWithKeyboardEvent=function(){};
_.I._clearSearchText=function(){};
_.I._focusPrevious=function(){};
_.I._focusNext=function(){};
_.I._applySelection=function(){};
_.I._focusedItemChanged=function(){};
_.I._onIronItemsChanged=function(){};
_.I._onShiftTabDown=function(){};
_.I._onFocus=function(){};
_.I._onUpKey=function(){};
_.I._onDownKey=function(){};
_.I._onEscKey=function(){};
_.I._onKeydown=function(){};
_.I._activateHandler=function(){};
_.I._disabledChanged=function(){};
_.I._setSelectedItem=function(){};
_.I._setItems=function(){};
_.I._setSelectedItems=function(){};
_.I._setFocusedItem=function(){};
hxB=_.YH({_template:function(){if(mZw!==void 0)return mZw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
var K=u.content,l=K.insertBefore;XUa===void 0&&(XUa=document.createElement("template"));var D=XUa;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return mZw=u},
is:"tp-yt-paper-listbox",behaviors:[vYm],hostAttributes:{role:"listbox"}});var E52;var LzS;var uYk={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(u,K){return[u||K?"active":"",K?"cooldown":""].join(" ")},
__activeChanged:function(u,K){this.__setAriaHidden(!u);this.__coolingDown=!u&&K},
__altChanged:function(u){this.setAttribute("aria-label",u||"loading")},
__setAriaHidden:function(u){u?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.YH({_template:function(){if(LzS!==void 0)return LzS;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;E52===void 0&&(E52=document.createElement("template"));var D=E52;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return LzS=u},
is:"tp-yt-paper-spinner",behaviors:[uYk]});var K12;var lOw;_.YH({_template:function(){if(lOw!==void 0)return lOw;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;K12===void 0&&(K12=document.createElement("template"));var D=K12;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return lOw=u},
is:"tp-yt-paper-spinner-lite",behaviors:[uYk]});var DaN;var das;_.YH({_template:function(){if(das!==void 0)return das;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;DaN===void 0&&(DaN=document.createElement("template"));var D=DaN;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return das=u},
is:"tp-yt-paper-tab",behaviors:[_.wC,_.V7.IronButtonState,Wd],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 u=_.wM(this).parentNode;return!!u&&!!u.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(u){if(this.link){var K=this.queryEffectiveChildren("a");K&&u.target!==K&&K.click()}}});var CDN;var IOB;var y0H=_.oj(['<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>']),sja=_.qVa(y0H);document.head.appendChild(sja.content);_.YH({_template:function(){if(IOB!==void 0)return IOB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;CDN===void 0&&(CDN=document.createElement("template"));var D=CDN;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return IOB=u},
is:"tp-yt-paper-tabs",behaviors:[_.Ae,_.tUH],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(u){_.wM(this).querySelectorAll("tp-yt-paper-tab").forEach(u?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(u){u.setAttribute("noink","")},
_removeNoinkAttribute:function(u){u.removeAttribute("noink")},
_computeScrollButtonClass:function(u,K,l,D){return!K||l?"hidden":u?D?"hidden":"not-visible":""},
_computeTabsContentClass:function(u,K){var l="tabs-content";u&&(l+=" scrollable");if(!u||K)l+=" fit-container";return l},
_computeSelectionBarClass:function(u,K){var l="selection-bar";u?l+=" hidden":K&&(l+=" align-bottom");return l},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(u){return""+u},
_onIronSelect:function(u){this._tabChanged(u.detail.item,this._previousTab);this._previousTab=u.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();_.YX._activateHandler.apply(this,arguments)},
_scheduleActivation:function(u,K){this._pendingActivationItem=u;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,K)},
_delayedActivationHandler:function(){var u=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;u.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(u){u.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(u,K){this.scrollable&&this._affectScroll(K&&-K.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(u){this.$.tabsContainer.scrollLeft+=u;u=this.$.tabsContainer.scrollLeft;this._leftHidden=u===0||this.hideScrollButtons;this._rightHidden=u===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(u,K){if(u){var l=this.$.tabsContent.getBoundingClientRect(),D=l.width,d=u.getBoundingClientRect();l=d.left-l.left;this._pos={width:this._calcPercent(d.width,D),left:this._calcPercent(l,D)};if(this.noSlide||K==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var C=K.getBoundingClientRect();K=this.items.indexOf(K);u=this.items.indexOf(u);this.$.selectionBar.classList.add("expand");
u=K<u;this._isRTL&&(u=!u);u?this._positionBar(this._calcPercent(d.left+d.width-C.left,D)-5,this._left):this._positionBar(this._calcPercent(C.left+C.width-d.left,D)-5,this._calcPercent(l,D)+5);this.scrollable&&this._scrollToSelectedIfNeeded(d.width,l)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(u,K){K-=this.$.tabsContainer.scrollLeft;K<0?this.$.tabsContainer.scrollLeft+=K:(K+=u-this.$.tabsContainer.offsetWidth,K>0&&(this.$.tabsContainer.scrollLeft+=K))},
_calcPercent:function(u,K){return 100*u/K},
_positionBar:function(u,K){u=u||0;K=K||0;this._width=u;this._left=K;this.transform("translateX("+K+"%) scaleX("+u/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var u=this.$.selectionBar.classList;u.contains("expand")?(u.remove("expand"),u.add("contract"),this._positionBar(this._pos.width,this._pos.left)):u.contains("contract")&&u.remove("contract")}});var o2m;var W1R;_.YH({_template:function(){if(W1R!==void 0)return W1R;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;o2m===void 0&&(o2m=document.createElement("template"));var D=o2m;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return W1R=u},
is:"tp-yt-paper-textarea",behaviors:[i5H,_.gC],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(u){this.$.input.textarea.selectionStart=u},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(u){this.$.input.textarea.selectionEnd=u},_ariaLabelledByChanged:function(u){this._focusableElement.setAttribute("aria-labelledby",u)},
_ariaDescribedByChanged:function(u){this._focusableElement.setAttribute("aria-describedby",u)},
get _focusableElement(){return this.inputElement.textarea}});var H3C;var MaB;/*

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 qfa=function(){};
_.I=qfa.prototype;_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I._tapHandler=function(){};
_.I._focusChanged=function(){};
_.I._detectKeyboardFocus=function(){};
_.I._userActivate=function(){};
_.I._upHandler=function(){};
_.I._spaceKeyDownHandler=function(){};
_.I._spaceKeyUpHandler=function(){};
_.I._asyncClick=function(){};
_.I._pressedChanged=function(){};
_.I._ariaActiveAttributeChanged=function(){};
_.I._activeChanged=function(){};
_.I._controlStateChanged=function(){};
_.I._changedButtonState=function(){};
_.I._focusBlurHandler=function(){};
_.I._disabledChanged=function(){};
_.I._changedControlState=function(){};
_.I._downHandler=function(){};
_.I.ensureRipple=function(){};
_.I.getRipple=function(){};
_.I.hasRipple=function(){};
_.I._noinkChanged=function(){};
_.I._focusedChanged=function(){};
_.I.registered=function(){};
_.I._invalidChanged=function(){};
_.I.hasValidator=function(){};
_.I.validate=function(){};
_.I._getValidity=function(){};
_.I._requiredChanged=function(){};
_.I._valueChanged=function(){};
_.I._checkedChanged=function(){};
_.I._buttonStateChanged=function(){};
_.I._setPressed=function(){};
_.I._setPointerDown=function(){};
_.I._setReceivedFocusFromKeyboard=function(){};
_.I._setFocused=function(){};
qfa=_.YH({is:"tp-yt-paper-toggle-button",_template:function(){if(MaB!==void 0)return MaB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;H3C===void 0&&(H3C=document.createElement("template"));var D=H3C;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return MaB=u},
behaviors:[_.ILS],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");_.W_(this,function(){_.X3(this,"pan-y")})},
_ontrack:function(u){u=u.detail;u.state==="start"?this._trackStart(u):u.state==="track"?this._trackMove(u):u.state==="end"&&this._trackEnd(u)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(u){u=u.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+u:u)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+u:u));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 u=Wd._createRipple();u.id="ink";u.setAttribute("recenters","");u.classList.add("circle","toggle-ink");return u}});var $aN;var n2B;_.YH({_template:function(){if(n2B!==void 0)return n2B;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;$aN===void 0&&($aN=document.createElement("template"));var D=$aN;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return n2B=u},
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 u=_.wM(this).parentNode,K=_.wM(this).getOwnerRoot(),l;this.for?l=_.wM(K).querySelector("#"+this.for):l=u.nodeType==Node.DOCUMENT_FRAGMENT_NODE?K.host:u;return l},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(u){u==="entry"?this.show():u==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.wM(this).textContent.trim()===""){for(var u=!0,K=_.wM(this).getEffectiveChildNodes(),l=0;l<K.length;l++)if(K[l].textContent.trim()!==""){u=!1;break}if(u)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 u=this.offset;this.marginTop!=14&&this.offset==14&&(u=this.marginTop);var K=this.offsetParent.getBoundingClientRect(),l=this._target.getBoundingClientRect(),D=this.getBoundingClientRect(),d=(l.width-D.width)/2,C=(l.height-D.height)/2,W=l.left-K.left,M=l.top-K.top;switch(this.position){case "top":var q=W+d;var v=M-D.height-u;break;case "bottom":q=W+d;v=M+l.height+u;break;case "left":q=W-D.width-u;v=M+C;break;case "right":q=W+l.width+
u,v=M+C}this.fitToVisibleBounds?(K.left+q+D.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,q)+"px",this.style.right="auto"),K.top+v+D.height>window.innerHeight?(this.style.bottom=K.height+"px",this.style.top="auto"):(this.style.top=Math.max(-K.top,v)+"px",this.style.bottom="auto")):(this.style.left=q+"px",this.style.top=v+"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(u){u!==500&&this.updateStyles({"--paper-tooltip-delay-in":u+"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(u){if(u==="entry"&&this.animationEntry!=="")return this.animationEntry;if(u==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[u]&&typeof this.animationConfig[u][0].name==="string"){if(this.animationConfig[u][0].timing&&this.animationConfig[u][0].timing.delay&&this.animationConfig[u][0].timing.delay!==0){var K=this.animationConfig[u][0].timing.delay;u==="entry"?this.updateStyles({"--paper-tooltip-delay-in":K+"ms"}):u==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":K+
"ms"})}return this.animationConfig[u][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 r00=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(r00,_.b5);var v2C=_.US(r00,[0,_.rR]);var qA=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(qA,_.b5);var GRC=[3,4],taC=[5,6];var xaR=[0,GRC,taC,_.yXw,-1,_.$A,_.sQw,-1,uar,Ksh];var Sfm=_.US(qA,xaR),b3w=_.fM(xaR);var O3w=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(O3w,_.b5);var c0w=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(c0w,_.b5);var aOA=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(aOA,_.b5);var zek=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(zek,_.b5);var eeC=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(eeC,_.b5);var $g=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c($g,_.b5);$g.prototype.getSource=function(){return _.h0(this,1)};
$g.prototype.getMessage=function(){return _.A0(this,4)};
$g.prototype.getData=function(){return _.fV(this,eeC,8)};var ReH=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(ReH,_.b5);var nP=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(nP,_.b5);var r0=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(r0,_.b5);var vd=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(vd,_.b5);vd.prototype.getUrl=function(){return _.A0(this,1)};
vd.prototype.setUrl=function(u){return _.Tj(this,1,u)};
vd.prototype.hasUrl=function(){return _.wH(_.ja(this,1))!=null};var UaH=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(UaH,_.b5);var fO0=[3];var Qja=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Qja,_.b5);var G8=function(u){var K=new Qja;return _.xL(K,2,u)};
Qja.prototype.getLanguage=function(){return L3(this,4,tW)};
var PDS=function(u){var K=G8(1);return _.Br(K,6,tW,u)},tW=[3,
4,5,6];var J0C=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(J0C,_.b5);var xg=function(u){var K=new J0C;return _.xL(K,1,u)},Sh=function(u,K){return _.Br(u,2,jjk,K)},jjk=[2,
3,4,5];var BaS=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(BaS,_.b5);var bE=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(bE,_.b5);var p8B=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(p8B,_.b5);var i3a=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(i3a,_.b5);var Tak=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Tak,_.b5);var w8C=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(w8C,_.b5);var F1B=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(F1B,_.b5);var OU=function(u){return _.fV(u,r0,5)};var Vak=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Vak,_.b5);Vak.prototype.getValue=function(){return ZO(this,1)};var g2m=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(g2m,_.b5);var cd=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(cd,_.b5);cd.prototype.getMetadata=function(){return _.uO(this,Tak,7,aP)};
cd.prototype.hasMetadata=function(){return _.p3(this,Tak,7,aP)};
var Naw=_.bMq(cd),aP=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var z8=function(u){this.JSC$11899_name_=u;this.files_=[];this.directories_=[];this.directoryMap_={}};
z8.prototype.getName=function(){return this.JSC$11899_name_};var RP=function(u,K){this.callback_=K;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new z8("");kRa(this,u,this.rootDirectory_);eh(this)},kRa=function(u,K,l){for(var D=0;D<K.length;D++){var d=K[D];
d.isFile?(u.fileOps_++,d.file((0,_.wB)(u.handleFileSuccess_,u,l),(0,_.wB)(u.handleFileError_,u))):u.unscannedDirectories_.push(new Z3R(d,l))}},eh=function(u){if(u.unscannedDirectories_.length>0&&u.directoryOps_<5&&!u.hasError_){u.directoryOps_++;
var K=u.unscannedDirectories_.shift(),l=K.entry,D=new z8(l.name);K=K.parent;K.directoryMap_[D.getName()]=D;K.directories_.push(D);l=l.createReader();l.readEntries((0,_.wB)(u.handleDirectorySuccess_,u,l,D),(0,_.wB)(u.handleDirectoryError_,u))}u.directoryOps_!=0||u.fileOps_!=0||u.unscannedDirectories_.length!=0&&!u.hasError_||u.callback_(u.rootDirectory_.files_,u.rootDirectory_.directories_,u.hasError_)};
RP.prototype.handleDirectorySuccess_=function(u,K,l){kRa(this,l,K);l.length==0?(this.directoryOps_--,eh(this)):u.readEntries((0,_.wB)(this.handleDirectorySuccess_,this,u,K),(0,_.wB)(this.handleDirectoryError_,this))};
RP.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;eh(this)};
RP.prototype.handleFileSuccess_=function(u,K){u.files_.push(K);this.fileOps_--;eh(this)};
RP.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;eh(this)};
var Z3R=function(u,K){this.entry=u;this.parent=K};var UU=function(u){_.wx.call(this);_.kU(u,"drop",this.onObjectsDropped_,!1,this);_.kU(u,"dragenter",this.onFilesDragged_,!1,this);_.kU(u,"dragover",this.onFilesDragged_,!1,this);_.kU(u,"dragleave",this.onDragLeave_,!1,this);_.kU(u,"dragend",this.onDragLeave_,!1,this)};
_.Sa(UU,_.wx);var YfR=function(u,K){_.j3.call(this,"f");this.files=u;this.directories=K};
_.Sa(YfR,_.j3);var A0m=function(){_.j3.call(this,"h")};
_.Sa(A0m,_.j3);var X80=function(){_.j3.call(this,"i")};
_.Sa(X80,_.j3);var ma2=function(){_.j3.call(this,"g")};
_.Sa(ma2,_.j3);UU.prototype.onObjectsDropped_=function(u){var K=this;u.preventDefault();var l=u.event_.dataTransfer;if((u=l&&l.items)&&u.length>0&&u[0].webkitGetAsEntry){l=[];for(var D=[],d=0;d<u.length;d++){var C=u[d].webkitGetAsEntry();C?l.push(C):D.push(u[d])}new RP(l,function(W,M,q){q?K.dispatchEvent(new ma2("Error occurred while reading from the file system.")):K.dispatchEvent(new YfR(W,M,D))})}else(u=l&&l.files)&&this.dispatchEvent(new YfR(Array.from(u),[]))};
UU.prototype.onFilesDragged_=function(u){u.type==="dragenter"&&this.dispatchEvent(new A0m);u.preventDefault()};
UU.prototype.onDragLeave_=function(){this.dispatchEvent(new X80)};var heC=function(u,K){this.JSC$11922_name_=u;this.inputElement_=K};
heC.prototype.getName=function(){return this.JSC$11922_name_};
heC.prototype.getInputElement=function(){return this.inputElement_};var fP=function(u,K,l){K=K===void 0?"single_file":K;l=l===void 0?[]:l;_.wx.call(this);this.overlayTarget_=u;this.parentOverlay_=u!=null?u.parentNode:_.PO("scotty-overlay-parent");this.selectorType_=K;this.acceptTypes_=l;this.overlay_=E22(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.c(fP,_.wx);
var E22=function(u,K,l,D){var d=document.createElement("input");d.setAttribute("type","file");d.setAttribute("name","Filedata");_.kU(d,"change",u.onFilesSelected_,!1,u);l==="multiple_file"&&(d.multiple="true");l==="single_directory"&&(d.webkitdirectory="true");D.length>0&&d.setAttribute("accept",D.join(","));d.style.position="absolute";d.style.overflow="hidden";d.style.height="0px";d.style.width="0px";d.style.opacity="0";d.setAttribute("aria-hidden","true");d.setAttribute("tabIndex",-1);if(u.overlayTarget_!=
null)return d.style.height=K.offsetHeight+"px",d.style.width=K.offsetWidth+"px",u.parentOverlay_&&(u.parentOverlay_.style.position="relative"),_.hy(d,K),DV(d,new _.XB(K.offsetLeft,K.offsetTop)),d;u.parentOverlay_.appendChild(d);return d};
fP.prototype.click=function(){this.overlay_.click()};
fP.prototype.onFilesSelected_=function(u){a:{try{var K=(new XMLHttpRequest).upload!==void 0;break a}catch(v){}K=!1}if(K){var l;u=Array.from((l=u.target.files)!=null?l:[]);l=[];if(this.selectorType_==="single_directory"&&(_.ea||Mh||_.zR)){l=new z8("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(K=0;K<u.length;K++)for(var D=u[K],d=D.webkitRelativePath.split("/"),C=l,W=0;W<d.length;W++){var M=d[W];if(W==d.length-1){M!="."&&C.files_.push(D);break}var q=C.directoryMap_[M];q==void 0&&(M=
q=new z8(M),C.directoryMap_[M.getName()]=M,C.directories_.push(M));C=q}l=l.directories_}this.dispatchEvent(new L1w(u,l,null))}else u=u.target.value,u.match(/^c:\\fakepath\\/i)&&(u=u.substring(12)),this.dispatchEvent(new L1w([],[],new heC(u,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=E22(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var L1w=function(u,K){_.j3.call(this,"j");this.files=u;this.directories=K};
_.c(L1w,_.j3);var uVN=function(u){this.uploadUrl_=u};var KIA=function(){_.wx.call(this)};
_.Sa(KIA,_.wx);var Qb=function(u){_.j3.call(this,u)};
_.Sa(Qb,_.j3);var Pd=function(u){_.j3.call(this,u)};
_.Sa(Pd,_.j3);var l0H=function(u,K,l,D,d){_.wx.call(this);l=document.createElement("form");l.setAttribute("method",K);l.setAttribute("enctype","multipart/form-data");l.setAttribute("encoding","multipart/form-data");K=document.createElement("input");K.setAttribute("type","hidden");K.setAttribute("name","metadata");K.setAttribute("value",d);l.appendChild(K);l.appendChild(D);this.JSC$11939_form_=l;u=new _.W0(u);_.dp(u,"upload_protocol","multipart");this.JSC$11939_url_=u.toString();this.JSC$11939_request_=new G7;this.state_=
"Ready";this.JSC$11939_errorDescription_=null;this.JSC$11939_eventHandler_=new _.tC(this);_.eb(this,this.JSC$11939_eventHandler_);this.JSC$11939_eventHandler_.listen(this.JSC$11939_request_,"success",this.onTransferSuccess_);this.JSC$11939_eventHandler_.listen(this.JSC$11939_request_,"error",this.onTransferError_)};
_.c(l0H,KIA);_.I=l0H.prototype;_.I.run=function(){this.state_="Transferring";var u=this.JSC$11939_request_,K=this.JSC$11939_form_;if(u.JSC$11357_active_)throw Error("pe");var l=new _.W0(this.JSC$11939_url_||K.action);u.JSC$11357_form_=K;K=u.JSC$11357_form_;l=_.KH(l.toString());l!==void 0&&(K.action=l);fpR(u)};
_.I.getResponseCode=function(){return null};
_.I.getResponseText=function(){return this.JSC$11939_request_&&this.JSC$11939_request_.getResponseText()||null};
_.I.JSC$29101_getErrorDescription=function(){return this.JSC$11939_errorDescription_};
_.I.cancel=function(){this.JSC$11939_request_&&this.JSC$11939_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Qb("o"))};
_.I.pause=function(){};
_.I.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Qb("l"))};
_.I.onTransferError_=function(){this.JSC$11939_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Qb("n"))};var JW=function(){_.A1.call(this)};
_.c(JW,_.A1);JW.prototype.createXhr=function(){var u=_.A1.prototype.createXhr.call(this);u.upload&&(u.upload.onprogress=(0,_.wB)(this.onProgress_,this));return u};
JW.prototype.onProgress_=function(u){this.dispatchEvent(u)};var Dbm=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},COm=function(u,K){var l=u.attempt_+1;
if(u.maxAttempts_>0&&l>u.maxAttempts_)return!1;l==0?K():u.delayCallId_=kz(function(){u.delayCallId_=null;K()},dba(u),u);
u.attempt_=l;return!0};
Dbm.prototype.reset=function(){this.delayCallId_&&_.lL.clearTimeout(this.delayCallId_);this.attempt_=-1};
var dba=function(u){var K=250*Math.pow(2,u.attempt_);u.maxDelayMs_>=0&&(K=Math.min(K,u.maxDelayMs_));return K};var bX9=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var jh=function(){_.wx.call(this);this.JSC$11949_request_=this.state_=null;this.JSC$11949_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$11949_bytesTransferred_=0;this.retryIterator_=new Dbm;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$11949_errorDescription_=null;this.JSC$11949_eventHandler_=new _.tC(this);_.eb(this,this.JSC$11949_eventHandler_);this.JSC$11949_url_=this.blob_=null;this.JSC$11949_method_=void 0;this.chunkSize_=this.JSC$11949_metadata_=
this.JSC$11949_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$11949_responseText_=this.JSC$11949_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Sa(jh,KIA);_.I=jh.prototype;_.I.run=function(){Bd(this)};
_.I.getResponseCode=function(){return this.JSC$11949_responseCode_};
_.I.getResponseText=function(){return this.JSC$11949_responseText_};
_.I.JSC$29101_getErrorDescription=function(){return this.JSC$11949_errorDescription_};
_.I.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$11949_eventHandler_.removeAll();this.JSC$11949_request_&&this.JSC$11949_request_.abort();this.retryIterator_.reset();var u=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(u==="Upload"||u==="Query")u=new JW,u.JSC$9723_withCredentials_=this.JSC$11949_withCredentials_,u.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$11949_bytesTransferred_=
0;this.dispatchEvent(new Qb("o"))}};
_.I.pause=function(){this.pauseRequested_=!0};
var Bd=function(u){var K=u.state_;u.pauseRequested_?(u.pauseRequested_=!1,u.stateAfterUnpausing_=K,u.state_="Paused"):COm(u.retryIterator_,function(){switch(u.state_){case "Start":u.JSC$11949_request_=new JW;var l=_.k$.clone(u.JSC$11949_headers_);u.blob_.size!=null&&(l["Content-Length"]=u.blob_.size);l=OXy(l);l["X-Goog-Upload-Protocol"]="resumable";l["X-Goog-Upload-Command"]="start";u.JSC$11949_eventHandler_.removeAll();u.JSC$11949_eventHandler_.listen(u.JSC$11949_request_,"complete",u.onStartComplete_);
u.JSC$11949_request_.JSC$9723_withCredentials_=u.JSC$11949_withCredentials_;u.JSC$11949_request_.send(u.JSC$11949_url_,u.JSC$11949_method_,u.JSC$11949_metadata_,l);u.lastCommandResponseCode_=null;u.dispatchEvent(new Pd("q"));break;case "Upload":l=u.transferHandle_.uploadUrl_;var D=u.blob_.size;if($mA()){var d=u.chunkSize_;var C=u.offset_+d>=D;D=q5A(u.blob_,u.offset_,C?D:u.offset_+d)}else u.offset_=0,D=u.blob_,C=!0;u.JSC$11949_request_=new JW;u.JSC$11949_request_.JSC$9723_withCredentials_=u.JSC$11949_withCredentials_;
u.JSC$11949_eventHandler_.removeAll();u.JSC$11949_eventHandler_.listen(u.JSC$11949_request_,"progress",u.onUploadProgress_);d=(0,_.wB)(u.JSC$11951_onUploadComplete_,u,u.offset_+D.size,C);u.JSC$11949_eventHandler_.listen(u.JSC$11949_request_,"complete",d);u.lastCommandResponseCode_=null;u.dispatchEvent(new Pd("q"));C=Object.assign({},u.JSC$11949_headers_||{},{"X-Goog-Upload-Command":"upload"+(C?", finalize":""),"X-Goog-Upload-Offset":u.offset_});u.JSC$11949_request_.send(l,"POST",D,C);break;case "Query":u.JSC$11949_request_=
new JW;u.JSC$11949_eventHandler_.removeAll();u.JSC$11949_eventHandler_.listen(u.JSC$11949_request_,"complete",u.onQueryComplete_);l=Object.assign({},u.JSC$11949_headers_||{},{"X-Goog-Upload-Command":"query"});u.JSC$11949_request_.send(u.transferHandle_.uploadUrl_,"POST","",l);u.lastCommandResponseCode_=null;u.dispatchEvent(new Pd("q"));break;default:throw Error("ef");}})||pP(u,"Transfer encountered too many consecutive failures.")},pP=function(u,K){u.state_="Error";
u.JSC$11949_errorDescription_=K;u.dispatchEvent(new Qb("n"))};
jh.prototype.onStartComplete_=function(u){var K=u.target;this.lastCommandResponseCode_=K.getStatus();this.dispatchEvent(new Pd("r"));if(I02(K))yyk(this,K);else if(sq2(K)){u=sn(u.target.getAllResponseHeaders());for(var l in u)_.dq(l.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Qb("m"));l=Vi(u,"X-Goog-Upload-URL");u=(u=Vi(u,"X-Goog-Upload-Chunk-Granularity"))?parseInt(u,10):1;l===void 0||isNaN(u)||u<=0?pP(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
u)*u,this.transferHandle_=new uVN(l),this.dispatchEvent(new Qb("p")),this.state_="Upload",this.retryIterator_.reset(),Bd(this))}else Bd(this)};
jh.prototype.onUploadProgress_=function(u){this.JSC$11949_bytesTransferred_=this.offset_+u.loaded;this.dispatchEvent(new Qb("k"))};
jh.prototype.JSC$11951_onUploadComplete_=function(u,K,l){var D=this,d,C;return _.H(function(W){switch(W.nextAddress){case 1:d=l.target;D.lastCommandResponseCode_=d.getStatus();D.dispatchEvent(new Pd("r"));if(oAs(d)||d.getStatus()==404)return D.JSC$11949_bytesTransferred_=u,yyk(D,d),W.return();if(sq2(d)){W.jumpTo(2);break}if(!(C=D.detectCorruptedBlobEnabled_)){W.jumpTo(3);break}return W.yield(WIw(D),4);case 4:C=W.yieldResult;case 3:if(C)return pP(D,"Blob has been modified or corrupted."),W.return();
D.requireUploadRequestModification_=d.getStatus()==400;D.state_="Query";Bd(D);return W.return();case 2:if(K)return pP(D,"Got a non-final success response after issuing a finalize command."),W.return();D.JSC$11949_bytesTransferred_=u;D.offset_=u;D.retryIterator_.reset();Bd(D);return W.return()}})};
jh.prototype.onQueryComplete_=function(u){var K=u.target;this.lastCommandResponseCode_=K.getStatus();this.dispatchEvent(new Pd("r"));I02(K)?(K.getStatus()===200&&(this.JSC$11949_bytesTransferred_=this.blob_.size),yyk(this,K)):sq2(K)?(u=sn(u.target.getAllResponseHeaders()),u=parseInt(Vi(u,"X-Goog-Upload-Size-Received"),10),isNaN(u)?pP(this,"Server did not respond with current offset."):u<this.offset_?pP(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
u+"."):this.requireUploadRequestModification_&&this.offset_===u?pP(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<u&&this.retryIterator_.reset(),this.offset_=this.JSC$11949_bytesTransferred_=u,this.state_="Upload",Bd(this))):Bd(this)};
var yyk=function(u,K){u.JSC$11949_responseCode_=K.getStatus();var l=sn(K.getAllResponseHeaders());c5o(l);u.JSC$11949_responseText_=K.getResponseText();u.state_="Response received";u.dispatchEvent(new Qb("l"))},sq2=function(u){var K=u.getStatus();
u=sn(u.getAllResponseHeaders());u=Vi(u,"X-Goog-Upload-Status");return K===200&&u==="active"},oAs=function(u){u=sn(u.getAllResponseHeaders());
return Vi(u,"X-Goog-Upload-Status")==="final"},I02=function(u){if(oAs(u))return!0;
u=u.getStatus();return u>=400&&u<500},WIw=function(u){var K;
return _.H(function(l){if(l.nextAddress==1){if(!u.blob_||u.originalBlobSize_<=0)return l.return(!1);if(u.blob_.size!==u.originalBlobSize_)return l.return(!0);_.Qg(l,2);if(K=q5A(u.blob_,0,1)){var D=l.yield,d=new l6,C=YdB(d);d.reader_.readAsBinaryString(K);l=D.call(l,C,4)}else l=l.return(!0);return l}if(l.nextAddress!=2)return l.return(u.blob_.size!==u.originalBlobSize_);_.iY(l);return l.return(!0)})};var Hak=function(u,K,l,D,d,C){_.wx.call(this);this.payload_=D;this.JSC$11952_url_=u;this.JSC$11952_method_=K;this.JSC$11952_headers_=l;this.JSC$11952_metadata_=d;this.encoding_=C||"binary";u=new _.V9;this.boundary_="uploader-"+KI()+"-"+u.JSC$11206_toIsoString();this.JSC$11952_responseText_=this.JSC$11952_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$11952_errorDescription_=null;this.JSC$11952_eventHandler_=new _.tC(this);_.eb(this,this.JSC$11952_eventHandler_)};
_.c(Hak,KIA);_.I=Hak.prototype;
_.I.run=function(){var u=_.k$.clone(this.JSC$11952_headers_);this.payload_.length!=null&&(u["Content-Length"]=this.payload_.length);u=OXy(u);u["X-Goog-Upload-Protocol"]="multipart";u["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new JW;this.JSC$11952_eventHandler_.removeAll();this.JSC$11952_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$11952_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$11952_url_,this.JSC$11952_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$11952_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",u)};
_.I.getResponseCode=function(){return this.JSC$11952_responseCode_};
_.I.getResponseText=function(){return this.JSC$11952_responseText_};
_.I.JSC$29101_getErrorDescription=function(){return this.JSC$11952_errorDescription_};
_.I.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$11952_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Qb("o")))};
_.I.pause=function(){};
_.I.onTransferProgress_=function(){this.dispatchEvent(new Qb("k"))};
_.I.onTransferComplete_=function(u){var K=u.target.getStatus();K===void 0||K===-1?(this.JSC$11952_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Qb("n"))):(this.JSC$11952_responseCode_=K,u=u.target,K=sn(u.getAllResponseHeaders()),c5o(K),this.JSC$11952_responseText_=u.getResponseText(),this.state_="Complete",this.dispatchEvent(new Qb("l")))};_.MQB=function(u,K,l,D){D=D===void 0?!1:D;if(l instanceof heC)return new l0H(u,"POST",K,l.getInputElement(),"");if(typeof l==="string"||l instanceof String)return new Hak(u,"POST",K,l,"");var d=new jh(void 0);d.JSC$11949_url_=u;d.JSC$11949_method_="POST";d.JSC$11949_headers_=K;d.blob_=l;d.originalBlobSize_=l.size;d.JSC$11949_metadata_="";D&&(d.JSC$11949_withCredentials_=D);d.state_="Start";return d};var iE=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(iE,_.b5);_.I=iE.prototype;_.I.getEnableSsEngine=function(){return _.k2(this,2)};
_.I.getEnableAwr=function(){return _.k2(this,3)};
_.I.getAlohaAutoGaRollout=function(){return _.k2(this,5)};
_.I.getEnableConfigurator=function(){return _.k2(this,6)};
_.I.getEnableMweb=function(){return _.k2(this,7)};
var $ba=function(){var u=qRN();return _.NN(u,7,!0)};
iE.prototype.getEnableCtlConsentCheckbox=function(){return _.k2(this,8)};
iE.prototype.getEnableIframe=function(){return _.k2(this,9)};
var qRN=function(){var u=new iE;u=_.NN(u,5,!0);u=_.NN(u,2,!0);u=_.NN(u,4,!1);u=_.NN(u,8,!0);return _.NN(u,9,!0)};
iE.prototype.getEnableScreenshotNudge=function(){return _.k2(this,10)};
var nAk=function(){var u=$ba();return _.NN(u,10,!0)};
iE.prototype.getEnableWebStartupConfigEndpoint=function(){return _.k2(this,11)};
iE.prototype.getEnableJunkNudge=function(){return _.k2(this,12)};
var NOy=function(){var u=nAk();return _.NN(u,12,!0)};
_.I=iE.prototype;_.I.getEnableConfiguratorLocale=function(){return _.k2(this,13)};
_.I.getEnableTinyNoPointer=function(){return _.k2(this,14)};
_.I.getEnableSupportSessionLogging=function(){return _.k2(this,15)};
_.I.getEnableFileUploadForScreenshot=function(){return _.k2(this,16)};
_.I.getEnableDirectDeflectionForSingleCategory=function(){return _.k2(this,17)};
_.I.getEnableImageSanitization=function(){return _.k2(this,18)};
_.I.getEnableAlohaBinarySplit=function(){return _.k2(this,19)};
_.I.getEnableDbFeedbackIntents=function(){return _.k2(this,20)};
_.I.getEnableMarkMandatoryFieldsWithRequired=function(){return _.k2(this,21)};
_.I.getEnableFeedbackCategoryCustomUi=function(){return _.k2(this,22)};
_.I.getEnableRealtimeCtl=function(){return _.k2(this,23)};var g4n=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(g4n,_.b5);var aCn=[/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 ejZ="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 Rjr=_.oj(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),UiZ=_.oj(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var QMr,jMq,PAq,BOq;var ryC,vAm;
ryC=function(u,K,l){u.timeOfStartCall=(new Date).getTime();var D=l||_.lL,d=D.document,C=u.nonce||_.oS(D.document);C&&!u.nonce&&(u.nonce=C);if(u.flow=="help"){var W=_.lZ("document.location.href",D);!u.helpCenterContext&&W&&(u.helpCenterContext=W.substring(0,1200));W=!0;if(K&&JSON&&JSON.stringify){var M=JSON.stringify(K);(W=M.length<=1200)&&(u.psdJson=M)}W||(K={invalidPsd:!0})}K=[u,K,l];D.GOOGLE_FEEDBACK_START_ARGUMENTS=K;l=u.feedbackServerUri||"//www.google.com/tools/feedback";if(W=D.GOOGLE_FEEDBACK_START)W.apply(D,K);
else{D=l+"/load.js?";for(var q in u)K=u[q],K==null||_.Ks(K)||(D+=encodeURIComponent(q)+"="+encodeURIComponent(K)+"&");u=iQ(d).createElement("SCRIPT");C&&u.setAttribute("nonce",C);_.$P(u,_.Fz(D));d.body.appendChild(u)}};
vAm=function(u,K,l,D){var d,C;_.H(function(W){d=l||_.lL;var M=u.serverEnvironment==="DEV",q=l||_.lL;q=u.nonce||_.oS(q.document);M={integrationKeys:{productId:u.productId,feedbackBucket:u.bucket,triggerId:u.triggerId},callbacks:{onClose:u.callback,onLoad:u.onLoadCallback},formContent:{locale:u.locale,disableScreenshot:u.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:u.abuseLink,additionalDataConsent:u.additionalDataConsent},initializationData:{isLocalServer:M,nonce:q,useNightlyRelease:M,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:u.feedbackServerUri,colorScheme:u.colorScheme},extraData:{productVersion:u.productVersion,authUser:u.authuser,configuratorId:u.configuratorId,customZIndex:u.customZIndex,tinyNoPointer:u.tinyNoPointer,
allowNonLoggedInFeedback:u.allowNonLoggedInFeedback,enableAnonymousFeedback:u.enableAnonymousFeedback}};K&&(q=new Map(Object.entries(K)),M.extraData.productSpecificData=q);C=M;return W.yield(wNy(C,D,d),0)})};
_.G3C=function(u,K,l){try{if(u.flow==="help"){var D=u.helpCenterPath.replace(/^\//,"");_.s2(l||window,"https://support.google.com/"+D)}else u.flow==="submit"?ryC(u,K,l):k2Z(u.productId,u.feedbackServerUri).then(function(d){d=_.fV(d,iE,1);var C=!STq||(d==null?void 0:d.getEnableMweb()),W=!u.tinyNoPointer||(d==null?void 0:d.getEnableTinyNoPointer());!d||d.getAlohaAutoGaRollout()&&C&&W?vAm(u,K,l,d):ryC(u,K,l)},function(d){d&&d.name!=="DuplicateFormError"&&ryC(u,K,l)})}catch(d){vAm(u,K,l,null)}};
_.$L("userfeedback.api.startFeedback",_.G3C);var ZXq=/https?:\/\/\S+\.\S+/,Ygn=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],A5L=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var gc9=function(u){var K=u.split(""),l=[-263237435,15,K,function(D,d,C){var W=d.length;C.forEach(function(M,q,v){this.push(v[q]=d[(d.indexOf(M)-d.indexOf(this[q])+q+W--)%d.length])},D.split(""))},
function(D,d){D=(D%d.length+d.length)%d.length;d.splice(-D).reverse().forEach(function(C){d.unshift(C)})},
"response",function(){for(var D=64,d=[];++D-d.length-32;){switch(D){case 58:D-=14;case 91:case 92:case 93:continue;case 123:D=47;case 94:case 95:case 96:continue;case 46:D=95}d.push(String.fromCharCode(D))}return d},
null,12,1540023973,65941107,null,K,function(D,d){for(D=(D%d.length+d.length)%d.length;D--;)d.unshift(d.pop())},
695603893,function(D){for(var d=D.length;d;)D.push(D.splice(--d,1)[0])},
"'[;'[(",function(D,d){D.push(d)},
null,function(D,d,C,W,M){return d(C,W,M)},
"continuation",K,function(D,d){if(D.length!=0){d=(d%D.length+D.length)%D.length;var C=D[0];D[0]=D[d];D[d]=C}},
function(){for(var D=64,d=[];++D-d.length-32;){switch(D){case 91:D=44;continue;case 123:D=65;break;case 65:D-=18;continue;case 58:D=96;continue;case 46:D=95}d.push(String.fromCharCode(D))}return d},
'"),/]];'];l[7]=l;l[11]=l;l[18]=l;try{(((0,l[15])(l[21]),l[22])(l[11],l[9]),l[22])(l[new Date("1970-01-01T04:30:12.000+04:30")/1E3],l[1]),((0,l[22])(l[11],l[23]),l[4])(l[10],l[18]),(0,l[20])(l[21],l[14])<<(0,l[17])(l[18],l[1]),(0,l[4])(l[8],l[21]),(0,l[19])((0,l[19])((0,l[17])(l[7],l[9]),l[3],l[20],(0,l[6])(),l[2]),l[3],l[5],(0,l[15])(),l[2])}catch(D){return"aTlOUOubTO4AP____8P_"+u}return K.join("")};_.tQR=new _.r3("runAttestationCommand");var xbm=new _.r3("verifyCommand");_.T8=new _.r3("accessibilityContext");var SRs=new _.r3("accessibilityData");var baa=new _.r3("profileCardCommand");var GK9=new _.r3("signInEndpoint");var v6b=new _.r3("signOutEndpoint");var cya;_.Oas=new _.r3("accountItemSectionRenderer");cya=new _.r3("accountItemRenderer");_.a0B=new _.r3("saveCommandToSessionStorageAction");var zbN=new _.r3("crossAccountChannelTransferEndpoint");var qNo=new _.r3("getAccountMenuEndpoint");_.$cL=new _.r3("getAccountSwitcherEndpoint");var MWZ=new _.r3("getAccountsListEndpoint");var ebN=new _.r3("getAccountsListInnertubeEndpoint");_.w0=new _.r3("addToToastAction");var Rbk=new _.r3("hideEnclosingAction");_.FP=new _.r3("replaceEnclosingAction");var Uba=new _.r3("buttonRefreshAction");var f0w=new _.r3("adsControlFlowOpportunityReceivedCommand");var Qqw=new _.r3("openAdAllowlistInstructionCommand");var POs=new _.r3("videoMastheadAdPrimaryVideoRenderer");var JyS=new _.r3("displayAdRenderer");var Qiy=new _.r3("instreamVideoAdRenderer");_.jqa=new _.r3("inFeedAdLayoutRenderer");var BRS=new _.r3("sequenceItemInPlayerAdLayoutRenderer");_.pys=new _.r3("adSlotRenderer");var iaN=new _.r3("adAvatarViewModel");var TRs=new _.r3("adBadgeViewModel");var wyH=new _.r3("adImageViewModel");var ot9=new _.r3("reelsAdCardButtonedViewModel");var FIA=new _.r3("reelsPlayerOverlayLayoutViewModel");var VQa=new _.r3("showSchedulingPanelCommand");var gAS=new _.r3("backstageCommentsRenderer");var NRA=new _.r3("backstageImageRenderer");var k3N=new _.r3("backstagePostRenderer");var ZaN=new _.r3("backstageZeroStateRenderer");var YRB=new _.r3("postRenderer");var Aya=new _.r3("sharedPostRenderer");var Xy2=new _.r3("createBackstagePostEndpoint");var mbw=new _.r3("getPostVideoPreviewEndpoint");var hbm=new _.r3("updateBackstagePostEndpoint");var EAC=new _.r3("filterChipTransformCommand");var LIC=new _.r3("insertRichSectionCommand");var Kun=new _.r3("talkToRecsDeselectCommand");var u4w=new _.r3("talkToRecsNextCommand");var ukq=new _.r3("talkToRecsSelectCommand");var Kim=new _.r3("talkToRecsUpdateTextCommand");_.jt=new _.r3("browseEndpoint");_.lVB=new _.r3("confirmDialogEndpoint");var Dew=new _.r3("expandOnHoverCardRenderer");var dek=new _.r3("lumiereShelfDetailsRenderer");var C4B=new _.r3("revealBusinessEmailCommand");var IVB=new _.r3("validateChannelHandleCommand");var y1H=new _.r3("channelCreationFormEndpoint");var sBk=new _.r3("aboutChannelViewModel");var ozw=new _.r3("channelThumbnailWithLinkRenderer");var Wia=new _.r3("channelCreationServiceEndpoint");var HJa=new _.r3("updateChannelPageSettingsEndpoint");var Vb=function(u){this.delegate=u},g0=function(){Vb.apply(this,arguments)};
_.c(g0,Vb);_.MN.Object.defineProperties(g0.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(u){this.delegate.entityMetadata=u}}});var M3k=function(){g0.apply(this,arguments)};
_.c(M3k,g0);M3k.prototype.getAssociations=function(){return[]};
M3k.prototype.getTypeName=function(){return"channelHandle"};var Gy9=new _.r3("webThumbnailDetailsExtensionData");var F2o=new _.r3("commandContext");var qum=new _.r3("addVideoLinkAction");var $e2=new _.r3("banAuthorAction");var nzw=new _.r3("createCommentAction");var r1N=new _.r3("createCommentReplyAction");var vzk=new _.r3("createPollAction");var GYA=new _.r3("hideIdentityChipAction");var t3C=new _.r3("openUpdateCommentDialogAction");var xeN=new _.r3("pinCommentAction");var Suk=new _.r3("removeCommentAction");var bJm=new _.r3("unpinCommentAction");var NA=new _.r3("updateBackstagePollAction");var OJ0=new _.r3("updateCommentVoteAction");var c1C=new _.r3("commentThreadRenderer");var aVw=function(){g0.apply(this,arguments)};
_.c(aVw,g0);aVw.prototype.getAssociations=function(){return[]};
aVw.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var zNw=function(){g0.apply(this,arguments)};
_.c(zNw,g0);zNw.prototype.getAssociations=function(){return[]};
zNw.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.eNs=new _.r3("commentDialogRenderer");var RNw=new _.r3("reloadCommentsCommand");var Uem=new _.r3("updateCommentsSettingsEndpoint");var fVw=new _.r3("commentViewModel");var QBN=new _.r3("triStateButtonViewModel");var P4w=new _.r3("voiceReplyContainerViewModel");_.ey=new _.r3("commandExecutorCommand");var Lr=new _.r3("emoji");var J1a=new _.r3("updateCreatorChannelInnertubeCommand");_.jBR=new _.r3("appendContinuationItemsAction");_.Bx2=new _.r3("changeEngagementPanelVisibilityAction");_.C1=new _.r3("continuationCommand");var pWw=new _.r3("hideReportedCommentAction");var iJC=new _.r3("listMutationCommand");_.kg=new _.r3("openPopupAction");var Txs=new _.r3("persistSubscriptionsDisplayPreferencesCommand");var YuH;_.wWm=new _.r3("playlistRemoveVideosAction");_.Fim=new _.r3("updatePlaylistAction");_.V3m=new _.r3("addToPlaylistCommand");_.gzw=new _.r3("endPlaylistCommand");_.Nxk=new _.r3("recoverPlaylistCommand");_.kYm=new _.r3("refreshPlaylistCommand");_.ZJS=new _.r3("refreshFormCommand");YuH=new _.r3("openOnePickAddVideoModalCommand");_.xch=new _.r3("reloadContinuationItemsCommand");_.A1A=new _.r3("scrollToEngagementPanelCommand");var XWm=new _.r3("selectCountryCommand");var me2=new _.r3("showReloadUiCommand");var hNs=new _.r3("undoFeedbackAction");var EzR=new _.r3("updateButtonAction");var Li2=new _.r3("updateSubscribeButtonAction");var uxC=new _.r3("updateToggleAction");var KmA=new _.r3("webNativeShareCommand");_.nN=new _.r3("webCommandMetadata");_.Z3=new _.r3("webHandleServiceEndpointExtension");var HfL=new _.r3("webNavigationEndpointData");var lC2=new _.r3("copyLinkCommand");var Dik=new _.r3("playlistVotingRefreshPopupCommand");var di2=new _.r3("selectChipCommand");var CAw=new _.r3("setCookieCommand");var ICH=new _.r3("setLocalStorageCommand");var y5s=new _.r3("setPrefStorageEntryCommand");var HX0;_.sM0=new _.r3("settingsUpdateCheckboxCommand");_.o4a=new _.r3("settingsUpdateTextCommand");_.Wma=new _.r3("settingsUpdateOptionsCommand");HX0=new _.r3("settingsUpdateSwitchCommand");_.MSw=new _.r3("settingsUpdateConnectedAppRendererCommand");var qgB=new _.r3("updateTextInputFormFieldRendererCommand");var $ik=new _.r3("updateToggleButtonStateCommand");var n4s=new _.r3("updateUrlParamCommand");var r5k=new _.r3("webSubmitFormCommand");var v4k=new _.r3("channelSwitcherPageRenderer"),G2A=new _.r3("updateChannelSwitcherPageAction");_.rr=new _.r3("continuationItemRenderer");_.Yg=new _.r3("richItemRenderer");var tS0=new _.r3("richSectionRenderer");_.xiw=new _.r3("richShelfRenderer");_.Sg0=new _.r3("metadataBadgeRenderer");_.bXs=new _.r3("multiPageMenuNotificationSectionRenderer");_.OX0=new _.r3("playlistLoopButtonStateRenderer");var c5a=new _.r3("claimLegacyYoutubeChannelEndpoint");var aCm=new _.r3("getNotificationMenuEndpoint");var zjA=new _.r3("getSearchInVideoCommand");_.ejB=new _.r3("getTranscriptEndpoint");_.Ux=new _.r3("signalServiceEndpoint");var Rj2=new _.r3("verifyAgeEndpoint");var ZQ9=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(ZQ9,_.b5);ZQ9.prototype.getPath=function(){return _.A0(this,1)};
ZQ9.prototype.getValue=function(){return _.A0(this,2)};var UiB=[0,_.Mb,-1];var fCB=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(fCB,_.b5);var kcq=_.US(fCB,[0,_.qb,UiB]);var QM2=new _.r3("dismissalEndpoint");var PAw=new _.r3("elementsCommand");_.K4=new _.r3("innertubeCommand");var J5w=new _.r3("multipleInlinePlaybackCommand");var XHZ=new _.r3("loggingDirectives");var jMH=new _.r3("acknowledgeChannelTouStrikeCommand");var BON=function(){g0.apply(this,arguments)};
_.c(BON,g0);BON.prototype.getAssociations=function(){return[]};
BON.prototype.getTypeName=function(){return"booleanEntity"};var pNs=function(){g0.apply(this,arguments)};
_.c(pNs,g0);pNs.prototype.getAssociations=function(){return[]};
pNs.prototype.getTypeName=function(){return"stringEntity"};var $Y=new _.r3("entityBatchUpdate");_.iXa=new _.r3("entityUpdateCommand");var TOB=function(){g0.apply(this,arguments)};
_.c(TOB,g0);TOB.prototype.getAssociations=function(){var u=[];this.delegate.alternateChannel&&u.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&u.push.apply(u,_.Am(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&u.push(this.delegate.oneofChannelEntity);return[].concat(_.Am(new Set(u)))};
TOB.prototype.getTypeName=function(){return"fakeChannel"};var wN0=function(){g0.apply(this,arguments)};
_.c(wN0,g0);wN0.prototype.getAssociations=function(){var u=[];this.delegate.entryCollection&&u.push(this.delegate.entryCollection);return[].concat(_.Am(new Set(u)))};
wN0.prototype.getTypeName=function(){return"fakePlaylist"};
var Fma=function(){g0.apply(this,arguments)};
_.c(Fma,g0);Fma.prototype.getAssociations=function(){var u=[];this.delegate.parentPlaylist&&u.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var K=_.y(this.delegate.entries),l=K.next();!l.done;l=K.next())u.push.apply(u,_.Am((new VSH(l.value)).getAssociations()));return[].concat(_.Am(new Set(u)))};
Fma.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var VSH=function(){Vb.apply(this,arguments)};
_.c(VSH,Vb);VSH.prototype.getAssociations=function(){var u=[];this.delegate.video&&u.push(this.delegate.video);return[].concat(_.Am(new Set(u)))};var g4m=function(){g0.apply(this,arguments)};
_.c(g4m,g0);g4m.prototype.getAssociations=function(){var u=[];this.delegate.descriptionEntity&&u.push(this.delegate.descriptionEntity);this.delegate.creators&&u.push.apply(u,_.Am(this.delegate.creators));this.delegate.theBiggestFan&&u.push(this.delegate.theBiggestFan);return[].concat(_.Am(new Set(u)))};
g4m.prototype.getTypeName=function(){return"fakeVideo"};
var NO0=function(){g0.apply(this,arguments)};
_.c(NO0,g0);NO0.prototype.getAssociations=function(){return[]};
NO0.prototype.getTypeName=function(){return"fakeVideoDescription"};var k2B=new _.r3("fantasyRosterViewModel");var ZXH=new _.r3("addFollowUpSurveyCommand");var Ygm=new _.r3("getSurveyCommand");var A5k=new _.r3("ratingSurveyOptionRenderer");_.X_=new _.r3("feedbackEndpoint");var XNR=new _.r3("reportHistoryTableCellRenderer"),miA=new _.r3("reportHistoryTableTextCellRenderer"),hjs=new _.r3("reportHistoryTableReasonCellRenderer");_.E4w=new _.r3("flagEndpoint");var Lmw=new _.r3("getFlowCommand");var usa=new _.r3("submitFormWithValidationFlowCommand");var KRC=function(){g0.apply(this,arguments)};
_.c(KRC,g0);KRC.prototype.getAssociations=function(){return[]};
KRC.prototype.getTypeName=function(){return"flowStateEntity"};var lwa=new _.r3("flowFormState");var D2a=new _.r3("gameCardRenderer");var d2H=new _.r3("accountLinkingStateChangedCommand");var CHH=function(){g0.apply(this,arguments)};
_.c(CHH,g0);CHH.prototype.getAssociations=function(){return[]};
CHH.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var Iwk=new _.r3("changeMiniAppPlayStateCommand");var y7R=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(y7R,_.b5);var AW=[1,2,3];var sha=[0,AW,XXq,_.mqy,Vwq];var ovs=_.US(y7R,sha),WRk=_.fM(sha);var He2=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(He2,_.b5);var MDm=[0,_.oq,_.Mb];var qc2=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(qc2,_.b5);var $2R=[0,_.Mb,_.oq,-1];var XP=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(XP,_.b5);var nv0=_.fM([0,1,MDm,_.rR,$2R]);var r7H=new _.r3("miniAppScoreChallengeViewModel");var vvR=new _.r3("miniGameCardViewModel");var G$m=new _.r3("teaserCardViewModel");var tDw=function(){g0.apply(this,arguments)};
_.c(tDw,g0);tDw.prototype.getAssociations=function(){return[]};
tDw.prototype.getTypeName=function(){return"logoEntity"};_.x2B=new _.r3("feedbackItemRenderer");var Scs=function(){g0.apply(this,arguments)};
_.c(Scs,g0);Scs.prototype.getAssociations=function(){return[]};
Scs.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.beN=new _.r3("playerInterstitialRenderer");var OeS=new _.r3("getKidsBlocklistPickerCommand");_.c7N=new _.r3("updateKidsBlacklistEndpoint");_.DL=new _.r3("likeEndpoint");var awa,zYR,eYS;awa=new _.r3("addChatItemAction");zYR=new _.r3("removeChatItemAction");eYS=new _.r3("markChatItemAsDeletedAction");_.RYB=new _.r3("setLiveChatCollapsedStateAction");var U2S=function(){g0.apply(this,arguments)};
_.c(U2S,g0);U2S.prototype.getAssociations=function(){return[]};
U2S.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var fwm=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(fwm,_.b5);var QhB=_.US(fwm,[0,1,_.oq]);var PHm=new _.r3("liveChatEndpoint");var J7S=new _.r3("liveChatItemContextMenuEndpoint");var jhw=new _.r3("liveChatReplayEndpoint");_.B3k=new _.r3("emojiPickerRenderer");var pPm=new _.r3("liveChatAuthorBadgeViewModel");var ieS=new _.r3("deleteLiveChatMessageCommand");var T3H=new _.r3("liveChatActionEndpoint");var wPA=new _.r3("createLiveChatPollEndpoint");var FRS=new _.r3("manageLiveChatUserEndpoint");var VDw=new _.r3("moderateLiveChatEndpoint");_.gvB=new _.r3("sendLiveChatMessageEndpoint");var N3C=new _.r3("sendLiveChatVoteEndpoint");var k$w=new _.r3("clearLocationCommand");var ZeB=new _.r3("resolveLocationCommand");var YcA=new _.r3("interactionLoggingCommandMetadata");var A7k=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(A7k,_.b5);var XPR=function(u,K){return _.OQ(u,1,K)};var m2S=[0,_.Hy];var hYa=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(hYa,_.b5);var EvC=function(u,K){return Pu(u,1,A7k,K)};hYa.prototype.JSC$12046_serializeBinary=SSq([0,_.qb,m2S]);var $2H={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 LR0={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"},
uGw={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 i9L={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"};_.ByH=new _.r3("logFlowLoggingEventCommand");_.TW=new _.r3("loggingContext");var KeC=new _.r3("captionLanguageSelectActionCommand");var lFm=new _.r3("showCaptionLanguageSelectActionCommand");var DLw=new _.r3("dismissDialogEndpoint");var dLR=new _.r3("hideItemSectionVideosByIdCommand");var C1a=new _.r3("showMiniplayerCommand");var IFB=function(){g0.apply(this,arguments)};
_.c(IFB,g0);IFB.prototype.getAssociations=function(){return[]};
IFB.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var y$m=function(){g0.apply(this,arguments)};
_.c(y$m,g0);y$m.prototype.getAssociations=function(){return[]};
y$m.prototype.getTypeName=function(){return"downloadStatusEntity"};var sow=function(){g0.apply(this,arguments)};
_.c(sow,g0);sow.prototype.getAssociations=function(){return[]};
sow.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var o1m=function(){g0.apply(this,arguments)};
_.c(o1m,g0);o1m.prototype.getAssociations=function(){var u=[];this.delegate.downloadsList&&u.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&u.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&u.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&u.push(this.delegate.refresh);return[].concat(_.Am(new Set(u)))};
o1m.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var WeA=function(){g0.apply(this,arguments)};
_.c(WeA,g0);WeA.prototype.getAssociations=function(){var u=[];this.delegate.refresh&&u.push(this.delegate.refresh);if(this.delegate.downloads)for(var K=_.y(this.delegate.downloads),l=K.next();!l.done;l=K.next())u.push.apply(u,_.Am((new HWs(l.value)).getAssociations()));return[].concat(_.Am(new Set(u)))};
WeA.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var HWs=function(){Vb.apply(this,arguments)};
_.c(HWs,Vb);HWs.prototype.getAssociations=function(){var u=[];this.delegate.video&&u.push(this.delegate.video);this.delegate.playlist&&u.push(this.delegate.playlist);this.delegate.videoItem&&u.push(this.delegate.videoItem);this.delegate.playlistItem&&u.push(this.delegate.playlistItem);return[].concat(_.Am(new Set(u)))};var MYw=function(){g0.apply(this,arguments)};
_.c(MYw,g0);MYw.prototype.getAssociations=function(){var u=[];this.delegate.localImageEntities&&u.push.apply(u,_.Am(this.delegate.localImageEntities));return[].concat(_.Am(new Set(u)))};
MYw.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var qCN=function(){g0.apply(this,arguments)};
_.c(qCN,g0);qCN.prototype.getAssociations=function(){var u=[];this.delegate.playbackData&&u.push(this.delegate.playbackData);this.delegate.localImageEntities&&u.push.apply(u,_.Am(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&u.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Am(new Set(u)))};
qCN.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var $LC=function(){g0.apply(this,arguments)};
_.c($LC,g0);$LC.prototype.getAssociations=function(){return[]};
$LC.prototype.getTypeName=function(){return"offlineabilityEntity"};var n1a=function(){g0.apply(this,arguments)};
_.c(n1a,g0);n1a.prototype.getAssociations=function(){var u=[];this.delegate.fakeChildren&&u.push.apply(u,_.Am(this.delegate.fakeChildren));return[].concat(_.Am(new Set(u)))};
n1a.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var r$k=function(){g0.apply(this,arguments)};
_.c(r$k,g0);r$k.prototype.getAssociations=function(){var u=[];this.delegate.video&&u.push(this.delegate.video);this.delegate.playbackData&&u.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&u.push(this.delegate.offlineVideoPolicy);return[].concat(_.Am(new Set(u)))};
r$k.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var v1a=function(){g0.apply(this,arguments)};
_.c(v1a,g0);v1a.prototype.getAssociations=function(){return[]};
v1a.prototype.getTypeName=function(){return"continuationTokenEntity"};var GVS=function(){g0.apply(this,arguments)};
_.c(GVS,g0);GVS.prototype.getAssociations=function(){var u=[];this.delegate.channelOwner&&u.push(this.delegate.channelOwner);this.delegate.videos&&u.push.apply(u,_.Am(this.delegate.videos));this.delegate.collaboratorChannels&&u.push.apply(u,_.Am(this.delegate.collaboratorChannels));this.delegate.downloadState&&u.push(this.delegate.downloadState);this.delegate.refresh&&u.push(this.delegate.refresh);return[].concat(_.Am(new Set(u)))};
GVS.prototype.getTypeName=function(){return"mainPlaylistEntity"};var tYR=function(){g0.apply(this,arguments)};
_.c(tYR,g0);tYR.prototype.getAssociations=function(){var u=[];this.delegate.video&&u.push(this.delegate.video);this.delegate.channelContributor&&u.push(this.delegate.channelContributor);return[].concat(_.Am(new Set(u)))};
tYR.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var xLs=function(){Vb.apply(this,arguments)};
_.c(xLs,Vb);xLs.prototype.getAssociations=function(){var u=[];this.delegate.recommendedVideoMetadata&&u.push.apply(u,_.Am((new SC2(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Am(new Set(u)))};
var SC2=function(){Vb.apply(this,arguments)};
_.c(SC2,Vb);SC2.prototype.getAssociations=function(){var u=[];this.delegate.localImageEntities&&u.push.apply(u,_.Am(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&u.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Am(new Set(u)))};var bWa=function(){Vb.apply(this,arguments)};
_.c(bWa,Vb);bWa.prototype.getAssociations=function(){var u=[];this.delegate.playbackPosition&&u.push(this.delegate.playbackPosition);return[].concat(_.Am(new Set(u)))};var OWs=function(){g0.apply(this,arguments)};
_.c(OWs,g0);OWs.prototype.getAssociations=function(){var u=[];this.delegate.owner&&u.push(this.delegate.owner);this.delegate.downloadState&&u.push(this.delegate.downloadState);this.delegate.userState&&u.push.apply(u,_.Am((new bWa(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&u.push.apply(u,_.Am((new xLs(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Am(new Set(u)))};
OWs.prototype.getTypeName=function(){return"mainVideoEntity"};var c$s=function(){g0.apply(this,arguments)};
_.c(c$s,g0);c$s.prototype.getAssociations=function(){var u=[];this.delegate.userChannelDetails&&u.push(this.delegate.userChannelDetails);return[].concat(_.Am(new Set(u)))};
c$s.prototype.getTypeName=function(){return"ytMainChannelEntity"};var aFw=function(){g0.apply(this,arguments)};
_.c(aFw,g0);aFw.prototype.getAssociations=function(){var u=[];this.delegate.channelOwner&&u.push(this.delegate.channelOwner);this.delegate.playbackPosition&&u.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&u.push.apply(u,_.Am(this.delegate.localImageEntities));this.delegate.downloadStatus&&u.push(this.delegate.downloadStatus);return[].concat(_.Am(new Set(u)))};
aFw.prototype.getTypeName=function(){return"ytMainVideoEntity"};var oiL=new _.r3("downloadsPageSmartDownloadsOptInBannerParams");var q7h=new _.r3("downloadsPageUpsellBannerParams");var zsA=function(){g0.apply(this,arguments)};
_.c(zsA,g0);zsA.prototype.getAssociations=function(){return[]};
zsA.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var esm=function(){g0.apply(this,arguments)};
_.c(esm,g0);esm.prototype.getAssociations=function(){return[]};
esm.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var Rsk=function(){g0.apply(this,arguments)};
_.c(Rsk,g0);Rsk.prototype.getAssociations=function(){return[]};
Rsk.prototype.getTypeName=function(){return"macroMarkerEntity"};var UL0=function(){g0.apply(this,arguments)};
_.c(UL0,g0);UL0.prototype.getAssociations=function(){return[]};
UL0.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var fFS=function(){g0.apply(this,arguments)};
_.c(fFS,g0);fFS.prototype.getAssociations=function(){return[]};
fFS.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var Qow=function(){g0.apply(this,arguments)};
_.c(Qow,g0);Qow.prototype.getAssociations=function(){return[]};
Qow.prototype.getTypeName=function(){return"playerStateEntity"};var P1k=function(){g0.apply(this,arguments)};
_.c(P1k,g0);P1k.prototype.getAssociations=function(){return[]};
P1k.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var J$2=function(){g0.apply(this,arguments)};
_.c(J$2,g0);J$2.prototype.getAssociations=function(){return[]};
J$2.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var joR=function(){g0.apply(this,arguments)};
_.c(joR,g0);joR.prototype.getAssociations=function(){return[]};
joR.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.mD=new _.r3("dislikeButtonViewModel");_.hW=new _.r3("likeButtonViewModel");var BV2=new _.r3("videoSummaryContentViewModel");var pSa=new _.r3("videoSummaryParagraphViewModel");var iWa=new _.r3("changeTimelyActionVisibilityCommand");var TVH=new _.r3("hideEngagementPanelEndpoint");var wS2=new _.r3("refreshPanelEndpoint");var Fek=new _.r3("scrollToSectionEndpoint");var VYk=new _.r3("seekToVideoTimestampCommand");_.An=new _.r3("showEngagementPanelEndpoint");var g1A=new _.r3("showTransientPlayerScrimOverlayCommand");var NVA=new _.r3("toggleEngagementPanelCommand");_.kVH=new _.r3("createBroadcastCommand");var ZWa=new _.r3("metadataUpdateCommand");var YCB=function(){g0.apply(this,arguments)};
_.c(YCB,g0);YCB.prototype.getAssociations=function(){return[]};
YCB.prototype.getTypeName=function(){return"featuredProductsEntity"};var A$S=function(){g0.apply(this,arguments)};
_.c(A$S,g0);A$S.prototype.getAssociations=function(){return[]};
A$S.prototype.getTypeName=function(){return"pinnedProductEntity"};var XSH=function(){g0.apply(this,arguments)};
_.c(XSH,g0);XSH.prototype.getAssociations=function(){return[]};
XSH.prototype.getTypeName=function(){return"trendingOfferEntity"};_.mL0=new _.r3("merchandiseShelfRenderer");var hsB=new _.r3("gridMovieRenderer");_.E1m=new _.r3("movieRenderer");var Le2=function(){g0.apply(this,arguments)};
_.c(Le2,g0);Le2.prototype.getAssociations=function(){var u=[];this.delegate.trackDownloadMetadatas&&u.push.apply(u,_.Am(this.delegate.trackDownloadMetadatas));return[].concat(_.Am(new Set(u)))};
Le2.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var uMa=function(){g0.apply(this,arguments)};
_.c(uMa,g0);
uMa.prototype.getAssociations=function(){var u=[];this.delegate.downloadedTracks&&u.push.apply(u,_.Am(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&u.push.apply(u,_.Am(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&u.push.apply(u,_.Am(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&u.push.apply(u,_.Am(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&u.push.apply(u,_.Am(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
u.push.apply(u,_.Am(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&u.push.apply(u,_.Am(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&u.push.apply(u,_.Am(this.delegate.metadataOnlyTracks));return[].concat(_.Am(new Set(u)))};
uMa.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var Kvk=function(){g0.apply(this,arguments)};
_.c(Kvk,g0);Kvk.prototype.getAssociations=function(){var u=[];this.delegate.trackDownloadMetadatas&&u.push.apply(u,_.Am(this.delegate.trackDownloadMetadatas));return[].concat(_.Am(new Set(u)))};
Kvk.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var ljH=function(){g0.apply(this,arguments)};
_.c(ljH,g0);ljH.prototype.getAssociations=function(){var u=[];this.delegate.playbackData&&u.push(this.delegate.playbackData);this.delegate.localImageEntities&&u.push.apply(u,_.Am(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&u.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Am(new Set(u)))};
ljH.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var DDa=function(){g0.apply(this,arguments)};
_.c(DDa,g0);
DDa.prototype.getAssociations=function(){var u=[];this.delegate.musicLibraryStatusEntity&&u.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&u.push.apply(u,_.Am(this.delegate.primaryArtists));this.delegate.details&&u.push(this.delegate.details);this.delegate.userDetails&&u.push(this.delegate.userDetails);this.delegate.tracks&&u.push.apply(u,_.Am(this.delegate.tracks));this.delegate.share&&u.push(this.delegate.share);this.delegate.downloadMetadata&&u.push(this.delegate.downloadMetadata);this.delegate.refresh&&
u.push(this.delegate.refresh);return[].concat(_.Am(new Set(u)))};
DDa.prototype.getTypeName=function(){return"musicAlbumRelease"};
var dDw=function(){g0.apply(this,arguments)};
_.c(dDw,g0);dDw.prototype.getAssociations=function(){var u=[];this.delegate.albumRelease&&u.push(this.delegate.albumRelease);this.delegate.tracks&&u.push.apply(u,_.Am(this.delegate.tracks));return[].concat(_.Am(new Set(u)))};
dDw.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var C62=function(){g0.apply(this,arguments)};
_.c(C62,g0);C62.prototype.getAssociations=function(){var u=[];this.delegate.albumRelease&&u.push(this.delegate.albumRelease);return[].concat(_.Am(new Set(u)))};
C62.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var IjR=function(){g0.apply(this,arguments)};
_.c(IjR,g0);IjR.prototype.getAssociations=function(){var u=[];this.delegate.details&&u.push(this.delegate.details);this.delegate.userDetails&&u.push(this.delegate.userDetails);return[].concat(_.Am(new Set(u)))};
IjR.prototype.getTypeName=function(){return"musicArtist"};
var yeR=function(){g0.apply(this,arguments)};
_.c(yeR,g0);yeR.prototype.getAssociations=function(){var u=[];this.delegate.parentArtist&&u.push(this.delegate.parentArtist);return[].concat(_.Am(new Set(u)))};
yeR.prototype.getTypeName=function(){return"musicArtistDetail"};
var sxN=function(){g0.apply(this,arguments)};
_.c(sxN,g0);sxN.prototype.getAssociations=function(){var u=[];this.delegate.parentArtist&&u.push(this.delegate.parentArtist);return[].concat(_.Am(new Set(u)))};
sxN.prototype.getTypeName=function(){return"musicArtistUserDetail"};var oXH=function(){g0.apply(this,arguments)};
_.c(oXH,g0);oXH.prototype.getAssociations=function(){return[]};
oXH.prototype.getTypeName=function(){return"musicLibraryEdit"};var WvN=function(){g0.apply(this,arguments)};
_.c(WvN,g0);WvN.prototype.getAssociations=function(){return[]};
WvN.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var HkC=function(){g0.apply(this,arguments)};
_.c(HkC,g0);
HkC.prototype.getAssociations=function(){var u=[];this.delegate.tracks&&u.push.apply(u,_.Am(this.delegate.tracks));this.delegate.refresh&&u.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&u.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&u.push(this.delegate.details);this.delegate.downloadMetadata&&u.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&u.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&u.push(this.delegate.userDetails);this.delegate.entryCollection&&
u.push(this.delegate.entryCollection);this.delegate.share&&u.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&u.push.apply(u,_.Am((new MsC(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Am(new Set(u)))};
HkC.prototype.getTypeName=function(){return"musicPlaylist"};
var MsC=function(){Vb.apply(this,arguments)};
_.c(MsC,Vb);MsC.prototype.getAssociations=function(){var u=[];this.delegate.creatorEntity&&u.push(this.delegate.creatorEntity);return[].concat(_.Am(new Set(u)))};var qFS=function(){g0.apply(this,arguments)};
_.c(qFS,g0);qFS.prototype.getAssociations=function(){return[]};
qFS.prototype.getTypeName=function(){return"musicShare"};var $DA=function(){g0.apply(this,arguments)};
_.c($DA,g0);
$DA.prototype.getAssociations=function(){var u=[];this.delegate.musicLibraryStatusEntity&&u.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&u.push.apply(u,_.Am(this.delegate.artists));this.delegate.audioModeVersion&&u.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&u.push(this.delegate.videoModeVersion);this.delegate.userDetails&&u.push(this.delegate.userDetails);this.delegate.details&&u.push(this.delegate.details);this.delegate.albumRelease&&u.push(this.delegate.albumRelease);this.delegate.share&&
u.push(this.delegate.share);this.delegate.libraryEdit&&u.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&u.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&u.push(this.delegate.playbackPosition);this.delegate.lyrics&&u.push(this.delegate.lyrics);return[].concat(_.Am(new Set(u)))};
$DA.prototype.getTypeName=function(){return"musicTrack"};
var nXC=function(){g0.apply(this,arguments)};
_.c(nXC,g0);nXC.prototype.getAssociations=function(){var u=[];this.delegate.parentTrack&&u.push(this.delegate.parentTrack);return[].concat(_.Am(new Set(u)))};
nXC.prototype.getTypeName=function(){return"musicTrackDetail"};
var rea=function(){g0.apply(this,arguments)};
_.c(rea,g0);rea.prototype.getAssociations=function(){var u=[];this.delegate.parentTrack&&u.push(this.delegate.parentTrack);return[].concat(_.Am(new Set(u)))};
rea.prototype.getTypeName=function(){return"musicTrackUserDetail"};var qZ=new _.r3("musicResponsiveListItemRenderer");var cSy=new _.r3("addToPlaylistEndpoint");var vXm=new _.r3("captionPickerEndpoint");var G72=new _.r3("suggestStats");var tsw=new _.r3("backstageImageUploadEndpoint");var xDa=new _.r3("createBackstagePostDialogEndpoint");_.SFA=new _.r3("createCommentReplyDialogEndpoint");_.bkR=new _.r3("updateCommentDialogEndpoint");_.Ok2=new _.r3("updateCommentReplyDialogEndpoint");var cew=new _.r3("menuEndpoint");var sGH=new _.r3("modalEndpoint");var ajw=new _.r3("playlistEditorEndpoint");var zmN=new _.r3("copyTextEndpoint");var ema,Rmm;ema=new _.r3("shareEndpoint");Rmm=new _.r3("shareEntityEndpoint");_.UD0=new _.r3("shareEntityServiceEndpoint");_.jUr=new _.r3("userFeedbackEndpoint");_.oy=new _.r3("watchEndpoint");var gML=new _.r3("watchPlaylistEndpoint");var fjH=new _.r3("addUpcomingEventReminderEndpoint");_.EU=new _.r3("getCommentsFromInboxCommand");var Qxw=new _.r3("notificationOptOutEndpoint");var P6a=new _.r3("recordNotificationInteractionsEndpoint");var JeA=new _.r3("removeUpcomingEventReminderEndpoint");var bjq=new _.r3("getDownloadActionCommand");_.jxa=new _.r3("offlineOrchestrationActionCommand");var BCA=function(){g0.apply(this,arguments)};
_.c(BCA,g0);BCA.prototype.getAssociations=function(){return[]};
BCA.prototype.getTypeName=function(){return"captionTrack"};var pzH=function(){g0.apply(this,arguments)};
_.c(pzH,g0);pzH.prototype.getAssociations=function(){return[]};
pzH.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var ika=function(){g0.apply(this,arguments)};
_.c(ika,g0);ika.prototype.getAssociations=function(){return[]};
ika.prototype.getTypeName=function(){return"offlineVideoPolicy"};var TCN=function(){g0.apply(this,arguments)};
_.c(TCN,g0);TCN.prototype.getAssociations=function(){return[]};
TCN.prototype.getTypeName=function(){return"offlineVideoStreams"};var wzN=function(){g0.apply(this,arguments)};
_.c(wzN,g0);wzN.prototype.getAssociations=function(){var u=[];this.delegate.transfer&&u.push(this.delegate.transfer);this.delegate.adsPlaybackData&&u.push.apply(u,_.Am(this.delegate.adsPlaybackData));this.delegate.drmLicense&&u.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&u.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&u.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Am(new Set(u)))};
wzN.prototype.getTypeName=function(){return"playbackData"};var Fvk=function(){g0.apply(this,arguments)};
_.c(Fvk,g0);Fvk.prototype.getAssociations=function(){return[]};
Fvk.prototype.getTypeName=function(){return"refresh"};var VsC=function(){g0.apply(this,arguments)};
_.c(VsC,g0);VsC.prototype.getAssociations=function(){var u=[];this.delegate.offlineVideoStreams&&u.push.apply(u,_.Am(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&u.push.apply(u,_.Am(this.delegate.captionTrack));return[].concat(_.Am(new Set(u)))};
VsC.prototype.getTypeName=function(){return"transfer"};var gX2=function(){g0.apply(this,arguments)};
_.c(gX2,g0);gX2.prototype.getAssociations=function(){return[]};
gX2.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var NCs=new _.r3("showMoreDrawerCommand");var k7N=new _.r3("updateEngagementPanelContentCommand");var Zkw=new _.r3("getPdgBuyFlowCommand");var YF2=new _.r3("liveChatPurchaseMessageEndpoint");var Aes=new _.r3("openSuperStickerBuyFlowCommand");var XzH=new _.r3("updatePdgFeatureEnablementCommand");var mDH=function(){g0.apply(this,arguments)};
_.c(mDH,g0);mDH.prototype.getAssociations=function(){return[]};
mDH.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var hma=function(){g0.apply(this,arguments)};
_.c(hma,g0);hma.prototype.getAssociations=function(){return[]};
hma.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.EXH=new _.r3("pdgCommentChipRenderer");_.Lvw=new _.r3("permissionRoleBottomBarRenderer");_.uPN=new _.r3("updatePermissionRoleCommand");var KDA=new _.r3("prefetchWatchCommand");var l30=new _.r3("updatePlayerErrorMessageCommand");var nQZ=new _.r3("toggleCaptionsVisibilityCommand");_.DAA=new _.r3("quickActionsViewModel");var dAH=new _.r3("playerResponse");var CEw=new _.r3("playlistRenderer");_.I3N=new _.r3("playlistVideoListRenderer");_.LP=new _.r3("playlistEditEndpoint");var yWw=new _.r3("createImagePollCommand");var sP0=new _.r3("createQuizCommand");var og0=new _.r3("quizRenderer");var WDC=new _.r3("uploadedVideoRenderer");var HPw=new _.r3("decorateMessageEndpoint");var MhC=new _.r3("lpOfferCardOptionViewModel");var qUk=new _.r3("sfvAudioItemPlaybackCommand");var $As=function(){g0.apply(this,arguments)};
_.c($As,g0);$As.prototype.getAssociations=function(){return[]};
$As.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.uF=new _.r3("reelNonVideoContentEndpoint");_.TO=new _.r3("reelWatchEndpoint");_.Kt=new _.r3("reelItemRenderer");_.ngH=new _.r3("reelMetapanelViewModel");_.rWa=new _.r3("reelNonVideoContentRenderer");_.vgB=new _.r3("reelPlayerOverlayRenderer");var G8H=new _.r3("shortsLockupViewModel");var thw=new _.r3("sponsorButtonViewModel");var xAR=new _.r3("reelItemWatchResponse");var SUC=new _.r3("textBadgeRenderer");_.lF=new _.r3("buttonRenderer");_.DG=new _.r3("toggleButtonRenderer");var lW9=new _.r3("switchButtonViewModel");_.bPa=new _.r3("confirmDialogRenderer");var OP0;OP0=new _.r3("menuRenderer");_.cWm=new _.r3("menuFlexibleItemRenderer");var a3B=new _.r3("pollRenderer");_.zA0=new _.r3("backgroundPromoRenderer");var RAa;_.eAa=new _.r3("chipCloudRenderer");RAa=new _.r3("chipCloudChipRenderer");var UAH=new _.r3("dropdownRenderer");var f3B=new _.r3("gridVideoRenderer");_.QPa=new _.r3("itemSectionRenderer");_.PEs=new _.r3("messageRenderer");var JWS=new _.r3("sortFilterHeaderRenderer");_.dz=new _.r3("videoRenderer");var jPC=new _.r3("resolveUrlCommandMetadata");var B0m=function(){g0.apply(this,arguments)};
_.c(B0m,g0);B0m.prototype.getAssociations=function(){return[]};
B0m.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.pdB=new _.r3("getAnswerCommand");_.BI=new _.r3("searchEndpoint");var iPa=new _.r3("genAiRichTextViewModel");var SNL=new _.r3("overviewAnswerViewModel");var T02=new _.r3("addToPlaylistServiceEndpoint");var wdA=new _.r3("clearSearchHistoryEndpoint");var FDw=new _.r3("clearWatchHistoryEndpoint");var Vh2=new _.r3("webSerializedServiceEndpointExtension");_.ggA=new _.r3("createCommentEndpoint");var N0a=new _.r3("createCommentReplyEndpoint");var k8S=new _.r3("performCommentActionEndpoint");var ZPm=new _.r3("updateCommentEndpoint");var YUm=new _.r3("updateCommentReplyEndpoint");_.Ct=new _.r3("createPlaylistServiceEndpoint");var AWH=new _.r3("deletePlaylistEndpoint");var Xd0=new _.r3("deleteVideoEndpoint");var OjH=new _.r3("getReportFormEndpoint");var mAa=new _.r3("modifyChannelNotificationPreferenceEndpoint");var wYo;_.BJ=new _.r3("offlinePlaylistEndpoint");wYo={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 FNL;_.JK=new _.r3("offlineVideoEndpoint");FNL={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 hAS=new _.r3("pingingEndpoint");_.Egw=new _.r3("selectActiveIdentityEndpoint");var LDa=new _.r3("setSettingEndpoint");var lon=new _.r3("undoFeedbackEndpoint");var u1N=new _.r3("unsubscribeEndpoint");_.KKs=new _.r3("updatedMetadataEndpoint");var lGB=function(){g0.apply(this,arguments)};
_.c(lGB,g0);lGB.prototype.getAssociations=function(){return[]};
lGB.prototype.getTypeName=function(){return"settingEntity"};_.DGa=new _.r3("updateLocalAppSettingCommand");var dGs=new _.r3("saveImageToDeviceEndpoint");var CFa=new _.r3("shareImageCommand");var IGB=new _.r3("sharingProviderDataCommand");var yFa=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(yFa,_.b5);var sDR=[0,_.Mb,-1];yFa.prototype.JSC$12247_serializeBinary=SSq(sDR);var oik=_.fM(sDR);var WKB=new _.r3("userMentionSuggestionRenderer");var nxS=new _.r3("liveChatTunnelCommand");var rTm=new _.r3("showSponsorshipsGiftOfferDialogCommand");var vxk=new _.r3("sponsorshipsScrollableShelfViewModel");var GtS=new _.r3("updateUpcomingEventReminderButtonStateCommand");var t_H=new _.r3("upcomingEventReminderButtonStateRenderer");var xsH=new _.r3("subscribeEndpoint");var Sj2=new _.r3("registerTasksCommand");var b7S=new _.r3("hideSnackbarCommand");var O7A=new _.r3("showDialogCommand");_.wE=new _.r3("showSheetCommand");var cT0=new _.r3("showSnackbarCommand");var aT0=function(){g0.apply(this,arguments)};
_.c(aT0,g0);aT0.prototype.getAssociations=function(){return[]};
aT0.prototype.getTypeName=function(){return"chipEntity"};var z2w=function(){g0.apply(this,arguments)};
_.c(z2w,g0);z2w.prototype.getAssociations=function(){return[]};
z2w.prototype.getTypeName=function(){return"dismissState"};_.ds=new _.r3("avatarViewModel");var e2k=new _.r3("badgeViewModel");_.kY=new _.r3("buttonViewModel");_.ID=new _.r3("chipViewModel");var MTL=new _.r3("collectionThumbnailViewModel");var R2B=new _.r3("contentPreviewImageViewModel");var Usa=new _.r3("decoratedAvatarViewModel");var Ntq=new _.r3("downloadButtonViewModel");_.yhH=new _.r3("engagementBarViewModel");_.fTs=new _.r3("imageBannerViewModel");var Q8k=new _.r3("lockupContentMetadataRowExtension");var PXB=new _.r3("lockupMetadataViewModel");_.JTk=new _.r3("lockupViewModel");var j80=new _.r3("avatarStackViewModel");_.BwC=new _.r3("contentMetadataViewModel");var pe2=function(){g0.apply(this,arguments)};
_.c(pe2,g0);pe2.prototype.getAssociations=function(){return[]};
pe2.prototype.getTypeName=function(){return"pageHeaderEntity"};_.i7C=new _.r3("pageHeaderViewModel");var TwS=new _.r3("snackbarViewModel");var we2=new _.r3("thumbnailHoverOverlayToggleActionsViewModel");_.Za=new _.r3("toggleButtonViewModel");var FL2=function(){g0.apply(this,arguments)};
_.c(FL2,g0);FL2.prototype.getAssociations=function(){return[]};
FL2.prototype.getTypeName=function(){return"votingEntity"};_.skZ=new _.r3("votingViewModel");var V_0=new _.r3("sectionHeaderViewModel");var gxs=new _.r3("notifyDropdownOptionSelectedCommand");var UYq=new _.r3("listViewModel");_.Ff=new _.r3("listItemViewModel");var Nwm=new _.r3("dialogHeaderViewModel");var kt2=function(){g0.apply(this,arguments)};
_.c(kt2,g0);kt2.prototype.getAssociations=function(){return[]};
kt2.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var Z72=function(){g0.apply(this,arguments)};
_.c(Z72,g0);Z72.prototype.getAssociations=function(){return[]};
Z72.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var Yja=function(){g0.apply(this,arguments)};
_.c(Yja,g0);Yja.prototype.getAssociations=function(){return[]};
Yja.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.ATa=new _.r3("transcriptSubmitCaptionCorrectionCommand");var Xem=function(){g0.apply(this,arguments)};
_.c(Xem,g0);Xem.prototype.getAssociations=function(){return[]};
Xem.prototype.getTypeName=function(){return"buttonEntity"};var myq=new _.r3("unpluggedStringRunImage");var msa=new _.r3("tabViewModel");var h2a=new _.r3("tabbedViewModel");var ExR=function(){g0.apply(this,arguments)};
_.c(ExR,g0);ExR.prototype.getAssociations=function(){return[]};
ExR.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.LL0=new _.r3("updateDescriptionAction");var uO0=new _.r3("updateToggleButtonTextAction");_.KHa=new _.r3("autoplaySwitchButtonRenderer");var hn;_.llN=new _.r3("multiMarkersPlayerBarRenderer");hn=new _.r3("chapterRenderer");var D6k=new _.r3("heatMarkerRenderer");var $Mh=new _.r3("heatmapRenderer");var d6N=new _.r3("smartSkipPlayerScrimOverlayRenderer");var CfA=new _.r3("timedMarkerDecorationRenderer");var ZF9=new _.r3("postWebToNativeMessageCommand");var Ilm=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Ilm,_.b5);Ilm.prototype.getMethodName=function(){return _.A0(this,1)};var yQA=_.US(Ilm,[0,_.Mb,-2]);var suC=new _.r3("whitelistEditEndpoint");var oKS=new _.r3("clearUrlParamCommand");var WHa=new _.r3("commerceActionCommand");_.Hoa=new _.r3("getPaymentInstrumentsParamsCommand");var MKm=new _.r3("getPaymentsClientTokenCommand");var q$0=new _.r3("googlePaymentBillingCommand");var $6H=new _.r3("googlePaymentPurchaseManagerCommand");_.nKS=new _.r3("logGtmCommand");var rQ2=new _.r3("updateCardItemOnClickCommand");_.vKw=new _.r3("ypcPauseSubscriptionCommand");_.GFC=new _.r3("ypcResumeSubscriptionCommand");var tKw=function(){g0.apply(this,arguments)};
_.c(tKw,g0);tKw.prototype.getAssociations=function(){return[]};
tKw.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var x6B=function(){g0.apply(this,arguments)};
_.c(x6B,g0);x6B.prototype.getAssociations=function(){return[]};
x6B.prototype.getTypeName=function(){return"commerceCartListEntity"};var S$H=function(){g0.apply(this,arguments)};
_.c(S$H,g0);S$H.prototype.getAssociations=function(){return[]};
S$H.prototype.getTypeName=function(){return"iconBadgeEntity"};var boH=function(){g0.apply(this,arguments)};
_.c(boH,g0);boH.prototype.getAssociations=function(){return[]};
boH.prototype.getTypeName=function(){return"pdpStateEntity"};var OoC=function(){g0.apply(this,arguments)};
_.c(OoC,g0);OoC.prototype.getAssociations=function(){return[]};
OoC.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var ppb=new _.r3("ypcOffersEndpoint");var cQH=new _.r3("cardItemRenderer"),alk=new _.r3("cardItemTextRenderer");var zDa=new _.r3("commerceCartItemQuantityPickerRenderer");var eDw=new _.r3("linkCardRenderer");var w7q=new _.r3("quantityIncrementerButtonViewModel");var RDm=new _.r3("quantityIncrementerViewModel");var U6C=new _.r3("themedImageViewModel");_.flm=new _.r3("ypcCancelRecurrenceEndpoint");var Qum=new _.r3("ypcCompleteTransactionEndpoint");_.Pf0=new _.r3("ypcGetCartEndpoint");_.t3=new _.r3("ypcGetOffersEndpoint");_.yZ=new _.r3("ypcHandleTransactionEndpoint");var JQA=new _.r3("ypcLogWalletAnalyticDataEndpoint");_.jua=new _.r3("ypcRedeemCodeEndpoint");var BhH=new _.r3("ypcUpdateFopEndpoint");Sh(xg(1),G8(4));UWq((new MessageChannel).port2);var p2m=function(){this.register=new Map},r7q=function(u,K,l){u=u+"_"+K;
s7.register.has(u)?l=s7.register.get(u):(l=l(),s7.register.set(u,l));return l},iow=function(u){u=_.y(u.register.values());
for(var K=u.next();!K.done;K=u.next())_.f5(K.value,"ABORTED")};
p2m.prototype.clear=function(){iow(this);this.register.clear()};
var s7=new p2m;var hj9=Date.now().toString();var Lmq,ThR=_.lL.ytLoggingDocDocumentNonce_;ThR||(ThR=kr(16),_.$L("ytLoggingDocDocumentNonce_",ThR));Lmq=ThR;var y7H={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 w20;w20=1;_.Z8=function(u){this.veData=u};
_.gf=function(u){return new _.Z8({trackingParams:u})};
_.Yo=function(u,K,l,D,d,C){var W=w20++;return new _.Z8({veType:u,veCounter:W,elementIndex:l,dataElement:K,youtubeData:D,jspbYoutubeData:d,loggingDirectives:C})};
_.I=_.Z8.prototype;
_.I.getAsJson=function(){var u={};this.veData.trackingParams!==void 0?u.trackingParams=this.veData.trackingParams:(u.veType=this.veData.veType,this.veData.veCounter!==void 0&&(u.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(u.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(u.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(u.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(u.isCounterfactual=!0);
return u};
_.I.getAsJspb=function(){var u=new L0R;this.veData.trackingParams!==void 0?u.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.Ka(u,2,this.veData.veType),this.veData.veCounter!==void 0&&_.Ka(u,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.Ka(u,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.OQ(u,5,!0));if(this.veData.dataElement!==void 0){var K=this.veData.dataElement.getAsJspb();_.jF(u,7,K)}this.veData.youtubeData!==void 0&&_.jF(u,8,this.veData.jspbYoutubeData);
return u};
_.I.toString=function(){return JSON.stringify(this.getAsJson())};
_.I.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.I.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.$L("yt_logging_screen.getRootVeType",d2q);_.$L("yt_logging_screen.getCurrentCsn",_.AC);_.$L("yt_logging_screen.getCttAuthInfo",XX);_.$L("yt_logging_screen.setCurrentScreen",_.mq);var FHB=function(){this.events=new Map},VKN=function(u){var K=[];
u=_.y(u.events.values());for(var l=u.next();!l.done;l=u.next())K.push(l.value);return K};
FHB.prototype.clear=function(){this.events.clear()};var NhA=function(){this.logTransport=new gKs;this.loggedEventRegister=new FHB;this.unloggedEventRegister=new FHB;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12304_flushTimer=new _.GS(this.flushInterval);this.JSC$12304_flushTimer.listen("tick",this.flush,!1,this)};
NhA.prototype.flush=function(){if(this.eventsCount){var u={loggedEvents:VKN(this.loggedEventRegister),unloggedEvents:VKN(this.unloggedEventRegister)};if(_.S("export_player_version_to_ytconfig")){var K;(K=_.E3("PLAYER_CLIENT_VERSION"))?(K=K.split("-")[0].replace(/\./g,""),K=isNaN(Number(K))?"0":K):K="";var l=_.E3("PLAYER_CLIENT_VERSION");if(l){l=l.split("-");var D="";l.length>1&&(D=l[l.length-1]);l=miH(D.startsWith("canary_experiment")?"canary":D.startsWith("canary_control")?"control":"none")}else l=
"CLIENT_CANARY_STATE_UNKNOWN";u.dimensions={playerClientVersion:K,playerCanaryState:l}}this.logTransport.flush(u);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12304_flushTimer.enabled&&this.JSC$12304_flushTimer.stop()}};
var kFB=function(u){oD==null&&(oD=new NhA);var K=oD;var l=K.loggedEventRegister;u.dimensions=u.dimensions||{};u.dimensions.csn=_.AC()||"";var D=WRL(u.dimensions).join(";");if(u.records!=null)if(l.events.has(D)){var d;(d=l.events.get(D).records)==null||d.push.apply(d,_.Am(u.records))}else l.events.set(D,u);K.JSC$12304_flushTimer.enabled||K.JSC$12304_flushTimer.start();K.eventsCount++;K.eventsCount>=100&&K.flush()};var gKs=function(){};
gKs.prototype.flush=function(u,K){_.S("enable_client_sli_logging")&&_.YE("sliEventBatch",u,{sendIsolatedPayload:!!K})};var oD;var Y$C;Y$C=function(u){var K=ZoH;u=u===void 0?{}:u;K=K.name;var l=nvy("SUCCESS");kFB({dimensions:u,records:[{name:K,state:"SLI_STATE_END",status:l}]})};
_.vvH=function(u,K,l,D){this.name=u;this.sliId=K;this.timeoutMs=l;this.statusOnTimeout=D;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.vvH.prototype.getId=function(){return this.sliId};
_.UA=function(u,K){K=K===void 0?{}:K;u.ongoing||(u.ongoing=!0,u.dimensions=K,u.logSliId=RER(),kFB({dimensions:u.dimensions,records:[{name:u.name,state:"SLI_STATE_START",sliId:u.logSliId}]}),u.timeoutMs>0&&(u.timeoutHandle=setTimeout(function(){_.f5(u,u.statusOnTimeout)},u.timeoutMs)))};
_.f5=function(u,K){u.ongoing&&(u.timeoutMs>0&&clearTimeout(u.timeoutHandle),u.ongoing=!1,K={dimensions:u.dimensions,records:[{name:u.name,status:nvy(K),state:"SLI_STATE_END",sliId:u.logSliId}]},s7.register.delete(u.name+"_"+u.sliId),kFB(K))};var ZoH=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var AQR=function(){g0.apply(this,arguments)};
_.c(AQR,g0);AQR.prototype.getAssociations=function(){return[]};
AQR.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var Bgq=new _.r3("highlightTextDecoratorColorMapExtension");var JkR=new _.r3("styleRunColorMapExtension");var c7q=_.oj(["data-"]),eYw={};var U2w={};var W3=function(u){this.wrappedPromise_=u===void 0?null:u;this.state_=0;this.JSC$12336_value_=null};
W3.prototype.then=function(u,K,l){return this.wrappedPromise_?this.wrappedPromise_.then(u,K,l):this.state_===1&&u?(u=u.call(l,this.JSC$12336_value_))&&typeof u.then==="function"?u:_.H3(u):this.state_===2&&K?(u=K.call(l,this.JSC$12336_value_))&&typeof u.then==="function"?u:_.X2N(u):this};
W3.prototype.getValue=function(){return this.JSC$12336_value_};
W3.prototype.isRejected=function(){return this.state_==2};
Ams(W3);_.X2N=function(u){var K=new W3;u=u===void 0?null:u;K.state_=2;K.JSC$12336_value_=u===void 0?null:u;return K};
_.H3=function(u){var K=new W3;u=u===void 0?null:u;K.state_=1;K.JSC$12336_value_=u===void 0?null:u;return K};var k$h="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var m6B=["load","abort","error"],MG=function(u,K,l){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12356_maxAspectRatio_=u;this.disableAnimation_=K===void 0?!1:K;this.disableExifRotation_=l===void 0?!1:l;this.JSC$12356_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12356_reject_=this.resolve_=null};
MG.prototype.transform=function(u){var K=this;this.mime_=u.type;HN(XIa(u),this.dataUrlRead_,this.readError_,this);HN(A_N(u.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(l,D){K.resolve_=l;K.JSC$12356_reject_=D})};
MG.prototype.dataUrlRead_=function(u){this.dataUrl_=u;this.angle_!=null&&hDA(this)};
MG.prototype.exifRead_=function(u){if(this.disableExifRotation_)this.angle_=0;else{a:if(u=new DataView(u),u.byteLength<2||u.getUint16(0)!==65496)u=-2;else{for(var K=2,l=u.byteLength;K<l;){var D=u.getUint16(K),d=u.getUint16(K+2);if(D===65505){K+=4;D=u.getUint32(K);d=u.getUint16(K+4);if(D!==1165519206||d!==0)break;K+=6;D=u.getUint16(K)===18761;K+=u.getUint32(K+4,D);d=u.getUint16(K,D);K+=2;for(var C=0;C<d;C++){if(u.getUint16(K,D)===274){K+=8;u=u.getUint16(K,D);break a}K+=12}}else if(D>>8!==255)break;
else K+=d+2}u=-1}switch(u){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&&hDA(this)};
MG.prototype.readError_=function(){this.JSC$12356_reject_()};
var hDA=function(u){Fu(u.JSC$12356_image_,m6B,u.completeTransform_,!1,u);u.JSC$12356_image_.src=_.ES(u.dataUrl_).toString();u.JSC$12356_image_.src!=hX.toString()&&u.JSC$12356_image_.src.substr(0,11)==="data:image/"||u.JSC$12356_reject_()};
MG.prototype.completeTransform_=function(){if(this.JSC$12356_image_.src!=hX.toString()){var u=_.ES(this.dataUrl_),K=this.JSC$12356_image_.naturalHeight?this.JSC$12356_image_.naturalWidth/this.JSC$12356_image_.naturalHeight:null;this.invalidAspectRatio=K>this.JSC$12356_maxAspectRatio_||K<1/this.JSC$12356_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var l=this.JSC$12356_image_.naturalWidth,D=this.JSC$12356_image_.naturalHeight,d=K=0,C=this.JSC$12356_image_.naturalHeight?this.JSC$12356_image_.naturalWidth/
this.JSC$12356_image_.naturalHeight:null;C>this.JSC$12356_maxAspectRatio_?(l=this.JSC$12356_maxAspectRatio_*D,K=(l-this.JSC$12356_image_.naturalWidth)/2,this.cropped=!0):C<1/this.JSC$12356_maxAspectRatio_?(D=this.JSC$12356_maxAspectRatio_*l,d=(D-this.JSC$12356_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)C=l,l=D,D=C,C=K,K=d,d=C;switch(this.angle_){case 90:d-=l;break;case 180:K-=l;d-=D;break;case 270:K-=
D}this.cropped||this.angle_%360!==0?(u=document.createElement("canvas"),u.width=l||1,u.height=D||1,this.JSC$12356_image_.naturalWidth&&this.JSC$12356_image_.naturalHeight&&(l=u.getContext("2d"),l.rotate(Math.PI/180*this.angle_),l.drawImage(this.JSC$12356_image_,K,d,this.JSC$12356_image_.naturalWidth,this.JSC$12356_image_.naturalHeight)),this.transformedData=_.ES(u.toDataURL(this.mime_))):this.transformedData=u}else this.transformedData=u;this.resolve_(this)}};var qG=function(u,K){_.j3.call(this,u);this.value=K};
_.c(qG,_.j3);
var $i=function(u,K,l,D,d,C,W){W=W===void 0?!1:W;_.wx.call(this);var M=this;this.JSC$12361_url_=u;this.channelId_=K;this.maxFileSizeMb_=l;this.JSC$12361_maxAspectRatio_=D;this.dropZoneEl_=d;this.rejectInvalidAspectRatio_=W;this.selectButtonEl_=C;this.JSC$12361_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new UU(this.dropZoneEl_);this.selectOverlay_=new fP(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12361_image_=this.transfer_=null;this.handler_=new _.tC(this);_.eb(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(C,"click",function(){M.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.c($i,_.wx);$i.prototype.disposeInternal=function(){for(var u=this.selectButtonEl_.nextSibling;u&&u.parentNode&&u.tagName=="INPUT";)u.parentNode.removeChild(u),u=this.selectButtonEl_.nextSibling;this.cancel();_.wx.prototype.disposeInternal.call(this)};
$i.prototype.uploadPromise=function(){if(this.JSC$12361_image_==null)return null;this.uploadPromise_||EKC(this);return this.uploadPromise_};
$i.prototype.cancel=function(){LHN(this);this.JSC$12361_image_=null};
var LHN=function(u){u.transfer_&&u.transfer_.cancel();u.transfer_=null;u.uploadPromise_=null;u.resolve_=null;u.JSC$12361_reject_=null},EKC=function(u){LHN(u);
u.transfer_=_.MQB(u.JSC$12361_url_,{"X-YouTube-ChannelId":u.channelId_},u.JSC$12361_image_);u.handler_.listenOnce(u.transfer_,"l",u.JSC$12363_onUploadComplete_);u.handler_.listenOnce(u.transfer_,"n",u.onUploadError_);u.transfer_.run();u.uploadPromise_=new Promise(function(K,l){u.resolve_=K;u.JSC$12361_reject_=l})};
_.I=$i.prototype;_.I.onChange_=function(u){u.files.length&&(this.JSC$12361_image_=u.files[0],this.JSC$12361_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12361_image_=null,this.dispatchEvent(new qG("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(EKC(this),(new MG(this.JSC$12361_maxAspectRatio_)).transform(this.JSC$12361_image_).then((0,_.wB)(this.onPreview_,this),(0,_.wB)(this.onPreviewError_,this))))};
_.I.onPreview_=function(u){if(u.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12361_image_=null),this.dispatchEvent(new qG("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;u.cropped&&this.dispatchEvent(new qG("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new qG("yt.comments.ImageUploadOverlay.CHANGE_EVENT",u.transformedData))};
_.I.onPreviewError_=function(){this.JSC$12361_image_=null;this.dispatchEvent(new qG("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.I.onHover_=function(u){u.stopPropagation();u.preventDefault();if(u.type==="dragover")u=!0;else if(u.type==="dragleave")u=!1;else return;this.dispatchEvent(new qG("yt.comments.ImageUploadOverlay.HOVER_EVENT",u))};
_.I.JSC$12363_onUploadComplete_=function(){var u=(0,_.GjA)(this.transfer_.getResponseText());this.resolve_(u.encryptedBlobId)};
_.I.onUploadError_=function(){this.JSC$12361_reject_();LHN(this)};var u7s=function(u){u=u||{};var K={},l={};this.url=u.url||"";this.args=u.args||_.k$.clone(K);this.assets=u.assets||{};this.attrs=u.attrs||_.k$.clone(l);this.fallback=u.fallback||null;this.fallbackMessage=u.fallbackMessage||null;this.html5=!!u.html5;this.disable=u.disable||{};this.loaded=!!u.loaded;this.messages=u.messages||{}};
u7s.prototype.clone=function(){var u=new u7s,K;for(K in this)if(this.hasOwnProperty(K)){var l=this[K];_.qp(l)=="object"?u[K]=_.k$.clone(l):u[K]=l}return u};var Krw,lPC,D1s,MZ,CK2,IP0,yis,siN,oMH,WrH,HlC,Mow,qeS,$1C,nMB,riw,vMa,GnB,toa,x12,SeA,bla,Olw,ci2,aPR,zk2,eks,Rka,U1S,DvH,fPw,Qi0,PK0,Jia,ji2,Bj2,psN,ilR,TjC,wsR,leb,Frw,Voa,gMk,Njs,knN,ZlR,YeR,AiN,XsS,m12,hk0,EMw,LrA,ulC,K9N,nt,l10,DRa,dRm,C3N,I1R,yAA,sAA,oRs,W9a,HDH,M0A,q8C,$RR,nRs,rAw,vRB,GzH,t0a,uDL,xRa,S8S,bDC,ODk,cA2,a12,zUH,eU2,RUR,URa,f1a,QA2,P3A,JAB,jAa,BPa,pBk,iDa,TP2,wBk,F92,V02,gRw,NP0,kzR;Krw=["account/accounts_list"];lPC=["acknowledge_channel_tou_strike"];D1s=["notification/add_upcoming_event_reminder"];
_.d10=["att/get"];MZ=["browse","music/browse","unplugged/browse"];CK2=["channel/claim_legacy_youtube_channel"];IP0=["history/clear_search_history"];yis=["history/clear_watch_history"];siN=["comment/perform_comment_action"];oMH=["comment/get_comment_replies"];WrH=["ypc/commerce_action"];HlC=["backstage/create_post"];Mow=["live/create_broadcast"];qeS=["channel/create_channel"];$1C=["comment/create_comment_reply"];nMB=["comment/create_comment"];riw=["live_chat/create_poll"];vMa=["playlist/create"];
GnB=["decorate_message"];toa=["live_chat/delete_message"];x12=["playlist/delete"];SeA=["video/delete"];bla=["like/dislike"];Olw=["dismissal/dismiss"];ci2=["flag/flag"];aPR=["flow"];zk2=["account/account_menu"];eks=["playlist/get_add_to_playlist"];Rka=["get_answer"];U1S=["channel/get_channel_creation_form"];DvH=["offline/get_download_action"];fPw=["kids/get_kids_blocklist_picker"];Qi0=["live_chat/get_item_context_menu"];PK0=["live_chat/get_live_chat_message_buy_flow"];Jia=["live_chat/get_live_chat_replay"];
ji2=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];Bj2=["live_chat/get_live_chat_super_sticker_buy_flow"];psN=["notification/get_notification_menu"];ilR=["playlist/get_settings_editor"];TjC=["backstage/get_post_video_preview"];wsR=["account/get_profile_card"];leb=["share/get_share_panel"];Frw=["share/get_sharing_provider_data"];Voa=["get_survey"];gMk=["notification/get_unseen_count"];Njs=["get_user_mention_suggestions"];knN=["get_watch"];ZlR=["guide"];
YeR=["feedback"];AiN=["kids/update_blacklist"];XsS=["like/like"];m12=["live_chat/live_chat_action"];hk0=["live_chat/manage_user"];EMw=["video_manager/metadata_update"];LrA=["live_chat/moderate"];ulC=["notification/modify_channel_preference"];K9N=["notification/opt_out"];nt=["get_panel","get_posts_by_host_panel"];l10=["player"];DRa=["browse/edit_playlist"];dRm=["notification/record_interactions"];C3N=["reel/reel_item_watch"];I1R=["reel/reel_watch_sequence"];yAA=["like/removelike"];sAA=["notification/remove_upcoming_event_reminder"];
oRs=["flag/get_form"];W9a=["miniapp/report_value"];HDH=["navigation/resolve_url"];M0A=["channel/reveal_business_email"];q8C=["in_video/search"];$RR=["search","sfv/search","unplugged/search"];nRs=["live_chat/send_message"];rAw=["live_chat/send_live_chat_vote"];vRB=["account/set_setting"];GzH=["submit_caption_correction"];t0a=["subscription/subscribe"];uDL=["get_transcript"];xRa=["resolve_location","unplugged/resolve_location"];S8S=["subscription/unsubscribe"];bDC=["backstage/update_post"];ODk=["channel_edit/update_channel_page_settings"];
cA2=["comment/update_comment_reply"];a12=["comment/update_comment"];zUH=["comment/update_comments_settings"];eU2=["creator/update_creator_channel"];RUR=["pdg/update_enablement"];URa=["updated_metadata"];f1a=["channel_edit/validate_channel_handle"];QA2=["verify_age"];P3A=["next","unplugged/watch_next"];JAB=["whitelist/edit"];jAa=["ypc/cancel_recurrence"];BPa=["ypc/complete_transaction"];pBk=["ypc/get_cart"];iDa=["ypc/get_fix_instrument_params"];TP2=["ypc/get_offers"];wBk=["ypc/get_payment_instruments_params"];
F92=["ypc/handle_transaction"];V02=["ypc/log_payment_server_analytics"];gRw=["ypc/pause_subscription"];NP0=["ypc/redeem_code"];kzR=["ypc/resume_subscription"];var ZDw=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,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,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,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,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,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,261210,210815,246127,
245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,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,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,190190,
225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,
17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var fN=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.$L("yt.msgs_",fN);var rz=new _.G$("ACTION_ROUTER_TOKEN");_.v3=function(){this.autonavState_=_.S("kevlar_is_pupi_enabled")?2:dLH()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.v3.prototype.getState=function(){return this.autonavState_};
_.v3.prototype.pause=function(u){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=u):this.autonavState_==1&&(this.disabledAutonavPauseReason_=u)};
_.v3.prototype.setState=function(u,K,l){K&&(this.autoplayChangedByUser=!0);K=this.autonavState_===3||u===3;this.autonavState_!=u&&(this.autonavState_=u,u!=3&&_.C1o(u==2),u=_.S("kevlar_is_pupi_enabled")?l||K:!0,_.Ci.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,u,l))};
_.v3.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.t0(_.v3);var GE=function(){this.hasRun=!1};var tF={},r$L=(tF.auto_search="LATENCY_ACTION_AUTO_SEARCH",tF.ad_to_ad="LATENCY_ACTION_AD_TO_AD",tF.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",tF.app_startup="LATENCY_ACTION_APP_STARTUP",tF.browse="LATENCY_ACTION_BROWSE",tF.cast_splash="LATENCY_ACTION_CAST_SPLASH",tF.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",tF.channels="LATENCY_ACTION_CHANNELS",tF.chips="LATENCY_ACTION_CHIPS",tF.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",tF.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
tF.editor="LATENCY_ACTION_EDITOR",tF.embed="LATENCY_ACTION_EMBED",tF.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",tF.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",tF.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",tF.explore="LATENCY_ACTION_EXPLORE",tF.favorites="LATENCY_ACTION_FAVORITES",tF.home="LATENCY_ACTION_HOME",tF.inboarding="LATENCY_ACTION_INBOARDING",tF.landing="LATENCY_ACTION_LANDING",tF.learning="LATENCY_ACTION_LEARNING",
tF.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",tF.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",tF.library="LATENCY_ACTION_LIBRARY",tF.live="LATENCY_ACTION_LIVE",tF.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",tF.management="LATENCY_ACTION_MANAGEMENT",tF.mini_app="LATENCY_ACTION_MINI_APP_PLAY",tF.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",tF.onboarding="LATENCY_ACTION_ONBOARDING",tF.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
tF.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",tF.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",tF.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",tF.prebuffer="LATENCY_ACTION_PREBUFFER",tF.prefetch="LATENCY_ACTION_PREFETCH",tF.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",tF.profile_switcher="LATENCY_ACTION_LOGIN",tF.projects="LATENCY_ACTION_PROJECTS",tF.reel_watch="LATENCY_ACTION_REEL_WATCH",tF.results="LATENCY_ACTION_RESULTS",tF.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
tF.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",tF.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",tF.review="LATENCY_ACTION_REVIEW",tF.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",tF.search_ui="LATENCY_ACTION_SEARCH_UI",tF.search_suggest="LATENCY_ACTION_SUGGEST",tF.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",tF.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",tF.seek="LATENCY_ACTION_PLAYER_SEEK",tF.settings="LATENCY_ACTION_SETTINGS",tF.store="LATENCY_ACTION_STORE",
tF.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",tF.tenx="LATENCY_ACTION_TENX",tF.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",tF.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",tF.watch="LATENCY_ACTION_WATCH",tF.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",tF["watch,watch7"]="LATENCY_ACTION_WATCH",tF["watch,watch7_html5"]="LATENCY_ACTION_WATCH",tF["watch,watch7ad"]="LATENCY_ACTION_WATCH",tF["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",tF.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
tF.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",tF.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",tF.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",tF.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",tF.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",tF.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",tF.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",tF),Qoq=0;var iWb=function(u,K){g3.call(this,1,arguments);this.timer=K};
_.c(iWb,g3);var pSb=new XIo("aft-recorded",iWb);var xL9=_.lL.ytLoggingGelSequenceIdObj_||{};_.$L("ytLoggingGelSequenceIdObj_",xL9);var xi=_.lL.ytLoggingLatencyUsageStats_||{};_.$L("ytLoggingLatencyUsageStats_",xi);var Sv=function(){this.cleanupJob=0},OW9=function(){Sv.instance||(Sv.instance=new Sv);
return Sv.instance};
_.I=Sv.prototype;_.I.baseline=function(u,K,l){bF(this,"baseline_"+u)||_.YE("latencyActionBaselined",{clientActionNonce:u},{timestamp:K,cttAuthInfo:l})};
_.I.tick=function(u,K,l,D){bF(this,"tick_"+u+"_"+K)||_.YE("latencyActionTicked",{tickName:u,clientActionNonce:K},{timestamp:l,cttAuthInfo:D})};
_.I.info=function(u,K,l){var D=Object.keys(u).join("");bF(this,"info_"+D+"_"+K)||(u=Object.assign({},u),u.clientActionNonce=K,_.YE("latencyActionInfo",u,{cttAuthInfo:l}))};
_.I.jspbInfo=function(u,K,l){for(var D="",d=0;d<XI(u).length;d++)XI(u)[d]!==void 0&&(D=d===0?D.concat(""+d):D.concat("_"+d));bF(this,"info_"+D+"_"+K)||(_.Tj(u,2,K),K={cttAuthInfo:l},l=_.S("jspb_sparse_encoded_pivot")?new Tr([{}]):new Tr,_.Br(l,7,$Nm,u),SCr("latencyActionInfo",l,K))};
_.I.span=function(u,K,l){var D=Object.keys(u).join("");bF(this,"span_"+D+"_"+K)||(u.clientActionNonce=K,_.YE("latencyActionSpan",u,{cttAuthInfo:l}))};
var bF=function(u,K){xi[K]=xi[K]||{count:0};var l=xi[K];l.count++;l.time=(0,_.vA)();u.cleanupJob||(u.cleanupJob=_.Ve(_.YL,function(){var D=(0,_.vA)(),d;for(d in xi)xi[d]&&D-xi[d].time>6E4&&delete xi[d];u&&(u.cleanupJob=0)},5E3));
return l.count>5?(l.count===6&&Math.random()*1E5<1&&(l=new _.wv("CSI data exceeded logging limit with key",K.split("_")),K.indexOf("plev")>=0||_.hV(l)),!0):!1};var Y80,AAa;Y80=window;AAa=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.wd=Y80.performance||Y80.mozPerformance||Y80.msPerformance||Y80.webkitPerformance||new AAa;var BVr=!1,aFh=!1,TVq=(0,_.wB)(_.wd.clearResourceTimings||_.wd.webkitClearResourceTimings||_.wd.mozClearResourceTimings||_.wd.msClearResourceTimings||_.wd.oClearResourceTimings||_.iO,_.wd);var XBB=window;XBB.ytcsi&&(XBB.ytcsi.infoGel=_.Zy,XBB.ytcsi.tick=_.As);var hsZ=function(u){g3.call(this,1,arguments);this.csn=u};
_.c(hsZ,g3);var urn=new XIo("screen-created",hsZ),qFw=[],mLy=MsR,$DH=0,uh=new Map,E1n=new Map,Ler=new Map;var Qsb=Symbol("wf"),qK=new WeakMap;var O7=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},wf=function(){O7.instance||(O7.instance=new O7);
return O7.instance};
_.I=O7.prototype;_.I.setClient=function(u){this.client=u};
_.I.JSC$12442_newScreen=function(){this.clear();this.csn=_.AC()};
_.I.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.I.reportShown=function(u,K,l){var D=this.JSC$12442_getTrackingParams(u),d=u.visualElement?u.visualElement:D;K=this.shownElements.has(d);var C=this.visibleState.get(d);this.shownElements.add(d);this.visibleState.set(d,!0);u.impressionLog&&!K&&u.impressionLog();if(D||u.visualElement)if(l=mRN(this,u,l))if(d=hUS(this,u),c3(this,u)||d){D=u.visualElement?u.visualElement:_.gf(D);var W=u.interactionLoggingClientData;d||K?c3(this,u)&4?C||yeH(this.client,l,D,W):c3(this,u)&1&&!K&&dDh(this.client,l,D,W):dDh(this.client,
l,D,W)}};
_.I.reportHidden=function(u,K,l){var D=this.JSC$12442_getTrackingParams(u),d=u.visualElement?u.visualElement:D;K=this.hiddenElements.has(d);var C=this.visibleState.get(d);this.hiddenElements.add(d);this.visibleState.set(d,!1);if(C===!1)return!0;if(!D&&!u.visualElement)return!1;l=mRN(this,u,l);if(!l||!c3(this,u)&&hUS(this,u))return!1;D=u.visualElement?u.visualElement:_.gf(D);c3(this,u)&8?sxq(this.client,l,D):c3(this,u)&2&&!K&&(u=this.client,K=LN({cttAuthInfo:XX(l)||void 0},l),D={csn:l,ve:D.getAsJson(),
eventType:2},l==="UNDEFINED_CSN"?lh("visualElementHidden",K,D):u?kE("visualElementHidden",D,u,K):_.YE("visualElementHidden",D,K));return!0};
_.I.JSC$12442_getTrackingParams=function(u){var K=this.getData(u),l,D;if(_.S("il_use_view_model_logging_context")&&(K==null?0:(l=K.context)==null?0:(D=l.loggingContext)==null?0:D.loggingDirectives))return K.context.loggingContext.loggingDirectives.trackingParams||"";var d,C;if(K==null?0:(d=K.rendererContext)==null?0:(C=d.loggingContext)==null?0:C.loggingDirectives)return K.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(K==null?0:K.loggingDirectives)return K.loggingDirectives.trackingParams||
"";var W;return((W=u.veContainer)==null?0:W.trackingParams)?u.veContainer.trackingParams:(K==null?void 0:K.trackingParams)||""};
_.I.JSC$12442_elementShouldLogGesture=function(u,K){u=this.getData(u);return!!((Math.floor(Number(u&&u.loggingDirectives&&u.loggingDirectives.gestures&&u.loggingDirectives.gestures.types||""))||0)&K)};
_.I.JSC$12442_getNearestParentVe=function(u){var K=this.JSC$12442_getTrackingParams(u);return u.visualElement?u.visualElement:K?_.gf(K):u.parentElement?this.JSC$12442_getNearestParentVe(u.parentElement):null};
var mRN=function(u,K,l){var D=_.AC(l);return u.csn===null||D===u.csn||l?D:(u=new _.wv("VisibilityLogger called before newScreen",{caller:K.tagName,previous_csn:u.csn,current_csn:D}),_.hV(u),null)};
O7.prototype.getData=function(u){var K,l=u.data||((K=u.props)==null?void 0:K.data);if(!l||u.isWebComponentWrapper){var D;l=(D=qK.get(u))==null?void 0:D[Qsb]}return l};
var hUS=function(u,K){var l;return!((l=u.getData(K))==null||!l.loggingDirectives)},c3=function(u,K){u=u.getData(K);
return Math.floor(Number(u&&u.loggingDirectives&&u.loggingDirectives.visibility&&u.loggingDirectives.visibility.types||""))||1};var aD;aD=function(){};
_.Bb=function(){aD.instance||(aD.instance=new aD);return aD.instance};
aD.prototype.setClient=function(u){_.KT(wf().setClient).bind(wf())(u)};
_.ERa=function(){_.Bb();_.KT(wf().JSC$12442_newScreen).bind(wf())()};
aD.prototype.clear=function(){_.KT(wf().clear).bind(wf())()};
aD.prototype.reportShown=function(u,K,l){_.KT(wf().reportShown).bind(wf())(u,K,l)};
aD.prototype.reportHidden=function(u,K,l){return _.KT(wf().reportHidden).bind(wf())(u,K,l)};
var Q6b=function(u,K){return _.KT(wf().JSC$12442_getTrackingParams).bind(wf())(K)},PUH=function(u,K){return _.KT(wf().JSC$12442_getNearestParentVe).bind(wf())(K)};var zE,L9k;zE=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};
_.iT=function(){zE.instance||(zE.instance=new zE);return zE.instance};
zE.prototype.setClient=function(u){this.client=u};
L9k=function(u,K,l){l=l===void 0?{}:l;_.KT(function(){var D,d,C,W=((D=_.b(K==null?void 0:K.commandMetadata,_.nN))==null?void 0:D.rootVe)||((d=_.b(K==null?void 0:K.commandMetadata,YcA))==null?void 0:(C=d.screenVisualElement)==null?void 0:C.uiType);if(W){D=_.b(K==null?void 0:K.commandMetadata,jPC);if(D==null?0:D.parentTrackingParams){var M=_.gf(D.parentTrackingParams);if(D.parentCsn)var q=D.parentCsn}else l.clickedVisualElement?M=l.clickedVisualElement:K.clickTrackingParams&&(M=_.gf(K.clickTrackingParams));
a:{D=_.b(K,_.oy);d=_.b(K,gML);if(D){if(d=IFZ(D,"VIDEO")){D={token:d,videoId:D.videoId};break a}}else if(d&&(D=IFZ(d,"PLAYLIST"))){D={token:D,playlistId:d.playlistId};break a}D=void 0}l=Object.assign({},{cttAuthInfo:D,parentCsn:q},l);if(_.S("expectation_logging")){var v;l.loggingExpectations=((v=_.b(K==null?void 0:K.commandMetadata,YcA))==null?void 0:v.loggingExpectations)||void 0}_.ev(u,W,M,l)}else _.hV(new _.wv("Error: Trying to create a new screen without a rootVeType",K))})()};
_.ev=function(u,K,l,D){D=D===void 0?{}:D;_.KT(function(){ZDw.includes(K)||(_.hV(new _.wv("createClientScreen() called with a non-page VE",K)),K=83769);D.isHistoryNavigation||(u.forwardHistoryStack=[],u.backHistoryStack.push({rootVe:K,key:D.key||""}));u.graftQueue=[];u.stateChangedQueue=[];D.dataPromises?uEB(u,K,l,D):K8B(u,K,l,D)})()};
_.ltw=function(u,K,l){l=l===void 0?0:l;_.KT(function(){K.then(function(D){u.pendingScreenCreation.has(l)&&u.pendingScreenFn&&u.pendingScreenFn();var d=_.AC(l),C=_.Yr(l);if(d&&C){var W={automatedLogEventSource:3},M;(D==null?0:(M=D.response)==null?0:M.trackingParams)&&Km(u.client,d,C,_.gf(D.response.trackingParams),!1,W);var q;(D==null?0:(q=D.playerResponse)==null?0:q.trackingParams)&&Km(u.client,d,C,_.gf(D.playerResponse.trackingParams),!1,W)}})})()};
zE.prototype.graftServerVe=function(u,K,l){var D=this;return _.KT(function(){var d=_.gf(u);_.RD(D,d,K,l);return d})()};
_.JDr=function(u,K,l,D){return _.S("enable_client_ve_spec")&&K.clientVeSpec?(K=_.Yo(K.clientVeSpec.uiType,void 0,K.clientVeSpec.elementIndex,K.clientVeSpec.clientYoutubeData,void 0,K),_.RD(u,K,l,D)?K:null):K.trackingParams?u.graftServerVe(K.trackingParams,l,D):null};
_.pr=function(u,K,l,D){return _.KT(function(){if(!K.veType)return _.m0(new _.wv("Error: Trying to graft a client VE without a veType.")),null;if(K.visibilityTypes){var d=K.visibilityTypes.reduce(function(C,W){return C|W});
d={visibility:{types:String(d)}}}d=_.Yo(K.veType,K.visualElement,K.elementIndex,K.clientYouTubeData,void 0,d);return _.RD(u,d,l,D)?d:null})()};
_.RD=function(u,K,l,D){D=D===void 0?0:D;return _.KT(function(){if(u.pendingScreenCreation.has(D))return u.graftQueue.push([K,l]),!0;var d=_.AC(D),C=l||_.Yr(D);if(d&&C){if(_.S("combine_ve_grafts")){var W=u.cachedVisualElements.get(C.toString());W?W.push(K):(u.cachedRootVisualElements.set(C.toString(),C),u.cachedVisualElements.set(C.toString(),[K]));u.attachTimeout||(u.attachTimeout=_.Ve(_.YL,function(){Dxa(u,d)},1200))}else Km(u.client,d,C,K);
return!0}return!1})()};
_.U7=function(u,K,l){l=l===void 0?0:l;var D=u.recurringGrafts.get(l)||new Map;if(_.S("smarter_ve_dedupping"))for(var d=Array.from(D.keys()),C=0;C<d.length;C++){var W=void 0,M=void 0;var q=K;var v=d[C];v.isClientVe()&&q.isClientVe()?(W=q.getAsJson(),M=v.getAsJson(),q=W.veType!==M.veType||W.elementIndex!==M.elementIndex||W.dataElement!==M.dataElement||q.getLoggingDirectives()!==v.getLoggingDirectives()?!1:!0):q=v.veData.trackingParams!==void 0&&q.veData.trackingParams!==void 0?((M=q.veData)==null?void 0:
M.trackingParams)===((W=v.veData)==null?void 0:W.trackingParams):!1;if(q)return}else if(D.has(K))return;D.set(K,void 0);u.recurringGrafts.set(l,D);_.AC(l)==="UNDEFINED_CSN"||u.pendingScreenCreation.has(l)||_.RD(u,K,void 0,l)};
_.ft=function(u,K,l,D){D=_.AC(D===void 0?0:D);if(!D)return!1;Wvq(u.client,D,K,l);return!0};
_.QZ=function(u,K,l,D){if(!K)return!1;D=_.AC(D===void 0?0:D);if(!D)return!1;Wvq(u.client,D,_.gf(K),l);return!0};
_.sK=function(u,K){var l=K.getScreenLayer&&K.getScreenLayer();if(K.visualElement)return _.ft(u,K.visualElement,void 0,l);K=Q6b(_.Bb(),K);return _.QZ(u,K,void 0,l)};
zE.prototype.clickCommand=function(u,K,l){return _.QZ(this,u.clickTrackingParams,K,l===void 0?0:l)};
zE.prototype.stateChanged=function(u,K,l){this.visualElementStateChanged(_.gf(u),K,l===void 0?0:l)};
zE.prototype.visualElementStateChanged=function(u,K,l){l=l===void 0?0:l;l===0&&this.pendingScreenCreation.has(l)?this.stateChangedQueue.push([u,K]):this.logStateChanged(u,K,l)};
zE.prototype.logStateChanged=function(u,K,l){l=l===void 0?0:l;var D=_.AC(l);u=u||_.Yr(l);return D&&u?(HkR(this.client,D,u,K),!0):!1};
var uEB=function(u,K,l,D){D=D===void 0?{}:D;u.pendingScreenCreation.add(D.layer||0);u.pendingScreenFn=function(){K8B(u,K,l,D);var W=_.Yr(D.layer);if(W){for(var M=_.y(u.graftQueue),q=M.next();!q.done;q=M.next())q=q.value,_.RD(u,q[0],q[1]||W,D.layer);W=_.y(u.stateChangedQueue);for(M=W.next();!M.done;M=W.next())M=M.value,u.logStateChanged(M[0],M[1])}};
l||_.AC(D.layer)||u.pendingScreenFn();if(D.dataPromises)for(var d=_.y(D.dataPromises),C=d.next();!C.done;C=d.next())_.ltw(u,C.value,D.layer);else _.Xm(Error("xf"))},K8B=function(u,K,l,D){D=D===void 0?{}:D;
var d=void 0;D.layer||(D.layer=0);d=D.parentLayer!==void 0?D.parentLayer:D.layer;var C=_.AC(d);d=_.Yr(d);var W=l||d,M;W&&(D.parentCsn!==void 0?M={clientScreenNonce:D.parentCsn,visualElement:W}:C&&C!=="UNDEFINED_CSN"&&(M={clientScreenNonce:C,visualElement:W}));var q,v=_.E3("EVENT_ID");C==="UNDEFINED_CSN"&&v&&(q={servletData:{serializedServletEventId:v}});_.S("combine_ve_grafts")&&C&&Dxa(u,C);_.S("no_client_ve_attach_unless_shown")&&W&&C&&DDo(W,C);try{var G=_.uMo(u.client,K,M,D.csnToClone,D.cttAuthInfo,
q,D.implicitGestureType,void 0,D.loggingExpectations)}catch(O){_.E5(O,{rootVeType:K,rootVe:d,parentVisualElement:l,currentCsn:C,parentEl:M,csnToClone:D.csnToClone});_.Xm(O);return}_.mq(G,K,D.layer,D.cttAuthInfo);C&&C!=="UNDEFINED_CSN"&&d&&!sho(C)&&sxq(u.client,C,d,!0);u.backHistoryStack[u.backHistoryStack.length-1]&&!u.backHistoryStack[u.backHistoryStack.length-1].csn&&(u.backHistoryStack[u.backHistoryStack.length-1].csn=G||"");_.Zy({clientScreenNonce:G});_.ERa();var t=_.Yr(D.layer);C&&C!=="UNDEFINED_CSN"&&
t&&(_.S("web_mark_root_visible")||_.S("music_web_mark_root_visible"))&&_.Cm(G,t);u.pendingScreenCreation.delete(D.layer||0);u.pendingScreenFn=void 0;var x;(x=u.recurringGrafts.get(D.layer))==null||x.forEach(function(O,a){O?_.RD(u,a,O,D.layer):t&&_.RD(u,a,t,D.layer)});
dxS(u)},dxS=function(u){for(var K=0;K<u.afterNewScreenOneOffJobs.length;K++){var l=u.afterNewScreenOneOffJobs[K];
try{l()}catch(D){_.Xm(D)}}for(K=u.afterNewScreenOneOffJobs.length=0;K<u.afterNewScreenRecurringJobs.length;K++){l=u.afterNewScreenRecurringJobs[K];try{l()}catch(D){_.Xm(D)}}},Dxa=function(u,K){if(K===void 0)for(var l=IwL(),D=0;D<l.length;D++)l[D]!==void 0&&Dxa(u,l[D]);
else u.cachedVisualElements.forEach(function(d,C){(C=u.cachedRootVisualElements.get(C))&&KvL(u.client,K,C,d)}),u.cachedVisualElements.clear(),u.cachedRootVisualElements.clear(),u.attachTimeout=void 0};var P3=function(u){u=u===void 0?{layer:0}:u;this.hasRun=!1;this.createScreenConfig=u;u={};this.tft=(u.response=!1,u.playerResponse=!1,u)};
_.c(P3,GE);P3.prototype.validate=function(u){return!(!u.data||!u.data.response&&!u.data.playerResponse)};
P3.prototype.handle=function(u){var K=_.iT(),l=this.createScreenConfig.layer;u.data.response&&u.data.response.trackingParams&&!this.tft.response&&(K.graftServerVe(u.data.response.trackingParams,void 0,l),this.tft.response=!0);u.data.playerResponse&&u.data.playerResponse.trackingParams&&!this.tft.playerResponse&&(K.graftServerVe(u.data.playerResponse.trackingParams,void 0,l),this.tft.playerResponse=!0)};var JF=function(){this.tN=_.MX();this.aU=[];this.ze8=0};
JF.prototype.processChunk=function(u){if(u){for(var K=_.y(this.aU),l=K.next();!l.done;l=K.next())l=l.value,l.validate(u)&&(l.handle(u),l.hasRun=!0);_.As("np"+this.ze8);this.ze8++}};var $w;var DMq,CBa,smk;_.Pb=function(u,K,l,D,d,C,W){W=W===void 0?[]:W;this.buildCommandPayload=u;this.navigate=K;this.handleServiceRequest=l;this.sendAction=D;this.JSC$12484_screenManager=d;this.commandResolverMap=C;this.autoLogResolverAllowlist=W;this.pendingCommands=new Set;this.isTracingEnabled=!1;CBa(this)};
DMq=function(u,K,l){var D=gho,d=N$Z,C=_.iT(),W=ItS;l=l===void 0?[]:l;_.Pb.instance=new _.Pb(u,K,D,d,C,W,l)};
CBa=function(u){if(!u.isTracingEnabled&&reb("command")){var K=u.resolveCommand;u.resolveCommand=function(l,D){a:{for(d in l)if(Object.prototype.hasOwnProperty.call(l,d)){var d={commandType:d};break a}d={}}return tsq("command",d,K.bind(this,l,D))};
u.isTracingEnabled=!0}};
smk=function(u,K,l){if(!u.commandResolverMap)return!1;var D=Okr(K,u.commandResolverMap);return D?((u.autoLogResolverAllowlist.some(function(d){return!!_.b(K,d)})||(l==null?0:l.forceClickLogging))&&yam(u,K,l),D instanceof Promise?D.then(function(d){d.resolve(K,l)}):D.resolve(K,l),!0):!1};
_.Pb.prototype.resolveCommand=function(u,K){var l=this,D=o_H(u);if(smk(this,u,K))return!0;if(D)return W8N(this,u,K);if(!this.buildCommandPayload)return xDo(u,"Unhandled command by buildCommandPayload"),!1;var d=this.buildCommandPayload(u,K);if(K==null?0:K.commandController)d.commandController=K.commandController;if(d.type===0){if(!this.navigate)return SFH(u,"navigate"),!1;if(!HZH(d.command))return xDo(u,"Page requests need to specify a url"),!1;_.S("logging_avoid_blocking_during_navigation")&&_.p1w().transition("application_navigating");
u=this.navigate(d)||[];KpR(u).then(function(){l.pendingCommands.delete(d.command)});
return!0}if(d.type===1){if(!this.handleServiceRequest)return SFH(u,"handleServiceRequest"),!1;(K==null?0:K.forceClickLogging)&&yam(this,d.command,K);u=this.handleServiceRequest(d);KpR(u).then(function(){l.pendingCommands.delete(d.command)});
return!0}if(d.type===2){if(!this.sendAction)return SFH(u,"sendAction"),!1;yam(this,d.command,K);this.sendAction(d);return!0}return!1};
var yam=function(u,K,l){if((l==null||!l.disableClickTracking)&&u.JSC$12484_screenManager)if(K.clickTrackingParams&&_.S("log_click_with_layer_from_element_in_command_handler")){var D;l=l==null?void 0:(D=l.form)==null?void 0:D.element;u.JSC$12484_screenManager.clickCommand(K,null,l&&l.getScreenLayer&&l.getScreenLayer())}else K.clickTrackingParams?u.JSC$12484_screenManager.clickCommand(K):!_.S("disable_clicked_visual_element_in_command_handler")&&(l==null?0:l.clickedVisualElement)&&_.ft(u.JSC$12484_screenManager,
l.clickedVisualElement)},o_H=function(u){var K=!!_.b(u,_.ey),l;
u=((l=_.b(u,_.Ux))==null?void 0:l.signal)==="CLIENT_SIGNAL";return K||u},W8N=function(u,K,l){var D=_.b(K,_.ey);
if(D)var d=(D==null?void 0:D.commands)||[];else{var C;if(((C=_.b(K,_.Ux))==null?void 0:C.signal)==="CLIENT_SIGNAL"){var W;d=((W=_.b(K,_.Ux))==null?void 0:W.actions)||[]}}if(d){K=_.y(d);for(d=K.next();!d.done;d=K.next()){d=d.value;try{u.resolveCommand(d,l)}catch(M){M instanceof Error&&_.Xm(M)}}return!0}xDo(K,"Could not handle the meta command");return!1},HZH=function(u){var K;
return!((K=_.b(u==null?void 0:u.commandMetadata,_.nN))==null||!K.url)};var jv=function(){GE.apply(this,arguments)};
_.c(jv,GE);jv.prototype.validate=function(u){var K,l;return!this.hasRun&&!!((K=u.data.response)==null?0:(l=K.onResponseReceivedEndpoints)==null?0:l.length)};
jv.prototype.handle=function(u){var K=_.Pb.instance;u=_.y(u.data.response.onResponseReceivedEndpoints);for(var l=u.next();!l.done;l=u.next())K.resolveCommand(l.value)};var M$a,qs2,$xH;
M$a=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.zA();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.B3=function(){qs2||(qs2=new M$a);return qs2};
$xH=function(){var u=_.B3();u.miniplayerButtonActivation=!1;u.userActivation=!1;u.playlistWatchPageActivation=!1;u.productDetailsPageActivation=!1;u.miniAppPageActivation=!1;u.playablesDestPageActivation=!1;u.lockupActivation=!1;u.showMiniplayerCommandActivation=!1;u.playlistSuggestionsShelfActivation=!1;u.mediaSessionPipActivation=!1;u.watchPipActivation=!1;u.watchWhileActivation=!1;u.shortsPipActivation=!1};
_.n_m=function(){var u=_.B3(),K=u.mediaSessionPipActivation,l=u.watchPipActivation,D=u.watchWhileActivation,d=u.playlistWatchPageActivation,C=u.lockupActivation,W=u.showMiniplayerCommandActivation,M=u.navigatingAwayFromWatchDeletedVideo,q=u.shortsPipActivation,v=u.playlistSuggestionsShelfActivation,G=u.productDetailsPageActivation,t=u.miniAppPageActivation,x=u.playablesDestPageActivation;return!u.miniplayerButtonActivation&&!d&&!v&&!G&&!t&&!x&&!C&&!W&&!K&&!l&&!D&&!q||M};var dUq;_.pt=rZ("FEwhat_to_watch","/",3854);_.Cb9=rZ("FEdownloads","/feed/downloads",42352);dUq=rZ("FEmusic_offline","browse/FEmusic_offline",42352);var HI=function(u,K){K=K===void 0?[]:K;var l=l===void 0?[]:l;K=NRH.apply(null,[k3q.apply(null,_.Am(K))].concat(_.Am(l)));this.store=Xyr(u,void 0,K)};
HI.prototype.getState=function(){return this.store.getState()};
HI.prototype.dispatch=function(u){return this.store.dispatch(u)};
HI.prototype.subscribe=function(u){return this.store.subscribe(u)};
HI.prototype.replaceReducer=function(u){return this.store.replaceReducer(u)};
HI.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.iF=function(u,K,l){var D=K(u.getState());return u.subscribe(function(){var d=K(u.getState());if(d!==D){var C=D;D=d;l(d,C)}})};var $A9;_.TT=function(u,K,l){return _.SZ({type:"REPLACE_ENTITY",payload:{entityPayload:l,entityType:u,key:K}})};
$A9=function(u){return _.SZ({type:"REPLACE_ENTITIES",payload:u})};
_.EL=function(u,K,l,D){return _.SZ({type:"UPDATE_ENTITY",payload:{entityPayload:l,entityType:u,key:K,mergeOption:D}})};var pzq=function(u){var K=this;u=u===void 0?[]:u;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;u.forEach(function(l){K.append(l)})};
_.I=pzq.prototype;_.I.getLength=function(){return this.totalLength};
_.I.append=function(u){var K=this.arrays.length===0?!1:(K=this.arrays[this.arrays.length-1])&&K.buffer===u.buffer&&K.byteOffset+K.length===u.byteOffset;K?(K=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(K.buffer,K.byteOffset,K.length+u.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(u);this.totalLength+=u.length};
_.I.split=function(u){for(var K=new pzq,l=new pzq,D=_.y(this.arrays),d=D.next();!d.done;d=D.next())d=d.value,u>=d.length?(K.append(d),u-=d.length):u?(K.append(new Uint8Array(d.buffer,d.byteOffset,u)),l.append(new Uint8Array(d.buffer,d.byteOffset+u,d.length-u)),u=0):l.append(d);return{headView:K,tailView:l}};
_.I.extract=function(u,K){return this.split(u).tailView.split(K).headView};
_.I.isFocused=function(u){return u>=this.arrayPos&&u<this.arrayPos+this.arrays[this.arrayIdx].length};
_.I.focus=function(u){if(!this.isFocused(u))for(u<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=u&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var ra2=function(u,K){u.focus(K);return u.arrays[u.arrayIdx][K-u.arrayPos]};(function(){var u=function(D){return new Uint8Array(D)},K=function(D){for(var d=new Uint8Array(D.length),C=0;C<D.length;C++)d[C]=D[C];
return d},l=new Uint8Array([1]);
return l.length===1&&l[0]===1?u:K})();
var fjq=Array(1024),UDy=window.TextDecoder?new TextDecoder:void 0,P6b=window.TextEncoder?new TextEncoder:void 0;var BCH=function(u){this.arrayView=u;this.pos=0;this.pendingTagAndType=-1},bh=function(u){var K=ra2(u.arrayView,u.pos);
++u.pos;if(K<128)return K;for(var l=K&127,D=1;K>=128;)K=ra2(u.arrayView,u.pos),++u.pos,D*=128,l+=(K&127)*D;return l},iko=function(u,K){var l=u.pendingTagAndType;
for(u.pendingTagAndType=-1;u.pos+1<=u.arrayView.totalLength;){l<0&&(l=bh(u));var D=l>>3,d=l&7;if(D===K)return!0;if(D>K){u.pendingTagAndType=l;break}l=-1;switch(d){case 0:bh(u);break;case 1:u.pos+=8;break;case 2:D=bh(u);u.pos+=D;break;case 5:u.pos+=4}}return!1};var wzq=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=jxb(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},af=function(u,K){K=u.pos+K;
if(!(u.buf.length>=K)){for(var l=u.buf.length*2;l<K;)l*=2;u.buf=jxb(l,u.wasm,u.buf.subarray(0,u.pos));u.view=new DataView(u.buf.buffer,u.buf.byteOffset,u.buf.byteLength)}},ci=function(u,K){if(K>268435455){af(u,4);
for(var l=K&1073741823,D=0;D<4;D++)u.view.setUint8(u.pos,l&127|128),l>>=7,u.pos+=1;K=Math.floor(K/268435456)}for(af(u,4);K>127;)u.view.setUint8(u.pos,K&127|128),K>>=7,u.pos+=1;u.view.setUint8(u.pos,K);u.pos+=1};for(var FvL={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},TCq={},v_A=_.y(Object.entries(FvL)),Gf2=v_A.next();!Gf2.done;Gf2=v_A.next()){var t$w=_.y(Gf2.value),xxm=t$w.next().value,Ssa=t$w.next().value,bZB=xxm,OZm=Ssa;OZm&&(TCq[OZm]=bZB)};var gXr=function(u,K){u=u===void 0?{}:u;switch(K.type){case "ENTITY_LOADED":return K.payload.reduce(function(D,d){var C,W=(C=d.options)==null?void 0:C.persistenceOption;if(W&&W!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&W!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return D;if(!d.entityKey)return _.Xm(Error("Bf")),D;if(d.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!d.payload)return d=new _.wv("REPLACE entity mutation is missing a payload",{entityKey:d.entityKey}),_.Xm(d),D;var M=(0,_.k$.getAnyKey)(d.payload);
return k7q(D,M,d.entityKey,d.payload[M])}if(d.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{d=d.entityKey;try{var q=_.OV(d).entityType;M=k7q(D,q,d);break a}catch(t){if(t instanceof Error){d=new _.wv("Failed to deserialize entity key",{entityKey:d,originalMessage:t.message});_.Xm(d);M=D;break a}throw t;}M=void 0}return M}if(d.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!d.payload)return d=new _.wv("UPDATE entity mutation is missing a payload",{entityKey:d.entityKey}),_.Xm(d),D;M=(0,_.k$.getAnyKey)(d.payload);
var v,G;return Zkh(D,M,d.entityKey,d.payload[M],(v=d.fieldMask)==null?void 0:(G=v.mergeOptions)==null?void 0:G.repeatedFieldsMergeOption)}return D},u);
case "REPLACE_ENTITY":var l=K.payload;return k7q(u,l.entityType,l.key,l.entityPayload);case "REPLACE_ENTITIES":return Object.keys(K.payload).reduce(function(D,d){var C=K.payload[d];return Object.keys(C).reduce(function(W,M){return k7q(W,d,M,C[M])},D)},u);
case "UPDATE_ENTITY":return l=K.payload,Zkh(u,l.entityType,l.key,l.entityPayload,l.mergeOption);default:return u}};var YFr;var cas=!1,TE,wz,F1,VZ,gz,ats=function(u){_.TZ.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!cas){var K,l=new Uint8Array(256),D=new Uint8Array(256);var d=1;for(K=0;K<256;K++)l[d]=K,D[K]=d,d^=d<<1^(d>>7&&283);TE=new Uint8Array(256);wz=Rf(256);F1=Rf(256);VZ=Rf(256);gz=Rf(256);for(var C=0;C<256;C++){d=C?D[255^l[C]]:0;d^=d<<1^d<<2^d<<3^d<<4;d=d&255^d>>>8^99;TE[C]=d;K=d<<1^(d>>7&&283);var W=K^d;wz[C]=K<<24|d<<16|d<<8|W;F1[C]=W<<24|wz[C]>>>8;VZ[C]=d<<24|F1[C]>>>
8;gz[C]=d<<24|VZ[C]>>>8}cas=!0}d=Rf(44);for(l=0;l<4;l++)d[l]=u[4*l]<<24|u[4*l+1]<<16|u[4*l+2]<<8|u[4*l+3];for(D=1;l<44;l++)u=d[l-1],l%4||(u=(TE[u>>16&255]^D)<<24|TE[u>>8&255]<<16|TE[u&255]<<8|TE[u>>>24],D=D<<1^(D>>7&&283)),d[l]=d[l-4]^u;this.key=d};
_.c(ats,_.TZ);
ats.prototype.encrypt=function(u){var K=u.length;u=new Uint8Array(u.buffer.slice(u.byteOffset,u.byteOffset+K));for(var l=this.cipherBlock,D=0;D<K&&this.blockOffset<16;)u[D++]^=l[this.blockOffset++];for(var d=K-(K-D)%16;D<d;)z0S(this),u[D++]^=l[0],u[D++]^=l[1],u[D++]^=l[2],u[D++]^=l[3],u[D++]^=l[4],u[D++]^=l[5],u[D++]^=l[6],u[D++]^=l[7],u[D++]^=l[8],u[D++]^=l[9],u[D++]^=l[10],u[D++]^=l[11],u[D++]^=l[12],u[D++]^=l[13],u[D++]^=l[14],u[D++]^=l[15];if(D<K)for(z0S(this),this.blockOffset=0;D<K;)u[D++]^=
l[this.blockOffset++];return u};
var z0S=function(u){for(var K=u.key,l=u.counter[0]^K[0],D=u.counter[1]^K[1],d=u.counter[2]^K[2],C=u.counter[3]^K[3],W=3;W>=0&&!(u.counter[W]=-~u.counter[W]);W--);for(var M,q,v=4;v<40;)W=wz[l>>>24]^F1[D>>16&255]^VZ[d>>8&255]^gz[C&255]^K[v++],M=wz[D>>>24]^F1[d>>16&255]^VZ[C>>8&255]^gz[l&255]^K[v++],q=wz[d>>>24]^F1[C>>16&255]^VZ[l>>8&255]^gz[D&255]^K[v++],C=wz[C>>>24]^F1[l>>16&255]^VZ[D>>8&255]^gz[d&255]^K[v++],l=W,D=M,d=q;u=u.cipherBlock;W=K[40];u[0]=TE[l>>>24]^W>>>24;u[1]=TE[D>>16&255]^W>>16&255;u[2]=
TE[d>>8&255]^W>>8&255;u[3]=TE[C&255]^W&255;W=K[41];u[4]=TE[D>>>24]^W>>>24;u[5]=TE[d>>16&255]^W>>16&255;u[6]=TE[C>>8&255]^W>>8&255;u[7]=TE[l&255]^W&255;W=K[42];u[8]=TE[d>>>24]^W>>>24;u[9]=TE[C>>16&255]^W>>16&255;u[10]=TE[l>>8&255]^W>>8&255;u[11]=TE[D&255]^W&255;W=K[43];u[12]=TE[C>>>24]^W>>>24;u[13]=TE[l>>16&255]^W>>16&255;u[14]=TE[D>>8&255]^W>>8&255;u[15]=TE[d&255]^W&255};var e0C=!1;(function(){var u=function(D){return new Uint8Array(D)},K=function(D){for(var d=new Uint8Array(D.length),C=0;C<D.length;C++)d[C]=D[C];
return d},l=new Uint8Array([1]);
return l.length===1&&l[0]===1?u:K})();
var NG;var fta=function(u){a:{if(!e0C&&!Mh){if(NG){var K=NG;break a}NG=(K=window.crypto)==null?void 0:K.subtle;var l,D,d;if(((l=NG)==null?0:l.importKey)&&((D=NG)==null?0:D.sign)&&((d=NG)==null?0:d.encrypt)){K=NG;break a}NG=void 0}K=void 0}K&&(this.nativeEncryptor=new R0S(u,K));this.encryptorPolyfill=new Uxm(u)};
fta.prototype.encrypt=function(u,K){var l=this,D;return _.H(function(d){switch(d.nextAddress){case 1:if(!l.nativeEncryptor){d.jumpTo(2);break}_.Qg(d,3);return d.yield(l.nativeEncryptor.encrypt(u,K),5);case 5:return d.return(d.yieldResult);case 3:D=_.iY(d),_.hV(D),e0C=!0,l.nativeEncryptor=void 0;case 2:return d.return(l.encryptorPolyfill.encrypt(u,K))}})};
fta.prototype.decrypt=function(u,K){return this.encrypt(u,K)};
var R0S=function(u,K){this.JSC$12557_aesKey=u;this.subtleCrypto=K};
R0S.prototype.encrypt=function(u,K){var l=this,D;return _.H(function(d){if(d.nextAddress==1)return _.Qg(d,2),d.yield(Qmw(l,u,K),4);if(d.nextAddress!=2)return d.return(d.yieldResult);D=_.iY(d);_.hV(D);e0C=!0;throw D;})};
var Qmw=function(u,K,l){var D,d;return _.H(function(C){switch(C.nextAddress){case 1:if(u.cryptoKey){C.jumpTo(2);break}return C.yield(u.subtleCrypto.importKey("raw",u.JSC$12557_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:u.cryptoKey=C.yieldResult;case 2:return D={name:"AES-CTR",counter:l,length:128},C.yield(u.subtleCrypto.encrypt(D,u.cryptoKey,K),4);case 4:return d=C.yieldResult,C.return(new Uint8Array(d))}})},Uxm=function(u){this.JSC$12560_aesKey=u};
Uxm.prototype.encrypt=function(u,K){this.encryptor||(this.encryptor=new ats(this.JSC$12560_aesKey));for(var l=this.encryptor,D=0;D<4;D++)l.counter[D]=K[D*4]<<24|K[D*4+1]<<16|K[D*4+2]<<8|K[D*4+3];l.blockOffset=16;return this.encryptor.encrypt(u)};
Uxm.prototype.decrypt=function(u,K){return this.encrypt(u,K)};var PBa={},mDq=rl("yt-idb-pref-storage",{objectStores:(PBa.prefs={addedAtVersion:1},PBa),shared:!1,upgrade:function(u,K){K(1)&&Ds(lP(u,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.ki=function(u){this.token=u};
_.ki.getInstance=function(){return _.H(function(u){return u.return(new Promise(function(K){_.nU().then(function(l){l?(_.ki.instance||(_.ki.instance=new _.ki(l)),K(_.ki.instance)):K(void 0)})}))})};
_.ki.prototype.get=function(u){var K=this,l,D,d;return _.H(function(C){if(C.nextAddress==1)return C.yield(hmb(K.token),2);if(C.nextAddress!=3)return l=C.yieldResult,C.yield(l.get("prefs",u),3);D=C.yieldResult;if(!D)return C.return();d=(0,_.vA)();return D.expirationTimestampMs<=d?C.return():C.return(D.value)})};
_.ki.prototype.set=function(u,K,l){l=l===void 0?31536E3:l;var D=this,d,C,W;return _.H(function(M){if(M.nextAddress==1)return d=(0,_.vA)(),C={key:u,value:K,expirationTimestampMs:d+l*1E3},M.yield(hmb(D.token),2);W=M.yieldResult;return M.yield(W.put("prefs",C),0)})};
_.ki.prototype.remove=function(u){var K=this,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(hmb(K.token),2);l=D.yieldResult;return D.yield(l.delete("prefs",u),0)})};var ZG={},JaR=(ZG.INVALID_ENCODER_VERSION="Invalid encoder version",ZG.KEY_CREATION_FAILED="Failed to create encoder key",ZG.UNKNOWN_DECODE_ERROR="Failed to decode PES data",ZG.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",ZG.WRONG_DATA_TYPE="Encoder cannot process the data type",ZG),UV=function(u,K){K=K===void 0?{}:K;_.wv.call(this,JaR[u],Object.assign({},{name:"PESEncoderError",type:u},K));this.type=u;this.level="WARNING";Object.setPrototypeOf(this,UV.prototype)};
_.c(UV,_.wv);var Yi=function(){};
Yi.prototype.encode=function(u,K){try{return this.encodeImpl(u,K)}catch(l){KDH(l,Lvq)}};
Yi.prototype.decode=function(u,K){try{return this.decodeImpl(u,K)}catch(l){KDH(l,uPq)}};
var jmH=function(u,K,l){var D;return _.H(function(d){if(d.nextAddress==1)return _.Qg(d,2),d.yield(u.decodeAsyncImpl(K,l),4);if(d.nextAddress!=2)return d.return(d.yieldResult);D=_.iY(d);KDH(D,uPq);_.TG(d)})};
Yi.prototype.decodeAsyncImpl=function(u,K){return Promise.resolve(this.decodeImpl(u,K))};var AF=function(u,K){this.aesEncryptor=u;this.aesEncryptorAsync=K};
_.c(AF,Yi);AF.prototype.encodeImpl=function(u,K){K=l3y(K);u=(new TextEncoder).encode(JSON.stringify(u));return this.aesEncryptor.encrypt(u,K)};
AF.prototype.decodeImpl=function(u,K){if(!(u instanceof Uint8Array))throw EXq(1);var l=new TextDecoder;K=l3y(K);u=this.aesEncryptor.decrypt(u,K);return JSON.parse(l.decode(u))};
AF.prototype.decodeAsyncImpl=function(u,K){var l=this,D,d,C;return _.H(function(W){if(W.nextAddress==1){if(!(u instanceof Uint8Array))throw EXq(1);D=new TextDecoder;d=l3y(K);return W.yield(l.aesEncryptorAsync.decrypt(u,d),2)}C=W.yieldResult;return W.return(JSON.parse(D.decode(C)))})};var DAH={accountLinkStatusEntity:CHH,booleanEntity:BON,buttonEntity:Xem,captionTrack:BCA,channelHandle:M3k,chipEntity:aT0,commerceAcquisitionClientPayloadEntity:tKw,commerceCartListEntity:x6B,contextNoteFeedEntityPayload:aVw,contextNoteUserRatingEntityPayload:zNw,continuationTokenEntity:v1a,downloadQualityPickerEntity:IFB,downloadsPageRefreshTokenEntity:sow,downloadsPageViewConfigurationEntity:zsA,downloadStatusEntity:y$m,dismissState:z2w,sfvAudioItemCurrentlyPlayingEntity:$As,emojiFountainDataEntity:Z72,
emojiCustomizationSetEntity:kt2,fakeChannel:TOB,fakePlaylist:wN0,fakePlaylistEntryCollection:Fma,fakeVideo:g4m,fakeVideoDescription:NO0,featuredProductsEntity:YCB,flowStateEntity:KRC,iconBadgeEntity:S$H,interstitialInteractionStateEntity:Scs,likeButtonAnimationEntity:esm,liveChatPollStateEntity:U2S,liveViewerLeaderboardChatEntryPointStateEntity:mDH,liveViewerLeaderboardPointsEntity:hma,liveReactionsDataEntity:Yja,logoEntity:tDw,macroMarkerEntity:Rsk,mainDownloadsLibraryEntity:o1m,mainDownloadsListEntity:WeA,
mainPlaylistDownloadStateEntity:MYw,mainPlaylistEntity:GVS,mainPlaylistVideoEntity:tYR,mainVideoDownloadStateEntity:qCN,mainVideoEntity:OWs,markersEngagementPanelSyncEntity:UL0,markersVisibilityOverrideEntity:fFS,musicAlbumReleaseDetail:dDw,musicAlbumReleaseDownloadMetadataEntity:Le2,musicAlbumRelease:DDa,musicAlbumReleaseUserDetail:C62,musicArtistDetail:yeR,musicArtist:IjR,musicArtistUserDetail:sxN,musicDownloadsLibraryEntity:uMa,musicLibraryEdit:oXH,musicLibraryStatusEntity:WvN,musicPlaylist:HkC,
musicPlaylistDownloadMetadataEntity:Kvk,musicShare:qFS,musicTrackDetail:nXC,musicTrackDownloadMetadataEntity:ljH,musicTrack:$DA,musicTrackUserDetail:rea,offlineOrchestrationActionWrapperEntity:pzH,offlineVideoPolicy:ika,offlineVideoStreams:TCN,offlineabilityEntity:$LC,orchestrationWebSamplingEntity:n1a,pageHeaderEntity:pe2,pdpStateEntity:boH,pinnedProductEntity:A$S,playbackData:wzN,playerStateEntity:Qow,quantityIncrementerEntity:OoC,refresh:Fvk,saveToPlaylistListEntity:B0m,selectedChipIndexEntityPayload:P1k,
settingEntity:lGB,stringEntity:pNs,suggestedFeedbackChipStateEntity:J$2,transfer:VsC,trendingOfferEntity:XSH,videoDownloadContextEntity:gX2,videoOverviewAsyncDataEntity:AQR,videoPlaybackPositionEntity:ExR,votingEntity:FL2,ytMainChannelEntity:c$s,youchatPendingResponseEntity:joR,ytMainDownloadedVideoEntity:r$k,ytMainVideoEntity:aFw};var BWm,iZk,jZ,HPh,MhR,F82,g_H,V$m,wRw;BWm=function(u,K){this.JSC$12579_wrapped=u;this.JSC$12579_encoderRegistry=K;this.changedKeys={}};
iZk=function(u,K){return pRs(u.JSC$12579_encoderRegistry,K.version).decode(K.data,K.key)};
_.TW0=function(u,K,l){return u.JSC$12579_wrapped.objectStore("EntityStore").get(K).then(function(D){if(D){if(l&&D.entityType!==l)throw Error("Cf");return iZk(u,D)}})};
jZ=function(u,K,l){return l?(l=l.map(function(D){return _.TW0(u,D,K)}),KU.all(l)):u.JSC$12579_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(K)).then(function(D){return D.map(function(d){return iZk(u,d)})})};
_.WDR=function(u,K,l){var D=VsR(K),d=pRs(u.JSC$12579_encoderRegistry,1),C=Object.assign({},K);return u.JSC$12579_wrapped.objectStore("EntityStore").get(D).then(function(W){if(W){if(W.entityType!==l)throw Error("Cf");C.entityMetadata||(W=iZk(u,W),C.entityMetadata=W.entityMetadata)}}).then(function(){var W={key:D,
entityType:l,data:d.encode(C,D),version:1};return KU.all([u.JSC$12579_wrapped.objectStore("EntityStore").put(W),wRw(u,C,l)])}).then(function(){F82(u,D,l);
return D})};
HPh=function(u,K){var l=_.OV(K).entityType;return KU.all([u.JSC$12579_wrapped.objectStore("EntityStore").delete(K),V$m(u,K)]).then(function(){F82(u,K,l)})};
MhR=function(u,K,l,D){var d=pRs(u.JSC$12579_encoderRegistry,1);return _.TW0(u,K,D).then(function(C){if(C){C=Rmn(C,l);var W={key:K,entityType:D,data:d.encode(C,K),version:1};return KU.all([u.JSC$12579_wrapped.objectStore("EntityStore").put(W),wRw(u,C,D)])}}).then(function(){F82(u,K,D);
return K})};
F82=function(u,K,l){var D=u.changedKeys[l];D||(D=new Set,u.changedKeys[l]=D);D.add(K)};
g_H=function(u,K,l){var D=VsR(K);l=dAq(l);if(!l)return KU.resolve([]);l=new l(K);u=u.JSC$12579_wrapped.objectStore("EntityAssociationStore");K=[];l=_.y(l.getAssociations());for(var d=l.next();!d.done;d=l.next())K.push(u.put({parentEntityKey:D,childEntityKey:d.value}));return KU.all(K).then(function(C){return C.map(function(W){return W[1]})})};
V$m=function(u,K){return u.JSC$12579_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(K))};
wRw=function(u,K,l){var D=VsR(K);return V$m(u,D).then(function(){return g_H(u,K,l)})};var NWH=function(){};
_.c(NWH,Yi);NWH.prototype.encodeImpl=function(u){return u};
NWH.prototype.decodeImpl=function(u){if(u instanceof Uint8Array)throw EXq(0);return u};var yWq=function(){this.cacheMap={};this.cacheMap[0]=new NWH;if(!_.S("aes_pes_encoder_killswitch")){var u=this.cacheMap;try{var K=_.iZ();var l=l3y(K);var D=new AF(new Uxm(l),new fta(l))}catch(d){throw u=d instanceof Error?new UV("KEY_CREATION_FAILED",{originalMessage:d.message}):new UV("KEY_CREATION_FAILED"),_.Xm(u),u;}u[1]=D}},pRs=function(u,K){K=K===void 0?0:K;
u=u.cacheMap[K];if(!u)throw K=new UV("INVALID_ENCODER_VERSION",{encoderVersion:K}),_.Xm(K),K;return u};var QM=function(u,K){_.TZ.call(this);this.token=u;this.JSC$12593_encoderRegistry=K;this.observers=[];u=new _.lL.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.iZ());u.onmessage=this.handleMessage.bind(this);this.channel=u};
_.c(QM,_.TZ);_.Ju=function(u,K,l){var D,d,C,W;return _.H(function(M){if(M.nextAddress==1)return M.yield(Xzq(u.token),2);if(M.nextAddress!=3)return D=M.yieldResult,M.yield(_.o$(D,["EntityStore","EntityAssociationStore"],K,function(q){d=new BWm(q,u.JSC$12593_encoderRegistry);return l(d)}),3);
C=M.yieldResult;d&&(W=d.changedKeys,Object.keys(W).length>0&&(u.channel.postMessage(W),kfB(u,W)));return M.return(C)})};
QM.prototype.observe=function(u){var K=this;this.observers.push(u);return function(){var l=K.observers.indexOf(u);l>=0&&K.observers.splice(l,1)}};
var rZq=function(u){var K;return _.H(function(l){if(l.nextAddress==1)return l.yield(_.Ju(u,{mode:"readonly",enableRetries:!0},function(D){return D.JSC$12579_wrapped.objectStore("EntityStore").getAll()}),2);
K=l.yieldResult;return l.return(Promise.all(K.filter(function(D){return!!D}).map(function(D){var d,C;
return _.H(function(W){if(W.nextAddress==1){d=D.key;C=D.entityType;var M=W.yield;var q=jmH(pRs(u.JSC$12593_encoderRegistry,D.version),D.data,D.key);return M.call(W,q,2)}return W.return({key:d,entityType:C,data:W.yieldResult})})})))})};
QM.prototype.handleMessage=function(u){kfB(this,u.data)};
var kfB=function(u,K){u=_.y(u.observers);for(var l=u.next();!l.done;l=u.next())l=l.value,l(K)};
QM.prototype.disposeInternal=function(){this.channel.close()};
var CEq;var X1,Ysw,QPb;X1={};_.ZZN=(X1.mainVideoEntity="mainVideoEntityActionMetadata",X1.mainPlaylistEntity="mainPlaylistEntityActionMetadata",X1.musicTrack="musicTrackEntityActionMetadata",X1.musicPlaylist="musicPlaylistEntityActionMetadata",X1);Ysw=new _.G$("DOWNLOADS_ENTITY_TYPE_MAP");_.gZ=_.zI("","downloadsPageViewConfigurationEntity");QPb=_.zI("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.Htr=_.zI("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.zI("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.zI("SMART_DOWNLOADS_ENABLED","settingEntity");_.zI("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var vgZ=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var cWn=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var LDo={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var mK,Eio,brw,qth;mK=window;_.lv=mK.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.oxq=mK.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.sd;Eio=mK.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Tk;brw=mK.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Spm;_.Aa0=mK.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.TnS;qth=mK.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||V8a;I7({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 M_Z=LKr(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(u){return u}}}),x8n=LKr(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(u){return u}}}),Dsn=new Map;var $sR=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],s8q;var XRa=function(u){return _.SZ({type:"SET_EPHEMERAL_ACTION",payload:u})};var mxm={ephemeralAction:null};var h0a={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var per={sharedUi:function(u,K){u=u===void 0?h0a:u;switch(K.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},u,{animatedThumbnailEnabled:K.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},u,{inlinePreviewEnabled:K.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},u,{currentPageType:K.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},u,{currentPageSubType:K.payload});default:return u}},
a11y:UW({ephemeralAction:function(u,K){u=u===void 0?mxm.ephemeralAction:u;switch(K.type){case "SET_EPHEMERAL_ACTION":return K.payload;default:return u}}})};var xsq={playlistId:"",inviteLinkURL:""};var E_2={};var R2Z=UW({continuationCommand:function(u,K){u=u===void 0?E_2:u;switch(K.type){case "SET_CONTINUATION_COMMAND":return K.payload.continuationCommand;default:return u}}});var b7w={currentFormId:"",commandsMap:{}};var Usb=UW({isLeaderTab:function(u,K){u=u===void 0?!0:u;switch(K.type){case "SET_IS_LEADER_TAB":var l,D;return(D=K==null?void 0:(l=K.payload)==null?void 0:l.isLeaderTab)!=null?D:u;default:return u}}});var ucC;_.L80=function(u){return _.SZ({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:u}})};
ucC=function(u){return _.SZ({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:u}})};var BwR=UW({isDesktopSmallWidth:function(u,K){switch(K.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return K.payload.isDesktopSmallWidth;default:return u===void 0?!1:u}},
isShortsActive:function(u,K){switch(K.type){case "SET_IS_SHORTS_ACTIVE":return K.payload.isShortsActive;default:return u===void 0?!1:u}},
isWatchWhileMode:function(u,K){switch(K.type){case "SET_IS_WATCH_WHILE_MODE":return K.payload.isWatchWhileMode;default:return u===void 0?!1:u}},
playerState:function(u,K){switch(K.type){case "SET_PLAYER_STATE":return K.payload.playerState;default:return u===void 0?-1:u}},
isFullscreen:function(u,K){switch(K.type){case "SET_IS_FULLSCREEN":return K.payload.isFullscreen;default:return u===void 0?!1:u}},
isSmallScreenSqueezeback:function(u,K){switch(K.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return K.payload.isSmallScreenSqueezeback;default:return u===void 0?!1:u}},
isShortsPipActive:function(u,K){switch(K.type){case "SET_IS_SHORTS_PIP_ACTIVE":return K.payload.isShortsPipActive;default:return u===void 0?!1:u}},
isPlaybackStarted:function(u,K){switch(K.type){case "SET_IS_PLAYBACK_STARTED":return K.payload.isPlaybackStarted;default:return u===void 0?!1:u}}});var Tww=function(){return function(u){return function(K){var l=u(K);_.Sy(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[K],!0);return l}}};var KjS,Q3H;KjS=new _.et;_.aw=new _.G$("WATCH_PLAYER_PROMISE_TOKEN");_.lXN=new _.et;_.DgC=new _.G$("SHORTS_PLAYER_PROMISE_TOKEN");Q3H=new _.G$("");var wer=function(){return function(u){return function(K){K.type==="ENTITY_LOADED"&&_.GB().resolve(_.aw).then(function(l){var D;(D=l.dispatchReduxAction)==null||D.call(l,K)});
return u(K)}}};var dgB={};var fT9=UW({additionalContext:function(u,K){switch(K.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var l;return(l=K.payload)!=null?l:"";default:return u===void 0?"":u}},
impersonatedChannelUrl:function(u,K){switch(K.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var l;return(l=K.payload)!=null?l:"";default:return u===void 0?"":u}},
selectedVideoIds:function(u,K){u=u===void 0?dgB:u;switch(K.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var l={};return Object.assign({},u,(l[K.payload]=!0,l));case "VIDEO_UNSELECTED":return K=K.payload,u=Object.assign({},u),delete u[K],u;default:return u}}});var Q8L=UW({parentClickTrackingParams:function(u,K){switch(K.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return K.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return u===void 0?"":u}}});var CsC=function(u){return _.SZ({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:u})};var IXA={};var PXZ=UW({stepStates:function(u,K){u=u===void 0?IXA:u;switch(K.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var l=u,D=K.payload,d,C,W;u={};K={selectionStates:Object.assign({},(W=(d=l[D.stepId])==null?void 0:d.selectionStates)!=null?W:{},(u[D.token]={isSelected:D.isSelected},u)),userQuery:(C=l[D.stepId])==null?void 0:C.userQuery};d={};return Object.assign({},l,(d[D.stepId]=K,d));case "TALK_TO_RECS_UPDATE_USER_QUERY":return d=u,C=K.payload,W={selectionStates:Object.assign({},
(D=(l=d[C.stepId])==null?void 0:l.selectionStates)!=null?D:{}),userQuery:{userQuery:C.userQuery,token:C.userQueryToken}},l={},Object.assign({},d,(l[C.stepId]=W,l));default:return u}}});var ywa,s4s,Wja;ywa=function(u){return _.SZ({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:u})};
s4s=function(u){return _.SZ({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:u})};
_.ZL=function(u){return _.SZ({type:"SET_CURRENT_PAGE_TYPE",payload:u})};
_.oW0=function(u){return _.SZ({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:u})};
Wja=function(u){return _.SZ({type:"SET_CHIP_BAR_IS_STICKY",payload:u})};var cTy={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"};_.HKR=function(u){return _.SZ({type:"SET_PLAYER_STATE",payload:{playerState:u}})};var MOS=[],qa2={width:0,height:0};var JTL=UW({isTheaterMode:function(u,K){u=u===void 0?_.S("kevlar_disable_theater_mode_persistence")?!1:_.L0("START_IN_THEATER_MODE"):u;switch(K.type){case "SET_IS_THEATER_MODE":return K.payload.isTheaterMode;default:return u}},
isWatchActive:function(u,K){switch(K.type){case "SET_IS_WATCH_ACTIVE":return K.payload.isWatchActive;default:return u===void 0?!1:u}},
isLearningJourneyActive:function(u,K){switch(K.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return K.payload.isLearningJourneyActive;default:return u===void 0?!1:u}},
isWatchFullscreen:function(u,K){switch(K.type){case "SET_IS_WATCH_FULLSCREEN":return K.payload.isWatchFullscreen;default:return u===void 0?!1:u}},
isWatchNarrowWidth:function(u,K){switch(K.type){case "SET_IS_WATCH_NARROW_WIDTH":return K.payload.isWatchNarrowWidth;default:return u===void 0?!1:u}},
isWatchRetroMode:function(u,K){switch(K.type){case "SET_IS_WATCH_RETRO_MODE":return K.payload.isWatchRetroMode;default:return u===void 0?!1:u}},
isLiveChatCollapsed:function(u,K){switch(K.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return K.payload.isLiveChatCollapsed;default:return u===void 0?!1:u}},
openEngagementPanels:function(u,K){u=u===void 0?MOS:u;var l=[].concat(_.Am(u));switch(K.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return l.push(K.payload.panelToAdd),l;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return l.splice(l.indexOf(K.payload.panelToRemove),1),l;default:return u}},
playerState:function(u,K){switch(K.type){case "SET_PLAYER_STATE":return K.payload.playerState;default:return u===void 0?-1:u}},
watchScrollTop:function(u,K){switch(K.type){case "SET_WATCH_SCROLL_TOP":return K.payload.watchScrollTop;default:return u===void 0?0:u}},
watchWindowSize:function(u,K){u=u===void 0?qa2:u;switch(K.type){case "SET_WATCH_WINDOW_SIZE":return K.payload.watchWindowSize;default:return u}}});var $gC={feedbackTokens:[]};var j8y=UW({surveyFeedbackData:function(u,K){u=u===void 0?$gC:u;switch(K.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return K.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},u,K.payload);default:return u}}});var z2q={};var GFR=void 0;_.S("web_enable_redux_store_on_demand")||(GFR=vKh());var nW0=function(u,K,l){var D=this;this.listId=u;this.JSC$12727_updateCallback=K;this.isOfflineVideoCallback=l;_.Mu().subscribe(function(){D.handleUpdate()})};
nW0.prototype.getPlaylistData=function(){var u=_.Mu().getState().entities;if(this.listId&&this.listId!=="PPSV"){var K=Vhr(u,this.listId,!0),l=_.zI(this.listId,"mainPlaylistEntity"),D,d;u=u==null?void 0:(D=u.mainPlaylistEntity)==null?void 0:(d=D[l])==null?void 0:d.title;return tKq(K,u,this.listId)}K=_.a3Z(viq(u));u=_.a3Z(_.NK(u));u=K.concat(u);return tKq(u)};
nW0.prototype.getPlaylistId=function(){return this.listId};
nW0.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12727_updateCallback(this.listId,this.getPlaylistData(),{})};var hF=function(u,K,l,D){D=D===void 0?[]:D;this.JSC$12730_playlistNetworkManager=u;this.listId=K;this.JSC$12730_updateCallback=l;this.videoIds=D;this.pendingUpdates=[];this.currentIndex=0};
hF.prototype.JSC$12730_setCurrentIndex=function(u){this.currentIndex=u};
hF.prototype.setListId=function(u){this.listId=u};
var rwC=function(u,K){u.currentCreateRequest&&u.currentCreateRequest.cancel(K);u.currentUpdateRequest&&u.currentUpdateRequest.cancel(K);u.currentRefreshRequest&&u.currentRefreshRequest.cancel(K)};
hF.prototype.delete=function(){rwC(this,"PROXY DELETED")};
hF.prototype.addVideos=function(u,K,l){var D=this;l!==void 0?this.videoIds.splice.apply(this.videoIds,[l,0].concat(_.Am(u))):this.videoIds.push.apply(this.videoIds,_.Am(u));this.listId||this.currentCreateRequest?(u.forEach(function(d,C){d={addedVideoId:d,action:"ACTION_ADD_VIDEO"};l&&(d.addedVideoPosition=l+C);D.pendingUpdates.push(d)}),E7(this)):vWA(this,K.onCreateListCommand)};
var Gxs=function(u,K,l,D,d){O9n(u.videoIds,K,l);K>u.currentIndex&&l<=u.currentIndex?u.JSC$12730_setCurrentIndex(u.currentIndex+1):K===u.currentIndex?u.JSC$12730_setCurrentIndex(l):K<u.currentIndex&&l>=u.currentIndex&&u.JSC$12730_setCurrentIndex(u.currentIndex-1);u.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:D,movedSetVideoIdPredecessor:d});E7(u)},vWA=function(u,K){rwC(u,"OBSOLETE");
u.currentCreateRequest=tOa(u.JSC$12730_playlistNetworkManager,K,u.videoIds);_.Ne(u.currentCreateRequest,function(){u.currentCreateRequest=void 0}).then(function(l){u.setListId(l.playlistId);
u.pendingUpdates.length>0?E7(u):xga(u)})},E7=function(u){if(u.pendingUpdates.length!==0&&(u.currentRefreshRequest&&u.currentRefreshRequest.cancel("OBSOLETE"),!u.currentUpdateRequest&&!u.currentCreateRequest)){var K=u.pendingUpdates.splice(0,u.pendingUpdates.length);
u.currentUpdateRequest=u.JSC$12730_playlistNetworkManager.updatePlaylist(u.listId,K);_.Ne(u.currentUpdateRequest,function(){u.currentUpdateRequest=void 0}).then(function(){u.pendingUpdates.length>0?E7(u):xga(u)}).thenCatch(function(){u.pendingUpdates.unshift.apply(u.pendingUpdates,_.Am(K))})}},xga=function(u){u.currentRefreshRequest=_.Saw(u.JSC$12730_playlistNetworkManager,u.listId,u.currentIndex,u.videoIds[u.currentIndex]);
_.Ne(u.currentRefreshRequest,function(){u.currentRefreshRequest=void 0}).then(function(K){u.JSC$12730_updateCallback(K.playlistId,K.playlistPanelRenderer,K.autoplayRenderer)})};
hF.prototype.size=function(){return this.videoIds.length};var bKa=function(u,K,l,D){D=D===void 0?[]:D;hF.call(this,u,K,l,D);this.JSC$12730_playlistNetworkManager=u;this.listId=K;this.JSC$12730_updateCallback=l;this.videoIds=D};
_.c(bKa,hF);_.Lt=function(u,K,l,D,d,C,W){d=d===void 0?[]:d;W=W===void 0?Ou:W;hF.call(this,u,K,l,d);this.JSC$12730_playlistNetworkManager=u;this.listId=K;this.JSC$12730_updateCallback=l;this.onAuthChange=D;this.videoIds=d;this.storage=C;this.cookieReader=W;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.zH(_.YL,this.checkLoggedInStatusChange.bind(this),1E3)};
_.c(_.Lt,hF);_.I=_.Lt.prototype;_.I.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.zH(_.YL,this.checkLoggedInStatusChange.bind(this),1E3)};
_.I.JSC$12730_setCurrentIndex=function(u){hF.prototype.JSC$12730_setCurrentIndex.call(this,u);this.store()};
_.I.delete=function(){_.YL.cancelJob(this.queueSapisIdJob);hF.prototype.delete.call(this)};
_.I.setListId=function(u){hF.prototype.setListId.call(this,u);this.store()};
_.I.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var OKs=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],cwa=["playerResponse","videoDetails"],aXC=["response","currentVideoEndpoint","watchEndpoint","videoId"],zns=["response","currentVideoEndpoint","watchEndpoint","playlistId"],enR=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],RnR=["response","contents","twoColumnWatchNextResults","playlist","playlist"],Ug0=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
fX0=["response","contents","twoColumnWatchNextResults"];var uX={},cQq=(uX.WEB_UNPLUGGED="^unplugged/",uX.WEB_UNPLUGGED_ONBOARDING="^unplugged/",uX.WEB_UNPLUGGED_OPS="^unplugged/",uX.WEB_UNPLUGGED_PUBLIC="^unplugged/",uX.WEB_CREATOR="^creator/",uX.WEB_KIDS="^kids/",uX.WEB_EXPERIMENTS="^experiments/",uX.WEB_MUSIC="^music/",uX.WEB_REMIX="^music/",uX.WEB_MUSIC_EMBEDDED_PLAYER="^music/",uX.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",uX);var yAH,tOa;yAH=function(u,K){this.networkManager=u;this.innertubeTransportService=K};
tOa=function(u,K,l){if(!_.b(K,_.Ct))return _.YU(Error("Gf"));_.b(K,_.Ct).videoIds=l;l={create_playlist_title:_.QQ("QUEUE",void 0,"Queue")};return boq(_.HJ(u.innertubeTransportService,K,l),x6Z)};
_.Saw=function(u,K,l,D){K={videoId:D,playlistId:K,playlistIndex:l};l=_.qu(P3A);return boq(_.K7(u.innertubeTransportService,K,l),OoR)};
yAH.prototype.updatePlaylist=function(u,K){return boq(_.HJ(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:u,actions:K}}),S$q)};var Q4N=function(u){this.storage=u},Psw;
Q4N.prototype.store=function(u,K){K=K===void 0?0:K;if(this.storage&&u.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",u),this.storage.set("TLPQindex",String(K)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(l){}};
Q4N.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
Q4N.prototype.getPlaylistId=function(){if(!this.storage)return null;var u=null;try{u=this.storage.get("TLPQplaylist")}catch(K){}return u};var RDn=["navigationEndpoint","watchEndpoint","videoId"],eDh=["nextButtonVideo","watchEndpoint","videoId"];_.XQ=new _.G$("NETWORK_TOKEN");_.GT=new _.G$("PAGE_TOKEN");_.lX=new _.G$("PLAYLIST_TOKEN");var JwS;JwS=new _.G$("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.md=new _.G$("INNERTUBE_TRANSPORT_TOKEN");var j4a,DT,p6w,iK2,w6s,Fjm;j4a=new Set(["ci","cr","carml"]);DT=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12777_parkedJobs=new Map;this.parkedProcessors=new Map};
_.dw=function(){DT.instance||(DT.instance=new DT);return DT.instance};
DT.prototype.onAny=function(u){return _.BLa(this,u,2)};
DT.prototype.parkOrScheduleJob=function(u,K,l,D,d){_.C7(this,l)?_.k5().addJob(u,K,D):(d&&(u=p6w(u),iK2(this,u,K,l,d)),d=this.JSC$12777_parkedJobs.get(l),d||(this.JSC$12777_parkedJobs.set(l,[]),d=this.JSC$12777_parkedJobs.get(l)),d.push({job:u,priority:K,delay:D}))};
DT.prototype.addListener=function(u,K,l){l&&(K=p6w(K),iK2(this,K,0,u,l));l=this.parkedProcessors.get(u);l||(this.parkedProcessors.set(u,[]),l=this.parkedProcessors.get(u));l.push(K)};
DT.prototype.processSignal=function(u){if(!_.C7(this,u)){this.inProgressSignals.add(u);var K=this.JSC$12777_parkedJobs.get(u);if(K){K=_.y(K);for(var l=K.next();!l.done;l=K.next())l=l.value,_.k5().addJob(l.job,l.priority,l.delay);this.JSC$12777_parkedJobs.delete(u)}if(K=this.parkedProcessors.get(u)){K=_.y(K);for(l=K.next();!l.done;l=K.next())l=l.value,l();this.parkedProcessors.delete(u)}this.signals.push(u);this.inProgressSignals.delete(u)}};
_.C7=function(u,K){return j4a.has(K)||_.L0("IS_HOMEPAGE_COLD")||_.L0("IS_RESULTS_PAGE_COLD")||_.L0("IS_WATCH_PAGE_COLD")?u.signals.indexOf(K)>=0:!0};
p6w=function(u){var K=!1;return function(){K||(K=!0,u())}};
iK2=function(u,K,l,D,d){if(TLB.has(D))_.k5().addJob(K,l,d);else{var C=u.compoundSignals.get(D);C&&_.k5().addJob(function(){_.C7(u,D)||(C.isTimeoutConditionSatisfied?_.k5().addJob(K,l):C.timeoutConditionObservers.push(function(){_.k5().addJob(K,l)}))},l,d)}};
_.BLa=function(u,K,l){if(K.length>1){var D=[],d=Object.create(null);K=_.y(K);for(var C=K.next();!C.done;C=K.next())C=C.value,d[C]||(D.push(C),d[C]=!0);K=D}if(K.length===1)return K[0];C=K;D="";d=l===2?"|":"&";C.sort();C=_.y(C);for(var W=C.next();!W.done;W=C.next())D+=W.value+d;if(!u.compoundSignals.get(D)){d=0;C=[];W=_.y(K);for(var M=W.next();!M.done;M=W.next())M=M.value,d++,_.C7(u,M)||C.push(M);(l=l===2)&&d>C.length||!l&&!C.length?u.signals.push(D):w6s(u,D,l,K,C)}return D};
w6s=function(u,K,l,D,d){var C=d.length,W=function(){l||--C===0?u.processSignal(K):Fjm(u,K)};
d=_.y(d);for(var M=d.next();!M.done;M=d.next())u.addListener(M.value,W);u.compoundSignals.set(K,{signals:D,isOnAny:l,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Fjm(u,K)};
Fjm=function(u,K){if(!_.C7(u,K)){var l=u.compoundSignals.get(K);if(l&&!l.isTimeoutConditionSatisfied){for(var D=!1,d=0,C=0,W=_.y(l.signals),M=W.next();!M.done;M=W.next()){var q=M.value;M=!_.C7(u,q);TLB.has(q)?D=!0:(q=u.compoundSignals.get(q))?M&&!q.isTimeoutConditionSatisfied&&(C++,l.isInitialized||q.timeoutConditionObservers.push(function(){Fjm(u,K)})):M&&d++}l.isInitialized=!0;
l.isOnAny?D&&(l.isTimeoutConditionSatisfied=!0):d===0&&C===0&&(l.isTimeoutConditionSatisfied=!0);if(l.isTimeoutConditionSatisfied)for(l=_.y(l.timeoutConditionObservers),D=l.next();!D.done;D=l.next())D=D.value,D()}}};
DT.prototype.processSignal=DT.prototype.processSignal;DT.prototype.parkOrScheduleJob=DT.prototype.parkOrScheduleJob;DT.prototype.onAny=DT.prototype.onAny;_.$L("ytsignals.getInstance",_.dw);DT.prototype.onAny=DT.prototype.onAny;DT.prototype.parkOrScheduleJob=DT.prototype.parkOrScheduleJob;DT.prototype.processSignal=DT.prototype.processSignal;var TLB=new Set(["eop","eocs","dl","pcl"]);_.uD=new _.G$("MINIPLAYER_SERVICE");var I8,VON,gWs;I8=function(u,K,l){var D=_.Ci.getInstance();if(!Psw){var d=new LfL;var C=void 0,W=_.E3("ID_TOKEN");W&&d.isAvailable()&&(C=new N7(d,"yt-queue"+W));Psw=new Q4N(C)}d=Psw;C=_.dw();this.JSC$12784_actionRouter=D;this.pageManager=u;this.playlistManager=K;this.JSC$12784_playlistNetworkManager=l;this.storage=d;this.signals=C;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.y1=function(){if(!VON){var u=_.GB(),K=u.resolve(_.vv(_.GT)),l=u.resolve(_.vv(_.XQ)),D=u.resolve(_.vv(_.lX));u=u.resolve(_.md);VON=new I8(K,D,new yAH(l,u))}return VON};
gWs=function(u,K,l){if(l){var D;if(((D=u.responsePlaylistData)==null?void 0:D.playlistId)!==l)return}u.responsePlaylistData&&(l=jub(K,u.responsePlaylistData),u.responsePlaylistData=(0,_.k$.unsafeClone)(u.responsePlaylistData),p2n(u.responsePlaylistData,l));l=u.temporaryItems.findIndex(function(d){return d.videoId===K});
l>-1&&u.temporaryItems.splice(l,1);_.sj(u,_.o8(u,u.response?u.response.autoplayRenderer:void 0))};
_.NLs=function(u,K){if(u.responsePlaylistData){var l=Bhq(K,u.responsePlaylistData);p2n(u.responsePlaylistData,l);if(u.queueProxy){var D=u.queueProxy;l<0||(D.videoIds.splice(l,1),l<D.currentIndex&&D.JSC$12730_setCurrentIndex(D.currentIndex-1),D.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:K}),E7(D))}}_.sj(u,_.o8(u,u.response?u.response.autoplayRenderer:void 0))};
I8.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.sj(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
I8.prototype.setPlaylistData=function(u,K,l){this.temporaryItems=[];this.listId=u;this.responsePlaylistData=K;_.sj(this,_.o8(this,l))};
var kxH=function(u){return(u==null?0:u.playlistId)?u.playlistId:"PPSV"},ZKa=function(u){return u&&u.playlistId?u.playlistId==="PPSV"?!0:wdH(_.Mu().getState().entities,u.playlistId):!1};
I8.prototype.isPlayingOfflineVideo=function(){return this.response?ZKa(this.response):!1};
I8.prototype.closeMiniplayer=function(u){var K=this.queueProxy&&this.queueProxy.size()<=1,l=_.GB().resolve(_.uD);if(!this.queueProxy||K)this.queueProxy&&this.clearQueue(),l.close(!0);else{l.pipController.getWindow()&&window.focus();K=this.responsePlaylistData;var D=this.temporaryItems.length+(K&&K.contents?K.contents.length:0);K=_.QQ("QUEUE_CLEARED_UNPLURALIZED")||_.P0("QUEUE_CLEARED",D);K=_.re(K);l=_.QQ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");D=_.QQ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.P0("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",D);var d=_.QQ("MINIPLAYER_CLOSE",void 0,"Close"),C=_.QQ("CANCEL",void 0,"Cancel");_.Le(this.JSC$12784_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.o7(l),dialogMessages:[_.o7(D)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.o7(d),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
K]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.o7(C)}}}}}}],u)}};
_.o8=function(u,K){var l={},D=u.response;l.autoplayRenderer=K;if(!u.responsePlaylistData&&!u.temporaryItems.length)return!D||!D.hasRelatedVideoData&&_.S("kevlar_prefetch_data_augments_network_data")||(l.playerData={rvs:D.relatedVideoArgs,endScreenRenderer:D.endScreenRenderer}),l;l.playerData={};if(u.index===void 0)return _.Xm(Error("If")),l;l.panel=u.responsePlaylistData?(0,_.k$.unsafeClone)(u.responsePlaylistData):{titleText:_.o7(_.QQ("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
K=l.panel;if(K.contents)for(var d=_.y(u.temporaryItems),C=d.next();!C.done;C=d.next())K.contents.push({playlistPanelVideoRenderer:C.value});u.queueProxy&&D&&D.playingVideo&&D.playingVideoId&&!JQH(D.playingVideoId,l.panel)&&(K=D.playingVideo,d=l.panel,C=u.index,d.contents&&d.contents.splice(C===void 0?0:C,0,{playlistPanelVideoRenderer:K}));D&&D.playingVideoId&&(K=u.index,d=l.panel,K=!d.contents||K>=d.contents.length?void 0:d.contents[K].playlistPanelVideoRenderer,K&&K.videoId===D.playingVideoId||(K=
jub(D.playingVideoId,l.panel),u.index=K!==-1?K:u.index?u.index-1:0));K=Pfy(u.index+1,l.panel);d=void 0;u.index>0&&(d=Pfy(u.index-1,l.panel));if(d||K)l.autoplayRenderer=U6R(K,d,l.autoplayRenderer);!K&&(D==null?0:D.relatedVideoArgs)&&(l.playerData.rvs=D.relatedVideoArgs);D=D?D.playlistIndexOffset:0;u.queueProxy?w2y(l.panel,u.index,D,Qun,!0,!0,!0):w2y(l.panel,u.index,D);l.playerData.playlistPanelRenderer=l.panel;return l};
I8.prototype.openToast=function(u){_.GB().resolve(_.uD).openToast(u,_.QQ("ADDED_TO_QUEUE",void 0,"Added to queue"))};
I8.prototype.isMiniplayerActive=function(){return _.GB().resolve(_.uD).isMiniplayerActive()};
_.sj=function(u,K){u.playlistManager.setAutoplayRenderer(K.autoplayRenderer||null);u.playlistManager.setPlaylistData(K.panel||null);K.playerData&&u.playlistManager.setPlayerPlaybackControlData(K.playerData)};var VKq="#";var Ya2={},Aw2={},X6w={},mgH={},hn2={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:(Ya2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",Ya2),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:(Aw2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",Aw2),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:(X6w.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",X6w),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:(mgH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",mgH),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 Olq=[{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:hn2},{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:hn2}}];var qew;_.zO=[[["eHdxdHBtejgzaDFza2luZCM=","eDg5Zm91M3M3eHZhbHVlI3Fl"],"OThrZm5xdW51ckFEX1BMQUNFTUVOVF9LSU5EX1NUQVJUIzds"]];
qew=[[["NGg1ODhvcHJpbWFyeSNqMWthZzM=",null,null],[null,["d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyIzd0MzhzNW0ycnkxaXl0ZC10","eWxlLXNjb3BlI29hMWV3Y2JnYW0wanN0"],null],["c3RoZWFkLWFkI2Z6Y3VnYWt2aGQwbW1h",["MG9uMzNza3lyZmJ5dGQtcmljaC1ncmlkLXJlbmRlcmVyI20="],null],[null,["cjBwYnZleHh0cnZ5dGQtcmljaC1ncmlkLXJlbmRlcmVyI3M=","eWxlLXNjb3BlI2E0aGxqY3lseW8yM3N0"],null],[null,["MTJ6Ymh2aGh5dGQtYmFubmVyLXByb21vLXJlbmRlcmVyIzc0cHM=","eWxlLXNjb3BlIzhmYXMwbHNoamJtbXN0"],null],[null,["ZXJlciNmeW9seGY5enU0eXRkLWFkLXNsb3QtcmVuZA=="],
null]],[["cGxheWVyLWFkcyN5bnE3NWVtc3N5d2M=",null,null]]];_.a7=["YmFja3MjMmNqZXd2d3I0NWpzZ2xvYmFsQ2FsbA==","ZCNyaXN0OWVjOGk1Y29uQWJub3JtYWxpdHlEZXRlY3Rl","b2g2Zm9uQWRTa2lwI2R6ZnJmbWxn","ZSN0ejMycHVnZW8yMW1yYXdfcGxheWVyX3Jlc3BvbnM=","a2N6aDY1YWRTbG90cyM5YmFoMWw="];_.We="YmFja3MjMmNqZXd2d3I0NWpzZ2xvYmFsQ2FsbA== ZCNyaXN0OWVjOGk1Y29uQWJub3JtYWxpdHlEZXRlY3Rl b2g2Zm9uQWRTa2lwI2R6ZnJmbWxn ZSN0ejMycHVnZW8yMW1yYXdfcGxheWVyX3Jlc3BvbnM= X3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI3FyZXg4cXRlN2QzZndlYg== czMycmFiX3NhX2VmIzhldGk4YjJt a2N6aDY1YWRTbG90cyM5YmFoMWw=".split(" ");var He;He=function(u,K,l){this.lhC=u;this.isAsync=K;this.xfn=l};
_.Bjr=[new He("b.f_",!1,0),new He("j.s_",!1,2),new He("r.s_",!1,4),new He("e.h_",!1,6),new He("i.s_",!0,8),new He("s.t_",!1,10),new He("p.h_",!1,12),new He("s.i_",!1,14),new He("f.i_",!1,16),new He("a.b_",!1,18),new He("a.o_",!1),new He("g.o_",!1,22),new He("p.i_",!1,24),new He("p.m_",!1),new He("n.k_",!0,20),new He("i.f_",!1),new He("a.s_",!0),new He("m.c_",!1),new He("n.h_",!1,26),new He("o.p_",!1),new He("m.p_",!0,28),new He("o.a_",!1),new He("d.p_",!1),new He("e.i_",!1)].reduce(function(u,K){u[K.lhC]=
K;return u},{});var EWa=function(){};
EWa.prototype.flush=function(u,K){u=u===void 0?[]:u;K=K===void 0?!1:K;if(_.S("enable_client_streamz_web")){u=_.y(u);for(var l=u.next();!l.done;l=u.next())l=kgw(l.value),this.rootSpec&&_.jF(l,2,this.rootSpec),l={serializedIncrementBatch:_.Yp(l.JSC$9534_serializeBinary())},_.YE("streamzIncremented",l,{sendIsolatedPayload:K})}};
var Zoq=function(){};
_.c(Zoq,EWa);var Lj2=function(u){var K=new iMk;var l=new jQw;l=_.Tj(l,1,"botguard");u=_.Tj(l,2,u);this.rootSpec=_.Br(K,1,TbS,u)};
_.c(Lj2,EWa);var bv,u8w=new Map;var vMb,AQH,D19,hDH,u79,HlR,too,oMq;vMb=2;AQH=2;D19=2;hDH=2;u79=2;HlR=2;too=2;oMq=new wOa;var lba,Dda,dda;lba=function(){this.ongoingFlowNonces=new Map};
_.fc=function(){Dda||(Dda=new lba);return Dda};
_.R7=function(u,K,l){return{eventType:{flowEventNamespace:u,flowEventType:K},metadata:l,statusCode:void 0,csn:void 0,can:void 0}};
_.ilH=function(u,K){var l=_.fc(),D=dda(l,K,!0);_.Ud(l,u,K,D)};
_.Ud=function(u,K,l,D){u={flowNonce:D||dda(u,l),flowType:l,flowEventType:K.eventType};K.metadata&&(u.flowMetadata=K.metadata);K.statusCode!==void 0&&(u.flowEventStatus=K.statusCode);K.csn&&(u.csn=K.csn);K.can&&(u.can=K.can);_.YE("flowEvent",u,void 0)};
dda=function(u,K,l){l=l===void 0?!1:l;var D=u.ongoingFlowNonces.get(K);if(!D||l)D=kr(16),u.ongoingFlowNonces.set(K,D);return D};_.CqH=new TBk;var Vob={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"};var Ms=function(u,K,l,D,d,C,W){l=l===void 0?!1:l;D=D===void 0?!1:D;C=C===void 0?_.y1():C;this.hasRun=!1;this.uyt=u;this.h8E=K;this.pvg=l;this.fromHistory=D;this.previousVideoId=d;this.rr5=C;this.tempData=W;this.eW4=new _.FMB};
_.c(Ms,GE);Ms.prototype.validate=function(u){return!(!u.data.playerResponse||u.data.page!=="watch"&&u.data.page!=="learning_journey_watch"&&u.data.page!=="shorts"||this.hasRun)};
Ms.prototype.handle=function(u){var K=this,l=_.b(u.endpoint,_.oy),D=_.b(u.endpoint,_.TO);if(_.S("kevlar_continue_playback_without_player_response")&&(l==null?0:l.videoId)&&this.previousVideoId&&(l==null?void 0:l.videoId)===this.previousVideoId&&(l==null?0:l.continuePlayback)&&!this.fromHistory)this.uyt.resolve();else{var d={};l?d.watch_endpoint=l:D&&(d.watch_endpoint=D,D.endTimeSeconds&&(d.end=D.endTimeSeconds));u.data.page==="watch"?(u.data.filler||this.pvg||(_.Xi("cfg"),_.Ci.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(d,Ibs(this,u.endpoint)),_.S("enable_masthead_quartile_ping_fix")&&Object.assign(d,yJa(this)),Object.assign(d,void 0),u.data.forceExternalPlaylist&&(d.external_list=!0)):u.data.page==="shorts"?_.Ci.getInstance().triggerAction("yt-start-loading-shorts"):u.data.page==="learning_journey_watch"&&_.Ci.getInstance().triggerAction("yt-start-loading-learning-journey");if(l=this.h8E()){try{l.loadVideoWithPlayerResponse(u.data.playerResponse,d),l.getPlayerPromise().then(this.uyt.resolve)}catch(C){_.Xm(C),
this.uyt.resolve()}this.hasRun=!0;l.getPlayerPromise().then(function(C){C.addEventListener("onAbnormalityDetected",function(){var W=u.data.playerResponse,M=C.getVideoData().cpn;too=0;_.KyN=M;if(M=jir(W))K.eW4.increment("IN_PLAYER"),_.QR(5),_.S("ab_st_vid_ks")?C.pauseVideo(!0):C.stopVideo(),W.playabilityStatus=Object.assign({},W.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:M}}),W.videoDetails=void 0,_.Ci.getInstance().triggerOptionalAction("yt-updated-playability-status",
W.playabilityStatus)})})}else _.hV(Error("Lf"))}};
var Ibs=function(u,K){var l=_.b(K,_.oy);if(K&&l&&l.playlistId&&l.videoId&&(u=u.rr5,u.queueProxy?(u=u.queueProxy,l=u.listId===l.playlistId?u.attributionData.get(l.videoId):void 0):l=void 0,l))return{queue_info:l}},yJa=function(u){var K;
if((K=u.tempData)==null?0:K.adpings)return{adpings:u.tempData.adpings}};var qs=function(u,K,l){this.hasRun=!1;this.gL5=u;this.yRJ=K;this.lYc=l};
_.c(qs,GE);qs.prototype.validate=function(u){return!!_.k$.getValueByKeys.apply(null,[u.data].concat(_.Am(fX0)))};
qs.prototype.handle=function(u){var K=this;this.gL5.promise.then(function(){var l=u.data;var D=_.k$.getValueByKeys.apply(null,[l].concat(_.Am(OKs))),d=_.k$.getValueByKeys.apply(null,[l].concat(_.Am(RnR))),C=_.k$.getValueByKeys.apply(null,[l].concat(_.Am(aXC)));var W=(W=_.k$.getValueByKeys.apply(null,[l].concat(_.Am(cwa))))?{videoId:W.videoId,thumbnail:W.thumbnail,title:W.title?_.o7(W.title):void 0,shortBylineText:W.author?_.o7(W.author):void 0}:void 0;var M=void 0;_.S("web_get_playlist_id_from_current_endpoint_ks")||
(M=_.k$.getValueByKeys.apply(null,[l].concat(_.Am(zns))));var q=_.k$.getValueByKeys.apply(null,[l].concat(_.Am(Ug0))),v=_.k$.getValueByKeys.apply(null,[l].concat(_.Am(enR))),G=!!q||!!v&&!!v.results&&v.results.length>0,t=0;d&&d.currentIndex&&d.localCurrentIndex&&(t=d.currentIndex-d.localCurrentIndex);d&&d.playlistId&&(M=d.playlistId);l={rawResponse:l,autoplayRenderer:D,hasRelatedVideoData:G,playingVideo:W,playingVideoId:C,playlistPanelRenderer:d,playlistId:M,playlistIndex:d&&d.currentIndex,relatedVideoArgs:q,
endScreenRenderer:v,playlistIndexOffset:t};a:{D=K.lYc;d=K.yRJ;D.response=l;if(ZKa(l))D.downloadPlaylistProxy&&D.downloadPlaylistProxy.getPlaylistId()===kxH(l)||(D.downloadPlaylistProxy=new nW0(kxH(l),D.setPlaylistData.bind(D),D.isPlayingOfflineVideo.bind(D))),D.responsePlaylistData=D.downloadPlaylistProxy.getPlaylistData(),D.listId=kxH(l),D.index=0;else if(l.playlistPanelRenderer&&l.playlistId&&l.autoplayRenderer)l.playlistId.startsWith("TLPQ")?D.queueProxy?D.listId===l.playlistId?(D.index=l.playlistIndex,
D.responsePlaylistData=l.playlistPanelRenderer,D.queueProxy.JSC$12730_setCurrentIndex(D.index)):l.playingVideoId&&D.index!==void 0&&d.clientParams.autoSaveToQueue&&(D.index+=1,D.queueProxy.JSC$12730_setCurrentIndex(D.index),D.queueProxy.addVideos([l.playingVideoId],{},D.index)):(D.queueProxy=new _.Lt(D.JSC$12784_playlistNetworkManager,l.playlistId,D.setPlaylistData.bind(D),D.clearQueue.bind(D),_.ioq(l.playlistPanelRenderer),D.storage),D.responsePlaylistData=l.playlistPanelRenderer,D.listId=l.playlistId,
D.index=l.playlistIndex):(D.index=l.playlistIndex,D.listId!==l.playlistId&&D.clearQueue(),D.responsePlaylistData=l.playlistPanelRenderer,D.listId=l.playlistId,D.playlistProxy=new bKa(D.JSC$12784_playlistNetworkManager,l.playlistId,D.setPlaylistData.bind(D),_.ioq(l.playlistPanelRenderer)));else if(!D.queueProxy)D.responsePlaylistData=void 0;else if(l.playingVideoId&&d.clientParams.autoSaveToQueue){if(D.index===void 0){_.Xm(Error("Hf"));D.clearQueue();break a}D.queueProxy.videoIds.includes(l.playingVideoId)||
(D.index+=1,D.queueProxy.JSC$12730_setCurrentIndex(D.index),D.queueProxy.addVideos([l.playingVideoId],{},D.index))}_.sj(D,_.o8(D,D.response.autoplayRenderer))}})};var sr0=function(u,K){K=K===void 0?_.y1():K;JF.call(this);this.aU.push(new qs(this.tN,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},K));this.aU.push(new Ms(this.tN,u,!1,!1));_.S("web_response_commands_chunk_processor")&&this.aU.push(new jv)};
_.c(sr0,JF);sr0.prototype.processChunk=function(u){u&&u.data.player===void 0&&this.tN.resolve();JF.prototype.processChunk.call(this,u)};var $x=function(u,K){u=u===void 0?{layer:0}:u;this.hasRun=!1;this.createScreenConfig=u;this.jeJ=K};
_.c($x,GE);$x.prototype.validate=function(u){return!(this.hasRun||!u.endpoint)};
$x.prototype.handle=function(u){var K=_.iT(),l,D,d=(D=_.b((l=u.endpoint)==null?void 0:l.commandMetadata,_.nN))==null?void 0:D.rootVe;this.jeJ&&d?_.ev(K,d,this.jeJ,this.createScreenConfig):L9k(K,u.endpoint,this.createScreenConfig);this.hasRun=!0};var n7=function(u,K){this.hasRun=!1;this.m2g=u;this.previousVideoId=K};
_.c(n7,GE);n7.prototype.validate=function(u){return _.S("kevlar_continue_playback_without_player_response")&&(u=_.b(u.endpoint,_.oy),(u==null?0:u.videoId)&&this.previousVideoId&&(u==null?void 0:u.videoId)===this.previousVideoId&&(u==null?0:u.continuePlayback))?!1:this.m2g.ze8===0};
n7.prototype.handle=function(u){_.Ci.getInstance().triggerAction("yt-stop-old-player",u.data,!0)};var oBN=function(u){u=u===void 0?{layer:0}:u;JF.call(this);this.aU.push(new n7(this));this.aU.push(new $x(u));this.aU.push(new P3(u))};
_.c(oBN,JF);var Wym=function(){this.hasRun=this.hasRun=!1};
_.c(Wym,GE);Wym.prototype.validate=function(u){return!this.hasRun&&!(!u.data.csn||!u.data.rootVe)};
Wym.prototype.handle=function(u){this.hasRun=!0;_.mq(u.data.csn,u.data.rootVe,3)};var HGs=function(){GE.apply(this,arguments)};
_.c(HGs,GE);HGs.prototype.validate=function(u){return!!u.data.preconnect};
HGs.prototype.handle=function(u){_.As("bc");u=_.y(u.data.preconnect);for(var K=u.next();!K.done;K=u.next())K=K.value,(new Image).src=K};var MpC=function(u,K,l){l=l===void 0?{layer:0}:l;JF.call(this);this.aU.push(new Ms(this.tN,u));this.aU.push(new $x(l));this.aU.push(new P3(l))};
_.c(MpC,JF);var qha=function(u,K,l,D,d){l=l===void 0?{layer:0}:l;D=D===void 0?_.y1():D;JF.call(this);var C=!!K&&!!K.clientParams&&!!K.clientParams.miniplayer;C&&this.aU.push(new Wym);this.aU.push(new qs(this.tN,K,D));this.aU.push(new HGs);var W,M;this.aU.push(new Ms(this.tN,u,C,!((W=K.clientParams)==null||!W.fromHistory),(M=K.clientParams)==null?void 0:M.previousVideoId,D,K.tempData));var q;this.aU.push(new n7(this,(q=K.clientParams)==null?void 0:q.previousVideoId));var v;(v=K.clientParams)!=null&&v.fromHistory||
(l.layer||(l=Object.assign({},l,{layer:C?3:0})),this.aU.push(new $x(l,d)),this.aU.push(new P3(l)));_.S("web_response_commands_chunk_processor")&&this.aU.push(new jv)};
_.c(qha,JF);var rw,rJw;rw={};
_.$d0=(rw["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},rw["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},rw["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},rw["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},rw["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},rw["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},rw["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},rw);_.ve=new _.Ev("yt-edu");_.nBC=function(){this.JSC$12885_eduDisplayedThisLoad_={}};
rJw=function(u){var K=_.nBC.getInstance();var l=_.Sg("kevlar_tooltip_impression_cap");K=l&&parseInt(_.ve.get(u+"-impression")||0,10)>=l||_.ve.get(u+"-dismissed")?!1:(l=_.$d0[u])&&!K.JSC$12885_eduDisplayedThisLoad_[l.setKey||u]&&(l.titleText&&_.QQ(l.titleText)||l.bodyText&&_.QQ(l.bodyText))?!0:!1;if(!K)return null;K=_.$d0[u];if(!K)return null;l=K.bodyText?_.QQ(K.bodyText):void 0;var D=K.titleText?_.QQ(K.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:K.position,popup:{bubbleHintRenderer:{text:D?
_.o7(D):void 0,detailsText:l?_.o7(l):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.o7(_.QQ("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:u}}]}}}}}}}},{eduImpressionAction:{key:u}}]};
_.t0(_.nBC);var TjR=!1;for(var vB0="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),Gua=[],Gt=6;Gt>=1;Gt--)Gua.push({columnCount:Gt,query:Gt==1?0:Gt*2*107-4+32,className:"grid-"+Gt+"-columns",width:Gt*2*107+"px"});_.xdH=function(u){this.actionRouter_=u=u===void 0?_.Ci.getInstance():u;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.tpw(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.tpw=function(u){var K=u.miniGuideVisible_?72:0,l=u.documentWidth_-(u.guidePersistentAndVisible_?240:K);return Gua.find(function(D){return l>D.query})};
_.t0(_.xdH);var Sh2=function(){var u=this;this.JSC$12897_keyboardInUse=!1;document.addEventListener("keydown",function(){u.onKeydown()});
document.addEventListener("mousedown",function(){u.JSC$12897_keyboardInUse=!1})},bGC;
Sh2.prototype.isKeyBoardInUse=function(){return this.JSC$12897_keyboardInUse};
Sh2.prototype.onKeydown=function(){this.JSC$12897_keyboardInUse=!0};var OGk,S_;_.tT=new _.Ev("yt-mentions");_.xx=function(){};
OGk=function(u,K){return S_(K,"drag-to-reorder-edu-displayed")};
S_=function(u,K,l,D,d,C){l=l===void 0?"OPEN_POPUP_POSITION_TOP":l;if(K){if(_.tT.get(K))return;_.tT.set(K,!0,D)}if(d&&C!==void 0){K=Number(_.tT.get(d)||0);if(K>=C)return;_.tT.set(d,K+1)}return[{openPopupAction:{popupType:"HINT",position:l,popup:{bubbleHintRenderer:{detailsText:u,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.t0(_.xx);var cJa,aba,zfR;cJa=function(u,K,l,D){this.JSC$12907_taskManager_=u;this.onFulfilled_=typeof K==="function"?K:null;this.onRejected_=typeof l==="function"?l:null;this.JSC$12907_context_=D};
aba=function(u,K){u.onFulfilled_&&_.Vo(u.JSC$12907_taskManager_,function(){u.onFulfilled_.call(u.JSC$12907_context_,K)})};
zfR=function(u,K){u.onRejected_&&_.Vo(u.JSC$12907_taskManager_,function(){u.onRejected_.call(u.JSC$12907_context_,K)})};
_.bX=function(u){this.JSC$12910_taskManager_=u;this.callbacks_=[]};
_.bX.prototype.then=function(u,K,l){this.callbacks_.push(new cJa(this.JSC$12910_taskManager_,u,K,l));return this};
_.bX.prototype.onSuccess=function(u){this.callbacks_.forEach(function(K){aba(K,u)})};
_.bX.prototype.onFailure=function(u){this.callbacks_.forEach(function(K){zfR(K,u)})};
_.bX.prototype.cancel=function(){this.callbacks_.length=0};
Ams(_.bX);_.Nj9=null;_.Xb=new _.G$("ACTIVITY_TOKEN");var Oj=function(u,K){this.serviceId=new A82(u,K)};
Oj.prototype.toString=function(){return this.serviceId.toString()};var efR=function(){this.internalMap={}};
_.I=efR.prototype;_.I.contains=function(u){return Object.prototype.hasOwnProperty.call(this.internalMap,u)};
_.I.get=function(u){if(this.contains(u))return this.internalMap[u]};
_.I.set=function(u,K){this.internalMap[u]=K};
_.I.getKeys=function(){return Object.keys(this.internalMap)};
_.I.remove=function(u){delete this.internalMap[u]};var ce=function(){this.mappings=new efR;this.errorCallbacks=new Set};
ce.prototype.getModuleId=function(u){return u.serviceId.getModuleId()};
ce.prototype.get=function(u){var K=this.mappings.get(u.toString());return RfC(this,K,u)};
ce.prototype.getMultipleAsync=function(){var u=_.uY.apply(0,arguments),K=this,l=u.map(function(q){return K.getModuleId(q)}),D=u.map(function(q){return K.mappings.get(q.toString())}).filter(function(q){return q});
if(D.length===u.length)return _.zA(D.map(function(q,v){return RfC(K,q,u[v])}));
var d=kV().loadMultiple(l);D=_.gx(l.map(function(q){return d[q]}));
var C=document.hidden,W=-1,M=_.Sg("get_async_timeout_ms",-1);M>-1&&(W=setTimeout(function(){_.hV(new _.wv("Module timeout.",l,C,document.hidden))},M));
return _.Ne(D.then(function(){return u.map(function(q){return RfC(K,K.mappings.get(q.toString()),q)})}).thenCatch(function(q){for(var v=_.y(K.errorCallbacks),G=v.next();!G.done;G=v.next())G=G.value,G(q);
throw q;}),function(){clearTimeout(W)})};
ce.prototype.registerService=function(u,K){this.mappings.set(u.toString(),{type:"mapping",value:K});return u};
var RfC=function(u,K,l){switch(K.type){case "mapping":return K.value;case "factory":return K=K.value(),u.mappings.set(l.toString(),{type:"mapping",value:K}),K;default:return _.o2(K)}};
ce.prototype.onLoadError=function(u){var K=this;this.errorCallbacks.add(u);return function(){K.errorCallbacks.delete(u)}};
_.a8=new ce;var Xsw=/^[a-zA-Z0-9_\-]{11}$/;var m1r=_.T3(function(){var u,K;return(K=(u=window).matchMedia)==null?void 0:K.call(u,"(prefers-reduced-motion: reduce)").matches});var UdC=_.T3(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 u=_.lZ("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");u||(u=_.PO("VIDEO"),_.$L("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
u));return!!(u&&u.canPlayType&&u.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var l1y=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var zt;zt=function(){this.tokenJars={};if(this.cookiesEnabled=_.pT()){var u=_.jg.get("CONSISTENCY",void 0);u&&fbB(this,{encryptedTokenJarContents:u})}};
_.dRn=function(){zt.instance||(zt.instance=new zt);return zt.instance};
zt.prototype.handleResponse=function(u,K){if(!K)throw Error("Rf");var l,D;K=((l=K.innerTubeRequest.context)==null?void 0:(D=l.request)==null?void 0:D.consistencyTokenJars)||[];var d;(u=(d=u.responseContext)==null?void 0:d.consistencyTokenJar)&&this.replace(K,u)};
zt.prototype.replace=function(u,K){u=_.y(u);for(var l=u.next();!l.done;l=u.next())delete this.tokenJars[l.value.encryptedTokenJarContents];fbB(this,K)};
var fbB=function(u,K){if(K.encryptedTokenJarContents&&(u.tokenJars[K.encryptedTokenJarContents]=K,typeof K.expirationSeconds==="string")){var l=Number(K.expirationSeconds);setTimeout(function(){delete u.tokenJars[K.encryptedTokenJarContents]},l*1E3);
u.cookiesEnabled&&_.Bv("CONSISTENCY",K.encryptedTokenJarContents,l,void 0,!0)}};var QrH,e_;QrH=window.location.hostname.split(".").slice(-2).join(".");_.YO=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var u=_.E3("LOCATION_PLAYABILITY_TOKEN");_.E3("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=PqH(this))&&(u=this.localStorage.get("yt-location-playability-token"));u&&(this.locationPlayabilityToken=u,this.mostRecentPosition=void 0)};
_.YO.getInstance=function(){e_=_.lZ("yt.clientLocationService.instance");e_||(e_=new _.YO,_.$L("yt.clientLocationService.instance",e_));return e_};
_.YO.prototype.setLocationOnInnerTubeContext=function(u){u.client||(u.client={});if(this.mostRecentPosition)u.client.locationInfo||(u.client.locationInfo={}),u.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),u.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),u.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),u.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)u.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.YO.prototype.handleResponse=function(u){var K;u=(K=u.responseContext)==null?void 0:K.locationPlayabilityToken;u!==void 0&&(this.locationPlayabilityToken=u,this.mostRecentPosition=void 0,_.E3("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=PqH(this))&&this.localStorage.set("yt-location-playability-token",u,15552E3):_.Bv("YT_CL",JSON.stringify({loctok:u}),15552E3,QrH,!0))};
var PqH=function(u){return u.localStorage===void 0?new _.Ev("yt-client-location"):u.localStorage};
_.YO.prototype.clearLocationPlayabilityToken=function(u){u==="TVHTML5"?(this.localStorage=PqH(this))&&this.localStorage.remove("yt-location-playability-token"):_.kAq("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.YO.prototype.getCurrentPositionFromGeolocation=function(){var u=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Sf"));var K=!1,l=1E4;_.E3("INNERTUBE_CLIENT_NAME")==="MWEB"&&(K=!0,l=15E3);return new Promise(function(D,d){navigator.geolocation.getCurrentPosition(function(C){u.mostRecentPosition=C;D(C)},function(C){d(C)},{enableHighAccuracy:K,
maximumAge:0,timeout:l})})};
_.YO.prototype.createUnpluggedLocationInfo=function(u){var K={};u=u.coords;if(u==null?0:u.latitude)K.latitudeE7=Math.floor(u.latitude*1E7);if(u==null?0:u.longitude)K.longitudeE7=Math.floor(u.longitude*1E7);if(u==null?0:u.accuracy)K.locationRadiusMeters=Math.round(u.accuracy);return K};
_.YO.prototype.createLocationInfo=function(u){var K={};u=u.coords;if(u==null?0:u.latitude)K.latitudeE7=Math.floor(u.latitude*1E7);if(u==null?0:u.longitude)K.longitudeE7=Math.floor(u.longitude*1E7);return K};var JJA=function(){};
_.I=JJA.prototype;
_.I.JSC$12977_getRequest=function(u,K,l){K=K===void 0?{}:K;l=l===void 0?u3k:l;var D=K;if(this.isNavigationCommand()){var d,C=(d=_.b(u==null?void 0:u.commandMetadata,_.nN))==null?void 0:d.url;D=_.C3q(u.clickTrackingParams,!0,!1,C,this.JSC$12977_getClientScreen(D))}else D=_.C3q(u.clickTrackingParams,!1,this.includeCsn);D={context:D};if(d=this.getExtension(u))return this.JSC$12977_buildRequest(D,d,K),d=this.getApiUrl(u),C=Object.assign({},{command:u},this.getRequestConfig(u,K)),D={input:d,requestShell:yQ(d),
innerTubeRequest:D,config:C},D.config.authStrategy?D.config.authStrategy.identity=l:D.config.authStrategy={identity:l},(u=this.JSC$12977_getRequestKey(u,K))&&!D.config.requestKey&&(D.config.requestKey=u),D;u=new _.wv("Error: Failed to create Request from Command.",u);_.Xm(u)};
_.I.getApiUrl=function(u){var K=_.qu(this.getApiPaths(u)),l;(u=(l=_.b(u.commandMetadata,_.nN))==null?void 0:l.apiUrl)&&(K=u);return jhq(J7w(K))};
_.I.isNavigationCommand=function(){return!1};
_.I.JSC$12977_getClientScreen=function(){};
_.I.JSC$12977_getRequestKey=function(){};
_.I.getRequestConfig=function(){};
_.MN.Object.defineProperties(JJA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var R8=function(){};
_.c(R8,JJA);R8.prototype.JSC$12984_getStoreKey=function(){};
R8.prototype.JSC$12977_getRequestKey=function(u,K){K=K===void 0?{}:K;return this.JSC$12984_getStoreKey(u,K)};var BFs;_.Uj=function(u,K,l){var D=l&&l>0?l:0;l=D?Date.now()+D*1E3:0;if((D=D?(0,_.jr0)():BFs())&&window.JSON){typeof K!=="string"&&(K=JSON.stringify(K,void 0));try{D.set(u,K,l)}catch(d){D.remove(u)}}};
_.f7=function(u){var K=BFs(),l=(0,_.jr0)();if(!K&&!l||!window.JSON)return null;try{var D=K.get(u)}catch(d){}if(typeof D!=="string")try{D=l.get(u)}catch(d){}if(typeof D!=="string")return null;try{D=JSON.parse(D,void 0)}catch(d){}return D};
_.Q1=function(u){try{var K=BFs(),l=(0,_.jr0)();K&&K.remove(u);l&&l.remove(u)}catch(D){}};
_.jr0=_.T3(function(){try{var u=new Eso;var K=u.isAvailable()?u:null}catch(l){return null}return K?new _.SR(K):null});
BFs=_.T3(function(){var u=new LfL;return u.isAvailable()?new _.SR(u):null});var cU=new _.G$("ENTITY_STATE_TOKEN"),Pe=new _.G$("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var pja=XMLHttpRequest.prototype.fetch,iGm=pja&&pja.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Mh?!0:!1;var JT=function(u){this.JSC$12989_storeWithEntities=u};
_.c(JT,R8);_.I=JT.prototype;_.I.getApiPaths=function(){return l10};
_.I.getExtension=function(u){return _.b(u,_.oy)||_.b(u,_.TO)||_.b(u,KDA)};
_.I.isNavigationCommand=function(){return!0};
_.I.JSC$12984_getStoreKey=function(u){if((_.S("kevlar_cache_on_ttl_player")||_.S("mweb_enable_shorts_innertube_player_prefetch")||_.S("mweb_use_new_history_manager")||_.S("web_shorts_prefetch_service_enabled"))&&(u=this.getExtension(u))&&u.videoId){var K={videoId:u.videoId};u.playlistId&&(K.playlistId=u.playlistId);u.playerParams&&(K.params=u.playerParams);return _.sx("player",K)}};
_.I.JSC$12977_getClientScreen=function(u){var K;return((K=u.contentPlaybackContext)==null?void 0:K.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.I.JSC$12977_buildRequest=function(u,K,l){if(_.S("enable_interstitial_entity_check")){var D=this.JSC$12989_storeWithEntities;if(K.videoId)for(var d=_.y(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),C=d.next();!C.done;C=d.next()){C=C.value;var W;var M=void 0,q=void 0,v=K.videoId,G=C;(W=D)?(v=_.zI(v+G,"interstitialInteractionStateEntity"),W=(M=(q=_.eZ(W.getState().entities,"interstitialInteractionStateEntity",v))==null?void 0:q.primaryButtonClicked)!=null?M:!1):W=!1;if(W)switch(C){case "CONTENT_CHECK_REQUIRED":K.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":K.racyCheckOk=!0}}}K.videoId&&(u.videoId=K.videoId);K.playlistId&&(u.playlistId=K.playlistId);K.index!==void 0&&(u.playlistIndex=K.index+1);K.playerParams&&(u.params=K.playerParams);"startTimeSeconds"in K&&K.startTimeSeconds&&(_.S("enable_player_request_builder_start_time_floor")?u.startTimeSecs=Math.floor(K.startTimeSeconds):u.startTimeSecs=K.startTimeSeconds);l.contentPlaybackContext&&(u.playbackContext={contentPlaybackContext:l.contentPlaybackContext});l.prefetchPlaybackContext&&
(u.playbackContext=Object.assign({},u.playbackContext,{prefetchPlaybackContext:l.prefetchPlaybackContext}),u.context.request||(u.context.request={}),u.context.request.isPrefetch=!0);u.playbackContext||(u.playbackContext={});D=UdC();u.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!D,supportXhr:iGm};l.overrideMutedAtStart&&(u.overrideMutedAtStart=l.overrideMutedAtStart);u.racyCheckOk=!!K.racyCheckOk;u.contentCheckOk=!!K.contentCheckOk;!_.S("captions_prefs_killswitch")&&(l=(l=_.f7("yt-player-caption-language-preferences"))?
l:[],l==null?0:l.length)&&(u.captionParams={viewerSelectedCaptionLangs:l})};
_.I.getRequestConfig=function(u){u=this.JSC$12984_getStoreKey(u);var K;u&&(K={storeStrategy:{storeKey:u}});_.S("web_log_player_watch_next_ticks")&&(K=K||{},K.requestTick="ps_s",K.responseTick="ps_r");return K};
JT[vP]=[cU];var j_=function(){};
_.c(j_,R8);_.I=j_.prototype;_.I.getApiPaths=function(){return P3A};
_.I.getExtension=function(u){return _.b(u,_.oy)};
_.I.isNavigationCommand=function(){return!0};
_.I.JSC$12984_getStoreKey=function(u){if((u=this.getExtension(u))&&u.videoId){var K={videoId:u.videoId};u.playlistId&&(K.playlistId=u.playlistId);u.index&&(K.index=u.index);u.params&&(K.params=u.params);return _.sx("next",K)}};
_.I.JSC$12977_getClientScreen=function(u){var K;return((K=u.contentPlaybackContext)==null?void 0:K.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.I.JSC$12977_buildRequest=function(u,K,l){K.videoId&&(u.videoId=K.videoId);K.playlistId&&(u.playlistId=K.playlistId);K.params&&(u.params=K.params);K.index!==void 0&&(u.playlistIndex=K.index);u.racyCheckOk=!(!l.racyCheckOk&&!K.racyCheckOk);u.contentCheckOk=!!K.contentCheckOk;l.contentPlaybackContext&&(u.autonavState=l.contentPlaybackContext.autonavState,u.playbackContext={vis:l.contentPlaybackContext.vis,lactMilliseconds:l.contentPlaybackContext.lactMilliseconds});l.prefetchPlaybackContext&&(u.context.request||
(u.context.request={}),u.context.request.isPrefetch=!0);_.S("captions_hats_killswitch")||(K=_.jy().getFlag(65),K=K!=null?!K:!1,l=!!_.f7("yt-player-sticky-caption"),u.captionsRequested=K&&l)};
_.I.getRequestConfig=function(u){u=this.JSC$12984_getStoreKey(u);var K;u&&(K={storeStrategy:{storeKey:u}});_.S("web_log_player_watch_next_ticks")&&(K=K||{},K.requestTick="wn_s",K.responseTick="wn_r");return K};
var Be=function(){};
_.c(Be,R8);Be.prototype.getApiPaths=function(){return P3A};
Be.prototype.getExtension=function(u){return _.b(u,_.C1)};
Be.prototype.JSC$12977_buildRequest=function(u,K){K.token&&(u.continuation=K.token)};var p7=function(u,K){this.playerRequestBuilder=u;this.watchNextRequestBuilder=K};
_.c(p7,R8);p7.prototype.getApiPaths=function(){return knN};
p7.prototype.getExtension=function(u){return _.b(u,_.oy)};
p7.prototype.isNavigationCommand=function(){return!0};
p7.prototype.JSC$12977_buildRequest=function(u,K,l){u.playerRequest={};this.playerRequestBuilder.JSC$12977_buildRequest(u.playerRequest,K,l);_.S("web_streaming_watch")&&(u.watchNextRequest={},this.watchNextRequestBuilder.JSC$12977_buildRequest(u.watchNextRequest,K,l))};
p7[vP]=[JT,j_];var TFN;_.iX=new _.G$("SHORTS_CONTROLLER_TOKEN");TFN=new _.G$("SHORTS_STATE_STORE_TOKEN");var Tt=function(u,K){var l=_.uY.apply(2,arguments);u=u===void 0?0:u;_.wv.call(this,K,l);this.errorType=u;Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(Tt,_.wv);var wjw,FyH,gBN,YJh,DO,M79,YhS,ZGa,LyR,mdB,Xjk;wjw=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(u){return u+"="}).join("|"));
FyH=RegExp(".*\\?.*playnext=1.*");_.ww=function(u,K,l,D){this.watchEndpointMap=u;this.reelWatchEndpointMap=K;this.innerTubeTransportService=l;this.fetchPbj=D};
gBN=function(u,K,l){var D=_.GB().resolve(_.vv(VpC));_.ww.instance=new _.ww(u,K,l,D)};
_.NF2=function(u,K){var l=_.Sg("web_pbj_log_warning_rate",0);l=l>0&&Math.random()<l;var D;if((D=_.b(K.commandMetadata,_.nN))==null||!D.rootVe)return l&&_.hV(Error("Uf")),!1;var d;D=(d=_.b(K.commandMetadata,_.nN))==null?void 0:d.url;if(!D)return l&&_.hV(Error("Vf")),!1;if(FyH.test(D))return!0;if(wjw.test(D))return l&&_.hV(Error("Wf`"+D)),!1;if(_.b(K,_.oy)){if(!(u.watchEndpointMap.watchNext&&u.watchEndpointMap.player||_.S("kevlar_fetch_initial_data_op_watch_client")))return l&&_.hV(Error("Nf")),!1;
u=_.Sg("web_pbj_log_warning_rate",0);u=u>0&&Math.random()<u;_.b(K,_.oy)?YeH(K)?K=!0:(u&&_.hV(Error("Of")),K=!1):(u&&_.hV(Error("Nf")),K=!1);return K}if(_.b(K,_.TO))return Aiq(K);if(_.b(K,_.uF))return!0;u=_.WJ(u.innerTubeTransportService,K);!u&&l&&_.Xm(Error("Xf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(K)});return u};
YJh=function(u,K,l,D,d,C){K={url:K};if(l==null?0:l.itct)K.parentTrackingParams=l.itct;var W=_.qu(HDH);return _.K7(u.innerTubeTransportService,K,W).then(function(M){(M=M.endpoint)||(M=_.pt);(l==null?0:l.itct)&&M&&!M.trackingParams&&(M.trackingParams=l.itct);var q=pc(M);return DO(u,M,l,D,q,d,C)})};
DO=function(u,K,l,D,d,C,W,M){M=M===void 0?{}:M;if(u.fetchPbj&&!_.NF2(u,K)&&!_.S("force_one_platform")){M=u.fetchPbj(K);var q=_.zA(M.then(function(Z){if(!Z)throw Error("Yf");W(q)||C(K,Z);return Z}));
return q}var v,G,t={rootVe:(v=_.b(K.commandMetadata,_.nN))==null?void 0:v.rootVe,url:(G=_.b(K.commandMetadata,_.nN))==null?void 0:G.url,endpoint:K,page:d};if(_.b(K,_.oy)){var x,O={contentPlaybackContext:_.VR(l,(x=_.b(K.commandMetadata,_.nN))==null?void 0:x.url,D)},a=_.MX();_.S("web_streaming_watch")&&window.TextDecoderStream?(M=kuk(u.innerTubeTransportService,K,O,function(Z){!t.response&&Z.content&&(t.response=Z.content);!t.playerResponse&&Z.player&&(t.playerResponse=Z.player);C(K,t)}),v=B3L(K),v.length&&
(t.preconnect=v,C(K,t)),ZGa(M,a,t).catch(function(Z){Z instanceof Tt&&Z.errorType===2&&YhS(u,K,O,t,C,W,a)})):YhS(u,K,O,t,C,W,a);
return a.promise}if(_.b(K,_.TO)){var f;if(((f=_.b(K,_.TO))==null?void 0:f.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var B=_.MX();_.AJR(_.GB().resolve(_.iX),K).then(function(Z){Xjk(u,l,D,d,C,B,Z)});
return B.promise}M=_.zA();var p;v={contentPlaybackContext:_.VR(l,(p=_.b(K.commandMetadata,_.nN))==null?void 0:p.url,D)};(p=u.reelWatchEndpointMap.player)&&(p=p().JSC$12977_getRequest(K,v))&&(M=_.K7(u.innerTubeTransportService,p.innerTubeRequest,p.input,K.clickTrackingParams,p.config));p=_.zA();(G=u.reelWatchEndpointMap.reelItemWatch)&&(G=G().JSC$12977_getRequest(K))&&(p=_.K7(u.innerTubeTransportService,G.innerTubeRequest,G.input,K.clickTrackingParams,G.config));G=_.zA();(x=u.reelWatchEndpointMap.reelWatchSequence)&&
_.b(K,_.TO).sequenceParams&&(v=x().JSC$12977_getRequest(K,v))&&(G=_.K7(u.innerTubeTransportService,v.innerTubeRequest,v.input,K.clickTrackingParams,v.config));v=_.zA(t);x=_.MX();mdB(K,v,M,p,G,C,W,x);return x.promise}var V;if(_.b(K,gML)&&((V=_.b(K.commandMetadata,_.nN))==null?0:V.url))return M=DRo(_.lr(mp().location.href),_.lr(_.b(K.commandMetadata,_.nN).url)).toString(),YJh(u,M,l,D,C,function(){return!1});
if(_.b(K,_.uF))return C(K,t),_.zA(t);if(_.WJ(u.innerTubeTransportService,K)){M=Object.assign({},{tempData:l,disableCache:l.disableCache},M);var m=_.HJ(u.innerTubeTransportService,K,M).then(function(Z){t.response=Z;W(m)||C(K,t);return t});
return m}return _.zA(t)};
_.EBC=function(u,K,l,D){if(_.b(K,_.oy)||_.b(K,_.TO)&&(_.S("mweb_enable_shorts_innertube_player_prefetch")||_.S("kevlar_enable_shorts_prefetch_in_sequence"))||_.b(K,KDA)&&_.S("web_enable_prefetching_videos_on_home")){var d,C={contentPlaybackContext:_.VR(l,(d=_.b(K.commandMetadata,_.nN))==null?void 0:d.url,D),prefetchPlaybackContext:EMq(l)},W,M,q;if(((W=_.b(K,_.oy))==null?void 0:(M=W.watchEndpointSupportedPrefetchConfig)==null?void 0:(q=M.prefetchHintConfig)==null?void 0:q.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(l=
u.watchEndpointMap.watchNext)if(C=l().JSC$12977_getRequest(K,C))return Promise.resolve(_.K7(u.innerTubeTransportService,C.innerTubeRequest,C.input,void 0,C.config).then(function(t){return t}))}else if(l=u.watchEndpointMap.player)if(C=l().JSC$12977_getRequest(K,C))return Promise.resolve(_.K7(u.innerTubeTransportService,C.innerTubeRequest,C.input,void 0,C.config).then(function(t){return t}))}else if(_.WJ(u.innerTubeTransportService,K)){var v={tempData:l},G=hfC(u.innerTubeTransportService,K);
return G?new Promise(function(t,x){var O,a;return _.H(function(f){if(f.nextAddress==1)return f.yield(G,2);if(f.nextAddress!=4)return O=f.yieldResult,O.JSC$12984_getStoreKey(K,v)?f.yield(_.HJ(u.innerTubeTransportService,K,v),4):(x(new _.wv("Prefetching request builder with no store key.",K)),f.jumpTo(0));a=f.yieldResult;t(a);_.TG(f)})}):Promise.reject(new _.wv("Prefetching unregistered request builder.",K))}return Promise.reject(new _.wv("No request builder available to prefetch endpoint.",K))};
M79=function(u,K){var l,D,d;if(_.b(K,_.oy)){var C=u.watchEndpointMap.watchNext;C&&(l=C());(u=u.watchEndpointMap.player)&&(D=u())}else if(_.b(K,_.TO))(C=u.reelWatchEndpointMap.reelItemWatch)&&(l=C()),(C=u.reelWatchEndpointMap.player)&&(D=C()),(u=u.reelWatchEndpointMap.reelWatchSequence)&&(d=u());else{a:{u=KBq(K,u.innerTubeTransportService.endpointMap);if(u!==void 0)if(typeof u.then==="function")_.Xm(new _.wv("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",K));else break a;
u=void 0}u&&(l=u)}var W,M,q;return{content:(W=l)==null?void 0:W.JSC$12984_getStoreKey(K),player:(M=D)==null?void 0:M.JSC$12984_getStoreKey(K),reelSequence:(q=d)==null?void 0:q.JSC$12984_getStoreKey(K)}};
YhS=function(u,K,l,D,d,C,W){var M=_.zA(),q=u.watchEndpointMap.player;_.S("web_streaming_player")&&(q=FQ(p7));q&&(q=q().JSC$12977_getRequest(K,l))&&(M=_.K7(u.innerTubeTransportService,q.innerTubeRequest,q.input,K.clickTrackingParams,q.config));q=_.zA();var v=u.watchEndpointMap.watchNext;v&&(l=v().JSC$12977_getRequest(K,l))&&(q=_.K7(u.innerTubeTransportService,l.innerTubeRequest,l.input,K.clickTrackingParams,l.config));u=_.zA(D);LyR(K,u,M,q,d,C,W)};
ZGa=function(u,K,l){return _.H(function(D){if(D.nextAddress==1)return D.yield(u,2);K.resolve(l);_.TG(D)})};
LyR=function(u,K,l,D,d,C,W){var M,q,v,G,t;_.H(function(x){switch(x.nextAddress){case 1:return x.yield(K,2);case 2:M=x.yieldResult;if(C(W.promise))return W.resolve(M),x.return();d(u,M);q=B3L(u);if(!q.length){x.jumpTo(3);break}return x.yield(K,4);case 4:M.preconnect=q,d(u,M);case 3:return _.Qg(x,5),x.yield(l,7);case 7:v=x.yieldResult;_.I$(x,6);break;case 5:return G=_.iY(x),W.reject(G),x.return();case 6:if(v===void 0)return M.reload=!0,d(u,M),W.resolve(M),x.return();if(C(W.promise))return W.resolve(M),
x.return();M.playerResponse=v;d(u,M);_.Qg(x,8);return x.yield(D,10);case 10:t=x.yieldResult;_.I$(x,9);break;case 8:_.iY(x);case 9:if(t===void 0)return M.response={responseContext:{}},W.resolve(M),x.return();if(C(W.promise))return W.resolve(M),x.return();M.response=t;d(u,M);W.resolve(M);_.TG(x)}})};
mdB=function(u,K,l,D,d,C,W,M){var q,v,G,t,x,O;_.H(function(a){switch(a.nextAddress){case 1:return a.yield(K,2);case 2:q=a.yieldResult;if(W(M.promise))return M.resolve(q),a.return();C(u,q);v=B3L(u);if(!v.length){a.jumpTo(3);break}return a.yield(K,4);case 4:q.preconnect=v,C(u,q);case 3:return _.Qg(a,5),a.yield(l,7);case 7:G=a.yieldResult;_.I$(a,6);break;case 5:return t=_.iY(a),M.reject(t),a.return();case 6:if(G===void 0)return q.reload=!0,C(u,q),M.resolve(q),a.return();if(W(M.promise))return M.resolve(q),
a.return();q.playerResponse=G;C(u,q);_.Qg(a,8);return a.yield(D,10);case 10:x=a.yieldResult;_.I$(a,9);break;case 8:_.iY(a);case 9:if(x===void 0)return q.response={responseContext:{}},M.resolve(q),a.return();if(W(M.promise))return M.resolve(q),a.return();q.response=x;C(u,q);_.Qg(a,11);return a.yield(d,13);case 13:O=a.yieldResult;_.I$(a,12);break;case 11:_.iY(a);case 12:if(W(M.promise))return M.resolve(q),a.return();q.reelWatchSequenceResponse=O;C(u,q);M.resolve(q);_.TG(a)}})};
Xjk=function(u,K,l,D,d,C,W){var M,q,v,G,t,x;_.H(function(O){if((M=W)==null||!M.replacementEndpoint)return C.reject(),O.return();q=W.replacementEndpoint;(v=_.b(q,_.TO))?(W.sequenceContinuation&&(v.sequenceParams=W.sequenceContinuation),G=_.GB().resolve(_.iX),t=v.sequenceParams,ut0(G,q)&&delete v.sequenceParams,x=DO(u,q,K,l,D,d,function(){return!1}),x.then(function(a){return _.H(function(f){if(f.nextAddress==1)return KSA(G,{reelWatchEndpoint:{sequenceParams:t}},a),f.yield(0,2);
C.resolve(a);_.TG(f)})})):C.reject();
_.TG(O)})};_.l9S=function(u){if(u.validatedFragments_.length==0)return null;if(!u.mergedPrefetchedData_){for(var K=[],l=_.y(u.validatedFragments_),D=l.next();!D.done;D=l.next()){D=_.y(u.fragmentConfiguration_[D.value].graftedKeys);for(var d=D.next();!d.done;d=D.next())(d=u.prefetchedData_[d.value].trackingParams)&&K.push(d)}u.mergedPrefetchedData_={};Object.assign(u.mergedPrefetchedData_,u.prefetchedData_,{clientSideGrafts:K})}return u.mergedPrefetchedData_};var D$N;_.F5=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
D$N=function(u,K,l){if(_.knq(K))return u.prefetchCache_.get(_.ZlH(K,l))};_.V1=new _.G$("NAVIGATION_TOKEN");var d$a=function(u){var K=this;var l=l===void 0?sAH():l;var D=D===void 0?_.GB().resolve(_.V1):D;this.onePickCommand=u;this.JSC$13087_playlistNetworkManager=l;this.navigationManager=D;this.videoPickerBuilder=_.I1H("yt-addtoplaylist");_.$7S(yVs(sLw(IsN(this.videoPickerBuilder.setTitle(u.modalTitle).setSize(1E3).addView(Wg0()).addView(onN())).addView("youtube"),u.selectButtonLabel)),function(d){K.handleAction(d)})};
d$a.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
d$a.prototype.handleAction=function(u){var K=this;if(u&&this.onePickCommand.listId&&u.action==="picked"&&u.docs){var l=[];u.docs.forEach(function(D){l.push({addedVideoId:D.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13087_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,l).then(function(){_.S("playlist_add_video_hard_reload_killswitch")?K.navigationManager.reload():CNk(K.navigationManager)})}};var I90=function(){if(this.constructor===I90)throw new TypeError("Zf");};
_.I=I90.prototype;_.I.dispose=function(){};
_.I.disconnect=function(){};
_.I.reconnect=function(){};
_.I.observe=function(u,K,l){return{element:u,option:l}};
_.I.unobserveByKey=function(){};var oR9=function(u,K){K=K===void 0?0:K;I90.call(this);this.viewroot=u;this.defaultPrescanHeight=K;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),u?{root:u,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.c(oR9,I90);_.I=oR9.prototype;_.I.dispose=function(){this.disconnect();this.handlers.clear()};
_.I.disconnect=function(u){this.isConnected=!1;this.pauseObservingUntilReconnect=u===void 0?!1:u;this.observer.disconnect();u=_.y(this.prescanObservers.values());for(var K=u.next();!K.done;K=u.next())K.value.disconnect()};
_.I.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var u=_.y(this.handlers),K=u.next();!K.done;K=u.next()){var l=_.y(K.value);K=l.next().value;var D=l.next().value;l=!1;D=_.y(D.keys());for(var d=D.next();!d.done;d=D.next())if((d=d.value)&&d.state==="prescan"){l=!0;break}l&&yLA(this,K).observe(K);this.observer.observe(K)}}};
_.I.handleObserveEvent=function(u){u=_.y(u);for(var K=u.next();!K.done;K=u.next()){K=K.value;var l=this.handlers.get(K.target);if(l){var D=K.isIntersecting;l=_.y(l);for(var d=l.next();!d.done;d=l.next()){var C=_.y(d.value);d=C.next().value;C=C.next().value;d&&(d.state==="visible"&&D||d.state==="hidden"&&!D)&&(C(K.target,d.state),d.calledOnce&&this.unobserveByKey({element:K.target,option:d}))}}}};
_.I.handlePrescanEvent=function(u){u=_.y(u);for(var K=u.next();!K.done;K=u.next()){K=K.value;var l=this.handlers.get(K.target);if(l&&K.isIntersecting){l=_.y(l);for(var D=l.next();!D.done;D=l.next()){var d=_.y(D.value);D=d.next().value;d=d.next().value;D&&D.state==="prescan"&&(d(K.target,D.state),D.calledOnce&&this.unobserveByKey({element:K.target,option:D}))}}}};
_.I.observe=function(u,K,l){var D=(D=this.handlers.get(u))&&D.has(l)?{element:u,option:l}:void 0;if(D)return D;D={element:u,option:l};this.handlers.has(u)||this.handlers.set(u,new Map);var d=this.handlers.get(u);d&&!d.has(l)&&d.set(l,K);this.pauseObservingUntilReconnect||(l.state==="prescan"&&yLA(this,u).observe(u),this.observer.observe(u));return D};
_.I.unobserveByKey=function(u){var K=this.handlers.get(u.element);if(K&&K.has(u.option)){K.delete(u.option);if(u&&u.option.state==="prescan")for(var l=_.y(this.prescanObservers.values()),D=l.next();!D.done;D=l.next())D.value.unobserve(u.element);K.size===0&&(this.handlers.delete(u.element),this.observer.unobserve(u.element))}};
var yLA=function(u,K){var l=u.defaultPrescanHeight;K.hasAttribute("prescan-height")&&(K=Number(K.getAttribute("prescan-height")),isNaN(K)||(l=K));if(u.prescanObservers.has(l))return u.prescanObservers.get(l);K="-0.1px -0.1px "+l+"px -0.1px";K=new IntersectionObserver(u.handlePrescanEvent.bind(u),u.viewroot?{root:u.viewroot,rootMargin:K}:{rootMargin:K});u.prescanObservers.set(l,K);return K};var sHH=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],olB=function(){var u,K=this;this.JSC$13104_actionRouter=u=u===void 0?_.Ci.getInstance():u;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return K.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return K.visibilityObservedElementHandlerKeys}}},WSC,MPB,nlA;
olB.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.S("kevlar_use_vimio_behavior")&&_.E3("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=W9o())};
olB.prototype.dispose=function(){this.visibilityMonitor&&_.TY(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
olB.prototype.handleVisibilityRefreshed=function(){for(var u=_.y(this.targetMap.entries()),K=u.next();!K.done;K=u.next()){var l=_.y(K.value);K=l.next().value;l=l.next().value;_.HhB(this,K,l)}};
_.$$0=function(u,K,l){MPB(u,l);var D=_.q_0(u,K);D.element=l;u.targetedElements.set(l,K);_.HhB(u,K,D)};
MPB=function(u,K){var l=u.targetedElements.get(K);if(l){var D=u.targetMap.get(l);D&&(delete D.element,u.targetMap.set(l,D));u.targetedElements.delete(K);u.visibilityObserver&&u.visibilityObservedElementHandlerKeys&&(l=u.visibilityObservedElementHandlerKeys.get(K))&&(u.visibilityObserver.unobserveByKey(l),u.visibilityObservedElementHandlerKeys.delete(K))}};
_.HhB=function(u,K,l){var D=l.action,d=l.element;d&&D&&(sHH.includes(K)||_.E3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||u.visibilityMonitor&&u.visibilityMonitor.isNodeVisible(d)?nlA(u,K,l):u.visibilityObserver&&(u.visibilityObservedElementHandlerKeys||(u.visibilityObservedElementHandlerKeys=new WeakMap),D=u.visibilityObserver.observe(d,function(){nlA(u,K,l);u.visibilityObservedElementHandlerKeys.delete(d)},{calledOnce:!0,
state:"visible"}),u.visibilityObservedElementHandlerKeys.set(d,D)))};
nlA=function(u,K,l){var D=l.action;(l=l.element)&&D&&(_.Le(u.JSC$13104_actionRouter,[D],l),u.targetMap.delete(K),u.targetedElements.delete(l),u.triggeredTargets.add(K))};
_.q_0=function(u,K){var l=u.targetMap.get(K);l||(l={},u.targetMap.set(K,l));return l};
_.gw=function(){WSC||(WSC=new olB);return WSC};var rLB=document.createElement("div");rLB.style.touchAction="pan-down";var HDq=rLB.style.touchAction==="pan-down";var vlN,Ge0;vlN=function(){this.hammerFn=dXw();this.JSC$13112_screenManager=_.iT();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Yo(83615);_.U7(this.JSC$13112_screenManager,this.ve);M0H()};
_.Ns=function(){Ge0||(Ge0=new vlN);return Ge0};
vlN.prototype.registerTouchEvents=function(u,K,l){var D=_.uY.apply(3,arguments),d=this.hammerFn(u,{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}]]});l&&d.set({touchAction:l});this.nodeManagerMapping.set(u,d);var C=
q8R(K);D=_.y(D);for(var W=D.next();!W.done;W=D.next()){W=W.value;if(W.includes("swipe")||W.includes("pinch")||W.includes("pan"))W.includes("swipe")?d.get("swipe").set({enable:!0,direction:C,velocity:.2}):W.includes("pinch")?d.get("pinch").set({enable:!0}):W.includes("pan")&&(d.get("pan").set({enable:!0,direction:C}),d.get("swipe").set({enable:!0,direction:C,velocity:.2}),d.get("swipe").recognizeWith("pan"));tP2(this,u,d,W)}};
var tP2=function(u,K,l,D){l.on(D,function(d){if(D.includes("pinch"))u.lastPinchTime=Date.now();else if(D.includes("swipe")&&Date.now()-u.lastPinchTime<400)return;d.pointerType!=="mouse"&&(d=D==="doubletap"?{coordinates:d.center}:D.includes("pan")?d:D.includes("swipe")?{target:d.target}:{},K.dispatchEvent(new CustomEvent(D,{bubbles:!0,composed:!0,detail:d})))})};
vlN.prototype.unregisterTouchEvents=function(u){var K=_.uY.apply(1,arguments),l=this.nodeManagerMapping.get(u);if(l){K=_.y(K);for(var D=K.next();!D.done;D=K.next())l.off(D.value);this.nodeManagerMapping.delete(u);u.style.touchAction="unset"}};var x$a=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var $RH=null;var S_a=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},P3H=function(){S_a.instance||(S_a.instance=new S_a);
return S_a.instance},JAZ=function(u){var K=u.networkEvents;
u.networkEvents=[];return _.S("enable_network_monitoring")?K:[]};var bhA;bhA={};_.OhN=rl("yt-serviceworker-metadata",{objectStores:(bhA.auth={addedAtVersion:1},bhA["resource-manifest-assets"]={addedAtVersion:2},bhA),shared:!0,upgrade:function(u,K){K(1)&&lP(u,"resource-manifest-assets");K(2)&&lP(u,"auth")},
version:2});var xRb=self.location.origin+"/";S8w([/\.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\//]);S8w([/purge_shell=1/]);var cLS=void 0;cLS=cLS===void 0?[]:cLS;for(var a9N=[],zo2=_.y(Y5a),eoA=zo2.next();!eoA.done;eoA=zo2.next())a9N.push({key:eoA.value});for(var Roa=_.y(cLS),U$2=Roa.next();!U$2.done;U$2=Roa.next())a9N.push(U$2.value);var f9R,h_=_.lL==null?void 0:(f9R=_.lL.performance)==null?void 0:f9R.memory,cAr=!1,jAb={},eUr={},Ed={},Lc=navigator;var kx=function(u){this.JSC$13156_expiringStorage=new Vx(u)};
kx.prototype.set=function(u,K,l){l=l!==void 0?Date.now()+l:void 0;this.JSC$13156_expiringStorage.set(u,K,l)};
kx.prototype.get=function(u){return this.JSC$13156_expiringStorage.get(u)};
kx.prototype.remove=function(u){this.JSC$13156_expiringStorage.remove(u)};var gRh=_.oj(["https://www.youtube.com/",""]),NPy=_.oj(["https://studio.youtube.com/",""]),XBZ="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",ZDq=null,uEZ;var QHH=_.oj(["https://www.youtube.com/iframe_api"]),ZT=function(){this.playerResolver_=_.MX();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.iO;this.playbackDurationSeconds_=0},PN2=function(u){var K=function(){return window.YT&&typeof window.YT.ready==="function"};
if(K())return _.zA(window.YT);var l=_.MX(),D=_.PO("SCRIPT");D.onload=D.onreadystatechange=function(){D.readyState&&D.readyState!="loaded"&&D.readyState!="complete"||(D.onload=_.iO,D.onreadystatechange=_.iO,D.onerror=_.iO,K()?l.resolve(window.YT):l.reject(new _.wv("Failed to load the iframe player library","script.onload",D.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
D.onerror=function(d){D.onload=_.iO;D.onreadystatechange=_.iO;D.onerror=_.iO;l.reject(new _.wv("Failed to load the iframe player library","script.onerror",d&&d.target&&d.target.src))};
_.$P(D,_.Oy(QHH));u.insertBefore(D,u.firstChild);return l.promise},JLB=function(u,K,l){var D,d;
_.H(function(C){switch(C.nextAddress){case 1:return u.playbackEndedCallback_=l,_.Qg(C,2),C.yield(PN2(K.parentElement||null),4);case 4:D=C.yieldResult;_.I$(C,3);break;case 2:return d=_.iY(C),d instanceof _.wv&&d.args&&d.args[0]=="script.onerror"?_.hV(d):_.Xm(d),C.return();case 3:D.ready(function(){return new D.Player(K,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:u.onPlayerReady_.bind(u),onStateChange:u.onPlayerStateChange_.bind(u),
onCueRangeExit:u.onCueRangeExit_.bind(u)}})}),_.TG(C)}})};
_.I=ZT.prototype;_.I.getPlayerPromise=function(){return this.playerPromise_};
_.I.onPlayerReady_=function(u){this.playerResolver_.resolve(u.target)};
_.I.onPlayerStateChange_=function(u){if(u.data==YT.PlayerState.PLAYING){u=u.target;var K=u.getCurrentTime();u.addCueRange("playback",K,K+this.playbackDurationSeconds_)}};
_.I.onCueRangeExit_=function(u){u.data=="playback"&&(u.target.stopVideo(),this.playbackEndedCallback_())};
_.I.stopVideo=function(){this.playerPromise_.then(function(u){u.stopVideo()})};
var jHR=function(u){u.playerVars_&&u.playerPromise_.then(function(K){typeof K.cueVideoByPlayerVars!="function"?_.hV(new _.wv("vmh: player API not ready","cueVideoByPlayerVars",typeof K.cueVideoByPlayerVars)):K.cueVideoByPlayerVars(u.playerVars_)})};
ZT.prototype.playVideo=function(){var u=this;this.playerVars_&&this.playerPromise_.then(function(K){typeof K.loadVideoByPlayerVars!="function"?(K=new _.wv("vmh: player API not ready","loadVideoByPlayerVars",typeof K.loadVideoByPlayerVars),_.Xm(K)):K.loadVideoByPlayerVars(u.playerVars_)})};
var BA2=function(u,K,l,D,d){K&&(l===void 0&&(l=0),D===void 0&&(D=0),u.playbackDurationSeconds_=D/1E3,u.playerVars_={adformat:"17_8",videoId:K,suggestedQuality:"hd720",startSeconds:l/1E3,player_params:d})};
ZT.prototype.mute=function(){this.playerPromise_.then(function(u){u.mute()})};
ZT.prototype.unMute=function(){this.playerPromise_.then(function(u){u.unMute()})};var pcN=function(u,K){var l=uI();u||(u="unknown");K||(K="unknown");u="MAIN_APP_WEB_PAGE_TYPE_"+u.toUpperCase();u in LR0||(u="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");K="MAIN_APP_WEB_REQUEST_TYPE_"+K.toUpperCase();K in uGw||(K="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.UA(l,{mainAppWeb:{pageType:u,requestType:K,isShellLoad:_.L0("IS_SHELL_LOAD",!1)}})},ihC={start:function(){_.UA(tDq(),{mainAppWeb:_.Ib()})},
success:function(){_.f5(tDq(),"SUCCESS")},
failure:function(){_.f5(tDq(),"FAILURE")},
cancelled:function(){_.f5(tDq(),"CANCELLED")}};var TAA,wcC,smL;TAA=_.oj(["/sw.js"]);wcC=_.oj(["/sw.js?0"]);_.FS0=_.Oy(TAA);smL=_.Oy(wcC);var VP2=function(){var u=Error.apply(this,arguments);this.message=u.message;"stack"in u&&(this.stack=u.stack)};
_.c(VP2,Error);_.ob.prototype.load=function(u){this.megabloxUrl_=_.E3("YPC_MB_URL");_.KN(this.megabloxUrl_,(0,_.wB)(function(){u&&u()},this))};
_.NT9=function(u,K,l,D,d,C,W,M,q,v,G){_.W8q(q);u.load((0,_.wB)(function(){try{var t=C?C:_.E3("HL"),x=_.E3("SESSION_INDEX");_.LRy("client",function(){LMB("59",{helpCenterPath:"/youtube",locale:t,window:window}).JSC$9904_loadChatSupport({authuser:String(x)})})}catch(O){throw yl(10,G,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),d&&d(O),_.Xm(O),O;
}glH(this,K,l,D,d,C,W,M,q,v,G)},u))};
_.ob.prototype.openFixFlowDialog=function(u,K,l,D){this.load((0,_.wB)(function(){try{NA0(this,_.lZ("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(u).withIntegratorCallback(K).load(l,D)}catch(d){throw _.Xm(d),d;}},this))};
var NA0=function(u,K,l,D){var d=K.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.S("enable_window_constrained_buy_flow_dialog")&&(d=d.usingPopupStyle(_.lZ("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));D&&(d=d.usingCloseCallback(D));K.bootstrap.fromPaymentsUrl(u.megabloxUrl_);u=K.bootstrap.asMashupMode(d);l=l?l:_.E3("HL");u.usingGaiaIndex(_.E3("SESSION_INDEX")).usingLocale(l).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.S("enable_google_payments_buyflow_material2_style_web")?
u.usingStyle(":m2;pc=#444;ac=#065fd4"):u.usingStyle(":md;pc=#444;ac=#065fd4");return u},glH=function(u,K,l,D,d,C,W,M,q,v,G){try{var t=_.lZ("payments.business.integration");
if(!t)throw new VP2("payments.business.integration is undefined");var x=t.standaloneContextAuthId.forUserId(),O=NA0(u,t,C,function(){M$o(!1);M&&M()});
W&&O.usingServerAnalyticsEventHandler(W);var a=O.inStandaloneContext(x).buyFlow(function(f){if(f&&(!f.integratorData||f.integratorData===""||f.error))if(f.error!=null)if(String(f.error)==="-1")_.HZq(q);else{var B=String(f.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";yl(10,G,B,f.debugCode);_.s9(B,q,f.debugCode);B=new _.wv("PAYMENT_ERROR_MESSAGE::"+f.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+f.internalErrorDetails);
_.Xm(B)}else yl(10,G,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.s9("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",q,"EMPTY_INTEGRATOR_DATA"),_.Xm(Error("dg"));l&&(M$o(!1),l(f))}).withEncryptedParameters(K);
v&&a.withClientParameters(K4H(_.NSq(v)));a.load(function(){yl(24,G);_.hs("ttc",void 0,"commerce_transaction");VYL("commerce_transaction");D&&(D(),M$o(!0))},function(f){if(f==null?0:f.debugCode)var B=f==null?void 0:f.debugCode;
else if(!f||(f==null?0:f.debugCode))B="EMPTY_LOAD_FAILURE_ERROR",_.Xm(Error(B));else{B="EMPTY_LOAD_FAILURE_DEBUG_CODE";var p=new _.wv("LOAD_FAILURE:"+f.message," DEBUG_CODE:"+B);_.Xm(p)}yl(10,G,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",B);_.s9("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",q,B);_.Xm(f);d&&d(f)})}catch(f){throw f instanceof VP2&&(yl(10,G,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),d&&d(f)),_.Xm(f),f;
}};var kek;kek=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.FlL=function(u,K){K=K===void 0?!1:K;u=kek.test(u)?_.Fz(u):null;!K&&window.payments||!u?(u=_.MX(),K=u.promise,u.resolve()):K=_.Tvk(u,{attributes:{"data-payments-main":"",id:"payment-lib"}});return K};var Zhs;Zhs=_.oj(["//www.googletagmanager.com/gtm.js?id=",""]);_.Yx=function(u,K){_.be(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:K}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.E3("GL")}),K=_.PO("SCRIPT"),K.async=!0,_.$P(K,_.Oy(Zhs,u)),K.id="gtm",u=document.getElementsByTagName("script"),u.length==0?document.head.appendChild(K):(u=u[0],u.parentNode.insertBefore(K,u)))};
_.AT=function(u){if(u=JSON.parse(u))window.dataLayer=window.dataLayer||[],window.dataLayer.push(u)};var Y_N,ALC;Y_N=_.oj(["https://clients2.google.com/gr/gr_sync.js"]);_.TTq=function(){};
_.TTq.prototype.init=function(){if(ALC()){var u=_.MX();u.resolve();return u.promise}return _.Tvk(_.Oy(Y_N)).then(function(){if(!ALC())throw Error("eg");},function(){throw Error("fg");
})};
_.wwb=function(){if(!ALC())return"";var u=window.google.gr;u.init({async:{schedule:"sync"},merchantId:"youtube"});u.start();u=u.finish();return u==null?"":u};
ALC=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.Q=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.c(_.Q,PolymerFakeBaseClassWithoutHtml);_.ii=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.c(_.ii,PolymerFakeBaseClassWithoutHtml);var qsr=window.ShadyDOM;var Aay,ZZq,mxn,h0o,L8y,ucR,X5,S8;Aay=_.S("enable_shadydom_free_scoped_query_methods");ZZq=_.S("enable_shadydom_free_scoped_node_methods");mxn=_.S("enable_shadydom_free_scoped_readonly_properties_batch_one");h0o=_.S("enable_shadydom_free_parent_node");L8y=_.S("enable_shadydom_free_children");ucR=_.S("enable_shadydom_free_last_child");X5=window.ShadyDOM;_.zQ=X5&&X5.noPatch&&X5.wrap?X5.wrap:X5?function(u){return X5.patch(u)}:function(u){return u};
S8=function(u){if(u instanceof ShadowRoot)this.host=(0,_.zQ)(u.host),this.root=u;else if(u.$$){this.host=(0,_.zQ)(u);var K;this.root=(K=u.root)!=null?K:this.host}else if(u.polymerController){this.host=(0,_.zQ)(u);var l;this.root=(l=this.host.shadowRoot)!=null?l:this.host}else this.root=this.host=(0,_.zQ)(u)};
Ysq();XRb();Kjw();lXq();E_r();var Xcw={querySelector:function(u,K){K=n_n(K,$H(u));u=_.rn(u);return vF(u).prototype.querySelector.call(u,K)},
querySelectorAll:function(u,K){K=n_n(K,$H(u));u=_.rn(u);return vF(u).prototype.querySelectorAll.call(u,K)}},m$a={appendChild:function(u,K){var l=$H(u),D=_.qn(K);
return _.NWq(_.rn(u),l?_.tU(K,l,D):K)},
cloneNode:function(u,K){var l=_.qn(u);u=_.rn(u);K=vF(u).prototype.cloneNode.call(u,K);return l?xH(K,l):K},
contains:function(u,K){var l=$H(u),D=_.qn(K);return l!==D?!1:kfZ(u,K)},
insertBefore:function(u,K,l){var D=$H(u),d=_.qn(K);u=_.rn(u);K=D?_.tU(K,D,d):K;return vF(u).prototype.insertBefore.call(u,K,l)},
removeChild:function(u,K){var l=$H(u);u=_.rn(u);K=l?xH(K,l):K;return vF(u).prototype.removeChild.call(u,K)},
replaceChild:function(u,K,l){var D=$H(u),d=_.qn(K);K=D?_.tU(K,D,d):d?xH(K,d):K;l=D?xH(l,D):l;u=_.rn(u);return vF(u).prototype.replaceChild.call(u,K,l)},
getRootNode:function(u,K){K=K===void 0?{composed:!0}:K;var l;if(((l=K)!=null?l:{}).composed)u=z0w(u);else{K=u;for(u=v_H(u);u;)K=u,u=t$h(u);u=K}return u}},dgZ=mxn?{firstChild:iZL,
nextSibling:jmq,previousSibling:pR9,firstElementChild:TWy,lastElementChild:F8r,nextElementSibling:JaH,previousElementSibling:BWn,childNodes:V$n}:{};h0o&&(dgZ.parentNode=PBb);L8y&&(dgZ.children=g_q);ucR&&(dgZ.lastChild=wRq);Aay&&DgR(Xcw);ZZq&&DgR(m$a);CsR();var IXH=function(u){this.node=u instanceof ShadowRoot?u.host:u};
ywb();s49();var HKH=new WeakMap;var qar=Symbol("xd");var Gx9=new Set(["tap","track","down","up"]),tOo=_.S("pbcm_fi_query_decorators");var mL=function(){return _.ii.apply(this,arguments)||this};
_.c(mL,_.ii);_.I=mL.prototype;_.I.getState=function(){return this.store.getState()};
_.I.dispatch=function(u){this.store.dispatch(u)};
_.I.beforeRegister=function(){if(this&&typeof this==="object"){var u;var K=!!this.useSignals||!((u=this.polymerController)==null||!u.useSignals)}else K=!1;if(!K&&this.properties)for(K=_.y(Object.keys(this.properties)),u=K.next();!u.done;u=K.next()){var l=u.value;u=this.properties[l];if(u.selector){if(u.computed)throw Error("lg");l=["reduxPropertiesRecomputeTrigger",'"'+l+'"'].concat(_.Am(u.selectorArgs||[])).join(",");u.computed="recomputeReduxSelector("+l+")"}}};
_.I.attached=function(){var u=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){u.reduxPropertiesRecomputeTrigger++}));
_.S("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.I.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.I.recomputeReduxSelector=function(u,K){var l=_.uY.apply(2,arguments),D=this.properties[K].selector;if(!D)throw Error("jg`"+K);return D.apply(null,[this.store.getState()].concat(_.Am(l)))};
_.I.select=function(u){var K=_.uY.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return u.apply(null,[this.store.getState()].concat(_.Am(K)))};
_.MN.Object.defineProperties(mL.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
mL.prototype.recomputeReduxSelector=mL.prototype.recomputeReduxSelector;_.g([_.U(),_.N("design:type",Number)],mL.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.g([_.TQ()],mL);var hT=[],OK9={},hU=function(){return $r.apply(this,arguments)||this};
_.c(hU,$r);hU.prototype._addPropertyEffect=function(u,K,l){if(K==="__observeEffects"&&l){var D,d=(D=l.info.method)!=null?D:l.info.methodName;if(d){var C=this[d];this[d]=function(){hT.push(d);try{C==null||C.apply(this,arguments)}finally{hT.pop()}}}}_.FG._addPropertyEffect.apply(this,[u,
K,l])};
hU.prototype._setPendingProperty=function(u,K,l){if(hT.length){var D=hT[hT.length-1],d;(d=OK9[this.is])!=null&&d.has(D)||(cwo(this.is,D),_.YE("polymerPropertyChangedInObserver",{componentName:this.is,observerName:D}))}return _.FG._setPendingProperty.apply(this,[u,K,l])};
_.g([l0q()],hU);var aXR=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),enH,Vl={};_.S("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Vl);var kH=function(){return _.ii.apply(this,arguments)||this};
_.c(kH,_.ii);kH.prototype._setUnmanagedPropertyToNode=function(u,K,l){u.loggingStatus&&(u.loggingStatus.isDeclarativeExternal=!0);if(l!==u[K]||typeof l==="object")u[K]=l;u.is&&u.polymerController&&u.polymerController!==u&&gn(u.is,K,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");u.loggingStatus&&(u.loggingStatus.isDeclarativeExternal=!1)};
_.g([_.TQ()],kH);zn9()&&(u0.prototype._setUnmanagedPropertyToNode=(new kH)._setUnmanagedPropertyToNode);_.VOq={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(u){},set polymerController(u){}}]};var m3=function(){var u=$r.apply(this,arguments)||this;u.json=function(){};
return u};
_.c(m3,$r);m3.prototype.equals=function(u,K){return u===K};
m3.prototype.isEmpty=function(u){var K;(K=!u)||(K=_.mb(u)&&u.length===0);return K};
_.g([l0q()],m3);var how=function(u){u=Lir(u);lE.call(this,u)};
_.c(how,lE);how.prototype.addProvider=function(u){u=u.key?u:Lir([u])[0];var K=this.keyIdToIndex.get(u.key.id);if(K){if(Psq(u,this.providers[K]))throw Error("mg`"+u.key.displayName);}else lE.prototype.addProvider.call(this,u)};
var ElR=new how([]);var LSA=!1;var TLZ={};LSA||(iKr(),LSA=!0);
TLZ.InjectBehavior={initializeInjection:function(){var u=this.provide;try{if((u=u!=null?u:[])&&u.length>0)for(var K=Lir(u),l=_.y(K),D=l.next();!D.done;D=l.next())ElR.addProvider(D.value);var d=new Set;Jww(this.behaviors||[],d);K={};for(var C=_.y(d),W=C.next();!W.done;W=C.next()){var M=W.value;M.inject&&Object.assign(K,M.inject)}this.inject&&Object.assign(K,this.inject);for(var q=_.y(Object.keys(K)),v=q.next();!v.done;v=q.next()){var G=v.value,t=K[G];try{this[G]=ElR.resolve(t)}catch(x){throw x;}}}catch(x){throw Error(x.message);
}}};var Fjn;var gW9=/\bclass\b/.test(function(){}.toString()),ZKo=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var uF0=function(u){this.wasDefined=!0;Array.isArray(u)||u instanceof Array?(this.JSC$13285_getImpl=u[0],this.JSC$13285_setImpl=u[1]):this.JSC$13285_getImpl=u};
_.I=uF0.prototype;_.I.getWithPath=function(u){return X6q(this.JSC$13285_getImpl(),u)};
_.I.setWithPath=function(u,K){var l=this;if(u.length)throw Error("ng");if(!this.JSC$13285_setImpl)throw Error("og");Un(function(){l.JSC$13285_setImpl(K)})};
_.I.notifyPath=function(){throw Error("pg");};
_.I.notifySplices=function(){throw Error("qg");};
_.I.getChangeRecordSignal=function(u,K){var l=this;if(u.length)throw Error("rg");return function(){var D=l.getWithPath(u);return{path:K!=null?K:"",base:D,value:D}}};
_.I.getSplicesSignal=function(){throw Error("sg");};
_.I.getPathMutationSignal=function(){throw Error("tg");};
_.I.pop=function(){throw Error("ug");};
_.I.push=function(){throw Error("vg");};
_.I.splice=function(){throw Error("wg");};
_.I.unshift=function(){throw Error("xg");};var Ej=function(u){var K=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(u)||u instanceof Array?(this.JSC$13290_getImpl=u[0],this.JSC$13290_setImpl=u[1]):this.JSC$13290_getImpl=u;this.wasDefined=!1;br(function(){K.wasDefined=K.JSC$13290_getImpl()!==void 0})};
Ej.prototype.getWithPath=function(u){return X6q(this.JSC$13290_getImpl(),u)};
Ej.prototype.setWithPath=function(u,K){var l=this;if(u[u.length-1]!=="*"&&u[u.length-1]!=="splices"){if(u.length===0){if(!this.JSC$13290_setImpl)throw Error("yg");this.wasDefined||(this.wasDefined=K!==void 0);Un(function(){l.JSC$13290_setImpl(K)})}else{for(var D=br(function(){return l.getWithPath([])}),d=0;d<u.length-1;d++){if(!D)return;
D=D[u[d]]}d=u[u.length-1];D&&(D[d]=K);this.wasDefined||(this.wasDefined=u.length>1||K!==void 0)}Kx2(this,u,{pathComponents:u,value:K})}};
Ej.prototype.notifyPath=function(u,K){u.length===0?K&&this.setWithPath(u,K.value):Kx2(this,u,{pathComponents:u,value:K==null?void 0:K.value,fallbackWhenUndefined:K==null?void 0:K.value})};
var Kx2=function(u,K,l,D){if(u.setMutationSignal){var d=++u.mutationIndex,C=[u.observedPath],W=u.observedPath,M;K.length===0&&(M=W);for(var q=0;q<K.length;q++){var v=W.subPaths[K[q]];if(!v)break;C.push(v);W=v;q===K.length-1&&(M=v)}for(K=!1;C.length;)W=C.shift(),W.data={index:d,mutation:l,spliceMutationIndex:D},K||(K=W===M),K&&C.push.apply(C,_.Am(Object.values(W.subPaths)));Un(function(){u.setMutationSignal(d)})}};
Ej.prototype.notifySplices=function(u,K){var l=this,D=br(function(){return l.getWithPath(u)}),d=[].concat(_.Am(u),["splices"]);
Kx2(this,d,{pathComponents:d,value:{indexSplices:K}});if(D==null?0:D.length)K=this.mutationIndex,d=[].concat(_.Am(u),["length"]),Kx2(this,d,{pathComponents:d,value:D.length},K)};
var lgw=function(u,K,l,D,d,C){u.notifySplices(l,[{index:D,addedCount:d,removed:C,object:K,type:"splice"}])},Dra=function(u,K){u=u.observedPath;
for(var l=0;l<K.length;l++){var D=K[l],d=u.subPaths[D];d||(d={pathComponents:K.slice(0,l+1),subPaths:{}},u.subPaths[D]=d);u=d}},C8w=function(u,K,l){Dra(u,K);
if(!u.getMutationSignal){var D=_.y(_.On(u.mutationIndex,void 0,"HavCgf"));u.getMutationSignal=D.next().value;u.setMutationSignal=D.next().value}var d=u.getMutationSignal;return _.RZ(function(){d();return l(drw(u,K))},void 0,"BYaPo")};
Ej.prototype.getChangeRecordSignal=function(u,K){var l=this,D=this.mutationIndex,d;return C8w(this,u,function(C){if(C&&C.index>D){var W=C.mutation;D=C.index;d=void 0}C=br(function(){return l.getWithPath(u)});
if(W){var M=W.pathComponents[W.pathComponents.length-1],q=[].concat(_.Am(W.pathComponents));if(M==="splices"||M==="length")return{base:C,path:(K?[K].concat(_.Am(q)):q).join("."),value:W.value};var v=u.length>q.length?u:q,G;return{base:C!=null?C:W.fallbackWhenUndefined,path:(K?[K].concat(_.Am(v)):v).join("."),value:(G=br(function(){return l.getWithPath(v)}))!=null?G:W.fallbackWhenUndefined}}d||(d={base:C,
path:(K?[K].concat(_.Am(u)):u).join("."),value:C});return d})};
Ej.prototype.getSplicesSignal=function(u){var K=this.mutationIndex,l;return C8w(this,u,function(D){if(D&&D.index>K&&D.spliceMutationIndex!==K){var d=D.mutation;K=D.index;l=void 0}return d&&d.pathComponents[d.pathComponents.length-1]==="splices"?l=D=d.value:l})};
Ej.prototype.getPathMutationSignal=function(u){var K=this;Dra(this,u);if(!this.getMutationSignal){var l=_.y(_.On(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=l.next().value;this.setMutationSignal=l.next().value}var D=this.getMutationSignal,d=this.mutationIndex,C;return _.RZ(function(){D();var W=drw(K,u);if(W&&W.index>d&&W.mutation&&mgq(W.mutation.pathComponents,u)){var M=W.mutation;d=W.index}if(!C||d!==C.index){var q,v;W=(v=br(function(){return K.getWithPath(u)}))!=null?v:(q=M)==null?
void 0:q.fallbackWhenUndefined;
C={index:d,value:W}}return C},void 0,"Aumsyf")};
var drw=function(u,K){u=u.observedPath;K=_.y(K);for(var l=K.next();!l.done;l=K.next())u=u.subPaths[l.value];return u.data};
Ej.prototype.pop=function(u){var K=this,l=br(function(){return K.getWithPath(u)});
if(!(l instanceof Array))throw Error("zg");var D=l.length>0,d=l.pop();D&&lgw(this,l,u,l.length,0,[d]);return d};
Ej.prototype.push=function(u){var K=_.uY.apply(1,arguments),l=this,D=br(function(){return l.getWithPath(u)});
if(!(D instanceof Array))throw Error("Ag");var d=D.length,C=D.push.apply(D,_.Am(K));K.length&&lgw(this,D,u,d,K.length,[]);return C};
Ej.prototype.splice=function(u,K,l){var D=_.uY.apply(3,arguments),d=this,C=br(function(){return d.getWithPath(u)});
if(!(C instanceof Array))throw Error("Bg");K<0?K=C.length-Math.floor(-K):K&&(K=Math.floor(K));var W=C.splice.apply(C,[K,l].concat(_.Am(D)));(D.length||W.length)&&lgw(this,C,u,K,D.length,W);return W};
Ej.prototype.unshift=function(u){var K=_.uY.apply(1,arguments),l=this,D=br(function(){return l.getWithPath(u)});
if(!(D instanceof Array))throw Error("Cg");var d=D.unshift.apply(D,_.Am(K));K.length&&lgw(this,D,u,0,K.length,[]);return d};var IgA=!0,yYA=!1,JLZ=!1,sdR=!1,Cqq=!1,oFa=0;sdR=!1;oFa=0;IgA=!0;Cqq=yYA=JLZ=!1;var L7=function(u,K,l){this.model=u;this.unknownSignalResolver=K;this.options=l;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];K=_.y(yJb());u=K.next().value;K=K.next().value;this.owner=u;this.disposeImpl=K};
L7.prototype.dispose=function(){if(!this.isDisposed){for(var u=_.y(this.childSignalProxies),K=u.next();!K.done;K=u.next())K.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var WxH=function(u,K){u=_.H$(u.owner);try{K()}finally{_.H$(u)}};
L7.prototype.effect=function(u){WxH(this,function(){_.Ag(u)})};
var Hdk=function(u,K){u.options!=null||(u.options={});var l;(l=u.options).immutableProps!=null||(l.immutableProps=new Set);u.options.immutableProps.add(K)},Pqq=function(u,K){K=""+K;
M4a(u,K);var l,D;if((l=u.options)==null?0:(D=l.immutableProps)==null?0:D.has(K))return!0;var d;if((d=u.model.__signalCache)==null?0:d.has(K))l=u.model.__signalCache.get(K),Array.isArray(l)&&Hdk(u,K);var C,W,M;return(M=(C=u.options)==null?void 0:(W=C.immutableProps)==null?void 0:W.has(K))!=null?M:!1},qmm=function(u,K){var l;
u.unknownSignalResolver&&(l=u.unknownSignalResolver(K));var D,d;((D=u.options)==null?0:(d=D.immutableProps)==null?0:d.has(K))?l!=null||(l=new uF0(_.On(u.model[K],void 0,"bgwlkd"))):l!=null||(l=new Ej(_.On(u.model[K],void 0,"V1hou")));var C=u.model.hostElement;Object.defineProperty(u.model,K,{get:function(){Ugy(C,K);return l.getWithPath([])},
set:function(W){Nn(C,K);u.setWithPath([K],W)},
configurable:!0});return l},M4a=function(u,K){var l,D,d;
((l=u.model.__signalCache)==null||!l.has(K))&&((D=u.options)==null?0:(d=D.externalSignalProps)==null?0:d.has(K))&&u.model[K]},Kr=function(u,K){K=""+K;
var l=u.signalCache[K];if(l!==void 0)return l;l=!1;M4a(u,K);var D;if((D=u.model.__signalCache)==null?0:D.has(K))if(l=u.model.__signalCache.get(K),Array.isArray(l))l=!0,Hdk(u,K);else return u.signalCache[K]=u.model.__signalCache.get(K).signal,u.signalCache[K];var d,C;D=(C=(d=u.options)==null?void 0:d.reactivityMode)!=null?C:0;var W,M;if(!((W=u.options)==null?0:(M=W.reactiveProps)==null?0:M.has(K))&&!l&&D===1)throw Error("Dg`"+K);d=l?$rw(u,K):qmm(u,K);return u.signalCache[K]=d},$rw=function(u,K){var l=
Object.getOwnPropertyDescriptor(u.model.constructor.prototype,K),D=function(){return u.model[K]};
return new uF0(l&&l.get&&!l.set?D:[D,function(d){u.model[K]=d}])};
L7.prototype.getWithPath=function(u){var K=_.y(u);u=K.next().value;K=y5(K);Ugy(this.model.hostElement,""+u);return Kr(this,u).getWithPath(K)};
L7.prototype.setWithPath=function(u,K){if(u.length){Nn(this.model.hostElement,u.join("."));var l=_.y(u);u=l.next().value;l=y5(l);Kr(this,u).setWithPath(l,K)}};
L7.prototype.getPathMutationSignal=function(u){var K=_.y(u);u=K.next().value;K=y5(K);return Kr(this,u).getPathMutationSignal(K)};
L7.prototype.notifyPath=function(u,K){var l=_.y(u);u=l.next().value;l=y5(l);Kr(this,u).notifyPath(l,K)};
var nFa=function(u,K){if(K.type==="literal")return function(){return{rootWasDefined:!0,value:K.value}};
var l=Lg(K.path),D=_.y(l),d=D.next().value;D=y5(D);var C,W;if(K.type==="path"&&(l.length===1||((C=u.options)==null?0:(W=C.immutableProps)==null?0:W.has(d))))return function(){var t=u.getWithPath(l.slice(0,1)),x=X6q(t,l.slice(1));t=t!==void 0;Ib9()&&(t=Kr(u,l[0]).wasDefined);return{rootWasDefined:t,value:x}};
var M=Kr(u,d);if(K.type==="path"){var q=M.getPathMutationSignal(D);return function(){var t=Ib9()?M.wasDefined:XL(u.owner,function(){return M.getWithPath([])})!==void 0;
var x,O=(x=q())==null?void 0:x.value;return{rootWasDefined:t,value:O}}}if(K.type==="splices"){var v=M.getSplicesSignal(D);
return function(){var t=v();return{rootWasDefined:Ib9()?M.wasDefined:t!==void 0,value:t}}}var G=M.getChangeRecordSignal(D,""+d);
return function(){var t=G();return{rootWasDefined:Ib9()?M.wasDefined:t!==void 0,value:t}}},lbb=function(u,K,l){var D=l.map(function(M){return nFa(u,M)}),d=l.length===0,C=[],W=l.length!==1||l[0].type!=="path"?!1:!0;
u.effect(function(){for(var M=D.length,q=[],v=!!C.length,G=0;G<M;G++){var t=D[G](),x=t.rootWasDefined;t=t.value;d||(d=x);q[G]=t;W&&(q[G+M]=v?C[G]:q[G],C[G]=t)}d&&XL(u.owner,function(){return void K.apply(null,_.Am(q))})})},hnr=function(u,K,l,D,d){var C=Kr(u,K);
d!==void 0&&C.setWithPath([],d);lbb(u,function(){var W=_.uY.apply(0,arguments);Nn(u.model.hostElement,K,!0);C.setWithPath([],l.apply(null,_.Am(W)))},D)};
L7.prototype.arrayPush=function(u){var K=_.uY.apply(1,arguments),l=_.y(u),D=l.next().value;l=y5(l);D=Kr(this,D);return D.push.apply(D,[l].concat(_.Am(K)))};
L7.prototype.arraySplice=function(u,K,l){var D=_.uY.apply(3,arguments),d=_.y(u),C=d.next().value;d=y5(d);C=Kr(this,C);return C.splice.apply(C,[d,K,l].concat(_.Am(D)))};
L7.prototype.arrayUnshift=function(u){var K=_.uY.apply(1,arguments),l=_.y(u),D=l.next().value;l=y5(l);D=Kr(this,D);return D.unshift.apply(D,[l].concat(_.Am(K)))};
L7.prototype.notifySplices=function(u,K){var l=_.y(u);u=l.next().value;l=y5(l);Kr(this,u).notifySplices(l,K)};var qhb=/([^\s]+?)\(([\s\S]*)\)/,Wyn=/\.([^.]+)$/,nBR=/\\,/g,sry=/&comma;/g,oBq=/\\(.)/g,$dy=[],HG9={"*":"wildcard",splices:"splices"};var abb=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"),Shr=/[A-Z]/,rYN=["class","hidden","id","on-dom-change"],efH=new Set([].concat(_.Am(rYN),
["if","notify-dom-change","restamp"])),RfR=new Set([].concat(_.Am(rYN),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),UdR=new Set(["restamp"]);var RcH=new Set(["className","id"]);var jry=Symbol(),VpR=window;var mdZ=window;var D$q=0,LyH=0,lT=[],l9w=0,EBR=!1,KSH=document.createTextNode("");(new window.MutationObserver(uty)).observe(KSH,{characterData:!0});var df=new Map,Dp=0,vFw=function(u){this.mappedHandleId=u},CNL=function(u,K,l,D){this.mappedHandleId=u;
var d=this;this.mappedHandleId=u;this.callback=K;this.waitTime=l;this.schedulerPriority=D;this.handleId=_.YL.addJob(function(){d.callback();df.delete(d.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.c(CNL,vFw);CNL.prototype.cancel=function(){_.YL.cancelJob(this.handleId);df.delete(this.mappedHandleId)};
var I9y=function(u,K){this.mappedHandleId=u;var l=this;this.mappedHandleId=u;this.callback=K;this.handleId=d$b(function(){l.callback();df.delete(l.mappedHandleId)})};
_.c(I9y,vFw);I9y.prototype.cancel=function(){var u=this.handleId-LyH;u<0||lT.length<=u||(lT[u]=null);df.delete(this.mappedHandleId)};var WSR=function(){};
WSR.prototype.cancel=function(){this.jobHandle!==void 0&&(yLH(this.jobHandle),this.jobHandle=void 0)};
WSR.prototype.run=function(u,K,l){var D=this;this.cancel();this.callback=u;this.jobHandle=_.Cr(function(){u();D.callback=void 0},K,l)};
WSR.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var sHq=new WeakMap;var Giw=$1(function(u){for(var K=u,l=0;l<3;l++)K=Object.getPrototypeOf(K);delete K.prototype.connectedCallback;var D=function(){return u.apply(this,arguments)||this};
_.c(D,u);D.prototype._attachDom=function(d){if(!d)return null;var C=(0,_.zQ)(this.hostElement);C.attachShadow({mode:"open",shadyUpgradeFragment:d});C.shadowRoot.appendChild(d);return C.shadowRoot};
D.prototype._takeAttributes=function(){for(var d=this.hostElement.attributes,C=0;C<d.length;C++){var W=d[C],M=void 0,q=void 0;(q=(M=this).__attributeReaction)==null||q.call(M,W.name,null,W.value)}};
D.prototype._readyClients=function(){u.prototype._readyClients.call(this);this.root=this};
D.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);u.prototype.connectedCallback.call(this)};
_.MN.Object.defineProperties(D,{template:{configurable:!0,enumerable:!0,get:function(){return D.prototype._template}}});
return D}),t4w=$1(function(u){var K=function(){return u.apply(this,arguments)||this};
_.c(K,u);K.prototype.created=function(){if(this.__notifyEffects)for(var l=_.y(Object.values(this.__notifyEffects)),D=l.next();!D.done;D=l.next()){D=_.y(D.value);for(var d=D.next();!d.done;d=D.next())d.value.fn=$$y}if(this.__reflectEffects)for(l=_.y(Object.values(this.__reflectEffects)),D=l.next();!D.done;D=l.next())for(D=_.y(D.value),d=D.next();!d.done;d=D.next())d.value.fn=nlH};
K.prototype._addEventListenerToNode=function(l,D,d){l=y2(l);Yf(l,D,d)||u.prototype._addEventListenerToNode.call(this,l,D,d)};
K.prototype._removeEventListenerFromNode=function(l,D,d){l=y2(l);Ap(l,D,d)||u.prototype._removeEventListenerFromNode.call(this,l,D,d)};
K.prototype._propertiesChanged=function(l,D,d){if(this.__dataToNotify&&this.__notifyEffects)for(var C=_.y(Object.keys(this.__dataToNotify)),W=C.next();!W.done;W=C.next()){W=W.value;var M=q_y(W);this.__notifyEffects[M]||delete this.__dataToNotify[W]}else this.__dataToNotify=null;u.prototype._propertiesChanged.call(this,l,D,d)};
K.prototype.fire=function(l,D,d){D=D===void 0?{}:D;var C;return _.xs(y2((C=d==null?void 0:d.node)!=null?C:this),l,D,d)};
K.prototype._ensureAttribute=function(l,D){var d=y2(this);d.hasAttribute(l)||uT(d,D,l)};
K.prototype.isLightDescendant=function(l){var D=y2(this);return y2(D)!==l&&_.bi(D).contains(l)&&_.bi(D).getRootNode()===_.bi(l).getRootNode()};
return K});
_.wC.ready=function(){var u;((u=this.hostElement)!=null?u:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var K;((K=this.hostElement)!=null?K:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Ae._subscribeIronResize=function(u){var K;((K=u.hostElement)!=null?K:u).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Ae._unsubscribeIronResize=function(u){var K;((K=u.hostElement)!=null?K:u).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var Gey=[Array,Boolean,Date,Number,Object,String],ot=function(u,K,l,D){this.polySiInfo=u;this.polySiParams=K;this.polySiContext=l;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;D||this instanceof HTMLElement&&(D=this);if(!D)throw Error("Kg");this.allowedProps=K.allowedProps;this.hostElement=D;this.is=u.is;this.upgradeDisabled=!!K.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");u=new Set(K.reactiveSchemas.filter(function(d){return d.type!==
"observe"}).map(function(d){return d.propertyKey}));
this.signalProxy=new L7(this,void 0,{reactiveProps:u,reactivityMode:K.reactivityMode});this.__dataHasAccessor={};K=_.y(K.reactiveSchemas);for(u=K.next();!u.done;u=K.next())u=u.value,u.type==="signal"&&(this.__dataHasAccessor[u.propertyKey]=!0);this.upgradeDisabled||xrs(this)};
ot.prototype.getExtraMethodsToForward=function(){return[]};
var xrs=function(u){u.polySiContext.didRegister||(u.registered(),u.polySiContext.didRegister=!0);u.polySiContext.finalizedTemplate||(u.polySiContext.finalizedTemplate={},u.polySiParams.templateGetter&&(u.polySiContext.finalizedTemplate.processedTemplate=hfR(u.polySiParams.templateGetter,u.polySiParams.is)));Smw(u);var K=u.hostElement;K.loggingStatus!=null||(K.loggingStatus={});K.loggingStatus.isInitializing=!0;br(function(){return void u.created()});
K.loggingStatus.isInitializing=!1;u.isPolySiElementConnected&&bdm(u)},bdm=function(u){u.didCallReady||(br(function(){return void u.ready()}),u.didCallReady=!0);
u.isAttached=!0;u.attached()};
_.I=ot.prototype;_.I.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||bdm(this)};
_.I.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.I.attributeChangedCallback=function(u,K,l){if(this.upgradeDisabled)u==="disable-upgrade"&&l===null&&(this.upgradeDisabled=!1,xrs(this));else if(K!==l){var D=_.P_(u),d=this.polySiContext.typesForSignals[D];if(d&&(!this.reflecting||_.S("polysi_attribute_changed_serializing_killswitch"))){switch(d){case Object:try{var C=JSON.parse(l)}catch(M){C=l}break;case Array:try{C=JSON.parse(l)}catch(M){C=null}break;case Date:C=isNaN(l)?String(l):Number(l);C=new Date(C);break;case Boolean:C=l!==null;break;case Number:C=
Number(l);break;default:C=l}this[D]=C}D=_.y(this.polySiParams.behaviors);for(d=D.next();!d.done;d=D.next())C=void 0,(C=d.value.attributeChanged)==null||C.call(this,u,K,l);var W;(W=this.attributeChanged)==null||W.call(this,u,K,l)}};
_.I.attributeChangedCallbackWrapper=function(u,K,l){this.attributeChangedCallback(u,K,l)};
_.I.setPropertiesFromInitialAttributeValues=function(){for(var u=0;u<this.hostElement.attributes.length;u++){var K=this.hostElement.attributes[u];(K.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(K.name))&&this.attributeChangedCallback(K.name,null,K.value)}};
_.I.created=function(){this.provide=this.polySiParams.provide;var u;(u=this.initializeInjection)==null||u.call(this);u=_.y(this.polySiParams.reactiveSchemas);for(var K=u.next();!K.done;K=u.next())K=K.value,K.type==="signal"&&(this.mutablePropNames.add(K.propertyKey),Kr(this.signalProxy,K.propertyKey));vlq(this,this.polySiInfo,this.polySiParams.behaviors);u=_.y(this.polySiParams.reactiveSchemas);for(K=u.next();!K.done;K=u.next())K=K.value,K.type==="signal"&&K.value!==void 0&&(this.signalProxy.model[K.propertyKey]=
typeof K.value==="function"?K.value.call(this):K.value);if(this.polySiParams.signalProperties)for(u=_.y(this.polySiParams.signalProperties),K=u.next();!K.done;K=u.next()){K=K.value;var l=void 0;((l=this.__signalCache)==null?0:l.has(K))||(this.signalProxy.model[K]=void 0)}sdR||OdA(this);rLZ(this);u=_.y(this.polySiParams.behaviors);for(K=u.next();!K.done;K=u.next())l=void 0,(l=K.value.created)==null||l.call(this);var D;(D=this.polySiInfo.created)==null||D.call(this)};
_.I.registered=function(){var u=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var K=Object.getPrototypeOf(this);K.addReactiveSchema=function(M){u.polySiParams.reactiveSchemas.push(M)};
for(var l=_.y(this.polySiParams.behaviors),D=l.next();!D.done;D=l.next()){var d=void 0;(d=D.value.beforeRegister)==null||d.call(K)}var C;(C=this.polySiInfo.beforeRegister)==null||C.call(K);K.addReactiveSchema=x$o;l=_.y(this.polySiParams.behaviors);for(D=l.next();!D.done;D=l.next())d=void 0,(d=D.value.registered)==null||d.call(K);var W;(W=this.polySiInfo.registered)==null||W.call(K)};
_.I.ready=function(){var u;(u=this.beforeReady)==null||u.call(this);sdR&&OdA(this);var K;if(u=(K=this.polySiContext.finalizedTemplate)==null?void 0:K.processedTemplate){u=XjL(u.template,u.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:u.hasInsertionPoint,thisCtx:this});K=u.nodesById;u=u.root;var l=this.hostElement;var D=D===void 0?!1:D;l=(0,_.zQ)(l);if(!l.attachShadow)throw Error("Dd");if(!l.shadowRoot||D)l.attachShadow({mode:"open",shadyUpgradeFragment:u}),l.shadowRoot.appendChild(u);
this.root=l.shadowRoot;this.$=K}cYS(this);D=_.y(this.polySiParams.behaviors);for(K=D.next();!K.done;K=D.next())u=void 0,(u=K.value.ready)==null||u.call(this);var d;(d=this.polySiInfo.ready)==null||d.call(this)};
_.I.attached=function(){for(var u=_.y(this.polySiParams.behaviors),K=u.next();!K.done;K=u.next()){var l=void 0;(l=K.value.attached)==null||l.call(this)}var D;(D=this.polySiInfo.attached)==null||D.call(this)};
_.I.detached=function(){for(var u=_.y(this.polySiParams.behaviors),K=u.next();!K.done;K=u.next()){var l=void 0;(l=K.value.detached)==null||l.call(this)}var D;(D=this.polySiInfo.detached)==null||D.call(this)};
var Smw=function(u){for(var K=_.y(u.polySiParams.behaviors),l=K.next();!l.done;l=K.next())if(l=l.value,l.listeners)for(var D in l.listeners)AJH(u,u.hostElement,D,l.listeners[D]);if(u.polySiInfo.listeners)for(var d in u.polySiInfo.listeners)AJH(u,u.hostElement,d,u.polySiInfo.listeners[d])},AJH=function(u,K,l,D,d){u=Awr(u,D,d);
Yf(K,l,u)||K.addEventListener(l,u);return u},OdA=function(u){for(var K=_.y(u.polySiParams.reactiveSchemas),l=K.next();!l.done;l=K.next())l=l.value,l.type==="compute"||l.type==="computeWithMethod"?EWo(u.signalProxy,l,u):l.type==="redux"?Kyq(u.signalProxy,l,u.store):l.type==="signal"&&l.readOnly&&u8h(u.signalProxy,l)},cYS=function(u){for(var K=_.y(u.polySiParams.reactiveSchemas),l=K.next(),D={};!l.done;D={schema$jscomp$12:void 0},l=K.next())D.schema$jscomp$12=l.value,D.schema$jscomp$12.type==="notify"?
Ddb(u.signalProxy,D.schema$jscomp$12,u.hostElement):D.schema$jscomp$12.type==="observe"?ddb(u.signalProxy,D.schema$jscomp$12,u):D.schema$jscomp$12.type==="reflect"&&u.signalProxy.effect(function(C){return function(){var W=u.signalProxy.getWithPath([C.schema$jscomp$12.propertyKey]);
u.reflecting=!0;vBy(u.hostElement,C.schema$jscomp$12.propertyKey,W,!0);u.reflecting=!1}}(D));
if(u.reflectedAttributes)for(K=_.y(Object.entries(u.reflectedAttributes)),D=K.next(),l={};!D.done;l={key$jscomp$907:void 0,value$jscomp$8999:void 0},D=K.next()){var d=_.y(D.value);D=d.next().value;d=d.next().value;l.key$jscomp$907=D;l.value$jscomp$8999=d;u.signalProxy.effect(function(C){return function(){u.reflecting=!0;vBy(u.hostElement,C.key$jscomp$907,(0,C.value$jscomp$8999)(),!0);u.reflecting=!1}}(l))}};
_.I=ot.prototype;_.I._setPendingProperty=function(u,K){this.set(u,K);return!1};
_.I._enableProperties=function(){};
_.I._setPendingPropertyOrPath=function(u,K){this.notifyPath(u,K);return!1};
_.I._addPropertyEffect=function(){};
_.I._stampTemplate=function(){throw Error("Lg");};
_.I.fire=function(u,K,l){K=K===void 0?{}:K;l=l===void 0?{}:l;var D,d,C={bubbles:(D=l.bubbles)!=null?D:!0,cancelable:!!l.cancelable,composed:(d=l.composed)!=null?d:!0},W;return _.xs(S_o((W=l.node)!=null?W:this.hostElement),u,K,C)};
_.I.get=function(u,K){var l=Lg(u);return K?X6q(K,l):u==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(l)};
_.I.linkPaths=function(){};
_.I.listen=function(u,K,l){u=S_o(u);this.boundListeners!=null||(this.boundListeners=new WeakMap);var D=this.boundListeners.get(u);D||(D={},this.boundListeners.set(u,D));var d=K+l;D[d]||(D[d]=AJH(this,u,K,l))};
_.I.notifyPath=function(u,K){this.signalProxy.notifyPath(Lg(u),arguments.length===2?{value:K}:void 0)};
_.I.canNotifyPath=function(u){return this.mutablePropNames.has(u)&&!Pqq(this.signalProxy,u)};
_.I.notifySplices=function(u,K){this.signalProxy.notifySplices(Lg(u),K)};
_.I.pop=function(u){var K=this.signalProxy;u=Lg(u);var l=_.y(u);u=l.next().value;l=y5(l);return Kr(K,u).pop(l)};
_.I.push=function(u){var K=_.uY.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Lg(u)].concat(_.Am(K)))};
_.I.set=function(u,K,l){if(l)throw Error("Mg");u==="hidden"?this.hostElement.hidden=!!K:this.signalProxy.setWithPath(Lg(u),K)};
_.I.setProperties=function(u){u=_.y(Object.entries(u));for(var K=u.next();!K.done;K=u.next()){var l=_.y(K.value);K=l.next().value;l=l.next().value;this[K]=l}};
_.I.splice=function(u,K,l){var D=_.uY.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Lg(u),K,l].concat(_.Am(D)))};
_.I.unlinkPaths=function(){};
_.I.unlisten=function(u,K,l){u=S_o(u);if(this.boundListeners){var D=this.boundListeners.get(u);if(D){l=K+l;var d=D[l];d&&(Ap(u,K,d)||u.removeEventListener(K,d),delete D[l])}}};
_.I.unshift=function(u){var K=_.uY.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Lg(u)].concat(_.Am(K)))};
_.MN.Object.defineProperties(ot.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 PNr=[Array,Boolean,Date,Number,Object,String];var BAr=!1;var uf=function(){var u=HTMLElement.apply(this,arguments)||this;u.restamp=!1;u.notifyDomChange=!1;u.JSC$13398_didCallConnected=!1;u.JSC$13398_renderDebouncer=null;u.disableTemplateUpdateSignalImpl=Wb()?void 0:_.On(!1,void 0,"Ofhkwb");var K;u.getDisableTemplateUpdate=(K=u.disableTemplateUpdateSignalImpl)==null?void 0:K[0];var l;u.setDisableTemplateUpdate=(l=u.disableTemplateUpdateSignalImpl)==null?void 0:l[1];return u};
_.c(uf,HTMLElement);var ag0=function(u){u.conditionSignalImpl!=null||(u.conditionSignalImpl=new Ej(_.On(!1,void 0,"gE52Fb")));return u.conditionSignalImpl};
_.I=uf.prototype;_.I.showHideChildren=function(u){zcw(this,u,this.if)};
_.I.attributeChangedCallback=function(u,K,l){if(this.JSC$13398_didCallConnected)throw Error("Qg`"+u);u==="notify-dom-change"?this.notifyDomChange=l!==null:u==="restamp"&&(this.restamp=l!==null)};
_.I.debounceRender=function(){this.JSC$13398_renderDebouncer=_.ao(this.JSC$13398_renderDebouncer,mY,this.JSC$13398_renderImpl.bind(this));_.zV(this.JSC$13398_renderDebouncer)};
_.I.disconnectedCallback=function(){var u=(0,_.zQ)(this).parentNode;(!u||u.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in u&&!u.host)&&ecm(this)};
_.I.connectedCallback=function(){var u=this;this.JSC$13398_didCallConnected=!0;IgA?pcq():this.style.display="none";this.parentSignalProxy.effect(function(){ag0(u).getWithPath([]);u.debounceRender()})};
_.I.render=function(){_.fW()};
_.I.JSC$13398_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var u=this.if;if(u){a:{var K=(0,_.zQ)(this).parentNode;if(this.hasInstance()){var l=this.instance.children;if((l==null?0:l.length)&&(0,_.zQ)(this).previousSibling!==l[l.length-1])for(var D=0;D<l.length;D++)(0,_.zQ)(K).insertBefore(l[D],this)}else{if(!K){K=!1;break a}RcR(this,K)}K=!0}if(!K)return}else this.restamp&&ecm(this);zcw(this,!1,u);u&&UrB(this);yYA&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.I.hasInstance=function(){return!!this.instance};
var RcR=function(u,K){var l=u.parentSignalProxy;if(Wb()){var D=_.y(_.On(!0,void 0,"jPhFae"));var d=D.next().value;D=D.next().value;l=u.parentSignalProxy}else{var C;var W=new L7((C=fga(u))!=null?C:{},function(q){var v=Kr(u.parentSignalProxy,q).getChangeRecordSignal([]);q=_.On(void 0,void 0,"nE9rQb");var G=new Ej(q);W.effect(function(){if(u.getDisableTemplateUpdate&&!u.getDisableTemplateUpdate()){var t=v();G.notifyPath(Lg(t.path),{value:t.value})}});
return G});
u.parentSignalProxy.childSignalProxies.push(W);var M=l=W}l=XjL(u.templateInfo,u.templateInfo.nodeInfoList,l,{eventListenerHost:u.eventListenerHost,hasInsertionPoint:u.templateInfo.hasInsertionPoint,thisCtx:u.eventListenerHost,enabledSignal:Wb()?d:void 0,getModel:function(){return fga(u)}}).root;
u.instance={root:l,children:[],hidden:!1,signalProxy:M,getTemplateUpdatesEnabled:d,setTemplateUpdatesEnabled:D};M=_.y(l.childNodes);for(d=M.next();!d.done;d=M.next())u.instance.children.push(d.value);(0,_.zQ)(K).insertBefore(u.instance.root,u)},fga=function(u){if((u=u.parentSignalProxy.model)&&!u.hostElement){var K={},l;
for(l in u)u.hasOwnProperty(l)&&(K[l]=u[l]);return K}},ecm=function(u){if(u.instance){var K=u.instance.children;
if(K.length){var l=(0,_.zQ)(K[0]).parentNode;if(l){l=(0,_.zQ)(l);for(var D=0;D<K.length;D++)l.removeChild(K[D])}}Wb()?u.instance.setTemplateUpdatesEnabled(!1):u.instance.signalProxy.dispose();u.instance=void 0}},zcw=function(u,K,l){K=K||!l;
u.instance&&u.instance.hidden!==K&&(u.instance.hidden=K,jHH(K,u.instance.children))},UrB=function(u){if(Wb()){var K=u.instance;
K&&XL(u.parentSignalProxy.owner,function(){return!K.getTemplateUpdatesEnabled()})&&K.setTemplateUpdatesEnabled(!0)}else u.setDisableTemplateUpdate(!1)};
_.MN.Object.defineProperties(uf.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var u=this;return XL(this.parentSignalProxy.owner,function(){return ag0(u).getWithPath([])})},
set:function(u){u||(Wb()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));ag0(this).setWithPath([],!!u)}}});
_.MN.Object.defineProperties(uf,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",uf);var Qda=[],Ko=function(){var u=HTMLElement.apply(this,arguments)||this;u.as="item";u.indexAs="index";u.itemsIndexAs="itemsIndex";u.targetFramerate=20;u.notifyDomChange=!1;u.isDetached=!1;u.JSC$13405_renderDebouncer=null;u.instances=[];u.chunkingId=null;u.chunkCount=null;u.shouldMeasureChunk=!1;u.shouldContinueChunking=!1;u.renderStartTime=null;u.JSC$13405_didCallConnected=!1;return u};
_.c(Ko,HTMLElement);var P8B=function(u){u.itemSignalImpl!=null||(u.itemSignalImpl=new Ej(_.On(Qda,void 0,"YBrqgf")));return u.itemSignalImpl},JYw=function(u,K){Array.isArray(K)||(K=Qda);
P8B(u).setWithPath([],K)};
_.I=Ko.prototype;_.I.showHideChildren=function(u){for(var K=_.y(this.instances),l=K.next();!l.done;l=K.next())jHH(u,l.value.children)};
_.I.notifyPath=function(u,K){u=Lg(u);u[0]==="items"&&(u.length===1?JYw(this,K):P8B(this).setWithPath(u.slice(1),K))};
_.I.canNotifyPath=function(u){return u==="items"};
_.I.attributeChangedCallback=function(u,K,l){if(this.JSC$13405_didCallConnected)throw Error("Rg`"+u);u==="as"?this.as=l:u==="index-as"?this.indexAs=l:u==="items-index-as"?this.itemsIndexAs=l:u==="initial-count"?this.initialCount=Number(l):u==="notify-dom-change"?this.notifyDomChange=l!==null:u==="target-framerate"&&(this.targetFramerate=Number(l))};
_.I.disconnectedCallback=function(){this.isDetached=!0;for(var u=0;u<this.instances.length;u++)jdk(this,u);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.I.connectedCallback=function(){var u=this,K=P8B(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var d=K(),C=Lg(d.path);if(C[0]===void 0||C[0]==="splices"||C[0]==="length")u.debounceRender();else{var W=C[0];if(W=u.instances[typeof W==="string"?Math.floor(Number(W)):W])C=[u.as].concat(_.Am(C.slice(1))),W.signalProxy.notifyPath(C,d)}});
this.JSC$13405_didCallConnected=!0;IgA?pcq():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var l=(0,_.zQ)((0,_.zQ)(this).parentNode),D=0;D<this.instances.length;D++)l.insertBefore(this.instances[D].root,this);this.chunkingId&&this.render()}};
_.I.debounceRender=function(){this.JSC$13405_renderDebouncer=_.ao(this.JSC$13405_renderDebouncer,mY,this.JSC$13405_renderImpl.bind(this));_.zV(this.JSC$13405_renderDebouncer)};
_.I.render=function(){this.debounceRender();_.fW()};
_.I.JSC$13405_renderImpl=function(){var u=this;if(!this.parentSignalProxy.isDisposed){var K=this.items,l=B5a(this,K.length);pt0(this,K,l);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){u.chunkingId=null;if(u.shouldMeasureChunk){var D=performance.now()-u.renderStartTime;u.chunkCount=Math.round(Math.ceil(1E3/u.targetFramerate)/D*u.chunkCount)||1}u.shouldContinueChunking&&u.debounceRender()}));
yYA&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var B5a=function(u,K){var l=K,D=u.instances.length;if(u.initialCount){if(u.chunkCount){var d=Math.min(Math.max(K-D,0),u.chunkCount);l=Math.min(D+d,K)}else l=Math.min(K,u.initialCount),d=Math.max(l-D,0),u.chunkCount=d||1;u.shouldMeasureChunk=d===u.chunkCount;u.shouldContinueChunking=l<K;u.renderStartTime=performance.now()}return l},pt0=function(u,K,l){for(var D=0;D<l;D++){var d=u.instances[D],C=K[D];
d?(d.signalProxy.setWithPath([u.as],C),d.signalProxy.setWithPath([u.indexAs],D)):ids(u,C,D)}for(K=u.instances.length-1;K>=D;K--)l=u,d=K,jdk(l,d),_.y(l.instances.splice(d,1)).next().value.signalProxy.dispose()},jdk=function(u,K){u=u.instances[K];
K=(0,_.zQ)(u.root);for(var l=0;l<u.children.length;l++)K.appendChild(u.children[l])},ids=function(u,K,l){var D={};
K=Object.assign({},T5m(u),(D[u.as]=K,D[u.indexAs]=l,D[u.itemsIndexAs]=l,D));var d=new L7(K,function(W){if(W!==u.as&&W!==u.indexAs){if(W===u.itemsIndexAs)return Kr(d,u.indexAs);var M=Kr(u.parentSignalProxy,W).getChangeRecordSignal([]);W=_.On(void 0,void 0,"T21Pqc");var q=new Ej(W);d.effect(function(){var v=M();q.notifyPath(Lg(v.path),{value:v.value})});
return q}});
u.parentSignalProxy.childSignalProxies.push(d);D=XjL(u.templateInfo,u.templateInfo.nodeInfoList,d,{eventListenerHost:u.eventListenerHost,getModel:function(){var W={};return Object.assign({},T5m(u),(W[u.as]=d.model[u.as],W[u.indexAs]=d.model[u.indexAs],W[u.itemsIndexAs]=d.model[u.indexAs],W))},
hasInsertionPoint:u.templateInfo.hasInsertionPoint,thisCtx:u.eventListenerHost,methodInvocationRequirement:oFa,enabledSignal:u.stampingEnabled}).root;K={root:D,children:[],signalProxy:d};D=_.y(D.childNodes);for(var C=D.next();!C.done;C=D.next())K.children.push(C.value);D=(D=u.instances[l+1])?D.children[0]:u;(0,_.zQ)((0,_.zQ)(u).parentNode).insertBefore(K.root,D);u.instances[l]=K},T5m=function(u){if((u=u.parentSignalProxy.model)&&!u.hostElement){var K={},l;
for(l in u)u.hasOwnProperty(l)&&(K[l]=u[l]);return K}};
Ko.prototype.itemForElement=function(u){var K=this,l=this.instances.find(function(D){return D.children.includes(u)});
if(l)return XL(this.parentSignalProxy.owner,function(){return l.signalProxy.getWithPath([K.as])})};
Ko.prototype.indexForElement=function(u){var K=this.instances.findIndex(function(l){return l.children.includes(u)});
return K>=0?K:void 0};
_.MN.Object.defineProperties(Ko.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var u=this;return XL(this.parentSignalProxy.owner,function(){return P8B(u).getWithPath([])})},
set:function(u){JYw(this,u)}},
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}}});
_.MN.Object.defineProperties(Ko,{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",Ko);var wtw,FxA;_.lf=new _.G$("STATE_STORE_TOKEN");wtw=new _.G$("SELECT_TOKEN");FxA=new _.G$("DISPATCH_TOKEN");var glq={getSelectFn:function(){var u;return(u=_.GB().resolve(_.vv(wtw)))!=null?u:ihR},
getDispatchFn:function(){var u;return(u=_.GB().resolve(_.vv(FxA)))!=null?u:_.Hb().dispatch.bind(_.Hb())},
getAppStore:function(){return _.GB().resolve(_.lf)}},TAH,VPr=!1;var nr={traceAllComponents:_.S("web_tracing_all_components"),exportToCsi:_.S("web_tracing_export_to_csi"),exportBreadcrumbs:_.S("web_enable_tracing"),bufferSize:_.Sg("web_max_tracing_events"),enabledSpansArray:_.OP("web_tracing_enabled_spans")};var hoh=function(){};var ALR=void 0;var V4S=function(){};
V4S.prototype.hasAttribute=function(u){if(u==="dir")return!1;if(u==="disable-upgrade"){var K,l;return(l=(K=this.hostElement)==null?void 0:K.hasAttribute("disable-upgrade"))!=null?l:!1}throw Error("Sg`"+u);};
V4S.prototype.attributeChangedCallbackWrapper=function(u,K,l){if(u==="disable-upgrade"&&this.__isUpgradeDisabled&&l===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var D;((D=this.hostElement)!=null?D:this).isConnected&&this.connectedCallback()}else K===l||this.__isReflecting||this.attributeChangedCallback(u,K,l)};
V4S.prototype.getExtraMethodsToForward=function(){for(var u=this,K=[],l=_.y(gFA),D=l.next(),d={};!D.done;d={tagName$jscomp$54:void 0,name$jscomp$572:void 0},D=l.next())d.name$jscomp$572=D.value,D=void 0,d.name$jscomp$572==="_setPendingProperty"?(d.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),D=function(C){return function(W,M,q){gn(C.tagName$jscomp$54,W,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return u._setPendingProperty(W,M,q)}}(d)):D=function(C){return function(){return u[C.name$jscomp$572].apply(u,
_.Am(_.uY.apply(0,arguments)))}}(d),K.push([d.name$jscomp$572,
D]);return K};
for(var uFy=t4w(Giw((0,_.wV)(V4S))),drq=["disabled","disable-upgrade"],N5C=(0,_.wV)(function(){}),kiB=new Set(Object.getOwnPropertyNames(N5C.prototype)),oFo=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Am(kiB))),IgH=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),gFA=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),ZdN=new Set([].concat(_.Am(IgH),_.Am(gFA),_.Am(kiB))),YmC=_.y(ZdN),AYk=YmC.next();!AYk.done;AYk=YmC.next())aXR.add(AYk.value);var sdH={created:function(){rLZ(this);this.initializeInjection()}};var Giq=!1,xU=window.ShadyDOM,zcq=["appendChild","insertBefore","removeChild","replaceChild"],agy=[Node];xU&&agy.push(xU.Wrapper);var P8Z,JYh,pty={};var Op=new Set,S1="",id9="";var bT,cb=new Set;var YmR=new Set("context didCallReady is info params signalProxy".split(" ")),Xtr="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),mrn="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var Xt2=UW({entities:NC9}),mrm=new HI(Xt2);var hcw=function(){return _.ii.apply(this,arguments)||this};
_.c(hcw,_.ii);_.MN.Object.defineProperties(hcw.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return mrm}}});
_.g([_.TQ()],hcw);_.Dl=[mL.prototype,hcw.prototype];_.dh={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var u=this,K={};setTimeout(function(){var l;return _.xs((l=u.hostElement)!=null?l:u,"yt-live-chat-add-tooltip-target",K)},0);
this.handler_=K.handler},
detached:function(){if(this.handler_){var u;this.handler_.removeElementFromSupportingTooltips((u=this.hostElement)!=null?u:this)}this.handler_=null}}};_.Q2=new _.G$("ICON_MANAGER_TOKEN");var EFw=[48,20,18,16,15,13,12],Gar=new Map,Mxb=new Set,o3h=new Set,Hyr=new Set,s6y=new Set,W$n=new Set,$yb=new Promise(function(u){var K=!1,l=!1,D=!1,d=[],C=function(W){if("detail"in W)if(W=W.detail,W.name==="yt-icons")qlq(W),K=!0;else if(W.name==="yt-sys-icons")qlq(W),l=!0;else{var M;((M=W.name)==null?0:M.includes("yt-sys-icons"))&&W.size!==24&&(qlq(W,!0),d.push(W.size),d.length===EFw.length&&(D=!0))}K&&l&&D&&(window.removeEventListener("iron-iconset-added",C),u())};
window.addEventListener("iron-iconset-added",C)}),rcy=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"]]);_.Co={};_.Co.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.WI,computeHref_:function(u,K){K=K===void 0?!1:K;if(!u||u.commandExecutorCommand)return null;var l=cKq(u,K);return K||l!==null?l?_.S("enable_polymer_resin")?_.ES(l).toString():l:null:(_.hV(new _.wv("computeHref was null",this.is,u)),null)},
computeOptionalHref_:function(u){return this.computeHref_(u,!0)},
computeNofollow_:function(u){return u?nYR(u)?"nofollow":null:null},
computeIcon_:function(u){return u&&u.iconType?_.fr(u.iconType):""},
resolveCommand:function(u,K,l){K=K===void 0?{}:K;return _.Jl(u,this.hostElement,K,l===void 0?!1:l)}};var uUS,Iu;_.LxS={};uUS=null;
Iu={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_=W9o(this.viewroot));_.Cr(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var u=this;this.unobserve_();if(_.S("kevlar_vimio_use_shared_monitor"))Oyo(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 K=[];this.visibilityOptionVisible_&&K.push(this.visibilityObserver.observe(this.hostElement,function(){return u.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&K.push(this.visibilityObserver.observe(this.hostElement,function(){return u.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&K.push(this.visibilityObserver.observe(this.hostElement,function(){return u.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=K}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){txn(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 u=_.LS(this.parentNode,function(l){var D,d=(D=l.polymerController)!=null?D:l;return!!d.getVisibilityObserverForChild&&d.getVisibilityObserverForChild()},!0);
if(u){var K;this.localVisibilityObserver_=((K=u.polymerController)!=null?K:u).getVisibilityObserverForChild()}else uUS||(uUS=W9o()),this.localVisibilityObserver_=uUS;return this.localVisibilityObserver_},visibilityCallback:function(u){u?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.S("kevlar_use_vimio_behavior")||(Iu={});Iu&&!_.S("kevlar_use_vimio_behavior")&&(delete Iu.attached,delete Iu.detached);_.LxS.YtVisibilityObserverBehavior=[Iu];var K$m={};K$m.YtVisualElementBehavior=[_.LxS.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.S("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.S("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var u=this.getScreenLayer&&this.getScreenLayer(),K=this.getVisibilityLogger();K&&K.reportShown(this,void 0,u)}},
onHidden:function(){if(_.S("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.S("kevlar_vimio_use_shared_monitor")){var u=this.getScreenLayer&&this.getScreenLayer(),K=this.getVisibilityLogger();K&&K.reportHidden(this,void 0,u)}},
getVisibilityLogger:function(){return _.S("kevlar_use_vimio_behavior")?_.Bb():null},
shouldSkipLogging:function(){if(_.E3("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var u=this.getParentRenderer&&this.getParentRenderer();if(!u)return!1;var K,l=(K=u.polymerController)!=null?K:u;if(!l.data)return!1;u=this.data.trackingParams;u=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:u;var D;K=(D=l.data)==null?void 0:D.trackingParams;var d,C;K=((d=l.data)==null?0:d.loggingDirectives)?(C=l.data)==null?void 0:C.loggingDirectives.trackingParams:K;return u&&K&&u===
K}}];var zKh=new Map,NE;var fKw=function(u){this.layer=u},QU=function(u){return u.layer!==void 0?u.layer:u.parent?QU(u.parent):u.layer=0};var PaL;_.Y={};PaL=0;_.Y.YtRendererBehavior=[_.Co.YtComponentBehavior,K$m.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_:_.S("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var u,K;(K=(u=this.monitorScrollElement)!=null?u:this.hostElement)==null||K.removeEventListener("scroll",_.Ql(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();cco(this.hostElement);MPB(_.gw(),this.hostElement);qK.delete(this.hostElement)},
registerRenderer:function(u){var K;((K=u.polymerController)!=null?K:u).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(u),this.markDirty())},
unregisterRenderer_:function(u){this.useVimio_||(this.childCache_.delete(u),this.markDirty())},
attached:function(){var u=this,K=this.getParentRenderer();if(K){var l,D,d;(D=(l=(d=K.polymerController)!=null?d:K).registerRenderer)==null||D.call(l,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var C,W;(W=(C=this.monitorScrollElement)!=null?C:this.hostElement)==null||W.addEventListener("scroll",_.Ql(this,this.onScroll))}_.YL.addJob(function(){eKq(u.hostElement)},8);
l=new fKw(this.screenLayer||void 0);(K=qK.get(K))&&K.layerNode&&(l.parent=K.layerNode);K={};nXR(this.hostElement,(K.isRenderer=!0,K.layerNode=l,K[Qsb]=this.data,K))},
getParentRenderer:function(){for(var u=this.hostElement.parentNode,K,l;u&&((K=qK.get(u))==null||!K.isRenderer)&&!((l=u.polymerController)!=null?l:u).isRenderer_;)u=u.parentNode||u.host;return u},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.S("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.L0("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.S("debug_web_ve_data")&&this.data.trackingParams){var u="";try{u=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(l){_.Xm(l)}if(u){var K=FfR(u,1);K!==void 0&&(this.hostElement.dataset.veIndex=String(K));u=FfR(u,2);
u!==void 0&&(this.hostElement.dataset.ve=String(u))}}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,_.S("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.gf(this.data.loggingDirectives.trackingParams)),this.visualElement=_.pr(_.iT(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var u=this.data.targetId;_.$$0(_.gw(),u,this.hostElement)}else MPB(_.gw(),this.hostElement)},
onScroll:function(){var u=Date.now();u-this.lastHandledScroll_<50||(this.lastHandledScroll_=u,this.markDirty())},
markDirty:function(){_.S("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():Jch(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var u=this.getParentRenderer();if(u&&(u=qK.get(u))&&u.layerNode)return QU(u.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Am(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var u=0;u<this.data.impressionEndpoints.length;u++)this.sendImpression(this.data.impressionEndpoints[u]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(u){u.clickTrackingParams&&delete u.clickTrackingParams;var K,l;(u==null?0:(K=u.commandMetadata)==null?0:(l=K.webCommandMetadata)==null?0:l.sendPost)?_.c0(this.hostElement,[u,{impression:!0}]):_.ay(this.hostElement,[u],this.hostElement)},
logExplicitClick:function(u){var K=_.AC(this.getScreenLayer());if(K){var l,D=(l=u.polymerController)!=null?l:u;u=D.visualElement;D=D.trackingParams||D.clickTrackingParams;!u&&D&&(u=_.gf(D));u&&_.Wi(K,u)}}}];var l52={},yG=function(){return _.ii.apply(this,arguments)||this};
_.c(yG,_.ii);yG.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
yG.prototype.onPdgItemBehaviorClick=yG.prototype.onPdgItemBehaviorClick;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],yG.prototype,"data",void 0);_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],yG.prototype,"onPdgItemBehaviorClick",null);_.g([_.TQ()],yG);l52.YtPdgLiveChatItemBehavior=[yG.prototype,_.Y.YtRendererBehavior];var DyR;var dyS;_.s$={};_.s$.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var ou=function(){var u=$r.apply(this,arguments)||this;u.switchTemplateAtRegistration=!1;return u};
_.c(ou,$r);ou.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||iyw(this),_.HhZ(this,"doRender"),this.doRender())};
ou.prototype.debounceRender=function(){this.templatingFn&&_.It(this,"doRender",this.doRender)};
ou.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.Xm(Error("bh"))};
ou.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.g([l0q()],ou);var Ca2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,W2={},Vxh=(W2[1]={filterString:null,isUnwrappable:null,unwrap:null},W2[2]={filterString:function(u,K,l){return Rw(l)},
isUnwrappable:function(u){return u instanceof dm},
unwrap:function(u){return IS(u)}},W2[3]={filterString:function(u,K,l){return Ca2.test(l)?l:hX.toString()},
isUnwrappable:function(u){return Zk(u)},
unwrap:function(u){return _.Yu(u)}},W2[4]={filterString:function(){return hX.toString()},
isUnwrappable:function(u){return u instanceof wb},
unwrap:function(u){return _.VS(u).toString()}},W2[5]={filterString:function(u,K,l){return l},
isUnwrappable:function(u){return typeof u==="string"},
unwrap:function(u){return u.toString()}},W2[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(u){return u instanceof _.WZ},
unwrap:function(u){return kgh(u)}},W2[8]={filterString:function(u,K,l){l=String(l).toLowerCase();
return Y5o(u,K,l)?l:"zClosurez"},
isUnwrappable:null,unwrap:null},W2[10]={filterString:null,isUnwrappable:null,unwrap:null},W2);qP[LI["default"]]=NyH;var kaH=[];var INb=YlZ("A"),yNr=YlZ("BUTTON"),NI=YlZ("DIV"),sUb=YlZ("LABEL");(function(){var u=WV;WV=function(K){u==null||u(K);Al(function(){for(var l=0;l<K.length;l++)Zyb(K[l])})}})();var I50=function(){var u=_.ii.apply(this,arguments)||this;u.hasUnmounted=!1;return u};
_.c(I50,_.ii);_.I=I50.prototype;_.I.beforeRegister=function(){var u=this.doIdomRender;this.templatingFn?_.Xm(Error("ah")):(this.templatingFn=u,this.switchTemplateAtRegistration=!0,F$L(this))};
_.I.attached=function(){};
_.I.detached=function(){Zyb(this.hostElement)};
_.I.renderIdom=function(){throw Error("dh");};
_.I.doIdomRender=function(){var u=this;pJh(this.hostElement,function(){u.renderIdom()})};
_.g([_.TQ()],I50);var yc0=[ou.prototype,I50.prototype];var s60,o3w=function(){return s60!==void 0?s60:s60=document.createElement("template")};
document.head.appendChild(o3w().content);var W$m;var Hy2,Mxa=function(){return Hy2!==void 0?Hy2:Hy2=document.createElement("template")};
document.head.appendChild(Mxa().content);var qlH;var $ya=document.head,n30=$ya.appendChild,rc0;if(qlH===void 0){var v3R=document.createElement("template");_.z(v3R,"\x3c!--css-build:shady--\x3e");v3R.content.insertBefore(Mxa().content.cloneNode(!0),v3R.content.firstChild);qlH=v3R}rc0=qlH;n30.call($ya,rc0.content);var Ga2,txm=function(){return Ga2!==void 0?Ga2:Ga2=document.createElement("template")};
document.head.appendChild(txm().content);var xyC;var Slw=document.head,bya=Slw.appendChild,Oya;if(xyC===void 0){var cca=document.createElement("template");_.z(cca,"\x3c!--css-build:shady--\x3e");cca.content.insertBefore(txm().content.cloneNode(!0),cca.content.firstChild);xyC=cca}Oya=xyC;bya.call(Slw,Oya.content);var a5N=document.head,zKw=a5N.appendChild,eKw;if(W$m===void 0){var RKB=document.createElement("template");_.z(RKB,"\x3c!--css-build:shady--\x3e");RKB.content.insertBefore(o3w().content.cloneNode(!0),RKB.content.firstChild);W$m=RKB}eKw=W$m;zKw.call(a5N,eKw.content);var Uyw,f5k=function(){return Uyw!==void 0?Uyw:Uyw=document.createElement("template")};
document.head.appendChild(f5k().content);var Q6a;_.H1=new _.G$("DARK_THEME_TOKEN");var ifR=new _.r3("accessibilityProperties");var plw=new _.r3("layoutProperties");var TgH=new _.r3("imageType");var Pak={};if("ytAttributedStringLinkHoverColor"in Pak)throw Error("gh`ytAttributedStringLinkHoverColor");(function(u,K){Pak[u]="value"in K&&"unit"in K?E39(u,K):function(l){try{return K(l)}catch(D){throw Error("eh`"+u+"`"+D.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var Jcw=function(u){var K=this;this.holdTime=u===void 0?500:u;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(l){var D=new CustomEvent("LONG_PRESS"),d;(d=l.changedTouches[0].target)==null||d.dispatchEvent(D)};
this.ontouchstart=function(l){K.longPressTimeout=_.Xf(_.YL,function(){K.onlongpress(l);K.longPressOccurred=!0},K.holdTime)};
this.ontouchmove=function(){_.YL.cancelJob(K.longPressTimeout);K.longPressTimeout=NaN;K.longPressOccurred=!1;K.moveOccurred=!0};
this.ontouchend=function(l){if(K.longPressTimeout&&!K.longPressOccurred&&!K.moveOccurred){var D;(D=l.changedTouches[0].target)==null||D.dispatchEvent(new Event("click"))}_.YL.cancelJob(K.longPressTimeout);K.longPressTimeout=NaN;K.longPressOccurred=!1;K.moveOccurred=!1}};var tmq=function(u,K){Jcw.call(this,K);var l=this;this.callback=u;this.onlongpress=function(D){var d;(d=l.callback)==null||d.call(l,D)}};
_.c(tmq,Jcw);var xVH=function(u,K){var l=Object.assign({},K);u=_.y(new Map([["ontouchstart",u.ontouchstart],["ontouchend",u.ontouchend],["ontouchmove",u.ontouchmove]]));for(var D=u.next(),d={};!D.done;d={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},D=u.next()){var C=_.y(D.value);D=C.next().value;C=C.next().value;d.eventName$jscomp$101=D;d.eventHandler$jscomp$1=C;K[d.eventName$jscomp$101]=function(W){return function(M){var q;(q=l[W.eventName$jscomp$101])==null||q.call(l,M);(0,W.eventHandler$jscomp$1)(M)}}(d)}};_.t9=new _.G$("COMMAND_HANDLER_TOKEN");var uWq=new _.r3("parallelCommand");var DVw=new _.r3("performOnceCommand");var lRR=new _.r3("serialCommand");var dVb=void 0;var j6k=function(){this.data=[];this.consumer=null};
j6k.prototype.push=function(u){this.consumer?this.consumer(u):this.data.push(u)};var Gk={};_.On(Gk,void 0,"sgPmTd");_.On(null,void 0,"jypsq");_.On(null,void 0,"mWiOof");var gay=new j6k;var MmR=[GhS,trC,xw0,b90,SZB,vyw,O9m,cHm];var jGo=new _.r3("bracketTextDecorator");var oT=new _.r3("highlightTextDecorator");_.qI=new _.G$("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var UVR=function(){},ByR;
(ByR=window.requestIdleCallback)==null||ByR.bind(window);var QGo={calledOnce:!1,state:"visible"},fRy={calledOnce:!1,state:"hidden"};var pHN=new _.G$("ICON_WIZ_COMPONENT_TOKEN");_.VB=_.rf(function(u){var K=u.icon;var l=u.active;var D=u.className;var d=u.style;var C=u.dataSelected;var W=u.dataDisabled;var M=u.role;var q=u.animateIcon;var v=u.themeOverride;var G=u.ariaHidden;var t=u.ariaExpanded;var x=u.ariaLabel;var O=u.tabindex;var a=u.id;var f=u.size;var B=u.iconFilter;return _.n(_.r,{cond:K,then:function(){var p=_.GB().resolve(pHN);return _.n(p,{icon:K,dataSelected:C,dataDisabled:W,animateIcon:q,themeOverride:v,ariaExpanded:t,tabindex:O,id:a,active:l,size:f,role:M,className:D,
ariaHidden:G,ariaLabel:x,style:function(){return d!=null&&d()||f==null||!f()?d==null?void 0:d():"width: "+(f==null?void 0:f())+"px;height: "+((f==null?void 0:f())+"px;")},
iconFilter:B})}})},"b");
_.VB.idomCompat=!0;var Kcq=window.devicePixelRatio||1;var Cxq=new Map([["yt_outline_bag_black_24","bag"]]);var H2=function(u){var K=this;this.margin=.1;this.whenInViewportWithMargin=u;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){K.requestScan()});
window.addEventListener("touchend",function(){K.requestScan()});
window.addEventListener("updateui",function(){K.requestScan()});
var l=new _.MC((0,_.wB)(this.requestScan,this),100);window.addEventListener("scroll",function(){l.fire()},!0);
window.addEventListener("resize",(0,_.wB)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){K.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.wB)(this.requestScan,this))};
H2.prototype.observe=function(u){this.observationTargets.includes(u)||this.observationTargets.push(u)};
H2.prototype.unobserve=function(u){this.observationTargets=this.observationTargets.filter(function(K){return K!==u})};
H2.prototype.requestScan=function(){var u=this;this.scanRequested||(Al(function(){iyS(u)}),this.scanRequested=!0)};
var iyS=function(u){var K=(1+u.margin)*(document.documentElement.clientHeight||window.innerHeight);u.observationTargets=u.observationTargets.filter(function(l){var D=l.getBoundingClientRect();(D=K>D.top&&!!D.height)&&u.whenInViewportWithMargin(l);return!D&&l.parentNode});
u.scanRequested=!1};
H2.prototype.disconnect=function(){this.observationTargets=[]};var TyB,F$k;TyB=_.y(_.On(Wcq(),void 0,"O3X2wd"));_.wHC=TyB.next().value;F$k=TyB.next().value;window.addEventListener("resize",function(){F$k(Wcq())});var Vxw={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},g32=void 0,NyA=window.innerWidth,kaR=window.innerHeight;window.addEventListener("resize",function(){g32=void 0});var Zya;if("IntersectionObserver"in window)Zya=qDb();else{if(g32===void 0){var YlB;YlB="matchMedia"in window?window.matchMedia(Vxw.landscape+","+Vxw.portrait).matches:void 0;g32=YlB!==void 0?YlB:NyA>=930&&kaR>=550||NyA>=550&&kaR>=930}Zya=g32?{observe:function(u){Al(function(){var K;(K=u.onViewportEntered)==null||K.call(u)})},
unobserve:function(){}}:new H2(function(u){Al(function(){var K;
(K=u.onViewportEntered)==null||K.call(u)})})}var HLZ=Zya;var Aca=_.rf(function(u){var K=!1,l=_.o9("img",function(D){_.No(function(){K=!0;D.onload=null})});
_.gp(function(){var D,d=(D=u.data)==null?void 0:D.call(u),C,W=(C=u.getSrc)==null?void 0:C.call(u).cb,M;D=(M=u.config)==null?void 0:M.call(u);if(M=l.value)if(C=function(v,G){if(!K)return W?W(v,G):v},rtr(M,D),_.S("web_image_dont_reload_same_src")&&nkq(M,d,C))_.S("web_image_dont_reload_same_src_simulate_load")&&M.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var q;$5q(M,d||null,C,D,(q=u.lazy)==null?void 0:q.call(u))}},"v0I2p");
return _.n("img",{el:l})},"c");
Aca.idomCompat=!0;_.n4=_.rf(function(u){var K=function(){var l,D=u.data(),d,C,W,M,q,v,G,t,x,O,a,f,B,p,V,m,Z,A,h,C9,Wo,$y,co,UZ,tH,gq,Bo,uk,ca;var Ha={contentMode:(d=u.contentMode)==null?void 0:d.call(u),loadedClass:(C=u.loadedClass)==null?void 0:C.call(u),isPreloaded:(W=u.isPreloaded)==null?void 0:W.call(u),notifyOnLoaded:(M=u.notifyOnLoaded)==null?void 0:M.call(u),notifyOnUnloaded:(q=u.notifyOnUnloaded)==null?void 0:q.call(u),preferredThumbnail:(v=u.preferredThumbnail)==null?void 0:v.call(u),preserveHeight:(G=u.preserveHeight)==
null?void 0:G.call(u),preserveWidth:(t=u.preserveWidth)==null?void 0:t.call(u),objectPosition:(x=u.objectPosition)==null?void 0:x.call(u),targetWidth:(O=u.targetWidth)==null?void 0:O.call(u),targetHeight:(a=u.targetHeight)==null?void 0:a.call(u),shouldShowPlaceholder:(f=u.shouldShowPlaceholder)==null?void 0:f.call(u),useWidth:(B=u.useWidth)==null?void 0:B.call(u),isToggled:(p=u.isToggled)==null?void 0:p.call(u),alt:(V=u.alt)==null?void 0:V.call(u),className:(m=u.className)==null?void 0:m.call(u),
onerror:u.onerror,onload:u.onload,style$:((Z=u.style$)==null?void 0:Z.call(u))||((A=u.style)==null?void 0:A.call(u)),color:(h=u.color)==null?void 0:h.call(u),width:(C9=u.width)==null?void 0:C9.call(u),height:(Wo=u.height)==null?void 0:Wo.call(u),"aria-hidden$":(uk=($y=u["aria-hidden$"])==null?void 0:$y.call(u))!=null?uk:(co=u.ariaHidden)==null?void 0:co.call(u),draggable:(UZ=u.draggable)==null?void 0:UZ.call(u),"data-disabled$":(ca=(tH=u["data-disabled$"])==null?void 0:tH.call(u))!=null?ca:(gq=u.dataDisabled)==
null?void 0:gq.call(u),size:(Bo=u.size)==null?void 0:Bo.call(u)};return teo(D,Ha,(l=u.hideOn404)==null?void 0:l.call(u))};
return _.n(_.VI,null,_.n(_.ic,{when:function(){var l;return((l=K())==null?void 0:l.type)==="image"}},function(){return _.n(Aca,{data:function(){return K().image},
getSrc:{cb:function(l,D){var d=K().image.sources,C=K().config.isPreloaded,W=K().config.useWidth,M=K().config.targetWidth,q=K().config.targetHeight,v=K().config.preferredThumbnail;return _.ln9(D,d,C,W,M,q,v)||""}},
config:function(){var l=K().config,D;for(D in l)l[D]===void 0&&delete l[D];return l},
lazy:u.renderLazy})}),_.n(_.ic,{when:function(){var l;
return((l=K())==null?void 0:l.type)==="icon"}},function(){return _.n(_.VB,{icon:function(){return K().iconName},
role:function(){return K().config.role},
className:function(){return K().config.className},
style:function(){return K().config.style$+";width: "+(K().config.width+"px;height: ")+(K().config.height+"px;color: ")+(K().config.color+";")},
ariaLabel:function(){return K().config["aria-label$"]},
ariaHidden:function(){return K().config["aria-hidden$"]},
dataDisabled:function(){return K().config["data-disabled$"]},
active:function(){return K().config.isToggled},
size:function(){return K().config.size}})}))},"d");
_.n4.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var XHB=function(u){return function(K){return _.n(uRq,null,function(){var l=K.data(),D=_.Z7(K.config);return _.n(H4,null,function(){return void u(l,D)})})}}(cto),bLb=_.rf(function(u){var K=function(D){var d,C=_.v1(function(x){d=kT(function(){for(var O=_.y(G()),a=O.next();!a.done;a=O.next()){a=anw(a.value);
a=typeof a==="string"?document.createTextNode(a):a;if(!(a instanceof Node)){O=new _.wv("Part is not a node",a,typeof a);_.Xm(O);break}x.appendChild(a)}})}),W=GH(function(){return FZH(D())},{isEqual:SDb}),M=_.qE(u.config),q=function(){var x,O=W();
return!((x=M())==null||!x.ariaLabel)||!(O.commandRuns&&O.commandRuns.length!==0||O.paragraphStyleRuns&&O.paragraphStyleRuns.length!==0)},v=GH(M,{isEqual:eCr}),G=function(){var x=wlq(W(),v());
gmy(x,v());return W().content?XlZ(W().content,x).parts:[]},t=!0;
_.gp(function(){W();v();if(t)t=!1;else{var x=G();Promise.resolve().then(function(){var O=C.value;if(O){O.innerText="";var a;(a=d)==null||a();d=_.gi(O,function(){return _.n(zCZ,{parts:x})})}})}},"YlhjWd");
return _.n("span",{el:C,class:function(){return W()&&aRb(W(),M())},
dir:function(){var x;return((x=M())==null?0:x.userInput)?"auto":void 0},
"aria-label":function(){var x;return q()?(x=M())==null?void 0:x.ariaLabel:void 0},
role:function(){return q()?"text":void 0}})},l;
return((l=u.config)==null?0:l.renderedFromFormattedString)?K(u.text):_.n(_.r,{cond:u.text,then:K})},"e");
bLb.idomCompat=!0;_.qC=_.rf(function(u){var K=_.qE(u.text),l=RCr(u);u.renderedFromFormattedString!==void 0&&(l.renderedFromFormattedString=!0);return _.S("attr_string_reactive")?_.n(bLb,{text:K,config:l}):_.n(_.r,{cond:function(){var D;return K()&&((D=FZH(K()))==null?void 0:D.content)},
then:function(){return _.n(XHB,{data:u.text,config:l})},
debugInstance:"Apcuac"})},"f");
_.qC.idomCompat=!0;var fnn=function(u,K,l){K=K===void 0?"unknown":K;l=l===void 0?{}:l;_.wv.call(this,u+" ("+K+")",Object.assign({},{name:"YtWcwError",tagName:K},l));Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(fnn,_.wv);_.pLn=new WeakMap;_.BJ9=!1;var jWb,iLL,Jtn;_.M6=Symbol("ih");_.xo=Symbol("jh");jWb=Symbol("kh");iLL=new Set(Object.getOwnPropertyNames(Element.prototype));Jtn=Symbol("lh");var myw=_.rf(function(u){return _.n("yt-attributed-string",{"aria-label":u.ariaLabel,hidden:u.hidden,id:u.id,class:u.className,"force-default-style":u.forceDefaultStyle},_.n(_.qC,{text:u.data,ariaLabel:u.ariaLabel,ellipsisTruncate:u.ellipsisTruncate,isOverlay:u.isOverlay,linkInheritColor:u.linkInheritColor,noPreWrap:u.noPreWrap,noWrap:u.noWrap,userInput:u.userInput,noEndpoints:u.noEndpoints,headerRuns:u.headerRuns}))},"g");
_.S("web_wiz_attributed_string")&&_.SX(myw,"yt-attributed-string",{props:{ariaHidden:_.M6,ariaLabel:_.M6,className:_.M6,ellipsisTruncate:_.M6,isOverlay:_.M6,linkInheritColor:_.M6,noEndpoints:_.M6,noStyleRuns:_.M6,noLinkColor:_.M6,noPreWrap:_.M6,noWrap:_.M6,skipOnClick:_.M6,userInput:_.M6,headerRuns:_.M6,id:_.M6,data:_.M6,hidden:_.M6,forceDefaultStyle:_.M6,text:_.xo,stopPropagation:_.xo,disableUpgrade:_.xo,disable:_.xo,slot:_.xo}});var q6=function(){return _.Q.apply(this,arguments)||this};
_.c(q6,_.Q);q6.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},cto(this.data,this.config))};
_.g([_.e(yc0),_.N("design:type",Object)],q6.prototype,"ytIdomTemplatingBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],q6.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],q6.prototype,"ariaLabel",void 0);_.g([_.U(),_.N("design:type",Boolean)],q6.prototype,"disable",void 0);_.g([_.U(),_.N("design:type",Boolean)],q6.prototype,"ellipsisTruncate",void 0);_.g([_.U(),_.N("design:type",Boolean)],q6.prototype,"isOverlay",void 0);
_.g([_.U(),_.N("design:type",Boolean)],q6.prototype,"linkInheritColor",void 0);_.g([_.U(),_.N("design:type",Boolean)],q6.prototype,"noPreWrap",void 0);_.g([_.U(),_.N("design:type",Boolean)],q6.prototype,"noWrap",void 0);_.g([_.U(),_.N("design:type",Boolean)],q6.prototype,"userInput",void 0);_.g([_.U(),_.N("design:type",Boolean)],q6.prototype,"noEndpoints",void 0);_.g([_.U(),_.N("design:type",Array)],q6.prototype,"headerRuns",void 0);
_.g([_.E9({is:"yt-attributed-string",disableElementRegistration:!0})],q6);
_.S("web_wiz_attributed_string")||_.F(q6,"yt-attributed-string",function(){if(Q6a===void 0){var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
u.content.insertBefore(f5k().content.cloneNode(!0),u.content.firstChild);Q6a=u}u=Q6a;return u},{mode:2});var hKN,E3s,kyr;hKN=function(){this.firstThumbnailLoaded=!1};
_.L$0=function(){E3s||(E3s=new hKN);return E3s};
kyr=function(u){var K=_.L$0();K.firstThumbnailLoaded||(K.firstThumbnailLoaded=!0,_.As("ftl",u))};
hKN.prototype.reset=function(){this.firstThumbnailLoaded=!1};var wLr=0,NJH=new WeakMap,VeZ=0,c1=new Set;var uWN,KZB=function(){return uWN!==void 0?uWN:uWN=document.createElement("template")};
document.head.appendChild(KZB().content);var lRC;var XLb,hCL,$K;_.eX=_.lL.caches;$K=function(){};
$K.prototype.open=function(u){return _.eX.open(DVS(u))};
$K.prototype.has=function(u){return _.eX.has(DVS(u))};
$K.prototype.delete=function(u){return _.eX.delete(DVS(u))};
$K.prototype.match=function(u,K){var l=this,D,d,C,W,M,q;return _.H(function(v){switch(v.nextAddress){case 1:return v.yield(l.keys(),2);case 2:D=v.yieldResult,d=_.y(D),C=d.next();case 3:if(C.done){v.jumpTo(5);break}W=C.value;return v.yield(l.open(W),6);case 6:return M=v.yieldResult,v.yield(M.match(u,K),7);case 7:if(q=v.yieldResult)return v.return(q);C=d.next();v.jumpTo(3);break;case 5:return v.return()}})};
var Ek9=function(){};
_.c(Ek9,$K);var DVS=function(u){if(u.includes(":"))throw Error("oh`"+u);return u+":"+_.iZ("CacheStorage get")};
Ek9.prototype.keys=function(){var u,K,l,D,d,C,W,M,q;return _.H(function(v){if(v.nextAddress==1)return u=[],K=_.iZ("CacheStorage keys"),v.yield(_.eX.keys(),2);l=v.yieldResult;D=_.y(l);for(d=D.next();!d.done;d=D.next())C=d.value,W=_.Atq(C),M=W.originalName,q=W.datasyncId,q===K&&u.push(M);return v.return(u)})};var no=function(){var u=_.Q.apply(this,arguments)||this;u.objectURL=null;u.loadTime=Infinity;return u};
_.c(no,_.Q);_.I=no.prototype;_.I.renderIdom=function(){YDo(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();this.config&&vkZ(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.I.objectFitToContentMode=function(u){switch(u){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.I.logThumbnailFailureVe=function(){var u=_.Yo(197497);_.RD(_.iT(),u);var K=_.AC();K&&u&&K&&_.If(K,[u])};
_.I.loadImageFromCacheIfExists=function(u){var K=this,l=u.target;(l==null?0:l.src)&&ujL(l.src).then(function(D){K.objectURL=_.LM(D).toString();K.setSrc(l,K.objectURL)}).catch(function(){})};
_.I.onError=function(u){var K=this;if(_.S("web_use_cache_for_image_fallback")){var l=u.target;l&&ujL(l.src).then(function(D){K.objectURL=_.LM(D).toString();K.setSrc(l,K.objectURL)}).catch(function(){_.S("kevlar_woffle_log_thumbnail_failure_ve")&&K.logThumbnailFailureVe();
_.S("kevlar_woffle_fallback_image")&&K.setSrc(l,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.I.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.I.setConfig=function(){var u=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(K){u.loadImageFromCacheIfExists(K);u.revokeObjectURL();ZLq(u.hostElement)},
onerror:function(K){u.onError(K)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.S("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.I.setSrc=function(u,K){K&&(u.src=K)};
_.g([_.e(yc0),_.N("design:type",Object)],no.prototype,"ytIdomTemplatingBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],no.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],no.prototype,"alt",void 0);_.g([_.U(),_.N("design:type",Boolean)],no.prototype,"ftlEligible",void 0);_.g([_.U(),_.N("design:type",Number)],no.prototype,"height",void 0);_.g([_.U(),_.N("design:type",Boolean)],no.prototype,"notifyOnLoaded",void 0);
_.g([_.U(),_.N("design:type",Boolean)],no.prototype,"notifyOnUnloaded",void 0);_.g([_.U(),_.N("design:type",String)],no.prototype,"objectFit",void 0);_.g([_.U(),_.N("design:type",String)],no.prototype,"objectPosition",void 0);_.g([_.U(),_.N("design:type",String)],no.prototype,"preferredThumbnail",void 0);_.g([_.U(),_.N("design:type",Boolean)],no.prototype,"preserveHeight",void 0);_.g([_.U(),_.N("design:type",Boolean)],no.prototype,"preserveWidth",void 0);
_.g([_.U({value:!0}),_.N("design:type",Boolean)],no.prototype,"useWidth",void 0);_.g([_.U({value:function(){return!_.L0("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.N("design:type",Boolean)],no.prototype,"shouldRenderLazy",void 0);_.g([_.U(),_.N("design:type",Number)],no.prototype,"width",void 0);_.g([_.E9({is:"yt-image",disableElementRegistration:!0})],no);
_.F(no,"yt-image",function(){if(lRC===void 0){var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);u.content.insertBefore(KZB().content.cloneNode(!0),u.content.firstChild);
lRC=u}u=lRC;return u},{mode:2});var rh=function(){return _.Q.apply(this,arguments)||this};
_.c(rh,_.Q);rh.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var u=_.lt(this.data.onVisibleCommand);u&&this.ytComponentBehavior.resolveCommand(u)}};
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],rh.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],rh.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.s$.YtVisibilityBehavior),_.N("design:type",Object)],rh.prototype,"ytVisibilityBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],rh.prototype,"data",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],rh);
_.F(rh,"yt-bumper-user-edu-content-view-model",function(){if(dyS===void 0){var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;DyR===void 0&&(DyR=document.createElement("template"));var D=DyR;l.call(K,D.content.cloneNode(!0),u.content.firstChild);dyS=u}u=dyS;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var dVa;var Cza,IRA=function(){if(Cza!==void 0)return Cza;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;dVa===void 0&&(dVa=document.createElement("template"));var D=dVa;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return Cza=u};var ykN;_.v2={};ykN=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"]);_.v2.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var u=this.getContext_();return u?u.getTaskManager():_.YL},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var u=_.xs(this.hostElement,"yt-get-context-provider",{});u.detail&&u.detail.contextProvider?this.cachedProviderNode_=u.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return ykN.has(this.hostElement.localName)},
getNetworkManager:function(){var u=this.getContext_();if(u)return u.getNetworkManager()}};var Ifr,sGR,WZw,omw;_.GF=function(u){var K=sGR.get(u);if(K&&(K=K.pop()))return omw++,K;WZw++;try{var l=document.createElement(u)}catch(D){throw new _.wv("ElementPool failed to create element",u,D.message);}return l};
Ifr=function(u){var K=u.is;if(K){var l=sGR.get(K);l||(l=[],sGR.set(K,l));var D=_.E3("ELEMENT_POOL_CONFIG")||{};l.length>=(D[K]!==void 0?D[K]:_.E3("ELEMENT_POOL_DEFAULT_CAP",0))||l.push(u)}else _.hV(new _.wv("Element pool should only handle custom elements:",u.nodeName))};
sGR=new Map;WZw=0;omw=0;var RT=new WeakMap,CRH=new WeakMap;var MmC;_.tQ=function(u,K,l){l=l===void 0?_.k5():l;this.JSC$13671_defaultPriority=u;this.signal=K;this.scheduler=l;this.nextJobDescriptor=0;this.JSC$13671_parkedJobs=[];this.scheduledJobs=new Map};
_.xK=function(u,K){if(K){var l=_.dw();u.signal&&!_.C7(l,u.signal)?(l.addListener(u.signal,function(){u.processSignal()}),u.JSC$13671_parkedJobs.push({job:K,
priority:void 0})):Hfk(u,K)}};
MmC=function(u,K){if(K!==u.JSC$13671_defaultPriority){u.JSC$13671_defaultPriority=K;for(var l=_.y(u.scheduledJobs.values()),D=l.next();!D.done;D=l.next())D=D.value,u.scheduler.cancelJob(D.jobId),D.jobId=u.scheduler.addJob(D.jobWrapper,K)}};
_.tQ.prototype.flushJobs=function(){MmC(this,10);this.processSignal()};
_.tQ.prototype.cancel=function(){for(var u=_.y(this.scheduledJobs),K=u.next();!K.done;K=u.next()){var l=_.y(K.value);K=l.next().value;l=l.next().value;this.scheduler.cancelJob(l.jobId);this.scheduledJobs.delete(K)}this.JSC$13671_parkedJobs=[]};
_.tQ.prototype.processSignal=function(){for(var u=_.y(this.JSC$13671_parkedJobs),K=u.next();!K.done;K=u.next())K=K.value,Hfk(this,K.job,K.priority);this.JSC$13671_parkedJobs=[]};
var Hfk=function(u,K,l){l=l||u.JSC$13671_defaultPriority;if(l===10)aT(K);else{var D=u.nextJobDescriptor++,d=function(){K();u.scheduledJobs.delete(D)},C=u.scheduler.addJob(d,l);
u.scheduledJobs.set(D,{jobWrapper:d,jobId:C,priority:l})}};_.v4(WwH);var H$q={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};l89({beforeVisit:function(u){if(Op.has(u.type)){var K;(K=u.props).idomKey!=null||(K.idomKey=u.type)}else u.type.TAG_NAME&&(S1=u.type.TAG_NAME)},
afterRender:function(u,K){var l;S1=(l=K==null?void 0:K.type)!=null?l:""},
didPatch:function(){S1=""}});var qMw;_.SK={};qMw={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.SK.YtRendererstamperBehavior=[_.v2.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 u in this.stampDom){var K=this.stampDom[u];K&&K.id&&this.addReactiveSchema({type:"observe",method:{methodName:lfy(K.id),args:[{type:"wildcard",path:u}]}})}else{(u=(this.constructor.generatedFrom||this).observers)||(u=[]);for(K in this.stampDom){var l=this.stampDom[K];l&&l.id&&u.push(lfy(l.id)+"("+K+".*)")}this.constructor.generatedFrom.observers=u}},
addStampDomObserverFns_:function(){for(var u in this.stampDom){var K=this.stampDom[u];K.id?(this[lfy(K.id)]=this.rendererStamperObserver_.bind(this,u,K.id),this.hasDataPath_[u]=!1):(K=new _.wv("Bad rendererstamper config",this.is+":"+u),_.Xm(K))}},
rendererStamperObserver_:function(u,K,l){if(l.path==u){if(l.value===void 0&&!this.hasDataPath_[u])return;this.hasDataPath_[u]=l.value!==void 0}this.rendererStamperApplyChangeRecord_(u,K,l)},
rendererStamperApplyChangeRecord_:function(u,K,l){var D=this.renderJobsMap_[K],d=null;u==l.path?(l=l.value,_.mb(l)||(l=l===void 0||l===null?[]:[l]),u=this.stampDom[u],u.mapping&&(d=this.stampDomArray_.bind(this,l,K,u.mapping,u.reuseComponents,u.events,u.stamperStableList)),D&&D.cancel(),l=u.usePageScheduler?this.getTaskManager():void 0,D||u.initialRenderPriority==void 0)?u.renderPriority==void 0||D||(D=new _.tQ(u.renderPriority,u.waitForSignal,l),this.renderJobsMap_[K]=D):(D=new _.tQ(u.initialRenderPriority,
u.waitForSignal,l),this.renderJobsMap_[K]=D,d=function(C,W){C();MmC(W,10)}.bind(this,d,D)):d=u+".splices"==l.path?this.stampDomArraySplices_.bind(this,u,K,l.value):this.forwardRendererStamperChanges_.bind(this,u,K,l);
D?_.xK(D,d):d()},
forwardRendererStamperChanges_:function(u,K,l){var D=l.path.slice(u.length+1),d=this.getStampContainer_(K),C=D.indexOf("."),W=D.substring(0,C),M=!1,q=0,v=parseInt(W,0);if(W[0]=="#"){M=parseInt(W.substring(1),0);v=this.get(u);var G=this.get([u,W]);v[M]==G?q=M:q=v.indexOf(G);M=!0}else isNaN(v)||(q=v,M=!0);M&&(D=D.substring(W.length+1),C=D.indexOf("."));W=_.wM(d).children[q];var t;if(d=(t=W==null?void 0:W.polymerController)!=null?t:W)D="data"+D.slice(C),typeof d.notifyPath!=="function"?_.hV(new _.wv("notifyPath missing",
this.is+": "+u+", "+K)):l.value?d.notifyPath(D,l.value):d.notifyPath(D)},
stampDomArraySplices_:function(u,K,l){if(l&&l.indexSplices){var D=this.getStampContainer_(K);if(D){for(var d=_.wM(D),C=djq(this.stampDom[u].reuseComponents),W=l.indexSplices.length,M=0;M<W;M++){for(var q=l.indexSplices[M],v=d.children[q.index],G=q.removed.length;G>0;G--)v&&v.parentElement&&(_.wM(v.parentElement).removeChild(v),C&&Ifr(v),v=d.children[q.index]);G=this.stampDom[u].mapping;for(var t=q.index+q.addedCount,x=document.createDocumentFragment(),O=C,a=q.index;a<t;a++){var f=q.object[a],B=KwZ(G,
f);if(B){var p=G[B];f=f[B];B=this.getComponentName_(p,f);var V=v?RT.has(v):!1;O&&v&&v.is==B&&V?(B=v,this.telemetry_.reuse++,v=v.nextElementSibling):O&&v&&V?(B=this.createComponent_(p,f,C),V=_.wM(v).nextElementSibling,d.insertBefore(B,V),szb(this.is,d,v,C),v=V):(O=!1,B=this.createComponent_(p,f,C),x.appendChild(B));this.deferRenderStamperBinding_(B,p,f)}else p=new _.wv("Unimplemented type",u,K,D.tagName,Object.keys(f)[0]),_.Xm(p)}d.insertBefore(x,v)}this.flushRenderStamperComponentBindings_();this.stampDom[u].events&&
_.xs(this.hostElement,"yt-rendererstamper-finished",{container:D})}else u=new _.wv("Container object not found",K,this.hostElement?this.hostElement.is:""),_.Xm(u)}},
stampDomArray_:function(u,K,l,D,d,C){var W=this.getStampContainer_(K);if(W)if(K=_.wM(W),D=djq(D),u){var M=0,q=0,v;if(C=C===void 0?_.L0("STAMPER_STABLE_LIST",!1):C||!1)for(v=K.firstElementChild;v&&!RT.has(v)&&u.length>q;){C=u[q];var G=KwZ(l,C);if(G){if(this.getComponentName_(l[G],C[G])!=v.is){var t=this.createComponent_(l[G],C[G],D),x=_.wM(v).nextElementSibling;x?K.insertBefore(t,x):K.appendChild(t);szb(this.is,K,v,D);v=t}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(v,l[G],C[G]);M++;
q++;v=_.wM(v).nextElementSibling}else q++}obL(this.is,K,M,D);M=v;if(u.length>q){C=document.createDocumentFragment();for(G=u.length;q<G;q++)if(t=u[q],x=KwZ(l,t))v=this.createComponent_(l[x],t[x],D),this.deferRenderStamperBinding_(v,l[x],t[x]),C.appendChild(v);M&&_.wM(M).parentNode&&v&&!RT.has(v)?K.insertBefore(C,M):K.appendChild(C)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();d&&_.xs(this.hostElement,"yt-rendererstamper-finished",{container:W})}else obL(this.is,K,0,
D);else u=new _.wv("Container object not found",K,this.hostElement?this.hostElement.is:""),_.Xm(u)},
getStampContainer_:function(u){return this.$&&this.$[u]||_.bi(this.hostElement).querySelector("#"+u)},
getComponentName_:function(u,K){return typeof u==="string"?u:u.matcher?u.matcher.call(this,K):u.component},
createComponent_:function(u,K,l){u=this.getComponentName_(u,K);try{var D=cb.has(u)||Op.has(u);if(l&&!D){var d=_.GF(u);try{_.e8(d)}catch(C){l="Failed to clear styles for "+u+".",C.message&&(l+=" Original error: "+C.message),_.hV(new _.wv(l))}}else d=document.createElement(u)}catch(C){return d="YtRendererStamperBehavior failed to create "+u+".",C.message&&(d+=" Original description: "+C.message),C.message="YtRendererStamperBehavior failed to create element",_.E5(C,d),qMw.hasOwnProperty(u)?_.hV(C):_.Xm(C),
document.createElement("SPAN")}this.telemetry_.create++;return d},
deferRenderStamperBinding_:function(u,K,l){this.deferredBindingTasks_.push({component:u,typeOrConfig:K,data:l})},
flushRenderStamperComponentBindings_:function(){for(var u=0,K=this.deferredBindingTasks_.length;u<K;u++){var l=this.deferredBindingTasks_[u];if(!l)break;var D=void 0,d=void 0,C=void 0,W=void 0,M=l.component,q=l.typeOrConfig;l=l.data;var v=(W=M.polymerController)!=null?W:M;W=M.loggingStatus;try{W&&(W.isRendererStamper=!0);if(typeof q!=="string"){for(C in q.attributes)q.attributes[C]===!0?M.setAttribute(C,""):q.attributes[C]===!1?M.removeAttribute(C):M.setAttribute(C,q.attributes[C]);for(d in q.params)v[d]=
q.params[d],M!==v&&gn(M.localName,d,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(D in q.properties){var G=q.properties[D];if(G){var t=Djy(G);v[D]=this.get(t);M!==v&&gn(M.localName,D,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(D==="on-tap"||D==="on-click"){var x=this.get(t);M.addEventListener("click",x);CRH.set(M,{property:D,listener:{type:"element",eventName:"click",handler:x}})}}else{var O=new _.wv("Undefined property binding",D);_.Xm(O)}}}if(q.classListBinding){var a=Djy(q.classListBinding),
f=a?this[a]:null;if(f)for(D=0;D<f.length;D++)_.cF(M,f[D],!0)}v.data=l}finally{W&&(W.isRendererStamper=!1)}if(D=RT.get(M))M.hidden=!1,RT.delete(M),_.YL.cancelJob(D)}this.deferredBindingTasks_.length=0}}];_.bf={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(u){for(var K=_.Ci.getInstance(),l=_.y(Object.keys(u)),D=l.next();!D.done;D=l.next()){var d=D.value;D=u[d];if(this&&this[D]){var C=K.actionRoutingMap.get(d);C||(C=new Map,K.actionRoutingMap.set(d,C));K.registerActionHandler(this,d,this[D].bind(this),C)}else d=Error("jd"),d.params=D,_.uZ(d)}},
unregisterActionMap:function(u){_.yH(_.Ci.getInstance(),u,this)}}]};var QB=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_"+(_.S("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.S("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.S("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",
path:_.S("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:_.S("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:_.S("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var f4;var P1=new Map;var O$w=window.matchMedia("(forced-colors: active)").matches;var $Vw;var nmH;var rkm=new _.G$("LOTTIE_LOADER_TOKEN");_.O$=_.rf(function(u){var K=u.data;var l=u.className;var D=u.animationName;var d=u.animationRef;var C=u.elRefForInterop;var W=_.W4("lottie-component"),M;_.No(function(){var v;return void((v=M)==null?void 0:v.destroy())});
var q;_.gp(function(){var v=_.Z7(D);if(v!==q){q=v;var G=Object.assign({},{animationName:v,animationRef:_.Z7(d)},_.Z7(K));try{_.GB().resolve(rkm)().then(function(O){var a;(a=M)==null||a.destroy();var f,B;a=(B=C==null?void 0:(f=C())==null?void 0:f.value)!=null?B:W.value;f=G.animationRef;B=G.listeners;O=O.loadAnimation(Object.assign({},{container:a},G.animationConfig));f&&(f.lottieEl=O);if(B)for(a=_.y(Object.entries(B)),f=a.next();!f.done;f=a.next())B=_.y(f.value),f=B.next().value,(B=B.next().value)&&
O.addEventListener(f,B);M=O})}catch(O){v=O;
var t="LottieComponent error.";v.message&&(t+=" Original description: "+v.message);_.E5(v,t);_.hV(v);var x;((x=G.listeners)==null?0:x.error)&&G.listeners.error(v)}}},"lbhvPc");
return _.n(On9,{cond:function(){return!(C==null?0:C())},
then:function(){return _.n("lottie-component",{class:_.JB("ytLottieComponentHost",l),el:W})}})},"h");_.SX(_.rf(function(u){return _.n("ytd-lottie-player",{id:u.id,hidden:u.hidden,class:u.className,"aria-label":u.ariaLabel,style:"display: block;"},_.n(_.O$,{data:u.data,animationName:function(){var K;return((K=u.data().animationConfig)==null?void 0:K.name)||""},
animationRef:function(){return u.data().animationRef}}))},"i"),"ytd-lottie-player",{props:{data:_.M6,
id:_.M6,hidden:_.M6,className:_.M6,ariaLabel:_.M6}});var c2=function(){var u=_.Q.apply(this,arguments)||this;u.animationRef={};u.delhiIconsEnabled=_.S("enable_web_delhi_icons");return u};
_.c(c2,_.Q);_.I=c2.prototype;
_.I.handlePropertyChange=function(){var u=this.animatedIcon,K=this.active,l=this.isDarkTheme;if(u){var D=this.previousActive!==K;this.previousActive=K;this.animationRef.lottieEl?D&&this.toggleAnimation(K,u.totalFrames):K?this.initializeAnimationAsToggled(u.lottiePlayerProps,u.totalFrames):this.initializeAnimationAsUntoggled(u.lottiePlayerProps);u.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=u.type;this.lottiePlayerProps=this.computeLottiePlayerProps(u,l)}};
_.I.computeLottiePlayerProps=function(u,K){var l=this.deepCloneLottiePlayerProps(u);K?(K=u.nameDarkTheme,u=u.pathDarkTheme):(K=u.name,u=u.path);l.animationConfig.name=K;(K=P1.get(u))?l.animationConfig.animationData=K:l.animationConfig.path=u;return l};
_.I.initializeAnimationAsToggled=function(u,K){u.animationConfig.initialSegment=[K-1,K]};
_.I.initializeAnimationAsUntoggled=function(u){u.animationConfig.initialSegment=void 0};
_.I.toggleAnimation=function(u,K){if(u){var l;(l=this.animationRef.lottieEl)==null||l.playSegments([0,K],!0)}else{var D;(D=this.animationRef.lottieEl)==null||D.playSegments([0,1],!0)}};
_.I.deepCloneLottiePlayerProps=function(u){var K=Object.assign({},u.lottiePlayerProps.animationConfig);u=Object.assign({},u.lottiePlayerProps);u.animationConfig=K;return u};
c2.prototype.handlePropertyChange=c2.prototype.handlePropertyChange;_.g([_.U(),_.N("design:type",Object)],c2.prototype,"animatedIcon",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],c2.prototype,"active",void 0);_.g([_.U(),_.N("design:type",Boolean)],c2.prototype,"isDarkTheme",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],c2.prototype,"animatedIconType",void 0);_.g([_.U(),_.N("design:type",Boolean)],c2.prototype,"previousActive",void 0);
_.g([_.U(),_.N("design:type",Object)],c2.prototype,"lottiePlayerProps",void 0);_.g([_.U(),_.N("design:type",Object)],c2.prototype,"animationRef",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],c2.prototype,"delhiIconsEnabled",void 0);_.g([_.JU("animatedIcon","active","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c2.prototype,"handlePropertyChange",null);_.g([_.E9({is:"yt-animated-icon",disableElementRegistration:!0})],c2);
_.F(c2,"yt-animated-icon",function(){if(nmH===void 0){var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;$Vw===void 0&&($Vw=document.createElement("template"));var D=$Vw;l.call(K,D.content.cloneNode(!0),u.content.firstChild);nmH=u}u=nmH;return u},{mode:2});var vmR;var GJS;var UjZ=_.rf(function(u){var K=_.W4("span"),l=YD(function(){return{value:null}});
_.No(function(){var d;(d=l.value)==null||d.cancel()});
var D=_.RZ(u.data,{equals:function(d,C){return d.iconName===C.iconName&&d.iconStyle===C.iconStyle&&d.iconSize===C.iconSize&&d.iconSetName===C.iconSetName&&d.iconSelected===C.iconSelected}},"aoiXAb");
_.gp(function(){var d,C=(d=u.options)==null?void 0:d.call(u);RRq(K,l,D(),C)},"QXgxJd");
return _.n("span",{class:"yt-icon-shape",el:K})},"j");
UjZ.idomCompat=!0;var HCy=["youtube_fill","youtube_outline"];var tmw=new _.ND({type:"iconset",value:void 0}),au=function(){var u=_.Q.apply(this,arguments)||this;u.isDarkTheme=document.documentElement.hasAttribute("dark");u.iconName="";u.iconsetName="yt-icons";u.iconset=null;u.missingIconSet=!1;u.iconType=null;u.iconShapeDataSignal=_.On(void 0,void 0,"RQ9kUb");u.renderingOptionsSignal=_.On({iconWidth:"100%",iconHeight:"100%",iconFilter:u.iconFilter},void 0,"qtx8Ef");u.wizHasRendered=!1;u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return u};
_.c(au,_.Q);au.prototype.onDarkModeToggledAction=function(u){u!==this.isDarkTheme&&(this.isDarkTheme=u)};
au.prototype.handlePropertyChange=function(){var u=this,K,l,D,d,C,W,M,q,v,G,t,x,O,a,f,B,p;return _.H(function(V){switch(V.nextAddress){case 1:if(K=!u.icon&&!u.iconName||!u.isAttached)return V.return();l=u;D=l.icon;d=l.size;C=l.defaultToFilled;W=l.active;M=l.targetContainer;u.toggleContainerClass(M);_.S("kevlar_use_wil_icons")&&D&&(q=ycy(D),u.iconType=q.length?q[1]:null);if(D){V.jumpTo(2);break}u.iconsetName="";u.iconName="";return V.yield(u.renderIcon(M,D),3);case 3:return V.return();case 2:v=xVR(D);
G=ycy(v);G.length&&(u.iconsetName=G[0],u.iconName=G[1]);if(!_.S("kevlar_use_wil_icons")){V.jumpTo(4);break}t=au;x=SMa;O=u.iconType;a=u.active;f=u.defaultToFilled;B=u.size;p=u.iconsetName;return V.yield(bfk(),6);case 6:return V.yield(x.call(t,O,a,f,B,p,V.yieldResult),5);case 5:u.iconShapeData=V.yieldResult;case 4:if(u.shouldRenderIconShape(M)){V.jumpTo(7);break}return V.yield(u.determineIconSet(v,W,C,d,M),7);case 7:return V.yield(u.renderIcon(M,D),0)}})};
au.prototype.toggleContainerClass=function(u){u?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var xVR=function(u){return!_.S("default_to_innertube_icon")||u.indexOf(":")>0?u:_.fr(u)};
_.I=au.prototype;_.I.determineIconSet=function(u,K,l,D){var d=this;return _.H(function(C){return C.nextAddress==1?_.S("kevlar_system_icons")||_.E3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.E3("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?C.yield(d.switchToYtSysIconset(u,K,l,D),3):C.jumpTo(2):C.nextAddress!=2?C.return():C.yield(d.useYtSysIconsetForMissingIcons(u,K,l,D),0)})};
_.I.switchToYtSysIconset=function(u,K,l,D){var d=this,C,W,M,q,v,G,t;return _.H(function(x){switch(x.nextAddress){case 1:if(!u||d.iconsetName!=="yt-icons"&&d.iconsetName!=="yt-sys-icons"){x.jumpTo(0);break}C=ycy(u);W=C[1];W=_.v3H(W);_.S("enable_polymer_icons_replace_underscores_dash")&&W.includes("_filled")&&(W=W.replace(/_filled/g,"-filled"));return x.yield(Up(W,!0),3);case 3:return M=x.yieldResult,x.yield(Up(W,!1),4);case 4:if((q=x.yieldResult)||K&&M)d.iconsetName="yt-sys-icons";d.iconName=d.getIconName(W,
K,l,q,M);if(D===24){x.jumpTo(0);break}v="yt-sys-icons"+D+":"+d.iconName;return x.yield(Up(v,!1,!0),6);case 6:return G=x.yieldResult,x.yield(Up(v,!0,!0),7);case 7:t=x.yieldResult;d.iconName=d.getIconName(W,K,l,G,t);if(!K&&G||K&&t)d.iconsetName="yt-sys-icons"+D;_.TG(x)}})};
_.I.getIconName=function(u,K,l,D,d){u.includes("-filled")&&(u=u.replace("-filled",""));return d&&(K||l)?u+"-filled":u};
_.I.useYtSysIconsetForMissingIcons=function(u,K,l,D){var d=this,C,W;return _.H(function(M){if(M.nextAddress==1)return d.iconsetName!=="yt-icons"?M.jumpTo(0):M.yield(Up(d.iconName,!1,!1,!0),3);if(M.nextAddress!=4)return C=M.yieldResult,M.yield(Up(d.iconName,!1),4);W=M.yieldResult;if(C||!W)return M.jumpTo(0);d.iconsetName="yt-sys-icons";return M.yield(d.switchToYtSysIconset(u,K,l,D),0)})};
_.I.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var bfk=function(){return _.H(function(u){try{return u.return(_.GB().resolve(_.Q2))}catch(K){return u.return(new Promise(function(l){_.dw().parkOrScheduleJob(function(){l(_.GB().resolve(_.Q2))},2,"ci")}))}})},SMa=function(u,K,l,D,d,C){D=D===void 0?24:D;
if(u){u=u.toLowerCase();var W=u.endsWith("_filled")||u.endsWith("-filled");K={iconName:u,iconStyle:(K===void 0?0:K)||(l===void 0?0:l)||W?"youtube_fill":"youtube_outline",iconSize:D,iconSetName:d===void 0?"yt-icons":d};l=!!C.resolveIcon(K);l||(K.iconSize=void 0,l=!!C.resolveIcon(K));!l&&W&&(K.iconName=u.substring(0,u.length-7),K.iconSize=D,l=!!C.resolveIcon(K),l||(K.iconSize=void 0,l=!!C.resolveIcon(K)));l||(K.iconStyle=void 0,l=!!C.resolveIcon(K));l||_.hV(new _.wv("Icon not supported",{iconName:K.iconName,
iconStyle:K.iconStyle,iconSize:K.iconSize,iconType:u}));return l?K:void 0}};
_.I=au.prototype;_.I.shouldRenderIconShape=function(u){if(!_.S("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;u=this.getContainer(u);return!cjL(u,this.icon)};
_.I.renderIcon=function(u,K){var l=this,D,d,C,W,M,q,v,G;return _.H(function(t){switch(t.nextAddress){case 1:if(K&&l.icon!==K)return t.return();D=l.getContainer(u);d=cjL(D,l.icon);if(l.shouldRenderIconShape(u)&&l.iconType)return l.applyIconShape(d,D),t.return();l.removeIconShape();if(!D)return t.return();l.iconName===""&&l.iconset&&D&&(l.removeStaticIcon(l.iconset,D),d&&l.removeAnimatedIcon(D));if(l.iconName===""&&l.iconset||!l.iconsetName||!tmw)return t.return();l.iconset=tmw.byKey(l.iconsetName);
if(!l.iconset)return l.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Ql(l,l.onIconsetAdded)),t.return();l.missingIconSet&&(l.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Ql(l,l.onIconsetAdded)));W=(C=d||l.isAnimatedIcon?b$R(l.icon):void 0)&&!C.lazyLoad;q=C&&((M=C)==null?void 0:M.lazyLoad)&&(C.lottiePlayerProps.animationConfig.animationData?!0:P1.get(l.isDarkTheme?C.pathDarkTheme:C.path)?!0:!1);if(W||q)return l.applyAnimatedIcon(D,C,l.iconset),t.return();if(q||
(v=C)==null||!v.lazyLoad){t.jumpTo(2);break}G=zRy(C,l.isDarkTheme);l.applyStaticIcon(l.iconset,D,l.iconName,u,d);return t.yield(G,3);case 3:return t.yield(l.renderIcon(l.targetContainer,l.icon),4);case 4:return t.return();case 2:l.applyStaticIcon(l.iconset,D,l.iconName,u,d),_.TG(t)}})};
_.I.getContainer=function(u){var K,l=(K=z0w(this.hostElement))==null?void 0:K.host;K=!!l&&!!l.polymerController;if(!u||K)return u?this.getTargetContainer(u,l):this.hostElement};
_.I.getTargetContainer=function(u,K){var l=_.bi(K).querySelector("#"+u);l||(u=new _.wv("yt-icon container missing",K.is,u),_.Xm(u));return l};
_.I.applyStaticIcon=function(u,K,l,D,d){d&&this.removeAnimatedIcon(K);this.removeIconShape();d=d&&!!this.iconType&&!!this.iconShapeData&&_.S("kevlar_use_wil_icons");try{d?this.applyIconShape(!1,K):u.applyIcon(K,l)}catch(C){this.handleError(C,D,K)}};
_.I.applyIconShape=function(u,K){this.iconset&&K&&(this.removeStaticIcon(this.iconset,K),u&&this.removeAnimatedIcon(K));u={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var l=_.y(this.iconShapeDataSignal);K=l.next().value;l=l.next().value;var D=_.y(this.renderingOptionsSignal),d=D.next().value;D=D.next().value;l(this.iconShapeData);D(u);if(!this.wizHasRendered)for(this.wizHasRendered=!0,u=_.y(ffr(K,d)).next().value;u.firstChild;)_.bi(this.hostElement).appendChild(u.firstChild)};
_.I.removeIconShape=function(){if(_.S("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.I.removeStaticIcon=function(u,K){u.removeIcon(K)};
_.I.applyAnimatedIcon=function(u,K,l){this.removeStaticIcon(l,u);this.removeIconShape();var D;l=this.animatedIconElement&&((D=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:D.type)===K.type;if(this.animatedIconElement&&l){this.animatedIconElement.polymerController.animatedIcon=K;var d;((d=this.animatedIconElement)==null?void 0:d.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(u),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=K,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.S("kevlar_use_wil_icons")?u.insertBefore(this.animatedIconElement,u.childNodes[0]):(u=_.bi(u),u.insertBefore(this.animatedIconElement,u.childNodes[0]))};
_.I.removeAnimatedIcon=function(u){_.S("kevlar_use_wil_icons")?this.animatedIconElement&&u.contains(this.animatedIconElement)&&u.removeChild(this.animatedIconElement):(u=_.bi(u),this.animatedIconElement&&u.contains(this.animatedIconElement)&&u.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.I.handleError=function(u,K,l){_.E5(u,this.iconName,K,l);K=cjL(l,this.icon);var D=!1;window.location.href.includes("JpymaW6Lh2w")?D=!0:l._svgIcon&&(l=(l=l._svgIcon.parentNode)?l.tagName:"unknown",_.E5(u,l),l==="YT-ICON"&&u.name==="NotFoundError"?D=!0:u.name==="NotFoundError"&&K&&(D=!0));D?_.hV(u):_.Xm(u)};
_.MN.Object.defineProperties(au,{template:{configurable:!0,enumerable:!0,get:function(){if(GJS===void 0){var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;
vmR===void 0&&(vmR=document.createElement("template"));var D=vmR;l.call(K,D.content.cloneNode(!0),u.content.firstChild);GJS=u}u=GJS;return u}}});
au.prototype.handlePropertyChange=au.prototype.handlePropertyChange;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],au.prototype,"actionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",String)],au.prototype,"icon",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],au.prototype,"active",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],au.prototype,"defaultToFilled",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],au.prototype,"isAnimatedIcon",void 0);
_.g([_.U({value:24}),_.N("design:type",Number)],au.prototype,"size",void 0);_.g([_.U({value:""}),_.N("design:type",String)],au.prototype,"targetContainer",void 0);_.g([_.U(),_.N("design:type",Object)],au.prototype,"animatedIconElement",void 0);_.g([_.U(),_.N("design:type",Object)],au.prototype,"isDarkTheme",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],au.prototype,"ariaHidden",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],au.prototype,"ariaLabel",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],au.prototype,"role",void 0);_.g([_.U(),_.N("design:type",String)],au.prototype,"style",void 0);_.g([_.U(),_.N("design:type",String)],au.prototype,"iconFilter",void 0);_.g([_.JU("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],au.prototype,"handlePropertyChange",null);_.g([_.E9({is:"yt-icon",noInjection:!0})],au);var Ofs;var ckm=function(){var u=document.body,K=u.appendChild;if(Ofs===void 0){var l=document.createElement("template");_.z(l,'\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>');
Ofs=l}l=Ofs;K.call(u,l.content)};
document.body?ckm():window.addEventListener("DOMContentLoaded",ckm);var aRa,zQa=function(){return aRa!==void 0?aRa:aRa=document.createElement("template")};
document.head.appendChild(zQa().content);var eQm,RQ2=function(){return eQm!==void 0?eQm:eQm=document.createElement("template")};
document.head.appendChild(RQ2().content);var UVC;_.zF=new _.G$("KEY_MANAGER_TOKEN");var B4r={duration:1E3,easing:"ease",fill:"forwards"};_.v4(jzo);var i$b={duration:1E3,easing:"ease",fill:"forwards"},Pza=_.rf(function(u){var K=_.o9("animated-rolling-character"),l=void 0,D=function(){var d,C;return H0((d=u.character)==null?void 0:d.call(u))||H0((C=u.previousCharacter)==null?void 0:C.call(u))};
_.gp(function(){if(u.marginMultiplier()){var d;(d=l)==null||d.cancel();if(D()){var C;d=((C=u.previousCharacter)==null?0:C.call(u))?Number(u.previousCharacter())+10:u.rollUp()?0:30;var W;if((W=u.shouldAnimate)==null||!W.call(u)){var M,q;d-=ph9((M=u.character)==null?void 0:M.call(u),(q=u.previousCharacter)==null?void 0:q.call(u),u.rollUp(),d)}}else{d=u.rollUp()?0:2;var v;(v=u.shouldAnimate)!=null&&v.call(u)||(C=d,W=u.rollUp()?-1:1,d=C-W)}K.value.style.marginTop="-"+d*u.marginMultiplier()+"px";var G;
if((G=u.shouldAnimate)==null?0:G.call(u)){var t,x;l=T4y(K.value,(t=u.character)==null?void 0:t.call(u),(x=u.previousCharacter)==null?void 0:x.call(u),u.rollUp(),d,D(),u.marginMultiplier())}else{var O;K.value.style.display=((O=u.character)==null?0:O.call(u))?"":"none"}}},"vt9b9b");
return _.n("animated-rolling-character",{el:K,class:"animated-rolling-character-wiz"},_.n(_.r,{cond:D,then:function(){return _.n(fR0,null)},
else:function(){return _.n(QGa,{character:u.character})}}))},"k");
Pza.idomCompat=!0;var whr=_.S("web_enable_sink_animated_rolling_character_and_number")?Pza:jzo,JkC=_.S("web_enable_sink_animated_rolling_character_and_number")?Pza:_.B1(jzo),fR0=_.rf(function(){for(var u=[],K=1;K<30;K++)u.push(_.n("div",null,K%10));return _.n(_.G1,null,_.n("div",null,"\u00a0"),u,_.n("div",null,"\u00a0"))},"l"),QGa=_.rf(function(u){var K=u.character;
return _.n(_.G1,null,_.n("div",null,"\u00a0"),_.n(_.r,{cond:function(){return!(K==null?0:K())||_.oR(K==null?void 0:K())},
then:function(){return _.n("div",null,"\u00a0")},
else:function(){return _.n("div",null,K)}}),_.n("div",null,"\u00a0"))},"m");_.v4(Fwr);var jGa=_.rf(function(u){var K=void 0,l=void 0,D=function(){var C;return((C=u.fontSizeMultiplier)==null?0:C.call(u))?u.heightPx()*u.fontSizeMultiplier():u.heightPx()},d=_.RZ(function(){if(!u.numberText())return[];
var C,W,M=((C=u.forceRollUp)==null?void 0:C.call(u))||!l||!((W=u.numberValue)==null?0:W.call(u))||l<u.numberValue(),q,v=u.numberText();C=D();W=!((q=u.shouldAnimate)==null||!q.call(u));q=[];var G=0,t=0,x=(K?K.replace(/\D/g,"").length:0)-(v?v.replace(/\D/g,"").length:0),O=K?K.split(/(\d)/).filter(Boolean):[];for(v=v.split(/(\d)/).filter(Boolean);x<0;){var a=v[t];q.push({character:a,rollUp:M,marginMultiplier:C,shouldAnimate:W});t++;H0(a)&&x++}for(;G<x;)a=O[G],q.push({previousCharacter:a,rollUp:M,marginMultiplier:C,
shouldAnimate:W}),G++,H0(a)||x++;for(;t<v.length;)x=v[t],a=O[G],H0(x)===H0(a)?(t++,G++):H0(x)?(G++,x=void 0):H0(a)&&(t++,a=void 0),q.push({character:x,previousCharacter:a,rollUp:M,marginMultiplier:C,shouldAnimate:W});K=u.numberText();var f;l=(f=u.numberValue)==null?void 0:f.call(u);return q},void 0,"B9AmNd");
return _.n("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return u.numberText()?["height: "+D()+"px;","line-height: "+u.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.n(_.p0,{each:d,keyBy:"INDEX"},function(C){return _.n(JkC,{character:function(){return C().character},
previousCharacter:function(){return C().previousCharacter},
marginMultiplier:function(){return C().marginMultiplier},
rollUp:function(){return C().rollUp},
shouldAnimate:function(){return C().shouldAnimate}})}))},"n");
jGa.idomCompat=!0;_.Cjy=_.S("web_enable_sink_animated_rolling_character_and_number")?jGa:Fwr;_.BgN=_.S("web_enable_sink_animated_rolling_character_and_number")?jGa:_.B1(Fwr);var VCy={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"};_.I5=_.rf(function(u){var K=_.o9("a",u.ref),l=u.aTagConfig?u.aTagConfig:_.RZ(function(){var D,d,C,W,M;var q=(M=_.lt((C=u.command)==null?void 0:C.call(u)))!=null?M:(W=u.command)==null?void 0:W.call(u);return _.dY({innertubeCommand:q,skipOnClick:(D=u.skipOnClick)==null?void 0:D.call(u),defaultTarget:(d=u.target)==null?void 0:d.call(u)})||{}},void 0,"I5WLmc");
_.gp(function(){K.value._data=l()._data;K.value.params=l().params},"STb8Se");
return _.n("a",{el:K,href:function(){return l().href$},
rel:function(){return l().rel$},
class:function(){var D,d;return(d=l().className)!=null?d:(D=u.className)==null?void 0:D.call(u)},
style:function(){var D;if((D=u.style)==null?0:D.call(u))return u.style();var d;return((d=u.disabled)==null?0:d.call(u))?"pointer-events:none":""},
"aria-haspopup":function(){return!!l()["aria-haspopup$"]},
"force-new-state":TH(function(){return l()["force-new-state$"]}),
title:TH(function(){var D,d;return(d=l().title$)!=null?d:(D=u.title)==null?void 0:D.call(u)}),
role:TH(function(){var D;return((D=u.role)==null?void 0:D.call(u))||l().role$}),
target:TH(function(){return l().target$}),
dir:TH(function(){var D;return((D=u.dir)==null?void 0:D.call(u))||l().dir}),
tabindex:function(){var D;return l().tabindex$?Number(l().tabindex$):(D=u.tabIndex)==null?void 0:D.call(u)},
"aria-hidden":function(){var D,d;return(d=l()["aria-hidden$"])!=null?d:(D=u.ariaHidden)==null?void 0:D.call(u)},
"aria-label":function(){var D,d;return(d=l()["aria-label$"])!=null?d:(D=u.ariaLabel)==null?void 0:D.call(u)},
"aria-current":u.ariaCurrent,"aria-disabled":u.disabled,"aria-labelledby":u.ariaLabelledby,"aria-describedby":u.ariaDescribedby,"aria-selected":u.ariaSelected,"tab-identifier":u.tabIdentifier,"on:pointerdown":_.p4(function(D){var d,C;return void((C=(d=l()).onpointerdown)==null?void 0:C.call(d,D))}),
"on:click":_.p4(function(D){var d,C;(C=(d=l()).onclick)==null||C.call(d,D);var W;(W=u.onClick)==null||W.call(u,D)}),
"on:focusin":_.p4(function(D){var d;(d=u.onFocusin)==null||d.call(u,D)}),
"on:focusout":_.p4(function(D){var d;(d=u.onFocusout)==null||d.call(u,D)})},u.children)},"o");var plS=function(u,K){this.fillAnimation=new Animation(Z$H(u),document.timeline);this.strokeAnimation=new Animation(YHw(K),document.timeline)};
plS.prototype.play=function(){var u,K;(K=(u=this.fillAnimation).play)==null||K.call(u);var l,D;(D=(l=this.strokeAnimation).play)==null||D.call(l)};
plS.prototype.cancel=function(){var u,K;(K=(u=this.fillAnimation).cancel)==null||K.call(u);var l,D;(D=(l=this.strokeAnimation).cancel)==null||D.call(l)};_.ko=_.rf(function(u){var K=u.model;var l=u.pointerDownEvent;var D=u.pointerUpEvent;var d=u.pointerLeaveEvent;u=_.o9("div");var C=_.Fb({"border-radius":function(){return K().borderRadius}}),W=_.o9("div"),M=_.o9("div"),q=_.y(_.wY(function(){return(D==null?0:D())||(d==null?0:d())?!1:!(l==null||!l())||!1})),v=q.next().value,G=q.next().value,t=void 0,x=function(){!t&&M.value&&W.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(t=new plS(M.value,W.value));
var V;(V=t)==null||V.play()},O=function(){var V;
(V=t)==null||V.cancel()},a=function(){var V;
(V=t)==null||V.cancel()};
_.gp(function(){(D==null?0:D())&&x()},"YjVIpd");
_.gp(function(){(l==null?0:l())&&O()},"UrXvqb");
_.gp(function(){(d==null?0:d())&&a()},"QK6L8b");
q=_.p4(function(){x();G(!1)});
var f=_.p4(function(){O();G(!0)}),B=_.p4(function(){a();
G(!1)});
_.No(function(){if(t){var V;(V=t)==null||V.cancel();t=void 0}});
var p={};v=_.JB("yt-spec-touch-feedback-shape",function(){return Ajq(K().color)},(p["yt-spec-touch-feedback-shape--focused"]=function(){return!!K().focused&&!K().disabled},p["yt-spec-touch-feedback-shape--circular"]=function(){return!!K().circular},p["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!K().isExtended},p["yt-spec-touch-feedback-shape--down"]=v,p["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!K().triggerEvents},p));
return _.n("yt-touch-feedback-shape",{style:_.Fb({"border-radius":"inherit"})},_.n("div",{el:u,class:v,style:_.Fb({"margin-top":function(){return K().customTopExtend?"-"+K().customTopExtend+"px":void 0}}),
"on:mousedown":f,"on:mouseup":q,"on:pointerleave":B,"on:touchstart":f,"on:touchend":q,"aria-hidden":!0},_.n("div",{class:"yt-spec-touch-feedback-shape__stroke",style:C,el:W}),_.n("div",{class:"yt-spec-touch-feedback-shape__fill",style:C,el:M})))},"p");
_.ko.idomCompat=!0;var ifC={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 eK=_.rq();eK=eK.toLowerCase();if(_.Ho(eK,"android")){var TgR=eK.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);TgR&&parseFloat(TgR[1])<100||eK.match("("+Object.keys(ifC).join("|")+")")};var wlw=_.rf(function(u){return _.n(_.r,{cond:u.aTagConfig,then:function(K){return _.n(_.I5,{aTagConfig:K,disabled:u.disabled,className:u.className,style:u.style,title:u.title,ariaLabel:u.ariaLabel,ariaCurrent:function(){var l,D;return((l=u.toggleable)==null?void 0:l.call(u))&&((D=u.toggled)==null?void 0:D.call(u))},
ref:u.ref},u.children)},
else:function(){return _.n("button",{el:_.v1(u.ref),"on:click":_.p4(function(K){var l;return(l=u.onClick)==null?void 0:l.call(u,K)}),
class:u.className,title:u.title,style:u.style,disabled:u.disabled,"aria-pressed":function(){var K,l;return((K=u.toggleable)==null?0:K.call(u))?!((l=u.toggled)==null||!l.call(u)):void 0},
"aria-label":u.ariaLabel,"aria-disabled":u.visiblyDisabled,"aria-hidden":u.ariaHidden,tabindex:u.tabIndex},u.children)}})},"q"),Vms=_.rf(function(u){var K=u.data;
var l=u.hasIconLeading;var D=u.hasIconLeadingTrailing;var d=u.hasIconTrailing;var C=u.iconButton;var W=u.iconClassName;var M=u.secondaryIconClassName;var q=u.icon;var v=u.secondaryIcon;var G=u.textContentClassName;return _.n(Ru,{className:"",style:"display: inherit; justify-content: center"},_.n(_.r,{debugInstance:"V4z1Uc",cond:function(){return q&&(l()||D()||(C==null?void 0:C()))},
then:function(){return _.n(Ru,null,_.n("div",{class:W,"aria-hidden":"true"},q==null?void 0:q()))}}),_.n(_.r,{debugInstance:"ok3btb",
cond:function(){return(K().buttonText||K().animatedTextProps||K().formattedButtonText)&&!(C==null?0:C())},
then:function(){return _.n(Ru,null,_.n(FZA,{className:G,iconPosition:function(){return K().iconPosition},
text:function(){return K().buttonText},
oneOffCustomTextWrap:function(){return K().oneOffCustomTextWrap},
formattedButtonText:function(){return K().formattedButtonText},
animatedTextProps:function(){return K().animatedTextProps}}))}}),_.n(_.r,{debugInstance:"DO5Rz",
cond:d,then:function(){return _.n(Ru,null,_.n("div",{class:W},q==null?void 0:q()))}}),_.n(_.r,{debugInstance:"bnojSc",
cond:D,then:function(){return _.n(Ru,null,_.n("div",{class:M},v==null?void 0:v()))}}),_.n(_.r,{debugInstance:"HN3kad",
cond:function(){return!K().disabled&&!0},
then:function(){return _.n(_.ko,{model:function(){return{color:Lwo(K())}}})}}))},"r"),FZA=_.rf(function(u){var K=function(){var l,D;
return((l=u.iconPosition)==null?void 0:l.call(u))==="icon-with-label"||((D=u.oneOffCustomTextWrap)==null?void 0:D.call(u))};
return _.n("div",{class:u.className,"aria-hidden":function(){var l,D,d;return((l=u.ariaHidden)==null?void 0:l.call(u))&&(!((D=u.animatedTextProps)==null||!D.call(u))||!((d=u.formattedButtonText)==null||!d.call(u)))}},_.n(_.VI,null,_.n(_.ic,{when:function(){var l;
return(l=u.animatedTextProps)==null?void 0:l.call(u)}},function(){return _.n(_.BgN,{numberText:function(){return u.animatedTextProps().numberText},
numberValue:function(){return u.animatedTextProps().numberValue},
heightPx:function(){return u.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return u.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return u.animatedTextProps().shouldAnimate},
forceRollUp:function(){return u.animatedTextProps().forceRollUp}})}),_.n(_.ic,{when:function(){var l;
return(l=u.formattedButtonText)==null?void 0:l.call(u)}},function(){return _.n(_.qC,{text:function(){return Object.assign({},u.formattedButtonText(),{lineBreakMode:K()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":u.formattedButtonText().lineBreakMode,
alignment:K()?"TEXT_ALIGNMENT_CENTER":u.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!K()}})}),_.n(_.ic,{when:function(){var l,D;
return((l=u.iconPosition)==null?void 0:l.call(u))==="icon-with-label"&&((D=u.text)==null?void 0:D.call(u))}},function(){return _.n(_.qC,{text:function(){return{content:u.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.n(_.Fp,null,function(){return u.text})))},"s"),gm0=_.rf(function(u){return _.n(_.r,{debugInstance:"kM7Sgc",
cond:u.hasLabel,then:function(){var K;return _.n("label",{class:u.className},u.children,(K=u.textContent)==null?void 0:K.call(u))},
else:function(){return u.children}})},"t"),Ru=_.rf(function(u){return u.children},"u");var XJH=Mo("stamper-context");var NgB=function(){var u=_.y(_.On(void 0,void 0,"X7d4l"));this.state=u.next().value;this.setState=u.next().value;u=_.y(_.On(void 0,void 0,"CfI23e"));this.schedulerJobID=u.next().value;this.setSchedulerJobID=u.next().value},qiL=function(u,K){var l=McR,D=_.YL.addJob(function(){l.setState({text:K.text,
location:K.location,anchor:u,offset:K.offset})},4,K.delay);
l.setSchedulerJobID(D)},$ln=function(){var u=McR,K=u.schedulerJobID();
K&&(_.YL.cancelJob(K),u.setSchedulerJobID(void 0));u.setState(void 0)};
NgB.prototype.notify=function(u,K){var l;((l=this.state())==null?void 0:l.anchor)===u&&this.setState({text:K.text,location:K.location,anchor:u,offset:K.offset})};var McR;McR=new NgB;_.kJS=_.rf(function(){var u=HTMLElement.prototype.hasOwnProperty("popover");return _.n("yt-tooltip",{class:"ytTooltipContainerHost"},function(){var K=McR.state();return u&&(K==null?void 0:K.text)})},"v");var $e=_.rf(function(u){var K=u.data;var l=u.icon;var D=u.iconName;var d=u.secondaryIcon;var C=u.secondaryIconName;var W=u.focusedOverride;var M=u.clientOnlyWizTooltipsEnabled;_.WAh();var q=Xhb(K),v=q.size,G=q.style;u=q.disabled;var t=q.onTap,x=q.alignByText,O=q.aTagConfig,a=q.customColors,f=q.segmentedPosition,B=q.toggled,p=q.toggleable,V=q.accessibilityLabel,m=q.onToggle,Z=q.iconPosition,A=q.oneOffCustomTextWrap,h=q.disableTextEllipsis,C9=q.disableBackdropFilter,Wo=q.tooltipText,$y=q.ariaHidden,
co=q.tabIndex,UZ=q.buttonText,tH=q.formattedButtonText,gq=q.animatedTextProps,Bo=Eby(K,l,d,D,C,W),uk=Bo.type;l=Bo.shouldFocus;D=Bo.hasIconLeading;d=Bo.hasIconTrailing;var ca=Bo.hasIconLeadingTrailing,Ha=Bo.hasIconOnly;C=Bo.hasIconOnly40;var hH=Bo.hasIconWithLabel;W=Bo.iconButton;var tR=Bo.visiblyDisabled;q=Bo.overrideSmallSizeIcon;var ns=Bo.iconToRender;Bo=Bo.secondaryIconToRender;var Pa=_.y(nNy(Wo)).next().value,QV={},Ls={};return _.n(gm0,{className:_.JB("yt-spec-button-shape-with-label",(QV["yt-spec-button-shape-with-label--is-overlay"]=
function(){return G()==="overlay"||G()==="overlay-dark"},QV)),
hasLabel:hH,textContent:function(){return _.n(FZA,{text:UZ,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:A,iconPosition:Z,formattedButtonText:tH,animatedTextProps:gq})}},_.n(wlw,{aTagConfig:O,
className:_.JB("yt-spec-button-shape-next",function(){return KAw(uk())},function(){return tR()?void 0:lNL(G())},function(){return Dlr(v())},(Ls["yt-spec-button-shape-next--disabled"]=tR,Ls["yt-spec-button-shape-next--focused"]=l,Ls["yt-spec-button-shape-next--icon-trailing"]=d,Ls["yt-spec-button-shape-next--icon-leading"]=D,Ls["yt-spec-button-shape-next--icon-leading-trailing"]=ca,Ls["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return ca()&&!(UZ()||tH())},Ls["yt-spec-button-shape-next--icon-button"]=
function(){return Ha()||hH()},Ls["yt-spec-button-shape-next--icon-only-default"]=C,Ls["yt-spec-button-shape-next--align-by-text"]=x,Ls["yt-spec-button-shape-next--segmented-start"]=function(){return f()==="start"},Ls["yt-spec-button-shape-next--segmented-end"]=function(){return f()==="end"},Ls["yt-spec-button-shape-next--override-small-size-icon"]=q,Ls["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=A,Ls["yt-spec-button-shape-next--disable-text-ellipsis"]=h,Ls["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!C9()&&uyw()},Ls)),
style:function(){return dlo(a()).style},
onClick:function(yn){t==null||t(yn);p()&&(m==null||m(yn))},
disabled:u,ariaLabel:V,toggleable:p,toggled:B,title:function(){return(M==null?0:M())||!Wo()?"":Wo()},
visiblyDisabled:tR,ariaHidden:$y,tabIndex:co,ref:function(yn){(M==null?0:M())&&Pa(yn)}},_.n(Vms,{data:K,
hasIconLeading:D,hasIconLeadingTrailing:ca,hasIconTrailing:d,iconButton:W,icon:ns,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:Bo})))},"w");
$e.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var ZfB=_.rf(function(u){var K=u.data;var l=u.id;var D=u.className;var d=u.iconName;var C=u.secondaryIconName;u=_.y(_.On(!1,void 0,"uDRWyd"));var W=u.next().value,M=u.next().value,q=function(){var G=_.GB().resolve(_.vv(_.zF));G&&M(G.isKeyBoardInUse())},v=function(){M(!1)};
u=_.o9("yt-button-shape",function(G){if(_.GB().resolve(_.vv(_.zF)))return G.addEventListener("focusin",q),G.addEventListener("focusout",v),function(){G.removeEventListener("focusin",q);G.removeEventListener("focusout",v)}});
return _.n("yt-button-shape",{el:u,id:l,class:D},_.n(_.r,{cond:K,then:function(){return _.n($e,{data:K,iconName:d,secondaryIconName:C,focusedOverride:W})}}))},"x");
_.S("web_wiz_button_shape")&&_.SX(ZfB,"yt-button-shape",{props:{data:_.M6,id:_.M6,className:_.M6,iconName:_.M6,secondaryIconName:_.M6,clientOnlyWizTooltipsEnabled:_.M6},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var QG=function(){var u=_.Q.apply(this,arguments)||this;u.keyboardFocused=!1;return u};
_.c(QG,_.Q);QG.prototype.onFocus=function(){var u=_.GB().resolve(_.vv(_.zF));u&&(this.keyboardFocused=u.isKeyBoardInUse())};
QG.prototype.onBlur=function(){this.keyboardFocused=!1};
QG.prototype.renderIdom=function(){var u=this;if(this.data){var K=gY(this.data,!!this.iconName,this.data.ignoreIconSizeOverride),l=hRn(this.data);this.data.focused=this.keyboardFocused;oNw(this.data,function(){var D;mQ("yt-icon",{icon:u.iconName,active:(D=u.data)==null?void 0:D.toggled,size:K,style:"width: "+K+"px; height: "+K+"px;",iconFilter:l},yI)},function(){var D;
mQ("yt-icon",{icon:u.secondaryIconName,active:(D=u.data)==null?void 0:D.toggled,size:K,style:"width: "+K+"px; height: "+K+"px;",iconFilter:l},yI)});
_.xs(this.hostElement,"yt-renderidom-finished")}};
_.MN.Object.defineProperties(QG,{template:{configurable:!0,enumerable:!0,get:function(){if(UVC===void 0){var u=document.createElement("template");_.z(u,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);u.content.insertBefore(RQ2().content.cloneNode(!0),u.content.firstChild);u.content.insertBefore(zQa().content.cloneNode(!0),u.content.firstChild);UVC=u}u=UVC;return u}}});
QG.prototype.onBlur=QG.prototype.onBlur;QG.prototype.onFocus=QG.prototype.onFocus;_.g([_.e(yc0),_.N("design:type",Object)],QG.prototype,"ytIdomTemplatingBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],QG.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],QG.prototype,"iconName",void 0);_.g([_.U(),_.N("design:type",String)],QG.prototype,"secondaryIconName",void 0);_.g([_.U(),_.N("design:type",Object)],QG.prototype,"keyboardFocused",void 0);
_.g([_.PF("focusin"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QG.prototype,"onFocus",null);_.g([_.PF("focusout"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QG.prototype,"onBlur",null);_.g([_.E9({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.S("web_wiz_button_shape")})],QG);_.SX(_.rf(function(u){function K(){l().seconds&&C(Y7w({seconds:Number(l().seconds)-Date.now()/1E3}))}
var l=u.targetTimestamp;u=u.className;var D=_.y(_.On("",void 0,"U1Q8Ae")),d=D.next().value,C=D.next().value;_.N_(function(){K();var W=setInterval(function(){K()},1E3);
_.No(function(){clearInterval(W)})});
return _.n("yt-countdown",{class:_.JB("ytCountDownHost",u)},_.n("div",null,d))},"y"),"yt-countdown",{props:{targetTimestamp:_.M6,
className:_.xo}});_.P2=_.rf(function(u){var K=u.data;var l=u.className;var D=u.style;var d=u.useOutlinedIcon;var C=u.buttonOverrides;var W=u.animatedTextProps;var M=u.onClick;var q=u.target;var v=_.o9("button-view-model",function(V){V.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var m=K().targetId;m&&_.$$0(_.gw(),m,V);return function(){MPB(_.gw(),V)}}),G=function(){return K().iconName},t,x=(t=_.GB().resolve(_.vv(_.H1)))==null?void 0:t(),O=function(){var V=K();
var m=C==null?void 0:C(),Z=W==null?void 0:W(),A=q==null?void 0:q();if(V){var h=xlq(V.type);var C9=!!V.title||!!V.titleFormatted;var Wo=!(!V.iconName&&!V.iconImage);C9=Wo&&!C9?"icon-only":Wo?V.iconTrailing||V.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;C9==="icon-only-40"&&(h="text");var $y,co=($y=m==null?void 0:m.disabled)!=null?$y:V.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||V.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";$y=Object;Wo=$y.assign;var UZ=V.title,
tH=V.titleFormatted;Z=Z&&Z.numberText&&!isNaN(Number(Z.numberValue))?Z:void 0;var gq=V.accessibilityText,Bo=tcH(V.style),uk=Siq(V.state),ca=bAR(V.buttonSize);A=Gqq(V,v,co,M,A);co=co&&!V.onDisabledTap;var Ha=_.lt(V==null?void 0:V.onTap);var hH={};Ha&&(hH.clickedVisualElement=vN9(V,Ha));Ha=_.dY({elementsCommand:V.onTap,forceNewState:!0,additionalCommandArgs:hH});Ha=C4(Ha)?Ha:void 0;var tR=V.customFontColor,ns=V.customBackgroundColor;hH=V.customBorderColor;var Pa=V.customDarkThemeFontColor,QV=V.customDarkThemeBackgroundColor,
Ls=V.customDarkThemeBorderColor;tR=x&&Pa?Pa:tR;ns=x&&QV?QV:ns;hH=x&&Ls?Ls:hH;hH={color:tR?_.Kg(tR):void 0,backgroundColor:ns?_.Kg(ns):void 0,borderColor:hH?_.Kg(hH):void 0};V=Wo.call($y,{},{buttonText:UZ,formattedButtonText:tH,animatedTextProps:Z,accessibilityLabel:gq,style:Bo,type:h,state:uk,size:ca,iconPosition:C9,onTap:A,disabled:co,aTagConfig:Ha,customColors:hH,tooltipText:V.tooltip},m)}else V={style:"mono",type:"text",state:"active",size:"M"};V.focused=B();return V},a=function(){return gY(O(),
!!K().iconName)};
u=_.y(_.On(!1,void 0,"bl7g4"));t=u.next().value;var f=u.next().value,B=t;u=_.p4(function(){var V=_.GB().resolve(_.vv(_.zF));V&&f(V.isKeyBoardInUse());return!1});
t=_.p4(function(){f(!1);return!1});
_.gp(function(){var V,m=_.b(K==null?void 0:(V=K())==null?void 0:V.onVisible,_.K4);m&&_.D$(m,{disableClickTracking:!0})},"MLqBF");
var p=_.S("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.n("button-view-model",{el:v,class:_.JB("yt-spec-button-view-model",l),"on:focusin":u,"on:focusout":t},_.n(_.r,{cond:function(){var V;return(K==null?0:(V=K())==null?0:V.iconImage)?{sources:[K().iconImage]}:void 0},
then:function(V){return _.n($e,{data:O,icon:function(){return _.n(_.n4,{data:V,alt:"",targetWidth:a,targetHeight:a,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:p})},
else:function(){return _.n($e,{data:O,icon:function(){return _.n(_.VB,{icon:G,active:function(){return(d==null?0:d())?!1:O().toggled},
animateIcon:function(){var V;return!!(D==null?0:(V=D())==null?0:V.animateIcon)},
size:a})},
clientOnlyWizTooltipsEnabled:p})}}))},"z");
_.P2.idomCompat={callbacks:{onClick:!0}};_.SX(_.rf(function(u){return _.n("yt-button-view-model",{id:u.id,class:_.JB(u.scopingClassName,u.classes),icon:function(){var K;return(K=u.icon)==null?void 0:K.call(u)},
"dialog-dismiss":function(){var K;return((K=u.dialogDismiss)==null?0:K.call(u))?"":void 0}},_.n(_.P2,{data:function(){var K;
return(K=u.data)==null?void 0:K.call(u)},
className:function(){var K;return(K=u.className)==null?void 0:K.call(u)},
style:function(){var K;return(K=u.style)==null?void 0:K.call(u)},
useOutlinedIcon:function(){var K;return(K=u.useOutlinedIcon)==null?void 0:K.call(u)},
buttonOverrides:function(){var K;return(K=u.buttonOverrides)==null?void 0:K.call(u)},
animatedTextProps:function(){var K;return(K=u.animatedTextProps)==null?void 0:K.call(u)},
onClick:function(K){var l;return(l=u.onClick)==null?void 0:l.call(u,K)}}))},"A"),"yt-button-view-model",{props:{data:_.M6,
className:_.M6,style:_.M6,useOutlinedIcon:_.M6,buttonOverrides:_.M6,animatedTextProps:_.M6,onClick:_.xo,scopingClassName:_.M6,id:_.M6,icon:_.M6,dialogDismiss:_.M6,classes:_.M6,target:_.xo}});var JQ=function(){var u=_.Q.apply(this,arguments)||this;u.isGoalActive=!0;return u};
_.c(JQ,_.Q);JQ.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
JQ.prototype.progressBarChanged=function(){var u=_.bi(this.hostElement).querySelector("#progress-bar-progress"),K,l,D,d=(D=Number((K=this.creatorGoalState)==null?void 0:K.currentGoalCount)/Number((l=this.creatorGoalState)==null?void 0:l.totalGoalCount)*100)!=null?D:0,C;u.style.width=((C=Math.min(d,100))!=null?C:0)+"%"};
JQ.prototype.goalStateChanged=function(){var u;this.isGoalActive=((u=this.creatorGoalState)==null?void 0:u.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var K;u={"--yt-progress-bar-color":j6L((K=this.creatorGoalState)==null?void 0:K.progressBarColor)};_.e8(this.hostElement,u)};
JQ.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.MN.Object.defineProperties(JQ.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var u;return this.isGoalActive&&!((u=this.creatorGoalState)==null||!u.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.creatorGoalState)==null?0:u.endTimestampMs){var K;u=Number((K=this.creatorGoalState)==null?void 0:K.endTimestampMs)/1E3;return{seconds:String(u)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.creatorGoalState)==null?0:u.themedTargetImage){var K;u=_.b((K=this.creatorGoalState)==null?void 0:K.themedTargetImage,U6C);return this.isAppDarkTheme()?u==null?void 0:u.imageDark:u==null?void 0:u.imageLight}}}});
_.MN.Object.defineProperties(JQ,{template:{configurable:!0,enumerable:!0,get:function(){return IRA()}}});
JQ.prototype.goalStateChanged=JQ.prototype.goalStateChanged;JQ.prototype.progressBarChanged=JQ.prototype.progressBarChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],JQ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Dl),_.N("design:type",Object)],JQ.prototype,"ytLiveChatReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);
_.g([_.U({selectorArgs:["data.creatorGoalEntityKey"],selector:function(u,K){return _.eZ(u.entities,"creatorGoalEntity",K)}}),
_.N("design:type",Object)],JQ.prototype,"creatorGoalState",void 0);_.g([_.U(),_.N("design:type",Object)],JQ.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],JQ.prototype,"isGoalActive",void 0);_.g([_.R("creatorGoalState","isGoalActive"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],JQ.prototype,"shouldShowCountdown",null);_.g([_.R("creatorGoalState"),_.N("design:type",Object),_.N("design:paramtypes",[])],JQ.prototype,"endTimestamp",null);
_.g([_.R("creatorGoalState"),_.N("design:type",Object),_.N("design:paramtypes",[])],JQ.prototype,"targetIconThemedImage",null);_.g([_.JU("creatorGoalState.currentGoalCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JQ.prototype,"progressBarChanged",null);_.g([_.JU("creatorGoalState.creatorGoalState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JQ.prototype,"goalStateChanged",null);
_.g([_.E9({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],JQ);_.F(JQ,"yt-creator-goal-progress-flow-view-model",function(){return IRA()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var YMk;var Akw;var jK=function(){return _.Q.apply(this,arguments)||this};
_.c(jK,_.Q);jK.prototype.attached=function(){var u,K,l;if(this==null?0:(u=this.data)==null?0:(K=u.pdgPurchasedBumperLoggingDirectives)==null?0:(l=K.loggingDirectives)==null?0:l.trackingParams){var D,d,C;aNo(this==null?void 0:(D=this.data)==null?void 0:(d=D.pdgPurchasedBumperLoggingDirectives)==null?void 0:(C=d.loggingDirectives)==null?void 0:C.trackingParams)}};
jK.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],jK.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],jK.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],jK.prototype,"data",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],jK);
_.F(jK,"yt-live-chat-item-bumper-view-model",function(){if(Akw===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;YMk===void 0&&(YMk=document.createElement("template"));var D=YMk;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Akw=u}u=Akw;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var XlB;var mVa;_.n1=function(u,K){this.data=u;this.actions=K;this.data=u;this.actions=K};
_.yo=function(){};_.B2={};_.B2.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(u,K){ztL(this.hostElement,u,K)},
getNavigationEndpointPopupAction:function(u){return ety(u,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(u,K){Rtq(this.hostElement,u,K,this.openPopupConfig)}};var TIq=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.po={};
_.po.YtEndpointBehavior=[_.B2.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.E3("openPopupConfig");(this.useClickHandler=_.L0("useClickHandler",!1))?this.hostElement.addEventListener("click",fg(this,this.onEndpointClick_)):(Yf(this.hostElement,"tap",fg(this,this.onEndpointTap_)),Yf(this.hostElement,"touchend",fg(this,this.onEndpointTouchEnd_)));Yf(this.hostElement,"touchstart",fg(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
fg(this,this.onEndpointTapStart_))},
onEndpointClick_:function(u){QUo(this.hostElement,u,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(u){var K=this.hostElement,l=this.openPopupConfig,D=this.disableCommandHandlerOverride;D=D===void 0?!1:D;var d=UlR(u);if(d){d.href&&dn(d.href);var C=u.detail;var W=C.sourceEvent;C=C.preventer;W=W.button!==void 0?W.button===0&&!AB(W):C?!AB(C):!0;d.data&&W&&fNy(K,d,u,l,D)}},
onEndpointTouchEnd_:function(u){AB(u)||UlR(u)&&u.preventDefault()},
onEndpointTapStart_:function(u){p9L(u)}}];var w9n="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),VcH=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var hQk={};hQk.YtPlaintextBehavior=[_.T7,{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(u){u.preventDefault();u=u.clipboardData.getData("text/plain");document.execCommand("insertText",!1,u)},
preventRichTextFormatting_:function(u){_.f3&&(u=u.detail.keyboardEvent,u.stopImmediatePropagation(),u.preventDefault())}}];var Emk;var LZw;var TF=function(){var u=_.Q.apply(this,arguments)||this;u.ignoreShadyDom=!1;u.hasChange_=!1;u.hasSetTitle_=!1;u.useIOObserverForVisibilityLogging_=_.S("kevlar_use_vimio_behavior")&&_.E3("INNERTUBE_CLIENT_NAME")==="WEB";u.ytFormattedStringObserverHandlerKeys_=void 0;return u};
_.c(TF,_.Q);_.I=TF.prototype;_.I.created=function(){this.useIOObserverForVisibilityLogging_=_.S("kevlar_use_vimio_behavior")&&_.E3("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.I.ready=function(){_.E3("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_()};
_.I.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.I.detached=function(){this.unobserveIOObservers_()};
_.I.clearContents_=function(){for(var u=this.getRoot(),K=u.lastChild;K&&K.tagName!=="STYLE";){try{u.removeChild(K)}catch(l){break}K=u.lastChild}};
_.I.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var u=_.y(this.ytFormattedStringObserverHandlerKeys_),K=u.next();!K.done;K=u.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(K.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.I.resetForAttributedString=function(){var u=this.getRoot();!u.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),u.appendChild(this.ytAttributedStringElementRef))};
_.I.resetForFormattedString=function(){var u=this.getRoot(),K=u.querySelector("yt-attributed-string");K&&(this.ytAttributedStringElementRef=u.removeChild(K))};
_.I.textChanged=function(){this.textChanged_(this.text)};
_.I.textChanged_=function(u){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!u||!u.runs&&!u.simpleText;if(_.S("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var K=this.hostElement.firstChild;K&&K.nodeName==="FONT";){var l=K;K=K.nextSibling;this.hostElement.removeChild(l)}K=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
l=u.simpleText;var D;!l&&((D=u.runs)==null?void 0:D.length)===1&&this.isSimpleString_(u.runs[0])&&(l=u.runs[0].text);l!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.E3("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(l!==void 0){try{K.textContent=l}catch(d){}K.textContent||(this.isEmpty=!0)}else u=u.runs,l!==void 0&&(u=[{text:l}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),u&&this.updateText_(u),
K.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.I.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)};
_.I.computeAriaLabel_=function(u){return u};
_.I.computeEllipsisTruncateStyling=function(u,K){return u&&!K};
_.I.computeUseAttributedString=function(u){return _.S("web_replace_formatted_with_attributed_string")&&hKq(u)&&!this.disableAttributedString&&!this.enableContentEditable};
_.I.setNodeStyle_=function(u,K){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.S("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?K.removeAttribute("dir"):K.setAttribute("dir","auto");K.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");K.style.color="";var l=null;this.noStyles||(u.bold&&(K.classList.add("bold"),l="bold"),u.deemphasize&&(K.classList.add("deemphasize"),l="deemphasize"),u.italics&&K.classList.add("italic"),
u.strikethrough&&K.classList.add("strikethrough"),u.errorUnderline&&(K.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),u.bracket&&K.classList.add("bracket"),u.textColor&&(K.style.color=_.ui(u.textColor)));l!==K.getAttribute("style-target")&&(l?K.setAttribute("style-target",l):K.removeAttribute("style-target"))};
_.I.setUpVisibilityLogging_=function(u,K){var l=this;this.setNodeTrackingParams_(u,K);var D;((D=K.data)==null?0:D.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(u=this.ytRendererBehavior.visibilityObserver.observe(K,function(d){var C=l.ytRendererBehavior.getVisibilityLogger();C&&C.reportShown(d)},this.ytRendererBehavior.visibilityOptionVisible_),K=this.ytRendererBehavior.visibilityObserver.observe(K,function(d){var C=l.ytRendererBehavior.getVisibilityLogger();
C&&C.reportHidden(d)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(u),this.ytFormattedStringObserverHandlerKeys_.push(K))};
_.I.setNodeTrackingParams_=function(u,K){K.data||(K.data={});if((u=u.loggingDirectives?u.loggingDirectives.trackingParams:null)||K.data.trackingParams)K.data.trackingParams=u};
_.I.computeHasLinkOnly_=function(u){return!(!u||u.length!==1||this.noEndpoints||!u[0].navigationEndpoint)};
_.I.getRoot=function(){var u=this.buildScopeDomOptions();return this.enableContentEditable?_.bi(_.bi(this.hostElement,u).querySelector("[contenteditable]")):_.bi(this.hostElement,u)};
_.I.fixContenteditableScope=function(){var u=function(K){K&&(K.nodeType===1&&K.classList&&(K.classList.add("style-scope"),K.classList.add("yt-formatted-string")),K.childNodes&&K.childNodes.forEach(function(l){u(l)}))};
u(this.getRoot())};
_.I.updateText_=function(u){for(var K=u.length,l=this.getRoot(),D=l.firstChild;D&&D.nodeName==="STYLE";)D=D.nextSibling;for(var d=0;d<K&&D;){var C=u[d],W=_.S("remove_cr_char")&&C.text?C.text.replace("\r",""):C.text;if(this.isSimpleString_(C)&&!this.useMixedDirectionFormattedStrings)if(D.nodeName==="#text"){D.textContent!=W&&(D.textContent=W);d++;D=D.nextSibling;continue}else break;if(_.b(C,Lr))break;else if(!this.noEndpoints&&C.navigationEndpoint){if(D.nodeName!=="A")break;this.setDataOnAnchor_(D,
C.navigationEndpoint)}else if(D.nodeName!=="SPAN")break;this.setNodeStyle_(C,D);this.setUpVisibilityLogging_(C,D);D.textContent!=W&&(D.textContent=W);d++;D=D.nextSibling}if(D)for(C=l.lastChild,D=d?D.previousSibling:null;C&&C!=D;){try{l.removeChild(C)}catch(M){break}C=l.lastChild}d!==K&&this.addTextNodes_(u,d)};
_.I.addTextNodes_=function(u,K){for(var l=document.createDocumentFragment(),D=u.length;K<D;K++){var d=u[K],C=_.S("remove_cr_char")&&d.text?d.text.replace("\r",""):d.text;if(this.isSimpleString_(d)&&!this.useMixedDirectionFormattedStrings)l.appendChild(document.createTextNode(C));else{var W=_.b(d,Lr);if(W){if(W.image){var M=document.createElement("img");W.isCustomEmoji||M.classList.add("small-emoji");M.classList.add("emoji");W.isCustomEmoji&&(M.dataset.emojiId=W.emojiId);M.src=_.bt(W.image.thumbnails,
this.emojiSize);(d=this.get("image.accessibility.accessibilityData.label",W))?M.alt=d:W.shortcuts&&W.shortcuts.length>0?M.alt=W.shortcuts[0]:W.emojiId&&(M.alt=W.emojiId);l.appendChild(M);this.hasEmoji=!0}}else!this.noEndpoints&&d.navigationEndpoint?(M=document.createElement("a"),M.classList.add("yt-simple-endpoint"),M.setAttribute("spellcheck","false"),this.setDataOnAnchor_(M,d.navigationEndpoint)):M=document.createElement("span"),this.setNodeStyle_(d,M),this.setUpVisibilityLogging_(d,M),M.appendChild(document.createTextNode(C)),
l.appendChild(M)}}this.getRoot().appendChild(l)};
_.I.isSimpleString_=function(u){return(this.noEndpoints||!u.navigationEndpoint)&&!_.b(u,Lr)&&(this.noStyles||!(u.bold||u.deemphasize||u.italics||u.strikethrough||u.errorUnderline||u.bracket||u.textColor))&&!u.loggingDirectives};
_.I.getRawText=function(){return _.WI(this.text)};
_.I.getFirstRunText=function(){var u;if(((u=this.text)==null?0:u.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.I.setFirstRunText=function(u){var K;((K=this.text)==null?0:K.runs)&&this.text.runs[0]&&(this.text.runs[0].text=u,this.textChanged_(this.text))};
_.I.setDataOnAnchor_=function(u,K){var l=this;!_.S("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(K)||this.isSignalServiceEndpoint_(K)?(u.onclick=this.serviceEndpointHandler_(K),lY(u,"#")):qKZ({text:this.text,command:K},function(){aaL(u,K,l.target)})};
_.I.isServiceEndpoint_=function(u){var K;return!((K=_.b(u==null?void 0:u.commandMetadata,_.nN))==null||!K.sendPost)};
_.I.isSignalServiceEndpoint_=function(u){return!!_.b(u,_.Ux)};
_.I.serviceEndpointHandler_=function(u){var K=this;return function(l){_.c0(K.hostElement,[u]);l.preventDefault()}};
_.I.overrideAriaLabelChanged_=function(){var u=this.getRoot();this.enableContentEditable&&u&&u.setAttribute("aria-label",this.overrideAriaLabel)};
_.I.enableContentEditableChanged_=function(){var u=this,K=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),K=_.bi(this.hostElement,K),!K.lastChild||K.lastChild instanceof HTMLElement&&K.lastChild.id!=="contenteditable-root"){var l=document.createElement("div");l.id="contenteditable-root";l.setAttribute("contenteditable","true");l.setAttribute("dir","auto");l.onfocus=function(){u.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
K.appendChild(l);this.overrideAriaLabel&&l.setAttribute("aria-label",this.overrideAriaLabel)}}else l=_.O9(this.hostElement).firstChild,l instanceof HTMLElement&&l.id==="contenteditable-root"&&_.bi(this.hostElement,K).removeChild(l)};
_.I.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.I.getNodesForVisibilityLogging_=function(){return _.Of(this.getRoot().childNodes,function(u){var K;return!((K=u.data)==null||!K.trackingParams)})};
_.I.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.I.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var u=this.ytRendererBehavior.getVisibilityLogger();u&&this.getNodesForVisibilityLogging_().forEach(function(K){u.reportShown(K)})}};
_.I.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var u=this.ytRendererBehavior.getVisibilityLogger();u&&this.getNodesForVisibilityLogging_().forEach(function(K){u.reportHidden(K)})}};
_.MN.Object.defineProperties(TF.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.S("enable_mixed_direction_formatted_strings")}}});
TF.prototype.enableContentEditableChanged_=TF.prototype.enableContentEditableChanged_;TF.prototype.overrideAriaLabelChanged_=TF.prototype.overrideAriaLabelChanged_;TF.prototype.ellipsisTruncateChanged_=TF.prototype.ellipsisTruncateChanged_;TF.prototype.textChanged=TF.prototype.textChanged;_.g([_.e(hQk.YtPlaintextBehavior),_.N("design:type",Object)],TF.prototype,"ytPlaintextBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],TF.prototype,"ytComponentBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],TF.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],TF.prototype,"text",void 0);_.g([_.U(),_.N("design:type",Boolean)],TF.prototype,"noEndpoints",void 0);_.g([_.U(),_.N("design:type",Boolean)],TF.prototype,"noStyles",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],TF.prototype,"isDarkTheme",void 0);
_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],TF.prototype,"splitLines",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],TF.prototype,"forceDefaultStyle",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],TF.prototype,"ellipsisTruncate",void 0);_.g([_.U(),_.N("design:type",Object)],TF.prototype,"ignoreShadyDom",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.N("design:type",Boolean)],TF.prototype,"ellipsisTruncateStyling",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.N("design:type",String)],TF.prototype,"ariaLabel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],TF.prototype,"isEmpty",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.N("design:type",Boolean)],TF.prototype,"hasLinkOnly_",void 0);_.g([_.U(),_.N("design:type",Boolean)],TF.prototype,"hasEmoji",void 0);_.g([_.U(),_.N("design:type",Boolean)],TF.prototype,"disableAttributedString",void 0);_.g([_.U(),_.N("design:type",Boolean)],TF.prototype,"isOverlay",void 0);_.g([_.U(),_.N("design:type",Boolean)],TF.prototype,"linkInheritColor",void 0);
_.g([_.U(),_.N("design:type",Boolean)],TF.prototype,"noPreWrap",void 0);_.g([_.U(),_.N("design:type",Boolean)],TF.prototype,"userInput",void 0);_.g([_.U({value:16}),_.N("design:type",Number)],TF.prototype,"emojiSize",void 0);_.g([_.U(),_.N("design:type",String)],TF.prototype,"target",void 0);_.g([_.U(),_.N("design:type",Boolean)],TF.prototype,"enableContentEditable",void 0);_.g([_.U(),_.N("design:type",String)],TF.prototype,"overrideAriaLabel",void 0);
_.g([_.U(),_.N("design:type",Boolean)],TF.prototype,"respectHtmlDir",void 0);_.g([_.U(),_.N("design:type",Boolean)],TF.prototype,"respectLangDir",void 0);_.g([_.R("plaintextOnly"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],TF.prototype,"useMixedDirectionFormattedStrings",null);_.g([_.U({computed:"computeUseAttributedString(text)"}),_.N("design:type",Boolean)],TF.prototype,"useYtAttributedString",void 0);
_.g([_.JU("text"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TF.prototype,"textChanged",null);_.g([_.JU("ellipsisTruncate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TF.prototype,"ellipsisTruncateChanged_",null);_.g([_.JU("overrideAriaLabel"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TF.prototype,"overrideAriaLabelChanged_",null);
_.g([_.JU("enableContentEditable"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TF.prototype,"enableContentEditableChanged_",null);_.g([_.E9({is:"yt-formatted-string",disableElementRegistration:!0})],TF);
_.F(TF,"yt-formatted-string",function(){if(LZw===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Emk===void 0&&(Emk=document.createElement("template"));var D=Emk;l.call(K,D.content.cloneNode(!0),u.content.firstChild);LZw=u}u=LZw;return u});var uJN;var KcH;var lns;var D52;var wh=function(){var u=_.Q.apply(this,arguments)||this;u.focused=!1;u.disabled=!1;u.isOverlay=!1;return u};
_.c(wh,_.Q);wh.prototype.triggerDown=function(){if(!this.disabled){_.cF(this.hostElement,"down",!0);var u;(u=this.currentAnimation)==null||u.cancel()}};
wh.prototype.triggerUp=function(){if(!this.disabled){_.cF(this.hostElement,"down",!1);var u=this.fillElement;var K=this.strokeElement;typeof GroupEffect==="function"?(u=new GroupEffect([Z$H(u),YHw(K)]),u=new Animation(u,document.timeline)):u=new plS(u,K);this.currentAnimation=u;var l;(l=this.currentAnimation)==null||l.play()}};
_.g([_.BF(".stroke"),_.N("design:type",HTMLElement)],wh.prototype,"strokeElement",void 0);_.g([_.BF(".fill"),_.N("design:type",HTMLElement)],wh.prototype,"fillElement",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],wh.prototype,"focused",void 0);_.g([_.U(),_.N("design:type",Object)],wh.prototype,"disabled",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],wh.prototype,"isOverlay",void 0);_.g([_.E9({is:"yt-interaction",disableElementRegistration:!0})],wh);
_.F(wh,"yt-interaction",function(){if(D52===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;lns===void 0&&(lns=document.createElement("template"));var D=lns;l.call(K,D.content.cloneNode(!0),u.content.firstChild);D52=u}u=D52;return u},{mode:2});var FO=function(){return _.Q.apply(this,arguments)||this};
_.c(FO,_.Q);_.I=FO.prototype;_.I.ready=function(){var u=this,K=_.bi(this.hostElement).querySelector("#button");K.addEventListener("focus",function(){bGC||(bGC=new Sh2);u.keyboardFocused=bGC.isKeyBoardInUse()});
K.addEventListener("blur",function(){u.keyboardFocused=!1;u.rippleUp_()})};
_.I.computeTabIndex_=function(u){return u?-1:0};
_.I.computeButtonAriaPressed_=function(u){if(this.toggleable)return u?"true":"false"};
_.I.rippleDown_=function(){_.bi(this.hostElement).querySelector("#interaction").triggerDown()};
_.I.rippleUp_=function(){_.bi(this.hostElement).querySelector("#interaction").triggerUp()};
_.I.onPressedChanged_=function(){var u=_.O9(_.bi(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.O9(_.bi(this.hostElement).querySelector("#button")).children[0];u&&(u.active=this.pressed)};
FO.prototype.onPressedChanged_=FO.prototype.onPressedChanged_;FO.prototype.rippleUp_=FO.prototype.rippleUp_;FO.prototype.rippleDown_=FO.prototype.rippleDown_;_.g([_.U(),_.N("design:type",String)],FO.prototype,"label",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],FO.prototype,"disabled",void 0);_.g([_.U(),_.N("design:type",Boolean)],FO.prototype,"pressed",void 0);_.g([_.U(),_.N("design:type",Object)],FO.prototype,"toggleable",void 0);
_.g([_.U(),_.N("design:type",Boolean)],FO.prototype,"untabbable",void 0);_.g([_.U(),_.N("design:type",Boolean)],FO.prototype,"keyboardFocused",void 0);_.g([_.PF("down"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FO.prototype,"rippleDown_",null);_.g([_.PF("up"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FO.prototype,"rippleUp_",null);
_.g([_.JU("pressed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FO.prototype,"onPressedChanged_",null);_.g([_.E9({is:"yt-icon-button",disableElementRegistration:!0})],FO);
_.F(FO,"yt-icon-button",function(){if(KcH===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;uJN===void 0&&(uJN=document.createElement("template"));var D=uJN;l.call(K,D.content.cloneNode(!0),u.content.firstChild);KcH=u}u=KcH;return u},{mode:2});var d5B=_.oj(["aria-"]),VG={};VG.YtRenderButtonBehavior=[_.Y.YtRendererBehavior,_.po.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!!_.GB().resolve(_.vv(_.zF))&&_.S("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 u=this.computeHref_(this.endpoint,!0);u?lY(this.elements_.endpoint,u):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){u=this.buttonClass.split(" ");u=_.y(u);for(var K=u.next();!K.done;K=u.next())K=K.value,_.cF(this.hostElement,K,!0),this.elements_.button&&_.cF(this.elements_.button,K,!0),this.elements_.text&&_.cF(this.elements_.text,K,!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&&(u=null,this.buttonAccessibility&&(u=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=u:u?_.rm([_.SA(d5B)],this.elements_.button,"aria-label",u):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var u=_.GB().resolve(_.vv(_.zF));u&&(this.keyboardFocused=u.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.GF("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,_.wM(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.wM(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(u,K){if(K)for(u=K.split(" "),u=_.y(u),K=u.next();!K.done;K=u.next())K=K.value,_.cF(this.hostElement,K,!1),this.elements_.button&&_.cF(this.elements_.button,K,!1),this.elements_.text&&_.cF(this.elements_.text,K,!1)},
buttonIconChanged_:function(u){this.elements_.icon?u?(this.elements_.icon.icon=u,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.wM(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.ab(this.hostElement,"is-paper-button-with-icon",!1)):u&&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"&&_.wM(this.elements_.button).appendChild(this.elements_.icon):_.wM(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.ab(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(u){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,u){var K=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(u){case "yt_icon_button_with_label":K=!0;_.cF(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();u=_.wM(this.elements_.button).firstElementChild;
this.elements_.icon=u;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.wM(this.elements_.endpoint).appendChild(this.elements_.button);_.wM(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.GF("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;_.wM(this.elements_.button).appendChild(this.elements_.text);_.wM(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":K=!0,this.elements_.button=this.getYtIconButton_(),u=_.wM(this.elements_.button).firstElementChild,this.elements_.icon=u,this.setIconActive_(this.elements_.icon),
_.wM(this.elements_.endpoint).appendChild(this.elements_.button)}_.ab(this.hostElement,"is-icon-button",K);_.ab(this.hostElement,"is-paper-button",!K);_.ab(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 l;_.bi((l=this.container.hostElement)!=null?l:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.wM(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(u){if(u!=void 0||this.disabled)this.disabled=u,this.elements_.button&&(this.elements_.button.disabled=u)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(u){_.S("kevlar_system_icons")&&u&&this.data&&(this.data.isSelected!==void 0?u.active=this.data.isSelected:this.data.isToggled!==void 0&&(u.active=this.data.isToggled))},
observeBasicPalette_:function(u){_.mE(this.hostElement,u)},
disabledChanged_:function(u){this.data&&this.set("data.isDisabled",u)},
onYtButtonTap_:function(u){if(this.disabled)u.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.c0(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(u=this.disableCommandHandlerOverride,!this.data||!this.data.command||u||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.S("handle_service_request_actions")||_.c0(this.hostElement,[this.serviceEndpoint]),
_.xs(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.S("handle_service_request_actions")?(u=[],this.serviceEndpoint&&u.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&u.push(this.data.command),u.length&&_.ay(this.hostElement,u,this.hostElement)):this.data&&this.data.command&&(u=this.data.command,u.accountUnlinkCommand||u.accountLinkCommand||u.insertAdCommand||u.insertHighlightMarkerCommand||
u.createLivestreamHighlightClipCommand||u.getVideoUploadFeedbackCommand||u.musicDeletePrivatelyOwnedEntityCommand||u.ypcCancelRecurrenceEndpoint||u.getMultiSelectCommandEndpoint?_.c0(this.hostElement,[u]):_.ay(this.hostElement,[u],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 u,K=_.bi((u=this.container.hostElement)!=null?u:this.container);K.lastChild&&K.lastChild.tagName!="STYLE";)try{K.removeChild(K.lastChild)}catch(l){break}},
getYtIconButton_:function(){var u=this.reuseEnabled_()?_.GF("yt-icon-button"):document.createElement("yt-icon-button"),K=_.wM(u).firstElementChild;if(K&&K.is!="yt-icon"){for(K=_.wM(u);K.lastChild;)K.removeChild(K.lastChild);K=null}K||(K=this.getIcon_(),this.setIconActive_(K),_.wM(u).appendChild(K));return u},
reuseEnabled_:function(){return _.S("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.GF("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.GF("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Cxw={};
_.Cxw.YtButtonBehavior=[VG.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var u=this.data;u&&(this._setEndpoint(this.computeEndpoint_(u)),this._setServiceEndpoint(this.computeServiceEndpoint_(u)),this._setCommand(this.computeCommand_(u)),this._setButtonIcon(this.computeButtonIcon_(u)),this._setButtonText(this.computeButtonText_(u,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(u)),this._setButtonTooltip(this.computeTooltip_(u)),this._setButtonClass(this.computeButtonClass_(u)),this._setIconPositionType(this.computeIconPositionType_(u)),this.updateRenderedElements())},
setPressedState:function(u){var K;if((K=this.elements_)==null?0:K.button)this.elements_.button.pressed=!!u},
computeIconPositionType_:function(u){return u&&u.iconPosition||null},
computeEndpoint_:function(u){var K=u&&u.navigationEndpoint,l=this.get("data.command.commandMetadata.webCommandMetadata.url"),D=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return K?K:u&&u.command&&u.command.modalEndpoint?u.command:l&&!D&&u.command?u.command:null},
computeServiceEndpoint_:function(u){var K=u&&u.serviceEndpoint,l=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return K?K:l&&u.command?u.command:null},
computeCommand_:function(u){return u&&u.command||null},
computeButtonIcon_:function(u){return u&&u.icon&&u.icon.iconType?_.fr(u.icon.iconType):null},
computeButtonText_:function(u,K){return!K&&u&&u.text||null},
computeAccessibility_:function(u){return this.get("accessibilityData.accessibilityData",u)||u&&u.accessibility||(u&&u.text?{label:this.getSimpleString(u.text)}:null)},
computeTooltip_:function(u){return u?u.isDisabled&&u.disabledTooltip||u.tooltip||null:null},
computeButtonClass_:function(u){var K=u&&u.style?u.style.toLowerCase().replace(/_/g,"-")+" ":"";K+=u&&u.size?u.size.toLowerCase().replace(/_/g,"-")+" ":"";u.colorData&&u.colorData.basicColorPaletteData&&u.colorData.basicColorPaletteData.borderColor&&(K+="palette-with-border");return K.trim()}}];var hB={};var InC;var ytH;var sWw,ok0=function(){return sWw!==void 0?sWw:sWw=document.createElement("template")};
document.head.appendChild(ok0().content);var WcN;var HLB,Me2=function(){return HLB!==void 0?HLB:HLB=document.createElement("template")};
document.head.appendChild(Me2().content);var qDa;var $5N,nkN=function(){return $5N!==void 0?$5N:$5N=document.createElement("template")};
document.head.appendChild(nkN().content);var rt2;var vkB=document.head,Gys=vkB.appendChild,tea;if(rt2===void 0){var x5N=document.createElement("template");_.z(x5N,"\x3c!--css-build:shady--\x3e");x5N.content.insertBefore(nkN().content.cloneNode(!0),x5N.content.firstChild);rt2=x5N}tea=rt2;Gys.call(vkB,tea.content);var SDa=document.head,bLa=SDa.appendChild,OLs;if(qDa===void 0){var cta=document.createElement("template");_.z(cta,"\x3c!--css-build:shady--\x3e");cta.content.insertBefore(Me2().content.cloneNode(!0),cta.content.firstChild);qDa=cta}OLs=qDa;bLa.call(SDa,OLs.content);var anS=document.head,zCB=anS.appendChild,eC2;if(WcN===void 0){var RC2=document.createElement("template");_.z(RC2,"\x3c!--css-build:shady--\x3e");RC2.content.insertBefore(ok0().content.cloneNode(!0),RC2.content.firstChild);WcN=RC2}eC2=WcN;zCB.call(anS,eC2.content);var U5a;_.E4("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");U5a=_.S("web_button_rework")&&_.L0("BUTTON_REWORK")||_.S("web_button_rework_with_live");_.gh=function(){return _.Q.apply(this,arguments)||this};
_.c(_.gh,_.Q);_.gh.prototype.created=function(){this.openPopupConfig=_.E3("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.gh.prototype.onYtNavigate_=function(u){var K=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(u.detail.endpoint);K&&(this.ytOpenPopupBehavior.openPopup(K),u.stopPropagation(),u.preventDefault())};
_.MN.Object.defineProperties(_.gh,{template:{configurable:!0,enumerable:!0,get:function(){if(ytH===void 0){var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
var K=u.content,l=K.insertBefore;InC===void 0&&(InC=document.createElement("template"));var D=InC;l.call(K,D.content.cloneNode(!0),u.content.firstChild);ytH=u}u=ytH;return u}}});
_.gh.prototype.onYtNavigate_=_.gh.prototype.onYtNavigate_;_.g([_.e(_.B2.YtOpenPopupBehavior),_.N("design:type",Object)],_.gh.prototype,"ytOpenPopupBehavior",void 0);_.g([_.e(_.Cxw.YtButtonBehavior),_.N("design:type",Object)],_.gh.prototype,"ytButtonBehavior",void 0);_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],_.gh.prototype,"onYtNavigate_",null);
_.g([_.E9({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:U5a})],_.gh);var fnm;var QWw=_.S("web_button_rework")&&_.L0("BUTTON_REWORK")||_.S("web_button_rework_with_live"),N6=function(){var u=_.Q.apply(this,arguments)||this;u.isPressed=!1;u.forceIconButton=!1;u.forceIconOnly=!1;u.forceModernIconButton=!1;u.skipCommandHandling=!1;u.alignByText=!1;u.fitToVisibleBounds=!0;u.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};u.onTap=function(K){_.xs(u.hostElement,"yt-service-request-sent-button-renderer",K)};
return u};
_.c(N6,_.Q);_.I=N6.prototype;_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.I.onClick=function(u){var K,l=this.disabled||((K=this.data)==null?void 0:K.isDisabled);K=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");l&&K&&u.stopPropagation()};
_.I.computeIcon=function(){var u,K,l=(u=this.data)==null?void 0:(K=u.icon)==null?void 0:K.iconType;if(l)return _.fr(l)};
_.I.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.I.handleUpdateButtonAction=function(u){u=_.b(u,EzR);var K=_.b(u==null?void 0:u.updatedButton,_.lF);if(this.data&&u&&K){var l=this.data;l.targetId&&u.targetId&&l.targetId===u.targetId&&(this.data=K)}};
_.MN.Object.defineProperties(N6.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var u=this;if(this.data){var K=ANR({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.xs(u.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.xs(u.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});K.alignByText=this.alignByText;return K}}}});
_.MN.Object.defineProperties(N6,{template:{configurable:!0,enumerable:!0,get:function(){if(fnm===void 0){var u=document.createElement("template");_.z(u,'\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>');fnm=u}u=fnm;return u}}});
N6.prototype.onClick=N6.prototype.onClick;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],N6.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],N6.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],N6.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],N6.prototype,"isPressed",void 0);
_.g([_.U(),_.N("design:type",Object)],N6.prototype,"forceIconButton",void 0);_.g([_.U(),_.N("design:type",Object)],N6.prototype,"forceIconOnly",void 0);_.g([_.U(),_.N("design:type",Object)],N6.prototype,"forceModernIconButton",void 0);_.g([_.U(),_.N("design:type",Object)],N6.prototype,"skipCommandHandling",void 0);_.g([_.U(),_.N("design:type",Object)],N6.prototype,"alignByText",void 0);_.g([_.U(),_.N("design:type",Object)],N6.prototype,"buttonTooltipPosition",void 0);
_.g([_.U(),_.N("design:type",Object)],N6.prototype,"fitToVisibleBounds",void 0);_.g([_.U({computed:"computeTooltip(data)"}),_.N("design:type",Object)],N6.prototype,"tooltip",void 0);_.g([_.U(),_.N("design:type",Object)],N6.prototype,"overrides",void 0);_.g([_.U(),_.N("design:type",Boolean)],N6.prototype,"disabled",void 0);_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],N6.prototype,"onClick",null);
_.g([_.R("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.N("design:type",Object),_.N("design:paramtypes",[])],N6.prototype,"computedButtonShape",null);_.g([_.E9({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!QWw,cssBuildOptOut:!0}),_.E9({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!QWw,cssBuildOptOut:!0})],N6);var Pxa;var Jtm;var kK=function(){var u=_.Q.apply(this,arguments)||this;u.empty_=!0;u.loadTime=Infinity;u.pendingPaint=!1;u.hasChange_=!1;u.oldThumbnail_=null;u.oldDelayedSrc_="";u.objectURL_=null;return u};
_.c(kK,_.Q);_.I=kK.prototype;_.I.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.I.ready=function(){var u=this.shouldShowPlaceholder_();_.cF(this.hostElement,"no-transition",!0);u&&this.hostElement.classList.add("with-placeholder")};
_.I.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.I.isThumbPreloaded_=function(u){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",u)};
_.I.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||jWa};
_.I.computeThumbnailSrc_=function(u){return u&&u.thumbnails?_.bt(u.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.I.computeAlt_=function(){var u=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&u||""};
_.I.thumbnailChanged_=function(){var u=_.y([this.thumbnail,this.oldThumbnail_]),K=u.next().value;u=u.next().value;this.oldThumbnail_=K;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(u=this.computeThumbnailSrc_(u),this.computeThumbnailSrc_(K)===u))return;_.S("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(K)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):K&&_.L0("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.W_(this,this.onReload_):_.W_(this,this.onShow_):this.resetImage_();K&&(this.hostElement.style.opacity=""+K.opacity)}};
_.I.delayedSrcChanged_=function(){var u=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===u||this.resetImage_()};
_.I.setSrc_=function(u){u?(_.bi(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.bi(this.hostElement).querySelector("#img").src=u):(_.bi(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.I.resetImage_=function(){YDo(this.hostElement);this.empty_=!0;this.setSrc_(jWa);this.ytRendererBehavior.invalidate(!1)};
_.I.observePlaceholderColor_=function(){var u=this.thumbnail&&this.thumbnail.placeholderColor;u?this.hostElement.style.backgroundColor=_.ui(u):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.I.onLoad_=function(){_.bi(this.hostElement).querySelector("#img").src&&_.bi(this.hostElement).querySelector("#img").src!==jWa&&(ZLq(this.hostElement),this.notifyOnLoaded&&_.xs(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.I.onError_=function(){var u=this;if(_.S("web_use_cache_for_image_fallback"))ujL(_.bi(this.hostElement).querySelector("#img").src).then(function(K){u.objectURL_=_.LM(K).toString();u.setSrc_(u.objectURL_)}).catch(function(){_.S("kevlar_woffle_fallback_image")&&u.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.I.onPrescanVisible=function(){this.onShow_()};
_.I.onVisible=function(){if(_.S("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.I.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var u=this.computeSrc_();u!==_.bi(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(u))}};
_.I.onReload_=function(){this.empty_=!1;var u=this.computeSrc_();u!==_.bi(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(u))};
_.I.shouldShowPlaceholder_=function(){return _.S("kevlar_thumbnail_bg")};
kK.prototype.observePlaceholderColor_=kK.prototype.observePlaceholderColor_;kK.prototype.delayedSrcChanged_=kK.prototype.delayedSrcChanged_;kK.prototype.thumbnailChanged_=kK.prototype.thumbnailChanged_;_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],kK.prototype,"alt",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],kK.prototype,"ariaHidden",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],kK.prototype,"ariaLabel",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],kK.prototype,"hidden",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],kK.prototype,"id",void 0);_.g([_.e(_.s$.YtVisibilityBehavior),_.N("design:type",Object)],kK.prototype,"ytVisibilityBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",String)],kK.prototype,"delayedSrc",void 0);
_.g([_.U(),_.N("design:type",Object)],kK.prototype,"thumbnail",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],kK.prototype,"loaded",void 0);_.g([_.U(),_.N("design:type",Boolean)],kK.prototype,"notifyOnLoaded",void 0);_.g([_.U(),_.N("design:type",Number)],kK.prototype,"height",void 0);_.g([_.U(),_.N("design:type",Number)],kK.prototype,"width",void 0);_.g([_.U({value:function(){return"width"}}),
_.N("design:type",String)],kK.prototype,"dimension",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],kK.prototype,"fit",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],kK.prototype,"fitHeight",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],kK.prototype,"fitWidth",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],kK.prototype,"objectFit",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],kK.prototype,"objectPosition",void 0);_.g([_.U(),_.N("design:type",String)],kK.prototype,"preferredThumbnail",void 0);_.g([_.U({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.N("design:type",String)],kK.prototype,"alt_",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],kK.prototype,"sharedTooltipText",void 0);
_.g([_.U(),_.N("design:type",Boolean)],kK.prototype,"ftlEligible",void 0);_.g([_.U({value:void 0}),_.N("design:type",String)],kK.prototype,"observeHiddenOption",void 0);_.g([_.U({value:"observe_once"}),_.N("design:type",String)],kK.prototype,"observePrescanOption",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],kK.prototype,"roundedContainer",void 0);
_.g([_.wn("thumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kK.prototype,"thumbnailChanged_",null);_.g([_.wn("delayedSrc"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kK.prototype,"delayedSrcChanged_",null);_.g([_.JU("thumbnail.placeholderColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kK.prototype,"observePlaceholderColor_",null);
_.g([_.E9({is:"yt-img-shadow",disableElementRegistration:!0})],kK);var jWa=_.L0("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.at()(kK,"yt-img-shadow",function(){if(Jtm===void 0){var u=document.createElement("template");_.z(u,'\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">');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Pxa===void 0&&(Pxa=document.createElement("template"));var D=Pxa;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Jtm=u}u=Jtm;return u},{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 XnR;_.Zl=new _.G$("SCREEN_MANAGER_TOKEN");XnR=new _.G$("LOG_INITIAL_SCREEN_TOKEN");_.YK=_.rf(function(u){function K(C9){return _.b(C9,_.kY)}
function l(){var C9=D().isTogglingDisabled||f()&&D().toggledIsTogglingDisabled,Wo=C9||x()?f():!f();B(Wo);V(!1);if(!C9){var $y;($y=W)==null||$y(!!Wo)}var co;((co=C)==null?0:co())||_.QZ(_.GB().resolve(_.Zl),D().trackingParams);var UZ;if(!Wo||!K(D().defaultButtonViewModel)||(UZ=C)!=null&&UZ()){var tH;!K(D().toggledButtonViewModel)||((tH=C)==null?0:tH())||_.QZ(_.GB().resolve(_.Zl),K(D().toggledButtonViewModel).trackingParams)}else _.QZ(_.GB().resolve(_.Zl),K(D().defaultButtonViewModel).trackingParams)}
var D=u.data,d=u.buttonShapeOverrides,C=u.disableExplicitClickLogging,W=u.onToggle,M=u.style,q=u.useOutlinedIcon,v=u.className,G=function(){var C9,Wo;return f()?(C9=u.animatedTextPropsToggled)==null?void 0:C9.call(u):(Wo=u.animatedTextPropsDefault)==null?void 0:Wo.call(u)},t=_.RZ(function(){return G()?Object.assign({},G(),{shouldAnimate:p()}):void 0},void 0,"ZKEa0b"),x=function(){var C9;
return((C9=A())==null?void 0:C9.isToggled)!==void 0},O=_.y(_.wY(function(){var C9,Wo,$y;
return x()?(C9=A())==null?void 0:C9.isToggled:($y=d==null?void 0:(Wo=d())==null?void 0:Wo.toggled)!=null?$y:D().isToggled})),a=O.next().value;
O=O.next().value;var f=a,B=O;O=_.y(_.wY(function(){var C9,Wo;return(C9=u.animatedTextPropsToggled)==null?void 0:(Wo=C9.call(u))==null?void 0:Wo.shouldAnimate}));
a=O.next().value;O=O.next().value;var p=a,V=O;a=_.y(_.On(!1,void 0,"S11hid"));var m=a.next().value,Z=a.next().value,A=_.Da(function(C9){var Wo;a:{var $y=D().entityKey,co=D().toggledStateEntitySelectorType;if(co)switch(co){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!$y)break;var UZ;C9=(UZ=_.eZ(C9.entities,"sfvAudioItemCurrentlyPlayingEntity",$y))!=null?UZ:void 0;UZ=(Wo=C9==null?void 0:C9.sfvAudioItemPlaybackState)!=null?Wo:void 0;if(UZ==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){Wo=
{isToggled:!0};break a}if(UZ){Wo={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":Wo={isToggled:_.mlw(C9).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":Wo={isToggled:_.mlw(C9).includes("engagement-panel-live-chat-item-section")};break a;default:_.hV(new _.wv("Error: entitySelectorType defined but not matched in selector.",C9,co))}Wo=void 0}return Wo}),h=function(){return Object.assign({},d==null?
void 0:d(),{onToggle:l,
toggleable:!0,toggled:f(),focused:m()})};
return _.n("toggle-button-view-model",{"on:focusin":_.p4(function(){var C9=_.GB().resolve(_.vv(_.zF));C9&&Z(C9.isKeyBoardInUse());return!1}),
"on:focusout":_.p4(function(){Z(!1);return!1})},_.n(_.r,{cond:function(){return f()?K(D().toggledButtonViewModel):K(D().defaultButtonViewModel)},
then:function(C9){return _.n(_.P2,{data:C9,className:v,style:M,useOutlinedIcon:q,buttonOverrides:h,animatedTextProps:t})}}))},"B");
_.YK.idomCompat={callbacks:{onToggle:!0}};_.SX(_.rf(function(u){return _.n("yt-toggle-button-view-model",{class:function(){var K;return(K=u.scopingClassName)==null?void 0:K.call(u)}},_.n(_.YK,{data:function(){var K;
return(K=u.data)==null?void 0:K.call(u)},
buttonShapeOverrides:function(){var K;return(K=u.overrides)==null?void 0:K.call(u)},
animatedTextPropsDefault:function(){var K;return(K=u.animatedTextPropsDefault)==null?void 0:K.call(u)},
animatedTextPropsToggled:function(){var K;return(K=u.animatedTextPropsToggled)==null?void 0:K.call(u)},
disableExplicitClickLogging:function(){var K;return(K=u.disableExplicitClickLogging)==null?void 0:K.call(u)},
onToggle:function(K){var l;return(l=u.onToggle)==null?void 0:l.call(u,K)},
style:function(){var K;return(K=u.style)==null?void 0:K.call(u)},
useOutlinedIcon:function(){var K;return(K=u.useOutlinedIcon)==null?void 0:K.call(u)},
className:function(){var K;return(K=u.className)==null?void 0:K.call(u)}}))},"C"),"yt-toggle-button-view-model",{props:{data:_.M6,
buttonShapeOverrides:_.M6,overrides:_.M6,animatedTextPropsDefault:_.M6,animatedTextPropsToggled:_.M6,disableExplicitClickLogging:_.M6,onToggle:_.xo,style:_.M6,useOutlinedIcon:_.M6,className:_.M6,scopingClassName:_.M6}});var AQ=function(){return _.Q.apply(this,arguments)||this};
_.c(AQ,_.Q);AQ.prototype.onTap=function(u){u.stopPropagation();u=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.EL("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:u})):this.ytLiveChatReduxBehavior.dispatch(_.TT("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:u}))};
_.MN.Object.defineProperties(AQ.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.engagementState)==null?void 0:u.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var u=_.b(this.data.toggleButton,_.Za),K;if(Number(((K=this.likeCountState)==null?void 0:K.likeCountIfIndifferentNumber)||"0")===0){var l;K=((l=this.data.likeCountPlaceholder)==null?void 0:l.content)||""}else{var D,d,C;K=((D=this.likeCountState)==null?void 0:(d=D.likeCountIfIndifferent)==null?void 0:d.content)||((C=this.data.likeCountPlaceholder)==null?void 0:C.content)||""}var W,M;l=((W=this.likeCountState)==null?void 0:(M=
W.likeCountIfLiked)==null?void 0:M.content)||"1";W=_.b(u.toggledButtonViewModel,_.kY);return Object.assign({},u,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.b(u.defaultButtonViewModel,_.kY),{title:K})},toggledButtonViewModel:{buttonViewModel:Object.assign({},W,{title:l})}})}}}});
AQ.prototype.onTap=AQ.prototype.onTap;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],AQ.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Dl),_.N("design:type",Object)],AQ.prototype,"ytLiveChatReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],AQ.prototype,"data",void 0);
_.g([_.U({selectorArgs:["data.likeCountEntityKey"],selector:htH}),_.N("design:type",Object)],AQ.prototype,"likeCountState",void 0);_.g([_.U({selectorArgs:["data.engagementStateKey"],selector:OAn}),_.N("design:type",Object)],AQ.prototype,"engagementState",void 0);_.g([_.R("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],AQ.prototype,"isLiked",null);
_.g([_.R("data","likeCountState","isLiked"),_.N("design:type",Object),_.N("design:paramtypes",[])],AQ.prototype,"toggleButton",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],AQ.prototype,"onTap",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],AQ);
_.F(AQ,"yt-live-chat-like-button-view-model",function(){if(mVa===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;XlB===void 0&&(XlB=document.createElement("template"));var D=XlB;l.call(K,D.content.cloneNode(!0),u.content.firstChild);mVa=u}u=mVa;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var BJs;var pLm;var XO=function(){return _.Q.apply(this,arguments)||this};
_.c(XO,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],XO.prototype,"data",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],XO);
_.F(XO,"yt-live-chat-paid-message-footer-renderer",function(){if(pLm===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;BJs===void 0&&(BJs=document.createElement("template"));var D=BJs;l.call(K,D.content.cloneNode(!0),u.content.firstChild);pLm=u}u=pLm;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var iLk;var TJw;var wL2;var Fcw,VeB=function(){if(Fcw!==void 0)return Fcw;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;wL2===void 0&&(wL2=document.createElement("template"));var D=wL2;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return Fcw=u};var mH=function(){return _.Q.apply(this,arguments)||this};
_.c(mH,_.Q);mH.prototype.onTap=function(u){u.stopPropagation()};
_.MN.Object.defineProperties(mH.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var u=_.b(this.data.replyButton,_.kY),K,l,D,d,C,W,M,q=Number(((K=this.replyCountState)==null?void 0:K.replyCountNumber)||"0")===0?(l=this.data)==null?void 0:(D=l.replyCountPlaceholder)==null?void 0:D.content:((d=this.replyCountState)==null?void 0:(C=d.replyCount)==null?void 0:C.content)||((W=this.data)==null?void 0:(M=W.replyCountPlaceholder)==null?void 0:M.content)||"",v;return Object.assign({},
u,{title:q,accessibilityText:(v=this.replyCountState)==null?void 0:v.replyButtonAccessibilityText})}}}});
_.MN.Object.defineProperties(mH,{template:{configurable:!0,enumerable:!0,get:function(){return VeB()}}});
mH.prototype.onTap=mH.prototype.onTap;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],mH.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Dl),_.N("design:type",Object)],mH.prototype,"ytLiveChatReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],mH.prototype,"data",void 0);
_.g([_.U({selectorArgs:["data.replyCountEntityKey"],selector:function(u,K){return _.eZ(u.entities,"replyCountEntity",K)}}),
_.N("design:type",Object)],mH.prototype,"replyCountState",void 0);_.g([_.R("data","replyCountState"),_.N("design:type",Object),_.N("design:paramtypes",[])],mH.prototype,"buttonViewModel",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],mH.prototype,"onTap",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],mH);
_.F(mH,"yt-live-chat-reply-button-view-model",function(){return VeB()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var gkw;var NJR;var hQ=function(){var u=_.Q.apply(this,arguments)||this;u.ariaLabel="";return u};
_.c(hQ,_.Q);
hQ.prototype.dataChanged=function(){for(var u=(0,_.zQ)(_.bi(this.hostElement).querySelector("#image"));u.firstChild;)u.removeChild(u.firstChild);if(this.data)if(this.data.icon){var K=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(K.polymerController.icon="yt-sys-icons:shield-filled",K.polymerController.defaultToFilled=!0):K.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();u.appendChild(K)}else if(this.data.customThumbnail){K=document.createElement("img");
var l=_.TJh(this.data.customThumbnail.thumbnails,16);l?(K.src=l,u.appendChild(K),K.setAttribute("alt",this.hostElement.ariaLabel||"")):_.hV(new _.wv("Could not compute URL for thumbnail",this.data.customThumbnail))}};
hQ.prototype.identity=function(u){return u};
hQ.prototype.computeType=function(u){return e1(u||void 0)};
hQ.prototype.dataChanged=hQ.prototype.dataChanged;_.g([_.U(),_.N("design:type",Object)],hQ.prototype,"data",void 0);_.g([_.U({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.N("design:type",Object)],hQ.prototype,"ariaLabel",void 0);_.g([_.U({computed:"computeType(data)",reflectToAttribute:!0}),_.N("design:type",String)],hQ.prototype,"type",void 0);
_.g([_.U({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.N("design:type",String)],hQ.prototype,"sharedTooltipText",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.S("live_chat_enable_new_moderator_badge")}}),
_.N("design:type",Boolean)],hQ.prototype,"enableNewModeratorBadge",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hQ.prototype,"dataChanged",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],hQ);
_.F(hQ,"yt-live-chat-author-badge-renderer",function(){if(NJR===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;gkw===void 0&&(gkw=document.createElement("template"));var D=gkw;l.call(K,D.content.cloneNode(!0),u.content.firstChild);NJR=u}u=NJR;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var ky2;var ZLN;var E$=function(){return _.Q.apply(this,arguments)||this};
_.c(E$,_.Q);_.I=E$.prototype;_.I.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"}}}}};
_.I.computeBadgesInsideChip=function(u){return u?u.filter(function(K){return e1(K.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.I.computeBadgesOutsideChip=function(u){return this.prependChatBadges||!u?[]:u.filter(function(K){K=e1(K.liveChatAuthorBadgeRenderer);return K!=="verified"&&K!=="owner"})};
_.I.computeBadgesBeforeChip=function(u){return this.prependChatBadges&&u?u.filter(function(K){K=e1(K.liveChatAuthorBadgeRenderer);return K!=="verified"&&K!=="owner"}):[]};
_.I.computeIsHighlighted=function(u,K){var l=!!Lxw(u,"owner"),D=!!Lxw(u,"verified");u=!!Lxw(u,"moderator");return(l||D&&!u)&&!K};
_.I.computeAuthorType=function(u){return EFh(u)};
_.I.computeAuthorClass=function(u,K){return K?(u?u+" ":"")+"single-line":u};
_.I.onSeedColorChanged=function(){_.S("live_chat_author_name_color_usernames")||_.S("live_chat_seed_color_usernames")||_.S("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):_.S("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
E$.prototype.onSeedColorChanged=E$.prototype.onSeedColorChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],E$.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],E$.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],E$.prototype,"authorName",void 0);_.g([_.U(),_.N("design:type",Array)],E$.prototype,"authorBadges",void 0);
_.g([_.U({computed:"computeAuthorType(authorBadges)"}),_.N("design:type",String)],E$.prototype,"authorType",void 0);_.g([_.U({computed:"computeAuthorClass(authorType, singleLine)"}),_.N("design:type",String)],E$.prototype,"authorClass",void 0);_.g([_.U({computed:"computeBadgesInsideChip(authorBadges)"}),_.N("design:type",Array)],E$.prototype,"badgesInsideChip",void 0);_.g([_.U({computed:"computeBadgesOutsideChip(authorBadges)"}),_.N("design:type",Array)],E$.prototype,"badgesOutsideChip",void 0);
_.g([_.U({computed:"computeBadgesBeforeChip(authorBadges)"}),_.N("design:type",Array)],E$.prototype,"badgesBeforeChip",void 0);_.g([_.U({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.N("design:type",Boolean)],E$.prototype,"isHighlighted",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],E$.prototype,"singleLine",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],E$.prototype,"disableHighlighting",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],E$.prototype,"dashboardMoneyFeed",void 0);_.g([_.U({value:_.S("live_chat_prepend_badges"),reflectToAttribute:!0}),_.N("design:type",Boolean)],E$.prototype,"prependChatBadges",void 0);_.g([_.U(),_.N("design:type",String)],E$.prototype,"authorNameColor",void 0);_.g([_.BF("#author-name"),_.N("design:type",HTMLDivElement)],E$.prototype,"username",void 0);
_.g([_.JU("authorNameColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],E$.prototype,"onSeedColorChanged",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],E$);
_.F(E$,"yt-live-chat-author-chip",function(){if(ZLN===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;ky2===void 0&&(ky2=document.createElement("template"));var D=ky2;l.call(K,D.content.cloneNode(!0),u.content.firstChild);ZLN=u}u=ZLN;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var YDa;var Atw;var Lo=function(){var u=_.Q.apply(this,arguments)||this;u.debounceCommand=_.wR(function(K){u.ytComponentBehavior.resolveCommand(K)},1500);
return u};
_.c(Lo,_.Q);Lo.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var u=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",K,l,D=this.isHearted?(K=this.data)==null?void 0:K.unheartCommand:(l=this.data)==null?void 0:l.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.EL("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:u}));(u=_.lt(D))&&this.debounceCommand(u)}};
_.MN.Object.defineProperties(Lo.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var u,K;if(!((u=this.data)==null?0:(K=u.creatorThumbnail)==null?0:K.sources))return{};u={thumbnails:[]};K={};K.url=this.data.creatorThumbnail.sources[0].url;u.thumbnails.push(K);return u}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.engagementState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((K=this.engagementState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.engagementState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((K=this.engagementState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.engagementState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return((u=this.engagementState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((K=this.engagementState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((l=this.engagementState)==null?void 0:l.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}}});
Lo.prototype.onTap=Lo.prototype.onTap;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Lo.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Dl),_.N("design:type",Object)],Lo.prototype,"ytLiveChatReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Lo.prototype,"data",void 0);
_.g([_.U({selectorArgs:["data.engagementStateKey"],selector:OAn}),_.N("design:type",Object)],Lo.prototype,"engagementState",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lo.prototype,"thumbnailDetails",null);_.g([_.R("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Lo.prototype,"isHearted",null);_.g([_.R("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Lo.prototype,"isEditable",null);
_.g([_.R("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Lo.prototype,"showCreatorView",null);_.g([_.R("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Lo.prototype,"showButton",null);_.g([_.R("data","isHearted"),_.N("design:type",String),_.N("design:paramtypes",[])],Lo.prototype,"label",null);_.g([_.R("data","isHearted"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lo.prototype,"heartHoverText",null);
_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lo.prototype,"onTap",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Lo);
_.F(Lo,"yt-live-chat-creator-heart-view-model",function(){if(Atw===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;YDa===void 0&&(YDa=document.createElement("template"));var D=YDa;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Atw=u}u=Atw;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var uK=function(){};
_.c(uK,R8);uK.prototype.JSC$12977_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:yQ("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
uK.prototype.getApiPaths=function(){return[]};
uK.prototype.getExtension=function(){};
uK.prototype.JSC$12977_buildRequest=function(){};var XLa={},m5m=(XLa.GET_DATASYNC_IDS=we(uK),XLa);var hCk,Eks,Lcs,kuk,Kl,lf0,hfC,KwB,ujk;hCk="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");Eks=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.ow=function(u,K,l,D,d,C,W,M,q){this.endpointMap=u;this.networkManager=K;this.authService=l;this.responseProcessorMap=D;this.innertubeResponseStore=d;this.contextProcessors=C;this.asyncContextProcessors=W;this.localInnertubeRouter=M;this.requestSequencer=q;this.inflightRequests=new Map;u.signalEndpointMap||(u.signalEndpointMap={});u.signalEndpointMap=Object.assign({},m5m,u.signalEndpointMap)};
Lcs=function(u,K,l,D,d,C,W,M,q){if(_.ow.instance!==void 0){if(D=_.ow.instance,u=[u!==D.endpointMap,K!==D.networkManager,l!==D.authService,d!==D.innertubeResponseStore,C!==D.contextProcessors,W!==D.asyncContextProcessors,M!==D.localInnertubeRouter],u.some(function(v){return v}))throw new _.wv("InnerTubeTransportService is already initialized",u);
}else _.ow.instance=new _.ow(u,K,l,D,d,C,W,M,q)};
_.HJ=function(u,K,l){var D=D===void 0?u3k:D;var d=hfC(u,K);return d?new _.RL(function(C,W){var M,q,v,G,t;return _.H(function(x){switch(x.nextAddress){case 1:return x.yield(d,2);case 2:M=x.yieldResult;q=M.JSC$12977_getRequest(K,l,D);if(!q){W(new _.wv("Error: Failed to build request for command.",K));x.jumpTo(0);break}dn(q.input);G=((v=q.requestShell)==null?void 0:v.mode)==="cors"?"cors":void 0;if(u.authService.syncHeaders){t=ujk(q.config,G);x.jumpTo(4);break}return x.yield(KwB(q.config,G),5);case 5:t=
x.yieldResult;case 4:C(lf0(u,q,t)),_.TG(x)}})}):_.YU(new _.wv("Error: No request builder found for command.",K))};
kuk=function(u,K,l,D){var d=d===void 0?u3k:d;var C,W,M,q,v,G,t,x,O,a,f,B,p,V,m,Z,A,h;return _.H(function(C9){switch(C9.nextAddress){case 1:C=uS9(K,u.endpointMap);if(!C)throw new _.wv("Error: No streaming request builder found for command",K);W=C.JSC$12977_getRequest(K,l,d);if(!W)throw new _.wv("Failed to build YtRequest for streaming Command",K);if((M=u.localInnertubeRouter)==null||!M.shouldPreferLocalResponse(W.input,W.innerTubeRequest)){C9.jumpTo(2);break}return C9.yield(u.localInnertubeRouter.localInnertubeResponse(W.input,
W.innerTubeRequest),3);case 3:return q=C9.yieldResult,v={},q.playerResponse&&(Kl(u,q.playerResponse,W),v.player=q.playerResponse,(G=D)==null||G(v,q)),q.watchNextResponse&&(Kl(u,q.watchNextResponse,W),v.content=q.watchNextResponse,(t=D)==null||t(v,q)),C9.return(v);case 2:O=((x=W.requestShell)==null?void 0:x.mode)==="cors"?"cors":void 0;if(u.authService.syncHeaders){a=ujk(W.config,O);C9.jumpTo(4);break}return C9.yield(KwB(W.config,O),5);case 5:a=C9.yieldResult;case 4:return p=(B=(f=W.requestShell)==
null?void 0:f.headers)!=null?B:{},W.requestShell=Object.assign({},W.requestShell,{headers:Object.assign({},p,a)}),V=Object.assign({},W.requestShell),m=JSON.stringify(W.innerTubeRequest),W.requestShell.method==="POST"&&(V=Object.assign({},V,{body:m})),Z=function(Wo,$y){Kl(u,$y.playerResponse||$y.watchNextResponse||$y.reelItemWatchResponse||$y.reelWatchSequenceResponse,W);D==null||D(Wo,$y)},A={},C9.yield(Dj0(u.networkManager,W.input,V,Z),6);
case 6:return A=C9.yieldResult,((h=W.config)==null?0:h.responseTick)&&_.As(W.config.responseTick),C9.return(A)}})};
_.K7=function(u,K,l,D,d){d=d===void 0?{authStrategy:{identity:u3k}}:d;var C=C===void 0?!0:C;var W=function(){};
W=XSq(YCZ(l));K.context||(K.context=_.C3q(D,C));return new _.RL(function(M){var q,v,G,t,x;return _.H(function(O){if(O.nextAddress==1)return q=J7w(l),v=_.Iy(q),u.authService.syncHeaders?(G=ujk(d,v),O.jumpTo(2)):O.yield(KwB(d,v),3);O.nextAddress!=2&&(G=O.yieldResult);t=jhq(J7w(l));x={input:t,requestShell:yQ(t),innerTubeRequest:K,config:d};M(lf0(u,x,G,W));_.TG(O)})})};
Kl=function(u,K,l){var D;if(K&&!(K==null?0:(D=K.sequenceMetaData)==null?0:D.skipProcessing)&&u.responseProcessorMap){D=_.y(hCk);for(var d=D.next();!d.done;d=D.next())d=d.value,u.responseProcessorMap[d]&&u.responseProcessorMap[d].handleResponse(K,l)}};
lf0=function(u,K,l,D){D=D===void 0?function(){}:D;
var d,C,W,M,q,v,G,t,x,O,a,f,B,p,V,m,Z,A,h,C9,Wo,$y,co,UZ,tH,gq,Bo,uk,ca,Ha,hH,tR,ns,Pa,QV,Ls,yn,dN,OB,vE;return _.H(function(Gw){switch(Gw.nextAddress){case 1:W=(d=K.config)==null?void 0:(C=d.storeStrategy)==null?void 0:C.storeKey;if(!(W&&u.innertubeResponseStore&&u.innertubeResponseStore.has(W))||((M=K.config)==null?0:(q=M.storeStrategy)==null?0:q.disableCache)){Gw.jumpTo(2);break}return Gw.yield(u.innertubeResponseStore.get(W),3);case 3:if((v=Gw.yieldResult)&&!v.isExpired())return Gw.return(Promise.resolve(_.tn(v)));
case 2:if(!((G=K)==null?0:(t=G.innerTubeRequest)==null?0:t.context)){Gw.jumpTo(4);break}x=K.innerTubeRequest.context;if(!(u.asyncContextProcessors&&u.asyncContextProcessors.length>0)){Gw.jumpTo(5);break}O=[];a=_.y(u.asyncContextProcessors);for(f=a.next();!f.done;f=a.next())B=f.value,p=B.processContext(K),p.wrappedPromise_&&O.push(p.wrappedPromise_);if(!(O.length>0)){Gw.jumpTo(5);break}return Gw.yield(Promise.all(O),5);case 5:V=_.y(u.contextProcessors||[]),m=V.next();case 8:if(m.done){Gw.jumpTo(4);
break}Z=m.value;return Gw.yield(Z.processContext(x),9);case 9:m=V.next();Gw.jumpTo(8);break;case 4:if((A=u.localInnertubeRouter)==null||!A.shouldPreferLocalResponse(K.input,K.innerTubeRequest)){Gw.jumpTo(12);break}return Gw.yield(u.localInnertubeRouter.localInnertubeResponse(K.input,K.innerTubeRequest),13);case 13:return h=Gw.yieldResult,Kl(u,h,K),Gw.return(h);case 12:return($y=(Wo=K.config)==null?void 0:Wo.requestKey)&&u.inflightRequests.has($y)?C9=u.inflightRequests.get($y):(co=JSON.stringify(K.innerTubeRequest),
gq=(tH=(UZ=K.requestShell)==null?void 0:UZ.headers)!=null?tH:{},K.requestShell=Object.assign({},K.requestShell,{headers:Object.assign({},gq,l)}),Bo=Object.assign({},K.requestShell),K.requestShell.method==="POST"&&(Bo=Object.assign({},Bo,{body:co})),((uk=K.config)==null?0:uk.requestTick)&&_.As(K.config.requestTick),ca=function(){return u.networkManager.fetch(K.input,Bo,K.config)},C9=u.requestSequencer?djN(u.requestSequencer,K,ca):ca(),$y&&u.inflightRequests.set($y,C9)),Gw.yield(C9,14);
case 14:(Ha=Gw.yieldResult)&&_.S("web_streaming_player")&&Array.isArray(Ha)&&(Ha=Ha[0].playerResponse);if(Ha&&"error"in Ha&&((hH=Ha)==null?0:(tR=hH.error)==null?0:tR.details))for(ns=Ha.error.details,Pa=_.y(ns),QV=Pa.next();!QV.done;QV=Pa.next())Ls=QV.value,(yn=Ls["@type"])&&Eks.indexOf(yn)>-1&&(delete Ls["@type"],Ha=Ls);$y&&u.inflightRequests.has($y)&&u.inflightRequests.delete($y);((dN=K.config)==null?0:dN.responseTick)&&_.As(K.config.responseTick);if(Ha||(OB=u.localInnertubeRouter)==null||!OB.canProvideFallbackResponse(K.input,
K.innerTubeRequest)){Gw.jumpTo(15);break}return Gw.yield(u.localInnertubeRouter.localFallbackInnertubeResponse(K.input,K.innerTubeRequest),16);case 16:Ha=Gw.yieldResult;case 15:return Kl(u,Ha,K),((vE=K.config)==null?0:vE.processorTick)&&_.As(K.config.processorTick),D(),Gw.return(Ha||void 0)}})};
_.WJ=function(u,K){return LAo(K,u.endpointMap)};
hfC=function(u,K){u=KBq(K,u.endpointMap);if(u!==void 0)return Promise.resolve(u)};
KwB=function(u,K){var l,D,d,C;return _.H(function(W){if(W.nextAddress==1){d=(l=u)==null?void 0:(D=l.authStrategy)==null?void 0:D.sessionIndex;var M=W.yield;var q=_.zA(IUZ({sessionIndex:d}));return M.call(W,q,2)}C=W.yieldResult;return W.return(Promise.resolve(Object.assign({},lry(K),C)))})};
ujk=function(u,K){var l;u=u==null?void 0:(l=u.authStrategy)==null?void 0:l.sessionIndex;l=IUZ({sessionIndex:u});return Object.assign({},lry(K),l)};var CRR,If2,yjm,sza,obk,WwA,qHA,$ja,dj,nbk,rjm,MCw,vbR;CRR=0;If2=/tone[1-5]/;yjm=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");sza="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
obk=Number.MAX_SAFE_INTEGER;WwA=RegExp("\ufe0f","g");_.lK=function(u){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;u&&_.H$H(this,u)};
_.H$H=function(u,K){try{_.UP(K,{context:u,onSuccess:function(D,d){Array.isArray(d)?u.load(d):(D=new _.wv("Emoji manager JSON response was not an array!",{response:d}),_.Xm(D))},
onError:function(D){D=new _.wv("Failed to retrieve emoji manager initial JSON data!",{url:K,statusCode:_.cv(D).toString()});_.hV(D)}})}catch(D){var l=new _.wv("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:K});
_.hV(l)}};
_.lK.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.lK.prototype.load=function(u,K){if(K)if(u.length)u=u.concat(K.emojis);else{this.emojis=K.emojis;this.emojiMap=K.emojiMap;this.emojiShortcutMap=K.emojiShortcutMap;this.emojiShortcutCharMap=MCw(K);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=K.emojiRegex;return}this.emojis=[].concat(_.Am(new Set(this.emojis.concat(u))));this.hasInitializedShortcutCharMap=!1;u=Array(this.emojis.length);for(K=0;K<this.emojis.length;K++){var l=this.emojis[K];if(l.emojiId){this.emojiMap[l.emojiId]=l;this.emojiMap[l.emojiId].index=
K;for(var D=0;l.shortcuts&&D<l.shortcuts.length;D++)this.emojiShortcutMap[l.shortcuts[D].toLocaleLowerCase()]=l;u[K]=l.isCustomEmoji&&l.shortcuts?l.shortcuts[0]:l.emojiId}}u.sort(function(d,C){return C.length-d.length});
if(u.length)try{this.emojiRegex=new RegExp(u.join("|").replace("*","\\*"),"gi")}catch(d){this.emojiRegex=/$./}else this.emojiRegex=/$./};
qHA=function(u,K){K=_.y(K);for(var l=K.next();!l.done;l=K.next()){var D=l.value;if(D.emojiId&&u.emojiMap[D.emojiId]){l=Object.assign({},u.emojiMap[D.emojiId],D);u.emojiMap[D.emojiId]=l;var d=void 0;l.index&&((d=u.emojis[l.index])==null?void 0:d.emojiId)===D.emojiId&&(u.emojis[l.index]=l);D=void 0;if((D=l.shortcuts)==null?0:D.length)for(u.hasInitializedShortcutCharMap=!1,D=_.y(l.shortcuts),d=D.next();!d.done;d=D.next())u.emojiShortcutMap[d.value.toLocaleLowerCase()]=l}}};
$ja=function(u){var K,l;_.H(function(D){if(D.nextAddress==1)return D.yield(_.ki.getInstance(),2);if(D.nextAddress!=3)return(K=D.yieldResult)?D.yield(K.get("ytlc-emoji-pref"),3):D.return();(l=D.yieldResult)&&qHA(u,Object.keys(l).map(function(d){return{emojiId:d,stickyPrefId:l[d]}}).filter(function(d){return!!d.emojiId&&!!d.stickyPrefId}));
_.TG(D)})};
_.DP=function(u,K,l){return(u=u.emojiMap[K])&&(!u.isLocked||l!==void 0&&l)?u:void 0};
dj=function(u,K,l){l=_.DP(u,K,l===void 0?!1:l);var D=K.match("\u200d");l&&u.skinTone!==0&&(u=(D==null?void 0:D.length)===1?_.DP(u,K.replace("\u200d",yjm[u.skinTone]+"\u200d")):_.DP(u,K+yjm[u.skinTone]))&&(l=u);return l};
nbk=function(u,K){var l=u.emojiMap[K];return(l==null?0:l.stickyPrefId)?u.emojiMap[l.stickyPrefId]:dj(u,K)};
_.Q$=function(u,K){u=u.emojiShortcutMap[K.toLocaleLowerCase()];return!u||u.isLocked?null:u};
rjm=function(u,K,l){return MCw(u,l===void 0?!1:l)[K]||{}};
MCw=function(u,K){K=K===void 0?!1:K;if(!u.hasInitializedShortcutCharMap){u.hasInitializedShortcutCharMap=!0;for(var l=0;l<u.emojis.length;l++){var D=u.emojis[l];if(!(D.isLocked||K&&D.isCustomEmoji&&D.emojiId&&!u.pickerCustomEmojiIds.includes(D.emojiId)))for(var d=0;D.shortcuts&&d<D.shortcuts.length;d++){var C=D.shortcuts[d];C.startsWith(":_")&&D.isCustomEmoji&&(u.emojiShortcutCharMap[":_"]==null&&(u.emojiShortcutCharMap[":_"]=Object.create(null)),u.emojiShortcutCharMap[":_"][C]=D);if(!(C.length<3||
!D.isCustomEmoji&&If2.test(C))){var W=C.substr(0,3).toLocaleLowerCase();u.emojiShortcutCharMap[W]==null&&(u.emojiShortcutCharMap[W]=Object.create(null));u.emojiShortcutCharMap[W][C]=D}}}}return u.emojiShortcutCharMap};
_.lK.prototype.createEmoji=function(u,K){K=K===void 0?!0:K;var l=document.createElement("img");u.isCustomEmoji||l.classList.add("small-emoji");l.classList.add("emoji");l.classList.add("yt-formatted-string");l.src=u.image?_.bt(u.image.thumbnails,this.emojiSize)||"":"";var D=void 0;u.image&&u.image.accessibility&&u.image.accessibility.accessibilityData&&(D=u.image.accessibility.accessibilityData.label);l.alt=D?D:(u.isCustomEmoji&&u.shortcuts?u.shortcuts[0]:u.emojiId)||"";u.isCustomEmoji&&(l.dataset.emojiId=
u.emojiId);_.aj&&(l.setAttribute("contenteditable","false"),l.setAttribute("unselectable","on"));K&&(u.shortcuts&&u.shortcuts.length&&l.setAttribute("shared-tooltip-text",u.shortcuts[0]),l.id="emoji-"+CRR++);return l};
_.lK.prototype.createDocumentFragment=function(u,K,l,D){K=K===void 0?!1:K;l=l===void 0?!0:l;D=D===void 0?!1:D;u=u.replace(WwA,"");for(var d=document.createDocumentFragment(),C=0,W,M=0;(W=this.emojiRegex.exec(u))!=null;){var q=_.DP(this,W[0])||_.Q$(this,W[0]);!q||q.isCustomEmoji&&!K||(q=this.createEmoji(q,l),C!==W.index&&d.appendChild(document.createTextNode(u.substring(C,W.index))),d.appendChild(q),C=W.index+W[0].length,M++)}if(!D||M)return d.appendChild(document.createTextNode(u.substr(C))),d};
vbR=function(u,K,l){var D,d,C,W,M,q,v,G,t;return _.H(function(x){if(x.nextAddress==1){if(!K.emojiId||!u.emojiMap[K.emojiId])return x.return();D=Object.assign({},u.emojiMap[K.emojiId],{stickyPrefId:l});u.emojiMap[K.emojiId]=D;K.index&&((d=u.emojis[K.index])==null?void 0:d.emojiId)===K.emojiId&&(u.emojis[K.index]=D);if((C=K.shortcuts)==null?0:C.length)for(u.hasInitializedShortcutCharMap=!1,W=_.y(K.shortcuts),M=W.next();!M.done;M=W.next())q=M.value,u.emojiShortcutMap[q.toLocaleLowerCase()]=D;return x.yield(_.ki.getInstance(),
2)}if(x.nextAddress!=4)return(v=x.yieldResult)?x.yield(v.get("ytlc-emoji-pref"),4):x.jumpTo(0);t=(G=x.yieldResult)!=null?G:{};t[K.emojiId]=l;return x.yield(v.set("ytlc-emoji-pref",t,obk),0)})};
_.Cl=new _.lK;var xjm;_.Ii={};
xjm={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.S("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:_.S("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 yR(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 u=_.bi(this.hostElement||this).querySelector("#inline-action-button-container");u&&u.setAttribute("aria-hidden","true");this.menuButton=_.bi(this.hostElement).querySelector("#menu-button")},
attached:function(){var u=this.menuButton;u&&(u.addEventListener("focusin",_.Ql(this,this.onMenuButtonFocus_)),u.addEventListener("focusout",_.Ql(this,this.onMenuButtonBlur_)))},
detached:function(){var u=this.menuButton;u&&(u.removeEventListener("focusin",_.Ql(this,this.onMenuButtonFocus_)),u.removeEventListener("focusout",_.Ql(this,this.onMenuButtonBlur_)))},
identity:_.wq,truthy:function(u){return!!u},
computeTimestampString:function(u){return u?u.timestampText?this.getSimpleString(u.timestampText):this.TIME_FORMATTER.format(new Date(u.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(u){return u},
computeMenuVisible_:function(u,K){return u||K},
computeHasInlineActionButtons:function(u){if(!u)return!1;var K,l;return!((K=u.inlineActionButtons)==null||!K.length)||!((l=u.additionalInlineActionButtons)==null||!l.length)},
createDocumentFragmentFromString:function(u){var K=_.Cl.createDocumentFragment.bind(_.Cl),l;if((l=this.participantsManager)==null||!l.viewerRegex)return K(u);l=document.createDocumentFragment();for(var D=0,d;(d=this.participantsManager.viewerRegex.exec(u))!=null;){if(d.index>0){var C=":"+d[0]+":";if((_.DP(_.Cl,C)||_.Q$(_.Cl,C))&&u.indexOf(C)===d.index-1)continue}l.appendChild(K(u.substring(D,d.index)));D=document.createElement("span");D.appendChild(K(d[0]));D.classList.add("mention");l.appendChild(D);
D=d.index+d[0].length}l.appendChild(K(u.substring(D)));return l},
createDocumentFragment:function(u){var K=document.createDocumentFragment();if(u.simpleText)return K.appendChild(this.createDocumentFragmentFromString(u.simpleText)),K;if(!u.runs)return K;for(var l=0;l<u.runs.length;l++){var D=u.runs[l];if(D.emoji)K.appendChild(_.Cl.createEmoji(D.emoji));else if(D.text)if(D.navigationEndpoint){var d=document.createElement("a");d.classList.add("yt-simple-endpoint");aaL(d,D.navigationEndpoint);_.bi(d).appendChild(this.createDocumentFragmentFromString(D.text));K.appendChild(d)}else K.appendChild(this.createDocumentFragmentFromString(D.text))}return K},
hasModerationOverlayVisible:function(){var u;return((u=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:u.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(u){u.composedPath().some(function(K){return(K=K instanceof Element?K:null)?K.tagName&&(K.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||K.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.S("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(u)},
colorFromDecimal:function(u){return j6L(u)},
markAsDeleted:function(u,K){this.set("data.deletedStateMessage",u);this.set("data.showOriginalContentMessage",K)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(u){if(this.data.contextMenuEndpoint){var K=_.GB().resolve(_.XQ),l=this.data.contextMenuEndpoint,D;(D=_.ow.instance)&&_.WJ(D,l)?(K=Gmm(K,l),D=_.K7(D,{},K)):D=_.tCH(K,l);D.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);u&&u.stopPropagation()}},
handleGetContextMenuResponse_:function(u){var K=_.ow.instance;K&&_.WJ(K,{liveChatEndpoint:{}})||(u=u.response);u.liveChatItemContextMenuSupportedRenderers&&u.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(u.liveChatItemContextMenuSupportedRenderers.menuRenderer);u.actions&&_.Sy(this.hostElement,"yt-live-chat-actions",[u.actions])},
handleGetContextMenuError:function(u){if(u instanceof Error||u instanceof Object||u instanceof String)var K=u;_.Xm(new _.wv("Error encountered calling GetLiveChatItemContextMenu",K))},
showContextMenu_:function(u){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:u}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.xs(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.xs(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.Ii.YtLiveChatItemBehavior=[xjm,_.Co.YtComponentBehavior,_.B2.YtOpenPopupBehavior];_.y8=function(){};var SHS;var b$C;var O$S;var cjk;var se=function(){var u=_.Q.apply(this,arguments)||this;u.active=!1;u.identity=_.wq;return u};
_.c(se,_.Q);se.prototype.dataChanged=function(){this.active=!1};
se.prototype.onClick=function(){_.xs(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
se.prototype.dataChanged=se.prototype.dataChanged;_.g([_.U(),_.N("design:type",Object)],se.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],se.prototype,"active",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],se.prototype,"dataChanged",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],se);
_.F(se,"yt-live-chat-text-input-field-suggestion",function(){if(cjk===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;O$S===void 0&&(O$S=document.createElement("template"));var D=O$S;l.call(K,D.content.cloneNode(!0),u.content.firstChild);cjk=u}u=cjk;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});_.oi=function(u,K,l){return CustomEvent.call(this,u,{detail:{value:K,path:l}})||this};
_.c(_.oi,CustomEvent);_.Ws=function(){var u=_.Q.apply(this,arguments)||this;u.viewerName=null;u.actionMap={"yt-live-chat-actions":"onChatMessage_"};u.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];u.PARTICIPANT_TIME_USEC_=3E8;return u};
_.c(_.Ws,_.Q);_.I=_.Ws.prototype;_.I.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.I.addParticipant=function(u){var K=_.SZZ(this.participants,u,function(D,d){D=D[Object.keys(D)[0]];d=d[Object.keys(d)[0]];D=String(_.WI(D.authorName)).toLowerCase();d=String(_.WI(d.authorName)).toLowerCase();return D<d?-1:D==d?0:1}.bind(this));
if(K>=0){var l=this.participants[K];l[Object.keys(l)[0]].timestampUsec&&this.splice("participants",K,1,u)}else this.splice("participants",-K-1,0,u);u=u[Object.keys(u)[0]];K=_.WI(u.authorName).toLocaleLowerCase();l=K.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(l)||(this.allParticipantsCharMap_[l]={});this.allParticipantsCharMap_[l][K]=u};
_.I.getAuthorsFromPrefix=function(u){return this.allParticipantsCharMap_.hasOwnProperty(u)?this.allParticipantsCharMap_[u]:null};
_.I.computeViewerRegex_=function(u){if(!u)return null;u=u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var K=u.indexOf("@")===0&&_.S("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(K+u.replace(/ /g,"\\s*")+"|^"+u.replace(/ /g,"\\s*")+"$|^"+u.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+u.replace(/ /g,"\\s*")+"$|(?<=\\s)"+u.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.I.checkForStaleParticipants_=function(){var u=this;this.trimOldParticipants_();this.asyncHandle_&&yLH(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.Cr(function(){u.checkForStaleParticipants_()},3E4))};
_.I.onChatMessage_=function(u){var K=this,l=Date.now()*1E3;u.forEach(function(D){if(D=_.b(D,awa)){D=D.item;var d=Object.keys(D)[0];K.SUPPORTED_ITEM_TYPES_.indexOf(d)!=-1&&D[d].timestampUsec>=l-K.PARTICIPANT_TIME_USEC_&&K.addParticipant(D)}},this);
this.checkForStaleParticipants_()};
_.I.trimOldParticipants_=function(){for(var u=Date.now()*1E3,K=this.participants.length-1;K>=0;K--){var l=this.participants[K];l=l[Object.keys(l)[0]];l.timestampUsec&&l.timestampUsec<u-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",K,1)}};
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],_.Ws.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],_.Ws.prototype,"viewerName",void 0);_.g([_.U({computed:"computeViewerRegex_(viewerName)"}),_.N("design:type",Object)],_.Ws.prototype,"viewerRegex",void 0);_.g([_.U({value:function(){return[]},
notify:!0}),_.N("design:type",Array)],_.Ws.prototype,"participants",void 0);_.g([_.E9({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Ws);var afs=/.*([:@#].*?)$/,Hs=/\u00a0/g,zR0=String.fromCharCode(160),eRa={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"},M1=function(){var u=_.Q.apply(this,arguments)||this;u.disabled=!1;u.liveChatRichMessageInput=null;u.messageInput=null;u.isValidWithNoInputText=!1;u.suggestions=[];u.emojiManager=_.Cl;u.inputMethodEditorActive=
!1;u.suggestionIndex=-1;u.JSC$13983_lastSuggestionRange=null;return u};
_.c(M1,_.Q);_.I=M1.prototype;_.I.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.I.attached=function(){_.zR&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.I.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.I.dataChanged=function(){if(!this.ignoreColorMapping){var u=!1,K={},l;for(l in eRa)this.data&&this.data.hasOwnProperty(l)&&(K[eRa[l]]=this.colorFromDecimal(this.data[l]),u=!0);u&&_.e8(this.hostElement,K)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.I.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.I.colorFromDecimal=function(u){u=Math.floor(Number(u));return"rgba("+[u>>16&255,u>>8&255,u&255,(u>>24&255)/255].join()+")"};
_.I.preventDrag=function(u){u.dataTransfer&&(u.dataTransfer.dropEffect="none");u.preventDefault()};
_.I.preventResize=function(u){u.returnValue=!1};
_.I.onInputChange=function(){var u=this.characterCount,K=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&K&&K.remove();if(!K&&this.characterCount>this.maxCharacterLimit){var l=window.getSelection();if(l){var D=l.getRangeAt(0);l.removeAllRanges();l.addRange(D)}}if(l=this.getCurrentRange())D=this.calculateTextBeforeRange(l),this.completeEmojisInRange(l,D,!0)||this.updateSuggestions(l,D);D=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(D);
_.xs(this.hostElement,"yt-live-chat-message-input-change",D);K&&this.characterCount===0&&K.remove();l&&l.commonAncestorContainer.parentElement.id==="input"&&l.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>u):l&&!l.collapsed&&l.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(u=this.input.childNodes.length-1;u>=0;u--)this.input.childNodes[u].nodeName==="BR"&&this.input.childNodes[u].remove()};
_.I.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.I.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var u=this.getCurrentRange();u&&u.commonAncestorContainer.parentElement.id==="input"&&u.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.I.mergeOverflowText=function(u){if(u){var K=document.createRange();K.selectNodeContents(u);K=K.extractContents();this.input.insertBefore(K,u)}};
_.I.checkRangeAtEndOfInput=function(){var u=this.getCurrentRange();if(u){var K=_.bi(this.hostElement).querySelector("#overflow-text"),l=document.createRange();K&&K.previousSibling?K.previousSibling instanceof HTMLImageElement?l.selectNode(K.previousSibling):l.selectNodeContents(K.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?l.selectNode(this.input.lastChild):l.selectNodeContents(this.input.lastChild));l.collapse(!1);return l.isPointInRange(u.startContainer,
u.startOffset)}return!1};
_.I.handleOverflowText=function(u){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var K=_.bi(this.hostElement).querySelector("#overflow-text"),l=this.getCurrentRange();this.input.normalize();u=this.checkRangeAtEndOfInput()&&u;this.mergeOverflowText(K);for(var D,d=0,C=0,W,M=this.input.childNodes,q=0;q<M.length;q++){var v=M[q];v instanceof Text?(C+=v.textContent.length,C>this.maxCharacterLimit&&(D=v,d=this.maxCharacterLimit+v.textContent.length-C)):v instanceof HTMLImageElement&&
(D=void 0,C=v.dataset.emojiId&&((D=this.data)==null?0:D.emojiCharacterCount)?C+this.data.emojiCharacterCount:C+v.alt.length,D=this.input,d=q);if(C>this.maxCharacterLimit&&D){W=document.createRange();W.collapse(!1);K?(C=this.input.lastChild.previousSibling,C instanceof Text?W.setEnd(this.input.lastChild.previousSibling,C.textContent.length):C instanceof HTMLImageElement&&W.setEnd(this.input,this.input.childNodes.length-1)):W.selectNodeContents(this.input);W.setStart(D,d);break}}W&&(D=!1,l&&(u=W.isPointInRange(l.startContainer,
l.startOffset-1)),K||(K=document.createElement("span"),K.id="overflow-text",K.textContent="",K.setAttribute("contenteditable","true"),_.bi(_.bi(this.hostElement).querySelector("#input")).appendChild(K),D=!0),K&&(l=W.extractContents(),K.insertBefore(l,K.firstChild),u&&K.firstChild&&(l=document.createRange(),D?l.setStartAfter(K.lastChild):l.setStartAfter(K.firstChild),l.collapse(!0),K=window.getSelection(),K.removeAllRanges(),K.addRange(l))))}};
_.I.checkForDuplicateSpans=function(){for(var u=0;u<this.input.childNodes.length;u++){var K=this.input.childNodes[u];if(K.nodeName==="SPAN"){var l=document.createRange();l.selectNodeContents(K);l=l.extractContents();this.input.insertBefore(l,K);K.remove()}}this.handleOverflowText(!0)};
_.I.getCurrentRange=function(){var u=window.getSelection();return u&&u.rangeCount?u.getRangeAt(0).cloneRange():null};
_.I.getInputRange=function(){var u=this.getCurrentRange();if(u){for(var K=u.commonAncestorContainer,l=!1,D=_.bi(this.hostElement).querySelector("#input");K;){if(K===D){l=!0;break}K=K.parentNode}l||(u=null)}u||(u=this.getRangeAtEnd());return u};
_.I.getRangeAtEnd=function(){var u=document.createRange(),K=_.bi(this.hostElement).querySelector("#input").lastChild;!K||K.nodeName!=="#text"&&K.nodeName!=="SPAN"?(u.selectNodeContents(_.bi(this.hostElement).querySelector("#input")),u.collapse(!1)):K.nodeName==="#text"?u.setStart(K,K.textContent.length):u.setStart(K,K.childNodes.length);return u};
_.I.getChatParticipantSuggestions=function(u,K,l,D){var d=_.S("live_chat_enable_handles_web_text_input_update");if(K)for(var C in K)if(C.indexOf(u)===0||d&&C.indexOf(l+u)===0){var W=K[C],M=_.WI(W.authorName);D.push({suggestion:{author:!0,authorType:l,image:W.authorPhoto,alt:M,text:M}});if(D.length>=64)break}};
_.I.getSuggestions=function(u){var K=[],l=u.substring(0,3),D=rjm(_.Cl,l,!0);if(D)for(var d in D)if(d.toLocaleLowerCase().indexOf(u)===0){var C=D[d];if(C&&C.emojiId){if(C=nbk(_.Cl,C.emojiId)){var W=void 0,M=void 0,q=void 0,v=void 0,G=((W=C.image)==null?0:(M=W.accessibility)==null?0:(q=M.accessibilityData)==null?0:q.label)||C.isCustomEmoji?(v=C.shortcuts)==null?void 0:v[0]:C.emojiId;K.push({suggestion:{emoji:!0,image:C.image,alt:G,text:d,textToInsertWhenSelected:C.isCustomEmoji?d:G}})}if(K.length>=
64)break}}if(!this.participantsManager)return null;if(l.indexOf("@")===0||l.indexOf("#")===0)D=l.charAt(0),u=u.substring(1),d=_.S("live_chat_enable_handles_web_text_input_update"),l.indexOf("@")===0&&d&&(d=this.participantsManager.getAuthorsFromPrefix(l.substring(0,2)),this.getChatParticipantSuggestions(u,d,D,K)),l=l.substring(1),l=this.participantsManager.getAuthorsFromPrefix(l),this.getChatParticipantSuggestions(u,l,D,K);return K?K.sort(function(t,x){return x.suggestion.text<t.suggestion.text?-1:
x.suggestion.text===t.suggestion.text?0:1}):null};
_.I.insertSuggestion=function(u){var K=_.S("live_chat_enable_handles_web_text_input_update"),l=u.authorType;K=u.text.indexOf(l)===0&&K?u.text+zR0:l+u.text+zR0;u.emoji?this.insertTextAtRange(this.JSC$13983_lastSuggestionRange,u.textToInsertWhenSelected||""):u.author&&this.insertTextAtRange(this.JSC$13983_lastSuggestionRange,K)};
_.I.updateSuggestionsAtCaret=function(){var u=this.getCurrentRange();u&&this.updateSuggestions(u,this.calculateTextBeforeRange(u))};
_.I.offsetStartOfRangeBy=function(u,K){for(;K>0;)if(u.startOffset-K>=0){u.setStart(u.startContainer,u.startOffset-K);break}else{K=u.startContainer instanceof HTMLImageElement?K-u.startContainer.alt.length:K-u.startOffset;var l=u.startContainer.previousSibling;if(!l){u.setStart(u.startContainer,0);break}if(_.S("live_chat_require_space_for_autocomplete_emoji")){var D=void 0,d=void 0;u.setStart(l,((D=l)==null?void 0:(d=D.textContent)==null?void 0:d.length)||0)}else u.setStart(l,l.childNodes.length||
0)}};
_.I.updateSuggestions=function(u,K){var l=this;this.JSC$13983_lastSuggestionRange&&(this.JSC$13983_lastSuggestionRange.detach(),this.JSC$13983_lastSuggestionRange=null);if((K=afs.exec(K))&&K.length&&(K=K[K.length-1].toLocaleLowerCase(),K.length>2&&(this.offsetStartOfRangeBy(u,K.length),this.JSC$13983_lastSuggestionRange=u,(u=this.getSuggestions(K))&&u.length))){this.suggestions=u;_.W_(this,function(){_.bi(l.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(u.length-1);return}this.dropdown.opened=!1};
_.I.completeEmojisInRange=function(u,K,l){var D=K.replace(/[\s\xa0]+$/,"");K=K.length-D.length;D=D.split(" ");D=D[D.length-1].trim().toLocaleLowerCase();var d=D.lastIndexOf(":");if(l&&!K&&d!==D.length-1)return!1;d!==-1&&(l=D.lastIndexOf(":",d-1),l!==-1&&(D=D.substring(l)));if((l=_.Q$(_.Cl,D))&&l.emojiId){l=nbk(_.Cl,l.emojiId)||null;this.offsetStartOfRangeBy(u,D.length+K);var C,W,M,q;D=(((C=l)==null?0:C.isCustomEmoji)?(W=l)==null?void 0:(M=W.shortcuts)==null?void 0:M[0]:(q=l)==null?void 0:q.emojiId)||
"";K&&(D+=zR0);this.insertTextAtRange(u,D);this.dropdown.opened=!1;return!0}return!1};
_.I.onSuggestion=function(u){this.insertSuggestion(u.detail);this.dropdown.opened=!1};
_.I.onKeyPress=function(u){u.keyCode===13&&(u.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.xs(this.hostElement,"yt-live-chat-send-message"))};
_.I.completeEmojis=function(){var u=document.createRange(),K=_.bi(this.hostElement).querySelector("#input").lastChild;K?u.setStart(K,K.childNodes.length):(u.selectNodeContents(_.bi(this.hostElement).querySelector("#input")),u.collapse(!1));this.completeEmojisInRange(u,this.calculateTextBeforeRange(u),_.S("live_chat_require_space_for_autocomplete_emoji"))};
_.I.maybePreventTextFormatting=function(u){!_.f3||!u.ctrlKey&&!u.metaKey||u.keyCode!==66&&u.keyCode!==73||(u.stopImmediatePropagation(),u.preventDefault())};
_.I.onKeyDown=function(u){this.maybePreventTextFormatting(u);if(this.dropdown.opened)switch(u.keyCode){case 27:this.dropdown.opened=!1;u.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;u.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);u.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),u.preventDefault()}};
_.I.onKeyUp=function(u){switch(u.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.aj)this.onInputChange()};
_.I.changeSuggestionIndex=function(u){if(this.dropdown.opened){var K=_.bi(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<K.children.length&&(K.children[this.suggestionIndex].active=!1);var l=this.suggestions.length;this.suggestionIndex=(u+l)%l;u=K.children[this.suggestionIndex];u.active=!0;K.scrollTop=u.offsetTop}};
_.I.onInputPaste=function(u){u.preventDefault();(u=u.clipboardData)&&u.types&&(u=u.getData("text/plain")||"",u=u.replace(/\n/g,""),this.insertText(u));(u=this.getCurrentRange())&&u.commonAncestorContainer.parentElement.id==="input"&&u.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.I.onFocus=function(){this._setFocused(!0)};
_.I.onBlur=function(){this._setFocused(!1)};
_.I.insertText=function(u){this.insertTextAtRange(this.getInputRange(),u)};
_.I.insertTextAtRange=function(u,K){if(u&&(u.collapsed||u.deleteContents(),K=_.Cl.createDocumentFragment(K,!0,!1))){for(var l=_.y((K==null?void 0:K.childNodes)||[]),D=l.next();!D.done;D=l.next()){D=D.value;var d=void 0,C=void 0,W=void 0,M=void 0,q=void 0;(W=(d=window)==null?void 0:(C=d.ShadyCSS)==null?void 0:C.ScopingShim)==null||(q=(M=W).scopeNode)==null||q.call(M,D,this.hostElement.localName)}l=K.lastChild;u.insertNode(K);this.focused||this.input.focus();if(this.focused){u=u.cloneRange();u.selectNodeContents(l);
u.collapse(!1);if(K=window.getSelection())K.removeAllRanges(),K.addRange(u);u.commonAncestorContainer.parentElement.id==="input"&&u.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}u=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(u);_.xs(this.hostElement,"yt-live-chat-message-input-change",u)}};
_.I.setLiveChatRichMessageInput=function(u){_.bi(_.bi(this.hostElement).querySelector("#input")).textContent="";if(u&&u.textSegments){for(var K=0;K<u.textSegments.length;K++){var l=u.textSegments[K];l.text?_.bi(_.bi(this.hostElement).querySelector("#input")).appendChild(_.Cl.createDocumentFragment(l.text,!0,!1)):l.emojiId&&(l=_.DP(_.Cl,l.emojiId))&&_.bi(_.bi(this.hostElement).querySelector("#input")).appendChild(_.Cl.createEmoji(l,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.I.setText=function(u){this.setLiveChatRichMessageInput(u?{textSegments:[{text:u}]}:null)};
_.I.calculateTextBeforeRange=function(u){var K="",l=u.startContainer;if(l&&l instanceof Text){var D;K=((D=l.textContent)==null?void 0:D.substring(0,u.startOffset))||"";l=l.previousSibling}for(;l&&l instanceof Text;)K=l.textContent+K,l=l.previousSibling;return K.replace(Hs," ")};
_.I.calculateLiveChatRichMessageInput=function(){for(var u=[],K="",l=_.bi(_.bi(this.hostElement).querySelector("#input")).childNodes,D=0;D<l.length;D++){var d=l[D];d instanceof Text?K+=d.textContent:d instanceof HTMLImageElement&&(d.dataset.emojiId?(K&&(u.push({text:K.replace(Hs," ")}),K=""),u.push({emojiId:d.dataset.emojiId})):K+=d.alt)}K&&u.push({text:K.replace(Hs," ")});if(l=_.bi(this.hostElement).querySelector("#overflow-text")){K="";l=l.childNodes;for(D=0;D<l.length;D++)d=l[D],d instanceof Text?
K+=d.textContent:d instanceof HTMLImageElement&&(d.dataset.emojiId?(K&&(u.push({text:K.replace(Hs," ")}),K=""),u.push({emojiId:d.dataset.emojiId})):K+=d.alt);K&&u.push({text:K.replace(Hs," ")})}return{textSegments:u}};
_.I.computeCharacterCount=function(u){if(!u||!u.textSegments)return 0;for(var K=0,l=0;l<u.textSegments.length;l++){var D=u.textSegments[l];if(D.text)K+=D.text.length;else if(D.emojiId){var d=void 0;if((d=this.data)==null?0:d.emojiCharacterCount)K+=this.data.emojiCharacterCount;else{var C=d=void 0,W=void 0;K+=((C=_.DP(_.Cl,(d=D)==null?void 0:d.emojiId))==null?void 0:(W=C.shortcuts)==null?void 0:W[0].length)||0}}}return K};
_.I.characterCountChanged=function(){_.xs(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.I.focusedChanged=function(){this.hostElement.dispatchEvent(new _.oi("focused-changed",this.focused))};
_.I.focus=function(){this.setFocus(!1)};
_.I.focusAtEnd=function(){this.setFocus(!0)};
_.I.setFocus=function(u){u=u?this.getRangeAtEnd():this.getInputRange();_.bi(this.hostElement).querySelector("#input").focus();var K=window.getSelection();K&&(K.removeAllRanges(),K.addRange(u))};
_.I.insertEmoji=function(u){var K,l=((u==null?0:u.isCustomEmoji)?(K=u.shortcuts)==null?void 0:K[0]:u==null?void 0:u.emojiId)||"";this.insertText(l)};
_.I.computeText=function(u){if(!u||!u.textSegments)return"";for(var K="",l=0;l<u.textSegments.length;l++){var D=u.textSegments[l];if(D.text)K+=D.text;else if(D.emojiId){var d=void 0,C=void 0,W=void 0;K+=((C=_.DP(_.Cl,(d=D)==null?void 0:d.emojiId))==null?void 0:(W=C.shortcuts)==null?void 0:W[0])||""}}return K};
_.I.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.MN.Object.defineProperties(M1.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.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}}});
M1.prototype.focusedChanged=M1.prototype.focusedChanged;M1.prototype.characterCountChanged=M1.prototype.characterCountChanged;M1.prototype.onSuggestion=M1.prototype.onSuggestion;M1.prototype.onMessageSet=M1.prototype.onMessageSet;M1.prototype.dataChanged=M1.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],M1.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],M1.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],M1.prototype,"disabled",void 0);_.g([_.R("disabled"),_.N("design:type",Number),_.N("design:paramtypes",[])],M1.prototype,"inputTabIndex",null);_.g([_.R("data.maxCharacterLimit"),_.U({readOnly:!0,notify:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],M1.prototype,"maxCharacterLimit",null);
_.g([_.R("liveChatRichMessageInput"),_.U({readOnly:!0,notify:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],M1.prototype,"characterCount",null);_.g([_.R("maxCharacterLimit, characterCount"),_.U({readOnly:!0,notify:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],M1.prototype,"remainingCharacterCount",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],M1.prototype,"isChatMessageInput",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],M1.prototype,"inputExpanded",void 0);_.g([_.U({readOnly:!0,notify:!0}),_.N("design:type",Object)],M1.prototype,"liveChatRichMessageInput",void 0);_.g([_.U(),_.N("design:type",Object)],M1.prototype,"messageInput",void 0);_.g([_.U(),_.N("design:type",Boolean)],M1.prototype,"ignoreColorMapping",void 0);_.g([_.R("characterCount"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],M1.prototype,"hasText",null);
_.g([_.U(),_.N("design:type",Object)],M1.prototype,"isValidWithNoInputText",void 0);_.g([_.R("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.U(),_.N("design:type",Boolean),_.N("design:paramtypes",[])],M1.prototype,"isInputValid",null);_.g([_.U({readOnly:!0,value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],M1.prototype,"focused",void 0);_.g([_.U(),_.N("design:type",Array)],M1.prototype,"suggestions",void 0);
_.g([_.U(),_.N("design:type",_.lK)],M1.prototype,"emojiManager",void 0);_.g([_.U(),_.N("design:type",_.Ws)],M1.prototype,"participantsManager",void 0);_.g([_.U(),_.N("design:type",Boolean)],M1.prototype,"noUnderline",void 0);_.g([_.U(),_.N("design:type",Object)],M1.prototype,"inputMethodEditorActive",void 0);_.g([_.BF("#dropdown"),_.N("design:type",Object)],M1.prototype,"dropdown",void 0);_.g([_.BF("#input"),_.N("design:type",HTMLElement)],M1.prototype,"input",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M1.prototype,"dataChanged",null);_.g([_.JU("messageInput"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M1.prototype,"onMessageSet",null);_.g([_.PF("yt-live-chat-select-suggestion"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],M1.prototype,"onSuggestion",null);
_.g([_.JU("characterCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M1.prototype,"characterCountChanged",null);_.g([_.JU("focused"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M1.prototype,"focusedChanged",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],M1);
_.RRN=_.F(M1,"yt-live-chat-text-input-field-renderer",function(){if(b$C===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;SHS===void 0&&(SHS=document.createElement("template"));var D=SHS;l.call(K,D.content.cloneNode(!0),u.content.firstChild);b$C=u}u=b$C;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var q1=function(){var u=_.Q.apply(this,arguments)||this;u.buttonOverrides={style:"overlay",type:"filled"};u.allowAnimations=!1;u.modern=_.S("web_button_rework_with_live");u.noPadding=!1;return u};
_.c(q1,_.Q);_.I=q1.prototype;_.I.shouldSupportInlineActionButtons=function(){return!0};
_.I.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"}}}}};
_.I.ready=function(){var u=document.querySelector("yt-live-chat-app");u&&u.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.I.attached=function(){this.allowAnimations=!1};
_.I.dataChanged=function(){if(this.data){var u={"--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)};_.e8(this.hostElement,u);this.allowAnimations=!0}};
_.I.messageChanged=function(){var u,K=(u=this.data)==null?void 0:u.message;u=_.bi(_.bi(this.hostElement).querySelector("#message"));u.textContent="";K&&u.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(K))};
_.I.computeShowOnlyHeader=function(u,K){return!u||u.pdgLikeButton||u.replyButton||u.buyFlowButton?!1:this.isEmpty(u,K)&&!u.footer};
_.I.computeShowFooterDivider=function(u,K,l){return u?!!u.footer&&!this.isEmpty(u,K)&&!l:!1};
_.I.computeIsUserEditable=function(u){return!!u.inputField};
_.I.computeHasHeartButton=function(u){return(u==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(u==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(u==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.I.computeNoveltyImage=function(u){if(u.headerOverlayImage&&u.headerOverlayImage.thumbnails.length){var K=u.headerOverlayImage.thumbnails[0],l,D;if((l=u.pdgPurchasedNoveltyLoggingDirectives)==null?0:(D=l.loggingDirectives)==null?0:D.trackingParams){var d,C;aNo((d=u.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(C=d.loggingDirectives)==null?void 0:C.trackingParams)}return K.width||0}return 0};
_.I.computeAuthorPhotoSize=function(u){return(u==null?0:u.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.I.inputFocus=function(){var u=_.bi(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");u&&u.focus()};
_.I.inputInsertEmoji=function(u){var K=_.bi(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");K&&K.insertEmoji(u)};
_.I.inputMessage=function(){var u=_.bi(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),K;return u&&((K=this.data)==null?0:K.inputField)?(u.completeEmojis(),_.Iw(u.liveChatRichMessageInput)):null};
_.I.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.I.isEmpty=function(u,K){return u?u.empty||!(u.message||u.inputField||K):!0};
_.I.onLowerBuyButtonClick=function(){var u,K=_.b((u=this.data)==null?void 0:u.buyButton,_.lF);K&&K.trackingParams&&!pHq(K.command)&&(u=_.gf(K.trackingParams))&&(K=_.AC())&&_.Wi(K,u)};
_.I.shouldSupportWholeItemClick=function(){return!0};
_.MN.Object.defineProperties(q1.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?0:u.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
q1.prototype.isDeletedChanged=q1.prototype.isDeletedChanged;q1.prototype.messageChanged=q1.prototype.messageChanged;q1.prototype.dataChanged=q1.prototype.dataChanged;_.g([_.e(l52.YtPdgLiveChatItemBehavior),_.N("design:type",Object)],q1.prototype,"ytPdgLiveChatItemBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],q1.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Dl),_.N("design:type",Object)],q1.prototype,"ytLiveChatReduxBehavior",void 0);
_.g([_.e(_.Ii.YtLiveChatItemBehavior),_.N("design:type",_.y8)],q1.prototype,"ytLiveChatItemBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],q1.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],q1.prototype,"data",void 0);_.g([_.U({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:OAn}),_.N("design:type",Object)],q1.prototype,"engagementState",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.N("design:type",Boolean)],q1.prototype,"isUserEditable",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.N("design:type",Boolean)],q1.prototype,"hasHeartButton",void 0);_.g([_.U({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.N("design:type",Boolean)],q1.prototype,"showOnlyHeader",void 0);
_.g([_.U({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.N("design:type",Boolean)],q1.prototype,"showFooterDivider",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Object)],q1.prototype,"allowAnimations",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],q1.prototype,"dashboardMoneyFeed",void 0);_.g([_.U({computed:"computeNoveltyImage(data)"}),_.N("design:type",Number)],q1.prototype,"noveltyWidth",void 0);
_.g([_.U({computed:"computeAuthorPhotoSize(data)"}),_.N("design:type",Number)],q1.prototype,"authorPhotoSize",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],q1.prototype,"modern",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],q1.prototype,"noPadding",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q1.prototype,"dataChanged",null);
_.g([_.JU("data.message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q1.prototype,"messageChanged",null);_.g([_.R("data","dashboardMoneyFeed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],q1.prototype,"hideLowerBumper",null);_.g([_.JU("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q1.prototype,"isDeletedChanged",null);
_.g([_.T({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],q1);
_.F(q1,"yt-live-chat-paid-message-renderer",function(){if(TJw===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;iLk===void 0&&(iLk=document.createElement("template"));var D=iLk;l.call(K,D.content.cloneNode(!0),u.content.firstChild);TJw=u}u=TJw;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var UjB;var ff2;var $M=function(){var u=_.ii.apply(this,arguments)||this;u._noAccessors=!0;return u};
_.c($M,_.ii);$M.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.E3("openPopupConfig")};
_.g([_.e(_.B2.YtOpenPopupBehavior),_.N("design:type",Object)],$M.prototype,"ytOpenPopupBehavior",void 0);_.g([_.TQ()],$M);_.nl=[_.B2.YtOpenPopupBehavior,$M.prototype];var QzA;var qX=[_.jt,y1H,_.LP,_.BI,_.oy,_.ejB,_.TO,_.pdB,_.X_,bjq];_.S("web_watch_get_updated_metadata_response_processing")&&qX.push(_.KKs);_.S("web_continuation_response_processing")&&qX.push(_.C1);var GM9=new _.G$("RESPONSE_RECEIVED_COMMANDS"),Gsr=new _.G$("RESPONSE_RECEIVED_COMMANDS");var HjH="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),WBn=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],oQy=["GET_UNSEEN_NOTIFICATION_COUNT"];var rj=function(){var u=_.ii.apply(this,arguments)||this;u._noAccessors=!0;u.serviceEndpointHandlers=[];return u};
_.c(rj,_.ii);rj.prototype.created=function(){var u=this;this.endpointHandlerActionMap={"yt-service-request":function(K,l,D,d){var C;return sly(u.hostElement,K,l,D,d,u.serviceEndpointHandlers,(C=u.onEntitiesUpdated)==null?void 0:C.bind(u))}}};
rj.prototype.attached=function(){_.I9(_.Ci.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
rj.prototype.detached=function(){_.yH(_.Ci.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.g([_.TQ()],rj);_.PRw=[rj.prototype];var Jj0,jza=function(){return Jj0!==void 0?Jj0:Jj0=document.createElement("template")};
document.head.appendChild(jza().content);var B42;var phs=document.head,i$a=phs.appendChild,T40;if(B42===void 0){var wh2=document.createElement("template");_.z(wh2,"\x3c!--css-build:shady--\x3e");wh2.content.insertBefore(jza().content.cloneNode(!0),wh2.content.firstChild);B42=wh2}T40=B42;i$a.call(phs,T40.content);var Fw2,VC0=function(){return Fw2!==void 0?Fw2:Fw2=document.createElement("template")};
document.head.appendChild(VC0().content);var gb2;var N4H=document.head,kmm=N4H.appendChild,Z$R;if(gb2===void 0){var YHS=document.createElement("template");_.z(YHS,"\x3c!--css-build:shady--\x3e");YHS.content.insertBefore(VC0().content.cloneNode(!0),YHS.content.firstChild);gb2=YHS}Z$R=gb2;kmm.call(N4H,Z$R.content);var Ajw;_.E4("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.E4("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Ajw=_.S("web_button_rework")&&_.L0("BUTTON_REWORK")||_.S("web_button_rework_with_live");_.vs=function(){var u=_.Q.apply(this,arguments)||this;u.isPressed=!1;u.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return u};
_.c(_.vs,_.Q);_.I=_.vs.prototype;_.I.created=function(){this.showTooltips=!0};
_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.onHintIdChanged=function(){var u=this,K,l,D=(K=this.ytButtonBehavior.data)==null?void 0:(l=K.hint)==null?void 0:l.hintRenderer;if(D&&D.hintId){K=_.bI(this.hostElement,"yt-get-opened-popups-action");K=(K&&K.length===1?K[0]:[]).length>0;var d=null;D.hintId!=="sponsor-pre-purchase"||K?D.hintId.startsWith("sponsor-post-purchase")&&!K?d=rJw("membership-manage"):D.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!K&&(d=rJw("membership-freebie-join")):d=rJw("membership-join");d&&_.YL.addLowPriorityJob(function(){for(var C=
_.y(d),W=C.next();!W.done;W=C.next())u.ytComponentBehavior.resolveCommand(W.value)})}};
_.I.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.I.onYtNavigate=function(u){var K=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(u.detail.endpoint);K&&(u.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(K))};
_.I.onYtServiceRequestSent=function(u,K){this.handleServiceRequestActions(K);_.xs(this.hostElement,"yt-service-request-sent-button-renderer")};
_.I.onServiceRequestCompleted=function(u,K){this.handleServiceRequestActions(K);_.xs(this.hostElement,"yt-service-request-completed-button-renderer")};
_.I.updateButton=function(u){var K;if(u=(K=_.b(u,EzR))==null?void 0:K.updatedButton)this.ytButtonBehavior.data=_.b(u,_.lF)};
_.I.handleUpdateButtonAction=function(u){var K=this.ytButtonBehavior.data;K.targetId&&u.updateButtonAction.targetId&&K.targetId===u.updateButtonAction.targetId&&this.updateButton(u)};
_.I.handleServiceRequestActions=function(u){if(u=u.actions)for(var K=0;K<u.length;K++)this.updateButton(u[K])};
_.MN.Object.defineProperties(_.vs,{template:{configurable:!0,enumerable:!0,get:function(){if(QzA===void 0){var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);QzA=u}u=QzA;return u}}});
_.vs.prototype.onServiceRequestCompleted=_.vs.prototype.onServiceRequestCompleted;_.vs.prototype.onYtServiceRequestSent=_.vs.prototype.onYtServiceRequestSent;_.vs.prototype.onYtNavigate=_.vs.prototype.onYtNavigate;_.vs.prototype.onPressedStateChanged=_.vs.prototype.onPressedStateChanged;_.vs.prototype.onHintIdChanged=_.vs.prototype.onHintIdChanged;_.g([_.U(),_.N("design:type",Object)],_.vs.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],_.vs.prototype,"isPressed",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],_.vs.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Cxw.YtButtonBehavior),_.N("design:type",Object)],_.vs.prototype,"ytButtonBehavior",void 0);_.g([_.e(_.nl),_.N("design:type",Object)],_.vs.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],_.vs.prototype,"ytComponentBehavior",void 0);
_.g([_.e(VG.YtRenderButtonBehavior),_.N("design:type",Object)],_.vs.prototype,"ytRenderButtonBehavior",void 0);_.g([_.JU("data.hint.hintRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],_.vs.prototype,"onHintIdChanged",null);_.g([_.JU("isPressed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],_.vs.prototype,"onPressedStateChanged",null);
_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],_.vs.prototype,"onYtNavigate",null);_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],_.vs.prototype,"onYtServiceRequestSent",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],_.vs.prototype,"onServiceRequestCompleted",null);_.g([_.T({is:"ytd-button-renderer",disableElementRegistration:Ajw})],_.vs);var Gn=function(){var u=_.Q.apply(this,arguments)||this;u.modern=_.S("web_button_rework_with_live");u.buttonOverrides={style:"overlay",type:"filled"};return u};
_.c(Gn,_.Q);_.I=Gn.prototype;_.I.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"}}}}};
_.I.ready=function(){var u=document.querySelector("yt-live-chat-app");u&&u.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.I.dataChanged=function(){if(this.data&&this.data.sticker){var u=_.bt(this.data.sticker.thumbnails,this.stickerWidth);u||_.arL(u).thenCatch(function(){_.hV(new _.wv("Failed to load Super Sticker with url",u))})}};
_.I.computeAuthorPhotoSize=function(u){return(u==null?0:u.isV2Style)?32:40};
_.I.computeIsV2Style=function(u){return(u==null?0:u.isV2Style)?!0:!1};
_.I.onStickerLoaded=function(u){var K,l,D;(K=_.HF(u))==null||(l=K.parentNode)==null||(D=l.classList)==null||D.add("sticker-loaded")};
_.I.computeNoveltyImageWidth=function(u){var K,l;if(u==null?0:(K=u.headerOverlayImage)==null?0:(l=K.thumbnails)==null?0:l.length){K=u.headerOverlayImage.thumbnails[0];var D,d;if((D=u.pdgPurchasedNoveltyLoggingDirectives)==null?0:(d=D.loggingDirectives)==null?0:d.trackingParams){var C,W;aNo((C=u.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(W=C.loggingDirectives)==null?void 0:W.trackingParams)}return K.width||0}return 0};
_.I.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.I.updateStickerStyles=function(){var u=this.data;u&&(u={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(u.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(u.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(u.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(u.authorNameTextColor)},
_.e8(this.hostElement,u))};
_.I.onBuyButtonClick=function(){var u,K=_.b((u=this.data)==null?void 0:u.buyButton,_.lF);K&&!pHq(K.command)&&this.ytRendererBehavior.logExplicitClick(K)};
_.I.shouldSupportWholeItemClick=function(){return!0};
_.MN.Object.defineProperties(Gn.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 u;return((u=this.data)==null?0:u.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Gn.prototype.updateStickerStyles=Gn.prototype.updateStickerStyles;Gn.prototype.isDeletedChanged=Gn.prototype.isDeletedChanged;Gn.prototype.onStickerLoaded=Gn.prototype.onStickerLoaded;Gn.prototype.dataChanged=Gn.prototype.dataChanged;_.g([_.e(l52.YtPdgLiveChatItemBehavior),_.N("design:type",Object)],Gn.prototype,"ytPdgLiveChatItemBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Gn.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Ii.YtLiveChatItemBehavior),_.N("design:type",_.y8)],Gn.prototype,"ytLiveChatItemBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Gn.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Gn.prototype,"data",void 0);
_.g([_.U({computed:"computeAuthorPhotoSize(data)"}),_.N("design:type",Number)],Gn.prototype,"authorPhotoSize",void 0);_.g([_.U(),_.N("design:type",Boolean)],Gn.prototype,"isDeleted",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Gn.prototype,"dashboardMoneyFeed",void 0);_.g([_.U({computed:"computeNoveltyImageWidth(data)"}),_.N("design:type",Number)],Gn.prototype,"noveltyWidth",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Gn.prototype,"modern",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.N("design:type",Boolean)],Gn.prototype,"isV2Style",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gn.prototype,"dataChanged",null);_.g([_.PF("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Gn.prototype,"onStickerLoaded",null);
_.g([_.R("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],Gn.prototype,"stickerWidth",null);_.g([_.R("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],Gn.prototype,"stickerHeight",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Gn.prototype,"hasHeartButton",null);_.g([_.R("data","dashboardMoneyFeed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Gn.prototype,"hideLowerBumper",null);
_.g([_.JU("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gn.prototype,"isDeletedChanged",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gn.prototype,"updateStickerStyles",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Gn);
_.F(Gn,"yt-live-chat-paid-sticker-renderer",function(){if(ff2===void 0){var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;UjB===void 0&&(UjB=document.createElement("template"));var D=UjB;l.call(K,D.content.cloneNode(!0),u.content.firstChild);ff2=u}u=ff2;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Xha;var mjs;var hRm,Eb0=function(){return hRm!==void 0?hRm:hRm=document.createElement("template")};
document.head.appendChild(Eb0().content);var Lwa,uyS=function(){return Lwa!==void 0?Lwa:Lwa=document.createElement("template")};
document.head.appendChild(uyS().content);var KAS;var lNk,Dl2=function(){return lNk!==void 0?lNk:lNk=document.createElement("template")};
document.head.appendChild(Dl2().content);var dla;var Cj0=document.head,INa=Cj0.appendChild,yN2;if(dla===void 0){var sUa=document.createElement("template");_.z(sUa,"\x3c!--css-build:shady--\x3e");sUa.content.insertBefore(Dl2().content.cloneNode(!0),sUa.content.firstChild);dla=sUa}yN2=dla;INa.call(Cj0,yN2.content);var oNS=document.head,WAw=oNS.appendChild,HAs;if(KAS===void 0){var ti=document.createElement("template");_.z(ti,"\x3c!--css-build:shady--\x3e");ti.content.insertBefore(uyS().content.cloneNode(!0),ti.content.firstChild);ti.content.insertBefore(Eb0().content.cloneNode(!0),ti.content.firstChild);KAS=ti}HAs=KAS;WAw.call(oNS,HAs.content);var xM=function(){var u=_.ii.apply(this,arguments)||this;u.focusedIndex=0;u.verticalOffset=0;u.verticalAlign="top";u.dynamicAlign=!0;return u};
_.c(xM,_.ii);xM.prototype.emojiUrl=function(u){u=_.DP(this.emojiManager,u);if(!u)return"";var K;u=(K=u.image)==null?void 0:K.thumbnails;return _.bt(u,24)||""};
var McC=function(u){var K;u.emojiVariants&&(K=u.data)!=null&&K.target&&_.W_(u,function(){u.set("verticalOffset",-1*u.hostElement.clientHeight);var l=_.bi(u.hostElement).querySelector("img");l&&l.focus()})};
_.I=xM.prototype;_.I.onKeyboardEnter=function(){};
_.I.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.I.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.I.onKeyDown=function(u){switch(u.keyCode){case 13:this.onKeyboardEnter();u.preventDefault();break;case 40:this.changeFocus(1);u.preventDefault();break;case 38:this.changeFocus(-1);u.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.I.onYtEmojiSelect=function(u){var K=this,l,D,d,C,W,M,q,v;return _.H(function(G){if(G.nextAddress==1)return D=(l=K.data)==null?void 0:l.emoji,W=((d=D)==null?void 0:d.stickyPrefId)||((C=D)==null?void 0:C.emojiId),q=(M=u.detail)==null?void 0:M.emojiId,W&&q&&W!==q?G.yield((v=K.emojiManager)==null?void 0:vbR(v,D,q),2):G.return();_.Sy(K.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[D,q]);_.TG(G)})};
_.I.changeFocus=function(u){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+u+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(u=_.bi(this.hostElement).querySelector("#variants"))&&u.children[this.focusedIndex].focus())};
_.MN.Object.defineProperties(xM.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
xM.prototype.onYtEmojiSelect=xM.prototype.onYtEmojiSelect;xM.prototype.onKeyDown=xM.prototype.onKeyDown;xM.prototype.onEmojiVariantsChanged=xM.prototype.onEmojiVariantsChanged;xM.prototype.onVerticalOffsetOrPositionTargetChanged=xM.prototype.onVerticalOffsetOrPositionTargetChanged;_.g([_.e(_.oP),_.N("design:type",Object)],xM.prototype,"ironOverlayBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],xM.prototype,"data",void 0);_.g([_.U(),_.N("design:type",_.lK)],xM.prototype,"emojiManager",void 0);
_.g([_.U(),_.N("design:type",Object)],xM.prototype,"emojiVariants",void 0);_.g([_.U(),_.N("design:type",Object)],xM.prototype,"focusedIndex",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],xM.prototype,"positionTarget",null);_.g([_.U({reflectToAttribute:!0}),_.R("verticalOffset","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xM.prototype,"isPositioned",null);_.g([_.U(),_.N("design:type",Object)],xM.prototype,"verticalOffset",void 0);
_.g([_.U(),_.N("design:type",Object)],xM.prototype,"verticalAlign",void 0);_.g([_.U(),_.N("design:type",Object)],xM.prototype,"dynamicAlign",void 0);_.g([_.JU("verticalOffset","positionTarget"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xM.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.g([_.JU("emojiVariants"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xM.prototype,"onEmojiVariantsChanged",null);
_.g([_.PF("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],xM.prototype,"onKeyDown",null);_.g([_.PF("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype",Promise)],xM.prototype,"onYtEmojiSelect",null);_.g([_.TQ()],xM);var qik=[xM.prototype];var $lm;var nN0;var rNk=/medium-light|medium-dark|light|medium|dark/,vNs=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,Gqw=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),So=function(){var u=_.Q.apply(this,arguments)||this;u.userSelection={left:null,right:null};u.scrollAction="lock";u.isEmojiDraftInProgress=!1;return u};
_.c(So,_.Q);_.I=So.prototype;_.I.onClick=function(u){u=_.HF(u);u instanceof HTMLImageElement&&this.selectOrUpdateEmoji(u)};
_.I.selectOrUpdateEmoji=function(u){var K=u.getAttribute("selection");K&&(K==="default"?_.xs(this.hostElement,"yt-emoji-select",_.DP(this.emojiManager,u.id)):K==="left"?this.userSelection=Object.assign({},this.userSelection,{left:u.src}):K==="right"?this.userSelection=Object.assign({},this.userSelection,{right:u.src}):K==="user"&&this.userSelection.left&&this.userSelection.right&&_.xs(this.hostElement,"yt-emoji-select",_.DP(this.emojiManager,u.id)))};
_.I.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.I.onMultiSelectorThumbnailRowChanged=function(){var u,K,l;((u=this.data)==null?0:(K=u.emoji)==null?0:(l=K.multiSelectorThumbnailRow)==null?0:l.length)&&this.openSelector()};
_.I.getThumbnailFromEmojiRow=function(u){var K,l;return(u==null?void 0:(K=u.thumbnails)==null?void 0:(l=K[0])==null?void 0:l.url)||""};
_.I.getEmojiAltTextForPartialSelector=function(u){var K;return((K=this.getThumbnailFromEmojiRow(u).match(vNs))==null?void 0:K[0])||""};
_.I.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.I.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.I.getRowSelection=function(u){return["left","right"][u]};
_.I.getIdFromComposedEmoji=function(u){return(u==null?void 0:u.emojiId)||""};
_.I.getEmojiFromPartialSelections=function(u,K){if(!u&&!K)return null;var l,D,d=(l=this.data)==null?void 0:(D=l.emoji)==null?void 0:D.variantIds;if(!d||!d.length)return null;var C;u=(C=u.match(rNk))==null?void 0:C[0];var W;K=(W=K.match(rNk))==null?void 0:W[0];if(!u||!K)return null;var M=Gqw.get(u);W=Gqw.get(K);if(M===W){W=Array.from(Gqw.values()).filter(function(v){return v!==M}).join("|");
var q=new RegExp("^((?!("+W+")).)*"+M+"$")}else q=new RegExp(M+".*"+W);return(d=d.find(function(v){return q.test(v)}))&&_.DP(this.emojiManager,d)||null};
_.I.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var u,K=this.ytEmojiSelectorBehavior.emojiUrl(((u=this.data.emoji)==null?void 0:u.emojiId)||"");_.bi(this.hostElement).querySelector('[selection="user"]').src.includes(K)||(this.isEmojiDraftInProgress=!0)}};
_.I.onDomChange=function(){McC(this.ytEmojiSelectorBehavior)};
_.I.getFocusableElements=function(){return _.bi(this.hostElement).querySelectorAll("img").filter(function(u){return u.getAttribute("role")==="option"})};
_.I.changeFocus=function(u){var K=this.getFocusableElements();K!=null&&K.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+u+K.length)%K.length,this.ytEmojiSelectorBehavior.focusedIndex<K.length&&(u=K[this.ytEmojiSelectorBehavior.focusedIndex])&&u.focus())};
_.I.onKeyboardEnter=function(){var u=this.getFocusableElements();u!=null&&u.length&&(u=u[this.ytEmojiSelectorBehavior.focusedIndex])&&u instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(u),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.MN.Object.defineProperties(So.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var u=this,K,l,D;return this.emojiManager&&((K=this.data)==null?0:(l=K.emoji)==null?0:(D=l.variantIds)==null?0:D.length)?this.data.emoji.variantIds.map(function(d){return!!d&&_.DP(u.emojiManager,d)}).filter(function(d){return!!d}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var u,K=(u=this.userSelection)==null?void 0:u.left,l;u=(l=this.userSelection)==null?void 0:l.right;return K&&u?this.getEmojiFromPartialSelections(K,u):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.composedEmojiSelection)==null?0:u.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var K;u=(K=this.userSelection)==null?void 0:K.left;var l;K=(l=this.userSelection)==null?void 0:l.right;if(!u&&!K){var D;return this.ytEmojiSelectorBehavior.emojiUrl(((D=this.data.emoji)==null?void 0:D.emojiId)||"")}return u&&!K?u:!u&&K?K:""}}});
So.prototype.onMultiSelectorThumbnailRowChanged=So.prototype.onMultiSelectorThumbnailRowChanged;So.prototype.onClick=So.prototype.onClick;_.g([_.e(_.oP),_.N("design:type",Object)],So.prototype,"ironOverlayBehavior",void 0);_.g([_.e(qik),_.N("design:type",Object)],So.prototype,"ytEmojiSelectorBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],So.prototype,"data",void 0);_.g([_.U(),_.N("design:type",_.lK)],So.prototype,"emojiManager",void 0);
_.g([_.U(),_.N("design:type",Object)],So.prototype,"userSelection",void 0);_.g([_.U(),_.N("design:type",Object)],So.prototype,"scrollAction",void 0);_.g([_.U(),_.N("design:type",Object)],So.prototype,"isEmojiDraftInProgress",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],So.prototype,"emojiVariants",null);_.g([_.R("data","userSelection"),_.N("design:type",Object),_.N("design:paramtypes",[])],So.prototype,"composedEmojiSelection",null);
_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],So.prototype,"onClick",null);_.g([_.JU("data.emoji.multiSelectorThumbnailRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],So.prototype,"onMultiSelectorThumbnailRowChanged",null);_.g([_.R("data","userSelection","composedEmojiSelection"),_.N("design:type",String),_.N("design:paramtypes",[])],So.prototype,"draftEmojiUrl",null);
_.g([_.E9({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],So);
_.F(So,"yt-emoji-multi-person-selector",function(){if(nN0===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;$lm===void 0&&($lm=document.createElement("template"));var D=$lm;l.call(K,D.content.cloneNode(!0),u.content.firstChild);nN0=u}u=nN0;return u},{mode:2});var tcR;var xlw;var bK=function(){var u=_.Q.apply(this,arguments)||this;u.tooltip_=null;return u};
_.c(bK,_.Q);_.I=bK.prototype;_.I.dataChanged_=function(){var u;if((u=this.data)==null?0:u.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.bi(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.zQ)(this.tooltip_).textContent=this.data.tooltip};
_.I.computeTargetId=function(){var u;return((u=this.data)==null?void 0:u.targetId)||""};
_.I.computeId_=function(u){return u};
_.I.computeIcon_=function(u){return _.fr(u)};
_.I.onTap_=function(){this.active=!this.active;_.xs(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.I.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("active-changed",this.active))};
_.MN.Object.defineProperties(bK.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var u,K;if((u=this.data)==null?0:(K=u.icon)==null?0:K.iconType)return this.data.icon.iconType==="SUPER_STICKER";var l,D;return((l=this.data)==null?void 0:(D=l.icon)==null?void 0:D.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
bK.prototype.activeChangedForBinding=bK.prototype.activeChangedForBinding;bK.prototype.dataChanged_=bK.prototype.dataChanged_;_.g([_.e(_.dh.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],bK.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],bK.prototype,"data",void 0);_.g([_.U({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.N("design:type",String)],bK.prototype,"id",void 0);
_.g([_.U({computed:"computeTargetId(data.targetId)"}),_.N("design:type",String)],bK.prototype,"targetId",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],bK.prototype,"active",void 0);_.g([_.U({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.N("design:type",String)],bK.prototype,"icon",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bK.prototype,"dataChanged_",null);
_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bK.prototype,"iconFilled",null);_.g([_.JU("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bK.prototype,"activeChangedForBinding",null);_.g([_.E9({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],bK);
_.F(bK,"yt-emoji-picker-category-button-renderer",function(){if(xlw===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;tcR===void 0&&(tcR=document.createElement("template"));var D=tcR;l.call(K,D.content.cloneNode(!0),u.content.firstChild);xlw=u}u=xlw;return u},{mode:2});var SiH;var bAC;var Oe=function(){var u=_.Q.apply(this,arguments)||this;u.ariaLabel=null;u.ariaActivedescendant=null;u.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};u.JSC$14048_ignoreNextFocus_=!1;u.longPressTimeoutId=-1;return u};
_.c(Oe,_.Q);_.I=Oe.prototype;_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.I.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.I.emojiChanged_=function(){this.changeFocus_(0,!1);for(var u=_.iT(),K=0;K<this.emoji.length;K++){var l={veType:88013,elementIndex:K},D=this.emoji[K];D.isCustomEmoji&&(D=document.querySelector(("#"+D.emojiId).replace("/","\\/")))&&(l=_.pr(u,l))&&(D.visualElement=l)}};
_.I.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.I.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.I.emojiSkinToneChanged_=function(u){this.skinTone=u};
_.I.dataChanged=function(){this.data&&this.data.emojiData&&qHA(this.emojiManager,this.data.emojiData)};
_.I.emojiUrl=function(u){u=this.getEmoji(u);if(!u)return"";var K;u=(K=u.image)==null?void 0:K.thumbnails;return _.bt(u,24)||""};
_.I.emojiAlt=function(u){var K=this.get("image.accessibility.accessibilityData.label",u);return K?K:u.isCustomEmoji?u.shortcuts[0]:u.emojiId};
_.I.emojiAriaLabel=function(u){return u.shortcuts?u.shortcuts[0]:""};
_.I.emojiAriaSelected=function(u,K,l){return u&&l==K?"true":"false"};
_.I.getEmoji=function(u){if(this.emojiManager)return this.shouldUseStickyPreferences?nbk(this.emojiManager,u):dj(this.emojiManager,u)};
_.I.computeId_=function(u){return u.categoryId||""};
_.I.computeEmoji=function(u){var K=this;return this.emojiManager?u.emojiIds?u.emojiIds.map(function(l){return l?_.DP(K.emojiManager,l):null}).filter(zOZ):u.emojiData?u.emojiData.map(function(l){var D=!!l.emojiId&&_.DP(K.emojiManager,l.emojiId);
return D?Object.assign({},D,l):null}).filter(zOZ):[]:[]};
_.I.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.I.computeAriaLabel_=function(u){return _.WI(u)};
_.I.computeAriaActivedescendant_=function(u,K){return u&&u[K]?u[K].emojiId||"":""};
_.I.handleLongPressEmojiWithVariants=function(u,K){this.changeFocusToEmoji(u.emojiId,!1);this.openVariantSelector(u,K)};
_.I.onMouseDown=function(u){var K=this;this.hostElement!==document.activeElement&&(this.JSC$14048_ignoreNextFocus_=!0);if(u.button===0){var l=_.HF(u);if(l instanceof HTMLImageElement){var D=_.bi(this.hostElement).querySelector("#repeat").itemForElement(l);this.emojiContainsVariants(D)&&(this.longPressTimeoutId=setTimeout(function(){K.handleLongPressEmojiWithVariants(D,l)},500))}}};
_.I.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.I.onFocus=function(){this.JSC$14048_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14048_ignoreNextFocus_=!1};
_.I.onBlur_=function(){this.showFocus=!1};
_.I.emojiContainsVariants=function(u){return!!(u&&u.variantIds&&u.variantIds.length)};
_.I.onClick=function(u){clearTimeout(this.longPressTimeoutId);u=_.HF(u);if(u instanceof HTMLImageElement){var K=u.id;this.changeFocusToEmoji(K,!1);var l=this.getEmoji(K),D;if(D=this.shouldUseStickyPreferences&&this.emojiContainsVariants(l)){var d;D=!((d=this.emojiManager.emojiMap[K])!=null&&d.stickyPrefId)}D?(d=_.bi(this.hostElement).querySelector("#repeat").itemForElement(u),this.openVariantSelector(d,u)):_.xs(this.hostElement,"yt-emoji-select",l)}};
_.I.isActiveEmojiWithVariants=function(u,K){return u&&K?K.stickyPrefId?u===K.stickyPrefId:u===K.emojiId:!1};
_.I.onCloseEmojiVariantSelector=function(u){this.activeEmojiWithVariantsId===u&&(this.activeEmojiWithVariantsId="")};
_.I.onMouseOver_=function(u){u=_.HF(u);u instanceof HTMLImageElement&&_.xs(this.hostElement,"yt-emoji-hover",_.DP(this.emojiManager,u.id))};
_.I.changeFocus_=function(u,K){this.focusedIndex=(this.focusedIndex+u+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(u=this.emoji[this.focusedIndex],K&&(this.showFocus=!0,_.bi(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.xs(this.hostElement,"yt-emoji-hover",u)))};
_.I.changeFocusToEmoji=function(u,K){if(u){var l=this.emoji.findIndex(function(D){return D.emojiId===u});
l!==-1&&this.changeFocus_(l-this.focusedIndex,K)}};
_.I.onKeyDown_=function(u){switch(u.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var K=this.emoji[this.focusedIndex];if(K&&K.emojiId){if(this.emojiContainsVariants(K)){var l=_.bi(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(K,l)}else _.xs(this.hostElement,"yt-emoji-select",dj(this.emojiManager,K.emojiId)),this.hostElement.focus();u.preventDefault()}}break;case 40:this.changeFocus_(1,!0);u.preventDefault();break;case 38:this.changeFocus_(-1,!0),
u.preventDefault()}};
_.I.onEmojiStickyPreferenceChanged=function(u,K){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&u.emojiId&&u.variantIds&&u.variantIds.includes(K)&&this.activeEmojiWithVariantsId!==K&&this.setStickyEmojiPreference(u.emojiId,K)};
_.I.openVariantSelector=function(u,K){this.activeEmojiWithVariantsId=u.stickyPrefId||u.emojiId||"";_.xs(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:u,target:K})};
_.I.setStickyEmojiPreference=function(u,K){if(this.data){var l=this.emoji.findIndex(function(d){return d.emojiId===u});
if(l!==-1){var D=this.emoji[l];D.stickyPrefId=K;this.set("emoji."+l,Object.assign({},D));this.activeEmojiWithVariantsId=K}}};
Oe.prototype.onKeyDown_=Oe.prototype.onKeyDown_;Oe.prototype.onMouseOver_=Oe.prototype.onMouseOver_;Oe.prototype.onClick=Oe.prototype.onClick;Oe.prototype.onBlur_=Oe.prototype.onBlur_;Oe.prototype.onFocus=Oe.prototype.onFocus;Oe.prototype.onMouseUp=Oe.prototype.onMouseUp;Oe.prototype.onMouseDown=Oe.prototype.onMouseDown;Oe.prototype.dataChanged=Oe.prototype.dataChanged;Oe.prototype.disableIncrementalLoadingChanged_=Oe.prototype.disableIncrementalLoadingChanged_;Oe.prototype.emojiManagerChanged_=Oe.prototype.emojiManagerChanged_;
Oe.prototype.emojiChanged_=Oe.prototype.emojiChanged_;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Oe.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Oe.prototype,"data",void 0);_.g([_.U({computed:"computeId_(data)"}),_.N("design:type",String)],Oe.prototype,"id",void 0);_.g([_.U({computed:"computeEmoji(data)"}),_.N("design:type",Array)],Oe.prototype,"emoji",void 0);_.g([_.U(),_.N("design:type",Number)],Oe.prototype,"skinTone",void 0);
_.g([_.U(),_.N("design:type",_.lK)],Oe.prototype,"emojiManager",void 0);_.g([_.U(),_.N("design:type",Boolean)],Oe.prototype,"disableIncrementalLoading",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],Oe.prototype,"focusedIndex",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Oe.prototype,"showFocus",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.N("design:type",Object)],Oe.prototype,"ariaLabel",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.N("design:type",Object)],Oe.prototype,"ariaActivedescendant",void 0);_.g([_.U({value:60}),_.N("design:type",Number)],Oe.prototype,"domRepeatTargetFramerate",void 0);_.g([_.U({value:1}),_.N("design:type",Number)],Oe.prototype,"domRepeatInitialCount",void 0);_.g([_.U({value:""}),_.N("design:type",String)],Oe.prototype,"activeEmojiWithVariantsId",void 0);
_.g([_.U({value:!1}),_.N("design:type",Boolean)],Oe.prototype,"shouldUseStickyPreferences",void 0);_.g([_.JU("emoji"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oe.prototype,"emojiChanged_",null);_.g([_.JU("emojiManager"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oe.prototype,"emojiManagerChanged_",null);
_.g([_.JU("disableIncrementalLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oe.prototype,"disableIncrementalLoadingChanged_",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oe.prototype,"dataChanged",null);_.g([_.PF("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],Oe.prototype,"onMouseDown",null);
_.g([_.PF("mouseup"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oe.prototype,"onMouseUp",null);_.g([_.PF("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oe.prototype,"onFocus",null);_.g([_.PF("blur"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oe.prototype,"onBlur_",null);
_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Oe.prototype,"onClick",null);_.g([_.PF("mouseover"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Oe.prototype,"onMouseOver_",null);_.g([_.PF("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Oe.prototype,"onKeyDown_",null);
_.g([_.E9({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],Oe);
_.F(Oe,"yt-emoji-picker-category-renderer",function(){if(bAC===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;SiH===void 0&&(SiH=document.createElement("template"));var D=SiH;l.call(K,D.content.cloneNode(!0),u.content.firstChild);bAC=u}u=bAC;return u},{mode:2});var OAm;var cNw;var aNa;var ztk;var cs=function(){var u=_.Q.apply(this,arguments)||this;u.ariaLabel=null;u.ariaActivedescendant=null;u.getFormattedStringRawText=_.WI;u.JSC$14054_ignoreNextFocus_=!1;return u};
_.c(cs,_.Q);_.I=cs.prototype;_.I.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")};
_.I.emojiUrl=function(u){var K,l;u=(K=dj(this.emojiManager,u,!0))==null?void 0:(l=K.image)==null?void 0:l.thumbnails;return _.bt(u,24)||""};
_.I.emojiAlt=function(u){var K=this.get("image.accessibility.accessibilityData.label",u);return K?K:u.isCustomEmoji?u.shortcuts[0]:u.emojiId};
_.I.emojiId=function(u){return"emoji"+u};
_.I.computeId_=function(u){return u.categoryId||""};
_.I.computeAriaActivedescendant_=function(u){return this.emoji&&u<this.emoji.length?this.emojiId(u):""};
_.I.emojiChanged_=function(){this.changeFocus_(0,!1);for(var u=_.iT(),K=0;K<this.emoji.length;K++){var l={veType:88013,elementIndex:K},D=this.emoji[K];D.isCustomEmoji&&(D=document.querySelector(("#"+D.emojiId).replace("/","\\/")))&&(l=_.pr(u,l))&&(D.visualElement=l)}};
_.I.computeEmoji_=function(u){var K=this;return this.emojiManager?u.emojiIds.map(function(l){return _.DP(K.emojiManager,l,!0)}).filter(eOq):[]};
_.I.titleOffsetChanged_=function(){var u=this.hostElement.getBoundingClientRect(),K=_.bi(this.hostElement).querySelector("#title").getBoundingClientRect();u=Math.max(0,Math.min(this.titleOffset,u.height-K.height));_.bi(this.hostElement).querySelector("#title").style.top=u+"px"};
_.I.onEmojiMouseOver_=function(u){_.xs(this.hostElement,"yt-emoji-hover",u.model.item)};
_.I.onEmojiTap_=function(u){this.data.command&&(u=JNL(_.GB().resolve(_.vv(Dh)),this.data.command,u),_.xs(this.hostElement,"yt-navigate",u))};
_.I.emojiAriaLabel=function(u){return u.shortcuts[0]};
_.I.emojiAriaSelected=function(u,K,l){return u&&l==K?"true":"false"};
_.I.changeFocus_=function(u,K){var l=this.emoji.length;this.focusedIndex=(this.focusedIndex+u+l)%l;u=this.emoji[this.focusedIndex];if(K){var D;(D=_.bi(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||D.scrollIntoView(!1);_.xs(this.hostElement,"yt-emoji-hover",u)}};
_.I.onMouseDown_=function(){this.JSC$14054_ignoreNextFocus_=!0};
_.I.onFocus_=function(){this.JSC$14054_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14054_ignoreNextFocus_=!1};
_.I.onBlur_=function(){this.showFocus=!1};
_.I.onKeyDown_=function(u){switch(u.keyCode){case 13:this.onEmojiTap_(u);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);u.preventDefault();break;case 38:this.changeFocus_(-1,!0),u.preventDefault()}};
cs.prototype.onKeyDown_=cs.prototype.onKeyDown_;cs.prototype.onBlur_=cs.prototype.onBlur_;cs.prototype.onFocus_=cs.prototype.onFocus_;cs.prototype.onMouseDown_=cs.prototype.onMouseDown_;cs.prototype.onEmojiTap_=cs.prototype.onEmojiTap_;cs.prototype.titleOffsetChanged_=cs.prototype.titleOffsetChanged_;cs.prototype.emojiChanged_=cs.prototype.emojiChanged_;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],cs.prototype,"ytComponentBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],cs.prototype,"data",void 0);_.g([_.U({computed:"computeId_(data)"}),_.N("design:type",String)],cs.prototype,"id",void 0);_.g([_.U({computed:"computeEmoji_(data)"}),_.N("design:type",Array)],cs.prototype,"emoji",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],cs.prototype,"titleOffset",void 0);_.g([_.U({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.N("design:type",Object)],cs.prototype,"ariaLabel",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.N("design:type",Object)],cs.prototype,"ariaActivedescendant",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],cs.prototype,"showFocus",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],cs.prototype,"focusedIndex",void 0);_.g([_.U(),_.N("design:type",_.lK)],cs.prototype,"emojiManager",void 0);
_.g([_.JU("emoji"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cs.prototype,"emojiChanged_",null);_.g([_.JU("titleOffset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cs.prototype,"titleOffsetChanged_",null);_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],cs.prototype,"onEmojiTap_",null);
_.g([_.PF("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cs.prototype,"onMouseDown_",null);_.g([_.PF("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cs.prototype,"onFocus_",null);_.g([_.PF("blur"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cs.prototype,"onBlur_",null);
_.g([_.PF("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],cs.prototype,"onKeyDown_",null);_.g([_.E9({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],cs);
_.F(cs,"yt-emoji-picker-upsell-category-renderer",function(){if(ztk===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;aNa===void 0&&(aNa=document.createElement("template"));var D=aNa;l.call(K,D.content.cloneNode(!0),u.content.firstChild);ztk=u}u=ztk;return u},{mode:2});var et0;var RtH;var ai=function(){var u=_.Q.apply(this,arguments)||this;u.scrollAction="lock";u.verticalAlign="top";return u};
_.c(ai,_.Q);_.I=ai.prototype;_.I.onClick=function(u){u=_.HF(u);u instanceof HTMLImageElement&&_.xs(this.hostElement,"yt-emoji-select",_.DP(this.emojiManager,u.id))};
_.I.openSelector=function(){this.ironOverlayBehavior.open()};
_.I.onDomChange=function(){McC(this.ytEmojiSelectorBehavior)};
_.I.computeIsFamilySelector=function(u){var K;return(u==null?void 0:(K=u.emoji)==null?void 0:K.emojiId)==="\ud83d\udc6a"};
_.I.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var u=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];u&&u.emojiId&&(_.xs(this.hostElement,"yt-emoji-select",_.DP(this.emojiManager,u.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.MN.Object.defineProperties(ai.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var u=this,K,l,D;return this.emojiManager&&((K=this.data)==null?0:(l=K.emoji)==null?0:(D=l.variantIds)==null?0:D.length)?this.data.emoji.variantIds.map(function(d){return!!d&&_.DP(u.emojiManager,d)}).filter(function(d){return!!d}):[]}}});
ai.prototype.onClick=ai.prototype.onClick;_.g([_.e(_.oP),_.N("design:type",Object)],ai.prototype,"ironOverlayBehavior",void 0);_.g([_.e(qik),_.N("design:type",Object)],ai.prototype,"ytEmojiSelectorBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ai.prototype,"data",void 0);_.g([_.U(),_.N("design:type",_.lK)],ai.prototype,"emojiManager",void 0);_.g([_.U(),_.N("design:type",Object)],ai.prototype,"scrollAction",void 0);_.g([_.U(),_.N("design:type",Object)],ai.prototype,"verticalAlign",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.N("design:type",Boolean)],ai.prototype,"isFamilySelector",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ai.prototype,"emojiVariants",null);_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],ai.prototype,"onClick",null);_.g([_.E9({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],ai);
_.F(ai,"yt-emoji-variant-selector",function(){if(RtH===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;et0===void 0&&(et0=document.createElement("template"));var D=et0;l.call(K,D.content.cloneNode(!0),u.content.firstChild);RtH=u}u=RtH;return u},{mode:2});var UlC=/:/g,fN0=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],zn=function(){var u=_.Q.apply(this,arguments)||this;u.emojiVariantSelector=null;u.emojiMultiPersonSelector=null;u.identity=_.wq;u.lastAnimationTime_=0;u.animationStart_=null;u.animationEnd_=null;return u};
_.c(zn,_.Q);_.I=zn.prototype;
_.I.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}}};
_.I.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Cl)};
_.I.attached=function(){_.aj&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&$ja(this.emojiManager)};
_.I.dataChanged=function(){var u;if((u=this.data)==null?0:u.categories){u=this.emojiManager;var K=this.getCustomEmojiIds();u.pickerCustomEmojiIds=[].concat(_.Am(sza),_.Am(K))}};
_.I.getCustomEmojiIds=function(){var u,K=(u=this.data.categories)==null?void 0:u.find(function(C){var W;return((W=C.emojiPickerCategoryRenderer)==null?void 0:W.categoryId)&&fN0.includes(C.emojiPickerCategoryRenderer.categoryId)}),l;
u=(l=this.data.categories)==null?void 0:l.find(function(C){return C.emojiPickerUpsellCategoryRenderer});
var D,d;return[K==null?void 0:(D=K.emojiPickerCategoryRenderer)==null?void 0:D.emojiIds,u==null?void 0:(d=u.emojiPickerUpsellCategoryRenderer)==null?void 0:d.emojiIds].flat().filter(function(C){return!!C})};
_.I.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.I.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.I.updateCategoriesAndPlaceholderInternal=function(u,K){var l=this;u&&K&&(this.categories=u.categories||[],this.categoryButtons=u.categoryButtons||[],this.resetPlaceholder(),this.search="",_.Cr(function(){l.updateButtons_()}))};
_.I.computeId_=function(u){return u.id||""};
_.I.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(u){return u.emojiPickerCategoryRenderer&&u.emojiPickerCategoryRenderer.emojiData}):!1};
_.I.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.I.onShowEmojiVariantSelector=function(u){var K=u.detail.emojiData;K.variantIds&&K.variantIds.length&&(K.multiSelectorThumbnailRow&&K.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:K,target:u.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:K,target:u.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.I.onIronOverlayClosed=function(u){var K=nbk(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");K&&u.composedPath&&(u.composedPath().includes(_.bi(this.hostElement).querySelector("#emoji-variant-selector"))||u.composedPath().includes(_.bi(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.Sy(this.hostElement,"yt-close-emoji-variant-selector",[K.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.I.onEmojiVariantSelectorMouseup=function(u){var K=u.target.firstChild;this.variantSelectorOpened&&K&&_.Cr(function(){K.noCancelOnOutsideClick=!1},100)};
_.I.onEmojiVariantSelectorMousedown=function(u){u=u.target.firstChild;this.variantSelectorOpened&&u&&(u.noCancelOnOutsideClick=!1)};
_.I.onSelectCategory_=function(u){var K=this.search!="";this.search="";for(var l=_.bi(this.hostElement).querySelector("#categories").children,D=0;D<l.length;D++){var d=l[D];if(d.id==u.detail.categoryId){K?(_.bi(this.hostElement).querySelector("#categories").scrollTop=d.offsetTop,this.updateButtons_()):(this.animationStart_=_.bi(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=d.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.I.onEmojiHover_=function(u){this.placeholder=u.detail.shortcuts?u.detail.shortcuts[0]:""};
_.I.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.I.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.I.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.I.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.I.computeSearchCategory_=function(u){u=u.replace(UlC,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();u=u.split(" ");for(var K=[],l=this.emojiManager.emojis,D=0;D<l.length;D++){var d=l[D];if(d.searchTerms)for(var C=0;C<d.searchTerms.length;C++){for(var W=d.searchTerms[C].toLocaleLowerCase(),M=!1,q=0;q<u.length;q++)if(W.indexOf(u[q])!=-1){M=!0;break}if(M&&(!d.isCustomEmoji||!d.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(d.emojiId))){K.push(d.emojiId);
break}}}return{categoryId:-1,emojiIds:K}};
_.I.computeSearchEmptyMessage_=function(u,K){return u&&K&&K.emojiIds&&K.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.I.computeSearching_=function(u){return this.emojiManager&&u.replace(UlC,"").length>1};
_.I.computeSkinToneHidden=function(){var u;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((u=this.data)==null||!u.hideSkinTonePicker)};
_.I.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.I.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.I.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.I.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.I.selectSkinTone_=function(u){u=Number(u.target.getAttribute("tone"));this.set("emojiManager.skinTone",u);_.Sy(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[u]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.I.skinToneChanged_=function(){_.bi(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var u=_.bi(this.hostElement).querySelector("#dropdown-content").children,K=0;K<u.length;K++)K===this.skinTone?u[K].setAttribute("selected",""):u[K].removeAttribute("selected")};
_.I.animateScroll_=function(u){this.lastAnimationTime_||(this.lastAnimationTime_=u);u-=this.lastAnimationTime_;u<200?(_.bi(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*u/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.bi(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.I.searchChanged_=function(){this.updateButtons_()};
_.I.updateButtons_=function(){var u=null;if(!this.search)for(var K=_.bi(this.hostElement).querySelector("#categories").scrollTop,l=_.bi(this.hostElement).querySelector("#categories").children,D=0;D<l.length;D++){var d=l[D];d.offsetTop<=K&&(u=d.id)}K=_.bi(this.hostElement).querySelector("#category-buttons").children;for(l=0;l<K.length;l++)D=K[l],D.active=D.id===u};
zn.prototype.searchChanged_=zn.prototype.searchChanged_;zn.prototype.skinToneChanged_=zn.prototype.skinToneChanged_;zn.prototype.onEmojiHover_=zn.prototype.onEmojiHover_;zn.prototype.onSelectCategory_=zn.prototype.onSelectCategory_;zn.prototype.onShowEmojiVariantSelector=zn.prototype.onShowEmojiVariantSelector;zn.prototype.updateCategoriesAndPlaceholder_=zn.prototype.updateCategoriesAndPlaceholder_;zn.prototype.dataChanged=zn.prototype.dataChanged;
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],zn.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],zn.prototype,"data",void 0);_.g([_.U({value:function(){return[]}}),
_.N("design:type",Array)],zn.prototype,"categories",void 0);_.g([_.U({value:function(){return[]}}),
_.N("design:type",Array)],zn.prototype,"categoryButtons",void 0);_.g([_.U({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.N("design:type",Boolean)],zn.prototype,"disableScroll",void 0);_.g([_.U({computed:"computeId_(data)",reflectToAttribute:!0}),_.N("design:type",String)],zn.prototype,"id",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],zn.prototype,"selected",void 0);
_.g([_.U({value:!1}),_.N("design:type",Boolean)],zn.prototype,"disableIncrementalLoading",void 0);_.g([_.U(),_.N("design:type",String)],zn.prototype,"placeholder",void 0);_.g([_.U({value:""}),_.N("design:type",String)],zn.prototype,"search",void 0);_.g([_.U({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.N("design:type",Boolean)],zn.prototype,"searching",void 0);_.g([_.U({computed:"computeSearchCategory_(search)"}),_.N("design:type",Object)],zn.prototype,"searchCategory",void 0);
_.g([_.U({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.N("design:type",Object)],zn.prototype,"searchEmptyMessage",void 0);_.g([_.U({computed:"identity(emojiManager.skinTone)"}),_.N("design:type",Number)],zn.prototype,"skinTone",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],zn.prototype,"skinToneOpened",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],zn.prototype,"variantSelectorOpened",void 0);
_.g([_.U({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.N("design:type",Boolean)],zn.prototype,"skinToneHidden",void 0);_.g([_.U(),_.N("design:type",_.lK)],zn.prototype,"emojiManager",void 0);_.g([_.U(),_.N("design:type",Object)],zn.prototype,"emojiVariantSelector",void 0);_.g([_.U(),_.N("design:type",Object)],zn.prototype,"emojiMultiPersonSelector",void 0);
_.g([_.U({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.N("design:type",Boolean)],zn.prototype,"shouldUseStickyPreferences",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zn.prototype,"dataChanged",null);_.g([_.JU("data","selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zn.prototype,"updateCategoriesAndPlaceholder_",null);
_.g([_.PF("yt-show-emoji-variant-selector"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],zn.prototype,"onShowEmojiVariantSelector",null);_.g([_.PF("yt-emoji-picker-select-category"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],zn.prototype,"onSelectCategory_",null);_.g([_.PF("yt-emoji-hover"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],zn.prototype,"onEmojiHover_",null);
_.g([_.JU("skinTone"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zn.prototype,"skinToneChanged_",null);_.g([_.JU("search"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zn.prototype,"searchChanged_",null);_.g([_.E9({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],zn);
_.F(zn,"yt-emoji-picker-renderer",function(){if(cNw===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;OAm===void 0&&(OAm=document.createElement("template"));var D=OAm;l.call(K,D.content.cloneNode(!0),u.content.firstChild);cNw=u}u=cNw;return u},{mode:2});var eo=function(){var u=_.Q.apply(this,arguments)||this;u.emojiManager=_.Cl;u.isDarkTheme=document.documentElement.hasAttribute("dark");u.selectedIndex=1;u.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return u};
_.c(eo,_.Q);_.I=eo.prototype;_.I.handleEmojiCustomizationVisible=function(u){this.emojiPickerRenderer.selected=u;this.selectedIndex=1;u?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.I.emojiCustomizationSetChanged=function(){var u;(u=this.data)!=null&&u.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.sB(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.I.updateSaveButtonState=function(u){var K;(K=this.data)!=null&&K.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.TT("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:u}))};
_.I.emojiUrl=function(u){u=_.DP(this.emojiManager,u);if(!u)return"";var K;u=(K=u.image)==null?void 0:K.thumbnails;return _.bt(u,24)||""};
_.I.emojiAlt=function(u){var K=_.DP(this.emojiManager,u);if(!K)return u;var l,D,d,C=(K==null?void 0:(l=K.image)==null?void 0:(D=l.accessibility)==null?void 0:(d=D.accessibilityData)==null?void 0:d.label)||"";return C?C:K.isCustomEmoji?K.shortcuts[0]:K.emojiId||u};
_.I.emojiAriaLabel=function(u){var K,l;return((K=_.DP(this.emojiManager,u))==null?void 0:(l=K.shortcuts)==null?void 0:l[0])||u};
_.I.onEmojiClick=function(u){u.model.index!==0&&(this.selectedIndex=u.model.index)};
_.I.onEmojiSelect=function(u){u=u.detail;var K,l;((K=this.data)==null?0:K.emojiCustomizationSetEntityKey)&&((l=this.emojiCustomizationSet)==null?0:l.emojiId)&&u.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,u.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.TT("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,u.emojiId,this.selectedIndex)}))};
_.I.canEditEmoji=function(u,K,l){u=u.indexOf(K);return u===l||u===0||l===0?!1:!0};
_.I.getUpdatedEmojiIdList=function(u,K,l){var D=u.indexOf(K);u=[].concat(_.Am(u));D>=0&&(u[D]=u[l]);u[l]=K;return u};
_.MN.Object.defineProperties(eo,{template:{configurable:!0,enumerable:!0,get:function(){if(mjs===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;Xha===void 0&&(Xha=document.createElement("template"));var D=Xha;l.call(K,D.content.cloneNode(!0),u.content.firstChild);mjs=u}u=mjs;return u}}});
eo.prototype.onEmojiSelect=eo.prototype.onEmojiSelect;_.g([_.e(_.Dl),_.N("design:type",Object)],eo.prototype,"ytLiveChatReduxBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],eo.prototype,"ytActionHandlerBehavior",void 0);_.g([_.BF("yt-emoji-picker-renderer"),_.N("design:type",Object)],eo.prototype,"emojiPickerRenderer",void 0);
_.g([_.U({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(u,K){return _.eZ(u.entities,"emojiCustomizationSetEntity",K)},
observer:"emojiCustomizationSetChanged"}),_.N("design:type",Object)],eo.prototype,"emojiCustomizationSet",void 0);_.g([_.U(),_.N("design:type",Object)],eo.prototype,"originalEmojiSet",void 0);_.g([_.U(),_.N("design:type",_.lK)],eo.prototype,"emojiManager",void 0);_.g([_.U(),_.N("design:type",Object)],eo.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],eo.prototype,"isDarkTheme",void 0);_.g([_.U(),_.N("design:type",Object)],eo.prototype,"selectedIndex",void 0);
_.g([_.PF("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],eo.prototype,"onEmojiSelect",null);_.g([_.E9({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],eo);var QUa;var Pj2;var JNk;var jU2;var Ri=function(){var u=_.Q.apply(this,arguments)||this;u.authorBadges=[];return u};
_.c(Ri,_.Q);_.I=Ri.prototype;_.I.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.I.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]]"}}}}}};
_.I.dataChanged=function(){var u=EFh(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",u)};
_.I.updateMessage=function(){var u=this.data.message,K=_.bi(_.bi(this.hostElement).querySelector("#message"));K.textContent="";u&&K.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(u))};
_.I.shouldSupportWholeItemClick=function(){return!0};
_.I.onShowOriginalClick=function(u){u.preventDefault();this.showOriginal=!0};
_.I.computeShowBar=function(u,K,l){return u&&K||l};
_.I.computeAuthorBadges=function(u){return u.authorBadges||[]};
_.I.computeAuthorIsOwner=function(u){return!!Lxw(u.authorBadges,"owner")};
_.I.computeAuthorNameColor=function(u){var K;if(_.S("live_chat_author_name_color_usernames")&&(u==null?0:(K=u.authorName)==null?0:K.simpleText))return _.Car(_.I5y(u.authorName.simpleText));if(_.S("live_chat_seed_color_usernames")&&(u==null?0:u.authorSeedColorArgb))return _.Car(_.Rt(u.authorSeedColorArgb));if(_.S("live_chat_colored_usernames"))return"#cc0000";var l;return _.S("live_chat_simple_color_usernames")&&(u==null?0:(l=u.authorName)==null?0:l.simpleText)&&(u==null?0:u.authorUsernameColorLight)&&
(u==null?0:u.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Rt(u.authorUsernameColorDark):_.Rt(u.authorUsernameColorLight):""};
Ri.prototype.updateMessage=Ri.prototype.updateMessage;Ri.prototype.dataChanged=Ri.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ii.YtLiveChatItemBehavior),_.N("design:type",_.y8)],Ri.prototype,"ytLiveChatItemBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ri.prototype,"data",void 0);
_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Ri.prototype,"showOriginal",void 0);_.g([_.U({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Ri.prototype,"isDimmed",void 0);_.g([_.U({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Ri.prototype,"showBar",void 0);
_.g([_.U({computed:"computeAuthorBadges(data)"}),_.N("design:type",Array)],Ri.prototype,"authorBadges",void 0);_.g([_.U({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Ri.prototype,"authorIsOwner",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Ri.prototype,"inCollapsedBanner",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Ri.prototype,"inBanner",void 0);
_.g([_.U({value:_.S("live_chat_hide_avatars"),reflectToAttribute:!0}),_.N("design:type",Boolean)],Ri.prototype,"avatarHidden",void 0);_.g([_.U({computed:"computeAuthorNameColor(data)"}),_.N("design:type",String)],Ri.prototype,"authorNameColor",void 0);_.g([_.U(),_.N("design:type",_.Ws)],Ri.prototype,"participantsManager",void 0);_.g([_.U({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.N("design:type",Object)],Ri.prototype,"filledButtonOverrides",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ri.prototype,"dataChanged",null);_.g([_.JU("data.message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ri.prototype,"updateMessage",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Ri);
_.F(Ri,"yt-live-chat-text-message-renderer",function(){if(jU2===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;JNk===void 0&&(JNk=document.createElement("template"));var D=JNk;l.call(K,D.content.cloneNode(!0),u.content.firstChild);jU2=u}u=jU2;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Ue=function(){var u=_.Q.apply(this,arguments)||this;u.tonalButtonOverrides={type:"tonal",style:"overlay"};return u};
_.c(Ue,_.Q);
Ue.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]]"}}}}}};
Ue.prototype.shouldSupportInlineActionButtons=function(){return!0};
Ue.prototype.shouldSupportWholeItemClick=function(){return!0};
_.MN.Object.defineProperties(Ue.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ii.YtLiveChatItemBehavior),_.N("design:type",_.y8)],Ue.prototype,"ytLiveChatItemBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ue.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ue.prototype,"data",void 0);_.g([_.U(),_.N("design:type",_.Ws)],Ue.prototype,"participantsManager",void 0);
_.g([_.U(),_.N("design:type",Object)],Ue.prototype,"tonalButtonOverrides",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data.infoDialogButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ue.prototype,"hasInfoDialogButton",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Ue);
_.F(Ue,"yt-live-chat-auto-mod-message-renderer",function(){if(Pj2===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;QUa===void 0&&(QUa=document.createElement("template"));var D=QUa;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Pj2=u}u=Pj2;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var BIm;var p9k;var iAB;var TIH=function(){return _.Q.apply(this,arguments)||this};
_.c(TIH,_.Q);_.g([_.U(),_.N("design:type",Object)],TIH.prototype,"data",void 0);_.g([_.T({is:"ytd-factoid-renderer",disableElementRegistration:!0})],TIH);
_.F(TIH,"ytd-factoid-renderer",function(){if(iAB!==void 0)return iAB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return iAB=u},{mode:1});var fl=function(){return _.Q.apply(this,arguments)||this};
_.c(fl,_.Q);fl.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.g([_.U(),_.N("design:type",Object)],fl.prototype,"data",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],fl.prototype,"ytRendererstamperBehavior",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],fl);
_.F(fl,"yt-live-chat-channel-activity-reputation-renderer",function(){if(p9k===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;BIm===void 0&&(BIm=document.createElement("template"));var D=BIm;l.call(K,D.content.cloneNode(!0),u.content.firstChild);p9k=u}u=p9k;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var w9m;var FAB;var Q8=function(){return _.Q.apply(this,arguments)||this};
_.c(Q8,_.Q);Q8.prototype.ready=function(){var u=document.querySelector("yt-live-chat-app");u&&u.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Q8.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Boolean)],Q8.prototype,"menuFocused",void 0);_.g([_.U(),_.N("design:type",Object)],Q8.prototype,"data",void 0);_.g([_.e(_.Ii.YtLiveChatItemBehavior),_.N("design:type",_.y8)],Q8.prototype,"ytLiveChatItemBehavior",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Q8);
_.F(Q8,"yt-live-chat-donation-announcement-renderer",function(){if(FAB===void 0){var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;w9m===void 0&&(w9m=document.createElement("template"));var D=w9m;l.call(K,D.content.cloneNode(!0),u.content.firstChild);FAB=u}u=FAB;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var VcA;var gNN,NIm=function(){if(gNN!==void 0)return gNN;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;VcA===void 0&&(VcA=document.createElement("template"));var D=VcA;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return gNN=u};var Ps=function(){return _.Q.apply(this,arguments)||this};
_.c(Ps,_.Q);_.MN.Object.defineProperties(Ps,{template:{configurable:!0,enumerable:!0,get:function(){return NIm()}}});
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ps.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ps.prototype,"data",void 0);_.g([_.E9({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],Ps);_.F(Ps,"yt-live-chat-empty-feed-view-model",function(){return NIm()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var kqw;var ZAH;var Ji=function(){return _.Q.apply(this,arguments)||this};
_.c(Ji,_.Q);Ji.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"}}}}}};
_.MN.Object.defineProperties(Ji.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var u,K;return{runs:[{text:(u=this.data)==null?void 0:(K=u.channelName)==null?void 0:K.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var u=[],K;if((K=this.data)==null||!K.channelBadges)return u;var l;K=_.y((l=this.data)==null?void 0:l.channelBadges);for(l=K.next();!l.done;l=K.next()){l=_.b(l.value,pPm);var D=void 0,d=void 0;if((D=l)==null?0:(d=D.badgeImage)==null?0:d.sources)D=void 0,d={liveChatAuthorBadgeRenderer:{tooltip:l.tooltip,accessibility:{accessibilityData:{label:(D=_.b(l.rendererContext,_.T8))==null?void 0:D.label}}}},l.badgeImage.sources[0].clientResource?d.liveChatAuthorBadgeRenderer.icon=
{iconType:l.badgeImage.sources[0].clientResource.imageName}:d.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:l.badgeImage.sources},u.push(d)}return u}}});
_.g([_.U(),_.N("design:type",Object)],Ji.prototype,"data",void 0);_.g([_.R("data.channelName"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ji.prototype,"channelName",null);_.g([_.R("data.channelBadges"),_.N("design:type",Array),_.N("design:paramtypes",[])],Ji.prototype,"channelBadges",null);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ji.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Ji);
_.F(Ji,"yt-live-chat-identity-view-model",function(){if(ZAH===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;kqw===void 0&&(kqw=document.createElement("template"));var D=kqw;l.call(K,D.content.cloneNode(!0),u.content.firstChild);ZAH=u}u=ZAH;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Yim;var ANC;var X92;var mlS;var jo=function(){var u=_.Q.apply(this,arguments)||this;u.hidden=!1;u.supportsInlineActionButtons=!0;return u};
_.c(jo,_.Q);jo.prototype.ready=function(){var u;((u=document.querySelector("yt-live-chat-app"))==null?0:u.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
jo.prototype.dataChanged=function(u){var K=(0,_.zQ)(_.bi(this.hostElement).querySelector("#detail-text"));K.textContent="";(u==null?0:u.detailText)&&K.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(u.detailText))};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ii.YtLiveChatItemBehavior),_.N("design:type",_.y8)],jo.prototype,"ytLiveChatItemBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U({observer:"dataChanged"}),_.N("design:type",Object)],jo.prototype,"data",void 0);
_.g([_.U({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.N("design:type",Object)],jo.prototype,"hidden",void 0);_.g([_.T({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],jo);
_.F(jo,"yt-live-chat-legacy-paid-message-renderer",function(){if(mlS===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;X92===void 0&&(X92=document.createElement("template"));var D=X92;l.call(K,D.content.cloneNode(!0),u.content.firstChild);mlS=u}u=mlS;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var htR;var ENk;var LAa={},Bs=function(){return _.ii.apply(this,arguments)||this};
_.c(Bs,_.ii);Bs.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Bs.prototype.onLiveChatMembershipItemBehaviorClick=Bs.prototype.onLiveChatMembershipItemBehaviorClick;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Bs.prototype,"data",void 0);_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Bs.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.g([_.TQ()],Bs);
LAa.YtLiveChatMembershipItemBehavior=[Bs.prototype,_.Y.YtRendererBehavior];var pl=function(){var u=_.Q.apply(this,arguments)||this;u.supportsInlineActionButtons=!0;u.hasPrimaryHeaderText=!1;u.showOnlyHeader=!1;u.authorBadges=[];u.modern=_.S("web_button_rework_with_live");u.buttonOverrides={style:"overlay",type:"filled"};return u};
_.c(pl,_.Q);_.I=pl.prototype;_.I.shouldSupportInlineActionButtons=function(){return!0};
_.I.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.I.ready=function(){var u=document.querySelector("yt-live-chat-app");u&&u.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.I.messageChanged=function(){var u=this.data.message,K=(0,_.zQ)(_.bi(this.hostElement).querySelector("#message"));K.textContent="";u&&K.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(u))};
_.I.computeHasPrimaryHeaderText=function(u){return!(!u||!u.headerPrimaryText)};
_.I.computeShowOnlyHeader=function(u,K){return this.isMessageEmpty(u,K)};
_.I.computeAuthorBadges=function(u){return u.authorBadges||[]};
_.I.isMessageEmpty=function(u,K){return!u||u.empty?!0:!u.message&&!u.inputField&&!K};
_.I.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.I.getInputElement=function(){return _.bi(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.I.inputFocus=function(){var u=this.getInputElement();u&&u.focus()};
_.I.inputInsertEmoji=function(u){var K=this.getInputElement();K&&K.insertEmoji(u)};
_.I.inputMessage=function(){var u=this.getInputElement();return u&&this.data.inputField?(u.completeEmojis(),_.Iw(u.liveChatRichMessageInput)):null};
_.I.onFooterButtonClick=function(){this.data.footerButton&&_.xs(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.I.shouldSupportWholeItemClick=function(){return!0};
pl.prototype.isDeletedChanged=pl.prototype.isDeletedChanged;pl.prototype.messageChanged=pl.prototype.messageChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],pl.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ii.YtLiveChatItemBehavior),_.N("design:type",_.y8)],pl.prototype,"ytLiveChatItemBehavior",void 0);_.g([_.e(LAa.YtLiveChatMembershipItemBehavior),_.N("design:type",Object)],pl.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],pl.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],pl.prototype,"data",void 0);_.g([_.U({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.N("design:type",Object)],pl.prototype,"hasPrimaryHeaderText",void 0);_.g([_.U({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.N("design:type",Object)],pl.prototype,"showOnlyHeader",void 0);
_.g([_.U({computed:"computeAuthorBadges(data)"}),_.N("design:type",Array)],pl.prototype,"authorBadges",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],pl.prototype,"modern",void 0);_.g([_.JU("data.message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pl.prototype,"messageChanged",null);_.g([_.JU("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pl.prototype,"isDeletedChanged",null);
_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],pl);
_.F(pl,"yt-live-chat-membership-item-renderer",function(){if(ENk===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;htR===void 0&&(htR=document.createElement("template"));var D=htR;l.call(K,D.content.cloneNode(!0),u.content.firstChild);ENk=u}u=ENk;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var uSs;var KBw;var iK=function(){return _.Q.apply(this,arguments)||this};
_.c(iK,_.Q);iK.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],iK.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],iK.prototype,"data",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],iK);
_.F(iK,"yt-live-chat-mode-change-message-renderer",function(){if(KBw===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;uSs===void 0&&(uSs=document.createElement("template"));var D=uSs;l.call(K,D.content.cloneNode(!0),u.content.firstChild);KBw=u}u=KBw;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var lr0;var DcA;var Tn=function(){return _.Q.apply(this,arguments)||this};
_.c(Tn,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ii.YtLiveChatItemBehavior),_.N("design:type",_.y8)],Tn.prototype,"ytLiveChatItemBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Tn.prototype,"data",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Tn);
_.F(Tn,"yt-live-chat-moderation-message-renderer",function(){if(DcA===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;lr0===void 0&&(lr0=document.createElement("template"));var D=lr0;l.call(K,D.content.cloneNode(!0),u.content.firstChild);DcA=u}u=DcA;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var dcs;var CSm;var wj=function(){var u=_.Q.apply(this,arguments)||this;u.modern=_.S("web_button_rework");return u};
_.c(wj,_.Q);wj.prototype.onClick=function(){var u;if((u=this.data)!=null&&u.onClickCommand){var K;_.Pb.instance.resolveCommand((K=this.data)==null?void 0:K.onClickCommand)}};
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],wj.prototype,"modern",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Dl),_.N("design:type",Object)],wj.prototype,"ytLiveChatReduxBehavior",void 0);_.g([_.e(_.Ii.YtLiveChatItemBehavior),_.N("design:type",_.y8)],wj.prototype,"ytLiveChatItemBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],wj.prototype,"data",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],wj);
_.F(wj,"yt-live-chat-offer-click-count-message-renderer",function(){if(CSm===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;dcs===void 0&&(dcs=document.createElement("template"));var D=dcs;l.call(K,D.content.cloneNode(!0),u.content.firstChild);CSm=u}u=CSm;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Irw;var ySH=function(){return _.Q.apply(this,arguments)||this};
_.c(ySH,_.Q);_.g([_.U(),_.N("design:type",Object)],ySH.prototype,"data",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],ySH);
_.F(ySH,"yt-live-chat-placeholder-item-renderer",function(){if(Irw===void 0){var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);Irw=u}u=Irw;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var sl0;var oQ0;var WBm=new yR(7),F7=function(){var u=_.Q.apply(this,arguments)||this;u.data={};return u};
_.c(F7,_.Q);F7.prototype.dataChanged=function(){var u;((u=this.data)==null?0:u.class)&&_.cF(this.hostElement,this.data.class,!0);var K;((K=this.oldData)==null?0:K.class)&&_.cF(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
F7.prototype.computeTimestampString=function(u){return WBm.format(new Date(u/1E3))};
F7.prototype.dataChanged=F7.prototype.dataChanged;_.g([_.U(),_.N("design:type",Object)],F7.prototype,"data",void 0);_.g([_.U({computed:"computeTimestampString(data.timestampUsec)"}),_.N("design:type",String)],F7.prototype,"timestampString",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F7.prototype,"dataChanged",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],F7);
_.F(F7,"yt-live-chat-server-error-message",function(){if(oQ0===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;sl0===void 0&&(sl0=document.createElement("template"));var D=sl0;l.call(K,D.content.cloneNode(!0),u.content.firstChild);oQ0=u}u=oQ0;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var HjR;var MWB;var V8=function(){var u=_.Q.apply(this,arguments)||this;u.defaultToFilledIcon=!1;return u};
_.c(V8,_.Q);V8.prototype.computeHasPrimaryColorIcon=function(u){return u==="SPARK"||u==="SPONSORSHIP_STAR"};
V8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ii.YtLiveChatItemBehavior),_.N("design:type",_.y8)],V8.prototype,"ytLiveChatItemBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],V8.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],V8.prototype,"defaultToFilledIcon",void 0);_.g([_.U(),_.N("design:type",Object)],V8.prototype,"data",void 0);
_.g([_.U({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.N("design:type",Boolean)],V8.prototype,"hasPrimaryColorIcon",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],V8);
_.F(V8,"yt-live-chat-viewer-engagement-message-renderer",function(){if(MWB===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;HjR===void 0&&(HjR=document.createElement("template"));var D=HjR;l.call(K,D.content.cloneNode(!0),u.content.firstChild);MWB=u}u=MWB;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var qNa;var gj=function(){var u=_.Q.apply(this,arguments)||this;u.modernUpdate=!1;u.buttonStyle="overlay";u.buttonType="filled";return u};
_.c(gj,_.Q);gj.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
gj.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],gj.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],gj.prototype,"modernUpdate",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],gj.prototype,"buttonStyle",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],gj.prototype,"buttonType",void 0);
_.g([_.T({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],gj);
_.F(gj,"ytd-ad-hover-text-button-renderer",function(){if(qNa!==void 0)return qNa;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return qNa=u},{mode:1});var $ck;var N1=function(){var u=_.Q.apply(this,arguments)||this;u.buttonOverrides={size:"XS"};u.modern=_.S("web_button_rework");return u};
_.c(N1,_.Q);N1.prototype.onHelpTap=function(u){this.data&&this.data.informationDialog&&(_.xs(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),u.preventDefault(),u.stopPropagation())};
_.g([_.U(),_.N("design:type",Object)],N1.prototype,"buttonOverrides",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],N1.prototype,"modern",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],N1.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],N1.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],N1);
_.F(N1,"ytd-live-chat-purchased-product-message-renderer",function(){if($ck!==void 0)return $ck;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return $ck=u},{mode:1});var nQB;var rSH;var kM=function(){var u=_.Q.apply(this,arguments)||this;u.isContainerDeleted=!1;return u};
_.c(kM,_.Q);kM.prototype.onContextMenuClick=function(u){this.ytLiveChatItemBehavior.showContextMenu(u)};
kM.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))};
kM.prototype.isContainerDeletedChanged=kM.prototype.isContainerDeletedChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ii.YtLiveChatItemBehavior),_.N("design:type",_.y8)],kM.prototype,"ytLiveChatItemBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],kM.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],kM.prototype,"isContainerDeleted",void 0);
_.g([_.U(),_.N("design:type",String)],kM.prototype,"deletedStateMessage",void 0);_.g([_.JU("isContainerDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kM.prototype,"isContainerDeletedChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],kM);
_.F(kM,"ytd-sponsorships-live-chat-header-renderer",function(){if(rSH!==void 0)return rSH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return rSH=u},{mode:1});var ZP=function(){var u=_.Q.apply(this,arguments)||this;u.modern=_.S("web_button_rework_with_live");u.buttonOverrides={style:"overlay",type:"filled"};return u};
_.c(ZP,_.Q);ZP.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]]"}}}}}};
ZP.prototype.onCtaButtonClick=function(){var u,K=_.b((u=this.data)==null?void 0:u.optInPrompt,_.lF);if(u=this.maybeGetButtonCommand(K)){var l;(l=_.iT())==null||l.clickCommand(u)}};
ZP.prototype.maybeGetButtonCommand=function(u){return!u||!u.command||_.b(u.command,rTm)===void 0&&_.b(u.command,nxS)===void 0?null:u.command};
ZP.prototype.shouldHideOptinPrompt=function(u,K){return!u||K};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ZP.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ii.YtLiveChatItemBehavior),_.N("design:type",_.y8)],ZP.prototype,"ytLiveChatItemBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ZP.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ZP.prototype,"modern",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],ZP);
_.F(ZP,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(nQB!==void 0)return nQB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return nQB=u},{mode:1});var vQC;var YM=function(){return _.Q.apply(this,arguments)||this};
_.c(YM,_.Q);YM.prototype.onContextMenuClick=function(u){this.ytLiveChatItemBehavior.showContextMenu(u)};
YM.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))};
YM.prototype.isDeletedChanged=YM.prototype.isDeletedChanged;_.g([_.e(_.Ii.YtLiveChatItemBehavior),_.N("design:type",_.y8)],YM.prototype,"ytLiveChatItemBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],YM.prototype,"data",void 0);_.g([_.JU("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YM.prototype,"isDeletedChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],YM);
_.F(YM,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(vQC!==void 0)return vQC;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return vQC=u},{mode:1});var Ai=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return u};
_.c(Ai,_.Q);_.I=Ai.prototype;
_.I.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"}}}};
_.I.handleLiveChatAction=function(u){_.b(u,eYS)?this.handleMarkChatItemAsDeletedAction(_.b(u,eYS)):_.b(u,zYR)&&this.handleRemoveChatItemAction(_.b(u,zYR))};
_.I.handleLiveChatActions=function(u){u.forEach(this.handleLiveChatAction,this)};
_.I.handleMarkChatItemAsDeletedAction=function(u){var K=this,l;((l=this.data)==null?0:l.items)&&this.data.items.forEach(function(D,d){var C=Object.keys(D)[0];Object.values(D)[0].id===u.targetItemId&&K.markAsDeleted("data.items",d,C,u.deletedStateMessage,u.showOriginalContentMessage)})};
_.I.handleRemoveChatItemAction=function(u){var K=this,l;((l=this.data)==null?0:l.items)&&this.data.items.forEach(function(D,d){Object.values(D)[0].id===u.targetItemId&&K.splice("data.items",d,1)})};
_.I.markAsDeleted=function(u,K,l,D,d){u=[u,K,l].join(".");this.set(u+".deletedStateMessage",D);this.set(u+".showOriginalContentMessage",d)};
_.g([_.U(),_.N("design:type",Object)],Ai.prototype,"data",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ai.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Ai.prototype,"ytActionHandlerBehavior",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Ai);
_.F(Ai,"yt-live-chat-item-display-list-renderer",function(){if(ANC===void 0){var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;Yim===void 0&&(Yim=document.createElement("template"));var D=Yim;l.call(K,D.content.cloneNode(!0),u.content.firstChild);ANC=u}u=ANC;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Gs2;var tWB,xcw=function(){if(tWB!==void 0)return tWB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;Gs2===void 0&&(Gs2=document.createElement("template"));var D=Gs2;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return tWB=u};var X7=function(){var u=_.Q.apply(this,arguments)||this;u.isHeader=!1;return u};
_.c(X7,_.Q);X7.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.MN.Object.defineProperties(X7,{template:{configurable:!0,enumerable:!0,get:function(){return xcw()}}});
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],X7.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],X7.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],X7.prototype,"isHeader",void 0);_.g([_.E9({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],X7);_.F(X7,"yt-live-chat-item-display-renderer",function(){return xcw()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var SNk,bjN,eON,zOB;
SNk={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}};bjN={home:"eohps",search:"eosps",watch:"eowps"};_.OjR=["watch","search","home"];
_.mr=function(){this.JSC$14165_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14165_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.E3("PRECONSTRUCTION_DELAY",0);this.signals_=_.dw();this.targetPage_=""};
_.mr.prototype.init=function(u,K){u=u===void 0?"":u;K=K===void 0?null:K;if(this.JSC$14165_isInitialized_)this.abort();else if(this.JSC$14165_isInitialized_=!0,u&&_.cS0(this,u),K){var l=_.C7(this.signals_,"pcl")?0:10,D=function(){for(var d=0,C;C=_.OjR[d++];)C!=u&&C!=K&&this.pendingPages_.push(C);_.ark(this)}.bind(this);
this.signals_.parkOrScheduleJob(D,l,"pcl")}};
_.mr.prototype.abort=function(){this.fragmentJobId_&&(_.YL.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);zOB(this)};
_.cS0=function(u,K){u.JSC$14165_isInitialized_&&!u.targetPage_&&(u.targetPage_=K,eON(u,K),u.isInitialPass_=!1,eON(u,K),u.signals_.processSignal(bjN[u.targetPage_]),zOB(u),_.ark(u))};
_.ark=function(u){u.pendingPages_.length&&!u.pagePreparerJobId_&&(u.pagePreparerJobId_=_.Ve(_.YL,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.cS0(this,this.pendingPages_.shift())}.bind(u),u.DEFAULT_DELAY_))};
eON=function(u,K){if(K=SNk[K])for(var l in K){var D=!1,d=l;l.charAt(0)=="~"&&(D=!0,d=l.substring(1));var C=K[l];C=typeof C=="object"?C:{count:C};K[l]=C;C.componentName=d;C.count>0&&(u.isInitialPass_?D||u.isSeenDuringInitialPass_[d]||(u.JSC$14165_queue_.push({componentName:d,count:1,signals:C.signals}),u.isSeenDuringInitialPass_[d]=!0,C.count--):u.JSC$14165_queue_.push(C))}};
zOB=function(u){u.JSC$14165_queue_.length=0;u.targetPage_="";u.isInitialPass_=!0;u.signals_.processSignal("eop")};
_.mr.getInstance=function(){return _.vU(_.mr)};var ROA=function(){this.signals=_.dw();this.init()};
ROA.prototype.startPreconstruction=function(){_.mr.getInstance().init(_.L0("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
ROA.prototype.init=function(){UcR(this);window.Polymer&&T2N&&wsH();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var u=_.lL.ytcsi;if(u&&u.gt&&(u=u.gt())&&u.tick&&(u.tick.aft>0||u.tick.pbs>0)&&(_.L0("IS_HOMEPAGE_COLD")||_.L0("IS_RESULTS_PAGE_COLD")||_.L0("IS_WATCH_PAGE_COLD"))){frC(this);break a}EOq(pSb,this.onNotifications,this)}};
var UcR=function(u){var K=function(){u.signals.processSignal("dl")};
document.readyState==="complete"?(_.D_(Error("uh"),"WARNING"),K()):_.ePw(window,"load",K)};
ROA.prototype.onNotifications=function(u){u.timer||(_.L0("IS_HOMEPAGE_COLD")||_.L0("IS_RESULTS_PAGE_COLD")||_.L0("IS_WATCH_PAGE_COLD"))&&frC(this)};
var frC=function(u){u.signals.parkOrScheduleJob(function(){u.signals.processSignal("eocs")},10,"eor")};
new ROA;var hi,QlB=function(){return _.ii.apply(this,arguments)||this};
_.c(QlB,_.ii);_.I=QlB.prototype;_.I.enableActiveViewMeasurement=function(u){if(this.isActiveViewEnabled(u)){var K=this.getUrlPrefixesFromCommand(u.viewableCommands);u=this.getUrlPrefixesFromCommand(u.endOfSessionCommands);if(!hi){var l=_.Sg("custom_active_view_tos_timeout_ms");hi=l>0&&l!==36E5?new LCZ(this.getVersion(),l):new LCZ(this.getVersion())}Kn9(hi,this.hostElement);lio(hi,this.hostElement,K,u)}};
_.I.stopActiveViewMeasurement=function(){hi&&Kn9(hi,this.hostElement)};
_.I.isActiveViewEnabled=function(u){return!!u&&(this.hasAtLeastOneUrl(u.viewableCommands)||this.hasAtLeastOneUrl(u.endOfSessionCommands))};
_.I.hasAtLeastOneUrl=function(u){return!!u&&u.length>0&&u[0].loggingUrls!=null&&u[0].loggingUrls.length>0};
_.I.getVersion=function(){var u=_.E3("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(u==null?void 0:u.length)===2?u[1]:null};
_.I.getUrlPrefixesFromCommand=function(u){if(!u)return[];var K=[];u=_.y(u);for(var l=u.next();!l.done;l=u.next())if(l=l.value,l.loggingUrls){l=_.y(l.loggingUrls);for(var D=l.next();!D.done;D=l.next())D=D.value,D.baseUrl&&K.push(D.baseUrl)}return K};
_.g([_.TQ()],QlB);var Ee=[QlB.prototype];var PS0=function(){return _.ii.apply(this,arguments)||this};
_.c(PS0,_.ii);_.MN.Object.defineProperties(PS0.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_entity_store_from_dependency_injection")?_.Hb():_.Mu()}}});
_.g([_.TQ()],PS0);_.Ll=[mL.prototype,PS0.prototype];var JSN=["ytd-rich-shelf-renderer"],u3=function(){var u=_.ii.apply(this,arguments)||this;u._noAccessors=!0;u.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";u.followUpDialogPromise=null;u.followUpDialogPromiseResolve=null;u.followUpDialogPromiseReject=null;return u};
_.c(u3,_.ii);_.I=u3.prototype;_.I.dismissibleItemIsDismissedChanged_=function(u){_.S("kevlar_fluid_dismiss")&&(u?_.xs(this.hostElement,"yt-dismissible-item-dismissed"):_.xs(this.hostElement,"yt-dismissible-item-undismissed"))};
_.I.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.I.dismissibleItemReset_=function(){var u=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 _.RL(function(K,l){u.followUpDialogPromiseResolve=K;u.followUpDialogPromiseReject=l});
_.xs(this.hostElement,"yt-enable-lockup-interaction")};
_.I.dismissibleItemOnYtServiceRequestSent_=function(u,K){K.actions&&this.dismissibleItemProcessActions(K.actions,u)};
_.I.dismissibleItemOnRequestSent=function(u){if(_.S("web_button_rework"))for(var K=_.y(u.detail),l=K.next();!l.done;l=K.next()){var D=void 0;(l=(D=_.b(l.value,_.Ux))==null?void 0:D.actions)&&this.dismissibleItemProcessActions(l,u)}};
_.I.dismissibleItemOnCommandSent=function(u,K){K&&this.dismissibleItemProcessActions(K,u)};
_.I.setAndGetDismissedContentId=function(u){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+u};
_.I.replayDismissAction=function(u){this.dismissibleItemProcessActions([u])};
_.I.dismissibleItemProcessActions=function(u,K){for(var l=0;l<u.length;l++){var D=u[l],d=void 0;((d=_.b(D,_.ey))==null?0:d.commands)&&this.dismissibleItemProcessActions(_.b(D,_.ey).commands,K);if(_.b(D,_.FP)){if(d=_.b(D,_.FP),!d.replaceParentSection||JSN.includes(this.hostElement.nodeName.toLowerCase()))_.S("web_see_fewer_shorts_reactive_dismissal")&&d.groupDismissal&&ROH(this,d.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(d),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.TT("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:D})),D=void 0,(D=K)==null||D.stopPropagation()}else if(_.b(D,Rbk))this.dismissibleItemHandleHideEnclosingAction_(),D=void 0,(D=K)==null||D.stopPropagation();else if(_.b(D,hNs))_.S("web_see_fewer_shorts_reactive_dismissal")&&(D=_.b(D,hNs),d=void 0,((d=D)==null?0:d.targetGroupId)&&ROH(this,{targetGroupId:D.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.TT("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),D=void 0,(D=K)==null||D.stopPropagation();else if(_.b(D,_.Ux))(D=_.b(D,_.Ux).actions)&&_.ay(this.hostElement,D,this.hostElement),D=void 0,(D=K)==null||D.stopPropagation();else{var C=d=void 0;((d=_.b(D,_.ly))==null?void 0:d.signal)!=="TELL_US_WHY"||((C=_.b(D,_.ly))==null?0:C.targetId)&&_.S("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),D=void 0,(D=K)==null||D.stopPropagation())}}};
_.I.dismissibleItemOnYtServiceRequestCompleted_=function(u,K){var l=this.get("feedbackResponses.0.followUpDialog",K.data);l?this.followUpDialogPromiseResolve(l):K.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(K.actions,u)};
_.I.dismissibleItemHandleReplaceEnclosingAction_=function(u){this.dismissedRenderer=u.item;this.isDismissed=!0;var K=null;(K=_.bi(this.hostElement).querySelector("#dismissed"))&&_.W_(this,function(){_.Hu(K)});
_.xs(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.I.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.I.dismissibleItemHandleUndoFeedbackAction_=function(){_.xs(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.I.dismissibleItemHandleTellUsWhySignalAction_=function(){var u=this;this.followUpDialogPromise.then(function(K){u.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:K}})})};
u3.prototype.dismissibleItemOnYtServiceRequestCompleted_=u3.prototype.dismissibleItemOnYtServiceRequestCompleted_;u3.prototype.dismissibleItemOnCommandSent=u3.prototype.dismissibleItemOnCommandSent;u3.prototype.dismissibleItemOnRequestSent=u3.prototype.dismissibleItemOnRequestSent;u3.prototype.dismissibleItemOnYtServiceRequestSent_=u3.prototype.dismissibleItemOnYtServiceRequestSent_;u3.prototype.dismissibleItemDataChanged_=u3.prototype.dismissibleItemDataChanged_;
u3.prototype.dismissibleItemIsDismissedChanged_=u3.prototype.dismissibleItemIsDismissedChanged_;_.g([_.e(_.nl),_.N("design:type",Object)],u3.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],u3.prototype,"ytdReduxBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],u3.prototype,"isDismissed",void 0);_.g([_.U(),_.N("design:type",Object)],u3.prototype,"dismissedRenderer",void 0);
_.g([_.JU("isDismissed"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean]),_.N("design:returntype")],u3.prototype,"dismissibleItemIsDismissedChanged_",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u3.prototype,"dismissibleItemDataChanged_",null);
_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],u3.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.g([_.PF("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],u3.prototype,"dismissibleItemOnRequestSent",null);
_.g([_.PF("yt-dismissible-item-action"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Array]),_.N("design:returntype")],u3.prototype,"dismissibleItemOnCommandSent",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],u3.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.g([_.TQ()],u3);_.KD=[_.nl,_.Ll,u3.prototype];var l3=function(){var u=_.ii.apply(this,arguments)||this;u.disableGridStateAware=!1;u.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};u.currentGridClass="";return u};
_.c(l3,_.ii);l3.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.W_(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var u=this.gridStateAwareGetElement();_.cF(u,"grid",!0)}};
l3.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
l3.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.bi(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
l3.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var u="grid-disabled";else{u=_.xdH.getInstance();var K=this.get("pageSubtype");u=K&&vB0.includes(K)?"grid-disabled":u.currentSnapState_?u.currentSnapState_.className:null}(K=this.gridStateAwareGetElement())&&u!==this.currentGridClass&&(u&&_.cF(K,u,!0),this.currentGridClass&&_.cF(K,this.currentGridClass,!1),this.currentGridClass=u)};
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],l3.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",String)],l3.prototype,"gridStateAwareSizingElementSelector",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],l3.prototype,"disableGridStateAware",void 0);_.g([_.TQ()],l3);_.D1=[l3.prototype,_.bf.YtActionHandlerBehavior];_.dP=new _.G$("GUIDE_TOKEN");var IA;_.CD={};IA=function(){var u=_.ii.apply(this,arguments)||this;u.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 u};
_.c(IA,_.ii);_.I=IA.prototype;_.I.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.I.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var u=_.GB().resolve(_.vv(_.dP));u&&(this.guidePersistentAndVisible=u.getGuidePersistentAndVisible(),this.activeEndpoint=u.getActiveEndpoint(),this.guideOpened=u.getGuideOpened(),this.miniGuideVisible=u.getMiniGuideVisible())};
_.I.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.I.handleGuideStateAction=function(u){this.guidePersistentAndVisible=u};
_.I.handleMiniGuideStateAction=function(u){this.miniGuideVisible=u};
_.I.handleGuideOpenedAction=function(u){this.guideOpened=u};
_.I.handleActiveEndpointAction=function(u){this.activeEndpoint=u};
IA.prototype.onActiveEndpointChange=IA.prototype.onActiveEndpointChange;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],IA.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],IA.prototype,"guidePersistentAndVisible",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],IA.prototype,"miniGuideVisible",void 0);_.g([_.U(),_.N("design:type",Object)],IA.prototype,"activeEndpoint",void 0);
_.g([_.JU("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IA.prototype,"onActiveEndpointChange",null);_.g([_.U(),_.N("design:type",Boolean)],IA.prototype,"guideOpened",void 0);_.g([_.TQ()],IA);_.CD.YtdGuideStateAwareBehavior=[];_.CD.YtdGuideStateAwareBehavior.push(IA.prototype,_.bf.YtActionHandlerBehavior);var jls=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],ya=function(){var u=_.ii.apply(this,arguments)||this;u.hoverJobId=0;u.JSC$14196_touched=!1;return u};
_.c(ya,_.ii);_.I=ya.prototype;_.I.created=function(){this.useExpandableTooltip=!jls.includes(this.is)};
_.I.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.I.detached=function(){this.useExpandableTooltip=!1};
_.I.lockupOnDown=function(u){this.interactionElement&&!_.rE(_.WF(u),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.I.lockupOnUp=function(u){this.interactionElement&&!_.rE(_.WF(u),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.I.onTouchStart=function(){this.JSC$14196_touched=!0};
_.I.lockupOnMouseEnter=function(){var u=this,K=_.Sg("kevlar_lockup_hover_delay",-1);this.JSC$14196_touched&&K>=0?(_.YL.cancelJob(this.hoverJobId),this.hoverJobId=_.YL.addJob(function(){u.lockupIsHovered=!0},8,K),this.JSC$14196_touched=!1):this.lockupIsHovered=!0};
_.I.lockupOnMouseLeave=function(){this.hoverJobId&&(_.YL.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.I.lockupOnPopupClosed=function(u,K){var l;((l=K.popupRenderer)==null?void 0:l.is)==="ytd-menu-popup-renderer"&&(u=K.popupRenderer.veData,K=_.AC(),u&&K&&_.yM(K,[u]))};
_.I.lockupOnLockupRequested=function(u){var K=u.detail.videoIds[0],l;u.detail&&K===((l=this.data)==null?void 0:l.videoId)&&(u.detail.returnValue=[this.data])};
_.I.lockupOnYtServiceRequestSent=function(u,K){if(u=K.actions)for(var l=0;l<u.length;l++){var D=u[l];if(D.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&K.ajaxPromise){var d=void 0,C=(d=_.b(K.endpoint,_.LP))==null?void 0:d.playlistId;d=void 0;D=(d=D.removedVideoId)!=null?d:"";gWs(_.y1(),D,C)}else D.action==="ACTION_REMOVE_VIDEO"&&K.ajaxPromise&&(C=void 0,D=(C=D.setVideoId)!=null?C:"",_.NLs(_.y1(),D))}};
_.I.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.I.lockupOnLockupEnabled=function(){if(!this.$){var u=_.GB().resolve(_.GT).getCurrentPage(),K=this.getParentRenderer?this.getParentRenderer():void 0;_.hV(new _.wv("component not ready",this.is,this.isAttached,u==null?void 0:u.is,K==null?void 0:K.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
ya.prototype.lockupOnLockupEnabled=ya.prototype.lockupOnLockupEnabled;ya.prototype.lockupOnLockupDisabled=ya.prototype.lockupOnLockupDisabled;ya.prototype.lockupOnYtServiceRequestSent=ya.prototype.lockupOnYtServiceRequestSent;ya.prototype.lockupOnLockupRequested=ya.prototype.lockupOnLockupRequested;ya.prototype.lockupOnPopupClosed=ya.prototype.lockupOnPopupClosed;ya.prototype.lockupOnMouseLeave=ya.prototype.lockupOnMouseLeave;ya.prototype.lockupOnMouseEnter=ya.prototype.lockupOnMouseEnter;
ya.prototype.onTouchStart=ya.prototype.onTouchStart;ya.prototype.lockupOnUp=ya.prototype.lockupOnUp;ya.prototype.lockupOnDown=ya.prototype.lockupOnDown;_.g([_.U(),_.N("design:type",Object)],ya.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],ya.prototype,"lockupIsHovered",void 0);_.g([_.U(),_.N("design:type",Boolean)],ya.prototype,"lockupTouchTriggered",void 0);_.g([_.U(),_.N("design:type",Boolean)],ya.prototype,"useExpandableTooltip",void 0);
_.g([_.BF("#interaction"),_.N("design:type",Object)],ya.prototype,"interactionElement",void 0);_.g([_.PF("down"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ya.prototype,"lockupOnDown",null);_.g([_.PF("up"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ya.prototype,"lockupOnUp",null);
_.g([_.PF("touchstart"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ya.prototype,"onTouchStart",null);_.g([_.PF("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ya.prototype,"lockupOnMouseEnter",null);_.g([_.PF("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ya.prototype,"lockupOnMouseLeave",null);
_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],ya.prototype,"lockupOnPopupClosed",null);_.g([_.PF("yt-lockup-requested"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ya.prototype,"lockupOnLockupRequested",null);
_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],ya.prototype,"lockupOnYtServiceRequestSent",null);_.g([_.PF("yt-disable-lockup-interaction"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ya.prototype,"lockupOnLockupDisabled",null);
_.g([_.PF("yt-enable-lockup-interaction"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ya.prototype,"lockupOnLockupEnabled",null);_.g([_.TQ()],ya);_.s8=[ya.prototype];_.BUN={YtdReduxBehavior:[]};_.BUN.YtdReduxBehavior.push.apply(_.BUN.YtdReduxBehavior,_.Ll);var oA=function(){var u=_.ii.apply(this,arguments)||this;u._noAccessors=!0;u.disableNowPlaying=!1;u.disableTooltips=!1;u.useHoveredProperty=!1;u.hovered=!1;u.isThumbnailHovered_=!1;u.addBackground=_.S("kevlar_thumbnail_bg");u.nowPlaying=!1;u.disableRounding=!1;u.size="small";return u};
_.c(oA,_.ii);_.I=oA.prototype;_.I.computeThumbnailOverlaySidePanelWidth_=function(u,K){return u-K};
_.I.computeSize=function(u,K){if(!this.disableRounding){if(!u&&!K)return"small";u=Math.max(u||0,K||0);return u>=256?"large":u>=96?"medium":"small"}};
_.I.computeFinalHoveredState_=function(u,K,l){return this.nowPlaying?!1:_.S("kevlar_thumbnail_fluid")&&u?K:l};
_.I.computeHoverOverlays_=function(u,K){return u&&K?K:void 0};
_.I.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.I.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.I.checkMiniplayer_=function(){var u;if(((u=this.data)==null?0:u.playlistSetVideoId)&&_.S("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{u=_.B3();var K=u.currentEndpoint;!this.disableNowPlaying&&K&&_.b(K,_.oy)&&this.data?(K=_.b(K,_.oy),this.nowPlaying=this.data.playlistId?K.playlistId===this.data.playlistId:K.videoId===this.data.videoId,this.isVideoPlaying=u==null?void 0:u.isVideoPlaying):this.nowPlaying=!1}};
oA.prototype.checkMiniplayer_=oA.prototype.checkMiniplayer_;oA.prototype.onMouseLeave_=oA.prototype.onMouseLeave_;oA.prototype.onMouseEnter_=oA.prototype.onMouseEnter_;oA.prototype.computeHoverOverlays_=oA.prototype.computeHoverOverlays_;oA.prototype.computeFinalHoveredState_=oA.prototype.computeFinalHoveredState_;oA.prototype.computeSize=oA.prototype.computeSize;oA.prototype.computeThumbnailOverlaySidePanelWidth_=oA.prototype.computeThumbnailOverlaySidePanelWidth_;
_.g([_.e(_.Ll),_.N("design:type",Object)],oA.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],oA.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Number)],oA.prototype,"height",void 0);_.g([_.U(),_.N("design:type",Boolean)],oA.prototype,"bottomSidePanel",void 0);_.g([_.U(),_.N("design:type",Number)],oA.prototype,"width",void 0);_.g([_.U(),_.N("design:type",Object)],oA.prototype,"disableNowPlaying",void 0);
_.g([_.U({selector:_.X6}),_.N("design:type",Boolean)],oA.prototype,"miniplayerIsActive",void 0);_.g([_.U(),_.N("design:type",Object)],oA.prototype,"disableTooltips",void 0);_.g([_.U(),_.N("design:type",Object)],oA.prototype,"useHoveredProperty",void 0);_.g([_.U(),_.N("design:type",Object)],oA.prototype,"hovered",void 0);_.g([_.U(),_.N("design:type",Object)],oA.prototype,"isThumbnailHovered_",void 0);
_.g([_.U({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.N("design:type",Boolean)],oA.prototype,"finalHoveredState_",void 0);_.g([_.U({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.N("design:type",Number)],oA.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],oA.prototype,"addBackground",void 0);
_.g([_.U({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.N("design:type",Object)],oA.prototype,"hoverOverlays_",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],oA.prototype,"nowPlaying",void 0);_.g([_.U(),_.N("design:type",Boolean)],oA.prototype,"isVideoPlaying",void 0);_.g([_.U(),_.N("design:type",Object)],oA.prototype,"disableRounding",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.N("design:type",Object)],oA.prototype,"size",void 0);_.g([_.PF("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oA.prototype,"onMouseEnter_",null);_.g([_.PF("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oA.prototype,"onMouseLeave_",null);
_.g([_.JU("data","disableNowPlaying","miniplayerIsActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oA.prototype,"checkMiniplayer_",null);_.g([_.TQ()],oA);var pmH=[oA.prototype];_.WB={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(u,K){return u+":"+_.DA(K)},
getPlayerListener_:function(u,K,l){u=this.getPlayerListenerKey_(u,K);K=this.playerListeners_.get(u);l&&this.playerListeners_.delete(u);return K},
savePlayerListener_:function(u,K){var l=K.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(u,K),l);return l},
listenToPlayerEvent:function(u,K,l){l=this.savePlayerListener_(K,l);u.addEventListener(K,l)},
listenToPlayerEvents:function(u,K){K.forEach(function(l,D){this.listenToPlayerEvent(u,D,l)}.bind(this))},
unlistenFromPlayerEvent:function(u,K,l){l=this.getPlayerListener_(K,l,!0);u.removeEventListener(K,l)},
unlistenFromPlayerEvents:function(u,K){K.forEach(function(l,D){this.unlistenFromPlayerEvent(u,D,l)}.bind(this))}}};
_.HB=function(){};_.ijC=new _.G$("PLAYER_API_TOKEN");var BUq=!1,wmq,ijR=!1,VWL;var OK=function(u,K,l,D,d){_.TZ.call(this);var C=this;this.playerId=K;this.webPlayerContextConfig=D;this.vT5=d;this.yhQ=!1;this.api={};this.vVC=this.tRC=null;this.mmg=new _.Qx;this.mT={};this.z7g=this.nen=this.elementId=this.s6K=this.config=null;this.st8=!1;this.fW=this.qGg=null;this.m98={};this.c0r=["onReady"];this.lastError=null;this.o8J=NaN;this.ebj={};this.oxt=0;this.s3=this.targetElement=u;_.eb(this,this.mmg);TU2(this);l?this.oxt=setTimeout(function(){C.loadNewVideoConfig(l)},0):D&&(wmN(this),
FB2(this))};
_.c(OK,_.TZ);OK.prototype.getId=function(){return this.playerId};
OK.prototype.loadNewVideoConfig=function(u){if(!this.isDisposed()){this.oxt&&(clearTimeout(this.oxt),this.oxt=0);var K=u||{};K instanceof u7s||(K=new u7s(K));this.config=K;this.setConfig(u);FB2(this);this.isReady()&&VWk(this)}};
var wmN=function(u){var K;u.webPlayerContextConfig?K=u.webPlayerContextConfig.rootElementId:K=u.config.attrs.id;u.elementId=K||u.elementId;u.elementId==="video-player"&&(u.elementId=u.playerId,u.webPlayerContextConfig?u.webPlayerContextConfig.rootElementId=u.playerId:u.config.attrs.id=u.playerId);var l;((l=u.s3)==null?void 0:l.id)===u.elementId&&(u.elementId+="-player",u.webPlayerContextConfig?u.webPlayerContextConfig.rootElementId=u.elementId:u.config.attrs.id=u.elementId)};
OK.prototype.setConfig=function(u){this.s6K=u;this.config=gQB(u);wmN(this);if(!this.nen){var K;this.nen=NU2(this,((K=this.config.args)==null?void 0:K.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var l;if((l=this.config)==null?0:l.attrs)u=this.config.attrs,(K=u.width)&&this.s3&&(this.s3.style.width=l4(Number(K)||K,!0)),(u=u.height)&&this.s3&&(this.s3.style.height=l4(Number(u)||u,!0))};
var VWk=function(u){if(u.config&&u.config.loaded!==!0)if(u.config.loaded=!0,!u.config.args||u.config.args.autoplay!=="0"&&u.config.args.autoplay!==0&&u.config.args.autoplay!==!1){var K;u.api.loadVideoByPlayerVars((K=u.config.args)!=null?K:null)}else u.api.cueVideoByPlayerVars(u.config.args)},ZjH=function(u){var K=!0,l=u.getPlayerElement();
l&&u.config&&(K=l.dataset.version===ksS(u));return K&&!!_.lZ("yt.player.Application.create")},FB2=function(u){if(!u.isDisposed()&&!u.st8){var K=ZjH(u);
if(K&&(u.getPlayerElement()?"html5":null)==="html5")u.z7g="html5",u.isReady()||YNa(u);else if(ASk(u),u.z7g="html5",K&&u.fW&&u.targetElement)u.targetElement.appendChild(u.fW),YNa(u);else{u.config&&(u.config.loaded=!0);var l=!1;u.qGg=function(){l=!0;var D=Xms(u,"player_bootstrap_method")?_.lZ("yt.player.Application.createAlternate")||_.lZ("yt.player.Application.create"):_.lZ("yt.player.Application.create");var d=u.config?gQB(u.config):void 0;D&&D(u.targetElement,d,u.webPlayerContextConfig,u.vT5);YNa(u)};
u.st8=!0;K?u.qGg():(_.KN(ksS(u),u.qGg),(K=mcN(u))&&DLh(K||""),hOs(u)&&!l&&_.$L("yt.player.Application.create",null))}}};
OK.prototype.getPlayerElement=function(){var u=_.be(document,this.elementId);!u&&this.s3&&this.s3.querySelector&&(u=this.s3.querySelector("#"+this.elementId));return u};
var YNa=function(u){if(!u.isDisposed()){var K=u.getPlayerElement(),l=!1;K&&K.getApiInterface&&K.getApiInterface()&&(l=!0);if(l){u.st8=!1;if(!Xms(u,"html5_remove_not_servable_check_killswitch")){var D;if((K==null?0:K.isNotServable)&&u.config&&(K==null?0:K.isNotServable((D=u.config.args)==null?void 0:D.video_id)))return}EQw(u)}else u.o8J=setTimeout(function(){YNa(u)},50)}},EQw=function(u){TU2(u);
u.yhQ=!0;var K=u.getPlayerElement();if(K){u.tRC=LB2(u,K,"addEventListener");u.vVC=LB2(u,K,"removeEventListener");var l=K.getApiInterface();l=l.concat(K.getInternalApiInterface());for(var D=u.api,d=0;d<l.length;d++){var C=l[d];D[C]||(D[C]=LB2(u,K,C))}}for(var W in u.mT)u.mT.hasOwnProperty(W)&&u.tRC&&u.tRC(W,u.mT[W]);VWk(u);u.nen&&u.nen(u.api);u.mmg.publish("onReady",u.api)},LB2=function(u,K,l){var D=K[l];
return function(){var d=_.uY.apply(0,arguments);try{return u.lastError=null,D.apply(K,d)}catch(C){if(l!=="sendAbandonmentPing")throw C.params=l,u.lastError=C,d=new _.wv("PlayerProxy error in method call",{error:C,method:l,playerId:u.playerId}),d.level="WARNING",d;}}},TU2=function(u){u.yhQ=!1;
if(u.vVC)for(var K in u.mT)u.mT.hasOwnProperty(K)&&u.vVC(K,u.mT[K]);for(var l in u.ebj)u.ebj.hasOwnProperty(l)&&clearTimeout(Number(l));u.ebj={};u.tRC=null;u.vVC=null;K=u.api;for(var D in K)K.hasOwnProperty(D)&&(K[D]=null);K.addEventListener=function(d,C){u.addEventListener(d,C)};
K.removeEventListener=function(d,C){u.removeEventListener(d,C)};
K.destroy=function(){u.dispose()};
K.getLastError=function(){return u.getLastError()};
K.getPlayerType=function(){return u.getPlayerType()};
K.getCurrentVideoConfig=function(){return u.s6K};
K.loadNewVideoConfig=function(d){u.loadNewVideoConfig(d)};
K.isReady=function(){return u.isReady()}};
OK.prototype.isReady=function(){return this.yhQ};
OK.prototype.addEventListener=function(u,K){var l=this;this.isDisposed();var D=NU2(this,K);D&&(_.Vn(this.c0r,u)||this.mT[u]||(K=uKR(this,u),this.tRC&&this.tRC(u,K)),this.mmg.subscribe(u,D),u==="onReady"&&this.isReady()&&setTimeout(function(){D(l.api)},0))};
OK.prototype.removeEventListener=function(u,K){this.isDisposed()||(K=NU2(this,K))&&this.mmg.unsubscribe(u,K)};
var NU2=function(u,K){var l=K;if(typeof K==="string"){if(u.m98[K])return u.m98[K];l=function(){var D=_.uY.apply(0,arguments),d=_.lZ(K);if(d)try{d.apply(_.lL,D)}catch(C){throw D=new _.wv("PlayerProxy error when executing callback",{error:C}),D.level="ERROR",D;}};
u.m98[K]=l}return l?l:null},uKR=function(u,K){var l=function(D){var d=function(){u.isDisposed();
if(!u.isDisposed())try{u.mmg.publish(K,D!=null?D:void 0)}catch(M){var W=new _.wv("PlayerProxy error when creating global callback",{error:M.message,event:K,playerId:u.playerId,data:D,originalStack:M.stack,componentStack:M.componentStack});W.level="WARNING";throw W;}};
if(Xms(u,"web_player_publish_events_immediately"))d();else{var C=setTimeout(function(){d();_.k$.remove(u.ebj,String(C))},0);
_.k$.add(u.ebj,String(C),!0)}};
return u.mT[K]=l};
OK.prototype.getPlayerType=function(){return this.z7g||(this.getPlayerElement()?"html5":null)};
OK.prototype.getLastError=function(){return this.lastError};
var ASk=function(u){u.cancel();TU2(u);u.z7g=null;u.config&&(u.config.loaded=!1);var K=u.getPlayerElement();K&&(ZjH(u)||!hOs(u)?u.fW=K:(K&&K.destroy&&K.destroy(),u.fW=null));u.targetElement&&_.XV(u.targetElement)};
OK.prototype.cancel=function(){this.qGg&&_.fwn(ksS(this),this.qGg);clearTimeout(this.o8J);this.st8=!1};
OK.prototype.disposeInternal=function(){ASk(this);if(this.fW&&this.config&&this.fW.destroy)try{this.fW.destroy()}catch(K){var u=new _.wv("PlayerProxy error during disposal",{error:K});u.level="ERROR";throw u;}this.m98=null;for(u in this.mT)this.mT.hasOwnProperty(u)&&delete this.mT[u];this.s6K=this.config=this.api=null;delete this.targetElement;delete this.s3;_.TZ.prototype.disposeInternal.call(this)};
var hOs=function(u){var K,l;u=(K=u.config)==null?void 0:(l=K.args)==null?void 0:l.fflags;return!!u&&u.indexOf("player_destroy_old_version=true")!==-1},ksS=function(u){return u.webPlayerContextConfig?u.webPlayerContextConfig.jsUrl:(u=u.config.assets)?u.js:""},mcN=function(u){return u.webPlayerContextConfig?u.webPlayerContextConfig.cssUrl:(u=u.config.assets)?u.css:""},Xms=function(u,K){if(u.webPlayerContextConfig)var l=u.webPlayerContextConfig.serializedExperimentFlags;
else{var D;if((D=u.config)==null?0:D.args)l=u.config.args.fflags}return(l||"").split("&").includes(K+"=true")},gQB=function(u){for(var K={},l=_.y(Object.keys(u)),D=l.next();!D.done;D=l.next()){D=D.value;
var d=u[D];K[D]=typeof d==="object"?_.k$.clone(d):d}return K};var YNo={},Zjq="player_uid_"+(Math.random()*1E9>>>0);var MR=function(u,K,l,D,d,C){K=K===void 0?document.createElement("div"):K;this.webPlayerContextConfig=u;this.container=K;this.commandResolver=l;this.apiResolver=mcq();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.et;D||C?KNs(this):lxm(this);this.pendingPlayerResponse=D;this.pendingWatchNextResponse=d;this.pendingPlayerVars=C;DFk(this)};
MR.prototype.loadVideoWithPlayerResponse=function(u,K,l){this.loadVideo(u,K,l)};
MR.prototype.loadVideoWithPlayerVars=function(u){return this.loadVideo(void 0,void 0,u)};
MR.prototype.destroy=function(u){if(u=_.be(document,u))u=Zjq+"_"+_.DA(u),(u=YNo[u])&&u.dispose()};
var CuB=function(u,K){var l;_.H(function(D){if(D.nextAddress==1)return u.pendingWatchNextResponse=K,u.synchronousApi?(l=u.synchronousApi,D.jumpTo(2)):D.yield(u.api,3);D.nextAddress!=2&&(l=D.yieldResult);dFm(u,l);u.pendingWatchNextResponse&&(l.updateVideoData({raw_watch_next_response:u.pendingWatchNextResponse}),u.pendingWatchNextResponse=void 0);_.TG(D)})},dFm=function(u,K){var l;
if(!(K==null?0:(l=K.isReady)==null?0:l.call(K))){var D;_.hV(new _.wv("playerApi is falsey",{synchronousApi:u.synchronousApi,apiResolved:u.apiResolver.resolved,playerApiUndefined:K===void 0,playerApiNull:K===null,playerApiReady:(K==null?void 0:(D=K.isReady)==null?void 0:D.call(K))===!0,playerApiMethods:K?Object.keys(K):[]}))}},Ix0=function(u,K){if(typeof u[K]==="function")return u[K]()},yGC=function(u){var K=window,l,D=(l=K.ytplayer)==null?void 0:l.bootstrapPlayerContainer;
if((l=D==null?void 0:D.firstElementChild)&&_.IM(l,"html5-video-player")){var d,C,W=(d=K.ytplayer)==null?void 0:(C=d.bootstrapWebPlayerContextConfig)==null?void 0:C.contextId;d=u.webPlayerContextConfig.contextId;if(W&&W===d){D!==u.container&&(D=!1,Ix0(l,"getPlayerState")===2&&(D=!0),u.container.appendChild(l),D||Ix0(l,"playVideo"));var M;if((M=K.ytplayer)==null?0:M.bootstrapPlayerResponse)u.bootstrapPlayerResponse=K.ytplayer.bootstrapPlayerResponse}}},DFk=function(u){var K,l,D,d,C;
_.H(function(W){if(W.nextAddress==1)return u.pageReadyOrDataAvailable?W.jumpTo(2):W.yield(u.pageReadyOrDataAvailableResolver.promise,2);if(W.nextAddress!=4)return!_.S("kevlar_player_unified_player_loading")||pmq()&&TUr()?W.jumpTo(4):W.yield(NUr(),4);yGC(u);if(u.pendingPlayerResponse||u.pendingPlayerVars)K=ksw(u.pendingPlayerResponse,u.pendingWatchNextResponse,u.pendingPlayerVars),u.pendingPlayerResponse&&u.pendingPlayerResponse===u.bootstrapPlayerResponse&&(K.loaded=!0),u.bootstrapPlayerResponse=
void 0;l=Xm9(u.container,K,u.webPlayerContextConfig);((D=K)==null?0:D.loaded)&&u.pendingWatchNextResponse?(CuB(u,u.pendingWatchNextResponse),u.pendingPlayerResponse=void 0,u.pendingPlayerVars=void 0):s3s(u);d=function(M){l.removeEventListener("onReady",d);u.synchronousApi=M;u.apiResolver.resolve(M)};
l.addEventListener("onReady",d);u.commandResolver!==void 0&&(C=u.commandResolver,l.addEventListener("innertubeCommand",function(M){C(M)}));
_.TG(W)})};
MR.prototype.loadVideo=function(u,K,l){var D=this,d,C,W,M,q,v,G,t,x;return _.H(function(O){if(O.nextAddress==1)return D.pendingPlayerResponse=u,D.pendingWatchNextResponse=K,D.pendingPlayerVars=l,KNs(D),D.synchronousApi?(d=D.synchronousApi,O.jumpTo(2)):O.yield(D.api,3);O.nextAddress!=2&&(d=O.yieldResult);dFm(D,d);W=new Promise(function(a){C=a});
M=function(){var a=d.getPlayerResponse();a&&(d.removeEventListener("onVideoDataChange",M),C(a))};
d.addEventListener("onVideoDataChange",M);if(D.pendingPlayerResponse||D.pendingPlayerVars)D.pendingPlayerResponse&&D.pendingPlayerResponse===D.bootstrapPlayerResponse?(C(D.pendingPlayerResponse),D.pendingWatchNextResponse&&CuB(D,D.pendingWatchNextResponse)):(q=ksw(D.pendingPlayerResponse,D.pendingWatchNextResponse,D.pendingPlayerVars),(x=(v=D.pendingPlayerResponse)==null?void 0:(G=v.playerConfig)==null?void 0:(t=G.playbackStartConfig)==null?void 0:t.startPaused)?d.cueVideoByPlayerVars(q.args):d.loadVideoByPlayerVars(q.args)),
s3s(D),D.bootstrapPlayerResponse=void 0;return O.return(W)})};
var lxm=function(u){if(document.readyState==="complete"||document.readyState==="interactive")KNs(u);else{var K=function(){document.removeEventListener("DOMContentLoaded",K);KNs(u)};
document.addEventListener("DOMContentLoaded",K)}},KNs=function(u){u.pageReadyOrDataAvailable=!0;
u.pageReadyOrDataAvailableResolver.resolve()},s3s=function(u){u.pendingPlayerResponse=void 0;
u.pendingWatchNextResponse=void 0;u.pendingPlayerVars=void 0};
_.MN.Object.defineProperties(MR.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var qR=function(u){h7.call(this,u===void 0?"document_active":u);var K=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(l){K.transition("document_disposed",{event:l})});
window.addEventListener("beforeunload",function(l){K.transition("document_disposed_preventable",{event:l})});
window.addEventListener("unload",function(l){K.transition("document_disposed",{event:l});K.hasRun=new Map})};
_.c(qR,h7);
qR.prototype.runPreventableDispose=function(u,K){if(!this.hasRun.get("document_disposed_preventable")){u(K==null?void 0:K.event);var l,D;if((K==null?0:(l=K.event)==null?0:l.defaultPrevented)||(K==null?0:(D=K.event)==null?0:D.returnValue)){K.event.returnValue||(K.event.returnValue=!0);K.event.defaultPrevented||K.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")};
qR.prototype.runDispose=function(u,K){this.hasRun.get("document_disposed")?this.transition("document_active"):(u(K==null?void 0:K.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
qR.prototype.runFlush=function(u,K){u(K==null?void 0:K.event);this.transition("document_active")};
qR.prototype.runActive=function(){};var $R=function(u){h7.call(this,u===void 0?"document_visibility_unknown":u);var K=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(l){document.visibilityState==="visible"?K.transition("document_visible",{event:l}):K.transition("document_hidden",
{event:l})});
_.S("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(l){K.transition("document_backgrounded",{event:l})}),window.addEventListener("focus",function(l){K.transition("document_foregrounded",{event:l})}))};
_.c($R,h7);$R.prototype.runVisible=function(u,K){u(K==null?void 0:K.event);_.S("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
$R.prototype.runHidden=function(u,K){u(K==null?void 0:K.event);_.S("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
$R.prototype.runBackgrounded=function(u,K){u(K==null?void 0:K.event)};
$R.prototype.runForegrounded=function(u,K){u(K==null?void 0:K.event)};var nD=function(){this.teardownLifecycle=new qR;this.visibilityLifecycle=new $R};
nD.prototype.install=function(){var u=_.uY.apply(0,arguments),K=this;u.forEach(function(l){K.teardownLifecycle.install(l)});
u.forEach(function(l){K.visibilityLifecycle.install(l)})};var rP=function(){nD.call(this);var u={};this.install((u.document_disposed={callback:this.abortSlisAndFlush},u));_.S("combine_ve_grafts")&&(u={},this.install((u.document_disposed={callback:this.flushInteractionLoggingAttachVes},u)));u={};this.install((u.flush_logs={callback:this.logFinalPayload},u));_.S("web_log_cfg_cee_ks")||_.Ve(_.YL,o6B)};
_.c(rP,nD);var hO9=function(){rP.loggingInstance||(rP.loggingInstance=new rP);return rP.loggingInstance};
rP.prototype.logFinalPayload=function(){if(_.S("web_fp_via_jspb")){var u=new qW2,K=_.AC();K&&_.Tj(u,1,K);K=_.S("jspb_sparse_encoded_pivot")?new Tr([{}]):new Tr;_.Br(K,380,$Nm,u);SCr("finalPayload",K);_.S("web_fp_via_jspb_and_json")&&_.YE("finalPayload",{csn:_.AC()})}else _.YE("finalPayload",{csn:_.AC()})};
rP.prototype.abortSlisAndFlush=function(){iow(s7);oD!=null&&oD.flush()};
rP.prototype.flushInteractionLoggingAttachVes=function(){Dxa(_.iT())};
var o6B=function(){var u=_.E3("CLIENT_EXPERIMENT_EVENTS");if(u){var K=Tqo();u=_.y(u);for(var l=u.next();!l.done;l=u.next())l=l.value,K(l)&&_.YE("genericClientExperimentEvent",{eventType:l});delete _.mT.CLIENT_EXPERIMENT_EVENTS}};var WN2={};
WN2.YtPlayerBehavior=[_.WB.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 u=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.et;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;EQq(function(){u.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.X3(this,"pan-down"),_.S("kevlar_pinch_fullscreen")&&_.Ns().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.S("kevlar_pinch_fullscreen")&&_.Ns().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(u,K,l){var D=this;cJ(this.useUnifiedPlayer_());if(this.mainAppPlayer_)cJ(!1,"MainAppPlayer already created.");else{var d=_.S("kevlar_player_container_query_killswitch")?this.$.container:_.bi(this.hostElement).querySelector("#container");this.mainAppPlayer_=new MR(this.getWebPlayerContextConfig_(),d,function(C){return _.Jl(C,D.hostElement)},u,K,l);
this.mainAppPlayer_.api.then(function(C){D.player_=C;D.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&KjS.resolve(C)})}},
loadVideoWithPlayerResponse:function(u,K){var l=this;if(this.useUnifiedPlayer_()){var D=this.watchNextData,d,C=(d=u.videoDetails)==null?void 0:d.videoId,W,M,q;(d=(W=this.watchNextData)==null?void 0:(M=W.currentVideoEndpoint)==null?void 0:(q=M.watchEndpoint)==null?void 0:q.videoId)&&C!=d&&(D=void 0,_.S("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(u,D,K):this.createMainAppPlayer_(u,D,K);this.mainAppPlayer_.api.then(function(){_.xs(l.hostElement,
"yt-player-updated")})}else this.update(PSy(u,K))},
loadVideoWithPlayerVars:function(u){var K=this;this.useUnifiedPlayer_()?(_.S("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(u):this.createMainAppPlayer_(void 0,void 0,u),this.mainAppPlayer_.api.then(function(){_.xs(K.hostElement,"yt-player-updated")})):this.update({args:u})},
update:function(u){var K=this;if(this.useUnifiedPlayer_())cJ(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(u);var l=wPH(u.args);l&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==l&&Object.assign(u.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(u).then(function(D){_.xs(K.hostElement,"yt-player-updated",_.S("kevlar_player_updated_obsolete_player_killswitch")?
D:void 0)})}_.m0(new _.wv("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(u){var K=this,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(K.getPlayerPromise(),2);l=D.yieldResult;if(!l)throw Error("wh");u&&K.updatePlayerPlaylist_(u);_.TG(D)})},
acquireApi_:function(u){var K=this;if(this.useUnifiedPlayer_())cJ(!1,"Invalid method call in kevlar_unified_player.");else return _.YL.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(cJ(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(l){K.shouldAutoplay_(u)?l.loadVideoByPlayerVars(u.args):l.cueVideoByPlayerVars(u.args)})):this.initPlayerPromise_=this.initPlayerContainer_(u),this.initPlayerPromise_},
initPlayerContainer_:function(u){var K=this;if(this.useUnifiedPlayer_())cJ(!1,"Invalid method call in kevlar_unified_player.");else return cJ(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.hV(Error("xh")),cJ(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.S("kevlar_player_container_query_killswitch")?this.$.container:_.bi(this.hostElement).querySelector("#container"),NUr().then(function(){var l=K.initPlayer_(u);K.playerResolver_.resolve(l);
return l})},
onPlayerReady_:function(u,K){this.useUnifiedPlayer_()?cJ(!1,"Invalid method call in kevlar_unified_player."):(u.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&KjS.resolve(u),K(u))},
maybeCallApiMethodOnElement_:function(u,K){if(typeof u[K]==="function")return u[K]()},
maybeAdoptBootstrapPlayer_:function(){var u=window,K,l=(K=u.ytplayer)==null?void 0:K.bootstrapPlayerContainer;if((K=l==null?void 0:l.firstElementChild)&&K.classList.contains("html5-video-player")){var D,d,C=(D=u.ytplayer)==null?void 0:(d=D.bootstrapWebPlayerContextConfig)==null?void 0:d.contextId;D=this.getWebPlayerContextConfig_().contextId;if(C&&C===D){l!==this.playerContainer_&&(l=!1,this.maybeCallApiMethodOnElement_(K,"getPlayerState")===2&&(l=!0),this.playerContainer_.appendChild(K),l||this.maybeCallApiMethodOnElement_(K,
"playVideo"));var W;if((W=u.ytplayer)==null?0:W.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=u.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(u){var K=this;if(this.useUnifiedPlayer_())cJ(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(l){K.maybeAdoptBootstrapPlayer_();var D=u?JSq(u):void 0;D&&D==K.bootstrapPlayerResponse_&&(u.loaded=!0);D=K.playerContainer_;var d=K.getWebPlayerContextConfig_();D=Xm9(D,u,d);K.player_=D;K.onPlayerReadyEvent_=K.onPlayerReady_.bind(K,K.player_,l);K.player_.addEventListener("onReady",K.onPlayerReadyEvent_);K.player_.addEventListener("innertubeCommand",
K.onPlayerInnerTubeCommand_.bind(K));_.S("enable_web_shorts_captions_language_command")&&K.player_.addEventListener("captionschanged",K.storePlayerCaptionLanguage_.bind(K))})},
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(u){u.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(u){u.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var u=_.GB().resolve(_.GT).getCurrentPage();u&&u.getScrollTop()<=0?_.X3(this,"pan-down"):_.X3(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(u){u.isFullscreen()||u.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(u){u.isFullscreen()&&u.toggleFullscreen()})},
updatePlayerPlaylist_:function(u){var K=this,l,D,d;return _.H(function(C){if(C.nextAddress==1)return l=_.GB().resolve(_.vv(_.lX)),D=!!(l&&l.playlistComponent&&l.playlistComponent.loopOn),C.yield(K.getPlayerPromise(),2);var W=d=C.yieldResult,M=W.updatePlaylist,q=[];if(_.S("kevlar_player_playlist_use_local_index")){var v,G;var t=(G=(v=u.localCurrentIndex)!=null?v:u.currentIndex)!=null?G:0}else{var x;t=(x=u.currentIndex)!=null?x:0}if(u.contents)for(v=0;v<u.contents.length;v++)if((G=u.contents[v])&&G.playlistPanelVideoRenderer)if(fln(G)){G=
G.playlistPanelVideoRenderer;x="";G.shortBylineText&&(x=_.WI(G.shortBylineText));var O="";G.title?O=_.WI(G.title):G.unplayableText&&(O=_.WI(G.unplayableText));q.push({author:x,title:O,encrypted_id:G.videoId})}else v<t&&--t;M.call(W,{index:t,list:u.playlistId?u.playlistId:"",loop:D,playlist_title:u.title,playlist_length:q.length,video:q,fetch:0,external_list:"1",title:u.title?u.title:"",playlist_author:u.ownerName?_.WI(u.ownerName):void 0});_.TG(C)})},
focusOnPlayer:function(){_.W_(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var u=this.playerContainer_.querySelector(".html5-video-player");u&&(_.vB(_.GB().resolve(_.Xb)),u.focus())}})},
preparePlayer:function(){var u=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(K){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")K();else{var l=function(){document.removeEventListener("DOMContentLoaded",l);K()};
document.addEventListener("DOMContentLoaded",l)}})).then(function(){return NUr()}).then(function(){u.initPlayerPromise_||u.preparePlayerJobId_||(u.preparePlayerJobId_=_.Ve(_.YL,function(){u.initPlayerPromise_||(u.initPlayerPromise_=u.initPlayerContainer_())}))}):_.m0(new _.wv("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(u){this.useUnifiedPlayer_()?cJ(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(u)||(u.args.autoplay="0")},
shouldAutoplay_:function(u){if(this.useUnifiedPlayer_())cJ(!1,"Invalid method call in kevlar_unified_player.");else{var K=this.get("args.el",u);return K&&K!="detailpage"&&this.isMiniplayerActive_()||K&&(K=="sponsorshipsoffer"||K=="handlesclaiming")&&this.get("args.autoplay",u)=="0"?!1:(u=JSq(u))&&this.get("playerConfig.playbackStartConfig.startPaused",u)?!1:!0}},
isMiniplayerActive_:function(){return _.GB().resolve(_.uD).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var u=this.getPlayer();if(u){var K=u.getPlayerState();_.S("kevlar_player_check_ad_state_on_stop")&&(K=u.getPlayerState(u.getPresentingPlayerType()));K!=5&&u.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(u,K,l){l=l===void 0?!1:l;var D=this,d,C,W,M;return _.H(function(q){if(q.nextAddress==1)return K||(K=D.hostElement),d=D.useUnifiedPlayer_()?!!D.mainAppPlayer_:!!D.initPlayerPromise_,d?q.yield(D.getPlayerPromise(),2):(l?u.insertBefore(K,u.firstChild):u.appendChild(K),q.return());C=q.yieldResult;W=C.getPlayerState(C.getPresentingPlayerType());M=!1;if(W==-1||W==1||W==3)M=!0;l?u.insertBefore(K,u.firstChild):u.appendChild(K);M&&C.playVideo();C.setSize(NaN,NaN);_.TG(q)})},
watchNextDataChanged_:function(u){var K=this;u&&(this.useUnifiedPlayer_()&&_.S("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&CuB(this.mainAppPlayer_,u):this.getPlayerPromise().then(function(l){l.updateVideoData(K.computeWatchNextPlayerVars_(u))}))},
computeWatchNextPlayerVars_:function(u){if(this.useUnifiedPlayer_()&&_.S("kevlar_unified_player_update_watch_next_killswitch"))cJ(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:u}},
maybeSendAbandonmentPing_:function(){var u=this.getPlayer();u&&u.getPlayerState()!=5&&u.getPlayerState()!=0&&u.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var u=_.E3("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(u=Object.assign({},u),u.rootElementId=this.playerId);u.serializedExperimentIds&&u.serializedExperimentFlags||_.hV(Error("yh"));return u},
hasWebPlayerContextConfig_:function(){return!!_.E3("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(u){this.useUnifiedPlayer_()?cJ(!1,"Invalid method call in kevlar_unified_player."):_.Jl(u,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(u){var K=_.GB().resolve(_.iX);u=u==null?void 0:u.getOption("captions","track");var l=_.zI("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(u){var D,d=(D=_.ie(_.ENL,l)())==null?void 0:D.value,C;D=typeof(u==null?void 0:u.translationLanguage)==="object"&&((C=u.translationLanguage)==null?void 0:C.languageName)||u.displayName||"";d!==D&&K.store.dispatch(_.TT("stringEntity",l,{key:l,value:D.toString()}))}else K.store.dispatch(_.TT("stringEntity",
l,{key:l,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var u=_.S("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.S("kevlar_unified_player")||u}}];var HYk={};HYk.YtPlaylistPanelBehavior=[_.Y.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(u){u=u.detail;if(u.actions.loop!=void 0||u.actions["yt-icons:loop"]!=void 0)this.loopOn=u.actions.loop||u.actions["yt-icons:loop"];if(u.actions.shuffle!=void 0||u.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=u.actions.shuffle||u.actions["yt-icons:shuffle"]},
setMenuData_:function(u){if(!u||!u.playlistButtons||u.isInfinite)return null;for(var K=u.playlistButtons.menuRenderer.topLevelButtons,l=K.length,D=0;D<l;D++)if(K[D].toggleButtonRenderer){var d=K[D].toggleButtonRenderer;d.defaultIcon.iconType=="LOOP"&&this.loopOn?d.isToggled=this.loopOn:d.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(d.isToggled=this.shuffleOn)}return u.playlistButtons}}];var MzR=function(u){xr.call(this,u,132);this.isDocument=u===document.documentElement};
_.c(MzR,xr);MzR.prototype.calculateScrollDelta=function(u,K,l){var D=0;u<K?D=u<K-100?-48:-8:u>K+l&&(D=u>K+l+100?48:8);return D};
MzR.prototype.JSC$11271_onMouseMove=function(u){this.isDocument||(u.clientX=u.event_.pageX,u.clientY=u.event_.pageY);xr.prototype.JSC$11271_onMouseMove.call(this,u)};var Gz=function(){var u=_.ii.apply(this,arguments)||this;u._noAccessors=!0;u.scrollElement=document.documentElement;u.JSC$14255_dragListGroup=null;u.dragScrollSupport=null;u.onDraggerCreated=function(K){var l=K.JSC$11267_dragger;l.scrollTarget_=u.scrollElement;K=K.draggerEl;l&&K.menuOpened&&l.setEnabled(!1)};
u.onDragStart=function(K){var l=K.draggerEl;K=K.currDragItem;var D=Object.assign({},K==null?void 0:K.data);D.trackingParams=void 0;l.data=D;l.style.position="absolute";l.style.width=(K==null?void 0:K.clientWidth)+"px";l.style.zIndex="2030";l.onDrag&&l.onDrag();_.S("web_owner_document_fallback_killswitch")?(K=document.querySelector("ytd-app"))&&_.bi(K).appendChild(l):(K=_.hO(l),(D=K.querySelector("ytd-app"))?_.bi(D).appendChild(l):K.body.appendChild(l));u.dragScrollSupport=new MzR(u.scrollElement);
u.dragScrollSupport.horizontalScrolling_=!1;l=u.dragScrollSupport;l.constrainScroll_=!!l.margin_&&!1};
u.onDrop=function(K){u.handleDrop(K);u.dragScrollSupport&&(_.qt(u.dragScrollSupport),u.dragScrollSupport=null)};
u.onReorderableScroll=function(){if(u.JSC$14255_dragListGroup){var K=u.JSC$14255_dragListGroup;yUw(K,K.currDragItem_)}};
return u};
_.c(Gz,_.ii);Gz.prototype.detached=function(){_.qYa(this)};
_.qYa=function(u){u.JSC$14255_dragListGroup&&(_.TY(u.JSC$14255_dragListGroup,EOH,u.onDragStart),_.TY(u.JSC$14255_dragListGroup,lvB,u.onDragStart),u.JSC$14255_dragListGroup.dispose(),u.JSC$14255_dragListGroup=null);u.dragScrollSupport&&(_.qt(u.dragScrollSupport),u.dragScrollSupport=null);u.scrollElement.removeEventListener("scroll",u.onReorderableScroll)};
_.$F0=function(u,K,l,D){D=D===void 0?"":D;_.qYa(u);l&&(u.scrollElement=l);u.JSC$14255_dragListGroup=new Dj;u.JSC$14255_dragListGroup.hysteresisDistance_=2;dna(u.JSC$14255_dragListGroup,K);u.JSC$14255_dragListGroup.draggerElClasses_=qw("dragging").split(" ");D&&Ciw(u.JSC$14255_dragListGroup,function(d){var C=d||document,W=null;C.getElementsByClassName?W=C.getElementsByClassName(D)[0]:W=TNC("*",D,d);return W||d});
_.kU(u.JSC$14255_dragListGroup,muC,u.onDraggerCreated);_.kU(u.JSC$14255_dragListGroup,EOH,u.onDragStart);_.kU(u.JSC$14255_dragListGroup,lvB,u.onDrop);u.JSC$14255_dragListGroup.init();u.scrollElement.addEventListener("scroll",u.onReorderableScroll,{passive:!0})};
Gz.prototype.handleDrop=function(){};
_.MN.Object.defineProperties(Gz.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.g([_.U({value:100}),_.N("design:type",Number)],Gz.prototype,"scrollMargin",void 0);_.g([_.TQ()],Gz);_.n6H=[Gz.prototype];_.tA={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(u,K,l){var D=this.getClickTarget_(K);if(D&&this.isClickAllowed_(D)){K.preventDefault();u=(0,_.k$.unsafeClone)(u);var d=this.getContainerBoundingRect();K=this.getRelativeClickXy_(K,d);this.expandEndpointUrlMacros_(u,{NX:K[0],NY:K[1],NB:D.code});l&&this.truncateWebCommendMetadataUrl_(u);_.xs(this.hostElement,"yt-navigate",{endpoint:u})}},
getClickTarget_:function(u){if(!this.clickTargetMap)return null;u=_.WF(u)||[];u=_.y(u);for(var K=u.next();!K.done;K=u.next()){K=K.value;if(K===_.bi(this.hostElement).querySelector("#menu"))break;if(K=this.clickTargetMap.get(K.id))return K}return null},
getRelativeClickXy_:function(u,K){var l=u.detail.x,D=u.detail.y;_.S("use_on_click_for_desktop_display_ad")&&u.clientX!=null&&u.clientY!=null&&(l=u.clientX,D=u.clientY);u=Math.round(l-K.left);K=Math.round(D-K.top);return u<0||K<0?[null,null]:[u,K]},
getContainerBoundingRect:function(){return _.bi(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(u,K){for(var l=_.y(u.loggingUrls||[]),D=l.next();!D.done;D=l.next())D=D.value,D.baseUrl&&(D.baseUrl=jeL(D.baseUrl,K));u.urlEndpoint&&u.urlEndpoint.url&&(u.urlEndpoint.url=jeL(u.urlEndpoint.url,K));u.commandMetadata&&u.commandMetadata.webCommandMetadata&&u.commandMetadata.webCommandMetadata.url&&(u.commandMetadata.webCommandMetadata.url=jeL(u.commandMetadata.webCommandMetadata.url,K))},
truncateWebCommendMetadataUrl_:function(u){if(u.commandMetadata&&u.commandMetadata.webCommandMetadata&&u.commandMetadata.webCommandMetadata.url){var K=u.commandMetadata.webCommandMetadata.url,l=K.indexOf("&pp=");if(l>0){var D=K.indexOf("&",l+1);u.commandMetadata.webCommandMetadata.url=D>l&&D<K.length?K.slice(0,l)+K.slice(D):K.slice(0,l)}}},
configureClickTargets:function(u,K,l){this.containerId=u;this.clickTargetMap=new Map;u=_.y(K);for(K=u.next();!K.done;K=u.next())if(K=K.value,K.location){var D=l.get(K.location);D&&(_.cF(_.bi(this.hostElement).querySelector("#"+D),"yt-simple-endpoint",this.isClickAllowed_(K)),this.clickTargetMap.set(D,K))}},
isClickAllowed_:function(u){return u.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||u.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||u.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||u.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.xR={};
_.xR.YtLazyListBehavior=[_.v2.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 u=(this.constructor.generatedFrom||this).observers;u||(u=[]);u.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
u}},
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 u=this.renderElementsOutsideVisibleArea_;u&&(MmC(u,4),u.processSignal())},
deepLazyListObserver_:function(u){var K=this;if(u){var l=u.value||[];if(this.itemsPath==u.path){var D=this.nonDeferredItemCount;u=0;D>-1&&l.length>D&&(u=_.E3("REMAINING_DOVA_DEFERRED_CHUNKS",-1));u>0?(D>0&&(D=l.slice(0,D),this.setInitialItemsOnDataChanged(D)),(D=this.renderElementsOutsideVisibleArea_)?D.cancel():(D=this.renderElementsOutsideVisibleArea_=new _.tQ(2,"eocs"),_.ePw(window,"scroll",function(){return K.renderDeferredElements()})),_.xK(D,function(){K.setInitialItemsOnDataChanged(l)}),_.h8("REMAINING_DOVA_DEFERRED_CHUNKS",
u-1)):this.setInitialItemsOnDataChanged(l)}else if(this.itemsPath+".splices"==u.path)this.onItemsUpdated_(l);
else D="shownItems"+u.path.substr(this.itemsPath.length),this.useSignals&&D==="shownItems.length"||this.notifyPath(D,u.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(u){u&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(u),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(u){u=u.indexSplices;for(var K=0,l=u.length;K<l;K++){var D=u[K];if(D.index<this.shownCount&&(D.removed&&this.splice("shownItems",D.index,D.removed.length),D.addedCount)){var d=D.object.slice(D.index,D.index+D.addedCount);D=["shownItems",D.index,0];D.push.apply(D,d);this.splice.apply(this,D)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(u){this.cancelPendingTasks_();u||(u=[]);this.items_=u;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&&(_.L0("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.W_(this,this.tryRenderChunk_)))},
fillRange_:function(u,K){this.canShowMore&&this.items_&&(u=this.items_.slice(u,K),u.unshift("shownItems"),this.push.apply(this,u),this.shownCount=K,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var u=this;this.canShowMore&&_.It(this,"renderChunk",function(){u.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.L0("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.Vo(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var u=this.renderElementsOutsideVisibleArea_;u&&(u.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var u=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(u-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=u;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(u){return Math.ceil(1E3/u)},
onCanShowMoreUpdated_:function(u){this.data&&this.items_!==null&&(u?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(u){!this.shouldUseTaskManager()&&this.data&&(!u&&this.canShowMore?(_.HhZ(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):u&&this.partiallyRenderedItems_.has(this.items_)&&(_.S("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var O8;_.S0={};
O8=function(){var u=_.ii.apply(this,arguments)||this;u.atStart=!0;u.atEnd=!0;u.startIndex=0;u.endIndex=0;u.scrollCount=0;u.initialStartIndex=0;u.disableScrollEventListener=!1;u.useFloorScrolling=!1;u.isSearch=!1;u.dragging=!1;u.dragMouseStart=0;u.dragOffsetStart=0;u.disableWheelScroll=!1;u.centerListItems=!1;u.offset=0;u.minComponentWidth=0;u.marginWidthRight=0;u.marginWidthLeft=0;u.setButtonsStateRequested=!1;u.itemsVisibilityObserver=null;u.fullyVisibleItemsIndices=[];u.JSC$14266_onWheelScroll=function(K){if(u.isSearch&&
!u.disableWheelScroll&&_.S("desktop_enable_dmpanel_wheel_scroll")){var l=K.shiftKey?Math.abs(K.deltaY)>Math.abs(K.deltaX)?K.deltaY:K.deltaX:K.deltaX;l!==0&&(K.preventDefault(),u.ytLazyListBehavior.fillRemainingListItems(),u.offset+=l,b3(u),u.reposition_())}};
u.onPointerDown=function(K){rG0(u)&&(u.dragMouseStart=K.clientX,u.dragOffsetStart=u.offset,u.dragging=!0)};
u.onPointerMove=function(K){rG0(u)&&u.dragging&&(u.ytLazyListBehavior.fillRemainingListItems(),u.offset=u.dragOffsetStart-(K.clientX-u.dragMouseStart),b3(u),u.reposition_())};
u.onPointerUp=function(){rG0(u)&&(u.dragging=!1)};
return u};
_.c(O8,_.ii);var v6a=function(u){var K=_.bi(u.hostElement).querySelector("#items").children;if(!K)return 0;var l=0;u=_.y(u.fullyVisibleItemsIndices);for(var D=u.next();!D.done;D=u.next())l+=K[D.value].clientWidth;return l},rG0=function(u){return u.isSearch&&_.S("desktop_enable_dmpanel_click_drag_scroll")};
O8.prototype.created=function(){this.cachedViewportWidth=_.E3("initialInnerWidth")||window.innerWidth;this.JSC$14266_cachedViewportHeight=_.E3("initialInnerHeight")||window.innerHeight;_.E3("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.h8("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
O8.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.S("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();GKs(this)};
O8.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.S("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var u;(u=this.itemsVisibilityObserver)==null||u.disconnect();this.itemsVisibilityObserver=null;var K;(K=this.itemsObserver)==null||K.disconnect()};
var GKs=function(u){var K=_.bi(u.hostElement).querySelector("#scroll-container");if(K){if(!u.itemsVisibilityObserver){var l=window.getComputedStyle(K).marginRight;u.itemsVisibilityObserver=new IntersectionObserver(function(D){tzs(u,D)},{root:K,
rootMargin:l,threshold:.98})}if(K=_.bi(u.hostElement).querySelector("#items"))u.itemsObserver=new pia(K,function(D){xFk(u,D)})}},xFk=function(u,K){SYB(u)&&(Array.from(K.addedNodes).filter(function(l){return l.nodeType===Node.ELEMENT_NODE}).forEach(function(l){u.itemsVisibilityObserver&&u.itemsVisibilityObserver.observe(l)}),Array.from(K.removedNodes).filter(function(l){return l.nodeType===Node.ELEMENT_NODE}).forEach(function(l){u.itemsVisibilityObserver&&u.itemsVisibilityObserver.unobserve(l)}))},
tzs=function(u,K){var l=new Set(u.fullyVisibleItemsIndices);
K=_.y(K);for(var D=K.next();!D.done;D=K.next()){D=D.value;var d=D.target.parentElement;d?(d=Array.from(d.children).indexOf(D.target),D.isIntersecting?l.add(d):l.has(d)&&l.delete(d)):_.hV(new _.wv("Parent element not found",D.target.nodeName))}u.fullyVisibleItemsIndices=Array.from(l).sort(function(C,W){return C-W});
l.size===0?_.hV(new _.wv("No visible entries in horizontal list")):(u.startIndex=u.fullyVisibleItemsIndices[0],u.endIndex=u.fullyVisibleItemsIndices[u.fullyVisibleItemsIndices.length-1])},SYB=function(u){u.data?u=(u=u.data)&&u.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===u.itemSizeConstraint:!1:u=!1;
return u};
_.I=O8.prototype;_.I.addScrollEventListeners=function(){var u=_.bi(this.hostElement).querySelector("#scroll-container");u.style.touchAction="pan-y";u.addEventListener("wheel",this.JSC$14266_onWheelScroll);u.addEventListener("pointerdown",this.onPointerDown);u.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.I.removeScrollEventListeners=function(){var u=_.bi(this.hostElement).querySelector("#scroll-container");u.removeEventListener("wheel",this.JSC$14266_onWheelScroll);u.removeEventListener("pointerdown",this.onPointerDown);u.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.I.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.W_(this,this.setStartIndex,[this.initialStartIndex])};
_.I.reposition_=function(){var u=_.E3("HTML_DIR")=="rtl"?"":"-",K=_.bi(this.hostElement).querySelector("#items");K&&(K.style.transform="translateX("+u+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.I.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.W_(this,this.setButtonsState_))};
_.I.setButtonsState_=function(){this.setButtonsStateRequested=!1;var u=_.bi(this.hostElement).querySelector("#items").firstElementChild;if(u){this.minComponentWidth||(this.minComponentWidth=bYN(this,u));u=_.bi(this.hostElement).querySelector("#scroll-container").clientWidth;var K=_.bi(this.hostElement).querySelector("#items").clientWidth,l=this.get(this.ytLazyListBehavior.itemsPath,this);if(l){var D=Math.round(u/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+D,l.length)-1)}this.ytLazyListBehavior.canShowMore?K+this.minComponentWidth>=this.offset+u&&(this.atEnd=!1):this.atEnd=this.offset+u>=K-20?!0:!1;this.atStart=this.offset<=20}};
_.I.setStartIndex=function(u){if(!this.minComponentWidth){var K=_.bi(this.hostElement).querySelector("#items").firstElementChild;if(!K)return;this.minComponentWidth=bYN(this,K)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*u;b3(this);this.reposition_()};
_.I.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.fW();var u=_.bi(this.hostElement).querySelector("#scroll-container").clientWidth;_.S("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=bYN(this,_.bi(this.hostElement).querySelector("#items").firstElementChild));u=this.useFloorScrolling?Math.floor(u/this.minComponentWidth)||1:Math.round(u/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&OYm(this);this.offset+=SYB(this)?
v6a(this):u*this.minComponentWidth;b3(this);this.reposition_();this.scrollCount++};
_.I.prevClick_=function(){var u=_.bi(this.hostElement).querySelector("#scroll-container").clientWidth;u=this.useFloorScrolling?Math.floor(u/this.minComponentWidth)||1:Math.round(u/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=SYB(this)?v6a(this):this.minComponentWidth*this.scrollCount-1):this.offset-=SYB(this)?v6a(this):u*this.minComponentWidth;this.centerListItems&&OYm(this);b3(this);this.reposition_()};
_.I.onIronResize_=function(){this.resizeSupportEnabled&&_.W_(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.I.onItemsTransitionEnd_=function(u){_.HF(u)===_.bi(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.I.onChildElementFocus_=function(u){u=u.target.closest("#items > *");var K=_.bi(this.hostElement).querySelector("#scroll-container");if(K.contains(u)){if(_.S("web_horizontal_list_behavior_focus_killswitch"))if(u.offsetLeft<this.offset)this.offset=Math.abs(u.offsetLeft)<u.clientWidth?0:u.offsetLeft;else if(u.offsetLeft+u.clientWidth>this.offset+K.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.fW(),this.offset=u.offsetLeft+u.clientWidth-K.clientWidth;else return;else{var l=_.bi(this.hostElement).querySelector("#items"),
D=_.E3("HTML_DIR")==="rtl",d=D?l.clientWidth-u.offsetLeft:u.offsetLeft;l=D?l.clientWidth-(u.offsetLeft+u.clientWidth):u.offsetLeft+u.clientWidth;var C=D?d>this.offset+K.clientWidth:d<this.offset,W=D?l<this.offset:l>this.offset+K.clientWidth,M=D?C:W;if(D?W:C)K=D?l:d,this.offset=Math.abs(K)<u.clientWidth?0:K;else if(M)this.ytLazyListBehavior.fillRemainingListItems(),_.fW(),this.offset=(D?d:l)-K.clientWidth;else return}b3(this);this.reposition_()}};
_.I.observeShownItems_=function(){this.reset()};
_.I.checkComponentWidthResize=function(){var u=_.bi(this.hostElement).querySelector("#items").firstElementChild;u&&(u=bYN(this,u),this.centerListItems||u!==this.minComponentWidth)&&(this.minComponentWidth=u,this.offset=u*this.scrollCount,this.centerListItems&&OYm(this),b3(this),this.reposition_())};
var bYN=function(u,K){var l=window.getComputedStyle(K).marginRight;l=Math.floor(Number(l.replace("px","")));var D=window.getComputedStyle(K).marginLeft;D=Math.floor(Number(D.replace("px","")));u.centerListItems&&!u.marginWidthRight&&(u.marginWidthRight=l,u.marginWidthLeft=D);return u.resizeSupportEnabled?K.getBoundingClientRect().width+l:K.offsetWidth+l},b3=function(u){var K=_.bi(u.hostElement).querySelector("#scroll-container").clientWidth,l=_.bi(u.hostElement).querySelector("#items").clientWidth;
u.offset<0?u.offset=0:u.offset+K>=l&&(u.offset=l-K)},OYm=function(u){u.offset-=(_.bi(u.hostElement).querySelector("#scroll-container").clientWidth+u.marginWidthRight-u.minComponentWidth)/2-u.marginWidthLeft};
_.MN.Object.defineProperties(O8.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var u=_.E3("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(u==-1)u=this.JSC$14266_cachedViewportHeight,u=u>1320?5:u>1020?4:u>730?3:u>430?2:1;else if(u==0)return 0;_.h8("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",u-1);u=_.E3("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(u>-1)return u;u=this.cachedViewportWidth;u=u>1600?6:u>1400?5:u>1300?4:u>1090?5:u>870?4:u>660?3:2;_.h8("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
u);return u},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.S("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
O8.prototype.observeShownItems_=O8.prototype.observeShownItems_;O8.prototype.onChildElementFocus_=O8.prototype.onChildElementFocus_;O8.prototype.onItemsTransitionEnd_=O8.prototype.onItemsTransitionEnd_;O8.prototype.onIronResize_=O8.prototype.onIronResize_;O8.prototype.prevClick_=O8.prototype.prevClick_;O8.prototype.nextClick_=O8.prototype.nextClick_;O8.prototype.setButtonsState_=O8.prototype.setButtonsState_;O8.prototype.requestButtonsStateUpdate_=O8.prototype.requestButtonsStateUpdate_;
O8.prototype.reposition_=O8.prototype.reposition_;O8.prototype.reset=O8.prototype.reset;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.xR.YtLazyListBehavior),_.N("design:type",Object)],O8.prototype,"ytLazyListBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],O8.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],O8.prototype,"atStart",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],O8.prototype,"atEnd",void 0);_.g([_.U(),_.N("design:type",Object)],O8.prototype,"startIndex",void 0);_.g([_.U(),_.N("design:type",Object)],O8.prototype,"endIndex",void 0);_.g([_.U({value:6}),_.N("design:type",Number)],O8.prototype,"initialCount",void 0);_.g([_.U(),_.N("design:type",Object)],O8.prototype,"scrollCount",void 0);_.g([_.U(),_.N("design:type",Object)],O8.prototype,"initialStartIndex",void 0);
_.g([_.U(),_.N("design:type",Object)],O8.prototype,"disableScrollEventListener",void 0);_.g([_.U(),_.N("design:type",Object)],O8.prototype,"supportComponentResize",void 0);_.g([_.U({value:function(){var u=this;return function(){return u.prevClick_()}}}),
_.N("design:type",Function)],O8.prototype,"boundPrevClick",void 0);_.g([_.U({value:function(){var u=this;return function(){return u.nextClick_()}}}),
_.N("design:type",Function)],O8.prototype,"boundNextClick",void 0);_.g([_.U(),_.N("design:type",Object)],O8.prototype,"useFloorScrolling",void 0);_.g([_.U(),_.N("design:type",Object)],O8.prototype,"isSearch",void 0);_.g([_.U(),_.N("design:type",Object)],O8.prototype,"dragging",void 0);_.g([_.U(),_.N("design:type",Object)],O8.prototype,"dragMouseStart",void 0);_.g([_.U(),_.N("design:type",Object)],O8.prototype,"dragOffsetStart",void 0);
_.g([_.U(),_.N("design:type",Object)],O8.prototype,"disableWheelScroll",void 0);_.g([_.U(),_.N("design:type",Object)],O8.prototype,"centerListItems",void 0);_.g([_.PF("iron-resize"),_.JU("guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],O8.prototype,"onIronResize_",null);_.g([_.PF("transitionend"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],O8.prototype,"onItemsTransitionEnd_",null);
_.g([_.PF("focusin"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],O8.prototype,"onChildElementFocus_",null);_.g([_.JU("shownItems"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],O8.prototype,"observeShownItems_",null);_.g([_.TQ()],O8);_.S0.YtdHorizontalListBehavior=[];_.S0.YtdHorizontalListBehavior.push(_.Ae,_.Y.YtRendererBehavior,_.xR.YtLazyListBehavior,_.CD.YtdGuideStateAwareBehavior,O8.prototype);var uKH=["APP_STATE","PI"];var cGw=_.oj(["about:blank"]),axm={pushState:window.history.pushState,replaceState:window.history.replaceState};var cB=function(u){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=u;this.internalPushState=u.pushState.bind(u);this.internalReplaceState=u.replaceState.bind(u)};
cB.prototype.init=function(){this.initialized=!0};
cB.prototype.pushState=function(u,K){this.initialized||this.init();this.internalPushState&&this.internalPushState(u,"",K)};
cB.prototype.replaceState=function(u,K){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(u,"",K)};
cB.prototype.getState=function(){return this.history&&this.history.state};var zzR=function(u){var K=function(){var l=u.apply(this,arguments)||this;l.boundHistoryPushState=!1;l.boundHistoryReplaceState=!1;l.debugInfo={};return l};
_.c(K,u);K.prototype.init=function(){var l=_.PO("IFRAME");_.yg(l,_.Oy(cGw));l.sandbox="allow-same-origin";l.style.display="none";this.iframe=l;document.body.appendChild(l);this.bindHistoryStateFunctions();u.prototype.init.call(this)};
K.prototype.bindHistoryStateFunctions=function(){var l=this,D=[],d;this.iframe&&((d=this.iframe.contentWindow)==null?0:d.history)&&(d=this.iframe.contentWindow.history)&&(D.push(d),Object.getPrototypeOf(d)&&D.push(Object.getPrototypeOf(d)));window.history&&D.push(window.history);d=window.history;Object.getPrototypeOf(d)&&D.push(Object.getPrototypeOf(d));D.push(axm);d=function(W){for(var M=null,q=0;q<D.length;q++){var v=D[q][W];if(typeof v==="function"){M=v.bind(window.history);l.debugInfo[W]=q;break}}return M};
if(!this.boundHistoryReplaceState){var C=d("replaceState");C&&(this.internalReplaceState=C,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(d=d("pushState"))&&(this.internalPushState=d,this.boundHistoryPushState=!0)};
return K}(cB),ezB=function(){return zzR.call(this,window.history)||this};
_.c(ezB,zzR);ezB.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var aA=function(u){this.browserHistory=u;this.initialized=!1};
aA.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
aA.prototype.pushState=function(u,K){this.initialized||this.init();this.browserHistory.pushState(u,K)};
aA.prototype.replaceState=function(u,K){this.initialized||this.init();this.browserHistory.replaceState(u,K)};
aA.prototype.handlePopstate=function(u){return u.state};_.RzB=function(u,K,l,D,d){this.endpoint=u;this.forward=K;this.historyEntry=l;this.JSC$29806_savedComponentState=D;this.legacyBorder=d===void 0?!1:d};var UFH=function(u,K){this.rootData=u;this.scrollTop=K};var VU=new _.G$("PAGE_REQUEST_TOKEN"),VpC=new _.G$("FETCH_PBJ_TOKEN");_.zz=new _.G$("EPHEMERAL_STORE_TOKEN");_.e0=function(u){this.data=Object.assign({},u);var K;(K=this.data.innertubeResponse)==null||delete K.frameworkUpdates};
_.e0.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.vA)()};
_.tn=function(u){return Object.assign({},u.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var fxH=function(){this.maxSize=100;this.timeToDataCache=new Map};
fxH.prototype.get=function(u){var K=this.timeToDataCache.get(u);K&&(this.timeToDataCache.delete(u),this.timeToDataCache.set(u,K));if(K&&K.rootData&&(_.S("web_use_response_store_for_history_cache")||_.S("mweb_use_new_history_manager"))){var l=_.GB().resolve(_.zz),D=Q3A(K),d=!!D;if(D){if(D.content){var C=RA(l,D.content);d&&C?K.rootData.response=_.tn(C):d=!1}D.player&&(C=RA(l,D.player),d&&C?K.rootData.playerResponse=_.tn(C):d=!1);D.reelSequence&&(l=RA(l,D.reelSequence),d&&l?K.rootData.reelWatchSequenceResponse=
_.tn(l):d=!1)}d||(this.timeToDataCache.delete(u),K=void 0)}return K};
fxH.prototype.set=function(u,K){if(K.rootData&&(_.S("web_use_response_store_for_history_cache")||_.S("mweb_use_new_history_manager"))){var l=Q3A(K),D=Object.assign({},K.rootData);l&&(l.content&&K.rootData.response&&(PuC(this,l.content,K.rootData.response),D.response=null),l.player&&K.rootData.playerResponse&&(PuC(this,l.player,K.rootData.playerResponse),D.playerResponse=null),l.reelSequence&&K.rootData.reelWatchSequenceResponse&&(PuC(this,l.reelSequence,K.rootData.reelWatchSequenceResponse),D.reelWatchSequenceResponse=
null));K=new UFH(D,K.scrollTop)}this.timeToDataCache.has(u)?this.timeToDataCache.delete(u):this.timeToDataCache.size>=this.maxSize&&(l=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(l.value));this.maxSize!==0&&this.timeToDataCache.set(u,K)};
fxH.prototype.clear=function(){this.timeToDataCache.clear()};
var Q3A=function(u){var K=_.GB().resolve(_.vv(VU)),l;if((l=u.rootData)==null?0:l.endpoint)return K==null?void 0:M79(K,u.rootData.endpoint);var D;_.hV(new _.wv("History snapshot response data does not contain endpoint",(D=u.rootData)==null?void 0:D.url));return null},PuC=function(u,K,l){if(u.maxSize>0){var D;
(u=(D=l.responseContext)==null?void 0:D.maxAgeSeconds)&&Number(u)>0&&(D=_.GB().resolve(_.zz),l=eU(l,u),D.put(K,new _.e0(l)))}};var JGk=function(u,K,l){this.endpoint=K;this.JSC$29811_savedComponentState=l===void 0?null:l;this.entryTime=u};var Ixy=1;var U8=function(u){var K=function(){var l=u.apply(this,[].concat(_.Am(_.uY.apply(0,arguments))))||this;l.historyEntryTime=0;l.historySnapshotCache=l.createHistoryCache();return l};
_.c(K,u);K.prototype.createHistoryCache=function(){return new fxH};
K.prototype.saveAndReplace=function(l,D,d){var C=window.location.href;var W=W===void 0?{}:W;var M=(M=this.browserHistory.getState())&&M.entryTime?M.entryTime:yGR();l=this.createNewHistoryEntry(l,W,M);this.saveSnapshot(M,D,d);this.replaceState(l,C||window.location.href)};
K.prototype.saveAndPush=function(l,D,d,C,W){W=W===void 0?{}:W;this.saveSnapshot(this.historyEntryTime,d,C);d=this.historySnapshotCache;C=this.historyEntryTime;var M=d.timeToDataCache.keys();M=_.y(M);for(var q=M.next();!q.done;q=M.next())q=q.value,q>C&&d.timeToDataCache.delete(q);D=this.createNewHistoryEntry(D,W);this.pushState(D,l)};
K.prototype.saveSnapshot=function(l,D,d){this.historySnapshotCache.set(l,new UFH(D,d))};
K.prototype.createNewHistoryEntry=function(l,D,d){d=d===void 0?yGR():d;return new JGk(d,l,D)};
K.prototype.handlePopstate=function(l){var D=u.prototype.handlePopstate.call(this,l),d=null,C=null,W=!1,M=null;D&&D.entryTime&&(M=this.historySnapshotCache.get(D.entryTime)||null,W=D.entryTime>this.historyEntryTime,this.historyEntryTime=D.entryTime,d=D.endpoint,C=D.JSC$29811_savedComponentState);this.handleHistoryCacheLoad(new _.RzB(d,W,M,C),l);return D};
K.prototype.pushState=function(l,D){Number(l==null?void 0:l.entryTime)>=0&&(this.historyEntryTime=l.entryTime);u.prototype.pushState.call(this,l,D)};
K.prototype.replaceState=function(l,D){Number(l==null?void 0:l.entryTime)>=0&&(this.historyEntryTime=l.entryTime);u.prototype.replaceState.call(this,l,D)};
K.prototype.handleHistoryCacheLoad=function(){};
return K}(aA),j3N=function(){var u=U8.call(this,new ezB)||this;
u.dispatchElement=null;u.entryIndex=0;return u};
_.c(j3N,U8);_.I=j3N.prototype;_.I.init=function(u){u=u===void 0?!0:u;U8.prototype.init.call(this);this.initialized||(u||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.I.handlePopstate=function(u){var K=null;u.state||(K="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return U8.prototype.handlePopstate.call(this,u);var l=new CustomEvent("yt-history-pop",{cancelable:!0});_.Sy(this.dispatchElement,"yt-history-pop",[l,{errorMsg:K}]);_.bI(this.dispatchElement,"yt-close-all-popups-action");if(!l.defaultPrevented){l=_.GB().resolve(_.GT);K=l.getCurrentData();var D=l.getCurrentPage();l=0;D?(D=_.Sy(this.dispatchElement,"yt-get-page-offset",
[D]),D.length>0&&(l=D[0])):_.hV(new _.wv("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:K?K.page:"undefined"}));K&&(K.csn=_.AC());this.saveSnapshot(this.historyEntryTime,K,l)}return U8.prototype.handlePopstate.call(this,u)};
_.I.handleHistoryCacheLoad=function(u,K){u.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.y(_.bI(this.dispatchElement,"yt-history-will-navigate",[K])).next().value||_.Sy(this.dispatchElement,"yt-history-load",[K,u]))};
_.I.pushState=function(u,K){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var l=new _.wv("history.pushState is not a function",this.getDebugString());_.Xm(l)}U8.prototype.pushState.call(this,u,K)};
_.I.replaceState=function(u,K){if(!this.browserHistory.boundHistoryReplaceState){var l=new _.wv("history.replaceState is not a function",this.getDebugString());_.Xm(l)}U8.prototype.replaceState.call(this,u,K)};
_.I.saveAndPush=function(u,K,l,D,d){d=d===void 0?{}:d;l&&(l.csn=_.AC());U8.prototype.saveAndPush.call(this,u,K,l,D,d)};
_.I.getDebugString=function(){var u=[];this.initialized&&u.push("i");this.browserHistory.boundHistoryReplaceState&&u.push("bhr");this.browserHistory.boundHistoryPushState&&u.push("bhs");"replaceState"in this.browserHistory.debugInfo&&u.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&u.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&u.push("ei:"+String(this.entryIndex));return u.join(",")};
_.fD=function(u,K){u.init(!0);var l=u.browserHistory.getState();u.replaceState(l,zT(K))};
j3N.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Qa=new _.G$("DESKTOP_HISTORY_MANAGER_TOKEN");var B6H=[10,20,30,40,50,60],PB=function(){this.currentPartitionIndex=0},pYa=function(u){Y$C({mainAppWeb:_.Ib(),
survivalSli:{partitionMinute:u,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},iYa=function(u){Y$C({mainAppWeb:_.Ib(),
survivalSli:{partitionMinute:u,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},T6A=function(u){return u.currentPartitionIndex>=0&&u.currentPartitionIndex<B6H.length?B6H[u.currentPartitionIndex]:-1},wYa=function(u){return u.currentPartitionIndex>0&&u.currentPartitionIndex-1<B6H.length?B6H[u.currentPartitionIndex-1]:-1};
PB.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var u=wYa(this);u>0&&iYa(u);u=T6A(this);u>0&&pYa(u);FNk(this)}};
var FNk=function(u){var K=T6A(u);if(K>0){var l=wYa(u);l<0&&(l=0);u.intervalId=_.YL.addJob(function(){var D=wYa(u);D>0&&iYa(D);D=T6A(u);D>0&&pYa(D);FNk(u)},3,(K-l)*6E4);
u.currentPartitionIndex+=1}else u.currentPartitionIndex=-1};var Vza=function(){this.skipNextNavigation=!1},g62=function(u,K,l){if(!K)return!1;
if(u.skipNextNavigation)return u.skipNextNavigation=!1;if(_.b(l,_.d_))return!1;var D,d,C;if((D=_.b(l,_.jt))==null?0:(d=D.browseEndpointContextSupportedConfigs)==null?0:(C=d.browseEndpointContextMainConfig)==null?0:C.skipConfirmation)return!1;var W;return((W=_.b(K.commandMetadata,_.nN))==null?void 0:W.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
Vza.prototype.showConfirmationDialog=function(u,K){this.navigateParams=K;this.customConfirmationCommand?_.GB().resolve(_.t9).resolveCommand(this.customConfirmationCommand):(K={openPopupAction:{popup:{confirmDialogRenderer:{title:_.o7(_.QQ("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.o7(_.QQ("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.o7(_.QQ("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.o7(_.QQ("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Ci.getInstance().triggerAction("yt-open-popup-action",K,u))};
Vza.prototype.cancelPendingNavigation=function(){var u;((u=this.navigateParams)==null?void 0:u.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var N6B=function(){},ZYC=function(u,K,l,D,d,C,W){l=l===void 0?{}:l;
W=W===void 0?{}:W;var M=_.ww.instance,q,v=(q=_.b(K,_.d_))==null?void 0:q.url;return v?YJh(M,v,l,window.location.href,function(G,t){kKk(u,G,t,!1,!0,l,C,D)},function(){return!1}):DO(M,K,l,window.location.href,pc(K),function(G,t){kKk(u,G,t,!1,!0,l,C,D)},d,W)},kKk=function(u,K,l,D,d,C,W,M){if(!u.JSC$14324_chunkHandler)if(l.page==="watch"||l.page==="learning_journey_watch")if(d||D){if(_.S("kevlar_continue_playback_without_player_response")){var q;
var v=(q=_.b(M,_.oy))==null?void 0:q.videoId}u.JSC$14324_chunkHandler=new qha(_.xY,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:D,previousVideoId:v},tempData:C},W)}else u.JSC$14324_chunkHandler=new sr0(_.xY);else l.page==="shorts"&&d&&!D?u.JSC$14324_chunkHandler=new MpC(_.xY,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:C},W):u.JSC$14324_chunkHandler=new oBN(W);u.JSC$14324_chunkHandler.processChunk({endpoint:K,data:l});return u.JSC$14324_chunkHandler.tN.promise},
YYN=function(u,K,l,D,d){(l=_.l9S(l))&&kKk(u,K,l,!1,!0,D,void 0,d)};var AGH=function(){this.pendingNavigationPromise=null};
_.I=AGH.prototype;_.I.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.I.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.I.addEventListener=function(){throw Error("zh");};
_.I.dispatchEvent=function(){throw Error("zh");};
_.I.removeEventListener=function(){throw Error("zh");};var XYH=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],JA=function(){_.wx.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];mFN(this)};
_.c(JA,_.wx);JA.prototype.verifyUser=function(){var u=mFN(this),K=u.logout;if(!u.sessionChange)return!0;this.dispatchEvent("ytsessionchange");K&&this.dispatchEvent("ytuserinvalid");return!1};
var mFN=function(u){var K=XYH.map(function(d){var C;return(C=_.jg.get(d))!=null?C:""}),l=K.some(function(d,C){return u.sessionCookies&&u.sessionCookies[C]!==""&&d===""}),D=K.some(function(d,C){return u.sessionCookies&&u.sessionCookies[C]!==d});
u.sessionCookies=K;return{logout:l,sessionChange:D}};
JA.prototype.clearTimeout=function(){this.scheduledJobId&&(_.YL.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var MzH=new _.G$("POSTMESSAGE_TUNNEL_TOKEN");var o6Z=["/parent_tools","/file_download","/artist_roster"],n6q=[GhS,trC,xw0,b90,SZB,vyw,O9m,cHm];var hzm=new _.G$("APP_ROOT");var j0=new _.G$("NAVIGATION_CONFIRMATION_SERVICE");var E6R="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),LNC=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
BB=function(u,K){this.pendingNavigationPromise=null;this.JSC$14342_clientRoot=u;this.historyManager=K;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 N6B;this.debugString=u.is;u={"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};_.I9(_.Ci.getInstance(),u,this.JSC$14342_clientRoot)},dYw,CJR,I4a,yIN,DYN;
_.c(BB,AGH);BB.prototype.reload=function(){_.Cg(window.location.href)};
var CNk=function(u){u.currentEndpoint&&_.b(u.currentEndpoint,_.TO)?u.reload():u.currentEndpoint&&u.navigate(u.currentEndpoint,!0,void 0,{disableCache:!0})};
BB.prototype.navigate=function(u,K,l,D,d,C,W,M){K=K===void 0?!1:K;l=l===void 0?{}:l;D=D===void 0?{}:D;var q=_.GB().resolve(j0),v;if(!W&&g62(q,(v=this.currentEndpoint)!=null?v:void 0,u))return q.showConfirmationDialog(this.JSC$14342_clientRoot.parentElement,{endpoint:u,reload:K,params:l,tempData:D,requestType:d,createScreenConfig:C}),!1;var G=_.dw();_.C7(G,"eocs")||G.parkOrScheduleJob(function(){G.processSignal("eocs")},10,"eor");
W=pc(u);q=D.autonav==="1";v=_.AC();JA.instance||(JA.instance=new JA);var t=JA.instance.verifyUser(),x;if(_.S("enable_dark_theme_only_on_shorts")){var O=document.documentElement.hasAttribute("dark"),a=_.Nu(!0)==="USER_INTERFACE_THEME_DARK";if(W==="shorts"){if(!O)if(_.S("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var f;_.Cg((f=_.b(u==null?void 0:u.commandMetadata,_.nN))==null?void 0:f.url,void 0,void 0,window.top)}}else{var B;_.Cg(_.Wv((B=_.b(u==null?
void 0:u.commandMetadata,_.nN))==null?void 0:B.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.S("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!O){var p;_.Cg(_.Wv((p=_.b(u==null?void 0:u.commandMetadata,_.nN))==null?void 0:p.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(a!==O){var V;_.Cg(_.Wv((V=_.b(u==null?void 0:u.commandMetadata,_.nN))==null?void 0:V.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(W==="watch"){if(u92(_.GB().resolve(_.uD),
u)&&(t||_.S("fix_miniplayer_navigation_killswitch")))return!1;_.S("block_all_player_prefetch_requests")||(x=D$N(_.vU(_.F5),u,q))}else{var m,Z=(m=_.b(this.currentEndpoint,_.oy))==null?void 0:m.videoId;Z&&_.ki.getInstance().then(function(UZ){UZ&&UZ.set("yt-miniplayer-shown-video-id",Z)})}x&&(l.frags=x.missingFragments_.join(","));
f=null;var A;B=(A=_.b(u==null?void 0:u.commandMetadata,_.nN))==null?void 0:A.ignoreNavigation;if(!B)if(_.S("kevlar_command_url")){var h;f=(h=_.b(u==null?void 0:u.commandMetadata,_.nN))==null?void 0:h.url}else f=_.$XH(u,l);if(f&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&f==this.lastNavigationUrl)return _.Zy({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.f5(uI(),"CANCELLED")}f&&(this.lastNavigationUrl=f);psq();_.h8("IS_HOMEPAGE_COLD",
!1);_.h8("IS_RESULTS_PAGE_COLD",!1);_.h8("IS_WATCH_PAGE_COLD",!1);u.loggingUrls&&u.loggingUrls.forEach(function(UZ){UZ.baseUrl&&_.Cp(UZ.baseUrl)});
_.tz9(u,C?C.layer:0)&&_.S("kevlar_flush_logs_on_away_navigation")&&_.AV();if(rGy(u))return!1;pcN(W,d);if(!f)return B||_.hV(new _.wv("Can't construct url for endpoint",u)),_.f5(uI(),"FAILURE"),!1;_.s39();A=u&&_.b(u,_.jt)&&_.b(u,_.jt).browseId.startsWith("UC");l=(h=_.S("enable_dark_theme_only_on_shorts")&&W==="shorts"?!1:_.kO()&&document.documentElement.hasAttribute("dark")!==_.ge())?{themeRefresh:1}:{};h&&!_.pT()&&_.Nu()==="USER_INTERFACE_THEME_DARK"&&(l.theme="dark");A=h||KFN(f)&&!A&&!_.S("kevlar_disable_url_allowlist");
t||(A=!0);if(A||_.E3("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var C9;var Wo=(C9=window.top)==null?void 0:C9.location.href}catch(UZ){var $y;Wo=($y=UZ)==null?void 0:$y.message}_.hV(new _.wv("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Wo}))}u=_.S("kevlar_redirect_on_window_killswitch")?window.top:window;dn(f);_.Cg(_.Wv(f,l),void 0,void 0,u);_.f5(uI(),"ABORTED");return!1}_.S("kevlar_early_popup_close")&&_.Sy(this.JSC$14342_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14324_chunkHandler=void 0;var co;Wo=pc((co=this.currentEndpoint)!=null?co:void 0);(co=W==="shorts"&&Wo==="shorts")||_.FeL();_.KT(zsH)("nr",void 0);q&&_.Zy({webInfo:{navigationReason:"an"}});u.clickTrackingParams&&(D.itct=u.clickTrackingParams,D.csn=v);AAb(D);D.endpoint=JSON.stringify(u);_.S("enable_unknown_lact_fix_on_html5")&&(_.GB().resolve(_.Xb),D.lact=_.Gr());_.k$.isEmpty(D)||_.qB(f,D);!_.S("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(C=Object.assign({},{layer:0},C,{parentLayer:3}));this.pendingNavigationPromise=C=ZYC(this.pageFetcher,u,D,this.currentEndpoint,this.JSC$14342_isNetworkPromiseStale.bind(this),C,M);C=C.then(this.handleNavigateSuccess.bind(this,C,u,x,D),this.handleNavigateFail.bind(this,C,u));_.B3().navigationFinishPromise=C;K={endpoint:u,pageType:W,url:zT(f),reload:!!K,noProgressBar:co};d&&(K.type=d);this.fireEvent("yt-navigate-start",K);x&&YYN(this.pageFetcher,u,x,D,this.currentEndpoint);
return!0};
BB.prototype.JSC$14342_isNetworkPromiseStale=function(u){return u!=this.pendingNavigationPromise};
var l4m=function(u,K,l,D,d){var C=pc(K);K={endpoint:K,pageType:C};d&&(K.errorMessage=d);_.hV(l);K.navigationDoneMs=_.As("nd");K.navigationErrorReason=D;u.fireEvent("yt-navigate-error",K)};
BB.prototype.handleNavigateFail=function(u,K,l){var D=void 0;l instanceof _.dr&&(D=l,MUw(l));if(this.JSC$14342_isNetworkPromiseStale(u))return _.YU(D);_.f5(uI(),"FAILURE");l4m(this,K,l,"101");return _.YU(l)};
BB.prototype.handleNavigateSuccess=function(u,K,l,D,d){if(this.JSC$14342_isNetworkPromiseStale(u))return _.zA();this.pendingNavigationPromise=null;if(!d)return K=new _.wv("Missing data in response for navigation endpoint",K),_.YU(K);if(d.reload)return window.location.reload(!0),_.zA();l&&(u={},_.k$.extend(u,_.l9S(l),d),d=u);var C,W;l=(C=d)==null?void 0:(W=C.timing)==null?void 0:W.responseStart;l!=null&&_.As("srt",l);_.As("pdc");var M,q;C=(M=d)==null?void 0:(q=M.timing)==null?void 0:q.info;C!=null&&
(M=_.KT(_.fFw)(C),_.Zy(M));_.f5(uI(),"SUCCESS");DYN(this,K,d,1,D);return _.zA()};
var KFN=function(u){var K=u;_.S("kevlar_no_redirect_to_classic_2_ks")||(K=(new _.W0(u)).getPath());if(K==="/"||K==="/red")return!1;var l=!0;E6R.forEach(function(D){u.indexOf(D)===0&&(l=!1)});
LNC.forEach(function(D){var d=D.url;_.S(D.expFlag)&&u.indexOf(d)===0&&(l=!1)});
return l};
BB.prototype.publishPageData=function(u){this.fireEvent("yt-page-data-fetched",{pageData:u})};
dYw=function(u,K,l,D,d,C){var W=null;K.page!=="watch"&&K.page!=="learning_journey_watch"||D?K.filler||_.Sy(u.JSC$14342_clientRoot,"yt-stop-old-player",[K]):W=kKk(u.pageFetcher,d,K,l,!1,C,void 0,u.currentEndpoint);if(W)return W.then(u.publishPageData.bind(u,K));u.publishPageData(K);return _.zA()};
CJR=function(u,K,l){var D=null;if(!l)return D=new _.wv("Empty data",u.debugString,K);var d=l.response;if(!d)return D;var C={endpointType:pc(K)||"unknown"};d.responseContext?(d=d.responseContext.errors)&&(D=new _.wv("Errors in response context",u.debugString,K,d,C)):D=d.error||d.errorMetadata?new _.wv("Errors in response",u.debugString,K,d.error,d.errorMetadata,C):new _.wv("responseContext missing",u.debugString,K,Object.keys(d).sort().join(","),C);var W,M,q,v;if(u=l==null?void 0:(W=l.response)==null?
void 0:(M=W.responseContext)==null?void 0:(q=M.webResponseContextExtensionData)==null?void 0:(v=q.webResponseContextDebugData)==null?void 0:v.debugErrorMessages)for(W=0;W<u.length;W++);return D};
I4a=function(u){var K,l,D,d;return u==null?void 0:(K=u.response)==null?void 0:(l=K.responseContext)==null?void 0:(D=l.errors)==null?void 0:(d=D.error)==null?void 0:d["0"]};
yIN=function(u,K){var l;if(l=K.url&&!K.url.startsWith("/clip"))l=K.url,l=!_.S("webfe_parse_debug_param_in_resolveurl_service")&&u.searchDebugUrlMatcher.test(l)||tyy(l)?!0:!1;if(l)tyy(K.url)&&_.oK(window.location.href).themeRefresh?(K=_.$s(K.url,"themeRefresh"),_.fD(u.historyManager,K)):K.url&&!dFn(K.url)&&_.fD(u.historyManager,K.url);else if(K.endpoint){var D,d,C;(l=(D=K.endpoint)==null?void 0:(d=D.commandMetadata)==null?void 0:(C=d.webCommandMetadata)==null?void 0:C.url)&&!dFn(l)&&_.fD(u.historyManager,
l);l&&K.url&&l!=K.url&&!K.url.match("playnext=1")&&new _.wv("Response url mismatch in response data",u.debugString,l,K.url)}};
_.s_0=function(u,K,l,D,d,C,W,M){C=C===void 0?!1:C;var q=_.GB().resolve(j0),v;if(!M&&g62(q,(v=u.currentEndpoint)!=null?v:void 0,K))return q.showConfirmationDialog(u.JSC$14342_clientRoot.parentElement,{endpoint:K,data:l,navigationType:D,tempData:d,isMiniplayer:C,isForwardHistoryNavigation:W==null?void 0:W.forward}),_.zA();u.pageFetcher.JSC$14324_chunkHandler=void 0;return DYN(u,K,l,D,d,C)};
DYN=function(u,K,l,D,d,C){C=C===void 0?!1:C;u.isMiniplayerExpansion=C;var W=D===2;u.currentEndpoint=K;u.numNavigations++;u.numNavigations&&(jAb.navigationCount=u.numNavigations);_.h8("NUM_NAV",u.numNavigations);var M=CJR(u,K,l);if(M)return l4m(u,K,M,"102",I4a(l)),_.YU(M);var q,v,G,t;M=l.rootVe||(l==null?void 0:(q=l.response)==null?void 0:(v=q.responseContext)==null?void 0:(G=v.webResponseContextExtensionData)==null?void 0:(t=G.ytConfigData)==null?void 0:t.rootVisualElementType);!W&&l&&yIN(u,l);var x,
O;q=l==null?void 0:(x=l.response)==null?void 0:(O=x.responseContext)==null?void 0:O.maxAgeSeconds;if(!W&&!isNaN(q)){var a;_.S("kevlar_use_response_ttl_to_invalidate_cache")?a=(0,_.vA)()+1E3*q:_.S("kevlar_always_invalidate_cache")&&(a=0);isNaN(a)||(l.expirationTime=a)}_.vU(_.F5).prefetchCache_.clear();W||l.page!=="watch"||l.type!=="reduced"&&D!==1?D=dYw(u,l,W,!!C,K,d):(u.publishPageData(l),D=_.zA());d=D.then(function(){var f=pc(K);f={endpoint:K,pageType:f,fromHistory:W,response:l};f.navigationDoneMs=
_.As("nd");u.fireEvent("yt-navigate-finish",f)});
l.csn&&M&&l.clientSideGrafts&&D.then(u.attachClientSideGrafts.bind(u,l,_.Yr()));return d};
_.I=BB.prototype;_.I.attachClientSideGrafts=function(u,K){u.clientSideGrafts&&K&&u.clientSideGrafts.forEach(function(l){if(K&&l){var D=_.gf(l);_.S("combine_ve_grafts")?_.iT().graftServerVe(l,K):_.DJ(u.csn,K,D)}})};
_.I.handleSignalActionHistoryBack=function(){window.history.back()};
_.I.handleSignalActionCloseWindow=function(){window.close()};
_.I.handleSignalActionReloadPage=function(){this.reload()};
_.I.handleSignalActionSoftReloadPage=function(){CNk(this)};
_.I.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.I.fireEvent=function(u,K){u=new CustomEvent(u,{bubbles:!0,cancelable:!1,composed:!0,detail:K});this.dispatchEvent(u)};
_.I.addEventListener=function(u,K){this.JSC$14342_clientRoot.addEventListener(u,K)};
_.I.dispatchEvent=function(u){return this.JSC$14342_clientRoot.dispatchEvent(u)};
_.I.removeEventListener=function(u,K){this.JSC$14342_clientRoot.removeEventListener(u,K)};
BB[vP]=[hzm,_.Qa];_.h6L=new Oj("browse","h8y2qb");_.Ejo=new Oj("search","JzFVk");_.LuH=new Oj("shorts","xwEKAe");_.ueR=new Oj("watchFixie","nmfa2d");_.KkH=new Oj("watchFlexy","CF909");_.lmr=new Oj("watchGrid","Tm0L3c");_.Dfb=new Oj("watchLearningJourney","L3n37");var oJ2;var WFa=function(){return _.Q.apply(this,arguments)||this};
_.c(WFa,_.Q);_.MN.Object.defineProperties(WFa,{template:{configurable:!0,enumerable:!0,get:function(){if(oJ2===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);oJ2=u}u=oJ2;return u}}});
_.g([_.e(WN2.YtPlayerBehavior),_.N("design:type",Object)],WFa.prototype,"ytPlayerBehavior",void 0);_.g([_.T({is:"ytd-player"})],WFa);var HxN;var MLw;var qbC;var pD=function(){var u=_.Q.apply(this,arguments)||this;u.forceModernIconButton=!1;u.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return u};
_.c(pD,_.Q);pD.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]]"}}}}}};
pD.prototype.handleAccountLinkingStateChangedCommand=function(u){if(u=_.b(u,d2H)){var K,l=(K=this.data)==null?void 0:K.providerKey;K=u.providerKey;l&&K&&l.id===K.id&&l.subject===K.subject&&(u=u.linked,u!==void 0&&(this.set("data.linked",u),this.notifyPath("data.linked"),_.S("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(u)))}};
pD.prototype.setPlayerAccountLinkState=function(u){var K=new hYa;EvC(K,XPR(new A7k,u));var l=_.xY();l&&l.getPlayerPromise().then(function(D){D.setAccountLinkState(_.Yp(K.JSC$12046_serializeBinary(),4));D.updateAccountLinkingConfig(u)})};
pD.prototype.handleShowAccountLinkDialog=function(){var u=this.get("button.buttonRenderer.command");u&&_.Ry([u],this.hostElement)};
_.MN.Object.defineProperties(pD.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}}}});
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.g([_.e([_.bf.YtActionHandlerBehavior]),_.N("design:type",Object)],pD.prototype,"actionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],pD.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],pD.prototype,"overrides",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],pD.prototype,"forceModernIconButton",void 0);_.g([_.U({value:"bottom"}),_.N("design:type",String)],pD.prototype,"buttonTooltipPosition",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],pD.prototype,"forceIconButton",void 0);_.g([_.U(),_.N("design:type",Boolean)],pD.prototype,"disableTextTransform",void 0);
_.g([_.R("data","data.linked","data.isWarning"),_.N("design:type",Object),_.N("design:paramtypes",[])],pD.prototype,"button",null);_.g([_.T({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],pD);
_.F(pD,"ytd-account-link-button-renderer",function(){if(qbC!==void 0)return qbC;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return qbC=u},{mode:1});var $Ym;var nJR=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],i3=function(){return _.Q.apply(this,arguments)||this};
_.c(i3,_.Q);i3.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
i3.prototype.updateButtonActiveState=function(){var u=this,K=!!nJR.find(function(l){return u.currentState===l});
this.button&&(this.button.isPressed=K)};
_.MN.Object.defineProperties(i3.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.playlistLoopStateEntity)==null?void 0:u.state)||((K=this.data)==null?void 0:K.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var u=void 0,K;if(this.currentState&&((K=this.data)==null?0:K.states)){K=_.y(this.data.states);for(var l=K.next();!l.done;l=K.next()){l=_.b(l.value,_.OX0);var D=void 0;if(((D=l)==null?void 0:D.state)===this.currentState){u=l;break}}}return u}}});
i3.prototype.updateButtonActiveState=i3.prototype.updateButtonActiveState;_.g([_.e(_.Ll),_.N("design:type",Object)],i3.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.U({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.zzH}),_.N("design:type",Object)],i3.prototype,"playlistLoopStateEntity",void 0);_.g([_.U(),_.N("design:type",Object)],i3.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],i3.prototype,"forceIconOnly",void 0);_.g([_.BF("ytd-button-renderer"),_.N("design:type",_.vs)],i3.prototype,"button",void 0);
_.g([_.R("data","playlistLoopStateEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],i3.prototype,"currentState",null);_.g([_.JU("currentButtonStateRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],i3.prototype,"updateButtonActiveState",null);_.g([_.R("currentState"),_.N("design:type",Object),_.N("design:paramtypes",[])],i3.prototype,"currentButtonStateRenderer",null);
_.g([_.T({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],i3);
_.F(i3,"ytd-playlist-loop-button-renderer",function(){if($Ym!==void 0)return $Ym;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return $Ym=u},
{mode:1});var rIA;var vJC=_.QQ("DOWNLOAD",{},"Download"),GLs=_.QQ("DOWNLOADING",{},"Downloading"),tLk=_.QQ("DOWNLOADED",{},"Downloaded"),xYw=_.QQ("RETRY",{},"Retry"),Tz=function(){var u=_.Q.apply(this,arguments)||this;u.forceIconButton=!1;u.forceIconOnly=!1;u.overrides=!1;u.buttonTooltipPosition=!1;u.styleActionButton=!1;u.disableTextTransform=!1;u.downloadProgress=0;u.isDownloadComplete=!1;u.isHidden=!0;u.transferState="TRANSFER_STATE_UNKNOWN";u.isVideoDeletedByUser=!1;u.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return u};
_.c(Tz,_.Q);_.I=Tz.prototype;_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.dataChanged=function(){var u;(u=this.data)!=null&&u.text||(u=_.EV(_.Mu().getState(),this.videoId),this.updateButtonState(u))};
_.I.computeVideoId=function(u){return u};
_.I.showHideButton=function(){this.updateButtonVisibility()};
_.I.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.I.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.I.updateButtonState=function(u){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==GLs||!_.pm(u))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(u){case "TRANSFER_STATE_UNKNOWN":u=vJC;var K="OFFLINE_DOWNLOAD";var l="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":u=xYw;K="OFFLINE_DOWNLOAD";l="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":u=tLk;K="OFFLINE_PIN";l="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":u=
GLs;K="OFFLINE_DOWNLOADING_ZERO";l="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":u=xYw;K="OFFLINE_DOWNLOAD";l="ACTION_RETRY";break;default:u=vJC,K="OFFLINE_DOWNLOAD",l="ACTION_ADD"}this.isVideoDeletedByUser&&(u=vJC,K="OFFLINE_DOWNLOAD",l="ACTION_ADD");var D=Object.assign({},this.data);D.text=_.o7(u);D.tooltip=u;D.icon={iconType:K};D.size="SIZE_DEFAULT";D.style="STYLE_DEFAULT";_.b(D.command,_.JK)&&(_.b(D.command,_.JK).action=l);this.set("data",D)}};
_.I.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var u="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?u="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?u="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?u="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?u="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?u="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(u="OFFLINE_PIN",this.isDownloadComplete=!0);var K;u!==((K=this.data.icon)==null?void 0:K.iconType)&&(K=Object.assign({},this.data),K.text=_.o7(GLs),K.tooltip=GLs,K.icon={iconType:u},_.b(K.command,_.JK)&&(_.b(K.command,_.JK).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",K))}};
Tz.prototype.updateProgress=Tz.prototype.updateProgress;Tz.prototype.onTransferStateChanged=Tz.prototype.onTransferStateChanged;Tz.prototype.showHideButton=Tz.prototype.showHideButton;Tz.prototype.dataChanged=Tz.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Tz.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Tz.prototype,"forceIconButton",void 0);
_.g([_.U(),_.N("design:type",Object)],Tz.prototype,"forceIconOnly",void 0);_.g([_.U(),_.N("design:type",Object)],Tz.prototype,"overrides",void 0);_.g([_.U(),_.N("design:type",Object)],Tz.prototype,"buttonTooltipPosition",void 0);_.g([_.U(),_.N("design:type",Object)],Tz.prototype,"styleActionButton",void 0);_.g([_.U(),_.N("design:type",Object)],Tz.prototype,"disableTextTransform",void 0);
_.g([_.U({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.N("design:type",String)],Tz.prototype,"videoId",void 0);_.g([_.U(),_.N("design:type",Object)],Tz.prototype,"data",void 0);_.g([_.U({selector:uv,selectorArgs:["videoId"]}),_.N("design:type",Object)],Tz.prototype,"downloadProgress",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Tz.prototype,"isDownloadComplete",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Tz.prototype,"isHidden",void 0);_.g([_.U({selector:_.EV,selectorArgs:["videoId"]}),_.N("design:type",String)],Tz.prototype,"transferState",void 0);_.g([_.U({selector:_.Vv9,selectorArgs:["videoId"]}),_.N("design:type",Object)],Tz.prototype,"isVideoDeletedByUser",void 0);_.g([_.U({selector:BzH,selectorArgs:["videoId"]}),_.N("design:type",Object)],Tz.prototype,"offlineabilityState",void 0);
_.g([_.U({value:!0}),_.N("design:type",Boolean)],Tz.prototype,"showTooltips",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],Tz.prototype,"sendCommandWhenDisabled",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Tz.prototype,"disabled",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tz.prototype,"dataChanged",null);
_.g([_.wn("offlineabilityState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tz.prototype,"showHideButton",null);_.g([_.wn("transferState","isVideoDeletedByUser"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tz.prototype,"onTransferStateChanged",null);_.g([_.wn("downloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tz.prototype,"updateProgress",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Tz);
_.F(Tz,"ytd-download-button-renderer",function(){if(rIA!==void 0)return rIA;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return rIA=u},{mode:2});var SbA;var bxa,Oxw=function(){if(bxa!==void 0)return bxa;var u=document.createElement("template");_.z(u,'\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 bxa=u};var cIm=_.S("web_button_rework")&&_.L0("BUTTON_REWORK")||_.S("web_button_rework_with_live"),a4m=_.Sg("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,wP=function(){var u=_.Q.apply(this,arguments)||this;u.isPressed=!1;u.forceIconButton=!1;u.forceIconOnly=!1;u.forceModernIconButton=!1;u.alignByText=!1;u.isShorts=!1;u.animatedText=!1;u.shouldAnimate=!1;u.JSC$14379_browserSupportsAnimation=_.S("web_supports_animations_api");u.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};u.onTap=function(){var K;if((K=u.data)==null||!K.defaultNavigationEndpoint){var l;K=!((l=u.data)==null?0:l.isToggled);var D;if((D=u.data)==null||!D.preventAutoToggle){u.shouldAnimate=!1;u.disableTextUpdateJobId&&_.YL.cancelJob(u.disableTextUpdateJobId);u.disableTextUpdateJobId=_.YL.addLowPriorityJob(function(){u.disableTextUpdateJobId=void 0},a4m);
var d;u.set("data.isToggled",!((d=u.data)==null?0:d.isToggled));l=u.getInnertubeIcon();D={toggled:K,actions:{}};l&&(D.actions[l.toLowerCase()]=K);_.xs(u.hostElement,"yt-toggle-button",D)}}};
return u};
_.c(wP,_.Q);_.I=wP.prototype;_.I.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.YL.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.toggle=function(u){var K;this.set("data.isToggled",u!==void 0?u:!((K=this.data)==null?0:K.isToggled))};
_.I.handleUpdateToggleButtonStateCommand=function(u){if(this.data){u=_.b(u,$ik);var K,l,D,d=(K=this.data)==null?void 0:(l=K.toggleButtonSupportedData)==null?void 0:(D=l.toggleButtonIdData)==null?void 0:D.id;d&&u&&d===(u==null?void 0:u.buttonId)&&this.set("data.isToggled",u.toggled)}};
_.I.handleUpdateToggleButtonTextAction=function(u){if(this.data){u=_.b(u,uO0);var K,l,D,d=(K=this.data)==null?void 0:(l=K.toggleButtonSupportedData)==null?void 0:(D=l.toggleButtonIdData)==null?void 0:D.id;d&&u&&d===(u==null?void 0:u.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=u.defaultNumericalValue,this.set("data.defaultText",u.defaultText),this.set("data.toggledText",u.toggledText),this.shouldAnimate=!1)}};
_.I.getInnertubeIcon=function(){var u=this.data;if(u){var K,l,D=((K=u.defaultIcon)==null?0:K.iconType)?(l=u.defaultIcon)==null?void 0:l.iconType:null,d,C;K=((d=u.toggledIcon)==null?0:d.iconType)?(C=u.toggledIcon)==null?void 0:C.iconType:D;return u.isToggled?K:D}};
_.I.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.MN.Object.defineProperties(wP.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var u={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$14379_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var K=u.renderer;var l=u.element;var D=u.toggled;var d=u.onTapCallback;var C=u.commandClientArgs;var W=u.overrides;var M=u.forceIcon;var q=u.forceModernIconButton;var v=u.forceDisabled;var G=u.useAnimatedText;var t=u.animatedTextProps;u=fxq(K,D);M=!K.defaultIcon||!M&&K.defaultText?K.defaultIcon?"leading":void 0:q?"icon-only":"icon-only-40";M==="icon-only-40"&&(u.type="text");var x;q=Object;var O=q.assign,a;a:switch((a=
K.style)==null?void 0:a.styleType){case "STYLE_COMPACT_GRAY":a={size:"S"};break a;default:a={size:"M"}}var f=!!D;var B=(B=D&&K.toggledText||K.defaultText)?_.Ep(B):void 0;G?(G=_.WI(D&&K.toggledText||K.defaultText))&&t&&!isNaN(Number(t.numberValue))?(t.numberText=G,D&&(t.numberValue+=1),G=t):G=void 0:G=void 0;var p,V,m,Z;var A=(t=((V=D?K.toggledAccessibilityData||((A=K.toggledText)==null?void 0:A.accessibility):K.accessibilityData||((p=K.defaultText)==null?void 0:p.accessibility))==null?void 0:(m=V.accessibilityData)==
null?void 0:m.label)||((Z=K.accessibility)==null?void 0:Z.label))?t:_.WI(D&&K.toggledText||K.defaultText);v=v===void 0?K.isDisabled:v;l=UFq(K,D,d,l,C);D=RzZ(K,D);D!=null&&D.length?(D=_.dY({innertubeCommand:WZq(D),forceNewState:!0}),D=C4(D)?D:void 0):D=void 0;K=O.call(q,{},u,a,{iconPosition:M},W,{focused:!1,toggled:f,toggleable:!0,formattedButtonText:B,animatedTextProps:G,accessibilityLabel:A,disabled:v,onTap:l,aTagConfig:D},gNq((x=K.colorData)==null?void 0:x.basicColorPaletteData));K.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(K.type="filled");return K}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var u=this.getInnertubeIcon();if(u)return _.fr(u)}}});
wP.prototype.resetAnimation=wP.prototype.resetAnimation;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],wP.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],wP.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],wP.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Object)],wP.prototype,"isPressed",void 0);_.g([_.U(),_.N("design:type",Object)],wP.prototype,"forceIconButton",void 0);_.g([_.U(),_.N("design:type",Object)],wP.prototype,"forceIconOnly",void 0);_.g([_.U(),_.N("design:type",Object)],wP.prototype,"forceModernIconButton",void 0);_.g([_.U(),_.N("design:type",Object)],wP.prototype,"alignByText",void 0);_.g([_.U(),_.N("design:type",Object)],wP.prototype,"overrides",void 0);
_.g([_.U(),_.N("design:type",Boolean)],wP.prototype,"disabled",void 0);_.g([_.U(),_.N("design:type",Object)],wP.prototype,"isShorts",void 0);_.g([_.U(),_.N("design:type",Object)],wP.prototype,"buttonTooltipPosition",void 0);_.g([_.U(),_.N("design:type",Object)],wP.prototype,"animatedText",void 0);_.g([_.U(),_.N("design:type",String)],wP.prototype,"textNumberValue",void 0);_.g([_.U({computed:"computeTooltip(data, data.isToggled)"}),_.N("design:type",Object)],wP.prototype,"tooltip",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wP.prototype,"resetAnimation",null);_.g([_.R("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.N("design:type",Object),_.N("design:paramtypes",[])],wP.prototype,"computedButtonShape",null);_.g([_.R("data.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],wP.prototype,"computedIcon",null);
_.g([_.T({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],wP);cIm&&_.F(wP,"ytd-toggle-button-renderer",Oxw,{mode:_.zW("kevlar_poly_si_batch_j081")?1:2});var sFq=_.rf(function(u){function K(v){var G;return _.H(function(t){if(t.nextAddress==1)return(G=!PuR(v,M())||!M().enabled)?t.jumpTo(2):t.yield(iYo(),3);t.nextAddress!=2&&(G=t.yieldResult);if(G)return t.return();l();setTimeout(function(){W(!1)},1500);
_.TG(t)})}
function l(){setTimeout(function(){W(!0);var v;(v=D.lottieEl)==null||v.goToAndPlay(0)},150)}
var D=_.Qo(),d=_.y(_.On(!1,void 0,"JJXzp")),C=d.next().value,W=d.next().value,M=_.qE(u.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.ZY(function(){var v,G;((v=u.settings)==null?void 0:(G=v.call(u))==null?void 0:G.uniqueId)==="this is not intended behavior"&&_.hV(new _.wv("Smartimation Settings is undefined"))});
_.gp(function(){M().experimentEnabled&&(M().enabled?JGL(K):(W(!1),j3q(K)),_.No(function(){j3q(K)}))},"FRiAUe");
_.gp(function(){M().timings.join("");M().experimentEnabled&&(B6q(M()),_.No(function(){pYo(M())}))},"VKiJOe");
var q=_.RZ(function(){var v=D,G=M().uniqueId+"-border",t,x;var O="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((x=(t=_.GB().resolve(_.vv(_.H1)))==null?void 0:t())!=null&&x?"dark":"light")+"_v2.json";return{animationRef:v,animationConfig:{name:G,autoplay:!1,loop:!1,path:O}}},void 0,"tgykab");
d={};return _.n("yt-smartimation",{class:_.JB(u.className,"smartimation",(d["smartimation--experiment-enabled"]=function(){return M().experimentEnabled},d["smartimation--active-border"]=C,d["smartimation--enable-masking"]=T6H(),d))},_.n(_.r,{cond:function(){return M().experimentEnabled},
then:function(){return _.n("div",{class:"smartimation__border"},_.n(_.O$,{className:"smartimation__border-gradient",data:q,animationName:function(){return q().animationConfig.name}}))}}),_.n("div",{class:"smartimation__content"},u.children))},"D");
sFq.idomCompat=!0;_.SX(sFq,"yt-smartimation",{props:{className:_.M6,settings:_.M6}});var Fl=function(){var u=_.Q.apply(this,arguments)||this;u.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};u.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};u.shouldEnableSmartimation=!1;return u};
_.c(Fl,_.Q);Fl.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Fl.prototype.onDataChanged=function(){var u,K;this.shouldEnableSmartimation=(((u=this.data)==null?void 0:(K=u.timedAnimationData)==null?void 0:K.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
Fl.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var u=_.b(this.data.likeButton,_.DG),K=_.b(this.data.dislikeButton,_.DG);return!!((u==null?0:u.isToggled)||(K==null?0:K.isToggled))};
Fl.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]]"}}}}}};
_.MN.Object.defineProperties(Fl.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var u,K,l=((u=this.data)==null?void 0:(K=u.timedAnimationData)==null?void 0:K.animationTiming)||[];return{uniqueId:"like-dislike",timings:l,enabled:this.shouldEnableSmartimation,experimentEnabled:l.length>0}}}});
Fl.prototype.onDataChanged=Fl.prototype.onDataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Fl.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Fl.prototype,"likeButtonOverride",void 0);_.g([_.U(),_.N("design:type",Object)],Fl.prototype,"dislikeButtonOverride",void 0);
_.g([_.R("shouldEnableSmartimation"),_.N("design:type",Object),_.N("design:paramtypes",[])],Fl.prototype,"smartimationSettings",null);_.g([_.JU("data"),_.PF("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fl.prototype,"onDataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],Fl);
_.F(Fl,"ytd-segmented-like-dislike-button-renderer",function(){if(SbA!==void 0)return SbA;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return SbA=u},{mode:1});var zFR;var eF2;(eF2=document.body)==null||eF2.setAttribute("rounded-container","");var RFw={};RFw.YtToggleButtonBehavior=[_.bf.YtActionHandlerBehavior,VG.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 u=this.data.isToggled;if(!this.isModal_(u)){if(!this.data.preventAutoToggle){this.toggle();var K={toggled:this.data.isToggled,actions:{}};K.actions[this.buttonIcon]=this.data.isToggled;_.xs(this.hostElement,"yt-toggle-button",K)}K=this.data.defaultServiceEndpoint||null;var l=this.data.toggledServiceEndpoint||null;if(K&&l||K&&this.data.preventAutoToggle)u=u?l:K,K=this.disableCommandHandlerOverride,_.S("killswitch_toggle_button_behavior_resolve_command")||K?_.c0(this.hostElement,
[u]):_.Jl(u,this.hostElement),_.xs(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:u})}},
stateChanged_:function(){var u=this.data;if(u){var K=u.isToggled;this._setEndpoint(this.computeEndpoint_(u));this._setServiceEndpoint(this.computeServiceEndpoint_(u));this._setButtonIcon(this.computeButtonIcon_(u,K));this._setButtonText(this.computeButtonText_(u,K));this._setButtonAccessibility(this.computeAccessibility_(u,K));this._setButtonTooltip(this.computeTooltip_(u,K));this._setButtonClass(this.computeButtonClass_(u,K));this._setIconPositionType(this.computeIconPositionType_(u));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=K):this.elements_.button.setAttribute("aria-pressed",K));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=K)}},
shouldSetIconActiveState_:function(){return _.S("kevlar_system_icons")},
toggle:function(u){this.set("data.isToggled",u!==void 0?u:!this.data.isToggled);_.S("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(u){if(u){var K,l;return!!((K=this.data)==null?0:(l=K.toggledServiceEndpoint)==null?0:l.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(u){return u&&u.defaultNavigationEndpoint||null},
computeButtonIcon_:function(u,K){var l=u&&u.defaultIcon?_.fr(u.defaultIcon.iconType):null;u=u&&u.toggledIcon?_.fr(u.toggledIcon.iconType):l;return K?u:l},
handleUpdateToggleButtonStateCommand_:function(u){u=u.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==u.buttonId&&this.toggle(u.toggled)},
computeButtonText_:function(u,K){return u?K&&u.toggledText||u.defaultText||null:null},
computeAccessibility_:function(u,K){return u?(K?this.get("toggledAccessibilityData.accessibilityData",u):this.get("accessibilityData.accessibilityData",u))||u.accessibility||null:null},
computeTooltip_:function(u,K){return u?K&&u.toggledTooltip||u.defaultTooltip||null:null},
computeButtonClass_:function(u,K){if(!u)return"";var l="",D=u.toggledStyle||u.style;if(K=K?D:u.style){K.styleType&&(K=K.styleType);try{l+=K.toLowerCase().replace(/_/g,"-")+" "}catch(d){_.E5(d,K,typeof K),_.hV(d)}}if(u=u.size){u.sizeType&&(u=u.sizeType);try{l+=u.toLowerCase().replace(/_/g,"-")+" "}catch(d){_.E5(d,u,typeof u),_.hV(d)}}return l.trim()},
computeIconPositionType_:function(u){return u&&u.iconPosition||null},
computeServiceEndpoint_:function(u){var K=u&&u.serviceEndpoint,l=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return K?K:l&&u.command?u.command:null},
handleUpdateToggleButtonTextAction_:function(u){u=u.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==u.buttonId&&(this.set("data.defaultText",u.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",u.toggledText),this.notifyPath("data.toggledText"))}}];_.E4("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var UYH=_.S("web_button_rework")&&_.L0("BUTTON_REWORK")||_.S("web_button_rework_with_live"),Va=function(){var u=_.Q.apply(this,arguments)||this;u.systemIcons=_.S("kevlar_system_icons");u.roundedContainer=!0;return u};
_.c(Va,_.Q);Va.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Va.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var u=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var K={toggled:!!this.data.isToggled,actions:{}};K.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var l,D;K.actions.playlistId=(l=this.data.defaultServiceEndpoint)==null?void 0:(D=l.playlistEditEndpoint)==null?void 0:D.playlistId;_.xs(this.hostElement,"yt-toggle-button",K)}(u=u?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(u)}};
Va.prototype.onYtNavigate=function(u){var K=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(u.detail.endpoint);K&&(u.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(K))};
_.MN.Object.defineProperties(Va,{template:{configurable:!0,enumerable:!0,get:function(){if(zFR===void 0){var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);zFR=u}u=zFR;return u}}});
Va.prototype.onYtNavigate=Va.prototype.onYtNavigate;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Va.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.nl),_.N("design:type",Object)],Va.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.e(RFw.YtToggleButtonBehavior),_.N("design:type",Object)],Va.prototype,"ytToggleButtonBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],Va.prototype,"data",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],Va.prototype,"showTooltips",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Va.prototype,"systemIcons",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Va.prototype,"roundedContainer",void 0);_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Va.prototype,"onYtNavigate",null);
_.g([_.T({is:"ytd-toggle-button-renderer",disableElementRegistration:UYH})],Va);var f40;_.gP=new _.G$("PANEL_CONTROLLER_TOKEN");_.NR=new _.G$("SHEET_CONTROLLER_TOKEN");_.kR=new _.G$("DIALOG_CONTROLLER_TOKEN");f40=new _.G$("DIALOG_CONTAINER_TOKEN");var AGq=_.QQ("DOWNLOAD",{},"Download"),XYq=_.QQ("DOWNLOADING",{},"Downloading"),mFq=_.QQ("DOWNLOADED",{},"Downloaded"),hzn=_.QQ("RETRY",{},"Retry");var LNR=[],u9r=!1;var Q_A=_.rf(function(u){var K=I4b,l=function(){return""},D=l4n(u.data),d=DYq(u.data),C=dYq(u.data),W=CJH(u.data);
K=function(){var M=u.data(),q=ZYR(M,D(),d(),C(),W()),v=!!M.videoId,G=q.text;return{title:v?G:void 0,tooltip:v?void 0:G,accessibilityText:G,onTap:q.onTap,iconName:q.iconType,style:M.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:q.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:M.buttonSize}};
l={};l=_.JB("ytDownloadButtonViewModelHost",(l.ytDownloadButtonViewModelIsHidden=function(){var M=u.data(),q=W();return M.playlistId||q()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||q()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},l));
return _.n("download-button-view-model",{class:l},_.n(_.P2,{data:K}))},"E");
Q_A.idomCompat=!0;var JIw=_.rf(function(u){var K=u.backgroundLottieRef;var l=u.foregroundLottieRef;var D=u.children;var d=u.wrapperClass;var C=u.disableAnimation;u=function(){return(_.S("web_animated_actions")||_.S("web_animated_actions_v2"))&&!(C==null?0:C())};
return _.n("yt-animated-action",{class:_.JB("animated-action__container",d)},_.n("div",{class:"animated-action__content-with-background"},_.n(_.r,{cond:u,then:function(){return _.n(PJw,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:K==null?void 0:K(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(yIq()?"dark":"light")+"_v5.json"}}}})}}),D),_.n(_.r,{cond:u,
then:function(){return _.n(PJw,{lottiePlayerProps:function(){return{animationRef:l==null?void 0:l(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(yIq()?"dark":"light")+"_v4.json"}}}})}}))},"F");
JIw.idomCompat=!0;var PJw=_.rf(function(u){var K=u.wrapperClass;var l=u.lottieClass;var D=u.lottiePlayerProps;return _.n("div",{class:_.JB("animated-action__lottie",K),"aria-hidden":"true"},_.n(_.O$,{className:l,data:D,animationName:function(){return D().animationConfig.name}}))},"G");var s_y={isOpen:!1};var WFb={isAllowed:!1};var MLh={errorMessage:"",title:"",privacy:"",isDisabled:!0};var $Yn={isOpen:!1};var rIH={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var j_2={response:void 0};var GL9=function(u,K){u=u===void 0?j_2:u;switch(K.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},u,{response:K.payload});default:return u}};var BtS={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var tLL=function(u,K){u=u===void 0?BtS:u;switch(K.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},u,{nextDisabled:K.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},u,{nextCommand:K.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},u,{footerSubmissionData:K.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},u,{isImpersonationValid:K.payload});default:return u}};var pGA={reportFormData:void 0,reportDetailsFormData:void 0};var xYh=function(u,K){u=u===void 0?pGA:u;switch(K.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},u,{reportFormData:K.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},u,{reportDetailsFormData:K.payload});default:return u}};var ixN=void 0;_.S("mweb_enable_redux_store_on_demand")||(ixN=new HI(SbH()));var Z1=_.S("enable_web_delhi_icons");var TtR=_.rf(function(u){u=_.$U(u,{themeOverride:void 0,animationRef:{}});var K=u.animatedIconType,l=u.active,D=u.themeOverride,d=u.animationRef;u=u.staticIconFn;var C=_.y(_.On(void 0,void 0,"P5a72b")),W=C.next().value,M=C.next().value,q=function(){a:{var B=K();var p=D==null?void 0:D();var V;p=(p==null?void 0:p.useDarkTheme)||((V=_.GB().resolve(_.vv(_.H1)))==null?void 0:V());switch(B){case "LIKE":ixN||(ixN=new HI(SbH()));B=(B=Gmn(ixN.getState()))&&B.animationLightUrl&&B.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:p?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:p?B.animationDarkUrl:B.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(B){p=B;break a}p="animated_like_icon_"+(p?"dark":"light")+"_"+(Z1?"v5":"v4");p={lottiePlayerProps:{animationConfig:{name:p,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+p+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(Z1?" animated-like-icon-delhi":"")}}},totalFrames:Z1?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":p={lottiePlayerProps:{animationConfig:{name:p?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(p?"dark":"light")+(Z1?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(Z1?" animated-subscribe-icon-delhi":"")}}},totalFrames:Z1?120:79,lazyLoad:!1};break a}p=
void 0}return p},v=function(){var B,p;
return(p=(B=q())==null?void 0:B.lottiePlayerProps.animationConfig.name)!=null?p:""},G=function(){if(q()){var B=q().lottiePlayerProps.animationConfig.path;
return P1.get(B)||W()}};
C=_.y(_.On(!1,void 0,"h6xR3c"));var t=C.next().value;C=C.next().value;var x=Oxh(C),O=function(){var B=q(),p,V,m;return(m=B==null?void 0:(p=B.lottiePlayerProps.animationConfig)==null?void 0:(V=p.rendererSettings)==null?void 0:V.className)!=null?m:""},a=void 0,f=void 0;
_.gp(function(){var B=q(),p=v(),V=G(),m=t(),Z=l();if(B&&(f!==p&&(f=p,a=Z,p=d(),x.animationConfig=B.lottiePlayerProps.animationConfig,x.animationRef=p,V&&(x.animationConfig.animationData=V,x.animationConfig.path=void 0),p=B.lottiePlayerProps.animationConfig.path,!P1.get(p)&&B.lazyLoad&&p&&bxb(p,M)),!(m||B.lazyLoad&&!V))){if(V=!d().lottieEl)Z?(m=B.totalFrames,x.animationConfig.initialSegment=[m-1,m]):x.animationConfig.initialSegment=void 0;if(a!==Z&&!V)if(V=d(),Z){var A;(A=V.lottieEl)==null||A.playSegments([0,
B.totalFrames],!0)}else{var h;(h=V.lottieEl)==null||h.playSegments([0,1],!0)}a=Z}},"YCYOCe");
return _.n("animated-icon",{class:"ytAnimatedIconHost"},_.n(_.r,{cond:function(){var B,p;return!((B=q())==null||!B.lottiePlayerProps.animationConfig.path||((p=q())==null?0:p.lazyLoad)&&!G()||t())},
then:function(){return _.n(_.O$,{data:x,animationName:v,className:O,animationRef:d})},
else:u}))},"H");_.YR=_.rf(function(u){var K=_.o9("yt-subscribe-button-view-model"),l=_.o9("div"),D=_.o9("div"),d=_.Qo(),C=_.Qo(),W=_.Qo(),M=_.ie(xFL,function(){return u.data().stateEntityStoreKey}),q=_.ie(SYZ,function(){var hH,tR;
return(tR=(hH=u.data().notificationStateEntityStoreKeys)==null?void 0:hH.subsNotificationStateKey)!=null?tR:""}),v=function(){return!u.data().enableSubscribeButtonPostClickAnimation},G=_.y(_.On(0,void 0,"eTsWvc")),t=G.next().value,x=G.next().value;
G=_.y(_.On(0,void 0,"dniDQ"));var O=G.next().value,a=G.next().value;G=_.y(_.On(!1,void 0,"EluPic"));var f=G.next().value,B=G.next().value;G=_.y(_.On(!1,void 0,"r0jnre"));var p=G.next().value,V=G.next().value;G=_.y(_.On(!1,void 0,"KMvoQe"));var m=G.next().value,Z=G.next().value,A;G=_.y(_.On(!1,void 0,"aSENce"));var h=G.next().value,C9=G.next().value,Wo=function(){V(!0);_.Vo(_.YL,function(){V(!1)},1500)};
_.gp(function(){var hH=p();br(function(){hH&&!v()&&M()&&JIh(d,C,W)})},"LgmX6c");
_.gp(function(){var hH=M();br(function(){if(!v()&&hH){var tR;((tR=u.animateWidth)==null?0:tR.call(u))&&PJq(K.value,!!hH.subscribed,t(),O());var ns,Pa;((ns=A)==null?0:ns.subscribed)||!hH.subscribed||hH.key!==((Pa=A)==null?void 0:Pa.key)||Wo();A=hH}})},"iZzoUb");
G=_.RZ(function(){var hH,tR,ns,Pa=u.data(),QV=!((hH=M())==null||!hH.subscribed);hH=!((tR=u.isOverlay)==null||!tR.call(u));tR=f()?K:void 0;var Ls=(ns=q())==null?void 0:ns.state;ns=h();Q_H(Pa,Ls);return zFH({model:Pa,subscribed:QV,isOverlay:hH,element:tR,notificationState:Ls,disableTextEllipsis:!0,focused:ns})},void 0,"yGQGue");
var $y=function(){var hH;if(!v()&&((hH=u.animateWidth)==null?0:hH.call(u))&&(l==null?0:l.value)&&(D==null?0:D.value)&&!m()){hH=M();var tR=_.y((hH==null?0:hH.subscribed)?[l,D]:[D,l]),ns=tR.next().value;tR=tR.next().value;ns=Math.ceil(ns.value.getBoundingClientRect().width);tR=Math.ceil(tR.value.getBoundingClientRect().width);x(ns);a(tR);PJq(K.value,!(hH==null||!hH.subscribed),ns,tR);Z(!0)}},co=_.p4(function(hH){$y();
var tR=M();tR&&(hH.detail.endpoint.subscribeEndpoint||hH.detail.endpoint.unsubscribeEndpoint)&&RFq(K.value,!tR.subscribed,tR)}),UZ=function(){var hH=_.GB().resolve(_.vv(_.zF));
hH&&C9(hH.isKeyBoardInUse())},tH=function(){C9(!1)};
_.s6("yt-player-subscribe",function(hH){var tR=M();tR&&hH===u.data().channelId&&RFq(K.value,!0,tR)});
_.s6("yt-player-unsubscribe",function(hH){var tR=M();tR&&hH===u.data().channelId&&RFq(K.value,!1,tR)});
_.s6("yt-update-subscribe-button-action",function(hH){hH=_.b(hH,Li2);var tR=M();tR&&hH&&hH.channelId===u.data().channelId&&RFq(K.value,!!hH.subscribed,tR)});
_.ZY(function(){K.value&&(K.value.addEventListener("focusin",UZ),K.value.addEventListener("focusout",tH));var hH=_.Ve(_.YL,function(){$y()});
B(!0);_.No(function(){_.YL.cancelJob(hH);K.value&&(K.value.removeEventListener("focusin",UZ),K.value.removeEventListener("focusout",tH))})});
var gq=function(){var hH,tR,ns;if(ns=!((hH=M())==null||!hH.subscribed))hH=!!u.data().disableNotificationBell,ns=(tR=q())==null?void 0:tR.state,ns=!hH&&!!ns;return ns},Bo=function(){var hH;
return!((hH=M())==null?0:hH.subscribed)},uk=function(){var hH,tR;
if(tR=Bo()){tR=!!u.data().disableNotificationBell;var ns=(hH=q())==null?void 0:hH.state;tR=!tR&&!!ns}return tR},ca={},Ha={};
return _.n("yt-subscribe-button-view-model",{class:_.JB(u.className,"yt-subscribe-button-view-model-wiz",(ca["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var hH,tR;return!((hH=M())==null||!hH.subscribed)&&((tR=u.animateWidth)==null?void 0:tR.call(u))&&p()},ca["yt-subscribe-button-view-model-wiz--hidden"]=function(){var hH;
return!((hH=M())==null?0:hH.subscribed)&&u.data().hideWhenUnsubscribed},ca)),
el:K,"on:yt-service-request-sent":co},_.n(JIw,{backgroundLottieRef:d,foregroundLottieRef:C,wrapperClass:_.JB("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(Ha["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var hH;return((hH=u.animateWidth)==null?void 0:hH.call(u))&&p()},Ha["yt-subscribe-button-view-model-wiz__static-width"]=function(){var hH;
return!((hH=u.animateWidth)==null?0:hH.call(u))},Ha)),
disableAnimation:v},_.n("div",{el:l,class:"yt-subscribe-button-view-model-wiz__container"},_.n($e,{data:G,icon:function(){return _.n(_.r,{cond:gq,then:function(){var hH=function(){var tR;return eFr((tR=q())==null?void 0:tR.state)};
return _.n(_.r,{cond:function(){return v()||hH()!=="NOTIFICATIONS_NONE"},
then:function(){return _.n(_.VB,{icon:hH})},
else:function(){return _.n(TtR,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:W})}})}})},
secondaryIconName:function(){return gq()?"EXPAND":void 0}}))),_.n("div",{el:D,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.n(_.r,{cond:function(){var hH;return((hH=u.animateWidth)==null?void 0:hH.call(u))&&!v()&&!m()},
then:function(){return _.n($e,{data:_.RZ(function(){var hH;return zFH({model:u.data(),subscribed:Bo(),isOverlay:!((hH=u.isOverlay)==null||!hH.call(u)),element:K,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var hH;return uk()?eFr((hH=q())==null?void 0:hH.state):void 0},
secondaryIconName:function(){return uk()?"EXPAND":void 0}})}})))},"I");
_.YR.idomCompat=!0;var j_r=new _.G$("RENDERER_STAMPER_OPTIONS_TOKEN");var wGA=_.rf(function(u){var K=u.data;var l=_.ie(xFL,function(){return K().subscriptionStateEntityKey});
return _.n(_.r,{cond:function(){var D=K(),d=l();return!D.hideWhenUnsubscribed||(d==null?0:d.subscribed)?_.b(K().button,_.kY):void 0},
then:function(D){return _.n("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.n(_.P2,{data:D,buttonOverrides:function(){return{toggled:!0}}}))}})},"J");
wGA.idomCompat=!0;var kLR=_.NX({buttonViewModel:_.P2,subscribeButtonViewModel:_.YR,downloadButtonViewModel:Q_A,toggleButtonViewModel:_.YK,subscribePlusButtonViewModel:wGA});_.v4(Yby);var IZh=new _.G$("RENDERER_LOGGER_TOKEN");var AK;_.YY=new ir2;AK=new Map;var D8y="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),CVo=["notificationTextRenderer","notificationMultiActionRenderer"],d8H="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
lZH=AIq(function(u){return _.Z7(u==null?void 0:u.targetId)}).useUpdatableData;var K2r=0;_.mo.debugName="EjJbCe";var FFS=_.rf(function(u){return _.n(_.mo,{data:function(){return u.actionRow().actions}},{buttonViewModel:function(K){var l=K.data;
return _.n(AA,{isRow:u.isRow,isIconOnlyButton:function(){return yvb(l())},
useIntrinsicWidth:u.useIntrinsicWidth},_.n(_.P2,{data:l}))},
subscribeButtonViewModel:function(K){return _.n(AA,{isRow:u.isRow},_.n(_.YR,{data:K.data,isOverlay:!1,animateWidth:function(){return!u.isRow()}}))},
downloadButtonViewModel:function(K){var l=K.data;return _.n(AA,{isRow:u.isRow,isIconOnlyButton:function(){return!!l().playlistId}},_.n(Q_A,{data:l}))},
toggleButtonViewModel:function(K){var l=K.data;return _.n(AA,{isRow:u.isRow,isIconOnlyButton:function(){var D=l();return yvb(_.b(D.isToggled?D.toggledButtonViewModel:D.defaultButtonViewModel,_.kY))}},_.n(_.YK,{data:l}))},
subscribePlusButtonViewModel:function(K){return _.n(AA,{isRow:u.isRow},_.n(wGA,{data:K.data}))}})},"K"),AA=_.rf(function(u){var K={};
return _.n("div",{class:_.JB("yt-flexible-actions-view-model-wiz__action",(K["yt-flexible-actions-view-model-wiz__action--row-action"]=u.isRow,K["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=u.useIntrinsicWidth,K["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,K["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=u.isIconOnlyButton,K))},u.children)},"L"),VLw=_.rf(function(u){var K=function(){var D;
return((D=u.layout)==null?void 0:D.call(u))===1},l={};
return _.n("yt-flexible-actions-view-model",{class:_.JB("yt-flexible-actions-view-model-wiz",u.className,(l["yt-flexible-actions-view-model-wiz--inline"]=function(){return!K()},l["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return u.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},l))},_.n(_.p0,{each:function(){return u.data().actionsRows||[]}},function(D){return _.n(_.r,{cond:K,
then:function(){return _.n("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.n(FFS,{actionRow:D,isRow:K,useIntrinsicWidth:function(){return!!u.data().respectActionIntrinsicWidth}}))},
else:function(){return _.n(FFS,{actionRow:D,isRow:K})}})}))},"M"),Xl=_.S("web_enable_sink_yt_flexible_actions_view_model")?VLw:_.B1(Yby);
VLw.idomCompat=!0;_.SX(Xl,"yt-flexible-actions-view-model",{props:{data:_.M6,layout:_.M6,justifyContentOverride:_.M6,className:_.M6}});_.m9=_.rf(function(u){var K=_.ie(dE,function(){var d;return(d=u.data().dislikeEntityKey)!=null?d:""}),l=_.RZ(function(){var d=K();
return d?d.likeStatus==="DISLIKE":_.b(u.data().toggleButtonViewModel,_.Za).isToggled},void 0,"B2tgKf"),D=_.RZ(function(){return Object.assign({},_.b(u.data().toggleButtonViewModel,_.Za),{isToggled:l()})},void 0,"otfIbf");
return _.n("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.n(_.YK,{data:D,buttonShapeOverrides:u.buttonShapeOverrideables,onToggle:function(d){var C=K();C&&d!==(C.likeStatus==="DISLIKE")&&C.key&&_.ME(_.EL("likeStatusEntity",C.key,{likeStatus:d?"DISLIKE":"INDIFFERENT",hadUserInteraction:d}))}}))},"N");
_.m9.idomCompat=!0;_.hA=_.rf(function(u){var K=_.S("web_supports_animations_api"),l=GH(function(x){var O=v();if(!x){var a,f;return{numberText:(f=O==null?void 0:(a=O.likeCountIfIndifferent)==null?void 0:a.content)!=null?f:"",numberValue:Number(O==null?void 0:O.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var B;a=(O==null?void 0:(B=O.likeCountIfIndifferent)==null?void 0:B.content)!==x.numberText;if(M()||!a)return x;var p;return{numberText:(O==null?void 0:(p=O.likeCountIfIndifferent)==null?void 0:p.content)||
"",numberValue:Number(O==null?void 0:O.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!O}}),D=GH(function(x){var O=v();
if(!x){var a,f;return{numberText:(f=O==null?void 0:(a=O.likeCountIfLiked)==null?void 0:a.content)!=null?f:"",numberValue:Number(O==null?void 0:O.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var B;a=(O==null?void 0:(B=O.likeCountIfIndifferent)==null?void 0:B.content)!==x.numberText;if(M()||!a)return x;var p;return{numberText:(O==null?void 0:(p=O.likeCountIfLiked)==null?void 0:p.content)||"",numberValue:Number(O==null?void 0:O.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!O}}),d=_.y(_.On(void 0,
void 0,"xYSlUe")),C=d.next().value,W=d.next().value,M=C,q=_.ie(dE,function(){var x,O;
return(O=(x=u.data())==null?void 0:x.likeStatusEntityKey)!=null?O:""}),v=_.ie(htH,function(){var x,O;
return((x=u.likeCountEntity)==null?void 0:(O=x.call(u))==null?void 0:O.key)||""}),G=_.RZ(function(){var x;
return((x=q())==null?void 0:x.likeStatus)==="LIKE"},void 0,"DG5Osd"),t=function(){var x;
return K&&!((x=u.likeCountEntity)==null||!x.call(u))};
return _.n("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.n(_.YK,{data:function(){var x=Object,O=x.assign,a;var f=_.b((a=u.data())==null?void 0:a.toggleButtonViewModel,_.Za);return O.call(x,{},f||{},{isToggled:G()})},
buttonShapeOverrides:u.buttonShapeOverrideables,animatedTextPropsDefault:function(){return t()?l():void 0},
animatedTextPropsToggled:function(){return t()?D():void 0},
onToggle:function(x){sVo(x,q(),M(),W)},
style:function(){var x;return((x=u.disableIconAnimation)==null?0:x.call(u))?void 0:{animateIcon:"true"}}}))},"O");
_.hA.idomCompat=!0;var gJA=_.rf(function(u){var K=function(){return _.b(u.data().likeButtonViewModel,_.hW)},l=function(){var d;
return((d=K())==null?void 0:d.likeStatusEntityKey)||""},D=_.RZ(function(){var d,C;
var W=(C=_.ie(dE,l)())!=null?C:(d=K())==null?void 0:d.likeStatusEntity;d=u.data();var M;d=(d==null?void 0:(M=d.timedAnimationData)==null?void 0:M.animationTiming)||[];return{uniqueId:"like-dislike",timings:d,enabled:(W==null?void 0:W.likeStatus)==="INDIFFERENT"&&d.length>0,experimentEnabled:d.length>0}},void 0,"hGh9Td");
return _.n("segmented-like-dislike-button-view-model",{class:_.JB("ytSegmentedLikeDislikeButtonViewModelHost",u.className),"button-renderer":!0},_.n(sFq,{settings:D},_.n("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.n(_.r,{cond:K,then:function(d){return _.n(_.hA,{data:d,likeCountEntity:function(){return u.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.n(_.r,{cond:function(){return _.b(u.data().dislikeButtonViewModel,_.mD)},
then:function(d){return _.n(_.m9,{data:d,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"P");
gJA.idomCompat=!0;_.SX(gJA,"segmented-like-dislike-button-view-model",{props:{data:_.M6,className:_.M6}});var Ntw=_.rf(function(u){var K=u.data;var l=u.className;var D=u.setMinWidth;var d=u.forceIconOnly;var C=_.o9("account-link-button-view-model"),W=_.ie(_.o7q,function(){var x;return(x=K().accountLinkStatusEntityKey)!=null?x:""}),M=_.ie(_.o7q,function(){var x;
return(x=K().accountLinkStatusSecondaryEntityKey)!=null?x:""}),q=function(){if(!_.S("web_account_link_secondary_killswitch")){var x,O;
return((x=W())==null?void 0:x.linked)||((O=M())==null?void 0:O.linked)}var a;return(a=W())==null?void 0:a.linked};
_.gp(function(){var x=W();if(x){var O=EvC(new hYa,XPR(new A7k,!!x.linked));_.UK().then(function(a){a&&(a.setAccountLinkState(_.Yp(O.JSC$12046_serializeBinary(),4)),a.updateAccountLinkingConfig(!!x.linked))})}},"b9pSsf");
var v=function(){return _.b(K().toggleButtonViewModel,_.Za)};
_.s6("yt-signal-action-show-account-link-dialog",function(){if(v()){var x=q()?v().toggledButtonViewModel:v().defaultButtonViewModel;x=_.b(x,_.kY);var O;if((O=W())==null?0:O.isWarning){O=_.b(K().warningButtonViewModel,_.kY);if(!O){_.D_(Error("Bh"));return}x=O}var a;(O=_.lt((a=x)==null?void 0:a.onTap))&&_.Ry([O],C.value)}else _.D_(Error("Ch"))});
var G=function(){var x=v();return Object.assign({},x,{isToggled:q()})},t=function(){return(d==null?0:d())?{iconPosition:"icon-only"}:{}};
return _.n("account-link-button-view-model",{class:_.JB("ytwAccountLinkButtonViewModelHost",l,function(){return(D==null?0:D())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:C,"button-renderer":!0},_.n("div",null,_.n(_.r,{cond:function(){var x;if((x=W())==null?0:x.isWarning)return(x=_.b(K().warningButtonViewModel,_.kY))||_.D_(Error("Bh")),x},
then:function(x){return _.n(_.P2,{data:x,buttonOverrides:t})},
else:function(){return _.n(_.YK,{data:G,buttonShapeOverrides:t})}})))},"Q");_.SX(Ntw,"account-link-button-view-model",{props:{data:_.M6,className:_.xo,setMinWidth:_.xo,forceIconOnly:_.xo}});_.E4("menuRenderer","menuRenderer","ytd-menu-renderer");
var kLC={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"}},
Zxm=_.S("web_fix_missing_action_buttons")?100:200,E8=function(){var u=_.Q.apply(this,arguments)||this;u.safeArea=!_.S("kevlar_flex_menu_safe_area_killswitch");u.tonalOverride=!1;u.threeDotSize="M";u.isOverlay=!1;u.useOverlayDark=!1;u.topLevelIconsOnly=!1;u.JSC$14513_lastWidth=0;u.maybeUpdateFlexibleMenu=function(){_.S("web_fix_missing_action_buttons")?requestAnimationFrame(u.maybeUpdateFlexibleMenuImpl):u.maybeUpdateFlexibleMenuImpl()};
u.maybeUpdateFlexibleMenuImpl=function(){var K;if((K=u.data)!=null&&K.flexibleItems){u.maybeFlushDebouncer();K=u.hostElement.clientWidth;var l=K>u.JSC$14513_lastWidth,D,d=((D=u.topLevelButtonsContainer)==null?void 0:D.scrollHeight)||0,C;D=((C=u.flexibleItemButtonsContainer)==null?void 0:C.scrollHeight)||0;C=u.hostElement.scrollHeight>Math.max(d,D)+8;l?(u.resetFlexibleItems(),u.JSC$14513_lastWidth=u.hostElement.clientWidth,u.maybeUpdateFlexibleMenu()):C&&(u.shrinkFlexibleMenu(),u.JSC$14513_lastWidth=
K)}};
u.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){u.onOverflowTap()},
iconPosition:"icon-only",style:u.isOverlay?u.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:u.threeDotSize,state:"active",accessibilityLabel:u.computeAccessibilityLabel(u.data)},u.threeDotButtonOverride)};
u.onOverflowTap=function(){if(u.data.fetchMenuCommand)_.GB().resolve(_.t9).resolveCommand(u.data.fetchMenuCommand,{form:{element:u.hostElement}});else if(u.data.isDisabled&&u.data.disabledCommand)_.Jl(u.data.disabledCommand,u.hostElement);else{var K=u.createMenuRendererVe(),l={items:u.items};u.data.menuPopupAccessibility&&(l.menuPopupAccessibility=u.data.menuPopupAccessibility);u.data.footer&&(l.footer=u.data.footer);K={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:l},veData:K}};
_.GB().resolve(_.NR).openSheet({openPopupActionCommand:K},u.hostElement)}};
return u};
_.c(E8,_.Q);_.I=E8.prototype;_.I.updateButtonOverrides=function(){if(!_.S("menu_renderer_label_update_upkillswitch")){var u=_.bi(this.hostElement).querySelector("yt-button-view-model");u&&(u.buttonOverrides=this.buttonOverrides)}};
_.I.computeHasItems=function(){var u;return((u=this.topLevelButtonData)==null?void 0:u.length)||this.hasFlexibleItems};
_.I.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.I.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.e8(this.hostElement,{"--ytd-menu-renderer-button-color":_.ui(this.data.iconColor)}))};
_.I.onStamperFinished=function(){this.JSC$14513_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.I.setupFlexibleMenu=function(){var u=this,K;(K=this.data)!=null&&K.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.MC(this.maybeUpdateFlexibleMenu,Zxm,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){u.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))};
_.I.maybeFlushDebouncer=function(){if(_.S("web_replace_formatted_with_attributed_string")){var u;(u=this.topLevelButtons)==null||u.forEach(function(l){var D;(l=(D=l.getElementsByTagName("yt-attributed-string"))==null?void 0:D[0])&&MPZ(l)});
var K;(K=this.flexibleItemButtons)==null||K.forEach(function(l){var D;(l=(D=l.getElementsByTagName("yt-attributed-string"))==null?void 0:D[0])&&MPZ(l)})}};
_.I.resetFlexibleItems=function(){var u;if((u=this.data)!=null&&u.flexibleItems){_.S("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var K;this.flexAsTopLevelButtons=(K=this.data.flexibleItems)==null?void 0:K.map(function(l){return _.b(l,_.cWm).topLevelButton});
_.S("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.I.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.I.shrinkFlexibleMenu=function(){var u;(u=this.flexAsTopLevelButtons)!=null&&u.length&&(this.flexAsTopLevelButtons=[].concat(_.Am(this.flexAsTopLevelButtons.slice(0,-1))))};
_.I.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:kLC,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:kLC,events:!0}}};
_.I.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.I.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.I.detached=function(){this.icon="MORE_VERT"};
_.I.computeTopLevelButtonData=function(u){if(!u)return[];var K;u=(K=u==null?void 0:u.topLevelButtons)!=null?K:[];return _.k$.unsafeClone([].concat(_.Am(u)))};
_.I.computeItems=function(u,K){if(!u)return[];var l=[];if(K){var D=(u.flexibleItems||[]).map(function(W){return _.b(W,_.cWm)});
D=_.y(D);for(var d=D.next();!d.done;d=D.next())d=d.value,K.includes(d.topLevelButton)||(d=d.menuItem)&&l.push(d)}var C;u=(C=u==null?void 0:u.items)!=null?C:[];return[].concat(_.Am(l),_.Am(u))};
_.I.computeMenuActive=function(u,K){return u||K};
_.I.onPopupOpened=function(){this.overlayOpen=!0;_.xs(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.I.onPopupClosed=function(){this.overlayOpen=!1;_.xs(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.I.onPopupCanceled=function(){this.overlayOpen=!1;_.xs(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.I.computeAccessibilityLabel=function(u){return this.get("accessibility.accessibilityData.label",u)};
_.I.isHidden=function(u,K){return this.tonalOverride||!u?!0:u.fetchMenuCommand||u.isDisabled&&u.disabledCommand?!1:!(K==null?0:K.length)};
_.I.isModernOverflowHidden=function(u,K){return this.tonalOverride&&u?u.fetchMenuCommand?!1:!(K==null?0:K.length):!0};
_.I.createMenuRendererVe=function(){var u=this.data.trackingParams,K=_.AC(),l=_.Yr();return u&&K&&l?(u=_.gf(u),l=_.Yo(7591),_.S("combine_ve_grafts")?_.RD(_.iT(),l,u):_.DJ(K,u,l),l):null};
_.MN.Object.defineProperties(E8.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.flexAsTopLevelButtons)==null||!u.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
E8.prototype.onPopupCanceled=E8.prototype.onPopupCanceled;E8.prototype.onPopupClosed=E8.prototype.onPopupClosed;E8.prototype.onPopupOpened=E8.prototype.onPopupOpened;E8.prototype.tonalOverrideChanged=E8.prototype.tonalOverrideChanged;E8.prototype.resetFlexibleItems=E8.prototype.resetFlexibleItems;E8.prototype.setupFlexibleMenu=E8.prototype.setupFlexibleMenu;E8.prototype.iconButtonColorChanged=E8.prototype.iconButtonColorChanged;E8.prototype.updateButtonOverrides=E8.prototype.updateButtonOverrides;
_.g([_.e(_.nl),_.N("design:type",Object)],E8.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],E8.prototype,"ytRendererstamperBehavior",void 0);_.g([_.BF("#button-shape"),_.N("design:type",HTMLElement)],E8.prototype,"buttonShape",void 0);_.g([_.BF("#button"),_.N("design:type",Object)],E8.prototype,"button",void 0);
_.g([_.U(),_.N("design:type",Object)],E8.prototype,"data",void 0);_.g([_.U({computed:"computeTopLevelButtonData(data)"}),_.N("design:type",Array)],E8.prototype,"topLevelButtonData",void 0);_.g([_.U(),_.N("design:type",Array)],E8.prototype,"flexAsTopLevelButtons",void 0);_.g([_.U({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.N("design:type",Array)],E8.prototype,"items",void 0);_.g([_.U({value:"MORE_VERT"}),_.N("design:type",String)],E8.prototype,"icon",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],E8.prototype,"safeArea",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.N("design:type",Boolean)],E8.prototype,"menuActive",void 0);_.g([_.U(),_.N("design:type",Boolean)],E8.prototype,"menuFocused",void 0);_.g([_.U({value:"bottom"}),_.N("design:type",String)],E8.prototype,"buttonTooltipPosition",void 0);_.g([_.U(),_.N("design:type",Boolean)],E8.prototype,"overlayOpen",void 0);
_.g([_.U({value:!0}),_.N("design:type",Boolean)],E8.prototype,"forceIconButton",void 0);_.g([_.U(),_.N("design:type",Boolean)],E8.prototype,"styleActionButton",void 0);_.g([_.U(),_.N("design:type",Boolean)],E8.prototype,"disableTextTransformOnButtons",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],E8.prototype,"tonalOverride",void 0);_.g([_.U(),_.N("design:type",Object)],E8.prototype,"threeDotSize",void 0);
_.g([_.U(),_.N("design:type",Object)],E8.prototype,"threeDotButtonOverride",void 0);_.g([_.U(),_.N("design:type",Object)],E8.prototype,"isOverlay",void 0);_.g([_.U(),_.N("design:type",Object)],E8.prototype,"useOverlayDark",void 0);_.g([_.U({computed:"computeButtonOverride(tonalOverride)"}),_.N("design:type",Object)],E8.prototype,"buttonOverride",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],E8.prototype,"hasCustomIconColor",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("flexAsTopLevelButtons"),_.N("design:type",Object),_.N("design:paramtypes",[])],E8.prototype,"hasFlexibleItems",null);_.g([_.U({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.N("design:type",Boolean)],E8.prototype,"hasItems",void 0);_.g([_.U(),_.N("design:type",Object)],E8.prototype,"topLevelIconsOnly",void 0);
_.g([_.JU("topLevelIconsOnly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],E8.prototype,"updateButtonOverrides",null);_.g([_.R("topLevelIconsOnly"),_.N("design:type",Object),_.N("design:paramtypes",[])],E8.prototype,"buttonOverrides",null);_.g([_.BF("#top-level-buttons-computed"),_.N("design:type",HTMLElement)],E8.prototype,"topLevelButtonsContainer",void 0);_.g([_.pg(".top-level-buttons > *"),_.N("design:type",Array)],E8.prototype,"topLevelButtons",void 0);
_.g([_.BF("#flexible-item-buttons"),_.N("design:type",HTMLElement)],E8.prototype,"flexibleItemButtonsContainer",void 0);_.g([_.pg("#flexible-item-buttons > *"),_.N("design:type",Array)],E8.prototype,"flexibleItemButtons",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],E8.prototype,"iconButtonColorChanged",null);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],E8.prototype,"setupFlexibleMenu",null);_.g([_.wn("topLevelIconsOnly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],E8.prototype,"resetFlexibleItems",null);_.g([_.JU("tonalOverride"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],E8.prototype,"tonalOverrideChanged",null);
_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],E8.prototype,"onPopupOpened",null);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],E8.prototype,"onPopupClosed",null);_.g([_.PF("yt-popup-canceled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],E8.prototype,"onPopupCanceled",null);
_.F(E8,"ytd-menu-renderer",function(){if(MLw===void 0){var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);MLw=u}u=MLw;return u},{mode:_.zW("kevlar_poly_si_batch_j030")?1:2});var Yb0;var AIw;_.LD=_.rf(function(u){var K=u.data;var l=function(){if(K().icon)a:{var D={iconName:K().icon};for(var d=_.GB().resolve(_.Q2),C=_.y([12,24]),W=C.next();!W.done;W=C.next()){var M=W.value;W=Object.assign({},D,{iconStyle:"youtube_fill",iconSize:M});M=Object.assign({},D,{iconStyle:"youtube_outline",iconSize:M});if(d.resolveIcon(W)){D=W;break a}if(d.resolveIcon(M)){D=M;break a}}D=void 0}else D=void 0;return D};
u={};return _.n("badge-shape",{class:_.JB("badge-shape-wiz",function(){return n7b(K().type)},(u["badge-shape-wiz--overlay"]=function(){return K().isOverlay},u["badge-shape-wiz--ads-include-dot"]=function(){return K().adsIncludeDot},u["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(K().type){case 16:case 17:case 18:var D=!0;
break a;default:D=!1}return D},u["badge-shape-wiz--status-badge"]=function(){a:switch(K().type){case 11:case 12:case 13:case 14:case 15:var D=!0;
break a;default:D=!1}return D},u["badge-shape-wiz--no-text"]=function(){return!K().text},u["badge-shape-wiz--modern"]=function(){return K().modern||_.S("web_modern_badge_shape")},u)),
style:_.Fb({"background-color":function(){var D;return(D=K().customColors)==null?void 0:D.backgroundColor}}),
role:function(){return K().accessibilityText?"img":void 0},
"aria-label":function(){return K().accessibilityText}},_.n(_.r,{cond:function(){return K().animation},
then:function(D){return _.n(_.O$,{className:"badge-shape-wiz__icon",data:D,animationName:function(){return D().animationConfig.name||""}})}}),_.n(_.r,{cond:function(){var D;
return l()&&!((D=K())==null?0:D.animation)},
then:function(){return _.n("div",{class:"badge-shape-wiz__icon"},_.n(UjZ,{data:function(){return l()}}))}}),_.n("div",{class:"badge-shape-wiz__text"},function(){var D;
return(D=K())==null?void 0:D.text}))},"R");
_.LD.idomCompat=!0;_.SX(_.LD,"badge-shape",{props:{data:_.M6}});var uB=function(){var u=_.Q.apply(this,arguments)||this;u.systemIcons=_.S("kevlar_system_icons");u.animated=_.S("animated_live_badge_icon");u.useBadgeShape=_.S("web_badge_shape_defrag");return u};
_.c(uB,_.Q);_.I=uB.prototype;_.I.addTooltips=function(){for(var u=_.bi(this.hostElement).querySelectorAll(".badge"),K=0,l;l=u[K++];){var D=this.repeatElement.itemForElement(l);l=_.bi(l);l.lastChild&&l.lastChild.is==="tp-yt-paper-tooltip"&&l.removeChild(l.lastChild);if(D=D.metadataBadgeRenderer&&D.metadataBadgeRenderer.tooltip){var d=_.GF("tp-yt-paper-tooltip");(0,_.zQ)(d).textContent=D;d.setAttribute("position","top");d.setAttribute("aria-hidden","true");l.appendChild(d)}}};
_.I.badgesChanged=function(){var u=this;_.dw().parkOrScheduleJob(function(){u.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.I.standaloneRoundedBadgeChanged=function(){var u=this.useRoundedBadge?this.useRoundedBadge:void 0;u&&(this.useRoundedBadge=u)};
_.I.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.I.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.I.computeStyle=function(u){_.S("enable_html5_teal_ad_badge")&&u==="BADGE_STYLE_TYPE_AD"&&(u="badge-style-type-ad-alternate");_.S("kevlar_ytb_live_badges")&&u==="BADGE_STYLE_TYPE_LIVE_NOW"&&(u="badge-style-type-live-now-alternate");return u?u.toLowerCase().replace(/_/g,"-"):""};
_.I.computeRole=function(u){return this.computeAriaLabel(u)?"img":"status"};
_.I.computeAriaLabel=function(u){var K;return(u==null?void 0:(K=u.accessibilityData)==null?void 0:K.label)||(u==null?void 0:u.label)};
_.I.computeBadgeShape=function(u){var K;if(u){var l,D=qXb(u.style),d=$8L(u.style),C=u.label,W=((l=u.accessibilityData)==null?void 0:l.label)||u.label;u=(K=u.icon)==null?void 0:K.iconType;K={type:D,brNzRatingBadgeType:d,text:C,accessibilityText:W,icon:u!=="PREMIUM"?u:void 0}}else K={};return K};
_.I.updateComputedBadges=function(u,K,l){var D=this;(K=K?[K]:l?[l]:void 0)?this.computedBadges=K:this.computedBadges=u==null?void 0:u.filter(function(d){var C;if((C=d.metadataBadgeRenderer)==null?0:C.groups){C=!1;d=_.y(d.metadataBadgeRenderer.groups);for(var W=d.next();!W.done;W=d.next()){W=W.value;var M=void 0;C=C||((M=D.hiddenBadgeGroups)==null?void 0:M.includes(W))}return!C}return!0})};
_.I.useFilledIcons=function(u){return _.S("kevlar_system_icons")&&(u==="AUDIO_BADGE"||u==="CHECK_CIRCLE_THICK"||u==="OFFICIAL_ARTIST_BADGE"||u==="SPONSORSHIP_STAR"||u==="PERSON_RADAR_FILLED"||u==="PERSON_RADAR")};
_.I.computeBadgeShapeStyle=function(u){return this.useBadgeShape?u==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||u==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.I.computeIcon=function(u){var K,l;u=u==null?void 0:(K=u.metadataBadgeRenderer)==null?void 0:(l=K.icon)==null?void 0:l.iconType;if(u!=="PREMIUM"&&u)return _.fr(u)};
_.I.computeStandaloneBadge=function(u){var K;u=u==null?void 0:(K=u.icon)==null?void 0:K.iconType;return u==="PREMIUM_STANDALONE"||u==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
uB.prototype.hiddenBadgeGroupsChanged=uB.prototype.hiddenBadgeGroupsChanged;uB.prototype.standaloneBadgeChanged=uB.prototype.standaloneBadgeChanged;uB.prototype.standaloneRoundedBadgeChanged=uB.prototype.standaloneRoundedBadgeChanged;uB.prototype.badgesChanged=uB.prototype.badgesChanged;_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],uB.prototype,"hidden",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],uB.prototype,"componentBehavior",void 0);
_.g([_.U(),_.N("design:type",Array)],uB.prototype,"badges",void 0);_.g([_.U(),_.N("design:type",Object)],uB.prototype,"topStandaloneBadge",void 0);_.g([_.U(),_.N("design:type",Object)],uB.prototype,"bottomStandaloneBadge",void 0);_.g([_.U(),_.N("design:type",Object)],uB.prototype,"computedBadges",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],uB.prototype,"mediumFontAdBadge",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],uB.prototype,"useRoundedBadge",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],uB.prototype,"largeFontAdBadge",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],uB.prototype,"overlayAd",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],uB.prototype,"overlayPremium",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],uB.prototype,"noDotAdBadge",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],uB.prototype,"collectionTruncate",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],uB.prototype,"isThumbnailBadge",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],uB.prototype,"wrapBadges",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],uB.prototype,"systemIcons",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],uB.prototype,"animated",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],uB.prototype,"useBadgeShape",void 0);_.g([_.U({value:[]}),_.N("design:type",Array)],uB.prototype,"hiddenBadgeGroups",void 0);_.g([_.BF("#repeat"),_.N("design:type",AU)],uB.prototype,"repeatElement",void 0);_.g([_.wn("badges"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uB.prototype,"badgesChanged",null);
_.g([_.wn("useRoundedBadge"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uB.prototype,"standaloneRoundedBadgeChanged",null);_.g([_.wn("topStandaloneBadge","bottomStandaloneBadge"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uB.prototype,"standaloneBadgeChanged",null);_.g([_.wn("hiddenBadgeGroups"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uB.prototype,"hiddenBadgeGroupsChanged",null);
_.g([_.T({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],uB);
var XG2=_.at()(uB,"ytd-badge-supported-renderer",function(){if(AIw===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);AIw=u}u=AIw;return u},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.zW("kevlar_poly_si_batch_j053")?1:2});var KZ=function(){var u=_.Q.apply(this,arguments)||this;u.iconType="STAR";u.standardizeIconSize=_.S("kevlar_system_icons");u.mediaHoverOverlayInitialVisibility=_.S("enable_top_landscape_image_button_command_web");u.noBottomMargin=!1;u.thumbnailObjectFit="CONTAIN";u.thumbnailFitHeight=!0;u.actionMap={"yt-mute-ad-action":"handleMuteAd"};return u};
_.c(KZ,_.Q);_.I=KZ.prototype;
_.I.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"}}}};
_.I.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",KZ.JSC$14525_DEFAULT_CLICK_LOCATION_BEHAVIOR,KZ.JSC$14525_CLICK_LOCATION_ID_MAP))};
_.I.onTap=function(u){if(!_.S("use_on_click_for_desktop_display_ad"))this.onTapOrClick(u)};
_.I.onClick=function(u){if(_.S("use_on_click_for_desktop_display_ad"))this.onTapOrClick(u)};
_.I.onTapOrClick=function(u){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,u,!1)};
_.I.updateMediaBackgroundImage=function(){var u=this.get("data.image.thumbnail.thumbnails");u&&(u=_.bt(u,0))&&_.e8(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+u+")"})};
_.I.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var u=0;u<this.data.impressionEndpoints.length;u++){var K=this.data.impressionEndpoints[u];K.clickTrackingParams&&delete K.clickTrackingParams;_.GB().resolve(_.t9).resolveCommand(K,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var l;((l=this.data)==null?0:l.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.I.handleMuteAd=function(){};
_.I.attached=function(){var u=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&u.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.MN.Object.defineProperties(KZ.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.data)==null||!u.titleText)return"";var K;return _.QQ("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((K=this.data)==null?void 0:K.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?0:u.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?0:u.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?0:u.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?0:u.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?0:u.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 u;return!((u=this.data)==null||!u.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"}}});
KZ.prototype.onClick=KZ.prototype.onClick;KZ.prototype.onTap=KZ.prototype.onTap;KZ.prototype.dataChanged=KZ.prototype.dataChanged;
KZ.JSC$14525_CLICK_LOCATION_ID_MAP=_.S("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"]]);
KZ.JSC$14525_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.S("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"}];_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],KZ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],KZ.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.KD),_.N("design:type",Object)],KZ.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],KZ.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.tA.YtSparklesClickLocationBehavior),_.N("design:type",Object)],KZ.prototype,"ytSparklesClickLocationBehavior",void 0);_.g([_.e(Ee),_.N("design:type",Object)],KZ.prototype,"ytdActiveViewBehavior",void 0);_.g([_.e([_.bf.YtActionHandlerBehavior]),_.N("design:type",Object)],KZ.prototype,"actionHandlerBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],KZ.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],KZ.prototype,"clickCommand",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.Yw}),_.N("design:type",Boolean)],KZ.prototype,"miniMode",void 0);_.g([_.U(),_.N("design:type",String)],KZ.prototype,"iconType",void 0);_.g([_.R("data.titleText"),_.N("design:type",String),_.N("design:paramtypes",[])],KZ.prototype,"titleAriaLabel",null);
_.g([_.R("data.rating"),_.N("design:type",Object),_.N("design:paramtypes",[])],KZ.prototype,"getRating",null);_.g([_.R("data.price"),_.N("design:type",Object),_.N("design:paramtypes",[])],KZ.prototype,"getPrice",null);_.g([_.R("data.thirdLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],KZ.prototype,"getThirdLine",null);_.g([_.R("data.fourthLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],KZ.prototype,"getFourthLine",null);
_.g([_.R("data.fifthLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],KZ.prototype,"getFifthLine",null);_.g([_.R("getRating"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KZ.prototype,"computeRatingHidden",null);_.g([_.R("getPrice"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KZ.prototype,"computePriceHidden",null);_.g([_.R("getThirdLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KZ.prototype,"computeThirdLineHidden",null);
_.g([_.R("getFourthLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KZ.prototype,"computeFourthLineHidden",null);_.g([_.R("getFifthLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KZ.prototype,"computeFifthLineHidden",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.energyIcon"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KZ.prototype,"hasEnergyIcon",null);
_.g([_.R("computePriceHidden","computeRatingHidden"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KZ.prototype,"computeSecondaryTextHidden",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],KZ.prototype,"standardizeIconSize",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],KZ.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],KZ.prototype,"noBottomMargin",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("data.layout"),_.N("design:type",String),_.N("design:paramtypes",[])],KZ.prototype,"layout",null);_.g([_.R("data.layout"),_.N("design:type",Object),_.N("design:paramtypes",[])],KZ.prototype,"mediaThumbnailWidth",null);_.g([_.R("layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KZ.prototype,"useRoundedBadge",null);_.g([_.U(),_.N("design:type",String)],KZ.prototype,"thumbnailObjectFit",void 0);
_.g([_.U(),_.N("design:type",Object)],KZ.prototype,"thumbnailFitHeight",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KZ.prototype,"dataChanged",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],KZ.prototype,"onTap",null);_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],KZ.prototype,"onClick",null);
_.g([_.T({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],KZ);
_.F(KZ,"ytd-display-ad-renderer",function(){if(Yb0!==void 0)return Yb0;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Yb0=u},{mode:1});var mYB;var hFm;var EJw;var rvq=new Map;var LFS=!1;var lB=function(){var u=_.Q.apply(this,arguments)||this;u.DEFAULT_TOOLTIP_OFFSET="10";u.TOOLTIP_OFFSET_NO_BANNER="-8";u.badges=null;u.noEndpoints=!1;u.wrapText=!1;u.forceVerified=!1;u.tooltipPosition="top";u.compactStyle=!1;u.height=0;u.lineHeight=0;return u};
_.c(lB,_.Q);_.I=lB.prototype;_.I.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.I.attached=function(){var u=this;this.observer=new MutationObserver(function(K,l){u.handleResized();l.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.I.detached=function(){this.observer&&this.observer.disconnect()};
_.I.logTooltipEvent=function(){_.S("kevlar_wiz_tooltip_event_killswitch")||LFS||(_.v7r("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),LFS=!0)};
_.I.handleWindowResized=function(){this.handleResized()};
_.I.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")))};
_.I.onHeightChanged=function(){if(this.verified){var u=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.E3("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=u:this.textContainerEl.style.marginRight=u}};
_.I.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.E3("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.I.handleResized=function(){var u=this;this.verified&&_.YL.addLowPriorityJob(function(){u.fitBackgroundToText();var K=getComputedStyle(u.hostElement).lineHeight;K&&(K=K.match(/\d+/))&&K.length&&(u.lineHeight=Number(K[0]));u.height=u.lineHeight&&!u.wrapText?u.lineHeight:u.textEl.offsetHeight})};
_.I.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var u=document.createRange(),K=_.bi(this.textEl).children;K.length>0?u.selectNodeContents(K[0]):u.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(u.getBoundingClientRect().width)+"px"}};
_.I.computeChannelBadgeStyle=function(u){var K;if((u==null?0:(K=u.runs)==null?0:K.length)&&u.runs[0].textColor)return"--ytd-badge-icon-color:"+_.ui(u.runs[0].textColor)+";"};
_.MN.Object.defineProperties(lB.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"?_.o7(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var u=this.get("badges.0.metadataBadgeRenderer.tooltip");if(u)return u}return _.WI(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
lB.prototype.onLineHeightChanged=lB.prototype.onLineHeightChanged;lB.prototype.onHeightChanged=lB.prototype.onHeightChanged;lB.prototype.onChannelNameChanged=lB.prototype.onChannelNameChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],lB.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],lB.prototype,"badges",void 0);_.g([_.U(),_.N("design:type",Object)],lB.prototype,"channelName",void 0);
_.g([_.U(),_.N("design:type",Object)],lB.prototype,"noEndpoints",void 0);_.g([_.U(),_.N("design:type",Object)],lB.prototype,"wrapText",void 0);_.g([_.U(),_.N("design:type",Object)],lB.prototype,"forceVerified",void 0);_.g([_.U(),_.N("design:type",Object)],lB.prototype,"tooltipPosition",void 0);_.g([_.U(),_.N("design:type",String)],lB.prototype,"tooltip",void 0);_.g([_.U(),_.N("design:type",Boolean)],lB.prototype,"hasChannelArt",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],lB.prototype,"compactStyle",void 0);_.g([_.BF("#text-container"),_.N("design:type",HTMLElement)],lB.prototype,"textContainerEl",void 0);_.g([_.BF("#text"),_.N("design:type",Object)],lB.prototype,"textEl",void 0);_.g([_.BF("#verified-tooltip"),_.N("design:type",HTMLElement)],lB.prototype,"verifiedTooltip",void 0);_.g([_.U(),_.N("design:type",Object)],lB.prototype,"height",void 0);
_.g([_.U(),_.N("design:type",Object)],lB.prototype,"lineHeight",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("badges","forceVerified"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lB.prototype,"verified",null);_.g([_.R("badges","verified"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lB.prototype,"hideBadges",null);_.g([_.R("channelName"),_.N("design:type",Object),_.N("design:paramtypes",[])],lB.prototype,"formattedName",null);
_.g([_.R("badges","verified","formattedName"),_.N("design:type",String),_.N("design:paramtypes",[])],lB.prototype,"tooltipText",null);_.g([_.R("hasChannelArt"),_.N("design:type",String),_.N("design:paramtypes",[])],lB.prototype,"tooltipOffset",null);_.g([_.JU("channelName"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lB.prototype,"onChannelNameChanged",null);
_.g([_.JU("height"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lB.prototype,"onHeightChanged",null);_.g([_.JU("lineHeight","height"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lB.prototype,"onLineHeightChanged",null);_.g([_.T({is:"ytd-channel-name",disableElementRegistration:!0})],lB);
_.F(lB,"ytd-channel-name",function(){if(EJw!==void 0)return EJw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return EJw=u},{mode:_.zW("kevlar_poly_si_batch_j036")?1:2});var Dt=function(){var u=_.Q.apply(this,arguments)||this;u.standardizeIconSize=_.S("kevlar_system_icons");return u};
_.c(Dt,_.Q);Dt.prototype.basicPaletteChanged=function(){var u;(u=this.data.color)!=null&&u.basicColorPaletteData&&_.mE(this.hostElement,this.data.color.basicColorPaletteData)};
Dt.prototype.useFilledIcons=function(u){return _.S("kevlar_system_icons")&&(u==="CHECK_CIRCLE_THICK"||u==="OFFICIAL_ARTIST_BADGE")};
_.MN.Object.defineProperties(Dt.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return this.data.authorCreator||((u=this.data)==null?void 0:(K=u.color)==null?void 0:(l=K.basicColorPaletteData)==null?void 0:l.backgroundColor)}}});
Dt.prototype.basicPaletteChanged=Dt.prototype.basicPaletteChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Dt.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Dt.prototype,"standardizeIconSize",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data.authorUnifiedVerified"),_.N("design:type",Object),_.N("design:paramtypes",[])],Dt.prototype,"verified",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Dt.prototype,"creator",null);_.g([_.JU("data.color.basicColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dt.prototype,"basicPaletteChanged",null);_.g([_.T({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Dt);
_.F(Dt,"ytd-author-comment-badge-renderer",function(){if(hFm!==void 0)return hFm;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return hFm=u},{mode:1});var uoa;var dW=function(){return _.Q.apply(this,arguments)||this};
_.c(dW,_.Q);dW.prototype.computeThumbnailWidth=function(u){if(u==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],dW.prototype,"data",void 0);_.g([_.U({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],dW.prototype,"icon",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],dW.prototype,"surface",void 0);
_.g([_.U({reflectToAttribute:!0,value:_.S("enable_shrink_image_size_on_web_posts_singleton")}),_.N("design:type",Boolean)],dW.prototype,"searchSxsUx",void 0);_.g([_.T({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],dW);
_.F(dW,"ytd-backstage-image-renderer",function(){if(uoa!==void 0)return uoa;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return uoa=u},{mode:1});var K22;var CZ=function(){var u=_.Q.apply(this,arguments)||this;u.isLoading=!1;u.selectedItemIndex=-1;return u};
_.c(CZ,_.Q);_.I=CZ.prototype;_.I.computeIsChannelOwner=function(u){if(!u)return!0;u=u[0];return!(u&&(u.signinEndpoint||u.selectServiceEndpoint))};
_.I.computeIsImagePoll=function(u){return(u==null?void 0:u.type)==="POLL_TYPE_IMAGE"};
_.I.computeIsTotalVotesDisabled=function(u){return!(u==null?0:u.totalVotes)};
_.I.thumbnailSrc=function(u){var K,l,D,d;return(u==null?0:(K=u.thumbnails)==null?0:(l=K[0])==null?0:l.url)?_.ES((D=u.thumbnails)==null?void 0:(d=D[0])==null?void 0:d.url):void 0};
_.I.progressWidth=function(u){return"width:"+(u?u*100:0)+"%;"};
_.I.textAreaWidth=function(u){return this.isImagePoll?null:"width:"+(u?u*100:0)+"%;"};
_.I.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.I.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var u=this.data.choices,K=0;K<u.length;K++)if(u[K].selected){this.selectedItemIndex=K;break}};
_.I.onPopupClosed=function(u,K){u=Number(this.pollVotes.selected);K.confirmed&&(this.selectChoice(u,!1),_.Sy(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.I.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.I.onYtCommentPollRevert=function(u,K){K&&(this.selectChoice(K.selectedChoiceIndex,!0),this.set("data.totalVotes",K.totalVotes))};
_.I.onYtServiceRequestSent=function(u,K){if(K.actions)for(u=0;u<K.actions.length;u++){var l=K.actions[u];_.b(l,NA)&&this.set("data.totalVotes",_.b(l,NA).totalVotes)}};
_.I.onYtServiceRequestCompleted=function(u){var K=this.get("detail.data.actionResults.0.feedback",u);u=this.get("detail.data.actionResults.0.status",u);if(K==="FEEDBACK_DESELECT"||K==="FEEDBACK_SELECT")this.isLoading=!1,u==="STATUS_FAILED"?_.xs(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.I.getEndpoint=function(u,K){return K===u?this.data.choices[K].deselectServiceEndpoint||null:this.data.choices[u].selectServiceEndpoint||null};
_.I.selectChoice=function(u,K){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var l=0;l<this.data.choices.length;l++){var D;if(u===this.selectedItemIndex){var d=!1;var C=D=null}else D=(d=l===u)?this.data.choices[l].voteRatioIfSelected:this.data.choices[l].voteRatioIfNotSelected,C=d?this.data.choices[l].votePercentageIfSelected:this.data.choices[l].votePercentageIfNotSelected;this.set("data.choices."+l+".voteRatio",D);
this.set("data.choices."+l+".votePercentage",C);this.set("data.choices."+l+".selected",d)}K||(this.isLoading=!0,(K=this.getEndpoint(u,this.selectedItemIndex))&&_.GB().resolve(_.t9).resolveCommand(K,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===u?-1:u};
_.MN.Object.defineProperties(CZ.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
CZ.prototype.onYtServiceRequestCompleted=CZ.prototype.onYtServiceRequestCompleted;CZ.prototype.onYtServiceRequestSent=CZ.prototype.onYtServiceRequestSent;CZ.prototype.onYtCommentPollRevert=CZ.prototype.onYtCommentPollRevert;CZ.prototype.onPopupClosed=CZ.prototype.onPopupClosed;CZ.prototype.dataChanged=CZ.prototype.dataChanged;_.g([_.e(_.MA),_.N("design:type",Object)],CZ.prototype,"paperItemBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.nl),_.N("design:type",Object)],CZ.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],CZ.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],CZ.prototype,"isLoading",void 0);_.g([_.U({computed:"computeIsChannelOwner(data.choices)"}),_.N("design:type",Boolean)],CZ.prototype,"isChannelOwner",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.N("design:type",Boolean)],CZ.prototype,"isImagePoll",void 0);_.g([_.U({computed:"computeIsTotalVotesDisabled(data)"}),_.N("design:type",Boolean)],CZ.prototype,"isTotalVotesDisabled",void 0);_.g([_.U(),_.N("design:type",Object)],CZ.prototype,"previousPollInfo",void 0);_.g([_.U(),_.N("design:type",Object)],CZ.prototype,"selectedItemIndex",void 0);_.g([_.BF("#poll-votes"),_.N("design:type",Object)],CZ.prototype,"pollVotes",void 0);
_.g([_.R("isChannelOwner"),_.N("design:type",Object),_.N("design:paramtypes",[])],CZ.prototype,"endpointStyle",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CZ.prototype,"dataChanged",null);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],CZ.prototype,"onPopupClosed",null);
_.g([_.PF("yt-comment-poll-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],CZ.prototype,"onYtCommentPollRevert",null);_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],CZ.prototype,"onYtServiceRequestSent",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],CZ.prototype,"onYtServiceRequestCompleted",null);_.g([_.T({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],CZ);
_.F(CZ,"ytd-backstage-poll-renderer",function(){if(K22!==void 0)return K22;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return K22=u},{mode:2});var lZR;var D80={autoplay:!1,loop:!1},d8R={simpleText:""},Im=function(){var u=_.Q.apply(this,arguments)||this;u.isLoading=!1;u.usesPanelLockup=!1;u.selectedItemIndex=-1;u.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},D80,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});u.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},D80,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});u.correctnessAnimationProps=[];u.correctnessAnimationRefs=[];return u};
_.c(Im,_.Q);_.I=Im.prototype;_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.I.computeIsChannelOwner=function(u){if(!u)return!0;u=u[0];return!(u&&(u.signinEndpoint||u.selectServiceEndpoint))};
_.I.computeIsTotalVotesDisabled=function(u){return!(u==null?0:u.totalVotes)};
_.I.computeIsImageQuiz=function(u){return(u==null?void 0:u.type)==="POLL_TYPE_IMAGE"};
_.I.onExplanationChanged=function(){this.expander.reset()};
_.I.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var u=this.data.choices;if(u){this.maybeInitializeQuizLotties(u);for(var K=0;K<u.length;K++)if(u[K].isSelected||this.isChannelOwner&&u[K].isCorrect){this.selectedItemIndex=K;return}this.selectedItemIndex=-1}}};
_.I.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var u=this.selectedItemIndex,K=Number(this.quizVotes.selected);this.selectChoice(K);this.sendVoteAction(K,u);this.quizVotes.selected=-1;var l;u=!((l=this.data)==null?0:l.enableAnimation);this.maybePlayAnswerAnimations(u)}};
_.I.onYtCommentPollRevert=function(u,K){K&&(this.selectChoice(K.selectedChoiceIndex),this.set("data.totalVotes",K.totalVotes))};
_.I.onYtServiceRequestSent=function(u,K){if(K.actions)for(u=_.y(K.actions),K=u.next();!K.done;K=u.next())(K=_.b(K.value,NA))&&this.set("data.totalVotes",K.totalVotes)};
_.I.onYtServiceRequestCompleted=function(u){var K=this.get("detail.data.actionResults.0.feedback",u);u=this.get("detail.data.actionResults.0.status",u);if(K==="FEEDBACK_DESELECT"||K==="FEEDBACK_SELECT")this.isLoading=!1,u==="STATUS_FAILED"?_.xs(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.I.getAnimationPropsForChoiceIndex=function(u,K){return K[u]};
_.I.maybePlayAnswerAnimations=function(u){u=u===void 0?!1:u;var K;if((K=this.data)!=null&&K.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){K=_.y(this.correctnessAnimationRefs);for(var l=K.next();!l.done;l=K.next()){var D=void 0,d=void 0;(D=l.value)==null||(d=D.lottieEl)==null||d.stop()}if(!(this.selectedItemIndex<0)){K=0;u&&(K=this.isCorrect?37:25);var C,W;(C=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(W=C.lottieEl)==null||W.goToAndPlay(u?K:0,!0);if(!(this.isCorrect||
(C=this.data.choices.findIndex(function(G){return G.isCorrect}),C<0))){var M,q;
(q=(M=this.correctnessAnimationRefs[C])==null?void 0:M.lottieEl)==null||q.goToAndPlay(37,!0);var v;M=(v=this.fadeContainers)==null?void 0:v.item(C);!u&&M&&this.fadeIn(M)}}}};
_.I.thumbnailSrc=function(u){var K,l,D,d;return(u==null?0:(K=u.thumbnails)==null?0:(l=K[0])==null?0:l.url)?_.ES((D=u.thumbnails)==null?void 0:(d=D[0])==null?void 0:d.url):void 0};
_.I.a11yVotedText=function(u,K){var l,D,d=((l=this.data)==null?void 0:(D=l.correctVotedText)==null?void 0:D.simpleText)||"",C,W;l=((C=this.data)==null?void 0:(W=C.votedText)==null?void 0:W.simpleText)||"";if(!K)return"";var M,q;if((M=this.data)==null?0:(q=M.choices)==null?0:q[u].isCorrect)return d;var v,G;return((v=this.data)==null?0:(G=v.choices)==null?0:G[u].isSelected)?l:""};
_.I.getEndpoint=function(u,K){return K===u?this.data.choices[u].deselectServiceEndpoint||null:this.data.choices[u].selectServiceEndpoint||null};
_.I.sendVoteAction=function(u,K){if(u=this.getEndpoint(u,K))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(u)};
_.I.selectChoice=function(u){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var K=0;K<this.data.choices.length;K++)this.set("data.choices."+K+".isSelected",u===this.selectedItemIndex?!1:K===u);this.selectedItemIndex=this.selectedItemIndex===u?-1:u};
_.I.maybeInitializeQuizLotties=function(u){var K=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=u.map(function(l){return{animationConfig:l.isCorrect?K.baseCorrectLottiePlayerAnimationConfig:K.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){K.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(l){return l.animationRef||{}})};
_.I.fadeIn=function(u){u.classList.add("fade-in");_.zH(_.YL,function(){u.classList.remove("fade-in")},900)};
_.MN.Object.defineProperties(Im.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.WI(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 u,K;return((u=this.data)==null?void 0:(K=u.choices)==null?void 0:K.some(function(l){return l.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null||!u.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?d8R:this.data.choices[this.selectedItemIndex].explanation||d8R}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null||!u.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Im.prototype.onYtServiceRequestCompleted=Im.prototype.onYtServiceRequestCompleted;Im.prototype.onYtServiceRequestSent=Im.prototype.onYtServiceRequestSent;Im.prototype.onYtCommentPollRevert=Im.prototype.onYtCommentPollRevert;Im.prototype.dataChanged=Im.prototype.dataChanged;Im.prototype.onExplanationChanged=Im.prototype.onExplanationChanged;_.g([_.e(_.MA),_.N("design:type",Object)],Im.prototype,"paperItemBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Im.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Im.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.v2.YtTaskEmitterBehavior),_.N("design:type",Object)],Im.prototype,"ytTaskEmitterBehavior",void 0);_.g([_.e(_.nl),_.N("design:type",Object)],Im.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Im.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Object)],Im.prototype,"isLoading",void 0);_.g([_.U(),_.N("design:type",Object)],Im.prototype,"usesPanelLockup",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.N("design:type",Boolean)],Im.prototype,"isChannelOwner",void 0);_.g([_.U({computed:"computeIsTotalVotesDisabled(data)"}),_.N("design:type",Boolean)],Im.prototype,"isTotalVotesDisabled",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.N("design:type",Boolean)],Im.prototype,"isImageQuiz",void 0);_.g([_.U(),_.N("design:type",Object)],Im.prototype,"previousQuizInfo",void 0);_.g([_.U(),_.N("design:type",Object)],Im.prototype,"selectedItemIndex",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data","usesPanelLockup"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Im.prototype,"shouldUseModernUi",null);
_.g([_.pg(".fade-container"),_.N("design:type",Object)],Im.prototype,"fadeContainers",void 0);_.g([_.U(),_.N("design:type",Array)],Im.prototype,"correctnessAnimationProps",void 0);_.g([_.R("explanation","showCorrectAnswer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Im.prototype,"showExplanation",null);_.g([_.R("isChannelOwner","isAttempted"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Im.prototype,"showCorrectAnswer",null);
_.g([_.R("isChannelOwner","isAttempted","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Im.prototype,"isQuizAnsweringDisabled",null);_.g([_.R("isQuizAnsweringDisabled"),_.N("design:type",Object),_.N("design:paramtypes",[])],Im.prototype,"endpointStyle",null);_.g([_.R("data","selectedItemIndex"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Im.prototype,"isAttempted",null);
_.g([_.R("data","selectedItemIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],Im.prototype,"explanation",null);_.g([_.R("data","selectedItemIndex"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Im.prototype,"isCorrect",null);_.g([_.BF("ytd-expander"),_.N("design:type",Object)],Im.prototype,"expander",void 0);_.g([_.BF("#quiz-votes"),_.N("design:type",Object)],Im.prototype,"quizVotes",void 0);
_.g([_.JU("explanation"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Im.prototype,"onExplanationChanged",null);_.g([_.JU("data","isChannelOwner"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Im.prototype,"dataChanged",null);_.g([_.PF("yt-comment-quiz-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Im.prototype,"onYtCommentPollRevert",null);
_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],Im.prototype,"onYtServiceRequestSent",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Im.prototype,"onYtServiceRequestCompleted",null);_.g([_.T({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Im);
_.F(Im,"ytd-backstage-quiz-renderer",function(){if(lZR!==void 0)return lZR;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return lZR=u},{mode:1});var CVa;var yw=function(){return _.Q.apply(this,arguments)||this};
_.c(yw,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],yw.prototype,"data",void 0);_.g([_.T({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],yw);
_.F(yw,"ytd-post-uploaded-video-renderer",function(){if(CVa!==void 0)return CVa;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return CVa=u},{mode:1});var IZw;var ss=function(){return _.Q.apply(this,arguments)||this};
_.c(ss,_.Q);ss.prototype.useFilledIcons=function(u){return u==="SPONSORSHIP_STAR"};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ss.prototype,"data",void 0);_.g([_.T({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],ss);
var yva=_.at()(ss,"ytd-sponsors-only-badge-renderer",function(){if(IZw===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);IZw=u}u=IZw;return u},{allowedProps:["data"],
mode:1});var sVa;var om=function(){return _.Q.apply(this,arguments)||this};
_.c(om,_.Q);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],om.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],om.prototype,"data",void 0);_.g([_.T({is:"ytd-child-video-renderer",disableElementRegistration:!0})],om);
_.F(om,"ytd-child-video-renderer",function(){if(sVa!==void 0)return sVa;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return sVa=u},{mode:1});var o7H;var W2B;var WR=function(){var u=_.Q.apply(this,arguments)||this;u.size=0;u.enableWebModernCollectionsV2=_.S("web_modern_collections_v2");u.fallbackImageSize={height:void 0,width:9999};u.webModernCollections=!1;return u};
_.c(WR,_.Q);_.I=WR.prototype;_.I.computeBlurredImageSize=function(u){return u?{height:u*2,width:u*2}:this.fallbackImageSize};
_.I.computeImageSize=function(u){return u?{height:u,width:u}:this.fallbackImageSize};
_.I.computeObjectFit=function(u){return u?"FILL":"CONTAIN"};
_.I.computePreserve=function(u){return u?!0:!1};
_.I.setBackground=function(){var u,K;_.S("web_modern_collections_v2")&&((u=this.data)==null?0:(K=u.thumbnail)==null?0:K.sampledThumbnailColor)&&(u=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+u.red+","+u.green+","+u.blue+",1)")};
WR.prototype.setBackground=WR.prototype.setBackground;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],WR.prototype,"watchFeedThumbnail",void 0);_.g([_.U(),_.N("design:type",Object)],WR.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],WR.prototype,"size",void 0);
_.g([_.U({computed:"computeBlurredImageSize(size)"}),_.N("design:type",Object)],WR.prototype,"blurredImageSize",void 0);_.g([_.U({computed:"computeImageSize(size)"}),_.N("design:type",Object)],WR.prototype,"imageSize",void 0);_.g([_.U({computed:"computePreserve(size)"}),_.N("design:type",String)],WR.prototype,"preserve",void 0);_.g([_.U({computed:"computeObjectFit(size)"}),_.N("design:type",String)],WR.prototype,"objectFit",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],WR.prototype,"enableWebModernCollectionsV2",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],WR.prototype,"webModernCollections",void 0);_.g([_.JU("data.thumbnail.sampledThumbnailColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WR.prototype,"setBackground",null);_.g([_.T({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],WR);
_.F(WR,"ytd-playlist-custom-thumbnail-renderer",function(){if(W2B!==void 0)return W2B;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return W2B=u},{mode:1});var Hba;var HR=function(){return _.Q.apply(this,arguments)||this};
_.c(HR,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],HR.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Number)],HR.prototype,"width",void 0);_.g([_.T({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],HR);
_.F(HR,"ytd-playlist-video-thumbnail-renderer",function(){if(Hba!==void 0)return Hba;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Hba=u},{mode:1});var MEB;var Mx=function(){return _.Q.apply(this,arguments)||this};
_.c(Mx,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Mx.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Number)],Mx.prototype,"width",void 0);_.g([_.T({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Mx);
_.F(Mx,"ytd-show-custom-thumbnail-renderer",function(){if(MEB!==void 0)return MEB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return MEB=u},{mode:1});var qXa;var qx=function(){return _.Q.apply(this,arguments)||this};
_.c(qx,_.Q);qx.prototype.useFilledIcons=function(u){return u==="MUSIC"||u==="COURSE"};
qx.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=li(this.overlayColor,"0.8");else if(this.overlayColor){var u=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+u.red+","+u.green+","+u.blue+",0.8)"}};
_.MN.Object.defineProperties(qx.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)}}});
qx.prototype.overlayColorChanged=qx.prototype.overlayColorChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],qx.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],qx.prototype,"overlayColor",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data.icon","data.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],qx.prototype,"overlayStyle",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data.icon","data.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],qx.prototype,"overlayTextStyle",null);_.g([_.JU("overlayColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qx.prototype,"overlayColorChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],qx);
_.F(qx,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(qXa!==void 0)return qXa;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return qXa=u},{mode:1});var $8k;var $_=function(){var u=_.Q.apply(this,arguments)||this;u.active=!1;return u};
_.c($_,_.Q);$_.prototype.computeIsSpinnerHidden=function(u){return(u==null?void 0:u.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
$_.prototype.computeOverlayIcon=function(u){return(u==null?void 0:u.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(u==null?void 0:u.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],$_.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],$_.prototype,"active",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],$_);
_.F($_,"ytd-thumbnail-overlay-downloading-renderer",function(){if($8k!==void 0)return $8k;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return $8k=u},{mode:1});var n7a;var nZ=function(){return _.Q.apply(this,arguments)||this};
_.c(nZ,_.Q);_.MN.Object.defineProperties(nZ.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],nZ.prototype,"data",void 0);_.g([_.R("data.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],nZ.prototype,"text",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],nZ);
_.F(nZ,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(n7a!==void 0)return n7a;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return n7a=u},{mode:1});var rvH,v72=function(){if(rvH!==void 0)return rvH;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return rvH=u};var rW=function(){return _.Q.apply(this,arguments)||this};
_.c(rW,_.Q);_.MN.Object.defineProperties(rW,{template:{configurable:!0,enumerable:!0,get:function(){return v72()}}});
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],rW.prototype,"animateEqualizer",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],rW);_.at()(rW,"ytd-thumbnail-overlay-equalizer",function(){return v72()},{allowedProps:["animateEqualizer"],
mode:1});var GDw;var vR=function(){var u=_.Q.apply(this,arguments)||this;u.nowPlayingBadge=_.S("web_now_playing_badge");u.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return u};
_.c(vR,_.Q);vR.prototype.activeChanged=function(){var u=this;_.S("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.W_(this,function(){_.xs(u.hostElement,"yt-playlist-lockup-now-playing-active",u)})};
vR.prototype.onMiniplayerPlayStateChanged=function(u){var K,l=(K=_.b(_.B3().currentEndpoint,_.oy))==null?void 0:K.videoId;this.isVideoPlaying=u&&(_.S("web_limit_now_playing_animation_killswitch")||this.videoId===l)};
vR.prototype.activeChanged=vR.prototype.activeChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],vR.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],vR.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],vR.prototype,"isVideoPlaying",void 0);_.g([_.U(),_.N("design:type",String)],vR.prototype,"videoId",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],vR.prototype,"equalizerOnly",void 0);_.g([_.U(),_.N("design:type",Boolean)],vR.prototype,"isActive",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],vR.prototype,"nowPlayingBadge",void 0);_.g([_.JU("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vR.prototype,"activeChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],vR);
_.F(vR,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(GDw!==void 0)return GDw;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return GDw=u},{mode:1});var tEk;var Gf=function(){return _.Q.apply(this,arguments)||this};
_.c(Gf,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Gf.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Gf);
_.F(Gf,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(tEk!==void 0)return tEk;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return tEk=u},{mode:_.zW("kevlar_poly_si_batch_j025")?1:2});var x8m;var ta=function(){return _.Q.apply(this,arguments)||this};
_.c(ta,_.Q);ta.prototype.onDurationChanged=function(){var u,K;_.bi(this.hostElement).querySelector("#progress").style.width=((K=(u=this.data)==null?void 0:u.percentDurationWatched)!=null?K:0)+"%"};
ta.prototype.onDurationChanged=ta.prototype.onDurationChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],ta.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ta.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],ta.prototype,"isLive",void 0);_.g([_.JU("data.percentDurationWatched"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ta.prototype,"onDurationChanged",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],ta);
_.F(ta,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(x8m!==void 0)return x8m;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return x8m=u},{mode:1});var SXB;var x_=function(){var u=_.Q.apply(this,arguments)||this;u.bottomPanel=!1;u.richGridOverlay=!1;u.watchFeedOverlay=!1;u.isCompact=!1;return u};
_.c(x_,_.Q);x_.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.MN.Object.defineProperties(x_.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?void 0:(K=u.icon)==null?void 0:K.iconType)==="PLAY_ALL"&&_.S("kevlar_system_icons")}}});
x_.prototype.widthChanged=x_.prototype.widthChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],x_.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Number)],x_.prototype,"width",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],x_.prototype,"bottomPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],x_.prototype,"richGridOverlay",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],x_.prototype,"watchFeedOverlay",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],x_.prototype,"isCompact",void 0);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],x_.prototype,"isIconFilled",null);_.g([_.JU("width","watchFeedOverlay"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],x_.prototype,"widthChanged",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],x_);
_.F(x_,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(SXB!==void 0)return SXB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return SXB=u},{mode:1});var bba;var ObA=["CLIP","SHORTS"],S$=function(){var u=_.Q.apply(this,arguments)||this;u.animated=_.S("animated_live_badge_icon");u.hasIcon=!1;u.updateTimerIntervalId=0;u.timeSinceLive=0;return u};
_.c(S$,_.Q);_.I=S$.prototype;_.I.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.I.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.I.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.I.hasIconOrText=function(){var u,K;return!!(((u=this.data)==null?0:u.icon)||((K=this.data)==null?0:K.text))};
_.I.initializeLiveBadgeTimer=function(){var u=this,K,l=(K=this.liveBadgeData)==null?void 0:K.startTimestampSec;if(l&&this.canShowLiveBadgeTimer()){var D;K=Number((D=this.liveBadgeData)==null?void 0:D.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(l);this.updateTimerIntervalId=_.zB(function(){u.canShowLiveBadgeTimer()?u.timeSinceLive++:(u.timeSinceLive=0,window.clearInterval(u.updateTimerIntervalId))},K)}else this.timeSinceLive=0};
_.I.canShowLiveBadgeTimer=function(){var u=Date.now(),K,l;return u<(Number((K=this.liveBadgeData)==null?void 0:K.endTimestampSec)-1)*1E3&&u>Number((l=this.liveBadgeData)==null?void 0:l.startTimestampSec)*1E3};
_.MN.Object.defineProperties(S$.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var u=this.data;var K=this.timeSinceLive;var l,D,d,C;a:{var W=u.style;if(W===void 0)W=16;else switch(W){case "LIVE":W=17;break a;default:W=16}}K={type:W,text:K?Y7w({seconds:K}):_.WI(u.text),accessibilityText:(l=u.text)==null?void 0:(D=l.accessibility)==null?void 0:(d=D.accessibilityData)==null?void 0:d.label,icon:(C=u.icon)==null?void 0:C.iconType}}else K={};return K}},
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 u;return(u=this.data)==null?void 0:u.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 ObA.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
S$.prototype.initializeLiveBadgeTimer=S$.prototype.initializeLiveBadgeTimer;S$.prototype.dataChanged=S$.prototype.dataChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],S$.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],S$.prototype,"data",void 0);_.g([_.U({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],S$.prototype,"icon",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],S$.prototype,"animated",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.N("design:type",Boolean)],S$.prototype,"hideTimeStatus",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"hasIcon",void 0);_.g([_.U(),_.N("design:type",Object)],S$.prototype,"timeSinceLive",void 0);_.g([_.R("data","timeSinceLive"),_.N("design:type",Object),_.N("design:paramtypes",[])],S$.prototype,"badgeShapeData",null);
_.g([_.R("data","overlayType"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S$.prototype,"hideBadgeShape",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S$.prototype,"dataChanged",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.style"),_.N("design:type",Object),_.N("design:paramtypes",[])],S$.prototype,"overlayStyle",null);
_.g([_.R("data.liveBadgeData"),_.N("design:type",Object),_.N("design:paramtypes",[])],S$.prototype,"liveBadgeData",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.type"),_.N("design:type",Object),_.N("design:paramtypes",[])],S$.prototype,"overlayType",null);_.g([_.R("overlayType","overlayStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S$.prototype,"useFilledIcon",null);
_.g([_.wn("liveBadgeData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S$.prototype,"initializeLiveBadgeTimer",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],S$);
_.F(S$,"ytd-thumbnail-overlay-time-status-renderer",function(){if(bba!==void 0)return bba;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return bba=u},{mode:_.zW("kevlar_poly_si_batch_j035")?1:2});var cvH;var bB=function(){return _.Q.apply(this,arguments)||this};
_.c(bB,_.Q);bB.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"}}}}};
bB.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(u){if(this.hasPlaybackProgressBar)return{percentDurationWatched:u.percentDurationWatched}};
bB.prototype.computeHasPlaybackProgressBar=function(u){return!!u.percentDurationWatched&&u.percentDurationWatched>0};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],bB.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],bB.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.N("design:type",Boolean)],bB.prototype,"hasPlaybackProgressBar",void 0);
_.g([_.T({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],bB);
_.F(bB,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(cvH!==void 0)return cvH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return cvH=u},{mode:1});var aZk;var zHR=_.rf(function(u){var K=u.data;var l=u.children;var D=function(){return!!K().doubleStack};
return _.n("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!K().experimentEnabled}},_.n(_.r,{cond:K,
then:function(){return _.n("div",null,_.n(_.r,{cond:D,then:function(){var d={};return _.n("div",{class:_.JB("collections-stack-wiz__collection-stack2",function(){return K().customClassName2ndStack},(d["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return K().enableResponsiveMode},d)),
style:_.Fb({"background-color":function(){return tEL(K())}})})}}),_.n("div",{class:_.JB("collections-stack-wiz__collection-stack1",function(){return K().customClassName1stStack},function(){return GDh(K().thumbnailSize?K().thumbnailSize:"medium")}),
style:_.Fb({"background-color":function(){return tEL(K())}})}),l)}}))},"S");_.SX(zHR,"yt-collections-stack",{props:{data:_.M6}});var Os=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};u.webModernCollections=!1;u.isSearch=!1;u.isDoubleStack=!1;u.thumbnailSize="medium";u.enableWebModernCollectionsV2=_.S("web_modern_collections_v2");return u};
_.c(Os,_.Q);_.I=Os.prototype;
_.I.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]]"}}}}}};
_.I.getThumbnailDetails=function(u){if(u!=null&&u.thumbnailRenderer){var K=u.thumbnailRenderer,l;if((l=K.playlistVideoThumbnailRenderer)==null?0:l.thumbnail)return K.playlistVideoThumbnailRenderer.thumbnail;var D;if((D=K.playlistCustomThumbnailRenderer)==null?0:D.thumbnail)return K.playlistCustomThumbnailRenderer.thumbnail;u=u.thumbnailRenderer;var d;if((d=u.showCustomThumbnailRenderer)==null?0:d.thumbnail)return u.showCustomThumbnailRenderer.thumbnail}};
_.I.computeOverlayColor=function(u){var K,l;if((K=this.getThumbnailDetails(u))==null?0:(l=K.darkColorPalette)==null?0:l.section2Color)return this.getThumbnailDetails(u).darkColorPalette.section2Color;var D;return(D=this.getThumbnailDetails(u))==null?void 0:D.sampledThumbnailColor};
_.I.computeWebModernCollections=function(u){if(u==null||!u.thumbnailOverlays)return!1;u=_.y(u.thumbnailOverlays);for(var K=u.next();!K.done;K=u.next()){var l=void 0;if((l=K.value)==null?0:l.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.I.computeNavigationEndpoint=function(u){return zmq(u==null?void 0:u.navigationEndpoint)};
_.MN.Object.defineProperties(Os.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var u=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:u==null?void 0:u.sampledThumbnailColor,vibrantColorPalette:u==null?void 0:u.vibrantColorPalette,darkColorPalette:u==null?void 0:u.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Os.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Os.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(pmH),_.N("design:type",Object)],Os.prototype,"ytdThumbnailBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Os.prototype,"componentBehavior",void 0);
_.g([_.U({value:!1}),_.N("design:type",Boolean)],Os.prototype,"watchFeedThumbnail",void 0);_.g([_.U(),_.N("design:type",Number)],Os.prototype,"customThumbnailSize",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],Os.prototype,"hideAria",void 0);_.g([_.U(),_.N("design:type",Object)],Os.prototype,"data",void 0);_.g([_.U({computed:"computeOverlayColor(data)"}),_.N("design:type",Object)],Os.prototype,"overlayColor",void 0);
_.g([_.U({computed:"computeWebModernCollections(data)"}),_.N("design:type",Object)],Os.prototype,"webModernCollections",void 0);_.g([_.U({computed:"computeNavigationEndpoint(data)"}),_.N("design:type",Object)],Os.prototype,"computedNavigationEndpoint",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Os.prototype,"isSearch",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Os.prototype,"isDoubleStack",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],Os.prototype,"thumbnailSize",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Os.prototype,"enableWebModernCollectionsV2",void 0);_.g([_.R("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.N("design:type",Object),_.N("design:paramtypes",[])],Os.prototype,"collectionStack",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Os);
_.F(Os,"ytd-playlist-thumbnail",function(){if(aZk!==void 0)return aZk;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return aZk=u},{mode:_.zW("kevlar_poly_si_batch_j025")?1:2});var eHH;var cR=function(){var u=_.Q.apply(this,arguments)||this;u.noEndpoints=!1;u.amsterdamPostMvp=_.S("web_amsterdam_post_mvp_playlists");u.badges=[];u.transferState="TRANSFER_STATE_UNKNOWN";return u};
_.c(cR,_.Q);_.I=cR.prototype;_.I.getMetadata=function(u){if(!u)return[];var K=[],l=u.shortViewCountText||u.viewCountText;l&&K.push(_.WI(l));u.publishedTimeText&&K.push(_.WI(u.publishedTimeText));u.upcomingEventData&&u.upcomingEventData.upcomingEventText&&K.push(_.hK(_.WI(u.upcomingEventData.upcomingEventText),Number(u.upcomingEventData.startTime)));return K};
_.I.observeDataForBylineSeparator=function(){this.data&&_.cF(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.I.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.ui(this.metadataColor)};
_.I.getSimpleString=function(u){return _.WI(u)};
_.I.isBylineHidden=function(u){return this.noByline||!((u==null?0:u.longBylineText)||(u==null?0:u.shortBylineText))};
_.I.isMetadataHidden=function(u){var K;return((K=this.getMetadata(u))==null?void 0:K.length)===0};
_.I.isBylineMetadataSeparatorHidden=function(u){return this.isMetadataHidden(u)||!this.shouldShowVideoInfo};
_.I.isLongByline=function(u,K){return K&&!(u==null||!u.longBylineText)};
_.MN.Object.defineProperties(cR.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var u;return this.amsterdamPostMvp&&!((u=this.data)==null||!u.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 _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
cR.prototype.metadataColorChanged=cR.prototype.metadataColorChanged;cR.prototype.observeDataForBylineSeparator=cR.prototype.observeDataForBylineSeparator;_.g([_.e(_.Ll),_.N("design:type",Object)],cR.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],cR.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],cR.prototype,"noEndpoints",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],cR.prototype,"isSlimShort",void 0);
_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],cR.prototype,"radioMeta",void 0);_.g([_.U({selector:_.le}),_.N("design:type",Object)],cR.prototype,"isGridViewEnabled",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],cR.prototype,"richMeta",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],cR.prototype,"amsterdamPostMvp",void 0);_.g([_.U(),_.N("design:type",Boolean)],cR.prototype,"noByline",void 0);
_.g([_.U({computed:"isLongByline(data, radioMeta)"}),_.N("design:type",Boolean)],cR.prototype,"longByline",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],cR.prototype,"truncateMetadataLine",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],cR.prototype,"miniMode",void 0);_.g([_.U(),_.N("design:type",Number)],cR.prototype,"metadataColor",void 0);_.g([_.U(),_.N("design:type",Array)],cR.prototype,"badges",void 0);
_.g([_.U({selector:_.EV,selectorArgs:["data.videoId"]}),_.N("design:type",String)],cR.prototype,"transferState",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],cR.prototype,"isDownloading",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],cR.prototype,"typographyBump",void 0);_.g([_.BF("#metadata-line"),_.N("design:type",HTMLElement)],cR.prototype,"metadataLine",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cR.prototype,"observeDataForBylineSeparator",null);_.g([_.JU("metadataColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cR.prototype,"metadataColorChanged",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],cR.prototype,"shouldShowVideoInfo",null);
_.g([_.R("badges"),_.N("design:type",String),_.N("design:paramtypes",[])],cR.prototype,"inlineBadgeClass",null);_.g([_.R("longByline"),_.N("design:type",String),_.N("design:paramtypes",[])],cR.prototype,"longBylineClass",null);_.g([_.R("data","longByline"),_.N("design:type",Object),_.N("design:paramtypes",[])],cR.prototype,"bylineText",null);_.g([_.R("isGridViewEnabled","data"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cR.prototype,"watchFeedBigThumbs",null);
_.g([_.T({is:"ytd-video-meta-block",disableElementRegistration:!0})],cR);
_.F(cR,"ytd-video-meta-block",function(){if(eHH!==void 0)return eHH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return eHH=u},{mode:_.zW("kevlar_poly_si_batch_j080")?1:2});_.E4("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var am=function(){var u=_.Q.apply(this,arguments)||this;u.displayItemCount=2;u.isBackstagePlaylist=!1;u.isPostCompactPlaylist=!1;u.shouldShowChannelThumbnail=!1;u.useModernCollectionsV2=_.S("web_modern_collections_v2");return u};
_.c(am,_.Q);_.I=am.prototype;_.I.computeFirstVideos=function(u,K){return u===void 0||K===void 0?[]:u.slice(0,K)};
_.I.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var u=this.data.thumbnailRenderer;u.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",u.playlistVideoThumbnailRenderer.thumbnail);u.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",u.playlistCustomThumbnailRenderer.thumbnail)}};
_.I.computeThumbnailHeight=function(u,K,l,D,d){return D?d==="BIG"?280:d==="MASSIVE"?337:234:l?240:K?72:u?118:138};
_.I.computeThumbnailWidth=function(u,K,l,D,d){return D?d==="MEDIUM"?450:d==="BIG"?500:d==="MASSIVE"?600:420:l?360:K?128:u?210:246};
_.I.computeUseBiggerThumbs=function(u){return u&&_.S("enable_desktop_search_bigger_thumbs")};
_.I.computeShouldShowChannelThumbnail=function(u,K){return u&&!(K==null||!K.channelThumbnail)};
_.MN.Object.defineProperties(am.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
am.prototype.dataChanged=am.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.s8),_.N("design:type",Object)],am.prototype,"ytdLockupBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],am.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],am.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],am.prototype,"displayItemCount",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],am.prototype,"isBackstagePlaylist",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],am.prototype,"isPostCompactPlaylist",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],am.prototype,"isSearch",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.N("design:type",Boolean)],am.prototype,"useBiggerThumbs",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.bZ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],am.prototype,"biggerThumbsStyle",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],am.prototype,"isDownloads",void 0);_.g([_.U({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.N("design:type",Object)],am.prototype,"shouldShowChannelThumbnail",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],am.prototype,"useModernCollectionsV2",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],am.prototype,"dataChanged",null);_.g([_.R("isSearch"),_.N("design:type",String),_.N("design:paramtypes",[])],am.prototype,"stackThumbnailSize",null);_.g([_.T({is:"ytd-playlist-renderer",disableElementRegistration:!0})],am);
_.F(am,"ytd-playlist-renderer",function(){if(o7H===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);o7H=u}u=o7H;return u},{mode:1});var RHR;var U8a;var zf=function(){var u=_.Q.apply(this,arguments)||this;u.collections=!!_.S("web_modern_collections_v2");u.startX=0;return u};
_.c(zf,_.Q);zf.prototype.onEndpointMouseDown=function(u){this.startX=u.clientX};
zf.prototype.onEndpointClick=function(u){this.startX!==u.clientX&&(u.preventDefault(),u.stopPropagation())};
zf.prototype.computeObjectFit=function(u){return u==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||u==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||u==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
zf.prototype.computeCardStyle=function(u){return u?u.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.MN.Object.defineProperties(zf.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var u,K;return this.collections&&((u=this.data)==null?void 0:(K=u.searchRefinementCardRendererStyle)==null?void 0:K.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}}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],zf.prototype,"data",void 0);_.g([_.U({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.N("design:type",Number)],zf.prototype,"objectFit",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.N("design:type",String)],zf.prototype,"cardStyle",void 0);
_.g([_.U({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],zf.prototype,"roundContainer",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],zf.prototype,"collections",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],zf.prototype,"isAlbumCard",null);_.g([_.R("data","collections","isAlbumCard"),_.N("design:type",Object),_.N("design:paramtypes",[])],zf.prototype,"collectionStack",null);
_.g([_.T({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],zf);
_.F(zf,"ytd-search-refinement-card-renderer",function(){if(U8a!==void 0)return U8a;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return U8a=u},{mode:1});var fZw;var e$=function(){var u=_.Q.apply(this,arguments)||this;u.isRichGrid=!1;return u};
_.c(e$,_.Q);_.g([_.U(),_.N("design:type",Object)],e$.prototype,"data",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],e$.prototype,"componentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],e$.prototype,"ytdReduxBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],e$.prototype,"isRichGrid",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.Yw}),_.N("design:type",Boolean)],e$.prototype,"miniMode",void 0);
_.g([_.T({is:"ytd-game-details-renderer",disableElementRegistration:!0})],e$);
_.F(e$,"ytd-game-details-renderer",function(){if(fZw!==void 0)return fZw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return fZw=u},{mode:1});var QVH;var PVB;var Rm=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return u};
_.c(Rm,_.Q);_.I=Rm.prototype;_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.currentStateData=function(u){var K=u||this.data;return K&&K.states&&K.currentStateId!=null?K.states.find(function(l){return l.stateId===K.currentStateId})||null:null};
_.I.currentStateRendererData=function(u){return(u=this.currentStateData(u))&&u.state&&u.state.buttonRenderer?u.state.buttonRenderer:null};
_.I.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())};
_.I.computeButtonIcon=function(u){u=this.currentStateRendererData(u);var K;return(u==null?0:(K=u.icon)==null?0:K.iconType)?u.icon.iconType.toLowerCase():null};
_.I.computeAccessibility=function(u){return(u=this.currentStateRendererData(u))&&u.accessibilityData?u.accessibilityData.accessibilityData||null:null};
_.I.computeButtonClass=function(u){var K=this.currentStateRendererData(u);if(!K)return"";u="";var l=K.style;l&&(u+=l.toLowerCase().replace(/_/g,"-")+" ");(K=K.size)&&(u+=K.toLowerCase().replace(/_/g,"-")+" ");return u.trim()};
_.I.computeServiceEndpoint=function(u){if(!u)return null;var K=u&&u.serviceEndpoint,l=this.get("command.commandMetadata.webCommandMetadata.sendPost",u);return K?K:l&&u.command?u.command:null};
_.I.computeBellMenuItemParams=function(u){var K;u=(K=_.b(u==null?void 0:u.command,_.ey))==null?void 0:K.commands;if(!u||u.length===0)return null;K=_.b(u[0],_.kg);var l,D;return(K==null?0:(l=K.popup)==null?0:(D=l.menuPopupRenderer)==null?0:D.items)?K.popup.menuPopupRenderer.items.map(function(d){return d.menuServiceItemRenderer.trackingParams}):null};
_.I.handleBellMenuOpenSelectedAction=function(u){var K=u.trackingParams,l=this.computeBellMenuItemParams(this.data);this.data&&K&&l&&l.includes(K)&&this.ytRenderButtonBehavior._setButtonIcon(u.icon.iconType.toLowerCase())};
_.I.onYtServiceRequestCompleted=function(u,K){(u=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",K))&&this.set("data",u)};
_.I.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.I.resetState=function(){this.set("data.currentStateId",3)};
_.I.onYtButtonTapHandler=function(){if(this.data){var u=this.currentStateRendererData(this.data);u&&this.ytRendererBehavior.logExplicitClick(u)}};
Rm.prototype.onYtServiceRequestError=Rm.prototype.onYtServiceRequestError;Rm.prototype.onYtServiceRequestCompleted=Rm.prototype.onYtServiceRequestCompleted;Rm.prototype.stateChanged=Rm.prototype.stateChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Rm.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.e(VG.YtRenderButtonBehavior),_.N("design:type",Object)],Rm.prototype,"ytRenderButtonBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Rm.prototype,"data",void 0);_.g([_.wn("data","data.currentStateId"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Rm.prototype,"stateChanged",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],Rm.prototype,"onYtServiceRequestCompleted",null);_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Rm.prototype,"onYtServiceRequestError",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Rm);
_.F(Rm,"ytd-subscription-notification-toggle-button-renderer",function(){if(PVB!==void 0)return PVB;var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return PVB=u},{mode:1});var Jva;var Us=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};u.tapHandler=function(){if(u.data){var K=u.currentStateRendererData();K&&u.ytRendererBehavior.logExplicitClick(K)}};
return u};
_.c(Us,_.Q);_.I=Us.prototype;_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.currentStateData=function(){var u=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(K){return K.stateId===u.data.currentStateId})||null:null};
_.I.currentStateRendererData=function(){var u=this.currentStateData();return u&&u.state&&u.state.buttonRenderer?u.state.buttonRenderer:null};
_.I.computeAccessibilityLabel=function(){var u,K,l;return(u=this.currentStateRendererData())==null?void 0:(K=u.accessibilityData)==null?void 0:(l=K.accessibilityData)==null?void 0:l.label};
_.I.computeBellMenuItemParams=function(){var u,K,l=(K=_.b((u=this.data)==null?void 0:u.command,_.ey))==null?void 0:K.commands;if(!l||l.length===0)return null;u=_.b(l[0],_.kg);var D,d;return(u==null?0:(D=u.popup)==null?0:(d=D.menuPopupRenderer)==null?0:d.items)?u.popup.menuPopupRenderer.items.map(function(C){return C.menuServiceItemRenderer.trackingParams}):null};
_.I.handleBellMenuOpenSelectedAction=function(u){var K=u.trackingParams,l=this.computeBellMenuItemParams();if(this.data&&K&&l&&l.includes(K)&&(u==null||!u.isDisabled)){var D;((D=_.b(u.serviceEndpoint,_.Ux))==null?void 0:D.signal)!=="CLIENT_SIGNAL"&&(this.icon=u.icon.iconType)}};
_.I.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.I.onYtServiceRequestCompleted=function(u,K){if(u=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",K))this.icon=void 0,this.set("data",u)};
_.I.onYtServiceRequestError=function(){this.icon=void 0};
_.MN.Object.defineProperties(Us.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var u=this.data,K=this.textLabel,l=this.hostElement,D=this.computeAccessibilityLabel(),d=this.tapHandler,C=this.isOverlay?"overlay":"mono",W=(u==null?0:u.disableButton)?"disabled":"active";K=K?_.Ep(K):void 0;return{style:C,type:"tonal",state:W,size:"M",focused:!1,formattedButtonText:K,iconPosition:"leading-trailing",onTap:SXZ(u,d,l),accessibilityLabel:D}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var u=this.currentStateRendererData(),K,l,D=(l=this.icon)!=null?l:u==null?void 0:(K=u.icon)==null?void 0:K.iconType;if(D)return _.fr(D)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var u,K,l=(u=this.data)==null?void 0:(K=u.secondaryIcon)==null?void 0:K.iconType;if(l)return _.fr(l)}}});
Us.prototype.onYtServiceRequestError=Us.prototype.onYtServiceRequestError;Us.prototype.onYtServiceRequestCompleted=Us.prototype.onYtServiceRequestCompleted;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Us.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Us.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Us.prototype,"textLabel",void 0);
_.g([_.U(),_.N("design:type",String)],Us.prototype,"icon",void 0);_.g([_.U(),_.N("design:type",Boolean)],Us.prototype,"isOverlay",void 0);_.g([_.R("data.*","textLabel"),_.N("design:type",Object),_.N("design:paramtypes",[])],Us.prototype,"computedButtonShape",null);_.g([_.R("data.*","icon"),_.N("design:type",Object),_.N("design:paramtypes",[])],Us.prototype,"computedIcon",null);_.g([_.R("data.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],Us.prototype,"computedSecondaryIcon",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],Us.prototype,"onYtServiceRequestCompleted",null);_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Us.prototype,"onYtServiceRequestError",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Us);
_.F(Us,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(Jva!==void 0)return Jva;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return Jva=u},{mode:_.zW("kevlar_poly_si_batch_j081")?1:2});var jVA;_.SX(JIw,"yt-animated-action",{props:{backgroundLottieRef:_.M6,foregroundLottieRef:_.M6,wrapperClass:_.M6,disableAnimation:_.M6},unsafeExternallySettableAttributes:new Set(["key"])});var fZ=function(){var u=_.Q.apply(this,arguments)||this;u.animatedActionEnabled=_.S("web_animated_actions");u.foregroundLottieRef={};u.backgroundLottieRef={};u.forceIconOnly=!1;u.showTextWhileAnimating=!1;u.keyboardFocused=!1;u.isAnimating=!1;u.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return u};
_.c(fZ,_.Q);_.I=fZ.prototype;_.I.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.I.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]]"}}}}}};
_.I.attached=function(){this.keyboardFocused=!1};
_.I.onYtServiceRequestSent=function(u,K){(this.get("endpoint.subscribeEndpoint",K)||this.get("endpoint.unsubscribeEndpoint",K))&&this.updateSubscriptionState(!this.subscribed)};
_.I.onYtServiceRequestCompleted=function(u,K){(u=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",K.data))&&this.bellButton&&(this.bellButton.data=u)};
_.I.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.e8(this.hostElement)};
_.I.onPlayerSubscribe=function(u){this.isCompactRed()||u!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.I.onPlayerUnsubscribe=function(u){this.isCompactRed()||u!==this.data.channelId||this.updateSubscriptionState(!1)};
_.I.handleUpdateSubscribeButtonAction=function(u){u=_.b(u,Li2);var K;u&&u.channelId===((K=this.data)==null?void 0:K.channelId)&&this.updateSubscriptionState(!!u.subscribed)};
_.I.computeButtonStyle=function(u){return this.get("style.styleType",u)||null};
_.I.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.I.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.I.updateSubscriptionState=function(u){if(u!==this.subscribed){this.set("data.subscribed",u);var K,l=(K=this.data)==null?void 0:K.subscribedEntityKey;l&&this.ytdReduxBehavior.dispatch(_.TT("subscriptionStateEntity",l,{key:l,subscribed:u}));this.isCompactRed()||_.xs(this.hostElement,"yt-subscription-changed",u);u||(_.Sy(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!u),u&&this.hasBellButton&&this.startAnimation())}};
_.I.startAnimation=function(){var u=this;if(!this.isAnimating){var K=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var l;(l=this.backgroundLottieRef.lottieEl)==null||l.goToAndPlay(0);var D;(D=this.foregroundLottieRef.lottieEl)==null||D.goToAndPlay(0);_.YL.addJob(function(){u.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.YL.addJob(function(){u.updateContainerToFitContent(!!u.subscribed,!0)},2,1500);
_.YL.addJob(function(){u.isAnimating=!1},2,K)}};
_.I.maybeAnimateBellIcon=function(){var u=_.O9(this.hostElement).querySelector("yt-animated-icon");if(u){var K;(K=u.animationRef.lottieEl)==null||K.goToAndPlay(0)}};
_.I.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.I.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.I.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var u;this.unsubscribedWidth=(u=this.subscribeButtonShape)==null?void 0:u.getBoundingClientRect().width}var K;this.subscribedWidth=(K=this.bellButton)==null?void 0:K.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.I.updateContainerToFitContent=function(u,K){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(u?(u=this.subscribedWidth,K=this.isAnimating&&!K,this.subscribedIconOnlyWidth===void 0||K||(u=this.subscribedIconOnlyWidth),this.hostElement.style.width=u+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.I.clearContainerSize=function(){this.hostElement.style.width=""};
_.I.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.I.maybeSetSubscribedButtonIconOnlyWidth=function(){var u=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 K;u.subscribedIconOnlyWidth=(K=u.bellButton)==null?void 0:K.getBoundingClientRect().width;requestAnimationFrame(function(){if(u.bellButton){var l;u.bellButton.textLabel=
(l=u.data)==null?void 0:l.subscribedButtonText}})})))};
_.MN.Object.defineProperties(fZ.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 u;return(u=this.data)==null?void 0:u.subscribedButtonText}var K;return this.forceIconOnly?void 0:(K=this.data)==null?void 0:K.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var u,K,l=((u=this.data)==null?void 0:(K=u.timedAnimationData)==null?void 0:K.animationTiming)||[];return{uniqueId:"subscribe",timings:l,enabled:l.length>0&&!this.subscribed,experimentEnabled:l.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var u;return!this.subscribed&&((u=this.data)==null?void 0:u.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 u={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var K=u.renderer;var l=u.element;var D=u.subscribed;var d=u.commandController;var C=u.isOverlay;u=u.stopPropagation;var W=aZL(K,D);C&&(W.style="overlay");C=Object;var M=C.assign,q;a:switch((q=K.style)==null?void 0:q.styleType){case "COMPACT_GRAY":case "COMPACT_RED":q={size:"S"};break a;default:q={size:"M"}}var v=cvq(K,
D);var G=(G=D?K.subscribedButtonText:K.unsubscribedButtonText)?_.Ep(G):void 0;return M.call(C,{},W,q,{focused:!1,toggled:D,accessibilityLabel:v,formattedButtonText:G,onTap:ObH(K,D,l,d,u)})}}}});
fZ.prototype.onMouseDown=fZ.prototype.onMouseDown;fZ.prototype.onDataChanged=fZ.prototype.onDataChanged;fZ.prototype.observedSubscribed=fZ.prototype.observedSubscribed;fZ.prototype.onYtServiceRequestCompleted=fZ.prototype.onYtServiceRequestCompleted;fZ.prototype.onYtServiceRequestSent=fZ.prototype.onYtServiceRequestSent;fZ.prototype.maybeUpdateBellButtonText=fZ.prototype.maybeUpdateBellButtonText;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],fZ.prototype,"ytComponentBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],fZ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],fZ.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],fZ.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],fZ.prototype,"data",void 0);
_.g([_.U({selectorArgs:["data.subscribedEntityKey"],selector:xFL}),_.N("design:type",Object)],fZ.prototype,"subscriptionStateEntity",void 0);_.g([_.U({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.N("design:type",Boolean)],fZ.prototype,"subscribed",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],fZ.prototype,"branded",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fZ.prototype,"animatedActionEnabled",void 0);
_.g([_.U(),_.N("design:type",Object)],fZ.prototype,"foregroundLottieRef",void 0);_.g([_.U(),_.N("design:type",Object)],fZ.prototype,"backgroundLottieRef",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],fZ.prototype,"overlayButton",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.N("design:type",Object)],fZ.prototype,"buttonStyle",void 0);_.g([_.U(),_.N("design:type",Object)],fZ.prototype,"forceIconOnly",void 0);
_.g([_.U(),_.N("design:type",Object)],fZ.prototype,"showTextWhileAnimating",void 0);_.g([_.U({value:function(){return!!_.GB().resolve(_.vv(_.zF))&&_.S("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.N("design:type",Boolean)],fZ.prototype,"useKeyboardFocused",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fZ.prototype,"keyboardFocused",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fZ.prototype,"isAnimating",void 0);_.g([_.R("data.notificationPreferenceButton.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],fZ.prototype,"hasBellButton",null);
_.g([_.JU("subscribedButtonText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fZ.prototype,"maybeUpdateBellButtonText",null);_.g([_.R("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],fZ.prototype,"subscribedButtonText",null);_.g([_.R("data.timedAnimationData.animationTiming","subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],fZ.prototype,"smartimationSettings",null);
_.g([_.U({reflectToAttribute:!0}),_.R("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],fZ.prototype,"subscribeButtonHidden",null);_.g([_.U({reflectToAttribute:!0}),_.R("subscribed","hasBellButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],fZ.prototype,"subscribeButtonInvisible",null);
_.g([_.U({reflectToAttribute:!0}),_.R("subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],fZ.prototype,"unsubscribeButtonHidden",null);_.g([_.BF("ytd-subscription-notification-toggle-button-renderer-next"),_.N("design:type",Object)],fZ.prototype,"bellButton",void 0);_.g([_.BF("#subscribe-button-shape"),_.N("design:type",HTMLElement)],fZ.prototype,"subscribeButtonShape",void 0);
_.g([_.R("overlayButton","subscribed","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],fZ.prototype,"buttonShape",null);_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],fZ.prototype,"onYtServiceRequestSent",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],fZ.prototype,"onYtServiceRequestCompleted",null);
_.g([_.JU("subscribed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fZ.prototype,"observedSubscribed",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fZ.prototype,"onDataChanged",null);_.g([_.PF("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],fZ.prototype,"onMouseDown",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],fZ);
_.F(fZ,"ytd-subscribe-button-renderer",function(){if(jVA!==void 0)return jVA;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return jVA=u},{mode:1});var Qw=function(){var u=_.Q.apply(this,arguments)||this;u.isRichGrid=!1;return u};
_.c(Qw,_.Q);Qw.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"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Qw.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Qw.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Qw.prototype,"isRichGrid",void 0);_.g([_.T({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Qw);
_.F(Qw,"ytd-game-card-renderer",function(){if(QVH!==void 0)return QVH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return QVH=u},{mode:1});var PR={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.S("defer_menus")&&!x$a?0:void 0,waitForSignal:"eocs"};var B10;var pDm;var Ja=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return u};
_.c(Ja,_.Q);_.I=Ja.prototype;_.I.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.I.onSeriesReminderStateEntityChange=function(){var u,K,l;((u=this.eventReminderStateEntity)==null?0:u.key)&&((K=this.seriesReminderStateEntity)==null?void 0:K.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((l=this.eventReminderStateEntity)==null?void 0:l.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.TT("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.I.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.I.onYtServiceRequestError=function(){var u;this.updateReminderStateEntitiesFromButtonState((u=this.data)==null?void 0:u.currentState)};
_.I.handleUpdateUpcomingEventReminderButtonStateCommand=function(u){if(u=_.b(u,GtS)){var K,l=(K=this.data)==null?void 0:K.targetId;l&&u.targetId===l&&_.Cr(this.updateReminderStateEntitiesFromButtonState.bind(this,u.state))}};
_.I.getButtonStateFromReminderState=function(){var u;if(((u=this.seriesReminderStateEntity)==null?void 0:u.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var K;if(((K=this.eventReminderStateEntity)==null?void 0:K.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var l,D;if(((l=this.seriesReminderStateEntity)==null?void 0:l.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((D=this.eventReminderStateEntity)==
null?void 0:D.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var d;return(d=this.data)==null?void 0:d.currentState};
_.I.updateReminderStateEntitiesFromButtonState=function(u){if(u){switch(u){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":u="UPCOMING_EVENT_REMINDER_STATE_NONE";var K="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":u="UPCOMING_EVENT_REMINDER_STATE_SINGLE";K="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":u="UPCOMING_EVENT_REMINDER_STATE_NONE";K="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var l;
((l=this.eventReminderStateEntity)==null?0:l.key)&&this.ytdReduxBehavior.dispatch(_.TT("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:u})));var D;((D=this.seriesReminderStateEntity)==null?0:D.key)&&this.ytdReduxBehavior.dispatch(_.TT("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:K})))}};
_.MN.Object.defineProperties(Ja.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var u=this.getButtonStateFromReminderState(),K,l;if(u&&((K=this.data)==null?0:(l=K.states)==null?0:l.length))for(K=_.y(this.data.states),l=K.next();!l.done;l=K.next()){l=l.value;var D=void 0;if(((D=_.b(l,t_H))==null?void 0:D.state)===u)return _.b(l,t_H)}}}});
Ja.prototype.onYtServiceRequestError=Ja.prototype.onYtServiceRequestError;Ja.prototype.onYtServiceRequestCompleted=Ja.prototype.onYtServiceRequestCompleted;Ja.prototype.onSeriesReminderStateEntityChange=Ja.prototype.onSeriesReminderStateEntityChange;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Ja.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ja.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ja.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Ja.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ja.prototype,"data",void 0);_.g([_.U({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:bYq}),_.N("design:type",Object)],Ja.prototype,"eventReminderStateEntity",void 0);
_.g([_.U({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(u,K){return _.eZ(u.entities,"sportsSeriesReminderStateEntity",K)}}),
_.N("design:type",Object)],Ja.prototype,"seriesReminderStateEntity",void 0);_.g([_.R("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ja.prototype,"currentButtonStateRenderer",null);_.g([_.JU("seriesReminderStateEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ja.prototype,"onSeriesReminderStateEntityChange",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ja.prototype,"onYtServiceRequestCompleted",null);_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ja.prototype,"onYtServiceRequestError",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],Ja);
_.F(Ja,"ytd-upcoming-event-reminder-button-renderer",function(){if(pDm!==void 0)return pDm;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
return pDm=u},{mode:1});var ib2;var j$=function(){return _.Q.apply(this,arguments)||this};
_.c(j$,_.Q);j$.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.MN.Object.defineProperties(j$.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(_.S("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],j$.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],j$.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],j$.prototype,"shelfDismissal",void 0);_.g([_.R("data.responseText"),_.N("design:type",Object),_.N("design:paramtypes",[])],j$.prototype,"text",null);
_.g([_.R("data.responseText"),_.N("design:type",Object),_.N("design:paramtypes",[])],j$.prototype,"textAriaLabel",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],j$);
_.F(j$,"ytd-notification-multi-action-renderer",function(){if(ib2!==void 0)return ib2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return ib2=u},{mode:1});var T1a;var BR=function(){return _.Q.apply(this,arguments)||this};
_.c(BR,_.Q);BR.prototype.ready=function(){var u=this;_.bi(this.hostElement).querySelector("#undo").addEventListener("tap",function(){u.onUndoTap()})};
BR.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.GB().resolve(_.t9).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],BR.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],BR);
_.F(BR,"ytd-notification-text-renderer",function(){if(T1a!==void 0)return T1a;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return T1a=u},{mode:1});var wDS;var pZ=function(){var u=_.Q.apply(this,arguments)||this;u.mouseOverDelayJobId=0;u.fadeInImageDelayJobId=0;u.startTimeMs=-1;u.loadingStartTimeMs=-1;u.loadingEndTimeMs=-1;u.hasVideoPreview=!1;return u};
_.c(pZ,_.Q);_.I=pZ.prototype;_.I.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.I.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.I.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.I.showThumbnail=function(){var u=this;this.csn=_.AC();_.Xi("fmth");_.YL.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.zH(_.YL,function(){u.loadingStartTimeMs=(0,_.vA)();var K=_.bi(u.hostElement).querySelector("#thumbnail");K.complete?u.displayMouseOverImage():K.addEventListener("load",_.Ql(u,u.displayMouseOverImage))},150):_.cF(_.bi(this.hostElement).querySelector("#play"),"show",!0)};
_.I.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.I.onTap=function(){this.removeVideoPreview()};
_.I.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var u=this.videoId,K=this.csn,l=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,D=this.startTimeMs,d=this.hasVideoPreview,C=_.gf(this.trackingParams),W={isMovingThumbnail:d};d&&D>0&&(l>0&&(W.movingThumbnailLoadingDurationMs=Math.round(l)),W.durationHoveredMs=Math.round((0,_.vA)()-D));u&&(W.videoId=u);_.Hi(K,C,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:W});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.I.removeVideoPreview=function(){_.YL.cancelJob(this.mouseOverDelayJobId);_.YL.cancelJob(this.fadeInImageDelayJobId);var u=_.bi(this.hostElement).querySelector("#thumbnail");_.cF(u,"fade-in",!1);u.removeEventListener("load",_.Ql(this,this.displayMouseOverImage));u=_.bi(this.hostElement).querySelector("#play");_.cF(u,"fade-in",!1);_.cF(u,"show",!1)};
_.I.displayMouseOverImage=function(){var u=_.bi(this.hostElement).querySelector("#thumbnail"),K=_.bi(this.hostElement).querySelector("#play");this.isImageAvailable(u)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.vA)(),this.startTimeMs=(0,_.vA)(),this.fadeInImageDelayJobId=_.zH(_.YL,function(){_.cF(u,"fade-in",!0)},50)):_.cF(K,"fade-in",!0)};
_.I.computeThumbnail=function(u,K){var l;u&&u.movingThumbnailDetails&&u.movingThumbnailDetails.thumbnails&&K?l=_.bt(u.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):l=K?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(l)return _.ES(l)};
_.I.isImageAvailable=function(u){return!(!u.src||u.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||u.naturalWidth===120)};
pZ.prototype.onTap=pZ.prototype.onTap;pZ.prototype.dataChanged=pZ.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],pZ.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],pZ.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],pZ.prototype,"csn",void 0);_.g([_.U(),_.N("design:type",Object)],pZ.prototype,"trackingParams",void 0);
_.g([_.U(),_.N("design:type",String)],pZ.prototype,"videoId",void 0);_.g([_.U(),_.N("design:type",Boolean)],pZ.prototype,"isAttachedAndDataSet",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pZ.prototype,"dataChanged",null);_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pZ.prototype,"onTap",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],pZ);
_.F(pZ,"ytd-moving-thumbnail-renderer",function(){if(wDS!==void 0)return wDS;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return wDS=u},{mode:1});var F2a;_.zb=function(u){this.hostElement=u;this.eventSink=null;this.eventList=[]};
_.zb.prototype.shouldForward=function(){var u,K;return(K=(u=this.eventSink)==null?void 0:u.isConnected)!=null?K:document.body.contains(this.eventSink)};
_.zb.prototype.start=function(u,K){this.eventSink&&this.stop();for(var l=0;l<u.length;l++)this.hostElement.addEventListener(u[l],_.Ql(this,this.forwardEvent));var D;this.eventSink=(D=K.hostElement)!=null?D:K;this.eventList=u};
_.zb.prototype.stop=function(){for(var u=0;u<this.eventList.length;u++)this.hostElement.removeEventListener(this.eventList[u],_.Ql(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.zb.prototype.forwardEvent=function(u,K){this.shouldForward()&&(u.stopPropagation(),this.eventSink instanceof Element?_.xs(this.eventSink,u.type,K):_.hV(new _.wv("eventSink is not an element")))};_.iB={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.zb(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(u,K){this.forwarder_.start(u,K)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Tf=function(){return _.Q.apply(this,arguments)||this};
_.c(Tf,_.Q);_.I=Tf.prototype;_.I.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=_.E3("HTML_DIR")==="rtl"?"right":"left"};
_.I.dataChanged=function(){this.popupOpen=!1};
_.I.computeAriaLabel=function(u){return _.b(u,SRs).label};
_.I.onTap=function(u){u.stopPropagation();u.preventDefault();this.data.command&&_.GB().resolve(_.t9).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.I.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.I.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Tf.prototype.onPopupClosed=Tf.prototype.onPopupClosed;Tf.prototype.onPopupOpened=Tf.prototype.onPopupOpened;Tf.prototype.onTap=Tf.prototype.onTap;Tf.prototype.dataChanged=Tf.prototype.dataChanged;_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],Tf.prototype,"eventForwardingBehavior",void 0);_.g([_.e(_.mv),_.N("design:type",Object)],Tf.prototype,"ironButtonState",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Tf.prototype,"componentBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],Tf.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,value:-1}),_.N("design:type",Number)],Tf.prototype,"tabindex",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.N("design:type",Object)],Tf.prototype,"ariaLabel",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Tf.prototype,"disableTooltips",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Tf.prototype,"popupOpen",void 0);
_.g([_.U(),_.N("design:type",Element)],Tf.prototype,"eventSink",void 0);_.g([_.BF("#tooltip"),_.N("design:type",Object)],Tf.prototype,"tooltip",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tf.prototype,"dataChanged",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Tf.prototype,"onTap",null);
_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tf.prototype,"onPopupOpened",null);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tf.prototype,"onPopupClosed",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Tf);
_.F(Tf,"ytd-thumbnail-overlay-button-renderer",function(){if(F2a!==void 0)return F2a;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return F2a=u},{mode:1});var VE0;var wW=function(){return _.Q.apply(this,arguments)||this};
_.c(wW,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],wW.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],wW.prototype,"disableAnimation",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],wW.prototype,"rounded",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],wW.prototype,"transparentBackground",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],wW.prototype,"noPadding",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],wW);
_.F(wW,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(VE0!==void 0)return VE0;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return VE0=u},{mode:1});var g7k;var FE=function(){return _.Q.apply(this,arguments)||this};
_.c(FE,_.Q);FE.prototype.computeIconPosition=function(u){return this.get("iconPosition",u)||null};
FE.prototype.computeIconStyle=function(u){return this.get("iconStyle",u)||null};
FE.prototype.computeIsIconStyleFilled=function(u){if(!u)return!1;var K;return u.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((K=u.icon)==null?void 0:K.iconType)==="ERROR_BLACK"};
_.g([_.U(),_.N("design:type",Object)],FE.prototype,"data",void 0);_.g([_.U({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.N("design:type",Object)],FE.prototype,"iconPosition",void 0);_.g([_.U({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.N("design:type",Object)],FE.prototype,"iconStyle",void 0);_.g([_.U({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],FE.prototype,"iconStyleFilled",void 0);
_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],FE);
_.F(FE,"ytd-thumbnail-overlay-icon-renderer",function(){if(g7k!==void 0)return g7k;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return g7k=u},{mode:1});var N1w;var Vw=function(){return _.Q.apply(this,arguments)||this};
_.c(Vw,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Vw.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Vw);
_.F(Vw,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(N1w!==void 0)return N1w;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return N1w=u},{mode:1});var kDS;var gW=function(){var u=_.Q.apply(this,arguments)||this;u.isPreviewLoading=!1;return u};
_.c(gW,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],gW.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],gW.prototype,"isPreviewLoading",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],gW);
_.F(gW,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(kDS!==void 0)return kDS;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return kDS=u},{mode:1});var ZbH;var Nx=function(){return _.Q.apply(this,arguments)||this};
_.c(Nx,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Nx.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Nx);
_.F(Nx,"ytd-thumbnail-overlay-pinking-renderer",function(){if(ZbH!==void 0)return ZbH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return ZbH=u},{mode:1});var YXw;var k_=function(){var u=_.Q.apply(this,arguments)||this;u.disableTooltips=!1;u.isLoading=!1;u.useExpandableTooltip=!1;u.toggled=!1;u.hovered=!1;u.mouseoverDelayJobId=0;u.toggleDelayJobId=0;u.expandAnimationDelayJobId=0;return u};
_.c(k_,_.Q);_.I=k_.prototype;_.I.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");_.bi(this.hostElement).querySelector("#tooltip").position=_.E3("HTML_DIR")==="rtl"?"right":"left"};
_.I.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.YL.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.YL.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.YL.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.I.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.YL.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.YL.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.YL.cancelJob(this.expandAnimationDelayJobId)};
_.I.computeIcon=function(u,K,l){return(u=l?K:u)&&u.iconType?_.fr(u.iconType):void 0};
_.I.computeAriaLabel=function(u,K,l){return _.b(l?K:u,SRs).label};
_.I.computeTooltip=function(u,K,l){return l?K:u};
_.I.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.I.computeIconOnHover=function(u,K){if((u==null?0:u.iconType)&&!K)return _.fr(u.iconType)};
_.I.onTap=function(u){var K=this;u.stopPropagation();u.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(u=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(u),this.useExpandableTooltip&&(this.toggleDelayJobId=_.zH(_.YL,function(){K.hovered=!1;K.data&&!K.data.toggledServiceEndpoint&&(K.expandAnimationDelayJobId=_.zH(_.YL,function(){K.set("data.isToggled",
!1)},200))},2E3))};
_.I.onMouseenter=function(){var u=this;this.mouseoverDelayJobId=_.zH(_.YL,function(){u.hovered=!0},300)};
_.I.onMouseleave=function(){_.YL.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.I.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.I.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.I.onServiceRequestCompleted=function(u,K){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(K)||this.set("data.isToggled",!this.data.isToggled)};
_.I.serviceRequestWasSuccessful=function(u){return _.b(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.LP)?u.data.status==="STATUS_SUCCEEDED":!0};
k_.prototype.onServiceRequestCompleted=k_.prototype.onServiceRequestCompleted;k_.prototype.onPopupClosed=k_.prototype.onPopupClosed;k_.prototype.onPopupOpened=k_.prototype.onPopupOpened;k_.prototype.onMouseleave=k_.prototype.onMouseleave;k_.prototype.dataChanged=k_.prototype.dataChanged;_.g([_.e(_.mv),_.N("design:type",Object)],k_.prototype,"ironButtonState",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],k_.prototype,"ytComponentBehavior",void 0);
_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],k_.prototype,"ytEventForwardingBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],k_.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.N("design:type",Object)],k_.prototype,"ariaLabel",void 0);_.g([_.U(),_.N("design:type",Object)],k_.prototype,"disableTooltips",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],k_.prototype,"popupOpen",void 0);_.g([_.U(),_.N("design:type",Object)],k_.prototype,"isLoading",void 0);_.g([_.U(),_.N("design:type",Element)],k_.prototype,"eventSink",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],k_.prototype,"useExpandableTooltip",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.N("design:type",Object)],k_.prototype,"toggled",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],k_.prototype,"hovered",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.N("design:type",Object)],k_.prototype,"iconOnHover",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],k_.prototype,"dataChanged",null);
_.g([_.PF("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],k_.prototype,"onMouseleave",null);_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],k_.prototype,"onPopupOpened",null);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],k_.prototype,"onPopupClosed",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],k_.prototype,"onServiceRequestCompleted",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],k_);
_.F(k_,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(YXw!==void 0)return YXw;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return YXw=u},{mode:_.zW("kevlar_poly_si_batch_j053")?1:2});var Avm;var XDS=_.rf(function(u){var K=u.data;var l=u.thumbnailSize;var D=function(){return K().enableSegmentView};
return _.n("yt-thumbnail-overlay-progress-bar-view-model",{class:_.JB("ytThumbnailOverlayProgressBarHost",function(){return zHH(l==null?void 0:l())})},_.n(_.r,{cond:D,
then:function(){return _.n("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.n("div",{class:_.jX("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+K().startPercent+"%"}}),_.n("div",{class:_.jX("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+K().segmentDurationPercent+"%"}},_.n("div",{class:_.jX("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.n("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.n("div",null," ",function(){return K().segmentLabel})),_.n("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.n("div",{class:_.jX("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.n(_.r,{cond:function(){return!D()&&K().startPercent},
then:function(){var d={};return _.n("div",{class:_.jX("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(d.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.S("web_enable_modern_progress_bar_overlay"),d))},_.n("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+K().startPercent+"%"}}))}}))},"T");
XDS.idomCompat=!0;var m8s=_.rf(function(u){var K=_.Qo(),l=_.Da(function(d){var C,W,M;a:{var q=(C=u.data())==null?void 0:C.animationActivationTargetId;C=((W=u.data())==null?void 0:W.animationActivationEntityKey)||"";W=(M=u.data())==null?void 0:M.animationActivationEntitySelectorType;if(C&&q)switch(W){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":d=_.eZ(d.entities,"playerStateEntity",C);M=_.GB().resolve(_.vv(_.uD));q=!!(d&&d.videoId===q&&(M==null?0:M.isMiniplayerActive()));q={activated:q,playAnimation:q&&
d.playerState==="PLAYER_STATE_PLAYING"};break a}q=void 0}return q});
_.gp(function(){var d;if((d=l())==null?0:d.activated){var C;if((C=l())==null?0:C.playAnimation){var W;(W=K.lottieEl)==null||W.goToAndPlay(0)}else{var M;(M=K.lottieEl)==null||M.goToAndStop(0)}}},"MDTl2e");
var D=function(){var d,C=!((d=l())==null||!d.activated);if(u.data()){d=u.data();var W=void 0;d.icon&&(W=_.LZh(d.icon),W=InR(W));var M=void 0,q;if((q=d.backgroundColor)==null?0:q.lightTheme){var v;M={backgroundColor:li((v=d.backgroundColor)==null?void 0:v.lightTheme,"0.8")}}if(d.text||W||C){if(C&&d.lottieData&&K){v=d.lottieData;var G,t,x;q={animationConfig:{name:v.url,path:v.url,autoplay:(G=v.settings)==null?void 0:G.autoplay,loop:(x=(t=v.settings)==null?void 0:t.loop)!=null?x:!0},animationRef:K}}else q=
void 0;if(C)G=16;else b:switch(d.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":G=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":G=18;break b;default:G=16}C={type:G,text:C&&d.animatedText?d.animatedText:d.text,icon:W,customColors:M,animation:q}}else C=void 0}else C=void 0;return C};
return _.n("yt-thumbnail-badge-view-model",{class:_.JB("yt-thumbnail-badge-view-model-wiz",u.class)},_.n(_.r,{cond:D,then:function(){return _.n(_.LD,{data:function(){return D()}})}}))},"U");var hHa=_.rf(function(u){var K={},l={};return _.n("yt-thumbnail-bottom-overlay-view-model",{class:_.JB("ytThumbnailBottomOverlayViewModelHost",(K.ytThumbnailBottomOverlayViewModelHostBackground=function(){return u.data().enableGradientBackground},K))},_.n(_.mo,{data:function(){return u.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(D){return _.n(XDS,{data:D.data,
thumbnailSize:u.thumbnailSize})}}),_.n("div",{class:_.JB("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var D;
return eHq((D=u.thumbnailSize)==null?void 0:D.call(u))},(l.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var D;
return(D=u.isClip)==null?void 0:D.call(u)},l.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var D;
return!_.S("web_enable_modern_progress_bar_overlay")&&((D=u.thumbnailSize)==null?void 0:D.call(u))==="small"},l))},_.n(_.mo,{data:function(){return u.data().badge}},{thumbnailBadgeViewModel:function(D){return _.n(m8s,{data:D.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.n(_.mo,{data:function(){return u.data().badges}},{thumbnailBadgeViewModel:function(D){return _.n(m8s,{data:D.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"V");
hHa.idomCompat=!0;_.SX(hHa,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.xo,thumbnailSize:_.xo,isClip:_.xo}});var ibr={calledOnce:!1,state:"visible"},T1o={calledOnce:!1,state:"hidden"};var Zt=_.rf(function(u){var K=u.data;var l=u.className;u=u.alwaysShow;var D=_.fZh(),d={};return _.n("thumbnail-hover-overlay-view-model",{el:_.v1(_.DS(function(){return K().rendererContext})),
class:_.JB("ytThumbnailHoverOverlayViewModelHost",l,(d.ytThumbnailHoverOverlayViewModelHostForceHover=u,d)),"aria-label":function(){var C;return(C=_.b(K().rendererContext,_.T8))==null?void 0:C.label},
role:function(){return _.Kz(K().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Kz(K().rendererContext)!==void 0?0:void 0},
"on:keypress":D},_.n("div",{class:_.JB("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(K().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var C="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:C="ytThumbnailHoverOverlayViewModelStyleCover"}return C})},_.n(_.r,{cond:function(){return K().icon},
then:function(C){return _.n(_.n4,{data:C,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.n(_.r,{cond:function(){return K().text},
then:function(C){return _.n(_.qC,{text:C,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"W");
Zt.idomCompat=!0;var E7C=_.rf(function(u){var K=u.data;return _.n(_.mo,{data:function(){return K==null?void 0:K().overlays}},{thumbnailHoverOverlayViewModel:Zt})},"X");
E7C.idomCompat=!0;var L2w={};var uAs=_.rf(function(u){var K=u.data;var l=u.image;var D=u.state;var d=u.iconType;var C=u.overlays;var W=u.isOverlay;var M=_.W4("div");u=_.y(_.On(!0,void 0,"sUzEZ"));var q=u.next().value,v=u.next().value,G=function(){return!!K().onTap},t=_.qE(d,"LIVE");
_.gp(function(){var O=K();requestAnimationFrame(function(){if(M.value===null)var a=!0;else{var f=M.value;a=O.badgeText;var B=VEy(O.size);a in L2w?f=L2w[a]:(f=f.clientWidth,L2w[a]=f);(a=f>B)?M.value.style.display="none":M.value.style.visibility="visible"}v(a)})},"SpVcNb");
var x=function(){var O={};return O["yt-spec-avatar-shape__image"]=!0,O["yt-spec-avatar-shape__image--ads-app"]=K().type===1,O};
return _.n("yt-avatar-shape",null,_.n("div",{el:_.v1(N1h(G,{keydown:function(O){if(O.key==="Enter"){var a;(a=O.currentTarget)==null||a.click()}},
click:function(O){var a,f;return void((f=(a=K()).onTap)==null?void 0:f.call(a,O))}})),
class:function(){var O={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},a=K();O=(O[a.clusterLayoutConfig?YXq(a.clusterLayoutConfig):Avn(a.size)]=!0,O["yt-spec-avatar-shape__button--tappable"]=G(),O);(a=K().avatarButtonCustomClassName)&&(O[a]=!0);return _.jX(O)},
"aria-label":function(){return G()?K().accessibilityText:""},
role:function(){return G()?"button":void 0},
tabindex:function(){return G()?0:void 0}},_.n("div",{class:function(){var O,a=K(),f=D==null?void 0:D(),B=W==null?void 0:W(),p=!((O=a.decorations)==null||!O.includes(2)||a.size!=="medium"&&a.size!=="large"),V=a.size==="tiny"||a.size==="extra-small",m,Z,A,h,C9={};
O=(C9["yt-spec-avatar-shape--live-ring"]=!!(((m=a.decorations)==null?0:m.includes(0))&&m89(a.size)),C9["yt-spec-avatar-shape--stories-watched"]=p&&!(f==null||!f.storiesWatched),C9["yt-spec-avatar-shape--stories-unwatched"]=p&&!(f==null?0:f.storiesWatched),C9["yt-spec-avatar-shape--background-border"]=hHb(a.decorations)&&!V,C9["yt-spec-avatar-shape--background-border-thin"]=hHb(a.decorations)&&V,C9["yt-spec-avatar-shape__on-select-border"]=!((Z=a.decorations)==null||!Z.includes(4)),C9["yt-spec-avatar-shape__white-border"]=
!((A=a.decorations)==null||!A.includes(5)),C9["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((h=a.decorations)==null?0:h.includes(5))&&V),C9["yt-spec-avatar-shape--is-overlay"]=!!B,C9);return _.jX(O)},
style:function(){a:{var O=K().clusterLayoutConfig;if(O){b:{var a=O.numAvatarsInCluster;var f=O.avatarIndex;if(f!==a-1){switch(O.clusterSize){case "small":O="32";break;case "medium":O="36";break;case "40":O="40";break;default:a=void 0;break b}a="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+O+"x"+O+"_avatars_"+a+"_index_"+f+".svg"}else a=void 0}if(a){a=_.Fb({"-webkit-mask-image":"url("+a+")","mask-image":"url("+a+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}a=void 0}return a}},_.n("div",{class:function(){var O={};
var a=K();O=(O[a.clusterLayoutConfig?kDw(a.clusterLayoutConfig):Zbq(a.size)]=!0,O["yt-spec-avatar-shape--no-margin"]=hHb(K().decorations),O);return _.jX(O)}},_.n(_.n4,{data:l,
alt:function(){return!G()&&K().accessibilityText?K().accessibilityText:""},
targetWidth:function(){return XDw(K().size)},
targetHeight:function(){return XDw(K().size)},
className:function(){return _.jX(x())}}),_.n(_.r,{cond:function(){var O;
return((O=K().decorations)==null?void 0:O.includes(0))&&m89(K().size)},
then:function(){return _.n("div",{class:function(){var O={};O=(O["yt-spec-avatar-shape__live-badge"]=!0,O["yt-spec-avatar-shape__live-badge--badge-small"]=K().size==="small",O["yt-spec-avatar-shape__live-badge--badge-medium"]=K().size==="medium"||K().size==="48",O["yt-spec-avatar-shape__live-badge--badge-large"]=K().size==="large",O["yt-spec-avatar-shape__live-badge--badge-extra-large"]=K().size==="extra-large"||K().size==="extra-extra-large"||K().size==="giant",O);return _.jX(O)}},_.n(_.r,{cond:function(){return K().badgeText},
then:function(O){return _.n("div",{class:"yt-spec-avatar-shape__badge-text",el:M},O)}}),_.n(_.r,{cond:q,
then:function(){return _.n("div",{class:"yt-spec-avatar-shape__badge-icon"},_.n(_.VB,{icon:t,size:function(){a:switch(K().size){case "extra-large":var O=16;break a;default:O=13}return O}}))}}))}}),_.n(_.r,{cond:function(){var O,a;
return((O=K().decorations)==null?void 0:O.includes(1))||((a=K().decorations)==null?void 0:a.includes(0))&&!m89(K().size)},
then:function(){return _.n("div",{class:function(){var O=K(),a,f,B={};var p=(B["yt-spec-avatar-shape__live-dot"]=!((a=O.decorations)==null||!a.includes(0)||m89(O.size)),B["yt-spec-avatar-shape__new-content"]=!((f=O.decorations)==null||!f.includes(1)),B);return _.jX(p)}})}}),_.n(_.r,{cond:function(){return!!C},
then:function(){return _.n("div",{class:function(){var O={};O=Object.assign((O["yt-spec-avatar-shape__image-overlays"]=!0,O),x());return _.jX(O)}},C==null?void 0:C())}})))))},"Y");
uAs.idomCompat={callbacks:{overlays:!0}};_.Y_=_.rf(function(u){function K(){l().endpoint&&_.IT(l().endpoint)}
var l=u.data;var D=u.decorations;var d=u.avatarButtonCustomClassName;var C=u.isOverlay;var W=u.clusterLayoutConfig;return _.n("avatar-view-model",null,_.n(_.r,{cond:function(){return l().image},
then:function(M){return _.n(uAs,{data:function(){return L2q({data:l(),onTap:l().endpoint?K:void 0,decorations:D==null?void 0:D(),badgeText:void 0,accessibilityText:l().accessibilityText,avatarButtonCustomClassName:d==null?void 0:d(),clusterLayoutConfig:W==null?void 0:W()})},
image:M,iconType:"RADAR_LIVE",overlays:function(){return _.n(E7C,{data:l})},
isOverlay:C})}}))},"Z");
_.Y_.idomCompat=!0;_.Aa=_.rf(function(u){var K=u.data;u=u.className;var l=_.W4("yt-decorated-avatar-view-model"),D=function(){return _.b(K().avatar,_.ds)},d=_.RZ(function(){var C,W=K(),M=D(),q=_.Kz(K().rendererContext),v=(C=l.value)!=null?C:void 0,G;
if(M){v={data:W,avatar:M,onTap:q,element:v};C=v.data;W=v.avatar;M=v.onTap;q=v.element;v=v.commandController;M=M?D3H(M,q,v):void 0;q=[];C.liveData&&q.push(0);var t;v=(t=C.liveData)==null?void 0:t.liveBadgeText;t=(G=_.b(C.rendererContext,_.T8))==null?void 0:G.label;G=L2q({data:W,onTap:M,decorations:q,badgeText:v,accessibilityText:t?t:C.a11yLabel})}else G={size:"medium"};return G},void 0,"H8tk9d");
return _.n("yt-decorated-avatar-view-model",{class:_.JB("yt-decorated-avatar-view-model-wiz",u),el:l},_.n(_.r,{cond:function(){var C;return(C=D())==null?void 0:C.image},
then:function(C){return _.n(uAs,{data:d,image:C,iconType:"RADAR_LIVE",overlays:function(){return _.n(E7C,{data:D})}})}}))},"$");
_.Aa.idomCompat=!0;_.XE=_.rf(function(u){var K=function(){var M;return Object.assign({},u.data(),(M=u.overrides)==null?void 0:M.call(u))},l=function(){return _.lC(K().rendererContext)},D=function(){var M=K().avatars,q,v;
return(v=(q=(M==null?0:M[0])?_.b(M[0],_.ds):void 0)==null?void 0:q.avatarImageSize)!=null?v:"AVATAR_SIZE_UNKNOWN"},d=function(){return lDL(K())},C=function(){if(K().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var M=void 0;
else if((M=u.decorations)==null?0:M.call(u))M=u.decorations();else{M=K();var q=0;M.avatars&&(q+=M.avatars.length);M.decoratedText&&(q+=1);M=q>1?[3]:[]}return M},W={};
return _.n("yt-avatar-stack-view-model",{el:_.v1(_.DS(function(){return K().rendererContext})),
class:_.JB("yt-avatar-stack-view-model-wiz",u.className,(W["yt-avatar-stack-view-model-wiz--tappable"]=l,W["yt-avatar-stack-view-model-wiz--is-overlay"]=u.isOverlay,W["yt-avatar-stack-view-model-wiz--medium-text"]=u.useMediumText,W)),tabindex:function(){return l()?0:void 0},
role:function(){return l()?"link":void 0},
"aria-label":function(){var M,q;return(q=(M=_.b(K().rendererContext,_.T8))==null?void 0:M.label)!=null?q:""}},_.n(_.r,{cond:function(){var M;
return K().avatars&&!((M=u.hideAvatar)==null?0:M.call(u))},
then:function(){return _.n("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.n(_.r,{cond:function(){return K().decoratedText},
then:function(M){var q={};return _.n("div",{class:_.JB("yt-avatar-stack-view-model-wiz__text-container",(q["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return D()==="AVATAR_SIZE_XXS"||D()==="AVATAR_SIZE_XS"},q["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var v;
return((v=u.isOverlay)==null?void 0:v.call(u))&&(D()==="AVATAR_SIZE_XXS"||D()==="AVATAR_SIZE_XS")},q)),
style:_.Fb({width:function(){return d().avatarSizeInPx+"px"},
height:function(){return d().avatarSizeInPx+"px"}})},_.n(_.qC,{text:M,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.n("div",{style:function(){return _.Fb(d().avatarStackStyle)()},
class:function(){return d().avatarStackClass}},_.n(_.mo,{data:function(){return d().avatars.reverse()}},{avatarViewModel:function(M,q){return _.n("div",{style:function(){var v,G;
return _.Fb((G=(v=d()).avatarStyle)==null?void 0:G.call(v,q()))()},
class:function(){return d().avatarClass}},_.n(_.Y_,{data:M.data,
decorations:C,avatarButtonCustomClassName:function(){return d().avatarButtonCustomClassName},
isOverlay:u.isOverlay,clusterLayoutConfig:function(){var v,G;return(G=(v=d()).clusterLayoutConfig)==null?void 0:G.call(v,q())}}))},
decoratedAvatarViewModel:function(M,q){return _.n("div",{style:function(){var v,G;return _.Fb((G=(v=d()).avatarStyle)==null?void 0:G.call(v,q()))()},
class:function(){return d().avatarClass}},_.n(_.Aa,{data:M.data}))}})))}}),_.n(_.r,{cond:function(){return K().text},
then:function(M){return _.n(_.qC,{text:M,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"aa");
_.XE.idomCompat=!0;_.SX(_.rf(function(u){var K=u.data;var l=u.thumbnailSize;return _.n("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.n("div",{class:_.JB("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return d3n(l==null?void 0:l())})},_.n(_.mo,{data:function(){return K().avatarStack}},{avatarStackViewModel:function(D){return _.n(_.XE,{data:D.data,
decorations:[5]})}})))},"ba"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.M6,
thumbnailSize:_.M6}});var K7S=_.rf(function(u){u=_.$U(u,{hidden:!1});var K=u.data;return _.n("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:u.hidden},_.n(_.qC,{text:function(){return K().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.n(_.r,{cond:function(){return K().subtitle},
then:function(){return _.n(_.qC,{text:function(){return K().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"ca");
K7S.idomCompat=!0;_.SX(K7S,"yt-thumbnail-overlay-title-view-model",{props:{data:_.M6,hidden:_.M6}});var lDk=_.rf(function(u){u=_.$U(u,{isClip:!1});var K=u.data,l=u.thumbnailSize,D={};return _.n("yt-thumbnail-overlay-badge-view-model",{class:_.JB("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(K().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var d="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:d="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return d},function(){return C9L(l==null?void 0:l())},(D["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
u.isClip,D))},_.n(_.mo,{data:function(){return K().thumbnailBadges}},{thumbnailBadgeViewModel:function(d){return _.n(m8s,{data:d.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"da");
lDk.idomCompat=!0;_.SX(lDk,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.M6,thumbnailSize:_.M6,isClip:_.M6}});_.v4(IDq);_.U4(IDq,"yt-page-indicator-view-model",{propNames:["data"]});var m8=function(){var u=_.Q.apply(this,arguments)||this;u.eventSink=function(){return u};
u.disableInteraction=!1;u.noRoundedCorners=!1;u.isPreviewLoading=!1;u.isOriginalAspectRatio=!1;u.computedObjectFit=!1;u.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return u};
_.c(m8,_.Q);_.I=m8.prototype;
_.I.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:_.S("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"}}};
_.I.onImageLoaded=function(){this.loaded=!0};
_.I.onImageUnloaded=function(){this.loaded=!1};
_.I.computeRichThumbnail=function(u,K,l,D){if(u&&K&&!D&&!_.S("disable_moving_thumbs_handling")&&!l)return K};
_.I.computeImageWidth=function(u,K){return K||9999};
_.I.computeIsOriginalAspectRatio=function(u){return u};
_.I.computeIsLive=function(u){if(u==null?0:u.badges)for(var K=0;K<u.badges.length;K++){var l=u.badges[K];if(l.metadataBadgeRenderer&&l.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(u==null?0:u.thumbnailOverlays)for(K=0;K<u.thumbnailOverlays.length;K++)if(l=u.thumbnailOverlays[K],l.thumbnailOverlayTimeStatusRenderer&&l.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.I.computeObjectFit=function(u,K){return K||(u?"CONTAIN":"")};
_.I.computeNavigationEndpoint=function(u,K,l){return u?K:l};
_.I.computeHasClip=function(u){u=_.y(u||[]);for(var K=u.next();!K.done;K=u.next())if(K.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.I.computeOverlayColor=function(u){var K;return(u==null?0:(K=u.darkColorPalette)==null?0:K.section2Color)?u.darkColorPalette.section2Color:u==null?void 0:u.sampledThumbnailColor};
_.MN.Object.defineProperties(m8.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return frR(this.width)}}});
m8.prototype.onImageUnloaded=m8.prototype.onImageUnloaded;m8.prototype.onImageLoaded=m8.prototype.onImageLoaded;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],m8.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],m8.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(pmH),_.N("design:type",Object)],m8.prototype,"ytdThumbnailBehavior",void 0);
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],m8.prototype,"componentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],m8.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],m8.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],m8.prototype,"circular",void 0);
_.g([_.U({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.N("design:type",Object)],m8.prototype,"richThumbnail",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.N("design:type",Boolean)],m8.prototype,"hasClip",void 0);_.g([_.U(),_.N("design:type",Object)],m8.prototype,"eventSink",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],m8.prototype,"queued",void 0);
_.g([_.U({value:!1}),_.N("design:type",Boolean)],m8.prototype,"richGridThumbnail",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],m8.prototype,"useExpandableTooltip",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],m8.prototype,"useUntranslatedNavigationEndpoint",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],m8.prototype,"disableInteraction",void 0);
_.g([_.U({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.N("design:type",Object)],m8.prototype,"computedNavigationEndpoint",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],m8.prototype,"nowPlayingEqualizerOnly",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],m8.prototype,"hidePlaybackStatus",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],m8.prototype,"objectFit",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],m8.prototype,"noRoundedCorners",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],m8.prototype,"watchFeedThumbnail",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],m8.prototype,"isPreviewLoading",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.N("design:type",Object)],m8.prototype,"isOriginalAspectRatio",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.N("design:type",Object)],m8.prototype,"computedObjectFit",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.N("design:type",Boolean)],m8.prototype,"isLiveVideo",void 0);
_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],m8.prototype,"loaded",void 0);_.g([_.U({computed:"computeOverlayColor(data.thumbnail)"}),_.N("design:type",Object)],m8.prototype,"overlayColor",void 0);_.g([_.U({selector:_.cFo}),_.N("design:type",Boolean)],m8.prototype,"inlinePreviewIsEnabled",void 0);_.g([_.U(),_.N("design:type",Number)],m8.prototype,"width",void 0);
_.g([_.R("inlinePreviewIsEnabled"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],m8.prototype,"isPreviewDisabled",null);_.g([_.R("width"),_.N("design:type",String),_.N("design:paramtypes",[])],m8.prototype,"thumbnailSize",null);_.g([_.PF("image-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m8.prototype,"onImageLoaded",null);
_.g([_.PF("image-unloaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m8.prototype,"onImageUnloaded",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-thumbnail"})],m8);
var D3A=_.at()(m8,"ytd-thumbnail",function(){if(Avm===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);Avm=u}u=Avm;return u},{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 W7r=function(u){var K=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14788_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14788_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(l){d3m(K,l)};
this.onLockupMouseLeaveFn=function(l){l=l.relatedTarget;var D,d;((D=document.getElementsByTagName("ytd-video-preview"))==null?0:(d=D.item(0))==null?0:d.contains(l))||(K.terminateVideoPreview(),ha(K))};
this.onThumbnailMouseDownFn=function(){K.terminateVideoPreview();ha(K)};
this.onTouchStart=function(){K.JSC$14788_touched=!0};
this.mediaRenderer=u.mediaRenderer;this.thumbnailElement=u.thumbnailElement;this.lockupElement=u.lockupElement;this.videoPreviewOptsInput=u.videoPreviewOpts;C9k(this);Es(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)):
_.hV(Error("Dh")):_.hV(Error("Eh")):IDH(this)},n5=function(u){IDH(u);
var K;(K=u.lockupElement)==null||K.removeEventListener("mouseenter",u.onMouseMoveFn);var l;(l=u.lockupElement)==null||l.removeEventListener("mouseleave",u.onLockupMouseLeaveFn);var D;(D=u.lockupElement)==null||D.removeEventListener("touchstart",u.onTouchStart);var d;(d=u.thumbnailElement)==null||d.removeEventListener("mousedown",u.onThumbnailMouseDownFn);ha(u)},C9k=function(u){u.inlinePreviewIsEnabledForUser=_.Mu().getState().ui.inlinePreviewIsEnabled;
u.unsubscribeFromInlinePreviewIsEnabled=_.iF(_.Mu(),_.cFo,function(K){(u.inlinePreviewIsEnabledForUser=K)||ha(u)});
u.JSC$14788_unsubscribeFromInlinePreviewIsActive=_.iF(_.Mu(),_.Otw,function(K){(u.inlinePreviewIsActive=K)||ha(u)})},IDH=function(u){u.unsubscribeFromInlinePreviewIsEnabled();
u.unsubscribeFromInlinePreviewIsEnabled=function(){};
u.JSC$14788_unsubscribeFromInlinePreviewIsActive();u.JSC$14788_unsubscribeFromInlinePreviewIsActive=function(){}},d3m=function(u,K){K.buttons>0||(K=_.Sg("kevlar_lockup_hover_delay",-1),u.JSC$14788_touched&&K>=0?(_.YL.cancelJob(u.videoPreviewJobId),u.videoPreviewJobId=_.zH(_.YL,function(){y6a(u)},K),u.JSC$14788_touched=!1):y6a(u))},GXr=function(u){u.videoPreviewJobId=_.zH(_.YL,function(){var K,l,D,d;
return _.H(function(C){if(C.nextAddress==1){if(!Es(u))return C.return();K=u.getVideoPreviewOpts();if(!K)return C.return();K.isAutoplay=!0;return(D=(l=_.bI(u.mediaRenderer.hostElement,"yt-open-video-preview-action",[K]))&&l[0])?C.yield(l[0],3):C.jumpTo(2)}C.nextAddress!=2&&(D=C.yieldResult===1);D&&sJq((d=u.mediaRenderer)==null?void 0:d.data);_.TG(C)})})},y6a=function(u){!u.previewTriggered&&Es(u)&&(u.inlinePreviewIsActive&&u.terminateVideoPreview(),u.previewTriggered=!0,u.mediaRenderer.isInlinePreviewTriggered=
!0,_.YL.cancelJob(u.videoPreviewJobId),u.videoPreviewJobId=_.zH(_.YL,function(){var K,l,D,d;
return _.H(function(C){if(C.nextAddress==1){if(!Es(u))return C.return();K=u.getVideoPreviewOpts();return K?(D=(l=_.bI(u.mediaRenderer.hostElement,"yt-open-video-preview-action",[K]))&&l[0])?C.yield(l[0],3):C.jumpTo(2):C.return()}C.nextAddress!=2&&(D=C.yieldResult===1);D&&sJq((d=u.mediaRenderer)==null?void 0:d.data);_.TG(C)})}))};
W7r.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var u,K;if((K=(u=this.videoPreviewOptsInput)==null?void 0:u.videoPreviewData)!=null)u=K;else if(u=this.mediaRenderer.data)if(y6o(u))u={inlinePlaybackEndpoint:_.lt(u.inlinePlayerData.onVisible),navigationEndpoint:_.lt(u.onTap),thumbnail:"image"in u?u.image:u.thumbnail,thumbnailOverlays:void 0,accessibilityText:oqH(u)};else if("multipleInlinePlaybackEndpoint"in u){var l=_.b(_.b(u.multipleInlinePlaybackEndpoint,PAw),J5w);if(l!=
null&&l.playerDescriptors){K=[];l=_.y(l.playerDescriptors);for(var D=l.next();!D.done;D=l.next())D=D.value,K.push({inlinePlaybackEndpoint:D.inlinePlaybackEndpoint,navigationEndpoint:D.navigationEndpoint,thumbnail:D.thumbnail,thumbnailOverlays:D.thumbnailOverlays,accessibilityText:oqH(u)});u=K}else u=void 0}else u={inlinePlaybackEndpoint:u.inlinePlaybackEndpoint,navigationEndpoint:u.navigationEndpoint,thumbnail:u.thumbnail,thumbnailOverlays:u.thumbnailOverlays,accessibilityText:oqH(u)};else u=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:u,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Es=function(u){var K;if(K=u.inlinePreviewIsEnabledForUser)K=(u=u.mediaRenderer.data)?"inlinePlaybackEndpoint"in u&&u.inlinePlaybackEndpoint||y6o(u)&&u.inlinePlayerData||"multipleInlinePlaybackEndpoint"in u&&u.multipleInlinePlaybackEndpoint?!0:!1:!1;return K};
W7r.prototype.terminateVideoPreview=function(){_.Sy(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var ha=function(u){_.YL.cancelJob(u.videoPreviewJobId);u.inlinePreviewIsActive=!1;u.previewTriggered=!1;u.mediaRenderer.isInlinePreviewTriggered=!1};var sJH=_.oj(["#"]),LZ=function(){var u=_.Q.apply(this,arguments)||this;u.isDisabled=!1;return u};
_.c(LZ,_.Q);_.I=LZ.prototype;_.I.configureRendererStamper=function(){return{"data.menu":PR,"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"}}}};
_.I.attached=function(){this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.getMetadata=function(u){var K=[];if(u.metadataText&&Object.keys(u.metadataText).length>0){var l=this.ytRendererBehavior.getSimpleString(u.metadataText);u.upcomingEventData&&u.upcomingEventData.upcomingEventText&&(l=_.hK(l,Number(u.upcomingEventData.startTime)));K.push(l)}else u.shortViewCountText&&K.push(this.ytRendererBehavior.getSimpleString(u.shortViewCountText)),u.publishedTimeText&&K.push(this.ytRendererBehavior.getSimpleString(u.publishedTimeText)),u.upcomingEventData&&u.upcomingEventData.upcomingEventText&&
(l=this.ytRendererBehavior.getSimpleString(u.upcomingEventData.upcomingEventText),K.push(_.hK(l,Number(u.upcomingEventData.startTime))));return K};
_.I.calculateBylineText=function(u){return u.shortBylineText?u.shortBylineText:u.bylineText?u.bylineText:null};
_.I.calculateIsDisabled=function(u){return!!u.isDisabled};
_.I.computeHrefWithDefault=function(u){return this.ytComponentBehavior.computeHref_(u)||_.iML(sJH)};
_.I.onDetailsTap=function(u){var K=this.data&&this.data.navigationEndpoint;K&&!_.rE(_.WF(u)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.S("kevlar_grid_video_renderer_killswitch")?_.xs(this.hostElement,"yt-navigate",{endpoint:K}):this.ytComponentBehavior.resolveCommand(K))};
_.I.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14793_inlinePreviewHoverListener=Cz({mediaRenderer:this,lockupElement:_.bi(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.bi(this.hostElement).querySelector("ytd-thumbnail")})};
_.I.clearInlinePreviewHoverListeners=function(){var u;(u=this.JSC$14793_inlinePreviewHoverListener)==null||n5(u)};
_.I.computeThumbnailWidth=function(u,K){return K&&K>0?K:u?360:210};
_.I.computeShowChannelThumbnail=function(u,K){var l;return K&&!!(u==null?0:(l=u.channelThumbnailSupportedRenderers)==null?0:l.channelThumbnailWithLinkRenderer)};
_.MN.Object.defineProperties(LZ.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.JSC$14793_inlinePreviewHoverListener)==null?0:Es(u))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
LZ.prototype.dataChanged=LZ.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],LZ.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],LZ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],LZ.prototype,"ytdDismissibleItemBehavior",void 0);
_.g([_.e(_.s8),_.N("design:type",Object)],LZ.prototype,"ytdLockupBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],LZ.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],LZ.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],LZ.prototype,"noEndpoints",void 0);_.g([_.U({computed:"calculateBylineText(data)"}),_.N("design:type",Object)],LZ.prototype,"bylineText",void 0);
_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],LZ.prototype,"isSearch",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],LZ.prototype,"isDownloading",void 0);_.g([_.U({reflectToAttribute:!0,value:0}),_.N("design:type",Number)],LZ.prototype,"width",void 0);_.g([_.U({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.N("design:type",Object)],LZ.prototype,"isDisabled",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LZ.prototype,"dataChanged",null);_.g([_.R("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],LZ.prototype,"isHovered",null);_.g([_.T({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],LZ);
_.F(LZ,"ytd-grid-video-renderer",function(){if(B10!==void 0)return B10;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return B10=u},{mode:_.zW("kevlar_poly_si_batch_j047")?1:2});var oqA;var ls=function(){var u=_.Q.apply(this,arguments)||this;u.roundedContainer=!0;u.skipRoundingTop=!1;u.disableTopPadding=!1;u.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return u};
_.c(ls,_.Q);ls.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ls.prototype.onClick=function(u){var K,l=(K=this.data)==null?void 0:K.sourceEndpoint;!_.rE(_.WF(u),this.hostElement,["A".toString()])&&l&&_.xs(this.hostElement,"yt-navigate",{endpoint:l})};
_.MN.Object.defineProperties(ls.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 u;return!((u=this.data)==null||!u.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var u,K;return(K=(u=this.data)==null?void 0:u.paragraphMaxLines)!=null?K:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ls.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ls.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ls.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ls.prototype,"showVerticalDividers",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ls.prototype,"roundedContainer",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ls.prototype,"skipRoundingTop",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ls.prototype,"disableTopPadding",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],ls.prototype,"amsterdamEnabled",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ls.prototype,"showMetadataAtTop",null);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ls.prototype,"showMetadataBelowTitle",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.menu"),_.N("design:type",Object),_.N("design:paramtypes",[])],ls.prototype,"hasMenu",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.truncateParagraphs"),_.N("design:type",Object),_.N("design:paramtypes",[])],ls.prototype,"truncateParagraphs",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data.paragraphMaxLines"),_.N("design:type",Number),_.N("design:paramtypes",[])],ls.prototype,"paragraphMaxLines",null);_.g([_.U({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.background"),_.N("design:type",Object),_.N("design:paramtypes",[])],ls.prototype,"background",null);_.g([_.T({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],ls);
_.F(ls,"ytd-info-panel-content-renderer",function(){if(oqA!==void 0)return oqA;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return oqA=u},{mode:_.zW("kevlar_poly_si_batch_j076")?1:2});var W72;var HvA;var MiS;var q12;var DX=function(){return _.Q.apply(this,arguments)||this};
_.c(DX,_.Q);DX.prototype.computeStyle=function(u){return u};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],DX.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],DX.prototype,"style_",void 0);_.g([_.E9({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],DX);
_.F(DX,"yt-channel-thumbnail-with-link-renderer",function(){if(q12===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;MiS===void 0&&(MiS=document.createElement("template"));var D=MiS;l.call(K,D.content.cloneNode(!0),u.content.firstChild);q12=u}u=q12;return u},{mode:2});var dL=function(){var u=_.Q.apply(this,arguments)||this;u.modernTypography=_.S("web_modern_typography");return u};
_.c(dL,_.Q);dL.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"}}}};
dL.prototype.computeTitleStyle=function(u){return u||null};
dL.prototype.computeAvatarStyle=function(u){return u||null};
dL.prototype.computeShowNavigationButton=function(u,K){return!(u==null||!u.navigationButton||K)};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],dL.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],dL.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.N("design:type",String)],dL.prototype,"titleStyle",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.N("design:type",String)],dL.prototype,"avatarStyle",void 0);_.g([_.U(),_.N("design:type",Boolean)],dL.prototype,"hideNavigationButton",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],dL.prototype,"isModernSd",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],dL.prototype,"modernTypography",void 0);
_.g([_.T({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],dL);
_.F(dL,"ytd-rich-list-header-renderer",function(){if(HvA!==void 0)return HvA;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return HvA=u},{mode:_.zW("kevlar_poly_si_batch_j058")?1:2});var CK=function(){return _.Q.apply(this,arguments)||this};
_.c(CK,_.Q);CK.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]]"}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],CK.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],CK.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],CK.prototype,"isSearch",void 0);_.g([_.T({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],CK);
_.F(CK,"ytd-preview-card-renderer",function(){if(W72!==void 0)return W72;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return W72=u},{mode:1});var $3k;var I4=function(){return _.Q.apply(this,arguments)||this};
_.c(I4,_.Q);I4.prototype.configureRendererStamper=function(){return{"data.menu":PR}};
I4.prototype.dataChanged=function(){var u=this.get("colorExtractionPalette.section1Color",this.data);u=_.ui(u);_.e8(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":u})};
I4.prototype.computeCardStyle=function(u){return this.get("style.value",u)||null};
I4.prototype.dataChanged=I4.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],I4.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],I4.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],I4.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.N("design:type",String)],I4.prototype,"cardStyle",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],I4.prototype,"dataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],I4);
_.F(I4,"ytd-compact-channel-recommendation-card-renderer",function(){if($3k!==void 0)return $3k;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return $3k=u},{mode:1});var nqw;var r6B;var yX=function(){var u=_.Q.apply(this,arguments)||this;u.alignAuto=!1;u.collapsed=!0;u.isToggled=!1;u.alwaysCollapsed=!1;u.canToggle=!0;u.collapsedHeight=80;u.disableToggle=!1;u.alwaysToggleable=!1;u.reversed=!1;u.shouldUseNumberOfLines=!1;u.recomputeOnResize=!1;u.canToggleJobId=0;u.lastReversed=!1;return u};
_.c(yX,_.Q);_.I=yX.prototype;_.I.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.I.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.I.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var u=_.bi(this.hostElement),K=u.childNodes,l=document.createDocumentFragment(),D=u.childNodes.length-1;D>=0;D--)_.bi(l).appendChild(K[D]);_.S("enable_shadydom_free_scoped_node_methods")?_.O9(this.hostElement).appendChild(l):u.appendChild(l)}};
_.I.ready=function(){var u=this;_.Cr(function(){u.initChildrenObserver()},1)};
_.I.detached=function(){this.detachObserver()};
_.I.toggle=function(u,K){this.canToggle&&(this.isToggled=K,_.xs(this.hostElement,"yt-refit"),u&&u.stopPropagation())};
_.I.reset=function(){this.childrenChanged()};
_.I.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.I.computeIsMoreVisible=function(u,K){return u&&!K};
_.I.computeShouldUseNumberOfLines=function(u){try{return!!u&&window.CSS.supports("-webkit-line-clamp","1")}catch(K){}return!1};
_.I.computeIsLessVisible=function(u,K){return u&&K};
_.I.observeCollapsedHeightAndMaxLines=function(){var u=this.collapsedHeight,K=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.e8(this.hostElement,{"--ytd-expander-max-lines":""+K,"--ytd-expander-collapsed-height":""}):_.e8(this.hostElement,{"--ytd-expander-collapsed-height":u+"px","--ytd-expander-max-lines":""})};
_.I.handleMoreTap=function(u){this.disableToggle||(_.xs(this.hostElement,"yt-expander-more-tapped"),this.toggle(u,!0))};
_.I.handleLessTap=function(u){_.xs(this.hostElement,"yt-expander-less-tapped");this.toggle(u,!1)};
_.I.initChildrenObserver=function(){var u=this;this.observer=new MutationObserver(function(){u.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.I.childrenChanged=function(){var u=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){aT(function(){u.canToggleJobId=0;u.calculateCanCollapse()})}))};
_.I.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};
_.I.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.I.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("collapsed-changed",this.collapsed))};
_.I.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("is-toggled-changed",this.isToggled))};
_.I.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("can-toggle-changed",this.canToggle))};
_.MN.Object.defineProperties(yX.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
yX.prototype.canToggleChangedForBinding=yX.prototype.canToggleChangedForBinding;yX.prototype.isToggledChangedForBinding=yX.prototype.isToggledChangedForBinding;yX.prototype.collapsedChangedForBinding=yX.prototype.collapsedChangedForBinding;yX.prototype.observeCollapsedHeightAndMaxLines=yX.prototype.observeCollapsedHeightAndMaxLines;yX.prototype.onIronResize=yX.prototype.onIronResize;yX.prototype.reversedChanged=yX.prototype.reversedChanged;yX.prototype.toggledChanged=yX.prototype.toggledChanged;
yX.prototype.alwaysToggleableChanged=yX.prototype.alwaysToggleableChanged;_.g([_.e(_.Ae),_.N("design:type",Object)],yX.prototype,"ironResizableBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],yX.prototype,"alignAuto",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],yX.prototype,"collapsed",void 0);_.g([_.U(),_.N("design:type",Object)],yX.prototype,"isToggled",void 0);_.g([_.U(),_.N("design:type",Object)],yX.prototype,"alwaysCollapsed",void 0);
_.g([_.U(),_.N("design:type",Object)],yX.prototype,"canToggle",void 0);_.g([_.U(),_.N("design:type",Object)],yX.prototype,"collapsedHeight",void 0);_.g([_.U(),_.N("design:type",Object)],yX.prototype,"disableToggle",void 0);_.g([_.U(),_.N("design:type",Object)],yX.prototype,"alwaysToggleable",void 0);_.g([_.U(),_.N("design:type",Object)],yX.prototype,"reversed",void 0);_.g([_.U(),_.N("design:type",Number)],yX.prototype,"maxNumberOfLines",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.N("design:type",Object)],yX.prototype,"shouldUseNumberOfLines",void 0);_.g([_.U(),_.N("design:type",Object)],yX.prototype,"recomputeOnResize",void 0);_.g([_.BF("#content"),_.N("design:type",HTMLDivElement)],yX.prototype,"content",void 0);_.g([_.wn("alwaysToggleable"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yX.prototype,"alwaysToggleableChanged",null);
_.g([_.wn("isToggled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yX.prototype,"toggledChanged",null);_.g([_.R("canToggleJobId"),_.N("design:type",Object),_.N("design:paramtypes",[])],yX.prototype,"isResetting",null);_.g([_.JU("reversed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yX.prototype,"reversedChanged",null);
_.g([_.PF("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yX.prototype,"onIronResize",null);_.g([_.JU("maxNumberOfLines","collapsedHeight"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yX.prototype,"observeCollapsedHeightAndMaxLines",null);_.g([_.JU("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yX.prototype,"collapsedChangedForBinding",null);
_.g([_.JU("isToggled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yX.prototype,"isToggledChangedForBinding",null);_.g([_.JU("canToggle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yX.prototype,"canToggleChangedForBinding",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-expander"})],yX);
_.F(yX,"ytd-expander",function(){if(r6B!==void 0)return r6B;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return r6B=u},{mode:1});var sa=function(){return _.Q.apply(this,arguments)||this};
_.c(sa,_.Q);sa.prototype.computeIsCarousel=function(u){return!!u.isCarousel};
sa.prototype.observeLightsourcePalette=function(){var u,K=(u=this.data)==null?void 0:u.vibrantsourceColorPaletteData;K&&_.mE(this.hostElement,K)};
sa.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
sa.prototype.observeLightsourcePalette=sa.prototype.observeLightsourcePalette;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],sa.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],sa.prototype,"data",void 0);_.g([_.U({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],sa.prototype,"isCarousel",void 0);
_.g([_.JU("data.vibrantsourceColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sa.prototype,"observeLightsourcePalette",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],sa);
_.F(sa,"ytd-media-upsell-renderer",function(){if(nqw!==void 0)return nqw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return nqw=u},{mode:2});var vqs;var o4=function(){var u=_.Q.apply(this,arguments)||this;u.JSC$14821_playerEvents=new Map;u.listeningToPlayer=!1;u.startX=0;u.active=!1;u.shouldShowButtons=_.S("web_buttons_hidden_killswitch");u.isHighlighted=!1;u.useHighlightStyling=_.S("web_enable_deeper_metadata_highlight_styling");u.modern=_.S("kevlar_modern_sd");u.enableProblemWalkthrough=_.S("problem_walkthrough_sd");return u};
_.c(o4,_.Q);_.I=o4.prototype;
_.I.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}}}}}};
_.I.created=function(){this.JSC$14821_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.I.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Ql(this,this.onRepeatButtonToggle));_.S("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Ql(this,this.onActiveUpdate))};
_.I.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Ql(this,this.onRepeatButtonToggle));_.S("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Ql(this,this.onActiveUpdate))};
_.I.onDataChanged=function(){this.removePlayerListeners()};
_.I.onColorPaletteChange=function(){var u={},K;if(_.Nu()==="USER_INTERFACE_THEME_DARK"&&((K=this.data)==null?0:K.darkColorPalette)){var l=this.data.darkColorPalette;u["--ytd-macro-markers-list-item-background-color"]=_.Kg(this.get("section2Color",l))}else{var D;_.Nu()==="USER_INTERFACE_THEME_LIGHT"&&((D=this.data)==null?0:D.lightColorPalette)&&(l=this.data.lightColorPalette,u["--ytd-macro-markers-list-item-background-color"]=_.Kg(this.get("section3Color",l)))}l?(u["--ytd-macro-markers-list-item-title-color"]=
_.Kg(this.get("primaryTitleColor",l)),u["--ytd-macro-markers-list-item-secondary-color"]=_.Kg(this.get("secondaryTitleColor",l)),u["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Kg(this.get("section1Color",l)),this.customButtonProperties={customColors:{color:_.Kg(this.get("primaryTitleColor",l))}},this.useColorSampling=!0):(u["--ytd-macro-markers-list-item-background-color"]="initial",u["--ytd-macro-markers-list-item-title-color"]="initial",u["--ytd-macro-markers-list-item-secondary-color"]=
"initial",u["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.e8(this.hostElement,u)};
_.I.onEndpointMouseDown=function(u){this.startX=u.clientX};
_.I.onEndpointClick=function(u){var K=this,l,D,d;return _.H(function(C){if(C.nextAddress==1){if(K.startX!==u.clientX)return u.preventDefault(),C.return();K.data&&K.ytRendererBehavior.logExplicitClick(K.data);if(!K.seekWithAnimationOnClick)return C.jumpTo(0);if(u.button!==0||u.shiftKey||u.altKey||u.metaKey||u.ctrlKey||_.rE(_.WF(u),K.hostElement,["BUTTON".toString()]))return C.return();u.stopPropagation();u.preventDefault();return K.data?C.yield(_.SU().getPlayerPromise(),3):C.return()}l=C.yieldResult;
d=(D=_.b(K.data.onTap,_.oy))==null?void 0:D.startTimeSeconds;d!==void 0&&l.seekToTimeWithAnimation(d*1E3,_.WI(K.data.title));_.TG(C)})};
_.I.computeLayout=function(u){return u};
_.I.computeIsHighlighted=function(u){return!!u};
_.I.computeCarouselType=function(u){return u};
_.I.hideModernCarousel=function(u){return this.modern&&this.hideThumbnail(u)};
_.I.hideThumbnail=function(u){return this.enableProblemWalkthrough&&u!==null&&u==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.I.onRepeatButtonToggle=function(u){var K=this;u.detail.toggled&&_.SU().getPlayerPromise().then(function(l){K.ytPlayerListenerBehavior.listenToPlayerEvents(l,K.JSC$14821_playerEvents);K.listeningToPlayer=!0})};
_.I.onLoopRangeChange=function(u){var K=_.bi(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(K){var l=K.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",K.polymerController.data);if(l){var D=Number(l.endTimeMs);if(Number(l.startTimeMs)!==(u==null?void 0:u.startTimeMs)||D!==(u==null?void 0:u.endTimeMs))K.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.I.removePlayerListeners=function(){var u=this;this.listeningToPlayer&&_.SU().getPlayerPromise().then(function(K){u.ytPlayerListenerBehavior.unlistenFromPlayerEvents(K,u.JSC$14821_playerEvents);u.listeningToPlayer=!1})};
_.I.onActiveUpdate=function(u){this.active=u.detail.active};
o4.prototype.onColorPaletteChange=o4.prototype.onColorPaletteChange;o4.prototype.onDataChanged=o4.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],o4.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",_.HB)],o4.prototype,"ytPlayerListenerBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],o4.prototype,"data",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],o4.prototype,"useCustomColors",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],o4.prototype,"active",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],o4.prototype,"shouldShowButtons",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.N("design:type",String)],o4.prototype,"layout",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.N("design:type",Object)],o4.prototype,"isHighlighted",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],o4.prototype,"useHighlightStyling",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],o4.prototype,"modern",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],o4.prototype,"enableProblemWalkthrough",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.N("design:type",String)],o4.prototype,"carouselType",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],o4.prototype,"useColorSampling",void 0);_.g([_.U(),_.N("design:type",Boolean)],o4.prototype,"seekWithAnimationOnClick",void 0);_.g([_.U(),_.N("design:type",Object)],o4.prototype,"customButtonProperties",void 0);
_.g([_.BF("#repeat-button"),_.N("design:type",HTMLElement)],o4.prototype,"repeatButton",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],o4.prototype,"onDataChanged",null);_.g([_.JU("data.lightColorPalette","data.darkColorPalette"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],o4.prototype,"onColorPaletteChange",null);_.g([_.T({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],o4);
_.F(o4,"ytd-macro-markers-list-item-renderer",function(){if(vqs!==void 0)return vqs;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return vqs=u},{mode:1});var G4a;var tia;var W6=function(){var u=_.Q.apply(this,arguments)||this;u.modernTypography=_.S("web_modern_typography");return u};
_.c(W6,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],W6.prototype,"modernTypography",void 0);_.g([_.U(),_.N("design:type",Object)],W6.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],W6);
_.F(W6,"ytd-title-and-button-list-header-renderer",function(){if(tia!==void 0)return tia;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return tia=u},{mode:1});var x3w;var S1w=new _.G$("BUTTON_RENDERER_WIZ_TOKEN"),bvm=new _.G$("BUTTON_RENDERER_TOKEN");_.H6=_.rf(function(u){var K=_.GB().resolve(_.vv(S1w));if(K)return _.n(K,Object.assign({},u));var l=_.GB().resolve(bvm);return l?_.n(uRq,null,function(){return _.n(H4,null,function(){var D,d,C,W,M,q,v,G,t,x,O,a;return void l(u.data(),{onButtonClickCallback:u.onButtonClickCallback,shouldShowIcons:(D=u.shouldShowIcons)==null?void 0:D.call(u),icon:(d=u.icon)==null?void 0:d.call(u),processAllEndpoints:(C=u.processAllEndpoints)==null?void 0:C.call(u),preventDefault:(W=u.preventDefault)==null?void 0:W.call(u),
stopPropagation:(M=u.stopPropagation)==null?void 0:M.call(u),disableButtonRendererClickHandling:(q=u.disableButtonRendererClickHandling)==null?void 0:q.call(u),className:(v=u.className)==null?void 0:v.call(u),buttonOverrides:(G=u.buttonOverrides)==null?void 0:G.call(u),forceModernIconButton:(t=u.forceModernIconButton)==null?void 0:t.call(u),isSubscribe:(x=u.isSubscribe)==null?void 0:x.call(u),alignByText:(O=u.alignByText)==null?void 0:O.call(u),forceDisabled:(a=u.forceDisabled)==null?void 0:a.call(u)})})}):
_.n(_.G1,null)},"ea");
_.H6.idomCompat=!0;var Ovm=_.rf(function(u){var K=u.data,l=_.qE(u.useSquareAspectRatio,!1);return _.n("dismissed-mini-game-card-view-model",null,_.n(_.r,{cond:function(){var D,d;return(D=K().responseText)==null?void 0:(d=D.runs)==null?void 0:d.length},
then:function(){var D={};return _.n("div",{class:_.JB("yt-mini-game-card-view-model__dismissed-card",(D["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!l()},D["yt-mini-game-card-view-model--dismissed-square-card"]=l,D))},_.n("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.n(_.r,{cond:function(){return K().responseText.runs[0].text},
then:function(d){return _.n("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:d},d)}}),_.n(_.mo,{data:function(){return K().buttons}},{buttonRenderer:_.H6,
buttonViewModel:_.P2})))}}))},"fa");var fDB=_.rf(function(u){u=_.$U(u,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var K=u.data,l=u.useFullWidth,D=u.isDesktopWeb,d=u.addSearchResultTopMargin,C=function(){return K().layout},W=function(){return K().title},M=function(){return K().metadataText?K().metadataText:K().genre},q=function(){return K().channelName},v=function(){return K().image},G=function(){return K().colorPalette},t=function(){return K().actionButton},x=function(){return K().overflowButton},
O=function(){return K().avatar},a=function(){var V={};
V=_.JB("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(V["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return D()},V));
return _.n("div",{class:V},_.n(c6a,{imageData:v,colorPalette:G}),_.n(aD2,{onTap:function(){return K().onTap},
imageData:v,accessibilityText:function(){return K().accessibilityText},
overlayBadgeText:function(){return K().overlayBadgeText},
iconName:function(){return K().iconName},
unplayableInlinePlaybackIconName:function(){return K().unplayableInlinePlaybackIconName},
isDesktopWeb:D}),_.n(_.r,{cond:function(){return!D()},
then:function(){return _.n(_.G1,null,_.n(zg0,{layout:C,colorPalette:G,isDesktopWeb:D,overflowButton:x,avatar:O,onTap:function(){return K().onTap},
genre:M,title:W,channelName:q}),_.n(egA,{actionButton:t}))}}))},f=function(){var V={};
V=_.JB((V["yt-mini-game-card-view-model--search-result-desktop"]=function(){return D()},V["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!D()},V["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return d()},V));
return _.n("div",{class:V},a(),_.n(Rg2,{description:function(){return K().description},
isDesktopWeb:D,title:W,genre:M,onTap:function(){return K().onTap},
actionButton:t,overflowButton:x,avatar:O,channelName:q}))},B=function(){var V={};
V=_.JB("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(V["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return D()},V["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return D()&&K().width===135},V["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return D()},V["yt-mini-game-card-view-model--big-metadata-font"]=function(){return K().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},V["yt-mini-game-card-view-model--use-full-width"]=
function(){return l()},V["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!t()},V));
return _.n("div",{class:V},_.n(U3s,{colorPalette:G,isDesktopWeb:D,onTap:function(){return K().onTap},
accessibilityText:function(){return K().accessibilityText},
overlayBadgeText:function(){return K().overlayBadgeText},
iconName:function(){return K().iconName},
unplayableInlinePlaybackIconName:function(){return K().unplayableInlinePlaybackIconName},
actionButton:t,imageData:v}),_.n(zg0,{layout:C,colorPalette:G,isDesktopWeb:D,overflowButton:x,avatar:O,onTap:function(){return K().onTap},
genre:M,title:W,channelName:q}))},p=function(){var V={};
V=_.JB("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(V["yt-mini-game-card-view-model--square-card-desktop"]=function(){return D()},V["yt-mini-game-card-view-model--use-full-width"]=function(){return l()},V));
return _.n("div",{class:V},_.n(aD2,{onTap:function(){return K().onTap},
imageData:v,accessibilityText:function(){return K().accessibilityText},
overlayBadgeText:function(){return K().overlayBadgeText},
iconName:function(){return K().iconName},
unplayableInlinePlaybackIconName:function(){return K().unplayableInlinePlaybackIconName},
isDesktopWeb:D}),_.n(zg0,{layout:C,colorPalette:G,isDesktopWeb:D,overflowButton:x,avatar:O,onTap:function(){return K().onTap},
genre:M,title:W,channelName:q}))};
return _.n("mini-game-card-view-model",{class:u.className},_.n(_.VI,null,_.n(_.ic,{when:function(){return C()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return B()}),_.n(_.ic,{when:function(){return C()==="MINI_APP_LAYOUT_SQUARE"}},function(){return p()}),_.n(_.ic,{when:function(){return C()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return f()})))},"ga");
fDB.idomCompat=!0;var egA=_.rf(function(u){var K=_.qE(u.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.n(_.mo,{data:u.actionButton},{buttonViewModel:function(l){return _.n("div",{class:K},_.n(_.P2,{data:l.data}))}})},"ha"),aD2=_.rf(function(u){var K=u.onTap;
var l=u.imageData;var D=u.accessibilityText;var d=u.overlayBadgeText;var C=u.iconName;var W=u.unplayableInlinePlaybackIconName;u=u.isDesktopWeb;return _.n(_.I5,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:K},_.n(_.n4,{data:l,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(D==null?void 0:D())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.n(QJB,{overlayBadgeText:d,iconName:C,unplayableInlinePlaybackIconName:W,isDesktopWeb:u}))},"ia"),QJB=_.rf(function(u){var K=u.overlayBadgeText;
var l=u.iconName;var D=u.unplayableInlinePlaybackIconName;var d=u.isDesktopWeb;return _.n("div",{class:"yt-mini-game-card-view-model__badge-container"},_.n(_.r,{cond:l,then:function(C){return _.n("div",{class:"yt-mini-game-card-view-model__badge"},_.n("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.n(_.VB,{icon:C,className:"yt-mini-game-card-view-model__icon",size:12}),_.n("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},K)))}}),_.n(_.r,{cond:function(){return!l()&&
K()},
then:function(){return _.n("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},K)}}),_.n(_.r,{cond:function(){return D()&&d()},
then:function(){return _.n("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.n(_.VB,{icon:D,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ja"),c6a=_.rf(function(u){var K=u.colorPalette;
var l=u.imageData;var D=function(){return K().vibrantColorPalette?K().vibrantColorPalette.section2Color:K().sectionTwoColor};
return _.n(_.G1,null,_.n("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Fb({"background-color":function(){return li(D(),"1")}})}),_.n("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Fb({"background-image":function(){return"url("+l().sources[0].url+")"}})}),_.n("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Fb({background:function(){return"linear-gradient(180deg,\n    "+li(D(),".8")+" 0%,\n    "+li(D(),".4")+" 25%,\n    "+li(K().vibrantColorPalette?K().vibrantColorPalette.section4Color:K().sectionFourColor,".8")+" 100%)"}})}))},"ka"),zg0=_.rf(function(u){var K=u.layout;
var l=u.colorPalette;var D=u.overflowButton;var d=u.avatar;var C=u.onTap;var W=u.title;var M=u.channelName;var q=u.genre;var v=function(){var G;return K()!=="MINI_APP_LAYOUT_SQUARE"&&((G=l())==null?0:G.textPrimaryColor)?"color: "+li(l().textPrimaryColor,".7"):""};
return _.n("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.n(_.r,{cond:d,then:function(){return _.n("div",{class:"yt-mini-game-card-view-model__avatar"},_.n(_.mo,{data:d},{avatarViewModel:_.Y_}))}}),_.n(_.I5,{command:C,
className:"yt-mini-game-card-view-model__metadata-details"},_.n("h3",{class:"yt-mini-game-card-view-model__title",title:W},W),_.n(_.r,{cond:d,then:function(){return _.n("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.n("span",{class:"yt-mini-game-card-view-model__genre",title:M,style:v},M),_.n("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:v},q))},
else:function(){return _.n("span",{class:"yt-mini-game-card-view-model__genre",title:q},q)}})),_.n("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.n(_.mo,{data:D},{buttonViewModel:function(G){var t=G.data;
return _.n(_.P2,{data:function(){return Object.assign({},t(),{customFontColor:K()==="MINI_APP_LAYOUT_SINGLETON"?t().customFontColor:void 0})}})}})))},"la"),U3s=_.rf(function(u){var K=u.colorPalette;
var l=u.isDesktopWeb;var D=u.onTap;var d=u.accessibilityText;var C=u.overlayBadgeText;var W=u.iconName;var M=u.unplayableInlinePlaybackIconName;var q=u.actionButton;u=u.imageData;return _.n("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.n(c6a,{imageData:u,colorPalette:K}),_.n(aD2,{onTap:D,imageData:u,accessibilityText:d,overlayBadgeText:C,iconName:W,unplayableInlinePlaybackIconName:M,isDesktopWeb:l}),_.n(_.r,{cond:function(){return q==null?void 0:q()},
then:function(){return _.n(egA,{actionButton:q})}}))},"ma"),Rg2=_.rf(function(u){var K=u.description;
var l=u.isDesktopWeb;var D=u.title;var d=u.genre;var C=u.onTap;var W=u.actionButton;var M=u.overflowButton;var q=u.avatar;u=u.channelName;var v={};v=_.JB("yt-mini-game-card-view-model--search-result-metadata-wrapper",(v["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=l,v["yt-mini-game-card-view-model--show-unplayable-on-hover"]=l,v["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!l()},v));
var G={};G=_.JB("yt-mini-game-card-view-model__search-result-info-row",(G["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!l()},G));
return _.n("div",{class:v},_.n("div",{class:G},_.n(_.I5,{command:C,className:"yt-mini-game-card-view-model__metadata-details"},_.n("h3",{class:"yt-mini-game-card-view-model__title",title:D},D),_.n("span",{class:"yt-mini-game-card-view-model__genre",title:d},d)),_.n(egA,{actionButton:W,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.n("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.n(_.mo,{data:M},{buttonViewModel:_.P2}))),_.n("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.n("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.n("div",{class:"yt-mini-game-card-view-model__avatar"},_.n(_.mo,{data:q},{avatarViewModel:function(t){var x=t.data;return _.n(_.Y_,{data:function(){return Object.assign({},x(),{avatarImageSize:l()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.n(_.I5,{command:C,
className:"yt-mini-game-card-view-model__description"},_.n("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},u)),_.n(_.I5,{command:C,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.n("div",null)))),_.n(_.r,{cond:l,then:function(){return _.n(_.I5,{command:C,className:"yt-mini-game-card-view-model__description"},K)}}))},"na");_.SX(fDB,"mini-game-card-view-model",{props:{data:_.M6,className:_.M6,useFullWidth:_.M6,isDesktopWeb:_.M6,addSearchResultTopMargin:_.M6}});_.SX(Ovm,"dismissed-mini-game-card-view-model",{props:{data:_.M6,useSquareAspectRatio:_.M6}});var Mg=function(){var u=_.Q.apply(this,arguments)||this;u.isSearch=!1;u.isRichGrid=!1;return u};
_.c(Mg,_.Q);_.I=Mg.prototype;_.I.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.I.dismissibleItemOnYtServiceRequestSent=function(u,K){K.actions&&this.dismissibleItemProcessActions(u,K.actions)};
_.I.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.I.dataChanged=function(){this.dismissibleItemReset()};
_.I.dismissibleItemProcessActions=function(u,K){for(var l=0;l<K.length;l++){var D=K[l];_.b(D,_.FP)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.b(D,_.FP)),u.stopPropagation())}};
_.I.dismissibleItemHandleReplaceEnclosingAction=function(u){this.dismissedRenderer=u.item;this.isDismissed=!0};
_.MN.Object.defineProperties(Mg.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var u;return!!this.data&&!((u=this.dismissedRenderer)==null?0:u.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.dismissedRenderer)==null||!u.notificationMultiActionRenderer)}}});
Mg.prototype.dataChanged=Mg.prototype.dataChanged;Mg.prototype.dismissibleItemOnRequestSent=Mg.prototype.dismissibleItemOnRequestSent;Mg.prototype.dismissibleItemOnYtServiceRequestSent=Mg.prototype.dismissibleItemOnYtServiceRequestSent;_.g([_.U(),_.N("design:type",Object)],Mg.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Mg.prototype,"isSearch",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Mg.prototype,"isDismissed",void 0);
_.g([_.U(),_.N("design:type",Object)],Mg.prototype,"dismissedRenderer",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Mg.prototype,"isRichGrid",void 0);_.g([_.R("data.layout"),_.N("design:type",Object),_.N("design:paramtypes",[])],Mg.prototype,"useSquareAspectRatio",null);_.g([_.R("data","dismissedRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Mg.prototype,"showCard",null);
_.g([_.R("data","dismissedRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Mg.prototype,"showDismissed",null);_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],Mg.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.g([_.PF("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Mg.prototype,"dismissibleItemOnRequestSent",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mg.prototype,"dataChanged",null);_.g([_.E9({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],Mg);
_.F(Mg,"ytd-mini-game-card-view-model",function(){if(x3w!==void 0)return x3w;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return x3w=u},{mode:_.zW("kevlar_poly_si_batch_j081")?1:2});var P92;var J6N;var qg=function(){return _.qN.apply(this,arguments)||this};
_.c(qg,_.qN);qg.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
qg.prototype.getContinuationUrl=function(u){var K={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(K.itct=this.data.clickTrackingParams);return _.Hv(u,K)};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],qg.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],qg.prototype,"data",void 0);_.g([_.E9({is:"yt-reload-continuation",noInjection:!0})],qg);var jJa;var BcA;var $W=function(){var u=_.Q.apply(this,arguments)||this;u.notificationData={};return u};
_.c($W,_.Q);_.I=$W.prototype;_.I.isMenuExpanded=function(u){return u&&u.length<=1?"undefined":"false"};
_.I.dataChanged_=function(){this.selected=void 0;var u=this.computeSelectedIndex_(this.data);u>=0&&(this.selected=u);u=this.data&&this.data.length>1;_.cF(this.hostElement,"has-items",u);_.bi(this.hostElement).querySelector("#label").tabIndex=u?0:-1};
_.I.onDropdownOpen=function(){var u=_.AC();if(this.parentTrackingParams&&this.data){var K=_.gf(this.parentTrackingParams);this.data.forEach(function(l){u&&K&&l.trackingParams&&(l=_.gf(l.trackingParams),_.DJ(u,K,l),_.If(u,[l]))})}else this.parentTrackingParams||_.hV(new _.wv("No parent tracking params passed in for yt-dropdown-menu."))};
_.I.hasNotification=function(u){var K;if(u.targetId&&((K=this.notificationData)==null?0:K.targetId)){var l;return u.targetId===((l=this.notificationData)==null?void 0:l.targetId)}};
_.I.computeSelectedIndex_=function(u){if(u)for(var K=0,l=u.length;K<l;K++)if(u[K].selected)return K;return-1};
_.I.computeLabel_=function(u){return this.data&&u!=void 0?this.data[u].title:""};
_.I.computeShowIcon_=function(u,K){return!K&&!!u};
_.I.computeVerticalOffset_=function(u){return u?36:0};
_.I.computeEndpoint_=function(u){return u.endpoint||u.navigationEndpoint};
_.I.onLabelClick_=function(u){this.data&&this.data.length<=1?u.stopPropagation():this.menuExpanded="true"};
_.I.onIronActivate_=function(u){u=u.detail.item;var K=_.bi(this.hostElement).querySelector("#repeat").itemForElement(u);if(K&&K.trackingParams){var l=_.AC(),D=_.gf(K.trackingParams);l&&_.Wi(l,D)}if(K&&K.serviceEndpoint)_.S("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(K.serviceEndpoint):_.c0(this.hostElement,[K.serviceEndpoint]),_.xs(this.hostElement,"yt-playlist-reloading");else a:{if((K=u.querySelector("yt-supported-renderers"))&&
(K=K.rendererElement)&&K.is=="yt-reload-continuation"){K.trigger();break a}(u=u.querySelector("yt-reload-continuation"))&&u.trigger()}};
_.I.onTap_=function(u){u.preventDefault()};
_.I.onItemTap_=function(u){this.ytEndpointBehavior.onEndpointTap_(u)};
_.I.onLinkFocus_=function(u){try{var K=u.target}catch(D){}if(K){var l=K.querySelector("tp-yt-paper-item");l&&_.It(this,"focus",function(){l.focus()})}};
_.I.onMenuClose_=function(){this.menuExpanded="false"};
_.I.isLabelIconActive_=function(u){return u==="true"};
_.I.computeHasSubtitle_=function(u){return!!u};
_.I.computeHrefForItem_=function(u){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(u))};
_.I.updateSelectedFromBinding=function(u){this.selected=u.detail.value};
_.MN.Object.defineProperties($W.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
$W.prototype.onMenuClose_=$W.prototype.onMenuClose_;$W.prototype.onTap_=$W.prototype.onTap_;$W.prototype.onIronActivate_=$W.prototype.onIronActivate_;$W.prototype.onDropdownOpen=$W.prototype.onDropdownOpen;$W.prototype.dataChanged_=$W.prototype.dataChanged_;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],$W.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.po.YtEndpointBehavior),_.N("design:type",Object)],$W.prototype,"ytEndpointBehavior",void 0);
_.g([_.U(),_.N("design:type",Array)],$W.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],$W.prototype,"parentTrackingParams",void 0);_.g([_.U(),_.N("design:type",Object)],$W.prototype,"selected",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],$W.prototype,"useLabel",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],$W.prototype,"useComputedAriaLabel",void 0);_.g([_.U(),_.N("design:type",String)],$W.prototype,"icon",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],$W.prototype,"iconLabel",void 0);_.g([_.U(),_.N("design:type",String)],$W.prototype,"ariaLabel",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],$W.prototype,"disabled",void 0);_.g([_.U({computed:"isMenuExpanded(data)"}),_.N("design:type",String)],$W.prototype,"menuExpanded",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],$W.prototype,"closeOnActivate",void 0);
_.g([_.U({reflectToAttribute:!0,value:_.S("web_modern_buttons")}),_.N("design:type",Boolean)],$W.prototype,"modernButtons",void 0);_.g([_.U(),_.N("design:type",Object)],$W.prototype,"notificationData",void 0);_.g([_.R("ariaLabel, selected"),_.U(),_.N("design:type",String),_.N("design:paramtypes",[])],$W.prototype,"computedAriaLabel",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$W.prototype,"dataChanged_",null);
_.g([_.PF("paper-dropdown-open"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$W.prototype,"onDropdownOpen",null);_.g([_.PF("iron-activate"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$W.prototype,"onIronActivate_",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],$W.prototype,"onTap_",null);
_.g([_.PF("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$W.prototype,"onMenuClose_",null);_.g([_.E9({is:"yt-dropdown-menu",disableElementRegistration:!0})],$W);
_.F($W,"yt-dropdown-menu",function(){if(BcA===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;jJa===void 0&&(jJa=document.createElement("template"));var D=jJa;l.call(K,D.content.cloneNode(!0),u.content.firstChild);BcA=u}u=BcA;return u},{mode:2});var nK=function(){var u=_.Q.apply(this,arguments)||this;u.hasNotification=!1;return u};
_.c(nK,_.Q);nK.prototype.computeId=function(u){return u};
nK.prototype.computeHorizontalAlign=function(u){return u?"right":"left"};
nK.prototype.computeAccessibilityLabel=function(u){var K,l;return((K=u.accessibility)==null?void 0:(l=K.accessibilityData)==null?void 0:l.label)||null};
nK.prototype.notificationDataChanged=function(){var u;this.hasNotification=!!this.notificationData&&!((u=this.data)==null?0:u.icon)};
nK.prototype.notificationDataChanged=nK.prototype.notificationDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.dh.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],nK.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],nK.prototype,"data",void 0);_.g([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",String)],nK.prototype,"id",void 0);
_.g([_.U({value:!1}),_.N("design:type",Boolean)],nK.prototype,"isRightAligned",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],nK.prototype,"disabled",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],nK.prototype,"closeOnActivate",void 0);_.g([_.U(),_.N("design:type",Object)],nK.prototype,"notificationData",void 0);_.g([_.U(),_.N("design:type",Object)],nK.prototype,"hasNotification",void 0);
_.g([_.U({value:!1}),_.N("design:type",Boolean)],nK.prototype,"useComputedAriaLabel",void 0);_.g([_.JU("notificationData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nK.prototype,"notificationDataChanged",null);_.g([_.E9({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],nK);
_.F(nK,"yt-sort-filter-sub-menu-renderer",function(){if(J6N===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;P92===void 0&&(P92=document.createElement("template"));var D=P92;l.call(K,D.content.cloneNode(!0),u.content.firstChild);J6N=u}u=J6N;return u},{mode:2});var pgC=_.B1(HvH);_.v4(HvH);_.SX(pgC,"place-data-view-model",{props:{data:_.M6}});var ivA=new _.G$("INLINE_PLAYBACK_HOOK_TOKEN");var TcR=function(u){this.setActiveSlideIndex=u;this.jobIds=[];this.isSlideshowPlaying=!1},Viw=function(u,K){u.isSlideshowPlaying||(u.isSlideshowPlaying=!0,wgw(u),F7S(u,K,0))},wgw=function(u){_.zH(_.YL,function(){u.setActiveSlideIndex(0)},1)},F7S=function(u,K,l){u.jobIds.push(_.zH(_.YL,function(){var D=l<K-1?l+1:0;
u.setActiveSlideIndex(D);F7S(u,K,D)},1800))};var gqa=new _.G$("IMAGE_ON_LOAD_HANDLER_TOKEN");var Ncw=_.rf(function(u){return _.n("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.n(_.r,{cond:function(){var K;return(K=u.data())==null?void 0:K.thumbnail},
then:function(K){return _.n(_.n4,{data:K,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"oa");_.k40=_.rf(function(u){var K=u.data;var l=u.lockupExperiments;u={};return _.n("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.n("div",{class:_.JB("ytThumbnailOverlayButtonViewModelButton",(u.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var D;return l&&((D=l())==null?void 0:D.useLegacySizedIconButton)},u))},_.n(_.mo,{data:function(){return K().overlayButton}},{buttonViewModel:function(D){return _.n(_.P2,{data:D.data,
buttonOverrides:function(){var d;return l&&((d=l())==null?0:d.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"pa");
_.k40.idomCompat=!0;var ZvH=_.rf(function(u){return _.n("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.p4(function(K){K.preventDefault();return!1})},_.n(_.mo,{data:function(){return u.data().buttons}},{toggleButtonViewModel:function(K){return _.n("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.n(_.YK,{data:K.data}))}}))},"qa");
ZvH.idomCompat=!0;var Y12=_.rf(function(u){var K=function(){var l;return((l=_.b(u.data().rendererContext,_.T8))==null?void 0:l.label)||""};
return _.n("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.n(_.r,{cond:function(){return u.data().image},
then:function(){return _.n("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.n(_.n4,{data:function(){return u.data().image},
alt:K}))}}),_.n(_.r,{cond:function(){return u.data().text},
then:function(){return _.n("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return u.data().text})}}))},"ra");_.rL=_.rf(function(u){var K=[],l=function(){var x,O;return frR((x=u.width)==null?void 0:x.call(u),(O=u.height)==null?void 0:O.call(u))},D=_.GB().resolve(_.vv(gqa)),d=_.o9("yt-thumbnail-view-model",function(){K.push("elRef.value set");
var x;(x=u.playbackRef)==null||x.call(u,{thumbnailElRef:d,thumbnail:u.data().image,thumbnailOverlays:u.data().overlays,thumbnailSize:l()})});
_.ZY(function(){K.push("onInit");_.No(function(){K.push("onCleanup")})});
var C=_.Da(q1r),W=function(){var x,O;return(O=(x=u.aspectRatio)==null?void 0:x.call(u))!=null?O:0},M=function(){return(u.data().image?_.EmL(u.data().image):W())<=1&&W()===0},q=function(){return M()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},v=function(){d.value||_.hV(new _.wv("Thumbnail elRef.value is null",K.join("\n")));
D&&d.value&&D(d.value)},G=function(){var x,O;
return((x=u.hovered)==null?void 0:x.call(u))&&l()!=="large"&&((O=u.data().overlays)==null?void 0:O.some(function(a){return _.b(a,we2)}))},t={};
return _.n("yt-thumbnail-view-model",{class:_.JB("yt-thumbnail-view-model",u.className,function(){return r6Z(W())},function(){var x,O;
a:{var a=l(),f=(x=u.disableRounding)==null?void 0:x.call(u);x=(O=u.isClip)==null?void 0:O.call(u);if(!f&&!x)switch(a){case "large":O="yt-thumbnail-view-model--large";break a;case "small":O="yt-thumbnail-view-model--small";break a;default:O="yt-thumbnail-view-model--medium";break a}O=void 0}return O},(t["yt-thumbnail-view-model--cinematic"]=M,t)),
style:_.Fb({"background-color":function(){var x,O=M()?(x=u.data().backgroundColor)==null?void 0:x.lightTheme:void 0;return O?li(O,"1"):void 0}}),
el:d},_.n(_.r,{cond:M,then:function(){return _.n("div",{class:"yt-thumbnail-view-model__blurred-image"},_.n(_.n4,{data:function(){return u.data().image},
alt:"",contentMode:q,targetWidth:u.width,onload:v}))}}),_.n("div",{class:"yt-thumbnail-view-model__image"},_.n(_.n4,{data:function(){return u.data().image},
alt:"",contentMode:q,targetWidth:u.width,onload:v}),null),_.n(_.mo,{data:function(){return G()?void 0:u.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:K7S,thumbnailOverlayBadgeViewModel:function(x){return _.n(lDk,{data:x.data,thumbnailSize:l,isClip:u.isClip})},
thumbnailBottomOverlayViewModel:function(x){return _.n(hHa,{data:x.data,thumbnailSize:l,isClip:u.isClip})},
thumbnailOverlayFullViewModel:Y12,thumbnailOverlayButtonViewModel:function(x){return _.n(_.k40,{data:x.data,lockupExperiments:u.lockupExperiments})}}),_.n(_.mo,{data:function(){var x;
return((x=u.hovered)==null?0:x.call(u))?u.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(x){return _.n(Zt,{data:x.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:ZvH}),_.n(_.mo,{data:function(){var x;return((x=u.hovered)==null?0:x.call(u))&&C()?u.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:Ncw}),_.n(_.r,{cond:u.isClip,then:function(){return _.n("div",{class:"yt-pinking"},_.n("svg",{class:"yt-pinking__pinking-left"},_.n("defs",null,_.n("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.n("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.n("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.n("svg",{class:"yt-pinking__pinking-right"},_.n("defs",null,_.n("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.n("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.n("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"sa");
_.rL.idomCompat={callbacks:{playbackRef:!0}};var A6m=_.rf(function(u){var K=_.y(_.On(-1,void 0,"IOLZ0b")),l=K.next().value,D=K.next().value;_.ZY(function(){var d=new TcR(D);Viw(d,u.data().thumbnails.length);_.No(function(){if(d.isSlideshowPlaying){d.isSlideshowPlaying=!1;for(var C=d.jobIds,W=0,M=C.length;W<M;W++)_.YL.cancelJob(C[W]);d.jobIds.length=0}})});
return _.n("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.n(_.mo,{data:function(){return u.data().thumbnails}},{thumbnailViewModel:function(d,C){return _.n("div",{class:function(){var W=!u.data().primaryThumbnail,M=C(),q=l(),v=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
W&&M===0&&v.push("yt-collection-thumbnail-slideshow--first-slide");M<=q&&v.push("yt-collection-thumbnail-slideshow--show-slide");return v.join(" ")}},_.n(_.rL,{data:d.data,
disableRounding:u.disableRounding}))}}))},"ta");
A6m.idomCompat=!0;var vq9=new _.G$("DWELL_DETECTOR_REGISTRY_TOKEN");var m3B=_.rf(function(u){var K=G4b(u.triggeringElement),l=function(){return!!u.data().primaryThumbnail};
return _.n("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.n(XgH,{stackEnabled:l,thumbnailSize:function(){var D,d;return frR((D=u.width)==null?void 0:D.call(u),(d=u.height)==null?void 0:d.call(u))},
doubleStack:u.doubleStack,stackColor:function(){return u.data().stackColor}},_.n("div",null,_.n(_.mo,{data:function(){return u.data().primaryThumbnail}},{thumbnailViewModel:function(D){var d={};
return _.n(_.rL,{data:D.data,width:u.width,height:u.height,aspectRatio:u.aspectRatio,disableRounding:u.disableRounding,className:_.JB((d["yt-collection-thumbnail-view-model--has-stacks"]=l,d)),hovered:u.hovered,playbackRef:u.playbackRef})}}),_.n(_.r,{cond:function(){var D;
return K()&&((D=u.data().thumbnails)==null?void 0:D.length)},
then:function(){return _.n("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.n(A6m,{data:u.data,disableRounding:function(){return!l()}}))}}))))},"ua");
m3B.idomCompat={callbacks:{playbackRef:!0}};
var XgH=_.rf(function(u){var K=u.children;var l=u.stackEnabled;var D=u.thumbnailSize;var d=u.doubleStack;var C=u.stackColor;var W,M=(W=_.GB().resolve(_.vv(_.H1)))==null?void 0:W();return _.n(_.r,{cond:l,then:function(){return _.n(zHR,{data:function(){var q,v;return{experimentEnabled:!0,thumbnailSize:D(),doubleStack:d==null?void 0:d(),color:M?C==null?void 0:(q=C())==null?void 0:q.darkTheme:C==null?void 0:(v=C())==null?void 0:v.lightTheme,enableResponsiveMode:!1}}},K)},
else:function(){return K}})},"va");var hga=new _.G$("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Gx;_.v6={calledOnce:!0,state:"visible"};Gx={calledOnce:!0,state:"hidden"};_.tw=_.rf(function(u){var K=u.data;var l=u.customCommandResolver;var D=u.className;var d=u.delayedClassName;var C=u.animationEntityKey;var W=u.isCompactWidth;var M=_.qE(C,""),q=_.ie(rjn,M),v=function(){var Wo,$y;return($y=(Wo=q())==null?void 0:Wo.value)!=null?$y:!1},G=function(){_.ME(_.TT("booleanEntity",M(),{key:M(),
value:!0}));V=void 0};
u=_.y(_.wY(v));var t=u.next().value,x=u.next().value;u=_.y(_.wY(v));var O=u.next().value,a=u.next().value;u=_.y(_.wY(function(){var Wo;return v()?(Wo=K().styleTransitionConfig)==null?void 0:Wo.destinationStyle:void 0}));
var f=u.next().value,B=u.next().value,p=function(){var Wo=Object.assign({},K(),f()&&{style:f()}),$y,co,UZ=Wo.label,tH=($y=Wo.interaction)==null?void 0:(co=$y.accessibility)==null?void 0:co.label;$y=Wo.iconImage?Wo.label&&Wo.label.content?Wo.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:UZ,accessibilityLabel:tH,style:bvn(Wo.style),type:Ovn(Wo.style),state:"active",size:S1q(Wo.size),iconPosition:$y,disabled:!1,aTagConfig:x3h(Wo,l)}},V;
u=_.r_({visibilityCallback:function(Wo){var $y,co=($y=K().interaction)==null?void 0:$y.onFirstVisible;Wo&&co&&_.IT(co)},
showOption:_.v6});var m=function(){return gY(p(),!!K().iconImage)};
C={};D=_.JB(function(){return"ytwAdButtonViewModelHost"},function(){return K().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var Wo=!!K().delayedAppearanceConfig,$y=t();
return Wo?$y?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var Wo=!!K().delayedAppearanceConfig,$y=O();
return Wo?$y?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!K().delayedAppearanceConfig||t()?d==null?void 0:d():""},(C.ytwAdButtonViewModelHostCompactWidth=function(){return W==null?void 0:W()},C),D!=null?D:"");
var Z=function(){var Wo,$y=(Wo=K().delayedAppearanceConfig)==null?void 0:Wo.delayedInvisibleSeconds;$y&&(V=_.Vo(_.YL,function(){x(!0);A()},$y*1E3))},A=function(){var Wo,$y=(Wo=K().delayedAppearanceConfig)==null?void 0:Wo.delayedVisibleSeconds;
$y&&(V=_.Vo(_.YL,function(){a(!0);h()},$y*1E3))},h=function(){var Wo,$y=(Wo=K().styleTransitionConfig)==null?void 0:Wo.styleTransitionSeconds,co,UZ=(co=K().styleTransitionConfig)==null?void 0:co.destinationStyle;
$y&&UZ?V=_.Vo(_.YL,function(){B(UZ);G()},$y*1E3):G()},C9=function(){var Wo;
return(Wo=K().delayedAppearanceConfig)==null?void 0:Wo.transitionDurationSeconds};
_.ZY(function(){Z()});
_.No(function(){V&&_.YL.cancelJob(V)});
return _.n("ad-button-view-model",{class:D,el:_.v1(u),style:_.Fb({"transition-duration":function(){return C9()?C9()+"s":void 0}})},_.n(_.r,{cond:p,
then:function(){return _.n($e,{data:p,icon:function(){return _.n(_.r,{cond:function(){return K().iconImage},
then:function(Wo){return _.n(_.n4,{data:Wo,alt:"",targetWidth:m,targetHeight:m,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"wa");var EqH=_.rf(function(u){var K=u.data;u=_.r_({visibilityCallback:function(D){var d,C=(d=K().interaction)==null?void 0:d.onFirstVisible;D&&C&&_.IT(C)},
showOption:_.v6});var l={};return _.n("ad-button-group-view-model",{class:_.JB("ytwAdButtonGroupViewModelHost",(l.ytwAdButtonGroupViewModelHostCompactWidth=function(){return K().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},l)),
el:_.v1(u)},_.n("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.n(_.mo,{data:function(){return K().secondaryAdButton}},{adButtonViewModel:function(D){return _.n(_.tw,{data:D.data})}})),_.n("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.n(_.mo,{data:function(){return K().primaryAdButton}},{adButtonViewModel:function(D){return _.n(_.tw,{data:D.data})}})))},"xa");var L7R=_.rf(function(u){var K=function(){var l;return((l=u.data())==null?void 0:l.answers)||[]};
return _.n("yt-survey-icons",{class:"ytSurveyIconsHost"},_.n("div",{class:"ytSurveyIconsHeader"},_.n("div",{class:"ytSurveyIconsTitle"},function(){var l;return(l=u.data())==null?void 0:l.text}),_.n("div",null,_.n($e,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var l;(l=u.onDismiss)==null||l.call(u)}}},
iconName:"DISMISSAL"}))),_.n("div",null,_.n("div",{class:"ytSurveyIconsAnswers"},_.n(_.p0,{each:function(){return K()},
keyBy:"INDEX"},function(l,D){return _.n("div",null,_.n($e,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var d;(d=u.onSelect)==null||d.call(u,l(),D)}}},
icon:function(){return _.n(_.VB,{icon:function(){var d,C;return(d=l())==null?void 0:(C=d.icon)==null?void 0:C.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.n("div",{class:"ytSurveyIconsAnswersText"},_.n("div",null,function(){return K().length?K()[0].text:""}),_.n("div",null,function(){return K().length?K()[K().length-1].text:""}))))},"ya");var uCa=_.rf(function(u){var K=_.v1(_.DS(function(){var q;return(q=u.data())==null?void 0:q.rendererContext},void 0,void 0,void 0,!0)),l=_.y(_.On(!1,void 0,"YxWRNc")),D=l.next().value,d=l.next().value,C=_.ie(W2Z,function(){var q;
return(q=u.data().keys)==null?void 0:q.surveyEntityKey}),W=_.ie(Hbb,function(){var q;
return(q=u.data().keys)==null?void 0:q.surveyStateEntityKey});
_.s6("ytd-slimline-survey-show-action",function(){d(!1)});
var M=function(){var q,v;var G=(q=W())==null?void 0:(v=q.questionStack)==null?void 0:v[0];if(G!==void 0){var t,x;return(t=C())==null?void 0:(x=t.questions)==null?void 0:x[G]}};
l={};return _.n("yt-slimline-survey-view-model",{el:K,class:_.JB("ytSlimlineSurveyViewModelHost",(l.ytSlimlineSurveyViewModelCollapsed=function(){return D()},l))},_.n("div",{class:"ytSlimlineSurveyViewModelContainer"},_.n(_.r,{cond:function(){var q;
return((q=M())==null?void 0:q.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.n(L7R,{data:function(){return M()},
onSelect:function(q,v){var G,t;return _.H(function(x){d(!0);if(t=(G=u.data())==null?void 0:G.onSelectRating)_.IT(t),_.ME(ywa(v));_.TG(x)})},
onDismiss:function(){d(!0);var q;var v=(q=C())==null?void 0:q.dismissalFeedbackToken;q=v?{feedbackEndpoint:{feedbackToken:v}}:void 0;q&&_.D$(q,{form:{element:K.value}})}})}})))},"za");var KCA=_.rf(function(u){return _.n("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.n(_.mo,{data:function(){var K;return(K=u.data())==null?void 0:K.attachments}},{flexibleActionsViewModel:function(K){return _.n("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.n(VLw,{data:K.data,
layout:function(){var l;return((l=u.lockupStyle())==null?void 0:l.arrangement)===1?0:1},
justifyContentOverride:function(){var l;return((l=u.lockupStyle())==null?void 0:l.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(K){return _.n("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.n(uCa,{data:K.data}))},
expandableMetadataViewModel:function(K){K=K.data;var l;return _.n("div",{class:_.JB("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(l=_.GB().resolve(_.vv(hga)))==null?void 0:l({data:K}))},
adButtonGroupViewModel:function(K){return _.n("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.n(EqH,{data:K.data}))},
adButtonViewModel:function(K){return _.n("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.n(_.tw,{data:K.data,isCompactWidth:!0}))}}))},"Aa");var U39=_.Sg("rich_grid_min_item_width",310),egH=_.Sg("rich_grid_max_item_width",500);var l6C=_.rf(function(u){var K=u.data;return _.n("br-nz-badge-shape",{class:_.JB(function(){return ivH(K().brNzRatingBadgeType)}),
role:function(){return K().accessibilityText?"img":void 0},
"aria-label":function(){return K().accessibilityText}},function(){var l;
return(l=K())==null?void 0:l.text})},"Ba");_.xW=_.rf(function(u){var K=function(){var l=u.data(),D,d;if(l){var C=!((D=u.workaroundShortsIsThumbnailBadge)==null||!D.call(u));D=(d=u.modern)==null?void 0:d.call(u);a:switch(l.badgeStyle){case "BADGE_OVERLAY":d=!0;break a;default:d=!1}l={type:C?16:TcH(l.badgeStyle),brNzRatingBadgeType:wgq(l.badgeStyle),text:l.badgeText,icon:l.iconName,isOverlay:d,modern:D||_.S("web_modern_badge_view_model"),accessibilityText:l.accessibilityLabel}}else l=void 0;return l};
return _.n("yt-badge-view-model",{class:_.JB("yt-badge-view-model-wiz",u.class)},_.n(_.VI,null,_.n(_.ic,{when:function(){var l;return!((l=K())==null||!l.brNzRatingBadgeType)}},function(){return _.n(l6C,{data:function(){return K()}})}),_.n(_.ic,{when:function(){return!!K()&&!K().brNzRatingBadgeType}},function(){return _.n(_.LD,{data:function(){return K()}})})))},"Ca");
_.xW.idomCompat=!0;var Vih,F7w;Vih=16/9;F7w=2/3;_.SO=_.rf(function(u){var K=u.data;var l=u.className;var D=u.imageSizeConfig;var d=u.notifyOnLoaded;var C=function(){return K().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},W=function(){var x;
return _.lC((x=K())==null?void 0:x.rendererContext)};
u={};u=(u["yt-content-preview-image-view-model-wiz"]=!0,u["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return C()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},u["yt-content-preview-image-view-model-wiz--tappable"]=function(){return W()},u);
var M=function(){var x,O;return(O=(x=_.b(K().rendererContext,_.T8))==null?void 0:x.label)!=null?O:""},q=function(){return Ncq(K())},v=function(){var x=gqo(C(),K().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",D==null?void 0:D(),k4y(q()),K().layoutWidth,K().layoutHeight),O=Object.assign({},x);
x.width&&(O.width=Math.round(x.width));x.height&&(O.height=Math.round(x.height));x.maxWidth&&(O.maxWidth=Math.round(x.maxWidth));x.maxHeight&&(O.maxHeight=Math.round(x.maxHeight));return O},G=_.RZ(function(){return v().height},void 0,"Cn10Ce"),t=_.RZ(function(){return v().width},void 0,"laoove");
return _.n("yt-content-preview-image-view-model",{el:_.v1(_.DS(function(){var x;return(x=K())==null?void 0:x.rendererContext})),
role:function(){return W()?"link":void 0},
tabindex:function(){return W()?0:void 0},
class:_.JB(l,u,function(){var x=C();var O=D==null?void 0:D();x=x==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||x==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||x==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||x==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(O==null?void 0:O.size)!=null&&O.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(O==null?void 0:O.size)!=null&&O.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return x}),
style:function(){var x=v(),O=[];x.width&&O.push("width: "+x.width+"px");x.height&&O.push("height: "+x.height+"px");x.maxWidth&&O.push("max-width: "+x.maxWidth+"px");x.maxHeight&&O.push("max-height: "+x.maxHeight+"px");x.fullWidth&&O.push("width: 100%");return O.join(";")}},_.n(_.r,{cond:q,
then:function(x){return _.n(_.n4,{data:x,alt:M,"data-disabled$":function(){return!M()},
notifyOnLoaded:d,targetWidth:t,targetHeight:G,preserveWidth:function(){return!!t()},
preserveHeight:function(){return!!G()}})}}),_.n(_.mo,{data:function(){var x;
return(x=K())==null?void 0:x.overlays}},{thumbnailHoverOverlayViewModel:Zt,
thumbnailOverlayButtonViewModel:_.k40}))},"Da");
_.SO.idomCompat=!0;var dks=_.rf(function(u){var K=u.data;var l=u.className;var D=u.useSmallLayout;u=u.useMediumText;var d={};u=(d["yt-attribution-view-model-wiz"]=!0,d["yt-attribution-view-model-wiz--medium-text"]=u,d);return _.n("yt-attribution-view-model",{el:_.v1(_.DS(function(){var C;return(C=K())==null?void 0:C.rendererContext})),
class:_.JB(l,u)},_.n(_.r,{cond:function(){return _.lC(K().rendererContext)},
then:function(){return _.n("button",{class:"yt-attribution-view-model-wiz--tappable"},_.n(Dka,{data:K,useSmallLayout:D}))},
else:function(){return _.n(Dka,{data:K,useSmallLayout:D})}}))},"Ea"),Dka=_.rf(function(u){var K=u.data;
var l=u.useSmallLayout;var D=function(){return{size:(l==null?0:l())?16:24}};
return _.n(_.G1,null,_.n(_.mo,{data:function(){return K().contentPreviewImage}},{contentPreviewImageViewModel:function(d){return _.n(_.SO,{data:d.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:D})}}),_.n(_.mo,{data:function(){return K().badge}},{badgeViewModel:function(d){return _.n(_.xW,{data:d.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.n(_.r,{cond:function(){return K().text},
then:function(){return _.n(_.qC,{text:function(){return K().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.n(_.r,{cond:function(){return K().suffix},
then:function(){return _.n(_.qC,{text:function(){return K().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Fa");
dks.idomCompat=!0;var CoR,I6a,ydw,s1N,o9m;CoR=_.rf(function(u){var K=u.delimiter;var l=u.max;var D=u.index;var d=u.isStandalone;return _.n(_.r,{cond:function(){return l()-1>D()},
then:function(){var C={};return _.n("span",{class:_.JB("yt-content-metadata-view-model-wiz__delimiter",(C["yt-content-metadata-view-model-wiz__delimiter--standalone"]=d,C)),"aria-hidden":!0},K)}})},"Ga");
I6a=_.rf(function(u){var K=u.metadataPart;var l=u.maxLines;return _.n(_.qC,{text:function(){return K().text},
linkInheritColor:!0,className:function(){return Zvq(l())},
userInput:!0})},"Ha");
ydw=_.rf(function(u){var K=u.metadataPart;var l=u.maxLines;return _.n(_.r,{cond:function(){return K().tooltip},
then:function(D){return _.n("span",{title:D,role:"tooltip"},_.n(I6a,{metadataPart:K,maxLines:l}))},
else:function(){return _.n(I6a,{metadataPart:K,maxLines:l})}})},"Ia");
s1N=_.rf(function(u){var K=u.metadataPart;var l=u.isOverlay;var D=u.useMediumText;var d=u.hideAvatar;var C=function(){return K().maxLines!==void 0?K().maxLines:1};
return _.n(_.G1,null,_.n(_.mo,{data:function(){return K().avatarStack}},{avatarStackViewModel:function(W){return _.n(_.XE,{data:W.data,
isOverlay:l,useMediumText:D,hideAvatar:d})},
badgeViewModel:_.xW}),_.n(_.r,{cond:function(){return K().leadingIcon},
then:function(W){return _.n(_.VB,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return W().name},
size:function(){return W().width}})}}),_.n(_.r,{cond:function(){return K().text},
then:function(){return _.n(ydw,{metadataPart:K,maxLines:C})}}),_.n(_.r,{cond:function(){return K().icon},
then:function(W){return _.n(_.VB,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return W().name},
size:function(){return W().width}})}}))},"Ja");
o9m=_.rf(function(u){var K=u.metadataRow;var l=u.isInline;var D=u.delimiter;var d=u.isOverlay;var C=u.useMediumText;var W=u.extensions;var M=function(){var v,G=W==null?void 0:(v=W())==null?void 0:v.lockupMetadata;v=K();var t,x;return!!((G==null?0:(t=G.byline)==null?0:t.hideAvatar)&&((x=_.b(v,Q8k))==null?void 0:x.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},q=function(){return K().metadataParts||[]};
u={};return _.n("div",{class:_.JB("yt-content-metadata-view-model-wiz__metadata-row",(u["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=l,u["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var v,G=W==null?void 0:(v=W())==null?void 0:v.lockupMetadata;v=K();var t,x;return!!((G==null?0:(t=G.byline)==null?0:t.addPadding)&&((x=_.b(v,Q8k))==null?void 0:x.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},u["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var v;
return!!(W==null?0:(v=W())==null?0:v.lockupMetadata)&&K().badges&&!K().metadataParts},u))},_.n(_.mo,{data:function(){return K().badges}},{badgeViewModel:function(v){return _.n("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.n(_.xW,{data:v.data}))}}),_.n(_.p0,{each:q},function(v,G){return _.n(_.G1,null,_.n(s1N,{metadataPart:v,
isOverlay:d,useMediumText:C,hideAvatar:M}),_.n(CoR,{delimiter:D,max:function(){return q().length},
index:G,isStandalone:!1}))}),_.n(_.r,{cond:function(){return K().isSpacerRow&&!l()},
then:function(){return _.n("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ka");
_.bs=_.rf(function(u){u=_.$U(u,{layout:0,isOverlay:!1});var K=u.data,l=u.layout,D=u.isOverlay,d=u.useMediumText,C=u.extensions,W=function(){return l()===0},M=function(){var v;
return((v=K().metadataRows)==null?void 0:v.filter(function(G){var t,x=C==null?void 0:(t=C())==null?void 0:t.lockupMetadata,O,a;t=!!((x==null?0:(O=x.description)==null?0:O.hideDescription)&&((a=_.b(G,Q8k))==null?void 0:a.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var f,B;return!((x==null?0:(f=x.spacer)==null?0:f.hideSpacer)&&((B=_.b(G,Q8k))==null?void 0:B.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||t)}))||[]},q={};
return _.n("yt-content-metadata-view-model",{class:_.JB(u.className,"yt-content-metadata-view-model-wiz",(q["yt-content-metadata-view-model-wiz--inline"]=W,q["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.lC(K().rendererContext)},q["yt-content-metadata-view-model-wiz--medium-text"]=d,q)),
el:_.v1(_.DS(function(){return K().rendererContext}))},_.n(_.p0,{each:M},function(v,G){return _.n(_.G1,null,_.n(o9m,{metadataRow:v,
isInline:W,delimiter:function(){return K().delimiter},
isOverlay:D,useMediumText:d,extensions:C}),_.n(_.r,{cond:function(){return W()&&!v.isSpacerRow},
then:function(){return _.n(CoR,{delimiter:function(){return K().delimiter},
max:function(){return M().length},
index:G,isStandalone:!0})}}))}))},"La");
_.bs.idomCompat=!0;var WCA=_.rf(function(u){var K={};return _.n("yt-lockup-metadata-view-model",{class:_.JB("yt-lockup-metadata-view-model-wiz",function(){a:{var l=u.lockupStyle();if(l==null?0:l.isOverlay)l="yt-lockup-metadata-view-model-wiz--overlay";else switch(l==null?void 0:l.arrangement){case 1:l="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:l="yt-lockup-metadata-view-model-wiz--vertical"}}return l},function(){a:{var l=u.lockupStyle();
if(l==null?0:l.isTiny)l="yt-lockup-metadata-view-model-wiz--tiny";else switch(l==null?void 0:l.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":l="yt-lockup-metadata-view-model-wiz--compact";break a;default:l="yt-lockup-metadata-view-model-wiz--standard"}}return l},(K["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var l;
return(l=u.lockupStyle())==null?void 0:l.isOverlay},K["yt-lockup-metadata-view-model-wiz--card"]=function(){var l;
return(l=u.lockupStyle())==null?void 0:l.isCard},K["yt-lockup-metadata-view-model-wiz--centered"]=function(){var l;
return(l=u.lockupStyle())==null?void 0:l.isCentered},K["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var l;
return(l=u.lockupStyle())==null?void 0:l.typographyBump},K["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var l;
return(l=u.lockupStyle())==null?void 0:l.useLegacyTypography},K["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var l;
return(l=u.lockupStyle())==null?void 0:l.useRichGridLegacyTypography},K))},_.n(_.mo,{data:function(){return u.data().image}},{avatarStackViewModel:function(l){return _.n("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.n(_.XE,{data:l.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(l){return _.n("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.n(_.Y_,{data:l.data}))},
decoratedAvatarViewModel:function(l){return _.n("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.n(_.Aa,{data:l.data}))}}),_.n("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.n("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var l;return(l=u.data().title)==null?void 0:l.content}},_.n(_.r,{cond:function(){return u.data().title},
then:function(l){return _.n(_.I5,{command:u.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:u.lockupAccessibilityLabel},_.n(_.qC,{text:l,userInput:!0}))}})),_.n("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.n(_.mo,{data:function(){return u.data().metadata}},{contentMetadataViewModel:function(l){return _.n(_.bs,{data:l.data,
layout:1,useMediumText:function(){var D,d;return((D=u.lockupStyle())==null?void 0:D.typographyBump)||((d=u.lockupStyle())==null?void 0:d.useRichGridLegacyTypography)},
extensions:function(){var D,d,C,W;return{lockupMetadata:{byline:{hideAvatar:((D=u.lockupStyle())==null?void 0:D.arrangement)===0,addPadding:((d=u.lockupStyle())==null?void 0:d.arrangement)===1},description:{hideDescription:!((C=u.lockupStyle())==null||!C.compactMetadata)},spacer:{hideSpacer:!((W=u.lockupStyle())==null||!W.compactMetadata)}}}}})}})),_.n(_.mo,{data:function(){return u.data().attribution}},{attributionViewModel:function(l){return _.n("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.n(dks,{data:l.data,
useSmallLayout:!0}))}})),_.n("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.n(_.mo,{data:function(){return u.data().menuButton}},{buttonViewModel:function(l){return _.n(_.P2,{data:l.data,
buttonOverrides:function(){var D;return((D=u.lockupStyle())==null?0:D.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ma");
WCA.idomCompat=!0;var H6s=_.rf(function(u){var K=_.o9("notification-multi-action-renderer");_.N_(function(){requestAnimationFrame(function(){_.Hu(K.value)})});
var l={},D={},d={};return _.n("notification-multi-action-renderer",{class:_.JB("ytNotificationMultiActionRendererHost",(l.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var C;return(C=u.useLegacyShelfStyle)==null?void 0:C.call(u)},l)),
el:K},_.n("span",{"aria-live":"polite",class:_.JB("ytNotificationMultiActionRendererTextContainer",(D.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var C;return(C=u.useLegacyShelfStyle)==null?void 0:C.call(u)},D))},_.n(_.qC,{text:function(){return u.data().responseText}})),_.n("div",{class:_.JB("ytNotificationMultiActionRendererButtonContainer",(d.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var C;
return(C=u.useLegacyShelfStyle)==null?void 0:C.call(u)},d))},_.n(_.mo,{data:function(){var C;
return(C=u.data().buttons)==null?void 0:C.map(function(W){if(W=W.buttonRenderer){var M,q=Object,v=q.assign,G=(M=W.icon)==null?void 0:M.iconType;M=(M=W.command||W.serviceEndpoint||W.navigationEndpoint)?{innertubeCommand:M}:void 0;W={buttonViewModel:v.call(q,{},{iconName:G,onTap:M,trackingParams:W.trackingParams,titleFormatted:W.text?_.Ep(W.text):void 0},Y1r(W))}}else W=void 0;return W}).filter(function(W){return!!W})}},{buttonViewModel:function(C,W){return _.n("div",null,_.n(_.P2,{data:C.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var M;return((M=u.useModernStyles)==null?0:M.call(u))?{type:W()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Na");var MMN=_.rf(function(u){var K=_.o9("notification-text-renderer");_.N_(function(){requestAnimationFrame(function(){_.Hu(K.value)})});
return _.n("notification-text-renderer",{el:K,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.n(_.qC,{text:function(){return u.data().successResponseText}}))},"Oa");_.Oa=_.rf(function(u){var K=_.ie(ezZ,function(){var D;return A6n((D=u.contentId)==null?void 0:D.call(u))}),l=function(){var D;
return _.b((D=K())==null?void 0:D.command,_.FP)};
return _.n(_.r,{cond:function(){var D;if(!(D=l())){var d;D=_.b((d=K())==null?void 0:d.command,Rbk)}return D},
then:function(){return _.n(_.r,{cond:l,then:function(){var D={};return _.n("div",{class:_.JB("ytDismissibleItemReplacedContent",function(){var d;return Xgq((d=u.aspectRatio)==null?void 0:d.call(u))})},_.n("div",{class:_.JB((D.ytDismissibleItemAspectRatioContainer=function(){var d;
return((d=u.aspectRatio)==null?void 0:d.call(u))!==void 0},D))},_.n(_.mo,{data:function(){var d;
return(d=l())==null?void 0:d.item}},{notificationMultiActionRenderer:function(d){return _.n(H6s,{data:d.data,
useModernStyles:u.useModernStyle,useLegacyShelfStyle:u.useLegacyShelfStyle})},
notificationTextRenderer:MMN})))}})},
else:u.children})},"Pa");_.qzH=_.rf(function(u){var K=u.data;var l=u.customCommandResolver;u=_.v1(_.r_({visibilityCallback:function(C){var W,M=(W=K().interaction)==null?void 0:W.onFirstVisible;C&&M&&_.IT(M)},
showOption:_.v6}));var D=function(){var C;return((C=K().interaction)==null?0:C.onTap)?function(W){var M;tib(W,(M=K().interaction)==null?void 0:M.onTap,l)}:void 0},d=function(){var C,W=K(),M=D(),q=(C=_.b(K().rendererContext,_.T8))==null?void 0:C.label;
a:switch(W.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":C=1;break a;default:C=0}return{size:L7H(W.size),type:C,onTap:M,accessibilityText:q}};
return _.n("ad-avatar-view-model",{class:function(){var C;return((C=K().interaction)==null?0:C.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:u},_.n(_.r,{cond:function(){return K().image},
then:function(C){return _.n(uAs,{data:d,image:C})}}))},"Qa");_.c6=_.rf(function(u){var K=_.$U(u,{hasDot:!1});u=Object.assign({},K);var l=K.data,D=K.hasDot;K=K.customCommandResolver;var d=(delete u.data,delete u.hasDot,delete u.customCommandResolver,u);u=function(){return l().style};
u!==void 0&&u!==null||_.D_(Error("Fh"));u=_.sL(function(){return l().interaction},K);
return _.n("ad-badge-view-model",{class:_.JB(function(){var C;return((C=l().interaction)==null?0:C.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var C=d.adRenderingContextType();
l();return C==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.v1(u)},_.n(_.LD,{data:function(){var C;l();return{type:2,text:(C=l().label)==null?void 0:C.content,adsIncludeDot:D(),isOverlay:l().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ra");var $kw;_.a4=_.rf(function(u){var K=u.data;var l=u.customCommandResolver;var D=u.adRenderingContextType;return _.n("ad-details-line-view-model",{class:function(){var d;return((d=K().interaction)==null?0:d.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.v1(_.r_({visibilityCallback:function(d){var C,W=(C=K().interaction)==null?void 0:C.onFirstVisible;d&&W&&_.IT(W)},
showOption:_.v6}),_.sL(function(){return K().interaction},l))},_.n(_.r,{cond:function(){return K().style},
then:function(d){return _.n(_.p0,{each:function(){var C;return((C=K())==null?void 0:C.attributes)||[]},
keyBy:"INDEX"},function(C){return _.n($kw,{attribute:C,style:d,adRenderingContextType:function(){return D()}})})}}))},"Sa");
$kw=_.rf(function(u){var K=u.attribute;var l=u.style;var D=u.adRenderingContextType;return _.n(_.r,{cond:function(){return K().text},
then:function(d){return _.n(_.qC,{text:d,className:function(){var C=D();l();return C==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ta");var n9B=_.rf(function(u){var K=u.data;var l=u.typographyBump;var D=function(){return K().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
u={};return _.n(_.G1,null,_.n("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.n(_.qC,{text:function(){return K().headline},
className:_.JB("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(u.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return D==null?void 0:D()},u.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(l==null?void 0:l())&&!(D==null?0:D())},u)),
linkInheritColor:!0}),_.n(_.r,{cond:function(){return K().description},
then:function(d){var C={};return _.n(_.qC,{text:d,className:_.JB("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(C.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return D==null?void 0:D()},C.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(l==null?void 0:l())&&!(D==null?0:D())},C)),
linkInheritColor:!0})}}),_.n(_.r,{cond:function(){return K().secondaryDescription},
then:function(d){var C={};return _.n(_.qC,{text:d,className:_.JB("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(C.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return l==null?void 0:l()},C)),
linkInheritColor:!0})}}),_.n("div",{class:function(){return D()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.n(_.r,{cond:function(){return K().adAvatar},
then:function(){return _.n("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.n(_.mo,{data:function(){return K().adAvatar}},{adAvatarViewModel:_.qzH}))}}),_.n(_.mo,{data:function(){return K().adBadge}},{adBadgeViewModel:function(d){return _.n(_.c6,{data:d.data,
hasDot:function(){return!!K().adDetailsLine},
adRenderingContextType:function(){return K().adRenderingContextType}})}}),_.n(_.mo,{data:function(){return K().adDetailsLine}},{adDetailsLineViewModel:function(d){return _.n(_.a4,{data:d.data,
adRenderingContextType:function(){return K().adRenderingContextType}})}}))),_.n("div",{class:function(){return D()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.n(_.mo,{data:function(){return K().menu}},{buttonViewModel:function(d){return _.n(_.P2,{data:d.data,
buttonOverrides:function(){a:switch(K().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var C="S";break a;default:C="M"}return{size:C}}})}})))},"Ua"),rdN=_.rf(function(u){var K=u.data;
var l=u.noBottomMargin;var D=u.useVideoLockupTopPadding;var d=u.typographyBump;u={};u=_.JB("ytwFeedAdMetadataViewModelHostMetadata",(u.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return l==null?void 0:l()},u.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return D==null?void 0:D()},u));
var C=function(){return K().adBadge};
C!==void 0&&C!==null||_.D_(Error("Gh"));C={};var W={};return _.n(_.G1,null,_.n(_.r,{cond:function(){return K().adAvatar},
then:function(){return _.n("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.n(_.mo,{data:function(){return K().adAvatar}},{adAvatarViewModel:function(M){return _.n(_.qzH,{data:M.data})}}))}}),_.n("div",{class:u},_.n("div",{class:_.JB("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(C.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return d==null?void 0:d()},C.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(d==
null?void 0:d())&&_.S("web_enable_typography_bump_v2")},C))},_.n(_.qC,{text:function(){return K().headline},
linkInheritColor:!0})),_.n(_.r,{cond:function(){return K().description},
then:function(M){return _.n(_.qC,{text:M,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.n("div",{class:function(){return K().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.S("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.n(_.mo,{data:function(){return K().adBadge}},
{adBadgeViewModel:function(M){return _.n(_.c6,{data:M.data,
hasDot:function(){return!!K().adDetailsLine},
adRenderingContextType:function(){return K().adRenderingContextType}})}}),_.n(_.mo,{data:function(){return K().adDetailsLine}},{adDetailsLineViewModel:function(M){return _.n(_.a4,{data:M.data,
adRenderingContextType:function(){return K().adRenderingContextType}})}})),_.n(_.r,{cond:function(){return K().secondaryDescription},
then:function(M){return _.n(_.qC,{text:M,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.n("div",{class:_.JB("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(W.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return D==null?void 0:D()},W))},_.n(_.mo,{data:function(){return K().menu}},{buttonViewModel:_.P2})))},"Va"),v90=_.rf(function(u){var K=u.data;
var l=u.noBottomMargin;var D=u.listenToTapEvent;var d=u.setTouchEndHandler;var C=u.useVideoLockupTopPadding;var W=u.typographyBump;u=_.r_({visibilityCallback:function(t){var x,O=(x=K().interaction)==null?void 0:x.onFirstVisible;t&&O&&_.IT(O)},
showOption:_.v6});var M=_.sL(function(){return K().interaction},void 0,function(){return D==null?void 0:D()}),q=_.y(_.On(!1,void 0,"p7Js8e")),v=q.next().value,G=q.next().value;
q=_.p4(function(t){(d==null?0:d())&&!v()&&(t.currentTarget.click(),G(!0),setTimeout(function(){G(!1)},100));
return!1});
return _.n("feed-ad-metadata-view-model",{class:function(){var t;return((t=K().interaction)==null?0:t.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.v1(u,M),"on:touchend":q},_.n(_.VI,null,_.n(_.ic,{when:function(){return K().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.n(n9B,{data:K,
typographyBump:W})}),_.n(_.ic,{when:function(){return K().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.n(rdN,{data:K,
noBottomMargin:l,useVideoLockupTopPadding:C,typographyBump:W})})))},"Wa");var GNH;_.zx=_.rf(function(u){return _.n("yt-lockup-view-model",{class:_.JB(u.className)},_.n(_.Oa,{contentId:function(){return u.data().contentId},
useModernStyle:!0,aspectRatio:function(){var K,l;return((K=u.containerType)==null?void 0:K.call(u))!==3?BcH(u.data().contentType,(l=u.force16By9ThumbnailAspectRatio)==null?void 0:l.call(u)):void 0}},function(){return _.n(GNH,Object.assign({},u))}))},"Xa");
GNH=_.rf(function(u){u=_.$U(u,{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 K=u.data,l=u.containerLayoutConfig,D=u.containerType,d=u.sizing,C=u.protectBackground,W=u.typographyBump,M=u.force16By9ThumbnailAspectRatio,q=u.thumbnailFixedWidth,v=u.thumbnailTargetWidth,G=u.lockupExperiments,t=u.elementsPerRow;
u=_.v1(_.DS(function(){var tH;return(tH=K())==null?void 0:tH.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 x=_.Da($3L),O=_.GB().resolve(_.vv(ivA)),a=O?{}:void 0,f=function(){var tH,gq,Bo;return(Bo=(gq=_.b((tH=K())==null?void 0:tH.rendererContext,_.T8))==null?void 0:gq.label)!=null?Bo:void 0},B=function(){var tH=l==null?void 0:l(),gq;
if(tH==null?0:tH.containerType){var Bo=(gq=K())==null?void 0:gq.contentType;gq=G();var uk=W(),ca=v(),Ha=C();tH=Object.assign({},pgR(P9r(tH),fDZ(tH.responsiveSize),uk,Bo,tH.force16By9ThumbnailAspectRatio,ca,Ha,gq),{thumbnailFixedWidth:tH.contentPreviewWidth})}else tH=pgR(D(),d(),W(),(Bo=K())==null?void 0:Bo.contentType,M(),v(),C(),G());return tH};
O&&a&&O({enabled:function(){return x()},
itemPlaybackModel:function(){return K().itemPlayback},
thumbnailElRef:function(){return a.thumbnailElRef},
containerElRef:u,options:function(){var tH,gq=(tH=_.b(K().metadata,PXB))==null?void 0:tH.endorsement;tH=a.thumbnailOverlays||[];gq&&tH.push(gq);var Bo,uk;return{thumbnail:a.thumbnail,thumbnailOverlays:tH,accessibilityText:f(),thumbnailSize:a.thumbnailSize,enableRounding:B().isCollection,containPlayerWithinThumbnail:B().isCollection,trackingParams:(Bo=_.b(K().rendererContext,_.TW))==null?void 0:(uk=Bo.loggingDirectives)==null?void 0:uk.trackingParams}}});
var p=0;O=_.y(_.On(!1,void 0,"GH4i8d"));var V=O.next().value,m=O.next().value;O=_.y(_.On(!1,void 0,"hS52Ob"));var Z=O.next().value,A=O.next().value;O=_.p4(function(){var tH=x()&&K().itemPlayback;Z()?(_.YL.cancelJob(p),p=_.YL.addJob(function(){m(!tH)},8,32)):m(!tH);
return!0});
var h=_.p4(function(){p&&(_.YL.cancelJob(p),p=0);m(!1)});
_.No(function(){p&&(_.YL.cancelJob(p),p=0)});
var C9=Eqq(function(){A(!0)}),Wo=C9.touchFeedbackEvents,$y=C9.touchFeedbackOnPointerUp,co=C9.touchFeedbackOnPointerDown;
C9=C9.touchFeedbackOnPointerLeave;var UZ={};return _.n("div",{el:u,class:_.JB("yt-lockup-view-model-wiz",function(){a:{var tH=B();if(tH.isOverlay)tH="yt-lockup-view-model-wiz--overlay";else switch(tH.arrangement){case 1:tH="yt-lockup-view-model-wiz--horizontal";break a;default:tH="yt-lockup-view-model-wiz--vertical"}}return tH},function(){a:{var tH=B();
if(tH.isOverlay)tH="yt-lockup-view-model-wiz--overlay";else{switch(tH.collectionStackNumber){case 1:tH="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:tH="yt-lockup-view-model-wiz--collection-stack-2";break a}tH=void 0}}return tH},(UZ["yt-lockup-view-model-wiz--card"]=function(){return B().isCard},UZ["yt-lockup-view-model-wiz--compact"]=function(){return B().isTiny||B().sizing!=="STANDARD"},UZ["yt-lockup-view-model-wiz--protect-background"]=C,UZ["yt-lockup-view-model-wiz--add-margins"]=
function(){return B().addMarginForFullbleed},UZ["yt-lockup-view-model-wiz--centered"]=function(){return B().isCentered},UZ["yt-lockup-view-model-wiz--fullbleed"]=function(){return B().fullbleed},UZ["yt-lockup-view-model-wiz--single-column-grid"]=function(){return t()===1&&D()===2},UZ["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var tH;
return(tH=G())==null?void 0:tH.useRichGridLegacyMargin},UZ)),
"on:mousedown":co,"on:mouseleave":h,"on:mouseup":$y,"on:mouseover":O,"on:touchstart":co,"on:touchend":$y,"on:pointerleave":C9},_.n(_.I5,{command:function(){var tH;return _.Kz((tH=K())==null?void 0:tH.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return q()&&B().arrangement===1?"width: "+q():""}},_.n(_.mo,{data:function(){var tH;
return(tH=K())==null?void 0:tH.contentImage}},{thumbnailViewModel:function(tH){return _.n(_.rL,{data:tH.data,
aspectRatio:function(){return B().aspectRatio},
disableRounding:function(){return B().disableRounding},
width:v,hovered:V,isClip:function(){var gq;return((gq=K())==null?void 0:gq.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:Miw(a),lockupExperiments:function(){return G()}})},
collectionThumbnailViewModel:function(tH){return _.n(m3B,{data:tH.data,aspectRatio:function(){return B().aspectRatio},
disableRounding:function(){return B().disableRounding},
width:v,doubleStack:function(){return B().collectionStackNumber===2},
hovered:V,playbackRef:Miw(a)})},
decoratedAvatarViewModel:_.Aa})),_.n("div",{class:"yt-lockup-view-model-wiz__metadata"},_.n(_.mo,{data:function(){var tH;return(tH=K())==null?void 0:tH.metadata}},{lockupMetadataViewModel:function(tH){return _.n(WCA,{data:tH.data,
lockupStyle:B,lockupCommand:function(){var gq;return _.Kz((gq=K())==null?void 0:gq.rendererContext)},
lockupAccessibilityLabel:function(){return f()}})},
feedAdMetadataViewModel:function(tH){return _.n(v90,{data:tH.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:W})}}),_.n(_.mo,{data:function(){var tH;
return(tH=K())==null?void 0:tH.attachmentSlot}},{lockupAttachmentsViewModel:function(tH){return _.n(KCA,{data:tH.data,
lockupStyle:B})}})),_.n(_.ko,{model:function(){a:{switch(B().collectionStackNumber){case 1:var tH=8;
break a;case 2:tH=12;break a}tH=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:tH}},
pointerDownEvent:Wo.pointerDownEvent,pointerUpEvent:Wo.pointerUpEvent,pointerLeaveEvent:Wo.pointerLeaveEvent}))},"Ya");
_.zx.idomCompat=!0;_.SX(_.zx,"yt-lockup-view-model",{props:{data:_.M6,containerLayoutConfig:_.M6,containerType:_.M6,sizing:_.M6,protectBackground:_.M6,typographyBump:_.M6,thumbnailFixedWidth:_.M6,thumbnailTargetWidth:_.M6,force16By9ThumbnailAspectRatio:_.M6,className:_.M6,lockupExperiments:_.M6,elementsPerRow:_.M6}});var Dko;_.v4(s1q);var MMq,tMH=_.rf(function(u){var K=_.$U(u,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),l=K.text,D=K.alwaysShowTruncationText;u=K.truncationText;var d=K.onTextClick,C=K.maxLines,W=K.disableTextMask,M=K.textStyle,q=K.accessibilityLabel,v=K.textSize,G=K.alwaysTruncateAtMaxLines,t=K.expandOnClick;K=_.y(_.On(!1,void 0,"Qz8MWe"));var x=K.next().value,O=K.next().value;K=_.p4(function(){t()&&O(!x());d==null||d()});
var a=function(){a:switch(v()){case "medium":var h=2;break a;case "large":h=2.2;break a;default:h=1.8}return h},f=rdq(l,function(){return x()?Infinity:C()},a,W,G),B=f.isTruncated;
l=f.displayText;G=f.contentRef;var p=f.hiddenRef,V=f.placeholderTruncationTextRef,m=f.hiddenTruncationTextRef;f=f.truncationTextRef;var Z={},A={};return _.n("truncated-text",{class:_.JB((Z["truncated-text-wiz"]=!0,Z["truncated-text-wiz--overlay"]=function(){return M()==="overlay"},Z["truncated-text-wiz--medium-text"]=function(){return v()==="medium"},Z["truncated-text-wiz--large-text"]=function(){return v()==="large"},Z["truncated-text-wiz--primary-text"]=function(){return M()==="primary-text"},Z)),
"on:click":K,style:function(){return"line-height: "+a()+"rem;"}},_.n("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:G,style:function(){return x()?"":"max-height: "+C()*a()+"rem;"}},_.n(_.qC,{text:l}),_.n("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:V,style:function(){return"line-height: "+a()+"rem;"}},_.n(_.qC,{text:u}))),_.n("truncated-text-content",{class:_.JB("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:p,style:function(){return x()?"":"max-height: "+C()*a()+"rem;"},
"aria-hidden":"true"},_.n(_.qC,{text:l}),_.n("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:m,style:function(){return"line-height: "+a()+"rem;"}},_.n(_.qC,{text:u}))),_.n("button",{"aria-label":q,
class:_.JB((A["truncated-text-wiz__absolute-button"]=function(){return!W()},A["truncated-text-wiz__bottom-button"]=function(){return W()},A["truncated-text-wiz--hidden"]=function(){return!(!x()&&(D!=null&&D()||B()))},A)),
el:f,style:function(){return"line-height: "+a()+"rem;"}},_.n(_.qC,{text:u})))},"Za"),a6Z=_.S("web_enable_sink_truncated_text")?tMH:s1q,xks=_.S("web_enable_sink_truncated_text")?tMH:_.B1(a6Z,{callbacks:{onTextClick:!0}});
tMH.idomCompat={callbacks:{onTextClick:!0}};_.v4(GNq);var zIw=_.NX({buttonViewModel:_.P2});_.v4(O6L);_.v4(Szq);_.v4(b6o);var O6k=_.rf(function(u){var K=u.data;u=u.className;var l=_.RZ(function(){return RIq(K())},void 0,"Db3J3e");
return _.n("yt-video-attribute-view-model",{class:u},_.n("div",{class:function(){var D=K();a:switch(D.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var d="yt-video-attribute-view-model--vertical";break a;default:d="yt-video-attribute-view-model--horizontal"}a:switch(D.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var C="yt-video-attribute-view-model--image-small";break a;default:C="yt-video-attribute-view-model--image-large"}a:switch(D.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var W=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":W="yt-video-attribute-view-model--image-avatar";break a;default:W=""}a:switch(D.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var M="yt-video-attribute-view-model--metadata-header";break a;default:M=""}a:switch(D.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var q="yt-video-attribute-view-model--container-card";break a;default:q=""}return["yt-video-attribute-view-model",d,C,
W,M,q,RIq(D)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.Fb({"background-color":function(){var D=K();if(D.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var d="";else{d=D.lightColorPalette;D=D.darkColorPalette;var C,W=((C=_.GB().resolve(_.vv(_.H1)))==null?0:C())&&D?D:d;d=(d=W==null?void 0:W.section2Color)?_.Kg(d):""}return d}})},_.n(_.r,{cond:function(){return l()||!_.S("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.n(_.I5,{className:"yt-video-attribute-view-model__content-container",command:l,role:"group",ariaLabel:function(){return K().title}},_.n(_.r,{cond:function(){return K().heroText||K().image},
then:function(){return _.n(Szw,{data:K})}}),_.n(b6a,{data:K,
sizeSmall:function(){return K().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.n("div",{class:"yt-video-attribute-view-model__content-container"},_.n(_.r,{cond:function(){return K().heroText||K().image},
then:function(){return _.n(Szw,{data:K})}}),_.n(b6a,{data:K,
sizeSmall:function(){return K().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"ab");
O6k.idomCompat=!0;var cdk=_.S("web_enable_sink_yt_video_attribute_view_model")?O6k:_.B1(O6L),Szw=_.rf(function(u){var K=u.data;var l,D=(l=_.GB().resolve(_.vv(_.H1)))==null?void 0:l(),d=function(){return D&&K().darkThemeImage?K().darkThemeImage:K().image},C=_.RZ(function(){return Ukq(K())},void 0,"Mkm2tb");
return _.n("div",{class:"yt-video-attribute-view-model__hero-section"},_.n(_.VI,null,_.n(_.ic,{when:d},function(){return _.n(_.n4,{data:function(){return d()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.n(_.ic,{when:function(){return K().heroText}},function(){return _.n("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.n("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return K().heroText}))})),_.n(_.r,{cond:function(){return K().overflowMenuOnTap},
then:function(){return _.n("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.n($e,{data:C,iconName:"MORE_VERT"}))}}))},"bb");
Szw.idomCompat=!0;var b6a=_.rf(function(u){var K=u.data;u=u.sizeSmall;var l=function(){return K().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},D=_.RZ(function(){return C4(_.dY({innertubeCommand:RIq(K())}))?"link":"group"},void 0,"tvI7S"),d={};
return _.n("div",{class:_.JB("yt-video-attribute-view-model__metadata",(d["yt-video-attribute-view-model--small-font"]=u,d)),role:D},_.n("h1",{class:"yt-video-attribute-view-model__title"},function(){return K().title}),_.n(_.r,{cond:function(){return K().subtitle},
then:function(){return _.n("h4",{class:"yt-video-attribute-view-model__subtitle"},_.n(_.r,{cond:l,then:function(){return _.n(xks,{text:function(){return eI9(K().subtitle)},
truncationText:function(){return eI9(K().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.n("span",null,function(){return K().subtitle})}}))}}),_.n(_.r,{cond:function(){return K().secondarySubtitle},
then:function(C){return _.n("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.n(_.qC,{text:function(){var W=C();if(W!=null&&W.attachmentRuns){for(var M=[],q=_.y(W.attachmentRuns),v=q.next();!v.done;v=q.next())v=v.value,v.element&&M.push(Object.assign({},v,{element:Object.assign({},v.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));W=Object.assign({},W,{attachmentRuns:M})}return W}}))}}),_.n(_.mo,
{data:function(){return K().buttonViewModel}},{buttonViewModel:function(C){return _.n(_.P2,{data:C.data,
className:"yt-video-attribute-view-model__button"})}}))},"cb");
b6a.idomCompat=!0;_.SX(cdk,"yt-video-attribute-view-model",{props:{data:_.M6,className:_.M6}});var eO=function(){var u=_.Q.apply(this,arguments)||this;u.useHighlightStyling=_.S("web_enable_deeper_metadata_highlight_styling");u.isSearch=!1;u.JSC$15030_lastScrollContainerWidth=NaN;u.pageLoadingFromNavigation=!1;u.currentIndex=0;u.supportComponentResize=!1;return u};
_.c(eO,_.Q);_.I=eO.prototype;
_.I.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}}}}}};
_.I.attached=function(){document.addEventListener("yt-page-type-changed",_.Ql(this,this.onPageChange))};
_.I.detached=function(){document.removeEventListener("yt-page-type-changed",_.Ql(this,this.onPageChange))};
_.I.getItemsPath=function(){return"data.cards"};
_.I.onIronResize=function(){this.updateListStyles()};
_.I.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var u;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(u=this.data)==null?void 0:u.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.S("problem_walkthrough_sd")&&!!this.centerItems};
_.I.computeCardListStyle=function(u){return u||null};
_.I.computeEmpty=function(u){return!this.get("cards.length",u)};
_.I.computeThumbnailStyle=function(u){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",u)||null};
_.I.computeHasSubtitle=function(u){return!!this.get("header.richListHeaderRenderer.subtitle",u)};
_.I.computeInitialCountNumber=function(u){return this.hasSquareMiniApp&&u==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&u==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:u==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:u==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:u==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&u==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.I.computeUseFloorScrolling=function(u){return u==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.I.computeHasGameCard=function(u){return(u=this.get("cards",u))?u.some(function(K){return K.gameCardRenderer}):!1};
_.I.computeCenterHeaderTitle=function(u){return!(u==null||!u.centerHeaderTitle)};
_.I.computeHasPortraitMiniApp=function(u){return(u=u==null?void 0:u.cards)?u.some(function(K){return K.miniGameCardViewModel&&K.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.I.computeHasSquareMiniApp=function(u){return(u=u==null?void 0:u.cards)?u.some(function(K){return K.miniGameCardViewModel&&K.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.I.computeHasSkinnyWidthPortraitMiniApp=function(u){return(u=u==null?void 0:u.cards)?u.some(function(K){return K.miniGameCardViewModel&&K.miniGameCardViewModel.width===135}):!1};
_.I.computeCenterItems=function(u){return!!u};
_.I.computeHasInfoPanel=function(u){var K;return u==null?void 0:(K=u.cards)==null?void 0:K.some(function(l){return l.infoPanelContentRenderer})};
_.I.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.I.getItemByIndex=function(u){var K=this.items.children;return K&&K.length>u?K[u]:void 0};
_.I.onPageChange=function(){var u=this;this.pageLoadingFromNavigation=!0;_.YL.addJob(function(){u.pageLoadingFromNavigation=!1;_.bI(u.hostElement,"yt-terminate-video-preview-action")},8)};
_.I.updateListStyles=function(){if(_.S("problem_walkthrough_sd")&&this.JSC$15030_scrollContainer!==void 0){var u=this.JSC$15030_scrollContainer.clientWidth;u!==this.JSC$15030_lastScrollContainerWidth&&(this.JSC$15030_lastScrollContainerWidth=u,_.e8(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(u*.8,415)+"px"}),_.xs(this.hostElement,"iron-resize"))}};
_.MN.Object.defineProperties(eO.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.S("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return!!((u=this.data)==null?0:(K=u.cards)==null?0:(l=K[0])==null?0:l.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return!!((u=this.data)==null?0:(K=u.cards)==null?0:(l=K[0])==null?0:l.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return _.S("enable_desktop_amsterdam_info_panels")&&!!((u=this.data)==null?0:(K=u.cards)==null?0:(l=K[0])==null?0:l.infoPanelContentRenderer)}}});
eO.prototype.dataChanged=eO.prototype.dataChanged;eO.prototype.onIronResize=eO.prototype.onIronResize;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],eO.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.S0.YtdHorizontalListBehavior),_.N("design:type",Object)],eO.prototype,"ytdHorizontalListBehavior",void 0);
_.g([_.e(_.KD),_.N("design:type",Object)],eO.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],eO.prototype,"data",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],eO.prototype,"useCustomColors",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],eO.prototype,"useHighlightStyling",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.N("design:type",Object)],eO.prototype,"cardListStyle",void 0);_.g([_.U({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.N("design:type",Boolean)],eO.prototype,"empty",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.N("design:type",Boolean)],eO.prototype,"hasSubtitle",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.N("design:type",Boolean)],eO.prototype,"thumbnailStyle",void 0);_.g([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.N("design:type",Boolean)],eO.prototype,"hasGameCard",void 0);_.g([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.N("design:type",Boolean)],eO.prototype,"centerHeaderTitle",void 0);
_.g([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.N("design:type",Boolean)],eO.prototype,"hasPortraitMiniApp",void 0);_.g([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.N("design:type",Boolean)],eO.prototype,"hasSquareMiniApp",void 0);_.g([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.N("design:type",Boolean)],eO.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.g([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.N("design:type",Boolean)],eO.prototype,"hasInfoPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],eO.prototype,"isSearch",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],eO.prototype,"inlineStructuredDescription",void 0);_.g([_.BF("#scroll-container"),_.N("design:type",HTMLDivElement)],eO.prototype,"JSC$15030_scrollContainer",void 0);
_.g([_.U({computed:"computeInitialCountNumber(data.style.type)"}),_.N("design:type",Number)],eO.prototype,"initialCount",void 0);_.g([_.U({computed:"computeUseFloorScrolling(data.style.type)"}),_.N("design:type",Boolean)],eO.prototype,"useFloorScrolling",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.N("design:type",Boolean)],eO.prototype,"centerItems",void 0);_.g([_.U(),_.N("design:type",Object)],eO.prototype,"pageLoadingFromNavigation",void 0);
_.g([_.U(),_.N("design:type",Object)],eO.prototype,"currentIndex",void 0);_.g([_.U(),_.N("design:type",Number)],eO.prototype,"scrollCount",void 0);_.g([_.U(),_.N("design:type",Object)],eO.prototype,"supportComponentResize",void 0);_.g([_.BF("#items"),_.N("design:type",HTMLDivElement)],eO.prototype,"items",void 0);_.g([_.PF("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eO.prototype,"onIronResize",null);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eO.prototype,"dataChanged",null);_.g([_.U({reflectToAttribute:!0}),_.R("inlineStructuredDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eO.prototype,"hideNavigationButton",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eO.prototype,"modernChapters",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eO.prototype,"hasVideoAttributeViewModels",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eO.prototype,"modernInfoPanels",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],eO);
_.F(eO,"ytd-horizontal-card-list-renderer",function(){if(G4a!==void 0)return G4a;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return G4a=u},{mode:_.zW("kevlar_poly_si_batch_j072")?1:2});var a6B=_.rf(function(u){var K=u.data;var l={};return _.n("video-summary-content-view-model",{class:_.JB("video-summary-content-view-model-wiz",u.className,(l["video-summary-content-view-model-wiz--is-search"]=u.isSearch,l))},_.n(_.p0,{each:function(){var D=[],d=K().paragraphs;if(d==null||!d.length)return[];for(var C=0;C<d.length;C++){var W=_.b(d[C],pSa),M=void 0;C>0&&(M=_.b(d[C-1],pSa));M&&!!M.marker===!!W.marker?D[D.length-1].paragraphs.push(W):D.push({isList:!!W.marker,paragraphs:[W]})}return D},
keyBy:"INDEX"},function(D){return _.n(_.r,{cond:function(){return D().isList},
then:function(){return _.n("ul",{class:"video-summary-content-view-model-wiz__list"},_.n(_.p0,{each:function(){return D().paragraphs},
keyBy:"INDEX"},function(d){return _.n("li",{class:"video-summary-content-view-model-wiz__list-item"},_.n(_.qC,{text:function(){return d().text}}))}))},
else:function(){return _.n(_.p0,{each:function(){return D().paragraphs},
keyBy:"INDEX"},function(d){return _.n("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.n(_.qC,{text:function(){return d().text}}))})}})}),_.n(_.r,{cond:function(){return!!_.b(K().likeButtonViewModel,_.hW)&&!!_.b(K().dislikeButtonViewModel,_.mD)},
then:function(){return _.n("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.n("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.n(_.hA,{data:function(){return _.b(K().likeButtonViewModel,_.hW)},
disableIconAnimation:!0})),_.n(_.m9,{data:function(){return _.b(K().dislikeButtonViewModel,_.mD)}}))}}))},"db");
a6B.idomCompat=!0;_.SX(a6B,"video-summary-content-view-model",{props:{data:_.M6,isSearch:_.M6,className:_.M6}});var R4=function(){var u=_.Q.apply(this,arguments)||this;var K,l;u.isExpanded=(l=(K=u.data)==null?void 0:K.isExpanded)!=null?l:!1;u.disableExpand=!1;u.showProminentLabel=!1;u.showRightSideLabel=!0;u.toggleExpandableContent=function(D){u.disableExpand||(D.stopPropagation(),_.vJ(_.WF(D),u.hostElement,["info","expanded-subtitle"])||(u.isExpanded=!u.isExpanded,u.ytRendererBehavior.logExplicitClick(u.data),u.JSC$15041_cardList&&!_.S("expandable_metadata_a11y_fix_ks")&&_.W_(u,function(){_.Wu(u.hostElement)})))};
u.useSquareThumbnail=!1;u.contentHiddenWithDisplayNone=_.S("web_expandable_metadata_content_hidden_with_display_none");u.startX=0;return u};
_.c(R4,_.Q);_.I=R4.prototype;_.I.computeUseSquareThumbnail=function(){var u;return(u=this.data)==null?void 0:u.useSquareThumbnail};
_.I.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"}}}}};
_.I.dataChanged=function(){if(this.data){var u,K;this.isExpanded=(K=(u=this.data)==null?void 0:u.isExpanded)!=null?K:!1;var l,D,d,C;if(u=this.isDarkTheme()?(l=this.data)==null?void 0:(D=l.colorData)==null?void 0:D.darkColorPalette:(d=this.data)==null?void 0:(C=d.colorData)==null?void 0:C.lightColorPalette){var W,M;if((W=this.data)==null?0:(M=W.colorData)==null?0:M.vibrantColorPalette)u.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.mE(this.hostElement,u)}}};
_.I.isExpandedChanged=function(){this.isExpanded&&this.JSC$15041_cardList&&_.xs(this.JSC$15041_cardList,"iron-resize")};
_.I.computeIsExpanded=function(u){return!!u.isExpanded};
_.I.computeShowProminentLabel=function(u,K){var l;return!!(u==null?0:(l=u.header)==null?0:l.showLeadingCollapsedLabel)&&!K};
_.I.computeShowRightSideLabel=function(u,K){var l;return!(u==null?0:(l=u.header)==null?0:l.showLeadingCollapsedLabel)&&!K};
_.I.captureContentClick=function(u){if(!this.disableExpand)if(_.S("expandable_metadata_fix_killswitch")){var K=u.target;_.op2(K,"ytd-macro-markers-list-item-renderer")||u.stopPropagation();(K==null?void 0:K.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.vJ(_.WF(u),this.hostElement,["items"])||_.rE(_.WF(u),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.I.timestampClick=function(u){u.stopPropagation();var K,l;(u=(K=this.data)==null?void 0:(l=K.header)==null?void 0:l.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(u)};
_.I.onDown=function(u){u.stopPropagation();this.startX=u.detail?u.detail.x:0};
_.I.onUp=function(u){this.skipKeyInteraction(u)&&u.stopPropagation()};
_.I.skipKeyInteraction=function(u){var K=u.target;if((K==null?void 0:K.id)==="scroll-container"||(K==null?void 0:K.id)==="items"||u.detail&&u.detail.x!==this.startX)return!0;u=_.WF(u);u=_.y(u);for(K=u.next();!K.done;K=u.next()){K=K.value;if(K===this.hostElement)break;if(K.hasAttribute&&K.hasAttribute("skip-key-interaction"))return!0}return!1};
_.I.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.MN.Object.defineProperties(R4.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var u;return!!_.b((u=this.data)==null?void 0:u.expandedContent,BV2)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var u;return!!_.b((u=this.data)==null?void 0:u.expandedContent,_.JTk)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var u,K;return!((u=this.data)==null||!u.useCustomColors)&&!((K=this.data)==null||!K.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var u,K;return!!((u=this.data)==null?0:(K=u.header)==null?0:K.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var u,K;return!!((u=this.data)==null?0:(K=u.header)==null?0:K.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var u,K;return!!((u=this.data)==null?0:(K=u.header)==null?0:K.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.S("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
R4.prototype.onUp=R4.prototype.onUp;R4.prototype.onDown=R4.prototype.onDown;R4.prototype.isExpandedChanged=R4.prototype.isExpandedChanged;R4.prototype.dataChanged=R4.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],R4.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],R4.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],R4.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],R4.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],R4.prototype,"isExpanded",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],R4.prototype,"disableExpand",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],R4.prototype,"isSearch",void 0);
_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],R4.prototype,"isWatch",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.N("design:type",Object)],R4.prototype,"showProminentLabel",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.N("design:type",Object)],R4.prototype,"showRightSideLabel",void 0);
_.g([_.U({value:!1,reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],R4.prototype,"hasVideoSummary",null);_.g([_.U({value:!1,reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],R4.prototype,"hasLockupViewModel",null);_.g([_.U({reflectToAttribute:!0}),_.R("data","isWatch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],R4.prototype,"useCustomColors",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],R4.prototype,"showInfoButton",null);_.g([_.R("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],R4.prototype,"showTimestamp",null);_.g([_.R("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],R4.prototype,"showExpandedSubtitle",null);
_.g([_.R("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],R4.prototype,"showThumbnail",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],R4.prototype,"useVppShoppingDestinationStyle",null);_.g([_.U(),_.N("design:type",Object)],R4.prototype,"toggleExpandableContent",void 0);_.g([_.BF("ytd-horizontal-card-list-renderer"),_.N("design:type",Object)],R4.prototype,"JSC$15041_cardList",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.N("design:type",Object)],R4.prototype,"useSquareThumbnail",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],R4.prototype,"contentHiddenWithDisplayNone",void 0);_.g([_.R("isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],R4.prototype,"contentHidden",null);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],R4.prototype,"dataChanged",null);_.g([_.JU("isExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],R4.prototype,"isExpandedChanged",null);_.g([_.PF("down"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],R4.prototype,"onDown",null);
_.g([_.PF("up"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],R4.prototype,"onUp",null);_.g([_.T({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],R4);
_.F(R4,"ytd-expandable-metadata-renderer",function(){if(RHR!==void 0)return RHR;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return RHR=u},{mode:1});var zIS,eIs=function(){if(zIS!==void 0)return zIS;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return zIS=u};_.SX(_.XE,"yt-avatar-stack-view-model",{props:{className:_.M6,data:_.M6,overrides:_.M6,isOverlay:_.M6,useMediumText:_.M6,decorations:_.M6,hideAvatar:_.M6}});_.E4("itemSectionRenderer","videoRenderer","ytd-video-renderer");var Ua=function(){var u=_.Q.apply(this,arguments)||this;u.disableExpand=!1;u.shouldShowChannelInfo=!1;u.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return u};
_.c(Ua,_.Q);_.I=Ua.prototype;_.I.computeUseSearchUi=function(){var u,K;return this.isSearch||((u=this.data)==null?void 0:(K=u.style)==null?void 0:K.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.I.computeUseThreeLineTitle=function(){var u;return((u=this.data)==null?void 0:u.maxTitleLines)===3};
_.I.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.S("polymer_video_renderer_defer_menu")&&!x$a?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"}}}};
_.I.attached=function(){_.cF(this.hostElement,"blue-links",_.S("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.ab(_.bi(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var u=this.get("data.buttons.buttonRenderer.serviceEndpoint"),K;u&&((K=_.b(u.commandMetadata,_.Z3))==null?0:K.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(u);this.updateInlinePreviewHoverListeners()};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15046_inlinePreviewHoverListener=Cz({mediaRenderer:this,lockupElement:this.JSC$15046_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.I.clearInlinePreviewHoverListeners=function(){var u;(u=this.JSC$15046_inlinePreviewHoverListener)==null||n5(u)};
_.I.onTextWrapperClick=function(u){var K,l,D=this.hideTranslation?(K=this.data)==null?void 0:K.untranslatedNavigationEndpoint:(l=this.data)==null?void 0:l.navigationEndpoint;K=_.vJ(_.WF(u),this.hostElement,["expandable-metadata"]);!D||K&&!_.S("expandable_metadata_fix_killswitch")||_.rE(_.WF(u),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.xs(this.hostElement,"yt-navigate",{endpoint:D})};
_.I.computeThumbnailWidth=function(u,K,l,D,d){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:D?d==="MASSIVE"?600:d==="BIG"?500:d==="MEDIUM"?450:420:l?360:K?128:u?210:246};
_.I.computeUseBiggerThumbs=function(u){return u&&_.S("enable_desktop_search_bigger_thumbs")};
_.I.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.I.computeVideoStyle=function(){if(_.S("enable_video_style")){var u,K;return(u=this.data)==null?void 0:(K=u.style)==null?void 0:K.value}};
_.I.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.I.handleHideItemSectionVideosByIdCommand=function(u){var K;u=(K=_.b(u,dLR))==null?void 0:K.videoId;this.data&&this.data.videoId===u&&(this.isHidden=!0)};
_.I.getMetadataSnippetContainerClass=function(u){return u?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.I.computeTitleText=function(u,K,l){return u?l:K};
_.I.computeDescriptionSnippet=function(u,K,l){return u?l:K};
_.I.computeSnippetText=function(u,K,l){return u?l:K};
_.I.computeNavigationEndpoint=function(u,K){return u?K==null?void 0:K.untranslatedNavigationEndpoint:K==null?void 0:K.navigationEndpoint};
_.I.hideInlineTitleIcon=function(u,K){return u||!K};
_.MN.Object.defineProperties(Ua.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 u;return(u=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?u:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return!!(this==null?0:(u=this.data)==null?0:(K=u.channelThumbnailSupportedRenderers)==null?0:(l=K.channelThumbnailWithLinkRenderer)==null?0:l.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var u;return!!_.b((u=this.data)==null?void 0:u.avatar,j80)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.JSC$15046_inlinePreviewHoverListener)==null?0:Es(u))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.MN.Object.defineProperties(Ua,{template:{configurable:!0,enumerable:!0,get:function(){return eIs()}}});
Ua.prototype.dataChanged=Ua.prototype.dataChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Ua.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ua.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],Ua.prototype,"ytdDismissibleItemBehavior",void 0);
_.g([_.e(_.s8),_.N("design:type",Object)],Ua.prototype,"ytdLockupBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Ua.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Ua.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ua.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Ua.prototype,"isBackstageVideo",void 0);
_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Ua.prototype,"isPostCompactVideo",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ua.prototype,"isHistory",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Ua.prototype,"isRichGridVideoPost",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Ua.prototype,"isHidden",void 0);
_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Ua.prototype,"isSearch",void 0);_.g([_.U({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.N("design:type",Boolean)],Ua.prototype,"useSearchUi",void 0);_.g([_.U({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.N("design:type",Boolean)],Ua.prototype,"useThreeLineTitle",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.N("design:type",Boolean)],Ua.prototype,"useBiggerThumbs",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.N("design:type",Object)],Ua.prototype,"videoStyle",void 0);_.g([_.U({computed:"computeDisableExpand(videoStyle)"}),_.N("design:type",Object)],Ua.prototype,"disableExpand",void 0);
_.g([_.U({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.N("design:type",Object)],Ua.prototype,"shouldShowChannelInfo",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.bZ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],Ua.prototype,"biggerThumbsStyle",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.N("design:type",String)],Ua.prototype,"inlineTitleIcon",void 0);_.g([_.U({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.N("design:type",Object)],Ua.prototype,"computedNavigationEndpoint",void 0);_.g([_.U({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(u,K){return _.eZ(u.entities,"searchVideoResultEntity",K)}}),
_.N("design:type",Object)],Ua.prototype,"searchVideoResultEntity",void 0);_.g([_.BF("ytd-thumbnail"),_.N("design:type",HTMLElement)],Ua.prototype,"thumbnail",void 0);_.g([_.BF("#dismissible"),_.N("design:type",HTMLElement)],Ua.prototype,"JSC$15046_dismissibleMedia",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ua.prototype,"dataChanged",null);
_.g([_.R("searchVideoResultEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ua.prototype,"hideTranslation",null);_.g([_.R("searchVideoResultEntity"),_.N("design:type",Array),_.N("design:paramtypes",[])],Ua.prototype,"hiddenBadgeGroups",null);_.g([_.R("data","useAvatar"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ua.prototype,"shouldShowChannelThumbnail",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ua.prototype,"useAvatar",null);
_.g([_.R("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ua.prototype,"isHovered",null);_.g([_.T({is:"ytd-video-renderer",disableElementRegistration:!0})],Ua);_.F(Ua,"ytd-video-renderer",function(){return eIs()},{mode:_.zW("kevlar_poly_si_batch_j047")?1:2});var fK=function(){var u=_.Q.apply(this,arguments)||this;u.editDialog=null;u.roundedContainer=!0;u.isLoading=!1;u.isRichGrid=!1;u.isRichGridRepost=!1;u.reduceSidePaddings=_.S("reduce_side_paddings_in_shelf");u.JSC$15053_spinnerEl=null;return u};
_.c(fK,_.Q);_.I=fK.prototype;
_.I.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"}}}};
_.I.contentTextChanged=function(){this.expander.reset()};
_.I.dataChanged=function(){var u=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var K=0,l=this.data.actions&&this.data.actions.length;K<l;K++)this.openEditDialog(_.b(this.data.actions[K],t3C));if((K=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(K=this.get("buttonRenderer.hint.hintRenderer.hintId",K))&&K.startsWith("share-post-hint")){var D=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(D){_.xx.getInstance();var d=S_(_.o7(_.QQ("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.YL.addLowPriorityJob(function(){_.ay(u.hostElement,d,D)})}}}};
_.I.updatePoll=function(u){u>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.I.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15053_spinnerEl||(this.JSC$15053_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.bi(this.hostElement).appendChild(this.JSC$15053_spinnerEl));this.JSC$15053_spinnerEl&&(this.JSC$15053_spinnerEl.active=this.isLoading)};
_.I.onYtNavigate=function(u){var K=this.get("updateCommentDialogEndpoint",u.detail.endpoint);K&&(this.openEditDialog(K),u.stopPropagation())};
_.I.onYtCommentboxDismiss=function(){this.editDialog=null};
_.I.onYtCommentPollRevert=function(u,K){K&&this.updatePoll(K.selectedChoiceIndex)};
_.I.onYtServiceRequestSent=function(u,K){var l;K.endpoint&&(_.b(K.endpoint,ZPm)||_.b(K.endpoint,k8S)&&((l=_.b(K.endpoint,k8S))==null||!l.clientActions))&&(this.isLoading=!0);if(K.actions)for(u=0;u<K.actions.length;u++)l=K.actions[u],_.b(l,NA)&&(l=this.get("updateBackstagePollAction.selectedChoiceIndex",l),l==void 0&&(l=-1),this.updatePoll(l))};
_.I.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.I.openEditDialog=function(u){u&&u.dialog&&(this.editDialog=u.dialog,u=this.editDialogEl.firstElementChild)&&(u.focus(),u.openDialog&&u.openDialog())};
_.I.computeIsPostHidden=function(u,K){return!!u||K};
_.I.computeSurfaceType=function(u){return u?u.toLowerCase().replace(/_/g,"-"):""};
_.I.computeUsesCompactLockup=function(u){return u==="BACKSTAGE_SURFACE_TYPE_HOME"||u==="BACKSTAGE_SURFACE_TYPE_SEARCH"||u==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||u==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||u==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||u==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.I.computeShowWithoutToolbar=function(u){return!u.actionButtons&&!u.actionMenu};
_.I.computePostAttachment=function(u){if(u.backstageAttachment){if(_.b(u.backstageAttachment,a3B))return"poll";if(_.b(u.backstageAttachment,og0))return"quiz";if(_.b(u.backstageAttachment,_.dz))return"video";if(_.b(u.backstageAttachment,WDC))return"uploaded-videos";if(_.b(u.backstageAttachment,NRA))return u.contentText?"image":"image-only";if(_.b(u.backstageAttachment,CEw))return"playlist"}return"none"};
_.I.computePostTabIndex=function(u){return u?0:-1};
_.I.computeButtonTooltipPosition=function(u){return this.computeUsesCompactLockup(u)?"top":"bottom"};
_.I.computeHasText=function(u){return!(u==null||!u.contentText)};
_.I.onTap=function(u){var K,l;if(((K=this.data)==null?0:K.navigationEndpoint)&&((l=this.data)==null?void 0:l.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var D;((D=this.data)==null?0:D.navigationEndpoint)&&!_.rE(_.WF(u)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.xs(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.MN.Object.defineProperties(fK.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.voteCount)||_.o7("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,a3B))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,WDC))}}});
fK.prototype.onYtServiceRequestCompleted=fK.prototype.onYtServiceRequestCompleted;fK.prototype.onYtServiceRequestSent=fK.prototype.onYtServiceRequestSent;fK.prototype.onYtCommentPollRevert=fK.prototype.onYtCommentPollRevert;fK.prototype.onYtCommentboxDismiss=fK.prototype.onYtCommentboxDismiss;fK.prototype.onYtNavigate=fK.prototype.onYtNavigate;fK.prototype.isLoadingChanged=fK.prototype.isLoadingChanged;fK.prototype.dataChanged=fK.prototype.dataChanged;fK.prototype.contentTextChanged=fK.prototype.contentTextChanged;
_.g([_.e(_.KD),_.N("design:type",Object)],fK.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],fK.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],fK.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Object)],fK.prototype,"editDialog",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fK.prototype,"roundedContainer",void 0);_.g([_.U(),_.N("design:type",Object)],fK.prototype,"isLoading",void 0);_.g([_.U({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.N("design:type",String)],fK.prototype,"surface",void 0);
_.g([_.U({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.N("design:type",Boolean)],fK.prototype,"usesCompactLockup",void 0);_.g([_.U({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],fK.prototype,"showWithoutToolbar",void 0);_.g([_.U({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.N("design:type",String)],fK.prototype,"attachment",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fK.prototype,"isRichGrid",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fK.prototype,"isRichGridRepost",void 0);_.g([_.U({reflectToAttribute:!0,value:_.S("use_better_post_dismissals")}),_.N("design:type",Boolean)],fK.prototype,"useBetterPostDismissals",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fK.prototype,"reduceSidePaddings",void 0);
_.g([_.U({computed:"computeHasText(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],fK.prototype,"hasText",void 0);_.g([_.BF("#expander"),_.N("design:type",Object)],fK.prototype,"expander",void 0);_.g([_.BF("#action-buttons"),_.N("design:type",Object)],fK.prototype,"actionButtons",void 0);_.g([_.BF("#edit-dialog"),_.N("design:type",HTMLElement)],fK.prototype,"editDialogEl",void 0);
_.g([_.JU("data.contentText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fK.prototype,"contentTextChanged",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fK.prototype,"dataChanged",null);_.g([_.JU("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fK.prototype,"isLoadingChanged",null);
_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],fK.prototype,"onYtNavigate",null);_.g([_.PF("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fK.prototype,"onYtCommentboxDismiss",null);_.g([_.PF("yt-comment-poll-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],fK.prototype,"onYtCommentPollRevert",null);
_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],fK.prototype,"onYtServiceRequestSent",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],fK.prototype,"onYtServiceRequestCompleted",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],fK.prototype,"voteCount",null);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],fK.prototype,"commentCount",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fK.prototype,"hasPoll",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fK.prototype,"hasUploadedVideo",null);_.g([_.T({is:"ytd-post-renderer",disableElementRegistration:!0})],fK);
_.F(fK,"ytd-post-renderer",function(){if(mYB!==void 0)return mYB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return mYB=u},{mode:1});var RIw;var UkN;var QX=function(){return _.Q.apply(this,arguments)||this};
_.c(QX,_.Q);QX.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],QX.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.S0.YtdHorizontalListBehavior),_.N("design:type",Object)],QX.prototype,"ytdHorizontalListBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],QX.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],QX.prototype,"data",void 0);
_.g([_.U({value:"$.items.children"}),_.N("design:type",String)],QX.prototype,"itemsPath",void 0);_.g([_.U({value:1}),_.N("design:type",Number)],QX.prototype,"initialCount",void 0);_.g([_.U(),_.N("design:type",String)],QX.prototype,"surface",void 0);_.g([_.T({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],QX);
_.F(QX,"ytd-post-multi-image-renderer",function(){if(UkN!==void 0)return UkN;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return UkN=u},{mode:_.zW("kevlar_poly_si_batch_j079")?1:2});var f6H={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},P6=function(){var u=_.Q.apply(this,arguments)||this;u.hasInlineCommentSection=!1;u.editDialog=null;u.isLoading=!1;u.shouldHideAuthor=!1;u.shouldShowVideoTime=!1;
u.isInEngagementPanel=!1;u.hideBorder=!1;u.usesFullLockup=!1;u.shouldShowMenuInCompactView=!1;u.JSC$15069_spinnerEl=null;u.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return u};
_.c(P6,_.Q);_.I=P6.prototype;_.I.configureRendererStamper=function(){return f6H};
_.I.computeIsPollHeaderEnabled=function(u){return(u==null?void 0:u.pollMetadataIcon)!=null};
_.I.getPublishTimeStampString=function(u,K){K=new Date((Number(K)-60*((new Date).getTimezoneOffset()-(new Date(Number(K)*1E3)).getTimezoneOffset()))*1E3);K=(new yR(10)).format(K);if(u&&u.runs&&u.runs.length)for(var l=0;l<u.runs.length;l++)u.runs[l].text&&(u.runs[l].text=u.runs[l].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",K));return u};
_.I.created=function(){this.JSC$15069_spinnerEl=null};
_.I.contentTextChanged=function(){this.expander.reset()};
_.I.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var u;if((u=this.data)==null?0:u.actions){u=_.y(this.data.actions);for(var K=u.next();!K.done;K=u.next())this.openEditDialog(_.b(K.value,t3C))}};
_.I.handleSignalActionOpenPostCommentDialogAction=function(){_.bi(this.hostElement).querySelector("#action-buttons").reply()};
_.I.updatePoll=function(u,K){K&&this.set("data.pollMetadataVoteCountText",K);this.hasInlineCommentSection&&(u=u>=0,K=_.bi(this.hostElement).querySelector("#action-buttons"),u?K.reply():K.hideReplyDialog())};
_.I.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15069_spinnerEl||(this.JSC$15069_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.bi(this.hostElement).appendChild(this.JSC$15069_spinnerEl));this.JSC$15069_spinnerEl&&(this.JSC$15069_spinnerEl.active=this.isLoading)};
_.I.onYtNavigate=function(u){var K=this.get("updateCommentDialogEndpoint",u.detail.endpoint);K&&(this.openEditDialog(K),u.stopPropagation())};
_.I.onYtCommentboxDismiss=function(){this.editDialog=null};
_.I.onYtCommentPollRevert=function(u,K){K&&this.updatePoll(K.selectedChoiceIndex,K.totalVotes)};
_.I.onYtServiceRequestSent=function(u,K){u.stopPropagation();u=_.b(K.endpoint,k8S);if(_.b(K.endpoint,ZPm)||u&&!u.clientActions)this.isLoading=!0;if(K.actions)for(u=0;u<K.actions.length;u++){var l=K.actions[u],D=_.b(l,NA);D&&(l=this.get("updateBackstagePollAction.selectedChoiceIndex",l),l===void 0&&(l=-1),this.updatePoll(l,D.totalVotes))}};
_.I.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.I.openEditDialog=function(u){u&&u.dialog&&(this.editDialog=u.dialog,u=this.editDialogElement.firstElementChild)&&(u.focus(),u.openDialog&&u.openDialog())};
_.I.computeIsBodyHidden=function(u,K){return!!u||K};
_.MN.Object.defineProperties(P6.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var u,K;if((u=this.data)==null?0:(K=u.pollMetadataIcon)==null?0:K.iconType)return _.fr(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.voteCount)||_.o7("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,a3B))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,og0))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,WDC))}}});
P6.prototype.onYtServiceRequestCompleted=P6.prototype.onYtServiceRequestCompleted;P6.prototype.onYtServiceRequestSent=P6.prototype.onYtServiceRequestSent;P6.prototype.onYtCommentPollRevert=P6.prototype.onYtCommentPollRevert;P6.prototype.onYtCommentboxDismiss=P6.prototype.onYtCommentboxDismiss;P6.prototype.onYtNavigate=P6.prototype.onYtNavigate;P6.prototype.isLoadingChanged=P6.prototype.isLoadingChanged;P6.prototype.dataChanged=P6.prototype.dataChanged;P6.prototype.contentTextChanged=P6.prototype.contentTextChanged;
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],P6.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],P6.prototype,"rendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],P6.prototype,"rendererstamperBehavior",void 0);_.g([_.BF("#contentTextExpander"),_.N("design:type",Object)],P6.prototype,"expander",void 0);
_.g([_.BF("#edit-dialog"),_.N("design:type",Element)],P6.prototype,"editDialogElement",void 0);_.g([_.U(),_.N("design:type",Object)],P6.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],P6.prototype,"hasInlineCommentSection",void 0);_.g([_.U(),_.N("design:type",Object)],P6.prototype,"editDialog",void 0);_.g([_.U(),_.N("design:type",Object)],P6.prototype,"isLoading",void 0);
_.g([_.U({computed:"computeIsPollHeaderEnabled(data)"}),_.N("design:type",Boolean)],P6.prototype,"isPollHeaderEnabled",void 0);_.g([_.U(),_.N("design:type",Object)],P6.prototype,"shouldHideAuthor",void 0);_.g([_.U(),_.N("design:type",Object)],P6.prototype,"shouldShowVideoTime",void 0);_.g([_.U(),_.N("design:type",Object)],P6.prototype,"isInEngagementPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],P6.prototype,"hideBorder",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],P6.prototype,"usesFullLockup",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],P6.prototype,"shouldShowMenuInCompactView",void 0);_.g([_.R("isInEngagementPanel"),_.N("design:type",Number),_.N("design:paramtypes",[])],P6.prototype,"postTextMaxLines",null);_.g([_.R("data.icon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],P6.prototype,"pollIcon",null);
_.g([_.JU("data.contentText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],P6.prototype,"contentTextChanged",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],P6.prototype,"dataChanged",null);_.g([_.JU("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],P6.prototype,"isLoadingChanged",null);
_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],P6.prototype,"onYtNavigate",null);_.g([_.PF("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],P6.prototype,"onYtCommentboxDismiss",null);_.g([_.PF("yt-comment-poll-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],P6.prototype,"onYtCommentPollRevert",null);
_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],P6.prototype,"onYtServiceRequestSent",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],P6.prototype,"onYtServiceRequestCompleted",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],P6.prototype,"voteCount",null);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],P6.prototype,"commentCount",null);_.g([_.R("data.backstageAttachment"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P6.prototype,"hasPoll",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P6.prototype,"hasQuiz",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P6.prototype,"hasUploadedVideo",null);
_.g([_.T({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],P6);
_.F(P6,"ytd-backstage-post-renderer",function(){if(RIw!==void 0)return RIw;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return RIw=u},{mode:1});var Q1B;var Jw=function(){var u=_.Q.apply(this,arguments)||this;u.editDialog=null;u.showExpandButton=!1;u.isRichGrid=!1;u.usesFullLockup=!1;return u};
_.c(Jw,_.Q);_.I=Jw.prototype;_.I.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"}}}};
_.I.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.I.computeShowExpandButton=function(u){return this.usesCompactLockup||u&&u.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.I.computeUsesCompactLockup=function(u){return!!u.condensedContent};
_.I.computeShowFullContentText=function(u){return!u};
_.I.onYtNavigate=function(u){u=this.get("updateCommentDialogEndpoint",u.detail.endpoint);this.openEditDialog(u)};
_.I.onYtCommentboxDismiss=function(){this.editDialog=null};
_.I.openEditDialog=function(u){u&&u.dialog&&(this.editDialog=u.dialog,u=this.repostEditDialogEl.firstElementChild)&&(u.focus(),u.openDialog&&u.openDialog())};
_.I.onTap=function(u){if(this.data){var K=null;this.usesCompactLockup&&!_.rE(_.WF(u)||[],this.hostElement,["YT-IMG-SHADOW"])?K=this.get("navigationEndpoint",this.data):u.target===this.moreButtonEl&&(K=this.get("navigationEndpoint",u.target.data));K&&_.xs(this.hostElement,"yt-navigate",{endpoint:K})}};
Jw.prototype.onYtCommentboxDismiss=Jw.prototype.onYtCommentboxDismiss;Jw.prototype.onYtNavigate=Jw.prototype.onYtNavigate;Jw.prototype.dataChanged=Jw.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Jw.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Jw.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Object)],Jw.prototype,"editDialog",void 0);_.g([_.U({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Jw.prototype,"usesCompactLockup",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Jw.prototype,"showExpandButton",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Jw.prototype,"isRichGrid",void 0);
_.g([_.U({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Jw.prototype,"showFullContentText",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Jw.prototype,"usesFullLockup",void 0);_.g([_.BF("#more"),_.N("design:type",Object)],Jw.prototype,"moreButtonEl",void 0);_.g([_.BF("#repost-content-text"),_.N("design:type",HTMLElement)],Jw.prototype,"repostContentTextEl",void 0);
_.g([_.BF("#repost-edit-dialog"),_.N("design:type",HTMLElement)],Jw.prototype,"repostEditDialogEl",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jw.prototype,"dataChanged",null);_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Jw.prototype,"onYtNavigate",null);
_.g([_.PF("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jw.prototype,"onYtCommentboxDismiss",null);_.g([_.T({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Jw);
_.F(Jw,"ytd-shared-post-renderer",function(){if(Q1B!==void 0)return Q1B;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Q1B=u},{mode:1});var PoH;var Jdw;var jO=function(){return _.Q.apply(this,arguments)||this};
_.c(jO,_.Q);jO.prototype.attached=function(){var u=this;this.networkStatusManager||(this.networkStatusManager=new _.ye,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){u.onlineHandler()}))};
jO.prototype.detached=function(){var u=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){u.onlineHandler()}),delete this.networkStatusManager)};
jO.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],jO.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],jO.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],jO);
_.F(jO,"ytd-reload-page-button-renderer",function(){if(Jdw!==void 0)return Jdw;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
return Jdw=u},{mode:1});var j1R={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"},B6=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return u};
_.c(B6,_.Q);_.I=B6.prototype;_.I.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.I.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.I.computeHasBodyText=function(u){return!!u.bodyText};
_.I.computeButtons=function(u){var K=[];u.ctaButton&&K.push(u.ctaButton);u.secondaryButton&&K.push(u.secondaryButton);return K};
_.I.computeRendererStyle=function(u){return u.style?u.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():u.icon?"":"no-icon"};
_.I.getIconName=function(u,K){K=K===void 0?!1:K;if(u===void 0)return"";u=this.get("icon.iconType",u);var l;_.S("enable_hlp_client_icon_pick")?l=this.getThemedIcon(u,K):l=u;(K=j1R[l])||(K="yt-icons");return[K,l].join(":")};
_.I.getThemedIcon=function(u,K){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(u)?K?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(u)?K?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":u};
_.I.isThumbnail=function(u){return!!u.thumbnail};
_.I.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.I.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],B6.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],B6.prototype,"data",void 0);
_.g([_.U({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],B6.prototype,"rendererStyle",void 0);_.g([_.U({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.N("design:type",String)],B6.prototype,"iconName",void 0);_.g([_.U({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],B6.prototype,"thumbnail",void 0);_.g([_.U({computed:"computeButtons(data)"}),_.N("design:type",Array)],B6.prototype,"buttons",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],B6.prototype,"isDarkTheme",void 0);_.g([_.U({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],B6.prototype,"hasBodyText",void 0);_.g([_.T({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],B6);
_.F(B6,"ytd-background-promo-renderer",function(){if(PoH!==void 0)return PoH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return PoH=u},{mode:1});var B8S;var pK=function(){var u=_.Q.apply(this,arguments)||this;u.collections=_.S("web_modern_collections_v2");return u};
_.c(pK,_.Q);_.MN.Object.defineProperties(pK.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D,d,C;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(u=this.data)==null?void 0:(K=u.thumbnail)==null?void 0:K.sampledThumbnailColor,vibrantColorPalette:(l=this.data)==null?void 0:(D=l.thumbnail)==null?void 0:D.vibrantColorPalette,darkColorPalette:(d=this.data)==null?void 0:(C=d.thumbnail)==null?void 0:C.darkColorPalette,experimentEnabled:this.collections}}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],pK.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],pK.prototype,"collections",void 0);_.g([_.R("data","collections"),_.N("design:type",Object),_.N("design:paramtypes",[])],pK.prototype,"collectionStack",null);_.g([_.T({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],pK);
_.F(pK,"ytd-compact-station-renderer",function(){if(B8S!==void 0)return B8S;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return B8S=u},{mode:1});var ppa;var is=function(){var u=_.Q.apply(this,arguments)||this;u.isRichGrid=!1;return u};
_.c(is,_.Q);is.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]]"}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],is.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],is.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],is.prototype,"isRichGrid",void 0);_.g([_.T({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],is);
_.F(is,"ytd-grid-channel-renderer",function(){if(ppa!==void 0)return ppa;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return ppa=u},{mode:1});var i6H;var Tx=function(){return _.Q.apply(this,arguments)||this};
_.c(Tx,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Tx.prototype,"data",void 0);_.g([_.T({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Tx);
_.F(Tx,"ytd-grid-movie-playlist-renderer",function(){if(i6H!==void 0)return i6H;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return i6H=u},{mode:1});var T8H;var wL=function(){var u=_.Q.apply(this,arguments)||this;u.downloadProgress=0;u.transferState="TRANSFER_STATE_UNKNOWN";u.modernButtons=_.S("web_modern_buttons");u.useModernCollectionsV2=_.S("web_modern_collections_v2");return u};
_.c(wL,_.Q);wL.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
wL.prototype.configureRendererStamper=function(){return{"data.menu":PR}};
wL.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
wL.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.S("woffle_playlist_renderer_killswitch")){var u,K=Gtw(this.entityInfo,this.transferState,this.downloadProgress,(u=this.data)==null?void 0:u.playlistId,this.isOnline);u=K.viewPlaylistText;var l=K.badges;K=K.thumbnailOverlays;this.isDownloads=!!u||!!l;this.set("data.viewPlaylistText",u);l&&l.length>0&&this.set("data.badges",l);K&&K.length>0&&this.set("data.thumbnailOverlays",
K)}};
_.MN.Object.defineProperties(wL.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 u;return!((u=this.data)==null?0:u.menu)}}});
wL.prototype.transferStateChanged=wL.prototype.transferStateChanged;wL.prototype.dataChanged=wL.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.s8),_.N("design:type",Object)],wL.prototype,"ytdLockupBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],wL.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],wL.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.U({selector:_.PFq,selectorArgs:["data.playlistId"]}),_.N("design:type",Object)],wL.prototype,"downloadProgress",void 0);_.g([_.U({selector:_.Lm,selectorArgs:["data.playlistId"]}),_.N("design:type",Object)],wL.prototype,"transferState",void 0);_.g([_.U({selector:QDb,selectorArgs:["data.playlistId"]}),_.N("design:type",Object)],wL.prototype,"entityInfo",void 0);_.g([_.U({selector:_.hu}),_.N("design:type",Boolean)],wL.prototype,"isOnline",void 0);
_.g([_.U(),_.N("design:type",Object)],wL.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],wL.prototype,"downloadRenderData",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],wL.prototype,"modernButtons",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],wL.prototype,"isDownloads",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],wL.prototype,"useModernCollectionsV2",void 0);
_.g([_.R("transferState"),_.U({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],wL.prototype,"downloadState",null);_.g([_.R("data"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],wL.prototype,"menuHidden",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wL.prototype,"dataChanged",null);
_.g([_.wn("transferState","downloadProgress","isOnline"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wL.prototype,"transferStateChanged",null);_.g([_.T({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],wL);
_.F(wL,"ytd-grid-playlist-renderer",function(){if(T8H!==void 0)return T8H;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return T8H=u},{mode:1});var wpA;var Fc=function(){var u=_.Q.apply(this,arguments)||this;u.collections=_.S("web_modern_collections_v2");return u};
_.c(Fc,_.Q);Fc.prototype.configureRendererStamper=function(){return{"data.menu":PR,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.MN.Object.defineProperties(Fc.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D,d,C;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(u=this.data)==null?void 0:(K=u.thumbnail)==null?void 0:K.sampledThumbnailColor,vibrantColorPalette:(l=this.data)==null?void 0:(D=l.thumbnail)==null?void 0:D.vibrantColorPalette,darkColorPalette:(d=this.data)==null?void 0:(C=d.thumbnail)==null?void 0:C.darkColorPalette,experimentEnabled:this.collections}}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Fc.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],Fc.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.s8),_.N("design:type",Object)],Fc.prototype,"ytdLockupBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Fc.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Fc.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Fc.prototype,"collections",void 0);_.g([_.R("data","collections"),_.N("design:type",Object),_.N("design:paramtypes",[])],Fc.prototype,"collectionStack",null);_.g([_.T({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Fc);
_.F(Fc,"ytd-grid-radio-renderer",function(){if(wpA!==void 0)return wpA;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return wpA=u},{mode:1});var FCS;var VX=function(){var u=_.Q.apply(this,arguments)||this;u.useModernCollectionsV2=_.S("web_modern_collections_v2");return u};
_.c(VX,_.Q);VX.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
VX.prototype.computeNavigationEndpoint=function(u){return zmq(u==null?void 0:u.navigationEndpoint)};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],VX.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.s8),_.N("design:type",Object)],VX.prototype,"ytdLockupBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],VX.prototype,"data",void 0);_.g([_.U({computed:"computeNavigationEndpoint(data)"}),_.N("design:type",Object)],VX.prototype,"computedNavigationEndpoint",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],VX.prototype,"useModernCollectionsV2",void 0);_.g([_.T({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],VX);
_.F(VX,"ytd-grid-show-renderer",function(){if(FCS!==void 0)return FCS;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return FCS=u},{mode:1});var VMk;_.gL=function(u){this.playerClient=u};
_.g9R=function(u,K,l){l=l===void 0?{}:l;return u.playerClient.setOption("ad",K,l)};
_.gL.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.gL.prototype.executeCommand=function(u,K){this.getOptions().includes("executeCommand")?_.g9R(this,"executeCommand",{command:u,layoutId:K}):_.nz("Calling executeCommand when adModule is not loaded")};var Ng=function(){return _.Q.apply(this,arguments)||this};
_.c(Ng,_.Q);Ng.prototype.getLayoutId=function(){var u=_.lZ("yt.www.ads.eventcache.getLastCompanionData");return u?(u=u())&&u.layoutId:null};
Ng.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var u=_.xY(),K=this.getLayoutId(),l=this.data.clickthroughEndpoint;u&&K&&_.S("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?u.getPlayerPromise().then(function(D){(new _.gL(D)).executeCommand(l,K)}):_.xs(this.hostElement,"yt-navigate",{endpoint:l})}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ng.prototype,"data",void 0);_.g([_.T({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],Ng);
_.F(Ng,"ytd-shopping-companion-item-renderer",function(){if(VMk!==void 0)return VMk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return VMk=u},{mode:1});var N8a;var kW=function(){var u=_.Q.apply(this,arguments)||this;u.isExpandableContent=!1;return u};
_.c(kW,_.Q);_.MN.Object.defineProperties(kW.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return((u=this.data)==null?void 0:u.price)||((K=this.data)==null?void 0:(l=K.dealsData)==null?void 0:l.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var u,K;if((u=this.data)!=null&&u.dealsData&&((K=this.data)==null||!K.priceReplacementText)){u=this.data.dealsData;var l,D,d;return((l=u.salesData)==null?void 0:l.originalPrice)||((D=u.priceDropData)==null?void 0:D.referencePrice)||((d=u.promotionData)==null?void 0:d.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var u,K;return(u=this.data)==null?void 0:(K=u.dealsData)==null?void 0:K.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],kW.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],kW.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],kW.prototype,"isExpandableContent",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kW.prototype,"showCta",null);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kW.prototype,"ctaText",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kW.prototype,"hasPriceTopPosition",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kW.prototype,"hasPriceBottomPosition",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kW.prototype,"useNewStyle",null);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kW.prototype,"showPriceReplacementText",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kW.prototype,"priceValue",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kW.prototype,"showDeal",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kW.prototype,"showAffiliateDisclaimer",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kW.prototype,"useSaleStyle",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kW.prototype,"useFromBrandCtaStyle",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kW.prototype,"useFromVendorCtaStyle",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kW.prototype,"useShoppingCollectionCtaStyle",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],kW);
_.F(kW,"ytd-vertical-product-card-renderer",function(){if(N8a!==void 0)return N8a;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return N8a=u},{mode:1});var kNm;var ZX=function(){return _.Q.apply(this,arguments)||this};
_.c(ZX,_.Q);ZX.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.s8),_.N("design:type",Object)],ZX.prototype,"ytdLockupBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ZX.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],ZX);
_.F(ZX,"ytd-grid-movie-renderer",function(){if(kNm!==void 0)return kNm;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return kNm=u},{mode:1});var Z6m;var YW=function(){var u=_.Q.apply(this,arguments)||this;u.rounded=!0;u.itemStyle="small-item";return u};
_.c(YW,_.Q);YW.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var u,K,l,D,d=(K=_.b((u=this.data)==null?void 0:u.buttonCommand,_.w0))==null?void 0:(l=K.item)==null?void 0:(D=l.notificationTextRenderer)==null?void 0:D.successResponseText;d&&_.f6q(this.hostElement,d)}};
_.MN.Object.defineProperties(YW.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?void 0:u.isProductPlaceholder)!==void 0&&((K=this.data)==null?void 0:K.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.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}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],YW.prototype,"rounded",void 0);_.g([_.U(),_.N("design:type",Object)],YW.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],YW.prototype,"itemStyle",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],YW.prototype,"hasPrice",null);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],YW.prototype,"hasPriceReplacementText",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],YW.prototype,"hasAdditionalFeesText",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],YW.prototype,"hasAffiliateDisclaimer",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],YW.prototype,"isProductPlaceholder",null);
_.g([_.U(),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],YW.prototype,"hideOpenInNewIcon",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],YW.prototype,"ariaLabel",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],YW);
_.F(YW,"ytd-merch-shelf-item-renderer",function(){if(Z6m!==void 0)return Z6m;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Z6m=u},{mode:1});var YzS=_.rf(function(u){return _.n("button-card-view-model",{el:_.v1(_.DS(function(){return u.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return u.data().title},
role:"button"},_.n(_.ko,{model:{}}),_.n("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.n("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.n(_.r,{cond:function(){return u.data().image},
then:function(K){return _.n(_.n4,{data:K,alt:function(){var l;return(l=u.data().title)!=null?l:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.n("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return u.data().title})))},"eb");_.S("web_button_view_model_wcw_registration_killswitch")||_.SX(YzS,"button-card-view-model",{props:{data:_.M6}});_.SX(_.rf(function(u){u=_.$U(u,{className:void 0});var K=u.data;u=u.className;var l=_.RZ(function(){return K().onTapCommand},void 0,"NprDr");
return _.n("ytd-shopping-item-card",{class:_.JB("ytdShoppingItemCardHost",u)},_.n(_.I5,{command:l,className:"ytdShoppingItemCardHostLink"},_.n("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.n(_.mo,{data:function(){return K().thumbnailViewModel}},{thumbnailViewModel:function(D){return _.n(_.rL,{data:D.data,
aspectRatio:3})}})),_.n("div",null,_.n("p",{class:"ytdShoppingItemCardHostItemTitle"},_.n(_.qC,{text:function(){return K().itemTitle}})),_.n("p",{class:"ytdShoppingItemCardHostPrice"},_.n(_.qC,{text:function(){return K().priceOrStatus}})))))},"fb"),"ytd-shopping-item-card",{props:{data:_.M6,
className:_.M6}});var Ad2={isAdsVideo:!0},XpH={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},mkH={showPlayerControls:!1,videoPreviewDurationMs:15E3},hIk={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.S("web_shorts_imp_fullwidth_killswitch")};var vk=null,Q1Z={};var j1H="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(" "),Aw={},B8w=(Aw.FEwhat_to_watch="home",Aw.FEhashtag="hashtag",Aw.FEtrending="trending",Aw.FEhistory="history",Aw.SPunlimited="premium",Aw.FEmemberships_and_purchases="paid_memberships",Aw.SPredeem_code="redeem",Aw.SPverify_location="locate",Aw.SPminor_moment="minor_moment",
Aw.FEmini_app_container="mini_app",Aw.FEnews_destination="news",Aw.SPopen_in_app="open_in_app",Aw.FEexplore="explore",Aw.FEsubscriptions="subscriptions",Aw.FEsfv_audio_pivot="sfv_audio_pivot",Aw.FEplaylist_aggregation="playlist_aggregation",Aw);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");_.zA("init");var E9w=function(){},lia=_.rf(function(u){var K=u.data;
var l=u.inlineMetadata;var D=u.aspectRatio;var d=u.scrimStyle;var C=u.className;var W=u.useDefaultStyle;var M=new E9w,q=_.S("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",v=_.RZ(function(){return(W==null?0:W())?q==="SHORTS_LOCKUP_STYLE_SLIM":K().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"gDCMs"),G=_.RZ(function(){return _.Z7(l)||v()||!1},void 0,"x8cr8b"),t=function(){return(d==null?void 0:d())!==void 0?d==null?void 0:d():1},x=_.RZ(function(){return K().belowThumbnailMetadata||
!G()},void 0,"Q84Mmb");
u=_.r_({visibilityCallback:function(A){var h=K().onFirstVisible;A&&h&&_.IT(h)},
showOption:{calledOnce:!0,state:"visible"}});var O=_.v1(),a={};a=_.JB(function(){return v(),"shortsLockupViewModelHostThumbnailContainer"},(a.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Z7(D)===1},a.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Z7(D)===2},a.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!v()},a.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.S("web_shorts_2_by_3_lockups_study")&&
!_.S("desktop_search_enable_two_by_three_shorts_aspect_ratio")},a));
var f,B=function(){if(M){var A;(A=f)==null||n5(A);var h;M.hostElement&&((h=M.data)==null?0:h.inlinePlayerData)&&(f=Cz({mediaRenderer:M,lockupElement:M.hostElement,thumbnailElement:O.value,videoPreviewOpts:hIk}))}};
_.gp(function(){M&&(M.data=K(),B())},"RII9Hf");
var p=_.RZ(function(){return K().thumbnail},void 0,"QlEII"),V=_.RZ(function(){return K().badge},void 0,"ODd68c"),m=_.RZ(function(){return K().onTap},void 0,"lgNBIc"),Z={};
return _.n("ytm-shorts-lockup-view-model",{el:_.v1(function(A){M&&(M.hostElement=A)},B,u),
class:_.JB("shortsLockupViewModelHost",C)},_.n(_.G1,null,_.n(_.I5,{command:m,className:_.JB("shortsLockupViewModelHostEndpoint",(Z.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!x()},Z),"reel-item-endpoint",""),
ariaHidden:function(){return!G()},
tabIndex:function(){return G()?0:-1}},_.n("div",{el:O,
class:a},_.n(_.r,{cond:p,then:function(){return _.n(_.n4,{data:function(){var A;return(A=p==null?void 0:p())!=null?A:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.n(_.r,{cond:G,
then:function(){return _.n(LCB,{data:K,scrimStyle:t,useDefaultStyle:W})}}),_.n(_.mo,{data:V},{badgeViewModel:function(A){return _.n(_.xW,{data:A.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.n(_.r,{cond:function(){return G()&&K().menuOnTap},
then:function(){return _.n(uvw,{data:K,inlineMetadata:!0})}}),_.n(_.r,{cond:x,
then:function(){return _.n(Kns,{data:K,useDefaultStyle:W,inlineMetadata:G})}})))},"gb"),LCB=_.rf(function(u){var K=u.data;
var l=u.scrimStyle;var D=u.useDefaultStyle;var d=_.S("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",C=D&&_.S("web_hide_primary_text_for_pivot_panel"),W=_.RZ(function(){return(D==null?0:D())?d==="SHORTS_LOCKUP_STYLE_SLIM":K().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"cCbMlb");
u={};u=_.JB("shortsLockupViewModelHostInlineMetadata",(u.shortsLockupViewModelHostMetadataRounded=function(){return!W()},u.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(l==null?void 0:l())===3&&!_.S("enable_shorts_lockup_new_scrim")},u.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(l==null?void 0:l())===3&&_.S("enable_shorts_lockup_new_scrim")},u.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(l==null?void 0:l())===2||(l==null?void 0:
l())===4},u.shortsLockupViewModelHostShowOverPlayer=function(){return!0},u),"image-overlay-text");
var M={};return _.n("div",{class:u},_.n("h3",{class:_.JB("shortsLockupViewModelHostMetadataTitle",(M.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(l==null?void 0:l())===4},M)),
"aria-label":function(){return K().accessibilityText}},_.n(_.r,{cond:function(){var q;
return!((q=K().overlayMetadata)==null||!q.primaryText)&&!C},
then:function(){return _.n(_.qC,{text:function(){var q;return(q=K().overlayMetadata)==null?void 0:q.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.n(_.r,{cond:function(){var q;
return(q=K().overlayMetadata)==null?void 0:q.secondaryText},
then:function(){return _.n(D4R,{data:K,scrimStyle:l,className:void 0})}}))},"hb"),Kns=_.rf(function(u){var K=u.data;
var l=u.useDefaultStyle;var D=u.inlineMetadata;var d=_.S("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",C=_.RZ(function(){return(l==null?0:l())?d==="SHORTS_LOCKUP_STYLE_SLIM":K().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"KburAe");
u=_.JB(function(){return C()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var W=_.v1(),M,q=_.p4(function(a){if(_.uC(_.L1(a),W.value,["AVATAR-VIEW-MODEL"]))return!1;var f;(f=M)==null||f.click();return!1}),v=_.RZ(function(){return K().belowThumbnailMetadata||K().overlayMetadata},void 0,"c3tkld"),G=function(){return K().menuOnTap&&!D()},t=function(){var a;
return(a=v())==null?void 0:a.avatar},x={},O={};
return _.n("div",{class:_.JB(u,(x.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!t()},x.shortsLockupViewModelHostOutsideMetadataHasMenu=G,x)),
"on:click":q,el:W},_.n(_.mo,{data:t},{avatarViewModel:function(a){return _.n("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.n(_.Y_,{data:a.data}))}}),_.n("div",null,_.n("h3",{class:_.JB("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(O.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var a,f;
return!((a=v())==null?0:(f=a.primaryText)==null?0:f.content)},O)),
"aria-label":function(){return K().accessibilityText}},_.n(_.I5,{ref:function(a){return void(M=a)},
command:function(){return K().onTap},
className:_.JB("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var a,f;return(a=v())==null?void 0:(f=a.primaryText)==null?void 0:f.content}},_.n(_.r,{cond:function(){var a;
return(a=v())==null?void 0:a.primaryText},
then:function(a){return _.n(_.qC,{text:a,noEndpoints:!0,noStyleRuns:!0})}}))),_.n(_.r,{cond:function(){var a;
return(a=v())==null?void 0:a.secondaryText},
then:function(a){return _.n("div",{class:_.JB("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.n(_.qC,{text:a,noStyleRuns:!0}))}})),_.n(_.r,{cond:G,
then:function(){return _.n(uvw,{data:K,inlineMetadata:!1})}}))},"ib"),D4R=_.rf(function(u){var K=u.data;
var l=u.scrimStyle;u=u.className;var D={};return _.n("div",{class:_.JB((D.shortsLockupViewModelHostMetadataSubhead=function(){return(l==null?void 0:l())!==4},D.shortsLockupViewModelHostMetadataSubheadNew=_.S("enable_shorts_lockup_new_scrim"),D.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(l==null?void 0:l())===4},D),u),
"aria-hidden":"true"},_.n(_.qC,{text:function(){var d;return(d=K().overlayMetadata)==null?void 0:d.secondaryText},
noStyleRuns:!0}))},"jb"),uvw=_.rf(function(u){var K=u.data;
var l=u.inlineMetadata;u={};u=_.JB((u.shortsLockupViewModelHostInlineMetadataMenu=function(){return l()},u.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!l()},u.shortsLockupViewModelHostShowOverPlayer=function(){return!0},u),"image-overlay-text");
return _.n("div",{class:u},_.n($e,{data:function(){return{style:l()?"overlay":"mono",accessibilityLabel:K().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(D){D.preventDefault();D.stopPropagation();var d=_.dY({elementsCommand:K().menuOnTap,forceNewState:!0});if(d==null?0:d.onclick)d.onclick(D)}}},
iconName:"MORE_VERT"}))},"kb");var d4H=_.rf(function(u){var K=u.data;var l=u.inlineMetadata;var D=u.aspectRatio;var d=u.scrimStyle;var C=u.className;var W=u.useDefaultStyle;u=_.RZ(function(){var M=K().entityId;return M?M.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.n("ytm-shorts-lockup-view-model-v2",{class:_.JB("shortsLockupViewModelHost",C)},_.n(_.Oa,{contentId:u,aspectRatio:function(){return(D==null?void 0:D())===1?1:(D==null?void 0:D())===2?2:4}},function(){return _.n(lia,{data:K,
inlineMetadata:l,aspectRatio:D,scrimStyle:d,className:C,useDefaultStyle:W})}))},"lb");_.SX(d4H,"ytm-shorts-lockup-view-model-v2",{props:{data:_.xo,inlineMetadata:_.xo,aspectRatio:_.xo,scrimStyle:_.xo,className:_.xo,useDefaultStyle:_.xo}});var Cdm=16/9*210,Xc=function(){var u=_.Q.apply(this,arguments)||this;u.isExpandableContent=!1;u.hideShelfHeader=!1;u.engagementPanel=!1;u.buttonClasses=["arrow"];u.isSearch=!1;u.disableScrollEventListener=!1;u.containsLockup=!1;u.overrideArrowPositionForProductCard=!1;u.overrideArrowPositionForShoppingItemCard=!1;u.overrideArrowPositionForReelItems=!1;u.overrideArrowPositionForGridMovie=!1;u.overrideArrowPositionToCenter=!1;u.isSearchPostShelf=!1;u.overrideArrowPositionForMixedShelf=!1;u.overrideArrowPositionForMixedShelfShortsOnly=
!1;u.hasBigThumbsReelItems=!1;u.shouldUseMixedListHeight=!1;u.shouldUseShortsListHeight=!1;u.gridVideoWidth=0;u.isSearchVodShelf=!1;u.disableWheelScroll=!1;u.sizing="COMPACT";u.shortsLockupAspectRatio=0;return u};
_.c(Xc,_.Q);_.I=Xc.prototype;
_.I.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]]"}}}}};
_.I.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.S("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.I.computeInitialCountNumber=function(u){if(!u)return 6;var K=u.items.some(function(C){return!!C.topicRecommendationsChipRenderer}),l=u.items.some(function(C){return!!C.displayAdRenderer}),D=this.computeShouldListItemsHaveEqualHeight(u),d=u.items.some(function(C){return!!C.gridPlaylistRenderer});
u=u.items.some(function(C){return!!C.shoppingItemCardViewModel});
return K?9:l?8:d||D?10:u?7:6};
_.I.computeContainsPost=function(u){return!!u&&!!u.items&&u.items.some(function(K){return!!K.postRenderer})};
_.I.computeContainsLockup=function(){if(_.S("web_horizontal_list_lockup_arrow_killswitch"))return!1;var u,K;return(u=this.data)==null?void 0:(K=u.items)==null?void 0:K.some(function(l){return!!l.lockupViewModel})};
_.I.maybeUpdateLockupAspectRatio=function(){var u,K;if(this.computeContainsLockup()&&((u=this.data)==null?0:(K=u.items)==null?0:K.length)){var l;u=BcH((l=this.data.items[0].lockupViewModel)==null?void 0:l.contentType,this.data.force16By9ThumbnailAspectRatio);l=QlZ(u);l=this.computeLockupWidth()/l;_.e8(this.hostElement,{"--yt-horizontal-list-content-height":l+"px"})}};
_.I.computeOverrideArrowPositionForProductCard=function(u){if(this.isExpandableContent)return!1;var K;return!!(u==null?0:(K=u.items)==null?0:K.some(function(l){return!!l.verticalProductCardRenderer}))};
_.I.computeOverrideArrowPositionForShoppingItemCard=function(u){var K;return!!(u==null?0:(K=u.items)==null?0:K.some(function(l){return!!l.shoppingItemCardViewModel}))};
_.I.computeOverrideArrowPositionForReelItemRenderer=function(u){return this.containsReelItemRenderer(u)};
_.I.computeHasBigThumbsReelItems=function(u,K){return u&&this.containsReelItemRenderer(K)};
_.I.computeShouldListItemsHaveEqualHeight=function(u){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(u==null?void 0:u.itemSizeConstraint)};
_.I.computeShouldListItemsHaveShortsHeight=function(u){return this.computeShouldListItemsHaveEqualHeight(u)&&!this.containsGridVideoRenderer(u)};
_.I.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.I.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.I.containsReelItemRenderer=function(u){var K;return!!(u==null?0:(K=u.items)==null?0:K.some(function(l){return!(!l.reelItemRenderer&&!l.shortsLockupViewModel)}))};
_.I.containsGridVideoRenderer=function(u){var K;return!!(u==null?0:(K=u.items)==null?0:K.some(function(l){return!!l.gridVideoRenderer||!!l.lockupViewModel}))};
_.I.computeContainsGridMovieRenderer=function(u){var K;return!!(u==null?0:(K=u.items)==null?0:K.some(function(l){return!!l.gridMovieRenderer}))};
_.I.computeOverrideArrowPositionToCenter=function(u){return this.computeIsSearchPostShelf(u)};
_.I.computeIsSearchPostShelf=function(u){var K;return!!(u==null?0:(K=u.items)==null?0:K.some(function(l){var D,d;return((d=(D=l.postRenderer)==null?void 0:D.surface)!=null?d:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.I.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(u){var K;return!!(u==null?0:(K=u.items)==null?0:K.some(function(l){var D,d,C;return((C=(D=l.backgroundPromoRenderer)==null?void 0:(d=D.style)==null?void 0:d.value)!=null?C:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.I.computeIsSearchVodShelf=function(u,K){return u&&this.containsGridVideoRenderer(K)};
_.I.computeDisableWheelScroll=function(u,K){return this.computeIsSearchVodShelf(u,K)};
_.I.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.I.computeShortsLockupAspectRatio=function(){return 1};
_.I.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.e8(this.hostElement,{"--ytd-reel-item-thumbnail-height":Cdm+"px"})};
Xc.prototype.dataChanged=Xc.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Xc.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.S0.YtdHorizontalListBehavior),_.N("design:type",Object)],Xc.prototype,"ytdHorizontalListBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Xc.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Object)],Xc.prototype,"isExpandableContent",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"hideShelfHeader",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"engagementPanel",void 0);_.g([_.U(),_.N("design:type",Array)],Xc.prototype,"buttonClasses",void 0);_.g([_.U(),_.N("design:type",Object)],Xc.prototype,"isSearch",void 0);
_.g([_.U(),_.N("design:type",Object)],Xc.prototype,"disableScrollEventListener",void 0);_.g([_.U({computed:"computeInitialCountNumber(data)"}),_.N("design:type",Number)],Xc.prototype,"initialCount",void 0);_.g([_.U({computed:"computeContainsPost(data)"}),_.N("design:type",Boolean)],Xc.prototype,"supportComponentResize",void 0);_.g([_.U({computed:"computeContainsPost(data)"}),_.N("design:type",Boolean)],Xc.prototype,"containsPost",void 0);
_.g([_.U({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"containsLockup",void 0);_.g([_.U({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Xc.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.g([_.U({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"overrideArrowPositionForProductCard",void 0);_.g([_.U({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.g([_.U({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"overrideArrowPositionForReelItems",void 0);_.g([_.U({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"overrideArrowPositionForGridMovie",void 0);
_.g([_.U({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"overrideArrowPositionToCenter",void 0);_.g([_.U({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"isSearchPostShelf",void 0);_.g([_.U({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.g([_.U({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.g([_.U({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"hasBigThumbsReelItems",void 0);
_.g([_.U({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"shouldUseMixedListHeight",void 0);_.g([_.U({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"shouldUseShortsListHeight",void 0);_.g([_.U({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"gridVideoWidth",void 0);
_.g([_.U({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"isSearchVodShelf",void 0);_.g([_.U({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.N("design:type",Object)],Xc.prototype,"disableWheelScroll",void 0);_.g([_.U({computed:"computeSizing(isSearch)"}),_.N("design:type",Object)],Xc.prototype,"sizing",void 0);
_.g([_.U({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.N("design:type",Object)],Xc.prototype,"shortsLockupAspectRatio",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xc.prototype,"dataChanged",null);
_.F(Xc,"yt-horizontal-list-renderer",function(){if(HxN===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);HxN=u}u=HxN;return u},{mode:1});var Iiw;var yfs=[10,12,14,16,18,20,24,28,32,36],sIw=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],mj=function(){var u=_.Q.apply(this,arguments)||this;u.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";u.hideOverflow=!1;u.useRoboto=!1;u.fontClass="";u.overflown=!1;u.actionMap={"yt-window-resized":"resize"};return u};
_.c(mj,_.Q);_.I=mj.prototype;
_.I.attached=function(){var u=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();_.W_(this,function(){u.resize()});
if(!_.aj){var K,l,D;(K=document)==null||(l=K.fonts)==null||(D=l.ready)==null||D.then(function(){u.resize()})}};
_.I.dataChanged=function(){this.resize()};
_.I.guideIsExpandedChanged=function(){this.resize()};
_.I.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 u=this.getMaxNumLines(),K=this.getMinFont(),l=this.getMaxFont(),D=this.useRoboto?yfs:sIw;for(D=D.filter(function(C){return C<=l&&C>=K});D.length>1;){var d=Math.floor(D.length/2);
this.updateFontSize(D[d]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=u)D=D.slice(d,D.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>u)D=D.slice(0,d);else break}this.updateFontSize(D[D.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(u)}};
_.I.handleOverflow=function(u){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>u&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",u.toString()))};
_.I.updateFontSize=function(u){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+u;this.textNode.classList.add(this.fontClass)};
_.I.getMaxFont=function(){var u=this.useRoboto?yfs:sIw;u=u[u.length-1];return this.maxFontSize&&this.maxFontSize<=u?this.maxFontSize:u};
_.I.getMinFont=function(){var u=(this.useRoboto?yfs:sIw)[0];return this.minFontSize&&this.minFontSize>=u?this.minFontSize:u};
_.I.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.I.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.I.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.WI(this.text).split("\n").length-1:Infinity};
_.I.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("Hh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
mj.prototype.guideIsExpandedChanged=mj.prototype.guideIsExpandedChanged;mj.prototype.dataChanged=mj.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],mj.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],mj.prototype,"actionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],mj.prototype,"text",void 0);
_.g([_.U(),_.N("design:type",String)],mj.prototype,"fontFamily",void 0);_.g([_.U(),_.N("design:type",Number)],mj.prototype,"maxWidth",void 0);_.g([_.U(),_.N("design:type",Number)],mj.prototype,"maxHeight",void 0);_.g([_.U(),_.N("design:type",Number)],mj.prototype,"maxFontSize",void 0);_.g([_.U(),_.N("design:type",Number)],mj.prototype,"minFontSize",void 0);_.g([_.U(),_.N("design:type",Number)],mj.prototype,"maxLines",void 0);_.g([_.U(),_.N("design:type",Object)],mj.prototype,"hideOverflow",void 0);
_.g([_.U({selector:_.xGn}),_.N("design:type",Boolean)],mj.prototype,"guideIsExpanded",void 0);_.g([_.BF("#container"),_.N("design:type",HTMLElement)],mj.prototype,"containerNode",void 0);_.g([_.BF("#text"),_.N("design:type",HTMLElement)],mj.prototype,"textNode",void 0);_.g([_.wn("text"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mj.prototype,"dataChanged",null);
_.g([_.wn("guideIsExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mj.prototype,"guideIsExpandedChanged",null);_.g([_.T({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],mj);
_.F(mj,"yt-dynamic-sizing-formatted-string",function(){if(Iiw!==void 0)return Iiw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Iiw=u},{mode:1});var ots;_.WnB=function(u){_.uL.call(this,u)};
_.c(_.WnB,_.uL);var Hww=function(u){_.uL.call(this,u)};
_.c(Hww,_.WnB);var hw=function(){return _.Q.apply(this,arguments)||this};
_.c(hw,_.Q);hw.prototype.onTapSuspendedChannel=function(){var u;if((u=this.data)!=null&&u.serviceEndpoint){var K,l;(u=(l=_.b((K=this.data)==null?void 0:K.serviceEndpoint,_.d_))==null?void 0:l.url)?_.Cg(u,void 0,void 0,window.top):(K=new Hww("Did not handle suspended account tap. No appealUrl."),_.Xm(K))}else K=new Hww("Did not handle suspended account tap. No serviceEndpoint."),_.Xm(K)};
hw.prototype.onTap=function(){var u=this,K=_.iT(),l,D=(l=_.pr(K,{veType:7116}))!=null?l:void 0;_.sK(K,{visualElement:D});_.Dv();this.saveRoleText();var d;if((d=this.data)==null?0:d.youtubeSuspended)this.onTapSuspendedChannel();else{var C=!1,W,M;(K=(M=_.b((W=this.data)==null?void 0:W.serviceEndpoint,_.Egw))==null?void 0:M.supportedTokens)&&K.forEach(function(q){if(q.accountSigninToken)if(C=!0,u.onAccountItemTap)u.onAccountItemTap(q.accountSigninToken.signinUrl);else _.Cg(q.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!C){if(W=this.get("serviceEndpoint",this.data))C=!0,this.ytComponentBehavior.resolveCommand(W);C||_.m0(new Hww("Did not handle account switch tap. No token."))}}};
hw.prototype.saveRoleText=function(){if(this.data){var u=this.data,K=u.channelDelegationRole;if(K){var l,D=(l=_.b(u==null?void 0:u.serviceEndpoint,_.Egw))==null?void 0:l.supportedTokens;if(!D){var d,C,W,M;D=(d=_.b(u==null?void 0:u.serviceEndpoint,_.kg))==null?void 0:(C=d.popup)==null?void 0:(W=C.confirmDialogRenderer)==null?void 0:(M=W.confirmButton)==null?void 0:M.buttonRenderer;var q;D=(q=_.b(D==null?void 0:D.command,_.ey))==null?void 0:q.commands;if(!D)return;var v;D=(v=_.b(D[1],_.Egw))==null?
void 0:v.supportedTokens}if(D){q=void 0;v=_.y(D);for(D=v.next();!D.done;D=v.next())if(D=D.value,D.datasyncIdToken){q=D.datasyncIdToken.datasyncIdToken;break}if(q){var G;a:{if(_.F9r()&&(v=_.u6b(q+"::pom"))){v=new kx(v);break a}v=void 0}(G=v)==null||G.set("role_text",K);if((uEZ?uEZ:window.location).href.indexOf("studio")!==-1&&(G=V0r())){v=G.src?(new URL(G.src)).origin:"*";var t;(t=G.contentWindow)==null||t.postMessage({action:"save_pom_role",datasyncId:q,roleText:K},v)}}}}}};
_.MN.Object.defineProperties(hw.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var u,K,l=(u=this.data)==null?void 0:(K=u.accountPhoto)==null?void 0:K.thumbnails;return l&&l.length>0&&(l[0].height===36||l[0].height===48)?l[0].height:40}}});
hw.prototype.onTap=hw.prototype.onTap;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],hw.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],hw.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],hw.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!1}),_.N("design:type",Function)],hw.prototype,"onAccountItemTap",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hw.prototype,"enableRingForActiveAccount",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],hw.prototype,"thumbnailSize",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hw.prototype,"onTap",null);_.g([_.T({is:"ytd-account-item-renderer",disableElementRegistration:!0})],hw);
_.F(hw,"ytd-account-item-renderer",function(){if(ots!==void 0)return ots;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return ots=u},{mode:1});var MIk;var Ea=function(){return _.Q.apply(this,arguments)||this};
_.c(Ea,_.Q);Ea.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.GB().resolve(_.t9).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ea.prototype,"data",void 0);_.g([_.T({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Ea);
_.F(Ea,"ytd-identity-chip-renderer",function(){if(MIk!==void 0)return MIk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return MIk=u},{mode:1});var qEk;var $4S;var nt0;var rfk;var LK=function(){var u=_.Q.apply(this,arguments)||this;u.richItemMinWidth=_.Sg("wn_grid_min_item_width",310);u.isShorts=!1;u.isWatchNext=!1;u.isExploreHub=!1;return u};
_.c(LK,_.Q);_.MN.Object.defineProperties(LK.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var u=[],K=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.e8(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var l;if(((l=this.data)==null?0:l.rows)&&K)for(K*=this.data.rows,l=0;l<K;l++)u.push({});return u}}});
_.g([_.e(_.Ll),_.N("design:type",Object)],LK.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],LK.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.Au,value:3}),_.N("design:type",Number)],LK.prototype,"itemsPerRow",void 0);_.g([_.U({selector:_.tvH,value:6}),_.N("design:type",Number)],LK.prototype,"slimItemsPerRow",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Number)],LK.prototype,"richItemMinWidth",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.Yw}),_.N("design:type",Boolean)],LK.prototype,"miniMode",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],LK.prototype,"isShorts",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],LK.prototype,"isWatchNext",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],LK.prototype,"isExploreHub",void 0);
_.g([_.R("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.N("design:type",Array),_.N("design:paramtypes",[])],LK.prototype,"cardItems",null);_.g([_.T({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],LK);
_.vtC=_.at()(LK,"ytd-ghost-grid-renderer",function(){if(rfk===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);rfk=u}u=rfk;return u},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.SX(_.rf(function(u){var K=_.$U(u,{numberOfComments:3}).numberOfComments,l=_.$U(u,{isInitialLoad:!1}).isInitialLoad,D=_.$U(u,{engagementPanel:!1}).engagementPanel,d=function(){return Math.min(Number(K==null?void 0:K())||20,20)};
return _.n("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.n(_.r,{cond:function(){return!(D==null?0:D())&&(l==null?void 0:l())},
then:function(){return _.n("div",{class:"ytGhostCommentsComments"},_.n("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.n("div",{class:_.JB("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.n("div",{class:_.JB("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.n("div",{class:"ytGhostCommentsGhostCard"},_.n("div",{class:"ytGhostCommentsAvatar"},_.n("div",{class:"ytGhostCommentsCircle"})),_.n("div",{class:"ytGhostCommentsComments"},_.n("div",{class:"ytGhostCommentsMeta"},
_.n("div",{class:_.JB("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.n("div",{class:_.JB("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.n("div",{class:"ytGhostCommentsComments"},_.n(_.p0,{each:function(){return Array((d==null?void 0:d())||3)}},function(){return _.n("div",{class:"ytGhostCommentsGhostCard"},_.n("div",{class:"ytGhostCommentsAvatar"},_.n("div",{class:"ytGhostCommentsCircle"})),_.n("div",{class:"ytGhostCommentsHost"},_.n("div",{class:"ytGhostCommentsMeta"},
_.n("div",{class:_.JB("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.n("div",{class:_.JB("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.n("div",{class:_.JB("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.n("div",{class:"ytGhostCommentsGhostLikeDislike"},_.n("div",{class:_.JB("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.n("div",{class:_.JB("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"mb"),"yt-ghost-comments",{props:{numberOfComments:_.M6,
isInitialLoad:_.M6,engagementPanel:_.M6}});_.E4("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var uq=function(){var u=_.Q.apply(this,arguments)||this;u.isOverridable=!1;u.spinnerActive=!1;u.showButton=!1;u.isCommentsSection=!1;u.engagementPanel=!0;u.isShortsGrid=!1;u.isShortsPage=!1;u.isWatchPage=!1;u.ghostCardExperimentEnabled=_.S("show_ghost_comments_shorts_watch")||_.S("show_ghost_comments_desktop_watch");u.originalShowButton=!1;u.endOfList=!1;return u};
_.c(uq,_.Q);_.I=uq.prototype;_.I.resetIntersectionObserver=function(){var u;(u=this.observer)==null||u.disconnect();this.observer=void 0};
_.I.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var u,K;((u=this.data)==null?void 0:u.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((K=this.data)==null?0:K.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.I.initializeIntersectionObserver=function(){var u=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(K){K=_.y(K);for(var l=K.next();!l.done;l=K.next())l.value.isIntersecting&&(u.triggerContinuation(),u.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.I.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]]"}}}}}};
_.I.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var u;((u=this.data)==null?0:u.continuationEndpoint)&&(u=_.b(this.data.continuationEndpoint,_.C1))&&this.ytdReduxBehavior.dispatch(_.SZ({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:u}}))};
_.I.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.I.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.I.onServiceRequestCompleted=function(u,K){if(!_.S("kevlar_hide_spinner_on_empty_continuation_killswitch")){var l;(l=K.actions)!=null&&l.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.I.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.I.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.I.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.I.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var u=3;if(this.engagementPanel){var K,l,D;u=Math.floor(((((K=this.hostElement)==null?void 0:(l=K.parentElement)==null?void 0:(D=l.parentElement)==null?void 0:D.scrollHeight)||108)-108)/108);u=this.isInitialLoad?Math.max(u,3):3}K=[].concat(_.Am(this.hostElement.querySelectorAll("yt-ghost-comments")));K=_.y(K);for(l=K.next();!l.done;l=K.next())l=l.value,l.numberOfComments=u,l.isInitialLoad=this.isInitialLoad,l.engagementPanel=
this.engagementPanel}};
_.I.detached=function(){this.resetIntersectionObserver()};
_.MN.Object.defineProperties(uq.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.S("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.S("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
uq.prototype.numberOfGhostCommentsChanged=uq.prototype.numberOfGhostCommentsChanged;uq.prototype.continuationTriggerOffsetChanged=uq.prototype.continuationTriggerOffsetChanged;uq.prototype.showButtonChanged=uq.prototype.showButtonChanged;uq.prototype.onYtServiceRequestCompletedForButtonRenderer=uq.prototype.onYtServiceRequestCompletedForButtonRenderer;uq.prototype.onServiceRequestCompleted=uq.prototype.onServiceRequestCompleted;uq.prototype.onYtServiceRequestSentForButtonRenderer=uq.prototype.onYtServiceRequestSentForButtonRenderer;
uq.prototype.observeData=uq.prototype.observeData;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],uq.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],uq.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.s$.YtVisibilityBehavior),_.N("design:type",Object)],uq.prototype,"ytVisibilityBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],uq.prototype,"ytComponentBehavior",void 0);
_.g([_.e(_.Ll),_.N("design:type",Object)],uq.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],uq.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],uq.prototype,"isOverridable",void 0);_.g([_.U(),_.N("design:type",Object)],uq.prototype,"spinnerActive",void 0);_.g([_.U(),_.N("design:type",Object)],uq.prototype,"showButton",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],uq.prototype,"isCommentsSection",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],uq.prototype,"engagementPanel",void 0);_.g([_.U(),_.N("design:type",Object)],uq.prototype,"isShortsGrid",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.btb}),_.N("design:type",Object)],uq.prototype,"isShortsPage",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.mG}),_.N("design:type",Object)],uq.prototype,"isWatchPage",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],uq.prototype,"ghostCardExperimentEnabled",void 0);
_.g([_.U(),_.N("design:type",Number)],uq.prototype,"continuationTriggerOffset",void 0);_.g([_.U(),_.N("design:type",Object)],uq.prototype,"endOfList",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],uq.prototype,"isInitialLoad",void 0);_.g([_.BF("ytd-button-renderer"),_.N("design:type",_.vs)],uq.prototype,"buttonRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],uq.prototype,"buttonOverrides",void 0);
_.g([_.U(),_.R("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.N("design:type",Object),_.N("design:paramtypes",[])],uq.prototype,"isShortsCommentsSection",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uq.prototype,"observeData",null);
_.g([_.PF("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uq.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],uq.prototype,"onServiceRequestCompleted",null);
_.g([_.PF("yt-service-request-completed-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uq.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.g([_.wn("showButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uq.prototype,"showButtonChanged",null);
_.g([_.wn("continuationTriggerOffset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uq.prototype,"continuationTriggerOffsetChanged",null);_.g([_.JU("isInitialLoad","engagementPanel"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uq.prototype,"numberOfGhostCommentsChanged",null);_.g([_.T({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],uq);
_.F(uq,"ytd-continuation-item-renderer",function(){if(nt0!==void 0)return nt0;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return nt0=u},{mode:1});var G0m;var KG=function(){var u=_.Q.apply(this,arguments)||this;u.downloadProgress=0;u.transferState="TRANSFER_STATE_UNKNOWN";u.downloadState="DOWNLOAD_STATE_UNKNOWN";u.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";u.offlineVideoPolicyExpirationTimestamp=0;u.downloadedVideoPlaybackPosition=0;return u};
_.c(KG,_.Q);KG.prototype.dataChanged=function(){var u;this.videoData=_.b((u=this.data)==null?void 0:u.renderer,f3B);this.transferStateChanged()};
KG.prototype.downloadProgressChanged=function(){if(this.entityInfo){var u=Object.assign({},this.videoData),K=t_q(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),l=K.publishedTimeText,D=K.badges;u.shortViewCountText=K.shortViewCountText;u.publishedTimeText=l;u.badges=D;this.set("videoData",u)}};
KG.prototype.transferStateChanged=function(){if(this.entityInfo){var u=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",K=_.pm(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Bi(this.entityInfo.policyEntity),l=Object.assign({},this.videoData),D=t_q(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),d=D.publishedTimeText,C=D.badges;l.shortViewCountText=
D.shortViewCountText;l.publishedTimeText=d;l.badges=C;l.isDisabled=K;l.isWatched=this.downloadedVideoPlaybackPosition>0;l.navigationEndpoint=K?void 0:ceh(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var W;u&&((W=this.videoData)==null?0:W.videoId)&&!_.S("dl_resume_click_killswitch")&&(l.isDisabled=!1,l.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});l.thumbnailOverlays=vxL(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",l)}};
KG.prototype.transferStateChanged=KG.prototype.transferStateChanged;KG.prototype.downloadProgressChanged=KG.prototype.downloadProgressChanged;KG.prototype.dataChanged=KG.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],KG.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],KG.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],KG.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Object)],KG.prototype,"videoData",void 0);_.g([_.U({selector:uv,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],KG.prototype,"downloadProgress",void 0);_.g([_.U(),_.N("design:type",Number)],KG.prototype,"relativeDateReference",void 0);_.g([_.U({selector:_.EV,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],KG.prototype,"transferState",void 0);
_.g([_.U({selector:gi9,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],KG.prototype,"downloadState",void 0);_.g([_.U({selector:e1R,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],KG.prototype,"offlinePolicyAction",void 0);_.g([_.U({selector:R1o,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],KG.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.g([_.U({selector:Kc,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],KG.prototype,"downloadedVideoPlaybackPosition",void 0);_.g([_.U({selector:fGb,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],KG.prototype,"entityInfo",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],KG.prototype,"isDownloading",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KG.prototype,"dataChanged",null);
_.g([_.wn("downloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KG.prototype,"downloadProgressChanged",null);_.g([_.wn("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KG.prototype,"transferStateChanged",null);
_.g([_.T({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],KG);
_.F(KG,"ytd-downloaded-video-grid-video-renderer",function(){if(G0m!==void 0)return G0m;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return G0m=u},{mode:_.zW("kevlar_poly_si_batch_j025")?1:2});var tIs;var lq=function(){};
lq.prototype.resolve=function(u,K){var l=this;return _.H(function(D){return D.yield(l.resolveCommand(u,K),0)})};var x4m,Db;x4m=AIq(function(u){return u.targetId},{shouldPersist:!1});
Db=x4m.updateData;_.SEB=x4m.useUpdatableData;var bwC,OwN;bwC=AIq(function(u){return u.targetId});
OwN=bwC.updateData;_.cfC=bwC.useUpdatableData;var aiw=T8q.bind(null,Db),zWA=T8q.bind(null,OwN);(function(u,K,l){var D=_.b(l==null?void 0:l.updatedRenderer,_.I3N);return D?u({targetId:K},function(){return D}):!1}).bind(null,Db);var dF=function(){};
_.c(dF,lq);dF.prototype.resolveCommand=function(u){var K;return _.H(function(l){K=_.b(u,_.xch);if(!K)return l.return();aiw(K.targetId,K);_.TG(l)})};var CG=function(){var u=_.ii.apply(this,arguments)||this;u.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return u};
_.c(CG,_.ii);_.I=CG.prototype;_.I.configureContinuationPathMap=function(){return{}};
_.I.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.I.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.I.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.I.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.I.handleAppendContinuationItemsAction=function(u){var K=_.b(u,_.jBR);if(this.data&&this.data.targetId&&K&&this.continuationPathMap&&K.targetId===this.data.targetId){var l=GTb(u),D=l&&this.continuationPathMap[l];if(D&&l)if(u=this.get(D,this.data)){a:{for(l=0;l<u.length;l++){var d=u[l],C=void 0,W=!!_.b((C=_.b(d,tS0))==null?void 0:C.content,_.zA0);if(_.b(d,_.rr)||W)break a}l=u.length}D="data."+D;K.continuationItems?l===u.length-1?(this.pop(D),this.push.apply(this,[D].concat(_.Am(K.continuationItems)))):
l===u.length?this.push.apply(this,[D].concat(_.Am(K.continuationItems))):this.splice.apply(this,[D,l,1].concat(_.Am(K.continuationItems))):this.splice(D,l,1);(_.S("web_enable_voting_animation")||_.S("enable_music_web_cairo_voting_animation"))&&_.xs(this.hostElement,"yt-append-continuation-items-action-finished");_.xs(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.hV(new _.wv("append continuation items does not exist",l));else _.hV(new _.wv("append continuation path does not exist",
l))}};
_.I.handleReloadContinuationItemsCommand=function(u){var K=_.b(u,_.xch);if(this.data&&K){if(_.S("web_explore_hub")||_.S("web_client_explore_hub")||_.S("web_explore_hub_on_hover")||_.S("web_client_explore_hub_on_hover"))try{_.GB().resolve(dF).resolveCommand(u)}catch(C){}if(this.data.targetId&&this.continuationPathMap&&K.targetId===this.data.targetId&&(!_.S("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||K.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var l,D=
(l=K.slot)==null?void 0:l.replace("RELOAD_CONTINUATION_SLOT_","");l=(u=GTb(u)+"-"+(D==null?void 0:D.toLowerCase()))&&this.continuationPathMap[u];if(!l||!u||!D)_.hV(new _.wv("reload continuation path does not exist",u));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(K)){if(K.replaceWithFirstItem){var d;this.set("data."+l,((d=K.continuationItems)==null?0:d.length)?K.continuationItems[0]:{})}else this.set("data."+l,K.continuationItems?K.continuationItems:
[]);this.continuationIsReloading=!1;_.xs(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.I.handleShowReloadUiCommand=function(u){u=_.b(u,me2);var K;((K=this.data)==null?0:K.targetId)&&(u==null?0:u.targetId)&&u.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
CG.prototype.observeData=CG.prototype.observeData;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],CG.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],CG.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],CG.prototype,"data",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],CG.prototype,"continuationIsReloading",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CG.prototype,"observeData",null);_.g([_.TQ()],CG);_.Ir=[_.Co.YtComponentBehavior,_.bf.YtActionHandlerBehavior,CG.prototype];_.yr={};_.yr.YtNextContinuationBehavior=[_.v2.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",_.Ql(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Ql(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(u,K){u.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,K,{}):(u={locationRetrieved:function(l){this.makeNextContinuationRequest_(l,K,{})}.bind(this)},_.xs(this.hostElement,"yt-retrieve-location",u))},
makeNextContinuationRequest_:function(u,K,l){_.Xi("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();u=K(u);var D;this.canUseContextualNetworkManager_()&&(D=this.getNetworkManager());D||(D=_.GB().resolve(_.XQ));K=_.ow.instance;if(_.E3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&K){D=_.qu([u.startsWith("/")?u.substr(1):u]);var d,C;l=_.K7(K,{},D,l==null?void 0:(d=l.context)==null?void 0:(C=d.clickTracking)==null?void 0:C.clickTrackingParams).then(function(W){return{response:W}})}else l=
this.nextContinuation.usePost?D.postData(u,l):D.fetchData(u);
l.then(this.updateNextContinuationData_.bind(this,u));this.pendingContinuationRequest_=l;this.startListeningForNavigate_()},
updateNextContinuationData_:function(u,K){var l=this;_.Xi("ncl");this.pendingContinuationRequest_=void 0;if(K){var D={};this.nextContinuation&&(D=this.nextContinuation);if(K.response&&K.response.continuationContents&&K.response.continuationContents[D.continuationType]){u=K.response.continuationContents[D.continuationType];var d=D.header||"data.header",C=u[D.responseHeaderKey||"header"];C&&this.set(d,C);d=D.contentsArray||"data.contents";C=this.getContents_(u,D.responseContentsKey||"contents")||[];
this.pathExists_(d)?(C.unshift(d),this.push.apply(this,C)):this.set(d,C);C&&(wpH(_.iT(),K.response,this.hostElement,function(W){_.Sy(l.hostElement,"yt-store-grafted-ve-action",[W])}),_.xs(this.hostElement,"yt-next-continuation-data-updated",{continuationData:K,
page:this,contentsArray:d}));this.set(D.continuationsArray||"data.continuations",u[D.responseContinuationsKey||"continuations"]||[])}else K.reload?_.hV(new _.wv("Reloading from continuation is unsupported")):K.responseContext&&K.responseContext.errors||(delete K.xsrf_token,delete K.timing,delete K.endpoint,delete K.csn,K.responseContext&&delete K.responseContext.serviceTrackingParams,d={request:_.Wv(u,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(K).sort()},K.response&&(d.responseContentKeys=
Object.keys(K.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(d.continuationType=this.nextContinuation.continuationType.substr(0,256)),K=new _.wv("Malformed continuation",d),u.indexOf("/comment_service_ajax")==0?_.hV(K):_.Xm(K)),this.set(D.continuationsArray||"data.continuations",[])}else _.m0(new _.wv("Missing continuation response",u))},
getContents_:function(u,K){K=K.split(".");return _.k$.getValueByKeys(u,K)},
pathExists_:function(u){var K=this;u=u.toString().split(".");for(var l=0;l<u.length;l++)if(K=K[u[l]],K===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var eWB;var RWN;var sh=function(){var u=_.Q.apply(this,arguments)||this;u.triggered_=!1;return u};
_.c(sh,_.Q);_.I=sh.prototype;_.I.attached=function(){this.maybeTriggerAutoload()};
_.I.detached=function(){this.hasBeenTriggered_=!1};
_.I.onPrescanVisible=function(){this.onShow()};
_.I.onShow=function(){this.showButton||this.trigger()};
_.I.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.xs(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.I.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.I.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.I.computeLabel_=function(u,K){return u===void 0?null:u.label||!K?u.label:this.showMoreText_};
_.I.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.I.getContinuationUrl=function(u){var K={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(K.itct=this.data.clickTrackingParams);return _.Hv(u,K)};
_.I.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
sh.prototype.showButtonChanged_=sh.prototype.showButtonChanged_;sh.prototype.observeData_=sh.prototype.observeData_;_.g([_.e(_.s$.YtVisibilityBehavior),_.N("design:type",Object)],sh.prototype,"ytVisibilityBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],sh.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],sh.prototype,"showButton",void 0);
_.g([_.U({value:!1}),_.N("design:type",Boolean)],sh.prototype,"showIcon",void 0);_.g([_.U({computed:"computeLabel_(data, showButton)"}),_.N("design:type",Object)],sh.prototype,"label",void 0);_.g([_.U({value:_.o7(_.QQ("SHOW_MORE",void 0,"Show More"))}),_.N("design:type",Object)],sh.prototype,"showMoreText_",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],sh.prototype,"spinnerActive_",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],sh.prototype,"hasBeenTriggered_",void 0);
_.g([_.U({value:void 0}),_.N("design:type",String)],sh.prototype,"observeVisibleOption",void 0);_.g([_.U({value:void 0}),_.N("design:type",String)],sh.prototype,"observeHiddenOption",void 0);_.g([_.U({value:"observe_once"}),_.N("design:type",Object)],sh.prototype,"observePrescanOption",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sh.prototype,"observeData_",null);
_.g([_.JU("showButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sh.prototype,"showButtonChanged_",null);_.g([_.E9({is:"yt-next-continuation",disableElementRegistration:!0})],sh);
_.F(sh,"yt-next-continuation",function(){if(RWN===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;eWB===void 0&&(eWB=document.createElement("template"));var D=eWB;l.call(K,D.content.cloneNode(!0),u.content.firstChild);RWN=u}u=RWN;return u},{mode:2});var U4k;var fik;var or=function(){return _.Q.apply(this,arguments)||this};
_.c(or,_.Q);or.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],or.prototype,"data",void 0);_.g([_.E9({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],or);
_.F(or,"yt-music-pass-small-feature-info-renderer",function(){if(fik===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;U4k===void 0&&(U4k=document.createElement("template"));var D=U4k;l.call(K,D.content.cloneNode(!0),u.content.firstChild);fik=u}u=fik;return u},{mode:2});_.E4("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Wj=function(){var u=_.Q.apply(this,arguments)||this;u.isCollapsible=!1;u.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return u};
_.c(Wj,_.Q);_.I=Wj.prototype;_.I.computeIsCollapsible=function(u){return!!(((u==null?0:u.showMoreText)||(u==null?0:u.visibleRowCount))&&(u==null?0:u.isCollapsible))};
_.I.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"}}}};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.I.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.I.onIronResize=function(){var u=this;_.It(this,"updateGridInitItems",function(){u.maybeUpdateInitialItemsDisplayed()})};
_.I.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var u=this.getVisibleWidth();u!==0&&(u=Math.floor(u/214)*(this.data.visibleRowCount||2),u!==this.initialCount&&(this.initialCount=u,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.I.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.I.computeExpandVisible=function(u,K,l,D){return u&&K&&l&&!!D&&!!D.showMoreText};
_.I.computeShowMoreButton=function(u){return{text:u,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.I.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.I.initCollapsed=function(){var u=this;this.ytLazyListBehavior.canShowMore=!1;var K;(this.collapsed=!((K=this.data)==null||!K.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.W_(this,function(){_.bI(u.hostElement,"yt-refit-popups-action")})};
_.I.fillRestIfNotCollapsible=function(){var u=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!u||this.ytLazyListBehavior.fillRemainingListItems()};
_.I.computeViewAllHidden=function(u,K){return u||!K.viewAllEndpoint};
Wj.prototype.fillRestIfNotCollapsible=Wj.prototype.fillRestIfNotCollapsible;Wj.prototype.initCollapsed=Wj.prototype.initCollapsed;Wj.prototype.onIronResize=Wj.prototype.onIronResize;Wj.prototype.persistentGuideChanged=Wj.prototype.persistentGuideChanged;_.g([_.e(_.Ae),_.N("design:type",Object)],Wj.prototype,"ironResizableBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.xR.YtLazyListBehavior),_.N("design:type",Object)],Wj.prototype,"ytLazyListBehavior",void 0);_.g([_.e(_.yr.YtNextContinuationBehavior),_.N("design:type",Object)],Wj.prototype,"ytNextContinuationBehavior",void 0);_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Wj.prototype,"ytdGuideStateAwareBehavior",void 0);
_.g([_.e(_.Ir),_.N("design:type",Object)],Wj.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Wj.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],Wj.prototype,"collapsed",void 0);_.g([_.U(),_.N("design:type",Number)],Wj.prototype,"initialCount",void 0);_.g([_.U({computed:"computeShowMoreButton(data.showMoreText)"}),_.N("design:type",Object)],Wj.prototype,"showMoreButton",void 0);
_.g([_.U({computed:"computeIsCollapsible(data)"}),_.N("design:type",Object)],Wj.prototype,"isCollapsible",void 0);_.g([_.BF("#items"),_.N("design:type",HTMLElement)],Wj.prototype,"items",void 0);_.g([_.wn("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wj.prototype,"persistentGuideChanged",null);_.g([_.PF("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wj.prototype,"onIronResize",null);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wj.prototype,"initCollapsed",null);_.g([_.wn("canShowMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wj.prototype,"fillRestIfNotCollapsible",null);_.g([_.T({is:"ytd-grid-renderer",disableElementRegistration:!0})],Wj);
_.F(Wj,"ytd-grid-renderer",function(){if(tIs!==void 0)return tIs;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return tIs=u},{mode:_.zW("kevlar_poly_si_batch_j025")?1:2});var Hj=function(){return _.Q.apply(this,arguments)||this};
_.c(Hj,_.Q);
Hj.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"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Hj.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Hj.prototype,"data",void 0);_.g([_.T({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Hj);
_.F(Hj,"ytd-carousel-ad-renderer",function(){if($4S!==void 0)return $4S;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return $4S=u},{mode:1});var QIa;var Md=function(){return _.Q.apply(this,arguments)||this};
_.c(Md,_.Q);_.I=Md.prototype;_.I.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"}}}};
_.I.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Md.JSC$15243_CLICK_LOCATION_ID_MAP))};
_.I.onSitelinkTap=function(u){u.stopPropagation();var K,l,D=u==null?void 0:(K=u.model)==null?void 0:(l=K.item)==null?void 0:l.onTap;D&&this.ytSparklesClickLocationBehavior.handleClick(D,u,!1)};
_.I.onTap=function(u){var K=this.data&&this.data.content&&this.data.content.navigationEndpoint;K&&this.ytSparklesClickLocationBehavior.handleClick(K,u,!1)};
_.I.sendImpression=function(){if(this.data&&this.data.content)for(var u=_.y(this.data.content.impressionEndpoints||[]),K=u.next();!K.done;K=u.next()){K=_.y(K.value.loggingUrls||[]);for(var l=K.next();!l.done;l=K.next())l=l.value,l.baseUrl&&IL(l.baseUrl,l.attributionSrcMode)}};
Md.prototype.onTap=Md.prototype.onTap;Md.prototype.dataChanged=Md.prototype.dataChanged;Md.JSC$15243_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"]]);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Md.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.tA.YtSparklesClickLocationBehavior),_.N("design:type",Object)],Md.prototype,"ytSparklesClickLocationBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Md.prototype,"data",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Md.prototype,"dataChanged",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Md.prototype,"onTap",null);_.g([_.T({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Md);
_.F(Md,"ytd-promoted-sparkles-text-search-renderer",function(){if(QIa!==void 0)return QIa;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return QIa=u},{mode:1});var Pda;var qd=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-mute-ad-action":"handleMuteAd"};return u};
_.c(qd,_.Q);_.I=qd.prototype;
_.I.configureRendererStamper=function(){return{"data.menu":{id:_.S("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]]"}}}}}};
_.I.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.I.computeHasAdBadge=function(u){return!(u==null||!u.adBadge)};
_.I.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",qd.JSC$15252_DEFAULT_AD_BADGE_RENDERER),_.cF(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,qd.JSC$15252_CLICK_LOCATION_ID_MAP))};
_.I.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var u;(((u=this.data)==null?void 0:u.impressionCommands)||[]).forEach(function(K){K=_.y(K.loggingUrls||[]);for(var l=K.next();!l.done;l=K.next())l=l.value,l.baseUrl&&IL(l.baseUrl,l.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.I.onTap=function(u){var K,l=(K=this.data)==null?void 0:K.navigationEndpoint,D;(K=(D=this.data)==null?void 0:D.thumbnailNavigationEndpoint)&&_.vJ(_.WF(u),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(K,u,!1):l&&this.ytSparklesClickLocationBehavior.handleClick(l,u,!1)};
_.I.handleMuteAd=function(){this.collapsed=!0};
_.I.attached=function(){var u=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&u.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.MN.Object.defineProperties(qd.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var u;return!(((u=this.data)==null?void 0:u.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var u;return!(((u=this.data)==null?void 0:u.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.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}}});
qd.prototype.dataChanged=qd.prototype.dataChanged;
qd.JSC$15252_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"]]);
qd.JSC$15252_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.QQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],qd.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],qd.prototype,"ytRendererBehavior",void 0);_.g([_.e(Ee),_.N("design:type",Object)],qd.prototype,"ytdActiveViewBehavior",void 0);
_.g([_.e([_.bf.YtActionHandlerBehavior]),_.N("design:type",Object)],qd.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.tA.YtSparklesClickLocationBehavior),_.N("design:type",Object)],qd.prototype,"ytSparklesClickLocationBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],qd.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],qd.prototype,"collapsed",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],qd.prototype,"useBiggerThumbs",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.bZ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],qd.prototype,"biggerThumbsStyle",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.S("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.N("design:type",Boolean)],qd.prototype,"fixAlignmentSmallScreens",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs_square")}}),
_.N("design:type",Boolean)],qd.prototype,"useBiggerThumbsSquare",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data.mediaHoverOverlay"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qd.prototype,"hideHoverOverlay",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qd.prototype,"webSearchLayout",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qd.prototype,"webSearchLayoutLandscape",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qd.prototype,"webSearchLayoutSquare",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qd.prototype,"sparklesCtaNoBackground",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.actionButton"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qd.prototype,"hideActionButton",null);_.g([_.U({computed:"computeButtonOverride(uiUpdate)"}),_.N("design:type",Object)],qd.prototype,"buttonOverride",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.N("design:type",Boolean)],qd.prototype,"hasNewAdBadge",void 0);_.g([_.R("data.promotedSparklesWebStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qd.prototype,"useRoundedBadge",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qd.prototype,"dataChanged",null);_.g([_.T({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],qd);
_.F(qd,"ytd-promoted-sparkles-web-renderer",function(){if(Pda!==void 0)return Pda;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Pda=u},{mode:1});var Jfw;var $B=function(){var u=_.Q.apply(this,arguments)||this;u.isInlinePreviewTriggered=!1;u.enableMonoStyle=_.S("enable_default_mono_cta_migration_web_client");return u};
_.c($B,_.Q);_.I=$B.prototype;_.I.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]]"}}}}}};
_.I.computeShowCta=function(u){return!(u==null||!u.ctaRenderer)};
_.I.onCtaClick=function(){var u,K,l,D=(u=this.data)==null?void 0:(K=u.ctaRenderer)==null?void 0:(l=K.buttonRenderer)==null?void 0:l.command;D&&this.ytComponentBehavior.resolveCommand(D)};
_.I.onWatchButtonClick=function(){var u,K,l,D=(u=this.data)==null?void 0:(K=u.watchButtonRenderer)==null?void 0:(l=K.buttonRenderer)==null?void 0:l.command;D&&this.ytComponentBehavior.resolveCommand(D)};
_.I.onTap=function(){};
_.I.dataChanged=function(){if(this.data){var u;_.S("enable_inline_muted_playback_on_web_search")&&((u=this.data)==null?0:u.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",$B.JSC$15256_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",$B.JSC$15256_DEFAULT_CLICK_LOCATION_BEHAVIOR,$B.JSC$15256_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(u=this.thumbnail.getElementsByTagName("a"),u.length>0&&(u=u.namedItem("thumbnail"))&&u.removeAttribute("href"))}};
_.I.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var u=_.y(this.data.impressionUrls),K=u.next();!K.done;K=u.next())K=K.value,lpy(K,dEy(K));this.data.impressionsFired=!0}};
_.I.maybeComputeHref=function(){return null};
_.I.computeIsShortDR=function(u){return!(u==null||!u.watchButtonRenderer)&&!(u==null||!u.ctaRenderer)&&!!this.enableShortDR};
_.I.computeIsNewUiOrShortDr=function(u){return!!this.enableUiUpdate||this.computeIsShortDR(u)};
_.I.computeIsNewUiAndNotShortDr=function(u){return!!this.enableUiUpdate&&!this.computeIsShortDR(u)};
_.I.computeHideAvatar=function(u){return!((u==null?0:u.channelThumbnail)&&this.computeIsNewUiOrShortDr(u))};
_.I.onClick=function(u){var K,l=(K=this.data)==null?void 0:K.navigationEndpoint;if(this.enableShortDR&&l&&(_.b(l,_.oy)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(l,u,!!_.b(l,_.oy)),u.stopPropagation();else if(l&&_.b(l,_.oy))this.ytSparklesClickLocationBehavior.handleClick(l,u,!0),u.stopPropagation();else if(l){var D,d;((D=this.data)==null?0:D.navigationEndpoint)&&((d=this.data)==null?0:d.adPlaybackContextParams)&&ZeZ(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(l)}};
_.I.computeButtonOverride=function(u){if(this.computeIsNewUiOrShortDr(u))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.I.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.I.onThumbnailContainerClick=function(u){this.onClick(u)};
_.I.computeThumbnailWidth=function(u,K){return u?K==="MASSIVE"?600:K==="BIG"?500:K==="MEDIUM"?450:420:360};
_.I.attached=function(){var u=this,K;_.S("enable_inline_muted_playback_on_web_search")&&((K=this.data)==null?0:K.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&u.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.detached=function(){var u;_.S("enable_inline_muted_playback_on_web_search")&&((u=this.data)==null?0:u.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15257_inlinePreviewHoverListener=Cz({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:Ad2})};
_.I.clearInlinePreviewHoverListeners=function(){var u;(u=this.JSC$15257_inlinePreviewHoverListener)==null||n5(u)};
$B.prototype.dataChanged=$B.prototype.dataChanged;$B.prototype.onTap=$B.prototype.onTap;$B.JSC$15256_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.QQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};$B.JSC$15256_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
$B.JSC$15256_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"}];_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],$B.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.g([_.e(Ee),_.N("design:type",Object)],$B.prototype,"ytdActiveViewBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],$B.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.tA.YtSparklesClickLocationBehavior),_.N("design:type",Object)],$B.prototype,"ytSparklesClickLocationBehavior",void 0);
_.g([_.BF("#main-container"),_.N("design:type",HTMLElement)],$B.prototype,"mainContainer",void 0);_.g([_.U(),_.N("design:type",Object)],$B.prototype,"isInlinePreviewTriggered",void 0);_.g([_.U(),_.N("design:type",Object)],$B.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],$B.prototype,"useBiggerThumbs",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.S("enable_video_display_compact_button_group_for_desktop_search")}}),
_.N("design:type",Boolean)],$B.prototype,"enableShortDR",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.S("enable_vac_ui_update_for_desktop_search")}}),
_.N("design:type",Boolean)],$B.prototype,"enableUiUpdate",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.bZ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],$B.prototype,"biggerThumbsStyle",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.N("design:type",Boolean)],$B.prototype,"showCta",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.N("design:type",Boolean)],$B.prototype,"isShortDr",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.N("design:type",Boolean)],$B.prototype,"isShortDrOrNewUi",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.N("design:type",Boolean)],$B.prototype,"isNewUiAndNotShortDr",void 0);_.g([_.U({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],$B.prototype,"buttonOverride",void 0);_.g([_.U({computed:"computeSecondaryButtonOverride(data)"}),_.N("design:type",Object)],$B.prototype,"secondaryButtonOverride",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$B.prototype,"enableMonoStyle",void 0);
_.g([_.BF("ytd-thumbnail"),_.N("design:type",HTMLElement)],$B.prototype,"thumbnail",void 0);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$B.prototype,"onTap",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$B.prototype,"dataChanged",null);_.g([_.T({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],$B);
_.F($B,"ytd-promoted-video-renderer",function(){if(Jfw!==void 0)return Jfw;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Jfw=u},{mode:1});var jIm;var nG=function(){var u=_.Q.apply(this,arguments)||this;u.useRoundedBadge=!0;u.sitelinkIds=[];return u};
_.c(nG,_.Q);_.I=nG.prototype;
_.I.configureRendererStamper=function(){return{"data.menu":{id:_.S("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]]"}}}}}};
_.I.dataChanged=function(){var u;(u=this.data)!=null&&u.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,nG.JSC$15262_CLICK_LOCATION_ID_MAP)};
_.I.onTap=function(u){var K,l=(K=this.data)==null?void 0:K.navigationCommand;l&&!_.vJ(_.WF(u),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(l,u,!1)};
_.I.onSitelinkTap=function(u){var K,l,D=u==null?void 0:(K=u.model)==null?void 0:(l=K.item)==null?void 0:l.onTap;D&&this.ytSparklesClickLocationBehavior.handleClick(D,u,!1)};
_.I.configureSitelinkClickTargets=function(){var u=this,K,l,D=(K=this.data)==null?void 0:(l=K.clickLocationTargets)==null?void 0:l.find(function(d){return d.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
D&&_.bi(this.hostElement).querySelectorAll(".sitelink").forEach(function(d){_.cF(d,"yt-simple-endpoint",!0);u.sitelinkIds.push(d.id);var C,W;(C=u.ytSparklesClickLocationBehavior)==null||(W=C.clickTargetMap)==null||W.set(d.id,D)})};
_.I.sendImpression=function(){var u,K,l=((u=this.data)==null?void 0:(K=u.impressionCommand)==null?void 0:K.loggingUrls)||[];u=_.y(l);for(K=u.next();!K.done;K=u.next())K=K.value,K.baseUrl&&IL(K.baseUrl,K.attributionSrcMode)};
_.I.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.MN.Object.defineProperties(nG.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
nG.prototype.onTap=nG.prototype.onTap;nG.prototype.dataChanged=nG.prototype.dataChanged;nG.JSC$15262_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"]]);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],nG.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],nG.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.tA.YtSparklesClickLocationBehavior),_.N("design:type",Object)],nG.prototype,"ytSparklesClickLocationBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],nG.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],nG.prototype,"showFavicon",null);_.g([_.U({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],nG.prototype,"useBiggerThumbs",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.bZ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],nG.prototype,"biggerThumbsStyle",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.S("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.N("design:type",Boolean)],nG.prototype,"enableThumbnailScalingFix",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nG.prototype,"dataChanged",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],nG.prototype,"onTap",null);_.g([_.T({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],nG);
_.F(nG,"ytd-text-image-no-button-layout-renderer",function(){if(jIm!==void 0)return jIm;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return jIm=u},{mode:_.zW("kevlar_poly_si_batch_j028")?1:2});var BGw;var rF=function(){var u=_.Q.apply(this,arguments)||this;u.isInlinePlaybackState=!1;u.uiUpdate=_.S("web_modern_buttons");u.hideCta=_.S("hide_cta_for_home_web_video_ads");u.noBottomMargin=!1;u.animateInTimeStamp=_.Sg("hide_cta_for_home_web_video_ads_animate_in_time");u.animateInCta=!1;u.isHovered=!1;u.enableMonoStyle=_.S("enable_default_mono_cta_migration_web_client");u.player=null;u.JSC$15269_playerEvents=new Map;u.JSC$15269_preventProgressSaveTimer=null;u.delayedCtaJobId=null;return u};
_.c(rF,_.Q);_.I=rF.prototype;_.I.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]]"}}}}}};
_.I.attached=function(){this.JSC$15269_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15269_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.S("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.I.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15269_playerEvents)};
_.I.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",rF.JSC$15268_DEFAULT_CLICK_LOCATION_BEHAVIOR,rF.JSC$15268_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.I.hoverChanged=function(){var u=this;this.delayedCtaJobId&&(_.YL.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.S("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.Vo(_.YL,function(){u.buttonContainer.classList.add("show-delayed-buttons")},_.Sg("delayed_cta_on_web_delay_milliseconds")))};
_.I.setPlayer=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1)return(K=_.bI(u.hostElement,"yt-get-inline-preview-player-action"))&&K[0]?l.yield(K[0].getPlayerPromise(),3):l.jumpTo(0);u.player=l.yieldResult;u.ytPlayerListenerBehavior.listenToPlayerEvents(u.player,u.JSC$15269_playerEvents);_.TG(l)})};
_.I.onPlaybackStart=function(){var u=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15269_preventProgressSaveTimer=_.zH(_.YL,function(){u.JSC$15269_preventProgressSaveTimer=null},1E4))};
_.I.onVideoProgress=function(u){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&u>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.I.resetPreventProgressSaveTimer=function(){_.YL.cancelJob(this.JSC$15269_preventProgressSaveTimer);this.JSC$15269_preventProgressSaveTimer=null};
_.I.getSimpleString=function(u){return _.WI(u)};
_.I.onClick=function(u){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var K,l=(K=this.data)==null?void 0:K.navigationEndpoint,D;K=(D=this.data)==null?void 0:D.channelEndpoint;var d,C;(D=(C=_.b((d=this.data)==null?void 0:d.adCtaButton,_.lF))==null?void 0:C.command)&&_.vJ(_.WF(u),this.hostElement,["call-to-action"])?_.S("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(D,u,!1):K&&_.vJ(_.WF(u),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(K,u,!1):!_.vJ(_.WF(u),this.hostElement,["secondary-button"])&&l&&(_.S("enable_short_dr_for_desktop_launchable")?(d=!!_.b(l,_.oy),this.isInlinePlaybackState&&d&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(l,u,d)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(l,u,!0)))}};
_.I.updateWatchEndpointStartTime=function(){var u,K;this.player&&((u=this.data)==null?0:u.inlinePlaybackEndpoint)&&((K=this.data)==null?0:K.navigationEndpoint)&&!this.JSC$15269_preventProgressSaveTimer&&(u=Math.floor(this.player.getCurrentTime()),_.b(this.data.navigationEndpoint,_.oy).startTimeSeconds=u,_.b(this.data.inlinePlaybackEndpoint,_.oy).startTimeSeconds=u)};
_.I.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.I.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.MN.Object.defineProperties(rF.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.S("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var u,K;return!((u=this.data)==null||!u.watchButton)&&!((K=this.data)==null||!K.adCtaButton)}}});
rF.prototype.hoverChanged=rF.prototype.hoverChanged;rF.prototype.dataChanged=rF.prototype.dataChanged;
rF.JSC$15268_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"]]);
rF.JSC$15268_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"}];
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],rF.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],rF.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.tA.YtSparklesClickLocationBehavior),_.N("design:type",Object)],rF.prototype,"ytSparklesClickLocationBehavior",void 0);
_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",_.HB)],rF.prototype,"ytPlayerListenerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],rF.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],rF.prototype,"isInlinePlaybackState",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],rF.prototype,"miniMode",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],rF.prototype,"uiUpdate",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],rF.prototype,"hideCta",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],rF.prototype,"noBottomMargin",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],rF.prototype,"animateInCta",void 0);_.g([_.U({computed:"computeButtonOverride(uiUpdate)"}),_.N("design:type",Object)],rF.prototype,"buttonOverride",void 0);
_.g([_.U({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.N("design:type",Object)],rF.prototype,"secondaryButtonOverride",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],rF.prototype,"isHovered",void 0);_.g([_.BF("#button-container"),_.N("design:type",HTMLElement)],rF.prototype,"buttonContainer",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],rF.prototype,"typographyBump",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("typographyBump"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rF.prototype,"typographyBumpV2",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],rF.prototype,"enableMonoStyle",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rF.prototype,"dataChanged",null);
_.g([_.JU("isHovered"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rF.prototype,"hoverChanged",null);_.g([_.R("data"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rF.prototype,"isButtonGroup",null);_.g([_.T({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],rF);
_.F(rF,"ytd-ad-inline-playback-meta-block",function(){if(BGw!==void 0)return BGw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return BGw=u},{mode:_.zW("kevlar_poly_si_batch_j065")?1:2});var pqs;var vj=function(){var u=_.Q.apply(this,arguments)||this;u.noBottomMargin=!1;u.isInlinePreviewTriggered=!1;u.JSC$15274_activeViewMeasurementDataResolver=_.MX();return u};
_.c(vj,_.Q);_.I=vj.prototype;_.I.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.I.attached=function(){var u=this;this.updateInlinePreviewHoverListeners();this.JSC$15274_activeViewMeasurementDataResolver.promise.then(function(K){u.ytdActiveViewBehavior.enableActiveViewMeasurement(K,15)});
_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&u.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.detached=function(){this.clearInlinePreviewHoverListeners();_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15274_inlinePreviewHoverListener=Cz({mediaRenderer:this,lockupElement:this.JSC$15274_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Ad2})};
_.I.clearInlinePreviewHoverListeners=function(){var u;(u=this.JSC$15274_inlinePreviewHoverListener)==null||n5(u)};
_.I.onDataChanged=function(){var u;((u=this.data)==null?0:u.activeView)&&this.JSC$15274_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",vj.JSC$15273_DEFAULT_CLICK_LOCATION_BEHAVIOR,vj.JSC$15273_CLICK_LOCATION_ID_MAP);this.thumbnail&&(u=this.thumbnail.getElementsByTagName("a"),u.length>0&&(u=u.namedItem("thumbnail"))&&u.removeAttribute("href"));var K;if((K=this.data)==
null?0:K.forceImpAutoplay){var l;(l=this.JSC$15274_inlinePreviewHoverListener)==null||GXr(l)}};
_.I.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.I.onThumbnailContainerClick=function(u){if(this.data&&this.data.navigationEndpoint){var K,l=(K=this.data)==null?void 0:K.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(l,u,!!_.b(l,_.oy));u.stopPropagation()}};
_.I.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.I.impressionLog=function(){var u=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var K,l,D=(l=_.b((K=this.data)==null?void 0:K.onImpression,_.ey))==null?void 0:l.commands;D&&(D.forEach(function(d){d.clickTrackingParams&&delete d.clickTrackingParams;u.ytComponentBehavior.resolveCommand(d)}),this.data.impressionsFired=!0)}};
_.MN.Object.defineProperties(vj.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.JSC$15274_inlinePreviewHoverListener)==null?0:Es(u))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
vj.prototype.onTypographyBumpChanged=vj.prototype.onTypographyBumpChanged;vj.prototype.onDataChanged=vj.prototype.onDataChanged;vj.JSC$15273_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);vj.JSC$15273_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"}];
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],vj.prototype,"ytComponentBehavior",void 0);_.g([_.e(Ee),_.N("design:type",Object)],vj.prototype,"ytdActiveViewBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],vj.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],vj.prototype,"ytdDismissibleItemBehavior",void 0);
_.g([_.e(_.s8),_.N("design:type",Object)],vj.prototype,"ytdLockupBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],vj.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.tA.YtSparklesClickLocationBehavior),_.N("design:type",Object)],vj.prototype,"ytSparklesClickLocationBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],vj.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],vj.prototype,"noBottomMargin",void 0);
_.g([_.U(),_.N("design:type",Object)],vj.prototype,"isInlinePreviewTriggered",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.Yw}),_.N("design:type",Boolean)],vj.prototype,"miniMode",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],vj.prototype,"typographyBump",void 0);_.g([_.BF("ytd-thumbnail"),_.N("design:type",HTMLElement)],vj.prototype,"thumbnail",void 0);_.g([_.BF("#dismissible"),_.N("design:type",HTMLElement)],vj.prototype,"JSC$15274_dismissibleMedia",void 0);
_.g([_.BF("ytd-ad-inline-playback-meta-block"),_.N("design:type",HTMLElement)],vj.prototype,"adInlinePlaybackMetaBlock",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vj.prototype,"onDataChanged",null);_.g([_.wn("typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vj.prototype,"onTypographyBumpChanged",null);
_.g([_.R("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vj.prototype,"isHovered",null);_.g([_.T({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],vj);
_.F(vj,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(pqs!==void 0)return pqs;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return pqs=u},{mode:1});var iwa;var Gu=function(){var u=_.Q.apply(this,arguments)||this;u.isInlinePreviewTriggered=!1;u.JSC$15277_activeViewMeasurementDataResolver=_.MX();return u};
_.c(Gu,_.Q);_.I=Gu.prototype;_.I.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.I.attached=function(){var u=this;this.updateInlinePreviewHoverListeners();this.JSC$15277_activeViewMeasurementDataResolver.promise.then(function(K){u.ytdActiveViewBehavior.enableActiveViewMeasurement(K,15)})};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15277_inlinePreviewHoverListener=Cz({mediaRenderer:this,lockupElement:this.JSC$15277_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Ad2})};
_.I.clearInlinePreviewHoverListeners=function(){var u;(u=this.JSC$15277_inlinePreviewHoverListener)==null||n5(u)};
_.I.onDataChanged=function(){var u;((u=this.data)==null?0:u.activeView)&&this.JSC$15277_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Gu.JSC$15276_DEFAULT_CLICK_LOCATION_BEHAVIOR,Gu.JSC$15276_CLICK_LOCATION_ID_MAP);this.thumbnail&&(u=this.thumbnail.getElementsByTagName("a"),u.length>0&&(u=u.namedItem("thumbnail"))&&u.removeAttribute("href"))};
_.I.onThumbnailContainerClick=function(u){if(this.data&&this.data.navigationEndpoint){var K,l=(K=this.data)==null?void 0:K.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(l,u,!0);u.stopPropagation()}};
_.I.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.I.impressionLog=function(){var u=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var K,l,D=(l=_.b((K=this.data)==null?void 0:K.onImpression,_.ey))==null?void 0:l.commands;D&&(D.forEach(function(d){d.clickTrackingParams&&delete d.clickTrackingParams;_.GB().resolve(_.t9).resolveCommand(d,{form:{element:u.hostElement}})}),this.data.impressionsFired=!0)}};
_.MN.Object.defineProperties(Gu.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.JSC$15277_inlinePreviewHoverListener)==null?0:Es(u))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Gu.prototype.onDataChanged=Gu.prototype.onDataChanged;Gu.JSC$15276_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Gu.JSC$15276_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"}];_.g([_.e(Ee),_.N("design:type",Object)],Gu.prototype,"ytdActiveViewBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Gu.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],Gu.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.s8),_.N("design:type",Object)],Gu.prototype,"ytdLockupBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Gu.prototype,"ytdReduxBehavior",void 0);
_.g([_.e(_.tA.YtSparklesClickLocationBehavior),_.N("design:type",Object)],Gu.prototype,"ytSparklesClickLocationBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Gu.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Gu.prototype,"isInlinePreviewTriggered",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.Yw}),_.N("design:type",Boolean)],Gu.prototype,"miniMode",void 0);_.g([_.BF("ytd-thumbnail"),_.N("design:type",HTMLElement)],Gu.prototype,"thumbnail",void 0);
_.g([_.BF("#dismissible"),_.N("design:type",HTMLElement)],Gu.prototype,"JSC$15277_dismissibleMedia",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gu.prototype,"onDataChanged",null);_.g([_.R("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Gu.prototype,"isHovered",null);_.g([_.T({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Gu);
_.F(Gu,"ytd-video-display-full-buttoned-renderer",function(){if(iwa!==void 0)return iwa;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return iwa=u},{mode:1});var ck=function(u,K,l,D){D=D===void 0?!1:D;_.uL.call(this,u);this.adsClientErrorMessage=l;this.aggressivelySample=D;this.args=[];K&&this.args.push(K)};
_.c(ck,_.uL);var bC=function(u,K,l,D){D=D===void 0?!1:D;_.uL.call(this,u);this.adsClientErrorMessage=l;this.aggressivelySample=D;this.args=[];K&&this.args.push(K)};
_.c(bC,_.uL);var TGH=function(u){_.TZ.call(this);var K=this;this.initializationFunction=u;this.instance=null;this.addOnDisposeCallback(function(){_.qt(K.instance);K.instance=null})};
_.c(TGH,_.TZ);TGH.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.nz("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var Adr=function(){var u=new Map;[].forEach(function(K){u.set(K.JSC$30116_getType(),K)});
this.getters=u};new Promise(function(){});var g9H=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"]]),FCw=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"}]]),wqk=function(u){this.experimentApiProvider=u;u=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=u<.1};var tJ=function(u,K,l,D){_.TZ.call(this);this.adsControlFlowEventListeners=K;this.adEventLogger=l;this.experimentApiProvider=D;this.adsControlFlowManagerHelper=u(this,this,this,this,this);_.eb(this,this.adsControlFlowManagerHelper);u=_.y(K);for(K=u.next();!K.done;K=u.next())_.eb(this,K.value)};
_.c(tJ,_.TZ);var Fna=function(u,K,l,D){xB(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",K,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,D);u=_.y(u.adsControlFlowEventListeners);for(D=u.next();!D.done;D=u.next())Fna(D.value,K,l)};
_.I=tJ.prototype;_.I.onOpportunityProcessedExternallyManaged=function(u,K,l,D){xB(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",u,l,K,void 0,void 0,void 0,void 0,void 0,void 0,void 0,D)};
_.I.onSlotReceivedExternallyManaged=function(u,K){Sp(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",u,K)};
_.I.onSlotEntered=function(u){if(ep(this.adsControlFlowManagerHelper,u)!=null){Sp(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",u);this.adsControlFlowManagerHelper.onSlotEntered(u);for(var K=_.y(this.adsControlFlowEventListeners),l=K.next();!l.done;l=K.next())l.value.onSlotEntered(u);if(ep(this.adsControlFlowManagerHelper,u)!=null&&ep(this.adsControlFlowManagerHelper,u).isOccupyingSlotType()&&Rr(this.adsControlFlowManagerHelper,u)&&!VIm(this.adsControlFlowManagerHelper,u)){var D;Uh(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",u,(D=Rr(this.adsControlFlowManagerHelper,u))!=null?D:void 0);u=ep(this.adsControlFlowManagerHelper,u);u.slotLifecycleStage!=="entered"&&fG(u.slot,u.slotLifecycleStage,"enterLayoutForSlot");u.slotLifecycleStage="rendering";u.registeredLayoutRenderingAdapter.startRendering(u.layout)}}};
_.I.onSlotExited=function(u){if(ep(this.adsControlFlowManagerHelper,u)!=null){Sp(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",u);this.adsControlFlowManagerHelper.onSlotExited(u);for(var K=_.y(this.adsControlFlowEventListeners),l=K.next();!l.done;l=K.next())l.value.onSlotExited(u);ep(this.adsControlFlowManagerHelper,u)!=null&&ep(this.adsControlFlowManagerHelper,u).markedForUnscheduleAfterOutboundAdapterRequests&&gtm(this,u)}};
_.I.onLayoutReceivedExternallyManaged=function(u,K,l){u.managerLayer!=="core"&&Uh(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",u,K,l)};
var NGB=function(u,K,l){if(ep(u.adsControlFlowManagerHelper,K)!=null){Uh(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",K,l);u=_.y(u.adsControlFlowEventListeners);for(var D=u.next();!D.done;D=u.next())NGB(D.value,K,l)}};
tJ.prototype.onLayoutExited=function(u,K,l){if(ep(this.adsControlFlowManagerHelper,u)!=null){Uh(this.adEventLogger,VML(l),u,K);this.adsControlFlowManagerHelper.onLayoutExited(u,K);for(var D=_.y(this.adsControlFlowEventListeners),d=D.next();!d.done;d=D.next())d.value.onLayoutExited(u,K,l);(l=Rr(this.adsControlFlowManagerHelper,u))&&K.layoutId===l.layoutId&&k0m(this,u)}};
tJ.prototype.disposeInternal=function(){var u=Zww(this.adsControlFlowManagerHelper);u=_.y(u);for(var K=u.next();!K.done;K=u.next())gtm(this,K.value);_.TZ.prototype.disposeInternal.call(this)};
var gtm=function(u,K){if(ep(u.adsControlFlowManagerHelper,K)!=null)if(ep(u.adsControlFlowManagerHelper,K).JSC$30146_isSlotExitRequested()||ep(u.adsControlFlowManagerHelper,K).JSC$30146_isLayoutExitRequested())ep(u.adsControlFlowManagerHelper,K).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(ep(u.adsControlFlowManagerHelper,K).isOccupyingSlotType())ep(u.adsControlFlowManagerHelper,K).markedForUnscheduleAfterOutboundAdapterRequests=!0,k0m(u,K);else if(ep(u.adsControlFlowManagerHelper,K).JSC$30146_isSlotFillRequested())ep(u.adsControlFlowManagerHelper,
K).markedForUnscheduleAfterOutboundAdapterRequests=!0,ep(u.adsControlFlowManagerHelper,K)!=null&&(Sp(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",K),K=ep(u.adsControlFlowManagerHelper,K),K.fulfillmentLifecycleStage="fill_cancel_requested",K.registeredFulfillmentAdapter.cancelSlotFilling());else{var l=Rr(u.adsControlFlowManagerHelper,K),D;u.experimentApiProvider.get();(D=_.S("h5_enable_layout_unscheduling_events"))&&(l?YEm(u,K,l):_.nz(Error("Jh"),K,l,void 0,!1));Sp(u.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",K);var d=ep(u.adsControlFlowManagerHelper,K),C=K.slotEntryTrigger,W=d.registeredSlotEntryTriggerAdapters.get(C.triggerId);W&&(W.unregisterTrigger(C),d.registeredSlotEntryTriggerAdapters.delete(C.triggerId));C=_.y(K.slotFulfillmentTriggers);for(W=C.next();!W.done;W=C.next()){W=W.value;var M=d.registeredFulfillmentTriggerAdapters.get(W.triggerId);M&&(M.unregisterTrigger(W),d.registeredFulfillmentTriggerAdapters.delete(W.triggerId))}C=_.y(K.slotExpirationTriggers);
for(W=C.next();!W.done;W=C.next())if(W=W.value,M=d.registeredExpirationTriggerAdapters.get(W.triggerId))M.unregisterTrigger(W),d.registeredExpirationTriggerAdapters.delete(W.triggerId);d.hasLayout()&&(C=d.layout,Qr(d,C.layoutExitNormalTriggers),Qr(d,C.layoutExitSkipTriggers),Qr(d,C.layoutExitMuteTriggers),Qr(d,C.layoutExitUserInputSubmittedTriggers),Qr(d,C.layoutExitUserCancelledTriggers));d.registeredFulfillmentAdapter=void 0;d.registeredSlotAdapter!=null&&(d.registeredSlotAdapter.release(),d.registeredSlotAdapter=
void 0);d.registeredLayoutRenderingAdapter!=null&&(d.registeredLayoutRenderingAdapter.release(),d.registeredLayoutRenderingAdapter=void 0);d=u.adsControlFlowManagerHelper;ep(d,K)&&(d=Afa(d,K.slotType+"_"+K.slotPhysicalPosition))&&d.delete(K.slotId);Sp(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",K);u=_.y(u.adsControlFlowEventListeners);for(d=u.next();!d.done;d=u.next())d=d.value,d.onSlotUnscheduled(K),l&&!D&&YEm(d,K,l)}},YEm=function(u,K,l){Uh(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
K,l);
Uh(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",K,l);u=_.y(u.adsControlFlowEventListeners);for(var D=u.next();!D.done;D=u.next())D=D.value,l&&YEm(D,K,l)},k0m=function(u,K){if(ep(u.adsControlFlowManagerHelper,K)!=null&&ep(u.adsControlFlowManagerHelper,K).isOccupyingSlotType()){var l=Rr(u.adsControlFlowManagerHelper,K);
if(l&&VIm(u.adsControlFlowManagerHelper,K)){if(ep(u.adsControlFlowManagerHelper,K)!=null){var D=u.adEventLogger,d;var C=((d=FCw.get("abandoned"))==null?void 0:d.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";Uh(D,C,K,l);u=ep(u.adsControlFlowManagerHelper,K);u.slotLifecycleStage!=="rendering"&&fG(u.slot,u.slotLifecycleStage,"exitLayout");u.slotLifecycleStage="rendering_stop_requested";u.registeredLayoutRenderingAdapter.stopRendering(l,"abandoned")}}else{Sp(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
K);try{D=ep(u.adsControlFlowManagerHelper,K);if(!D)throw new bC("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");D.slotLifecycleStage!=="enter_requested"&&D.slotLifecycleStage!=="entered"&&D.slotLifecycleStage!=="rendering"&&fG(D.slot,D.slotLifecycleStage,"exitSlot");D.slotLifecycleStage="exit_requested";if(D.registeredSlotAdapter===void 0)throw D.slotLifecycleStage="scheduled",new bC("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
D.registeredSlotAdapter.exit()}catch(W){W instanceof bC&&W.adsClientErrorMessage?(Xq0(u.adEventLogger,W.adsClientErrorMessage,K),_.nz(W,K,void 0,void 0,W.aggressivelySample)):(Xq0(u.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",K),_.nz(W,K))}}}};var Pj=function(u,K,l,D,d,C){_.TZ.call(this);this.registry=u;this.experimentApiProvider=C;this.slotMap=new Map};
_.c(Pj,_.TZ);var Afa=function(u,K){return(u=u.slotMap.get(K))?u:new Map},ep=function(u,K){return Afa(u,K.slotType+"_"+K.slotPhysicalPosition).get(K.slotId)},Zww=function(u){var K=[];
u.slotMap.forEach(function(l){l=_.y(l.values());for(var D=l.next();!D.done;D=l.next())K.push(D.value.slot)});
return K};
Pj.prototype.onSlotEntered=function(u){u=ep(this,u);u.slotLifecycleStage!=="enter_requested"&&fG(u.slot,u.slotLifecycleStage,"onSlotEntered");u.slotLifecycleStage="entered"};
var VIm=function(u,K){u=ep(u,K);return u.hasLayout()&&u.isRendering()},Rr=function(u,K){(u=ep(u,K))?u.hasLayout()&&!u.layout&&_.nz("Unexpected empty layout",K):_.nz("Unexpected undefined slotState",K);
return(u==null?void 0:u.layout)||null};
Pj.prototype.onSlotExited=function(u){u=ep(this,u);u.slotLifecycleStage!=="exit_requested"&&fG(u.slot,u.slotLifecycleStage,"onSlotExited");u.slotLifecycleStage="scheduled"};
Pj.prototype.onLayoutExited=function(u,K){u=ep(this,u);u.isPrimaryLayout(K)&&(u.slotLifecycleStage!=="rendering_stop_requested"&&fG(u.slot,u.slotLifecycleStage,"onLayoutExited"),u.slotLifecycleStage="entered")};
var Qr=function(u,K){K=_.y(K);for(var l=K.next();!l.done;l=K.next()){l=l.value;var D=u.registeredLayoutExitTriggerAdapters.get(l.triggerId);D&&(D.unregisterTrigger(l),u.registeredLayoutExitTriggerAdapters.delete(l.triggerId))}},fG=function(u,K,l){_.nz("Slot stage was "+K+" when calling method "+l,u)};var hWw=function(u){_.TZ.call(this);this.deps=u;this.JSC$15327_adsControlFlowManager=m4a(this)};
_.c(hWw,_.TZ);var m4a=function(u){var K=new tJ(function(l,D,d,C){return new Pj(u.deps.registry,l,D,d,C,u.deps.experimentApiProvider)},new Set(Yzw(u.deps.registry).concat(u.deps.listeners)),u.deps.adEventLogger,u.deps.experimentApiProvider);
_.eb(u,K);return K};var Etm=function(u,K){_.TZ.call(this);this.experimentApiProvider=u;this.eventLoggingSettingsProvider=K;this.eventCount=0};
_.c(Etm,_.TZ);Etm.prototype.logEvent=function(u){xB(this,u)};
var Sp=function(u,K,l,D){xB(u,K,void 0,void 0,void 0,l,void 0,void 0,void 0,l.adSlotLoggingData,void 0,void 0,D)},Uh=function(u,K,l,D,d){xB(u,K,void 0,void 0,void 0,l,D?D:void 0,void 0,void 0,l.adSlotLoggingData,D?D.adLayoutLoggingData:void 0,void 0,d)},Xq0=function(u,K,l){xB(u,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,l,void 0,void 0,void 0,l.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:K})},xB=function(u,K,l,D,d,C,W,M,q,v,G,t,x){x=x===void 0?0:x;
LnS(u.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+K,"slot:",C,"layout:",W,"ping:",M,"Opportunity:",{opportunityType:l,associatedSlotId:D,slotsFromOpportunity:d,triggerBundle:q,adSlotLoggingData:v,adLayoutLoggingData:G});try{var O=function(){u.experimentApiProvider.get();if(K!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){K||_.nz("Empty PACF event type",C,W);var a=u.eventLoggingSettingsProvider.get();var f;(f=a.alwaysIncludeDebugData)||(a.experimentApiProvider.get(),f=
!1);a=f;f={eventType:K,eventOrder:++u.eventCount};var B={};C&&(B.slotData=kNn(a,C));if(W){var p={type:W.layoutType,controlFlowManagerLayer:g9H.get(W.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(p.debugData={layoutId:W.layoutId});B.layoutData=p}M&&(B.pingData={pingDispatchStatus:M.dispatchStatus,serializedAdPingMetadata:M.ping.serializedAdPingMetadata,pingIndex:M.index});q&&(B.triggerData=N8o(q.trigger,q.category));l&&(B.opportunityData=Z6n(a,l,D,d));f.adClientData=B;v&&(f.serializedSlotAdServingData=
v.serializedSlotAdServingDataEntry);G&&(f.serializedAdServingData=G.serializedAdServingDataEntry);t&&(f.errorInfo=t);_.YE("adsClientStateChange",{adsClientEvent:f})}};
x&&x>0?_.Ve(_.k5(),function(){return O()},x):O()}catch(a){LnS(u.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Ve(_.k5(),function(){_.nz(a instanceof Error?a:String(a),C,W,{pacf_message:"exception during pacf logging"})})}};var uhH=function(u,K){Etm.call(this,u,K)};
_.c(uhH,Etm);var KPB=function(){},LnS=function(u,K){return _.S(K)};var DUR=function(){var u=new lcN;this.JSC$15346_adsControlFlowManager=(new hWw(u)).JSC$15327_adsControlFlowManager},lcN=function(){_.TZ.call(this);
var u=this;this.experimentApiProvider=new TGH(function(){return new KPB});
var K=new TGH(function(){return new wqk(u.experimentApiProvider)});
this.adEventLogger=new uhH(this.experimentApiProvider,K);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.c(lcN,_.TZ);var dUN=function(){},Cbs,JJ=function(){Cbs||(Cbs=new dUN);
return Cbs},jp=function(u){if(!u.JSC$15357_externallyManagedSlotAdapterCallback){var K=(new DUR).JSC$15346_adsControlFlowManager;
u.JSC$15357_externallyManagedSlotAdapterCallback=K}return u.JSC$15357_externallyManagedSlotAdapterCallback},IcR=function(u,K,l){var D=K.opportunityType,d=Error("Kh");
if(D!==void 0){var C=jp(u);Fna(C,D,void 0,l)}else _.nz(d,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});C=[];if(K.adSlotAndLayoutMetadata!==void 0){K=_.y(K.adSlotAndLayoutMetadata);for(var W=K.next();!W.done;W=K.next()){var M=W.value;if(W=M.adSlotMetadata)if(C.push(W),u.onSlotReceivedExternallyManaged(W,l),M.adLayoutMetadata){M=_.y(M.adLayoutMetadata);for(var q=M.next();!q.done;q=M.next())u.onLayoutReceivedExternallyManaged(W,q.value,l)}else l>0&&_.nz("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
D,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else l>0&&_.nz("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+D,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else l>0&&_.nz("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+D,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(D!==void 0)u.onOpportunityProcessedExternallyManaged(D,C,void 0,l);else _.nz(d,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
dUN.prototype.onSlotReceivedExternallyManaged=function(u,K){u=OL(u);if(u instanceof bC)_.nz(u,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else jp(this).onSlotReceivedExternallyManaged(u,K)};
dUN.prototype.onLayoutReceivedExternallyManaged=function(u,K,l){u=OL(u);K=Xpq(K);if(u instanceof bC)_.nz(u,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(K instanceof ck)_.nz(K,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else jp(this).onLayoutReceivedExternallyManaged(u,K,l)};
dUN.prototype.onOpportunityProcessedExternallyManaged=function(u,K,l,D){var d=[];K=_.y(K);for(var C=K.next();!C.done;C=K.next())C=OL(C.value),C instanceof bC?_.nz(C,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):d.push(C);jp(this).onOpportunityProcessedExternallyManaged(u,d,l,D)};
var yxH=function(u,K){K=OL(K);if(K instanceof bC)_.nz(K,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var l=jp(u);Sp(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",K);l=_.y(l.adsControlFlowEventListeners);for(var D=l.next();!D.done;D=l.next())D=ep(D.value,K),D.slotLifecycleStage!=="not_scheduled"&&fG(D.slot,D.slotLifecycleStage,"onSlotScheduled"),D.slotLifecycleStage="scheduled";u=jp(u);Sp(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",K);u=_.y(u.adsControlFlowEventListeners);
for(l=u.next();!l.done;l=u.next())l.value.onSlotEntered(K)}},saR=function(u,K){K=OL(K);
if(K instanceof bC)_.nz(K,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var l=jp(u);Sp(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",K);l=_.y(l.adsControlFlowEventListeners);for(var D=l.next();!D.done;D=l.next())D.value.onSlotExited(K);u=jp(u);Sp(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",K);u=_.y(u.adsControlFlowEventListeners);for(l=u.next();!l.done;l=u.next())l.value.onSlotUnscheduled(K)}},oGB=function(u,K,l){K=OL(K);
l=Xpq(l);if(K instanceof bC)_.nz(K,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(l instanceof ck)_.nz(l,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var D=jp(u);Uh(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",K,l);D=_.y(D.adsControlFlowEventListeners);for(var d=D.next();!d.done;d=D.next())d.value.onLayoutScheduled(K,l);u=jp(u);Uh(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",K,l);u=_.y(u.adsControlFlowEventListeners);
for(D=u.next();!D.done;D=u.next())NGB(D.value,K,l)}},Bj=function(u,K,l){K=OL(K);
l=Xpq(l);if(K instanceof bC)_.nz(K,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(l instanceof ck)_.nz(l,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var D=jp(u);Uh(D.adEventLogger,VML("normal"),K,l);D=_.y(D.adsControlFlowEventListeners);for(var d=D.next();!d.done;d=D.next())d.value.onLayoutExited(K,l,"normal");u=jp(u);u=_.y(u.adsControlFlowEventListeners);for(D=u.next();!D.done;D=u.next())YEm(D.value,K,l)}};_.pG=_.rf(function(u){var K=_.$U(u,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});u=Object.assign({},K);var l=K.data;K=K.customCommandResolver;var D=(delete u.data,delete u.customCommandResolver,u);u=_.r_({visibilityCallback:function(M,q){var v,G=(v=l().interaction)==null?void 0:v.onFirstVisible;M&&(G&&_.IT(G),D.setOnErrorHandler()&&mkq(q))},
showOption:_.v6});K=_.sL(function(){return l().interaction},K,function(){var M;
return(M=D.listenToTapEvent)==null?void 0:M.call(D)});
var d=_.y(_.On(!1,void 0,"nqIeMd")),C=d.next().value,W=d.next().value;d=_.p4(function(M){var q;((q=D.setTouchEndHandler)==null?0:q.call(D))&&!C()&&(M.currentTarget.click(),W(!0),setTimeout(function(){W(!1)},100));
return!1});
return _.n("ad-image-view-model",{class:function(){var M,q=[((M=l().interaction)==null?0:M.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],v;((v=D.isGridViewEnabled)==null?0:v.call(D))&&q.push("ytwAdImageViewModelHostInGridView");return q.join(" ")},
el:_.v1(u,K),"on:touchend":d},_.n("div",{class:"ytwAdImageViewModelHostImageContainer"},_.n(_.n4,{data:function(){var M;return{sources:l().imageSources,contentMode:(M=l().imageProperties)==null?void 0:M.contentMode}},
alt:function(){var M,q;return((M=l().interaction)==null?void 0:(q=M.accessibility)==null?void 0:q.label)||""},
targetHeight:D.targetHeight,targetWidth:D.targetWidth,preserveHeight:D.preserveHeight,preserveWidth:D.preserveWidth,useWidth:D.useWidth,style:function(){var M,q;return"vertical-align: bottom;"+(((M=l().background)==null?0:M.color)?"background-color:"+_.ui((q=l().background)==null?void 0:q.color)+";":"")},
className:function(){return D.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var M,q;return(q=(M=D.setDraggable)==null?void 0:M.call(D))!=null?q:void 0}})))},"nb");var WPC=_.rf(function(u){var K=u.data,l=u.listenToTapEvent,D=function(){};
return _.n("ad-button-hover-overlay-view-model",{"on:click":_.p4(function(d){if(_.S("enable_web_home_top_landscape_image_layout_legacy_click_command")){var C,W=(C=K().interaction)==null?void 0:C.onTap;W&&_.xs(d.currentTarget,"yt-navigate",{endpoint:_.lt(W)})}}),
class:function(){var d;return((d=K().interaction)==null?0:d.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.v1(_.r_({visibilityCallback:function(d){var C,W=(C=K().interaction)==null?void 0:C.onFirstVisible;d&&W&&_.IT(W)},
showOption:_.v6}),_.sL(function(){return K().interaction},void 0,function(){return!_.S("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(l==null?void 0:l())}))},function(){return _.S("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.n(_.mo,{data:function(){return K().button}},{adButtonViewModel:function(d){return _.n(_.tw,{data:d.data,
customCommandResolver:D})}}):_.n(_.mo,{data:function(){return K().button}},{adButtonViewModel:_.tw})}())},"ob");var a5;_.SX(_.rf(function(u){var K=u.data;u=_.r_({visibilityCallback:function(M,q){if(M){var v;(M=(v=K().interaction)==null?void 0:v.onFirstVisible)&&_.IT(M);var G;if(v=(G=K().adLayoutData)==null?void 0:G.activeViewData)zk(q,v),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ed(q)})}else _.S("stop_av_measurement_on_detach")&&ed(q)},
showOption:_.v6,hideOption:Gx});var l=_.sL(function(){return K().interaction},void 0,function(){return!0}),D=_.y(_.On(!1,void 0,"K1MNM")),d=D.next().value,C=D.next().value;
D=_.p4(function(){C(!0)});
var W=_.p4(function(){C(!1)});
return _.n("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.v1(u,D4H,l),"on:mouseenter":D,"on:mouseleave":W},_.n("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.Fb({"max-width":function(){return _.S("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.n("div",{class:function(){var M;
a:{var q;switch((M=_.b(K().thumbnailImage,wyH))==null?void 0:(q=M.imageProperties)==null?void 0:q.renderingAspect){case "RENDERING_ASPECT_SQUARE":M="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":M="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}M=void 0}return M}},_.n(_.mo,{data:function(){return K().thumbnailImage}},{adImageViewModel:function(M){return _.n(_.pG,
{data:M.data,
listenToTapEvent:!0,setTouchEndHandler:_.S("enable_top_landscape_image_experiment_dom_id_web")})}})),_.n("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.n(_.r,{cond:function(){var M,q,v;
return(M=_.b(K().thumbnailImage,wyH))==null?void 0:(q=M.imageProperties)==null?void 0:(v=q.overlayIcon)==null?void 0:v.iconImage},
then:function(M){return _.n(_.n4,{data:M,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.n("div",{class:function(){return d()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.n(_.mo,{data:function(){return K().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(M){return _.n(WPC,
{data:M.data,
listenToTapEvent:!0})}}))),_.n("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.n(_.mo,{data:function(){return K().feedAdMetadata}},{feedAdMetadataViewModel:function(M){return _.n(v90,{data:M.data,
listenToTapEvent:!0,setTouchEndHandler:_.S("enable_top_landscape_image_experiment_dom_id_web")})}})))},"pb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.M6}});_.SX(_.rf(function(u){var K=u.data;u=_.r_({visibilityCallback:function(M,q){if(M){var v;(M=(v=K().interaction)==null?void 0:v.onFirstVisible)&&_.IT(M);var G;if(v=(G=K().adLayoutData)==null?void 0:G.activeViewData)zk(q,v),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ed(q)})}else _.S("stop_av_measurement_on_detach")&&ed(q)},
showOption:_.v6,hideOption:Gx});var l=_.Da(_.le),D=_.sL(function(){return K().interaction}),d={},C={},W={};
return _.n("square-image-layout-view-model",{class:_.JB("ytwSquareImageLayoutViewModelHost",(d.ytwSquareImageLayoutViewModelHostColumn=l,d)),el:_.v1(u,d4q,D)},_.n("div",{class:_.JB("ytwSquareImageLayoutViewModelHostImage",(C.ytwSquareImageLayoutViewModelHostColumnImage=l,C))},function(){return _.n(_.mo,{data:function(){return K().adImage}},{adImageViewModel:function(M){return _.n(_.pG,{data:M.data,
isGridViewEnabled:l,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.n("div",{class:_.JB("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(W.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=l,W))},_.n(_.mo,{data:function(){return K().feedAdMetadata}},{feedAdMetadataViewModel:v90}),function(){return _.n(_.mo,{data:function(){return K().adButton}},{adButtonViewModel:function(M){var q={};
return _.n(_.tw,{data:M.data,className:_.JB((q.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,q.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=l,q))})}})}()))},"qb"),"square-image-layout-view-model",{props:{data:_.M6}});_.SX(_.rf(function(u){var K=u.data;var l=u.noBottomMargin;var D=u.typographyBump;u=_.r_({visibilityCallback:function(t,x){if(t){var O;(t=(O=K().interaction)==null?void 0:O.onFirstVisible)&&_.IT(t);var a;if(O=(a=K().adLayoutData)==null?void 0:a.activeViewData)zk(x,O),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ed(x)})}else _.S("stop_av_measurement_on_detach")&&ed(x)},
showOption:_.v6,hideOption:Gx});var d=_.sL(function(){return K().interaction},void 0,function(){return _.S("enable_web_home_top_landscape_image_layout_level_click")}),C=function(){return K().interaction};
C!==void 0&&C!==null||_.D_(Error("Lh"));var W=function(){var t,x,O;return(t=_.b(K().thumbnailImage,wyH))==null?void 0:(x=t.background)==null?void 0:(O=x.backgroundImageSource)==null?void 0:O.imageSources};
C=_.y(_.On(!1,void 0,"pZPLOd"));var M=C.next().value,q=C.next().value;C=_.p4(function(){q(!0)});
var v=_.p4(function(){q(!1)}),G=function(){return M()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.n("top-landscape-image-layout-view-model",{class:function(){var t;return((t=K().interaction)==null?0:t.onTap)&&_.S("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.v1(u,Cdn,d),"on:mouseenter":C,"on:mouseleave":v},_.n("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.n(_.r,{cond:function(){return W()&&W().length>0},
then:function(){return _.n("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Fb({top:"0","background-image":function(){return"url("+String(W()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.n(_.r,{cond:function(){return!!K().adButtonHoverOverlay},
then:function(){return _.n("div",{class:G},_.n(_.mo,{data:function(){return K().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:WPC}))}}),_.n("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.n(_.mo,{data:function(){return K().thumbnailImage}},{adImageViewModel:function(t){return _.n(_.pG,{data:t.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.S("enable_web_home_top_landscape_image_layout_level_click")})}})),_.n("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.n(_.n4,{data:{sources:[{clientResource:{imageName:_.S("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.n("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.n(_.mo,{data:function(){return K().feedAdMetadata}},{feedAdMetadataViewModel:function(t){return _.n(v90,{data:t.data,
noBottomMargin:function(){return l==null?void 0:l()},
listenToTapEvent:function(){return _.S("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return D==null?void 0:D()}})}})))},"rb"),"top-landscape-image-layout-view-model",{props:{data:_.M6,
noBottomMargin:_.M6,typographyBump:_.M6}});_.SX(_.rf(function(u){var K=u.data;var l=u.typographyBump;return _.n("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.v1(_.r_({visibilityCallback:function(D,d){if(D){var C;(D=(C=K().interaction)==null?void 0:C.onFirstVisible)&&_.IT(D);var W;C=(W=K().adLayoutData)==null?void 0:W.activeViewData;!_.S("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&C&&zk(d,C)}},
showOption:_.v6,hideOption:Gx}))},_.n("div",null,_.n(_.mo,{data:function(){return K().videoLockup}},{lockupViewModel:function(D){return _.n(_.zx,{data:D.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:l})}})))},"sb"),"video-display-button-group-layout-view-model",{props:{data:_.M6,
noBottomMargin:_.M6,typographyBump:_.M6}});_.SX(_.rf(function(u){var K=u.data;var l=u.className;var D=u.typographyBump;return _.n("video-display-compact-button-group-layout-view-model",{el:_.v1(_.r_({visibilityCallback:function(d,C){if(d){var W;(d=(W=K().interaction)==null?void 0:W.onFirstVisible)&&_.IT(d);var M;(W=(M=K().adLayoutData)==null?void 0:M.activeViewData)&&zk(C,W)}},
showOption:_.v6})),class:_.JB("videoDisplayCompactButtonGroupLayoutViewModelHost",l)},_.n(_.mo,{data:function(){return K().videoLockup}},{lockupViewModel:function(d){return _.n(_.zx,{data:d.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:D})}}))},"tb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.M6,
className:_.M6,typographyBump:_.M6}});_.SX(_.rf(function(u){var K=u.data;var l=u.className;var D=u.typographyBump;return _.n("video-display-compact-buttoned-layout-view-model",{el:_.v1(_.r_({visibilityCallback:function(d,C){if(d){var W;(d=(W=K().interaction)==null?void 0:W.onFirstVisible)&&_.IT(d);var M;(W=(M=K().adLayoutData)==null?void 0:M.activeViewData)&&zk(C,W)}},
showOption:_.v6})),class:_.JB("videoDisplayCompactButtonedLayoutViewModelHost",l)},_.n(_.mo,{data:function(){return K().videoLockup}},{lockupViewModel:function(d){return _.n(_.zx,{data:d.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:D})}}))},"ub"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.M6,
className:_.M6,typographyBump:_.M6}});_.SX(_.rf(function(u){var K=u.data;var l=u.className;var D=u.typographyBump;var d=function(){return K().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},C=_.Da(_.le);
u=_.r_({visibilityCallback:function(v,G){if(v){var t=K();v=t.adLayoutData;var x;(t=(x=t.interaction)==null?void 0:x.onFirstVisible)&&_.IT(t);(x=v==null?void 0:v.activeViewData)&&zk(G,x)}},
showOption:_.v6});var W=_.RZ(function(){return{containerType:d()&&C()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"BXJVJ"),M=_.RZ(function(){return d()&&C()?"":d()?"168px":"50%"},void 0,"ikSkm"),q=_.RZ(function(){return d()&&C()?9999:void 0},void 0,"M8rucc");
return _.n("video-display-compact-layout-view-model",{el:_.v1(u),class:_.JB("videoDisplayCompactLayoutViewModelHost",l)},_.n(_.mo,{data:function(){return K().videoLockup}},{lockupViewModel:function(v){return _.n(_.zx,{data:v.data,
containerLayoutConfig:W,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:M,thumbnailTargetWidth:q,typographyBump:D})}}))},"vb"),"video-display-compact-layout-view-model",{props:{data:_.M6,
className:_.M6,typographyBump:_.M6}});_.SX(_.rf(function(u){var K=u.data;var l=u.typographyBump;return _.n("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.v1(_.r_({visibilityCallback:function(D,d){if(D){var C;(D=(C=K().interaction)==null?void 0:C.onFirstVisible)&&_.IT(D);var W;C=(W=K().adLayoutData)==null?void 0:W.activeViewData;!_.S("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&C&&zk(d,C)}},
showOption:_.v6,hideOption:Gx}))},_.n("div",null,_.n(_.mo,{data:function(){return K().videoLockup}},{lockupViewModel:function(D){return _.n(_.zx,{data:D.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:l})}})))},"wb"),"video-display-full-layout-view-model",{props:{data:_.M6,
noBottomMargin:_.M6,typographyBump:_.M6}});_.Huw=_.rf(function(u){var K=u.data;u=_.o9("ad-card-badge-view-model");return _.n("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:u},_.n(_.r,{cond:function(){return K().imageBadge},
then:function(l){return _.n(_.n4,{data:l,alt:""})}}))},"xb");var MuC=_.rf(function(u){var K=u.data;var l=u.customCommandResolver;return _.n("carousel-ad-card-image-view-model",{class:function(){var D;return((D=K().interaction)==null?0:D.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.v1(_.r_({visibilityCallback:function(D){var d,C=(d=K().interaction)==null?void 0:d.onFirstVisible;D&&C&&_.IT(C)},
showOption:_.v6}),_.sL(function(){return K().interaction},l)),
"aria-label":function(){var D,d;return(D=K().interaction)==null?void 0:(d=D.accessibility)==null?void 0:d.label}},_.n(_.mo,{data:function(){return K().adImage}},{adImageViewModel:function(D){return _.n(_.pG,{data:D.data,
customCommandResolver:l})}}),_.n("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.n(_.mo,{data:function(){return K().badge}},{adCardBadgeViewModel:_.Huw})),_.n(_.ko,{model:{color:4}}))},"yb");var qqa=_.rf(function(u){var K=_.y(_.On(0,void 0,"o9Bzd")),l=K.next().value;K.next();var D=K.next().value,d=_.y(_.On(!1,void 0,"KLdzYe"));K=d.next().value;var C=d.next().value,W;_.No(function(){clearTimeout(W)});
d=_.p4(function(){var v;((v=u.animate)==null?0:v.call(u))?(C(!0),W=setTimeout(function(){C(!1);M()},200)):M();
return!1});
var M=function(){D(function(v){return(v+u.numShownItems())%u.data().length})},q={};
return _.n("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.n("div",{class:_.JB("ytwHorizontalCarouselCarouselWrapper")},_.n("div",{class:_.JB("ytwHorizontalCarouselCarouselInnerWrapper",(q.ytwHorizontalCarouselAnimating=K,q))},_.n(_.p0,{each:u.data,keyBy:"INDEX"},function(v,G){return _.n("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Fb({"flex-basis":function(){return"calc((100% - (8px * "+(u.numShownItems()-1)+")) / "+u.numShownItems()+")"},
order:function(){var t=G-l();t<0&&(t+=u.data().length);return t}})},u.children(v,G))}))),_.n("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":d},u.nextButton()))},"zb");var $Uw=_.rf(function(u){var K=u.data;var l=u.customCommandResolver;var D=u.expansive;return _.n("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.v1(_.r_({visibilityCallback:function(d){var C,W=(C=K().interaction)==null?void 0:C.onFirstVisible;d&&W&&_.IT(W)},
showOption:_.v6}))},_.n(qqa,{data:function(){var d;return((d=K())==null?void 0:d.carouselAdCards)||[]},
nextButton:function(){return _.n(_.mo,{data:function(){return K().nextButton}},{buttonViewModel:function(d){var C=d.data;
return _.n(_.P2,{data:function(){return(D==null?0:D())?Object.assign({},C(),{style:"mono"}):C()},
className:_.S("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(d){return _.n(_.mo,{data:d},{carouselAdCardImageViewModel:function(C){return _.n(MuC,{data:C.data,customCommandResolver:l})}})}))},"Ab");var nGa=_.rf(function(u){var K=u.data;var l=u.customCommandResolver;var D=u.className;var d=u.buttonClassName;var C=u.animationEntityKey;var W=u.expansive;return _.n("carousel-button-view-model",{class:_.JB("ytwCarouselButtonViewModelHost",D)},_.n(_.mo,{data:function(){return K().carousel}},{carouselAdCardCollectionViewModel:function(M){return _.n($Uw,{data:M.data,
customCommandResolver:l,expansive:W})}}),_.n(_.mo,{data:function(){return K().button}},{adButtonViewModel:function(M){var q=M.data;
return _.n(_.tw,{data:function(){return(W==null?0:W())?Object.assign({},q(),{style:"AD_BUTTON_STYLE_TONAL"}):q()},
className:d,customCommandResolver:l,animationEntityKey:C})}}))},"Bb");_.rx0=_.rf(function(u){var K=u.data;u=u.className;var l=_.o9("pivot-button-view-model");_.ZY(function(){var D;((D=K())==null?0:D.backgroundColor)&&l.value.setAttribute("data-background-color",String(K().backgroundColor))});
return _.n("pivot-button-view-model",{el:l,class:_.JB("ytwPivotButtonViewModelHost",u)},_.n(_.I5,{command:function(){var D=K();D=D.onClickCommand?_.lt(D.onClickCommand):D.contentDescription?_.re(D.contentDescription):void 0;return D},
ariaLabel:function(){return K().contentDescription}},_.n(_.r,{cond:function(){return K().thumbnail},
then:function(D){return _.n(_.n4,{data:D,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.n(_.r,{cond:function(){return K().icon},
then:function(D){return _.n(_.VB,{icon:function(){return D().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Cb");_.vG2=_.rf(function(u){var K=u.data;var l=u.buttonShapeOverrideables;return _.n("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.n(_.mo,{data:function(){return K().buttonViewModels}},{buttonViewModel:function(D){return _.n(_.P2,{data:D.data,
buttonOverrides:l})},
likeButtonViewModel:function(D){return _.n(_.hA,{data:D.data,buttonShapeOverrideables:l})},
dislikeButtonViewModel:function(D){return _.n(_.m9,{data:D.data,buttonShapeOverrideables:l})},
toggleButtonViewModel:function(D){return _.n(_.YK,{data:D.data,buttonShapeOverrides:l})}}))},"Db");var Gpw=_.rf(function(u){var K=u.avatar;var l=u.headline;var D=u.badge;var d=u.description;var C=u.expansive;u={};return _.n("yt-ad-metadata-shape",{class:_.JB("ytAdMetadataShapeHost",(u.ytAdMetadataShapeHostLarge=C,u))},_.n("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.n(_.r,{cond:K,then:function(W){return _.n(_.qzH,{data:function(){return(C==null?0:C())?Object.assign({},W(),{size:"AD_AVATAR_SIZE_MPLUS"}):W()}})}}),_.n("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.n(_.qC,{text:l,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.n(_.r,{cond:D,then:function(W){return _.n(_.c6,{data:function(){return(C==null?0:C())?Object.assign({},W(),{style:"AD_BADGE_STYLE_STARK"}):W()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.n("h2",{class:"ytAdMetadataShapeHostDescription"},_.n(_.qC,{text:d,
linkInheritColor:!0})))},"Eb");var tuA=_.rf(function(u){var K=u.data;var l=u.onShow;var D=u.expansive;u=_.sL(function(){return K().interaction});
_.ZY(function(){var C,W=(C=K().animatedRenderingConfig)==null?void 0:C.delayedSecondsToVisible;if(W){var M=setTimeout(l,W*1E3);_.No(function(){clearTimeout(M)})}});
var d={};return _.n("reels-ad-card-buttoned-view-model",{class:_.JB(function(){var C;return((C=K().interaction)==null?0:C.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(d.ytwReelsAdCardButtonedViewModelHostExpansive=D,d)),
el:_.v1(u)},_.n(Gpw,{avatar:function(){return _.b(K().avatar,iaN)},
headline:function(){return K().headline},
badge:function(){return _.b(K().adBadge,TRs)},
description:function(){return K().description},
expansive:D}),_.n(_.mo,{data:function(){return K().ctaButton}},{adButtonViewModel:function(C){var W=C.data;
return _.n(_.tw,{data:function(){return(D==null?0:D())?Object.assign({},W(),{style:"AD_BUTTON_STYLE_FILLED"}):W()}})}}))},"Fb");var xUm=_.rf(function(u){var K=u.data;u=u.expansive;var l=_.S("web_ad_metadata_clickable")?_.sL(function(){return K().interaction},void 0,function(){return _.S("web_ad_metadata_clickable")}):void 0,D={};
D=_.jX("ytwReelsAdMetadataViewModelHost",(D.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.S("web_ad_metadata_clickable"),D));return _.n("reels-ad-metadata-view-model",{class:D,el:_.v1(l)},_.n(Gpw,{avatar:function(){return _.b(K().avatar,iaN)},
headline:function(){return K().headline},
badge:function(){return _.b(K().adBadge,TRs)},
description:function(){return K().description},
expansive:u}))},"Gb");var Sqw={iconPosition:"icon-with-label",size:"L"},bum=_.rf(function(u){var K=u.data;var l=u.overlayDensity;u=_.o9("reels-player-overlay-layout-view-model");var D=_.qE(l,0),d=function(){var t;return(t=K().reelsAdCardButtonedEntityKey)!=null?t:""},C=function(){return d()+"/ad_button"},W=_.ie(rjn,d),M=function(){var t,x;
return(x=(t=W())==null?void 0:t.value)!=null?x:!1},q=_.Da(Iih),v=function(){return Object.assign({},Sqw,(q()||D()===2)&&{style:"overlay-dark"})};
l={};var G={};return _.n("reels-player-overlay-layout-view-model",{class:_.JB("ytwReelsPlayerOverlayLayoutViewModelHost",(l.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!K().extension},l.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},l)),
"overlay-density":function(){return String(D())},
el:u},_.n("div",{class:_.JB("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(G.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},G))},_.n("div",{"aria-hidden":function(){return M()},
class:_.JB("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return M()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Fb({"transition-duration":function(){return WnZ(K())}})},_.n(_.mo,{data:function(){return K().adMetadata}},{reelsAdMetadataViewModel:function(t){return _.n(xUm,{data:t.data,
expansive:function(){return D()===1}})}}),_.n(_.r,{cond:function(){return K().extension},
then:function(t){return _.n("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.n(_.mo,{data:t},{adButtonViewModel:function(x){return _.n(_.tw,{data:x.data,animationEntityKey:C,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(x){return _.n(nGa,{data:x.data,animationEntityKey:C,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return D()===1}})}}))}})),_.n("div",{"aria-hidden":function(){return!M()},
class:_.JB("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return M()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Fb({"transition-duration":function(){return WnZ(K())}})},_.n(_.mo,{data:function(){return K().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(t){return _.n(tuA,{data:t.data,
onShow:function(){_.ME(_.TT("booleanEntity",d(),{key:d(),value:!0}))},
expansive:function(){return D()===1}})}}))),_.n("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.n(_.mo,{data:function(){return K().actions}},{reelActionBarViewModel:function(t){return _.n(_.vG2,{data:t.data,
buttonShapeOverrideables:v})}}),_.n(_.mo,{data:function(){return K().menu}},{buttonViewModel:function(t){return _.n(_.P2,{data:t.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},v(),{type:"tonal"})}})}}),_.n(_.mo,{data:function(){return K().pivotButton}},{pivotButtonViewModel:function(t){return _.n(_.rx0,{data:t.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Hb");_.SX(bum,"reels-player-overlay-layout-view-model",{props:{data:_.M6,overlayDensity:_.M6}});var iq=function(){var u=_.Q.apply(this,arguments)||this;u.noBottomMargin=!1;u.overlayDensity=0;return u};
_.c(iq,_.Q);_.I=iq.prototype;
_.I.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",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.S("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]]"}}}}}};
_.I.ready=function(){var u=this;EQq(function(){u.isAttached&&xe(u.JSC$15401_storedAdSlotMetadata,u.JSC$15401_storedAdLayoutMetadata,u.adSlotMetadata,u.adLayoutMetadata)&&Bj(JJ(),u.JSC$15401_storedAdSlotMetadata,u.JSC$15401_storedAdLayoutMetadata)})};
_.I.attached=function(){xe(this.JSC$15401_storedAdSlotMetadata,this.JSC$15401_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&oGB(JJ(),this.JSC$15401_storedAdSlotMetadata,this.JSC$15401_storedAdLayoutMetadata)};
_.I.detached=function(){xe(this.JSC$15401_storedAdSlotMetadata,this.JSC$15401_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Bj(JJ(),this.JSC$15401_storedAdSlotMetadata,this.JSC$15401_storedAdLayoutMetadata)};
_.I.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.I.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15401_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15401_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15401_storedAdLayoutMetadata!==void 0&&this.JSC$15401_storedAdSlotMetadata!==void 0&&Bj(JJ(),this.JSC$15401_storedAdSlotMetadata,this.JSC$15401_storedAdLayoutMetadata),oGB(JJ(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15401_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15401_storedAdSlotMetadata=this.adSlotMetadata)};
_.MN.Object.defineProperties(iq.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.adLayoutMetadata}}});
iq.prototype.onAdMetadataChanged=iq.prototype.onAdMetadataChanged;iq.prototype.onTypographyBumpChanged=iq.prototype.onTypographyBumpChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],iq.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],iq.prototype,"rendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],iq.prototype,"ytComponentBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],iq.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],iq.prototype,"noBottomMargin",void 0);_.g([_.U(),_.N("design:type",Object)],iq.prototype,"overlayDensity",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],iq.prototype,"typographyBump",void 0);_.g([_.R("data.adLayoutMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],iq.prototype,"adLayoutMetadata",null);_.g([_.U(),_.N("design:type",Object)],iq.prototype,"adSlotMetadata",void 0);
_.g([_.BF("ytd-video-display-full-buttoned-and-button-group-renderer"),_.N("design:type",HTMLElement)],iq.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.g([_.JU("typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iq.prototype,"onTypographyBumpChanged",null);_.g([_.JU("adLayoutMetadata","adSlotMetadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iq.prototype,"onAdMetadataChanged",null);
_.g([_.T({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],iq);
_.F(iq,"ytd-in-feed-ad-layout-renderer",function(){if(qEk!==void 0)return qEk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return qEk=u},
{mode:_.zW("kevlar_poly_si_batch_j028")?1:2});var OuN;var cxw;var Tu=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return u};
_.c(Tu,_.Q);_.I=Tu.prototype;_.I.computeHasLiveDescription=function(u){return!(u==null||!u.liveDescription)};
_.I.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.I.onYtToggleButton=function(u){var K,l=(K=this.data)==null?void 0:K.videoReminderEntityKey;l&&this.ytdReduxBehavior.dispatch(_.TT("upcomingEventReminderStateEntity",l,{key:l,state:u.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.I.attached=function(){this.updateChannelBanner()};
_.I.dataChanged=function(){this.updateChannelBanner()};
_.I.videoReminderStateChanged=function(){var u;this.videoReminderState&&_.b((u=this.data)==null?void 0:u.cta,_.DG)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.I.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var u=_.bt(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);u&&(u.startsWith("//")&&(u="https:"+u),this.hostElement.classList.add("channel-banner"),_.e8(this.hostElement,{"--ytvmh-channel-banner":"url("+u+")"}))}else _.S("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.I.onPlayerReady=function(){this.onIronResize()};
_.I.maybeFlushDebouncer=function(){_.S("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(u){var K;u=(K=u.getElementsByTagName("yt-attributed-string"))==null?void 0:K[0];MPZ(u==null?void 0:u.polymerController)})};
_.I.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var u=_.bi(this.hostElement).querySelector("#live-description"),K;u&&((K=this.data)==null?0:K.shortLiveDescription)&&u.clientWidth<u.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
Tu.prototype.onIronResize=Tu.prototype.onIronResize;Tu.prototype.videoReminderStateChanged=Tu.prototype.videoReminderStateChanged;Tu.prototype.dataChanged=Tu.prototype.dataChanged;Tu.prototype.onYtToggleButton=Tu.prototype.onYtToggleButton;_.g([_.e(_.Ae),_.N("design:type",Object)],Tu.prototype,"ironResizableBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Tu.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Tu.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Tu.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Tu.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Tu.prototype,"data",void 0);_.g([_.U({selectorArgs:["data.videoReminderEntityKey"],selector:bYq}),_.N("design:type",Object)],Tu.prototype,"videoReminderState",void 0);
_.g([_.U({reflectToAttribute:!0,value:_.S("web_modern_buttons")}),_.N("design:type",Boolean)],Tu.prototype,"rounded",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.N("design:type",Boolean)],Tu.prototype,"hasLiveDescription",void 0);_.g([_.U({reflectToAttribute:!0,value:_.S("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.N("design:type",Boolean)],Tu.prototype,"resizableAdBannerSafariFix",void 0);
_.g([_.U({reflectToAttribute:!0,value:_.S("align_three_dot_menu_with_title_description")}),_.N("design:type",Boolean)],Tu.prototype,"menuFix",void 0);_.g([_.pg("yt-formatted-string"),_.N("design:type",Array)],Tu.prototype,"formattedStrings",void 0);_.g([_.BF("#cta-button"),_.N("design:type",HTMLElement)],Tu.prototype,"ctaButton",void 0);_.g([_.PF("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Tu.prototype,"onYtToggleButton",null);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tu.prototype,"dataChanged",null);_.g([_.JU("videoReminderState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tu.prototype,"videoReminderStateChanged",null);_.g([_.PF("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tu.prototype,"onIronResize",null);
_.g([_.T({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],Tu);
_.F(Tu,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(cxw!==void 0)return cxw;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return cxw=u},{mode:1});var acC;var wF=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};u.isLocked=!1;return u};
_.c(wF,_.Q);_.I=wF.prototype;_.I.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.I.onExpandedChanged=function(){this.expanded&&_.bI(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.I.onMouseOver=function(){this.maybeExpand()};
_.I.onTap=function(){this.maybeExpand()};
_.I.onExpandableTileExpanding=function(u){u!==this&&(this.expanded=!1)};
_.I.onExpandableTileLockAndCollapse=function(u){this.isLocked=!0;u!==this&&(this.expanded=!1)};
_.I.onExpandableTileUnlock=function(){this.isLocked=!1};
wF.prototype.onTap=wF.prototype.onTap;wF.prototype.onMouseOver=wF.prototype.onMouseOver;wF.prototype.onExpandedChanged=wF.prototype.onExpandedChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],wF.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],wF.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],wF.prototype,"expanded",void 0);_.g([_.wn("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wF.prototype,"onExpandedChanged",null);_.g([_.PF("mouseover"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wF.prototype,"onMouseOver",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wF.prototype,"onTap",null);
_.g([_.T({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],wF);
_.F(wF,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(acC!==void 0)return acC;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return acC=u},{mode:1});var z72;var F8=function(){var u=_.Q.apply(this,arguments)||this;u.buttonOverrides={style:"overlay"};u.useYtdPlayer=_.S("use_ytd_player_for_desktop_masthead");u.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};u.playbackFinished=!1;u.JSC$15413_playerManager=null;u.JSC$15413_mastheadCounter=new pOS;return u};
_.c(F8,_.Q);_.I=F8.prototype;_.I.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"}}}};
_.I.created=function(){this.JSC$15413_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15413_playerManager=new ZT)};
_.I.ready=function(){var u=this;this.JSC$15413_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var K=_.bi(this.hostElement).querySelector("#player");this.useYtdPlayer?K.style.display="none":(this.ytdPlayer.style.display="none",JLB(this.JSC$15413_playerManager,K,function(){u.onPlaybackEnded()}),_.bi(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var l;
((l=u.data)==null?0:l.navigationEndpoint)&&_.xs(u.hostElement,"yt-navigate",{endpoint:u.data.navigationEndpoint})}))};
_.I.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15413_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.I.attached=function(){var u=this;_.Cr(function(){u.maybePlayVideo()})};
_.I.maybePlayVideo=function(){var u=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$15413_playerManager.playVideo(),this.getPlayerPromise().then(function(){u.JSC$15413_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.I.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15413_playerManager.stopVideo()};
_.I.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var u,K={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((u=this.data.playbackStartMs)!=null?u:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(K);this.setupYtdPlayer()}else BA2(this.JSC$15413_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(jHR(this.JSC$15413_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.I.getPlayerPromise=function(){return this.JSC$15413_playerManager.getPlayerPromise()};
_.I.onYtToggleButton=function(u){this.useYtdPlayer?this.toggleMute(u.detail.toggled):u.detail.toggled?this.JSC$15413_playerManager.mute():this.JSC$15413_playerManager.unMute()};
_.I.onYtNavigate=function(u){var K=Dxb(u.detail.endpoint),l=dxw(this.data.clickthroughReportingData);K&&l&&(u.detail.endpoint.watchEndpoint?u.detail.tempData=l:_.qB(K,l,30))};
_.I.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.I.onExpandedChanged=function(){this.expanded?(_.bI(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.I.onMouseOver=function(){this.maybeExpand()};
_.I.onTap=function(){this.maybeExpand()};
_.I.onExpandableTileExpanding=function(u){u!==this&&(this.stopVideo(),this.expanded=!1)};
_.I.onExpandableTileLockAndCollapse=function(u){u!==this&&(this.isLocked=!0,this.expanded=!1)};
_.I.onExpandableTileUnlock=function(){this.isLocked=!1};
_.I.lockAndCollapseExpandableTiles=function(){_.Sy(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.I.unlockExpandableTiles=function(){_.Sy(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.I.setupYtdPlayer=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1)return l.yield(u.ytdPlayer.getPlayerPromise(),2);K=l.yieldResult;K.addEventListener("onStateChange",function(D){u.onPlayerStateChange(D)});
K.addEventListener("onCueRangeExit",function(D){u.onCueRangeExit(D)});
_.TG(l)})};
_.I.onPlayerStateChange=function(u){if(u===1&&(u=this.ytdPlayer.getPlayer())){var K=u.getCurrentTime(),l,D,d=K+((D=(l=this.data)==null?void 0:l.playbackDurationMs)!=null?D:0)/1E3;u.addCueRange("playback",K,d);this.JSC$15413_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.I.onCueRangeExit=function(u){u==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.I.toggleMute=function(u){var K=this,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(K.ytdPlayer.getPlayerPromise(),2);l=D.yieldResult;u?l.mute():l.unMute();_.TG(D)})};
F8.prototype.onTap=F8.prototype.onTap;F8.prototype.onMouseOver=F8.prototype.onMouseOver;F8.prototype.onExpandedChanged=F8.prototype.onExpandedChanged;F8.prototype.onYtNavigate=F8.prototype.onYtNavigate;F8.prototype.onYtToggleButton=F8.prototype.onYtToggleButton;F8.prototype.dataChanged=F8.prototype.dataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],F8.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],F8.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],F8.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],F8.prototype,"expanded",void 0);_.g([_.U(),_.N("design:type",Object)],F8.prototype,"buttonOverrides",void 0);
_.g([_.U(),_.N("design:type",Object)],F8.prototype,"useYtdPlayer",void 0);_.g([_.BF("#ytd-player"),_.N("design:type",Object)],F8.prototype,"ytdPlayer",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F8.prototype,"dataChanged",null);_.g([_.PF("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],F8.prototype,"onYtToggleButton",null);
_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],F8.prototype,"onYtNavigate",null);_.g([_.wn("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F8.prototype,"onExpandedChanged",null);_.g([_.PF("mouseover"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F8.prototype,"onMouseOver",null);
_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F8.prototype,"onTap",null);_.g([_.T({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],F8);
_.F(F8,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(z72!==void 0)return z72;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return z72=u},{mode:1});var e7w;var Vr=function(){return _.Q.apply(this,arguments)||this};
_.c(Vr,_.Q);Vr.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Vr.prototype.onShow=function(){var u=_.bi(this.hostElement).querySelector("#live-description"),K;u&&((K=this.data)==null?0:K.shortLiveDescription)&&u.clientWidth<u.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Vr.prototype.onYtToggleButton=function(u){var K,l=(K=this.data)==null?void 0:K.videoReminderEntityKey;l&&this.ytdReduxBehavior.dispatch(_.TT("upcomingEventReminderStateEntity",l,{key:l,state:u.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Vr.prototype.videoReminderStateChanged=function(){var u;this.videoReminderState&&_.b((u=this.data)==null?void 0:u.cta,_.DG)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Vr.prototype.videoReminderStateChanged=Vr.prototype.videoReminderStateChanged;Vr.prototype.onYtToggleButton=Vr.prototype.onYtToggleButton;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Vr.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Vr.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Vr.prototype,"data",void 0);
_.g([_.U({selectorArgs:["data.videoReminderEntityKey"],selector:bYq}),_.N("design:type",Object)],Vr.prototype,"videoReminderState",void 0);_.g([_.PF("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Vr.prototype,"onYtToggleButton",null);_.g([_.JU("videoReminderState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vr.prototype,"videoReminderStateChanged",null);
_.g([_.T({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Vr);
_.F(Vr,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(e7w!==void 0)return e7w;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return e7w=u},{mode:_.zW("kevlar_poly_si_batch_j065")?1:2});var R72;var gF=function(){var u=_.Q.apply(this,arguments)||this;u.useYtdPlayer=_.S("use_ytd_player_for_desktop_masthead");u.buttonOverrides={style:"overlay"};u.JSC$15421_playerManager=null;u.JSC$15421_mastheadCounter=new pOS;u.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return u};
_.c(gF,_.Q);_.I=gF.prototype;_.I.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"}}}};
_.I.created=function(){this.JSC$15421_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15421_playerManager=new ZT)};
_.I.ready=function(){var u=this;this.JSC$15421_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var K;(K=this.embeddedPlayer)==null||K.remove()}else{var l;(l=this.ytdPlayer)==null||l.remove();JLB(this.JSC$15421_playerManager,this.embeddedPlayer,function(){u.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){u.data&&u.data.navigationEndpoint&&_.xs(u.hostElement,"yt-navigate",{endpoint:u.data.navigationEndpoint})})}};
_.I.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15421_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.I.dataChanged=function(){var u=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var K=!this.data.disableAutoPlayback,l,D={autoplay:K,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((l=this.data.playbackStartMs)!=null?l:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(K?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(D);this.setupYtdPlayer()}else BA2(this.JSC$15421_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(jHR(this.JSC$15421_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15421_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.Sy(u.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");u.JSC$15421_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.I.getPlayerPromise=function(){return this.JSC$15421_playerManager.getPlayerPromise()};
_.I.onYtToggleButton=function(u){this.useYtdPlayer?this.toggleMute(u.detail.toggled):u.detail.toggled?this.JSC$15421_playerManager.mute():this.JSC$15421_playerManager.unMute()};
_.I.onYtNavigate=function(u){var K=Dxb(u.detail.endpoint),l=dxw(this.data.clickthroughReportingData);K&&l&&(u.detail.endpoint.watchEndpoint?u.detail.tempData=l:_.qB(K,l,30))};
_.I.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15421_playerManager.stopVideo()};
_.I.setupYtdPlayer=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1)return l.yield(u.ytdPlayer.getPlayerPromise(),2);K=l.yieldResult;K.addEventListener("onStateChange",function(D){u.onPlayerStateChange(D)});
K.addEventListener("onCueRangeExit",function(D){u.onCueRangeExit(D)});
_.TG(l)})};
_.I.onPlayerStateChange=function(u){if(u===1&&(u=this.ytdPlayer.getPlayer())){var K=u.getCurrentTime(),l,D,d=K+((D=(l=this.data)==null?void 0:l.playbackDurationMs)!=null?D:0)/1E3;u.addCueRange("playback",K,d);_.Sy(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15421_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.I.onCueRangeExit=function(u){u==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.I.toggleMute=function(u){var K=this,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(K.ytdPlayer.getPlayerPromise(),2);l=D.yieldResult;u?l.mute():l.unMute();_.TG(D)})};
_.MN.Object.defineProperties(gF.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var u,K;if(!((u=this.data)==null?0:(K=u.accessibilityData)==null?0:K.label))return"Ad primary link";var l,D;return _.QQ("AD_TITLE",{title:(l=this.data)==null?void 0:(D=l.accessibilityData)==null?void 0:D.label})}}});
gF.prototype.onYtMastheadHidden=gF.prototype.onYtMastheadHidden;gF.prototype.onYtNavigate=gF.prototype.onYtNavigate;gF.prototype.onYtToggleButton=gF.prototype.onYtToggleButton;gF.prototype.dataChanged=gF.prototype.dataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],gF.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],gF.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],gF.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],gF.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],gF.prototype,"useYtdPlayer",void 0);_.g([_.BF("ytd-toggle-button-renderer"),_.N("design:type",Object)],gF.prototype,"muteButton",void 0);_.g([_.U(),_.N("design:type",Object)],gF.prototype,"buttonOverrides",void 0);
_.g([_.R("data.accessibilityData.label"),_.N("design:type",String),_.N("design:paramtypes",[])],gF.prototype,"titleAriaLabel",null);_.g([_.BF("#replay-button"),_.N("design:type",Object)],gF.prototype,"replayButton",void 0);_.g([_.BF("#player-container"),_.N("design:type",Object)],gF.prototype,"playerContainer",void 0);_.g([_.BF("#player"),_.N("design:type",Object)],gF.prototype,"embeddedPlayer",void 0);_.g([_.BF("#ytd-player"),_.N("design:type",Object)],gF.prototype,"ytdPlayer",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gF.prototype,"dataChanged",null);_.g([_.PF("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],gF.prototype,"onYtToggleButton",null);_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],gF.prototype,"onYtNavigate",null);
_.g([_.PF("yt-masthead-hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gF.prototype,"onYtMastheadHidden",null);_.g([_.T({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],gF);
_.F(gF,"ytd-video-masthead-ad-primary-video-renderer",function(){if(R72!==void 0)return R72;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return R72=u},{mode:2});var UUw;var Nd=function(){var u=_.Q.apply(this,arguments)||this;u.collapsed=!1;u.impressionResolver=_.MX();u.JSC$15425_activeViewMeasurementDataResolver=_.MX();u.actionMap={"yt-mute-ad-action":"handleMuteAd"};return u};
_.c(Nd,_.Q);_.I=Nd.prototype;_.I.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"}}}};
_.I.ready=function(){var u=this;_.bi(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){u.expandAd()});
this.hostElement.addEventListener("yt-action",function(K){if(K.detail.actionName==="yt-service-request"){var l=K.detail.args[1];l.videoMastheadAdMuteCommand&&(u.collapseAd(l.videoMastheadAdMuteCommand.encryptedMastheadId),K.stopPropagation())}})};
_.I.attached=function(){var u=this;_.Cr(function(){u.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(K){if(!u.collapsed){K=_.y(K);for(var l=K.next();!l.done;l=K.next())l=l.value,IL(l.baseUrl,l.attributionSrcMode);u.data.impressionCommand=void 0}});
this.JSC$15425_activeViewMeasurementDataResolver.promise.then(function(K){u.ytdActiveViewBehavior.enableActiveViewMeasurement(K,15)});
_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&u.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.dataChanged=function(){var u;((u=this.data.impressionCommand)==null?0:u.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var K;((K=this.data)==null?0:K.activeView)&&this.JSC$15425_activeViewMeasurementDataResolver.resolve(this.data.activeView);(u=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(u.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.I.computeWidescreen=function(u){var K;return!!(u&&((K=_.b(u,POs))==null?0:K.isWidescreen))};
_.I.computeExpandable=function(u){return!!(u&&u.length>0)};
_.I.onIronResize=function(){if(this.expandable){var u=_.bi(this.hostElement).querySelector("#expandable-tile-container :first-child");u&&!u.expanded&&(u.expanded=!0)}};
_.I.handleMuteAd=function(){this.collapseAd(null)};
_.I.restoreCollapsedState=function(u){this.collapsed=_.jy().get("HIDDEN_MASTHEAD_ID")===u};
_.I.collapseAd=function(u){if(u){var K=_.jy();K.set("HIDDEN_MASTHEAD_ID",u);K.save()}(u=_.bi(this.hostElement).querySelector("#video"))&&_.xs(u,"yt-masthead-hidden");this.collapsed=!0};
_.I.expandAd=function(){var u=_.jy();u.set("HIDDEN_MASTHEAD_ID",!1);u.save();location.reload()};
_.I.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
Nd.prototype.onIronResize=Nd.prototype.onIronResize;Nd.prototype.dataChanged=Nd.prototype.dataChanged;_.g([_.e(_.Ae),_.N("design:type",Object)],Nd.prototype,"ironResizableBehavior",void 0);_.g([_.e(Ee),_.N("design:type",Object)],Nd.prototype,"ytdActiveViewBehavior",void 0);_.g([_.e(_.D1),_.N("design:type",Object)],Nd.prototype,"ytdGridStateAwareBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Nd.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Nd.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Nd.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.N("design:type",Boolean)],Nd.prototype,"widescreen",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.N("design:type",Boolean)],Nd.prototype,"expandable",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Nd.prototype,"collapsed",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nd.prototype,"dataChanged",null);
_.g([_.PF("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nd.prototype,"onIronResize",null);_.g([_.T({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Nd);
_.F(Nd,"ytd-video-masthead-ad-v3-renderer",function(){if(UUw!==void 0)return UUw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return UUw=u},{mode:2});var kB=function(){return _.Q.apply(this,arguments)||this};
_.c(kB,_.Q);_.I=kB.prototype;_.I.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.I.ready=function(){var u=this;EQq(function(){u.isAttached&&xe(u.JSC$15430_storedAdSlotMetadata,u.JSC$15430_storedAdLayoutMetadata,u.adSlotMetadata,u.adLayoutMetadata)&&Bj(JJ(),u.JSC$15430_storedAdSlotMetadata,u.JSC$15430_storedAdLayoutMetadata)})};
_.I.attached=function(){xe(this.JSC$15430_storedAdSlotMetadata,this.JSC$15430_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&oGB(JJ(),this.JSC$15430_storedAdSlotMetadata,this.JSC$15430_storedAdLayoutMetadata)};
_.I.detached=function(){xe(this.JSC$15430_storedAdSlotMetadata,this.JSC$15430_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Bj(JJ(),this.JSC$15430_storedAdSlotMetadata,this.JSC$15430_storedAdLayoutMetadata)};
_.I.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15430_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15430_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15430_storedAdLayoutMetadata!==void 0&&this.JSC$15430_storedAdSlotMetadata!==void 0&&Bj(JJ(),this.JSC$15430_storedAdSlotMetadata,this.JSC$15430_storedAdLayoutMetadata),oGB(JJ(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15430_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15430_storedAdSlotMetadata=this.adSlotMetadata)};
_.MN.Object.defineProperties(kB.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.adLayoutMetadata}}});
kB.prototype.onAdMetadataChanged=kB.prototype.onAdMetadataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],kB.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],kB.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],kB.prototype,"data",void 0);_.g([_.R("data.adLayoutMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],kB.prototype,"adLayoutMetadata",null);
_.g([_.U(),_.N("design:type",Object)],kB.prototype,"adSlotMetadata",void 0);_.g([_.JU("adLayoutMetadata","adSlotMetadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kB.prototype,"onAdMetadataChanged",null);_.g([_.T({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],kB);
_.F(kB,"ytd-page-top-ad-layout-renderer",function(){if(OuN!==void 0)return OuN;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return OuN=
u},{mode:_.zW("kevlar_poly_si_batch_j070")?1:2});var fcs;var Zb=function(){var u=_.Q.apply(this,arguments)||this;u.noBottomMargin=!1;u.overlayDensity=0;u.typographyBump=!1;return u};
_.c(Zb,_.Q);_.I=Zb.prototype;
_.I.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.I.ready=function(){var u=this;EQq(function(){u.isAttached&&u.adSlotMetadata&&saR(JJ(),u.adSlotMetadata)})};
_.I.attached=function(){if(this.adSlotMetadata){var u;if(this.adSlotMetadata===((u=this.data)==null?void 0:u.adSlotMetadata))yxH(JJ(),this.adSlotMetadata);else{var K;_.hV(Error("Mh`"+this.adSlotMetadata+"`"+((K=this.data)==null?void 0:K.adSlotMetadata)))}}};
_.I.detached=function(){this.adSlotMetadata&&saR(JJ(),this.adSlotMetadata)};
_.I.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.I.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&saR(JJ(),this.adSlotMetadata),yxH(JJ(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.MN.Object.defineProperties(Zb.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var u,K,l=_.b((u=this.data)==null?void 0:(K=u.fulfillmentContent)==null?void 0:K.fulfilledLayout,_.jqa),D;return(u=(D=_.b(l==null?void 0:l.renderingContent,JyS))==null?void 0:D.layout)?u.toLowerCase().replace(/_/g,"-"):""}}});
Zb.prototype.onAdSlotMetadataChanged=Zb.prototype.onAdSlotMetadataChanged;Zb.prototype.onTypographyBumpChanged=Zb.prototype.onTypographyBumpChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Zb.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Zb.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Zb.prototype,"rendererBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],Zb.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Zb.prototype,"noBottomMargin",void 0);_.g([_.U(),_.N("design:type",Object)],Zb.prototype,"overlayDensity",void 0);_.g([_.U(),_.N("design:type",Object)],Zb.prototype,"typographyBump",void 0);_.g([_.BF("ytd-in-feed-ad-layout-renderer"),_.N("design:type",HTMLElement)],Zb.prototype,"inFeedAdLayoutRenderer",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",String),_.N("design:paramtypes",[])],Zb.prototype,"layout",null);_.g([_.JU("typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zb.prototype,"onTypographyBumpChanged",null);_.g([_.JU("data.adSlotMetadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zb.prototype,"onAdSlotMetadataChanged",null);
_.g([_.T({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Zb);
_.F(Zb,"ytd-ad-slot-renderer",function(){if(fcs!==void 0)return fcs;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return fcs=u},{mode:_.zW("kevlar_poly_si_batch_j077")?
1:2});var Qak;var YB=function(){return _.Q.apply(this,arguments)||this};
_.c(YB,_.Q);_.I=YB.prototype;_.I.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"}}}};
_.I.maybeComputeHref=function(u){return _.S("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(u)};
_.I.onTap=function(){_.S("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&ZeZ(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.I.onThumbnailContainerClick=function(u){this.onClick(u)};
_.I.onClick=function(u){if(_.S("enable_handle_watch_endpoint_click_for_vdc")){var K,l=(K=this.data)==null?void 0:K.navigationEndpoint;l&&_.b(l,_.oy)&&(this.ytSparklesClickLocationBehavior.handleClick(l,u,!1),u.stopPropagation())}};
_.I.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var u=_.y(this.data.impressionUrls),K=u.next();!K.done;K=u.next())K=K.value,lpy(K,dEy(K));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.S("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",YB.JSC$15438_DEFAULT_CLICK_LOCATION_BEHAVIOR,YB.JSC$15438_CLICK_LOCATION_ID_MAP),this.thumbnail&&(u=this.thumbnail.getElementsByTagName("a"),
u.length>0&&(u=u.namedItem("thumbnail"))&&u.removeAttribute("href")))}};
_.I.attached=function(){var u=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&u.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.MN.Object.defineProperties(YB.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
YB.prototype.dataChanged=YB.prototype.dataChanged;YB.prototype.onTap=YB.prototype.onTap;YB.JSC$15438_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
YB.JSC$15438_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"}];_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],YB.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],YB.prototype,"ytRendererBehavior",void 0);_.g([_.e(Ee),_.N("design:type",Object)],YB.prototype,"ytdActiveViewBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],YB.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],YB.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.tA.YtSparklesClickLocationBehavior),_.N("design:type",Object)],YB.prototype,"ytSparklesClickLocationBehavior",void 0);
_.g([_.U({selector:_.le}),_.N("design:type",Object)],YB.prototype,"isGridViewEnabled",void 0);_.g([_.R("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],YB.prototype,"watchFeedBigThumbs",null);_.g([_.R("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],YB.prototype,"thumbnailWidth",null);_.g([_.U(),_.N("design:type",Object)],YB.prototype,"data",void 0);
_.g([_.BF("ytd-thumbnail"),_.N("design:type",HTMLElement)],YB.prototype,"thumbnail",void 0);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YB.prototype,"onTap",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YB.prototype,"dataChanged",null);_.g([_.T({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],YB);
_.F(YB,"ytd-compact-promoted-video-renderer",function(){if(Qak!==void 0)return Qak;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Qak=u},{mode:1});var Pb2;_.E4("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var AJ=function(){return _.Q.apply(this,arguments)||this};
_.c(AJ,_.Q);AJ.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],AJ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],AJ.prototype,"data",void 0);_.g([_.T({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],AJ);
_.F(AJ,"ytd-search-pyv-renderer",function(){if(Pb2!==void 0)return Pb2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Pb2=u},{mode:1});var Jxw;_.E4("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var X8=function(){var u=_.Q.apply(this,arguments)||this;u.roundedContainer=!0;u.JSC$15446_handleOpenPostCommentDialogActionAfterStamp=!1;u.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return u};
_.c(X8,_.Q);_.I=X8.prototype;
_.I.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}}};
_.I.onStampFinished=function(){this.JSC$15446_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.I.handleSignalActionOpenPostCommentDialogAction=function(){var u=_.bi(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");u?u.openDialog():this.JSC$15446_handleOpenPostCommentDialogActionAfterStamp=!0};
_.I.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.I.computeHideBorder=function(){return this.isInEngagementPanel};
_.I.computeIsCompact=function(){return this.isInEngagementPanel};
_.I.computeUsesCompactLockup=function(u){return u==="BACKSTAGE_SURFACE_TYPE_HOME"||u==="BACKSTAGE_SURFACE_TYPE_SEARCH"||u==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||u==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||u==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||u==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.I.computeUsesFullLockup=function(){var u,K=(u=this.data)==null?void 0:u.post,l;u=(l=_.b(K,k3N))==null?void 0:l.surface;var D;l=(D=_.b(K,Aya))==null?void 0:D.originalPost;var d;if(D=u||((d=_.b(l,k3N))==null?void 0:d.surface))return!this.computeUsesCompactLockup(D)&&this.useUpdatedRepostUi;var C;return((C=_.b(K,Aya))==null?void 0:C.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.MN.Object.defineProperties(X8.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var u,K;return((K=_.b((u=this.data)==null?void 0:u.post,k3N))==null?void 0:K.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.useUpdatedRepostUi}}});
X8.prototype.onYtCommentModerationPanelEmpty=X8.prototype.onYtCommentModerationPanelEmpty;X8.prototype.onStampFinished=X8.prototype.onStampFinished;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],X8.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],X8.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],X8.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],X8.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],X8.prototype,"roundedContainer",void 0);_.g([_.U({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.N("design:type",Boolean)],X8.prototype,"hideBorder",void 0);_.g([_.U({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.N("design:type",Boolean)],X8.prototype,"isCompact",void 0);
_.g([_.U({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.N("design:type",Boolean)],X8.prototype,"usesFullLockup",void 0);_.g([_.PF("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X8.prototype,"onStampFinished",null);
_.g([_.PF("ytd-comment-moderation-panel-empty"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],X8.prototype,"onYtCommentModerationPanelEmpty",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],X8.prototype,"isInEngagementPanel",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],X8.prototype,"useUpdatedRepostUi",null);
_.g([_.T({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],X8);
_.F(X8,"ytd-backstage-post-thread-renderer",function(){if(Jxw!==void 0)return Jxw;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Jxw=u},{mode:1});var jaA;var my=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return u};
_.c(my,_.Q);my.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
my.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var u=this.data.thumbnail.thumbnails;this.isDarkTheme&&(u=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(u=_.bt(u,24,void 0,"height"))?u:void 0}};
my.prototype.onDarkModeToggledAction=function(u){this.isDarkTheme=u};
my.prototype.computeHasText=function(){var u;return!((u=this.data)==null||!u.text)};
_.MN.Object.defineProperties(my.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.ES(this.bannerImageUrl))+'");'}}});
my.prototype.computeHasText=my.prototype.computeHasText;my.prototype.computeBannerImageUrl=my.prototype.computeBannerImageUrl;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],my.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],my.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],my.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],my.prototype,"isDarkTheme",void 0);_.g([_.U(),_.N("design:type",String)],my.prototype,"bannerImageUrl",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.N("design:type",Boolean)],my.prototype,"hasText",void 0);_.g([_.JU("data","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],my.prototype,"computeBannerImageUrl",null);
_.g([_.JU("data.text"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],my.prototype,"computeHasText",null);_.g([_.R("bannerImageUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],my.prototype,"bannerStyle",null);_.g([_.T({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],my);
_.F(my,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(jaA!==void 0)return jaA;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return jaA=u},{mode:1});var BkB;var hJ=function(){return _.Q.apply(this,arguments)||this};
_.c(hJ,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],hJ.prototype,"data",void 0);_.g([_.T({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],hJ);
_.F(hJ,"ytd-backstage-zero-state-renderer",function(){if(BkB!==void 0)return BkB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return BkB=u},{mode:1});var p5B;var Eh=function(){return _.Q.apply(this,arguments)||this};
_.c(Eh,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Eh.prototype,"data",void 0);_.g([_.U({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],Eh.prototype,"icon",void 0);_.g([_.T({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],Eh);
_.F(Eh,"ytd-post-filter-zero-state-renderer",function(){if(p5B!==void 0)return p5B;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return p5B=u},{mode:1});var iuw;var TkB={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},LG=function(){return _.Q.apply(this,arguments)||this};
_.c(LG,_.Q);LG.prototype.configureRendererStamper=function(){return TkB};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],LG.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],LG.prototype,"rendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],LG.prototype,"data",void 0);_.g([_.U({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],LG.prototype,"icon",void 0);_.g([_.T({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],LG);
_.F(LG,"ytd-post-scheduling-zero-state-renderer",function(){if(iuw!==void 0)return iuw;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return iuw=u},{mode:1});var w5a;var uN=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return u};
_.c(uN,_.Q);uN.prototype.onTabsActivate=function(u){this.data&&this.data.tabs&&_.xs(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[u.detail.selected].navigationEndpoint})};
uN.prototype.shouldShowTotalCount=function(u){return u&&u.totalCount!==void 0};
uN.prototype.handleUpdatePostsTotalCountAction=function(u){var K=this.get(["data.tabs",1,"totalCount"]),l=this.get("updatePostsTotalCountAction.updateType",u);u=this.get("updatePostsTotalCountAction.number",u);K!==void 0&&l!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&u&&(l==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(K)+u):l==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(K)-u))};
_.MN.Object.defineProperties(uN.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var u=0,K=this.data.tabs.length;u<K;u++)if(this.data.tabs[u].selected)return u;return 0}}});
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],uN.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],uN.prototype,"rendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],uN.prototype,"data",void 0);_.g([_.R("data.tabs"),_.N("design:type",Number),_.N("design:paramtypes",[])],uN.prototype,"selected",null);_.g([_.T({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],uN);
_.F(uN,"ytd-post-stream-filter-renderer",function(){if(w5a!==void 0)return w5a;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return w5a=u},{mode:1});var FPa;var Kh=function(){return _.Q.apply(this,arguments)||this};
_.c(Kh,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Kh.prototype,"kevlarBehaviors",void 0);_.g([_.U(),_.N("design:type",Object)],Kh.prototype,"data",void 0);_.g([_.T({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],Kh);
_.F(Kh,"ytd-channel-age-gate-renderer",function(){if(FPa!==void 0)return FPa;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return FPa=u},{mode:1});var Vuw;_.E4("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var lN=function(){var u=_.Q.apply(this,arguments)||this;u.data=null;return u};
_.c(lN,_.Q);lN.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.MN.Object.defineProperties(lN.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return((u=this.data)==null?0:(K=u.title)==null?0:(l=K.runs)==null?0:l.length)?147:160}}});
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],lN.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],lN.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],lN.prototype,"imageSizePx",null);_.g([_.T({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],lN);
_.F(lN,"ytd-channel-owner-empty-state-renderer",function(){if(Vuw!==void 0)return Vuw;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Vuw=u},{mode:1});var gGN;var Nka;var D9=function(){var u=_.Q.apply(this,arguments)||this;u.boundSubmitSearch=function(){u.submitSearch()};
u.boundClearSearch=function(){u.clearSearch()};
return u};
_.c(D9,_.Q);_.I=D9.prototype;_.I.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]]"}}}}}};
_.I.toggleClearButton=function(){this.hideClearButton=xzq||!this.input.value};
_.I.submitOnEnterKeyUp=function(u){u.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.I.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.I.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.I.submit=function(){_.xs(this.hostElement,"search-query-changed",this.input.value)};
D9.prototype.toggleClearButton=D9.prototype.toggleClearButton;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],D9.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],D9.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],D9.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],D9.prototype,"hideClearButton",void 0);_.g([_.U(),_.N("design:type",Object)],D9.prototype,"boundSubmitSearch",void 0);_.g([_.U(),_.N("design:type",Object)],D9.prototype,"boundClearSearch",void 0);_.g([_.BF("#input"),_.N("design:type",Object)],D9.prototype,"input",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D9.prototype,"toggleClearButton",null);
_.g([_.T({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],D9);
_.F(D9,"ytd-channel-switcher-search-box-renderer",function(){if(Nka!==void 0)return Nka;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Nka=u},{mode:1});var kpS;var dA=function(){var u=_.Q.apply(this,arguments)||this;u.boundSubmit=function(){u.submit()};
return u};
_.c(dA,_.Q);_.I=dA.prototype;_.I.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"}}}}};
_.I.ready=function(){var u=this;this.form.addEventListener("submit",function(K){return u.onSubmit(K)})};
_.I.onSubmit=function(u){u.preventDefault();return!1};
_.I.toggleClearButton=function(){this.hideClearButton=xzq||!this.input.value};
_.I.submitOnEnterKeyUp=function(u){u.keyCode===13&&this.submit()};
_.I.submit=function(){var u=this.data.endpoint,K=(0,_.k$.unsafeClone)(u);_.b(K,_.jt)?_.b(K,_.jt).query=this.input.value:_.b(K,_.BI)&&(_.b(K,_.BI).query=this.input.value);var l=_.b(K.commandMetadata,_.nN);(l==null?0:l.url)?(l.url=_.uy(l.url,"query",this.input.value),_.xs(this.hostElement,"yt-navigate",{endpoint:K})):_.b(K,ebN)?(_.b(K,ebN).channelSwitcherQuery=this.input.value,_.GB().resolve(_.t9).resolveCommand(K,{form:{element:this.hostElement}})):(u=Error("Nh`"+JSON.stringify(u)),_.Xm(u))};
_.I.getUrl=function(u){return this.get("commandMetadata.webCommandMetadata.url",u)};
dA.prototype.toggleClearButton=dA.prototype.toggleClearButton;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],dA.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],dA.prototype,"hideClearButton",void 0);
_.g([_.U(),_.N("design:type",Object)],dA.prototype,"boundSubmit",void 0);_.g([_.BF("#form"),_.N("design:type",HTMLFormElement)],dA.prototype,"form",void 0);_.g([_.BF("#input"),_.N("design:type",Object)],dA.prototype,"input",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dA.prototype,"toggleClearButton",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],dA);
_.F(dA,"ytd-search-box-renderer",function(){if(kpS!==void 0)return kpS;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return kpS=u},{mode:2});var Ch=function(){var u=_.Q.apply(this,arguments)||this;u.showSearchBox=!0;return u};
_.c(Ch,_.Q);Ch.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ch.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ch.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ch.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ch.prototype,"showSearchBox",void 0);_.g([_.T({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Ch);
_.F(Ch,"ytd-channel-switcher-header-renderer",function(){if(gGN!==void 0)return gGN;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return gGN=u},{mode:1});var Zus;var Yqm;var IH=function(){var u=_.Q.apply(this,arguments)||this;u.isDisplayed=!0;return u};
_.c(IH,_.Q);_.I=IH.prototype;_.I.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.dataChanged=function(){this.isDisplayed=!0};
_.I.computeType=function(u){return u||"UNKNOWN"};
_.I.onYtServiceRequestCompleted=function(u){u.stopPropagation();this.isDisplayed=!1};
_.I.onClose=function(){this.isDisplayed=!1};
IH.prototype.onYtServiceRequestCompleted=IH.prototype.onYtServiceRequestCompleted;IH.prototype.dataChanged=IH.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],IH.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],IH.prototype,"data",void 0);
_.g([_.U({computed:"computeType(data.type)",reflectToAttribute:!0}),_.N("design:type",String)],IH.prototype,"type",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],IH.prototype,"isDisplayed",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IH.prototype,"dataChanged",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],IH.prototype,"onYtServiceRequestCompleted",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],IH);
_.F(IH,"ytd-alert-with-button-renderer",function(){if(Yqm!==void 0)return Yqm;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Yqm=u},{mode:1});var yJ=function(){var u=_.Q.apply(this,arguments)||this;u.noResult=!1;u.enableAlertBanner=!1;u.dismissedAlertBanner=!1;u.hideCreateChannelButton=!1;u.boundDismissAlertBanner=function(){u.dismissAlertBanner()};
u.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return u};
_.c(yJ,_.Q);_.I=yJ.prototype;_.I.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.I.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.I.updateChannelSwitcherAction=function(u){var K;u=(K=_.b(u,G2A))==null?void 0:K.page;_.b(u,v4k)!==void 0&&(this.data=_.b(u,v4k))};
_.I.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]]"}}}}}};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.I.searchQueryChanged=function(u,K){if(this.data&&this.data.contents&&this.data.contents.length){u=[];var l=[];this.hideCreateChannelButton=this.noResult=!1;for(var D=document.querySelectorAll("ytd-account-item-renderer"),d=_.y(D),C=d.next();!C.done;C=d.next())C=C.value,l.push(C),C.style.display="block";this.resetRightBorder(l);if(K){this.hideCreateChannelButton=!0;for(l=1;l<this.data.contents.length;l++)if(C=this.data.contents[l],_.b(C,cya)){var W=void 0,M=void 0;d=(W=_.b(C,cya))==null?void 0:(M=
W.accountName)==null?void 0:M.simpleText;M=W=void 0;C=(W=_.b(C,cya))==null?void 0:(M=W.channelHandle)==null?void 0:M.simpleText;(W=D[l-1])&&d&&_.Mw(d,K)?u.push(W):_.S("enable_handle_search_on_channel_switcher")&&W&&C&&_.Mw(C.toString(),K.toString())?u.push(W):W.style.display="none"}u.length===0&&(this.noResult=!0);this.resetRightBorder(u)}}};
_.I.resetRightBorder=function(u){for(var K=0;K<u.length;K++)u[K].style.borderRight=!this.hideCreateChannelButton&&(K+2)%3===0||this.hideCreateChannelButton&&(K+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.I.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.I.setShowSearchBox=function(u){if(u&&u.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var K=0;K<u.contents.length;K++)_.b(u.contents[K],_.rr)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.I.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.MN.Object.defineProperties(yJ.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null?0:u.contents)}}});
yJ.prototype.onContinuationItemsUpdated=yJ.prototype.onContinuationItemsUpdated;yJ.prototype.searchQueryChanged=yJ.prototype.searchQueryChanged;yJ.prototype.onDataChanged=yJ.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],yJ.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],yJ.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Ir),_.N("design:type",Object)],yJ.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],yJ.prototype,"data",void 0);_.g([_.BF("ytd-channel-switcher-header-renderer"),_.N("design:type",Object)],yJ.prototype,"channelSwitcherHeaderRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],yJ.prototype,"noResult",void 0);
_.g([_.U(),_.N("design:type",Object)],yJ.prototype,"enableAlertBanner",void 0);_.g([_.U(),_.N("design:type",Object)],yJ.prototype,"dismissedAlertBanner",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],yJ.prototype,"hideCreateChannelButton",void 0);_.g([_.R("data.contents"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yJ.prototype,"isLoading",null);_.g([_.U(),_.N("design:type",Object)],yJ.prototype,"boundDismissAlertBanner",void 0);
_.g([_.U({computed:"computeButtonOverride()"}),_.N("design:type",Object)],yJ.prototype,"buttonOverride",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yJ.prototype,"onDataChanged",null);_.g([_.PF("search-query-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,String]),_.N("design:returntype")],yJ.prototype,"searchQueryChanged",null);
_.g([_.PF("yt-next-continuation-data-updated"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],yJ.prototype,"onContinuationItemsUpdated",null);_.g([_.T({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],yJ);
_.F(yJ,"ytd-channel-switcher-page-renderer",function(){if(Zus!==void 0)return Zus;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Zus=u},{mode:1});var Ax2;var X5H;var s_=function(){var u=_.Q.apply(this,arguments)||this;u.images=[];u.selectedImageIndex=0;return u};
_.c(s_,_.Q);_.I=s_.prototype;
_.I.ready=function(){_.kU(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.kU(this.JSC$15491_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.kU(this.JSC$15491_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.kU(this.JSC$15491_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.I.onThumbnailClick=function(u){if(u=u.event_.detail)this.selectedImageIndex=this.images.indexOf(u)};
_.I.updateImageThumbnails=function(u){u=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:u.event_.detail});this.images.splice(this.selectedImageIndex,1,u);this.images=[].concat(_.Am(this.images))};
_.I.cancelImageRepositions=function(){this.selectedImageIndex=0;_.xs(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.I.saveImageRepositions=function(){this.selectedImageIndex=0;_.xs(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.MN.Object.defineProperties(s_.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var u=this;return(this.images||[]).map(function(K,l){return{image:K,selected:l===u.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],s_.prototype,"ytRendererstamperBehavior",void 0);_.g([_.BF("ytd-backstage-image-preview-renderer"),_.N("design:type",Object)],s_.prototype,"JSC$15491_imagePreviewContainer",void 0);_.g([_.BF(".thumbnail-images-container"),_.N("design:type",HTMLElement)],s_.prototype,"thumbnailImagesContainer",void 0);_.g([_.U(),_.N("design:type",Array)],s_.prototype,"images",void 0);
_.g([_.U(),_.N("design:type",Object)],s_.prototype,"repositionInstructions",void 0);_.g([_.U(),_.N("design:type",Object)],s_.prototype,"selectedImageIndex",void 0);_.g([_.R("images","selectedImageIndex"),_.N("design:type",Array),_.N("design:paramtypes",[])],s_.prototype,"thumbnailRendererDatas",null);_.g([_.R("images","selectedImageIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],s_.prototype,"selectedImageData",null);
_.g([_.T({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],s_);
_.F(s_,"ytd-backstage-multi-image-reposition-renderer",function(){if(X5H!==void 0)return X5H;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return X5H=u},{mode:1});var oH=function(u,K){_.wx.call(this);this.uploadUrl=u;this.channelId=K;this.imagesUploadData=[]};
_.c(oH,_.wx);oH.prototype.getAllUploadStatuses=function(){var u=this,K,l,D;return _.H(function(d){if(d.nextAddress==1)return d.yield(mUB(u),2);K=d.yieldResult;l=K.get("succeed");D=K.get("failed");return d.return(l.concat(D))})};
var EGC=function(u){var K,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(mUB(u),2);K=D.yieldResult;l=K.get("failed");l.length>0&&h70(u,l);return D.return(u.getAllUploadStatuses())})},mUB=function(u){var K,l,D,d,C,W,M;
return _.H(function(q){if(q.nextAddress==1)return K=new Map,q.yield(Promise.allSettled(u.imagesUploadData.map(function(v){return v.uploadPromise})),2);
l=q.yieldResult;D=[];d=_.y(l);for(C=d.next();!C.done;C=d.next())W=C.value,W.status==="fulfilled"&&D.push(W.value);M=u.imagesUploadData.map(function(v){return v.image}).filter(function(v){return D.every(function(G){return G.id!==v.id})});
K.set("succeed",D);K.set("failed",M);return q.return(K)})},h70=function(u,K){K=_.y(K);
for(var l=K.next();!l.done;l=K.next()){var D=u;l=l.value;LPa(D,l.id)>=0&&D.cancel(l.id);var d=new uNw(l),C=_.MQB(D.uploadUrl,{"X-YouTube-ChannelId":D.channelId},l.imageBlob);d.transfer=C;d.uploadPromise=Kh0(C,l);D.imagesUploadData.push(d);C.run()}};
oH.prototype.cancel=function(u){var K=LPa(this,u);K!==-1&&((K=this.imagesUploadData[K].transfer)&&K.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(l){return l.image.id!==u}))};
var LPa=function(u,K){return u.imagesUploadData.findIndex(function(l){return l.image.id===K})},Kh0=function(u,K){return new Promise(function(l,D){u.listen("l",function(){var d=u.getResponseText();
d?(d=JSON.parse(d).encryptedBlobId,K.encryptedBlobId=d,l(K)):D("upload failed")});
u.listen("n",function(){D("upload failed")})})},uNw=function(u){this.image=u};var Hwh=function(u,K,l,D,d){this.id=u;this.imageBlob=K;this.localImageSrc=l;this.naturalWidth=D;this.naturalHeight=d;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 lWs=[".jpeg",".jpg",".png"],Wc=function(){var u=_.Q.apply(this,arguments)||this;u.showImagesPreview=!1;u.pollOptions=[];u.errorMessage="";u.optionPlaceholderText="";u.optionDefaultText="";u.JSC$15502_imageId=0;u.maxFileSizeMb=0;u.maxAspectRatio=0;u.invalidFileSizeError="";u.invalidAspectRatioError="";u.invalidFileTypeError="";u.imageSelector=new fP(null,"single_file",lWs);return u};
_.c(Wc,_.Q);_.I=Wc.prototype;_.I.ready=function(){_.kU(this.imageSelector,"j",this.onImageSelect,!1,this);_.kU(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.kU(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.I.dataChanged=function(){var u,K,l=_.b((u=this.data)==null?void 0:(K=u.cellTemplate)==null?void 0:K.onEmptyCellTap,tsw);if(l&&l.uploadUrl&&l.channelId){var D;this.maxFileSizeMb=((D=l.imageValidationInfo)==null?void 0:D.maxFileSizeMb)||0;var d;this.maxAspectRatio=((d=l.imageValidationInfo)==null?void 0:d.allowedMaxAspectRatio)||0;var C;this.invalidFileSizeError=this.getSimpleString((C=this.data)==null?void 0:C.invalidFileSizeError);var W;this.invalidAspectRatioError=this.getSimpleString((W=this.data)==
null?void 0:W.invalidAspectRatioError);var M;this.invalidFileTypeError=this.getSimpleString((M=this.data)==null?void 0:M.invalidFileTypeError);this.uploadManager=new oH(l.uploadUrl,l.channelId)}};
_.I.onEditorInfoChange=function(){this.optionPlaceholderText=_.WI(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.WI(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.I.observeAddImageError=function(){this.errorMessage!==""&&_.xs(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.I.onPollOptionsChange=function(){for(var u=!1,K=[],l=0;l<this.pollOptions.length;l++){var D=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(l+1);this.pollOptions[l].placeholderText!==D?(u=!0,K.push(Object.assign({},this.pollOptions[l],{placeholderText:D}))):K.push(this.pollOptions[l])}u&&(this.pollOptions=K);this.isValid()?_.xs(this.hostElement,"yt-commentbox-post-enable"):_.xs(this.hostElement,"yt-commentbox-post-disable")};
_.I.createPollOptions=function(u){var K=[],l;u=(l=u==null?void 0:u.minPollOptions)!=null?l:0;for(l=0;l<u;l++)K.push(this.createPollOption());return K};
_.I.onImageSelect=function(u){var K=this,l,D,d,C,W,M;return _.H(function(q){if(q.nextAddress==1){if(K.selectedImageIndex===void 0)return q.jumpTo(0);l=u.files[0];K.errorMessage="";D=K.validateImage(l);if(D!=="")return K.errorMessage=D,q.return();d=new MG(K.maxAspectRatio,!1,!0);return q.yield(d.transform(l),3)}if(q.nextAddress!=4)return C=q.yieldResult,C.transformedData?C.invalidAspectRatio?(K.errorMessage=K.invalidAspectRatioError,q.return()):q.yield(MIL(K.JSC$15502_imageId,u.files[0],C.transformedData),
4):(K.errorMessage=K.invalidFileTypeError,q.return());W=q.yieldResult;K.JSC$15502_imageId++;h70(K.uploadManager,[W]);M=Object.assign({},K.pollOptions[K.selectedImageIndex],{image:W});K.pollOptions.splice(K.selectedImageIndex,1,M);K.refreshPollOptions();_.xs(K.hostElement,"yt-backstage-poll-image-select");_.TG(q)})};
_.I.validateImage=function(u){return u.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.I.refreshPollOptions=function(){this.pollOptions=[].concat(_.Am(this.pollOptions))};
_.I.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Am(this.pollOptions),[this.createPollOption()]))};
_.I.onRemovePollOption=function(u){var K=this.pollOptions[u.model.index];K&&K.image&&this.uploadManager.cancel(K.image.id);this.pollOptions.splice(u.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.xs(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.I.onTextInput=function(){this.refreshPollOptions()};
_.I.onImageButtonClick=function(u){this.selectedImageIndex=u.model.index;this.imageSelector.click()};
_.I.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.I.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.I.saveImageRepositions=function(u){u=u.event_.detail;for(var K=0,l=[],D=_.y(this.pollOptions),d=D.next();!d.done;d=D.next())d=d.value,d.image!==void 0?(d=Object.assign({},d,{image:u[K]}),l.push(d),K++):l.push(d);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Am(l))};
_.I.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 u=0,K=_.y(this.pollOptions),l=K.next();!l.done;l=K.next())if(l=l.value,l.optionText.trim()!==""||l.image!==void 0){if(!l.image||this.hasCustomOptionText&&l.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;u++}return u>=Number(this.editorInfo.minPollOptions)};
_.I.getAllUploadStatuses=function(){var u=this,K,l,D,d;return _.H(function(C){if(C.nextAddress==1)return C.yield(u.uploadManager.getAllUploadStatuses(),2);K=C.yieldResult;l=_.y(K);for(D=l.next();!D.done;D=l.next())if(d=D.value,d.encryptedBlobId===void 0)return C.return(EGC(u.uploadManager));return C.return(K)})};
_.I.getPostCreateOptions=function(){for(var u=[],K=_.y(this.pollOptions),l=K.next();!l.done;l=K.next())l=l.value,l.image!==void 0&&u.push({text:this.hasCustomOptionText?l.optionText:l.placeholderText,image:l.image});return u};
_.I.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.I.createButtonRenderer=function(u,K){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:u,accessibilityData:{accessibilityData:{label:this.getSimpleString(u)}},isDisabled:K}};
_.I.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.I.computeThumbnailRendererData=function(u){return u?{image:u,selected:!1}:void 0};
_.I.getSimpleString=function(u){return _.WI(u)};
_.I.updateOptionTextFromBinding=function(u){if(u.target){var K=Array.from(_.bi(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(u.target);if(K>=0){var l;this.pollOptions[K].optionText=(l=u.detail.value)!=null?l:""}}};
_.MN.Object.defineProperties(Wc.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var u,K;return this.pollOptions.length<((K=(u=this.editorInfo)==null?void 0:u.maxPollOptions)!=null?K:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(u){return u.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(u){return u.image}).map(function(u){return u.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(u){return u.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var u,K=(u=this.data)==null?void 0:u.addOptionButtonText;return K?this.createButtonRenderer(K,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var u,K=(u=this.data)==null?void 0:u.repositionImagesButtonLabel;return K?this.createButtonRenderer(K,!this.hasImages):void 0}}});
Wc.prototype.onPollOptionsChange=Wc.prototype.onPollOptionsChange;Wc.prototype.observeAddImageError=Wc.prototype.observeAddImageError;Wc.prototype.onEditorInfoChange=Wc.prototype.onEditorInfoChange;Wc.prototype.dataChanged=Wc.prototype.dataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);_.g([_.BF("ytd-backstage-multi-image-reposition-renderer"),_.N("design:type",Object)],Wc.prototype,"imageRepositionContainer",void 0);
_.g([_.U(),_.N("design:type",Object)],Wc.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Wc.prototype,"editorInfo",void 0);_.g([_.U(),_.N("design:type",oH)],Wc.prototype,"uploadManager",void 0);_.g([_.U(),_.N("design:type",Object)],Wc.prototype,"showImagesPreview",void 0);_.g([_.U(),_.N("design:type",Array)],Wc.prototype,"pollOptions",void 0);_.g([_.U(),_.N("design:type",Object)],Wc.prototype,"errorMessage",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wc.prototype,"dataChanged",null);_.g([_.wn("editorInfo"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wc.prototype,"onEditorInfoChange",null);_.g([_.JU("errorMessage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wc.prototype,"observeAddImageError",null);
_.g([_.wn("pollOptions"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wc.prototype,"onPollOptionsChange",null);_.g([_.R("pollOptions","editorInfo"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wc.prototype,"isAllowedToAddOption",null);_.g([_.R("pollOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wc.prototype,"hasImages",null);
_.g([_.R("pollOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wc.prototype,"imagesToReposition",null);_.g([_.R("pollOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wc.prototype,"hasCustomOptionText",null);_.g([_.R("data","isAllowedToAddOption"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wc.prototype,"addOptionButton",null);_.g([_.R("data","hasImages"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wc.prototype,"repositionImagesButton",null);
_.g([_.T({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],Wc);
_.F(Wc,"ytd-backstage-image-poll-editor-renderer",function(){if(Ax2!==void 0)return Ax2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Ax2=u},{mode:2});var DOS={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 dOm;var Hc=function(){var u=_.Q.apply(this,arguments)||this;u.a11yConfig=DOS;u.imageDisplayOffsetTop=0;u.imageDisplayOffsetLeft=0;u.pickerDisplayOffsetTop=0;u.pickerDisplayOffsetLeft=0;u.showPreviewContainer=!0;u.startPicker=!1;u.repositionOptional=!1;u.editOnlyMode=!1;u.savedImageDisplayOffsetTop=0;u.savedImageDisplayOffsetLeft=0;return u};
_.c(Hc,_.Q);_.I=Hc.prototype;_.I.created=function(){_.d0.requestAvailability()};
_.I.ready=function(){};
_.I.onArrowKeysDown=function(u){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){u.detail.keyboardEvent.preventDefault();var K=0,l=0,D="";switch(u.detail.keyboardEvent.key){case "ArrowUp":qEL(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?D=this.a11yConfig.reachBottomOfImage:K=this.imageHeight*.05*-1;break;case "ArrowDown":qEL(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?D=this.a11yConfig.reachTopOfImage:
K=this.imageHeight*.05;break;case "ArrowLeft":qEL(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?D=this.a11yConfig.reachRightOfImage:l=this.imageWidth*.05*-1;break;case "ArrowRight":qEL(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?D=this.a11yConfig.reachLeftOfImage:l=this.imageWidth*.05}D&&_.QQ(D)&&_.xs(this.hostElement,"iron-announce",{text:_.QQ(D)});if(l||K)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+K)),u=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),u=_.QQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+u,y_percent:""+(100-u)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+l)),u=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),u=_.QQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+u,y_percent:""+(100-u)})),u&&_.xs(this.hostElement,"iron-announce",{text:u})}};
_.I.getPreviewPosition=function(u,K,l,D){return Math.round(100*(u+K*.5-l)/D)};
_.I.calculateDisplayPosition=function(){var u=this.imageData.naturalWidth,K=this.imageData.naturalHeight;this.displayScale=Math.max(200/u,200/K);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var l=u*this.displayScale*this.imageData.previewCoordinates.left,D=K*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=K>u?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-l;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=u>K?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-D;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=u*this.displayScale;this.imageHeight=K*this.displayScale};
_.I.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.I.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.I.getSignedPosition=function(u,K,l){return K==="X"&&_.E3("HTML_DIR")==="rtl"?l==="-"?u+"px":u*-1+"px":l==="-"?u*-1+"px":u+"px"};
_.I.pickerMove=function(u){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var K=this.pickerOffsetX-u.clientX,l=this.pickerOffsetY-u.clientY;this.pickerOffsetX=u.clientX;this.pickerOffsetY=u.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
l)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-K))}};
_.I.pickerMoveStart=function(u){this.startPicker=!0;this.pickerOffsetX=u.clientX;this.pickerOffsetY=u.clientY};
_.I.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var u=this.generateCropPreview();u&&_.xs(this.hostElement,"ytd-backstage-image-preview-coordinates-update",u)};
_.I.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.xs(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.I.deleteImage=function(){_.xs(this.hostElement,"ytd-backstage-image-preview-delete")};
_.I.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.I.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var u=this.generateCropPreview();u&&_.xs(this.hostElement,"ytd-backstage-image-preview-coordinates-save",u)};
_.I.getPreviewOffset=function(u,K,l){return K&&u?(l==="X"&&_.E3("HTML_DIR")==="rtl"?300/K*u:300/K*u*-1)+"px":"0px"};
_.I.getSimpleText=function(u){return u?_.WI(u):""};
_.I.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}};
_.MN.Object.defineProperties(Hc.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var u=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.QQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+u,y_percent:""+(100-u)})+"\n"+_.QQ(this.a11yConfig.verticalRepositionInstruction)}u=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.QQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+u,y_percent:""+(100-u)})+"\n"+_.QQ(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 u,K,l=(u=this.instruction)==null?void 0:(K=u.previewInstruction)==null?void 0:K.editButtonLabel;return l?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:l,accessibilityData:{accessibilityData:{label:this.getSimpleText(l)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D,d=this.editOnlyMode?(u=this.instruction)==null?void 0:(K=u.editInstruction)==null?void 0:K.saveImagesButtonLabel:(l=this.instruction)==null?void 0:(D=l.editInstruction)==null?void 0:D.saveButtonLabel;return d?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:d,accessibilityData:{accessibilityData:{label:this.getSimpleText(d)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var u,K,l=(u=this.instruction)==null?void 0:(K=u.previewInstruction)==null?void 0:K.deleteButtonLabel;return l?{size:"SIZE_SMALL",text:l,accessibilityData:{accessibilityData:{label:this.getSimpleText(l)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var u,K,l=(u=this.instruction)==null?void 0:(K=u.editInstruction)==null?void 0:K.cancelButtonLabel;u=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return l?{style:u,size:"SIZE_SMALL",text:l,accessibilityData:{accessibilityData:{label:this.getSimpleText(l)}}}: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"}}});
Hc.prototype.onEditOnlyModeUpdate=Hc.prototype.onEditOnlyModeUpdate;Hc.prototype.onImageChange=Hc.prototype.onImageChange;_.g([_.U(),_.N("design:type",Hwh)],Hc.prototype,"imageData",void 0);_.g([_.U(),_.N("design:type",Object)],Hc.prototype,"instruction",void 0);_.g([_.U(),_.N("design:type",Object)],Hc.prototype,"a11yConfig",void 0);_.g([_.U(),_.N("design:type",Number)],Hc.prototype,"imageWidth",void 0);_.g([_.U(),_.N("design:type",Number)],Hc.prototype,"imageHeight",void 0);
_.g([_.U(),_.N("design:type",Number)],Hc.prototype,"displayScale",void 0);_.g([_.U(),_.N("design:type",Object)],Hc.prototype,"imageDisplayOffsetTop",void 0);_.g([_.U(),_.N("design:type",Object)],Hc.prototype,"imageDisplayOffsetLeft",void 0);_.g([_.U(),_.N("design:type",Object)],Hc.prototype,"pickerDisplayOffsetTop",void 0);_.g([_.U(),_.N("design:type",Object)],Hc.prototype,"pickerDisplayOffsetLeft",void 0);_.g([_.U(),_.N("design:type",Object)],Hc.prototype,"showPreviewContainer",void 0);
_.g([_.U(),_.N("design:type",Object)],Hc.prototype,"startPicker",void 0);_.g([_.U(),_.N("design:type",Number)],Hc.prototype,"pickerOffsetX",void 0);_.g([_.U(),_.N("design:type",Number)],Hc.prototype,"pickerOffsetY",void 0);_.g([_.U(),_.N("design:type",Object)],Hc.prototype,"repositionOptional",void 0);_.g([_.U(),_.N("design:type",Object)],Hc.prototype,"editOnlyMode",void 0);_.g([_.BF("#picker-container"),_.N("design:type",HTMLElement)],Hc.prototype,"JSC$15515_pickerContainer",void 0);
_.g([_.BF("#picker"),_.N("design:type",HTMLElement)],Hc.prototype,"picker",void 0);_.g([_.BF("#preview-clipper"),_.N("design:type",HTMLElement)],Hc.prototype,"previewClipper",void 0);_.g([_.BF("#image-in-picker-background"),_.N("design:type",HTMLImageElement)],Hc.prototype,"JSC$15515_imageInBackground",void 0);_.g([_.BF("#image-in-picker"),_.N("design:type",HTMLImageElement)],Hc.prototype,"JSC$15515_imageInPicker",void 0);
_.g([_.BF("#image-in-preview-clipper"),_.N("design:type",HTMLImageElement)],Hc.prototype,"JSC$15515_imageInPreviewClipper",void 0);_.g([_.R("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],Hc.prototype,"altLabelForImage",null);_.g([_.R("imageHeight","imageWidth"),_.N("design:type",Number),_.N("design:paramtypes",[])],Hc.prototype,"pickerSize",null);
_.g([_.R("imageHeight","imageWidth"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hc.prototype,"imageOrientationStyle",null);_.g([_.R("instruction"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hc.prototype,"editButton",null);_.g([_.R("instruction","editOnlyMode"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hc.prototype,"saveButton",null);_.g([_.R("instruction"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hc.prototype,"deleteButton",null);
_.g([_.R("instruction","editOnlyMode"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hc.prototype,"cancelButton",null);_.g([_.R("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.N("design:type",Number),_.N("design:paramtypes",[])],Hc.prototype,"cropOffsetTop",null);_.g([_.R("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.N("design:type",Number),_.N("design:paramtypes",[])],Hc.prototype,"cropOffsetLeft",null);
_.g([_.R("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],Hc.prototype,"pickerBackgroundStyle",null);_.g([_.R("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],Hc.prototype,"pickerDisplayStyle",null);_.g([_.R("cropOffsetLeft","cropOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],Hc.prototype,"imageInPickerStyle",null);
_.g([_.R("cropOffsetLeft","cropOffsetTop","pickerSize"),_.N("design:type",String),_.N("design:paramtypes",[])],Hc.prototype,"previewClipperStyle",null);_.g([_.wn("imageData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hc.prototype,"onImageChange",null);_.g([_.wn("editOnlyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hc.prototype,"onEditOnlyModeUpdate",null);
_.g([_.R("showPreviewContainer"),_.N("design:type",String),_.N("design:paramtypes",[])],Hc.prototype,"pickerModeStyle",null);_.g([_.T({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Hc);
_.F(Hc,"ytd-backstage-image-preview-renderer",function(){if(dOm!==void 0)return dOm;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return dOm=u},{mode:1});var CMk;var IWA={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 yos;var sv0;var M$=function(){var u=_.Q.apply(this,arguments)||this;u.a11yConfig=IWA;u.imageDisplayOffsetTop=0;u.imageDisplayOffsetLeft=0;u.pickerDisplayOffsetTop=0;u.pickerDisplayOffsetLeft=0;u.cropCoordinatesSaved=!1;u.previewSize=0;u.startPicker=!1;u.repositionOptional=!1;return u};
_.c(M$,_.Q);_.I=M$.prototype;_.I.created=function(){_.d0.requestAvailability()};
_.I.ready=function(){};
_.I.onArrowKeysDown=function(u){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){u.detail.keyboardEvent.preventDefault();var K=0,l=0,D="";switch(u.detail.keyboardEvent.key){case "ArrowUp":$4w(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?D=this.a11yConfig.reachBottomOfImage:K=this.imageHeight*.05*-1;break;case "ArrowDown":$4w(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?D=this.a11yConfig.reachTopOfImage:
K=this.imageHeight*.05;break;case "ArrowLeft":$4w(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?D=this.a11yConfig.reachRightOfImage:l=this.imageWidth*.05*-1;break;case "ArrowRight":$4w(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?D=this.a11yConfig.reachLeftOfImage:l=this.imageWidth*.05}D&&_.QQ(D)&&_.xs(this.hostElement,"iron-announce",{text:_.QQ(D)});if(l||K)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+K)),u=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),u=_.QQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+u,y_percent:""+(100-u)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+l)),u=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),u=_.QQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+u,y_percent:""+(100-u)})),u&&_.xs(this.hostElement,"iron-announce",{text:u})}};
_.I.getPreviewPosition=function(u,K,l,D){return Math.round(100*(u+K*.5-l)/D)};
_.I.displayImage=function(){var u=this.JSC$15526_pickerContainer.getBoundingClientRect().width,K=this.JSC$15526_pickerContainer.getBoundingClientRect().height,l=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),D=this.JSC$15526_imageInBackground.naturalWidth,d=this.JSC$15526_imageInBackground.naturalHeight;this.displayScale=Math.max(l/D,l/d);this.imageWidth=D*this.displayScale;this.imageHeight=d*this.displayScale;this.pickerDisplayOffsetLeft=(u-l)/2;this.pickerDisplayOffsetTop=
(K-l)/2;this.imageDisplayOffsetLeft=d>D?this.pickerDisplayOffsetLeft:(u-this.imageWidth)/2;this.imageDisplayOffsetTop=D>d?this.pickerDisplayOffsetTop:(K-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.I.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15526_imageInBackground.src=this.imageData.toString(),this.JSC$15526_imageInPicker.src=this.imageData.toString(),this.JSC$15526_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.I.getSignedPosition=function(u,K,l){return K==="X"&&_.E3("HTML_DIR")==="rtl"?l==="-"?u+"px":u*-1+"px":l==="-"?u*-1+"px":u+"px"};
_.I.pickerMove=function(u){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var K=this.pickerOffsetX-u.clientX,l=this.pickerOffsetY-u.clientY;this.pickerOffsetX=u.clientX;this.pickerOffsetY=u.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
l)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-K))}};
_.I.pickerMoveStart=function(u){this.startPicker=!0;this.pickerOffsetX=u.clientX;this.pickerOffsetY=u.clientY};
_.I.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.I.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.xs(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.I.getPreviewOffset=function(u,K,l,D){return K&&u&&l?(D==="X"&&_.E3("HTML_DIR")==="rtl"?l/K*u:l/K*u*-1)+"px":"0px"};
_.I.getSimpleText=function(u){return u?_.WI(u):""};
_.I.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var u=this.cropOffsetTop/this.imageHeight,K=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,l=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,D=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.bi(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.xs(this.hostElement,"yt-img-crop-coordinates-update",{top:u,right:K,bottom:l,left:D})}};
_.MN.Object.defineProperties(M$.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var u=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.QQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+u,y_percent:""+(100-u)})+"\n"+_.QQ(this.a11yConfig.verticalRepositionInstruction)}u=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.QQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+u,y_percent:""+(100-u)})+"\n"+_.QQ(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 u,K=(u=this.learnMore.runs[0])==null?void 0:u.navigationEndpoint,l;return((l=_.b(K,_.d_))==null?void 0:l.url)||void 0}}}});
M$.prototype.onImageDataChange=M$.prototype.onImageDataChange;_.g([_.U(),_.N("design:type",Object)],M$.prototype,"imageData",void 0);_.g([_.U(),_.N("design:type",Object)],M$.prototype,"instruction",void 0);_.g([_.U(),_.N("design:type",Object)],M$.prototype,"a11yConfig",void 0);_.g([_.U(),_.N("design:type",Number)],M$.prototype,"imageWidth",void 0);_.g([_.U(),_.N("design:type",Number)],M$.prototype,"imageHeight",void 0);_.g([_.U(),_.N("design:type",Number)],M$.prototype,"displayScale",void 0);
_.g([_.U(),_.N("design:type",Object)],M$.prototype,"imageDisplayOffsetTop",void 0);_.g([_.U(),_.N("design:type",Object)],M$.prototype,"imageDisplayOffsetLeft",void 0);_.g([_.U(),_.N("design:type",Object)],M$.prototype,"pickerDisplayOffsetTop",void 0);_.g([_.U(),_.N("design:type",Object)],M$.prototype,"pickerDisplayOffsetLeft",void 0);_.g([_.U(),_.N("design:type",Object)],M$.prototype,"cropCoordinatesSaved",void 0);_.g([_.U(),_.N("design:type",Object)],M$.prototype,"previewSize",void 0);
_.g([_.U(),_.N("design:type",Object)],M$.prototype,"startPicker",void 0);_.g([_.U(),_.N("design:type",Number)],M$.prototype,"pickerOffsetX",void 0);_.g([_.U(),_.N("design:type",Number)],M$.prototype,"pickerOffsetY",void 0);_.g([_.U(),_.N("design:type",Object)],M$.prototype,"repositionOptional",void 0);_.g([_.BF("#picker-container"),_.N("design:type",HTMLElement)],M$.prototype,"JSC$15526_pickerContainer",void 0);_.g([_.BF("#picker"),_.N("design:type",HTMLElement)],M$.prototype,"picker",void 0);
_.g([_.BF("#image-in-picker-background"),_.N("design:type",HTMLImageElement)],M$.prototype,"JSC$15526_imageInBackground",void 0);_.g([_.BF("#image-in-picker"),_.N("design:type",HTMLImageElement)],M$.prototype,"JSC$15526_imageInPicker",void 0);_.g([_.BF("#image-in-preview-clipper"),_.N("design:type",HTMLImageElement)],M$.prototype,"JSC$15526_imageInPreviewClipper",void 0);_.g([_.BF("#full-image-as-preview"),_.N("design:type",HTMLImageElement)],M$.prototype,"imageAsPreview",void 0);
_.g([_.R("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],M$.prototype,"altLabelForImage",null);_.g([_.R("imageHeight","imageWidth"),_.N("design:type",Number),_.N("design:paramtypes",[])],M$.prototype,"pickerSize",null);_.g([_.R("imageHeight","imageWidth"),_.N("design:type",Object),_.N("design:paramtypes",[])],M$.prototype,"imageOrientationStyle",null);
_.g([_.R("instruction.previewInstruction.editButtonLabel"),_.N("design:type",Object),_.N("design:paramtypes",[])],M$.prototype,"editButton",null);_.g([_.R("instruction.editInstruction.saveButtonLabel"),_.N("design:type",Object),_.N("design:paramtypes",[])],M$.prototype,"saveButton",null);_.g([_.R("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.N("design:type",Number),_.N("design:paramtypes",[])],M$.prototype,"cropOffsetTop",null);
_.g([_.R("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.N("design:type",Number),_.N("design:paramtypes",[])],M$.prototype,"cropOffsetLeft",null);_.g([_.R("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],M$.prototype,"pickerBackgroundStyle",null);_.g([_.R("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],M$.prototype,"pickerDisplayStyle",null);
_.g([_.R("cropOffsetLeft","cropOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],M$.prototype,"imageInPickerStyle",null);_.g([_.R("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.N("design:type",String),_.N("design:paramtypes",[])],M$.prototype,"previewClipperStyle",null);_.g([_.JU("imageData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M$.prototype,"onImageDataChange",null);
_.g([_.R("cropCoordinatesSaved"),_.N("design:type",String),_.N("design:paramtypes",[])],M$.prototype,"pickerModeStyle",null);_.g([_.R("instruction.editInstruction.learnMore"),_.N("design:type",Object),_.N("design:paramtypes",[])],M$.prototype,"learnMore",null);_.g([_.R("learnMore"),_.N("design:type",Object),_.N("design:paramtypes",[])],M$.prototype,"learnMoreUrl",null);_.g([_.E9({is:"yt-img-crop-picker",disableElementRegistration:!0})],M$);
_.F(M$,"yt-img-crop-picker",function(){if(sv0===void 0){var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;yos===void 0&&(yos=document.createElement("template"));var D=yos;l.call(K,D.content.cloneNode(!0),u.content.firstChild);sv0=u}u=sv0;return u},{mode:2});var q$=function(){var u=_.Q.apply(this,arguments)||this;u.errorMessage="";u.hasPreview=!1;u.isBackstagePost=!1;u.dismissButtonOverrides={size:"XS"};return u};
_.c(q$,_.Q);_.I=q$.prototype;_.I.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"}}}};
_.I.detached=function(){this.removeOverlay()};
_.I.setPreview=function(u){_.bi(this.hostElement).querySelector("#preview-picker").imageData=u;this.hasPreview=!0;_.xs(this.hostElement,"yt-backstage-image-select-preview")};
_.I.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var u=_.bi(this.hostElement).querySelector("#dropzone");u.classList.remove("dragover");u.classList.remove("error");_.xs(this.hostElement,"yt-backstage-image-select-cancel")};
_.I.setupOverlay=function(){var u=this.imageUploadEndpoint;this.removeOverlay();if(u&&u.imageValidationInfo){var K=_.bi(this.hostElement).querySelector("#dropzone"),l=_.bi(this.hostElement).querySelector("#select");this.overlay=new $i(u.uploadUrl,u.channelId,u.imageValidationInfo.maxFileSizeMb,u.imageValidationInfo.allowedMaxAspectRatio,K,l,!0);_.kU(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.kU(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.kU(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.kU(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.kU(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.I.removeOverlay=function(){this.overlay&&(_.TY(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.TY(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.TY(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.TY(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.TY(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.I.onDragOver=function(u){var K=_.bi(this.hostElement).querySelector("#dropzone");_.cF(K,"dragover",u.value)};
_.I.onPreview=function(u){this.setPreview(u.value)};
_.I.onImageError=function(u){if(u.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var K;u=(K=this.data)==null?void 0:K.fileSizeError}else if(u.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var l;u=(l=this.data)==null?void 0:l.invalidError}else if(u.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var D;u=(D=this.data)==null?void 0:D.invalidAspectRatioError}else return;this.errorMessage=_.WI(u);_.bi(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.I.onImageAlert=function(u){this.onImageError(u)};
_.I.uploadPromise=function(){var u=this,K=this.overlay&&this.overlay.uploadPromise();if(K)return K.catch(function(){throw Error(u.data?_.WI(u.data.uploadFailureError):"");})};
_.MN.Object.defineProperties(q$.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var u,K;if((u=this.data)==null?0:(K=u.icon)==null?0:K.iconType)return _.fr(this.data.icon.iconType)}}});
q$.prototype.setupOverlay=q$.prototype.setupOverlay;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],q$.prototype,"rendererStamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],q$.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],q$.prototype,"imageUploadEndpoint",void 0);_.g([_.U(),_.N("design:type",Object)],q$.prototype,"errorMessage",void 0);
_.g([_.U(),_.N("design:type",$i)],q$.prototype,"overlay",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],q$.prototype,"hasPreview",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],q$.prototype,"isBackstagePost",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],q$.prototype,"selectionCancel",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],q$.prototype,"previewCancel",null);
_.g([_.R("data.icon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],q$.prototype,"icon",null);_.g([_.U(),_.N("design:type",Object)],q$.prototype,"dismissButtonOverrides",void 0);_.g([_.JU("imageUploadEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q$.prototype,"setupOverlay",null);_.g([_.T({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],q$);
_.F(q$,"ytd-backstage-image-select-renderer",function(){if(CMk!==void 0)return CMk;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return CMk=u},{mode:1});var oas;var Wha;var $l=function(){var u=_.Q.apply(this,arguments)||this;u.selected=!1;return u};
_.c($l,_.Q);_.I=$l.prototype;_.I.computeSelected=function(u){return u==null?void 0:u.selected};
_.I.computeTransform=function(u,K,l){var D,d,C=(d=(D=this.imageContainer)==null?void 0:D.getBoundingClientRect())!=null?d:{width:0,height:0};D=Math.max(C.width/K,C.height/l);l=l*D*u.top;return"translateX("+this.getSignedPosition(K*D*u.left,"X","-")+") translateY("+this.getSignedPosition(l,"Y","-")+")"};
_.I.getSignedPosition=function(u,K,l){return K==="X"&&_.E3("HTML_DIR")==="rtl"?l==="-"?u+"px":u*-1+"px":l==="-"?u*-1+"px":u+"px"};
_.I.onClick=function(){var u;_.xs(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(u=this.data)==null?void 0:u.image)};
_.I.onKeyPress=function(u){if(u.keyCode===13)this.onClick()};
_.MN.Object.defineProperties($l.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?void 0:(K=u.image)==null?void 0:K.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.data)!=null&&u.image){var K;u=(K=this.data)==null?void 0:K.image;return u.previewCoordinates.top!==0||u.previewCoordinates.left!==0?(K=this.computeTransform(u.previewCoordinates,u.naturalWidth,u.naturalHeight),u.naturalHeight>=u.naturalWidth?"width:inherit;transform:"+K+";":"height:inherit;transform:"+K+";"):u.naturalHeight>=u.naturalWidth?"width:inherit;":"height:inherit;"}}}});
$l.prototype.onKeyPress=$l.prototype.onKeyPress;_.g([_.BF(".image-container"),_.N("design:type",HTMLElement)],$l.prototype,"imageContainer",void 0);_.g([_.U(),_.N("design:type",Object)],$l.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.N("design:type",Object)],$l.prototype,"selected",void 0);_.g([_.R("data.image"),_.N("design:type",Object),_.N("design:paramtypes",[])],$l.prototype,"thumbnailUrl",null);
_.g([_.R("data.image","data.image.previewCoordinates"),_.N("design:type",Object),_.N("design:paramtypes",[])],$l.prototype,"thumbnailStyle",null);_.g([_.PF("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$l.prototype,"onKeyPress",null);_.g([_.T({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],$l);
_.F($l,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(Wha!==void 0)return Wha;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Wha=u},{mode:2});var nh=function(u,K,l){l=l===void 0?!1:l;_.wx.call(this);var D=this;this.dropZoneOverlay=new UU(u);this.selectOverlay=l?new fP(K,"multiple_file",["image/*"]):new fP(K,"single_file",["image/*"]);this.handler=new _.tC(this);_.eb(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(K,"click",function(){D.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.c(nh,_.wx);nh.prototype.onChange=function(u){var K;(K=u.files)!=null&&K.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:u.files}))};var rA=function(){var u=_.Q.apply(this,arguments)||this;u.addImageErrorMessage="";u.errorMessage="";u.images=[];u.selectedImageIndex=0;u.modern=_.S("web_modern_buttons");u.maxNumImagesPerPost=_.Sg("max_num_images_per_post_web_ui");u.JSC$15541_imageId=0;return u};
_.c(rA,_.Q);_.I=rA.prototype;_.I.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.xs(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.I.observeDragToReorder=function(){var u=this;if(this.showImagesPreview){var K,l=OGk(_.xx.getInstance(),(K=this.data)==null?void 0:K.dragToReorderTooltip);_.YL.addLowPriorityJob(function(){_.ay(u.hostElement,l,u.thumbnailDragDropArea)})}};
_.I.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}}};
_.I.computeThumbnail=function(u){return(u==null?void 0:u.localImageSrc)||void 0};
_.I.onRendererstamperFinished=function(){_.$F0(this.ytReorderableBehavior,_.bi(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.bi(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.I.handleDrop=function(u){var K=u.currDragItem;if(K!=null&&K.data){u=this.images[this.selectedImageIndex];var l=K.data.image,D=this.images.indexOf(l)||0;K=_.Fq(K.parentNode.children,K);this.images.splice(D,1);this.images.splice(K,0,l);this.images=[].concat(_.Am(this.images));this.selectedImageIndex=this.images.indexOf(u)}};
_.I.setUpImagePicker=function(){var u=this.imageUploadEndpoint;u&&u.imageValidationInfo&&(this.uploadManager=new oH(u.uploadUrl,u.channelId),this.initialPicker||(this.initialPicker=new nh(this.dropzone,this.selectLink,!0),_.kU(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new nh(this.addImageButtonContainer,this.addImageSelectButton),_.kU(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.kU(this.JSC$15541_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.kU(this.JSC$15541_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.kU(_.bi(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.I.detached=function(){this.initialPicker&&(_.TY(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.TY(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.I.onInitialSelectImages=function(u){var K=this;return _.H(function(l){return l.yield(K.onSelectImages(u,!1),0)})};
_.I.onAddImage=function(u){var K=this;return _.H(function(l){return l.yield(K.onSelectImages(u,!0),0)})};
_.I.onSelectImages=function(u,K){var l=this,D,d,C,W,M,q,v,G,t,x,O,a,f,B,p,V,m,Z,A,h;return _.H(function(C9){switch(C9.nextAddress){case 1:K?l.addImageErrorMessage="":(l.images=[],l.errorMessage="");D=u.detail;d=l.validateImages([].concat(_.Am(D)));if(d!=="")return K?l.addImageErrorMessage=d:l.errorMessage=d,C9.return();C=[].concat(_.Am(D)).map(function(Wo){return(new MG(l.maxAspectRatio,!1,!0)).transform(Wo)});
return C9.yield(Promise.allSettled(C),2);case 2:W=C9.yieldResult,M=_.y(W.entries()),q=M.next();case 3:if(q.done){C9.jumpTo(5);break}v=q.value;G=_.y(v);t=G.next().value;x=G.next().value;O=t;a=x;if(a.status!=="fulfilled"){p=B=f=void 0;K?l.addImageErrorMessage=_.WI((f=l.data)==null?void 0:f.invalidError):l.errorMessage=l.errorMessage===""?_.WI((B=l.data)==null?void 0:B.invalidError):_.WI((p=l.data)==null?void 0:p.multiFileError);C9.jumpTo(4);break}V=a.value;V.cropped&&_.xs(l.hostElement,"yt-backstage-multi-image-cropped");
if(V.invalidAspectRatio){A=Z=m=void 0;K?l.addImageErrorMessage=_.WI((m=l.data)==null?void 0:m.invalidAspectRatioError):l.errorMessage=l.errorMessage===""?_.WI((Z=l.data)==null?void 0:Z.invalidAspectRatioError):_.WI((A=l.data)==null?void 0:A.multiFileError);C9.jumpTo(4);break}return C9.yield(MIL(l.JSC$15541_imageId,u.detail[O],V.transformedData),8);case 8:h=C9.yieldResult,l.images.push(h),l.JSC$15541_imageId++;case 4:q=M.next();C9.jumpTo(3);break;case 5:if(l.errorMessage!==""||l.addImageErrorMessage!==
"")return C9.return();K?h70(l.uploadManager,[l.images[l.images.length-1]]):h70(l.uploadManager,l.images);l.images=[].concat(_.Am(l.images));l.selectedImageIndex=K?Math.max(l.images.length-1,0):0;_.xs(l.hostElement,"yt-backstage-multi-image-select");_.TG(C9)}})};
_.I.onThumbnailClick=function(u){if(u=u.event_.detail)this.selectedImageIndex=this.images.indexOf(u)};
_.I.validateImages=function(u){if(u.length>this.maxNumImagesPerPost){var K;return _.WI((K=this.data)==null?void 0:K.multiImageExceedMaxImageCountError)}var l=1048576*this.maxFileSizeMb;u=u.filter(function(C){return C.size>l}).length;
if(u===0)return"";var D,d;u=u>1?(D=this.data)==null?void 0:D.multiFileError:(d=this.data)==null?void 0:d.fileSizeError;return _.WI(u)};
_.I.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Am(this.images));this.selectedImageIndex=0};
_.I.repositionImage=function(u){this.images[this.selectedImageIndex].previewCoordinates=u.event_.detail;this.images=[].concat(_.Am(this.images))};
_.I.getAllUploadStatuses=function(){var u=this,K,l,D,d;return _.H(function(C){if(C.nextAddress==1)return C.yield(u.uploadManager.getAllUploadStatuses(),2);K=C.yieldResult;l=_.y(K);for(D=l.next();!D.done;D=l.next())if(d=D.value,d.encryptedBlobId===void 0)return C.return(EGC(u.uploadManager));return C.return(K)})};
_.I.hasImages=function(){return this.images.length>0};
_.I.cancel=function(){for(var u=this.uploadManager,K=_.y(u.imagesUploadData),l=K.next();!l.done;l=K.next())u.cancel(l.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.xs(this.hostElement,"yt-backstage-multi-image-cancel")};
_.MN.Object.defineProperties(rA.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.imageUploadEndpoint)==null?void 0:(K=u.imageValidationInfo)==null?void 0:K.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.imageUploadEndpoint)==null?void 0:(K=u.imageValidationInfo)==null?void 0:K.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var u,K;if((u=this.data)==null?0:(K=u.icon)==null?0:K.iconType)return _.fr(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.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 u=this;return(this.images||[]).map(function(K,l){return{renderer:{image:K,selected:l===u.selectedImageIndex}}})}}});
rA.prototype.setUpImagePicker=rA.prototype.setUpImagePicker;rA.prototype.onRendererstamperFinished=rA.prototype.onRendererstamperFinished;rA.prototype.observeDragToReorder=rA.prototype.observeDragToReorder;rA.prototype.observeAddImageError=rA.prototype.observeAddImageError;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],rA.prototype,"rendererStamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.n6H),_.N("design:type",Object)],rA.prototype,"ytReorderableBehavior",void 0);_.g([_.BF("#dropzone"),_.N("design:type",HTMLElement)],rA.prototype,"dropzone",void 0);_.g([_.BF("#select-link"),_.N("design:type",HTMLElement)],rA.prototype,"selectLink",void 0);_.g([_.BF("#thumbnail-drag-drop-area"),_.N("design:type",HTMLElement)],rA.prototype,"thumbnailDragDropArea",void 0);_.g([_.BF("#add-image-button-container"),_.N("design:type",HTMLElement)],rA.prototype,"addImageButtonContainer",void 0);
_.g([_.BF("#add-image-button"),_.N("design:type",HTMLElement)],rA.prototype,"addImageSelectButton",void 0);_.g([_.BF("#image-preview-container"),_.N("design:type",Object)],rA.prototype,"JSC$15541_imagePreviewContainer",void 0);_.g([_.U(),_.N("design:type",Object)],rA.prototype,"addImageErrorMessage",void 0);_.g([_.U(),_.N("design:type",Object)],rA.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],rA.prototype,"errorMessage",void 0);
_.g([_.U(),_.N("design:type",Object)],rA.prototype,"imageUploadEndpoint",void 0);_.g([_.U(),_.N("design:type",Array)],rA.prototype,"images",void 0);_.g([_.U(),_.N("design:type",nh)],rA.prototype,"initialPicker",void 0);_.g([_.U(),_.N("design:type",nh)],rA.prototype,"addImagePicker",void 0);_.g([_.U(),_.N("design:type",oH)],rA.prototype,"uploadManager",void 0);_.g([_.U(),_.N("design:type",Object)],rA.prototype,"selectedImageIndex",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],rA.prototype,"modern",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],rA.prototype,"maxNumImagesPerPost",void 0);_.g([_.R("imageUploadEndpoint"),_.N("design:type",Number),_.N("design:paramtypes",[])],rA.prototype,"maxAspectRatio",null);_.g([_.R("imageUploadEndpoint"),_.N("design:type",Number),_.N("design:paramtypes",[])],rA.prototype,"maxFileSizeMb",null);
_.g([_.R("data.icon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],rA.prototype,"dropIcon",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rA.prototype,"selectionCancel",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rA.prototype,"previewCancel",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rA.prototype,"dataForAddImageButton",null);
_.g([_.R("errorMessage"),_.N("design:type",String),_.N("design:paramtypes",[])],rA.prototype,"dropzoneClass",null);_.g([_.R("images"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rA.prototype,"showImagesPreview",null);_.g([_.R("images"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rA.prototype,"containMaxImages",null);_.g([_.JU("addImageErrorMessage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rA.prototype,"observeAddImageError",null);
_.g([_.JU("showImagesPreview"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rA.prototype,"observeDragToReorder",null);_.g([_.R("images","selectedImageIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],rA.prototype,"selectedImageData",null);_.g([_.R("images","selectedImageIndex"),_.N("design:type",Array),_.N("design:paramtypes",[])],rA.prototype,"thumbnailRenderers",null);
_.g([_.PF("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rA.prototype,"onRendererstamperFinished",null);_.g([_.JU("imageUploadEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rA.prototype,"setUpImagePicker",null);_.g([_.T({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],rA);
_.F(rA,"ytd-backstage-multi-image-select-renderer",function(){if(oas!==void 0)return oas;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return oas=u},{mode:1});var HFa;var MTk;var qOS;var vc=function(){var u=_.Q.apply(this,arguments)||this;u.boundCaptureFocus=function(K){u.onCaptureFocus(K)};
return u};
_.c(vc,_.Q);_.I=vc.prototype;_.I.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.I.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.I.onCaptureFocus=function(u){_.WF(u).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.I.getIconType=function(u){return u?"yt-icons:"+u.toLowerCase():null};
_.I.onSelect=function(){var u;if((u=this.data)==null?0:u.onSelectCommand)if(_.S("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var K;((K=_.b(this.data.onSelectCommand.commandMetadata,_.nN))==null?0:K.url)?_.xs(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.GB().resolve(_.t9).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.MN.Object.defineProperties(vc.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.WI(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}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],vc.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],vc.prototype,"data",void 0);_.g([_.BF("#item"),_.N("design:type",HTMLElement)],vc.prototype,"item",void 0);_.g([_.R("data.label"),_.N("design:type",String),_.N("design:paramtypes",[])],vc.prototype,"label",null);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],vc.prototype,"value",null);_.g([_.T({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],vc);
_.F(vc,"ytd-privacy-dropdown-item-renderer",function(){if(qOS!==void 0)return qOS;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return qOS=u},{mode:1});var Ge=function(){var u=_.Q.apply(this,arguments)||this;u.value="";u.label="";u.disabled=!1;return u};
_.c(Ge,_.Q);_.I=Ge.prototype;_.I.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"}}}};
_.I.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.I.dataChanged=function(){this.reset()};
_.I.valueChanged=function(){var u;if(this.value&&(u=this.data)!=null&&u.entries){u=_.y(this.data.entries);for(var K=u.next();!K.done;K=u.next())if((K=this.getRendererForEntry(K.value))&&this.getItemRendererValue(K)===this.value){this.label=this.ytComponentBehavior.getSimpleString(K.label);break}}};
_.I.setInitialLabel=function(){if(this.data&&this.data.entries)for(var u=_.y(this.data.entries),K=u.next();!K.done;K=u.next())if(K=this.getRendererForEntry(K.value)){if(K.isSelected){this.label=this.ytComponentBehavior.getSimpleString(K.label);break}this.data.label&&(this.label=this.data.label)}};
_.I.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var u=_.y(this.data.entries),K=u.next();!K.done;K=u.next()){K=this.getRendererForEntry(K.value);var l=void 0;if((l=K)==null?0:l.isSelected)return this.getItemRendererValue(K)||-1}return-1};
_.I.getItemRendererValue=function(u){return"stringValue"in u||"int32Value"in u?u.stringValue||u.int32Value||null:null};
_.I.getRendererForEntry=function(u){return u.dropdownItemRenderer||u.privacyDropdownItemRenderer||u.navigationDropdownItemRenderer||null};
_.I.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("value-changed",this.value))};
_.I.updateValueFromBinding=function(u){this.value=u.detail.value};
Ge.prototype.valueChangedForBinding=Ge.prototype.valueChangedForBinding;Ge.prototype.valueChanged=Ge.prototype.valueChanged;Ge.prototype.dataChanged=Ge.prototype.dataChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Ge.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ge.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],Ge.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Ge.prototype,"value",void 0);_.g([_.U(),_.N("design:type",Object)],Ge.prototype,"label",void 0);_.g([_.BF("#entries"),_.N("design:type",Object)],Ge.prototype,"entries",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ge.prototype,"disabled",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ge.prototype,"dataChanged",null);
_.g([_.wn("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ge.prototype,"valueChanged",null);_.g([_.JU("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ge.prototype,"valueChangedForBinding",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Ge);
_.F(Ge,"ytd-flat-dropdown-renderer",function(){if(MTk!==void 0)return MTk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return MTk=u},{mode:1});var $Oa;var tL=function(){var u=_.Q.apply(this,arguments)||this;u.quizOptions=[];u.explanationPlaceholderText="";u.optionPlaceholderText="";u.correctAnswerIndex=-1;u.isMarkAnswerTooltipShown=!1;u.timer=0;return u};
_.c(tL,_.Q);_.I=tL.prototype;_.I.dataChanged=function(){this.optionPlaceholderText=_.WI(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.WI(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.I.onMarkCorrectAnswer=function(u){var K,l=((K=this.quizOptions[this.correctAnswerIndex])==null?void 0:K.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[u.model.index]=Object.assign({},this.quizOptions[u.model.index],{explanationText:l,isCorrect:!0});this.correctAnswerIndex=u.model.index;this.quizOptions=[].concat(_.Am(this.quizOptions))};
_.I.updatePlaceholderTexts=function(){for(var u=!1,K=[],l=0;l<this.quizOptions.length;l++){var D=this.optionPlaceholderText+" "+(l+1),d=void 0;((d=this.quizOptions[l])==null?void 0:d.placeholderText)!==D?(u=!0,K.push(Object.assign({},this.quizOptions[l],{placeholderText:D}))):K.push(this.quizOptions[l])}u&&(this.quizOptions=K);this.isValid()?_.xs(this.hostElement,"yt-commentbox-post-enable"):_.xs(this.hostElement,"yt-commentbox-post-disable")};
_.I.getSimpleString=function(u){return _.WI(u)};
_.I.createQuizOptions=function(u){var K=[],l;u=(l=u==null?void 0:u.minQuizOptions)!=null?l:0;for(l=0;l<u;l++)K.push(this.createQuizOption());return K};
_.I.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Am(this.quizOptions),[this.createQuizOption()]))};
_.I.onInput=function(){this.quizOptions=[].concat(_.Am(this.quizOptions))};
_.I.onExplanationInput=function(){_.xs(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.I.onRemoveQuizOption=function(u){this.quizOptions.splice(u.model.index,1);u.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:u.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.Am(this.quizOptions));this.quizOptions.length===0&&_.xs(this.hostElement,"yt-quiz-attachment-dismiss")};
_.I.updateHintRenderer=function(){var u=this;clearTimeout(this.timer);this.timer=setTimeout(function(){u.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.I.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var u=0,K=0,l=_.y(this.quizOptions),D=l.next();!D.done;D=l.next()){D=D.value;var d=void 0;if(((d=D.optionText)==null?void 0:d.trim())!==""||D.isCorrect){D.isCorrect&&K++;d=void 0;if(this.hasCustomOptionText&&((d=D.optionText)==null?void 0:d.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;u++}}return u>=
Number(this.editorInfo.minQuizOptions)&&K===1};
_.I.getPostCreateOptions=function(){for(var u=[],K=_.y(this.quizOptions),l=K.next();!l.done;l=K.next()){l=l.value;var D=void 0;((D=l.optionText)==null?void 0:D.trim())!==""&&u.push({pollOption:{text:l.optionText,explanation:l.explanationText},isCorrect:l.isCorrect})}return u};
_.I.getExplanationText=function(){var u;return((u=this.quizOptions[this.correctAnswerIndex])==null?void 0:u.explanationText)||""};
_.I.maybeDisplayMarkAnswerEduToolTip=function(){var u,K,l,D,d,C,W;this.shouldShowMarkAnswerTooltip()&&((u=this.editorInfo)==null?0:(K=u.markAnswerButton)==null?0:(l=K.buttonRenderer)==null?0:(D=l.hint)==null?0:(d=D.hintRenderer)==null?0:(C=d.content)==null?0:(W=C.bubbleHintRenderer)==null?0:W.text)&&(_.xx.getInstance(),u=S_(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,(u==null?void 0:u.length)>0&&this.optionSelectors&&_.Jl(u[0],this.optionSelectors[0]))};
_.I.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var u=0,K=_.y(this.quizOptions),l=K.next();!l.done;l=K.next()){l=l.value;var D=void 0;((D=l.optionText)==null?void 0:D.trim())!==""&&u++;if(l.isCorrect)return!1}return u<2?!1:!0};
_.I.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.I.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.I.updateOptionTextFromBinding=function(u){if(u.target){var K=Array.from(_.bi(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(u.target);if(K>=0){var l;this.quizOptions[K].optionText=(l=u.detail.value)!=null?l:""}}};
_.MN.Object.defineProperties(tL.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var u,K,l=(u=this.editorInfo)==null?void 0:(K=u.addOptionButton)==null?void 0:K.buttonRenderer;l&&(l.style="STYLE_SUGGESTIVE",l.size="SIZE_SMALL",l.isDisabled=!this.isAllowedToAddOption);return(l==null?0:l.text)?l:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var u,K;return this.quizOptions.length<((K=(u=this.editorInfo)==null?void 0:u.maxQuizOptions)!=null?K:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(u){var K;return(K=u.optionText)==null?void 0:K.trim()})}}});
tL.prototype.updatePlaceholderTexts=tL.prototype.updatePlaceholderTexts;tL.prototype.dataChanged=tL.prototype.dataChanged;_.g([_.U(),_.N("design:type",Object)],tL.prototype,"editorInfo",void 0);_.g([_.U(),_.N("design:type",Array)],tL.prototype,"quizOptions",void 0);_.g([_.U(),_.N("design:type",Object)],tL.prototype,"explanationPlaceholderText",void 0);_.g([_.pg(".option-selector-button"),_.N("design:type",Array)],tL.prototype,"optionSelectors",void 0);
_.g([_.wn("editorInfo"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tL.prototype,"dataChanged",null);_.g([_.R("editorInfo","isAllowedToAddOption","quizOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],tL.prototype,"addAnswerButton",null);_.g([_.R("editorInfo","quizOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],tL.prototype,"isAllowedToAddOption",null);
_.g([_.wn("quizOptions"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tL.prototype,"updatePlaceholderTexts",null);_.g([_.R("quizOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],tL.prototype,"hasCustomOptionText",null);_.g([_.T({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],tL);
_.F(tL,"ytd-backstage-quiz-editor-renderer",function(){if($Oa!==void 0)return $Oa;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return $Oa=u},{mode:2});var nam;var roN=(Tk.FIRSTDAYOFWEEK+1)%7;var va0;var GUA=[],tTB=0,xOR=0;tTB=0;xOR=24;if(.25*(xOR-tTB)<0)va0=[];else{for(var SO0=tTB;SO0<xOR;SO0+=.25)GUA.push(SO0);va0=GUA}var bFm=va0.map(function(u){u=u*60*60;return{secondsSinceMidnight:u,text:(new yR(7)).format(new Date(0,0,0,0,0,u))}});var OFC;var xl=function(){var u=_.Q.apply(this,arguments)||this;u.skipNextOpenDialog=!1;u.errorMessage="";return u};
_.c(xl,_.Q);_.I=xl.prototype;_.I.attached=function(){var u=this,K=new MutationObserver(function(){u.JSC$15584_calendarMain.scrollHeight>0&&(K.disconnect(),u.calendarConfig&&u.calendarConfig.selectedDate&&u.scrollToDate())});
K.observe(this.JSC$15584_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){K.disconnect()},1E3)};
_.I.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.I.onDateTextChange=function(){if(this.calendarConfig){var u=this.validateDateText();u.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(u.details)):this.textbox.setAttribute("invalid","")}};
_.I.handleDayClick=function(u){u.model.day.date&&(this.commitDate(u.model.day.date),this.dialog.close())};
_.I.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var u=Owq(this.calendarConfig.selectedDate,this.renderData);u!==void 0&&this.JSC$15584_calendarMain.scrollToIndex(u)}};
_.I.scrollToNextMonth=function(){this.JSC$15584_calendarMain.scrollToIndex(this.JSC$15584_calendarMain.firstVisibleIndex+1)};
_.I.scrollToPrevMonth=function(){this.JSC$15584_calendarMain.firstVisibleIndex===0&&this.JSC$15584_calendarMain.scrollTo(0,0);this.JSC$15584_calendarMain.scrollToIndex(this.JSC$15584_calendarMain.firstVisibleIndex-1)};
_.I.onFormSubmit=function(u){u.preventDefault();this.calendarConfig&&(u=this.validateDateText(),u.isValid&&(this.commitDate(u.details),this.dialog.close()))};
_.I.onEscOrClickingOutside=function(u){u=u.detail.path&&!!u.detail.path.length&&u.detail.path[0];if(u.classList.contains("ytd-calendar-date-picker")){u===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var K=0;K<this.dropdownButton.children.length;K++)this.dropdownButton.children[K]===u&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}u=this.textbox.value!==this.dateText;K=this.validateDateText();u&&K.isValid&&this.commitDate(K.details);this.dialog.close();this.textbox.value=
this.dateText};
_.I.commitDate=function(u){this.calendarConfig&&(this.set("calendarConfig.selectedDate",u),_.xs(this.hostElement,"ytd-calendar-date-selected",u))};
_.I.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var u=this.textbox.value;var K=new Date;u=(new gtn(2)).parse(u,K,{validate:!0})===u.length?SEZ(K):void 0;if(!u)return this.errorMessage=_.QQ("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};K=this.calendarConfig.start;var l=this.calendarConfig.end;if(rfL(u,K))return this.errorMessage=_.QQ("ENTER_DATE_OR_LATER",{allowed_date:x4n(K)}),{isValid:!1,details:void 0};if(rfL(l,u))return this.errorMessage=
_.QQ("ENTER_DATE_OR_EARLIER",{allowed_date:x4n(l)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:u}};
_.MN.Object.defineProperties(xl.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?x4n(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var u=this.calendarConfig,K=[],l=0;l<7;l++)K.push(Tk.NARROWWEEKDAYS[(l+roN)%7]);l=[];for(var D=new Date(u.start.year,u.start.month);D.getFullYear()<u.end.year||D.getFullYear()===u.end.year&&D.getMonth()<=u.end.month;){var d=l,C=d.push,W=D.getFullYear(),M=D.getMonth(),q=u,v=void 0,G=[],t=Object.freeze({extraCssClass:"invisible",debugClass:""}),x=new Date(W,M),O=SEZ(x);x=x.getDay();for(var a=SEZ(new Date);O.month===
M;){x!==roN&&v||(v=Array.from({length:7}).fill(t),G.push(v));var f={date:{year:W,month:M,day:O.day},extraCssClass:"",debugClass:""};q.selectedDate&&f.date&&nty(f.date,q.selectedDate)&&(f.extraCssClass+=" selected");if(rfL(O,q.start)||rfL(q.end,O))f.extraCssClass+=" disabled";nty(O,a)&&(f.extraCssClass+=" today");f.extraCssClass=f.extraCssClass.trim();v[(x-roN+7)%7]=f;O=G0n(O);x=(x+1)%7}C.call(d,{weeks:G,monthLabel:Tk.SHORTMONTHS[M]+" "+W,year:W,month:M,monthLabelExtraCssClass:G[0][2]===t?"shift-down-label":
""});D.setMonth(D.getMonth()+1)}return{months:l,daysOfWeekLabel:K}}}}});
xl.prototype.onEscOrClickingOutside=xl.prototype.onEscOrClickingOutside;xl.prototype.scrollToDate=xl.prototype.scrollToDate;_.g([_.U(),_.N("design:type",Object)],xl.prototype,"calendarConfig",void 0);_.g([_.U(),_.N("design:type",Object)],xl.prototype,"skipNextOpenDialog",void 0);_.g([_.U(),_.N("design:type",Object)],xl.prototype,"errorMessage",void 0);_.g([_.BF("#textbox"),_.N("design:type",HTMLInputElement)],xl.prototype,"textbox",void 0);
_.g([_.BF("#calendar-dialog"),_.N("design:type",Object)],xl.prototype,"dialog",void 0);_.g([_.BF("#calendar-main"),_.N("design:type",Object)],xl.prototype,"JSC$15584_calendarMain",void 0);_.g([_.BF("#date-picker"),_.N("design:type",HTMLElement)],xl.prototype,"dropdownButton",void 0);_.g([_.R("calendarConfig.selectedDate"),_.N("design:type",String),_.N("design:paramtypes",[])],xl.prototype,"dateText",null);
_.g([_.R("calendarConfig","calendarConfig.selectedDate"),_.N("design:type",Object),_.N("design:paramtypes",[])],xl.prototype,"renderData",null);_.g([_.JU("renderData","calendarConfig.selectedDate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xl.prototype,"scrollToDate",null);_.g([_.PF("iron-overlay-canceled"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],xl.prototype,"onEscOrClickingOutside",null);
_.g([_.E9({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],xl);
_.F(xl,"ytd-calendar-date-picker",function(){if(OFC!==void 0)return OFC;var u=document.createElement("template");_.z(u,'\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" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return OFC=u},{mode:2});var coa=_.QQ("UTC_OFFSET_FORMAT",{utc_offset:(new yR("Z")).format(new Date)}),aWN=(new Date).getTimezoneOffset()*-60,zhR=new Date,ehS,Rhw=I7(zhR.getTimezoneOffset());ehS=GQw(xnm(Rhw,zhR));var UOR=_.QQ("LOCAL_TIME_GMT_LABEL",{gmt_text:ehS.replace("+0","+").replace("-0","-").replace(":00","")}),SP=function(){var u=_.Q.apply(this,arguments)||this;u.selectedTimeIndex=0;u.selectedTimezoneIndex=0;u.timeOfDayOptions=bFm;return u};
_.c(SP,_.Q);_.I=SP.prototype;_.I.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var u=tI9();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=u,this.selectedTimeIndex=0;else{var K=bwR(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},u,{selectedDate:K.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(l){return l.secondsSinceMidnight===K.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.I.onDatePicked=function(u){this.selectedDate=u.detail};
_.I.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.xs(this.hostElement,"ytd-date-time-selection-cancelled")};
_.I.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var u=this.selectedDate;u=new Date(u.year,u.month,u.day);_.xs(this.hostElement,"ytd-date-time-selection-update",Math.floor(u.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+u.getTimezoneOffset()*60))}};
_.I.getTimezoneFormat=function(u){return u.localizedDisplayText?u.localizedDisplayText:_.QQ("TIMEZONE_FORMAT",{utc_offset_text:""+u.localizedUtcOffset,city_name:""+u.localizedName})};
_.I.updateSelectedTimeIndexFromBinding=function(u){this.selectedTimeIndex=u.detail.value};
_.I.updateSelectedTimezoneIndexFromBinding=function(u){this.selectedTimezoneIndex=u.detail.value};
_.MN.Object.defineProperties(SP.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var u=this.data.timezoneOptions;var K={name:"Etc/Unknown",localizedName:_.QQ("LOCAL_TIME_LABEL"),localizedUtcOffset:coa,utcOffsetSec:""+aWN,localizedDisplayText:UOR};u?u.length&&u[0].name!==K.name&&(u[0].localizedDisplayText||(K.localizedDisplayText=""),u.unshift(K)):u=[K];return u}}},
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]}}});
SP.prototype.onDateTimeTimezoneChange=SP.prototype.onDateTimeTimezoneChange;SP.prototype.onDatePicked=SP.prototype.onDatePicked;SP.prototype.updateDefaultSelectedValue=SP.prototype.updateDefaultSelectedValue;_.g([_.U(),_.N("design:type",Object)],SP.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],SP.prototype,"calendarConfig",void 0);_.g([_.U(),_.N("design:type",Object)],SP.prototype,"selectedDate",void 0);_.g([_.U(),_.N("design:type",Object)],SP.prototype,"selectedTimeIndex",void 0);
_.g([_.U(),_.N("design:type",Object)],SP.prototype,"selectedTimezoneIndex",void 0);_.g([_.BF("#time-listbox"),_.N("design:type",Object)],SP.prototype,"timeListBox",void 0);_.g([_.BF("#timezone-listbox"),_.N("design:type",Object)],SP.prototype,"timezoneListBox",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],SP.prototype,"rendererStamperBehavior",void 0);_.g([_.R("data.timezoneOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],SP.prototype,"timeZones",null);
_.g([_.wn("data","timeZones"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SP.prototype,"updateDefaultSelectedValue",null);_.g([_.R("selectedTimezoneIndex","timeZones"),_.N("design:type",Object),_.N("design:paramtypes",[])],SP.prototype,"selectedTimezone",null);_.g([_.R("selectedTimeIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],SP.prototype,"selectedTime",null);
_.g([_.PF("ytd-calendar-date-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],SP.prototype,"onDatePicked",null);_.g([_.JU("selectedTimezone","selectedTime","selectedDate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SP.prototype,"onDateTimeTimezoneChange",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],SP);
_.F(SP,"ytd-date-time-picker-renderer",function(){if(nam!==void 0)return nam;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return nam=u},{mode:1});var fWw;var bN=function(){var u=_.Q.apply(this,arguments)||this;u.boundOnTapDismissButton=function(){u.dismissTapHandler()};
u.dismissButtonOverrides={size:"XS"};return u};
_.c(bN,_.Q);bN.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}}}}}};
bN.prototype.dismissTapHandler=function(){_.xs(this.hostElement,"yt-backstage-attachment-dismissed")};
bN.prototype.computeAttachmentType=function(u){return u?u.backstageImageRenderer?"image":u.videoRenderer?"video":"none":"none"};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],bN.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],bN.prototype,"attachmentPreview",void 0);_.g([_.U(),_.N("design:type",Object)],bN.prototype,"dismissButton",void 0);_.g([_.U(),_.N("design:type",Object)],bN.prototype,"boundOnTapDismissButton",void 0);
_.g([_.U(),_.N("design:type",Object)],bN.prototype,"dismissButtonOverrides",void 0);_.g([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.N("design:type",String)],bN.prototype,"attachmentType",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],bN);
_.F(bN,"ytd-backstage-dismissable-attachment",function(){if(fWw!==void 0)return fWw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return fWw=u},{mode:1});var QvR;var O_=function(){var u=_.Q.apply(this,arguments)||this;u.selectedVideoId=void 0;u.picker=void 0;u.dismissButtonOverrides={size:"XS"};u.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return u};
_.c(O_,_.Q);_.I=O_.prototype;_.I.onServiceRequestCompleted=function(u){u.stopPropagation()};
_.I.handleAddVideoPreviewAction=function(u){u=this.get("addVideoPreviewAction",u);this.onGetVideoPreviewSuccess(u)};
_.I.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}}}}}};
_.I.onLaunchVideoPicker=function(u){var K=this,l=_.WI(this.get("addVideoLinkAction.title",u)),D=this.get("addVideoLinkAction.onePickHostId",u);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",u);D&&(this.picker||(l=_.$7S(_.I1H(D).setTitle(l).addView(Wg0()).addView(onN()),function(d){K.onPickVideo(d)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",u)||l.addView("youtube"),this.picker=l.build()),this.picker.setVisible(!0))};
_.I.onPickVideo=function(u){if(u)if(u.action==="cancel")_.xs(this.hostElement,"yt-video-link-button-cancel");else if(u.action==="picked"){u=u.docs;if(!u||u.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(u=(u==null?0:u.length)?u[0]:void 0)?u.id:void 0;this.setVideoPreview()}};
_.I.setVideoPreview=function(){var u=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){u.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.I.onGetVideoPreviewSuccess=function(u){if(u&&u.videoPreview&&u.cancelButton)this.videoPreview=u.videoPreview,this.cancelButton=u.cancelButton,_.xs(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.I.onGetVideoPreviewError=function(){this.cancel()};
_.I.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.xs(this.hostElement,"yt-video-link-cancel")};
_.I.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
O_.prototype.onServiceRequestCompleted=O_.prototype.onServiceRequestCompleted;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],O_.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],O_.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],O_.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],O_.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],O_.prototype,"videoPreview",void 0);_.g([_.U(),_.N("design:type",Object)],O_.prototype,"cancelButton",void 0);_.g([_.U(),_.N("design:type",Object)],O_.prototype,"getVideoPreviewCommand",void 0);_.g([_.U(),_.N("design:type",Object)],O_.prototype,"dismissButtonOverrides",void 0);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],O_.prototype,"onServiceRequestCompleted",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],O_);
_.F(O_,"ytd-backstage-video-link-attachment",function(){if(QvR!==void 0)return QvR;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return QvR=u},{mode:1});var PMm;var JoA;var jvw;var cc=function(){return _.Q.apply(this,arguments)||this};
_.c(cc,_.Q);cc.prototype.dataChanged=function(){this.active=!1};
cc.prototype.onTap=function(){_.xs(this.hostElement,"yt-select-emoji-suggestion",this.data)};
cc.prototype.identity=function(u){return u};
_.MN.Object.defineProperties(cc.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D;if((u=this.data)==null?0:(K=u.image)==null?0:(l=K.thumbnails)==null?0:(D=l[0])==null?0:D.url)return u=this.data.image.thumbnails[0].url,u.startsWith("data:image/svg+xml")?ku(u):_.ES(u)}}});
cc.prototype.dataChanged=cc.prototype.dataChanged;_.g([_.U(),_.N("design:type",Object)],cc.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],cc.prototype,"active",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cc.prototype,"dataChanged",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],cc.prototype,"imageSrc",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],cc);
_.F(cc,"ytd-emoji-suggestion",function(){if(jvw!==void 0)return jvw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return jvw=u},{mode:1});var B9w=/.*([:@#].*?)$/,aH=function(){var u=_.Q.apply(this,arguments)||this;u.suggestions=[];u.suggestionIndex=-1;u.JSC$15612_lastSuggestionRange=null;return u};
_.c(aH,_.Q);_.I=aH.prototype;_.I.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.I.getSuggestions=function(u){var K=[],l=rjm(this.emojiManager,u.substr(0,3));if(l)for(var D in l)if(D.toLocaleLowerCase().indexOf(u)===0){var d=l[D];if(d&&d.emojiId){d=dj(this.emojiManager,d.emojiId);var C=void 0,W=void 0,M=void 0,q=void 0,v=((C=d)==null?0:C.isCustomEmoji)?(W=d)==null?void 0:(M=W.shortcuts)==null?void 0:M[0]:(q=d)==null?void 0:q.emojiId;C=void 0;K.push({suggestion:{image:(C=d)==null?void 0:C.image,alt:v,text:D}});if(K.length>=64)break}}return K?K.sort(function(G,t){return t.suggestion.text<
G.suggestion.text?-1:t.suggestion.text===G.suggestion.text?0:1}):null};
_.I.insertSuggestion=function(u){_.xs(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15612_lastSuggestionRange,text:u.alt});this.dropdown.opened=!1};
_.I.updateSuggestionsAtCaret=function(u){this.updateSuggestions(u,this.retrieveTextBeforeRange(u))};
_.I.offsetStartOfRangeBy=function(u,K){u.startOffset>=K&&u.setStart(u.startContainer,u.startOffset-K)};
_.I.updateSuggestions=function(u,K){var l=this;this.JSC$15612_lastSuggestionRange&&(this.JSC$15612_lastSuggestionRange.detach(),this.JSC$15612_lastSuggestionRange=null);if((K=B9w.exec(K))&&K.length&&(K=K[K.length-1].toLocaleLowerCase(),K.length>2||K===":_")&&(this.offsetStartOfRangeBy(u,K.length),this.JSC$15612_lastSuggestionRange=u,(u=this.getSuggestions(K))&&u.length)){this.suggestions=u;_.W_(this,function(){l.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(u.length-1);return}this.dropdown.opened=!1};
_.I.onKeyDown=function(u){if(this.dropdown.opened)switch(u.key){case "Escape":this.dropdown.opened=!1;u.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);u.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);u.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),u.preventDefault()}};
_.I.onKeyUp=function(u,K){switch(u.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(K);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(K)}};
_.I.onKeyPress=function(u){u.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),u.preventDefault())};
_.I.changeSuggestionIndex=function(u){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(u+this.suggestions.length)%this.suggestions.length,u=this.dropdownContent.children[this.suggestionIndex],u.active=!0,this.dropdownContent.scrollTop=u.offsetTop)};
_.I.retrieveTextBeforeRange=function(u){var K=u.startContainer;return K&&K.nodeType===Node.TEXT_NODE?K.textContent.substr(0,u.startOffset):""};
aH.prototype.onKeyPress=aH.prototype.onKeyPress;aH.prototype.onKeyUp=aH.prototype.onKeyUp;aH.prototype.onKeyDown=aH.prototype.onKeyDown;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Array)],aH.prototype,"suggestions",void 0);_.g([_.U(),_.N("design:type",_.lK)],aH.prototype,"emojiManager",void 0);_.g([_.U(),_.N("design:type",Number)],aH.prototype,"verticalSuggestionsOffset",void 0);
_.g([_.BF("#dropdown"),_.N("design:type",Object)],aH.prototype,"dropdown",void 0);_.g([_.BF("#dropdown-content"),_.N("design:type",HTMLDivElement)],aH.prototype,"dropdownContent",void 0);_.g([_.PF("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],aH.prototype,"onKeyDown",null);_.g([_.PF("keyup"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent,Range]),_.N("design:returntype")],aH.prototype,"onKeyUp",null);
_.g([_.PF("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],aH.prototype,"onKeyPress",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-emoji-input"})],aH);
_.F(aH,"ytd-emoji-input",function(){if(JoA!==void 0)return JoA;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return JoA=u},{mode:2});var p70;var ze=function(){var u=_.Q.apply(this,arguments)||this;u.hasMaxOptions=!1;return u};
_.c(ze,_.Q);_.I=ze.prototype;_.I.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.I.setPrefilledChoices=function(u){var K=this;this.set("pollOptions",[]);var l;for(l=0;l<Math.min(u.length,this.data.maxPollOptions);l++)this.push("pollOptions",u[l].substring(0,this.data.maxPollOptionChars));for(;l<this.data.minPollOptions;l++)this.push("pollOptions","");this.hasMaxOptions=l>=this.data.maxPollOptions;_.W_(this,function(){for(var D=K.pollOptions,d=_.bi(K.hostElement).querySelectorAll(".poll-option-input"),C=0;C<d.length;C++)d[C].value=D[C]})};
_.I.focusChanged=function(){_.e8(this.hostElement)};
_.I.onInput=function(){var u=this;_.It(this,"onInput",function(){u.isValid()?_.xs(u.hostElement,"yt-commentbox-post-enable"):_.xs(u.hostElement,"yt-commentbox-post-disable")},300)};
_.I.setPollOptions=function(){var u=[],K,l=((K=this.data)==null?0:K.minPollOptions)?this.data.minPollOptions:0;for(K=0;K<l;K++)u.push("");return u};
_.I.addPollOption=function(){var u=this;_.xs(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.YL.addLowPriorityJob(function(){var K;(K=_.bi(u.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||K.focus()})};
_.I.onRemovePollOption=function(u){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.xs(this.hostElement,"yt-poll-attachment-dismiss")):(u=this.repeat.indexForElement(u.target.parentNode),u!==null&&(this.splice("pollOptions",u,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.xs(this.hostElement,"yt-commentbox-post-enable"))))};
_.I.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.I.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var u=0,K=this.pollOptions.length;u<K;u++)if(this.pollOptions[u].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.I.getPollOptions=function(){return this.pollOptions};
_.I.setPollOptionsFromInputs=function(){for(var u=_.bi(this.hostElement).querySelectorAll(".poll-option-input"),K=0;K<u.length;K++)this.pollOptions[K]=u[K].value.trim()};
_.I.clearPollOptions=function(){var u=_.bi(this.hostElement).querySelectorAll(".poll-option-input");u=_.y(u);for(var K=u.next();!K.done;K=u.next())K.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.I.getSimpleString=function(u){return _.WI(u)};
_.I.updateValueFromBinding=function(u){if(u.target&&this.pollOptions){var K=Array.from(_.bi(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(u.target);if(K>=0){var l;this.pollOptions[K]=(l=u.detail.value)!=null?l:"";this.notifyPath("pollOptions."+K)}}};
ze.prototype.dataChanged=ze.prototype.dataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ze.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ze.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Array)],ze.prototype,"pollOptions",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ze.prototype,"hasMaxOptions",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],ze.prototype,"enableCreationBox",void 0);
_.g([_.BF("#repeat"),_.N("design:type",AU)],ze.prototype,"repeat",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ze.prototype,"dataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-poll-attachment"})],ze);
_.F(ze,"ytd-poll-attachment",function(){if(p70!==void 0)return p70;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return p70=u},{mode:2});var iF2;var T9B;var w7N;var FhS;var eP=function(){return _.Q.apply(this,arguments)||this};
_.c(eP,_.Q);_.MN.Object.defineProperties(eP.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],eP.prototype,"rendererBehaviors",void 0);_.g([_.U(),_.N("design:type",Object)],eP.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],eP.prototype,"focused",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("focused"),_.N("design:type",Object),_.N("design:paramtypes",[])],eP.prototype,"ariaSelected",null);_.g([_.E9({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],eP);
_.F(eP,"yt-user-mention-suggestion-renderer",function(){if(FhS===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;w7N===void 0&&(w7N=document.createElement("template"));var D=w7N;l.call(K,D.content.cloneNode(!0),u.content.firstChild);FhS=u}u=FhS;return u},{mode:2});var VTC;var ga0;var RH=function(){var u=_.Q.apply(this,arguments)||this;u.focusedSuggestionIndex=-1;return u};
_.c(RH,_.Q);_.I=RH.prototype;_.I.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.I.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.I.setFocusedSuggestionIndex=function(u){!this.data||!this.data.suggestions||u<0||u>=this.data.suggestions.length||(this.focusedSuggestionIndex=u,u=this.getSuggestionId(u),this._setFocusedSuggestionId(u))};
_.I.advanceSuggestion=function(u){this.focusedSuggestionIndex===-1||u!==-1&&u!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+u),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.I.ensureSuggestionVisible=function(u){u=this.getSuggestionId(u);u=_.bi(this.hostElement).querySelector("[id="+u+"]");u!=null&&(u.offsetTop<this.hostElement.scrollTop?u.scrollIntoView(!0):u.offsetTop+u.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&u.scrollIntoView(!1))};
_.I.getSuggestionId=function(u){return"user-mention-suggestion-"+u};
_.I.onSuggestionTap=function(u){var K=_.b(u.model.item,WKB);this.ytRendererBehavior.logExplicitClick(K);_.xs(this.hostElement,"yt-user-mention-suggestion-selected",{data:K,index:u.model.index})};
_.I.onSuggestionMouseMove=function(u){u.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(u.model.index)};
_.I.isSuggestionFocused=function(u,K){return u===K};
_.I.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.I.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("focused-suggestion-id-changed",this.focusedSuggestionId))};
RH.prototype.focusedSuggestionIdChangedForBinding=RH.prototype.focusedSuggestionIdChangedForBinding;RH.prototype.onDomChange=RH.prototype.onDomChange;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],RH.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],RH.prototype,"focusedSuggestionIndex",void 0);_.g([_.U({readOnly:!0}),_.N("design:type",String)],RH.prototype,"focusedSuggestionId",void 0);
_.g([_.PF("dom-change"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],RH.prototype,"onDomChange",null);_.g([_.JU("focusedSuggestionId"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RH.prototype,"focusedSuggestionIdChangedForBinding",null);_.g([_.E9({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],RH);
_.F(RH,"yt-user-mention-suggestions-dropdown",function(){if(ga0===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;VTC===void 0&&(VTC=document.createElement("template"));var D=VTC;l.call(K,D.content.cloneNode(!0),u.content.firstChild);ga0=u}u=ga0;return u},{mode:2});var U_=function(){var u=_.Q.apply(this,arguments)||this;u.suggestionsResponse=null;u.activeMention=null;u.selectionChangeListener=u.onSelectionChange.bind(u);u.handlesEnabled=_.S("enable_handles_in_mention_suggest_posts");u.handlesInMentionSuggestionsEnabled=_.S("handles_in_mention_suggest_posts");u.zeroPrefixMentionSuggestionEnabled=_.S("enable_zero_prefix_mention_suggestion_web");u.pendingQuery=null;u.flowNonce=null;return u};
_.c(U_,_.Q);_.I=U_.prototype;_.I.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.I.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.I.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.I.hasSuggestions=function(u){return!!(u&&u.suggestions&&u.suggestions.length>0)};
_.I.onInput=function(){var u=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var K=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),l=this.activeMention.JSC$11223_getText().slice(-1)===" ",D=this.activeMention.JSC$11223_getText().slice(-2,-1)===" ",d="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11223_getText().slice(-2,
-1))>=0;d=this.zeroPrefixMentionSuggestionEnabled&&d;if(this.activeMention.isCollapsed()||(K||D||d)&&l)this.cancelActiveMention();else{var C=this.activeMention.JSC$11223_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.It(this,"requestSuggestions",function(){u.requestSuggestions(C)},100)}}}};
_.I.onServiceRequestSent=function(u){u.stopPropagation()};
_.I.onServiceRequestCompleted=function(u){u.stopPropagation();u=u.detail.data;u.query&&(!this.pendingQuery||this.pendingQuery!==u.query)||!this.zeroPrefixMentionSuggestionEnabled&&u.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=u,this.hasSuggestions(u)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.I.onServiceRequestError=function(u){u.stopPropagation()};
_.I.onUserMentionSuggestionSelected=function(u){this.selectSuggestion(u.detail.data,u.detail.index)};
_.I.onSelectionChange=function(){if(this.activeMention){var u=_.J3(),K=this.activeMention.JSC$11223_containsRange(u);u=u&&this.containsHelper(this.dropdown,u.getContainer());K||u||this.cancelActiveMention()}};
_.I.containsHelper=function(u,K){var l;if(((l=window.ShadyDOM)==null?void 0:l.noPatch)===!0)return u.contains(K);for(;K;){if(K===u)return!0;K=K instanceof ShadowRoot?K.host:K.parentNode}return!1};
_.I.maybeStartSuggest=function(){var u=_.J3();if(u&&u.isCollapsed()){var K=u.JSC$11223_getStartNode(),l=u.JSC$11223_getStartOffset();if(K instanceof Text&&!(l<1)){var D=K.textContent;!(D=D&&D.charAt(l-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(D)<0||(this.activeMention=_.Kk(K,l-1,u.JSC$11223_getEndNode(),u.JSC$11223_getEndOffset()),this.flowNonce=kr(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.I.updateActiveMention=function(){if(this.activeMention){var u=_.J3();u&&u.isCollapsed()&&(this.activeMention=_.Kk(this.activeMention.JSC$11223_getStartNode(),this.activeMention.JSC$11223_getStartOffset(),u.JSC$11223_getEndNode(),u.JSC$11223_getEndOffset()))}};
_.I.requestSuggestions=function(u){if(this.activeMention){var K={suggestions_query:u};this.pendingQuery=u;_.c0(this.hostElement,[this.suggestionsEndpoint,K])}};
_.I.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()};
_.I.focusPreviousSuggestion=function(u){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),u.preventDefault())};
_.I.focusNextSuggestion=function(u){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),u.preventDefault())};
_.I.selectFocusedSuggestion=function(u){if(this.hasSuggestions(this.suggestionsResponse)){var K=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.b(K,WKB)&&(this.selectSuggestion(_.b(K,WKB),this.dropdown.focusedSuggestionIndex),u.preventDefault())}};
_.I.selectSuggestion=function(u,K){if(u){var l=this.activeMention;if(l){var D=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&u.handle?_.La(D,"\u00a0\u2068@"+u.handle+"\u2069\u00a0"):this.handlesEnabled?_.La(D,"\u00a0"+u.displayName+"\u00a0"):_.La(D,"\u00a0@"+u.displayName+"\u00a0");lY(D,"/channel/"+u.channelId);D.classList.add("yt-formatted-string","yt-simple-endpoint");D.setAttribute("spellcheck","false");l.isCollapsed()||l.JSC$11223_removeContents();l.insertNode(D,!0);u=document.createTextNode(" ");
D.parentNode.insertBefore(u,D.nextSibling);window.getSelection().collapse(u,1);K={suggestionSelected:{suggestionIndex:K}};if(this.zeroPrefixMentionSuggestionEnabled){var d;K.suggestionSelected.isZeroPrefix=((d=this.suggestionsResponse)==null?void 0:d.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",K);this.cancelActiveMention();_.xs(this.hostElement,"yt-mention-inserted")}}};
_.I.getPositionTarget=function(u){return u&&u.getBrowserRangeObject()};
_.I.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.I.onFocusedSuggestionIdChanged=function(u){var K=_.Wjo(this.hostElement)[0];K&&(u.detail.value?K.setAttribute("aria-activedescendant",u.detail.value):K.removeAttribute("aria-activedescendant"))};
_.I.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.I.logGELEvent=function(u,K){u={eventType:u,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};K&&(u=Object.assign(u,K));_.YE("userMentionAutoCompleteBoxEvent",u)};
U_.prototype.onDomChange=U_.prototype.onDomChange;U_.prototype.onUserMentionSuggestionSelected=U_.prototype.onUserMentionSuggestionSelected;U_.prototype.onServiceRequestError=U_.prototype.onServiceRequestError;U_.prototype.onServiceRequestCompleted=U_.prototype.onServiceRequestCompleted;U_.prototype.onServiceRequestSent=U_.prototype.onServiceRequestSent;U_.prototype.onInput=U_.prototype.onInput;_.g([_.e(_.T7),_.N("design:type",Object)],U_.prototype,"ironA11yKeysBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],U_.prototype,"suggestionsEndpoint",void 0);_.g([_.U(),_.N("design:type",Object)],U_.prototype,"suggestionsResponse",void 0);_.g([_.U(),_.N("design:type",Object)],U_.prototype,"activeMention",void 0);_.g([_.BF("#dropdown"),_.N("design:type",Object)],U_.prototype,"dropdown",void 0);_.g([_.BF("#iron-dropdown"),_.N("design:type",Object)],U_.prototype,"ironDropdown",void 0);
_.g([_.PF("input"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],U_.prototype,"onInput",null);_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U_.prototype,"onServiceRequestSent",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U_.prototype,"onServiceRequestCompleted",null);
_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U_.prototype,"onServiceRequestError",null);_.g([_.PF("yt-user-mention-suggestion-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U_.prototype,"onUserMentionSuggestionSelected",null);
_.g([_.PF("dom-change"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U_.prototype,"onDomChange",null);_.g([_.E9({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],U_);
_.F(U_,"yt-user-mention-autosuggest-input",function(){if(T9B===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;iF2===void 0&&(iF2=document.createElement("template"));var D=iF2;l.call(K,D.content.cloneNode(!0),u.content.firstChild);T9B=u}u=T9B;return u},{mode:2});var fh=null;
_.YH({is:"ytd-commentbox",_template:function(){if(PMm!==void 0)return PMm;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return PMm=u},
behaviors:[_.VOq.YtHostElementBehavior,_.T7,_.bf.YtActionHandlerBehavior,_.Co.YtComponentBehavior,_.SK.YtRendererstamperBehavior,_.BUN.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(u,K){return _.eZ(u.entities,"aadcGuidelinesStateEntityPayload",K)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(u,K){return _.eZ(u.entities,"commentboxStateEntity",K)},
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 _.Cl}},
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:_.S("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.S("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",_.Ql(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(u){this.fire(u?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(u){this.set("submitButtonDisabled",void 0);this.clear();u&&this.computeIsEmojiButtonDisplayed_(u)&&(u=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&u.updateEmojiCategories()},
observePrefilledImage_:function(u,K,l){this.isValidPrefilledImage_(u,K,l)&&(this.prefilledAttachment_="image",this.prefilledImageData_=K,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(u,K){this.isValidPrefilledVideo_(u,K)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(u){u&&u.pollData&&u.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(u.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.fW();this.focus()},
detached:function(){document.removeEventListener("tap",_.Ql(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(u){u=u.detail;u=u.isCustomEmoji?u.shortcuts[0]:u.emojiId;var K=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(K,u);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var u=_.J3();if(u){u=u.getBrowserRangeObject();for(var K=u.commonAncestorContainer;K;){if(K===this.getEditableTextArea_())return u;K=K.parentNode}}u=this.getEditableTextArea_();u=_.u6(u,u.childNodes.length);u.select();return u.getBrowserRangeObject()},
insertTextWithEmojis_:function(u,K,l){(K=this.emojiManager.createDocumentFragment(K,!0,!1,l===void 0?!0:l))&&K.childNodes.length!==0&&(u.collapsed||u.deleteContents(),l=K.lastChild,u.insertNode(K),_.wIA(l).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var u=_.J3();if(u){var K=u.JSC$11223_getStartNode(),l=u.JSC$11223_getEndNode();if(cfR(K)&&cfR(l)){var D=u.JSC$11223_getStartOffset(),d;if(_.Uf&&K.nodeType===Node.ELEMENT_NODE&&(d=_.waa(K)))_.u6(d,0).select();else{d=fz(K)?K:_.LS(K,fz);var C=fz(l)?l:_.LS(l,fz);if(d||C)if(u.isCollapsed()){if(K.nodeType===Node.TEXT_NODE){u=!0;D===K.length&&(u=!1);if(fh==="end"||fh==="right")u=!1;K=K.parentNode;u=[].concat(_.Am(K.parentNode.childNodes)).indexOf(K)+(u?0:1);_.u6(K.parentNode,
u).select()}}else d?d.previousSibling&&d.previousSibling.length>0?_.Kk(l,u.JSC$11223_getEndOffset(),d.previousSibling,d.previousSibling.length-1).select():(K=document.createTextNode("\u200b"),d.parentNode.insertBefore(K,d),_.Kk(l,u.JSC$11223_getEndOffset(),K,0).select()):C&&(C.nextSibling&&C.nextSibling.length>0?_.Kk(K,u.JSC$11223_getStartOffset(),C.nextSibling,1).select():(l=document.createTextNode("\u200b"),C.parentNode.insertBefore(l,C.nextSibling),_.Kk(K,u.JSC$11223_getStartOffset(),l,l.length).select()));
fh=null}}else fh=null}else fh=null},
leftKeyPressed_:function(){fh="left"},
rightKeyPressed_:function(){fh="right"},
endKeyPressed_:function(){fh="end"},
maybeDeleteChip_:function(){var u=fiL(!0);if(u){var K=_.J3(),l=K.JSC$11223_getStartNode();K=K.JSC$11223_getStartOffset();_.XG(l,K,u,u.childNodes.length).select()}},
maybeBackspaceChip_:function(){var u=fiL(!1);if(u){var K=_.J3(),l=K.JSC$11223_getStartNode();K=K.JSC$11223_getStartOffset();_.XG(l,K,u,0).select()}},
maybeBackspaceChipWordMode_:function(u){var K=_.J3();if(K.isCollapsed()){var l=K.JSC$11223_getStartNode();K=K.JSC$11223_getStartOffset();var D=QIb(l,K,!0);D&&(_.XG(l,K,D,0).select(),document.execCommand("delete"),u.preventDefault(),u.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(u){var K=_.J3();if(K.isCollapsed()){var l=K.JSC$11223_getStartNode();K=K.JSC$11223_getStartOffset();var D=QIb(l,K,!1);D&&(_.XG(l,K,D,D.childNodes.length).select(),document.execCommand("delete"),u.preventDefault(),u.stopImmediatePropagation())}},
onTap_:function(u){if(!u.defaultPrevented&&(u.currentTarget.tagName==="YTD-COMMENTBOX"&&fz(u.target)&&u.preventDefault(),this.isEmojiPickerDisplayed)){var K=this.$$("#emojis"),l=this.$$("#emoji-button"),D=this.getEditableTextArea_();if((u=u.path?u.path:u.composedPath&&u.composedPath())&&!u.includes(K)&&!u.includes(D)&&!u.includes(l))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(u,K,l){return u==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&K!==void 0&&K.encryptedBlobId!==null&&K.sourceExternalVideoId!==null&&l!==void 0&&l.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(u,K){return u==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!K&&!!K.videoRenderer&&!!K.videoRenderer.videoId},
isValidPrefilledAttachment_:function(u,K,l){return this.isValidPrefilledImage_(u,K,l)||this.isValidPrefilledVideo_(u,l)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.S("enable_multi_image_post_creation")){var u=this.$$("ytd-backstage-multi-image-select-renderer");u&&u.hasImages()&&u.cancel()}else(u=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&u.cancel();(u=this.$["poll-attachment"])&&this.hasPoll_&&u.clearPollOptions();(u=this.$["image-poll-attachment"])&&this.hasImagePoll_&&u.resetPollOptions();(u=this.$["quiz-attachment"])&&this.hasQuiz_&&u.resetQuizOptions();
(u=this.$["video-link-attachment"])&&this.hasVideo_&&u.cancel();(u=this.$["access-restrictions-selector"].firstElementChild)&&u.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 _.bi(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.bi(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(u,K){u=zWH(u,this.emojiManager,K).cloneNode(!0);for(K=u.firstChild;K;)if(K.nodeType!==1)K=K.nextSibling;else switch(K.tagName){case "BR":var l=_.YA();_.ARw(l,K);K=l.nextSibling;break;case "DIV":(l=K.lastChild)&&K.nextSibling&&_.hy(_.YA(),l);K.previousSibling&&(K.previousSibling.nodeType===1||K.previousSibling.nodeType===3&&!K.previousSibling.textContent.endsWith("\n"))&&_.mI(_.YA(),K);l&&l.nodeName==="BR"&&_.Jq(l);l=K;K.hasChildNodes()?(K=K.firstChild,
_.Xaa(l)):(K=K.nextSibling,_.Jq(l));break;default:K=K.nextSibling}return Pdo(u)},
onAddImageError_:function(u){u.stopPropagation();this.errorMessage_=_.o7(u.detail)},
setTextAreaValue_:function(u){u||(u="");var K=this.getEditableFormattedString_();K.text="";this.getEditableTextArea_().innerText="";typeof u==="string"&&(u={runs:[{text:u}]});K.text=u},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();fh=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var u=this.getEditableTextArea_();u&&(_.u6(u,u.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.E3("HTML_DIR")==="rtl"){var u=this.getEditableTextArea_(),K=this.getTextAreaValue()!==""?"auto":"rtl";u.setAttribute("dir",K)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var u;return XNH((u=this.$["quiz-attachment"])==null?void 0:u.getExplanationText())||XNH(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var u=null;if(this.isEmojiButtonDisplayed){var K=this.getInputRange_();K&&(u=this.emojiInput.retrieveTextBeforeRange(K))}this.insertText_(u,!0);this.updateCharCount_();this.setSubmitButton_();u=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=u.scrollHeight>u.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var u=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:u})},
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(u){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(u)},
onPasteEmoji_:function(u){u.preventDefault();u.stopImmediatePropagation();u=u.clipboardData.getData("text/plain");this.insertText_(u,!1,!1)},
insertText_:function(u,K,l){K=K===void 0?!1:K;l=l===void 0?!0:l;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&u){var D=this.getInputRange_().cloneRange();this.emojiManager&&D&&(K&&this.emojiInput.offsetStartOfRangeBy(D,u.length),this.insertTextWithEmojis_(D,u,l),aiq(this.getEditableTextArea_().lastChild)||(D=this.getInputRange_().cloneRange()),D&&(this.emojiInput.updateSuggestions(D,u),this.updateSuggestionOffset_(D)))}},
setSubmitButton_:function(){if(this.data){var u=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",K=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(u||K){var l=this.getTextAreaValue().trim();K=l===this.previousText_;l=!l||this.aboveCharLimit_;u&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(l=this.aboveCharLimit_);this.submitButtonDisabled=
K||l||!this.getTextLength();u&&_.S("enable_post_scheduling")&&(this.submitButtonDisabled=K&&!this.scheduledPublishTimeSec_||l)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.WI,computeCreationBoxClass_:function(u){return u?"focused":"not-focused"},
computeFooterMessageClass_:function(u,K){return K?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(u,K){return K?K:u},
computeFooterMessageHidden_:function(u,K){return!K&&!u},
computePlaceholderText_:function(u,K,l){return(l==="video"||l==="image")&&(u==null?0:u.prefilledPlaceholderText)?u==null?void 0:u.prefilledPlaceholderText:K==="poll"||K==="image-poll"?u==null?void 0:u.pollPostPlaceholderText:K==="quiz"?u==null?void 0:u.quizPostPlaceholderText:K==="image"?u==null?void 0:u.imagePostPlaceholderText:u==null?void 0:u.placeholderText},
computeHideAttachmentButtons_:function(u,K,l,D){return u===void 0?!1:D&&this.getSimpleString(D)===this.getSimpleString(u.rateLimitErrorMessage)?!0:K!=="none"||l!=="none"||!u.videoLinkButton&&!u.pollButton&&!u.imagePollButton&&!u.quizButton&&!u.imageButton},
computeHideDismissableAttachment_:function(u){return u!=="image"&&u!=="video"},
computeHasVideo_:function(u){return u==="video"},
computeHasImage_:function(u){return u==="image"},
computeHasPoll_:function(u){return u==="poll"},
computeHasImagePoll_:function(u){return u==="image-poll"},
computeHasQuiz_:function(u){return u==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(u){return u&&u.backstageAttachment?u.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!u.backstageAttachment.quizRenderer&&!u.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(u){if(this.isValidPrefilledAttachment_(u.purpose,u.prefilledImageData,u.backstageAttachment))return u.backstageAttachment},
computeEditAttachment_:function(u){if(this.computePrefilledContent_(u)===void 0)return u.backstageAttachment},
computeAuthorThumbnailDimension_:function(u,K){return u&&!K?24:40},
computeImageUploadEndpoint_:function(u){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",u)},
computeRateLimitErrorCommands_:function(u){var K,l;return u==null?void 0:(K=u.advancedTierFeatures)==null?void 0:(l=K.rateLimit)==null?void 0:l.rateLimitCommands},
computeIsBackstageComment_:function(u){return!(!u||u!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(u){return this.get("submitButton.buttonRenderer.serviceEndpoint",u)||this.get("replyButton.buttonRenderer.serviceEndpoint",u)||this.get("postButton.buttonRenderer.serviceEndpoint",u)},
computeSubmitButtonOverride:function(){if(_.S("web_modern_buttons")){var u,K;return{segmentedPosition:this.dropdownSchedulePanel_||!((u=this.data)==null?0:(K=u.postOptionsMenu)==null?0:K.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.S("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(u,K){u=this.get("submitButton.buttonRenderer",u)||this.get("replyButton.buttonRenderer",u)||this.get("postButton.buttonRenderer",u);K&&(u=K);u&&(u=Object.assign({},u),u.serviceEndpoint=void 0,u.isDisabled=this.submitButtonDisabled);return u},
computeHasExternalLinksAccess_:function(u){if(_.S("enable_rfa_external_links")){var K,l,D;return(D=u==null?void 0:(K=u.advancedTierFeatures)==null?void 0:(l=K.externalLinks)==null?void 0:l.allowExternalLinks)!=null?D:!0}return!0},
computeIsEmojiButtonDisplayed_:function(u){return u.emojiButton&&u.emojiPicker&&u.emojiPicker.emojiPickerRenderer&&u.emojiPicker.emojiPickerRenderer.categories?u.emojiPicker.emojiPickerRenderer.categories.find(function(K){return K.emojiPickerCategoryRenderer?K.emojiPickerCategoryRenderer.emojiIds&&K.emojiPickerCategoryRenderer.emojiIds.length>0:K.emojiPickerUpsellCategoryRenderer?K.emojiPickerUpsellCategoryRenderer.emojis&&K.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(u){return u.charLimit?u.charLimit:null},
computeDropdownSchedulingPanel_:function(u,K){if(u==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&K)return K},
computeInlineSchedulingPanel_:function(u,K){if(u==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&K)return K},
computeHideAuthorThumbnail_:function(u,K){return u||this.computeUseIdentityChip_(K)},
computeHideIdentityChipRenderer_:function(u,K){return u||!this.computeUseIdentityChip_(K)},
computeUseIdentityChip_:function(u){return!!u&&!!u.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(u){var K,l,D,d;(u==null?0:(K=u.detail)==null?0:(l=K.endpoint)==null?0:l.ypcGetOffersEndpoint)||(u==null?0:(D=u.detail)==null?0:(d=D.endpoint)==null?0:d.ypcOffersEndpoint)?(u.stopPropagation(),_.c0(this,[u.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",u)&&(u.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(u){this.addedAttachment="video";this.selectedVideoId_=u.detail.videoId},
commentboxStateEntityChanged_:function(u){var K=this;(u==null?void 0:u.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(u==null?void 0:u.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){K.focus()})},
onYtServiceRequestSent_:function(u,K){if(K.actions)for(u=_.y(K.actions),K=u.next();!K.done;K=u.next())K.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(u){this.isLoading=!1;var K=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",u),l,D,d,C=u==null?void 0:(l=u.detail)==null?void 0:(D=l.data)==null?void 0:(d=D.actionResult)==null?void 0:d.commentboxStateEntityKey;if(K)this.errorMessage_=K;else if(C){var W;this.dismissData_=u==null?void 0:(W=u.detail)==null?void 0:W.data;this.commentboxStateKey_=C}else{this.clear();var M;this.fire("yt-commentbox-dismiss",u==null?void 0:(M=u.detail)==
null?void 0:M.data)}},
onYtServiceRequestError_:function(u){u.stopPropagation();this.isLoading=!1;var K,l;if(((K=this.data)==null?void 0:K.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((l=this.data)==null?void 0:l.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(K=this.get("detail.error.args",u)||[],K.length>1&&K[1].message){this.handlePostsServiceRequestError_(K[1].message);return}(u=this.get("detail.error.message",u))?this.errorMessage_=this.data.errorMessage||_.o7(u):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(u){if(_.S("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var K=_.y(this.rateLimitErrorCommands),l=K.next();!l.done;l=K.next())if(l=l.value,l.errorLabel===u){_.Jl(l.command,this.hostElement);return}this.errorMessage_=_.o7(u)},
submitIfNotBackstagePost_:function(u){if(!this.isBackstagePost)this.onSubmit_(u)},
onSubmit_:function(u){var K=this,l,D,d,C,W,M,q,v,G,t,x,O,a,f,B;return _.H(function(p){switch(p.nextAddress){case 1:u.stopPropagation();if(!K.serviceEndpoint||!K.isValidInput_())return p.return();if(K.shouldShowPostAadcNotice_())return K.showPostAadcNotice_(),p.return();if(K.shouldShowCommentAadcNotice_())return K.showCommentAadcNotice_(),p.return();if(!(K.$$("ytd-backstage-multi-image-select-renderer")&&K.hasImage_&&_.S("enable_multi_image_post_creation"))){p.jumpTo(2);break}l=K.$$("ytd-backstage-multi-image-select-renderer");
return p.yield(l.getAllUploadStatuses(),3);case 3:D=p.yieldResult;if(!D)return p.return();d=_.y(D);for(C=d.next();!C.done;C=d.next())if(W=C.value,W.encryptedBlobId===void 0)return K.isLoading=!1,q=M=void 0,K.errorMessage_=(q=(M=K.imageUploadEndpoint_)==null?void 0:M.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?q:null,p.return();return p.return(K.submitForm_(void 0,void 0,void 0,void 0,l.images,K.taggedVideoId_));case 2:if(!K.hasImagePoll_||!K.$["image-poll-attachment"]){p.jumpTo(4);
break}return p.yield(K.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:v=p.yieldResult;if(!v)return p.return();G=_.y(v);for(t=G.next();!t.done;t=G.next())if(x=t.value,!x.encryptedBlobId)return K.isLoading=!1,O=void 0,K.errorMessage_=(O=K.data.errorMessage)!=null?O:null,p.return();case 4:f=(a=K.$$("ytd-backstage-image-select-renderer"))&&a.uploadPromise(),B=K.getSharedPostId_(),f?f.then(function(){K.submitForm_.apply(K,_.Am(_.uY.apply(0,arguments)))}).catch(function(V){K.isLoading=!1;
K.errorMessage_=_.o7(V.message)}):K.selectedVideoId_?K.submitForm_(void 0,K.selectedVideoId_):K.prefilledAttachment_==="image"?K.submitForm_(K.prefilledImageData_.encryptedBlobId,void 0,void 0,K.prefilledImageData_.sourceExternalVideoId,void 0,K.taggedVideoId_):K.prefilledAttachment_==="video"?K.submitForm_(void 0,K.data.backstageAttachment.videoRenderer.videoId):B?K.submitForm_(void 0,void 0,B):K.taggedVideoId_!==void 0?K.submitForm_(void 0,void 0,void 0,void 0,void 0,K.taggedVideoId_):K.submitForm_(),
_.TG(p)}})},
openSchedulingPanel:function(u){u&&u.scheduleButton&&u.scheduleButton.buttonRenderer&&(this.scheduleButton_=u.scheduleButton.buttonRenderer);u&&u.dateTimePicker&&this.set("data.schedulingDateTimePicker",u.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(u){u.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(u){u.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(u){u.stopPropagation();u.detail.alertMessage&&(this.alertMessage_=u.detail.alertMessage)},
onImageSelected_:function(u){u.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(u){u.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(u){u.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(u.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(u){u.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(u){var K=this.$["video-link-attachment"];K&&K.onLaunchVideoPicker(u)},
onAttachmentDismiss_:function(u){u.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"&&_.S("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.S("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 u;if(this.addedAttachment==="image-poll"&&((u=this.$["image-poll-attachment"])==null||!u.isValid()))return!1;var K;if(this.addedAttachment==="quiz"&&((K=this.$["quiz-attachment"])==null||!K.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;u=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(u=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")u=!0;return u||!!this.getTextAreaValue().trim()},
submitForm_:function(u,K,l,D,d,C){var W=this.getTextAreaValue().trim(),M={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&W===this.previousText_&&(W=void 0);W!==void 0&&(M.comment_text=W);this.isLoading=!0;C!=void 0&&(M.tagged_video_id=C);u?(M.image_blob_id=u,this.imagePreviewCoordinates_&&(M.image_preview_coordinates=this.imagePreviewCoordinates_)):K?M.attached_video_id=K:l?M.shared_post_id=l:d&&d.length>0&&(M.images_data=d.map(function(q){return{encryptedBlobId:q.encryptedBlobId,
previewCoordinates:q.previewCoordinates}}));
D&&(M.source_video_id=D);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(M.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(M.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(M.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.S("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(M.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.S("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(M.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.c0(this,[this.serviceEndpoint,M])},
onIsInputFocusChanged_:function(u,K){u?this.fire("yt-autonav-pause-focus"):K!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(u){var K=this.getEditableTextArea_();[].concat(_.Am(u.dataTransfer.items)).forEach(function(l){l.kind==="string"&&l.type.match("^text/plain")&&l.getAsString(function(D){K.appendChild(document.createTextNode(D))})});
u.preventDefault()},
preventDefault_:function(u){u.preventDefault()},
onSuggestionInsert_:function(u){this.insertTextWithEmojis_(u.detail.range,u.detail.text)},
onEmojiSuggestionClick_:function(u){this.emojiInput.insertSuggestion(u.detail)},
computeSubmitButtonClass_:function(u,K){return!K||u?"":"with-options"},
updateSuggestionOffset_:function(u){if(this.emojiInput&&_.bi(this.emojiInput).querySelector("#dropdown")){var K=this.getEditableTextArea_().getBoundingClientRect().bottom,l=u.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(K-l)+5;K=this.getEditableTextArea_().getBoundingClientRect().left;u=u.getBoundingClientRect().left-K;_.bi(this.emojiInput).querySelector("#dropdown").style.marginLeft=u+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(u){if(_.S("enable_post_scheduling")&&this.data&&this.data.purpose){u=u.detail;if(Math.floor(Date.now()/1E3)>=u)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var K=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(K)||K!==u?this.scheduledPublishTimeSec_=u:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=u;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var u=["image-button","image-poll-button","poll-button"];_.S("enable_quiz_creation")&&u.push("quiz-button");_.S("auto_convert_posts_video_tag")||u.push("video-link-button");return u},
getButtonRenderer:function(u,K){if(u)switch(K){case "video-link-button":var l;return((l=u.videoLinkButton)==null?void 0:l.buttonRenderer)||void 0;case "image-button":var D;return((D=u.imageButton)==null?void 0:D.buttonRenderer)||void 0;case "poll-button":var d;return((d=u.pollButton)==null?void 0:d.buttonRenderer)||void 0;case "image-poll-button":var C;return((C=u.imagePollButton)==null?void 0:C.buttonRenderer)||void 0;case "quiz-button":var W;return((W=u.quizButton)==null?void 0:W.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var u;return(u=this.data)==null||!u.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var u,K;return!((u=this.data)==null||!u.openAadcDialog)&&!((K=this.aadcGuidelinesState_)==null||!K.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.E3("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var u;((u=this.data)==null?0:u.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Ev("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(u){u.clickTrackingParams&&_.iT().clickCommand(u);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.Sy(this,"yt-close-popup-action")},
onHideIdentityChip:function(u){var K;this.set("data.placeholderText",(K=u.hideIdentityChipAction)==null?void 0:K.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var QJ=function(){var u=_.Q.apply(this,arguments)||this;u.isOpen=!1;u.modern=_.S("web_modern_buttons");u.roundedContainer=!0;u.dropdownButtonOverride=_.S("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;u.inPopupContainer=!1;u.isCommentboxLoading=!1;var K=["image-button","image-poll-button","poll-button"];_.S("enable_quiz_creation")&&K.push("quiz-button");_.S("auto_convert_posts_video_tag")||K.push("video-link-button");u.attachmentButtonIds=K;u.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 u};
_.c(QJ,_.Q);_.I=QJ.prototype;_.I.computeButtonOverride=function(){var u;return((u=this.data)==null?0:u.postOptionsMenu)&&_.S("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.I.configureRendererStamper=function(){var u={"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]]"}}}}};_.S("auto_convert_posts_video_tag")||(u["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return u};
_.I.ready=function(){var u=this,K=_.bi(this.hostElement).querySelector("#placeholder-area"),l=function(D){u.onOpen(D)};
K.addEventListener("tap",l);K.addEventListener("keypress",l)};
_.I.showButtonEduTooltip=function(){var u,K,l,D,d,C,W;if(_.S("enable_quiz_creation")&&((u=this.data)==null?0:(K=u.quizButton)==null?0:(l=K.buttonRenderer)==null?0:(D=l.hint)==null?0:(d=D.hintRenderer)==null?0:(C=d.content)==null?0:(W=C.bubbleHintRenderer)==null?0:W.text)&&(_.xx.getInstance(),u=S_(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(u==null?void 0:
u.length)>0)){this.ytComponentBehavior.resolveCommand(u[0],{form:{element:this.quizButton}});return}var M;if((M=this.data)==null?0:M.imagePollButtonTooltip)if(_.xx.getInstance(),M=S_(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(M==null?void 0:M.length)>0){this.ytComponentBehavior.resolveCommand(M[0],{form:{element:this.imagePollButton}});return}var q;_.S("enable_multi_image_post_creation")&&
((q=this.data)==null?0:q.multiImageButtonTooltip)&&(_.xx.getInstance(),q=S_(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(q==null?void 0:q.length)>0&&this.ytComponentBehavior.resolveCommand(q[0],{form:{element:this.imageButton}}))};
_.I.onCreatePollAction=function(u){_.b(u,vzk)&&(this.JSC$15667_commentbox.addedAttachment="poll",this.openDialog())};
_.I.onAddVideoLinkAction=function(u){if(_.b(u,qum))this.JSC$15667_commentbox.onAddVideoLink(u)};
_.I.onShowSchedulingPanelCommand=function(u){(u=_.b(u,VQa))&&this.openSchedulingPanel(u)};
_.I.onCreateImagePollCommand=function(u){_.b(u,yWw)&&(this.JSC$15667_commentbox.openImagePollComponent(),this.openDialog())};
_.I.onCreateQuizCommand=function(u){_.b(u,sP0)&&(this.JSC$15667_commentbox.openQuizComponent(),this.openDialog())};
_.I.openSchedulingPanel=function(u){_.S("enable_post_scheduling")&&(this.openDialog(),this.JSC$15667_commentbox.openSchedulingPanel(u))};
_.I.onCreateCommentAction=function(u){this.get("createCommentAction.contents",u)&&(this.JSC$15667_commentbox.clear(),this.closeDialog())};
_.I.onOpen=function(u){u instanceof KeyboardEvent&&u.type==="keypress"&&u.keyCode!==13&&u.keyCode!==32||(this.data.prepareAccountEndpoint?_.xs(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.I.onYtCommentboxDismiss=function(){this.closeDialog()};
_.I.onYtCommentboxLoadingStart=function(u){u.stopPropagation();this.isCommentboxLoading=!0};
_.I.onYtCommentboxLoadingEnd=function(u){u.stopPropagation();this.isCommentboxLoading=!1};
_.I.onYtVideoLinkButtonCancel=function(u){u.stopPropagation();this.onOpen(u)};
_.I.onYtVideoLinkSelected=function(u){u.stopPropagation();this.onOpen(u)};
_.I.onIronSelect=function(u){u.stopPropagation();u.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=u.detail.item.value&&(this.accessRestriction?(this.accessRestriction=u.detail.item.value,this.onOpen(u)):this.accessRestriction=u.detail.item.value)};
_.I.onYtNavigate=function(u){this.get("detail.endpoint.backstageImageUploadEndpoint",u)&&(this.JSC$15667_commentbox.addedAttachment="image",this.JSC$15667_commentbox.submitButtonDisabled=!0,this.onOpen(u))};
_.I.onRequestSent=function(u){if(_.S("web_button_rework"))for(var K=_.y(u.detail),l=K.next();!l.done;l=K.next())_.b(l.value,tsw)&&(this.JSC$15667_commentbox.addedAttachment="image",this.JSC$15667_commentbox.submitButtonDisabled=!0,this.onOpen(u))};
_.I.openDialog=function(){this.JSC$15667_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15667_commentbox.focus()};
_.I.onPopupClosed=function(){_.xx.getInstance()};
_.I.computeCreationDisabled=function(u){return!!u};
_.I.computeIsCreationDialog=function(u){return!!u&&u==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.I.computeDisabledPostButton=function(u){if(!u)return null;u.isDisabled=!0;return u};
_.I.computeIsCreationDialogWithHeader=function(u){return!this.inPopupContainer&&!!u&&!!u.authorText&&u.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.I.computeIsHeaderHidden=function(u,K){return!u||K};
_.I.computeDropdownRendererClasses=function(u){return u?["text-secondary-style"]:[]};
_.I.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var u=_.bi(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;u&&u.reset()};
QJ.prototype.onPopupClosed=QJ.prototype.onPopupClosed;QJ.prototype.onRequestSent=QJ.prototype.onRequestSent;QJ.prototype.onYtNavigate=QJ.prototype.onYtNavigate;QJ.prototype.onIronSelect=QJ.prototype.onIronSelect;QJ.prototype.onYtVideoLinkSelected=QJ.prototype.onYtVideoLinkSelected;QJ.prototype.onYtVideoLinkButtonCancel=QJ.prototype.onYtVideoLinkButtonCancel;QJ.prototype.onYtCommentboxLoadingEnd=QJ.prototype.onYtCommentboxLoadingEnd;QJ.prototype.onYtCommentboxLoadingStart=QJ.prototype.onYtCommentboxLoadingStart;
QJ.prototype.onYtCommentboxDismiss=QJ.prototype.onYtCommentboxDismiss;QJ.prototype.showButtonEduTooltip=QJ.prototype.showButtonEduTooltip;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],QJ.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],QJ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],QJ.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],QJ.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],QJ.prototype,"isOpen",void 0);_.g([_.U({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],QJ.prototype,"buttonOverride",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],QJ.prototype,"modern",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],QJ.prototype,"roundedContainer",void 0);_.g([_.U(),_.N("design:type",Object)],QJ.prototype,"dropdownButtonOverride",void 0);_.g([_.U({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.N("design:type",Boolean)],QJ.prototype,"creationDisabled",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],QJ.prototype,"enableCreationBox",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.N("design:type",Boolean)],QJ.prototype,"isCreationDialog",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],QJ.prototype,"inPopupContainer",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.N("design:type",Boolean)],QJ.prototype,"isCreationDialogWithHeader",void 0);_.g([_.U(),_.N("design:type",Object)],QJ.prototype,"accessRestriction",void 0);
_.g([_.U({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.N("design:type",Array)],QJ.prototype,"dropdownRendererClasses",void 0);_.g([_.U(),_.N("design:type",Object)],QJ.prototype,"isCommentboxLoading",void 0);_.g([_.U(),_.N("design:type",Array)],QJ.prototype,"attachmentButtonIds",void 0);_.g([_.BF("#image-button"),_.N("design:type",HTMLElement)],QJ.prototype,"imageButton",void 0);
_.g([_.BF("#image-poll-button"),_.N("design:type",HTMLElement)],QJ.prototype,"imagePollButton",void 0);_.g([_.BF("#quiz-button"),_.N("design:type",HTMLElement)],QJ.prototype,"quizButton",void 0);_.g([_.BF("#commentbox"),_.N("design:type",Object)],QJ.prototype,"JSC$15667_commentbox",void 0);_.g([_.JU("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QJ.prototype,"showButtonEduTooltip",null);
_.g([_.PF("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],QJ.prototype,"onYtCommentboxDismiss",null);_.g([_.PF("yt-commentbox-loading-start"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],QJ.prototype,"onYtCommentboxLoadingStart",null);
_.g([_.PF("yt-commentbox-loading-end"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],QJ.prototype,"onYtCommentboxLoadingEnd",null);_.g([_.PF("yt-video-link-button-cancel"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],QJ.prototype,"onYtVideoLinkButtonCancel",null);
_.g([_.PF("yt-video-link-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],QJ.prototype,"onYtVideoLinkSelected",null);_.g([_.PF("iron-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],QJ.prototype,"onIronSelect",null);_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],QJ.prototype,"onYtNavigate",null);
_.g([_.PF("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],QJ.prototype,"onRequestSent",null);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QJ.prototype,"onPopupClosed",null);_.g([_.T({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],QJ);
_.F(QJ,"ytd-backstage-post-dialog-renderer",function(){if(HFa!==void 0)return HFa;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return HFa=u},{mode:1});var N9C;var kUR;var Pc=function(){return _.Q.apply(this,arguments)||this};
_.c(Pc,_.Q);_.I=Pc.prototype;_.I.computeHeartButtonStyle=function(u){return(u==null?0:u.styleType)?u.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.I.onYtButtonTap=function(){if(this.data.isEnabled){var u=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(u=this.getEndpoint(u))&&_.GB().resolve(_.t9).resolveCommand(u,{form:{element:this.hostElement}})}else(u=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(u)};
_.I.toggle=function(u){this.set("data.isHearted",u!==void 0?u:!this.data.isHearted)};
_.I.getEndpoint=function(u){var K,l=(K=this.data)==null?void 0:K.heartEndpoint,D;K=(D=this.data)==null?void 0:D.unheartEndpoint;if(l&&K)return u?K:l};
_.I.computeButtonAccessibility=function(u,K){var l,D,d=u==null?void 0:(l=u.heartedAccessibility)==null?void 0:(D=l.accessibilityData)==null?void 0:D.label,C,W;u=u==null?void 0:(C=u.unheartedAccessibility)==null?void 0:(W=C.accessibilityData)==null?void 0:W.label;return K?d:u};
_.MN.Object.defineProperties(Pc.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 u;return _.S("kevlar_system_icons")&&!((u=this.data)==null||!u.isHearted)}}});
Pc.prototype.onYtButtonTap=Pc.prototype.onYtButtonTap;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.nl),_.N("design:type",Object)],Pc.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Pc.prototype,"data",void 0);_.g([_.R("data.isHearted"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pc.prototype,"heartTooltip",null);
_.g([_.R("data.isHearted"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Pc.prototype,"iconFilled",null);_.g([_.U({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.N("design:type",String)],Pc.prototype,"buttonAccessibility",void 0);_.g([_.U({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],Pc.prototype,"heartButtonStyle",void 0);
_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pc.prototype,"onYtButtonTap",null);_.g([_.T({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Pc);
_.F(Pc,"ytd-creator-heart-renderer",function(){if(kUR!==void 0)return kUR;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return kUR=u},{mode:1});var JL=function(){var u=_.Q.apply(this,arguments)||this;u.hasCreatorReply=!1;u.buttonOverrides={size:"S",iconPosition:"icon-only"};u.replyButtonOverrides={size:"S",type:"text"};u.forceIconButton=!_.S("web_modern_buttons");u.modern=_.S("web_modern_buttons");u.buttonTooltipPosition="bottom";u.systemIcons=_.S("kevlar_system_icons");u.replyDialog=null;return u};
_.c(JL,_.Q);_.I=JL.prototype;
_.I.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]]"}}}}}};
_.I.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.I.dataChange=function(){this.replyDialog&&_.bi(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var u,K,l;this.isLiked=this.systemIcons&&!!((u=this.data)==null?0:(K=u.likeButton)==null?0:(l=K.toggleButtonRenderer)==null?0:l.isToggled)};
_.I.computeShowVoteCountBeginning=function(u,K){return u===void 0||K===void 0?!0:u.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!K&&this.ytRendererBehavior.getSimpleString(K)!=="0"};
_.I.computeShowVoteCountEnd=function(u,K){return u===void 0||K===void 0?!0:u.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!K&&this.ytRendererBehavior.getSimpleString(K)!=="0"};
_.I.computeShowCommentCount=function(u,K){return u===void 0||K===void 0?!0:u.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!K&&this.ytRendererBehavior.getSimpleString(K)!=="0"};
_.I.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.I.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.I.showReplyDialog=function(u){u&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.bi(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=u,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.I.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.I.onRequestSent=function(u){if(_.S("web_button_rework")){u=_.y(u.detail);for(var K=u.next();!K.done;K=u.next())(K=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",K.value))&&this.showReplyDialog(K)}};
_.I.onYtNavigate=function(u){var K,l;(u=(K=_.b(u.detail.endpoint,_.SFA))==null?void 0:(l=K.dialog)==null?void 0:l.commentReplyDialogRenderer)&&this.showReplyDialog(u)};
_.I.onYtServiceRequestSent=function(u,K){u.stopPropagation();if(K.actions)for(u=0;u<K.actions.length;u++){var l=_.b(K.actions[u],OJ0);l&&this.handleUpdateCommentVoteAction(l)}};
_.I.handleUpdateCommentVoteAction=function(u){this.voteCount=u.voteCount||_.o7("0");u.voteStatus==="LIKE"?this.JSC$15678_ytdDislikeToggleButtonRenderer.toggle(!1):u.voteStatus==="DISLIKE"?this.JSC$15678_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15678_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15678_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.I.computeReplyButtonHidden=function(u){return u};
_.I.computeReplyButtonBeginning=function(u){return(u==null?0:u.replyButton)&&u.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?u.replyButton:void 0};
_.I.computeReplyButtonEnd=function(u){return(u==null?0:u.replyButton)&&u.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?u.replyButton:void 0};
_.I.computeActionButtonStyle=function(u){return(u==null?0:u.style)?u.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.I.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.I.onYtToggleButton=function(u){var K,l;this.isLiked=this.systemIcons&&!!((K=u.detail)==null?0:(l=K.actions)==null?0:l.like)};
JL.prototype.onYtToggleButton=JL.prototype.onYtToggleButton;JL.prototype.onButtonTooltipPositionChanged=JL.prototype.onButtonTooltipPositionChanged;JL.prototype.onYtServiceRequestSent=JL.prototype.onYtServiceRequestSent;JL.prototype.onYtNavigate=JL.prototype.onYtNavigate;JL.prototype.onRequestSent=JL.prototype.onRequestSent;JL.prototype.onYtCommentboxDismiss=JL.prototype.onYtCommentboxDismiss;JL.prototype.dataChange=JL.prototype.dataChange;
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],JL.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],JL.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],JL.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],JL.prototype,"voteCount",void 0);_.g([_.U(),_.N("design:type",Object)],JL.prototype,"commentCount",void 0);_.g([_.U(),_.N("design:type",Object)],JL.prototype,"replyThumbnail",void 0);
_.g([_.U(),_.N("design:type",Object)],JL.prototype,"hasCreatorReply",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],JL.prototype,"enableCreationBox",void 0);_.g([_.U({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],JL.prototype,"actionButtonsStyle",void 0);_.g([_.U({computed:"computeReplyButtonBeginning(data)"}),_.N("design:type",Object)],JL.prototype,"replyButtonBeginning",void 0);
_.g([_.U({computed:"computeReplyButtonEnd(data)"}),_.N("design:type",Object)],JL.prototype,"replyButtonEnd",void 0);_.g([_.U(),_.N("design:type",Object)],JL.prototype,"buttonOverrides",void 0);_.g([_.U(),_.N("design:type",Object)],JL.prototype,"replyButtonOverrides",void 0);_.g([_.U(),_.N("design:type",Object)],JL.prototype,"forceIconButton",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],JL.prototype,"useCommentIcon",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],JL.prototype,"modern",void 0);_.g([_.U(),_.N("design:type",Object)],JL.prototype,"buttonTooltipPosition",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],JL.prototype,"systemIcons",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],JL.prototype,"isLiked",void 0);_.g([_.BF("ytd-button-renderer"),_.N("design:type",Object)],JL.prototype,"ytdReplyButtonRenderer",void 0);
_.g([_.BF("#like-button"),_.N("design:type",Object)],JL.prototype,"JSC$15678_ytdLikeToggleButtonRenderer",void 0);_.g([_.BF("#dislike-button"),_.N("design:type",Object)],JL.prototype,"JSC$15678_ytdDislikeToggleButtonRenderer",void 0);_.g([_.BF("#reply-dialog"),_.N("design:type",HTMLElement)],JL.prototype,"replyDialogElement",void 0);_.g([_.BF("#reply-button"),_.N("design:type",HTMLElement)],JL.prototype,"replyButtonElement",void 0);
_.g([_.BF("#reply-button-end"),_.N("design:type",HTMLElement)],JL.prototype,"replyButtonEndElement",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JL.prototype,"dataChange",null);_.g([_.PF("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],JL.prototype,"onYtCommentboxDismiss",null);
_.g([_.PF("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],JL.prototype,"onRequestSent",null);_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],JL.prototype,"onYtNavigate",null);
_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],JL.prototype,"onYtServiceRequestSent",null);_.g([_.JU("buttonTooltipPosition"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JL.prototype,"onButtonTooltipPositionChanged",null);
_.g([_.PF("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],JL.prototype,"onYtToggleButton",null);_.g([_.T({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],JL);
_.F(JL,"ytd-comment-action-buttons-renderer",function(){if(N9C!==void 0)return N9C;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return N9C=u},{mode:1});var ZFs;var jP=function(){return _.Q.apply(this,arguments)||this};
_.c(jP,_.Q);jP.prototype.focus=function(){_.bi(this.hostElement).querySelector("#commentbox").focus()};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],jP.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],jP.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],jP.prototype,"zeroStepChannelCreationRenderer",void 0);_.g([_.T({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],jP);
_.F(jP,"ytd-comment-dialog-renderer",function(){if(ZFs!==void 0)return ZFs;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return ZFs=u},{mode:1});var YOk;var Bc=function(){var u=_.Q.apply(this,arguments)||this;u.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.S("enable_web_delhi_icons")};u.replyButtonOverrides={size:"S",type:"text"};return u};
_.c(Bc,_.Q);_.I=Bc.prototype;_.I.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.I.detached=function(){this.replyBox&&this.replyBox.remove()};
_.I.showReplyDialog=function(u){if(u){var K=this.replyBox;K||(K=document.createElement("ytd-comment-reply-dialog-renderer"),K.id="replybox",_.bi(this.replyDialogDiv).appendChild(K));K.data=u;this.replyDialogDiv.hidden=!1;K.openDialog()}};
_.I.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.I.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var u,K=_.b((u=this.toolbarSurface)==null?void 0:u.subscribersOnlyDisclaimerSnackbarCommand,_.K4);K&&_.xs(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:K})}};
_.I.onYtServiceRequestSent=function(u,K){u.stopPropagation();if(K.actions)for(var l=0;l<K.actions.length;l++){var D=_.b(K.actions[l],OJ0);D?this.handleUpdateCommentVoteAction(D):u.target===this.heartButton&&this.toggleHeartState()}};
_.I.handleUpdateCommentVoteAction=function(u){var K;(K=this.toolbarState)!=null&&K.key&&this.ytdReduxBehavior.dispatch(_.EL("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:u.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":u.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.I.toggleHeartState=function(){var u;(u=this.toolbarState)!=null&&u.key&&this.ytdReduxBehavior.dispatch(_.EL("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.MN.Object.defineProperties(Bc.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return(((u=this.toolbarState)==null?void 0:u.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(K=this.toolbarData)==null?void 0:K.likeCountLiked:(l=this.toolbarData)==null?void 0:l.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.toolbarSurface)==null?void 0:u.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.toolbarSurface)==null?void 0:u.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.toolbarSurface)==null?void 0:u.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.toolbarSurface)==null?void 0:u.prepareAccountCommand)!==void 0&&!_.S("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var u,K=_.b((u=this.toolbarSurface)==null?void 0:u.prepareAccountCommand,_.K4),l,D,d,C,W,M,q,v,G;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((l=this.toolbarSharedData)==null||!l.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((D=this.toolbarState)==null?void 0:D.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:K!=null?K:_.b((d=this.toolbarSurface)==null?void 0:d.likeCommand,_.K4),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:K!=null?K:_.b((C=this.toolbarSurface)==null?void 0:C.unlikeCommand,_.K4),defaultCommand:this.isVisiblyDisabled?_.b((W=this.toolbarSurface)==null?void 0:W.commentDisabledActionCommand,_.K4):void 0,defaultTooltip:(M=this.toolbarData)==null?void 0:M.likeInactiveTooltip,toggledTooltip:(q=this.toolbarData)==null?void 0:q.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(v=this.toolbarData)==null?void 0:v.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(G=this.toolbarSharedData)==null?void 0:G.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var u,K=_.b((u=this.toolbarSurface)==null?void 0:u.prepareAccountCommand,_.K4),l,D,d,C,W,M,q,v,G,t;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((l=this.toolbarSharedData)==null||!l.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((D=this.toolbarState)==null?void 0:D.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:K!=null?K:_.b((d=this.toolbarSurface)==null?void 0:d.dislikeCommand,_.K4),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:K!=null?K:_.b((C=this.toolbarSurface)==null?void 0:C.undislikeCommand,_.K4),defaultCommand:this.isVisiblyDisabled?_.b((W=this.toolbarSurface)==null?void 0:W.commentDisabledActionCommand,_.K4):void 0,defaultTooltip:(M=this.toolbarData)==null?void 0:M.dislikeInactiveTooltip,toggledTooltip:(q=this.toolbarData)==null?void 0:
q.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(v=this.toolbarSharedData)==null?void 0:v.dislikeReplyButtonA11y:(G=this.toolbarSharedData)==null?void 0:G.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(t=this.toolbarSharedData)==null?void 0:t.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var u,K,l;if(((u=this.toolbarState)==null?void 0:u.heartState)!==void 0&&((K=this.toolbarState)==null?void 0:K.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((l=this.toolbarState)==null?void 0:l.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var D,d,C,W,M,q,v,G,t,x,O,a,f,B;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(D=this.toolbarData)==null?void 0:D.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((d=this.toolbarState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((C=this.toolbarState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((W=this.toolbarState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.b((q=this.toolbarSurface)==null?void 0:q.heartCommand,
_.K4),unheartEndpoint:this.isVisiblyDisabled?void 0:_.b((v=this.toolbarSurface)==null?void 0:v.unheartCommand,_.K4),disabledEndpoint:this.isVisiblyDisabled?_.b((G=this.toolbarSurface)==null?void 0:G.commentDisabledActionCommand,_.K4):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(t=this.toolbarData)==null?void 0:t.heartActiveTooltip,unheartedTooltip:(x=this.toolbarData)==null?void 0:x.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((O=
this.toolbarState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(a=this.toolbarSharedData)==null?void 0:a.unheartButtonA11y:(f=this.toolbarSharedData)==null?void 0:f.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(B=this.toolbarSharedData)==null?void 0:B.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.toolbarSurface)==null||!u.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(u=this.commentStrings)==null?void 0:u.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.b((K=this.toolbarSurface)==null?void 0:K.replyCommand,_.K4),command:this.isVisiblyDisabled?_.b((l=this.toolbarSurface)==null?
void 0:l.commentDisabledActionCommand,_.K4):this.isSubsOnlyCommentsIneligibleUser?_.b((D=this.toolbarSurface)==null?void 0:D.subscribersOnlySnackbarCommand,_.K4):void 0}}}});
Bc.prototype.onYtServiceRequestSent=Bc.prototype.onYtServiceRequestSent;Bc.prototype.hideReplyDialogDiv=Bc.prototype.hideReplyDialogDiv;_.g([_.U(),_.N("design:type",Object)],Bc.prototype,"commentStrings",void 0);_.g([_.U(),_.N("design:type",Boolean)],Bc.prototype,"isReply",void 0);_.g([_.U(),_.N("design:type",Object)],Bc.prototype,"toolbarData",void 0);_.g([_.U(),_.N("design:type",Object)],Bc.prototype,"toolbarSharedData",void 0);
_.g([_.U(),_.N("design:type",String)],Bc.prototype,"toolbarStateKey",void 0);_.g([_.U(),_.N("design:type",String)],Bc.prototype,"toolbarSurfaceKey",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Bc.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Bc.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.nl),_.N("design:type",Object)],Bc.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.BF("#reply-dialog"),_.N("design:type",HTMLElement)],Bc.prototype,"replyDialogDiv",void 0);_.g([_.BF("#replybox"),_.N("design:type",Object)],Bc.prototype,"replyBox",void 0);_.g([_.BF("ytd-creator-heart-renderer"),_.N("design:type",Object)],Bc.prototype,"heartButton",void 0);_.g([_.U({selector:function(u,K){return _.eZ(u.entities,"engagementToolbarStateEntityPayload",K)},
selectorArgs:["toolbarStateKey"]}),_.N("design:type",Object)],Bc.prototype,"toolbarState",void 0);_.g([_.U({selector:OYn,selectorArgs:["toolbarSurfaceKey"]}),_.N("design:type",Object)],Bc.prototype,"toolbarSurface",void 0);_.g([_.U(),_.N("design:type",Object)],Bc.prototype,"buttonOverrides",void 0);_.g([_.PF("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bc.prototype,"hideReplyDialogDiv",null);
_.g([_.R("toolbarData","toolbarState"),_.N("design:type",String),_.N("design:paramtypes",[])],Bc.prototype,"likeCount",null);_.g([_.R("likeCount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Bc.prototype,"showLikeCount",null);_.g([_.R("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Bc.prototype,"isVisiblyDisabled",null);_.g([_.R("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Bc.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.g([_.R("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Bc.prototype,"isSubsOnlyCommentsEligibleUser",null);_.g([_.R("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Bc.prototype,"hasPrepareAccountCommand",null);_.g([_.R("toolbarData","toolbarState","toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],Bc.prototype,"likeToggleButtonRenderer",null);
_.g([_.R("isReply","toolbarData","toolbarState","toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],Bc.prototype,"dislikeToggleButtonRenderer",null);_.g([_.R("toolbarData","toolbarState","toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],Bc.prototype,"creatorHeartSupportedRenderer",null);_.g([_.R("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Bc.prototype,"hasReplyCommand",null);
_.g([_.R("toolbarSurface","commentStrings","isVisiblyDisabled"),_.N("design:type",Object),_.N("design:paramtypes",[])],Bc.prototype,"replyButtonRenderer",null);_.g([_.U(),_.N("design:type",Object)],Bc.prototype,"replyButtonOverrides",void 0);_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],Bc.prototype,"onYtServiceRequestSent",null);_.g([_.T({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Bc);
_.F(Bc,"ytd-comment-engagement-bar",function(){if(YOk!==void 0)return YOk;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return YOk=u},{mode:1});var Aos;var ph=function(){return _.Q.apply(this,arguments)||this};
_.c(ph,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ph.prototype,"data",void 0);_.g([_.T({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],ph);
_.F(ph,"ytd-comment-inline-thumbnail-renderer",function(){if(Aos!==void 0)return Aos;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Aos=u},{mode:1});var X7a;var iN=function(){return _.Q.apply(this,arguments)||this};
_.c(iN,_.Q);iN.prototype.onMessageTap=function(){if(this.onTapCommand){var u=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);u&&this.ytdOpenPopupBehavior.openPopup(u)}};
_.MN.Object.defineProperties(iN.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return(u=this.data)==null?void 0:(K=u.button)==null?void 0:(l=K.buttonRenderer)==null?void 0:l.command}}});
_.g([_.e(_.nl),_.N("design:type",Object)],iN.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],iN.prototype,"data",void 0);_.g([_.R("data.button.buttonRenderer.command"),_.N("design:type",Object),_.N("design:paramtypes",[])],iN.prototype,"onTapCommand",null);_.g([_.T({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],iN);
_.F(iN,"ytd-comment-pause-composer-renderer",function(){if(X7a!==void 0)return X7a;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return X7a=u},{mode:1});var mOs;var hhw;var Te=function(){var u=_.Q.apply(this,arguments)||this;u.isOpen=!1;return u};
_.c(Te,_.Q);_.I=Te.prototype;_.I.dataChanged=function(){this.isOpen=!1};
_.I.onTap=function(){this.data&&(this.data.navigationEndpoint?_.xs(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.I.focus=function(){this.JSC$15708_commentbox.focus()};
_.I.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.I.openDialog=function(){this.isOpen=!0;this.JSC$15708_commentbox.focus();this.JSC$15708_commentbox.maybeHeightChanged()};
Te.prototype.onYtCommentboxDismiss=Te.prototype.onYtCommentboxDismiss;Te.prototype.dataChanged=Te.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Te.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Te.prototype,"isOpen",void 0);_.g([_.BF("#commentbox"),_.N("design:type",Object)],Te.prototype,"JSC$15708_commentbox",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Te.prototype,"dataChanged",null);_.g([_.PF("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Te.prototype,"onYtCommentboxDismiss",null);_.g([_.T({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],Te);
_.F(Te,"ytd-comment-reply-dialog-renderer",function(){if(hhw!==void 0)return hhw;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return hhw=u},{mode:1});var Eas;var wA=function(){return _.Q.apply(this,arguments)||this};
_.c(wA,_.Q);_.MN.Object.defineProperties(wA.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var u,K,l=(u=this.data)==null?void 0:(K=u.icon)==null?void 0:K.iconType;return l?"yt-icons:"+l.toLowerCase():null}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],wA.prototype,"data",void 0);_.g([_.U(),_.R("data.icon"),_.N("design:type",Object),_.N("design:paramtypes",[])],wA.prototype,"icon",null);_.g([_.T({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],wA);
_.F(wA,"ytd-pinned-comment-badge-renderer",function(){if(Eas!==void 0)return Eas;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Eas=u},{mode:1});var Lhs;var ugw={},KXa={input:!0,meta:!0,br:!0,link:!0,img:!0},Ft=null;ugw.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(){Ft==null&&(Ft=document.createElement("tp-yt-paper-tooltip"),Ft.offset=8,Ft.fitToVisibleBounds=!0)},
onMouseOver_:function(u){if(u=_.LS(u.target,function(d){return d==this||d.getAttribute&&d.getAttribute("shared-tooltip-text")}.bind(this),!0)){var K=u.getAttribute("shared-tooltip-text");
if(K){var l=this,D=null;u!=this&&(u.tagName.toLowerCase()in KXa?l=u.parentElement:l=u,u.id&&(D=u.id));this.polymerController.createTooltipIfRequired_();if(Ft.parentElement!=l||Ft.for!=D)(0,_.zQ)(Ft).textContent=K,_.bi(l).appendChild(Ft),Ft.for=D,Ft.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Ft.position=this.polymerController.sharedTooltipPosition}}}};var VJ=function(){return _.Q.apply(this,arguments)||this};
_.c(VJ,_.Q);VJ.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]]"}}}}}};
VJ.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
VJ.prototype.colorChanged=function(){var u,K,l,D=(u=this.data)==null?void 0:(K=u.color)==null?void 0:(l=K.basicColorPaletteData)==null?void 0:l.foregroundBodyColor;D&&(this.rgbBadgeColor=_.ui(D));_.bi(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
VJ.prototype.tooltipChanged=function(){var u;((u=this.data)==null?0:u.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
VJ.prototype.tooltipChanged=VJ.prototype.tooltipChanged;VJ.prototype.colorChanged=VJ.prototype.colorChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(ugw.YtSharedTooltipBehavior),_.N("design:type",Object)],VJ.prototype,"ytSharedTooltipBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],VJ.prototype,"data",void 0);
_.g([_.U({value:"#4285F4"}),_.N("design:type",String)],VJ.prototype,"rgbBadgeColor",void 0);_.g([_.JU("data.color"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VJ.prototype,"colorChanged",null);_.g([_.JU("data.tooltip"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VJ.prototype,"tooltipChanged",null);_.g([_.T({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],VJ);
_.F(VJ,"ytd-sponsor-comment-badge-renderer",function(){if(Lhs!==void 0)return Lhs;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Lhs=u},{mode:1});var l2m;var DJB;var gA=function(){return _.Q.apply(this,arguments)||this};
_.c(gA,_.Q);gA.prototype.computeState=function(u){switch(u==null?void 0:u.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"}};
gA.prototype.updateStateIdentifier=function(u){if(this.viewModel.triStateKey){var K=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.EL("triStateButtonStateEntityPayload",K,{key:K,stateIdentifier:u}))}};
gA.prototype.onClick=function(){var u=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(){u.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){u.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.MN.Object.defineProperties(gA.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 u;return((u=this.data)==null?void 0:u.buttonText)||""}}});
_.g([_.U(),_.N("design:type",Object)],gA.prototype,"viewModel",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],gA.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],gA.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.g([_.U({selector:cGq,selectorArgs:["viewModel.triStateKey"]}),_.N("design:type",Object)],gA.prototype,"triStateButtonStateEntity",void 0);
_.g([_.U({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.N("design:type",String)],gA.prototype,"state",void 0);_.g([_.R("viewModel","state"),_.N("design:type",Object),_.N("design:paramtypes",[])],gA.prototype,"data",null);_.g([_.R("data"),_.N("design:type",String),_.N("design:paramtypes",[])],gA.prototype,"buttonText",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],gA);
_.F(gA,"ytd-tri-state-button-view-model",function(){if(DJB!==void 0)return DJB;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return DJB=u},{mode:1});var dJ2;var Cpw;var N$=function(){var u=_.Q.apply(this,arguments)||this;u.defaultIconToFilled=!_.S("kevlar_fill_comment_chip_icon_killswitch");return u};
_.c(N$,_.Q);N$.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
N$.prototype.dataChanged=function(){if(this.data){var u,K;((u=this.data.chipColorPalette)==null?0:u.backgroundColor)&&((K=this.data.chipColorPalette)==null?0:K.foregroundTitleColor)&&_.e8(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Kg(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Kg(this.data.chipColorPalette.foregroundTitleColor)});var l;((l=this.data)==null?0:l.command)?(_.e8(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.e8(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}};
N$.prototype.onTap=function(){var u;if(this.data&&(u=this.data)!=null&&u.command){var K;this.ytComponentBehavior.resolveCommand((K=this.data)==null?void 0:K.command)}};
N$.prototype.getIconSize=function(){return _.S("kevlar_fill_comment_chip_icon_killswitch")?24:12};
N$.prototype.onTap=N$.prototype.onTap;N$.prototype.dataChanged=N$.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],N$.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],N$.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.T7),_.N("design:type",Object)],N$.prototype,"ironA11yKeysBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],N$.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Object)],N$.prototype,"basePriceText",void 0);_.g([_.U(),_.N("design:type",Object)],N$.prototype,"chipIcon",void 0);_.g([_.U(),_.N("design:type",Object)],N$.prototype,"defaultIconToFilled",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N$.prototype,"dataChanged",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N$.prototype,"onTap",null);
_.g([_.E9({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],N$);
_.F(N$,"yt-pdg-comment-chip-renderer",function(){if(Cpw===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;dJ2===void 0&&(dJ2=document.createElement("template"));var D=dJ2;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Cpw=u}u=Cpw;return u},{mode:2});var kl=function(){var u=_.Q.apply(this,arguments)||this;u.useSmallAvatars=_.S("small_avatars_for_comments");u.webWatchCompactComments=_.S("web_watch_compact_comments");u.editDialog=null;return u};
_.c(kl,_.Q);_.I=kl.prototype;_.I.onShow=function(){_.Xi("cmv",void 0,"wn_comments")};
_.I.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"}}}};
_.I.detached=function(){this.editDialog=null;this.expander.reset()};
_.I.updateBackgroundColor=function(){if(this.backgroundColor){var u={"--ytd-comment-paid-background-color":_.Kg(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.e8(this.hostElement,u)}else _.e8(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.I.resetExpander=function(){var u;(u=this.expander)==null||u.reset()};
_.I.openEditDialog=function(u){u.dialog&&(this.editDialog=u.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.I.onYtNavigate=function(u){var K=u.detail.endpoint;if(K=_.b(K,_.bkR)||_.b(K,_.Ok2))u.stopPropagation(),this.openEditDialog(K)};
_.I.onYtCommentboxDismiss=function(){this.editDialog=null;_.e8(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.I.onAuthorThumbnailClicked=function(){var u=this;_.S("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(K,l){u.onAuthorThumbnailEndpointSuccess(l)},
onServerError:function(K,l){_.hV(new _.wv("Failed to resolve the command",l))}}})};
_.I.onAuthorThumbnailEndpointSuccess=function(u){if((u=u==null?void 0:u.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(u,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();u=u==null?void 0:u.clickTrackingParams;var K=_.Yr();u&&K&&_.iT().graftServerVe(u,K)}};
_.I.logScreenVe=function(){_.ev(_.iT(),66557)};
_.I.onYtCommentboxResize=function(u){var K;(u==null?0:(K=u.detail)==null?0:K.height)&&_.e8(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":u.detail.height+"px"})};
_.MN.Object.defineProperties(kl.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 u,K=(u=this.commentEntity)==null?void 0:u.author;return K&&(K.isCreator||K.isVerified||K.isArtist)?{renderer:{authorEndpoint:K.channelPageEndpoint?_.b(K.channelPageEndpoint,_.K4):_.b(K.channelCommand,_.K4),authorText:{runs:[{text:K.displayName}]},color:K.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:K.isArtist?{iconType:"AUDIO_BADGE"}:
K.isVerified?{iconType:K.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:K.isArtist||K.isVerified?K.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var u,K=(u=this.commentEntity)==null?void 0:u.author;return K!=null&&K.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:K.sponsorBadgeUrl}]},tooltip:K.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var u;return _.b((u=this.commentSurfaceEntity)==null?void 0:u.pdgCommentChip,_.EXH)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var u;return this.voiceReplyContainerViewModel&&((u=this.voiceReplyContainerViewModel)==null?void 0:u.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var u;return _.b((u=this.commentSurfaceEntity)==null?void 0:u.voiceReplyContainerViewModel,P4w)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var u;return this.voiceReplyContainerViewModel&&(u=this.voiceReplyContainerViewModel)!=null&&u.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var u,K;return(K=(u=this.commentSurfaceEntity)==null?void 0:u.commentBackgroundColor)!=null?K:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.S("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var u,K;return(((u=this.commentEntity)==null?void 0:(K=u.properties)==null?void 0:K.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var u,K;if(_.S("enable_profile_cards_on_comments")&&((u=this.commentEntity)==null?0:(K=u.author)==null?0:K.profileCardEndpoint)&&this.viewModel.allowProfileCard){var l,D;return _.b((l=this.commentEntity)==null?void 0:(D=l.author)==null?void 0:D.profileCardEndpoint,_.K4)}var d,C;return _.b((d=this.commentEntity)==null?void 0:(C=d.avatar)==null?void 0:C.endpoint,_.K4)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var u,K;if(_.S("enable_profile_cards_on_comments")&&((u=this.commentEntity)==null?0:(K=u.author)==null?0:K.channelPageEndpoint)){var l,D;return _.b((l=this.commentEntity)==null?void 0:(D=l.author)==null?void 0:D.channelPageEndpoint,_.K4)}var d,C;return _.b((d=this.commentEntity)==null?void 0:(C=d.avatar)==null?void 0:C.endpoint,_.K4)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D,d=(u=this.commentEntity)==null?void 0:(K=u.avatar)==null?void 0:(l=K.image)==null?void 0:(D=l.sources)==null?void 0:D[0];return d?{thumbnails:[{url:d.url,width:d.width,height:d.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.commentEntity)==null?0:(K=u.author)==null?0:K.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.commentEntity)==null?void 0:(K=u.author)==null?void 0:K.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.commentEntity)==null?void 0:(K=u.properties)==null?void 0:K.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var u;return _.b((u=this.commentSurfaceEntity)==null?void 0:u.publishedTimeCommand,_.K4)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var u,K;if(((u=this.commentEntity)==null?0:u.translatedContent)&&((K=this.translateButtonState)==null?void 0:K.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var l;if((l=this.voiceReplyContainerViewModel)==null?0:l.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var D,d;return((D=this.commentEntity)==null?void 0:(d=D.properties)==null?void 0:d.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.commentSharedEntity)==null?void 0:(K=u.strings)==null?void 0:K.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.commentSharedEntity)==null?void 0:(K=u.strings)==null?void 0:K.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.commentEntity)==null||!u.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var u,K,l=(K=_.b((u=this.viewModel)==null?void 0:u.translateButton,QBN))!=null?K:{},D,d,C,W,M,q,v,G,t,x,O;return Object.assign({},l,{untoggledStateData:Object.assign({},l.untoggledStateData,{buttonText:(D=this.commentEntity)==null?void 0:(d=D.translateData)==null?void 0:d.text}),togglingStateData:Object.assign({},l.togglingStateData,{buttonText:(C=this.commentSharedEntity)==null?
void 0:(W=C.strings)==null?void 0:W.translatingText}),toggledStateData:Object.assign({},l.toggledStateData,{buttonText:(M=this.commentSharedEntity)==null?void 0:(q=M.strings)==null?void 0:q.seeOriginalText}),transitionCommand:((v=this.commentEntity)==null?0:v.translatedContent)?void 0:_.b((G=this.commentEntity)==null?void 0:(t=G.translateData)==null?void 0:t.translateComment,_.K4),triStateKey:(x=this.commentEntity)==null?void 0:(O=x.properties)==null?void 0:O.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return((K=_.b(_.b((u=this.toolbarSurface)==null?void 0:u.menuCommand,_.K4),cew))==null?void 0:(l=K.menu)==null?void 0:l.menuRenderer)||null}}});
kl.prototype.onYtCommentboxResize=kl.prototype.onYtCommentboxResize;kl.prototype.onYtCommentboxDismiss=kl.prototype.onYtCommentboxDismiss;kl.prototype.onYtNavigate=kl.prototype.onYtNavigate;kl.prototype.resetExpander=kl.prototype.resetExpander;kl.prototype.updateBackgroundColor=kl.prototype.updateBackgroundColor;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],kl.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],kl.prototype,"ytdReduxBehavior",void 0);
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],kl.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],kl.prototype,"ytRendererstamperBehavior",void 0);_.g([_.BF("#author-thumbnail > button"),_.N("design:type",HTMLElement)],kl.prototype,"authorThumbnailAnchor",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("viewModel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],kl.prototype,"linked",null);
_.g([_.R("viewModel","linked"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"linkedCommentBadge",null);_.g([_.U({reflectToAttribute:!0}),_.R("viewModel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],kl.prototype,"pinned",null);_.g([_.R("viewModel","pinned"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"pinnedCommentBadge",null);
_.g([_.R("commentEntity","commentSharedEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"authorCommentBadge",null);_.g([_.U({reflectToAttribute:!0}),_.R("authorCommentBadge"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"hasAuthorBadge",null);_.g([_.R("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"sponsorCommentBadge",null);
_.g([_.U({reflectToAttribute:!0}),_.R("sponsorCommentBadge"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"hasSponsorBadge",null);_.g([_.R("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"pdgCommentChipRenderer",null);_.g([_.U({reflectToAttribute:!0}),_.R("voiceReplyContainerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"hasVoiceReply",null);
_.g([_.R("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"voiceReplyContainerViewModel",null);_.g([_.R("voiceReplyContainerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"voiceReplyUnavailableText",null);_.g([_.U(),_.N("design:type",Object)],kl.prototype,"data",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"viewModel",null);
_.g([_.U({selector:function(u,K){return _.eZ(u.entities,"commentSharedEntityPayload",K)},
selectorArgs:["viewModel.sharedKey"]}),_.N("design:type",Object)],kl.prototype,"commentSharedEntity",void 0);_.g([_.U({selector:function(u,K){return _.eZ(u.entities,"commentEntityPayload",K)},
selectorArgs:["viewModel.commentKey"]}),_.N("design:type",Object)],kl.prototype,"commentEntity",void 0);_.g([_.U({selector:function(u,K){return _.eZ(u.entities,"commentSurfaceEntityPayload",K)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.N("design:type",Object)],kl.prototype,"commentSurfaceEntity",void 0);_.g([_.U({selector:OYn,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.N("design:type",Object)],kl.prototype,"toolbarSurface",void 0);_.g([_.U({selector:cGq,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.N("design:type",Object)],kl.prototype,"translateButtonState",void 0);
_.g([_.R("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"backgroundColor",null);_.g([_.U({reflectToAttribute:!0}),_.R("viewModel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],kl.prototype,"optimalReadingWidthComments",null);_.g([_.BF("ytd-expander"),_.N("design:type",Object)],kl.prototype,"expander",void 0);
_.g([_.JU("backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kl.prototype,"updateBackgroundColor",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],kl.prototype,"useSmallAvatars",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],kl.prototype,"webWatchCompactComments",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"isReply",null);
_.g([_.R("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"authorThumbnailEndpoint",null);_.g([_.R("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"authorNameEndpoint",null);_.g([_.R("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"authorThumbnail",null);_.g([_.R("commentEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],kl.prototype,"authorTextClass",null);
_.g([_.R("commentEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],kl.prototype,"authorChannelName",null);_.g([_.R("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"publishedTime",null);_.g([_.R("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"publishedTimeCommand",null);
_.g([_.R("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"contentText",null);_.g([_.JU("contentText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kl.prototype,"resetExpander",null);_.g([_.R("commentEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],kl.prototype,"shouldShowReadMoreInitially",null);
_.g([_.R("commentSharedEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],kl.prototype,"expandText",null);_.g([_.R("commentSharedEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],kl.prototype,"collapseText",null);_.g([_.R("commentEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],kl.prototype,"shouldShowTranslateButton",null);
_.g([_.R("commentEntity","commentSharedEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"translateButton",null);_.g([_.R("toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],kl.prototype,"overflowMenuRenderer",null);_.g([_.U(),_.N("design:type",Object)],kl.prototype,"editDialog",void 0);_.g([_.BF("ytd-comment-dialog-renderer"),_.N("design:type",Object)],kl.prototype,"editCommentDialogContainer",void 0);
_.g([_.BF("ytd-comment-reply-dialog-renderer"),_.N("design:type",Object)],kl.prototype,"editReplyDialogContainer",void 0);_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],kl.prototype,"onYtNavigate",null);_.g([_.PF("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],kl.prototype,"onYtCommentboxDismiss",null);
_.g([_.PF("yt-commentbox-resize"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],kl.prototype,"onYtCommentboxResize",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-comment-view-model"})],kl);
_.F(kl,"ytd-comment-view-model",function(){if(l2m!==void 0)return l2m;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return l2m=u},{mode:_.zW("kevlar_poly_si_batch_j025")?1:2});var Z9=function(){var u=_.Q.apply(this,arguments)||this;u.modern=_.S("web_modern_buttons");u.commentThreadingEnabled=_.S("web_delhi_comment_threads");u.isWatchGrid=_.S("kevlar_watch_grid");u.buttonOverrides=u.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};u.JSC$15755_spinnerEl=null;return u};
_.c(Z9,_.Q);_.I=Z9.prototype;_.I.configureContinuationPathMap=function(){return _.S("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.I.shouldShowExpandedThreads=function(u,K){return this.commentThreadingEnabled&&!K&&(u==null?void 0:u.length)>0};
_.I.shouldShowCollapsedThreads=function(u,K){return this.commentThreadingEnabled&&K&&u};
_.I.computeThreadRenderer=function(u){return _.b(u,c1C)};
_.I.computeIsContinuationItem=function(u){return!!this.computeContinuationItemRenderer(u)};
_.I.computeButtonRenderer=function(u){return _.b(u,_.lF)};
_.I.computeContinuationItemRenderer=function(u){return _.b(u,_.rr)};
_.I.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]]"}}}}}};
_.I.attached=function(){this.isShowRepliesVisible=!0};
_.I.dataChanged=function(){var u=this.expanderContents;u&&(u.hidden=!0);this.isLoading=!1};
_.I.endsInContinuation=function(u){return!!u&&u.length>0&&!!this.computeContinuationItemRenderer(u[u.length-1])};
_.I.computeShouldShowHideRepliesButton=function(u,K){return!u&&K};
_.I.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.I.isLoadingChanged=function(){this.isLoading&&!this.JSC$15755_spinnerEl&&(this.JSC$15755_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.bi(this.expanderContents).appendChild(this.JSC$15755_spinnerEl));this.JSC$15755_spinnerEl&&(this.JSC$15755_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var u;(u=this.contents)==null||u.classList.remove("reloading")}};
_.I.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var u=_.b(this.data.viewReplies,_.lF);u&&this.ytRendererBehavior.logExplicitClick(u);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.I.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var u=_.b(this.data.hideReplies,_.lF);u&&this.ytRendererBehavior.logExplicitClick(u);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.I.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var u=_.bi(this.hostElement).querySelector("#expander-contents");u&&(u.hidden=this.isShowRepliesVisible)}};
_.I.computeAlign=function(){if(this.modern){var u;return!((u=this.data)==null?0:u.viewRepliesCreatorThumbnail)}};
_.MN.Object.defineProperties(Z9.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var u,K;return this.endsInContinuation((u=this.data)==null?void 0:u.contents)||this.commentThreadingEnabled&&this.endsInContinuation((K=this.data)==null?void 0:K.subThreads)}}});
Z9.prototype.isShowMoreChanged=Z9.prototype.isShowMoreChanged;Z9.prototype.isLoadingChanged=Z9.prototype.isLoadingChanged;Z9.prototype.triggerFirstContinuation=Z9.prototype.triggerFirstContinuation;Z9.prototype.dataChanged=Z9.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Z9.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Z9.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.Ir),_.N("design:type",Object)],Z9.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Z9.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Z9.prototype,"modern",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Z9.prototype,"commentThreadingEnabled",void 0);_.g([_.U(),_.N("design:type",Boolean)],Z9.prototype,"collapsed",void 0);
_.g([_.U(),_.N("design:type",Function)],Z9.prototype,"toggleCollapsed",void 0);_.g([_.U(),_.N("design:type",Boolean)],Z9.prototype,"isLoading",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],Z9.prototype,"isShowRepliesVisible",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Z9.prototype,"useNewFormatting",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Z9.prototype,"isWatchGrid",void 0);_.g([_.U(),_.N("design:type",Object)],Z9.prototype,"buttonOverrides",void 0);
_.g([_.BF("#expander-contents"),_.N("design:type",HTMLElement)],Z9.prototype,"expanderContents",void 0);_.g([_.BF("ytd-continuation-item-renderer"),_.N("design:type",Object)],Z9.prototype,"continuationItemRenderer",void 0);_.g([_.BF("#contents"),_.N("design:type",HTMLElement)],Z9.prototype,"contents",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z9.prototype,"dataChanged",null);
_.g([_.R("data.contents","data.subThreads.*"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Z9.prototype,"hasContinuation",null);_.g([_.PF("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z9.prototype,"triggerFirstContinuation",null);_.g([_.JU("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z9.prototype,"isLoadingChanged",null);
_.g([_.JU("isShowRepliesVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z9.prototype,"isShowMoreChanged",null);_.g([_.T({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],Z9);
_.F(Z9,"ytd-comment-replies-renderer",function(){if(mOs!==void 0)return mOs;var u=document.createElement("template");_.z(u,'\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, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-comment-thread-renderer>\n        </template>\n        <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return mOs=u},{mode:1});var I2a;var Yl=function(){var u=_.Q.apply(this,arguments)||this;u.isOpen=!1;u.commentDialog=null;u.useSmallAvatars=_.S("small_avatars_for_comments");u.useSmallAvatarsEngagementPanelOnly=_.S("small_avatars_for_comments_ep");u.placeholderFocusListener=null;u.hasOpenedDialog=!1;u.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return u};
_.c(Yl,_.Q);_.I=Yl.prototype;_.I.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]]"}}}}}};
_.I.ready=function(){var u=this,K=_.bi(this.hostElement).querySelector("#placeholder-area"),l=_.bi(this.hostElement).querySelector("#simplebox-placeholder"),D=function(d){d.stopPropagation();d instanceof KeyboardEvent&&d.type==="keypress"&&d.keyCode!==13&&d.keyCode!==32||u.openDialog()};
this.placeholderFocusListener=D;l.addEventListener("focus",this.placeholderFocusListener);K.addEventListener("tap",D);K.addEventListener("keypress",D)};
_.I.maybeRemoveFocusEventListener=function(){var u;(u=this.data)!=null&&u.prepareAccountEndpoint&&!_.S("web_comments_simplebox_modal_focus_on_tap_ks")&&(u=_.bi(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(u.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.I.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.I.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.S("web_comment_simplebox_resolve_polymer_command_ks")?_.Pb.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Jl(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var u=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);u&&this.ytdOpenPopupBehavior.openPopup(u);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.bi(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.I.onYtCommentboxDismiss=function(u){u.stopPropagation();this.isOpen=!1};
_.I.onCreateCommentAction=function(u){this.get("createCommentAction.contents",u)&&(this.isOpen=!1)};
_.I.computeCommentDialog=function(u){return{placeholderText:u.placeholderText,authorThumbnail:u.authorThumbnail,submitButton:u.submitButton,imageButton:u.imageButton,cancelButton:u.cancelButton,emojiButton:u.emojiButton,emojis:u.emojis,emojiPicker:u.emojiPicker,aadcGuidelinesStateEntityKey:u.aadcGuidelinesStateEntityKey,openAadcDialog:u.openAadcDialog,unicodeEmojisUrl:u.unicodeEmojisUrl}};
_.I.onHideIdentityChip=function(u){_.b(u,GYA)&&this.set("data.placeholderText",_.b(u,GYA).placeholderText)};
Yl.prototype.onYtCommentboxDismiss=Yl.prototype.onYtCommentboxDismiss;Yl.prototype.dataChanged=Yl.prototype.dataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Yl.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.nl),_.N("design:type",Object)],Yl.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Yl.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Yl.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Yl.prototype,"isOpen",void 0);_.g([_.U(),_.N("design:type",Object)],Yl.prototype,"commentDialog",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Yl.prototype,"engagementPanel",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Yl.prototype,"useSmallAvatars",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Yl.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Yl.prototype,"enableCreationBox",void 0);_.g([_.U(),_.N("design:type",Boolean)],Yl.prototype,"showCreateDialog",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yl.prototype,"dataChanged",null);_.g([_.PF("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Yl.prototype,"onYtCommentboxDismiss",null);_.g([_.T({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Yl);
_.F(Yl,"ytd-comment-simplebox-renderer",function(){if(I2a!==void 0)return I2a;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return I2a=u},{mode:1});var yrH;_.E4("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var AL=function(){var u=_.Q.apply(this,arguments)||this;u.addHoverEffect=_.S("swatcheroo_comments_hover_effect");u.useSmallAvatars=_.S("small_avatars_for_comments");u.threadHovered=!1;u.collapsed=!1;u.toggleCollapsed=function(){u.collapsed=!u.collapsed;u.collapsed&&_.S("web_comment_threading_scroll_on_collapse")&&_.Sy(u.hostElement,"yt-scroll-to-watch-element",[u.commentElement])};
return u};
_.c(AL,_.Q);AL.prototype.onTap=function(u){if(this.addHoverEffect&&!this.engagementPanel&&!_.rE(_.WF(u)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var K;((K=window.getSelection())==null?0:K.toString().length)||_.Jl({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
AL.prototype.attached=function(){var u=this,K;(K=this.commentThreadHitbox)==null||K.addEventListener("mouseover",function(){u.threadHovered=!0});
var l;(l=this.commentThreadHitbox)==null||l.addEventListener("mouseout",function(){u.threadHovered=!1});
var D;(D=this.commentThreadHitbox)==null||D.addEventListener("click",function(){u.maybeToggleCollapsed()})};
AL.prototype.maybeToggleCollapsed=function(){var u,K,l,D=(u=this.data)==null?void 0:(K=u.replies)==null?void 0:(l=K.commentRepliesRenderer)==null?void 0:l.subThreads;D&&(D.length===1&&_.b(D[0],_.rr)||this.toggleCollapsed())};
_.MN.Object.defineProperties(AL.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.data)!=null&&u.commentViewModel)return _.b(this.data.commentViewModel,fVw)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return _.S("web_delhi_comment_threads")&&!!((u=this.data)==null?0:(K=u.replies)==null?0:(l=K.commentRepliesRenderer)==null?0:l.subThreads)}}});
AL.prototype.onTap=AL.prototype.onTap;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],AL.prototype,"addHoverEffect",void 0);_.g([_.U(),_.N("design:type",Object)],AL.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],AL.prototype,"useSmallAvatars",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],AL.prototype,"isSubThread",void 0);_.g([_.BF(".thread-hitbox"),_.N("design:type",HTMLElement)],AL.prototype,"commentThreadHitbox",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],AL.prototype,"threadHovered",void 0);_.g([_.BF("#comment"),_.N("design:type",HTMLElement)],AL.prototype,"commentElement",void 0);
_.g([_.U(),_.N("design:type",Object)],AL.prototype,"collapsed",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],AL.prototype,"commentViewModel",null);_.g([_.R("data.replies"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],AL.prototype,"hasSubThreading",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],AL.prototype,"engagementPanel",void 0);
_.g([_.PF("tap"),_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],AL.prototype,"onTap",null);_.g([_.T({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],AL);
_.F(AL,"ytd-comment-thread-renderer",function(){if(yrH!==void 0)return yrH;var u=document.createElement("template");_.z(u,'\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  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </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 collapsed="[[collapsed]]" data="[[data.replies.commentRepliesRenderer]]" toggle-collapsed="[[toggleCollapsed]]" 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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return yrH=u},{mode:_.zW("kevlar_poly_si_batch_j025")?1:2});var sFw;var Xt=function(){var u=_.Q.apply(this,arguments)||this;u.modernTypography=_.S("web_modern_typography");u.compactHeader=_.S("web_watch_compact_comments_header");u.hidePanelButton=!1;u.isPostSchedulingEnabled=_.S("enable_post_scheduling");u.hasFinishedStamping=!1;u.JSC$15773_handleOpenPostCommentDialogActionAfterStamp=!1;u.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return u};
_.c(Xt,_.Q);_.I=Xt.prototype;
_.I.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"}}}};
_.I.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.I.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15773_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.I.onYtServiceRequestSent=function(u,K){if(!_.S("kevlar_command_handler")&&K.actions)for(u=0;u<K.actions.length;u++){var l=K.actions[u];_.b(l,VQa)&&_.bi(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.b(l,VQa))}};
_.I.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var u;if(this.getPrefilledBackstagePostDialog((u=this.data)==null?void 0:u.actions)){_.bi(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var K=_.bi(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;K&&_.W_(this,function(){K.focus();K.openDialog&&K.openDialog()})}}else this.hasActionsChange=!0};
_.I.computeIsBackstage=function(u){return u};
_.I.onYtCommentboxDismiss=function(){_.bi(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.I.removePrefilledDialog=function(u){if(u==null?0:u.actions){for(var K=u.actions.length-1;K>=0;K--){var l=void 0;((l=_.b(u.actions[K],xDa))==null?0:l.dialog)&&delete u.actions[K]}this.set("data",void 0);this.set("data",u)}};
_.I.getPrefilledBackstagePostDialog=function(u){if(u)for(var K=0;K<u.length;K++){var l=u[K],D=void 0;if((D=_.b(l,xDa))==null?0:D.dialog)return _.b(l,xDa).dialog}return null};
_.I.computeBackstagePostDialog=function(u){return u&&(this.getPrefilledBackstagePostDialog(u.actions)||u.createRenderer)};
_.I.dataChanged=function(){if(this.data){var u=this.data.customEmojis,K=this.data.unicodeEmojisUrl;_.Cl.clear();K&&_.H$H(_.Cl,K);u&&_.Cl.load(u)}};
_.I.handleSignalActionOpenPostCommentDialogAction=function(){var u=_.bi(this.hostElement).querySelector("ytd-comment-simplebox-renderer");u?u.openDialog():this.JSC$15773_handleOpenPostCommentDialogActionAfterStamp=!0};
_.MN.Object.defineProperties(Xt.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.S("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D,d,C,W;return!this.hidePanelButton&&_.S("kevlar_watch_comments_panel_button")&&((W=_.b((u=this.data)==null?void 0:(K=u.sortMenu)==null?void 0:(l=K.sortFilterSubMenuRenderer)==null?void 0:(D=l.subMenuItems)==null?void 0:(d=D[0])==null?void 0:(C=d.serviceEndpoint)==null?void 0:C.commandMetadata,_.nN))==null?void 0:W.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.QQ("MINIPLAYER_EXPAND_LABEL"),text:_.o7(_.QQ("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Xt.prototype.dataChanged=Xt.prototype.dataChanged;Xt.prototype.onYtCommentboxDismiss=Xt.prototype.onYtCommentboxDismiss;Xt.prototype.observePrefilledBackstagePostDialog=Xt.prototype.observePrefilledBackstagePostDialog;Xt.prototype.onYtServiceRequestSent=Xt.prototype.onYtServiceRequestSent;Xt.prototype.onStampFinished=Xt.prototype.onStampFinished;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Xt.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Xt.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Xt.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Xt.prototype,"modernTypography",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Xt.prototype,"compactHeader",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xt.prototype,"engagementPanel",void 0);_.g([_.U(),_.N("design:type",Object)],Xt.prototype,"hidePanelButton",void 0);_.g([_.U({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Xt.prototype,"isBackstage",void 0);_.g([_.U({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.N("design:type",Object)],Xt.prototype,"backstagePostDialog",void 0);
_.g([_.U(),_.N("design:type",Object)],Xt.prototype,"isPostSchedulingEnabled",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data","showCommentsPanelButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],Xt.prototype,"useSpaceBetween",null);_.g([_.U({reflectToAttribute:!0}),_.R("data","hidePanelButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],Xt.prototype,"showCommentsPanelButton",null);
_.g([_.R("data","showCommentsPanelButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],Xt.prototype,"commentsPanelButtonData",null);_.g([_.PF("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xt.prototype,"onStampFinished",null);_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],Xt.prototype,"onYtServiceRequestSent",null);
_.g([_.JU("data.actions"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xt.prototype,"observePrefilledBackstagePostDialog",null);_.g([_.PF("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Xt.prototype,"onYtCommentboxDismiss",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xt.prototype,"dataChanged",null);
_.g([_.T({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Xt);
_.F(Xt,"ytd-comments-header-renderer",function(){if(sFw!==void 0)return sFw;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return sFw=u},{mode:1});var oc2;var mS=function(){return _.Q.apply(this,arguments)||this};
_.c(mS,_.Q);_.g([_.U(),_.N("design:type",Object)],mS.prototype,"data",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.g([_.T({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],mS);
_.F(mS,"ytd-destination-button-renderer",function(){if(oc2!==void 0)return oc2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return oc2=u},{mode:1});var WXH;var hL=function(){var u=_.Q.apply(this,arguments)||this;u.isRichGrid=!1;u.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};u.modernTypography=_.S("web_modern_typography");return u};
_.c(hL,_.Q);_.I=hL.prototype;_.I.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.I.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.I.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.I.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var u;if((u=this.data)==null||!u.isExpanded){u=this.hostElement.clientWidth;var K;if(u&&(K=this.data)!=null&&K.destinationButtons){K=Math.floor((u+4)/214);u=this.data.destinationButtons.length;var l=Math.ceil(u/K);this.fullyVisibleRows=u%K===1&&l===2?1:Math.min(l,2);this.isShowMoreVisible=this.fullyVisibleRows<l}}}};
_.I.updateRichGridDestinationButtonsVisibility=function(){var u,K;if(this.isRichGrid&&((u=this.data)==null||!u.isExpanded)&&(K=this.data)!=null&&K.destinationButtons){u=this.richGridItemsPerRow+1;K=this.data.destinationButtons.length;var l=Math.ceil(K/u);this.fullyVisibleRows=K%u===1&&l===2?1:Math.min(l,2);this.isShowMoreVisible=this.fullyVisibleRows<l}};
_.I.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
hL.prototype.updateRichGridDestinationButtonsVisibility=hL.prototype.updateRichGridDestinationButtonsVisibility;_.g([_.U(),_.N("design:type",Object)],hL.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Number)],hL.prototype,"fullyVisibleRows",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],hL.prototype,"isShowMoreVisible",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],hL.prototype,"isRichGrid",void 0);
_.g([_.U({selector:_.Au,value:0}),_.N("design:type",Number)],hL.prototype,"richGridItemsPerRow",void 0);_.g([_.U(),_.N("design:type",Object)],hL.prototype,"gridStateActionMap",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],hL.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],hL.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],hL.prototype,"ytdReduxBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],hL.prototype,"modernTypography",void 0);_.g([_.JU("data","richGridItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hL.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.g([_.T({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],hL);
_.F(hL,"ytd-destination-shelf-renderer",function(){if(WXH!==void 0)return WXH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return WXH=u},{mode:1});var HQB;var E_=function(){return _.Q.apply(this,arguments)||this};
_.c(E_,_.Q);E_.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"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],E_.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],E_.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],E_.prototype,"data",void 0);_.g([_.T({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],E_);
_.F(E_,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(HQB!==void 0)return HQB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return HQB=u},{mode:1});var M5S;var Lh=function(){var u=_.Q.apply(this,arguments)||this;u.disableAnimation=!1;u.isSlimlineSurvey=!1;u.isSlimlineSurveyFollowUp=!1;u.isShortsStyle=!1;return u};
_.c(Lh,_.Q);Lh.prototype.onTap=function(u){u.preventDefault();this.data&&_.xs(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.MN.Object.defineProperties(Lh.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 u,K,l,D,d;return((u=this.data)==null?0:u.checked)?(K=this.data)==null?void 0:(l=K.onStateIcon)==null?void 0:l.iconType:(D=this.data)==null?void 0:(d=D.defaultStateIcon)==null?void 0:d.iconType}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Lh.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Lh.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Lh.prototype,"disableAnimation",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Lh.prototype,"isSlimlineSurvey",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Lh.prototype,"isSlimlineSurveyFollowUp",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Lh.prototype,"isShortsStyle",void 0);_.g([_.R("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Lh.prototype,"isAnimatedIcon",null);
_.g([_.R("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.N("design:type",Number),_.N("design:paramtypes",[])],Lh.prototype,"iconSize",null);_.g([_.R("isShortsStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Lh.prototype,"isDarkTheme",null);_.g([_.R("data.checked"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lh.prototype,"icon",null);_.g([_.T({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Lh);
_.F(Lh,"ytd-rating-survey-option-renderer",function(){if(M5S!==void 0)return M5S;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return M5S=u},{mode:2});var qtw;var u8=function(){var u=_.Q.apply(this,arguments)||this;u.firstResponseText=null;u.lastResponseText=null;u.selectedNonStarOption=null;u.hideOptions=!1;u.hideUndoButton=!0;u.disableAnimation=!1;u.showResponseRangeText=!1;u.selectedRatingIndex=-1;u.isSlimlineSurvey=!1;u.isSlimlineSurveyFollowUp=!1;u.isShortsStyle=!1;u.slimlineSurveyRatingSelectedIndex=-1;return u};
_.c(u8,_.Q);_.I=u8.prototype;_.I.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.I.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.I.onOptionChange=function(u,K){var l=this;u=K.onStateIcon&&K.defaultStateIcon&&K.onStateIcon.iconType===K.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(W,M){W.responseText===K.responseText?l.isSlimlineSurvey?(l.selectedRatingIndex=M,l.ytdReduxBehavior.dispatch(ywa(M))):(l.setSurveyOptionValue(M,!0,"checked"),l.setSurveyOptionValue(M,!0,"selected")):(l.setSurveyOptionValue(M,!1,"checked"),l.setSurveyOptionValue(M,
!1,"selected"))});
else if(u)this.selectedNonStarOption=K,this.hideOptions=!0;else{var D=this.ytRendererBehavior.getSimpleString(K.responseText),d=!0;this.getOptionRenderers().forEach(function(W,M){l.setSurveyOptionValue(M,d,"checked");l.setSurveyOptionValue(M,!1,"selected");l.ytRendererBehavior.getSimpleString(W.responseText)===D&&(d=!1,l.setSurveyOptionValue(M,!0,"selected"))})}u=K.responseEndpoint;
var C;K.followUpCommand&&(C=_.b(K.followUpCommand,ZXH));this.isSlimlineSurvey?(this.resetComponent(),_.Sy(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.Sy(this.hostElement,"ytd-inline-survey-rating-select-action",[u,C])};
_.I.showSelectedOption=function(){var u=this;_.YL.addJob(function(){var K=u.getOptionRenderers()[u.slimlineSurveyRatingSelectedIndex];u.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),K)},8,100)};
_.I.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(u){var K;return(K=_.b(u,A5k))!=null?K:{}}):[]};
_.I.onUndoClick=function(){this.resetComponent();_.Sy(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.I.setSurveyOptionValue=function(u,K,l){this.notifyPath("data.ratings."+u+".ratingSurveyOptionRenderer."+l);this.set("data.ratings."+u+".ratingSurveyOptionRenderer."+l,K)};
_.I.resetComponent=function(){var u=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var K=this.getOptionRenderers(),l,D;this.firstResponseText=(D=(l=K[0])==null?void 0:l.responseText)!=null?D:null;var d,C;this.lastResponseText=(C=(d=K[K.length-1])==null?void 0:d.responseText)!=null?C:null;K.forEach(function(W,M){u.setSurveyOptionValue(M,!1,"checked");u.setSurveyOptionValue(M,!1,"selected")})};
_.MN.Object.defineProperties(u8.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
u8.prototype.onOptionChange=u8.prototype.onOptionChange;u8.prototype.dataChanged=u8.prototype.dataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],u8.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],u8.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],u8.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Object)],u8.prototype,"firstResponseText",void 0);_.g([_.U(),_.N("design:type",Object)],u8.prototype,"lastResponseText",void 0);_.g([_.U(),_.N("design:type",Object)],u8.prototype,"selectedNonStarOption",void 0);_.g([_.U(),_.N("design:type",Object)],u8.prototype,"hideOptions",void 0);_.g([_.U(),_.N("design:type",Object)],u8.prototype,"hideUndoButton",void 0);_.g([_.U(),_.N("design:type",Object)],u8.prototype,"disableAnimation",void 0);
_.g([_.U(),_.N("design:type",Object)],u8.prototype,"showResponseRangeText",void 0);_.g([_.U(),_.N("design:type",Object)],u8.prototype,"selectedRatingIndex",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],u8.prototype,"isSlimlineSurvey",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],u8.prototype,"isSlimlineSurveyFollowUp",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],u8.prototype,"isShortsStyle",void 0);_.g([_.U({selector:function(u){return u.ui.slimlineSurveyRatingSelectedIndex}}),
_.N("design:type",Object)],u8.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.g([_.R("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],u8.prototype,"isSingleSelect",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u8.prototype,"dataChanged",null);
_.g([_.PF("ytd-rating-survey-option-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],u8.prototype,"onOptionChange",null);_.g([_.T({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],u8);
_.F(u8,"ytd-rating-survey-renderer",function(){if(qtw!==void 0)return qtw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return qtw=u},{mode:1});var $JR;var ncm;var rra;var wqL=(Tk.FIRSTDAYOFWEEK+1)%7,vca=function(u,K,l,D){var d="";if(D.selection&&BGq(D.selection))Bk(u,D.selection)&&(d+=" selected");else if(D.selection&&pq9(D.selection)){var C=D.selection.selectionState||"START_DATE";Bk(u,D.selection.start)&&(d+=" period-start ",C==="START_DATE"&&(d+="selected"));Bk(u,D.selection.end)&&(d+=" period-end ",C==="END_DATE"&&(d+="selected"));pz(u,D.selection.start)||pz(D.selection.end,u)||(d+=" highlighted")}if(pz(K,D.start)||pz(D.end,K))d+=" disabled";D.circleToday&&
Bk(K,l)&&(d+=" today");return d};var Kd=function(){return _.Q.apply(this,arguments)||this};
_.c(Kd,_.Q);_.I=Kd.prototype;_.I.attached=function(){var u=this;_.W_(this,function(){u.JSC$15807_calendarMain.scrollHeight>0&&(u.calendarConfig.selection?u.scrollToDate(iwb(u.calendarConfig.selection)):u.scrollToDate(u.calendarConfig.end))})};
_.I.updateSelection=function(u){u=Fno(Object.assign({},this.calendarConfig,{selection:u}),vca);this.splice.apply(this,["renderData.months",0,u.length].concat(_.Am(u)))};
_.I.scrollToDate=function(u){this.renderData&&(u=VIn(u,this.renderData),u!==void 0&&this.JSC$15807_calendarMain.scrollToIndex(u))};
_.I.scrollToNextMonth=function(){this.JSC$15807_calendarMain.scrollToIndex(this.JSC$15807_calendarMain.firstVisibleIndex+1)};
_.I.scrollToPrevMonth=function(){this.JSC$15807_calendarMain.firstVisibleIndex===0&&this.JSC$15807_calendarMain.scrollTo(0,0);this.JSC$15807_calendarMain.scrollToIndex(this.JSC$15807_calendarMain.firstVisibleIndex-1)};
_.I.handleDayClick=function(u){_.Sy(this.hostElement,"ytd-calendar-date-clicked",[u.model.day.date])};
_.I.handleDayMouseDown=function(u){u.preventDefault();_.Sy(this.hostElement,"ytd-calendar-date-mousedown",[u.model.day.date])};
_.I.handleDayMouseUp=function(u){_.Sy(this.hostElement,"ytd-calendar-date-mouseup",[u.model.day.date])};
_.I.handleDayMouseEnter=function(u){u.preventDefault();_.Sy(this.hostElement,"ytd-calendar-date-mouseenter",[u.model.day.date])};
_.I.handleDayMouseLeave=function(u){_.Sy(this.hostElement,"ytd-calendar-date-mouseleave",[u.model.day.date])};
_.MN.Object.defineProperties(Kd.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var u=this.calendarConfig,K=vca;K=K===void 0?vca:K;for(var l=[],D=0;D<7;D++)l.push(Tk.NARROWWEEKDAYS[(D+wqL)%7]);return{months:Fno(u,K),daysOfWeekLabel:l}}}});
_.g([_.U(),_.N("design:type",Object)],Kd.prototype,"calendarConfig",void 0);_.g([_.BF("#calendar-main"),_.N("design:type",Object)],Kd.prototype,"JSC$15807_calendarMain",void 0);_.g([_.R("calendarConfig"),_.N("design:type",Object),_.N("design:paramtypes",[])],Kd.prototype,"renderData",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Kd);
_.F(Kd,"ytd-scrollable-calendar",function(){if(rra!==void 0)return rra;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return rra=u},{mode:2});var GcC;var t5S;var l8=function(){var u=_.Q.apply(this,arguments)||this;u.hideCharCounter=!1;u.hideLabel=!1;u.noLabelFloat=!1;u.autoValidate=!0;u.invalid=!1;u.disabled=!1;u.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return u};
_.c(l8,_.Q);_.I=l8.prototype;_.I.reset=function(u){this.value=u&&this.data?this.data.value=u:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.I.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.I.focusTextInput=function(){this.input.focus()};
_.I.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()};
_.I.valueChanged=function(){var u,K;if(((u=this.data)==null?0:u.value)||((K=this.data)==null?void 0:K.value)==="")this.value=this.data.value;else{var l;((l=this.data)==null?void 0:l.value)!==void 0||this.value||(this.value="")}};
_.I.computeLabel=function(u,K){return K?"":_.WI(u)};
_.I.computeAriaLabel=function(u,K){return K?_.WI(u):""};
_.I.computeErrorMessage=function(u,K,l,D){!u&&K?u=l||this.strings.REQUIRED_LABEL:(u=_.WI(D),u=_.Ho(u,"&")?"document"in _.lL?QRw(u):PLN(u):u);return u};
_.I.computeType=function(u){return u==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.I.onTextValueChanged=function(u){this.value=u.detail.value;var K;(K=this.onValueChanged)==null||K.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.I.handleUpdateTextInputFormFieldRendererCommand=function(u){(u=_.b(u,qgB))&&this.data&&this.data.id===u.id&&(u.invalid!==void 0&&(this.invalid=u.invalid),u.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",u.invalidValueErrorMessage))};
_.I.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("value-changed",this.value))};
_.I.updateInvalidFromBinding=function(u){this.invalid=u.detail.value};
_.MN.Object.defineProperties(l8.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var u;return!((u=this.data)==null||!u.isMultiline)}}});
l8.prototype.valueChangedForBinding=l8.prototype.valueChangedForBinding;l8.prototype.valueChanged=l8.prototype.valueChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],l8.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],l8.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],l8.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],l8.prototype,"value",void 0);_.g([_.U(),_.N("design:type",String)],l8.prototype,"pattern",void 0);_.g([_.U(),_.N("design:type",String)],l8.prototype,"errorMessage",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],l8.prototype,"componentStyle",void 0);_.g([_.U(),_.N("design:type",Object)],l8.prototype,"hideCharCounter",void 0);
_.g([_.U(),_.N("design:type",Object)],l8.prototype,"hideLabel",void 0);_.g([_.U(),_.N("design:type",Object)],l8.prototype,"noLabelFloat",void 0);_.g([_.U(),_.N("design:type",Function)],l8.prototype,"onValueChanged",void 0);_.g([_.U(),_.N("design:type",Boolean)],l8.prototype,"isMultilineOverride",void 0);_.g([_.U(),_.N("design:type",Object)],l8.prototype,"autoValidate",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],l8.prototype,"invalid",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],l8.prototype,"disabled",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],l8.prototype,"enableOverlayTheme",void 0);_.g([_.U({value:{REQUIRED_LABEL:_.QQ("REQUIRED_LABEL",void 0,"Required")}}),_.N("design:type",Object)],l8.prototype,"strings",void 0);_.g([_.BF("#input"),_.N("design:type",Object)],l8.prototype,"input",void 0);
_.g([_.R("data","isMultilineOverride"),_.N("design:type",Object),_.N("design:paramtypes",[])],l8.prototype,"isMultiline",null);_.g([_.wn("data.value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],l8.prototype,"valueChanged",null);_.g([_.JU("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],l8.prototype,"valueChangedForBinding",null);_.g([_.E9({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],l8);
_.F(l8,"yt-text-input-form-field-renderer",function(){if(t5S===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;GcC===void 0&&(GcC=document.createElement("template"));var D=GcC;l.call(K,D.content.cloneNode(!0),u.content.firstChild);t5S=u}u=t5S;return u},{mode:2});var Dg=function(){var u=_.Q.apply(this,arguments)||this;u.data=void 0;u.selectionState="START_DATE";u.isStartDateInvalid=!1;u.isEndDateInvalid=!1;u.autoapply=!1;u.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 u};
_.c(Dg,_.Q);_.I=Dg.prototype;_.I.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"}}}}};
_.I.focus=function(){this.startDateInput.focus()};
_.I.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:iC(this.data.selection.start),end:iC(this.data.selection.end)})};
_.I.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.I.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.o2(this.selectionState)}};
_.I.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.I.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.I.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.I.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var u=this.calendar.calendarConfig,K=u.end;u=NGZ({start:u.start,end:this.endDate||K},this.startDateInput.value||"");this.isStartDateInvalid=!u.isValid;u.isValid&&(u=u.value,this.selection=this.endDate?{start:u,end:this.endDate}:u,this.calendar.scrollToDate(u));this.updateInvalidState()}};
_.I.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var u=this.calendar.calendarConfig,K=u.start;u=NGZ({start:this.startDate||K,end:u.end},this.endDateInput.value||"");this.isEndDateInvalid=!u.isValid;u.isValid&&(u=u.value,this.selection={start:this.startDate,end:u},this.calendar.scrollToDate(u));this.updateInvalidState()}};
_.I.handleCalendarDateClicked=function(u){var K=this.selection&&iwb(this.selection),l=this.selection&&TGq(this.selection);K&&!pz(u,K)&&this.selectionState==="END_DATE"?(this.selection={start:K,end:u},this.selectionState="START_DATE"):(l&&!pz(l,u)?this.selection={start:u,end:l}:this.selection=u,this.selectionState="END_DATE")};
_.I.handleCalendarDateMouseDown=function(u){this.selection&&!BGq(this.selection)&&(this.dragPivot=Bk(u,this.selection.start)?this.selection.end:Bk(u,this.selection.end)?this.selection.start:u)};
_.I.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.I.handleCalendarDateMouseEnter=function(u){this.dragPivot&&(this.selection={start:function(K,l){return pz(K,l)?K:l}(this.dragPivot,u),
end:function(K,l){return pz(K,l)?l:K}(this.dragPivot,u)},this.dragPivot||(this.selectionState="START_DATE"))};
_.I.handleCalendarDateMouseLeave=function(){};
_.I.handleCalendarSubmitDateRange=function(){this.selection&&!BGq(this.selection)&&_.Sy(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.I.updateInvalidState=function(){var u=function(K,l){l?K.setAttribute("invalid",""):K.removeAttribute("invalid")};
u(this.startDateInput,this.isStartDateInvalid);u(this.endDateInput,this.isEndDateInvalid)};
_.I.updateDateStrings=function(){this.selection&&(BGq(this.selection)?jIn(this.selection):(jIn(this.selection.start),jIn(this.selection.end)))};
_.I.updateCalendarSelection=function(u){this.calendar.updateSelection(Object.assign({},u,{selectionState:this.selectionState}))};
_.I.updateIsStartDateInvalidFromBinding=function(u){this.isStartDateInvalid=u.detail.value};
_.I.updateIsEndDateInvalidFromBinding=function(u){this.isEndDateInvalid=u.detail.value};
_.I.updateStartDateStringFromBinding=function(){};
_.I.updateEndDateStringFromBinding=function(){};
_.MN.Object.defineProperties(Dg.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:iC(this.data.dateRangeStart),end:iC(this.data.dateRangeEnd),selection:{start:iC(this.data.selection.start),end:iC(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&iwb(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&TGq(this.selection)}}});
Dg.prototype.resetTextboxes=Dg.prototype.resetTextboxes;Dg.prototype.observeSelection=Dg.prototype.observeSelection;Dg.prototype.dataChanged=Dg.prototype.dataChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Dg.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Dg.prototype,"ytRendererstamperBehavior",void 0);_.g([_.BF("#calendar"),_.N("design:type",Object)],Dg.prototype,"calendar",void 0);
_.g([_.BF("#start-date"),_.N("design:type",Object)],Dg.prototype,"startDateInput",void 0);_.g([_.BF("#end-date"),_.N("design:type",Object)],Dg.prototype,"endDateInput",void 0);_.g([_.U(),_.N("design:type",Object)],Dg.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Dg.prototype,"selection",void 0);_.g([_.U(),_.N("design:type",String)],Dg.prototype,"selectionState",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Dg.prototype,"calendarConfig",null);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Dg.prototype,"errorMessage",null);_.g([_.R("selection"),_.N("design:type",Object),_.N("design:paramtypes",[])],Dg.prototype,"startDate",null);_.g([_.R("selection"),_.N("design:type",Object),_.N("design:paramtypes",[])],Dg.prototype,"endDate",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dg.prototype,"dataChanged",null);
_.g([_.JU("selection","selectionState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dg.prototype,"observeSelection",null);_.g([_.JU("selectionState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dg.prototype,"resetTextboxes",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Dg);
_.F(Dg,"ytd-date-period-picker-renderer",function(){if(ncm!==void 0)return ncm;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return ncm=u},{mode:1});var d5=function(){var u=_.Q.apply(this,arguments)||this;var K={};u.actionMap=(K["ytd-date-period-picker-apply"]="handleDateRangeUpdated",K);return u};
_.c(d5,_.Q);d5.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
d5.prototype.handleDateRangeUpdated=function(){};
_.g([_.U(),_.N("design:type",Object)],d5.prototype,"data",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],d5.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],d5.prototype,"rendererstamperBehavior",void 0);_.g([_.T({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],d5);
_.F(d5,"ytd-report-history-section-header-renderer",function(){if($JR!==void 0)return $JR;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return $JR=u},{mode:1});var xJw;var Stw;var bQS;var Cd=function(){return _.Q.apply(this,arguments)||this};
_.c(Cd,_.Q);_.MN.Object.defineProperties(Cd.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?0:(K=u.icon)==null?0:K.iconType)?_.fr(this.data.icon.iconType):""}}});
_.g([_.U(),_.N("design:type",Object)],Cd.prototype,"data",void 0);_.g([_.R("data"),_.N("design:type",String),_.N("design:paramtypes",[])],Cd.prototype,"icon",null);_.g([_.T({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Cd);
_.F(Cd,"ytd-report-history-table-text-cell-renderer",function(){if(bQS!==void 0)return bQS;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return bQS=u},{mode:1});var Id=function(){return _.Q.apply(this,arguments)||this};
_.c(Id,_.Q);Id.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Id.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Id.prototype,"data",void 0);_.g([_.T({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Id);
_.F(Id,"ytd-report-history-table-reason-cell-renderer",function(){if(Stw!==void 0)return Stw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Stw=u},{mode:1});var yq=function(){return _.Q.apply(this,arguments)||this};
_.c(yq,_.Q);yq.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"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],yq.prototype,"rendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],yq.prototype,"data",void 0);_.g([_.T({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],yq);
_.F(yq,"ytd-report-history-table-cell-renderer",function(){if(xJw!==void 0)return xJw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
return xJw=u},{mode:1});var OQC;var sm=function(){var u=_.Q.apply(this,arguments)||this;u.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 u};
_.c(sm,_.Q);sm.prototype.onDataChanged=function(){var u;if((u=this.data)==null?0:u.style)this.componentStyle=this.getStyleName(this.data.style)};
sm.prototype.getCellForColumn=function(u){return this.cells.find(function(K){var l;return((l=_.b(K==null?void 0:K.cell,hjs)||_.b(K==null?void 0:K.cell,miA))==null?void 0:l.columnId)===u.type})};
sm.prototype.getClassForColumn=function(u){switch(u){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
sm.prototype.getStyleName=function(u){switch(u){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.MN.Object.defineProperties(sm.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var u;return(((u=this.data)==null?void 0:u.cells)||[]).map(function(K){return _.b(K,XNR)})}}});
sm.prototype.onDataChanged=sm.prototype.onDataChanged;_.g([_.U(),_.N("design:type",Object)],sm.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Array)],sm.prototype,"columnRenderData",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],sm.prototype,"componentStyle",void 0);_.g([_.R("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],sm.prototype,"cells",null);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sm.prototype,"onDataChanged",null);_.g([_.T({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],sm);
_.F(sm,"ytd-report-history-table-row-renderer",function(){if(OQC!==void 0)return OQC;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return OQC=u},{mode:1});var crH;var a20;var k0n={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},Zwh={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var od=function(){return _.Q.apply(this,arguments)||this};
_.c(od,_.Q);od.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"}}}}}};
od.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.MN.Object.defineProperties(od.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?0:u.columns)?hWh(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Xqy(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var u=this.tableSpec,K=k0n;K=K===void 0?Zwh:K;K=m4o(u.columnDimensions,u.columnsToShow||[],K);u=0;K=_.y(K);for(var l=K.next();!l.done;l=K.next())l=l.value,u+=l.minWidth+l.paddingLeft+l.paddingRight;return u}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.g([_.e(_.Ir),_.N("design:type",Object)],od.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],od.prototype,"data",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],od.prototype,"tableSpec",null);_.g([_.R("tableSpec"),_.N("design:type",Array),_.N("design:paramtypes",[])],od.prototype,"columnRenderData",null);
_.g([_.R("tableSpec"),_.N("design:type",Number),_.N("design:paramtypes",[])],od.prototype,"totalMinWidth",null);_.g([_.R("totalMinWidth"),_.N("design:type",String),_.N("design:paramtypes",[])],od.prototype,"tableWidthStyle",null);_.g([_.T({is:"ytd-table-renderer",disableElementRegistration:!0})],od);
_.F(od,"ytd-table-renderer",function(){if(a20!==void 0)return a20;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return a20=u},{mode:1});var Wt=function(){return _.Q.apply(this,arguments)||this};
_.c(Wt,_.Q);Wt.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}}}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Wt.prototype,"data",void 0);_.g([_.T({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Wt);
_.F(Wt,"ytd-report-reason-history-modal-renderer",function(){if(crH!==void 0)return crH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return crH=u},{mode:1});var zrH;var erA;var RrR;var Ht=function(){return _.Q.apply(this,arguments)||this};
_.c(Ht,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ht.prototype,"data",void 0);_.g([_.T({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Ht);
_.F(Ht,"ytd-profile-column-stats-entry-renderer",function(){if(RrR!==void 0)return RrR;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return RrR=u},{mode:1});var UJS;var Mr=function(){return _.Q.apply(this,arguments)||this};
_.c(Mr,_.Q);Mr.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Mr.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Mr.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Mr.prototype,"data",void 0);_.g([_.T({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],Mr);
_.F(Mr,"ytd-profile-column-stats-renderer",function(){if(UJS!==void 0)return UJS;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return UJS=u},{mode:1});var f2m;var qr=function(){return _.Q.apply(this,arguments)||this};
_.c(qr,_.Q);_.MN.Object.defineProperties(qr.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.data)==null||!u.useThumbnailSize)return 80;var K,l;u=(K=this.data)==null?void 0:(l=K.thumbnail)==null?void 0:l.thumbnails;var D;return u&&((D=u[0])==null?void 0:D.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.data)==null||!u.useThumbnailSize)return 80;var K,l;u=(K=this.data)==null?void 0:(l=K.thumbnail)==null?void 0:l.thumbnails;var D;return u&&((D=u[0])==null?void 0:D.height)||80}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],qr.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],qr.prototype,"componentStyle",void 0);_.g([_.R("data.useThumbnailSize"),_.N("design:type",Object),_.N("design:paramtypes",[])],qr.prototype,"thumbnailWidth",null);
_.g([_.R("data.useThumbnailSize"),_.N("design:type",Object),_.N("design:paramtypes",[])],qr.prototype,"thumbnailHeight",null);_.g([_.T({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],qr);
_.F(qr,"ytd-profile-column-user-info-renderer",function(){if(f2m!==void 0)return f2m;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return f2m=u},{mode:1});var $F=function(){return _.Q.apply(this,arguments)||this};
_.c($F,_.Q);$F.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]]"}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],$F.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],$F.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],$F.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],$F.prototype,"componentStyle",void 0);_.g([_.T({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],$F);
_.F($F,"ytd-profile-column-renderer",function(){if(erA!==void 0)return erA;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return erA=u},{mode:1});var nd=function(){var u=_.Q.apply(this,arguments)||this;u.componentStyle="NON_CENTERED_PROFILE";return u};
_.c(nd,_.Q);nd.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
nd.prototype.getIcon=function(u){return u?"settings:"+u.toLowerCase():null};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],nd.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],nd.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],nd.prototype,"data",void 0);_.g([_.T({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],nd);
_.F(nd,"ytd-page-introduction-renderer",function(){if(zrH!==void 0)return zrH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return zrH=u},{mode:1});var QFB;var r5=function(){return _.Q.apply(this,arguments)||this};
_.c(r5,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],r5.prototype,"data",void 0);_.g([_.T({is:"ytd-report-description-renderer",disableElementRegistration:!0})],r5);
_.F(r5,"ytd-report-description-renderer",function(){if(QFB!==void 0)return QFB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return QFB=u},{mode:1});var PpA;var JrB;var vt=function(){return _.Q.apply(this,arguments)||this};
_.c(vt,_.Q);vt.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],vt.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],vt.prototype,"data",void 0);_.g([_.T({is:"ytd-video-report-renderer",disableElementRegistration:!0})],vt);
_.F(vt,"ytd-video-report-renderer",function(){if(JrB!==void 0)return JrB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return JrB=u},{mode:1});var jFw;_.E4("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.E4("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var Gi=function(){return _.Q.apply(this,arguments)||this};
_.c(Gi,_.Q);Gi.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]]"}}}}}};
Gi.prototype.computeMessageStyle=function(u){return u};
Gi.prototype.computeButtonOverride=function(u){var K;if((u==null?0:(K=u.style)==null?0:K.value)&&u.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Gi.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Gi.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Gi.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Gi.prototype,"shelf",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Gi.prototype,"panel",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.N("design:type",Boolean)],Gi.prototype,"componentStyle",void 0);_.g([_.U({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],Gi.prototype,"buttonOverride",void 0);_.g([_.T({is:"ytd-message-renderer",disableElementRegistration:!0})],Gi);
_.F(Gi,"ytd-message-renderer",function(){if(jFw!==void 0)return jFw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return jFw=u},{mode:1});var tY=function(){return _.Q.apply(this,arguments)||this};
_.c(tY,_.Q);tY.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"}}}};
tY.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
tY.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.MN.Object.defineProperties(tY.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var u,K;return!!(((u=this.data)==null?0:u.header)&&((K=this.data)==null?0:K.table))}}});
tY.prototype.onRequestError=tY.prototype.onRequestError;_.g([_.e(_.Ir),_.N("design:type",Object)],tY.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],tY.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],tY.prototype,"data",void 0);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],tY.prototype,"isUnifiedReportHistory",null);_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tY.prototype,"onRequestError",null);_.g([_.T({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],tY);
_.F(tY,"ytd-report-history-section-renderer",function(){if(PpA!==void 0)return PpA;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return PpA=u},{mode:1});var BSA;var xF=function(){var u=_.Q.apply(this,arguments)||this;u.answerExpanded=!1;return u};
_.c(xF,_.Q);xF.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],xF.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],xF.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],xF.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],xF.prototype,"answerExpanded",void 0);_.g([_.T({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],xF);
_.F(xF,"ytd-handles-claiming-faq-renderer",function(){if(BSA!==void 0)return BSA;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return BSA=u},{mode:1});var pMk;var iQ0=function(){return _.Q.apply(this,arguments)||this};
_.c(iQ0,_.Q);_.g([_.U(),_.N("design:type",Object)],iQ0.prototype,"data",void 0);_.g([_.T({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],iQ0);
_.F(iQ0,"ytd-handles-claiming-faq-section-renderer",function(){if(pMk!==void 0)return pMk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return pMk=u},{mode:1});var TSB;var S4=function(){var u=_.Q.apply(this,arguments)||this;u.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";u.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";u.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";u.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";u.leftSquiggly=u.leftSquigglyLight;u.rightSquiggly=u.rightSquigglyLight;
u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};u.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return u};
_.c(S4,_.Q);_.I=S4.prototype;_.I.updateLeftSquigglyStyle=function(){_.e8(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.I.updateRightSquigglyStyle=function(){_.e8(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.I.ready=function(){var u=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(u)};
_.I.onDarkModeToggledAction=function(u){u!==this.isDarkTheme&&(this.set("isDarkTheme",u),u?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.I.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
S4.prototype.updateRightSquigglyStyle=S4.prototype.updateRightSquigglyStyle;S4.prototype.updateLeftSquigglyStyle=S4.prototype.updateLeftSquigglyStyle;_.g([_.U(),_.N("design:type",Object)],S4.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],S4.prototype,"isDarkTheme",void 0);_.g([_.U(),_.N("design:type",String)],S4.prototype,"leftSquiggly",void 0);_.g([_.U(),_.N("design:type",String)],S4.prototype,"rightSquiggly",void 0);
_.g([_.JU("leftSquiggly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S4.prototype,"updateLeftSquigglyStyle",null);_.g([_.JU("rightSquiggly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S4.prototype,"updateRightSquigglyStyle",null);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],S4.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],S4.prototype,"actionButtonOverride",void 0);_.g([_.T({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],S4);
_.F(S4,"ytd-handles-claiming-header-renderer",function(){if(TSB!==void 0)return TSB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return TSB=u},{mode:1});var wMa;var b8=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};u.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";u.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";u.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";u.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
u.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";u.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";u.image0SquigglyBackground=u.image0LightSquigglyBackground;u.image1SquigglyBackground=u.image1LightSquigglyBackground;u.image3SquigglyBackground=u.image3LightSquigglyBackground;return u};
_.c(b8,_.Q);_.I=b8.prototype;_.I.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.I.onDataChanged=function(){this.updateTitleAndImages()};
_.I.onThemeChanged=function(){this.updateTitleAndImages()};
_.I.onDarkModeToggledAction=function(u){u!==this.isDarkTheme&&(this.isDarkTheme=u)};
_.I.updateImage0SquigglyBackground=function(){_.e8(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.I.updateImage1SquigglyBackground=function(){_.e8(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.I.updateImage3SquigglyBackground=function(){_.e8(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.I.updateTitleAndImages=function(){var u,K;((u=this.data)==null?void 0:(K=u.titleImages)==null?void 0:K.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))};
b8.prototype.updateImage3SquigglyBackground=b8.prototype.updateImage3SquigglyBackground;b8.prototype.updateImage1SquigglyBackground=b8.prototype.updateImage1SquigglyBackground;b8.prototype.updateImage0SquigglyBackground=b8.prototype.updateImage0SquigglyBackground;b8.prototype.onThemeChanged=b8.prototype.onThemeChanged;b8.prototype.onDataChanged=b8.prototype.onDataChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],b8.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],b8.prototype,"isDarkTheme",void 0);_.g([_.U(),_.N("design:type",Object)],b8.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],b8.prototype,"title0",void 0);_.g([_.U(),_.N("design:type",Object)],b8.prototype,"title1",void 0);_.g([_.U(),_.N("design:type",Object)],b8.prototype,"title2",void 0);_.g([_.U(),_.N("design:type",Object)],b8.prototype,"title3",void 0);
_.g([_.U(),_.N("design:type",Object)],b8.prototype,"title4",void 0);_.g([_.U(),_.N("design:type",Object)],b8.prototype,"image0",void 0);_.g([_.U(),_.N("design:type",Object)],b8.prototype,"image1",void 0);_.g([_.U(),_.N("design:type",Object)],b8.prototype,"image2",void 0);_.g([_.U(),_.N("design:type",Object)],b8.prototype,"image3",void 0);_.g([_.U(),_.N("design:type",Object)],b8.prototype,"image4",void 0);_.g([_.U(),_.N("design:type",String)],b8.prototype,"image0SquigglyBackground",void 0);
_.g([_.U(),_.N("design:type",String)],b8.prototype,"image1SquigglyBackground",void 0);_.g([_.U(),_.N("design:type",String)],b8.prototype,"image3SquigglyBackground",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],b8.prototype,"onDataChanged",null);_.g([_.JU("isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],b8.prototype,"onThemeChanged",null);
_.g([_.JU("image0SquigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],b8.prototype,"updateImage0SquigglyBackground",null);_.g([_.JU("image1SquigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],b8.prototype,"updateImage1SquigglyBackground",null);
_.g([_.JU("image3SquigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],b8.prototype,"updateImage3SquigglyBackground",null);_.g([_.T({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],b8);
_.F(b8,"ytd-handles-claiming-title-images-section-renderer",function(){if(wMa!==void 0)return wMa;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return wMa=u},{mode:1});var FX0;var Om=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return u};
_.c(Om,_.Q);Om.prototype.ready=function(){var u=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(u)};
Om.prototype.onDarkModeToggledAction=function(u){u!==this.isDarkTheme&&this.set("isDarkTheme",u)};
Om.prototype.onCopyButtonClick=function(){var u=this,K,l,D;return _.H(function(d){return(K=u.data)!=null&&K.primaryChannelUrl?d.yield(navigator.clipboard.writeText(((l=u.data)==null?0:l.encodedChannelUrl)?u.data.encodedChannelUrl:"https://"+_.WI((D=u.data)==null?void 0:D.primaryChannelUrl)),0):d.jumpTo(0)})};
_.g([_.U(),_.N("design:type",Object)],Om.prototype,"data",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Om.prototype,"ytComponentBehavior",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Om.prototype,"isDarkTheme",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Om.prototype,"ytActionHandlerBehavior",void 0);_.g([_.T({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Om);
_.F(Om,"ytd-handles-claiming-update-social-renderer",function(){if(FX0!==void 0)return FX0;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return FX0=u},{mode:1});var V5H;var ct=function(){var u=_.Q.apply(this,arguments)||this;u.JSC$15901_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";u.JSC$15901_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};u.squigglyBackground=u.JSC$15901_squigglyBackgroundLight;return u};
_.c(ct,_.Q);ct.prototype.updateSquigglyBackgroundStyle=function(){_.e8(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
ct.prototype.ready=function(){var u=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",u);this.squigglyBackground=u?this.JSC$15901_squigglyBackgroundDark:this.JSC$15901_squigglyBackgroundLight};
ct.prototype.onDarkModeToggledAction=function(u){u!==this.isDarkTheme&&(this.set("isDarkTheme",u),this.squigglyBackground=u?this.JSC$15901_squigglyBackgroundDark:this.JSC$15901_squigglyBackgroundLight)};
ct.prototype.updateSquigglyBackgroundStyle=ct.prototype.updateSquigglyBackgroundStyle;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ct.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],ct.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ct.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ct.prototype,"isDarkTheme",void 0);_.g([_.U(),_.N("design:type",String)],ct.prototype,"squigglyBackground",void 0);_.g([_.JU("squigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ct.prototype,"updateSquigglyBackgroundStyle",null);_.g([_.T({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],ct);
_.F(ct,"ytd-handles-claiming-vanity-info-renderer",function(){if(V5H!==void 0)return V5H;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return V5H=u},{mode:1});var gcs;var ad=function(){var u=_.Q.apply(this,arguments)||this;u.JSC$15904_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";u.JSC$15904_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";u.squigglyBackground=u.JSC$15904_squigglyBackgroundLight;u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return u};
_.c(ad,_.Q);_.I=ad.prototype;_.I.ready=function(){var u=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(u)};
_.I.onDarkModeToggledAction=function(u){u!==this.isDarkTheme&&(this.set("isDarkTheme",u),this.squigglyBackground=u?this.JSC$15904_squigglyBackgroundDark:this.JSC$15904_squigglyBackgroundLight)};
_.I.updateSquigglyBackgroundStyle=function(){_.e8(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.I.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.I.detached=function(){this.stop()};
_.I.stop=function(){this.playerElement.stop()};
_.I.setupVideoPlayer=function(){var u=this,K,l;return _.H(function(D){K=u.data.videoId;l="http://i1.ytimg.com/vi/"+K+"/maxresdefault.jpg";u.playerElement.loadVideoWithPlayerVars({video_id:K,iurlhq:l});_.TG(D)})};
ad.prototype.onDataChanged=ad.prototype.onDataChanged;ad.prototype.updateSquigglyBackgroundStyle=ad.prototype.updateSquigglyBackgroundStyle;_.g([_.U({value:!1}),_.N("design:type",Boolean)],ad.prototype,"isDarkTheme",void 0);_.g([_.U(),_.N("design:type",String)],ad.prototype,"squigglyBackground",void 0);_.g([_.BF("#player"),_.N("design:type",Object)],ad.prototype,"playerElement",void 0);_.g([_.U(),_.N("design:type",Object)],ad.prototype,"data",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],ad.prototype,"ytActionHandlerBehavior",void 0);_.g([_.JU("squigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ad.prototype,"updateSquigglyBackgroundStyle",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ad.prototype,"onDataChanged",null);
_.g([_.T({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],ad);
_.F(ad,"ytd-handles-claiming-video-item-renderer",function(){if(gcs!==void 0)return gcs;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return gcs=u},{mode:1});var NSw;var e4=function(){var u=_.ii.apply(this,arguments)||this;u.dragging=!1;u.dragMouseStart=0;u.dragOffsetStart=0;u.containerWidthDiff=0;u.boundPrevClick=function(){u.set("offset",zi(u,u.offset-(u.scrollDistance||320)))};
u.boundNextClick=function(){u.set("offset",zi(u,u.offset+(u.scrollDistance||320)))};
u.boundScrollContainerMouseDown=function(K){u.dragMouseStart=K.clientX;u.dragOffsetStart=u.offset;u.dragging=!0};
u.boundScrollContainerDrag=function(K){u.dragging&&u.set("offset",zi(u,u.dragOffsetStart-(K.clientX-u.dragMouseStart)))};
u.boundMouseUp=function(){u.onMouseUp()};
u.boundWheelScroll=function(K){var l=0;Math.abs(K.deltaX)>=Math.abs(K.deltaY)?l=K.deltaX:K.shiftKey&&(l=K.deltaY);l!==0&&(u.offset+=l,K.stopPropagation(),K.preventDefault())};
u.boundChipCloudChipScrollIntoView=function(K){(K=K.detail)&&u.scrollChipIntoView(K)};
return u};
_.c(e4,_.ii);e4.prototype.attached=function(){var u=_.bi(this.hostElement).querySelector("#scroll-container");u.addEventListener("wheel",this.boundWheelScroll);u.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);u.style.touchAction="pan-y";u.addEventListener("pointerdown",this.boundScrollContainerMouseDown);u.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
e4.prototype.detached=function(){var u=_.bi(this.hostElement).querySelector("#scroll-container");u.removeEventListener("wheel",this.boundWheelScroll);u.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);u.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);u.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
e4.prototype.reset=function(){this.set("offset",0);_.W_(this,this.setContainerWidthDiff);Rd(this)};
var zi=function(u,K){return Math.min(Math.max(K,0),u.containerWidthDiff)};
e4.prototype.onMouseUp=function(){this.dragging=!1};
e4.prototype.transformContainer=function(){this.offset=zi(this,this.offset);var u=_.E3("HTML_DIR")==="rtl"?"":"-";_.bi(this.hostElement).querySelector("#chips").style.transform="translateX("+u+this.offset+"px)";Rd(this)};
var Rd=function(u){_.W_(u,u.setButtonsState)};
e4.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=zi(this,this.offset));this.atStart=this.offset<=0};
e4.prototype.setContainerWidthDiff=function(){var u=_.bi(this.hostElement).querySelector("#scroll-container"),K=_.bi(this.hostElement).querySelector("#chips");u&&K&&(this.containerWidthDiff=K.clientWidth-u.clientWidth)};
e4.prototype.scrollChipIntoView=function(u){var K=_.bi(this.hostElement).querySelector("#scroll-container");if(K){var l=this.atStart?0:106,D=this.atEnd?0:106;u.offsetLeft<this.offset+l?this.offset=zi(this,u.offsetLeft-l):u.offsetLeft+u.clientWidth>this.offset+K.clientWidth-D&&(this.offset=zi(this,u.offsetLeft+u.clientWidth+D-K.clientWidth))}};
e4.prototype.transformContainer=e4.prototype.transformContainer;_.g([_.U({value:0}),_.N("design:type",Number)],e4.prototype,"offset",void 0);_.g([_.U({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],e4.prototype,"atStart",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],e4.prototype,"atEnd",void 0);_.g([_.U(),_.N("design:type",Number)],e4.prototype,"scrollDistance",void 0);
_.g([_.JU("offset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],e4.prototype,"transformContainer",null);_.g([_.TQ()],e4);var kcH;var ZQs;var XMR=_.rf(function(u){var K=u.data;u=_.y(_.On(!1,void 0,"HDMMr"));var l=u.next().value,D=u.next().value;u={};u=_.JB("ytChipShapeChip",function(){a:switch(K==null?void 0:K().state){case 0:var C="ytChipShapeActive";break a;case 1:C="ytChipShapeDisabled";break a;default:C="ytChipShapeInactive"}return C},function(){var C=K().type===1||K().type===2,W=K();
return C||W!=null&&W.startIcon?W==null||!W.startIcon||W!=null&&W.text?C?"ytChipShapeEndIconPadding":(W==null?0:W.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(u.ytChipShapeFocused=function(){var C;
return l()&&((C=K())==null?void 0:C.state)!==1},u));
var d=function(C){if((K==null?void 0:K().state)!==1){var W,M;(M=(W=K()).onTap)==null||M.call(W,C)}};
return _.n("chip-shape",{class:"ytChipShapeHost","on:focusin":_.p4(function(){var C=_.GB().resolve(_.vv(_.zF));if(C){D(C.isKeyBoardInUse());var W,M;(M=(W=K()).onFocusIn)==null||M.call(W)}return!1}),
"on:focusout":_.p4(function(){D(!1);return!1})},_.n(YtN,{shouldWrapInButton:function(){return K().type!==2},
selected:function(){return K().state===0},
onClick:d,isDropdown:function(){return K().type===1},
accessibilityLabel:function(){return K().accessibilityLabel}},_.n("div",{class:u},_.n(_.r,{cond:function(){return K().startIcon},
then:function(){return _.n(_.VB,{icon:function(){var C;return(C=K())==null?void 0:C.startIcon},
className:function(){return K().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return K().text},_.n(Arw,{shape:K,
onClick:d}),_.n(_.ko,{model:{borderRadius:"8px"}}))))},"Ib");
XMR.idomCompat=!0;var YtN=_.rf(function(u){var K=_.p4(function(l){u.onClick(l);return!1});
return _.n(_.r,{cond:u.shouldWrapInButton,then:function(){return _.n("button",{class:"ytChipShapeButtonReset","on:click":K,role:function(){return u.isDropdown()?"combobox":"tab"},
"aria-label":u.accessibilityLabel,"aria-selected":u.selected},u.children)},
else:function(){return u.children}})},"Jb"),Arw=_.rf(function(u){var K=u.shape;
var l=u.onClick;var D=_.p4(function(d){l(d);return!1});
return _.n(_.VI,null,_.n(_.ic,{when:function(){return K().type===1}},function(){return _.n(_.VB,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.n(_.ic,{when:function(){return K().type===2}},function(){return _.n("button",{class:"ytChipShapeButtonReset",
"on:click":D},_.n(_.VB,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.n(_.ic,{when:function(){return K().type===0}},function(){return _.n(_.G1,null)}))},"Kb");_.SX(XMR,"chip-shape",{props:{data:_.M6}});var Um=function(){var u=_.Q.apply(this,arguments)||this;u.disableDeselectEvent=!1;u.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return u};
_.c(Um,_.Q);_.I=Um.prototype;_.I.onSelectChipCommand=function(u){if(!this.selected&&this.data&&(u=_.b(u,di2),u.targetId&&u.targetId===this.data.targetId))this.onTap()};
_.I.onFilterChipTransformCommand=function(u){if(!this.selected&&this.data){var K;(u=(K=_.b(u,EAC))==null?void 0:K.chipUniqueId)&&u===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.I.dataChanged=function(){var u=this;_.W_(this,function(){u.data&&u.data.isSelected&&!u.selected&&(u.scrollChipIntoView(),u.onTap())})};
_.I.computeChipStyle=function(u){return u!=null?u:"STYLE_DEFAULT"};
_.I.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.Sy(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.Sy(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.I.onFocus=function(){var u=_.GB().resolve(_.vv(_.zF));u&&u.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.I.scrollChipIntoView=function(){_.xs(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.MN.Object.defineProperties(Um.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return DUH({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Um.prototype.onFocus=Um.prototype.onFocus;Um.prototype.onTap=Um.prototype.onTap;Um.prototype.dataChanged=Um.prototype.dataChanged;_.g([_.e(_.V7),_.N("design:type",Object)],Um.prototype,"ironButtonState",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Um.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Um.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Um.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.T7),_.N("design:type",Object)],Um.prototype,"ironA11yKeysBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Um.prototype,"disableDeselectEvent",void 0);_.g([_.U(),_.N("design:type",Object)],Um.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data.icon"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Um.prototype,"hasIcon",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data.uniqueId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Um.prototype,"isGnomeChip",null);_.g([_.U({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.N("design:type",String)],Um.prototype,"chipStyle",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Um.prototype,"selected",void 0);
_.g([_.R("data","selected"),_.N("design:type",Object),_.N("design:paramtypes",[])],Um.prototype,"chipShapeData",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Um.prototype,"dataChanged",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Um.prototype,"onTap",null);
_.g([_.PF("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Um.prototype,"onFocus",null);_.g([_.E9({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Um);
_.F(Um,"yt-chip-cloud-chip-renderer",function(){if(ZQs===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;kcH===void 0&&(kcH=document.createElement("template"));var D=kcH;l.call(K,D.content.cloneNode(!0),u.content.firstChild);ZQs=u}u=ZQs;return u},{mode:2});var fd=function(){var u=_.Q.apply(this,arguments)||this;u.isDarkTheme=!1;u.notSticky=!1;u.transparentBackground=!1;u.shouldHide=!1;u.disableSticky=!1;u.fluidWidth=!1;u.isClipList=!1;u.defaultChipIndex=0;u.isPlaylist=!1;u.playlistVotingAnimationEnabled=_.S("web_enable_voting_animation");u.toolbarHeight=0;u.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return u};
_.c(fd,_.Q);_.I=fd.prototype;
_.I.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}}}}}};
_.I.attached=function(){var u=this;document.addEventListener("scroll",_.Ql(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var K;this.toolbarHeight=((K=document.querySelector("ytd-masthead"))==null?void 0:K.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(l){u.handleIntersect(l)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){u.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.I.detached=function(){var u;(u=this.intersectionObserver)==null||u.disconnect();var K;(K=this.resizeObserver)==null||K.disconnect();document.removeEventListener("scroll",_.Ql(this,this.updateChipBarWidthAndTop))};
_.I.dataChanged=function(){var u=this,K,l,D;((D=_.b((K=this.data)==null?void 0:(l=K.contents)==null?void 0:l[0],RAa))==null?void 0:D.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var d=this.findSelectedChipIndex();this.selectedIndex!==d&&(this.selectedIndex=-1);_.W_(this,function(){u.selectedIndex=d;u.updating=!1;u.ytScrollableChipCloudBehavior.reset()})};
_.I.findSelectedChipIndex=function(){var u;if((u=this.data)==null||!u.contents)return 0;u=this.data.contents;for(var K=0;K<u.length;K++){var l=void 0;if((l=_.b(u[K],RAa))==null?0:l.isSelected)return K}return 0};
_.I.computeStyle=function(u){return u};
_.I.handleChipCloudChipSelectAction=function(u){u=this.JSC$15925_chipsSelector.indexOf(u);u>-1&&this.JSC$15925_chipsSelector.selectIndex(u)};
_.I.handleChipCloudChipDeselectAction=function(){if(_.S("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var u,K,l,D=(l=_.b((u=this.data)==null?void 0:(K=u.contents)==null?void 0:K[0],RAa))==null?void 0:l.navigationEndpoint;D&&_.Sy(this.hostElement,"yt-browse-section-list-reload-endpoint",[D]);this.JSC$15925_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.I.onGuideIsExpandedChanged=function(){var u=this.ytScrollableChipCloudBehavior;_.W_(u,u.setContainerWidthDiff);Rd(this.ytScrollableChipCloudBehavior)};
_.I.onResize=function(){var u=this.ytScrollableChipCloudBehavior;_.W_(u,u.setContainerWidthDiff);Rd(this.ytScrollableChipCloudBehavior)};
_.I.onDarkModeToggledAction=function(u){this.isDarkTheme=u};
_.I.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.I.handleIntersect=function(u){this.notSticky=this.isChannelPageGrid||this.disableSticky||u[0].intersectionRatio===1};
_.I.updateDimensions=function(){var u=this.ytRendererBehavior.parentComponent;if(u){var K,l=(K=u.headerElement)!=null?K:u;_.e8(this.hostElement,{"--ytd-rich-grid-chips-bar-width":l.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.I.updateSelectedIndexFromBinding=function(u){this.selectedIndex=u.detail.value};
_.I.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var u;(u=this.sortFilterHeaderRendererElement)==null||u.setAttribute("is-playlist-page-with-filters","")}};
_.I.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(Wja(!this.notSticky))};
_.MN.Object.defineProperties(fd.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var u,K,l=(u=this.data)==null?void 0:(K=u.contents)==null?void 0:K.find(function(D){return _.b(D,JWS)});
return{sortFilterHeaderRenderer:_.b(l,JWS)}}}});
fd.prototype.dispatchChipBarIsSticky=fd.prototype.dispatchChipBarIsSticky;fd.prototype.isPlaylistPageChanged=fd.prototype.isPlaylistPageChanged;fd.prototype.updateChipBarWidthAndTop=fd.prototype.updateChipBarWidthAndTop;fd.prototype.onResize=fd.prototype.onResize;fd.prototype.onGuideIsExpandedChanged=fd.prototype.onGuideIsExpandedChanged;fd.prototype.dataChanged=fd.prototype.dataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],fd.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],fd.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],fd.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Ae),_.N("design:type",Object)],fd.prototype,"ironResizableBehavior",void 0);_.g([_.e(),_.N("design:type",e4)],fd.prototype,"ytScrollableChipCloudBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],fd.prototype,"ytdReduxBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],fd.prototype,"data",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],fd.prototype,"selectedIndex",void 0);_.g([_.U({value:320}),_.N("design:type",Number)],fd.prototype,"scrollDistance",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fd.prototype,"isDarkTheme",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fd.prototype,"notSticky",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fd.prototype,"transparentBackground",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.N("design:type",String)],fd.prototype,"componentStyle",void 0);_.g([_.U({selector:_.xGn}),_.N("design:type",Boolean)],fd.prototype,"guideIsExpanded",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fd.prototype,"shouldHide",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fd.prototype,"disableSticky",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fd.prototype,"fluidWidth",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fd.prototype,"isClipList",void 0);_.g([_.U(),_.N("design:type",Object)],fd.prototype,"defaultChipIndex",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fd.prototype,"isPlaylist",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],fd.prototype,"playlistVotingAnimationEnabled",void 0);_.g([_.BF("#chips"),_.N("design:type",Object)],fd.prototype,"JSC$15925_chipsSelector",void 0);_.g([_.BF("ytd-sort-filter-header-renderer"),_.N("design:type",HTMLElement)],fd.prototype,"sortFilterHeaderRendererElement",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],fd.prototype,"updating",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fd.prototype,"dataChanged",null);_.g([_.JU("guideIsExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fd.prototype,"onGuideIsExpandedChanged",null);_.g([_.PF("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fd.prototype,"onResize",null);
_.g([_.wn("isChannelPageGrid","disableSticky","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fd.prototype,"updateChipBarWidthAndTop",null);_.g([_.R("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fd.prototype,"isChannelPageGrid",null);_.g([_.R("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fd.prototype,"isHashtagLandingPage",null);
_.g([_.JU("isPlaylistPage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fd.prototype,"isPlaylistPageChanged",null);_.g([_.R("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fd.prototype,"isPlaylistPage",null);_.g([_.R("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fd.prototype,"isDisableDeselectEvent",null);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],fd.prototype,"sortFilterHeaderRendererData",null);_.g([_.U({reflectToAttribute:!0,selector:_.z19}),_.N("design:type",String)],fd.prototype,"frostedGlassMode",void 0);_.g([_.JU("notSticky"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fd.prototype,"dispatchChipBarIsSticky",null);_.g([_.T({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],fd);
_.F(fd,"ytd-feed-filter-chip-bar-renderer",function(){if(NSw!==void 0)return NSw;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return NSw=u},{mode:1});var mJw;var hr0=_.rf(function(u){var K=u.data;var l=u.buttonIndex;var D=u.selectedIndex;var d=u.onSelect;var C=function(){return l()===D()},W=function(){var M,q;
return(q=(M=K().text)==null?void 0:M.content)!=null?q:""};
u=_.U8o();return _.n("yt-toggleable-image-button-view-model",{class:function(){var M={};M=(M["toggleable-image-button-view-model-wiz"]=!0,M[""]=!0,M["toggleable-image-button-view-model-wiz__semi-transparent"]=D()!==-1&&!C(),M);return _.jX(M)},
tabindex:0,"aria-label":W,"aria-pressed":C,role:"button","on:keydown":u,"on:click":_.p4(function(){d(K().onSubmitCommand);return!1})},_.n(_.r,{cond:function(){return K().logo},
then:function(M){return _.n(_.n4,{data:M,className:function(){var q={};q=(q["toggleable-image-button-view-model-wiz__image"]=!0,q["toggleable-image-button-view-model-wiz__circular-radius"]=!(!K().backgroundColor||!K().backgroundColorDarkMode),q["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(C()&&K().backgroundColor&&K().backgroundColorDarkMode),q);return _.jX(q)},
alt:W,useWidth:!1,style:function(){if(C()&&K().backgroundColor&&K().backgroundColorDarkMode){var q=li(Number(K().backgroundColorDarkMode),"1");var v=li(Number(K().backgroundColor),"1");q="background: linear-gradient(180deg,"+q+","+v+") border-box;"}else q="";return q}})}}),_.n(_.ko,{model:{borderRadius:"16px"}}),_.n("p",{class:function(){var M={};
M=(M["toggleable-image-button-view-model-wiz__label"]=!0,M["toggleable-image-button-view-model-wiz__bold-text"]=C(),M);return _.jX(M)}},_.n(_.qC,{text:function(){return K().text}})))},"Lb");
hr0.idomCompat=!0;var LXN=_.rf(function(u){var K=u.data;u=_.y(_.On({index:-1,command:{}},void 0,"Zcqtsb"));var l=u.next().value,D=u.next().value;return _.n("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.n("div",{class:"nudge-form-view-model-wiz__form-options"},_.n(_.mo,{data:function(){return K().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(d,C){return _.n(hr0,{data:d.data,buttonIndex:C,selectedIndex:function(){return l().index},
onSelect:function(W){D({index:C(),command:W})}})}})),_.n(_.qC,{text:function(){return K().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.n("div",{class:"nudge-form-view-model-wiz__submit"},_.n(_.mo,{data:function(){return K().submitButton}},{buttonViewModel:function(d){return _.n(Ecw,{data:d.data,
isDisabled:function(){return l().index===-1},
onClick:function(){_.IT(l().command)}})}})))},"Mb");
LXN.idomCompat=!0;var Ecw=_.rf(function(u){var K=_.RZ(function(){return Object.assign({},u.data(),{state:u.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.n(_.P2,{data:K,onClick:u.onClick})},"Nb");_.SX(LXN,"yt-nudge-form-view-model",{props:{data:_.M6}});var Qq=function(){var u=_.Q.apply(this,arguments)||this;u.roundedContainer=!0;u.buttonUpdate=_.S("web_modern_buttons");u.isDarkMode=!1;u.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return u};
_.c(Qq,_.Q);_.I=Qq.prototype;_.I.computeNudgeStyle=function(u){return u?"modernized-nudge":""};
_.I.handleDarkModeToggledAction=function(u){this.isDarkMode=u};
_.I.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.I.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"}}}};
_.I.computeIsHorizontalButtons=function(u){return u?!!u.applyModernizedStyle&&!!u.enableHorizontalButtons&&!!u.secondaryButton:!1};
_.MN.Object.defineProperties(Qq.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var u,K;return(K=(u=this.data)==null?void 0:u.backgroundStyle)!=null?K:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var u,K;return(K=(u=this.data)==null?void 0:u.contentsLocation)!=null?K:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null?0:u.lightIconImage)}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Qq.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],Qq.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Qq.prototype,"actionHandlerBehavior",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("isHideEnclosingAction"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Qq.prototype,"isHidden",null);_.g([_.U(),_.N("design:type",Object)],Qq.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Qq.prototype,"roundedContainer",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Qq.prototype,"buttonUpdate",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.N("design:type",String)],Qq.prototype,"nudgeStyle",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data.trimStyle"),_.N("design:type",String),_.N("design:paramtypes",[])],Qq.prototype,"trimStyle",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.backgroundStyle"),_.N("design:type",String),_.N("design:paramtypes",[])],Qq.prototype,"backgroundStyle",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data.contentsLocation"),_.N("design:type",String),_.N("design:paramtypes",[])],Qq.prototype,"contentsLocation",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.disableDropShadow"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Qq.prototype,"noShadow",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.lightIconImage"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Qq.prototype,"noIcon",null);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.N("design:type",Boolean)],Qq.prototype,"isHorizontalButtons",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Object)],Qq.prototype,"isDarkMode",void 0);_.g([_.T({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Qq);
_.F(Qq,"ytd-feed-nudge-renderer",function(){if(mJw!==void 0)return mJw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return mJw=u},{mode:_.zW("kevlar_poly_si_batch_j028")?1:2});var uDk;var KlR;var Pt=function(){var u=_.Q.apply(this,arguments)||this;u.collapsed=!1;u.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return u};
_.c(Pt,_.Q);Pt.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"}}}};
Pt.prototype.handleRatingSelect=function(){var u;((u=this.data)==null?0:u.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Pt.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Pt.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Pt.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.KD),_.N("design:type",Object)],Pt.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Pt.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Pt.prototype,"collapsed",void 0);_.g([_.T({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Pt);
_.F(Pt,"ytd-slimline-survey-renderer",function(){if(KlR!==void 0)return KlR;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return KlR=u},{mode:1});var lea;var JY=function(){return _.Q.apply(this,arguments)||this};
_.c(JY,_.Q);JY.prototype.maybeGetBackgroundColor=function(u){return this.isDarkMode?u.section2Color:u.section3Color};
JY.prototype.colorPaletteChanged=function(){var u=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;u&&(u==null?0:u.secondaryTitleColor)&&this.maybeGetBackgroundColor(u)?(this.hostElement.style.backgroundColor=_.ui(this.maybeGetBackgroundColor(u)),this.hostElement.style.color=_.ui(u.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
JY.prototype.colorPaletteChanged=JY.prototype.colorPaletteChanged;_.g([_.e(_.Ll),_.N("design:type",Object)],JY.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],JY.prototype,"data",void 0);_.g([_.U({selector:function(u){return u.ui.darkModeIsEnabled}}),
_.N("design:type",Boolean)],JY.prototype,"isDarkMode",void 0);_.g([_.U(),_.N("design:type",Object)],JY.prototype,"lightColorPalette",void 0);_.g([_.U(),_.N("design:type",Object)],JY.prototype,"darkColorPalette",void 0);_.g([_.JU("darkColorPalette","lightColorPalette","data","isDarkMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JY.prototype,"colorPaletteChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],JY);
_.F(JY,"ytd-endorsement-header-renderer",function(){if(lea!==void 0)return lea;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return lea=u},{mode:1});_.SX(_.Aa,"yt-decorated-avatar-view-model",{props:{data:_.M6,className:_.M6}});var j4=function(){var u=_.Q.apply(this,arguments)||this;u.fullHeight=_.S("web_rich_grid_media_full_height");u.showChannelAvatar=!0;u.hasPlaylistThumbnail=!1;u.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};u.prepareThumbnailForPageTransition=function(){_.S("web_thumbnail_to_watch_transition")&&(u.thumbnail.style.viewTransitionName="thumbnail-to-watch",u.cleanupThumbnailAfterPageTransition(u.thumbnail))};
return u};
_.c(j4,_.Q);_.I=j4.prototype;
_.I.configureRendererStamper=function(){return{lazyLoadMenu:PR,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"}}}};
_.I.attached=function(){this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.shouldLazyLoadMenu=function(){var u=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.S("kevlar_modern_downloads_page")||!u};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15950_inlinePreviewHoverListener=Cz({mediaRenderer:this,lockupElement:this.JSC$15950_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.I.getVideoPreviewOpts=function(){var u={},K;if((K=this.data)==null?0:K.multipleInlinePlaybackEndpoint)u=mkH;this.isRadio&&(u=XpH);return _.S("web_thumbnail_to_watch_transition")?Object.assign({},u,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):u};
_.I.clearInlinePreviewHoverListeners=function(){var u;(u=this.JSC$15950_inlinePreviewHoverListener)==null||n5(u)};
_.I.getOwner=function(){var u,K,l;return((u=this.data)==null?void 0:(K=u.channelThumbnailSupportedRenderers)==null?void 0:K.channelThumbnailWithLinkRenderer)||_.b((l=this.data)==null?void 0:l.showProviderChannelThumbnail,ozw)};
_.I.updateLockupSize=function(){var u;((u=this.getOwner())==null?0:u.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.I.getFeedbackEndpoint=function(u){if(_.b(u,_.X_))return u;var K,l;u=(l=(K=_.b(u,_.ey))==null?void 0:K.commands)!=null?l:[];K=_.y(u);for(l=K.next();!l.done;l=K.next())if(l=this.getFeedbackEndpoint(l.value))return l;return null};
_.I.computeNavigationEndpoint=function(u){return zmq(u==null?void 0:u.navigationEndpoint)};
_.I.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var u=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(u)!==JSON.stringify(this.data)&&this.set("data",u)}};
_.I.onDataChanged=function(){var u=this,K=this.getOwner();if(K){this.set("data.owner",K);var l,D,d,C,W,M=((l=this.data)==null?void 0:(D=l.shortBylineText)==null?void 0:(d=D.runs)==null?void 0:(C=d[0])==null?void 0:C.text)||((W=K.name)==null?void 0:W.simpleText);this.set("data.owner.title",M)}var q,v,G,t,x,O;K=((q=this.data)==null?void 0:(v=q.thumbnailRenderer)==null?void 0:v.playlistVideoThumbnailRenderer)||((G=this.data)==null?void 0:(t=G.thumbnailRenderer)==null?void 0:t.playlistCustomThumbnailRenderer)||
((x=this.data)==null?void 0:(O=x.thumbnailRenderer)==null?void 0:O.showCustomThumbnailRenderer);var a;((a=this.data)==null?0:a.thumbnail)||!K||this.set("data.thumbnail",K.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){u.updateLockupSize()});
var f;if(q=((f=this.data)==null?void 0:f.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(q);var B;((B=this.dismissActionToReplayEntity)==null?0:B.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.I.onHiddenChanged=function(){this.updateLockupSize()};
_.I.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.Sy(this.hostElement,"yt-terminate-video-preview-action");else{var u;(u=this.videoTitleLink)==null||u.focus()}};
_.I.metadataColorChanged=function(){var u;if(this.metadataColor&&((u=this.videoTitle)==null?0:u.style))this.videoTitle.style.color=_.ui(this.metadataColor);else{var K,l;!this.metadataColor&&((K=this.videoTitle)==null?0:(l=K.style)==null?0:l.color)&&(this.videoTitle.style.color="")}};
_.I.onDetailsClick=function(u){var K=this.computedNavigationEndpoint;K&&(_.rE(_.WF(u),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.xs(this.hostElement,"yt-navigate",{endpoint:K}))};
_.I.cleanupThumbnailAfterPageTransition=function(u){_.ePw(document,"yt-page-type-changed",function(){u.style.viewTransitionName=""})};
_.I.onRendererTap=function(){this.prepareThumbnailForPageTransition();var u,K,l=((u=this.data)==null?void 0:u.serviceEndpoint)||this.getFeedbackEndpoint((K=this.data)==null?void 0:K.navigationEndpoint);l&&_.b(l,_.X_)&&this.ytComponentBehavior.resolveCommand(l)};
_.I.onMouseDown=function(u){var K=u.target,l=this.computedNavigationEndpoint,D;u=K.href||((D=_.b(l==null?void 0:l.commandMetadata,_.nN))==null?void 0:D.url);D=K.data||l;u&&D&&iAZ(u,D)};
_.I.computeVideoTitleText=function(){var u;if((u=this.data)==null?0:u.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.I.computeHasPlaylistThumbnail=function(u){var K,l,D,d,C;if((((K=u.thumbnailRenderer)==null?0:K.playlistVideoThumbnailRenderer)||((l=u.thumbnailRenderer)==null?0:l.playlistCustomThumbnailRenderer)||((D=u.thumbnailRenderer)==null?0:D.showCustomThumbnailRenderer)||((d=u.thumbnailRenderer)==null?0:d.playlistVideoThumbnailRenderer)||((C=u.thumbnailRenderer)==null?0:C.playlistCustomThumbnailRenderer))&&u.thumbnailOverlays)for(K=0;K<u.thumbnailOverlays.length;K++)if(l=void 0,(l=u.thumbnailOverlays[K])==
null?0:l.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.MN.Object.defineProperties(j4.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.S("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var u;return(u=this.data)==null?void 0:u.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var u;return(u=this.data)==null?void 0:u.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.JSC$15950_inlinePreviewHoverListener)==null?0:Es(u))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.PI(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?void 0:u.videoId)||((K=this.data)==null?void 0:K.playlistId)||""}}});
j4.prototype.onMouseDown=j4.prototype.onMouseDown;j4.prototype.metadataColorChanged=j4.prototype.metadataColorChanged;j4.prototype.onIsDismissedChanged=j4.prototype.onIsDismissedChanged;j4.prototype.onHiddenChanged=j4.prototype.onHiddenChanged;j4.prototype.onDataChanged=j4.prototype.onDataChanged;j4.prototype.handleReloadDownloadsInfo=j4.prototype.handleReloadDownloadsInfo;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],j4.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],j4.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.s8),_.N("design:type",Object)],j4.prototype,"ytdLockupBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],j4.prototype,"ytdReduxBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],j4.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],j4.prototype,"entitySelectorType",void 0);_.g([_.U(),_.N("design:type",Boolean)],j4.prototype,"noEndpoints",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],j4.prototype,"isRadio",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.Yw}),_.N("design:type",Boolean)],j4.prototype,"miniMode",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],j4.prototype,"fullHeight",void 0);
_.g([_.U(),_.N("design:type",Boolean)],j4.prototype,"showDarkVideoMetadata",void 0);_.g([_.U(),_.N("design:type",Boolean)],j4.prototype,"showLightVideoMetadata",void 0);_.g([_.U(),_.N("design:type",Number)],j4.prototype,"metadataColor",void 0);_.g([_.U(),_.N("design:type",Object)],j4.prototype,"showChannelAvatar",void 0);_.g([_.U(),_.N("design:type",Boolean)],j4.prototype,"hidden",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],j4.prototype,"showYtInteraction",void 0);
_.g([_.U(),_.N("design:type",String)],j4.prototype,"dismissedContentId",void 0);_.g([_.U({selectorArgs:["dismissedContentId"],selector:ezZ}),_.N("design:type",Object)],j4.prototype,"dismissActionToReplayEntity",void 0);
_.g([_.U({selectorArgs:["entitySelectorType","mediaId"],selector:function(u,K,l){if(_.S("kevlar_modern_downloads_page")&&l&&K&&K!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(K){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var D=fGb(u,l);if(D){K=_.EV(u,l);var d=uv(u,l),C=gi9(u,l);u=Kc(u,l);var W=t_q(D,K,d,C);d=W.shortViewCountText;var M=W.publishedTimeText;W=W.badges;var q=u>0;C=vxL(D,K,C,u);D=_.pm(K)||K==="TRANSFER_STATE_FAILED"||K==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Bi(D.policyEntity)?
void 0:ceh(l,u,D.videoEntity.lengthSeconds);K==="TRANSFER_STATE_PAUSED_BY_USER"&&l&&!_.S("dl_resume_click_killswitch")&&(D={offlineVideoEndpoint:{videoId:l,action:"ACTION_RESUME"}});l={shortViewCountText:d,publishedTimeText:M,badges:W,isWatched:q,navigationEndpoint:D,thumbnailOverlays:C}}else l=void 0;return l;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(K=QDb(u,l))if(D=_.Lm(u,l),C=_.PFq(u,l),D!=="TRANSFER_STATE_UNKNOWN"){l=Gtw(K,D,C,l,_.hu(u));break a}l=void 0}return l;default:_.hV(new _.wv("Error: entitySelectorType defined but not matched in selector.",
u,K))}}}),
_.N("design:type",Object)],j4.prototype,"entityDrivenState",void 0);_.g([_.U({computed:"computeVideoTitleText(data)"}),_.N("design:type",Object)],j4.prototype,"videoTitleText",void 0);_.g([_.U({computed:"computeHasPlaylistThumbnail(data)"}),_.N("design:type",Object)],j4.prototype,"hasPlaylistThumbnail",void 0);_.g([_.U({computed:"computeNavigationEndpoint(data)"}),_.N("design:type",Object)],j4.prototype,"computedNavigationEndpoint",void 0);
_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],j4.prototype,"typographyBump",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("typographyBump"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],j4.prototype,"typographyBumpV2",null);_.g([_.BF("#video-title"),_.N("design:type",HTMLElement)],j4.prototype,"videoTitle",void 0);_.g([_.BF("#video-title-link"),_.N("design:type",HTMLElement)],j4.prototype,"videoTitleLink",void 0);
_.g([_.BF("#thumbnail"),_.N("design:type",HTMLElement)],j4.prototype,"thumbnail",void 0);_.g([_.BF("#dismissible"),_.N("design:type",HTMLElement)],j4.prototype,"JSC$15950_dismissibleMedia",void 0);_.g([_.R("data.menu"),_.N("design:type",Object),_.N("design:paramtypes",[])],j4.prototype,"lazyLoadMenu",null);_.g([_.R("data.menu"),_.N("design:type",Object),_.N("design:paramtypes",[])],j4.prototype,"immediateLoadMenu",null);
_.g([_.wn("entityDrivenState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],j4.prototype,"handleReloadDownloadsInfo",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],j4.prototype,"onDataChanged",null);_.g([_.wn("hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],j4.prototype,"onHiddenChanged",null);
_.g([_.JU("isDismissed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],j4.prototype,"onIsDismissedChanged",null);_.g([_.JU("metadataColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],j4.prototype,"metadataColorChanged",null);_.g([_.PF("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],j4.prototype,"onMouseDown",null);
_.g([_.R("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],j4.prototype,"isHovered",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],j4.prototype,"useAvatar",null);_.g([_.R("data","entitySelectorType"),_.N("design:type",String),_.N("design:paramtypes",[])],j4.prototype,"mediaId",null);_.g([_.T({is:"ytd-rich-grid-media",disableElementRegistration:!0})],j4);
var DvR=_.at()(j4,"ytd-rich-grid-media",function(){if(uDk!==void 0)return uDk;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return uDk=u},{mode:_.zW("kevlar_poly_si_batch_j072")?1:2});var dvS;var Bt=function(){var u=_.Q.apply(this,arguments)||this;u.removeMaxWidth=!0;u.insetMetadata=!1;return u};
_.c(Bt,_.Q);_.I=Bt.prototype;_.I.configureRendererStamper=function(){return{innerMenu:PR,outerMenu:Object.assign({},PR,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.I.onDataChanged=function(){var u,K=((u=this.data)==null?void 0:u.trackingParams)||"";K&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(K));var l;((l=this.dismissActionToReplayEntity)==null?0:l.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.I.attached=function(){this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$15955_inlinePreviewHoverListener=Cz({mediaRenderer:this,lockupElement:this.JSC$15955_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:hIk})};
_.I.clearInlinePreviewHoverListeners=function(){var u;(u=this.JSC$15955_inlinePreviewHoverListener)==null||n5(u)};
_.I.onRendererTap=function(){var u,K,l=(u=this.data)==null?void 0:(K=u.serviceEndpoints)==null?void 0:K[0];_.b(l,_.X_)&&this.componentBehavior.resolveCommand(l)};
_.I.onDetailsClick=function(u){var K,l=(K=this.data)==null?void 0:K.navigationEndpoint;l&&(_.rE(_.WF(u),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(l))};
_.I.onShow=function(){var u=this.data;u.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(u.onFirstVisibleCommand),delete u.onFirstVisibleCommand)};
_.MN.Object.defineProperties(Bt.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var u;return this.insetMetadata?void 0:(u=this.data)==null?void 0:u.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var u;return this.insetMetadata?(u=this.data)==null?void 0:u.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var u=this.data;if(u!=null&&u.badge&&(u=_.b(u.badge,SUC))){var K,l,D;return[{metadataBadgeRenderer:{label:((K=u.label)==null?void 0:(l=K.runs)==null?void 0:l[0].text)||((D=u.label)==null?void 0:D.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var u=this.data;return Object.assign({},u.headline,{accessibility:u.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return this.isSlimShort?(u=this.computedTitle)==null?void 0:(K=u.accessibility)==null?void 0:(l=K.accessibilityData)==null?void 0:l.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.S("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.JSC$15955_inlinePreviewHoverListener)==null?0:Es(u))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Bt.prototype.onDataChanged=Bt.prototype.onDataChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Bt.prototype,"componentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.s8),_.N("design:type",Object)],Bt.prototype,"ytdLockupBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Bt.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.KD),_.N("design:type",Object)],Bt.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Bt.prototype,"ytdReduxBehavior",void 0);_.g([_.BF("ytd-thumbnail"),_.N("design:type",HTMLElement)],Bt.prototype,"thumbnail",void 0);_.g([_.BF("#dismissible"),_.N("design:type",HTMLElement)],Bt.prototype,"JSC$15955_dismissibleMedia",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Bt.prototype,"removeMaxWidth",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Bt.prototype,"insetMetadata",void 0);_.g([_.U(),_.N("design:type",String)],Bt.prototype,"dismissedContentId",void 0);_.g([_.U({selectorArgs:["dismissedContentId"],selector:ezZ}),_.N("design:type",Object)],Bt.prototype,"dismissActionToReplayEntity",void 0);_.g([_.R("insetMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Bt.prototype,"thumbnailObjectFit",null);
_.g([_.R("data","insetMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Bt.prototype,"innerMenu",null);_.g([_.R("data","insetMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Bt.prototype,"outerMenu",null);_.g([_.U(),_.N("design:type",Object)],Bt.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.Yw}),_.N("design:type",Boolean)],Bt.prototype,"miniMode",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bt.prototype,"onDataChanged",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Bt.prototype,"shortsBadges",null);_.g([_.R("data"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Bt.prototype,"isShort",null);
_.g([_.R("data"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Bt.prototype,"isSlimShort",null);_.g([_.R("data","isShort"),_.N("design:type",Object),_.N("design:paramtypes",[])],Bt.prototype,"computedTitle",null);_.g([_.R("isSlimShort","computedTitle"),_.N("design:type",Object),_.N("design:paramtypes",[])],Bt.prototype,"computedAccessibilityLabel",null);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Bt.prototype,"shouldForce2By3",null);_.g([_.R("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Bt.prototype,"isHovered",null);_.g([_.T({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],Bt);
_.F(Bt,"ytd-rich-grid-slim-media",function(){if(dvS!==void 0)return dvS;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return dvS=u},{mode:_.zW("kevlar_poly_si_batch_j063")?1:2});var CmS;var IeB;var pd=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(pd,_.Q);pd.prototype.computeIcon=function(u){return u&&u.iconType?"yt-sys-icons:"+u.iconType.toLowerCase():""};
pd.prototype.onMouseEnter=function(){this.isHovered=!0};
pd.prototype.onMouseLeave=function(){this.isHovered=!1};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],pd.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],pd.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],pd.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],pd.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],pd.prototype,"isHovered",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],pd.prototype,"darkerDarkTheme",void 0);_.g([_.T({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],pd);
_.F(pd,"ytd-expand-on-hover-card-renderer",function(){if(IeB!==void 0)return IeB;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return IeB=u},{mode:1});var yhR,skB=function(){if(yhR!==void 0)return yhR;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return yhR=u};_.E4("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var i8=function(){var u=_.Q.apply(this,arguments)||this;u.compactStyle=!1;u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return u};
_.c(i8,_.Q);_.I=i8.prototype;_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.I.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"}}}};
_.I.computeHideDot=function(u){return!(u&&u.subscriberCountText&&u.videoCountText)||this.compactStyle};
_.I.hasDualButtons=function(u){return u&&u.purchaseButton&&u.subscribeButton};
_.I.backgroundColorChanged=function(){if(this.data!==void 0){var u=this.data.backgroundColor;this.isDarkTheme&&(u=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=u!=null?_.ui(u):"transparent"}};
_.I.onDarkModeToggledAction=function(u){this.isDarkTheme=u};
_.I.onTap=function(u){var K,l,D=((K=this.data)==null?void 0:K.navigationEndpoint)||((l=this.data)==null?void 0:l.serviceEndpoint);_.b(D,_.t3)&&(D&&_.GB().resolve(_.t9).resolveCommand(D,{form:{element:this.hostElement}}),u.preventDefault())};
_.I.computeChannelEndpoint=function(u){return _.b(u,_.t3)?null:u};
_.I.computeHrefEndpoint=function(u){return _.b(u,_.t3)?null:this.componentBehavior.computeHref_(u)};
_.I.computeChannelRendererStyle=function(u){return u};
_.I.computeIconSize=function(u){return u?108:136};
_.MN.Object.defineProperties(i8,{template:{configurable:!0,enumerable:!0,get:function(){return skB()}}});
i8.prototype.backgroundColorChanged=i8.prototype.backgroundColorChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],i8.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.nl),_.N("design:type",Object)],i8.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],i8.prototype,"componentBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],i8.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],i8.prototype,"isDarkTheme",void 0);_.g([_.U({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.N("design:type",String)],i8.prototype,"channelRendererStyle",void 0);_.g([_.U({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],i8.prototype,"dualButtons",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],i8.prototype,"useBiggerThumbs",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.bZ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],i8.prototype,"biggerThumbStyle",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],i8.prototype,"compactStyle",void 0);_.g([_.JU("data","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],i8.prototype,"backgroundColorChanged",null);_.g([_.T({is:"ytd-channel-renderer",disableElementRegistration:!0})],i8);_.F(i8,"ytd-channel-renderer",function(){return skB()},{mode:1});var oIk;var Wls;_.E4("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Ti=function(){var u=_.Q.apply(this,arguments)||this;u.displayItemCount=2;u.collections=_.S("web_modern_collections_v2");u.hasPlaylistThumbnail=!1;u.stackThumbnailSize="large";return u};
_.c(Ti,_.Q);_.I=Ti.prototype;_.I.attached=function(){this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.I.computeFirstVideos=function(u,K){return u&&K?u.slice(0,K):[]};
_.I.computeThumbnailWidth=function(u,K){return u?K==="BIG"?500:K==="MASSIVE"?600:K==="MEDIUM"?450:420:360};
_.I.computeThumbnailHeight=function(u,K){return u?K==="BIG"?280:K==="MASSIVE"?337:234:202};
_.I.clearInlinePreviewHoverListeners=function(){var u;(u=this.JSC$15968_inlinePreviewHoverListener)==null||n5(u)};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15968_inlinePreviewHoverListener=Cz({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:mkH,thumbnailElement:this.thumbnail})};
_.I.computeHasPlaylistThumbnail=function(u){var K,l;if((((K=u.thumbnailRenderer)==null?0:K.playlistVideoThumbnailRenderer)||((l=u.thumbnailRenderer)==null?0:l.playlistCustomThumbnailRenderer))&&u.thumbnailOverlays)for(K=0;K<u.thumbnailOverlays.length;K++)if(l=void 0,(l=u.thumbnailOverlays[K])==null?0:l.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.MN.Object.defineProperties(Ti.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.JSC$15968_inlinePreviewHoverListener)==null?0:Es(u))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Ti.prototype.dataChanged=Ti.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.s8),_.N("design:type",Object)],Ti.prototype,"ytdLockupBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ti.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Ti.prototype,"displayItemCount",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],Ti.prototype,"useBiggerThumbs",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.bZ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],Ti.prototype,"biggerThumbsStyle",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ti.prototype,"collections",void 0);_.g([_.U({computed:"computeHasPlaylistThumbnail(data)"}),_.N("design:type",Object)],Ti.prototype,"hasPlaylistThumbnail",void 0);_.g([_.U(),_.N("design:type",String)],Ti.prototype,"stackThumbnailSize",void 0);_.g([_.BF("ytd-thumbnail"),_.N("design:type",HTMLElement)],Ti.prototype,"thumbnail",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ti.prototype,"dataChanged",null);_.g([_.R("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ti.prototype,"isHovered",null);_.g([_.T({is:"ytd-radio-renderer",disableElementRegistration:!0})],Ti);
_.F(Ti,"ytd-radio-renderer",function(){if(Wls!==void 0)return Wls;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Wls=u},{mode:_.zW("kevlar_poly_si_batch_j058")?1:2});var HC0;_.E4("itemSectionRenderer","showRenderer","ytd-show-renderer");var w5=function(){return _.Q.apply(this,arguments)||this};
_.c(w5,_.Q);w5.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
w5.prototype.computeThumbnailWidth=function(u){return u?360:246};
w5.prototype.computeUseProminentThumbs=function(u){return u};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],w5.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],w5.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],w5.prototype,"isSearch",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.N("design:type",Boolean)],w5.prototype,"useProminentThumbs",void 0);_.g([_.T({is:"ytd-show-renderer",disableElementRegistration:!0})],w5);
_.F(w5,"ytd-show-renderer",function(){if(HC0!==void 0)return HC0;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return HC0=u},{mode:1});_.E4("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var FF=function(){var u=_.Q.apply(this,arguments)||this;u.isRichGrid=!1;return u};
_.c(FF,_.Q);FF.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"}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],FF.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],FF.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],FF.prototype,"isRichGrid",void 0);_.g([_.T({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],FF);
_.F(FF,"ytd-feed-entry-renderer",function(){if(oIk!==void 0)return oIk;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return oIk=u},{mode:1});var MNS;var Vq=function(){return _.Q.apply(this,arguments)||this};
_.c(Vq,_.Q);Vq.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.g([_.e(_.Ll),_.N("design:type",Object)],Vq.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Vq.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Vq.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Vq.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.Au,value:3}),_.N("design:type",Number)],Vq.prototype,"itemsPerRow",void 0);
_.g([_.T({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Vq);
_.F(Vq,"ytd-link-card-renderer",function(){if(MNS!==void 0)return MNS;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return MNS=u},{mode:1});var q0w;var g5=function(){return _.Q.apply(this,arguments)||this};
_.c(g5,_.Q);_.I=g5.prototype;_.I.configureRendererStamper=function(){return{"data.menu":PR,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.I.onRendererTap=function(u){if(!this.ytdDismissibleItemBehavior.isDismissed){var K,l=(K=this.data)==null?void 0:K.navigationEndpoint;l&&!_.rE(_.WF(u),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(l)?_.rE(_.WF(u),this.hostElement,["A"])||_.xs(this.hostElement,"yt-navigate",{endpoint:l}):this.ytComponentBehavior.resolveCommand(l,{}))}};
_.I.maybeComputeHref=function(u){return this.ytComponentBehavior.computeHref_(u,!0)};
_.I.getNavigationCommand=function(u){return this.isNavigationCommand(u)?u:null};
_.I.isNavigationCommand=function(u){return u?_.b(u,_.jt)||_.b(u,_.oy)||_.b(u,_.d_)?!0:!1:!1};
g5.prototype.onRendererTap=g5.prototype.onRendererTap;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],g5.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],g5.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],g5.prototype,"ytComponentBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],g5.prototype,"data",void 0);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],g5.prototype,"onRendererTap",null);_.g([_.T({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],g5);
_.F(g5,"ytd-lumiere-promo-item-image-renderer",function(){if(q0w!==void 0)return q0w;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return q0w=u},{mode:1});var $vA;var Nr=function(){return _.Q.apply(this,arguments)||this};
_.c(Nr,_.Q);Nr.prototype.computeLandscapeThumbnail=function(){var u;return((u=this.data)==null?void 0:u.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Nr.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Nr.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.Yw}),_.N("design:type",Boolean)],Nr.prototype,"miniMode",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.Au}),_.N("design:type",Number)],Nr.prototype,"itemsPerRow",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.N("design:type",Boolean)],Nr.prototype,"landscapeThumbnail",void 0);_.g([_.T({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Nr);
_.F(Nr,"ytd-lumiere-shelf-details-renderer",function(){if($vA!==void 0)return $vA;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return $vA=u},{mode:_.zW("kevlar_poly_si_batch_j076")?1:2});var nI2;var kF=function(){return _.Q.apply(this,arguments)||this};
_.c(kF,_.Q);kF.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],kF.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],kF.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],kF.prototype,"data",void 0);_.g([_.T({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],kF);
_.F(kF,"ytd-primetime-promo-details-renderer",function(){if(nI2!==void 0)return nI2;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return nI2=u},{mode:1});var rhw;var Zg=function(){return _.Q.apply(this,arguments)||this};
_.c(Zg,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Zg.prototype,"data",void 0);_.g([_.T({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Zg);
_.F(Zg,"ytd-panel-show-style-metadata-renderer",function(){if(rhw!==void 0)return rhw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return rhw=u},{mode:1});var vIw;var YF=function(){return _.Q.apply(this,arguments)||this};
_.c(YF,_.Q);_.I=YF.prototype;_.I.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.I.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.I.computeThumbnail=function(u){if(u)return u.smallFormFactorBackgroundThumbnail||u.largeFormFactorBackgroundThumbnail};
_.I.maybeComputeHref=function(u){return this.ytComponentBehavior.computeHref_(u,!0)};
_.I.isNavigationCommand=function(u){return u?_.b(u,_.jt)||_.b(u,_.oy)||_.b(u,_.d_)?!0:!1:!1};
_.I.getNavigationCommand=function(u){return this.isNavigationCommand(u)?u:null};
YF.prototype.onPanelTap=YF.prototype.onPanelTap;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],YF.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],YF.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],YF.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],YF.prototype,"roundedContainer",void 0);_.g([_.U({reflectToAttribute:!0,value:_.S("web_modern_buttons")}),_.N("design:type",Boolean)],YF.prototype,"modernButtons",void 0);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YF.prototype,"onPanelTap",null);_.g([_.T({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],YF);
_.F(YF,"ytd-primetime-promo-panel-renderer",function(){if(vIw!==void 0)return vIw;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return vIw=u},{mode:1});_.SX(_.rf(function(u){u=_.$U(u,{data:{},useFullWidth:!1});var K=u.data,l=u.useFullWidth;u={};return _.n("teaser-card-view-model",{class:_.JB("ytTeaserCardViewModelHost",(u.ytTeaserCardViewModelUseFullWidth=function(){return l()},u))},_.n(_.r,{cond:function(){return K().onTap},
then:function(D){return _.n(_.I5,{className:"ytTeaserCardViewModelLink",command:D},_.n("div",{class:"ytTeaserCardViewModelImageContainer"},_.n(_.r,{cond:function(){return K().image},
then:function(d){return _.n(_.n4,{data:d,className:"ytTeaserCardViewModelImage",alt:""})}})),_.n("p",{class:"ytTeaserCardViewModelCaption"},function(){return K().caption}))}}))},"Ob"),"teaser-card-view-model",{props:{data:_.M6,
useFullWidth:_.M6}});var GX2=new _.G$("RICH_GRID_VIDEO_RENDERER_TOKEN");_.SX(_.rf(function(u){var K=u.data;var l=u.showYtInteractionInContent;var D=function(){return!!K().selectableFeedback};
u=_.y(_.On(!1,void 0,"nblDw"));var d=u.next().value,C=u.next().value;_.ZY(function(){var x=_.b(K().primaryButton,_.Za);(x==null?0:x.isToggled)&&C(x.isToggled)});
u=_.p4(function(x){if(!D())return!1;if(d()){var O;var a=(O=K().selectableFeedback)==null?void 0:O.onDeselect}else{var f;a=(f=K().selectableFeedback)==null?void 0:f.onSelect}a&&_.IT(a,{form:{element:x.target}});C(!d());if(x=_.b(K().primaryButton,_.Za))x.isToggled=d();return!1});
var W=function(){if(!D()){var x,O=(x=K().loggingDirectives)==null?void 0:x.trackingParams;O&&_.QZ(_.GB().resolve(_.Zl),O)}},M=_.fZh(),q=function(){var x;
return D()?(x=K().selectableFeedback)==null?void 0:x.a11yLabel:void 0},v=function(){return D()?{toggled:d()}:{}},G=_.GB().resolve(_.vv(GX2)),t={};
return _.n("yt-feedback-item-renderer",{class:_.JB("ytFeedbackItemRendererHost",(t.ytFeedbackItemRendererSelectableFeedback=D,t)),"on:click":u,"on:keydown":M,title:q,"aria-label":q,"aria-pressed":function(){return D()?d():void 0},
tabindex:function(){return D()?0:void 0},
role:function(){return D()?"button":void 0}},_.n("div",{class:"ytFeedbackItemRendererContentContainer"},_.n(_.mo,{data:function(){return K().content}},{videoRenderer:function(x){return _.n(G,{data:x.data,
showYtInteraction:l})},
lockupViewModel:function(x){return _.n(_.zx,{data:x.data,containerType:2})}})),_.n("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.n(_.mo,{data:function(){return K().primaryButton}},{toggleButtonViewModel:function(x){return _.n(_.YK,{data:x.data,
buttonShapeOverrides:v,disableExplicitClickLogging:!0,onToggle:W})}})))},"Pb"),"yt-feedback-item-renderer",{props:{data:_.M6,
showYtInteractionInContent:_.M6}});var AY=function(){var u=_.Q.apply(this,arguments)||this;u.isShortsGrid=!1;u.isCompactGrid=!1;u.isShortsPanelGrid=!1;u.renderedFromRichGrid=!1;u.isInFirstColumn=!1;u.noGutterMargins=!1;u.isInlineGroupItem=!1;u.insetMetadata=!1;u.noBottomMarginInAds=_.S("web_no_bottom_margin_for_home_ad_buttons");u.force16By9ThumbnailAspectRatio=!1;u.useCompactList=!1;u.containerType=2;u.thumbnailTargetWidth=9999;u.isResponsiveGrid=!1;u.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};u.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};u.hoverListener=u.hover.bind(u);u.leaveListener=u.leave.bind(u);u.highlighted=!1;u.JSC$16003_unsubscribeFromInlinePreviewIsActive=function(){};
return u};
_.c(AY,_.Q);_.I=AY.prototype;_.I.computeContainerType=function(){return this.useCompactList?3:2};
_.I.computeThumbnailTargetWidth=function(){var u;return(u=this.itemWidth)!=null?u:9999};
_.I.updateIsInFirstColumn=function(){var u;this.isInFirstColumn=((u=this.data)==null?void 0:u.colIndex)===0};
_.I.observerContainerType=function(){if(this.lockup){var u=this.lockup;u.containerType=this.containerType;u.sizing=this.sizing;u.typographyBump=this.typographyBump;u.itemWidth=this.itemWidth}this.richGridMedia&&_.S("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.S("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.I.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.I.leave=function(u){u=u.relatedTarget;var K=document.querySelector("ytd-video-preview");u&&K&&_.O9(K).contains(u)||this.removeAndCleanupHighlight()};
_.I.hover=function(){var u;if(!this.highlighted&&(!_.S("web_enable_rich_item_on_focus_effect")||(u=this.data)!=null&&u.onFocusEffect)){var K,l;((K=this.data)==null?void 0:(l=K.onFocusEffect)==null?void 0:l.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(u=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:u,boxShadow:"0 0 0 10px "+u}));var D,d;((D=this.data)==null?void 0:(d=D.onFocusEffect)==null?void 0:
d.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.I.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};
_.I.registerHoverHighlightListeners=function(){var u=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16003_unsubscribeFromInlinePreviewIsActive=_.iF(_.Mu(),_.Otw,function(K){u.highlighted&&!K&&u.removeAndCleanupHighlight()})};
_.I.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16003_unsubscribeFromInlinePreviewIsActive()};
_.I.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.I.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.I.getBackgroundColor=function(){var u,K,l=(u=this.data)==null?void 0:(K=u.onFocusEffect)==null?void 0:K.onFocusColor;if(l){if(document.documentElement.hasAttribute("dark")&&(l==null?0:l.darkTheme))return _.ui(l==null?void 0:l.darkTheme);if(l==null?0:l.lightTheme)return _.ui(l==null?void 0:l.lightTheme)}};
_.I.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var u=_.AC(),K,l,D;u&&((K=this.data)==null?0:K.trackingParams)&&((l=this.data)==null?void 0:l.colIndex)!=null&&((D=this.data)==null?void 0:D.rowIndex)!=null&&_.MK(u,_.gf(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.I.isSlimMediaRenderer=function(u){return!!_.b(u==null?void 0:u.content,_.E1m)||!!_.b(u==null?void 0:u.content,hsB)||!!_.b(u==null?void 0:u.content,_.Kt)||!!_.b(u==null?void 0:u.content,G8H)};
_.I.isPostRenderer=function(){var u,K;return!!_.b((u=this.data)==null?void 0:u.content,YRB)||!!_.b((K=this.data)==null?void 0:K.content,Aya)};
_.I.computeIsGameCardShelf=function(){var u;return!!_.b((u=this.data)==null?void 0:u.content,D2a)};
_.I.computeIsMiniGameCardShelf=function(){var u,K;return!!_.b((u=this.data)==null?void 0:u.content,vvR)||!!_.b((K=this.data)==null?void 0:K.content,G$m)};
_.I.computeIsTeaserCard=function(){var u;return!!_.b((u=this.data)==null?void 0:u.content,G$m)};
_.I.computeIsSelectableFeedbackItem=function(){var u,K;return!((K=_.b((u=this.data)==null?void 0:u.content,_.x2B))==null||!K.selectableFeedback)};
_.I.computeContainsLumierePosters=function(){var u,K;return((K=_.b((u=this.data)==null?void 0:u.content,dek))==null?void 0:K.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.I.computeIsExpandOnHoverCardShelf=function(){var u;return!!_.b((u=this.data)==null?void 0:u.content,Dew)};
_.I.computeIsLinkCardShelf=function(){var u;return!!_.b((u=this.data)==null?void 0:u.content,eDw)};
_.I.computeIsReelItemStyleAvatarCircle=function(u){var K;return((K=_.b(u==null?void 0:u.content,_.Kt))==null?void 0:K.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.I.computeIsLinkCardFullWidth=function(u,K){var l;return((l=_.b(u==null?void 0:u.content,eDw))==null?void 0:l.useFullWidth)||K<=2};
_.MN.Object.defineProperties(AY.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.S("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.S("web_enable_rich_item_on_focus_effect")||_.S("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}}});
AY.prototype.richGridHoverHighlightChanged=AY.prototype.richGridHoverHighlightChanged;AY.prototype.observerContainerType=AY.prototype.observerContainerType;AY.prototype.updateIsInFirstColumn=AY.prototype.updateIsInFirstColumn;_.g([_.e(_.Ll),_.N("design:type",Object)],AY.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],AY.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],AY.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.s8),_.N("design:type",Object)],AY.prototype,"ytdLockupBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],AY.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.N("design:type",Boolean)],AY.prototype,"isPost",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.N("design:type",Boolean)],AY.prototype,"containsLumierePosters",void 0);_.g([_.U({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.N("design:type",Boolean)],AY.prototype,"isSlimMedia",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.N("design:type",Boolean)],AY.prototype,"isGameCardShelf",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.N("design:type",Boolean)],AY.prototype,"isMiniGameCardShelf",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.N("design:type",Boolean)],AY.prototype,"isTeaserCard",void 0);_.g([_.U({computed:"computeIsSelectableFeedbackItem(data)"}),_.N("design:type",Boolean)],AY.prototype,"isSelectableFeedbackItem",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],AY.prototype,"isShortsGrid",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],AY.prototype,"isSlimGrid",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],AY.prototype,"isCompactGrid",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],AY.prototype,"isShortsPanelGrid",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.N("design:type",Boolean)],AY.prototype,"isExpandOnHoverCardShelf",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.N("design:type",Boolean)],AY.prototype,"isLinkCardShelf",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.Au,value:3}),_.N("design:type",Number)],AY.prototype,"itemsPerRow",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],AY.prototype,"renderedFromRichGrid",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],AY.prototype,"isInFirstColumn",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],AY.prototype,"noGutterMargins",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],AY.prototype,"isInlineGroupItem",void 0);_.g([_.U(),_.N("design:type",Object)],AY.prototype,"insetMetadata",void 0);
_.g([_.U(),_.N("design:type",Object)],AY.prototype,"noBottomMarginInAds",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],AY.prototype,"isShelfItem",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.N("design:type",Boolean)],AY.prototype,"isReelItemStyleAvatarCircle",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.N("design:type",Boolean)],AY.prototype,"isLinkCardFullWidth",void 0);
_.g([_.U(),_.N("design:type",Object)],AY.prototype,"force16By9ThumbnailAspectRatio",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],AY.prototype,"useCompactList",void 0);_.g([_.U(),_.N("design:type",String)],AY.prototype,"sizing",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],AY.prototype,"typographyBump",void 0);_.g([_.U(),_.N("design:type",Number)],AY.prototype,"itemWidth",void 0);_.g([_.U(),_.N("design:type",Boolean)],AY.prototype,"isHomeShelf",void 0);
_.g([_.U(),_.N("design:type",Boolean)],AY.prototype,"isHomeGrid",void 0);_.g([_.BF("yt-lockup-view-model"),_.N("design:type",HTMLElement)],AY.prototype,"lockup",void 0);_.g([_.BF("ytd-rich-grid-media"),_.N("design:type",HTMLElement)],AY.prototype,"richGridMedia",void 0);_.g([_.BF("ytd-ad-slot-renderer"),_.N("design:type",HTMLElement)],AY.prototype,"adSlotRenderer",void 0);_.g([_.U({computed:"computeContainerType(useCompactList)"}),_.N("design:type",Object)],AY.prototype,"containerType",void 0);
_.g([_.U({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.N("design:type",Object)],AY.prototype,"thumbnailTargetWidth",void 0);_.g([_.R("showYtInteractionOnRichItem"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],AY.prototype,"showYtInteractionOnRichGridMedia",null);_.g([_.R("isSelectableFeedbackItem","richGridHoverHighlight"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],AY.prototype,"showYtInteractionOnRichItem",null);
_.g([_.R("typographyBump","isHomeGrid"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],AY.prototype,"richTypographyBump",null);_.g([_.U({reflectToAttribute:!0}),_.R("isShortsGrid","isCompactGrid"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],AY.prototype,"richGridHoverHighlight",null);_.g([_.R("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.N("design:type",Number),_.N("design:paramtypes",[])],AY.prototype,"shortsLockupViewModelAspectRatio",null);
_.g([_.R("isInlineGroupItem"),_.N("design:type",Number),_.N("design:paramtypes",[])],AY.prototype,"shortsLockupViewModelScrimStyle",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AY.prototype,"updateIsInFirstColumn",null);_.g([_.JU("containerType","sizing","typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AY.prototype,"observerContainerType",null);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],AY.prototype,"isResponsiveGrid",void 0);_.g([_.U(),_.N("design:type",Object)],AY.prototype,"lockupExperiments",void 0);_.g([_.JU("richGridHoverHighlight"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AY.prototype,"richGridHoverHighlightChanged",null);_.g([_.T({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],AY);
_.tNm=_.at()(AY,"ytd-rich-item-renderer",function(){if(CmS===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);CmS=u}u=CmS;return u},{mode:_.zW("kevlar_poly_si_batch_j028")?1:2});var Huh={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var cxq=_.o7(_.QQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var qqo={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},nGb={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},rxy={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var xv2;var XF=function(){var u=_.Q.apply(this,arguments)||this;u.useResponsiveGrid=!1;u.hidden=!1;u.standardShelfMargins=_.S("web_rich_grid_standard_shelf_margins");u.isShowMoreHidden=!1;u.isExpanded=!1;u.isInnerShelf=!1;u.allVideosCount=0;u.allPlaylistCount=0;u.haveSmartDownloadsCompleted=!1;u.isShowLessHidden=!0;u.restrictContentsOverflow=!1;u.firstShownIndex=0;u.horizontalOffset=0;u.atEnd=!0;u.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};u.nextClick=function(){var K;(K=u.data)!=null&&K.contents&&(u.firstShownIndex+=u.currentElementsPerRow,u.updateHorizontalOffset(),u.updateHorizontalItemVisibility())};
u.previousClick=function(){var K;(K=u.data)!=null&&K.contents&&(u.firstShownIndex-=u.currentElementsPerRow,u.updateHorizontalOffset(),u.updateHorizontalItemVisibility())};
return u};
_.c(XF,_.Q);_.I=XF.prototype;
_.I.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.E3("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.I.attached=function(){this.requestElementsPerRow()};
_.I.refreshGridLayoutNew=function(){var u;if((u=this.data)!=null&&u.contents&&this.containerWidth){var K;((K=this.data.responsiveContainerConfiguration)==null?0:K.responsiveSize)?(u=_.e7h(this.data.responsiveContainerConfiguration,this.containerWidth),u=_.o5(Object.assign({},u,{standardUnitMinWidth:this.standardUnitMinWidth}))):u=_.o5({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=u.typographyBump;if(this.elementsPerRow!==
u.numItems||this.gutter!==u.gutter)this.elementsPerRow=u.numItems,this.gutter=u.gutter,this.itemWidth=u.itemWidth,_.e8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":u.gutter+"px"})}};
_.I.computeSizing=function(){if(!this.isLumiere){var u=_.QJZ(this.data);if(u)return u;if(_.S("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.I.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.I.computeButton=function(u){var K=_.b(u,_.lF);u=Object.assign({},_.b(u,_.lF));return K?(u.text||(u.text={simpleText:u.tooltip}),u.style="STYLE_MONO_OUTLINE",u.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",u):K};
_.I.onRowIndexChange=function(){var u=_.AC(),K,l;((K=this.data)==null?0:K.trackingParams)&&((l=this.data)==null?void 0:l.rowIndex)!=null&&u&&_.MK(u,_.gf(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.I.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var u,K=((u=this.getRichItemRenderers()[0])==null?void 0:u.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*K;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.I.requestElementsPerRow=function(){_.xs(this.hostElement,"yt-request-elements-per-row")};
_.I.onUpdateElementsPerRowAction=function(u,K,l,D,d,C){if(this.containerWidth!==C&&(this.containerWidth=C,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&u&&K&&l&&D&&d&&(this.elementsPerRow!==u||this.postsPerRow!==K||this.slimItemsPerRow!==l||this.gameCardsPerRow!==D||this.miniGameCardsPerRow!==d)&&(this.elementsPerRow=u,this.postsPerRow=K,this.slimItemsPerRow=l,this.gameCardsPerRow=D,this.miniGameCardsPerRow=d,this.updateItemVisibility())};
_.I.getRichItemRenderers=function(){return _.bi(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.I.updateItemVisibility=function(){var u=this;if(this.data&&this.data.contents){var K=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(D,d){var C;((C=u.data)==null?0:C.isExpanded)?(D.hidden=d>K-1,D.ytRendererBehavior.markDirty()):D.hidden=d>u.currentElementsPerRow-1||d>K-1});
var l=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||l||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||l||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.I.setHeightToSingleRow=function(){var u=this.getRichItemRenderers(),K=Number.parseInt(getComputedStyle(u[0]).marginBottom,10)||0;u=u.slice(0,this.currentElementsPerRow).reduce(function(l,D){return Math.max(l,D.getBoundingClientRect().height+K)},0);
this.contents.style.height=u+"px"};
_.I.focusNextExpandedItem=function(){var u;((u=this.data)==null?0:u.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.I.focusItem=function(u,K){var l=this.getRichItemRenderers();if(l[u]&&(u=l[u].querySelector(".focus-on-expand"))){if(K){var D;(D=l[this.currentElementsPerRow])==null||D.scrollIntoView({behavior:"smooth",block:"center"})}u.focus({preventScroll:!0})}};
_.I.onDataChange=function(){var u=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var K;if((K=this.data)==null?0:K.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.W_(this,function(){u.updateItemVisibility()});
var l;if((l=this.data)==null?0:l.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.e8(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),K=0;K<this.data.contents.length;K++)l=_.b(this.data.contents[K],_.Yg)||{},l.colIndex=K,l.rowIndex=this.data.rowIndex};
_.I.handleRerenderDownloadsData=function(){_.S("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())};
_.I.blockInlinePreview=function(u){var K=this,l;return _.H(function(D){(l=K.inlinePreviewIsEnabled)&&K.ytdReduxBehavior.dispatch(_.oW0(!1));return D.return(new Promise(function(d){u(function(){l&&K.ytdReduxBehavior.dispatch(_.oW0(!0));d()})}))})};
_.I.expandShelf=function(){var u=this;if(this.data){var K,l=(K=_.b(this.data.showMoreButton,_.lF))==null?void 0:K.trackingParams;l&&_.QZ(_.iT(),l);this.data.isExpanded=!0;this.blockInlinePreview(function(D){u.setHeightToSingleRow();u.updateItemVisibility();u.contents.style.height=u.contents.scrollHeight+"px";_.YL.addJob(function(){u.contents.style.height="auto";u.focusNextExpandedItem();D()},2,200)})}};
_.I.collapseShelf=function(){var u=this;return _.H(function(K){if(K.nextAddress==1){if(!u.data)return K.return();u.data.isExpanded=!1;return K.yield(u.blockInlinePreview(function(l){u.contents.style.height=u.contents.scrollHeight+"px";u.setHeightToSingleRow();_.YL.addJob(function(){u.updateItemVisibility();u.contents.style.height="auto";l()},2,200)}),2)}_.xs(u.hostElement,"yt-rich-shelf-renderer-collapse",u.data.trackingParams);
u.focusItem(0,!1);_.TG(K)})};
_.I.updateArrowButtonStatus=function(){var u=this.getRichItemRenderers().length;if(!_.S("web_rich_shelf_renderer_use_data_contents_killswitch")){var K,l;u=((K=this.data)==null?void 0:(l=K.contents)==null?void 0:l.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=u};
_.I.onChildElementFocus=function(u){this.hasChevronButtons&&(u=u.target.closest("#contents > *"),this.contents.contains(u)&&(u.offsetLeft<this.horizontalOffset?this.previousClick():u.offsetLeft+u.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.I.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.E3("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.I.updateHorizontalOffset=function(){var u=this.getRichItemRenderers(),K=u.length;if(!_.S("web_rich_shelf_renderer_use_data_contents_killswitch")){var l,D;K=((l=this.data)==null?void 0:(D=l.contents)==null?void 0:D.length)||0}var d;u=((d=u[0])==null?void 0:d.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>K?this.firstShownIndex=K-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*u};
_.I.isSlimMediaShelfRenderer=function(){var u,K,l,D=(l=_.b((u=this.data)==null?void 0:(K=u.contents)==null?void 0:K[0],_.Yg))==null?void 0:l.content;return!!(_.b(D,_.E1m)||_.b(D,hsB)||_.b(D,_.Kt)||_.b(D,G8H))};
_.I.isGameCardShelf=function(){var u,K,l,D=(l=_.b((u=this.data)==null?void 0:(K=u.contents)==null?void 0:K[0],_.Yg))==null?void 0:l.content;return!!_.b(D,D2a)};
_.I.isGnomeShelf=function(){var u,K,l,D=(l=_.b((u=this.data)==null?void 0:(K=u.contents)==null?void 0:K[0],_.Yg))==null?void 0:l.content;return!!_.b(D,_.x2B)};
_.I.isMiniGameCardShelf=function(){var u,K,l,D=(l=_.b((u=this.data)==null?void 0:(K=u.contents)==null?void 0:K[0],_.Yg))==null?void 0:l.content;return!!_.b(D,vvR)||!!_.b(D,G$m)};
_.I.hasGameBoxArtAvatarStyle=function(){var u;return((u=this.data)==null?void 0:u.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.I.hasRoundedGameBoxArtAvatarStyle=function(){var u;return((u=this.data)==null?void 0:u.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.I.isShortsShelf=function(){var u,K,l,D=(l=_.b((u=this.data)==null?void 0:(K=u.contents)==null?void 0:K[0],_.Yg))==null?void 0:l.content;return!!_.b(D,_.Kt)||!!_.b(D,G8H)};
_.I.isPostShelfRenderer=function(){var u,K,l,D=(l=_.b((u=this.data)==null?void 0:(K=u.contents)==null?void 0:K[0],_.Yg))==null?void 0:l.content;return!(!_.b(D,YRB)&&!_.b(D,Aya))};
_.I.isLumiereShelf=function(){var u,K,l=_.b((u=this.data)==null?void 0:(K=u.contents)==null?void 0:K[0],_.Yg);return!!_.b(l==null?void 0:l.content,dek)};
_.I.isLumiereShelfWithPosters=function(){var u,K,l=_.b((u=this.data)==null?void 0:(K=u.contents)==null?void 0:K[0],_.Yg),D;return((D=_.b(l==null?void 0:l.content,dek))==null?void 0:D.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.I.isExpandOnHoverCardShelf=function(){var u,K,l,D=(l=_.b((u=this.data)==null?void 0:(K=u.contents)==null?void 0:K[0],_.Yg))==null?void 0:l.content;return!!_.b(D,Dew)};
_.I.computeHasFeaturedBadge=function(){var u,K,l=_.b((u=this.data)==null?void 0:(K=u.badges)==null?void 0:K[0],_.Sg0);return l?l.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.I.computeHasPaygatedFeaturedBadge=function(){var u,K,l=_.b((u=this.data)==null?void 0:(K=u.badges)==null?void 0:K[0],_.Sg0);return l?(l==null?void 0:l.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.I.computeHeaderHidden=function(){var u,K,l,D,d,C;return!((u=this.data)==null?0:u.icon)&&!((K=this.data)==null?0:K.title)&&!((l=this.data)==null?0:l.subtitle)&&!((D=this.data)==null?0:D.thumbnail)&&!((d=this.data)==null?0:d.badges)&&!((C=this.data)==null?0:C.menu)};
_.I.showCtaButton=function(){var u;return!((u=this.data)==null||!u.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.I.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.I.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.I.computeForce16By9ThumbnailAspectRatio=function(){var u,K;return((u=this.data)==null?void 0:(K=u.responsiveContainerConfiguration)==null?void 0:K.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.I.onSectionReactiveDismissal=function(u,K,l){var D,d;var C=(D=this.data)==null?void 0:(d=D.targetingContext)==null?void 0:d.targetGroupId;this&&C&&K.targetGroupId&&C.includes(K.targetGroupId)?(D=this.rowIndex,u=D===void 0?!1:!(K.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&D<=u)):u=!1;u&&(this.hidden=l)};
_.MN.Object.defineProperties(XF.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var u=this.elementsPerRow;this.isPostShelfRenderer()?u=this.postsPerRow:this.isSlimMediaShelfRenderer()?u=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?u=this.slimItemsPerRow-1:this.isGameCardShelf()?u=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(u=this.miniGameCardsPerRow);return u}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.S("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var u,K;return!((u=this.data)==null||!u.previousButton)&&!((K=this.data)==null||!K.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 u;return((u=_.GB().resolve(_.GT).getCurrentPage())==null?void 0:u.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D;return!((u=this.data)==null?0:(K=u.thumbnail)==null?0:(l=K.accessibility)==null?0:(D=l.accessibilityData)==null?0:D.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
XF.prototype.onChildElementFocus=XF.prototype.onChildElementFocus;XF.prototype.handleRerenderDownloadsData=XF.prototype.handleRerenderDownloadsData;XF.prototype.onDataChange=XF.prototype.onDataChange;XF.prototype.onRowIndexChange=XF.prototype.onRowIndexChange;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.KD),_.N("design:type",Object)],XF.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],XF.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],XF.prototype,"ytdReduxBehavior",void 0);_.g([_.U({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.N("design:type",Object)],XF.prototype,"useResponsiveGrid",void 0);_.g([_.U(),_.N("design:type",Object)],XF.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Number)],XF.prototype,"standardUnitMinWidth",void 0);_.g([_.U({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],XF.prototype,"elementsPerRow",void 0);_.g([_.U({value:3}),_.N("design:type",Number)],XF.prototype,"postsPerRow",void 0);_.g([_.U({value:6}),_.N("design:type",Number)],XF.prototype,"slimItemsPerRow",void 0);_.g([_.U({value:6}),_.N("design:type",Number)],XF.prototype,"gameCardsPerRow",void 0);
_.g([_.U({value:6}),_.N("design:type",Number)],XF.prototype,"miniGameCardsPerRow",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],XF.prototype,"hidden",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],XF.prototype,"standardShelfMargins",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],XF.prototype,"isShowMoreHidden",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],XF.prototype,"isExpanded",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],XF.prototype,"isInnerShelf",void 0);_.g([_.U({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.N("design:type",Boolean)],XF.prototype,"isShorts",void 0);_.g([_.U({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.N("design:type",Boolean)],XF.prototype,"isLumiere",void 0);_.g([_.U({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.N("design:type",Boolean)],XF.prototype,"hasBoxArtThumbnailStyle",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.N("design:type",Boolean)],XF.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.N("design:type",Boolean)],XF.prototype,"hasFeaturedBadge",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.N("design:type",Boolean)],XF.prototype,"hasPaygatedFeaturedBadge",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.N("design:type",Boolean)],XF.prototype,"isHeaderHidden",void 0);_.g([_.U({selector:_.UGR}),_.N("design:type",Object)],XF.prototype,"allVideosCount",void 0);_.g([_.U({selector:z7r}),_.N("design:type",Object)],XF.prototype,"allPlaylistCount",void 0);_.g([_.U({selector:w3w}),_.N("design:type",Object)],XF.prototype,"haveSmartDownloadsCompleted",void 0);
_.g([_.U({selectorArgs:["entitySelectorType"],selector:function(u,K){if(_.S("kevlar_modern_downloads_page")&&K&&K!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var l=u.entities;switch(K){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":K=_.NK(l);u=FR(K);var D=_.ih(K);l=_.ZJ(l);l=_.GI(Gph(D,l,K.length));return{contents:u,subtitle:l};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return l=_.NK(l),{contents:FR(l)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return l=
_.kw(l),{contents:FR(l)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return l=_.yFo(l),{contents:FR(l)};default:_.hV(new _.wv("Error: entitySelectorType defined but not matched in selector.",u,K))}}}}),
_.N("design:type",Object)],XF.prototype,"entityDrivenRichShelfData",void 0);_.g([_.U({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.N("design:type",Boolean)],XF.prototype,"hasTopCtaButton",void 0);_.g([_.U({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.N("design:type",Boolean)],XF.prototype,"hasBottomCtaButton",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.N("design:type",Boolean)],XF.prototype,"force16By9ThumbnailAspectRatio",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],XF.prototype,"isShowLessHidden",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],XF.prototype,"restrictContentsOverflow",void 0);_.g([_.U({selector:_.cFo}),_.N("design:type",Boolean)],XF.prototype,"inlinePreviewIsEnabled",void 0);
_.g([_.U({computed:"computeSizing(data)"}),_.N("design:type",String)],XF.prototype,"sizing",void 0);_.g([_.U(),_.N("design:type",Boolean)],XF.prototype,"typographyBump",void 0);_.g([_.U(),_.N("design:type",Number)],XF.prototype,"itemWidth",void 0);_.g([_.U(),_.N("design:type",Object)],XF.prototype,"firstShownIndex",void 0);_.g([_.U(),_.N("design:type",Object)],XF.prototype,"horizontalOffset",void 0);_.g([_.U(),_.N("design:type",Object)],XF.prototype,"atEnd",void 0);
_.g([_.BF("#contents"),_.N("design:type",HTMLElement)],XF.prototype,"contents",void 0);_.g([_.JU("data.rowIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XF.prototype,"onRowIndexChange",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XF.prototype,"onDataChange",null);
_.g([_.JU("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XF.prototype,"handleRerenderDownloadsData",null);_.g([_.PF("focusin"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],XF.prototype,"onChildElementFocus",null);_.g([_.U({reflectToAttribute:!0}),_.R("data","isHomePage"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],XF.prototype,"isTruncated",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],XF.prototype,"hideBottomDivider",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],XF.prototype,"hasChevronButtons",null);_.g([_.R("firstShownIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],XF.prototype,"previousButtonOverride",null);
_.g([_.R("atEnd"),_.N("design:type",Object),_.N("design:paramtypes",[])],XF.prototype,"nextButtonOverride",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],XF.prototype,"isHomePage",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],XF.prototype,"thumbnailAriaHidden",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],XF.prototype,"initiallyIsExpanded",null);
_.g([_.R("data"),_.N("design:type",String),_.N("design:paramtypes",[])],XF.prototype,"entitySelectorType",null);_.g([_.T({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],XF);
_.S0B=_.at()(XF,"ytd-rich-shelf-renderer",function(){if(xv2===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);xv2=u}u=xv2;return u},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.zW("kevlar_poly_si_batch_j028")?1:2});var bCS;_.SX(uCa,"yt-slimline-survey-view-model",{props:{data:_.M6}});var mx=function(){var u=_.Q.apply(this,arguments)||this;u.tileLottieAnimationRef={};u.backgroundLottieAnimationRef={};u.isOnHoverBehaviorForLottieEnabled=!0;u.useBiggerShowcaseImage=_.S("enable_desktop_search_bigger_thumbs");u.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return u};
_.c(mx,_.Q);_.I=mx.prototype;_.I.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.I.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.I.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var u=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);u!==this.hasTile&&this.set("hasTile",u);u=this.hasLogo(this.data)||!!this.data.badgeText;u!==this.hasMetadata&&this.set("hasMetadata",u);u=this.data.overflowButton?!1:u;u!==this.showLogoImage&&this.set("showLogoImage",u);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.I.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.I.currentColorChanged=function(){this.updateButtonPalette()};
_.I.computeBackgroundStyle=function(u){if(u&&this.data){var K=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var l=_.O4((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);l&&K.push('background-image: url("'+l+'");')}var D;((D=u.basicColorData)==null?void 0:D.backgroundColor)!==void 0&&K.push("background-color: "+_.Kg(u.basicColorData.backgroundColor)+";");return K.join("")}};
_.I.onDarkModeToggledAction=function(u){u!==this.isDarkTheme&&this.set("isDarkTheme",u)};
_.I.getCurrentLogo=function(u,K){if(u)return K?u.darkLogoImage:u.lightLogoImage};
_.I.getCurrentStaticTileImage=function(u,K){if(this.hasStaticTile(u))return u.darkTileImage?K?u.darkTileImage:u.tileImage:u.tileImage};
_.I.computeTitleStyle=function(u){if(this.data&&this.data.title&&u&&u.basicColorData&&u.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.ui(u.basicColorData.foregroundTitleColor)+";"};
_.I.computeSubtitleStyle=function(u){if(this.data&&this.data.subtitle&&u&&u.basicColorData&&u.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.ui(u.basicColorData.foregroundBodyColor)+";"};
_.I.computeSupplementalStyle=function(u){if(this.data&&this.data.supplementalText&&u&&u.supplementalTextColor!==void 0)return u=_.ui(u.supplementalTextColor),"color:"+u+";--yt-endpoint-color:"+u+";--yt-endpoint-hover-color:"+u+";--yt-endpoint-visited-color:"+u+";--yt-formatted-string-bold-font-weight:700;"};
_.I.computeBadgeStyle=function(u){if(this.data&&this.data.badgeText&&u&&u.basicColorData&&u.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.ui(u.basicColorData.foregroundActivatedColor)+";"};
_.I.computeDismissIconStyle=function(u){var K,l;if((u==null?0:(K=u.dismissButtonColorData)==null?0:K.foregroundTitleColor)&&(u==null?0:(l=u.dismissButtonColorData)==null?0:l.backgroundColor))return"--yt-button-color:"+_.Kg(u.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Kg(u.dismissButtonColorData.backgroundColor)+";"};
_.I.computeOverflowIconStyle=function(u){var K,l;if((u==null?0:(K=u.dismissButtonColorData)==null?0:K.foregroundTitleColor)&&(u==null?0:(l=u.dismissButtonColorData)==null?0:l.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Kg(u.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Kg(u.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Kg(u.dismissButtonColorData.foregroundTitleColor)+";"};
_.I.computeBannerStyle=function(u){return u?u.toLowerCase().replace(/_/g,"-"):""};
_.I.computeLocation=function(u){switch(u==null?void 0:u.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.I.shouldShowTileSection=function(u,K,l){return!this.shouldExpandLogo(u,K,l)&&K};
_.I.shouldShowExpandedLogoSection=function(u,K,l){return this.shouldExpandLogo(u,K,l)&&u!==void 0&&this.hasLogo(u)};
_.I.shouldExpandLogo=function(u,K,l){return u&&K?!1:l>=2};
_.I.hasStaticTile=function(u){return!(u==null||!u.tileImage)};
_.I.hasTileLottie=function(u){var K;return!!(u==null?0:(K=u.tileLottie)==null?0:K.url)};
_.I.hasLogo=function(u){return this.getCurrentLogo(u,this.isDarkTheme)!==void 0};
_.I.getLogoHeight=function(u){return this.logoWithPadding(u)?"26":"20"};
_.I.getExpandedLogoHeight=function(u){return this.logoWithPadding(u)?"31":"24"};
_.I.getLogoImageId=function(u){return this.logoWithPadding(u)?"logo-image-with-padding":"logo-image"};
_.I.getMaxTitleFontSize=function(u){return u.overrideTitleMaxFontSize?String(u.overrideTitleMaxFontSize):"36"};
_.I.hasBackgroundLottie=function(u){var K;return!!(u==null?0:(K=u.backgroundLottie)==null?0:K.url)};
_.I.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var u,K;(u=this.tileLottieAnimationRef)==null||(K=u.lottieEl)==null||K.play();var l,D;(l=this.backgroundLottieAnimationRef)==null||(D=l.lottieEl)==null||D.play()}};
_.I.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var u,K;(u=this.tileLottieAnimationRef)==null||(K=u.lottieEl)==null||K.pause();var l,D;(l=this.backgroundLottieAnimationRef)==null||(D=l.lottieEl)==null||D.pause()}};
_.I.pauseLottie=function(){var u,K;(u=this.tileLottieAnimationRef)==null||(K=u.lottieEl)==null||K.pause();var l,D;(l=this.backgroundLottieAnimationRef)==null||(D=l.lottieEl)==null||D.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.I.performPrimaryButtonAction=function(){var u,K,l;((u=this.data)==null?0:(K=u.primaryButton)==null?0:(l=K.buttonRenderer)==null?0:l.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.I.requestElementsPerRow=function(){_.xs(this.hostElement,"yt-request-elements-per-row")};
_.I.updateButtonPalette=function(){if(this.data&&this.currentColorData){var u;((u=this.data.dismissButton)==null?0:u.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 K;if((K=this.data.primaryButton)==null?0:K.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 l;if((l=this.data.secondaryButton)==
null?0:l.buttonRenderer)this.currentColorData.secondaryButtonColorData?(this.data.secondaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.secondaryButtonColorData},this.data.secondaryButton.buttonRenderer.style=void 0):this.currentColorData.secondaryButtonStyleType&&(this.data.secondaryButton.buttonRenderer.style=this.currentColorData.secondaryButtonStyleType,this.data.secondaryButton.buttonRenderer.colorData=void 0),this.set("secondaryButton",{buttonRenderer:Object.assign({},
this.data.secondaryButton.buttonRenderer)});var D;((D=this.data.primaryButton)==null?0:D.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var d;((d=this.data.secondaryButton)==null?0:d.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.I.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var u=this.getTileLottieDataBasedOnTheme(),K,l;if(u.url!==((K=this.tileLottiePlayerProps)==null?void 0:(l=K.animationConfig)==null?void 0:l.path)){var D,d;(D=this.tileLottieAnimationRef)==null||(d=D.lottieEl)==null||d.destroy();var C;this.isOnHoverBehaviorForLottieEnabled=!((C=u.settings)==null?0:C.autoplay);var W,M;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(M=(W=u.settings)==null?void 0:W.autoplay)!=null?M:!1,loop:this.getLottieLoopValue(u.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof u.url==="string"?this.tileLottiePlayerProps.animationConfig.path=u.url:this.tileLottiePlayerProps.animationConfig.animationData=u.url}}};
_.I.getOverflowButton=function(u){return _.b(u.overflowButton,OP0)};
_.I.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var u=this.getBackgroundLottieDataBasedOnTheme(),K,l;if(u.url!==((K=this.backgroundLottiePlayerProps)==null?void 0:(l=K.animationConfig)==null?void 0:l.path)){var D,d;(D=this.backgroundLottieAnimationRef)==null||(d=D.lottieEl)==null||d.destroy();var C;this.isOnHoverBehaviorForLottieEnabled=!((C=u.settings)==null?0:C.autoplay);var W,M;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(M=(W=u.settings)==null?void 0:W.autoplay)!=null?M:!1,loop:this.getLottieLoopValue(u.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof u.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=u.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
u.url}}};
_.I.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var u;((u=this.tileLottieAnimationRef)==null?void 0:u.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var K;((K=this.backgroundLottieAnimationRef)==null?void 0:K.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.I.getTileLottieDataBasedOnTheme=function(){var u;if(this.isDarkTheme&&((u=this.data)==null?0:u.darkThemeTileLottie))return this.data.darkThemeTileLottie;var K;return((K=this.data)==null?0:K.tileLottie)?this.data.tileLottie:{}};
_.I.getBackgroundLottieDataBasedOnTheme=function(){var u;if(this.isDarkTheme&&((u=this.data)==null?0:u.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var K;return((K=this.data)==null?0:K.backgroundLottie)?this.data.backgroundLottie:{}};
_.I.onUpdateElementsPerRowAction=function(u){u&&this.elementsPerRow!==u&&(this.elementsPerRow=u)};
_.I.getLottieLoopValue=function(u){return u?u.loop!==void 0?u.loop:u.loopCount?u.loopCount-1:!0:!0};
_.I.logoWithPadding=function(u){var K,l,D;return(u=(K=this.getCurrentLogo(u,this.isDarkTheme))==null?void 0:(l=K.thumbnails)==null?void 0:(D=l[0])==null?void 0:D.height)&&u%31===0?!0:!1};
mx.prototype.currentColorChanged=mx.prototype.currentColorChanged;mx.prototype.themeChanged=mx.prototype.themeChanged;mx.prototype.dataChanged=mx.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],mx.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],mx.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],mx.prototype,"ytdDismissibleItemBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],mx.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],mx.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],mx.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],mx.prototype,"primaryButton",void 0);_.g([_.U(),_.N("design:type",Object)],mx.prototype,"secondaryButton",void 0);
_.g([_.U({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],mx.prototype,"elementsPerRow",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],mx.prototype,"isDarkTheme",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],mx.prototype,"hasTile",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],mx.prototype,"hasMetadata",void 0);
_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],mx.prototype,"showLogoImage",void 0);_.g([_.U(),_.N("design:type",Object)],mx.prototype,"currentColorData",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.N("design:type",String)],mx.prototype,"bannerStyle",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.N("design:type",String)],mx.prototype,"location",void 0);
_.g([_.U(),_.N("design:type",Object)],mx.prototype,"tileLottiePlayerProps",void 0);_.g([_.U(),_.N("design:type",Object)],mx.prototype,"tileLottieAnimationRef",void 0);_.g([_.U(),_.N("design:type",Object)],mx.prototype,"backgroundLottiePlayerProps",void 0);_.g([_.U(),_.N("design:type",Object)],mx.prototype,"backgroundLottieAnimationRef",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],mx.prototype,"useBiggerShowcaseImage",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],mx.prototype,"isHideEnclosingAction",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mx.prototype,"dataChanged",null);_.g([_.wn("isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mx.prototype,"themeChanged",null);
_.g([_.wn("currentColorData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mx.prototype,"currentColorChanged",null);_.g([_.T({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],mx);
_.F(mx,"ytd-statement-banner-renderer",function(){if(bCS!==void 0)return bCS;var u=document.createElement("template");_.z(u,'\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="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[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.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return bCS=u},{mode:1});var OCw;var hY=function(){var u=_.Q.apply(this,arguments)||this;u.isSearch=!1;u.hideShelfHeader=!1;u.engagementPanel=!1;u.disableMouseScroll=!0;u.useFloorScrolling=!0;u.modernTypography=_.S("web_modern_typography");return u};
_.c(hY,_.Q);hY.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.QQ("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.QQ("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
hY.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
hY.prototype.onDataChanged=hY.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],hY.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],hY.prototype,"isSearch",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],hY.prototype,"hideShelfHeader",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],hY.prototype,"engagementPanel",void 0);_.g([_.U(),_.N("design:type",Object)],hY.prototype,"disableMouseScroll",void 0);_.g([_.U(),_.N("design:type",Object)],hY.prototype,"useFloorScrolling",void 0);_.g([_.U(),_.N("design:type",Object)],hY.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],hY.prototype,"modernTypography",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hY.prototype,"onDataChanged",null);_.g([_.T({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],hY);
_.F(hY,"ytd-reel-shelf-renderer",function(){if(OCw!==void 0)return OCw;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return OCw=u},{mode:_.zW("kevlar_poly_si_batch_j028")?1:2});var chR;var aeH;aeH=_.oj(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.zTm=_.Oy(aeH);var eTH=_.rf(function(u){var K=u.data;u=u.useSmallFont;var l={},D={};return _.n("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.n(_.r,{cond:function(){return K().favicon},
then:function(d){return _.n(_.n4,{data:d,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.n("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.n(_.qC,{text:function(){return K().title},
className:_.JB("yt-channel-external-link-view-model-wiz__title",(l["yt-channel-external-link-view-model-wiz__title--title-small-font"]=u,l)),ellipsisTruncate:!0,userInput:!0}),_.n(_.qC,{text:function(){return K().link},
className:_.JB("yt-channel-external-link-view-model-wiz__link",(D["yt-channel-external-link-view-model-wiz__link--link-small-font"]=u,D)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Qb");
eTH.idomCompat=!0;_.SX(eTH,"yt-channel-external-link-view-model",{props:{data:_.M6,useSmallFont:_.M6}});_.E4("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Em=function(){var u=_.Q.apply(this,arguments)||this;u.revealButtonClass="button";u.businessEmailDisplayState="HIDE_SECTION";return u};
_.c(Em,_.Q);_.I=Em.prototype;_.I.refit=function(){var u=this;_.Cr(function(){_.bI(u.hostElement,"yt-refit-popups-action")});
_.W_(this,function(){_.bI(u.hostElement,"yt-refit-popups-action")})};
_.I.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.KN(_.zTm),this.businessEmailDisplayState="CAPTCHA")};
_.I.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"};
_.I.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.I.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"}}}};
_.I.computeEmailHref=function(u){return"mailto:"+u};
_.I.computeSafeUrl=function(u){if(u)return _.ES(u)};
_.I.linkEndpoint=function(u){return _.b(u.onTap,_.K4)};
_.I.linkEndpointToHref=function(u){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(u))};
_.I.onYtServiceRequestCompleted=function(u){var K;if((K=u.detail.data)==null?0:K.businessEmail)this.businessEmail=u.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var l;if((l=u.detail.data)==null?0:l.errorMessage)this.businessEmailErrorMessage=u.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.I.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var u=this.JSC$16114_captchaTextarea.value;if(u){u={recaptcha_response_token:u,channel_id:this.metadata.channelId};var K=_.b(this.metadata.onBusinessEmailRevealClickCommand,_.K4);K&&this.ytComponentBehavior.resolveCommand(K,{form:u})}}};
_.I.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.MN.Object.defineProperties(Em.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var u;return _.b((u=this.data)==null?void 0:u.metadata,sBk)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.b(this.metadata.businessEmailRevealButton,_.kY)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var u=new URL(this.metadata.canonicalChannelUrl);return u.host+u.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 _.b(this.metadata.learnMoreOnTap,_.K4)}}});
Em.prototype.onYtServiceRequestCompleted=Em.prototype.onYtServiceRequestCompleted;Em.prototype.businessEmailMetadataChanged=Em.prototype.businessEmailMetadataChanged;Em.prototype.refit=Em.prototype.refit;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Em.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Em.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Em.prototype,"ytRendererstamperBehavior",void 0);_.g([_.BF("#g-recaptcha-response"),_.N("design:type",HTMLTextAreaElement)],Em.prototype,"JSC$16114_captchaTextarea",void 0);_.g([_.U(),_.N("design:type",Object)],Em.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Em.prototype,"revealButtonClass",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Em.prototype,"metadata",null);
_.g([_.R("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Em.prototype,"revealButton",null);_.g([_.R("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Em.prototype,"channelDisplayUrl",null);_.g([_.wn("metadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Em.prototype,"refit",null);_.g([_.R("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Em.prototype,"formattedDescription",null);
_.g([_.R("metadata","learnMoreCommand"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Em.prototype,"shouldRendereVerifiedPhoneStatus",null);_.g([_.R("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Em.prototype,"learnMoreCommand",null);_.g([_.U(),_.N("design:type",String)],Em.prototype,"businessEmailDisplayState",void 0);_.g([_.U(),_.N("design:type",String)],Em.prototype,"businessEmail",void 0);
_.g([_.U(),_.N("design:type",String)],Em.prototype,"businessEmailErrorMessage",void 0);_.g([_.wn("metadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Em.prototype,"businessEmailMetadataChanged",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Em.prototype,"onYtServiceRequestCompleted",null);_.g([_.T({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Em);
_.F(Em,"ytd-about-channel-renderer",function(){if(chR!==void 0)return chR;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return chR=u},{mode:1});var RTH;var Ld=function(){return _.Q.apply(this,arguments)||this};
_.c(Ld,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ld.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ld.prototype,"data",void 0);_.g([_.T({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Ld);
_.F(Ld,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(RTH!==void 0)return RTH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return RTH=u},{mode:1});var Uv0;var ua=function(){return _.Q.apply(this,arguments)||this};
_.c(ua,_.Q);ua.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ua.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ua.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],ua.prototype,"aligment",void 0);_.g([_.T({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],ua);
_.F(ua,"ytd-channel-list-sub-menu-renderer",function(){if(Uv0!==void 0)return Uv0;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Uv0=
u},{mode:1});var few;var Ky=function(){return _.Q.apply(this,arguments)||this};
_.c(Ky,_.Q);Ky.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}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ky.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ky.prototype,"data",void 0);_.g([_.T({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Ky);
_.F(Ky,"ytd-channel-sub-menu-renderer",function(){if(few!==void 0)return few;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return few=u},{mode:1});var Qkw;var Pm2;var la=function(){var u=_.Q.apply(this,arguments)||this;u.isCompact=!1;return u};
_.c(la,_.Q);_.MN.Object.defineProperties(la.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var u,K;return((K=_.b((u=this.data)==null?void 0:u.endpoint,_.d_))==null?void 0:K.target)==="TARGET_NEW_WINDOW"}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],la.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],la.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],la.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],la.prototype,"isCompact",void 0);_.g([_.R("isCompact"),_.N("design:type",Number),_.N("design:paramtypes",[])],la.prototype,"thumbnailWidth",null);
_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"openNewWindow",null);_.g([_.T({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],la);
_.F(la,"ytd-media-lockup-renderer",function(){if(Pm2!==void 0)return Pm2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Pm2=u},{mode:1});var JhN;var D5=function(){return _.Q.apply(this,arguments)||this};
_.c(D5,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],D5.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],D5.prototype,"data",void 0);_.g([_.T({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],D5);
_.F(D5,"ytd-structured-description-channel-lockup-renderer",function(){if(JhN!==void 0)return JhN;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return JhN=u},{mode:1});var jkH;var dy=function(){var u=_.Q.apply(this,arguments)||this;u.isCompact=!1;u.collections=_.S("web_modern_collections_v2");u.collectionsStackColor=_.S("modernize_structured_description_playlist_lockups_v2");return u};
_.c(dy,_.Q);dy.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:_.S("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.MN.Object.defineProperties(dy.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D,d,C;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(u=this.data)==null?void 0:(K=u.thumbnail)==null?void 0:K.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(l=this.data)==null?void 0:(D=l.thumbnail)==null?void 0:D.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(d=this.data)==null?void 0:(C=d.thumbnail)==
null?void 0:C.vibrantColorPalette:void 0}}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],dy.prototype,"componentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],dy.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],dy.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],dy.prototype,"showSidePanelThumbnailOverlay",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],dy.prototype,"isCompact",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],dy.prototype,"collections",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],dy.prototype,"collectionsStackColor",void 0);_.g([_.R("data"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dy.prototype,"twoLineTitle",null);
_.g([_.R("data","collections","collectionsStackColor"),_.N("design:type",Object),_.N("design:paramtypes",[])],dy.prototype,"collectionStack",null);_.g([_.T({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],dy);
_.F(dy,"ytd-structured-description-playlist-lockup-renderer",function(){if(jkH!==void 0)return jkH;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return jkH=u},{mode:1});var BTs;var Cy=function(){return _.Q.apply(this,arguments)||this};
_.c(Cy,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Cy.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Cy.prototype,"data",void 0);_.g([_.T({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Cy);
_.F(Cy,"ytd-structured-description-video-lockup-renderer",function(){if(BTs!==void 0)return BTs;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return BTs=u},{mode:2});var I6=function(){return _.Q.apply(this,arguments)||this};
_.c(I6,_.Q);
I6.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}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],I6.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],I6.prototype,"data",void 0);_.g([_.T({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],I6);
_.F(I6,"ytd-compact-infocard-renderer",function(){if(Qkw!==void 0)return Qkw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Qkw=u},{mode:1});var pwC;var yL=function(){var u=_.Q.apply(this,arguments)||this;u.useModernCollectionsV2=_.S("web_modern_collections_v2");return u};
_.c(yL,_.Q);yL.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.MN.Object.defineProperties(yL.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],yL.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],yL.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],yL.prototype,"ytdReduxBehavior",void 0);_.g([_.U({selector:_.le}),_.N("design:type",Object)],yL.prototype,"isGridViewEnabled",void 0);
_.g([_.R("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yL.prototype,"watchFeedBigThumbs",null);_.g([_.R("isGridViewEnabled","data"),_.U({reflectToAttribute:!0,value:"168"}),_.N("design:type",String),_.N("design:paramtypes",[])],yL.prototype,"thumbnailWidth",null);_.g([_.R("isGridViewEnabled","data"),_.U({reflectToAttribute:!0,value:"94"}),_.N("design:type",String),_.N("design:paramtypes",[])],yL.prototype,"customThumbnailSize",null);
_.g([_.U(),_.N("design:type",Object)],yL.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],yL.prototype,"useModernCollectionsV2",void 0);_.g([_.T({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],yL);
_.F(yL,"ytd-compact-playlist-renderer",function(){if(pwC!==void 0)return pwC;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return pwC=u},{mode:1});var iCN;var sl=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");u.roundedContainer=!0;u.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return u};
_.c(sl,_.Q);_.I=sl.prototype;_.I.attached=function(){this.requestElementsPerRow()};
_.I.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"}}}};
_.I.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.I.computeViewStyle=function(u){return u.style?u.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.I.onUpdateElementsPerRowAction=function(u){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&u===1};
_.I.requestElementsPerRow=function(){_.xs(this.hostElement,"yt-request-elements-per-row")};
sl.prototype.dataChanged=sl.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],sl.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],sl.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],sl.prototype,"actionHandlerBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],sl.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],sl.prototype,"hideThumbnail",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.N("design:type",String)],sl.prototype,"viewStyle",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],sl.prototype,"darkerDarkTheme",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],sl.prototype,"roundedContainer",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sl.prototype,"dataChanged",null);_.g([_.T({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],sl);
_.F(sl,"ytd-compact-promoted-item-renderer",function(){if(iCN!==void 0)return iCN;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return iCN=u},{mode:1});var TTN;var o6=function(){var u=_.Q.apply(this,arguments)||this;u.collections=_.S("web_modern_collections_v2");return u};
_.c(o6,_.Q);o6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
o6.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
o6.prototype.onYtNavigate=function(u,K){var l=this;if(K.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",K)){var D=this.get("watchEndpoint.videoId",K.endpoint),d=_.bI(this.hostElement,"yt-get-current-video-id-action")[0];_.S("kevlar_mix_handle_first_endpoint_different")&&D&&d&&D!==d||(u.stopPropagation(),_.SU().getPlayerPromise().then(function(C){if(C.getPlayerState()===0&&l.data.secondaryNavigationEndpoint)var W=l.data.secondaryNavigationEndpoint;else{W=
Object.assign({},K.endpoint);var M=_.b(W.commandMetadata,_.nN);M&&(C=Math.floor(C.getCurrentTime()),M.url=_.Hv(M.url,{t:C}),!_.S("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(M=_.b(W,_.oy)))&&(M.startTimeSeconds=C)}_.xs(l.hostElement,"yt-navigate",{endpoint:W})}))}};
_.MN.Object.defineProperties(o6.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D,d,C;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(u=this.data)==null?void 0:(K=u.thumbnail)==null?void 0:K.sampledThumbnailColor,vibrantColorPalette:(l=this.data)==null?void 0:(D=l.thumbnail)==null?void 0:D.vibrantColorPalette,darkColorPalette:(d=this.data)==null?void 0:(C=d.thumbnail)==null?void 0:C.darkColorPalette,experimentEnabled:this.collections}}}});
o6.prototype.onYtNavigate=o6.prototype.onYtNavigate;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.po.YtEndpointBehavior),_.N("design:type",Object)],o6.prototype,"ytEndpointBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],o6.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],o6.prototype,"ytdDismissibleItemBehavior",void 0);
_.g([_.e(_.s8),_.N("design:type",Object)],o6.prototype,"ytdLockupBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],o6.prototype,"ytdReduxBehavior",void 0);_.g([_.U({selector:_.le}),_.N("design:type",Object)],o6.prototype,"isGridViewEnabled",void 0);_.g([_.R("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],o6.prototype,"watchFeedBigThumbs",null);
_.g([_.R("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],o6.prototype,"thumbnailWidth",null);_.g([_.U(),_.N("design:type",Object)],o6.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],o6.prototype,"collections",void 0);_.g([_.R("data","collections"),_.N("design:type",Object),_.N("design:paramtypes",[])],o6.prototype,"collectionStack",null);
_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],o6.prototype,"onYtNavigate",null);_.g([_.T({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],o6);
_.F(o6,"ytd-compact-radio-renderer",function(){if(TTN!==void 0)return TTN;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return TTN=u},{mode:1});var wwa;var WH=function(){return _.Q.apply(this,arguments)||this};
_.c(WH,_.Q);WH.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
WH.prototype.computeRendererStyle=function(u){return u.style?u.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.g([_.U(),_.N("design:type",Object)],WH.prototype,"data",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],WH.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],WH.prototype,"rendererBehavior",void 0);_.g([_.U({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],WH.prototype,"rendererStyle",void 0);_.g([_.T({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],WH);
_.F(WH,"ytd-compact-text-promo-renderer",function(){if(wwa!==void 0)return wwa;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return wwa=u},{mode:1});var Flk;var HH=function(){var u=_.Q.apply(this,arguments)||this;u.isShortsStyle=!1;return u};
_.c(HH,_.Q);_.I=HH.prototype;_.I.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"}}}};
_.I.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.xs(this.hostElement,"yt-disable-lockup-interaction"):_.xs(this.hostElement,"yt-enable-lockup-interaction"))};
_.I.isMetaBlockEmpty=function(u){return!u||!u.longBylineText&&!u.shortBylineText&&!u.shortViewCountText&&!u.viewCountText};
_.I.computeHasOneLineTitle=function(u){return this.forceOneLineTitle||!(u==null||!u.buttons)};
_.I.computeDisableInteraction=function(){var u;return!((u=this.data)==null?0:u.navigationEndpoint)};
_.I.hasSingularTopStandaloneBadge=function(){var u;return!((u=this.data)==null||!u.topStandaloneBadge)};
_.MN.Object.defineProperties(HH.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("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 u;return this.hasSingularTopStandaloneBadge()?[(u=this.data)==null?void 0:u.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var u;return this.shouldShowTopBadges?((u=this.data)==null?void 0:u.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
HH.prototype.disableInteractionChanged=HH.prototype.disableInteractionChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],HH.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],HH.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.s8),_.N("design:type",Object)],HH.prototype,"ytdLockupBehavior",void 0);
_.g([_.e(_.Ll),_.N("design:type",Object)],HH.prototype,"ytdReduxBehavior",void 0);_.g([_.U({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.N("design:type",Boolean)],HH.prototype,"metaBlockEmpty",void 0);_.g([_.U({selector:_.le}),_.N("design:type",Object)],HH.prototype,"isGridViewEnabled",void 0);_.g([_.R("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HH.prototype,"watchFeedBigThumbs",null);
_.g([_.R("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],HH.prototype,"thumbnailWidth",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],HH.prototype,"isShortsStyle",void 0);_.g([_.U(),_.N("design:type",Object)],HH.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.N("design:type",Boolean)],HH.prototype,"hasOneLineTitle",void 0);
_.g([_.U(),_.N("design:type",Boolean)],HH.prototype,"hideThumbnail",void 0);_.g([_.U(),_.N("design:type",Boolean)],HH.prototype,"forceOneLineTitle",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.N("design:type",Boolean)],HH.prototype,"disableInteraction",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],HH.prototype,"musicMetadataVideoLockup",void 0);
_.g([_.JU("disableInteraction"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HH.prototype,"disableInteractionChanged",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HH.prototype,"shouldShowTopBadges",null);_.g([_.R("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],HH.prototype,"topBadges",null);
_.g([_.R("shouldShowTopBadges","data"),_.N("design:type",Array),_.N("design:paramtypes",[])],HH.prototype,"inlineMetadataBadges",null);_.g([_.R("shouldShowTopBadges"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HH.prototype,"shouldShowBadgesBelowMetadata",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],HH.prototype,"compactTitleClass",null);_.g([_.T({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],HH);
_.F(HH,"ytd-compact-video-renderer",function(){if(Flk!==void 0)return Flk;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Flk=u},{mode:_.zW("kevlar_poly_si_batch_j067")?1:2});var VNa;_.E4("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var My=function(){return _.Q.apply(this,arguments)||this};
_.c(My,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],My.prototype,"data",void 0);_.g([_.T({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],My);
_.F(My,"ytd-counterfactual-renderer",function(){if(VNa!==void 0)return VNa;var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return VNa=u},{mode:1});var gI0;var qy=function(){var u=_.Q.apply(this,arguments)||this;u.hidden=!1;return u};
_.c(qy,_.Q);qy.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.GB().resolve(_.t9).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
qy.prototype.computeHidden=function(u){return!!u};
_.MN.Object.defineProperties(qy.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}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],qy.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],qy.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.N("design:type",Object)],qy.prototype,"hidden",void 0);_.g([_.R("data.label"),_.N("design:type",String),_.N("design:paramtypes",[])],qy.prototype,"label",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],qy.prototype,"value",null);
_.g([_.T({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],qy);
_.F(qy,"ytd-dropdown-item-renderer",function(){if(gI0!==void 0)return gI0;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return gI0=u},{mode:1});var NTs;var kXa;var $3=function(){return _.Q.apply(this,arguments)||this};
_.c($3,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],$3.prototype,"data",void 0);_.g([_.U({computed:"getSimpleString(data.label)"}),_.N("design:type",String)],$3.prototype,"label",void 0);_.g([_.T({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],$3);
_.F($3,"ytd-navigation-dropdown-item-renderer",function(){if(kXa!==void 0)return kXa;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return kXa=u},{mode:1});var ny=function(){var u=_.Q.apply(this,arguments)||this;u.disabled=!1;u.value="";u.noLabelFloat=!1;u.noUnderline=!1;u.usePrimaryColor=!1;u.hasBackground=!1;u.verticalAlign="top";u.autosize=!1;u.minAutosizeWidth=100;u.autosizeFont="14px Roboto";return u};
_.c(ny,_.Q);_.I=ny.prototype;_.I.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"}}}};
_.I.open=function(){this.inputEl.open()};
_.I.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.I.dataChanged=function(){this.reset()};
_.I.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("value-changed",this.value))};
_.I.stopPropagation=function(u){u.stopPropagation()};
_.I.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var u=this.canvas.getContext("2d");u&&(u.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(u.measureText(this.inputEl.value).width)+24)+"px")}};
_.I.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var u=0,K=this.data.entries.length;u<K;u++){var l=this.data.entries[u],D;for(D in l)if(l.hasOwnProperty(D)){var d=l[D];if("isSelected"in d&&d.isSelected)return"stringValue"in d?d.stringValue||"":"int32Value"in d?d.int32Value||0:0}}return null};
_.I.updateValueFromBinding=function(u){this.value=u.detail.value};
_.MN.Object.defineProperties(ny.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 u=0,K=this.data.entries.length;u<K;u++){var l=this.data.entries[u],D;for(D in l)if(l.hasOwnProperty(D)){var d=l[D];if("isSelected"in d&&d.isSelected&&"label"in d)return this.ytRendererBehavior.getSimpleString(d.label)}}return null}}});
ny.prototype.autoSizeLabel=ny.prototype.autoSizeLabel;ny.prototype.stopPropagation=ny.prototype.stopPropagation;ny.prototype.valueChangedForBinding=ny.prototype.valueChangedForBinding;ny.prototype.dataChanged=ny.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ny.prototype,"ytRendererStamperBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],ny.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ny.prototype,"disabled",void 0);_.g([_.U(),_.N("design:type",Object)],ny.prototype,"value",void 0);_.g([_.U(),_.N("design:type",Object)],ny.prototype,"noLabelFloat",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ny.prototype,"noUnderline",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],ny.prototype,"theme",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ny.prototype,"usePrimaryColor",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ny.prototype,"hasBackground",void 0);_.g([_.U(),_.N("design:type",Object)],ny.prototype,"verticalAlign",void 0);_.g([_.U(),_.N("design:type",Object)],ny.prototype,"autosize",void 0);_.g([_.U(),_.N("design:type",Object)],ny.prototype,"minAutosizeWidth",void 0);_.g([_.U(),_.N("design:type",Object)],ny.prototype,"autosizeFont",void 0);
_.g([_.BF("#entries"),_.N("design:type",Object)],ny.prototype,"entries",void 0);_.g([_.BF("#input"),_.N("design:type",Object)],ny.prototype,"inputEl",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ny.prototype,"dataChanged",null);_.g([_.wn("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ny.prototype,"valueChangedForBinding",null);
_.g([_.PF("iron-overlay-opened"),_.PF("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ny.prototype,"stopPropagation",null);_.g([_.PF("iron-select"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ny.prototype,"autoSizeLabel",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ny.prototype,"label",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],ny);
_.F(ny,"ytd-dropdown-renderer",function(){if(NTs!==void 0)return NTs;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return NTs=u},{mode:1});var ZCB;var ry=function(){var u=_.Q.apply(this,arguments)||this;u.isConstrainedList=!1;return u};
_.c(ry,_.Q);ry.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"}}}};
ry.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
ry.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
ry.prototype.computeViewAllHidden=function(u,K){return u||!K.viewAllEndpoint};
ry.prototype.fillRestIfNoShowMore=ry.prototype.fillRestIfNoShowMore;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ry.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ry.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.xR.YtLazyListBehavior),_.N("design:type",Object)],ry.prototype,"ytLazyListBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ry.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ry.prototype,"isConstrainedList",void 0);_.g([_.wn("data","canShowMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ry.prototype,"fillRestIfNoShowMore",null);_.g([_.T({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],ry);
_.F(ry,"ytd-expanded-shelf-contents-renderer",function(){if(ZCB!==void 0)return ZCB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return ZCB=u},{mode:_.zW("kevlar_poly_si_batch_j025")?1:2});var Y02;var vH=function(){return _.Q.apply(this,arguments)||this};
_.c(vH,_.Q);vH.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}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],vH.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],vH.prototype,"data",void 0);_.g([_.T({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],vH);
_.F(vH,"ytd-feed-channel-filter-header-renderer",function(){if(Y02!==void 0)return Y02;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Y02=u},{mode:1});var Ahm;var Xw2;var mvm;var Ga=function(){return _.Q.apply(this,arguments)||this};
_.c(Ga,_.Q);_.I=Ga.prototype;_.I.onClick=function(u){var K,l=(K=this.data)==null?void 0:K.sectionEndpoint;!_.rE(_.WF(u),this.hostElement,["A".toString()])&&l&&_.xs(this.hostElement,"yt-navigate",{endpoint:l})};
_.I.computeHasSectionEndpoint=function(u){return(u==null?void 0:u.sectionEndpoint)!==void 0};
_.I.computeShowHeaderAsLink=function(u){return(u==null?void 0:u.header)!==void 0&&(u==null?void 0:u.sectionEndpoint)!==void 0};
_.I.computeShowSubheaderAsLink=function(u){return(u==null?void 0:u.subheader)!==void 0&&(u==null?void 0:u.sectionEndpoint)!==void 0&&(u==null?void 0:u.header)===void 0};
_.I.getHeaderAsLinkClass=function(u){var K=[],l;(u==null?0:(l=u.headerIcon)==null?0:l.iconType)&&K.push("header-link-active");return K.join(" ")};
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Ga.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ga.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ga.prototype,"data",void 0);
_.g([_.U({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Ga.prototype,"hasSectionEndpoint",void 0);_.g([_.U({computed:"computeShowHeaderAsLink(data)"}),_.N("design:type",Boolean)],Ga.prototype,"showHeaderAsLink",void 0);_.g([_.U({computed:"computeShowSubheaderAsLink(data)"}),_.N("design:type",Boolean)],Ga.prototype,"showSubheaderAsLink",void 0);_.g([_.T({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Ga);
_.F(Ga,"ytd-medical-panel-section-renderer",function(){if(mvm!==void 0)return mvm;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return mvm=u},{mode:1});var tc=function(){var u=_.Q.apply(this,arguments)||this;u.isExpanded=!1;u.roundedContainer=!0;u.skipRoundingTop=!1;u.toggleExpandableSection=function(){u.isExpanded=!u.isExpanded};
return u};
_.c(tc,_.Q);
tc.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]]"}}}}}};
tc.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
tc.prototype.dataChanged=tc.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],tc.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],tc.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],tc.prototype,"isExpanded",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],tc.prototype,"roundedContainer",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],tc.prototype,"skipRoundingTop",void 0);_.g([_.U(),_.N("design:type",Object)],tc.prototype,"toggleExpandableSection",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tc.prototype,"dataChanged",null);_.g([_.T({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],tc);
_.F(tc,"ytd-medical-panel-content-renderer",function(){if(Xw2!==void 0)return Xw2;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Xw2=u},{mode:1});_.E4("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var x3=function(){var u=_.Q.apply(this,arguments)||this;u.roundedContainer=!0;u.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");u.hasTitle=!1;u.linkIcon="OPEN_IN_NEW";u.isDismissed=!1;return u};
_.c(x3,_.Q);
x3.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
x3.prototype.computeHasTitle=function(u){return!(u==null||!u.title)};
x3.prototype.onClick=function(u){var K,l=(K=this.data)==null?void 0:K.headerEndpoint;!_.rE(_.WF(u),this.hostElement,["BUTTON".toString()])&&l&&this.ytComponentBehavior.resolveCommand(l)};
_.MN.Object.defineProperties(x3.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 u;return((u=this.data)==null?void 0:u.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?void 0:u.disableBottomDivider)||!((K=this.data)==null?0:K.title)}}});
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],x3.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],x3.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],x3.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],x3.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],x3.prototype,"roundedContainer",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],x3.prototype,"amsterdamEnabled",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.N("design:type",Object)],x3.prototype,"hasTitle",void 0);
_.g([_.U({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.background"),_.N("design:type",Object),_.N("design:paramtypes",[])],x3.prototype,"background",null);_.g([_.U({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.titleStyle"),_.N("design:type",Object),_.N("design:paramtypes",[])],x3.prototype,"titleStyle",null);
_.g([_.U({type:_.S("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.R("data.titleStyle"),_.N("design:type",Object),_.N("design:paramtypes",[])],x3.prototype,"showLinkIcon",null);_.g([_.U(),_.N("design:type",String)],x3.prototype,"linkIcon",void 0);_.g([_.U({type:_.S("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],x3.prototype,"hideDivider",null);
_.g([_.U({selectorArgs:["data.dismissStateEntityKey"],selector:function(u,K){u=_.eZ(u.entities,"dismissState",K);return(u==null?void 0:u.isDismissed)||(u==null?void 0:u.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(u==null?void 0:u.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.N("design:type",Object)],x3.prototype,"isDismissed",void 0);_.g([_.T({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],x3);
_.F(x3,"ytd-info-panel-container-renderer",function(){if(Ahm!==void 0)return Ahm;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Ahm=u},{mode:1});var hTa;_.E4("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var Sx=function(){var u=_.Q.apply(this,arguments)||this;u.modernTypography=_.S("web_modern_typography");return u};
_.c(Sx,_.Q);Sx.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Sx.prototype.computeStyle=function(u){return u?u:""};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Sx.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Sx.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.N("design:type",String)],Sx.prototype,"titleStyle",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Sx.prototype,"modernTypography",void 0);_.g([_.T({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],Sx);
_.F(Sx,"ytd-item-section-header-renderer",function(){if(hTa!==void 0)return hTa;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return hTa=u},{mode:1});var EIB;var Ll0,uTR=function(){return Ll0!==void 0?Ll0:Ll0=document.createElement("template")};
document.head.appendChild(uTR().content);var KOa;_.ba=new _.G$("VOTING_ANIMATION_CONTROLLER_TOKEN");var DHs=_.rf(function(u){var K=u.data;var l=_.o9("div"),D=_.o9("div");u=_.y(_.On("VOTE_STATUS_NONE",void 0,"FVF7mc"));var d=u.next().value,C=u.next().value,W=_.ie(R7r,function(){var x;return(x=K())==null?void 0:x.entityKey}),M=_.S("web_enable_voting_animation")||_.S("enable_music_web_cairo_voting_animation");
_.ZY(function(){var x;((x=K().initialState)==null?0:x.status)&&C(K().initialState.status)});
var q=function(){var x,O,a=(O=(x=K().initialState)==null?void 0:x.votes)!=null?O:0,f;x=(f=K().initialState)==null?void 0:f.status;return x==="VOTE_STATUS_UPVOTED"?a-1:x==="VOTE_STATUS_DOWNVOTED"?a+1:a},v=function(){return d()==="VOTE_STATUS_UPVOTED"?q()+1:d()==="VOTE_STATUS_DOWNVOTED"?q()-1:q()},G=function(x){var O=x?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
C(O);var a=v(),f=_.GB().resolve(_.vv(_.ba)),B=W();B&&(x&&(B==null?0:B.upvoteDefaultButtonOnTap)?_.IT(B.upvoteDefaultButtonOnTap,{form:{element:l.value},disableClickTracking:!0}):(B==null?0:B.upvoteToggledButtonOnTap)&&_.IT(B.upvoteToggledButtonOnTap,{form:{element:l.value},disableClickTracking:!0}));var p;x=(p=B==null?void 0:B.enableOptimisticReordering)!=null?p:K().enableOptimisticReordering;M&&f&&K().itemId&&x&&ldw(f,K().itemId,a,O)},t=function(x){var O=x?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
C(O);var a=v(),f=_.GB().resolve(_.vv(_.ba)),B=W();B&&(x&&(B==null?0:B.downvoteDefaultButtonOnTap)?_.IT(B.downvoteDefaultButtonOnTap,{form:{element:D.value},disableClickTracking:!0}):(B==null?0:B.downvoteToggledButtonOnTap)&&_.IT(B.downvoteToggledButtonOnTap,{form:{element:D.value},disableClickTracking:!0}));var p;x=(p=B==null?void 0:B.enableOptimisticReordering)!=null?p:K().enableOptimisticReordering;M&&f&&K().itemId&&x&&ldw(f,K().itemId,a,O)};
u={};u=_.JB("ytVotingViewModelVoteCount",(u.ytVotingViewModelVoteCountDisabled=function(){return K().isDisabled},u));
return _.n("voting-view-model",{class:"ytVotingViewModelHost"},_.n("div",{el:l},_.n(_.mo,{data:function(){var x=_.b(K().upvoteButton,_.Za);return{toggleButtonViewModel:Object.assign({},x,{isToggled:d()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(x){return _.n(_.YK,{data:x.data,
onToggle:G})}})),_.n("div",{class:u},function(){var x,O,a;
return d()==="VOTE_STATUS_UPVOTED"?(x=K().initialState)==null?void 0:x.compactVotesUpvoted:d()==="VOTE_STATUS_DOWNVOTED"?(O=K().initialState)==null?void 0:O.compactVotesDownvoted:(a=K().initialState)==null?void 0:a.compactVotes}),_.n("div",{el:D},_.n(_.mo,{data:function(){var x=_.b(K().downvoteButton,_.Za);
return{toggleButtonViewModel:Object.assign({},x,{isToggled:d()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(x){return _.n(_.YK,{data:x.data,
onToggle:t})}})))},"Rb");_.SX(_.rf(function(u){var K=u.data;return _.n("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.n("div",{class:_.JB("ytEngagementBarViewModelEngagementBarWrapper",u.className)},_.n(_.mo,{data:function(){return K().actions}},{votingViewModel:DHs})))},"Sb"),"engagement-bar-view-model",{props:{data:_.M6,
className:_.M6}});var Ol=function(){var u=_.Q.apply(this,arguments)||this;u.playlistVotingAnimationEnabled=_.S("web_enable_voting_animation");u.downloadProgress=0;u.transferState="TRANSFER_STATE_UNKNOWN";u.downloadState="DOWNLOAD_STATE_UNKNOWN";u.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";u.offlineVideoPolicyExpirationTimestamp=0;return u};
_.c(Ol,_.Q);_.I=Ol.prototype;_.I.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"}}}};
_.I.canReorderChanged=function(){this.persistentDragHandle=_.S("kevlar_playlist_drag_handles")&&this.canReorder};
_.I.onDrag=function(){if(this.thumbnail){var u=_.bi(this.thumbnail).querySelector("yt-image");u&&(u.shouldRenderLazy=!1)}};
_.I.onMenuOverlayChanged=function(u,K){this.menuOpened=K};
_.I.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.I.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.I.onContentsTap=function(u){var K,l=(K=this.data)==null?void 0:K.serviceEndpoints;if(l&&l.length===1&&_.b(l[0],ppb)&&!_.rE(_.WF(u),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(l[0]);else{var D;(K=(D=this.data)==null?void 0:D.navigationEndpoint)&&_.S("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?dHm(_.GB().resolve(_.uD),K):(_.B3().playlistSuggestionsShelfActivation=
!0,_.CWR(_.GB().resolve(_.uD),K)):K&&!_.rE(_.WF(u),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.S("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.xs(this.hostElement,"yt-navigate",{endpoint:K}):this.ytComponentBehavior.resolveCommand(K))}};
_.I.computeStyle=function(u){return u?u.toLowerCase().replace(/_/g,"-"):""};
_.I.computeThumbnailWidth=function(u){return u==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.I.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=t_q(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))}};
_.I.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.I.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.I.dataChanged=function(){if(this.data){var u,K,l,D=((u=this.downloadRenderData)==null?void 0:u.badges)&&((K=this.downloadRenderData)==null?void 0:K.badges)!==((l=this.data)==null?void 0:l.badges),d,C,W;u=((d=this.downloadRenderData)==null?void 0:d.thumbnailOverlays)&&((C=this.downloadRenderData)==null?void 0:C.thumbnailOverlays)!==((W=this.data)==null?void 0:W.thumbnailOverlays);(!this.downloadRenderData||D||u)&&this.downloadStateChanged()}};
_.I.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var u,K,l=(u=this.data.menu)==null?void 0:(K=u.menuRenderer)==null?void 0:K.items;if(l)for(u=_.y(l),K=u.next();!K.done;K=u.next())if(K=K.value,l=void 0,_.b((l=K.menuServiceItemRenderer)==null?void 0:l.serviceEndpoint,_.LP)){var D=l=void 0,d=void 0;K=(l=K)==null?void 0:(D=l.menuServiceItemRenderer)==null?void 0:(d=D.serviceEndpoint)==null?void 0:d.playlistEditEndpoint;d=D=void 0;if(l=(D=K)==null?void 0:(d=D.actions)==null?void 0:
d[0])D=void 0,l.setVideoId=(D=this.data)==null?void 0:D.setVideoId;d=D=l=void 0;if(K=(l=K)==null?void 0:(D=l.clientActions)==null?void 0:(d=D[0])==null?void 0:d.playlistRemoveVideosAction)l=void 0,K.setVideoIds=[(l=this.data)==null?void 0:l.setVideoId]}}};
_.MN.Object.defineProperties(Ol.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Ol.prototype.setVideoIdChanged=Ol.prototype.setVideoIdChanged;Ol.prototype.dataChanged=Ol.prototype.dataChanged;Ol.prototype.downloadStateChanged=Ol.prototype.downloadStateChanged;Ol.prototype.onMenuOverlayChanged=Ol.prototype.onMenuOverlayChanged;Ol.prototype.canReorderChanged=Ol.prototype.canReorderChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ol.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Ol.prototype,"ytdReduxBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ol.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.s8),_.N("design:type",Object)],Ol.prototype,"ytdLockupBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],Ol.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Ol.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ol.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ol.prototype,"canReorder",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ol.prototype,"menuOpened",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ol.prototype,"handleIsHovered",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ol.prototype,"persistentDragHandle",void 0);_.g([_.U(),_.N("design:type",Object)],Ol.prototype,"downloadRenderData",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],Ol.prototype,"styleType",void 0);_.g([_.U({computed:"computeThumbnailWidth(data.style)"}),_.N("design:type",Number)],Ol.prototype,"thumbnailWidth",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Ol.prototype,"isDownloads",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ol.prototype,"playlistVotingAnimationEnabled",void 0);
_.g([_.U({selector:uv,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],Ol.prototype,"downloadProgress",void 0);_.g([_.U(),_.N("design:type",Number)],Ol.prototype,"relativeDateReference",void 0);_.g([_.U({selector:_.EV,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],Ol.prototype,"transferState",void 0);_.g([_.U({selector:gi9,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],Ol.prototype,"downloadState",void 0);
_.g([_.U({selector:e1R,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],Ol.prototype,"offlinePolicyAction",void 0);_.g([_.U({selector:R1o,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],Ol.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.g([_.U({selector:fGb,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],Ol.prototype,"entityInfo",void 0);_.g([_.U({selector:_.X6}),_.N("design:type",Boolean)],Ol.prototype,"miniplayerIsActive",void 0);
_.g([_.R("data"),_.N("design:type",String),_.N("design:paramtypes",[])],Ol.prototype,"playlistVideoId",null);_.g([_.BF("#thumbnail"),_.N("design:type",Object)],Ol.prototype,"thumbnail",void 0);_.g([_.wn("canReorder"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ol.prototype,"canReorderChanged",null);
_.g([_.PF("yt-menu-overlay-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Boolean]),_.N("design:returntype")],Ol.prototype,"onMenuOverlayChanged",null);_.g([_.wn("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ol.prototype,"downloadStateChanged",null);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ol.prototype,"dataChanged",null);_.g([_.wn("data.setVideoId"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ol.prototype,"setVideoIdChanged",null);_.g([_.T({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Ol);
_.F(Ol,"ytd-playlist-video-renderer",function(){if(KOa!==void 0)return KOa;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);u.content.insertBefore(uTR().content.cloneNode(!0),u.content.firstChild);return KOa=u},{mode:1});var Id0;var cH=function(){return _.Q.apply(this,arguments)||this};
_.c(cH,_.Q);_.g([_.U(),_.N("design:type",Object)],cH.prototype,"data",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],cH.prototype,"rendererBehavior",void 0);_.g([_.T({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],cH);
_.F(cH,"ytd-premium-browse-footer-renderer",function(){if(Id0!==void 0)return Id0;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Id0=u},{mode:1});var yZH;var a6=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return u};
_.c(a6,_.Q);_.I=a6.prototype;_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.I.handleDarkModeToggledAction=function(u){this.isDarkTheme=u};
_.I.computeHeaderLogoThumbnail=function(u,K){if(u)return K?u.darkLogo:u.lightLogo};
_.I.computeHeaderLogoHeight=function(u,K){var l,D,d;return(u=(l=this.computeHeaderLogoThumbnail(u,K))==null?void 0:(D=l.thumbnails)==null?void 0:(d=D[0])==null?void 0:d.height)&&u%31===0?"31":"24"};
_.I.computeHeaderLogoMarginBottom=function(u,K){return this.computeHeaderLogoHeight(u,K)==="24"?"0":"-7"};
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],a6.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],a6.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],a6.prototype,"isDarkTheme",void 0);_.g([_.U({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.N("design:type",Object)],a6.prototype,"themeLogo",void 0);
_.g([_.U({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.N("design:type",String)],a6.prototype,"logoHeight",void 0);_.g([_.U({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.N("design:type",String)],a6.prototype,"logoMarginBottom",void 0);_.g([_.T({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],a6);
_.F(a6,"ytd-primetime-promo-header-renderer",function(){if(yZH!==void 0)return yZH;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return yZH=u},{mode:1});var sY2;var WOw=_.rf(function(u){var K=_.p4(function(d){var C;(C=u.onClick)==null||C.call(u,d)}),l={},D={};
return _.n("yt-shelf-header-layout",{class:_.JB("shelf-header-layout-wiz",(l["shelf-header-layout-wiz--disable-horizontal-padding"]=u.disableHorizontalPadding,l["shelf-header-layout-wiz--disable-vertical-padding"]=u.disableVerticalPadding,l["shelf-header-layout-wiz--responsive"]=u.useResponsiveLayout,l["shelf-header-layout-wiz--narrow"]=function(){var d,C;return((d=u.useResponsiveLayout)==null?void 0:d.call(u))&&((C=u.forceSmallLayout)==null?void 0:C.call(u))},l["shelf-header-layout-wiz--is-overlay"]=
u.isOverlay,l["shelf-header-layout-wiz--tappable"]=!!u.onClick,l)),
"on:click":K,tabindex:function(){var d;return((d=u.isInteractive)==null?0:d.call(u))?0:void 0}},_.n(_.r,{cond:u.leadingIcon,
then:function(d){return _.n("div",{class:"shelf-header-layout-wiz__leading-icon"},_.n(_.VB,{icon:d}))},
else:function(){return _.n(_.r,{cond:u.hasLeadingImage,then:function(){var d,C={};return _.n("div",{class:_.JB("shelf-header-layout-wiz__leading-image",(C["shelf-header-layout-wiz__leading-image--circular-image"]=u.circularImage,C))},(d=u.leadingImage)==null?void 0:d.call(u))}})}}),_.n("div",{class:"shelf-header-layout-wiz__label-container"},_.n(_.r,{cond:u.hasSuperlabel,
then:function(){var d;return _.n("div",{class:"shelf-header-layout-wiz__superlabel"},(d=u.superlabel)==null?void 0:d.call(u))}}),_.n("div",{class:"shelf-header-layout-wiz__title-row"},_.n(oSH,{text:u.title,
className:_.JB("shelf-header-layout-wiz__title",(D["shelf-header-layout-wiz__title--small-title"]=u.forceSmallLayout,D)),tagLevel:u.tagLevel}),_.n(_.r,{cond:u.hasDetail,then:function(){var d;return _.n("div",{class:"shelf-header-layout-wiz__detail"},(d=u.detail)==null?void 0:d.call(u))}})),_.n(_.r,{cond:u.hasSublabel,
then:function(){var d;return _.n("div",{class:"shelf-header-layout-wiz__sublabel"},(d=u.sublabel)==null?void 0:d.call(u))}})),_.n(_.r,{cond:u.hasTrailingActions,
then:function(){var d;return _.n("div",{class:"shelf-header-layout-wiz__trailing-actions"},(d=u.trailingActions)==null?void 0:d.call(u))}}))},"Tb");
WOw.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var oSH=_.rf(function(u){var K=u.text;var l=u.className;var D=u.tagLevel;return _.n(_.VI,null,_.n(_.ic,{when:function(){return(D==null?void 0:D())===0}},function(){return _.n("h2",{class:l},K())}),_.n(_.ic,{when:function(){return(D==null?void 0:D())===1}},function(){return _.n("h3",{class:l},K())}),_.n(_.ic,{when:function(){return(D==null?void 0:D())===2}},function(){return _.n("h4",{class:l},K())}),_.n(_.Fp,null,function(){return _.n("h2",{class:l},K())}))},"Ub");var qG2,HRN,MVH;_.za=_.rf(function(u){var K=u.className;var l=u.data;var D=u.disableHorizontalPadding;var d=u.disableVerticalPadding;var C=u.forceSmallLayout;var W=u.useResponsiveLayout;u=u.isOverlay;return _.n("yt-section-header-view-model",{class:_.JB("ytSectionHeaderViewModelHost",K),style:_.Fb({"background-color":function(){return UUh(l().backgroundColor)?_.Kg(UUh(l().backgroundColor)):void 0}})},_.n(WOw,{hasDetail:!1,
title:function(){return _.n(_.qC,{text:function(){return l().headline}})},
hasTitle:!0,sublabel:function(){return _.n(HRN,{data:l})},
hasSublabel:function(){return!!l().sublabel||!!l().bottomBadge},
superlabel:function(){return _.n(MVH,{data:l})},
hasSuperlabel:function(){return!!l().superlabel||!!l().topBadge},
leadingImage:function(){return _.n(qG2,{leadingAccessory:function(){return l().leadingAccessory}})},
hasLeadingImage:function(){return!!l().leadingAccessory},
trailingActions:function(){return _.n(_.mo,{data:function(){return l().trailingActions}},{flexibleActionsViewModel:Xl})},
hasTrailingActions:function(){return!!l().trailingActions},
disableHorizontalPadding:D,disableVerticalPadding:d,forceSmallLayout:C,useResponsiveLayout:W,isOverlay:u,isInteractive:function(){return!!_.Kz(l().rendererContext)},
onClick:function(M){if(_.lC(l().rendererContext)){var q=_.Kz(l().rendererContext);q&&_.D$(q,{form:{element:M.target,event:M}})}}}))},"Vb");
qG2=_.rf(function(u){var K=u.leadingAccessory;return _.n(_.G1,null,_.n(_.r,{cond:function(){var l;return(l=K().image)!=null?l:_.Wk(K().themedImage)},
then:function(l){return _.n(_.n4,{data:l,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.n(_.r,{cond:function(){return _.b(K().avatar,_.ds)},
then:function(l){return _.n(_.Y_,{data:l})}}))},"Wb");
HRN=_.rf(function(u){var K=u.data;return _.n(_.G1,null,_.n(_.r,{cond:function(){return _.b(K().bottomBadge,e2k)},
then:function(l){var D={};return _.n(_.xW,{data:l,class:_.JB((D.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!l()&&!!K().sublabel},D))})}}),_.n(_.r,{cond:function(){return K().sublabel},
then:function(l){return _.n(_.qC,{text:l})}}))},"Xb");
MVH=_.rf(function(u){var K=u.data;return _.n(_.G1,null,_.n(_.r,{cond:function(){return _.b(K().topBadge,e2k)},
then:function(l){var D={};return _.n(_.xW,{data:l,class:_.JB((D.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!l()&&!!K().superlabel},D))})}}),_.n(_.r,{cond:function(){return K().superlabel},
then:function(l){return _.n(_.qC,{text:l})}}))},"Yb");_.SX(_.za,"yt-section-header-view-model",{props:{data:_.M6,className:_.M6,disableHorizontalPadding:_.M6,disableVerticalPadding:_.M6,forceSmallLayout:_.M6,useResponsiveLayout:_.M6,isOverlay:_.M6}});_.E4("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var ex=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return u};
_.c(ex,_.Q);_.I=ex.prototype;_.I.attached=function(){this.requestElementsPerRow()};
_.I.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"}}}};
_.I.onDataChange=function(){var u=this;_.W_(this,function(){u.updateItemVisibility()})};
_.I.onUpdateElementsPerRowAction=function(u){u&&this.elementsPerRow!==u&&(this.elementsPerRow=u,this.updateItemVisibility())};
_.I.updateItemVisibility=function(){var u=this;this.data&&this.data.panels&&_.bi(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(K,l){K.hidden=l>u.elementsPerRow-1})};
_.I.requestElementsPerRow=function(){_.xs(this.hostElement,"yt-request-elements-per-row")};
ex.prototype.onDataChange=ex.prototype.onDataChange;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ex.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],ex.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],ex.prototype,"actionHandlerBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],ex.prototype,"data",void 0);_.g([_.U({value:3}),_.N("design:type",Number)],ex.prototype,"elementsPerRow",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ex.prototype,"onDataChange",null);_.g([_.T({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],ex);
_.F(ex,"ytd-primetime-promo-renderer",function(){if(sY2!==void 0)return sY2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return sY2=u},{mode:1});var $Hs;var R6=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return u};
_.c(R6,_.Q);R6.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
R6.prototype.handleButtonRefreshAction=function(u){if(u=_.b(u,Uba))this.set("data.button",u.membershipButton),this.notifyPath("data.button")};
_.MN.Object.defineProperties(R6.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?void 0:(K=u.avatars)==null?void 0:K.slice(0,8))||[]}}});
_.g([_.U(),_.N("design:type",Object)],R6.prototype,"data",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],R6.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],R6.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],R6.prototype,"rendererBehavior",void 0);_.g([_.R("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],R6.prototype,"avatars",null);
_.g([_.T({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],R6);
_.F(R6,"ytd-recognition-shelf-renderer",function(){if($Hs!==void 0)return $Hs;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return $Hs=u},{mode:1});var nSN;var rZH;var Ul=function(){var u=_.Q.apply(this,arguments)||this;u.modernButtons=_.S("web_modern_buttons");return u};
_.c(Ul,_.Q);_.I=Ul.prototype;
_.I.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]]"}}}}}};
_.I.dataChanged=function(){this.collapsed=!0};
_.I.computeVisibleItems=function(u,K){return u!==void 0&&u.items?K?u.items.slice(0,this.data.collapsedItemCount):u.items:[]};
_.I.computeHideShowMore=function(u,K,l){return u>=K||!l};
_.I.computeHideShowAll=function(u,K,l){return!(u&&K)||l};
_.I.onMoreClick=function(){this.collapsed=!1};
_.MN.Object.defineProperties(Ul.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.S("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.bZ("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.S("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Ul.prototype.dataChanged=Ul.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ul.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ul.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ul.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Ul.prototype,"isSearch",void 0);
_.g([_.U({computed:"computeVisibleItems(data,collapsed)"}),_.N("design:type",Array)],Ul.prototype,"visibleItems",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],Ul.prototype,"collapsed",void 0);_.g([_.U({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.N("design:type",Boolean)],Ul.prototype,"hideShowMore",void 0);
_.g([_.U({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.N("design:type",Boolean)],Ul.prototype,"hideShowAll",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ul.prototype,"modernButtons",void 0);_.g([_.R("isSearch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ul.prototype,"typographyBump",null);
_.g([_.R("isSearch"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ul.prototype,"lockupExperiments",null);_.g([_.R("isSearch"),_.N("design:type",String),_.N("design:paramtypes",[])],Ul.prototype,"thumbnailWidth",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ul.prototype,"dataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Ul);
_.F(Ul,"ytd-vertical-list-renderer",function(){if(rZH!==void 0)return rZH;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return rZH=u},{mode:1});var vSs=_.oj(["#"]);_.E4("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var fy=function(){var u=_.Q.apply(this,arguments)||this;u.isConstrainedList=!1;u.modernTypography=_.S("web_modern_typography");return u};
_.c(fy,_.Q);_.I=fy.prototype;
_.I.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"}}}};
_.I.computeThumbnailStyle=function(u){return u||""};
_.I.computePlaceAnnotationUnderTitle=function(){var u;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((u=this.data)==null?void 0:u.thumbnailStyle)||"")};
_.I.computeHrefWithDefault=function(u){return this.ytComponentBehavior.computeHref_(u)||_.iML(vSs)};
_.I.computeIsPromoShelf=function(u){var K;return(u=u==null?void 0:(K=u[0])==null?void 0:K.metadataBadgeRenderer)?u.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.I.computePlaceBadgeBesideTitle=function(u){var K;return(u==null?0:(K=u[0])==null?0:K.metadataBadgeRenderer)?!this.computeIsPromoShelf(u):!1};
_.I.computeMenuIcon=function(u){return this.computeIsPromoShelf(u)?"yt-icons:more_vert":"yt-icons:more"};
_.I.onDataChange=function(){var u,K;((u=this.data)==null?0:(K=u.content)==null?0:K.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.I.onLockupRequested=function(u){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&u.detail&&u.detail.videoIds){for(var K=this.data.content.gridRenderer.items,l=new Set,D=_.y(u.detail.videoIds),d=D.next();!d.done;d=D.next())l.add(d.value);u.detail.returnValue=K.filter(function(C){return C.gridVideoRenderer&&C.gridVideoRenderer.videoId&&l.has(C.gridVideoRenderer.videoId)}).map(function(C){return C.gridVideoRenderer})}};
_.I.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
fy.prototype.onLockupRequested=fy.prototype.onLockupRequested;fy.prototype.onDataChange=fy.prototype.onDataChange;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],fy.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],fy.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],fy.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Ae),_.N("design:type",Object)],fy.prototype,"ironResizableBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],fy.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],fy.prototype,"isSearch",void 0);_.g([_.U(),_.N("design:type",Object)],fy.prototype,"isConstrainedList",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.S("kevlar_fluid_dismiss")}}),
_.N("design:type",Boolean)],fy.prototype,"enableFluidDismiss",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.N("design:type",String)],fy.prototype,"thumbnailStyle",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fy.prototype,"modernTypography",void 0);_.g([_.U({computed:"computeMenuIcon(data.badges)"}),_.N("design:type",String)],fy.prototype,"menuIcon",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fy.prototype,"onDataChange",null);_.g([_.PF("yt-lockup-requested"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],fy.prototype,"onLockupRequested",null);_.g([_.T({is:"ytd-shelf-renderer",disableElementRegistration:!0})],fy);
_.F(fy,"ytd-shelf-renderer",function(){if(nSN!==void 0)return nSN;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return nSN=u},{mode:1});var GPw;var QL=function(){return _.Q.apply(this,arguments)||this};
_.c(QL,_.Q);QL.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.MN.Object.defineProperties(QL.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],QL.prototype,"data",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],QL.prototype,"isPlaylist",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],QL.prototype,"isClipList",void 0);
_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],QL.prototype,"isPlaylistPageWithFilters",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],QL.prototype,"hasTitle",null);_.g([_.U(),_.R("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.N("design:type",Object),_.N("design:paramtypes",[])],QL.prototype,"isRightAligned",null);
_.g([_.T({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],QL);
_.F(QL,"ytd-sort-filter-header-renderer",function(){if(GPw!==void 0)return GPw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return GPw=u},{mode:1});var tVw;var PH=function(){var u=_.Q.apply(this,arguments)||this;u.enableRightArrowHidden=_.S("channel_details_shelf_resize_observer");return u};
_.c(PH,_.Q);PH.prototype.attached=function(){var u=this;this.enableRightArrowHidden&&(this.JSC$16245_throttledOnResize=new _.MC(function(){var K;(K=u.ytdHorizontalListBehavior)==null||K.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var K;
(K=u.JSC$16245_throttledOnResize)==null||K.fire()}),this.resizeObserver.observe(this.hostElement))};
PH.prototype.detached=function(){if(this.enableRightArrowHidden){var u;(u=this.resizeObserver)==null||u.disconnect();var K;(K=this.JSC$16245_throttledOnResize)==null||K.dispose()}};
PH.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]]"}}}}}};
PH.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.MN.Object.defineProperties(PH.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.S("enable_creator_details_shelf_m2")){var u=[],K;((K=this.data)==null?0:K.creatorVideosButton)&&u.push(this.data.creatorVideosButton);var l;((l=this.data)==null?0:l.creatorAboutButton)&&u.push(this.data.creatorAboutButton);K=_.y(this.data.creatorCustomUrlButtons||[]);for(l=K.next();!l.done;l=K.next())u.push(l.value);return u}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.S("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],PH.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.S0.YtdHorizontalListBehavior),_.N("design:type",Object)],PH.prototype,"ytdHorizontalListBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],PH.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],PH.prototype,"engagementPanel",void 0);
_.g([_.U(),_.N("design:type",Object)],PH.prototype,"enableRightArrowHidden",void 0);_.g([_.R("enableRightArrowHidden","atEnd"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],PH.prototype,"hideRightArrow",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],PH.prototype,"creatorCustomUrlButtons",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data","creatorCustomUrlButtons"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],PH.prototype,"showCreatorCustomUrlButtons",null);_.g([_.R("showCreatorCustomUrlButtons"),_.N("design:type",Number),_.N("design:paramtypes",[])],PH.prototype,"channelAvatarSize",null);_.g([_.T({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],PH);
_.F(PH,"ytd-video-description-infocards-section-renderer",function(){if(tVw!==void 0)return tVw;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return tVw=u},{mode:_.zW("kevlar_poly_si_batch_j067")?1:2});var xHw;var Jc=function(){return _.Q.apply(this,arguments)||this};
_.c(Jc,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Jc.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Jc.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Jc.prototype,"data",void 0);_.g([_.U({computed:"computeIcon_(data.infoIcon)"}),_.N("design:type",Object)],Jc.prototype,"infoIcon",void 0);_.g([_.T({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Jc);
_.F(Jc,"ytd-eom-settings-disclaimer-renderer",function(){if(xHw!==void 0)return xHw;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return xHw=u},{mode:1});var SGA;var jx=function(){return _.Q.apply(this,arguments)||this};
_.c(jx,_.Q);_.MN.Object.defineProperties(jx.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.suppressPaddingDisclaimer)}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],jx.prototype,"componentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],jx.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],jx.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],jx.prototype,"suppressPaddingDisclaimer",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],jx);
_.F(jx,"ytd-product-list-header-renderer",function(){if(SGA!==void 0)return SGA;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return SGA=u},{mode:1});var bRB;var BH=function(){return _.Q.apply(this,arguments)||this};
_.c(BH,_.Q);BH.prototype.computeThumbnailStyle=function(u){if(u&&(u=_.ui(u)))return"background-color:"+u+";"};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],BH.prototype,"rendererBehaviors",void 0);_.g([_.U(),_.N("design:type",Object)],BH.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],BH);
_.F(BH,"ytd-hashtag-tile-renderer",function(){if(bRB!==void 0)return bRB;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return bRB=u},{mode:1});var OR2;var py=function(){return _.Q.apply(this,arguments)||this};
_.c(py,_.Q);py.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}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],py.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],py.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],py);
_.F(py,"ytd-sponsorships-alert-renderer",function(){if(OR2!==void 0)return OR2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return OR2=u},{mode:1});var cZa;var ia=function(){return _.Q.apply(this,arguments)||this};
_.c(ia,_.Q);ia.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.MN.Object.defineProperties(ia.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.g([_.e(_.KD),_.N("design:type",Object)],ia.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.s8),_.N("design:type",Object)],ia.prototype,"ytdLockupBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ia.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);_.g([_.U({selector:_.le}),_.N("design:type",Object)],ia.prototype,"isGridViewEnabled",void 0);
_.g([_.R("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ia.prototype,"watchFeedBigThumbs",null);_.g([_.R("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],ia.prototype,"thumbnailWidth",null);_.g([_.U(),_.N("design:type",Object)],ia.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],ia);
_.F(ia,"ytd-compact-movie-renderer",function(){if(cZa!==void 0)return cZa;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return cZa=u},{mode:1});var adA;var zLa;var eLH=_.E3("HTML_DIR")==="rtl",Ta=function(){var u=_.Q.apply(this,arguments)||this;u.engagementPanel=!1;u.maxLines=2;u.expandButtonOffset=0;u.showExpandButton=!1;u.isTruncated=!1;u.isExpanded=!1;u.currentSnippetType=2;u.alwaysShowExpandButton=!1;u.JSC$16262_lastWidth=NaN;u.observer=null;u.left=0;u.right=0;u.mid=0;u.longestSnippetLength=0;u.isFinalSnippet=!1;u.isFirstMutation=!1;u.isResetMutation=!1;u.OVERFLOW_THRESHOLD=5;return u};
_.c(Ta,_.Q);_.I=Ta.prototype;_.I.onClick=function(u){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.rE(_.WF(u)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var K;if((K=window.getSelection())==null||!K.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.I.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.I.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.I.updateTextOnSnippetTypeChange=function(){_.S("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.I.setUpBinarySearch=function(u){u=u*this.maxLines/8;this.left=0;var K,l;this.right=Math.min(u*2,(l=(K=this.simpleText)==null?void 0:K.length)!=null?l:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.I.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.I.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.hV(new _.wv("AttributedSnippet is empty when the description is not empty",this.text))};
_.I.mutationCallback=function(){if(this.observer!=null){var u=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var K=Math.floor(u*this.maxLines/8);this.setSnippetText(this.text,K);K!==0||this.attributedTextIsEmpty()||_.hV(new _.wv("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;u=u*this.maxLines/8;this.left=0;var l;this.right=Math.min(u*2,(l=(K=this.simpleText)==null?void 0:K.length)!=null?l: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)}}};
_.I.mutationObserve=function(u){var K=this;this.observer||(this.observer=new MutationObserver(function(){K.mutationCallback()}));
this.observer.observe(u,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.I.attached=function(){var u=this;_.W_(this,function(){u.resize()})};
_.I.isExpandedChanged=function(){_.xs(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.I.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)};
_.I.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var u="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((eLH?"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",u);this.snippetContainer.style.setProperty("mask-image",
u)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(eLH?"right":"left",this.expandButtonOffset+"px")};
_.I.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.I.setSnippetText=function(u,K){u||(u={});if(_.MI(u)){var l=W1(u,K);l.attachmentRuns||l.commandRuns||l.decorationRuns||l.styleRuns||l.alignment||l.lineBreakMode?this.attributedSnippetTextEl?(_.S("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=W1(u,K),this.attributedSnippetTextEl.headerRuns=RQr(K,this.headerRuns)):this.attributedSnippetText={data:W1(u,K),headerRuns:RQr(K,this.headerRuns)},this.currentSnippetType=0):_.hV(new _.wv("Tried to set snippet text when HTML element was null",
u)):(this.plainSnippetText.textContent=s4(u.content||"",K),this.currentSnippetType=2)}else{a:{l=fc9(u,K);if(l.runs){l=_.y(l.runs);for(var D=l.next();!D.done;D=l.next())if(D=D.value,D.bold||D.deemphasize||D.italics||D.strikethrough||D.textColor||D.navigationEndpoint||_.b(D,Lr)){l=!0;break a}}l=!1}l?this.formattedSnippetText?(this.formattedSnippetText.text=fc9(u,K),this.currentSnippetType=1):_.hV(new _.wv("Tried to set snippet text when HTML element was null",u)):(this.plainSnippetText.textContent=
s4(_.WI(u),K),this.currentSnippetType=2)}};
_.I.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.I.attributedTextIsEmpty=function(){var u=this.text;if(!_.MI(u))return!0;var K;return((K=u.content)==null?void 0:K.length)===0?!0:!1};
_.I.resize=function(u){if(this.snippetText){if(u===void 0?0:u)this.JSC$16262_lastWidth=NaN;var K=this.hostElement.offsetWidth;if(K!==this.JSC$16262_lastWidth&&!this.isExpanded)if(this.JSC$16262_lastWidth=K,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;u=0;var l,D;K=Math.min(K*this.maxLines/8*2,(D=(l=this.simpleText)==null?void 0:l.length)!=null?D:0)-1;for(l=0;u<=K;)D=Math.floor(u+(K-u)/2),this.setSnippetText(this.text,D),this.isOverflowing()?K=D-1:(u=D+1,l=D);this.setSnippetText(this.text,l);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.I.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.I.onExpandClick=function(){var u=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.S("inline_expander_reset_focus_killswitch")||_.W_(this,function(){var K;((K=_.GB().resolve(_.vv(_.zF)))==null?0:K.isKeyBoardInUse())&&_.Wu(u.hostElement)});
_.xs(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.I.onCollapseClick=function(){this.collapse();_.xs(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.I.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.I.computeExpandButtonOffset=function(){var u=this.expandSizer;return u?eLH?u.offsetParent?u.offsetParent.offsetWidth-u.offsetWidth-u.offsetLeft:0:u.offsetLeft:0};
_.MN.Object.defineProperties(Ta.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.MI(this.text)?this.text.content||"":_.WI(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 _.MI(this.text)?!0:this.text&&_.S("web_replace_formatted_with_attributed_string")&&hKq(this.text)?(this.text=_.Ep(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}}});
Ta.prototype.onTextChanged=Ta.prototype.onTextChanged;Ta.prototype.updateMaskAndExpandButtonOffset=Ta.prototype.updateMaskAndExpandButtonOffset;Ta.prototype.updateSnippetContainerMaxHeight=Ta.prototype.updateSnippetContainerMaxHeight;Ta.prototype.isExpandedChanged=Ta.prototype.isExpandedChanged;Ta.prototype.updateTextOnSnippetTypeChange=Ta.prototype.updateTextOnSnippetTypeChange;Ta.prototype.updateIsFormattedExpanded=Ta.prototype.updateIsFormattedExpanded;Ta.prototype.updateIsAttributedExpanded=Ta.prototype.updateIsAttributedExpanded;
Ta.prototype.onClick=Ta.prototype.onClick;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Ta.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ta.prototype,"text",void 0);_.g([_.U(),_.N("design:type",Array)],Ta.prototype,"headerRuns",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ta.prototype,"engagementPanel",void 0);_.g([_.U(),_.N("design:type",Object)],Ta.prototype,"maxLines",void 0);
_.g([_.U(),_.N("design:type",String)],Ta.prototype,"expandLabel",void 0);_.g([_.U(),_.N("design:type",String)],Ta.prototype,"collapseLabel",void 0);_.g([_.U(),_.N("design:type",Object)],Ta.prototype,"expandCommand",void 0);_.g([_.U(),_.N("design:type",Object)],Ta.prototype,"expandButtonOffset",void 0);_.g([_.R("text"),_.N("design:type",String),_.N("design:paramtypes",[])],Ta.prototype,"simpleText",null);
_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ta.prototype,"onClick",null);_.g([_.R("text","isExpanded"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ta.prototype,"expandedText",null);_.g([_.R("headerRuns","isExpanded"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ta.prototype,"expandedHeaderRuns",null);
_.g([_.R("text"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ta.prototype,"hasAttributedStringText",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ta.prototype,"showExpandButton",void 0);_.g([_.R("collapseLabel","isExpanded"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ta.prototype,"showCollapseButton",null);_.g([_.U(),_.N("design:type",Object)],Ta.prototype,"isTruncated",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ta.prototype,"isExpanded",void 0);_.g([_.U(),_.N("design:type",Boolean)],Ta.prototype,"isAttributedExpanded",void 0);_.g([_.JU("isExpanded","hasAttributedStringText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ta.prototype,"updateIsAttributedExpanded",null);_.g([_.U(),_.N("design:type",Boolean)],Ta.prototype,"isFormattedExpanded",void 0);
_.g([_.JU("isExpanded","hasAttributedStringText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ta.prototype,"updateIsFormattedExpanded",null);_.g([_.U(),_.N("design:type",Number)],Ta.prototype,"currentSnippetType",void 0);_.g([_.R("currentSnippetType"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ta.prototype,"useAttributedSnippet",null);
_.g([_.R("currentSnippetType"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ta.prototype,"useFormattedSnippet",null);_.g([_.R("currentSnippetType"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ta.prototype,"usePlainSnippet",null);_.g([_.U(),_.N("design:type",Object)],Ta.prototype,"alwaysShowExpandButton",void 0);_.g([_.JU("currentSnippetType"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ta.prototype,"updateTextOnSnippetTypeChange",null);
_.g([_.U(),_.N("design:type",Object)],Ta.prototype,"attributedSnippetText",void 0);_.g([_.BF("#snippet"),_.N("design:type",HTMLElement)],Ta.prototype,"snippetContainer",void 0);_.g([_.BF("#snippet-text"),_.N("design:type",HTMLElement)],Ta.prototype,"snippetText",void 0);_.g([_.BF("#plain-snippet-text"),_.N("design:type",HTMLElement)],Ta.prototype,"plainSnippetText",void 0);_.g([_.BF("#formatted-snippet-text"),_.N("design:type",Object)],Ta.prototype,"formattedSnippetText",void 0);
_.g([_.BF("#attributed-snippet-text"),_.N("design:type",Object)],Ta.prototype,"attributedSnippetTextEl",void 0);_.g([_.BF("#expand"),_.N("design:type",HTMLElement)],Ta.prototype,"expandButton",void 0);_.g([_.BF("#expand-sizer"),_.N("design:type",HTMLElement)],Ta.prototype,"expandSizer",void 0);_.g([_.wn("isExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ta.prototype,"isExpandedChanged",null);
_.g([_.JU("isExpanded","maxLines"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ta.prototype,"updateSnippetContainerMaxHeight",null);_.g([_.JU("isTruncated","showExpandButton","expandButtonOffset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ta.prototype,"updateMaskAndExpandButtonOffset",null);
_.g([_.wn("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ta.prototype,"onTextChanged",null);_.g([_.T({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Ta);
_.F(Ta,"ytd-text-inline-expander",function(){if(zLa===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);zLa=u}u=zLa;return u},{mode:2});var wy=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return u};
_.c(wy,_.Q);wy.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
wy.prototype.handleUpdateDescriptionAction=function(u){if(u=_.b(u,_.LL0))if(u.attributedDescription)this.set("data.attributedDescriptionBodyText",u.attributedDescription);else if(u.description){var K;((K=this.data)==null?0:K.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Ep(u.description)):this.set("data.descriptionBodyText",u.description)}};
_.MN.Object.defineProperties(wy.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var u,K;return!((u=this.data)==null||!u.attributedDescriptionBodyText)||!((K=this.data)==null||!K.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.data)==null?0:u.collapsedLineCount){var K;return(K=this.data)==null?void 0:K.collapsedLineCount}u=_.Sg("web_watch_description_collapsed_default_lines",12);if(_.S("ww_desc_line_page_size_ks"))return u;K=Math.round(_.iv().height*_.Sg("web_watch_description_screen_height_percentage",.5)/20);return Math.max(K,u)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return(l=(u=this.data)==null?void 0:u.descriptionBodyText)!=null?l:(K=this.data)==null?void 0:K.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.sourceAttributions}}});
wy.prototype.panelContentVisibleChanged=wy.prototype.panelContentVisibleChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],wy.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],wy.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],wy.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Boolean)],wy.prototype,"panelContentVisible",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],wy.prototype,"engagementPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],wy.prototype,"shortsPanel",void 0);_.g([_.BF("#inline-expander"),_.N("design:type",Object)],wy.prototype,"inlineExpander",void 0);
_.g([_.JU("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wy.prototype,"panelContentVisibleChanged",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],wy.prototype,"hasDescriptionText",null);_.g([_.R("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],wy.prototype,"collapsedLines",null);
_.g([_.R("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.N("design:type",Object),_.N("design:paramtypes",[])],wy.prototype,"descriptionText",null);_.g([_.R("data","data.headerRuns"),_.N("design:type",Object),_.N("design:paramtypes",[])],wy.prototype,"headerRuns",null);_.g([_.R("data","data.sourceAttributions"),_.N("design:type",Object),_.N("design:paramtypes",[])],wy.prototype,"sourceAttributions",null);
_.g([_.T({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],wy);
_.F(wy,"ytd-expandable-video-description-body-renderer",function(){if(adA!==void 0)return adA;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return adA=u},{mode:_.zW("kevlar_poly_si_batch_j028")?1:2});var RLs;var UHw=_.rf(function(u){var K=u.data;return _.n("factoid-renderer",{class:"ytwFactoidRendererHost"},_.n("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return K().accessibilityText}},_.n("span",{class:"ytwFactoidRendererValue"},_.n(_.qC,{text:function(){return K().value}})),_.n("span",{class:"ytwFactoidRendererLabel"},_.n(_.qC,{text:function(){return K().label}}))))},"Zb");_.SX(UHw,"factoid-renderer",{props:{data:_.M6}});_.SX(_.rf(function(u){var K=u.data;return _.n("upload-time-factoid-renderer",null,_.n(_.mo,{data:function(){return K().factoid}},{factoidRenderer:UHw}))},"$b"),"upload-time-factoid-renderer",{props:{data:_.xo}});_.SX(_.rf(function(u){var K=u.data;return _.n("view-count-factoid-renderer",null,_.n(_.mo,{data:function(){return K().factoid}},{factoidRenderer:UHw}))},"ac"),"view-count-factoid-renderer",{props:{data:_.xo}});var FU=function(){var u=_.Q.apply(this,arguments)||this;u.shortsPanel=!1;u.engagementPanel=!1;u.watchWhileSdp=_.S("shorts_desktop_watch_while_sdp");return u};
_.c(FU,_.Q);FU.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"}}}}};
_.MN.Object.defineProperties(FU.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var u;return(u=this.data)==null?void 0:u.channel}}});
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],FU.prototype,"componentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],FU.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],FU.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],FU.prototype,"shortsPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],FU.prototype,"engagementPanel",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],FU.prototype,"watchWhileSdp",void 0);_.g([_.R("shortsPanel","engagementPanel","data.channel"),_.N("design:type",Object),_.N("design:paramtypes",[])],FU.prototype,"showChannelInfo",null);_.g([_.T({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],FU);
_.F(FU,"ytd-video-description-header-renderer",function(){if(RLs!==void 0)return RLs;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return RLs=u},{mode:1});var fdw;var VL=function(){return _.Q.apply(this,arguments)||this};
_.c(VL,_.Q);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],VL.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],VL.prototype,"noPadding",void 0);_.g([_.U(),_.N("design:type",Object)],VL.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],VL);
_.F(VL,"ytd-list-item-view-model",function(){if(fdw!==void 0)return fdw;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return fdw=u},{mode:1});var QYw;var PWA;var JZN;var jYA;var gy=function(){var u=_.Q.apply(this,arguments)||this;u.adaptiveFullWidth=!1;u.modernButtons=_.S("web_modern_buttons");u.buttonOverrides={style:"call-to-action",type:"filled"};u.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return u};
_.c(gy,_.Q);gy.prototype.handleSetTimestamp_=function(u){this.data&&this.data.shortUrl&&(_.bi(this.hostElement).querySelector("#share-url").value=u.isSet?_.yK(this.data.shortUrl,"t",u.timestamp):this.data.shortUrl)};
gy.prototype.handleSignalActionCopyShareUrl_=function(u,K){(_.S("killswitch_copy_link_target_check")||_.bi(this.hostElement).querySelector("#copy-button")===K)&&this.copyUrlToClipboard()};
gy.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.bi(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
gy.prototype.computeStyle_=function(u){return u?u.toLowerCase().replace(/_/g,"-"):""};
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],gy.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],gy.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.N("design:type",String)],gy.prototype,"rendererStyle",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],gy.prototype,"adaptiveFullWidth",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],gy.prototype,"modernButtons",void 0);_.g([_.U(),_.N("design:type",Object)],gy.prototype,"buttonOverrides",void 0);_.g([_.E9({is:"yt-copy-link-renderer",disableElementRegistration:!0})],gy);
_.F(gy,"yt-copy-link-renderer",function(){if(jYA===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;JZN===void 0&&(JZN=document.createElement("template"));var D=JZN;l.call(K,D.content.cloneNode(!0),u.content.firstChild);jYA=u}u=jYA;return u},{mode:2});_.E4("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Ny=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return u};
_.c(Ny,_.Q);_.I=Ny.prototype;_.I.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.I.attached=function(){this.keyboardFocused=!1};
_.I.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var u=_.GB().resolve(_.vv(_.zF));u&&(this.keyboardFocused=u.isKeyBoardInUse())}};
_.I.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.I.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}};
_.I.onChange_=function(){if(this.data){var u=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;u&&this.ytComponentBehavior.resolveCommand(u);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.I.handleUpdateToggleAction_=function(u){(u=_.b(u,uxC))&&this.data&&u.targetId==this.data.targetId&&this.set("data.toggled",u.toggled)};
_.I.toBoolean_=function(u){return!!u};
_.I.reset=function(){};
_.I.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("data-changed",this.data))};
_.I.updateDataToggledFromBinding=function(u){this.set("data.toggled",u.detail.value)};
Ny.prototype.dataChangedForBinding=Ny.prototype.dataChangedForBinding;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Ny.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ny.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Ny.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ny.prototype,"ytRendererBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],Ny.prototype,"data",void 0);_.g([_.U({computed:"computeDescription_(data.*)"}),_.N("design:type",Object)],Ny.prototype,"description_",void 0);_.g([_.U({value:function(){return!!_.GB().resolve(_.vv(_.zF))&&_.S("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.N("design:type",Boolean)],Ny.prototype,"useKeyboardFocused",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Ny.prototype,"keyboardFocused",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ny.prototype,"dataChangedForBinding",null);_.g([_.E9({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Ny);
_.F(Ny,"yt-toggle-form-field-renderer",function(){if(PWA===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;QYw===void 0&&(QYw=document.createElement("template"));var D=QYw;l.call(K,D.content.cloneNode(!0),u.content.firstChild);PWA=u}u=PWA;return u},{mode:2});var Bos;var pfC;var k3=function(){var u=_.Q.apply(this,arguments)||this;u.isDarkTheme=!1;u.isSearch=!1;u.darkerDarkTheme=_.S("web_darker_dark_theme");u.noTopMargin=_.S("kevlar_watch_no_top_margin");u.maskFade=_.S("web_watch_chips_mask_fade");u.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 u};
_.c(k3,_.Q);_.I=k3.prototype;_.I.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}}}}}};
_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.I.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.I.dataChanged=function(){var u=this.getSelectedIndex();if(u>0)this.selected=u;else{this.selected=0;var K,l;(K=this.ytScrollableChipCloudBehavior)==null||(l=K.reset)==null||l.call(K)}};
_.I.getSelectedIndex=function(){var u;if((u=this.data)==null||!u.chips)return-1;u=-1;for(var K,l=0;l<((K=this.data)==null?void 0:K.chips.length);l++){var D=void 0,d=void 0;if((D=this.data)==null?0:(d=D.chips[l].chipCloudChipRenderer)==null?0:d.isSelected){u=l;break}}return u};
_.I.onResize=function(){var u=this.ytScrollableChipCloudBehavior;_.W_(u,u.setContainerWidthDiff);Rd(this.ytScrollableChipCloudBehavior)};
_.I.onDarkModeToggledAction=function(u){this.isDarkTheme=u};
_.I.handleRelatedChipCommand=function(u,K){u=this.JSC$16289_chipsSelector.indexOf(K);u!==-1&&this.JSC$16289_chipsSelector.selectIndex(u)};
_.I.handleChipCloudChipSelectAction=function(u){u=this.JSC$16289_chipsSelector.indexOf(u);u>-1&&this.JSC$16289_chipsSelector.selectIndex(u)};
_.I.handleChipCloudChipDeselectAction=function(){var u=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16289_chipsSelector&&((u==null?0:u.continuationCommand)?_.c0(this.hostElement,[u]):(u==null?0:u.searchEndpoint)?this.ytComponentBehavior.resolveCommand(u):u&&_.ay(this.hostElement,[u],this.hostElement),this.JSC$16289_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.I.updateSelectedFromBinding=function(u){this.selected=u.detail.value};
k3.prototype.onResize=k3.prototype.onResize;k3.prototype.dataChanged=k3.prototype.dataChanged;k3.prototype.isSearchChanged=k3.prototype.isSearchChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],k3.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],k3.prototype,"actionHandlerBehavior",void 0);
_.g([_.e(_.Ae),_.N("design:type",Object)],k3.prototype,"ironResizableBehavior",void 0);_.g([_.e(),_.N("design:type",e4)],k3.prototype,"ytScrollableChipCloudBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],k3.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],k3.prototype,"data",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],k3.prototype,"selected",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],k3.prototype,"isDarkTheme",void 0);_.g([_.U({value:160}),_.N("design:type",Number)],k3.prototype,"scrollDistance",void 0);_.g([_.U(),_.N("design:type",Object)],k3.prototype,"isSearch",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],k3.prototype,"darkerDarkTheme",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],k3.prototype,"noTopMargin",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],k3.prototype,"maskFade",void 0);_.g([_.BF("#chips"),_.N("design:type",Object)],k3.prototype,"JSC$16289_chipsSelector",void 0);_.g([_.JU("isSearch"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],k3.prototype,"isSearchChanged",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],k3.prototype,"dataChanged",null);
_.g([_.PF("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],k3.prototype,"onResize",null);_.g([_.E9({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],k3);
_.F(k3,"yt-chip-cloud-renderer",function(){if(pfC===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Bos===void 0&&(Bos=document.createElement("template"));var D=Bos;l.call(K,D.content.cloneNode(!0),u.content.firstChild);pfC=u}u=pfC;return u},{mode:2});var iRa,ToR=function(){return iRa!==void 0?iRa:iRa=document.createElement("template")};
document.head.appendChild(ToR().content);var wf0;var FOs=document.head,VVH=FOs.appendChild,gSB;if(wf0===void 0){var NoC=document.createElement("template");_.z(NoC,"");NoC.content.insertBefore(ToR().content.cloneNode(!0),NoC.content.firstChild);wf0=NoC}gSB=wf0;VVH.call(FOs,gSB.content);var kPN=_.rf(function(u){var K=u.data;return _.n("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.n("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.n("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.n(_.r,{cond:function(){return _.Wk(K().image)},
then:function(l){return _.n("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.n(_.n4,{data:l,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.n("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.n(_.qC,{text:function(){return K().title}})),_.n("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.n(_.qC,{text:function(){return K().subtitle}})))),_.n(_.r,{cond:function(){var l;
return(l=K())==null?void 0:l.hasBottomDivider},
then:function(){return _.n("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"bc");var ZRk=_.rf(function(u){var K=u.data;return _.n("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.n("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.n(_.mo,{data:function(){var l;return(l=K().offerPlanDetailsItem)!=null?l:[]}},{offerPlanDetailsItemViewModel:function(l){return _.n("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.n(kPN,{data:l.data}))}})),_.n("div",null,_.n(_.r,{cond:function(){return K().hasBottomDivider},
then:function(){return _.n("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.n("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.n("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.n("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.n("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"cc");var YG0=_.rf(function(u){var K=u.data;u=_.y(_.On(!1,void 0,"SpEGQd"));var l=u.next().value,D=u.next().value,d=_.p4(function(){D(!l());return!1}),C=function(){var W;
return(W=K().offerPlanDetailsContainer)!=null?W:[]};
return _.n("lp-complex-offer-card-details-view-model",null,_.n("div",null,_.n(_.r,{cond:function(){return l()},
then:function(){return _.n("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.n("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":d,"aria-expanded":l},_.n(_.qC,{text:function(){return K().expandedTitle}})),_.n("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.n(_.mo,{data:C},{offerPlanDetailsContainerViewModel:function(W){return _.n("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.n(ZRk,{data:W.data}))}})),_.n("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.n(_.qC,{text:function(){return K().legalText}})))},
else:function(){return _.n("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":d,"aria-expanded":l},_.n(_.qC,{text:function(){return K().collapsedTitle}}),_.n("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.n(_.VB,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"dc");var AZa=_.rf(function(u){var K=u.data;return _.n("lp-complex-offer-card-option-view-model",null,_.n("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.n(_.r,{cond:function(){return K().topDividerText},
then:function(){return _.n("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.n("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.n("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.n("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.n(_.qC,{text:function(){return K().topDividerText}}))))}}),_.n(_.r,{cond:function(){return K().description},
then:function(){return _.n("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.n(_.qC,{text:function(){return K().description}}))}}),_.n(_.r,{cond:function(){return K().planPricingPrimary},
then:function(){return _.n("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.n(_.qC,{text:function(){return K().planPricingPrimary}}))}}),_.n(_.r,{cond:function(){return K().planPricingSecondary},
then:function(){return _.n("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.n(_.qC,{text:function(){return K().planPricingSecondary}}))}}),_.n(_.r,{cond:function(){return K().primaryButton},
then:function(){return _.n("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.n(_.mo,{data:function(){return K().primaryButton}},{buttonViewModel:function(l){return _.n(_.P2,{data:l.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"ec");var Xfa=_.rf(function(u){var K=u.data;var l=function(){var C;return((C=K())==null?void 0:C.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
u={};var D={},d={};return _.n("ytm-lp-complex-offer-card-view-model",null,_.n("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.n("div",{class:_.JB((u.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=l,u),"ytmLpComplexOfferCardViewModelCardContainer")},_.n(_.r,{cond:function(){var C;return(C=K())==null?void 0:C.bannerText},
then:function(){return _.n("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.n("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.n(_.qC,{text:function(){return K().bannerText}})))}}),_.n(_.r,{cond:function(){return _.Wk(K().logo)},
then:function(C){var W={};return _.n("div",{class:_.JB((W.ytmLpComplexOfferCardViewModelLogoAlignLeft=l,W),"ytmLpComplexOfferCardViewModelLogo")},_.n(_.n4,{data:C,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.n("div",{class:_.JB((D.ytmLpComplexOfferCardViewModelTitleAlignLeft=l,D),"ytmLpComplexOfferCardViewModelTitle")},_.n(_.qC,{text:function(){return K().title}})),_.n(_.r,{cond:function(){var C;
return(C=K())==null?void 0:C.subtitle},
then:function(){var C={};return _.n("div",{class:_.JB((C.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=l,C),"ytmLpComplexOfferCardViewModelSubtitle")},_.n(_.qC,{text:function(){return K().subtitle}}))}}),_.n(_.r,{cond:function(){return K().planPricingPrimary},
then:function(){return _.n("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.n(_.qC,{text:function(){return K().planPricingPrimary}}))}}),_.n(_.r,{cond:function(){return K().planPricingSecondary},
then:function(){return _.n("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.n(_.qC,{text:function(){return K().planPricingSecondary}}))}}),_.n(_.r,{cond:function(){return K().purchaseButton},
then:function(){return _.n("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.n(_.mo,{data:function(){return K().purchaseButton}},{buttonViewModel:function(C){return _.n(_.P2,{data:C.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.n(_.r,{cond:function(){var C;
return(C=K())==null?void 0:C.offerOptions},
then:function(){return _.n("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.n(_.mo,{data:function(){return K().offerOptions}},{lpComplexOfferCardOptionViewModel:AZa}))}}),_.n("div",{class:_.JB((d.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=l,d),"ytmLpComplexOfferCardViewModelLegalText")},_.n(_.qC,{text:function(){return K().legalText}})),_.n(_.r,{cond:function(){var C;
return(C=K())==null?void 0:C.offerCardDetails},
then:function(){return _.n("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.n(_.mo,{data:function(){return K().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:YG0}))}}))))},"fc");var mHA=_.rf(function(u){var K=u.data;var l=function(){var W;return((W=K())==null?void 0:W.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
u={};var D={},d={},C={};return _.n("ytm-lp-complex-offer-card-section-view-model",null,_.n("div",{class:_.JB("ytmLpComplexOfferCardSectionViewModelHost")},_.n("div",{class:_.JB((u.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=l,u),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.n("div",{class:_.JB((D.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=l,D),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.n("h2",{class:_.JB((d.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
l,d),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.n(_.qC,{text:function(){return K().title}}))),_.n(_.r,{cond:function(){var W;
return(W=K())==null?void 0:W.subtitle},
then:function(){var W={},M={};return _.n("div",{class:_.JB((W.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=l,W),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.n("div",{class:_.JB((M.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=l,M),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.n(_.qC,{text:function(){return K().subtitle}})))}}),_.n("div",{class:_.JB((C.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=l,C),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.n(_.mo,{data:function(){var W;
return(W=K().offerPlans)!=null?W:[]}},{lpComplexOfferCardViewModel:function(W){return _.n("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.n(Xfa,{data:W.data}))}})))))},"gc");var hLa=_.rf(function(u){return _.n("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.n("div",{class:"ytLpCouponBannerViewModelIcon"},_.n(_.VB,{icon:function(){return"price_tag"}})),_.n("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.n("div",{class:"ytLpCouponBannerViewModelContent"},_.n("div",{class:"ytLpCouponBannerViewModelHeading"},_.n(_.qC,{text:function(){var K;
return(K=u.data())==null?void 0:K.title}})),_.n("div",{class:"ytLpCouponBannerViewModelBody"},_.n(_.qC,{text:function(){var K;
return(K=u.data())==null?void 0:K.subtitle}})))))},"hc");
hLa.idomCompat=!0;_.Z5=Dhk.getInstance();var ESm=_.rf(function(u){return _.n("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":u.shouldAriaHideContent},_.n("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:u.questionId},_.n(_.qC,{text:u.question})))},"ic"),LO2=_.rf(function(u){var K=u.data;
var l=u.themeOverride;u=_.y(_.On(!1,void 0,"ljTVPd"));var D=u.next().value,d=u.next().value;u=_.p4(function(){d(!D());return!1});
var C=function(){return D()?"EXPAND_LESS":"EXPAND_MORE"},W=("faq-container"+_.h5(_.Z5)).toString(),M="faq-question-and-answers-section-question"+_.h5(_.Z5),q={},v={};
return _.n("faq-entry-view-model-c3",null,_.n("div",{class:_.JB("yt-lp-faq-entry-view-model",(q["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return l==null?void 0:l().useDarkTheme},q))},_.n("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":u,role:"button","aria-expanded":D,"aria-labelledby":M.toString(),"tab-index":"0"},_.n(ESm,{question:function(){return K().question},
questionId:M,shouldAriaHideContent:!0}),_.n(_.r,{cond:function(){return D()!==void 0},
then:function(){return _.n("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.n(_.VB,{icon:C,ariaHidden:!0}),_.n("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.n("div",{class:_.JB("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(v["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!D()},v))},_.n("div",{id:W},_.n(_.p0,{each:function(){return K().answers||[]}},function(G){return _.n("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.n(_.qC,{text:G}))})))))},"jc");
LO2.idomCompat=!0;var u$N=_.rf(function(u){var K=u.data;var l=u.themeOverride;u={};return _.n("lp-faq-section-view-model-c3",null,_.n("div",{class:_.JB("yt-lp-faq-section-view-model",(u["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return K().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},u["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(l==null||!l().useDarkTheme)},u))},_.n("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.n(_.r,{cond:function(){return K().header},
then:function(D){return _.n("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.n(_.qC,{text:D}))}}),_.n("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.n(_.mo,{data:function(){return K().faqs}},{faqEntryViewModel:function(D){return _.n(LO2,{data:D.data,
themeOverride:l})}})),_.n("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.n(_.p0,{each:function(){return K().footers||[]}},function(D){return _.n(_.qC,{text:D})})),_.n(_.r,{cond:function(){return K().legal},
then:function(D){return _.n("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.n(_.qC,{text:D}))}}))))},"kc");
u$N.idomCompat=!0;var K6H=_.rf(function(u){var K=u.data;var l=u.themeOverride;_.ZY(function(){var W=K().gtmId;W&&_.Yx(W,_.E3("GL",""))});
var D={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var W,M,q;return(q=(W=K().logo)==null?void 0:(M=W.accessibilityData)==null?void 0:M.label)!=null?q:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},d=_.GB().resolve(_.vv(_.H1)),C=function(){return d&&d()||(l==null?void 0:l().useDarkTheme)};
return _.n("lp-header-section-view-model",null,_.n("div",{class:function(){var W=K().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",M=K().marginType==="LP_SECTION_MARGIN_TYPE_TOP",q=l==null?void 0:l().useDarkTheme,v=["lp-header-section-view-model"];W&&v.push("lp-header-section-view-model--ptc-layout-type");M&&v.push("lp-header-section-view-model__lp-header-section-margin");q&&v.push("lp-header-section-view-model--premium-force-dark-mode");return v.join(" ")}},_.n(_.r,{cond:function(){return K().logo},
then:function(){return _.n("div",null,_.n(_.r,{cond:C,then:function(){return _.n(_.r,{cond:function(){var W;return(W=K().logo)==null?void 0:W.imageDark},
then:function(W){return _.n(_.n4,Object.assign({},{data:W},D))}})},
else:function(){return _.n(_.r,{cond:function(){var W;return(W=K().logo)==null?void 0:W.imageLight},
then:function(W){return _.n(_.n4,Object.assign({},{data:W},D))}})}}))}}),_.n(_.r,{cond:function(){return K().title},
then:function(W){return _.n("div",{class:"lp-header-section-view-model__lp-header-title"},_.n(_.qC,{text:W}))}}),_.n("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.n(_.r,{cond:function(){return K().subtitles},
then:function(W){return _.n(_.p0,{each:W},function(M){return _.n("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.n(_.qC,{text:M}))})}})),_.n(_.r,{cond:function(){return K().additionalInfo},
then:function(W){return _.n("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.n(_.qC,{text:W}))}}),_.n("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.n(_.r,{cond:function(){return K().primaryButton},
then:function(W){return _.n("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.n(_.mo,{data:W},{buttonViewModel:_.P2}))}}),_.n(_.r,{cond:function(){return K().secondaryButton},
then:function(W){return _.n("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.n(_.mo,{data:W},{buttonViewModel:_.P2}))}})),_.n(_.r,{cond:function(){return K().otherOffersInfo},
then:function(W){return _.n("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.n(_.qC,{text:W}))}}),_.n("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.n(_.r,{cond:function(){return K().billingInfo},
then:function(W){return _.n(_.p0,{each:W},function(M){return _.n("div",null,_.n(_.qC,{text:M}))})}}))))},"lc");
K6H.idomCompat=!0;var lKN=_.rf(function(u){var K=u.data;var l=_.qE(u.themeOverride,{useDarkTheme:!1});u={};u=_.JB("ytm-lp-headline-section-view-model",(u["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return l().useDarkTheme},u));
return _.n("lp-headline-section-view-model",null,_.n("div",{class:u},_.n("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.n(_.qC,{text:function(){return K().title}})),_.n(_.r,{cond:function(){return K().subtitle},
then:function(D){return _.n("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.n(_.qC,{text:D}))}})))},"mc");var DQw=_.rf(function(u){var K=u.data;var l=u.themeOverride;var D=_.GB().resolve(_.vv(_.H1)),d=function(){return D&&D()||(l==null?void 0:l().useDarkTheme)},C=function(){var v,G;
var t=d()?(v=K().textBackgroundImage)==null?void 0:v.imageDark:(G=K().textBackgroundImage)==null?void 0:G.imageLight;return hQL((t==null?void 0:t.sources)||[])},W=function(){var v,G;
return d()?(v=K().featureImage)==null?void 0:v.imageDark:(G=K().featureImage)==null?void 0:G.imageLight},M=function(){return K().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},q=function(){var v,G;
return d()?(v=K().logo)==null?void 0:v.imageDark:(G=K().logo)==null?void 0:G.imageLight};
return _.n("ytm-lp-large-feature-section-view-model",null,_.n("div",{class:function(){var v=K().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",G=K().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",t=(K().index||0)%2===1,x=l==null?void 0:l().useDarkTheme,O=["yt-lp-large-feature-section-view-model"];v?O.push("yt-lp-large-feature-section-view-model--music-feature-type"):G?O.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):t||O.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
x&&O.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return O.join(" ")}},_.n("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.n(_.r,{cond:W,
then:function(){return _.n(_.n4,{data:function(){return W()},
alt:function(){var v,G,t;return(t=(v=K().featureImage)==null?void 0:(G=v.accessibilityData)==null?void 0:G.label)!=null?t:""},
contentMode:M})}})),_.n("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var v;return((v=C())==null?0:v.url)?"background-image: url("+_.ES(C().url)+");":""}},_.n("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.n(_.r,{cond:q,
then:function(){return _.n(_.n4,{data:function(){return q()},
alt:function(){var v,G,t;return(t=(v=K().logo)==null?void 0:(G=v.accessibilityData)==null?void 0:G.label)!=null?t:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.n(_.r,{cond:function(){return K().eyebrowText},
then:function(){return _.n("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.n(_.qC,{text:function(){return K().eyebrowText}}))}}),_.n(_.r,{cond:function(){return K().title},
then:function(){return _.n("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.n(_.qC,{text:function(){return K().title}}))}}),_.n(_.r,{cond:function(){return K().subtitles},
then:function(){return _.n("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.n(_.p0,{each:function(){return K().subtitles||[]}},function(v){return _.n(_.qC,{text:v})}))}})))))},"nc");
DQw.idomCompat=!0;var dQa=_.rf(function(u){return _.n("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.n("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.n(_.VB,{icon:function(){var K;return(K=u.data())==null?void 0:K.iconType},
className:function(){var K;switch((K=u.data())==null?void 0:K.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 K;return((K=u.data())==null?void 0:K.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.n("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.n(_.qC,{text:function(){var K;
return(K=u.data())==null?void 0:K.text},
className:function(){var K;return((K=u.data())==null?void 0:K.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"oc");var CU0=_.rf(function(u){u=_.$U(u,{config:void 0,themeOverride:void 0});var K=u.data,l=u.config,D=u.themeOverride;u={};u=_.JB("ytm-lp-offer-card-option-view-model",(u["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var M;return(M=D())==null?void 0:M.useDarkTheme},u));
var d=_.p4(function(){var M,q;(M=l())==null||(q=M.handleRadioButtonClick)==null||q.call(M,K());return!1}),C=function(){var M;
return(M=l())==null?void 0:M.shouldDisplayRadioButton},W=function(){var M;
return(M=K().featureListItems)!=null?M:[]};
return _.n("ytm-lp-offer-card-option-view-model",null,_.n("div",{class:u,"on:click":_.p4(function(){if(C()){var M,q;(M=l())==null||(q=M.handleRadioButtonClick)==null||q.call(M,K())}return!1})},_.n(_.r,{cond:C,
then:function(){return _.n("div",null,_.n("input",{type:"radio","on:click":d,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var M;return!((M=l())==null||!M.isOptionSelected)}}))}}),_.n("div",null,_.n("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.n(_.qC,{text:function(){return K().eyebrowText}})),_.n("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.n(_.qC,{text:function(){return K().title}})),_.n("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.n(_.qC,{text:function(){return K().subtitle}})),_.n(_.r,{cond:function(){return W().length>0},
then:function(){return _.n("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.n(_.mo,{data:W},{lpFeatureListItemViewModel:dQa}))}}),_.n("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.n(_.qC,{text:function(){return K().description}})))))},"pc");
CU0.idomCompat=!0;var IK0=_.rf(function(u){var K=u.data;var l=u.themeOverride;u=_.y(_.wY(function(){var C,W=(C=K().offerOptions)==null?void 0:C[0];return _.b(W,MhC)||{}}));
var D=u.next().value,d=u.next().value;u={};return _.n("ytm-lp-offer-card-view-model",null,_.n("div",{class:_.JB("ytm-lp-offer-card-view-model",(u["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(l==null||!l().useDarkTheme)},u))},_.n("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.n(_.r,{cond:function(){return K().titleIconType},
then:function(){return _.n("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.n(_.VB,{icon:function(){var C;return((C=K().titleIconType)==null?void 0:C.toString())||""}}))}}),_.n("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.n(_.qC,{text:function(){return K().title}})),_.n(_.mo,{data:function(){return K().titleBadge}},{badgeViewModel:function(C){return _.n("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.n(_.xW,{data:C.data}))}})),_.n("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.n(_.mo,{data:function(){return K().offerOptions}},{lpOfferCardOptionViewModel:function(C){var W=C.data;
return _.n(_.G1,null,_.n("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.n(CU0,{data:W,config:function(){var M;return{shouldDisplayRadioButton:(K().offerOptions||[]).length>1,isOptionSelected:W().id===((M=D())==null?void 0:M.id),handleRadioButtonClick:function(q){return void d(q)}}},
themeOverride:l}))}})),_.n("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.n(_.mo,{data:function(){var C;
return(C=D())==null?void 0:C.purchaseButtonOverride}},{buttonViewModel:_.P2}))))},"qc");
IK0.idomCompat=!0;var yDs=_.rf(function(u){var K=u.data;var l=u.themeOverride;u={};u=_.JB("ytm-lp-offer-card-section-view-model",(u["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var D;return l==null?void 0:(D=l())==null?void 0:D.useDarkTheme},u));
return _.n("ytm-lp-offer-card-section-view-model",null,_.n("div",{class:u},_.n(_.r,{cond:function(){return K().title!==void 0},
then:function(){return _.n("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.n("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.n(_.qC,{text:function(){return K().title}})),_.n(_.r,{cond:function(){return K().subtitle},
then:function(){return _.n("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.n(_.qC,{text:function(){return K().subtitle}}))}}))}}),_.n("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.n(_.mo,{data:function(){return K().offerCards}},{lpOfferCardViewModel:function(D){return _.n("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.n(IK0,{data:D.data,
themeOverride:l}))}})),_.n(_.r,{cond:function(){return K().footer},
then:function(){return _.n("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.n(_.qC,{text:function(){return K().footer}}))}})))},"rc");var ssC=_.rf(function(u){var K=u.data;return _.n("lp-offer-table-cell-content-view-model",null,_.n("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.n(_.VI,null,_.n(_.ic,{when:function(){return K().title}},function(){return _.n(_.qC,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return K().title}})}),_.n(_.ic,{when:function(){return K().subTitle}},function(){return _.n(_.qC,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return K().subTitle}})}),_.n(_.ic,{when:function(){return K().featureDescription}},function(){return _.n(_.qC,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return K().featureDescription}})}),_.n(_.ic,{when:function(){return K().description}},function(){return _.n(_.qC,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return K().description}})}),_.n(_.ic,{when:function(){return K().iconType}},function(){return _.n("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.n(_.VB,{icon:function(){return K().iconType.toString()}}))}),_.n(_.ic,{when:function(){return K().purchaseButton}},function(){return _.n(_.mo,{data:function(){return K().purchaseButton}},{buttonViewModel:function(l){return _.n("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.n(_.P2,{data:l.data}))}})}),_.n(_.ic,{when:function(){return K().note}},function(){return _.n(_.qC,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return K().note}})}),_.n(_.ic,{when:function(){return K().featureDetail}},function(){return _.n(_.qC,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return K().featureDetail}})}),_.n(_.ic,{when:function(){return K().badge}},function(){return _.n(_.mo,{data:function(){return K().badge}},{badgeViewModel:_.xW})}))))},"sc");
ssC.idomCompat=!0;var ohw=_.rf(function(u){var K=u.data;return _.n("lp-offer-table-cell-view-model",null,_.n("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(K().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;"}}},_.n(_.mo,{data:function(){return K().contents}},{lpOfferTableCellContentViewModel:ssC})))},
"tc");
ohw.idomCompat=!0;var W6s=_.rf(function(u){var K=u.data;var l=u.lpTableIsFirstRow;var D=u.lpTableIsLastRow;var d=function(){return(l==null?0:l())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},C=function(){return(l==null?0:l())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(D==null?0:D())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.n("ytm-lp-offer-table-row-view-model",null,_.n("div",{class:"yt-lp-offer-table-row-view-model"},_.n(_.mo,{data:function(){return K().rowHeaderCell}},{lpOfferTableCellViewModel:function(W){return _.n("div",{class:d},_.n(ohw,{data:W.data}))}}),_.n(_.mo,{data:function(){return K().contentCells}},{lpOfferTableCellViewModel:function(W){return _.n("div",{class:C},_.n(ohw,{data:W.data}))}})))},"uc");
W6s.idomCompat=!0;var HEm=_.rf(function(u){var K=u.data;var l=u.themeOverride;var D=_.GB().resolve(_.vv(_.H1)),d=function(){return _.b(K().logo,U6C)||{}};
u={};return _.n("ytm-lp-offer-table-section-view-model",null,_.n("div",{class:"yt-lp-offer-table-view-model"},_.n(_.r,{cond:function(){var C,W;return D&&D()||(l==null?0:l().useDarkTheme)?(C=d())==null?void 0:C.imageDark:(W=d())==null?void 0:W.imageLight},
then:function(C){return _.n(_.n4,{data:C,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var W,M,q;return(q=(W=d())==null?void 0:(M=W.accessibilityData)==null?void 0:M.label)!=null?q:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.n("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.n(_.qC,{text:function(){return K().title}})),_.n("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.n(_.qC,{text:function(){return K().subtitle}})),_.n(_.r,{cond:function(){return K().disclaimers},
then:function(C){return _.n("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.n(_.p0,{each:C},function(W){return _.n("div",null,_.n(_.qC,{text:W}))}))}}),_.n("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.n(_.mo,{data:function(){return K().rows}},{lpOfferTableRowViewModel:function(C,W){return _.n(W6s,{data:C.data,
lpTableIsFirstRow:function(){return W()===0},
lpTableIsLastRow:function(){return W()===K().rows.length-1}})}})),_.n("div",{class:_.JB((u["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return K().hasFooterBackground},u))},_.n(_.r,{cond:function(){return K().footer},
then:function(){return _.n("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.n(_.qC,{text:function(){return K().footer}}))}}),_.n(_.r,{cond:function(){return K().footerTitle},
then:function(){return _.n("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.n(_.qC,{text:function(){return K().footerTitle}}))}}),_.n(_.r,{cond:function(){return K().footerDescription},
then:function(){return _.n("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.n(_.qC,{text:function(){return K().footerDescription}}))}}))))},"vc");
HEm.idomCompat=!0;var MnH=_.rf(function(u){var K=u.data;var l=u.themeOverride;var D=_.GB().resolve(_.vv(_.H1)),d=function(){var M;return l==null?void 0:(M=l())==null?void 0:M.useDarkTheme},C=function(){var M,q;
return D&&D()||d()?(M=K().image)==null?void 0:M.imageDark:(q=K().image)==null?void 0:q.imageLight};
u={};u=_.JB("ytm-lp-small-feature-section-view-model",(u["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=d,u));var W=function(){var M,q,v;return(v=(M=K().image)==null?void 0:(q=M.accessibilityData)==null?void 0:q.label)!=null?v:""};
return _.n("ytm-lp-small-feature-section-view-model",{class:u},_.n(_.r,{cond:function(){return C()&&!Hk},
then:function(){return _.n("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.n(_.n4,{data:function(){return C()},
alt:W,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.n("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.n("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.n(_.r,{cond:function(){return K().title},
then:function(M){return _.n(_.qC,{text:M})}})),_.n("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.n(_.qC,{text:function(){return K().description}}))))},"wc");
MnH.idomCompat=!0;var qJ0=_.rf(function(u){var K=u.data;var l=u.themeOverride;u={};return _.n("ytm-lp-small-feature-section-group-view-model",null,_.n("div",{class:_.JB("ytm-lp-small-feature-section-group-view-model",(u["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(l==null||!l().useDarkTheme)},u))},_.n("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.n(_.mo,{data:function(){return K().smallFeatures}},{lpSmallFeatureSectionViewModel:function(D){return _.n("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.n(MnH,{data:D.data,
themeOverride:l}))}}))))},"xc");
qJ0.idomCompat=!0;_.SX(_.rf(function(u){var K=u.data;var l=function(){return K().forcedTheme==="USER_INTERFACE_THEME_DARK"},D=function(){return K().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},d=function(){var W="",M,q;
var v=_.GB().resolve(_.vv(_.H1));v=l()||(v==null?0:v())?(M=K().themedImageViewModel)==null?void 0:M.imageDark:(q=K().themedImageViewModel)==null?void 0:q.imageLight;(M=hQL((v==null?void 0:v.sources)||[]))&&M.url&&(W=D()?"background-image: linear-gradient(to bottom, transparent, "+(K().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.ES(M.url)+");":"background-image: url("+_.ES(M.url)+");");return W},C=function(){return{useDarkTheme:l()}};
u={};return _.n("yt-section-group-view-model",null,_.n("div",{class:_.JB("yt-lp-section-group-view-model",(u["yt-lp-section-group-view-model--premium-force-dark-mode"]=l,u["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return K().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},u))},_.n(_.r,{cond:function(){return d().length},
then:function(){var W={};return _.n("div",{class:_.JB("yt-lp-section-group-view-model__bg-image",(W["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=D,W)),style:d})}}),_.n("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.n(_.mo,{data:function(){return K().sections}},{lpFaqSectionViewModel:function(W){return _.n(u$N,{data:W.data,
themeOverride:C})},
lpHeaderSectionViewModel:function(W){return _.n(K6H,{data:W.data,themeOverride:C})},
lpHeadlineSectionViewModel:function(W){return _.n(lKN,{data:W.data,themeOverride:C})},
lpLargeFeatureSectionViewModel:function(W){return _.n(DQw,{data:W.data,themeOverride:C})},
lpOfferCardSectionViewModel:function(W){return _.n(yDs,{data:W.data,themeOverride:C})},
lpComplexOfferCardSectionViewModel:function(W){return _.n(mHA,{data:W.data})},
lpOfferTableSectionViewModel:function(W){return _.n(HEm,{data:W.data,themeOverride:C})},
lpSmallFeatureSectionGroupViewModel:function(W){return _.n(qJ0,{data:W.data,themeOverride:C})},
lpCouponBannerViewModel:function(W){return _.n(hLa,{data:W.data})}}))))},"yc"),"yt-section-group-view-model",{props:{data:_.M6}});var Jxh=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Y3=_.rf(function(u){function K(){if(Jxh.has(u.data().displayType)){var v=!D(),G;if((G=u.disableDeselection)==null||!G.call(u)||v){u.data().selected=v;G=Object.assign({},W(),{selected:v});M(G);var t;(t=u.callback)==null||t.call(u,G,v)}}}
var l=_.o9("chip-view-model"),D=function(){var v,G;return!!(((v=u.selected)==null?void 0:v.call(u))!==void 0?(G=u.selected)==null?0:G.call(u):W().selected)},d=_.y(_.wY(u.data)),C=d.next().value;
d=d.next().value;var W=C,M=d,q=_.ie(Pbr,function(){return u.data().chipEntityKey||""});
return _.n("chip-view-model",{class:"ytChipViewModelHost",el:l},_.n(XMR,{data:function(){var v,G=Object.assign({},W(),{selected:D()}),t=q(),x=(v=u.disableDeselection)==null?void 0:v.call(u);a:switch(G.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":v=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":v=3;break a;default:v=0}return{text:(t==null?void 0:t.text)||G.text,state:G.disabled?1:G.selected?0:2,type:v,onTap:jaH(G,l,K,x),
accessibilityLabel:G.accessibilityLabel||G.text}}}))},"zc");
_.Y3.idomCompat={callbacks:{callback:!0}};_.$Qk=_.rf(function(u){var K=_.ie(QaL,function(){var W;return(W=u.data())==null?void 0:W.chipBarStateEntityKey}),l=function(){return u.data().disableDeselection},D=_.y(_.wY(function(){var W;
if(((W=K())==null?void 0:W.selectedIndex)!=void 0)return K().selectedIndex;var M,q;W=_.y(((M=u.data())==null?void 0:(q=M.chips)==null?void 0:q.entries())||[]);for(M=W.next();!M.done;M=W.next()){M=_.y(M.value);q=M.next().value;M=M.next().value;var v=void 0;if((v=_.b(M,_.ID))==null?0:v.selected)return q}return-1})),d=D.next().value,C=D.next().value;
return _.n("chip-bar-view-model",{class:_.JB("ytChipBarViewModelHost",u.className),role:"tablist"},_.n(_.mo,{data:function(){return u.data().chips}},{chipViewModel:function(W,M){return _.n("div",{class:"ytChipBarViewModelChipWrapper"},_.n(_.Y3,{data:W.data,
selected:function(){return M()===d()},
callback:function(q,v){q=!!v;v=M();C(q?v:-1);var G,t=(G=u.data())==null?void 0:G.chipBarStateEntityKey;t&&q&&_.ME(_.TT("chipBarStateEntity",t,{key:t,selectedIndex:v}))},
disableDeselection:u.disableDeselection||l}))}}))},"Ac");_.SX(_.$Qk,"chip-bar-view-model",{props:{data:_.xo,className:_.xo,disableDeselection:_.xo}});_.nh2=_.rf(function(u){var K=u.data;u={};return _.n("divider-view-model",{class:_.JB("divider-view-model-wiz",(u["divider-view-model-wiz__inset-thin-padding"]=function(){return K().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},u))},_.n("div",{class:_.JB("divider-view-model-wiz__base-divider",function(){return BkZ(K().dividerStyle)}),
style:_.Fb({"background-color":function(){return K().backgroundColor?_.ui(K().backgroundColor):void 0}})}))},"Bc");
_.nh2.idomCompat=!0;_.SX(_.nh2,"divider-view-model",{props:{data:_.M6}});var gs=new Map,V$=new Map,TkZ=0,NC;var Zu9=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],X5q={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var rDa,vhw;rDa=function(u){return function(K){return function(){return String(K())+u}}};
_.Ac=rDa("px");vhw=rDa("s");var tnN=_.rf(function(u){function K(A){return function(){var h=O().numItemsPerGridRow,C9=A()*h;h=C9+h;var Wo,$y;return($y=(Wo=D().contents)==null?void 0:Wo.slice(C9,h))!=null?$y:[]}}
var l=_.$U(u,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),D=l.data,d=l.layoutContainerWidth,C=l.shouldUseOwnContainerSize,W=l.marginSettings;l=_.y(_.On(!0,void 0,"qgr2Je"));var M=l.next().value,q=l.next().value,v=function(){var A,h=(A=_.b(D().showMoreButton,_.kY))==null?void 0:A.trackingParams;h&&_.QZ(_.iT(),h);q(!1)},G=function(){var A,h=(A=_.b(D().showLessButton,_.kY))==null?void 0:A.trackingParams;
h&&_.QZ(_.iT(),h);q(!0)};
l=_.o9("grid-shelf-view-model");var t=_.h7y(l,{canHaveZeroSize:!1}),x=function(){var A;return(A=D().contentAspectRatio)!=null?A:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},O=_.RZ(function(){var A=_.o5({containerWidth:C()&&t.width()>0?t.width()||d():d(),
sizing:"EXTRA_COMPACT",marginSettings:W(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:A.maxContainerWidth,numItemsPerGridRow:A.numItems,contentPadding:C()?A.margin:A.contentMargin,itemWidth:A.itemWidth,itemMargin:A.gutter/2}},void 0,"pqVdjc"),a=function(){if(D().enableVerticalExpansion){if(M())return f();
var A,h,C9=(h=(A=D().contents)==null?void 0:A.length)!=null?h:0;return Math.ceil(C9/O().numItemsPerGridRow)}return O().numItemsPerGridRow<=2?2:1},f=function(){var A;
return Math.ceil(((A=D().minCollapsedItemCount)!=null?A:1)/O().numItemsPerGridRow)},B=function(){return D().enableVerticalExpansion&&D().showLessButton&&!M()&&a()>f()},p=function(){var A,h;
return D().enableVerticalExpansion&&D().showMoreButton&&M()&&((h=(A=D().contents)==null?void 0:A.length)!=null?h:0)>O().numItemsPerGridRow*f()},V=function(){return!B()},m=function(){return!p()},Z={};
return _.n("grid-shelf-view-model",{class:_.JB("ytGridShelfViewModelHost",u.className,(Z.ytGridShelfViewModelHostHasBottomButton=function(){return B()||p()},Z)),
el:l,style:_.Fb({"margin-left":(0,_.Ac)(function(){return O().contentPadding}),
"margin-right":(0,_.Ac)(function(){return O().contentPadding})})},_.n(_.r,{cond:function(){return _.b(D().header,V_0)},
then:function(A){return _.n(_.za,{data:A,disableHorizontalPadding:!0})}}),_.n("div",null,_.n(_.p0,{each:function(){return Array(a())}},function(A,h){return _.n(G5H,{className:u.className,
items:K(h),responsiveGridShelfLayout:O,contentAspectRatio:x})})),_.n("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.n(_.mo,{data:function(){return D().showMoreButton}},{buttonViewModel:function(A){return _.n("div",{hidden:m},_.n(_.P2,{data:A.data,
onClick:v}))}}),_.n(_.mo,{data:function(){return D().showLessButton}},{buttonViewModel:function(A){return _.n("div",{hidden:V},_.n(_.P2,{data:A.data,
onClick:G}))}})))},"Cc");
tnN.idomCompat=!0;var G5H=_.rf(function(u){var K=u.items;var l=u.responsiveGridShelfLayout;var D=u.contentAspectRatio;u=u.className;var d=_.o9("div");iuh(d,function(){a:{var W=d.value;for(var M=K(),q=[],v=0;v<M.length;v++){var G=_.b(M[v],G8H);if(!G||G==null||!G.inlinePlayerData){W=null;break a}var t=W.children.item(v);if(!t){W=null;break a}q.push({thumbnailElement:t,videoData:G})}W={gridVideoPreviewData:{gridItems:q}}}return W});
var C=(0,_.Ac)(function(){return-l().itemMargin});
return _.n("div",{el:d,class:_.JB("ytGridShelfViewModelGridShelfRow",u),style:_.Fb({"margin-left":C,"margin-right":C})},_.n(_.mo,{data:K,replacementWrapper:function(W){return _.n(xQB,{responsiveGridShelfLayout:l},W)}},{shortsLockupViewModel:function(W){return _.n(xQB,{responsiveGridShelfLayout:l},_.n(d4H,{data:W.data,
aspectRatio:function(){return D()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Dc"),xQB=_.rf(function(u){return _.n("div",{style:_.Fb({width:(0,_.Ac)(function(){return u.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+u.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},u.children)},"Ec");
tnN.idomCompat=!0;_.SX(tnN,"grid-shelf-view-model",{props:{data:_.M6,layoutContainerWidth:_.M6,shouldUseOwnContainerSize:_.M6,marginSettings:_.M6,className:_.M6}});_.SJa=_.rf(function(u){var K=_.y(_.On(!1,void 0,"YYtxR")),l=K.next().value,D=K.next().value;K={};return _.n("yt-alert-banner-view-model",{class:_.JB("ytAlertBannerViewModelHost",u.className,function(){var d;a:switch((d=u.data())==null?void 0:d.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":d="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":d="ytAlertBannerViewModelWarning";break a;default:d="ytAlertBannerViewModelInformational"}return d},(K.ytAlertBannerViewModelDismissed=
l,K.ytAlertBannerViewModelFullbleed=u.fullbleed,K.ytAlertBannerViewModelNarrow=u.narrow,K.ytAlertBannerViewModelIsInRichGrid=u.isInRichGrid,K))},_.n(_.r,{cond:function(){var d;
return!((d=u.data())==null?0:d.hideIcon)},
then:function(){return _.n("div",{class:"ytAlertBannerViewModelIcon"},_.n(_.VB,{icon:function(){return"info_circle"}}))}}),_.n("div",{class:"ytAlertBannerViewModelOuterContainer"},_.n("div",{class:"ytAlertBannerViewModelContainer"},_.n("div",{class:"ytAlertBannerViewModelContent"},_.n("div",{class:"ytAlertBannerViewModelHeading"},_.n(_.qC,{text:function(){var d;
return(d=u.data())==null?void 0:d.heading}})),_.n("div",{class:"ytAlertBannerViewModelBody"},_.n(_.qC,{text:function(){var d;
return(d=u.data())==null?void 0:d.body}})))),_.n(_.mo,{data:function(){var d;
return(d=u.data())==null?void 0:d.actionButton}},{buttonViewModel:function(d){return _.n(_.P2,{data:d.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.n(_.mo,{data:function(){var d;
return(d=u.data())==null?void 0:d.dismissButton}},{buttonViewModel:function(d){return _.n(_.P2,{data:d.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var C;((C=u.data())==null?0:C.disableLocalDismissBehavior)||D(!0)}})}}))},"Fc");_.SX(_.SJa,"yt-alert-banner-view-model",{props:{data:_.M6,fullbleed:_.M6,narrow:_.M6,isInRichGrid:_.M6,className:_.M6}});var EGR=_.NX({chipViewModel:_.Y3,buttonViewModel:_.P2});_.v4(LPo);var bEA;bEA=_.rf(function(u){var K=u.data;var l=u.callback;var D=u.enableSingleChipSelection;var d=u.disableChipsScrollAnimation;var C=_.W4("div");u=_.y(_.On(!0,void 0,"ULL8g"));var W=u.next().value,M=u.next().value;u=_.y(_.On(!1,void 0,"cWhQn"));var q=u.next().value,v=u.next().value,G=!1,t=0;_.N_(function(){M(a());v(f())});
u=_.y(_.wY(function(){var C9={};return K().autoselectedChipIndex!=null?(C9[K().autoselectedChipIndex]=!0,C9):{}}));
var x=u.next().value,O=u.next().value,a=function(){var C9=C.value;return C9==null||C9.scrollLeft-1<=0},f=function(){var C9=C.value;
return C9==null?!1:C9.scrollLeft+1>=(C9==null?NaN:C9.scrollWidth)-(C9==null?NaN:C9.clientWidth)},B=function(){return K().isHorizontallyScrollable},p=function(C9){C.value!=null&&(_.E3("HTML_DIR")==="rtl"&&(C9=-C9),C.value.scrollBy({left:C9,
behavior:(d==null?0:d())?"instant":"smooth"}))},V=function(){p(-320)},m=function(){p(320)},Z=_.p4(function(C9){G=!0;
t=C9.clientX}),A=_.p4(function(C9){if(G){C9=C9.clientX;
var Wo=C9-t;t=C9;var $y;($y=C.value)==null||$y.scrollBy({left:-Wo})}}),h=_.p4(function(){var C9=a(),Wo=f();
C9!==W()&&M(C9);Wo!==q()&&v(Wo)});
$f("pointerup",function(){G&&(G=!1)});
return _.n("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.n(_.Oa,{contentId:function(){return K().contentId},
useModernStyle:!0},function(){var C9={},Wo={};return _.n("div",null,_.n(_.r,{cond:function(){return K().title},
then:function(){return _.n("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.n("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return K().title}),_.n(_.mo,{data:function(){return K().overflowButton}},{buttonViewModel:_.P2}))}}),_.n("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.n(_.r,{cond:function(){return K().previousButton},
then:function(){var $y={};return _.n("div",{class:_.JB("ytChipsShelfViewModelLeftArrowContainer",($y.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return W()},$y))},_.n(_.mo,{data:function(){return K().previousButton}},{buttonViewModel:function(co){return _.n(_.P2,{data:co.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:V})}}))}}),_.n("div",{el:C,
"on:pointerdown":Z,"on:pointermove":A,"on:scroll":h,class:_.JB("ytChipsShelfViewModelChipsScrollContainer",(C9.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=B,C9))},_.n("div",{class:_.JB("ytChipsShelfViewModelChipsContainer",(Wo.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=B,Wo.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,Wo)),role:"tablist"},_.n(_.mo,{data:function(){return K().contents}},{chipViewModel:function($y,co){return _.n("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.n(_.Y3,{data:$y.data,
callback:function(UZ,tH){var gq=co();if(D==null?0:D()){var Bo={};O((Bo[gq]=tH,Bo))}else Bo={},O(Object.assign({},x(),(Bo[gq]=tH,Bo)));l==null||l(UZ,tH,gq)},
disableDeselection:D,selected:function(){return!!x()[co()]}}))}}))),_.n(_.r,{cond:function(){return K().nextButton},
then:function(){var $y={};return _.n("div",{class:_.JB("ytChipsShelfViewModelRightArrowContainer",($y.ytChipsShelfViewModelRightArrowContainerIsHidden=q,$y))},_.n(_.mo,{data:function(){return K().nextButton}},{buttonViewModel:function(co){return _.n(_.P2,{data:co.data,
className:"ytChipsShelfViewModelRightArrow",onClick:m})}}))}})))}))},"Gc");
_.OEN=_.S("enable_chips_shelf_view_model_fully_reactive")?bEA:_.B1(LPo,{callbacks:{callback:!0}});bEA.idomCompat={callbacks:{callback:!0}};_.SX(_.OEN,"chips-shelf-view-model",{props:{data:_.M6,callback:_.xo,enableSingleChipSelection:_.M6,disableChipsScrollAnimation:_.M6}});var cDB=_.rf(function(u){u=_.$U(u,{disabled:!1});var K=u.active,l=u.disabled;u={};u=_.JB("ytSwitchShapeTrack",(u.ytSwitchShapeTrackActive=function(){return K()},u.ytSwitchShapeTrackDisabled=function(){return l()},u));
var D={};D=_.JB("ytSwitchShapeKnob",(D.ytSwitchShapeKnobActive=function(){return K()},D));
return _.n("switch-shape",{class:"ytSwitchShapeHost"},_.n("div",{class:u}),_.n("div",{class:D}))},"Hc");var aK2=_.rf(function(u){var K=_.$U(u,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),l=K.data;u=K.className;var D=K.handleOnTapEventInParent,d=K.parentActive;K=_.y(_.wY(function(){var t;return(t=d())!=null?t:l().switchedOnByDefault||!1}));
var C=K.next().value,W=K.next().value,M=function(){return l().isDisabled},q=_.o9("button");
K=_.p4(function(t){return t.key==="Enter"?(t.preventDefault(),q.value.click(),!1):!0});
var v=_.p4(function(t){if(l().handleOnTapEventInParent||D())return!0;if(M())return!1;Khy(l(),C(),t);W(!C());return!1}),G={};
G=_.JB("ytSwitchButtonViewModelButton",(G.ytSwitchButtonViewModelTappable=function(){return!M()},G));
return _.n("switch-button-view-model",{class:_.JB("ytSwitchButtonViewModelHost",u)},_.n("button",{el:q,class:G,"on:click":v,"on:keydown":K,"aria-label":function(){return C()?l().a11yLabelSwitchedOn:l().a11yLabelSwitchedOff},
"aria-checked":C,"aria-disabled":M,role:"switch"},_.n(cDB,{active:C,disabled:M})))},"Ic");var elm=_.rf(function(u){var K=_.$U(u,{checked:!1});u=K.name;var l=K.onChange,D=K.onClick,d=K.checked,C=K.labelRenderable,W=K.hasLeadingLabel,M=K.labelClass,q=K.isCompact,v=K.selectElementClass;K=K.disableHorizontalPadding;var G="checkbox"+_.h5(_.Z5),t=_.p4(function(a){D==null||D(a);return!1}),x=_.p4(function(a){l==null||l(a);
return!1}),O={};
return _.n("checkbox-shape",null,_.n("label",{class:_.JB("checkbox-shape-wiz",M,(O["checkbox-shape-wiz--compact"]=q,O["checkbox-shape-wiz--disable-horizontal-padding"]=K,O))},_.n("input",{class:"checkbox-shape-wiz__input",id:G,checked:d,name:u,type:"checkbox","prop:checked":d,"on:change":x,"on:click":t}),_.n(_.r,{cond:function(){return!(W==null?0:W())},
then:function(){return _.n(zlN,{isLeading:!0,selectElementClass:v})}}),_.n(_.r,{cond:function(){return!!C},
then:function(){return _.n("div",{class:"checkbox-shape-wiz__label"},C==null?void 0:C())}}),_.n(_.r,{cond:W,
then:function(){return _.n(zlN,{isLeading:!1,selectElementClass:v})}})))},"Jc");
elm.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var zlN=_.rf(function(u){var K=u.selectElementClass;u={};return _.n("div",{class:_.JB("checkbox-shape-wiz__checkbox",K,(u["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(K==null?0:K())},u)),
"aria-hidden":"true"},_.n(_.VB,{icon:_.S("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.n(_.VB,{icon:_.S("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Kc");_.XU=_.rf(function(u){var K=u.name;var l=u.onChange;var D=u.onClick;var d=u.checked;var C=u.labelRenderable;var W=u.useCheckIcon;var M=u.hasLeadingLabel;var q=u.labelClass;var v=u.isCompact;var G=u.selectElementClass;var t=u.ariaLabel;u=u.className;var x="radio"+_.h5(_.Z5),O=_.o9("input"),a=_.p4(function(A){O.value.checked=!(d==null||!d());l==null||l(A);return!1}),f=_.p4(function(A){D==null||D(A);
return!1}),B=_.y(_.On(!1,void 0,"v5AMrb")),p=B.next().value,V=B.next().value;
B=_.p4(function(){var A;((A=_.GB().resolve(_.vv(_.zF)))==null?0:A.isKeyBoardInUse())&&V(!0)});
var m=_.p4(function(){V(!1)}),Z={};
return _.n("radio-shape",{class:_.JB("radio-shape-wiz",u)},_.n("input",{el:O,class:"radio-shape-wiz__input",id:x,"prop:checked":d,name:K,type:"radio","on:change":a,"on:click":f,"aria-label":t,"on:focusin":B,"on:focusout":m}),_.n("label",{class:_.JB("radio-shape-wiz__label-container",q,(Z["radio-shape-wiz--compact"]=v,Z["radio-shape-wiz__label-container--keyboard-focused"]=p,Z)),for:x},_.n(_.r,{cond:function(){return!(M==null?0:M())},
then:function(){return _.n(RlR,{checked:d,useCheckIcon:W,isLeading:!0,selectElementClass:G})}}),_.n(_.r,{cond:function(){return!!C},
then:function(){return _.n("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(t==null?0:t())?"true":"false"}},C==null?void 0:C())}}),_.n(_.r,{cond:M,
then:function(){return _.n(RlR,{checked:d,useCheckIcon:W,isLeading:!1,selectElementClass:G})}})))},"Lc");
_.XU.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var RlR=_.rf(function(u){var K=u.useCheckIcon;var l=u.selectElementClass;u=function(){return(K==null?0:K())?"CHECK":_.S("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var D={};return _.n("div",{class:_.JB("radio-shape-wiz__radio",l,(D["radio-shape-wiz__radio--check-icon"]=K,D["radio-shape-wiz__radio--radio-default-style"]=function(){return!(l==null?0:l())},D)),
"aria-hidden":"true"},_.n(_.VB,{icon:u}),_.n(_.VB,{icon:u,active:function(){return!(K==null?0:K())}}))},"Mc");_.m$=_.rf(function(u){function K(){var uk;((uk=_.GB().resolve(_.vv(_.zF)))==null?0:uk.isKeyBoardInUse())&&Bo(!0)}
function l(){Bo(!1)}
var D=u.data;var d=u.isMenuItem;var C=u.isCompact;var W=u.onTap;var M=u.trailingAccessory;var q=u.hideSelectionTextChevron;var v=u.disabled;var G=u.inPopup;var t=u.disableHorizontalPadding;var x=u.isOverlay;var O=u.isToggled;var a=u.ariaLabel;var f=u.ariaPressed;var B=_.S("apply_button_role_to_list_item"),p=_.Da(function(uk){a:{var ca=D();if((ca==null?0:ca.entitySelectorType)&&(ca==null?0:ca.entityKey))switch(ca.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":uk=
_.ENL(uk,ca.entityKey);uk=uk==null?void 0:uk.value;ca=!1;uk==="CAPTIONS_UNAVAILABLE"&&(ca=!0,uk="");uk=Object.assign({},!!uk&&{selectionText:{content:uk}},!!uk&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:ca});break a;default:uk={}}else uk={}}return uk}),V=function(){return _.S("enable_web_shorts_captions_language_command")?Object.assign({},D(),p()):D()},m=function(){return!(V().isSelected===void 0||!V().selectionStyle||V().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
Z=function(){return(_.lC(V().rendererContext)||W)&&!m()},A=function(){return _.lC(V().rendererContext)||m()};
u={};x=_.JB("yt-list-item-view-model-wiz",(u["yt-list-item-view-model-wiz--is-overlay"]=x,u["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!B&&gq()},u));
u={};var h=_.JB("yt-list-item-view-model-wiz__label",(u["yt-list-item-view-model-wiz__container"]=function(){return!m()},u["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!V().isDisabled||!(v==null||!v())},u["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!V().subtitle},u["yt-list-item-view-model-wiz__container--compact"]=C,u["yt-list-item-view-model-wiz__container--tappable"]=Z,u["yt-list-item-view-model-wiz__container--in-popup"]=G,u["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return B&&gq()},u["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(t==null?void 0:t())&&!m()},u));
u={};var C9=_.JB("yt-list-item-view-model-wiz__container",(u["yt-list-item-view-model-wiz__container--tappable"]=A,u["yt-list-item-view-model-wiz__container--compact"]=C,u["yt-list-item-view-model-wiz__container--in-popup"]=G,u["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(t==null?void 0:t())&&m()},u)),Wo=function(){return V().leadingImage||V().leadingAccessory},$y=_.JB("yt-list-item-view-model-wiz__image-container",function(){return Wo()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"}),co=_.rf(function(){return _.n(_.r,{cond:function(){return B},
then:function(){return _.n("div",{class:h,el:_.v1(N1h(function(){return B&&Z()},{focusin:K,
focusout:l})),role:function(){return A()||Z()?"button":void 0},
"aria-label":a,"aria-pressed":f,tabindex:function(){return W||Z()?0:void 0},
"on:keydown":tH,"on:click":UZ},_.n(UQS,{data:V,hideSelectionTextChevron:q,trailingAccessory:M,isToggled:O}))},
else:function(){return _.n("div",{class:h},_.n(UQS,{data:V,hideSelectionTextChevron:q,trailingAccessory:M,isToggled:O}))}})},"Nc");
co.idomCompat=!0;var UZ=_.p4(function(uk){return void(W==null?void 0:W(uk))}),tH=_.U8o();
u=_.y(_.On(!1,void 0,"cn4fzb"));G=u.next().value;u=u.next().value;var gq=G,Bo=u;u=_.p4(function(){return!0});
G=B?u:tH;u=B?u:UZ;return _.n("yt-list-item-view-model",{el:_.v1(_.DS(function(){return V().rendererContext}),N1h(function(){return!B&&(Z==null?void 0:Z())},{focusin:K,
focusout:l})),class:x,role:function(){return(d==null?0:d())?"menuitem":"listitem"},
tabindex:function(){var uk=Z();uk=B?void 0:W||uk?0:void 0;return uk},
"on:keydown":G,"on:click":u},_.n(_.r,{cond:m,then:function(){return _.n(_.VI,null,_.n(_.ic,{when:function(){return V().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.n(elm,{labelRenderable:function(){return _.n(co,null)},
isCompact:C,checked:function(){return V().isSelected},
hasLeadingLabel:function(){return!!Wo()},
labelClass:C9,selectElementClass:$y,disableHorizontalPadding:t})}),_.n(_.ic,{when:function(){return V().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.n(_.XU,{labelRenderable:function(){return _.n(co,null)},
isCompact:C,checked:function(){return V().isSelected},
hasLeadingLabel:function(){return!!Wo()},
labelClass:C9,selectElementClass:$y})}),_.n(_.ic,{when:function(){return V().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.n(_.XU,{labelRenderable:function(){return _.n(co,null)},
isCompact:C,checked:function(){return V().isSelected},
hasLeadingLabel:function(){return!!Wo()},
labelClass:C9,selectElementClass:$y,useCheckIcon:!0})}),_.n(_.Fp,null,function(){return _.n(co,null)}))},
else:function(){return _.n(co,null)}}))},"Oc");
_.m$.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var UQS=_.rf(function(u){var K=u.data;var l=u.hideSelectionTextChevron;var D=u.trailingAccessory;var d=u.isToggled;return _.n(_.G1,null,_.n(fKS,{data:K,isLeading:!0,hideSelectionTextChevron:function(){return!(l==null||!l())},
isToggled:d}),_.n(Qsa,{data:K}),_.n(_.r,{cond:function(){return!!D},
then:function(){return _.n("div",{class:"yt-list-item-view-model-wiz__trailing"},D==null?void 0:D())},
else:function(){return _.n(fKS,{data:K,isLeading:!1,hideSelectionTextChevron:function(){return!(l==null||!l())},
isToggled:d})}}))},"Pc"),fKS=_.rf(function(u){var K=u.data;
var l=u.isLeading;var D=u.hideSelectionTextChevron;var d=u.isToggled;var C=_.JB("yt-list-item-view-model-wiz__button-container");u={};var W=_.JB("yt-list-item-view-model-wiz__image-container",(u["yt-list-item-view-model-wiz__leading"]=l,u["yt-list-item-view-model-wiz__trailing"]=function(){return!l()},u)),M=function(){return l()?K().leadingImage:K().trailingImage},q=_.JB("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
u={};var v=_.JB("yt-list-item-view-model-wiz__accessory",(u["yt-list-item-view-model-wiz__leading"]=l,u["yt-list-item-view-model-wiz__trailing"]=function(){return!l()},u)),G=function(){a:switch(K().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var t="expand_more";
break a;default:t="chevron_right"}return t};
return _.n(_.r,{cond:function(){var t=K(),x=l();return!!(x&&(t.leadingImage||t.leadingAccessory)||!x&&(t.trailingImage||t.trailingButton||t.trailingButtons||t.selectionText))},
then:function(){return _.n(_.G1,null,_.n(_.r,{cond:M,then:function(t){return _.n("div",{class:W,"aria-hidden":"true"},_.n(_.n4,{data:t,alt:"",preserveWidth:!0,preserveHeight:!0,className:q,isToggled:d}))}}),_.n(_.r,{cond:function(){return l()&&K().leadingAccessory},
then:function(){return _.n("div",{class:W},_.n(_.mo,{data:function(){return K().leadingAccessory}},{avatarViewModel:function(t){return _.n(_.Y_,{data:t.data,
avatarButtonCustomClassName:q})},
collectionThumbnailViewModel:m3B}))}}),_.n(_.r,{cond:function(){return!l()&&K().trailingButton},
then:function(){return _.n("div",{class:C},_.n(_.mo,{data:function(){return K().trailingButton}},{buttonViewModel:function(t){return _.n(_.P2,{data:t.data,
className:v})}}))}}),_.n(_.r,{cond:function(){var t;
return!l()&&((t=K().trailingButtons)==null?void 0:t.buttons)},
then:function(){return _.n("div",{class:C},_.n(_.mo,{data:function(){var t;return(t=K().trailingButtons)==null?void 0:t.buttons}},{buttonViewModel:function(t){return _.n(_.P2,{data:t.data,
className:v})},
accountLinkButtonViewModel:function(t){return _.n(Ntw,{data:t.data,className:v})},
switchButtonViewModel:function(t){return _.n(aK2,{data:t.data,className:v})},
subscribeButtonViewModel:function(t){return _.n(_.YR,{data:t.data,isOverlay:!1,animateWidth:!1,className:v})},
toggleButtonViewModel:function(t){return _.n(_.YK,{data:t.data,className:v})}}))}}),_.n(_.r,{cond:function(){return!l()&&!!K().selectionText},
then:function(){return _.n(_.G1,null,_.n(_.qC,{text:function(){return K().selectionText},
className:_.JB("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.n(_.r,{cond:function(){return!D()},
then:function(){return _.n(_.VB,{icon:G,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Qc"),Qsa=_.rf(function(u){var K=u.data;
return _.n(_.r,{cond:function(){return K().title||K().subtitle},
then:function(){return _.n("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.n("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.n(_.r,{cond:function(){return K().title},
then:function(l){return _.n(_.qC,{text:l,className:"yt-list-item-view-model-wiz__title"})}})),_.n(_.r,{cond:function(){return K().subtitle},
then:function(l){return _.n(_.qC,{text:l,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Rc");_.PUR=_.rf(function(u){var K=u.data;var l=u.onTap;var D=u.onSwitch;var d=u.overrideDisabled;u=u.disableHorizontalPadding;var C=_.y(_.wY(function(){var t;return((t=DOw(G()))==null?void 0:t.switchedOnByDefault)||!1})),W=C.next().value,M=C.next().value;
C=_.y(_.On(!1,void 0,"ZHBkbb"));var q=C.next().value,v=C.next().value,G=function(){var t;if(!(t=K().switchButton)){var x=K();t=d==null?void 0:d();x={switchOnCommand:x.switchOnCommand,switchOffCommand:x.switchOffCommand,switchedOnByDefault:x.switchedOnByDefault,isDisabled:x.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:x.a11yLabelSwitchedOn,a11yLabelSwitchedOff:x.a11yLabelSwitchedOff};t!==void 0&&(x.isDisabled=t);t={switchButtonViewModel:x}}return t};
return _.n("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.n(_.m$,{data:function(){return{title:K().title,subtitle:K().attributedSubtitle,leadingImage:K().leadingImage,leadingAccessory:K().leadingAccessory,isDisabled:K().isDisabled}},
onTap:function(t){var x=DOw(G());!x||x.isDisabled||K().ignoreTapUntilCommandCompletes&&q()||(l==null||l(t),Khy(x,W(),t,K().ignoreTapUntilCommandCompletes,v),M(!W()),D==null||D(W()))},
trailingAccessory:function(){return _.n(_.mo,{data:G},{switchButtonViewModel:function(t){return _.n(aK2,{data:t.data,parentActive:W,handleOnTapEventInParent:!!l})}})},
disableHorizontalPadding:u}))},"Sc");var JD2=_.rf(function(u){var K=_.y(_.wY(function(){var d,C;return!!((d=u.data())==null?0:(C=d.initialState)==null?0:C.isToggled)})),l=K.next().value,D=K.next().value;
K=_.p4(function(){D(!l())});
return _.n("toggleable-list-item-view-model",{el:_.v1(_.DS(function(){return u.data().rendererContext})),
class:_.JB("toggleableListItemViewModelHost",u.className),"on:click":K},_.n(_.r,{cond:function(){if(l()){var d=u.data().toggledListItem;d=_.b(d,_.Ff)}else d=u.data().defaultListItem,d=_.b(d,_.Ff);return d},
then:function(d){return _.n(_.m$,{data:d,isToggled:l,ariaLabel:function(){var C=l()?u.data().toggledListItem:u.data().defaultListItem,W;C=(W=_.b(C,_.Ff))==null?void 0:W.rendererContext;var M;return(M=_.b(C,_.T8))==null?void 0:M.label},
ariaPressed:function(){return l()}})}}))},"Tc");var jsa=_.QQ("DOWNLOAD",{},"Download"),B$k=_.QQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),pnk=_.QQ("RETRY",{},"Retry"),iEC=_.QQ("PAUSE_DOWNLOADING",{},"Pause downloading"),T$w=_.QQ("RESUME_DOWNLOAD",{},"Resume download"),dOn={text:jsa,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},ke={text:B$k,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},yo9={text:pnk,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
CML={text:iEC,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},IWH={text:T$w,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var wn0=_.rf(function(u){var K=function(){var M=u.data();M=_.Kz(M.rendererContext);var q;return(q=_.b(M,_.JK))==null?void 0:q.videoId},l=_.Da(function(M){var q=K(),v=Who(u.data());
return q?_.EV(M,q):v?_.Lm(M,v):"TRANSFER_STATE_UNKNOWN"}),D=_.ie(_.Vv9,K),d=_.Da(function(M){return _.jDy(M,K(),Who(u.data()))}),C=function(){return oa9(l(),D(),_.Kz(u.data().rendererContext),!!Who(u.data()))},W=function(){return d()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.n("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:W},_.n(_.r,{cond:function(){return!W()},
then:function(){return _.n(_.r,{cond:C,then:function(M){return _.n(_.p0,{each:M},function(q){return _.n(_.m$,{data:q,isCompact:u.isCompact,isMenuItem:u.isMenuItem,inPopup:u.inPopup,disableHorizontalPadding:u.disableHorizontalPadding})})}})}}))},"Uc");
wn0.idomCompat=!0;_.F6H=_.rf(function(u){var K=u.data;var l=u.isCompact;var D=u.hideSelectionTextChevron;var d=u.inPopup;var C=u.isOverlay;var W=u.disableHorizontalPadding;var M=function(){return HFo(K())&&(d==null?void 0:d())};
u={};return _.n("yt-list-view-model",{class:_.JB("yt-list-view-model-wiz",(u["yt-list-view-model-wiz--kaios-spat-nav"]=Hk&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",u)),role:function(){return M()?"menu":"list"},
style:_.Fb({"max-height":function(){var q,v=(q=K())==null?void 0:q.visibleElementCount;if(v)return qOw(K())?(v+.5)*48+"px":(v+.5)*40+"px"}})},_.n(_.mo,{data:function(){return K().listItems}},{listItemViewModel:function(q){return _.n(_.m$,{data:q.data,
isMenuItem:M,isCompact:l,hideSelectionTextChevron:D,inPopup:d,isOverlay:C,disableHorizontalPadding:W})},
toggleableListItemViewModel:function(q){return _.n(JD2,{data:q.data})},
downloadListItemViewModel:function(q){return _.n(wn0,{data:q.data,isMenuItem:M,isCompact:l,inPopup:d,disableHorizontalPadding:W})},
switchListItemViewModel:function(q){return _.n(_.PUR,{data:q.data,disableHorizontalPadding:W})}}))},"Vc");
_.F6H.idomCompat=!0;var VnS=_.rf(function(u){var K=u.data;var l=u.isOverlay;u={};return _.n("yt-course-perks-view-model",{class:_.JB("ytwCoursePerksViewModelHost",(u.ytwCoursePerksViewModelHostOverlay=l,u))},_.n("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.n(_.qC,{text:function(){return K().title}})),_.n("div",null,_.n(_.r,{cond:function(){return K().perks},
then:function(D){return _.n(_.F6H,{data:function(){return{listItems:D()}},
isCompact:!0,isOverlay:l})}})))},"Wc");_.SX(VnS,"yt-course-perks-view-model",{props:{data:_.xo,isOverlay:_.xo}});_.SX(_.rf(function(u){var K=u.data;return _.n("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.n("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.n(_.qC,{text:function(){return K().title}})),_.n("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.n(_.qC,{text:function(){return K().progressSummary}})),_.n("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.n("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Fb({width:function(){return K().progressPercentage*100+"%"}})})))},"Xc"),"yt-course-progress-view-model",{props:{data:_.M6}});var gha=_.rf(function(u){var K={};return _.n("yt-progress-view-model",{class:_.JB("ytwProgressViewModelHost",(K.ytwProgressViewModelHostOverlay=_.qE(u.isOverlay,!1),K))},_.n(_.r,{cond:function(){return u.data().progressSummary},
then:function(l){return _.n("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.n(_.qC,{text:l}))}}),_.n("div",{class:"ytwProgressViewModelHostProgressContainer"},_.n(_.r,{cond:function(){return u.data().leadingLabel},
then:function(l){return _.n("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.n(_.qC,{text:l}))}}),_.n("div",{class:"ytwProgressViewModelHostProgressBar"},_.n("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(u.data().progressPercentage||0)*100+"%"}}))))},"Yc");var hc=_.rf(function(u){var K=u.starNumber;var l=u.data;var D=function(){var d;return((d=l())==null?void 0:d.rating)||0};
return _.n(_.r,{cond:function(){return K()},
then:function(d){return _.n(_.VI,null,_.n(_.ic,{when:function(){return D()>=d()-.25}},function(){return _.n("div",{class:"ytStarRatingViewModelHostStar"},_.n(_.VB,{icon:"STAR_FILLED"}))}),_.n(_.ic,{when:function(){return D()>=d()-.75}},function(){return _.n("div",{class:"ytStarRatingViewModelHostStar"},_.n(_.VB,{icon:"STAR_HALF"}))}),_.n(_.Fp,null,function(){return _.n("div",{class:"ytStarRatingViewModelHostStar"},_.n(_.VB,{icon:"STAR_BORDER"}))}))}})},"Zc"),N$B=_.rf(function(u){u=u.data;
return _.n("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.n(hc,{starNumber:1,data:u}),_.n(hc,{starNumber:2,data:u}),_.n(hc,{starNumber:3,data:u}),_.n(hc,{starNumber:4,data:u}),_.n(hc,{starNumber:5,data:u}))},"$c");_.SX(_.rf(function(u){var K=_.$U(u,{}).data;return _.n("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.n("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.n(_.qC,{text:function(){var l;return(l=K())==null?void 0:l.title}})),_.n("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.n(_.r,{cond:function(){return K().starProgressViewModels},
then:function(l){return _.n("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.n(_.mo,{data:l},{progressViewModel:gha}))}}),_.n("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.n("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.n(_.qC,{text:function(){var l;
return(l=K())==null?void 0:l.averageRatingLabel}})),_.n(_.r,{cond:function(){return K().zeroStateText},
then:function(l){return _.n("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.n(_.qC,{text:l}))}}),_.n(_.r,{cond:function(){return K().starRatingViewModel},
then:function(l){return _.n("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.n(_.mo,{data:l},{starRatingViewModel:N$B}))}}),_.n("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.n(_.qC,{text:function(){var l;
return(l=K())==null?void 0:l.totalRatingsCountLabel}})))))},"ad"),"yt-course-ratings-view-model",{props:{data:_.xo}});var k5a;k5a={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"}};_.ZEA=_.rf(function(u){var K=_.o9("yt-learning-journey-loader-view-model"),l=_.Qo();_.N_(function(){requestAnimationFrame(function(){var d;(d=l.lottieEl)==null||d.addEventListener("DOMLoaded",function(){var C;(C=u.onLottieLoaded)==null||C.call(u)})});
var D=u.data().browseEndpoint;D&&_.IT(D)});
return _.n("yt-learning-journey-loader-view-model",{class:_.JB("learningJourneyLoaderViewModelHost",u.className),"data-target-id":function(){var D;return((D=u.data)==null?void 0:D.call(u).targetId)||""},
el:K},_.n(_.O$,{className:_.JB("learningJourneyLoaderViewModelLoader",u.className),animationName:function(){return k5a.animationConfig.name},
data:k5a,animationRef:l}))},"bd");_.SX(_.ZEA,"yt-learning-journey-loader-view-model",{props:{data:_.M6,className:_.xo,onLottieLoaded:_.xo}});var nan=new Set,$Oo=null;_.YJw=_.rf(function(u){var K=null,l=null,D=null,d=function(){return u.data()},C=function(){var p=d();
var V=_.GB().resolve(_.vv(_.H1));p=V!=null&&V()?p.darkThemeColorPalette:p.lightThemeColorPalette;return{primaryTextColor:Ye(p,0),secondaryTextColor:Ye(p,1),optionColor:Ye(p,2),backgroundColor:Ye(p,3),videoBackgroundColor:Ye(p,4)}},W=function(){return!!C().optionColor},M=_.y(_.On(-1,void 0,"KCCUDb")),q=M.next().value,v=M.next().value,G=function(p){return q()===p},t=function(p){return d().correctAnswerIndex===p},x=function(){return q()!==-1},O=function(){return q()===d().correctAnswerIndex},a=_.p4(function(){v(-1);
return!1}),f=function(){var p=x(),V=O();
return p?V?264685:264684:264683},B=function(p){return O()&&t(p)};
return _.n("learning-journey-quiz-view-model",{class:_.JB("learningJourneyQuizViewModelHost",u.className),style:_.Fb({background:function(){return C().backgroundColor}})},_.n(_.r,{cond:function(){return!!d().video},
then:function(){return _.n("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Fb({background:function(){return C().videoBackgroundColor}})},_.n(_.mo,{data:function(){return d().video}},{lockupViewModel:function(p){return _.n(_.zx,{data:p.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.n("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.n("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.n("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.n(_.r,{cond:function(){return!!d().aiGeneratedQuizLabel},
then:function(){return _.n("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.n(_.qC,{text:function(){return d().aiGeneratedQuizLabel}}))}}),_.n("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.Fb({"align-items":function(){return d().overflowMenu?"start":"center"}})},_.n("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.Fb({"min-height":function(){return d().overflowMenu?"48px":"26px"}})},_.n("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.v1(function(p){_.ZS(f(),p,K,function(V){K=V})}),
style:_.Fb({color:function(){return C().primaryTextColor}}),
"client-ve-type":f},_.n(_.qC,{text:function(){var p=d(),V=x(),m=O();return V?m?p.successTitle:p.failureTitle:p.questionHeaderText}}))),_.n("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.n(_.r,{cond:x,
then:function(){return _.n("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.v1(function(p){_.ZS(264687,p,l,function(V){l=V})}),
"on:click":a,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.n("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Fb({fill:function(){return C().primaryTextColor}})},_.n("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"})))}}),
_.n(_.mo,{data:function(){return d().overflowMenu}},{buttonViewModel:function(p){return _.n(_.P2,{data:p.data})}}))),_.n("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.v1(function(p){_.ZS(264688,p,D,function(V){D=V})}),
style:_.Fb({color:function(){return C().secondaryTextColor}}),
"client-ve-type":264688},_.n(_.qC,{text:function(){var p=d();return x()?p.explanationText:p.questionSubheaderText}}))),_.n("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.n(_.p0,{each:function(){return d().optionsData||[]}},function(p,V){var m={};
return _.n("div",{class:_.JB("learningJourneyQuizViewModelHostQuizOptions",(m.learningJourneyQuizViewModelHostQuizHover=function(){return!x()},m.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return B(V())},m.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!O()&&G(V())},m.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return x()&&!G(V())},m.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=W,m)),
"on:click":_.p4(function(){if(x())return!1;v(V());return!1}),
style:_.Fb({background:function(){var Z=V();return x()&&G(Z)?"":W()?C().optionColor:"transparent"}}),
role:"button","aria-disabled":x,"tab-index":"0","client-ve-type":264686},_.n(_.r,{cond:x,then:function(){var Z={};return _.n("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var A=V();return t(A)?"0 0 24 24":"0 -960 960 960"},
class:_.JB("learningJourneyQuizViewModelHostQuizOptionIcon",(Z.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return B(V())},Z)),
style:_.Fb({fill:function(){return C().primaryTextColor}})},_.n("path",{d:function(){var A=V();
return t(A)?"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"}}))}}),_.n(_.qC,{text:p.optionText}))})))))},"cd");
_.YJw.idomCompat=!0;_.SX(_.YJw,"learning-journey-quiz-view-model",{props:{data:_.M6,className:_.M6}});var ADC=_.rf(function(u){var K=u.data;return _.n("yt-suspense-view-model",{class:_.JB("ytSuspenseViewModelHost")},_.n(_.mo,{data:function(){var l;return(l=K().config)==null?void 0:l.contents}},{lockupViewModel:_.zx}))},"dd");var XnC=_.rf(function(u){var K=_.$U(u,{palette:void 0,isLastItem:!1}),l=K.palette,D=K.isLastItem,d=function(){return u.data().isHighlighted},C=function(){var q;
return vay((q=l())==null?void 0:q.iconDisabledColor)},W=function(){var q;
return vay((q=l())==null?void 0:q.primaryTitleColor)},M=function(){var q;
return vay((q=l())==null?void 0:q.secondaryTitleColor)};
K={};return _.n("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.v1(_.DS(function(){return u.data().rendererContext}))},_.n(_.mo,{data:function(){return u.data().thumbnail}},{thumbnailViewModel:_.rL}),_.n("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.n("div",{class:_.JB("ytMacroMarkerListItemViewModelTimeDescription",(K.ytMacroMarkerListItemViewModelHighlighted=d,K)),
style:_.Fb({"background-color":function(){return d()?W():C()},
color:function(){return d()?"":M()}})},_.n(_.qC,{text:function(){return u.data().timestamp}})),_.n("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Fb({"background-color":function(){return D()?"transparent":C()}})}),_.n("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(d()?W():M())}},_.n(_.qC,{text:function(){return u.data().title}}))))},"ed");_.El=_.rf(function(u){function K(yn){V("transform:translateX("+(_.E3("HTML_DIR")==="rtl"?"":"-")+yn+"px)")}
function l(yn){return Math.min(Math.max(yn,0),p()-C9())}
function D(){var yn=A()+UZ();return d()?(Math.round(C9()/yn)||1)*yn:0}
var d=function(){return u.data().items||[]},C=function(){return u.data().previousButton},W=function(){return u.data().nextButton},M=function(){var yn,dN;
return(dN=(yn=u.disableArrows)==null?void 0:yn.call(u))!=null?dN:!1},q=function(){var yn;
return!((yn=u.forceNarrowLayout)==null||!yn.call(u))},v=_.RZ(function(){var yn;
return!((yn=u.centerAlignItems)==null||!yn.call(u))&&p()<=C9()},void 0,"DL81uf"),G=_.o9("horizontal-shelf-view-model"),t=_.o9("div"),x=_.y(_.On(0,void 0,"xZFppf")),O=x.next().value,a=x.next().value;
x=_.y(_.On(0,void 0,"pH9gvd"));var f=x.next().value,B=x.next().value,p=f;f=_.y(_.On("",void 0,"oYcWy"));x=f.next().value;var V=f.next().value;f=_.y(_.On(0,void 0,"lI6NJb"));var m=f.next().value,Z=f.next().value,A=m;f=_.y(_.On(0,void 0,"yPqhW"));m=f.next().value;var h=f.next().value,C9=m;f=_.y(_.On(!1,void 0,"u4CvOe"));var Wo=f.next().value,$y=f.next().value;f=_.y(_.On(0,void 0,"oQOBbe"));m=f.next().value;var co=f.next().value,UZ=m;f=_.y(_.On(0,void 0,"fCqgxd"));var tH=f.next().value,gq=f.next().value;
f=_.y(_.On("50%",void 0,"kjP5ke"));var Bo=f.next().value,uk=f.next().value,ca=function(){var yn,dN=(yn=u.data())==null?void 0:yn.responsiveContainerConfiguration,OB,vE;return dN?fDZ(dN==null?void 0:dN.responsiveSize):(vE=(OB=u.sizing)==null?void 0:OB.call(u))!=null?vE:"STANDARD"};
f=_.RZ(function(){return!M()&&O()>0},void 0,"oVCO3d");
m=_.RZ(function(){return!M()&&O()<p()-C9()},void 0,"MQ6Gb");
var Ha=function(){a(l(O()-D()));K(O())},hH=function(){a(l(O()+D()));
K(O())},tR=function(){G.value!==null&&Pa()},ns;
_.ZY(function(){Pa();window.ResizeObserver?(ns=new ResizeObserver(_.wR(tR,0)),ns.observe(G.value)):window.addEventListener("resize",tR)});
_.No(function(){if(window.ResizeObserver){var yn;(yn=ns)==null||yn.disconnect()}else window.removeEventListener("resize",tR)});
var Pa=function(){var yn=G.value.clientWidth,dN=u.includeMargin!==void 0?u.includeMargin():!1,OB;var vE=u.hasPeek!==void 0?u.hasPeek():!((OB=u.data())==null||!OB.hasPeek);yn=_.o5({containerWidth:yn,hasPeek:vE,sizing:ca(),marginSettings:dN?q()?4:1:0});co(yn.gutter);gq(yn.margin);Z(yn.itemWidth);$y(yn.maxContainerWidth<528||q());h(yn.maxContainerWidth);d()&&B((yn.itemWidth+yn.gutter)*d().length-yn.gutter);if(d()){var Gw;if(((Gw=u.thumbnailAspectRatio)==null?void 0:Gw.call(u))!==void 0){var Vm;uk(A()/
UcH((Vm=u.thumbnailAspectRatio)==null?void 0:Vm.call(u))/2+"px")}else uk("50%")}},QV={},Ls={};
return _.n("horizontal-shelf-view-model",{class:_.JB("ytwHorizontalShelfViewModelHost",u.className),el:G},_.n(_.r,{cond:function(){var yn;return u.data().header&&!((yn=u.horizontalShelfExperiments)==null?0:yn.call(u).hideHeader)},
then:function(){return _.n("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Fb({width:function(){return C9()+"px"},
padding:function(){return"0 "+tH()+"px"}})},_.n(_.mo,{data:function(){return u.data().header}},{sectionHeaderViewModel:function(yn){return _.n(_.za,{data:yn.data,
disableHorizontalPadding:!0,forceSmallLayout:Wo,useResponsiveLayout:!0})}}))}}),_.n("div",{class:_.JB("ytwHorizontalShelfViewModelOuterContainer",(QV.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return v()},QV)),
style:_.Fb({"margin-top":function(){var yn,dN=u.data().header&&!((yn=u.horizontalShelfExperiments)==null?0:yn.call(u).hideHeader),OB;return(((OB=u.ensureMarginTop)==null?0:OB.call(u))&&!dN?12:0)+"px"}})},_.n("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Fb({width:function(){return C9()+"px"},
padding:function(){return"0 "+tH()+"px"},
overflow:function(){return M()?"auto":"hidden"}})},_.n("div",{class:_.JB("ytwHorizontalShelfViewModelItems",(Ls.ytwHorizontalShelfViewModelCenterAlignItems=function(){return v()},Ls)),
el:t,style:x},_.n(_.mo,{data:d},{macroMarkerListItemViewModel:function(yn,dN){return _.n("div",{style:_.Fb({width:function(){return A()+"px"},
"margin-right":function(){return(dN()===d().length-1?0:UZ())+"px"}})},_.n(XnC,{data:yn.data,
palette:_.qE(u.palette),isLastItem:function(){return dN()===d().length-1}}))},
lockupViewModel:function(yn,dN){var OB=yn.data;return _.n("div",{style:_.Fb({width:function(){return A()+"px"},
"margin-right":function(){return(dN()===d().length-1?0:UZ())+"px"}})},_.n(_.zx,{data:OB,
containerType:4,sizing:ca,protectBackground:u.protectBackground,thumbnailFixedWidth:function(){return GUH(OB())+"px"},
thumbnailTargetWidth:function(){return GUH(OB())}}))},
suspenseViewModel:function(yn,dN){return _.n("div",{style:_.Fb({width:function(){return A()+"px"},
"margin-right":function(){return(dN()===d().length-1?0:UZ())+"px"}})},_.n(ADC,{data:yn.data}))}}))),_.n(_.r,{cond:f,
then:function(){return _.n("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.Fb({top:function(){return Bo()}})},_.n(_.mo,{data:C},{buttonViewModel:function(yn){return _.n(_.P2,{data:yn.data,
onClick:Ha})}}))}}),_.n(_.r,{cond:m,
then:function(){return _.n("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.Fb({top:function(){return Bo()}})},_.n(_.mo,{data:W},{buttonViewModel:function(yn){return _.n(_.P2,{data:yn.data,
onClick:hH})}}))}})))},"fd");
_.El.idomCompat=!0;var mQa=_.rf(function(u){var K=function(){return u.data().targetId||""},l=function(){var f;
return((f=u.data())==null?void 0:f.expansionEntityKey)||""},D=_.ie(_.ENL,l),d=!0,C=function(){var f;
return((f=D())==null?void 0:f.value)===K()},W=function(f){_.ME(_.TT("stringEntity",l(),{key:l(),
value:f?K():""}))};
_.N_(function(){d=!1;u.data().isExpanded&&W(!0)});
var M=function(){if(C()){var f=!0;u.onCollapse!==void 0&&(f=u.onCollapse());f&&W(!1)}else W(!0)},q=_.p4(M),v=function(){var f;
return(((f=u.accordionStyle)==null?void 0:f.call(u))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},G=_.o9("div"),t=function(){var f,B;
return(B=(f=_.b(u.data().rendererContext,_.T8))==null?void 0:f.label)!=null?B:""},x=function(){var f,B;
return{disabled:(f=u.hideIfNotExpanded)==null?void 0:f.call(u),ariaHidden:(B=u.hideIfNotExpanded)==null?void 0:B.call(u)}},O={},a={};
return _.n("yt-accordion-item-view-model",{class:_.JB("ytAccordionItemViewModelHost",u.className,(O.ytAccordionItemViewModelExpanded=function(){return C()},O.ytAccordionItemViewModelHidden=function(){var f;
return(f=u.hideIfNotExpanded)==null?void 0:f.call(u)},O.ytAccordionItemViewModelMini=v,O)),
"data-target-id":K},_.n("div",{class:"ytAccordionItemViewModelContainer"},_.n("div",{class:"ytAccordionItemViewModelLeftSection","on:click":q,title:t,"aria-hidden":function(){var f;return(f=u.hideIfNotExpanded)==null?void 0:f.call(u)}},_.n(_.qC,{text:function(){return u.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:t})),_.n("div",{class:"ytAccordionItemViewModelRightSection"},_.n(_.mo,{data:function(){return C()?u.data().expandButton:u.data().collapseButton}},{buttonViewModel:function(f){return _.n(_.P2,{data:f.data,
className:"ytAccordionItemViewModelToggleButton",onClick:M,buttonOverrides:x})}}))),_.n("div",{class:"ytAccordionItemViewModelContainer"},_.n("div",{class:_.JB("ytAccordionItemViewModelContent",(a.ytAccordionItemViewModelExpandedSubtitle=function(){return C()},a)),
el:G,style:_.Fb({"max-height":function(){return d?"auto":C()?G.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!C()}},_.n(_.r,{cond:function(){return!v()},
then:function(){return _.n(_.qC,{text:function(){return u.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.n(_.mo,{data:function(){return u.data().content}},{horizontalShelfViewModel:function(f){return _.n(_.El,{data:f.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"gd");_.hlR=_.rf(function(u){var K=_.y((0,_.SEB)(u.data)).next().value,l=function(){return u.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},D=function(){return l()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},d=_.y(_.On(!0,void 0,"FVec2e")),C=d.next().value,W=d.next().value,M=function(){return D()&&C()},q=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){W(!C())}}},v=_.p4(function(){K().onTitleTap&&_.IT(K().onTitleTap||{})});
d={};return _.n("yt-accordion-view-model",{class:_.JB("ytAccordionViewModelHost",(d.ytAccordionViewModelMinimized=function(){return M()},d)),
"data-target-id":function(){return u.data().targetId||""}},_.n(_.r,{cond:function(){return D()||!!K().title},
then:function(){return _.n("div",{class:"ytAccordionViewModelHeader"},_.n("div",{class:"ytAccordionViewModelTitleSection"},_.n("div",{class:"ytAccordionViewModelTitleWrapper"},_.n(_.r,{cond:function(){return!!u.data().headerIcon},
then:function(){return _.n(_.VB,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var G;return(G=u.data().headerIcon)==null?void 0:G.iconType}})}}),_.n("div",{class:"ytAccordionViewModelTitle",
"on:click":v},_.n(_.qC,{className:"ytAccordionViewModelTitleText",text:function(){return K().title}})))),_.n("div",{class:"ytAccordionViewModelButtonSection"},_.n(_.r,{cond:D,
then:function(){return _.n($e,{data:q,iconName:function(){return M()?"chevron_down":"chevron_collapse"}})}})))}}),_.n("div",{class:"ytAccordionViewModelContent"},_.n(_.mo,{data:function(){return K().contents}},{accordionItemViewModel:function(G){return _.n(mQa,{data:G.data,
className:"ytAccordionViewModelRow",accordionStyle:l,hideIfNotExpanded:M,onCollapse:function(){return D()?(W(!0),!1):!0}})}})),_.n("div",null,_.n(_.r,{cond:function(){return!D()&&(!!K().disclaimerFooter||!!K().footer)},
then:function(){return _.n("div",{class:"ytAccordionViewModelFooter"},_.n(_.qC,{text:function(){return K().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.n(_.mo,{data:function(){return u.data().footer}},{flexibleActionsViewModel:function(G){return _.n(Xl,{data:G.data,
layout:0})}}))}})))},"hd");_.SX(_.hlR,"yt-accordion-view-model",{props:{data:_.M6}});_.SX(_.rf(function(u){var K=null,l=null,D,d=(D=_.GB().resolve(_.vv(_.H1)))==null?void 0:D(),C=_.y(_.On(!1,void 0,"EVXQGb"));D=C.next().value;var W=C.next().value;C=_.y(_.On(!0,void 0,"W9FIJf"));var M=C.next().value,q=C.next().value,v=_.o9("textarea",function(B){_.ZS(264503,B,K,function(p){K=p})}),G=function(B){W(!0);
B={learningJourneyFormData:{query:B}};_.IT(u.data().searchEndpoint||{},{form:{formData:B}});return!1},t=_.p4(function(B){B.target.closest("button-view-model")&&W(!0)});
C=_.p4(function(){q(v.value.value.length===0)});
var x=_.p4(function(B){if(B.key==="Enter"&&!B.shiftKey&&!M()){var p=B.target;B.preventDefault();G(p.value)}}),O={},a={},f={};
return _.n("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.n("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.n(_.n4,{data:function(){return u.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.n("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.n("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.n("div",{class:_.JB("ytLearningJourneyZeroStateSearchBar",(O.ytLearningJourneyZeroStateSearchBarDark=d,O))},_.n("textarea",{class:_.JB("ytLearningJourneyZeroStateTextInput",(a.ytLearningJourneyZeroStateTextInputDark=d,a)),el:v,"on:keyup":C,"on:keydown":x,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.n("div",{class:_.JB("ytLearningJourneyZeroStateSearchButtonContainer",(f.ytLearningJourneyZeroStateSearchButtonContainerDark=d,f))},_.n(_.P2,{data:function(){return _.b(u.data().searchButton,_.kY)},
className:"search-button",onClick:function(){return G(v.value.value)},
buttonOverrides:function(){return{disabled:M(),style:d?"mono-inverse":"mono",size:"XL"}}}))),_.n(_.r,{cond:function(){return!!u.data().errorBanner},
then:function(){return _.n("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.v1(function(B){_.ZS(264617,B,l,function(p){l=p})})},_.n(_.mo,{data:function(){return u.data().errorBanner}},{alertBannerViewModel:function(B){return _.n(_.SJa,{data:B.data,
"client-ve-type":264617})}}))}})),_.n(_.r,{cond:D,
then:function(){return _.n("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.n(_.mo,{data:function(){return u.data().loader}},{learningJourneyLoaderViewModel:function(B){return _.n(_.ZEA,{data:B.data})}}))},
else:function(){return _.n("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.n(_.r,{cond:function(){return!!u.data().learningJourneyShelf},
then:function(){return _.n("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.n("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return u.data().learningJourneySectionTitle}),_.n(_.mo,{data:function(){return u.data().learningJourneyShelf}},{horizontalShelfViewModel:function(B){return _.n(_.El,{data:B.data,
centerAlignItems:!0})}}))}}),_.n("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.n("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return u.data().suggestedJourneySectionTitle}),_.n("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":t},_.n(_.mo,{data:function(){return u.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(B){return _.n(Xl,{data:B.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"id"),"yt-learning-journey-zero-state",{props:{data:_.M6}});var Ehw=_.rf(function(u){var K=u.data;return _.n("ytvl-live-leaderboard-item-action-content-view-model",{class:_.JB("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.n(_.qC,{text:function(){var l;return(l=K())==null?void 0:l.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.n(_.mo,{data:function(){return K().actionButton}},{buttonViewModel:function(l){return _.n(_.P2,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:l.data})}}))},"jd");var L6w=_.rf(function(u){var K=u.data;return _.n("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.JB("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.n(_.qC,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var l;return(l=K())==null?void 0:l.displayName},
ellipsisTruncate:!0}),_.n(_.mo,{data:function(){return K().badge}},{buttonViewModel:function(l){return _.n(_.P2,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:l.data})}}))},"kd");_.SX(_.rf(function(u){var K=u.data;return _.n("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.n("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.n(_.qC,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var l;return(l=K())==null?void 0:l.rank}})),_.n("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.n(_.mo,{data:function(){return K().avatar}},{avatarViewModel:_.Y_})),_.n("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.n(_.mo,{data:function(){return K().content}},{liveLeaderboardItemChannelContentViewModel:L6w,
liveLeaderboardItemActionContentViewModel:Ehw})),_.n(_.qC,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var l;return(l=K())==null?void 0:l.points}}))},"ld"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.M6}});_.SX(_.rf(function(u){var K=u.data;return _.n("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.n(_.qC,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var l,D;return(l=K())==null?void 0:(D=l.ranking)==null?void 0:D.rank}}),_.n("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.n(_.mo,{data:function(){return K().avatar}},{avatarViewModel:_.Y_})),_.n(_.qC,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var l,D;return(l=K())==null?void 0:(D=l.channelContent)==null?void 0:D.channelName}}),_.n(_.qC,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var l;return(l=K())==null?void 0:l.points}}))},"md"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.M6}});var ukH=_.rf(function(u){u=_.$U(u,{wrapper:!1}).wrapper;return _.n(_.r,{cond:u,then:function(){return _.n("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.n("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.n("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"nd");
ukH.idomCompat=!0;var Kum=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],lom=_.rf(function(u){var K=u.data;var l=_.v1(),D=_.RZ(function(){return K().command},void 0,"o6t5Yb");
_.gp(function(){D()&&_.D$(D(),{form:{element:l.value}})},"qIHWLc");
return _.n("div",{el:l,class:"YtQrCodeRendererHostContainer"},_.n(_.r,{cond:function(){return K().qrCodeImage},
then:function(d){return _.n(_.n4,{data:d,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.n(_.r,{cond:function(){return K().spinner},
then:function(){return _.n(ukH,null)}})}}),_.n(_.r,{cond:function(){return K().label},
then:function(d){return _.n(_.qC,{text:d,className:"YtQrCodeRendererHostLabel"})}}),_.n(_.r,{cond:function(){return K().labels},
then:function(d){return _.n("div",{class:"YtQrCodeRendererHostLabels"},_.n(_.p0,{each:d},function(C){return _.n(_.qC,{text:C})}))}}))},"pd");_.SX(_.rf(function(u){var K=u.data;var l=_.RZ(function(){return K().qrEntityKey},void 0,"joYCxd"),D=_.RZ(function(){return K().deleteEntityOnDismiss},void 0,"x3yAde"),d=_.RZ(function(){return K().command},void 0,"dJe1Re"),C=_.ie(vbH,l);
u=_.RZ(function(){return K().qrCodeImage},void 0,"qM5dZe");
var W=_.RZ(function(){return K().style&&Kum.includes(K().style)},void 0,"CaNEkf"),M=_.r_({visibilityCallback:function(q){q&&d()&&_.D$(d())},
showOption:{calledOnce:!0,state:"visible"}});_.ZY(function(){_.No(function(){D()&&l()&&_.Hb().dispatch(_.TT("qrCodeEntity",l()))})});
return _.n("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.v1(M)},_.n(_.r,{cond:W,then:function(){return _.n(_.r,{cond:C,then:function(q){return _.n(lom,{data:q})}})}}),_.n(_.r,{cond:u,
then:function(q){return _.n(_.n4,{data:q,alt:""})}}))},"od"),"yt-qr-code-renderer",{props:{data:_.M6}});_.DMN=_.rf(function(u){var K=u.data;var l=u.topbarOffset;var D,d=((D=_.GB().resolve(_.vv(_.H1)))==null?void 0:D())||!1;return _.n("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var C=K();var W,M,q=d?(W=C.config)==null?void 0:W.darkThemeBackgroundColor:(M=C.config)==null?void 0:M.lightThemeBackgroundColor;C=q?_.ui(q):void 0;C="background-color: "+C+";";l!==void 0&&(C+="top: -"+l()+"px;");return C},
"aria-hidden":!0},_.n(_.r,{cond:function(){var C,W,M;return!!((C=K().backgroundImageConfig)==null?0:(W=C.image)==null?0:(M=W.sources)==null?0:M.length)},
then:function(){return _.n(_.n4,{data:function(){var C;return(C=K().backgroundImageConfig)==null?void 0:C.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.n("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+tTZ(d,K().gradientColorConfig)+";"}}))},"qd");
_.DMN.idomCompat=!0;var Ly=_.rf(function(u){var K=u.className;var l=u.data;var D=u.isOverlay;var d=u.maxLinesOverride;var C=u.useMediumText;var W=function(){return l().alwaysShowTruncationText},M=function(){return l().truncationText},q=function(){return C!==void 0&&C()?"medium":"small"},v=function(){return D!==void 0&&D()?"overlay":"default"},G=function(){var a,f;
return(f=(a=_.b(l().rendererContext,_.T8))==null?void 0:a.label)!=null?f:""};
u=_.y(_.On(!1,void 0,"xVwzHf"));var t=u.next().value,x=u.next().value;u=_.p4(function(){l().expandOnTap&&x(!t());return!1});
var O={};return _.n("yt-description-preview-view-model",{el:_.v1(_.DS(function(){return l().rendererContext})),
class:_.JB("yt-description-preview-view-model-wiz",K,(O["yt-description-preview-view-model-wiz--clickable"]=function(){var a;return!((a=_.b(l().rendererContext,F2o))==null||!a.onTap)},O["yt-description-preview-view-model-wiz--is-overlay"]=D,O)),
"on:click":u},_.n(_.r,{cond:function(){return l().description},
then:function(a){return _.n(_.r,{cond:t,then:function(){var f={};return _.n("div",{class:_.JB("yt-description-preview-view-model-wiz__description",(f["yt-description-preview-view-model-wiz__description--medium-text"]=C,f))},_.n(_.qC,{text:a}))},
else:function(){return _.n(xks,{text:a,alwaysShowTruncationText:W,truncationText:M,maxLines:function(){var f;return(f=d==null?void 0:d())!=null?f:l().maxLines},
textStyle:v,accessibilityLabel:G,textSize:q})}})}}))},"rd");
Ly.idomCompat=!0;var dMs=_.rf(function(u){var K=u.data;var l=u.isOverlay;return _.n("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.n("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.n(_.mo,{data:function(){return K().header}},{sectionHeaderViewModel:function(D){return _.n(_.za,{data:D.data,
isOverlay:l})}})),_.n("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.n(_.mo,{data:function(){return K().channelInfoButtons}},{flexibleActionsViewModel:Xl})),_.n("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.n(_.mo,{data:function(){return K().description}},{descriptionPreviewViewModel:function(D){return _.n(Ly,{data:D.data,
isOverlay:l})}})))},"sd");
dMs.idomCompat=!0;var C_A=_.rf(function(u){var K=u.data;var l={};return _.n("factoid-view-model",{class:_.JB("ytwFactoidViewModelHost",(l.ytwFactoidViewModelHostOverlay=u.isOverlay,l))},_.n(_.qC,{text:function(){return K().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.n(_.qC,{text:function(){return K().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"td");
C_A.idomCompat=!0;var Iow=_.rf(function(u){var K=u.data;var l=u.isOverlay;return _.n("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.n(_.mo,{data:function(){return K().factoids}},{factoidViewModel:function(D){return _.n(C_A,{data:D.data,
isOverlay:l})}}))},"ud");
Iow.idomCompat=!0;_.yMa=_.rf(function(u){var K=u.data;var l=u.isOverlay;return _.n("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.n(_.mo,{data:function(){return K().items}},{channelInfoViewModel:function(D){return _.n("div",{class:"ytwCourseMetadataViewModelHostItem"},_.n(dMs,{data:D.data,
isOverlay:l}))},
coursePerksViewModel:function(D){return _.n("div",{class:"ytwCourseMetadataViewModelHostItem"},_.n(VnS,{data:D.data,isOverlay:l}))},
descriptionPreviewViewModel:function(D){return _.n("div",{class:"ytwCourseMetadataViewModelHostItem"},_.n(Ly,{data:D.data,isOverlay:l}))},
factoidsRowViewModel:function(D){return _.n("div",{class:"ytwCourseMetadataViewModelHostItem"},_.n(Iow,{data:D.data,isOverlay:l}))},
progressViewModel:function(D){return _.n("div",{class:"ytwCourseMetadataViewModelHostItem"},_.n(gha,{data:D.data,isOverlay:l}))}}))},"vd");var sgB=_.rf(function(u){return _.n("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.n(_.mo,{data:function(){return u.data().content}},{courseMetadataViewModel:function(K){return _.n(_.yMa,{data:K.data,
isOverlay:u.isOverlay})},
progressViewModel:function(K){return _.n(gha,{data:K.data})}}))},"wd");var ojB=_.rf(function(u){var K=u.data;u=u.className;var l=function(){var d;return _.lC((d=K())==null?void 0:d.rendererContext)},D={};
D=(D["dynamic-text-view-model-wiz"]=!0,D["dynamic-text-view-model-wiz--tappable"]=function(){return l()},D);
return _.n("yt-dynamic-text-view-model",{el:_.v1(_.DS(function(){var d;return(d=K())==null?void 0:d.rendererContext})),
role:function(){return l()?"link":void 0},
tabindex:function(){return l()?0:void 0},
class:_.JB(u,D)},_.n("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var d,C,W;return(W=(C=_.b((d=K())==null?void 0:d.rendererContext,_.T8))==null?void 0:C.label)!=null?W:""}},_.n(_.qC,{text:function(){return K().text},
userInput:!0})))},"xd");
ojB.idomCompat=!0;_.Wua=_.rf(function(u){var K=u.data;var l=u.isPositionRelative;var D=_.SOy("(max-width: 527.9px)"),d=function(){var C,W;return(W=(C=K())==null?void 0:C.style)!=null?W:"IMAGE_BANNER_STYLE_FULL_BLEED"};
u={};return _.n("yt-image-banner-view-model",{el:_.v1(_.DS(function(){var C;return(C=K())==null?void 0:C.rendererContext})),
class:_.JB((u["yt-image-banner-view-model-wiz"]=!0,u["yt-image-banner-view-model-wiz--inset"]=function(){return bFn(d())},u["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.Z7(!0)&&!(l==null?0:l())},u["yt-image-banner-view-model-wiz--small-inset"]=function(){return bFn(d())&&D()},u["yt-image-banner-view-model-wiz--tappable"]=function(){var C;
return _.lC((C=K())==null?void 0:C.rendererContext)},u))},_.n(_.r,{cond:function(){var C;
return(C=K())==null?void 0:C.image},
then:function(){return _.n(_.n4,{data:function(){return K().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.n(_.mo,{data:function(){var C;
return(C=K())==null?void 0:C.overlays}},{thumbnailHoverOverlayViewModel:Zt}))},"yd");
_.Wua.idomCompat=!0;var H2N;H2N=_.rf(function(u){var K=u.condition;var l=u.content;return _.n(_.r,{cond:K,then:function(){return _.n("div",{class:"page-header-view-model-wiz__scroll-container"},l())},
else:function(){return l()}})},"zd");
_.M62=_.rf(function(u){var K=u.data;var l=u.noPadding;var D=u.enableBanner;var d=u.cinematicContainerTopbarOffset;var C=u.allowCinematicContainerOverflow;var W=u.displayAsSidebar;var M=u.displayAsPanel;var q=u.alwaysUseMediumTextMetadata;var v=OFR(),G=function(){return!!K().image||!!K().animatedImage},t=function(){return!!K().background},x=function(){return(W==null?0:W())||(M==null?0:M())?1:v()},O=function(){return x()===1},a=function(){return O()||x()===2},f=function(){return x()===4},B=function(){var tH=
K();
var gq=!!K().heroImage;var Bo=x(),uk=coo(K()),ca=W==null?void 0:W(),Ha=!tH.metadata,hH;if(hH=gq?_.b(tH.heroImage,R2B):_.b(tH.animatedImage||tH.image,R2B)){tH=hH.style;var tR=hH.layoutMode;if(tR!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(hH=k4y(Ncq(hH)),gq)gq=xOH(Bo,tH,tR,hH,ca);else b:if(Ha)gq=Bo===1?{size:48}:{size:72};else switch(Bo){case 1:gq={size:72};break b;case 2:gq={size:120};break b;default:gq=uk<4?{size:120}:{size:160}}else gq=void 0}else gq={size:0};return gq};
u={};u=_.JB((u["page-header-view-model-wiz"]=!0,u["page-header-view-model-wiz--no-padding"]=function(){return!(l==null||!l())},u["page-header-view-model-wiz--small-top-padding"]=function(){return O()&&!K().actions&&!(M==null?0:M())||x()===2&&!(G()||K().heroImage)},u["page-header-view-model-wiz--small-bottom-padding"]=function(){return a()&&!K().actions&&!(M==null?0:M())},u["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(C==null?0:C())},u["page-header-view-model-wiz--display-as-sidebar"]=
W,u));
var p={},V=_.JB((p["page-header-view-model-wiz__page-header-headline"]=!0,p["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var tH;return(tH=B())==null?void 0:tH.allowFullWidth},p)),m=function(){var tH;
return a()&&!((tH=B())==null?0:tH.allowFullWidth)},Z=function(){return O()&&(!!K().heroImage||G())&&coo(K())>0},A=function(){return Z()&&(M==null?void 0:M())};
p={};var h=_.JB((p["page-header-view-model-wiz__page-header-title"]=!0,p["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!Z()},p["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return Z()&&!A()},p["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=A,p["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=t,p));
p={};var C9=_.JB((p["page-header-view-model-wiz__page-header-headline-image"]=!0,p["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!K().heroImage&&a()},p));
p={};var Wo=_.JB((p["page-header-view-model-wiz__page-header-banner-container"]=D,p["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var tH;return(D==null?void 0:D())&&((tH=_.b(K().banner,_.fTs))==null?void 0:tH.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},p));
p={};var $y=_.JB((p["page-header-view-model-wiz__page-header-content-metadata"]=!0,p["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=t,p));p={};var co=_.JB((p["page-header-view-model-wiz__page-header-flexible-actions"]=!0,p["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!K().metadata||a()},p["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!a()},p));
p={};var UZ=_.JB((p["page-header-view-model-wiz__page-header-attribution"]=!0,p["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=t,p));return _.n("yt-page-header-view-model",{class:u},_.n(_.r,{cond:t,then:function(){return _.n("div",{class:"page-header-view-model-wiz__page-header-background"},_.n(_.mo,{data:function(){return K().background}},{cinematicContainerViewModel:function(tH){return _.n(_.DMN,{data:tH.data,
topbarOffset:d})}}))}}),_.n(H2N,{condition:function(){return!(W==null||!W())},
content:function(){return _.n("div",{class:"page-header-view-model-wiz__page-header-content"},_.n(_.r,{cond:function(){return(D==null?void 0:D())&&K().banner},
then:function(){return _.n("div",{class:Wo},_.n(_.mo,{data:function(){return K().banner}},{imageBannerViewModel:_.Wua}))}}),_.n("div",{class:V},_.n(_.r,{cond:G,
then:function(){return _.n(_.mo,{data:function(){var tH;if(!(tH=K().animatedImage)){tH=K();if(G()){var gq=tH=Object.assign({},tH),Bo=x(),uk=coo(K()),ca=gq.image,Ha=_.b(ca,Usa),hH=Ha==null?void 0:Ha.avatar,tR=_.b(hH,_.ds);if(ca&&hH&&tR){switch(Bo){case 1:tR.avatarImageSize="AVATAR_SIZE_XL";break;case 2:tR.avatarImageSize="AVATAR_SIZE_XXL";break;default:uk<4?tR.avatarImageSize="AVATAR_SIZE_XXL":tR.avatarImageSize="AVATAR_SIZE_XXXL"}_.S("web_enable_sink_page_header_view_model")&&(_.hl(hH,_.ds,Object.assign({},
tR)),Ha.avatar=Object.assign({},hH),_.hl(ca,Usa,Object.assign({},Ha)),gq.image=Object.assign({},ca))}}tH=tH.image}return tH}},{contentPreviewImageViewModel:function(tH){return _.n(_.SO,{data:tH.data,
className:C9,imageSizeConfig:B})},
decoratedAvatarViewModel:function(tH){return _.n(_.Aa,{data:tH.data,className:C9})}})}}),_.n(_.r,{cond:function(){return!!K().heroImage&&!m()},
then:function(){return _.n(_.mo,{data:function(){return K().heroImage}},{contentPreviewImageViewModel:function(tH){return _.n(_.SO,{data:tH.data,
className:C9,imageSizeConfig:B})}})}}),_.n("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.n(_.r,{cond:function(){return!!K().heroImage&&m()},
then:function(){return _.n("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.n(_.mo,{data:function(){return K().heroImage}},{contentPreviewImageViewModel:function(tH){return _.n(_.SO,{data:tH.data,
className:C9,imageSizeConfig:B})}}))}}),_.n(_.mo,{data:function(){return K().title}},{dynamicTextViewModel:function(tH){return _.n(ojB,{data:tH.data,
className:h})}}),_.n(_.mo,{data:function(){return K().metadata}},{contentMetadataViewModel:function(tH){return _.n(_.bs,{data:tH.data,
layout:function(){return O()?1:0},
className:$y,isOverlay:t,useMediumText:function(){return(q==null?void 0:q())||f()}})}}),_.n(_.r,{cond:function(){return K().description&&!O()},
then:function(){return _.n(_.mo,{data:function(){return K().description}},{descriptionPreviewViewModel:function(tH){return _.n(Ly,{data:tH.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:t,maxLinesOverride:function(){return O()?void 0:1},
useMediumText:f})}})}}),_.n(_.r,{cond:function(){return K().attribution&&!a()},
then:function(){return _.n(_.mo,{data:function(){return K().attribution}},{attributionViewModel:function(tH){return _.n(dks,{data:tH.data,
className:UZ,useMediumText:f})}})}}),_.n(_.r,{cond:function(){return K().actions&&!a()},
then:function(){return _.n(_.mo,{data:function(){return K().actions}},{flexibleActionsViewModel:function(tH){return _.n(Xl,{data:tH.data,
layout:function(){return aWq(x())},
className:co})}})}}))),_.n("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.n(_.r,{cond:function(){return K().description&&O()},
then:function(){return _.n(_.mo,{data:function(){return K().description}},{descriptionPreviewViewModel:function(tH){return _.n(Ly,{data:tH.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:t,maxLinesOverride:function(){return O()?void 0:1},
useMediumText:f})}})}}),_.n(_.r,{cond:function(){return K().attribution&&a()},
then:function(){return _.n(_.mo,{data:function(){return K().attribution}},{attributionViewModel:function(tH){return _.n(dks,{data:tH.data,
className:UZ,useMediumText:f})}})}}),_.n(_.r,{cond:function(){return K().actions&&a()},
then:function(){return _.n(_.mo,{data:function(){return K().actions}},{flexibleActionsViewModel:function(tH){return _.n(Xl,{data:tH.data,
layout:function(){return aWq(x())},
className:co})}})}})),_.n("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.n(_.mo,{data:function(){return K().bottomMetadataFlexibleContainer}},{flexibleContainer:function(tH){return _.n(sgB,{data:tH.data,
isOverlay:t})}})))}}))},"Ad");
_.M62.idomCompat=!0;_.SX(_.rf(function(u){var K=_.y(_.On(!1,void 0,"j5qbkc")),l=K.next().value,D=K.next().value;return _.n("yt-official-card-view-model",{class:_.JB("ytOfficialCardViewModelHost",u.className),style:_.Fb({"background-color":function(){var d,C=UUh((d=u.data())==null?void 0:d.backgroundColor);return C?_.Kg(C):void 0}})},_.n(_.mo,{data:function(){return u.data().header}},{pageHeaderViewModel:function(d){return _.n(_.M62,{data:d.data,
noPadding:!0})}}),_.n(_.mo,{data:function(){return u.data().contents}},{horizontalShelfViewModel:function(d){return _.n(_.El,{data:d.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.n(_.r,{cond:l,
then:function(){return _.n("div",{class:"ytOfficialCardViewModelExpandedContent"},_.n(_.mo,{data:function(){return u.data().expandedContents}},{horizontalShelfViewModel:function(d){return _.n(_.El,{data:d.data,
sizing:"MINI"})}}),_.n("div",{class:"ytOfficialCardViewModelCollapseButton"},_.n(_.mo,{data:function(){return u.data().collapseButton}},{buttonViewModel:function(d){return _.n(_.P2,{data:d.data,
onClick:function(){D(!l())}})}})))},
else:function(){return _.n("div",{class:"ytOfficialCardViewModelExpandButton"},_.n(_.mo,{data:function(){return u.data().expandButton}},{buttonViewModel:function(d){return _.n(_.P2,{data:d.data,
onClick:function(){D(!l())}})}}))}}))},"Bd"),"yt-official-card-view-model",{props:{data:_.M6,
className:_.M6}});var zhH=_.NX({buttonViewModel:_.P2});_.v4(ehw);_.U4(ehw,"ytw-search-friction-view-model",{propNames:["data"]});_.qrB=_.rf(function(u){var K=_.o9("markdown-div"),l,D=(l=_.GB().resolve(_.vv(_.H1)))==null?void 0:l();_.gp(function(){var d=K.value;var C=new RwS,W=new Map(C.JSC$9227_sanitizerTable.globalAttributePolicies);W.set("style",{policyAction:4});C.JSC$9227_sanitizerTable=new FV(C.JSC$9227_sanitizerTable.allowedElements,C.JSC$9227_sanitizerTable.elementPolicies,C.JSC$9227_sanitizerTable.allowedGlobalAttributes,W,C.JSC$9227_sanitizerTable.globallyAllowedAttributePrefixes);var M=["data-time"];if(M===void 0)W=
new Set(C.JSC$9227_sanitizerTable.globallyAllowedAttributePrefixes),W.add("data-"),C.JSC$9227_sanitizerTable=new FV(C.JSC$9227_sanitizerTable.allowedElements,C.JSC$9227_sanitizerTable.elementPolicies,C.JSC$9227_sanitizerTable.allowedGlobalAttributes,C.JSC$9227_sanitizerTable.globalAttributePolicies,W);else{W=new Set(C.JSC$9227_sanitizerTable.allowedGlobalAttributes);M=_.y(M);for(var q=M.next();!q.done;q=M.next()){q=q.value;if(q.indexOf("data-")!==0)throw Error("ma`"+q);W.add(q)}C.JSC$9227_sanitizerTable=
new FV(C.JSC$9227_sanitizerTable.allowedElements,C.JSC$9227_sanitizerTable.elementPolicies,W,C.JSC$9227_sanitizerTable.globalAttributePolicies,C.JSC$9227_sanitizerTable.globallyAllowedAttributePrefixes)}W=new Set(C.JSC$9227_sanitizerTable.allowedGlobalAttributes);W.add("class");C.JSC$9227_sanitizerTable=new FV(C.JSC$9227_sanitizerTable.allowedElements,C.JSC$9227_sanitizerTable.elementPolicies,W,C.JSC$9227_sanitizerTable.globalAttributePolicies,C.JSC$9227_sanitizerTable.globallyAllowedAttributePrefixes);
_.nH(d,_.OsR(C.build(),UOH(u.text())));fWq(K.value)},"FI2gYe");
l={};return _.n("div",null,_.n("markdown-div",{class:_.JB("ytwMarkdownDivHost",(l.ytwMarkdownDivDark=D,l.ytwMarkdownDivHostSmall=function(){var d;return((d=u.isSmallText)==null?void 0:d.call(u))||!1},l)),
el:K}))},"Cd");
_.qrB.idomCompat=!0;var $Mw=_.rf(function(u){var K=u.imageData;var l=_.qE(u.isInList,!1),D=function(){return l()?{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 _.n("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.n(_.r,{cond:function(){return K().image},
then:function(d){return _.n(_.n4,{data:d,alt:function(){return D().alt},
contentMode:function(){return D().contentMode},
targetWidth:function(){return D().targetWidth},
targetHeight:function(){return D().targetHeight},
className:function(){return D().className}})}}),_.n("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.n("div",{class:_.JB("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.n(_.qC,{text:function(){return K().title}})),_.n(_.p0,{each:function(){var d;
return(d=K().description)!=null?d:[]}},function(d){return _.n("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.n(uz,{content:d}))})))},"Dd"),njA=_.rf(function(u){var K=u.list;
var l=function(){var D;return(D=K().items)!=null?D:[]};
return _.n("div",{class:"ytwGenAiRichTextViewModelListContent"},_.n(_.r,{cond:function(){return K().title},
then:function(D){return _.n("div",{class:_.JB("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.n(_.qC,{text:D}))}}),_.n(_.r,{cond:function(){return K().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.n("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.n(_.p0,{each:l},function(D){return _.n("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.n(uz,{content:D,isInList:!0}))}))}}),_.n(_.r,{cond:function(){return K().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.n("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.n(_.p0,{each:l},function(D){return _.n("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.n(uz,{content:D,isInList:!0}))}))}}),_.n(_.r,{cond:function(){return K().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.n("div",{class:"ytwGenAiRichTextViewModelImageList"},_.n(_.p0,{each:l},function(D){return _.n("div",{class:"ytwGenAiRichTextViewModelListItem"},_.n(uz,{content:D,isInList:!0}))}))}}))},"Ed"),rMA=_.rf(function(u){var K=u.table;
return _.n("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.n("thead",null,_.n("tr",null,_.n(_.p0,{each:function(){var l,D;return(D=(l=K().header)==null?void 0:l.cells)!=null?D:[]}},function(l){return _.n("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.n(_.p0,{each:function(){return l.contents}},function(D){return _.n(uz,{content:D})}))}))),_.n("tbody",null,_.n(_.p0,{each:function(){var l;
return(l=K().rows)!=null?l:[]}},function(l){return _.n("tr",null,_.n(_.p0,{each:function(){return l.cells}},function(D){return _.n("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.n(_.p0,{each:function(){return D.contents}},function(d){return _.n(uz,{content:d})}))}))})))},"Fd"),uz=_.rf(function(u){var K=u.content;
var l=_.qE(u.isInList,!1),D=function(){var d,C;return(C=(d=K().contentBlock)==null?void 0:d.contents)!=null?C:[]};
return _.n("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.n(_.r,{cond:function(){return K().text},
then:function(d){return _.n(_.qC,{className:"ytwGenAiRichTextViewModelText",text:d})}}),_.n(_.r,{cond:function(){return K().image},
then:function(d){return _.n($Mw,{imageData:d,isInList:l})}}),_.n(_.r,{cond:function(){return K().list},
then:function(d){return _.n(njA,{list:d})}}),_.n(_.r,{cond:function(){return K().contentBlock},
then:function(){return _.n("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.n(_.p0,{each:D},function(d){return _.n(uz,{content:d,isInList:!1})}))}}),_.n(_.r,{cond:function(){return K().table},
then:function(d){return _.n(rMA,{table:d})}}))},"Gd"),vjB=_.rf(function(u){var K={};
K=_.jX("ytwGenAiRichTextViewModelHost",(K.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.bZ("search_overview_link_style")),K));return _.n("gen-ai-rich-text-view-model",{class:K},_.n(uz,{content:function(){return u.data().content}}))},"Hd");_.v4(QvH);_.v4(A3);_.Gow=_.rf(function(u){var K=u.data;var l=function(){var f;return((f=K().loadingUi)!=null?f:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},D=function(){return K().isLoading&&(l()==="UNSPECIFIED"||l()==="GHOST_CARD")},d=function(){return!K().isLoading},C=function(){return!!K().content&&!K().contents},W=function(){return!!K().contents},M=function(){return!!K().nextQueryButtons},q=function(){return K().isLoading&&l()==="INVISIBLE"},v=function(){var f,B;
return(B=(f=K().headerIcon)==null?void 0:f.iconType)!=null?B:""},G=function(){var f;
return(f=K().content)!=null?f:""},t=function(){return!!K().sourcesSection},x,O=!((x=_.GB().resolve(_.vv(_.H1)))==null||!x()),a=_.RZ(function(){var f=[],B=K().contents;
if(B)for(var p=0;p<B.length;p++){var V=_.b(B&&B[p],iPa);V&&f.push(V)}return f},void 0,"ycU97e");
_.ZY(function(){K().isLoading||_.As("so_re",void 0,"search_overview_answer")});
return _.n("ytd-overview-answer-view-model",{class:function(){var f={};f=(f.ytdOverviewAnswerViewModelHost=!0,f.ytdOverviewAnswerViewModelDarkBackground=O&&!q(),f.ytdOverviewAnswerViewModelLightBackground=!O&&!q(),f);return _.jX(f)}},_.n(_.r,{cond:function(){return!q()},
then:function(){return _.n(_.G1,null,_.n("h2",null,_.n("div",{class:"ytdOverviewAnswerViewModelHeader"},_.n(_.r,{cond:v,then:function(f){return _.n("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.n(_.VB,{icon:f}))}}),_.n("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.n("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return K().headerText}),_.n("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.n(_.qC,{text:function(){return K().headerSubtext}}))))),_.n(_.r,{cond:D,
then:function(){return QvH()}}),_.n(_.r,{cond:d,
then:function(){return _.n(_.G1,null,_.n(_.r,{cond:C,then:function(){return _.n("div",{class:"ytdOverviewAnswerViewModelText"},_.n(_.qrB,{text:G,isSmallText:!0}))}}),_.n(_.r,{cond:W,
then:function(){return _.n("div",{class:"ytdOverviewAnswerViewModelRichText"},_.n(_.p0,{each:a},function(f){return _.n(vjB,{data:f})}))}}),_.n(_.r,{cond:M,
then:function(){return _.n("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.n(_.mo,{data:function(){return K().nextQueryButtons}},{buttonViewModel:function(f){return _.n(_.P2,{data:f.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.El}))}}),_.n("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.n("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.n(_.r,{cond:function(){return!!_.b(K().likeButtonViewModel,_.hW)&&!!_.b(K().dislikeButtonViewModel,_.mD)},
then:function(){return _.n("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.n(_.hA,{data:function(){return _.b(K().likeButtonViewModel,_.hW)},
disableIconAnimation:!0}),_.n(_.m9,{data:function(){return _.b(K().dislikeButtonViewModel,_.mD)}}))}})),_.n(_.r,{cond:function(){var f;
return(f=K().sourcesSection)==null?void 0:f.headerText},
then:function(f){return _.n("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.n(_.qC,{text:f}))}})),_.n(_.r,{cond:t,
then:function(){return _.n("div",{class:"ytdOverviewAnswerViewModelSources"},_.n(_.mo,{data:function(){var f;return(f=K().sourcesSection)==null?void 0:f.sourcesShelf}},{buttonViewModel:_.P2,
horizontalShelfViewModel:function(f){return _.n(_.El,{data:f.data,includeMargin:!0,hasPeek:!0})}}))}}),_.n(_.r,{cond:function(){return K().disclaimerText},
then:function(){return _.n("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.n(_.qC,{text:function(){return K().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Id");var t6C=_.rf(function(u){var K=u.data;var l=u.active;var D=_.o9("transcript-segment-view-model");_.gp(function(){var d,C,W,M=((d=_.GB().resolve(_.vv(_.H1)))==null?0:d())?(C=K())==null?void 0:C.darkThemeColorPalette:(W=K())==null?void 0:W.lightThemeColorPalette;M&&(M.additiveBackground&&D.value.style.setProperty("--timestamp-active-background-color",_.Kg(M.additiveBackground)),M.textSecondary&&D.value.style.setProperty("--timestamp-active-color",_.ui(M.textSecondary)))},"KHcbwb");
u={};return _.n("transcript-segment-view-model",{class:_.JB("ytwTranscriptSegmentViewModelHost",(u.ytwTranscriptSegmentViewModelHostActive=l,u.ytwTranscriptSegmentViewModelHostModern=_.S("enable_timeline_view_modern_transcript")||_.S("enable_timeline_view_modern_transcript_fe"),u)),el:D},_.n(_.r,{cond:function(){var d;return(d=K())==null?void 0:d.timestamp},
then:function(d){var C={};return _.n("div",{class:_.JB("ytwTranscriptSegmentViewModelTimestamp",(C.ytwTranscriptSegmentViewModelTimestampActive=l,C))},d)}}),_.n(_.qC,{text:function(){var d,C,W;
return(W=(d=K())==null?void 0:d.attributedText)!=null?W:{content:(C=K())==null?void 0:C.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Jd");var xM2=_.rf(function(u){var K=u.data;return _.n("div",{class:"yt-video-attributes-section-view-model__header"},_.n("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return K().headerTitle}),_.n(_.r,{cond:function(){return K().headerSubtitle},
then:function(){return _.n("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return K().headerSubtitle})}}))},"Kd"),Sra=_.rf(function(u){function K(f){return Math.max(Math.min(f,0),v()-M())}
var l=u.data;var D,d=_.o9("div",function(f){if(_.S("web_metadata_carousel_elref_bugfix")){var B=function(){G(f.clientWidth)};
B();window.ResizeObserver&&(D=new ResizeObserver(B),D.observe(f))}}),C=_.o9("div",function(f){q(f.scrollWidth)}),W=_.y(_.On(0,void 0,"I9GbH"));
u=W.next().value;W=W.next().value;var M=u,q=W;W=_.y(_.On(0,void 0,"eQAn5b"));u=W.next().value;W=W.next().value;var v=u,G=W;u=_.y(_.On(0,void 0,"VU3lg"));var t=u.next().value,x=u.next().value;_.ZY(function(){if(!_.S("web_metadata_carousel_elref_bugfix")){var f=function(){q(C.value.scrollWidth);G(d.value.clientWidth)};
f();if(window.ResizeObserver){var B=new ResizeObserver(f);B.observe(d.value);_.No(function(){B.disconnect()})}}});
_.No(function(){if(_.S("web_metadata_carousel_elref_bugfix")){var f;(f=D)==null||f.disconnect()}});
var O=function(){x(K(t()+v()))},a=function(){x(K(t()-v()))};
return _.n("yt-video-attributes-section-view-model",null,_.n("div",{class:"yt-video-attributes-section-view-model"},_.n(_.r,{cond:function(){return l().headerTitle},
then:function(){return _.n(xM2,{data:l})}}),_.n("div",{class:_.JB("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:d},_.n("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.Fb({transform:function(){var f=t();_.E3("HTML_DIR")==="rtl"&&(f*=-1);return"translateX("+f+"px)"}}),
el:C},_.n(_.mo,{data:function(){return l().videoAttributeViewModels}},{videoAttributeViewModel:cdk}))),_.n(_.mo,{data:function(){return l().footerButton}},{buttonViewModel:function(f){return _.n(_.P2,{data:f.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.n(_.r,{cond:function(){return t()<0&&l().previousButton},
then:function(){return _.n("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.n(_.mo,{data:function(){return l().previousButton}},{buttonViewModel:function(f){return _.n(_.P2,{data:f.data,
onClick:O})}}))}}),_.n(_.r,{cond:function(){return t()>v()-M()&&l().nextButton},
then:function(){return _.n("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.n(_.mo,{data:function(){return l().nextButton}},{buttonViewModel:function(f){return _.n(_.P2,{data:f.data,
onClick:a})}}))}})))},"Ld");
Sra.idomCompat=!0;var b2R=_.rf(function(u){var K=u.data;var l=u.active;var D={},d={};return _.n("timeline-item-view-model",{class:_.JB("ytwTimelineItemViewModelHost",(D.ytwTimelineItemViewModelHostChapterChild=u.chapterChild,D.ytwTimelineItemViewModelModern=_.S("enable_timeline_view_modern_transcript")||_.S("enable_timeline_view_modern_transcript_fe"),D))},_.n("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.n("div",{class:_.JB("ytwTimelineItemViewModelTimestamp",(d.ytwTimelineItemViewModelTimestampActive=
l,d))},function(){return K().timestamp})),_.n("div",{class:"ytwTimelineItemViewModelContentItems"},_.n(_.mo,{data:function(){return K().contentItems}},{transcriptSegmentViewModel:function(C){return _.n(t6C,{data:C.data,
active:l})},
videoAttributesSectionViewModel:Sra})))},"Md");var O2s=_.rf(function(u){var K=u.data;u={};return _.n("timeline-chapter-view-model",{class:_.JB("ytwTimelineChapterViewModelHost")},_.n("div",{class:_.JB("ytwTimelineChapterViewModelTitle",(u.ytwTimelineChapterViewModelModern=_.S("enable_timeline_view_modern_transcript")||_.S("enable_timeline_view_modern_transcript_fe"),u))},function(){return K().title}),_.n(_.mo,{data:function(){return K().contents}},{timelineItemViewModel:function(l){return _.n(b2R,{data:l.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(l){return _.n(Sra,{data:l.data})}}))},"Nd");var cMA=_.rf(function(u){var K=u.data;var l=_.o9("macro-markers-panel-item-view-model"),D=_.ie(_.MCh,function(){var C;return(C=K().markersEngagementPanelSyncEntityKey)!=null?C:""}),d=function(){var C;
return((C=D())==null?void 0:C.activeItemIndex)===K().index};
u=_.p4(function(C){var W,M,q,v,G;return _.H(function(t){if(t.nextAddress==1)return C.stopPropagation(),_.uC(_.L1(C),l.value,["A".toString(),"BUTTON".toString()])?t.return():(W=_.lt(K().onTap))?t.yield(_.UK(),2):t.return();M=t.yieldResult;v=(q=_.b(W,_.oy))==null?void 0:q.startTimeSeconds;v===void 0||(G=M)!=null&&G.seekTo(v,!0);_.TG(t)})});
return _.n("macro-markers-panel-item-view-model",{class:_.JB("ytwMacroMarkersPanelItemViewModelHost",{"is-active":d}),el:l,"on:click":u,tabindex:0},_.n(_.mo,{data:function(){var C;return(C=K())==null?void 0:C.item}},{timelineChapterViewModel:function(C){return _.n(O2s,{data:C.data,
active:d})},
timelineItemViewModel:function(C){return _.n(b2R,{data:C.data,active:d})},
videoAttributeViewModel:cdk}))},"Od");
cMA.idomCompat=!0;_.SX(cMA,"macro-markers-panel-item-view-model",{props:{data:_.M6}});_.SX(Sra,"yt-video-attributes-section-view-model",{props:{data:_.M6}});var ao2=_.rf(function(u){var K=function(){var l,D,d;return(d=(l=u.data().leadingLogoAccessibility)==null?void 0:(D=l.accessibilityData)==null?void 0:D.label)!=null?d:""};
return _.n("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.n(_.r,{cond:function(){return u.data().leadingLogo},
then:function(l){return _.n(_.n4,{className:"ytwFantasySectionHeaderViewModelLogo",data:l,alt:K})}}),_.n("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.n(_.qC,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return u.data().title}}),_.n(_.qC,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return u.data().subtitle}})),_.n(_.mo,{data:function(){return u.data().trailingButton}},{buttonViewModel:function(l){return _.n(_.P2,{data:l.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Pd");var z6B=_.rf(function(u){var K={};K=_.JB("ytwFantasyTeamViewModelHost",(K.ytwFantasyTeamViewModelCompact=function(){var d;return!((d=u.compact)==null||!d.call(u))},K.ytwFantasyTeamViewModelUser=function(){return u.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},K.ytwFantasyTeamViewModelOpponent=function(){return u.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},K));
var l=function(){var d,C,W;return(W=(d=u.data().teamLogoAccessibility)==null?void 0:(C=d.accessibilityData)==null?void 0:C.label)!=null?W:""},D=_.ie($jo,function(){return u.data().teamEntityKey});
return _.n("ytw-fantasy-team-view-model",{class:K},_.n(_.r,{cond:function(){return u.data().teamLogo},
then:function(d){return _.n(_.n4,{className:"ytwFantasyTeamViewModelLogo",data:d,alt:l})}}),_.n("div",{class:"ytwFantasyTeamViewModelMetadata"},_.n("div",{class:"ytwFantasyTeamViewModelHeader"},_.n(_.qC,{className:"ytwFantasyTeamViewModelScore",
text:function(){var d;return(d=D())==null?void 0:d.score}}),_.n(_.VB,{icon:function(){var d;
return(d=D())==null?void 0:d.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.n(_.qC,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var d;return(d=D())==null?void 0:d.projectedScore}})),_.n(_.qC,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return u.data().primaryText}}),_.n(_.qC,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return u.data().secondaryText}}),_.n(_.qC,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return u.data().tertiaryText}})),_.n(_.qC,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var d;return(d=D())==null?void 0:d.score}}))},"Qd");_.SX(_.rf(function(u){return _.n("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.n("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.n(_.mo,{data:function(){return u.data().summaryHeader}},{fantasySectionHeaderViewModel:ao2})),_.n(_.mo,{data:function(){return u.data().userTeam}},{fantasyTeamViewModel:z6B}),_.n(_.mo,{data:function(){return u.data().opponentTeam}},{fantasyTeamViewModel:z6B}))},"Rd"),"fantasy-league-summary-view-model",{props:{data:_.M6}});var e6S=_.rf(function(u){var K=_.$U(u,{shape:{},useCustomTabRenderable:!1}),l=K.shape;K=K.useCustomTabRenderable;var D=u.customTabRenderable,d=function(){return l().disabled},C=function(){return l().selected},W=function(){return l().title},M=function(){return l().icon},q=_.o9("yt-tab-shape");
u=_.p4(function(t){var x;if(!d()&&((x=l().aTagConfig)==null?0:x.onclick))l().aTagConfig.onclick(t);return!1});
var v=_.p4(function(t){if(t.key==="Enter"||t.key==="ArrowUp"||t.key==="ArrowDown")t.preventDefault(),q.value.click();return!1}),G={};
return _.n("yt-tab-shape",{class:_.JB("yt-tab-shape-wiz",function(){return l().className},(G["yt-tab-shape-wiz__tab--last-tab"]=function(){return l().isLastTab},G["yt-tab-shape-wiz--host-disabled"]=d,G["yt-tab-shape-wiz--host-clickable"]=!D,G)),
role:D?void 0:"tab","aria-selected":C!=null?C:!1,"aria-disabled":d,tabindex:D?void 0:0,"on:click":u,"on:keydown":v,el:q,"tab-identifier":function(){return l().identifier},
"tab-title":W},_.n(_.r,{cond:K,then:function(){return D()},
else:function(){var t={},x={};return _.n(_.G1,null,_.n("div",{class:_.JB("yt-tab-shape-wiz__tab",(t["yt-tab-shape-wiz__tab--tab-selected"]=C,t))},_.n(_.r,{cond:M,then:function(O){return _.n(_.VB,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return O().iconType}})}}),W),_.n("div",{class:_.JB("yt-tab-shape-wiz__tab-bar",(x["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=C,x))}))}}))},"Sd");
e6S.idomCompat={callbacks:{customTabRenderable:!0}};_.UMB=_.rf(function(u){var K=u.shape;u=_.y(_.On(48,void 0,"r9IBlb"));var l=u.next().value,D=u.next().value;u=_.y(_.On(0,void 0,"Bd7rmd"));var d=u.next().value,C=u.next().value,W=function(){return K().tabs},M=_.o9("yt-tab-group-shape"),q=function(){var v,G;
return(G=(v=W())==null?void 0:v.findIndex(function(t){return t.selected}))!=null?G:-1};
_.ZY(function(){var v=M.value.querySelectorAll("yt-tab-shape"),G=q()>-1?v[q()]:void 0;_.YL.addJob(function(){D((G==null?void 0:G.getBoundingClientRect().width)||0)},8,0)});
_.gp(function(){var v=q(),G=_.YL.addJob(function(){var t,x=((t=M.value)==null?void 0:t.querySelectorAll("yt-tab-shape"))||[],O;D(((O=v>-1?x[v]:void 0)==null?void 0:O.getBoundingClientRect().width)||0);for(O=t=0;O<v;O++)t+=x[O].offsetWidth+24;_.E3("HTML_DIR")==="rtl"&&(t=-t);C(t)},8,0);
_.No(function(){_.YL.cancelJob(G)})},"EHixkc");
u={};return _.n("yt-tab-group-shape",{class:_.JB("yt-tab-group-shape-wiz",(u["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return K().isOverflowHidden},u)),
el:M},_.n(_.r,{cond:W,then:function(v){return _.n(_.G1,null,_.n("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.n(_.p0,{each:v},function(G,t){return _.n(e6S,{shape:function(){return Object.assign({},G,{isLastTab:t()===v().length-1})},
customTabRenderable:G.customTabRenderable,useCustomTabRenderable:!!G.customTabRenderable})})),_.n(R6k,{width:l,
sliderOffset:d}))}}))},"Td");
_.UMB.idomCompat=!0;var R6k=_.rf(function(u){var K=_.qE(u.sliderOffset,0),l=u.width;return _.n("div",{class:"yt-tab-group-shape-wiz__slider",style:_.Fb({width:function(){return l()+"px"},
transform:function(){return"translateX("+K()+"px)"}})})},"Ud");var foR=_.rf(function(u){var K=function(){var C,W,M;return(M=(C=u.data().playerLogoAccessibility)==null?void 0:(W=C.accessibilityData)==null?void 0:W.label)!=null?M:""},l=_.ie(nbL,function(){return u.data().playerEntityKey}),D={};
D=_.JB("ytwFantasyPlayerViewModelHost",(D.ytwFantasyPlayerViewModelPlaying=function(){var C;return!((C=l())==null||!C.isPlayerPlaying)},D.ytwFantasyPlayerViewModelOnField=function(){var C;
return((C=l())==null?void 0:C.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},D.ytwFantasyPlayerViewModelRedZone=function(){var C;
return((C=l())==null?void 0:C.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},D));
var d=function(){var C,W,M,q=((C=_.GB().resolve(_.vv(_.H1)))==null?0:C())?(W=u.data().playerLogoBackgroundColor)==null?void 0:W.darkTheme:(M=u.data().playerLogoBackgroundColor)==null?void 0:M.lightTheme;return q===void 0?"":_.Kg(q)};
return _.n("ytw-fantasy-player-view-model",{class:D},_.n(_.r,{cond:function(){return u.data().playerLogo},
then:function(C){return _.n("div",{class:"ytwFantasyPlayerViewModelLogo"},_.n("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.n(_.n4,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Fb({"background-color":d}),data:C,alt:K})),_.n("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.n(_.VB,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.n("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.n("div",{class:"ytwFantasyPlayerViewModelHeader"},_.n(_.qC,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var C;return(C=u.data())==null?void 0:C.playerNameText}}),_.n(_.qC,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var C;return(C=u.data())==null?void 0:C.playerDescriptionText}})),_.n("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.n(_.qC,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var C;return(C=l())==null?void 0:C.gamePeriodText}}),_.n(_.qC,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var C;return(C=u.data())==null?void 0:C.opponentTeamText}}),_.n(_.qC,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var C;return(C=l())==null?void 0:C.gameStatusText}}),_.n(_.qC,{className:_.JB("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var C;return(C=l())==null?void 0:C.playerStatusText}})),_.n("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.n(_.qC,{text:function(){var C;
return(C=l())==null?void 0:C.playerStatsText}}))),_.n(_.qC,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var C;return(C=l())==null?void 0:C.fantasyScore}}))},"Vd");var QgS=_.rf(function(u){return _.n("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.n(_.r,{cond:function(){return u.data().players},
then:function(K){return _.n(_.mo,{data:K},{fantasyPlayerViewModel:foR})}}))},"Wd");var P_R=_.rf(function(u){var K=_.y(_.wY(function(){var d;return(d=u.data().selectedTabIdentifierKey)!=null?d:""})),l=K.next().value,D=K.next().value;
_.N_(function(){var d;(d=u.setSelectedTabSignal)==null||d.call(u,l)});
return _.n("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.n("div",{class:"ytTabbedViewModelTabGroup"},_.n(_.UMB,{shape:function(){var d=u.data(),C=[],W={tabs:C};if(!d.tabs)return W;d=_.y(d.tabs);for(var M=d.next(),q={};!M.done;q={tabViewModel:void 0},M=d.next())if(q.tabViewModel=_.b(M.value,msa),q.tabViewModel){var v=M=void 0;C.push({aTagConfig:{onclick:function(G){return function(){var t;D((t=G.tabViewModel.tabIdentifier)!=null?t:"")}}(q)},
identifier:q.tabViewModel.tabIdentifier,selected:l()===q.tabViewModel.tabIdentifier,title:(v=(M=q.tabViewModel.title)==null?void 0:M.content)!=null?v:""})}return W}})),_.n(_.mo,{data:function(){var d,C=_.y((d=u.data().tabs)!=null?d:[]);
for(d=C.next();!d.done;d=C.next())if((d=_.b(d.value,msa))&&d.tabIdentifier===l())return d.content}},{fantasyRosterViewModel:QgS}))},"Xd");_.SX(_.rf(function(u){var K=_.y(PMn()),l=K.next().value,D=K.next().value;return _.n("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.n(_.qC,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return u.data().title}}),_.n(_.r,{cond:function(){return u.data().tabbedViewModel},
then:function(d){return _.n(_.mo,{data:d},{tabbedViewModel:function(C){return _.n(P_R,{data:C.data,setSelectedTabSignal:D})}})}}),_.n(_.r,{cond:function(){var d,C=(d=_.b(u.data().tabbedViewModel,h2a))==null?void 0:d.tabs;
d=_.b(C==null?void 0:C[0],msa);C=_.b(C==null?void 0:C[1],msa);var W=d==null?void 0:d.tabIdentifier;if(l()===W){var M,q;if(!((M=_.b(d==null?void 0:d.content,k2B))==null?0:(q=M.players)==null?0:q.length))return u.data().noUserTeamPlayersText}else{var v,G;if(!((v=_.b(C==null?void 0:C.content,k2B))==null?0:(G=v.players)==null?0:G.length))return u.data().noOpponentTeamPlayersText}},
then:function(d){return _.n(_.qC,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:d})}}))},"Yd"),"ytw-fantasy-matchup-view-model",{props:{data:_.M6}});_.SX(_.rf(function(u){return _.n("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.n(_.qC,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return u.data().title}}),_.n(_.r,{cond:function(){return u.data().matchupTeamPairs},
then:function(K){return _.n(_.p0,{each:K,keyBy:"INDEX"},function(l){return _.n("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.n(_.mo,{data:function(){return[l().firstTeam,l().secondTeam]}},{fantasyTeamViewModel:function(D){return _.n(z6B,{data:D.data,
compact:!0})}}))})}}))},"Zd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.M6}});_.SX(_.rf(function(u){var K=function(){var d,C,W;return(W=(d=u.data().userLogoAccessibility)==null?void 0:(C=d.accessibilityData)==null?void 0:C.label)!=null?W:""},l=function(){var d,C,W;
return(W=(d=u.data().opponentLogoAccessibility)==null?void 0:(C=d.accessibilityData)==null?void 0:C.label)!=null?W:""},D=_.ie(qHH,function(){return u.data().entityKey});
return _.n("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.n("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.n(_.r,{cond:function(){return u.data().userLogo},
then:function(d){return _.n(_.n4,{className:"ytwFantasyWinProbabilityViewModelLogo",data:d,alt:K})}}),_.n("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.n(_.qC,{text:function(){return u.data().title}})),_.n(_.r,{cond:function(){return u.data().opponentLogo},
then:function(d){return _.n(_.n4,{className:"ytwFantasyWinProbabilityViewModelLogo",data:d,alt:l})}})),_.n("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.n("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.n(_.qC,{text:function(){var d;
return(d=D())==null?void 0:d.userWinNumberLabel}})),_.n("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.n("div",{class:_.JB("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Fb({flex:function(){var d,C;return(C=(d=D())==null?void 0:d.userWinNumber)!=null?C:50}})}),_.n("div",{class:_.JB("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Fb({flex:function(){var d,C;return(C=(d=D())==null?void 0:d.opponentWinNumber)!=null?C:50}})})),_.n("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.n(_.qC,{text:function(){var d;
return(d=D())==null?void 0:d.opponentWinNumberLabel}}))))},"$d"),"fantasy-win-probability-view-model",{props:{data:_.M6}});var JM0={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},jgH=_.rf(function(u){return _.n(_.mo,{data:u.button},{buttonViewModel:function(K){return _.n(_.P2,{data:K.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"ae"),BXs=_.rf(function(u){return _.n("ytd-backstage-locked-post-view-model",{class:_.JB("ytdBackstageLockedPostViewModelHost",u.className)},_.n("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.n("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.n(_.mo,
{data:function(){return u.data().authorAvatar}},{decoratedAvatarViewModel:_.Aa})),_.n("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.n("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.n(_.qC,{text:function(){return u.data().authorText}})),_.n("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.n(_.qC,{text:function(){return u.data().publishedTimeText}}),_.n(_.mo,{data:function(){return u.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(K){return _.n(yva,
{data:K.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.n("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.n(_.qC,{text:function(){return u.data().contentText}})),_.n(_.VI,null,_.n(_.ic,{when:function(){return u.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.n("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.n(_.n4,{data:JM0,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.n(_.qC,{text:function(){return u.data().lockedText}}))}),_.n(_.ic,{when:function(){return u.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.n("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.n("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.n(_.n4,{data:JM0,
alt:""})),_.n(_.qC,{text:function(){return u.data().lockedText}}))})),_.n("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.n(jgH,{button:function(){return u.data().likeButton}}),_.n("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return u.data().voteCountA11y}},_.n(_.qC,{text:function(){return u.data().voteCount}})),_.n(jgH,{button:function(){return u.data().dislikeButton}}),_.n(jgH,{button:function(){return u.data().commentButton}}),_.n("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return u.data().commentCountA11y}},_.n(_.qC,{text:function(){return u.data().commentCount}}))))},"be");
BXs.idomCompat=!0;_.SX(BXs,"ytd-backstage-locked-post-view-model",{props:{data:_.M6,className:_.M6}});_.E4("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Kf=function(){var u=_.Q.apply(this,arguments)||this;u.darkerPanels=_.S("web_watch_darker_panels");u.commentsHidePanelButton=!1;u.isWatchGrid=!1;u.continuationShowButton=!1;u.isSearch=!1;u.isConstrainedList=!1;u.isWatch=!1;u.eligibleToSwitchToGrid=!1;u.notSticky=!1;u.epRestyle=!1;u.isCarouselInFeed=!0;u.topSpacingZero=!1;u.continuationIsInitialLoad=!0;u.enableSqueezebackPanels=_.S("web_shorts_enable_squeezeback_panels");u.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");u.mastheadHeight=
0;u.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};u.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return u};
_.c(Kf,_.Q);_.I=Kf.prototype;_.I.updateLockupContainerTypes=function(u){if(this.eligibleToSwitchToGrid){var K;(K=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||K.forEach(function(l){l.containerType=u})}};
_.I.getItemsPath=function(){return"data.contents"};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.I.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",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]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",
connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",
fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",
handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",
properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",
properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",
offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",
productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",
properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",
searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",
properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",
unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",
courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",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:_.S("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.S("kevlar_low_priority_continuation")}}};
_.I.created=function(){};
_.I.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.I.handleIntersect=function(u){this.notSticky=u[0].intersectionRatio===1};
_.I.attached=function(){var u=this;document.addEventListener("scroll",_.Ql(this,this.updateHeaderState));var K;this.mastheadHeight=((K=document.querySelector("ytd-masthead"))==null?void 0:K.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(l){u.handleIntersect(l)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){u.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.I.detached=function(){document.removeEventListener("scroll",_.Ql(this,this.updateHeaderState));var u;(u=this.intersectionObserver)==null||u.disconnect();var K;(K=this.resizeObserver)==null||K.disconnect()};
_.I.updated=function(u){u.has("data")&&this.updateHeaderState()};
_.I.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(Wja(!this.notSticky))};
_.I.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var u=_.bi(this.hostElement).querySelector("ytd-comments-header-renderer");u&&(u.hidePanelButton=this.commentsHidePanelButton)}};
_.I.onRetrieveLocation=function(u,K){this.containsComments()&&(this.firstCommentsLoaded=K.hasComments=!0)};
_.I.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.I.onLoadReloadContinuation=function(u,K){var l=this;u.stopPropagation();this.isReloading=!0;_.xs(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(D){var d=_.GB().resolve(_.XQ);D=K(D);d.postData(D).then(function(C){l.onReloadContinuationData(C)})}})};
_.I.onReloadContinuationData=function(u){if(u=this.get("response.continuationContents.itemSectionContinuation",u)||this.get("response.contents.itemSectionRenderer",u)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",u)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",u))this.set("data.contents",u.contents||u.results),u.header&&this.set("data.header",u.header),this.set("data.continuations",
u.continuations||[]);this.isReloading=!1};
_.I.computeContentsClass=function(u){return u?"reloading":""};
_.I.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.I.computeSectionIdentifier=function(u){return u==null?void 0:u.sectionIdentifier};
_.I.computeFitContainer=function(u){return(u==null?void 0:u.sectionIdentifier)==="youchat-item-section"};
_.I.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.S("kevlar_disable_comments_auto_load")};
_.I.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.I.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.I.computeHasDestinationShelfRenderer=function(u){var K,l;return!!(u==null?0:(K=u.contents)==null?0:(l=K[0])==null?0:l.destinationShelfRenderer)};
_.I.computeHasSectionGroupViewModel=function(u){var K,l;return!!(u==null?0:(K=u.contents)==null?0:(l=K[0])==null?0:l.sectionGroupViewModel)};
_.I.computeHasQrCodeRenderer=function(u){var K,l;return!!(u==null?0:(K=u.contents)==null?0:(l=K[0])==null?0:l.qrCodeRenderer)};
_.I.computeStaticCommentsHeader=function(u){return u&&this.containsComments()};
_.I.computeEpRestyle=function(u){return _.S("web_ep_restyling")&&u&&this.containsComments()};
_.I.computeIsContinuationCommentSection=function(u){return(u==null?void 0:u.targetId)==="shorts-engagement-panel-comments-section"||(u==null?void 0:u.targetId)==="comments-section"||(u==null?void 0:u.targetId)==="engagement-panel-comments-section"};
_.I.computeSuppressPaddingDisclaimer=function(){var u,K,l,D;return!!((u=this.data)==null?0:(K=u.contents)==null?0:(l=K[0])==null?0:(D=l.productListHeaderRenderer)==null?0:D.suppressPaddingDisclaimer)};
_.I.computeHeaderStyle=function(u){switch(u==null?void 0:u.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.I.dataChanged=function(){this.firstCommentsLoaded=!1};
_.I.observeDataContentsLength=function(){var u,K;((u=this.data)==null?0:(K=u.contents)==null?0:K.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.I.onYtDismissibleItemDismissedChange=function(u){this._setItemDismissed(u.type==="yt-dismissible-item-dismissed")};
_.I.triggerContinuations=function(){for(var u=_.bi(this.hostElement).querySelector("#continuations").children,K=0;K<u.length;K++)u[K].trigger()};
_.I.triggerInitialContinuations=function(){for(var u=_.bi(this.hostElement).querySelector("#continuations").children,K=0;K<u.length;K++)u[K].triggerIfNotPreviouslyTriggered()};
_.I.handleYtItemSectionContinuation=function(u,K){var l;K&&((l=this.data)==null?void 0:l.sectionIdentifier)!==K||(this.set("data.continuations",[u]),this.triggerContinuations())};
_.I.handleYtItemSectionReplace=function(u,K){var l;K&&((l=this.data)==null?void 0:l.sectionIdentifier)!==K||(this.set("data.contents",u),this.set("data.continuations",[]))};
_.I.computeUseHeightHack=function(u){return u&&!_.S("kevlar_disable_height_hack")};
_.I.computeTopSpacingZero=function(u){return u};
_.I.continuationShowButtonChanged=function(){var u=_.bi(this.hostElement).querySelector("ytd-continuation-item-renderer");u&&(u.showButton=this.continuationShowButton)};
_.I.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("data-changed",this.data))};
_.MN.Object.defineProperties(Kf.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.S("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return!!((u=this.data)==null?0:(K=u.contents)==null?0:(l=K[0])==null?0:l.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D,d,C,W;return!!((u=this.data)==null?0:(K=u.contents)==null?0:(l=K[0])==null?0:(D=l.shelfRenderer)==null?0:(d=D.content)==null?0:(C=d.gridRenderer)==null?0:(W=C.targetId)==null?0:W.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return!!((u=this.data)==null?0:(K=u.contents)==null?0:(l=K[0])==null?0:l.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return!!((u=this.data)==null?0:(K=u.contents)==null?0:(l=K[0])==null?0:l.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.bZ("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.S("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.S("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
Kf.prototype.dataChangedForBinding=Kf.prototype.dataChangedForBinding;Kf.prototype.continuationShowButtonChanged=Kf.prototype.continuationShowButtonChanged;Kf.prototype.onYtDismissibleItemDismissedChange=Kf.prototype.onYtDismissibleItemDismissedChange;Kf.prototype.observeDataContentsLength=Kf.prototype.observeDataContentsLength;Kf.prototype.dataChanged=Kf.prototype.dataChanged;Kf.prototype.onServiceRequestCompleted=Kf.prototype.onServiceRequestCompleted;Kf.prototype.onLoadReloadContinuation=Kf.prototype.onLoadReloadContinuation;
Kf.prototype.onRetrieveLocation=Kf.prototype.onRetrieveLocation;Kf.prototype.commentsHidePanelButtonChanged=Kf.prototype.commentsHidePanelButtonChanged;Kf.prototype.dispatchChipBarIsSticky=Kf.prototype.dispatchChipBarIsSticky;Kf.prototype.updateLockupContainerTypes=Kf.prototype.updateLockupContainerTypes;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Kf.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Kf.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.xR.YtLazyListBehavior),_.N("design:type",Object)],Kf.prototype,"ytLazyListBehavior",void 0);_.g([_.e(_.yr.YtNextContinuationBehavior),_.N("design:type",Object)],Kf.prototype,"ytNextContinuationBehavior",void 0);
_.g([_.e(_.Ir),_.N("design:type",Object)],Kf.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Kf.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Kf.prototype,"ytdReduxBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Kf.prototype,"darkerPanels",void 0);_.g([_.U(),_.N("design:type",Object)],Kf.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Boolean)],Kf.prototype,"engagementPanel",void 0);_.g([_.U(),_.N("design:type",Object)],Kf.prototype,"commentsHidePanelButton",void 0);_.g([_.U(),_.N("design:type",Object)],Kf.prototype,"isWatchGrid",void 0);_.g([_.U(),_.N("design:type",Object)],Kf.prototype,"continuationShowButton",void 0);_.g([_.U({computed:"computeIsContinuationCommentSection(data)"}),_.N("design:type",Boolean)],Kf.prototype,"continuationIsCommentsSection",void 0);
_.g([_.U({value:!0}),_.N("design:type",Boolean)],Kf.prototype,"autoFill",void 0);_.g([_.U(),_.N("design:type",Boolean)],Kf.prototype,"continuationDisablePrescanVisibility",void 0);_.g([_.U(),_.N("design:type",Boolean)],Kf.prototype,"isReloading",void 0);_.g([_.U(),_.N("design:type",Object)],Kf.prototype,"isSearch",void 0);_.g([_.U(),_.N("design:type",Object)],Kf.prototype,"isConstrainedList",void 0);_.g([_.U(),_.N("design:type",Object)],Kf.prototype,"isWatch",void 0);
_.g([_.U(),_.N("design:type",Object)],Kf.prototype,"eligibleToSwitchToGrid",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Kf.prototype,"notSticky",void 0);_.g([_.U({selector:_.le}),_.N("design:type",Object)],Kf.prototype,"isGridViewEnabled",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.N("design:type",Object)],Kf.prototype,"epRestyle",void 0);
_.g([_.R("isWatch"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kf.prototype,"hideShortsShelfHeader",null);_.g([_.R("isSearch","isWatch"),_.N("design:type",String),_.N("design:paramtypes",[])],Kf.prototype,"thumbnailWidth",null);_.g([_.R("isSearch","isWatch"),_.N("design:type",String),_.N("design:paramtypes",[])],Kf.prototype,"sizing",null);
_.g([_.R("isWatch","isGridViewEnabled","data"),_.U({reflectToAttribute:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],Kf.prototype,"lockupContainerType",null);_.g([_.JU("lockupContainerType","data"),_.N("design:type",Function),_.N("design:paramtypes",[Number]),_.N("design:returntype")],Kf.prototype,"updateLockupContainerTypes",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],Kf.prototype,"pageSubtype",void 0);
_.g([_.U({computed:"computeContainerWidth()"}),_.N("design:type",Number)],Kf.prototype,"containerWidth",void 0);_.g([_.U(),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kf.prototype,"isPlaylist",null);_.g([_.U(),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kf.prototype,"isClipList",null);_.g([_.U(),_.N("design:type",Object)],Kf.prototype,"isCarouselInFeed",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kf.prototype,"isPlaylistVideoContainer",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kf.prototype,"isSearchFrictionPage",null);_.g([_.U({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.N("design:type",Boolean)],Kf.prototype,"useHeightHack",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.N("design:type",Object)],Kf.prototype,"topSpacingZero",void 0);_.g([_.U({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.N("design:type",Boolean)],Kf.prototype,"showButton",void 0);_.g([_.U(),_.N("design:type",Boolean)],Kf.prototype,"firstCommentsLoaded",void 0);_.g([_.U(),_.N("design:type",Object)],Kf.prototype,"continuationIsInitialLoad",void 0);
_.g([_.U({reflectToAttribute:!0,readOnly:!0}),_.N("design:type",Boolean)],Kf.prototype,"itemDismissed",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.N("design:type",String)],Kf.prototype,"sectionIdentifier",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.N("design:type",String)],Kf.prototype,"fitContainer",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.N("design:type",Boolean)],Kf.prototype,"hasDestinationShelfRenderer",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.N("design:type",Boolean)],Kf.prototype,"staticCommentsHeader",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Kf.prototype,"enableSqueezebackPanels",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Kf.prototype,"enableAnchoredPanel",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.N("design:type",Boolean)],Kf.prototype,"hasSectionGroupViewModel",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.N("design:type",Boolean)],Kf.prototype,"hasQrCodeRenderer",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.N("design:type",Boolean)],Kf.prototype,"suppressDisclaimerSeparator",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.N("design:type",String)],Kf.prototype,"headerStyle",void 0);_.g([_.R("isSearch"),_.N("design:type",Object),_.N("design:paramtypes",[])],Kf.prototype,"lockupExperiments",null);
_.g([_.R("isSearch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kf.prototype,"typographyBump",null);_.g([_.BF("#header"),_.N("design:type",HTMLElement)],Kf.prototype,"header",void 0);_.g([_.JU("notSticky"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kf.prototype,"dispatchChipBarIsSticky",null);
_.g([_.JU("commentsHidePanelButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kf.prototype,"commentsHidePanelButtonChanged",null);_.g([_.PF("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Kf.prototype,"onRetrieveLocation",null);
_.g([_.PF("yt-load-reload-continuation"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Function]),_.N("design:returntype")],Kf.prototype,"onLoadReloadContinuation",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kf.prototype,"onServiceRequestCompleted",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kf.prototype,"dataChanged",null);
_.g([_.wn("data.contents.length"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kf.prototype,"observeDataContentsLength",null);_.g([_.PF("yt-dismissible-item-dismissed"),_.PF("yt-dismissible-item-undismissed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Kf.prototype,"onYtDismissibleItemDismissedChange",null);
_.g([_.JU("continuationShowButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kf.prototype,"continuationShowButtonChanged",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kf.prototype,"dataChangedForBinding",null);_.g([_.T({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Kf);
_.F(Kf,"ytd-item-section-renderer",function(){if(EIB!==void 0)return EIB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return EIB=u},{mode:1});var pTH;var B9h=_.o7(_.QQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var i2H={},jvq=(i2H[0]={title:_.GI(_.QQ("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.GI(_.QQ("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:rZ("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},i2H[1]={title:_.GI(_.QQ("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:rZ("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},i2H);_.E4("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var lz=function(){var u=_.Q.apply(this,arguments)||this;u.allVideosCount=0;u.allPlaylistCount=0;u.isOnline=!1;u.shouldRenderDownloadsBanner=!1;u.shouldRenderDownloadsBannerUpsell=!1;u.hasOptedIntoSmartDownloads=!1;u.areAllSmartDownloadsDeleted=!1;u.smartDownloadsCompleted=!1;return u};
_.c(lz,_.Q);lz.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
lz.prototype.attached=function(){this.downloadsToRenderChanged()};
lz.prototype.detached=function(){this.set("renderableData",{})};
lz.prototype.downloadsToRenderChanged=function(){var u=_.Mu().getState().entities,K=_.NK(u),l=_.S("kevlar_playlist_dl_page_killswitch")?viq(u):_.kw(u),D=_.WKZ(u),d=_.$GH(u),C=_.ih(K);u=_.ZJ(u);this.set("renderableData",iFr(l,K,D,d,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,C,u))};
lz.prototype.downloadsToRenderChanged=lz.prototype.downloadsToRenderChanged;_.g([_.e(_.Ll),_.N("design:type",Object)],lz.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],lz.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],lz.prototype,"renderableData",void 0);_.g([_.U({selector:_.UGR}),_.N("design:type",Object)],lz.prototype,"allVideosCount",void 0);_.g([_.U({selector:z7r}),_.N("design:type",Object)],lz.prototype,"allPlaylistCount",void 0);_.g([_.U({selector:_.hu}),_.N("design:type",Object)],lz.prototype,"isOnline",void 0);_.g([_.U({selector:_.p3q}),_.N("design:type",Object)],lz.prototype,"shouldRenderDownloadsBanner",void 0);
_.g([_.U({selector:_.FKR}),_.N("design:type",Object)],lz.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.g([_.U({selector:_.itL}),_.N("design:type",Object)],lz.prototype,"hasOptedIntoSmartDownloads",void 0);_.g([_.U({selector:_.Tzq}),_.N("design:type",Object)],lz.prototype,"areAllSmartDownloadsDeleted",void 0);_.g([_.U({selector:w3w}),_.N("design:type",Object)],lz.prototype,"smartDownloadsCompleted",void 0);
_.g([_.wn("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lz.prototype,"downloadsToRenderChanged",null);_.g([_.T({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],lz);
_.F(lz,"ytd-offline-item-section-renderer",function(){if(pTH!==void 0)return pTH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return pTH=u},
{mode:1});var TXw;var wTk;var DR=function(){return _.Q.apply(this,arguments)||this};
_.c(DR,_.Q);
DR.prototype.onDataChanged=function(){if(this.JSC$16526_lastData){var u=this.getFilterClass(this.JSC$16526_lastData.status);u&&this.hostElement.classList.remove(u)}var K;(u=this.getFilterClass((K=this.data)==null?void 0:K.status))&&this.hostElement.classList.add(u);u==="selected"?_.bi(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.bi(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");u==="disabled"?_.bi(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.bi(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16526_lastData=this.data};
DR.prototype.getFilterClass=function(u){switch(u){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
DR.prototype.onDataChanged=DR.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],DR.prototype,"data",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DR.prototype,"onDataChanged",null);_.g([_.T({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],DR);
_.F(DR,"ytd-search-filter-renderer",function(){if(wTk!==void 0)return wTk;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return wTk=u},{mode:_.zW("kevlar_poly_si_batch_j075")?1:2});var dg=function(){return _.Q.apply(this,arguments)||this};
_.c(dg,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],dg.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],dg.prototype,"data",void 0);_.g([_.T({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],dg);
_.F(dg,"ytd-search-filter-group-renderer",function(){if(TXw!==void 0)return TXw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return TXw=u},{mode:_.zW("kevlar_poly_si_batch_j075")?1:2});var Fuw;var Cf=function(){return _.Q.apply(this,arguments)||this};
_.c(Cf,_.Q);Cf.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.fW());this.isCollapsed=!this.isCollapsed};
Cf.prototype.navigateToAboutTheseResultsPage=function(){var u=mJ("https://www.youtube.com/howyoutubeworks/product-features/search/");u?_.s2(window,u,"_blank"):_.uZ(Error("Sh"))};
Cf.prototype.dataChanged=function(){this.isCollapsed=!0};
Cf.prototype.computeShowBottomBorder=function(){var u,K,l;return!!((u=this.data)==null?0:(K=u.button)==null?0:K.toggleButtonRenderer)||!((l=this.data)==null||!l.aboutTheseResultsButton)};
Cf.prototype.dataChanged=Cf.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Cf.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Cf.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.N("design:type",Boolean)],Cf.prototype,"showBottomBorder",void 0);_.g([_.U(),_.N("design:type",Boolean)],Cf.prototype,"renderCollapsibleMenu",void 0);
_.g([_.U(),_.N("design:type",Boolean)],Cf.prototype,"isCollapsed",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cf.prototype,"dataChanged",null);_.g([_.T({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Cf);
_.F(Cf,"ytd-search-sub-menu-renderer",function(){if(Fuw!==void 0)return Fuw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Fuw=u},{mode:1});var V6N;var gjA=new _.G$("SECTION_LIST_RENDERER_TOKEN");var NXH;var IG=function(){return _.Q.apply(this,arguments)||this};
_.c(IG,_.Q);IG.prototype.computeStyle=function(u){return u?u.toLowerCase().replace(/_/g,"-"):""};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],IG.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],IG.prototype,"headerStyle",void 0);_.g([_.T({is:"ytd-text-header-renderer",disableElementRegistration:!0})],IG);
_.F(IG,"ytd-text-header-renderer",function(){if(NXH!==void 0)return NXH;var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return NXH=u},{mode:1});var koN;var yP=function(){return _.Q.apply(this,arguments)||this};
_.c(yP,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],yP.prototype,"data",void 0);_.g([_.T({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],yP);
_.F(yP,"ytd-minor-moment-header-renderer",function(){if(koN!==void 0)return koN;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return koN=u},{mode:1});var Z2B;var sM=function(){return _.Q.apply(this,arguments)||this};
_.c(sM,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],sM.prototype,"data",void 0);_.g([_.T({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],sM);
_.F(sM,"ytd-minor-moment-setting-alert-renderer",function(){if(Z2B!==void 0)return Z2B;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Z2B=u},{mode:1});var YrN;var AMk;var oG=function(){var u=_.Q.apply(this,arguments)||this;u.booleanSettingById=!1;u.smartDownloadsEnabledVE=_.Yo(128287);u.smartDownloadsDisabledVE=_.Yo(128286);u.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return u};
_.c(oG,_.Q);_.I=oG.prototype;_.I.attachSmartDownloadsSettingVes=function(){var u;this.activeVeForLogging||((u=this.data)==null?void 0:u.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.RD(_.iT(),this.smartDownloadsEnabledVE),_.RD(_.iT(),this.smartDownloadsDisabledVE))};
_.I.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.xs(this.hostElement,"yt-settings-switch-ready")};
_.I.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.I.onSwitchChange=function(u){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(u=_.HF(u).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.S("kevlar_settings_switch_resolve_command_killswitch")?_.GB().resolve(_.t9).resolveCommand(u,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(u)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.I.handleUpdateSettingsSwitch=function(u){(u=_.b(u,HX0))&&this.data&&this.data.id===u.id&&this.set("data.enabled",!!u.enabled)};
_.I.onToggleSettingsSwitch=function(u,K){this.data&&this.data.id===u&&this.set("data.enabled",K!=null?K:!this.data.enabled)};
_.I.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.v3.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.I.maybeLogSmartDownloadsSettingVisibility=function(){var u=_.AC(),K;u&&((K=this.data)==null?void 0:K.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.If(u,[this.smartDownloadsEnabledVE]),_.yM(u,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.If(u,[this.smartDownloadsDisabledVE]),_.yM(u,[this.smartDownloadsEnabledVE])))};
_.I.maybeLogSmartDownloadsSettingClick=function(){var u;((u=this.data)==null?void 0:u.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.ft(_.iT(),this.activeVeForLogging)};
_.I.updateDataEnabledFromBinding=function(u){this.set("data.enabled",u.detail.value)};
_.MN.Object.defineProperties(oG.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var u=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!u&&(u=this.ytRendererBehavior.getSimpleString(this.data.title));return u}}});
oG.prototype.dataChanged=oG.prototype.dataChanged;_.g([_.e(_.Ll),_.N("design:type",Object)],oG.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],oG.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],oG.prototype,"ytComponentBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],oG.prototype,"data",void 0);_.g([_.U({selector:function(u,K){if(Object.keys(u==null?void 0:u.entities).length)switch(K){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return GEy(u.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.N("design:type",Object)],oG.prototype,"booleanSettingById",void 0);_.g([_.U(),_.N("design:type",_.Z8)],oG.prototype,"activeVeForLogging",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],oG.prototype,"toggleAriaLabel",null);_.g([_.wn("data"),_.wn("booleanSettingById"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oG.prototype,"dataChanged",null);
_.g([_.T({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],oG);
_.F(oG,"ytd-settings-switch-renderer",function(){if(AMk!==void 0)return AMk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return AMk=u},{mode:1});var Wl=function(){return _.Q.apply(this,arguments)||this};
_.c(Wl,_.Q);Wl.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}}}}};
_.MN.Object.defineProperties(Wl.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var u=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(u+=" remove-left-margin");this.data.extraBottomSpace&&(u+=" extra-bottom-space");return u}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Wl.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Wl.prototype,"data",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wl.prototype,"contentsClassName",null);_.g([_.T({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],Wl);
_.F(Wl,"ytd-minor-moment-setting-section-renderer",function(){if(YrN!==void 0)return YrN;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return YrN=u},{mode:1});var XT0;var Hl=function(){return _.Q.apply(this,arguments)||this};
_.c(Hl,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Hl.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Hl.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],Hl);
_.F(Hl,"ytd-empty-product-details-renderer",function(){if(XT0!==void 0)return XT0;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return XT0=u},{mode:1});var mMR;var h6k;var MV=function(){var u=_.Q.apply(this,arguments)||this;u.expanded=!0;return u};
_.c(MV,_.Q);MV.prototype.getBadgeRowClass=function(u,K,l){for(var D=_.y(this.hostElement.querySelectorAll("yt-img-shadow")),d=D.next();!d.done;d=D.next())d.value.onShow();u=u.selected;return l?u!==-1?u===K?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(u!==void 0?u:0)===K?"badge-line":"badge-hidden"};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],MV.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],MV.prototype,"expanded",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],MV);
_.F(MV,"ytd-sponsorships-loyalty-badges-renderer",function(){if(h6k!==void 0)return h6k;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return h6k=u},{mode:1});var Eja;var qV=function(){var u=_.Q.apply(this,arguments)||this;u.expanded=!0;return u};
_.c(qV,_.Q);qV.prototype.getContainerClasses=function(u,K){u=u?"expanded":"collapsed";K&&(u+=" item");return u};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],qV.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],qV.prototype,"expanded",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],qV);
_.F(qV,"ytd-sponsorships-perk-renderer",function(){if(Eja!==void 0)return Eja;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Eja=u},{mode:1});var LuA;var $m=function(){var u=_.Q.apply(this,arguments)||this;u.expanded=!0;return u};
_.c($m,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],$m.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],$m.prototype,"expanded",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],$m);
_.F($m,"ytd-sponsorships-perks-renderer",function(){if(LuA!==void 0)return LuA;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return LuA=u},{mode:1});var nf=function(){var u=_.Q.apply(this,arguments)||this;u.isCollapsed=!1;return u};
_.c(nf,_.Q);nf.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
nf.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
nf.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var u;this.expandCollapseButton=_.b((u=this.data)==null?void 0:u.expandButton,_.lF)}else{var K;this.expandCollapseButton=_.b((K=this.data)==null?void 0:K.collapseButton,_.lF)}};
nf.prototype.updateExpandCollapseButton=nf.prototype.updateExpandCollapseButton;nf.prototype.onDataChanged=nf.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],nf.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nf.prototype,"isCollapsed",void 0);_.g([_.U(),_.N("design:type",Object)],nf.prototype,"expandCollapseButton",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nf.prototype,"onDataChanged",null);_.g([_.wn("data","isCollapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nf.prototype,"updateExpandCollapseButton",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],nf);
_.F(nf,"ytd-sponsorships-expandable-perks-renderer",function(){if(mMR!==void 0)return mMR;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return mMR=u},{mode:1});var ueC;var rg=function(){return _.Q.apply(this,arguments)||this};
_.c(rg,_.Q);rg.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],rg.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],rg.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],rg);
_.F(rg,"ytd-sponsorships-actionable-message-renderer",function(){if(ueC!==void 0)return ueC;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return ueC=u},{mode:1});var KkR;var vl=function(){return _.Q.apply(this,arguments)||this};
_.c(vl,_.Q);_.I=vl.prototype;_.I.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.I.getExpansionIcon=function(u){return u?"COLLAPSE":"EXPAND"};
_.I.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.I.computeMessageContainerStyle=function(u){var K=u.expandableItems?" style-clickable":"";return u.messageContainerStyle?u.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+K:"style-unspecified"+K};
_.I.isSinglePerk=function(u){return!!u.messageContainerStyle&&(u.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||u.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.I.onExpandedChanged=function(){var u=this;if(this.expanded)for(var K=_.y(this.hostElement.querySelectorAll("yt-img-shadow")),l=K.next();!l.done;l=K.next())l.value.onShow();_.W_(this,function(){_.xs(u.hostElement,"yt-refit")})};
_.I.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
vl.prototype.onDataChanged=vl.prototype.onDataChanged;vl.prototype.onExpandedChanged=vl.prototype.onExpandedChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],vl.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],vl.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],vl.prototype,"expanded",void 0);
_.g([_.JU("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vl.prototype,"onExpandedChanged",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vl.prototype,"onDataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],vl);
_.F(vl,"ytd-sponsorships-expandable-message-renderer",function(){if(KkR!==void 0)return KkR;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return KkR=u},{mode:_.zW("kevlar_poly_si_batch_j028")?1:2});var lm2;var GJ=function(){return _.Q.apply(this,arguments)||this};
_.c(GJ,_.Q);GJ.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"}}}}};
GJ.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.b(this.data.endButton,_.lF).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
GJ.prototype.onDataChanged=GJ.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],GJ.prototype,"data",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GJ.prototype,"onDataChanged",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],GJ);
_.F(GJ,"ytd-sponsorships-heading-renderer",function(){if(lm2!==void 0)return lm2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return lm2=u},{mode:1});var Dfa;var tk=function(){return _.Q.apply(this,arguments)||this};
_.c(tk,_.Q);_.g([_.U(),_.N("design:type",Object)],tk.prototype,"data",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],tk);
_.F(tk,"ytd-sponsorships-links-renderer",function(){if(Dfa!==void 0)return Dfa;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Dfa=u},{mode:1});var df0;var xm=function(){return _.Q.apply(this,arguments)||this};
_.c(xm,_.Q);_.I=xm.prototype;_.I.onDataChanged=function(){if(this.data&&this.data.expandableItems){var u;(u=_.bi(this.hostElement).querySelector("tp-yt-paper-button"))==null||u.setAttribute("role","button")}else{var K;(K=_.bi(this.hostElement).querySelector("tp-yt-paper-button"))==null||K.removeAttribute("role")}};
_.I.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.I.getExpansionIcon=function(u){return u?"COLLAPSE":"EXPAND"};
_.I.getTileClasses=function(u){return u?"tile expandable-tile":"tile"};
_.I.getButtonDisabled=function(u){return u?void 0:""};
xm.prototype.onDataChanged=xm.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],xm.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],xm.prototype,"expanded",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xm.prototype,"onDataChanged",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],xm);
_.F(xm,"ytd-sponsorships-list-tile-renderer",function(){if(df0!==void 0)return df0;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return df0=u},{mode:1});var ClA;var ImS;var Sm=function(){return _.Q.apply(this,arguments)||this};
_.c(Sm,_.Q);Sm.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Sm.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Sm.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],Sm);
_.F(Sm,"ytd-sponsorships-promotion-renderer",function(){if(ImS!==void 0)return ImS;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return ImS=u},{mode:1});var ybB;var bz=function(){return _.Q.apply(this,arguments)||this};
_.c(bz,_.Q);bz.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],bz.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],bz.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],bz);
_.F(bz,"ytd-sponsorships-purchase-option-renderer",function(){if(ybB!==void 0)return ybB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return ybB=u},{mode:1});var scm;var o8k;var Wks=function(){return _.Q.apply(this,arguments)||this};
_.c(Wks,_.Q);_.g([_.U(),_.N("design:type",Object)],Wks.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],Wks);
_.F(Wks,"ytd-ypc-offer-promo-renderer",function(){if(o8k!==void 0)return o8k;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return o8k=u},{mode:1});var OM=function(){return _.Q.apply(this,arguments)||this};
_.c(OM,_.Q);_.I=OM.prototype;
_.I.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"}}}}};
_.I.expansionCTA=function(u,K){return u&&(K?u.collapseCallToAction:u.expansionCallToAction)};
_.I.getExpansionIcon=function(u){return u?"COLLAPSE":"EXPAND"};
_.I.expansionCallToActionTap=function(){var u=this;this.expanded=!this.expanded;_.W_(this,function(){_.xs(u.hostElement,"yt-refit")})};
_.I.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var u,K=(u=this.data)==null?void 0:u.onVisible;K&&this.ytComponentBehavior.resolveCommand(K)};
_.I.computeDisplayTitle=function(u){return!(!u||this.titledisplaystatus!=="show")};
_.I.computeDisplaySeparator=function(){return!1};
_.I.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
OM.prototype.onDataChanged=OM.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],OM.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],OM.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],OM.prototype,"data",void 0);
_.g([_.U({value:!1}),_.N("design:type",Boolean)],OM.prototype,"expanded",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],OM.prototype,"purchaseButtonClicked",void 0);_.g([_.U({reflectToAttribute:!0,value:"show"}),_.N("design:type",String)],OM.prototype,"titledisplaystatus",void 0);_.g([_.U({computed:"computeDisplayTitle(data.title)"}),_.N("design:type",Boolean)],OM.prototype,"displayTitle",void 0);
_.g([_.U({computed:"computeDisplaySeparator(data)"}),_.N("design:type",Boolean)],OM.prototype,"displaySeparator",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OM.prototype,"onDataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],OM);
_.F(OM,"ytd-sponsorships-tier-renderer",function(){if(scm!==void 0)return scm;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return scm=u},{mode:2});var cl=function(){return _.Q.apply(this,arguments)||this};
_.c(cl,_.Q);
cl.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"}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],cl.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],cl.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],cl);
_.F(cl,"ytd-sponsorships-management-renderer",function(){if(ClA!==void 0)return ClA;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return ClA=u},{mode:1});var HBB;var aG=function(){return _.Q.apply(this,arguments)||this};
_.c(aG,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],aG.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],aG);
_.F(aG,"ytd-open-in-native-app-view-model",function(){if(HBB!==void 0)return HBB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return HBB=u},{mode:_.zW("kevlar_poly_si_batch_j028")?1:2});var M7s;var qkN;var $fR=_.oj(["top-"]),n80=_.oj(["bottom-"]),rbS=_.oj(["left-"]),v8a=_.oj(["right-"]),GMs={},t7a=function(u,K,l){u.removeAttribute("top-"+l);u.removeAttribute("bottom-"+l);u.removeAttribute("left-"+l);u.removeAttribute("right-"+l);K&&(K.top&&_.rm([_.SA($fR)],u,"top-"+l,K.top),K.bottom&&_.rm([_.SA(n80)],u,"bottom-"+l,K.bottom),K.left&&_.rm([_.SA(rbS)],u,"left-"+l,K.left),K.right&&_.rm([_.SA(v8a)],u,"right-"+l,K.right))};
GMs.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(u){var K,l=_.bi((K=this.hostElement)!=null?K:this),D;K=this.cardItemBoxBehaviorMarginTargetId&&l?l.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(D=this.hostElement)!=null?D:this;t7a(K,u,"margin")},
cardItemContainerPaddingChanged_:function(u){var K,l=_.bi((K=this.hostElement)!=null?K:this),D;K=this.cardItemBoxBehaviorPaddingTargetId&&l?l.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(D=this.hostElement)!=null?D:this;t7a(K,u,"padding")}}];var zJ={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 xfa;var Sks;var em=function(){return _.Q.apply(this,arguments)||this};
_.c(em,_.Q);em.prototype.textColorChanged_=function(){this.hostElement.style.color=zJ[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
em.prototype.textColorChanged_=em.prototype.textColorChanged_;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.g([_.e(GMs.YtCardItemBoxBehavior),_.N("design:type",Object)],em.prototype,"ytCardItemBoxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],em.prototype,"data",void 0);_.g([_.JU("data.textColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],em.prototype,"textColorChanged_",null);
_.g([_.E9({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],em);
_.F(em,"yt-card-item-text-renderer",function(){if(Sks===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;xfa===void 0&&(xfa=document.createElement("template"));var D=xfa;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Sks=u}u=Sks;return u},{mode:2});var bBk;var OBw;var RG=function(){return _.Q.apply(this,arguments)||this};
_.c(RG,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],RG.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],RG.prototype,"data",void 0);_.g([_.E9({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],RG);
_.F(RG,"yt-card-item-badge-renderer",function(){if(OBw===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;bBk===void 0&&(bBk=document.createElement("template"));var D=bBk;l.call(K,D.content.cloneNode(!0),u.content.firstChild);OBw=u}u=OBw;return u},{mode:2});var cba;var amN;var UM=function(){return _.Q.apply(this,arguments)||this};
_.c(UM,_.Q);UM.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],UM.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],UM.prototype,"data",void 0);_.g([_.E9({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],UM);
_.F(UM,"yt-card-item-text-collection-renderer",function(){if(amN===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;cba===void 0&&(cba=document.createElement("template"));var D=cba;l.call(K,D.content.cloneNode(!0),u.content.firstChild);amN=u}u=amN;return u},{mode:2});var zZm;var eZs;var ff=function(){return _.Q.apply(this,arguments)||this};
_.c(ff,_.Q);ff.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]]"}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ff.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ff.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ff.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Number)],ff.prototype,"iconSize",void 0);_.g([_.E9({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],ff);
_.F(ff,"yt-card-item-text-with-button-renderer",function(){if(eZs===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;zZm===void 0&&(zZm=document.createElement("template"));var D=zZm;l.call(K,D.content.cloneNode(!0),u.content.firstChild);eZs=u}u=eZs;return u},{mode:2});var QP=function(){return _.Q.apply(this,arguments)||this};
_.c(QP,_.Q);QP.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"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],QP.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],QP.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],QP.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],QP);
_.F(QP,"ytd-commerce-cart-summary-line-item-renderer",function(){if(qkN!==void 0)return qkN;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return qkN=u},{mode:1});_.E4("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Pl=function(){var u=_.Q.apply(this,arguments)||this;u.hidden=!1;return u};
_.c(Pl,_.Q);_.I=Pl.prototype;_.I.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"}}}}};
_.I.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.I.updateSummary=function(){var u=this.commerceCartCheckoutButtonEntity,K;if(((K=this.data)==null?0:K.cartButton)&&u.checkoutSummaryText){var l,D=mU((l=this.data)==null?void 0:l.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+D+".cardItemTextRenderer.text",h3(u.checkoutSummaryText));if(u.checkoutDetailText){var d;l=mU((d=this.data)==null?void 0:d.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+l+".cardItemTextRenderer.text",h3(u.checkoutDetailText))}if(u.checkoutAdditionalMetadataText){var C;
d=mU((C=this.data)==null?void 0:C.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+d+".cardItemTextRenderer.text",h3(u.checkoutAdditionalMetadataText))}}else u.estimatedTotalPrice&&(C=mU((D=this.data)==null?void 0:D.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+C+".cardItemTextRenderer.text",h3(u.estimatedTotalPrice)))};
_.I.updateIsHidden=function(){var u,K=(u=this.commerceCartCheckoutButtonEntity)==null?void 0:u.isHidden;K!==void 0&&(this.hidden=K)};
_.I.updateCheckoutButton=function(){var u,K=(u=this.commerceCartCheckoutButtonEntity)==null?void 0:u.isDisabled;K!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",K);var l;u=(l=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:l.innertubeCommand;u!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",u);var D;l=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.checkoutButtonText;l!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:l})};
Pl.prototype.entityChanged=Pl.prototype.entityChanged;_.g([_.e(_.Ll),_.N("design:type",Object)],Pl.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Pl.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Pl.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Pl.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Pl.prototype,"fullWidth",void 0);_.g([_.U(),_.N("design:type",Object)],Pl.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Pl.prototype,"compact",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Pl.prototype,"hidden",void 0);
_.g([_.U({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:axn}),_.N("design:type",Object)],Pl.prototype,"commerceCartCheckoutButtonEntity",void 0);_.g([_.JU("commerceCartCheckoutButtonEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pl.prototype,"entityChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Pl);
_.F(Pl,"ytd-commerce-cart-checkout-button-renderer",function(){if(M7s!==void 0)return M7s;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return M7s=u},{mode:2});var RZH;_.Ufa={};
_.Ufa.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",_.Ql(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Ql(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(u){!this.tappableItemBehaviorTapEnabled||u.keyCode!==13&&u.keyCode!==32||u.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var u=this.data.onTap;u.ypcGetCartEndpoint?(_.c0(this.hostElement,[u]),this.tappableItemBehaviorTapEnabled=!1):u.ypcOffersEndpoint?_.c0(this.hostElement,[u]):_.ay(this.hostElement,[u],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(u){this.tappableItemBehaviorTapEnabled=!!u},
tappableItemBehaviorOnTapEnabledChanged_:function(){var u=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(u.setAttribute("tabIndex",0),u.setAttribute("role","button")):(u.removeAttribute("tabIndex"),u.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(u){u.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var fmk;var Qcw;var Jk=function(){return _.Q.apply(this,arguments)||this};
_.c(Jk,_.Q);Jk.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.L4("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.L4("sharingToggleButtonAndDefaultButton")}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Jk.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Jk.prototype,"data",void 0);_.g([_.E9({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Jk);
_.F(Jk,"yt-card-item-actions-renderer",function(){if(Qcw===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;fmk===void 0&&(fmk=document.createElement("template"));var D=fmk;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Qcw=u}u=Qcw;return u},{mode:2});var Plw;var Jbk;var jcR;var BKC;var pxS;var iBa;var jm=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return u};
_.c(jm,_.Q);jm.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
jm.prototype.handleDarkModeToggledAction_=function(u){this.isDarkTheme_=u};
jm.prototype.computeThemeImage_=function(u,K){if(!u||!u.imageLight)return!1;this.isCircular_=u.isCircular;u.imageWidth&&(this.hostElement.style.width=u.imageWidth+"px");u.imageHeight&&(this.hostElement.style.height=u.imageHeight+"px");u.borderWidth&&(this.image.style.borderWidth=u.borderWidth+"px",this.image.style.borderStyle="solid");u.borderColor&&(this.image.style.borderColor=_.Kg(u.borderColor));return K&&u.imageDark?u.imageDark:u.imageLight};
jm.prototype.computeThemeIcon_=function(u){var K,l;if(!(u==null?0:(K=u.themedIcon)==null?0:(l=K.icon)==null?0:l.iconType))return!1;this.icon.style.color=zJ[u.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(u.imageWidth||18)+"px";this.icon.style.height=(u.imageHeight||18)+"px";return _.fr(u.themedIcon.icon.iconType)};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],jm.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(GMs.YtCardItemBoxBehavior),_.N("design:type",Object)],jm.prototype,"ytCardItemBoxBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],jm.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],jm.prototype,"data",void 0);
_.g([_.U({value:!1}),_.N("design:type",Boolean)],jm.prototype,"fit",void 0);_.g([_.U(),_.N("design:type",Boolean)],jm.prototype,"isDarkTheme_",void 0);_.g([_.U({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.N("design:type",Object)],jm.prototype,"themeImage_",void 0);_.g([_.U({computed:"computeThemeIcon_(data)"}),_.N("design:type",Object)],jm.prototype,"themeIcon_",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Object)],jm.prototype,"isCircular_",void 0);
_.g([_.BF("#image"),_.N("design:type",Object)],jm.prototype,"image",void 0);_.g([_.BF("#icon"),_.N("design:type",Object)],jm.prototype,"icon",void 0);_.g([_.E9({is:"yt-themed-image-renderer",disableElementRegistration:!0})],jm);
_.F(jm,"yt-themed-image-renderer",function(){if(iBa===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;pxS===void 0&&(pxS=document.createElement("template"));var D=pxS;l.call(K,D.content.cloneNode(!0),u.content.firstChild);iBa=u}u=iBa;return u},{mode:2});var Bl=function(){return _.Q.apply(this,arguments)||this};
_.c(Bl,_.Q);Bl.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"}}}}};
Bl.prototype.computeImagePlacement_=function(u){return u||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Bl.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Bl.prototype,"data",void 0);_.g([_.U({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.N("design:type",String)],Bl.prototype,"imagePlacement",void 0);
_.g([_.E9({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Bl);
_.F(Bl,"yt-card-item-text-with-image-renderer",function(){if(BKC===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;jcR===void 0&&(jcR=document.createElement("template"));var D=jcR;l.call(K,D.content.cloneNode(!0),u.content.firstChild);BKC=u}u=BKC;return u},{mode:2});var pf=function(){return _.Q.apply(this,arguments)||this};
_.c(pf,_.Q);pf.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"}}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],pf.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],pf.prototype,"data",void 0);_.g([_.E9({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],pf);
_.F(pf,"yt-card-item-error-renderer",function(){if(Jbk===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Plw===void 0&&(Plw=document.createElement("template"));var D=Plw;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Jbk=u}u=Jbk;return u},{mode:2});var TKB;var wxa;_.E4("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var iz=function(){return _.Q.apply(this,arguments)||this};
_.c(iz,_.Q);_.I=iz.prototype;
_.I.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"}}}}};
_.I.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.I.backgroundColorChanged_=function(){var u,K=(u=this.data)==null?void 0:u.backgroundColor;u=zJ[K||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.bi(this.hostElement).querySelector("#main-content").style.backgroundColor=u};
_.I.headerPromoBackgroundColorChanged_=function(){var u,K=(u=this.data)==null?void 0:u.headerPromoBackgroundColor;u=zJ[K||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.bi(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=u};
_.I.errorRendererVisibilityChanged_=function(){var u=this.isExpanded_,K;this.isErrorRendererVisible_=!((K=this.data)==null||!K.errorRenderer)&&!u};
_.I.onYtToggleButton_=function(u,K){this.isExpanded_=K.toggled};
iz.prototype.onYtToggleButton_=iz.prototype.onYtToggleButton_;iz.prototype.errorRendererVisibilityChanged_=iz.prototype.errorRendererVisibilityChanged_;iz.prototype.headerPromoBackgroundColorChanged_=iz.prototype.headerPromoBackgroundColorChanged_;iz.prototype.backgroundColorChanged_=iz.prototype.backgroundColorChanged_;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],iz.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(GMs.YtCardItemBoxBehavior),_.N("design:type",Object)],iz.prototype,"ytCardItemBoxBehavior",void 0);_.g([_.e(_.Ufa.YtTappableItemBehavior),_.N("design:type",Object)],iz.prototype,"ytTappableItemBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],iz.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],iz.prototype,"isExpanded_",void 0);
_.g([_.U({value:!1}),_.N("design:type",Boolean)],iz.prototype,"isErrorRendererVisible_",void 0);_.g([_.JU("data.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iz.prototype,"backgroundColorChanged_",null);_.g([_.JU("data.headerPromoBackgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iz.prototype,"headerPromoBackgroundColorChanged_",null);
_.g([_.JU("data.errorRenderer","isExpanded_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iz.prototype,"errorRendererVisibilityChanged_",null);_.g([_.PF("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Object]),_.N("design:returntype")],iz.prototype,"onYtToggleButton_",null);_.g([_.E9({is:"yt-card-item-renderer",disableElementRegistration:!0})],iz);
_.F(iz,"yt-card-item-renderer",function(){if(wxa===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;TKB===void 0&&(TKB=document.createElement("template"));var D=TKB;l.call(K,D.content.cloneNode(!0),u.content.firstChild);wxa=u}u=wxa;return u},{mode:2});_.E4("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var TJ=function(){var u=_.Q.apply(this,arguments)||this;u.hidden=!1;return u};
_.c(TJ,_.Q);_.I=TJ.prototype;_.I.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.I.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.I.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var u,K=(u=this.commerceCartHeaderEntity)==null?void 0:u.isHidden;K!==void 0&&(this.hidden=K)}};
_.I.updateTitle=function(){var u=this.commerceCartHeaderEntity.isDisabled,K,l,D=(l=_.b((K=this.data)==null?void 0:K.item,cQH))==null?void 0:l.headingRenderer;D&&(K=mU(D,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+K+".0.cardItemTextRenderer.textColor",u?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.I.updateSummaryText=function(){var u=this.commerceCartHeaderEntity;if(this.compact){var K,l,D=(l=_.b((K=this.data)==null?void 0:K.item,cQH))==null?void 0:l.headingRenderer;D&&(K=mU(D,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+K+".1.cardItemTextRenderer.text",u.shortHeaderSummaryText?h3(u.shortHeaderSummaryText):u.headerSummaryText?h3(u.headerSummaryText):""))}else{var d;if(K=(d=_.b((D=this.data)==null?void 0:D.item,cQH))==null?void 0:d.additionalInfoRenderer)K=mU(K,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+K+".text",u.headerSummaryText?h3(u.headerSummaryText):"")}};
_.I.updateCheckoutButton=function(){var u=this.commerceCartHeaderEntity,K,l,D=(l=_.b((K=this.data)==null?void 0:K.item,cQH))==null?void 0:l.additionalInfoRenderer;K=mU(D,"buttonRenderer");var d;l=(d=this.commerceCartHeaderEntity)==null?void 0:d.isButtonDisabled;var C;d=(C=this.commerceCartHeaderEntity)==null?void 0:C.isButtonHidden;l!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+K+".buttonRenderer.isDisabled",l);d!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
d);var W;u=(W=u.checkoutButtonCommand)==null?void 0:W.innertubeCommand;u!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+K+".buttonRenderer.command",u)};
TJ.prototype.entityChanged=TJ.prototype.entityChanged;_.g([_.e(_.Ll),_.N("design:type",Object)],TJ.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],TJ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],TJ.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],TJ.prototype,"compact",void 0);_.g([_.U({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(u,K){return _.eZ(u.entities,"commerceCartHeaderEntity",K)}}),
_.N("design:type",Object)],TJ.prototype,"commerceCartHeaderEntity",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],TJ.prototype,"hidden",void 0);_.g([_.JU("commerceCartHeaderEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TJ.prototype,"entityChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],TJ);
_.F(TJ,"ytd-commerce-cart-header-renderer",function(){if(RZH!==void 0)return RZH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return RZH=u},{mode:1});var Fkm;var V7a=_.wR(function(u,K){var l;return(l=u.onChangeCallback)==null?void 0:l.call(u,K)},1E3),g82=_.rf(function(u){var K=u.data;
var l=u.iconMinus;u=u.iconPlus;var D=function(){return!!K().disabled},d=_.y(_.On(0,void 0,"r56zNb")),C=d.next().value,W=d.next().value;
d={};d=_.JB("yt-spec-quantity-incrementer-shape__icon",(d["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return D()||C()===(K().onRemoveCommand?0:1)},d));
var M={};M=_.JB("yt-spec-quantity-incrementer-shape__icon",(M["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return C()>=K().maxValue||D()},M));
var q={};q=_.JB("yt-spec-quantity-incrementer-shape__text",(q["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return C()>K().maxValue},q["yt-spec-quantity-incrementer-shape__text--text-disabled"]=D,q));
var v=_.p4(function(){if(C()===1){var t,x;(x=(t=K()).onRemoveCommand)==null||x.call(t)}t=C()>K().maxValue?K().maxValue:C()-1;W(t);V7a(K(),t);return!1}),G=_.p4(function(){if(C()===K().maxValue)return!1;
var t=C()+1;W(t);V7a(K(),t);return!1});
_.N_(function(){W(K().value)});
return _.n("quantity-incrementer-shape",null,_.n("div",{class:"yt-spec-quantity-incrementer-shape"},_.n("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return C()===(K().onRemoveCommand?0:1)||D()},
"aria-label":function(){return C()!==1?K().minusLabel:K().minimumReachedLabel},
"on:click":v},_.n(_.ko,{model:{circular:!0}}),_.n("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.n("div",{class:d},l()))),_.n("div",{class:q},C),_.n("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return C()>=K().maxValue||D()},
"aria-label":function(){return C()!==K().maxValue?K().plusLabel:K().maximumReachedLabel},
"on:click":G},_.n(_.ko,{model:{circular:!0}}),_.n("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.n("div",{class:M},u())))))},"ce");_.SX(_.rf(function(u){function K(){l().onRemoveCommand&&_.IT(l().onRemoveCommand)}
var l=u.data;var D=_.ie(MEZ,function(){return l().quantityIncrementerEntityKey});
return _.n("yt-quantity-incrementer-view-model",null,_.n(g82,{data:function(){var d=l(),C;var W=D()?!((C=D())==null||!C.disabled):!1;var M;C=D()?(M=D())==null?void 0:M.quantity:l().quantity;return Fhw(d,W,K,C)},
iconMinus:function(){return _.n(_.VB,{icon:"BAR_HORIZONTAL",className:_.jX("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.n(_.VB,{icon:"ADD",className:_.jX("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"de"),"yt-quantity-incrementer-view-model",{props:{data:_.M6}});var wg=function(){var u=_.Q.apply(this,arguments)||this;u.compact=!1;u.hasQuantityIncrementer=!1;return u};
_.c(wg,_.Q);wg.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"}}}};
wg.prototype.computeHasQuantityIncrementer=function(){var u;return!!_.b((u=this.data)==null?void 0:u.picker,RDm)};
wg.prototype.onLabelClick=function(){var u;(u=this.dropdownEl)==null||u.open()};
_.g([_.BF("ytd-dropdown-renderer"),_.N("design:type",Object)],wg.prototype,"dropdownEl",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],wg.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],wg.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],wg.prototype,"quantityColor",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],wg.prototype,"compact",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.N("design:type",Object)],wg.prototype,"hasQuantityIncrementer",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],wg);
_.F(wg,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(Fkm!==void 0)return Fkm;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Fkm=u},{mode:1});var NKk;var kMw;var FW=function(){return _.Q.apply(this,arguments)||this};
_.c(FW,_.Q);FW.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
FW.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
FW.prototype.updateTitle=function(){var u=this.disabledCartItemEntity;u.disableActionName&&this.set("data.title",h3(u.disableActionName))};
FW.prototype.updateButton=function(){var u,K=(u=this.disabledCartItemEntity.undoCommand)==null?void 0:u.innertubeCommand;K!==void 0&&(this.set("data.actionButton.buttonRenderer.command",K),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
FW.prototype.entityChanged=FW.prototype.entityChanged;_.g([_.e(_.Ll),_.N("design:type",Object)],FW.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],FW.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(u,K){return _.eZ(u.entities,"disabledCartItemEntity",K)}}),
_.N("design:type",Object)],FW.prototype,"disabledCartItemEntity",void 0);_.g([_.U(),_.N("design:type",Object)],FW.prototype,"data",void 0);_.g([_.JU("disabledCartItemEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FW.prototype,"entityChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],FW);
_.F(FW,"ytd-disabled-cart-item-renderer",function(){if(kMw!==void 0)return kMw;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return kMw=u},{mode:1});_.E4("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var VP=function(){var u=_.Q.apply(this,arguments)||this;u.compact=!1;u.hidden=!1;u.errorHidden=!1;u.noOnTap=!1;return u};
_.c(VP,_.Q);_.I=VP.prototype;
_.I.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"}}}};
_.I.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.I.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var u=this.firstButtonElement;u.alignByText=!0;u.iconAlignByText=!0}};
_.I.computeNoOnTap=function(u){return!u};
_.I.updateQuantityColor=function(){if(this.pickerElement){var u,K=(u=this.commerceCartItemEntity)==null?void 0:u.quantityColor;this.pickerElement.quantityColor=K}};
_.I.updateTotalPriceColor=function(){var u,K=(u=this.commerceCartItemEntity)==null?void 0:u.totalPriceColor;if(K){var l;u=_.b((l=this.data)==null?void 0:l.quantityPicker,zDa);if(l=_.b(u==null?void 0:u.price,alk))l.textColor=K}};
_.I.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var u,K=(u=this.commerceCartItemEntity)==null?void 0:u.isHidden;K!==void 0&&(this.hidden=K)}};
_.I.updateHideErrorMessage=function(){var u,K=(u=this.commerceCartItemEntity)==null?void 0:u.hideErrorMessage;K!==void 0&&(this.errorHidden=K)};
_.I.updateQuantity=function(){var u=this,K,l=(K=this.commerceCartItemEntity)==null?void 0:K.quantity,D;K=(D=this.commerceCartItemEntity)==null?void 0:D.totalPrice;if(l){this.updateTotalPriceColor();this.updateQuantityColor();var d;D=_.b((d=this.data)==null?void 0:d.quantityPicker,zDa);if(d=_.b(D==null?void 0:D.price,alk))d.text=K?{simpleText:K.content}:void 0;if(K=_.b(D==null?void 0:D.picker,RDm))K.quantity=l;var C;if(d=(C=_.b(D==null?void 0:D.picker,UAH))==null?void 0:C.entries){C=!1;K=void 0;d=
_.y(d);for(D=d.next();!D.done;D=d.next())D=D.value,D.dropdownItemRenderer&&(K||(K=D.dropdownItemRenderer),D.dropdownItemRenderer.isSelected=!1,l===D.dropdownItemRenderer.int32Value&&(C=!0,D.dropdownItemRenderer.isSelected=!0));!C&&K&&(K.isSelected=!0)}_.W_(this,function(){var W;u.set("data.quantityPicker",_.k$.unsafeClone((W=u.data)==null?void 0:W.quantityPicker))})}};
VP.prototype.onYtRendererstamperFinished=VP.prototype.onYtRendererstamperFinished;VP.prototype.entityChanged=VP.prototype.entityChanged;_.g([_.U(),_.N("design:type",Object)],VP.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],VP.prototype,"compact",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],VP.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],VP.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],VP.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(u,K){return _.eZ(u.entities,"commerceCartItemEntity",K)}}),
_.N("design:type",Object)],VP.prototype,"commerceCartItemEntity",void 0);_.g([_.U(),_.N("design:type",Object)],VP.prototype,"quantityPicker",void 0);_.g([_.U(),_.N("design:type",Object)],VP.prototype,"compactQuantityPicker",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],VP.prototype,"hidden",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],VP.prototype,"errorHidden",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.N("design:type",Object)],VP.prototype,"noOnTap",void 0);_.g([_.BF("ytd-commerce-cart-item-quantity-picker-renderer"),_.N("design:type",Object)],VP.prototype,"pickerElement",void 0);_.g([_.BF("yt-button-renderer"),_.N("design:type",Element)],VP.prototype,"firstButtonElement",void 0);
_.g([_.JU("commerceCartItemEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VP.prototype,"entityChanged",null);_.g([_.PF("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VP.prototype,"onYtRendererstamperFinished",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],VP);
_.F(VP,"ytd-commerce-cart-item-renderer",function(){if(NKk!==void 0)return NKk;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return NKk=u},{mode:_.zW("kevlar_poly_si_batch_j028")?1:2});var ZBm;var Yka;var gg=function(){return _.Q.apply(this,arguments)||this};
_.c(gg,_.Q);gg.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}}}}}};
gg.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
gg.prototype.updateCheckoutLineItems=function(){var u,K=(u=this.commerceCartCheckoutButtonEntity)==null?void 0:u.checkoutLineItems;K&&(u=K.map(function(l){a:{var D=l.price,d=l.description;switch(l.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":l={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:h3(d),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:h3(D),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:l={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:h3(d),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:h3(D),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return l}),this.set("data.summaryLineItems",u))};
gg.prototype.updateIsHidden=function(){var u,K=(u=this.commerceCartCheckoutButtonEntity)==null?void 0:u.isHidden;K!==void 0&&(this.hostElement.hidden=K)};
gg.prototype.entityChanged=gg.prototype.entityChanged;_.g([_.e(_.Ll),_.N("design:type",Object)],gg.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],gg.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],gg.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],gg.prototype,"data",void 0);_.g([_.U({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:axn}),_.N("design:type",Object)],gg.prototype,"commerceCartCheckoutButtonEntity",void 0);_.g([_.JU("commerceCartCheckoutButtonEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gg.prototype,"entityChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],gg);
_.F(gg,"ytd-commerce-cart-summary-renderer",function(){if(Yka!==void 0)return Yka;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Yka=u},{mode:1});var Aba={};Aba.InjectBehavior=[TLZ.InjectBehavior];var Xxs;var mfa;var NV=function(){return _.Q.apply(this,arguments)||this};
_.c(NV,_.Q);
NV.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:_.L4("menuRenderer")}}};
NV.prototype.onMenuTap=function(u){u.stopPropagation()};
_.MN.Object.defineProperties(NV.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 u,K;return!(((u=this.data)==null||!u.sectionHeading)&&((K=this.data)==null?void 0:K.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var u,K;return!(((u=this.data)==null||!u.image)&&((K=this.data)==null?void 0:K.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var u,K;return!(((u=this.data)==null||!u.menu)&&((K=this.data)==null?void 0:K.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ufa.YtTappableItemBehavior),_.N("design:type",Object)],NV.prototype,"ytTappableItemBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],NV.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("data.accessibilityData"),_.N("design:type",String),_.N("design:paramtypes",[])],NV.prototype,"ariaLabel",null);_.g([_.R("data.sectionHeading","data.layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],NV.prototype,"sectionHeadingVisible",null);_.g([_.R("data.image","data.layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],NV.prototype,"imageVisible",null);
_.g([_.R("data.menu","data.layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],NV.prototype,"menuVisible",null);_.g([_.E9({is:"yt-activity-item-renderer",disableElementRegistration:!0})],NV);
_.F(NV,"yt-activity-item-renderer",function(){if(mfa===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Xxs===void 0&&(Xxs=document.createElement("template"));var D=Xxs;l.call(K,D.content.cloneNode(!0),u.content.firstChild);mfa=u}u=mfa;return u},{mode:2});var hZN;var E8w;var LkC;var u2a;var km=function(){return _.Q.apply(this,arguments)||this};
_.c(km,_.Q);
km.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"}}}}};
km.prototype.backgroundColorChanged_=function(){var u,K=(u=this.data)==null?void 0:u.backgroundColor;this.hostElement.style.backgroundColor=zJ[K||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
km.prototype.backgroundColorChanged_=km.prototype.backgroundColorChanged_;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],km.prototype,"data",void 0);
_.g([_.JU("data.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],km.prototype,"backgroundColorChanged_",null);_.g([_.E9({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],km);
_.F(km,"yt-offer-item-upsell-renderer",function(){if(u2a===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;LkC===void 0&&(LkC=document.createElement("template"));var D=LkC;l.call(K,D.content.cloneNode(!0),u.content.firstChild);u2a=u}u=u2a;return u},{mode:2});_.E4("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var ZR=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};u.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return u};
_.c(ZR,_.Q);_.I=ZR.prototype;
_.I.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:_.L4("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.I.computeContainerStyle_=function(u){return u};
_.I.computeContainerIsHidden_=function(u){return u&&!!u.isHidden};
_.I.computeShowSpinner_=function(u,K){return u&&K==="in-progress"};
_.I.computeShowMoreContentsButton_=function(u,K,l,D,d){return!(!(D&&D.length||d&&d.length&&l)||!u||K)};
_.I.onToggleButton_=function(u){var K=this;u.stopPropagation();this.isExpanded_=u.detail&&u.detail.toggled;var l,D;this.isExpanded_&&!this.data.continuationSection.length&&((l=this.data)==null?0:(D=l.continuation)==null?0:D.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.xs(this.hostElement,"yt-load-next-continuation",function(d){return K.getContinuationUrl_(K.data.continuation.onClickContinuationData,d)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.c0(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.I.onShowMoreContentsButtonClicked_=function(u){var K=this;u.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.xs(this.hostElement,"yt-load-next-continuation",function(l){return K.getContinuationUrl_(K.data.continuations[0].nextContinuationData,l)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.c0(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.I.getContinuationUrl_=function(u,K){var l=u.continuation;u=u.clickTrackingParams;var D=_.AC();u&&D&&_.Wi(D,_.gf(u));return _.Hv(K,{continuation:l})};
_.I.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var u=_.bi(this.hostElement).querySelector("#continuation-section");u&&(u=u.querySelectorAll("ytmusic-item-section-renderer"))&&u.forEach(function(K){return K.classList.add("memberships-and-purchases")})};
_.I.dataChanged_=function(){var u;this.isExpanded_=!((u=this.data)==null||!u.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.I.updateCardOnClickCommand_=function(u){u=_.b(u,rQ2);var K,l;this.data&&((K=this.data)==null?0:K.targetId)&&u&&u.targetId===((l=this.data)==null?void 0:l.targetId)&&u.onClickCommand&&(this.data.onClickCommand=u.onClickCommand,this.isOnClickCommand_=!0)};
_.I.backgroundColorChanged_=function(){var u,K=(u=this.data)==null?void 0:u.backgroundColor;this.hostElement.style.backgroundColor=zJ[K||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
ZR.prototype.backgroundColorChanged_=ZR.prototype.backgroundColorChanged_;ZR.prototype.dataChanged_=ZR.prototype.dataChanged_;ZR.prototype.nextContinuationDataUpdated_=ZR.prototype.nextContinuationDataUpdated_;ZR.prototype.onToggleButton_=ZR.prototype.onToggleButton_;_.g([_.e(_.Ir),_.N("design:type",Object)],ZR.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],ZR.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ZR.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.yr.YtNextContinuationBehavior),_.N("design:type",Object)],ZR.prototype,"ytNextContinuationBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.g([_.e(Aba.InjectBehavior),_.N("design:type",Object)],ZR.prototype,"injectBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ZR.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ZR.prototype,"compact",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ZR.prototype,"isExpanded_",void 0);_.g([_.U({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.N("design:type",String)],ZR.prototype,"containerStyle_",void 0);_.g([_.U({value:"not-started"}),_.N("design:type",String)],ZR.prototype,"continuationStatus_",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.N("design:type",Boolean)],ZR.prototype,"showSpinner_",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],ZR.prototype,"isOnClickCommand_",void 0);_.g([_.U({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.N("design:type",Boolean)],ZR.prototype,"showMoreContentsButton_",void 0);
_.g([_.U({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(u,K){return!K||u.entities?null:_.eZ(u.entities,"cardItemContainerEntity",K)}}),
_.N("design:type",Object)],ZR.prototype,"cardItemContainerEntity_",void 0);_.g([_.PF("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ZR.prototype,"onToggleButton_",null);_.g([_.PF("yt-next-continuation-data-updated"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZR.prototype,"nextContinuationDataUpdated_",null);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZR.prototype,"dataChanged_",null);_.g([_.JU("data.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZR.prototype,"backgroundColorChanged_",null);_.g([_.E9({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],ZR);
_.F(ZR,"yt-card-item-container-renderer",function(){if(E8w===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;hZN===void 0&&(hZN=document.createElement("template"));var D=hZN;l.call(K,D.content.cloneNode(!0),u.content.firstChild);E8w=u}u=E8w;return u},{mode:2});var Ym=function(){return _.Q.apply(this,arguments)||this};
_.c(Ym,_.Q);Ym.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"}}}};
Ym.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Ym.prototype.computeLoadingHidden=function(){var u;return!((u=this.commerceCartPageStateEntity)==null?0:u.cartActionInProgress)};
Ym.prototype.updateNotification=function(){var u,K=(u=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:u.summaryText;K&&this.set("data.cartNotification",h3(K))};
Ym.prototype.notificationEntityChanged=Ym.prototype.notificationEntityChanged;_.g([_.e(_.Ll),_.N("design:type",Object)],Ym.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Ym.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],Ym.prototype,"data",void 0);_.g([_.U({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(u,K){return _.eZ(u.entities,"commerceCartExpandableNotificationEntity",K)}}),
_.N("design:type",Object)],Ym.prototype,"commerceCartExpandableNotificationEntity",void 0);_.g([_.U({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(u,K){return _.eZ(u.entities,"commerceCartPageStateEntity",K)}}),
_.N("design:type",Object)],Ym.prototype,"commerceCartPageStateEntity",void 0);_.g([_.BF("#spinner"),_.N("design:type",HTMLElement)],Ym.prototype,"spinner",void 0);_.g([_.JU("commerceCartExpandableNotificationEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ym.prototype,"notificationEntityChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Ym);
_.F(Ym,"ytd-commerce-cart-renderer",function(){if(ZBm!==void 0)return ZBm;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return ZBm=u},{mode:1});var K4R;var Ak=function(){var u=_.Q.apply(this,arguments)||this;u.bigImage=!1;return u};
_.c(Ak,_.Q);_.MN.Object.defineProperties(Ak.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.placeholderImageUrl}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ak.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ak.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ak.prototype,"bigImage",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ak.prototype,"placeholderImageUrl",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Ak);
_.F(Ak,"ytd-empty-product-shelf-renderer",function(){if(K4R!==void 0)return K4R;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return K4R=u},{mode:1});var lzw;var XW=function(){var u=_.Q.apply(this,arguments)||this;u.itemStyle="link-item";u.watchMetadataRefresh=!1;u.skinnyMode=!1;u.metaPanel=!1;u.inStructuredDescription=!1;u.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};u.updateOnResizeDebouncer=null;return u};
_.c(XW,_.Q);_.I=XW.prototype;_.I.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.I.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"}}}}};
_.I.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.I.attachVEs=function(u){u.trackingParams&&_.iT().graftServerVe(u.trackingParams)};
_.I.handleUpdateMerchShelfAction=function(u){var K=this,l=_.b(u.updateMerchandiseShelfAction.merchandiseShelf,_.mL0);l&&(l.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){K.attachVEs(l);K.data=l},Number(l.renderDelayMs))):(this.attachVEs(l),this.data=l))};
_.I.updateOnResize=function(){if(this.JSC$16694_scrollContainer!==void 0&&this.JSC$16694_scrollContainer.clientWidth!==0&&this.items!==void 0){var u=this.JSC$16694_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-u));this.ytdHorizontalListBehavior.reposition_();var K;switch((K=this.data)==null?void 0:K.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var l,
D;((l=this.data)==null?void 0:(D=l.items)==null?void 0:D.length)===1?this.itemStyle="cta-item":this.itemStyle=u>=740?"large-item":"small-item"}}};
_.I.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.ao(this.updateOnResizeDebouncer,_.qL.after(100),this.updateOnResize)};
XW.prototype.debouncedUpdateOnResize=XW.prototype.debouncedUpdateOnResize;XW.prototype.dataChanged=XW.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],XW.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.S0.YtdHorizontalListBehavior),_.N("design:type",Object)],XW.prototype,"ytdHorizontalListBehavior",void 0);
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],XW.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],XW.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],XW.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],XW.prototype,"itemStyle",void 0);_.g([_.U({value:6}),_.N("design:type",Number)],XW.prototype,"initialCount",void 0);
_.g([_.U({value:"data.items"}),_.N("design:type",String)],XW.prototype,"itemsPath",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],XW.prototype,"watchMetadataRefresh",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],XW.prototype,"skinnyMode",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],XW.prototype,"metaPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],XW.prototype,"inStructuredDescription",void 0);
_.g([_.BF("#items"),_.N("design:type",HTMLDivElement)],XW.prototype,"items",void 0);_.g([_.BF("#scroll-container"),_.N("design:type",HTMLDivElement)],XW.prototype,"JSC$16694_scrollContainer",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XW.prototype,"dataChanged",null);_.g([_.PF("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XW.prototype,"debouncedUpdateOnResize",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],XW);
_.F(XW,"ytd-merch-shelf-renderer",function(){if(lzw!==void 0)return lzw;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return lzw=u},{mode:2});var DzA;var mZ=function(){var u=_.Q.apply(this,arguments)||this;u.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 u};
_.c(mZ,_.Q);_.I=mZ.prototype;
_.I.addBackstagePostAction=function(u){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(u=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",u))&&(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:u}):this.set("data.contents",[{backstagePostThreadRenderer:u}]))};
_.I.addBackstageCommentAction=function(u){var K=this.get("addBackstageCommentAction.parentId",u);u=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",u);if(K&&u){K=this.postIdToIndices(K);for(var l=0;l<K.length;l++){var D=K[l];if(D<0)break;D="data.contents."+D+".backstagePostThreadRenderer.comments";this.get(D)&&(this.get(D+".backstageCommentsRenderer.contents")&&this.push(D+".backstageCommentsRenderer.contents",{commentThreadRenderer:u}),this.get(D+".backstageCommentsRenderer.teaserContents")?
this.push(D+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:u}):this.set(D+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:u}]))}}};
_.I.addBackstageReplyAction=function(u){var K=this.get("addBackstageReplyAction.parentId",u);u=this.get("addBackstageReplyAction.renderer.commentRenderer",u);K&&u&&this.setCreatorReply(K,u)};
_.I.banAuthorAction=function(u){var K=this.get("banAuthorAction.commentId",u);K&&(u=this.get("banAuthorAction.parentCommentId",u)||this.getParentPostId(K),this.removeFromStream(K,u))};
_.I.hideReportedCommentAction=function(u){var K=this.get("hideReportedCommentAction.commentId",u);K&&((u=this.get("hideReportedCommentAction.parentCommentId",u))||(u=this.getParentPostId(K)),this.removeFromStream(K,u))};
_.I.replaceBackstageCommentAction=function(u){var K=this.get("replaceBackstageCommentAction.commentId",u),l=this.get("replaceBackstageCommentAction.parentId",u);u=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",u);if(K&&l&&u){l=this.postIdToIndices(l);for(var D=0;D<l.length;D++){var d=l[D];if(d<0)break;var C=this.commentIdToIndex(K,d,!1);if(C>=0){var W=this.get("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+C+".commentThreadRenderer.replies.commentRepliesRenderer");
W&&(u.replies={commentRepliesRenderer:W});this.splice("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",C,1,{commentThreadRenderer:u})}C=this.commentIdToIndex(K,d,!0);if(C>=0){if(W=this.get("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(C+".commentThreadRenderer.replies.commentRepliesRenderer")))u.replies={commentRepliesRenderer:W};this.splice("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
C,1,{commentThreadRenderer:u})}}}};
_.I.replaceBackstagePostAction=function(u){var K=this.get("replaceBackstagePostAction.itemId",u);if(K){K=this.postIdToIndices(K);for(var l=0;l<K.length;l++){var D=K[l];if(D<0)break;var d=this.getPostRendererType(D),C=this.get("replaceBackstagePostAction.renderer."+d,u);if(!C&&d!=="sharedPostRenderer")break;var W=!1;C||(W=!0,C=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",u));if(!C)break;var M={};W?(_.hl(M,k3N,C),this.set("data.contents."+D+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
M)):(_.hl(M,new _.r3(d),C),this.set("data.contents."+D+".backstagePostThreadRenderer.post",M))}}};
_.I.replaceBackstageReplyAction=function(u){var K=this.get("replaceBackstageReplyAction.replyId",u),l=this.get("replaceBackstageReplyAction.parentId",u);u=this.get("replaceBackstageReplyAction.renderer.commentRenderer",u);K&&u&&l&&this.setCreatorReply(l,u)};
_.I.removeCommentAction=function(u){var K=this.get("removeCommentAction.commentId",u);if(K){var l=this.get("removeCommentAction.parentCommentId",u);l&&this.get("removeCommentAction.isCreatorReply",u)?this.setCreatorReply(l,void 0):(l||(l=this.getParentPostId(K)),this.removeFromStream(K,l))}};
_.I.setCreatorReply=function(u,K){var l=this.getParentPostId(u);if(l){l=this.postIdToIndices(l);for(var D=0;D<l.length;D++){var d=l[D];if(d<0)break;var C=this.commentIdToIndex(u,d,!1);if(C>=0){var W="data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+C;C=W+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";W+=".commentThreadRenderer.replies";K==void 0?(this.set(W,{}),this.set(C,!1)):(this.set(W,{commentRepliesRenderer:{teaserContents:[{commentRenderer:K}]}}),
this.set(W+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(C,!0))}C=this.commentIdToIndex(u,d,!0);C>=0&&(C="data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+C,d=C+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",C+=".commentThreadRenderer.replies",K==void 0?(this.set(C,{}),this.set(d,!1)):(this.set(C,{commentRepliesRenderer:{teaserContents:[{commentRenderer:K}]}}),this.set(d,!0)))}}};
_.I.removeFromStream=function(u,K){if(K){K=this.postIdToIndices(K);for(var l=0;l<K.length;l++){var D=K[l];if(D<0)break;var d=this.commentIdToIndex(u,D,!1);d>=0&&this.splice("data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",d,1);d=this.commentIdToIndex(u,D,!0);d>=0&&this.splice("data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",d,1);D="data.contents."+D+".backstagePostThreadRenderer.post.backstagePostRenderer";
d=D+".backstageAttachment.pollRenderer.votedCommentId";this.get(d)===u&&(this.set(d,null),this.set(D+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(K=this.postIdToIndices(u).reverse(),l=0;l<K.length;l++){D=K[l];if(D<0)break;d=this.getPostRendererType(D);var C=this.get("backstagePostThreadRenderer.post."+d,this.data.contents[D]);C.postId===u?this.splice("data.contents",D,1):d==="sharedPostRenderer"&&this.set("data.contents."+D+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);C.scheduledPublishTimeSec&&_.Sy(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.I.postIdToIndices=function(u){for(var K=[],l=0;l<this.data.contents.length;l++){var D=this.getPostRendererType(l);this.get("backstagePostThreadRenderer.post."+D+".postId",this.data.contents[l])===u&&K.push(l);if(D==="sharedPostRenderer"){var d=this.get("backstagePostThreadRenderer.post."+D+".originalPost.backstagePostRenderer.postId",this.data.contents[l]);D=this.get("backstagePostThreadRenderer.post."+D+".originalPost.postRenderer.postId",this.data.contents[l]);d!==u&&D!==u||K.push(l)}}return K};
_.I.commentIdToIndex=function(u,K,l){if(K<0)return-1;var D,d,C,W,M=_.b((D=this.data)==null?void 0:(d=D.contents)==null?void 0:(C=d[K])==null?void 0:(W=C.backstagePostThreadRenderer)==null?void 0:W.comments,gAS);return(K=l?M==null?void 0:M.teaserContents:M==null?void 0:M.contents)&&K.length?K.findIndex(function(q){return _.b(q,c1C).comment.commentRenderer.commentId===u}):-1};
_.I.getParentPostId=function(u){u=u.split(".");if(u[1])return u[0]};
_.I.getPostRendererType=function(u){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[u])?"sharedPostRenderer":"backstagePostRenderer"};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],mZ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],mZ.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],mZ.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-backstage-items"})],mZ);
_.F(mZ,"ytd-backstage-items",function(){if(DzA!==void 0)return DzA;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return DzA=
u},{mode:1});var dzR;var Cgs={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},hk=function(){var u=_.Q.apply(this,arguments)||this;u.disablePrescanVisibility=!0;u.canScheduleJobs=!0;u.engagementPanel=!1;u.hidePanelButton=!1;u.isWatchGrid=!1;u.hasShownSubscribersOnlyDisclaimer=!1;u.actionMap=
{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return u};
_.c(hk,_.Q);_.I=hk.prototype;_.I.created=function(){this.initCommentsCsi_()};
_.I.contentsChanged_=function(){var u;(u=this.data)!=null&&u.contents&&this.tickForCommentsTimer_("cml")};
_.I.headerChanged_=function(){var u;(u=this.data)!=null&&u.header&&this.tickForCommentsTimer_("cmhl")};
_.I.initCommentsCsi_=function(){_.Ys("wn_comments");var u=_.AC();u&&_.Zy({clientScreenNonce:u},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.I.createCommentAction_=function(u){u=_.k$.unsafeClone(u);var K,l;if(u=(K=_.b(u,nzw))==null?void 0:(l=K.contents)==null?void 0:l.commentThreadRenderer){var D,d,C,W,M,q;!this.isBackstage&&((D=this.data)==null?0:(d=D.header)==null?0:(C=d.commentsHeaderRenderer)==null?0:(W=C.createRenderer)==null?0:(M=W.commentSimpleboxRenderer)==null?0:(q=M.zeroStep)==null?0:q.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var v,
G,t;this.isBackstage&&_.b((v=this.data)==null?void 0:(G=v.header)==null?void 0:(t=G.commentsHeaderRenderer)==null?void 0:t.zeroStateMessage,ZaN)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(u)}};
_.I.doReplyInsert_=function(u,K,l,D){D?this.splice(u,D,0,K):this.push(u,K)};
_.I.getRepliesPath_=function(u){return"data.contents."+u+".commentThreadRenderer.replies"};
_.I.getRepliesContentsPath_=function(u,K){u=this.getRepliesPath_(u);return K?u+".commentRepliesRenderer.teaserContents":u+".commentRepliesRenderer.contents"};
_.I.showSubscribersOnlyDisclaimer_=function(u){(u=u.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(u=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(u))&&(_.Sy(this.hostElement,"yt-open-popup-action",[u,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.I.createCommentReplyAction_=function(u){u=_.k$.unsafeClone(u);var K=_.b(u,r1N);if(u=K==null?void 0:K.contents){var l=this.commentIdToIndex_(K==null?void 0:K.parentCommentId);if(!(l<0)){var D=this.getRepliesPath_(l);if(this.get(D)){K=K.replyToCommentId;D=this.getRepliesContentsPath_(l,!1);if(this.get(D)){var d=this.get(D).length,C=D+"."+(d-1)+".continuationItemRenderer";this.get(C+".button")?(C=this.replyIdToIndex_(K,l,!1),this.doReplyInsert_(D,u,C,d-1)):this.get(C)||(d=this.replyIdToIndex_(K,l,
!1),this.doReplyInsert_(D,u,d,null))}D=this.getRepliesContentsPath_(l,!0);this.get(D)?(l=this.replyIdToIndex_(K,l,!0),(!K||l>=0)&&this.doReplyInsert_(D,u,l,null)):this.set(D,[u])}else this.set(D,{commentRepliesRenderer:{teaserContents:[u]}})}}};
_.I.hideReportedCommentAction_=function(u){var K=_.b(u,pWw);if(u=K==null?void 0:K.commentId)K=this.get("parentCommentId",K),u=u.replace("#","."),K||(K=this.getParentCommentId_(u)),this.remove_(u,K)};
_.I.getParentCommentId_=function(u){u=u.split(".");if(u[1])return u[0]};
_.I.removeCommentAction_=function(u){var K=_.b(u,Suk);if(u=K==null?void 0:K.commentId)K=K==null?void 0:K.parentCommentId,u=u.replace("#","."),K||(K=this.getParentCommentId_(u)),this.remove_(u,K)};
_.I.pinCommentAction_=function(u){u=_.k$.unsafeClone(u);var K=_.b(u,xeN);K!=null&&K.commentId&&(u=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",u))&&(this.remove_(K.commentId),this.insert_(u,!0))};
_.I.unpinCommentAction_=function(u){u=_.k$.unsafeClone(u);u=_.b(u,bJm);if(u!=null&&u.commentId){var K,l,D=(K=u.actionResult)==null?void 0:(l=K.update)==null?void 0:l.commentThreadRenderer;D&&(this.remove_(u.commentId),this.insert_(D))}};
_.I.banAuthorAction_=function(u){var K=_.b(u,$e2);K!=null&&K.commentId&&(u=K.parentCommentId,K=K.commentId.replace("#","."),u||(u=this.getParentCommentId_(K)),this.remove_(K,u))};
_.I.commentIdToIndex_=function(u){var K;return u&&(K=this.data)!=null&&K.contents?this.data.contents.findIndex(function(l){l=l.commentThreadRenderer;var D;return u===((l==null?void 0:l.commentViewModel)&&((D=_.b(l.commentViewModel,fVw))==null?void 0:D.commentId))}):-1};
_.I.insert_=function(u,K){K=K===void 0?!1:K;var l,D;if((l=this.data)==null?0:(D=l.contents)==null?0:D.some(function(C){return!!C.commentThreadRenderer}))for(l=0,D=this.data.contents.length;l<D;l++){var d=this.data.contents[l].commentThreadRenderer;
if(Cgs[u.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=Cgs[d.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){K&&Cgs[u.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===Cgs[d.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",l,1,{commentThreadRenderer:u}):this.splice("data.contents",l,0,{commentThreadRenderer:u});break}}else this.set("data.contents",[{commentThreadRenderer:u}])};
_.I.doReplyRemove_=function(u,K,l){u=this.replyIdToIndex_(u,K,l);u<0||(K=this.getRepliesContentsPath_(K,l),this.splice(K,u,1))};
_.I.remove_=function(u,K){K=this.commentIdToIndex_(K);K<0?(K=this.commentIdToIndex_(u),K<0||this.splice("data.contents",K,1)):(this.doReplyRemove_(u,K,!1),this.doReplyRemove_(u,K,!0))};
_.I.replyIdToIndex_=function(u,K,l){if(K<0)return-1;K=this.getRepliesContentsPath_(K,l);K=this.get(K);if(!K||!K.length)return-1;l=0;for(var D=K.length;l<D;l++){var d=void 0,C=void 0;if(((d=K[l])==null?void 0:(C=d.commentViewModel)==null?void 0:C.commentId)===u)return l}return-1};
_.I.tickForCommentsTimer_=function(u){_.Xi(u,void 0,"wn_comments")};
_.I.reloadComments_=function(u){u=_.b(u,RNw);_.b(u==null?void 0:u.command,_.C1)&&_.c0(this.hostElement,[u==null?void 0:u.command])};
_.MN.Object.defineProperties(hk.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return!!((u=this.data)==null?0:(K=u.header)==null?0:(l=K.commentsHeaderRenderer)==null?0:l.isBackstageContent)}}});
_.MN.Object.defineProperties(hk,{template:{configurable:!0,enumerable:!0,get:function(){if(dzR===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);dzR=u}u=dzR;return u}}});
hk.prototype.showSubscribersOnlyDisclaimer_=hk.prototype.showSubscribersOnlyDisclaimer_;hk.prototype.headerChanged_=hk.prototype.headerChanged_;hk.prototype.contentsChanged_=hk.prototype.contentsChanged_;_.g([_.e(_.nl),_.N("design:type",Object)],hk.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.e(_.VOq.YtHostElementBehavior),_.N("design:type",Object)],hk.prototype,"ytHostElementBehavior",void 0);
_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",Function)],hk.prototype,"ytPlayerListenerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],hk.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],hk.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],hk.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("data.header.commentsHeaderRenderer.isBackstageContent"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hk.prototype,"isBackstage",null);_.g([_.U(),_.N("design:type",Object)],hk.prototype,"disablePrescanVisibility",void 0);_.g([_.U(),_.N("design:type",Object)],hk.prototype,"canScheduleJobs",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],hk.prototype,"engagementPanel",void 0);
_.g([_.U(),_.N("design:type",Object)],hk.prototype,"hidePanelButton",void 0);_.g([_.U(),_.N("design:type",Object)],hk.prototype,"isWatchGrid",void 0);_.g([_.U(),_.N("design:type",Object)],hk.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.g([_.JU("data.contents"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hk.prototype,"contentsChanged_",null);
_.g([_.JU("data.header"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hk.prototype,"headerChanged_",null);_.g([_.PF("yt-show-subscribers-only-disclaimer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],hk.prototype,"showSubscribersOnlyDisclaimer_",null);_.g([_.T({is:"ytd-comments"})],hk);var EM=function(){return _.ii.apply(this,arguments)||this};
_.c(EM,_.ii);_.I=EM.prototype;_.I.bindIf=function(u,K,l){return u?K:l};
_.I.bindIfDefined=function(u,K){return u!==void 0?u:K};
_.I.booleanString=function(u){return(!!u).toString()};
_.I.equals=function(){for(var u=_.uY.apply(0,arguments),K=u[0],l=1;l<u.length;l++)if(K!=u[l])return!1;return!0};
_.I.isGreaterThan=function(u,K){return u>K};
_.I.isLessThan=function(u,K){return u<K};
_.I.logicalAND=function(){for(var u=_.uY.apply(0,arguments),K=!!u[0],l=1;l<u.length;l++)K=K&&!!u[l];return K};
_.I.logicalOR=function(){for(var u=_.uY.apply(0,arguments),K=!!u[0],l=1;l<u.length;l++)K=K||!!u[l];return K};
_.I.toBool=function(u){return!!u};
EM.prototype.toBool=EM.prototype.toBool;EM.prototype.logicalOR=EM.prototype.logicalOR;EM.prototype.logicalAND=EM.prototype.logicalAND;EM.prototype.isLessThan=EM.prototype.isLessThan;EM.prototype.isGreaterThan=EM.prototype.isGreaterThan;EM.prototype.equals=EM.prototype.equals;EM.prototype.booleanString=EM.prototype.booleanString;EM.prototype.bindIfDefined=EM.prototype.bindIfDefined;EM.prototype.bindIf=EM.prototype.bindIf;_.g([_.TQ()],EM);_.Izw=[EM.prototype];var y40;var s0N;var Lf=function(){return _.Q.apply(this,arguments)||this};
_.c(Lf,_.Q);Lf.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Lf.prototype.onBackIconTap_=function(){window.history.back()};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Lf.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Lf.prototype,"data",void 0);_.g([_.E9({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Lf);
_.F(Lf,"yt-header-with-back-renderer",function(){if(s0N===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;y40===void 0&&(y40=document.createElement("template"));var D=y40;l.call(K,D.content.cloneNode(!0),u.content.firstChild);s0N=u}u=s0N;return u},{mode:2});var oZH;var W42;var ux=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return u};
_.c(ux,_.Q);_.I=ux.prototype;_.I.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.I.onDarkModeToggledAction=function(u){u!==this.isDarkTheme&&(this.isDarkTheme=u,this.setUrl())};
_.I.dataChanged=function(){var u=this;if(this.data){var K=this.setUrl();K&&_.ty({destination:window,iframe:this.iframe,origin:_.JEw(K.toString()),channelName:"yt-iframe",onMessage:function(l){(l=u.getCommunicationCommand(l.data))&&u.ytComponentBehavior.resolveCommand(l)},
onEstablished:function(){}})}};
_.I.setUrl=function(){if(this.data&&this.data.iframeUrl){var u=_.AP(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(u)return _.yg(this.iframe,u),u}};
_.I.getCommunicationCommand=function(u){var K;if((K=this.data)!=null&&K.onCommunicationCommandsMap){K=this.data.onCommunicationCommandsMap.find(function(d){return d.key===u});
if(K==null?0:K.value)return K==null?void 0:K.value;try{var l=yQA(_.Wa(u)),D=this.data.onCommunicationCommandsMap.find(function(d){return d.key===(l==null?void 0:l.getMethodName())});
if(D==null?0:D.value)return D==null?void 0:D.value}catch(d){}}};
ux.prototype.dataChanged=ux.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],ux.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],ux.prototype,"actionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ux.prototype,"data",void 0);
_.g([_.U({value:!1}),_.N("design:type",Boolean)],ux.prototype,"isDarkTheme",void 0);_.g([_.BF("#iframe"),_.N("design:type",HTMLIFrameElement)],ux.prototype,"iframe",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ux.prototype,"dataChanged",null);_.g([_.E9({is:"yt-iframe-renderer",disableElementRegistration:!0})],ux);
_.F(ux,"yt-iframe-renderer",function(){if(W42===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;oZH===void 0&&(oZH=document.createElement("template"));var D=oZH;l.call(K,D.content.cloneNode(!0),u.content.firstChild);W42=u}u=W42;return u},{mode:2});_.KL=function(u){_.TZ.call(this);this.callback=u;this.bezier=new clm(0,0,.4,0,.2,1,1,1);this.delay=new _.nn(this.next,window,this);this.JSC$16738_animating=!1;_.eb(this,this.delay)};
_.c(_.KL,_.TZ);_.KL.prototype.isAnimating=function(){return this.JSC$16738_animating};
_.KL.prototype.start=function(u,K,l){this.config={from:u,to:K,duration:l,startTime:(0,_.vA)()};this.JSC$16738_animating=!0;this.next()};
_.KL.prototype.stop=function(){this.delay.stop();this.JSC$16738_animating=!1;this.config=void 0};
_.KL.prototype.next=function(){if(this.config){var u=this.config,K=u.from,l=u.to,D=u.duration;u=u.startTime;var d=(0,_.vA)()-u;u=this.bezier;D=zP2(u,d/D);if(D==0)u=u.y0;else if(D==1)u=u.y3;else{d=VF(u.y0,u.y1,D);var C=VF(u.y1,u.y2,D);u=VF(u.y2,u.y3,D);d=VF(d,C,D);C=VF(C,u,D);u=VF(d,C,D)}u=_.mz(u,0,1);this.callback(K+(l-K)*u);u<1?this.delay.start():this.JSC$16738_animating=!1}};_.lx=new _.G$("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var HqH={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},qTa=function(u,K,l,D){_.TZ.call(this);this.JSC$16746_miniAppId=u;this.localReleaseId=K;this.derivedDeviceInterface=l;this.isForeground=D;this.JSC$16746_playNonceResolver=new _.et;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Sg("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Sg("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.S("enable_displaying_ppn");this.JSC$16746_miniAppClientDataProvider=_.GB().resolve(_.lx);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;Mqw(this);var d=setTimeout(function(){_.hV(new _.wv("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16746_playNonceResolver.promise.then(function(){clearTimeout(d)})};
_.c(qTa,_.TZ);var nZH=function(u,K){u.JSC$16746_playNonceResolver.resolve(K!=null?K:kr(8));u.enableDisplayingPpn&&$z0(u).then(function(l){u.JSC$16746_miniAppClientDataProvider.clientData.set("post_play_nonce",l)})},$z0=function(u){return _.H(function(K){return K.nextAddress==1?K.yield(u.JSC$16746_playNonceResolver.promise,2):K.return(K.yieldResult)})},Mqw=function(u){var K,l;
_.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$16746_playNonceResolver.promise,2);K=D.yieldResult;l={miniAppInfo:{externalPostId:u.JSC$16746_miniAppId,localReleaseId:u.localReleaseId,postPlayNonce:K,derivedDeviceInterface:u.derivedDeviceInterface}};_.Zy(l);_.TG(D)})},vZw=function(u){u.state!==0?_.hV(new _.wv("[MiniAppPlayLogger] recordPlayStart failed with state "+HqH[u.state])):(u.state=1,Dn(u,"ma_cl"),dJ(u,"PLAY_EVENT_TYPE_PLAY_START"),r40(u))},GC0=function(u){u.isForeground=!1;
dJ(u,"PLAY_EVENT_TYPE_PLAY_PAUSE")},tqs=function(u){u.state!==1&&u.state!==2?_.hV(new _.wv("[MiniAppPlayLogger] recordPlayEnd failed with state "+HqH[u.state])):(u.state=3,window.clearInterval(u.playPingTimerId),u.playPingTimerId=NaN,g1H(),dJ(u,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},xzN=function(u,K){u.state===2&&u.gameReady&&(u.firstClickRecorded?Date.now()-u.clickRecordedMs<u.playClickIntervalMs||(u.clickRecordedMs=Date.now(),dJ(u,"PLAY_EVENT_TYPE_PLAY_CLICK")):K&&(Dn(u,"ma_fua"),dJ(u,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),u.firstClickRecorded=!0,u.clickRecordedMs=Date.now()))};
qTa.prototype.logError=function(u){var K=this,l;_.H(function(D){if(D.nextAddress==1)return u.metadata.externalPostId=K.JSC$16746_miniAppId,l=u.metadata,D.yield(Promise.race([K.JSC$16746_playNonceResolver.promise,new Promise(function(d){setTimeout(function(){d("")},3E4)})]),2);
l.postPlayNonce=D.yieldResult;u.metadata.localReleaseId=K.localReleaseId;u.loggingError.level="WARNING";_.Xm(u.loggingError,u.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:u.metadata});_.TG(D)})};
var STN=function(u,K,l,D){var d,C,W,M,q,v;_.H(function(G){if(G.nextAddress==1)return G.yield(u.JSC$16746_playNonceResolver.promise,2);d=G.yieldResult;C={externalPostId:u.JSC$16746_miniAppId,localReleaseId:u.localReleaseId,postPlayNonce:d,sdkVersion:l,api:K};D!==void 0&&(C.networkRequestsMeasurement={networkRequests:_.tq(D,1),cachedRequests:_.tq(D,2),transferredBytes:_.tq(D,3)},(W=D)==null?0:_.B8(W,nP,6))&&(C.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((M=_.fV(D,
nP,6))==null?void 0:Ef(M,1))||"0",cacheHits:((q=_.fV(D,nP,6))==null?void 0:Ef(q,2))||"0",cachedBytes:((v=_.fV(D,nP,6))==null?void 0:Ef(v,3))||"0"});_.YE("miniAppSdkUsage",C);_.TG(G)})},Oqk=function(u,K,l){var D,d,C,W,M,q,v,G,t,x,O,a,f,B,p,V;
_.H(function(m){if(m.nextAddress==1)return m.yield(u.JSC$16746_playNonceResolver.promise,2);D=m.yieldResult;d={externalPostId:u.JSC$16746_miniAppId,localReleaseId:u.localReleaseId,postPlayNonce:D,sdkVersion:l,measurementWindow:{startTimestampMs:String(ZO(K,1)),endTimestampMs:String(ZO(K,2))},frameRate:{averageFrameTimeDeltaMs:Y2(K,3),averageFrameIdleTimeMs:Y2(K,4)}};_.B8(K,r0,5)&&(d.networkRequests={networkRequests:(C=OU(K))==null?void 0:_.tq(C,1),cachedRequests:(W=OU(K))==null?void 0:_.tq(W,2),transferredBytes:(M=
OU(K))==null?void 0:_.tq(M,3),sameOriginStatusCodeToCounts:bq2((q=OU(K))==null?void 0:Mkq(q,4)),crossOriginStatusCodeToCounts:bq2((v=OU(K))==null?void 0:Mkq(v,5))},(G=OU(K))==null?0:_.B8(G,nP,6))&&(d.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((t=OU(K))==null?void 0:(x=_.fV(t,nP,6))==null?void 0:Ef(x,1))||"0",cacheHits:((O=OU(K))==null?void 0:(a=_.fV(O,nP,6))==null?void 0:Ef(a,2))||"0",cachedBytes:((f=OU(K))==null?void 0:(B=_.fV(f,nP,6))==null?void 0:Ef(B,3))||"0"});_.B8(K,
w8C,7)&&(d.gameCapture={averageFrameTimeDeltaMs:(p=_.fV(K,w8C,7))==null?void 0:Y2(p,1),averageFrameIdleTimeMs:(V=_.fV(K,w8C,7))==null?void 0:Y2(V,2)});_.YE("miniAppPerformanceMetrics",d);_.TG(m)})},c42=function(u,K){var l,D;
return _.H(function(d){if(d.nextAddress==1)return d.yield(u.JSC$16746_playNonceResolver.promise,2);l=d.yieldResult;D={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:u.JSC$16746_miniAppId,postPlayNonce:l,miniAppReleaseId:u.localReleaseId},derivedDeviceInterface:u.derivedDeviceInterface,adTriggerType:K,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.YE("miniAppAdEvent",D);_.TG(d)})};
qTa.prototype.disposeInternal=function(){_.TZ.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var dJ=function(u,K,l,D){l=l===void 0?{}:l;D=D===void 0?!1:D;var d,C,W,M;_.H(function(q){if(q.nextAddress==1)return d=u.isForeground,C=u.beforeReady,q.yield(u.JSC$16746_playNonceResolver.promise,2);W=q.yieldResult;M={externalPostId:u.JSC$16746_miniAppId,localReleaseId:u.localReleaseId,derivedDeviceInterface:u.derivedDeviceInterface,postPlayNonce:W,type:K};l.sequenceGroup=W;M.playState=C?"PLAY_STATE_NOT_READY":d?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.YE("miniAppPlayEvent",M,
l);D&&_.AV();_.TG(q)})},Dn=function(u,K){var l;
_.H(function(D){if(D.nextAddress==1)return l=(0,_.vA)(),D.yield(u.JSC$16746_playNonceResolver.promise,2);_.As(K,l);_.TG(D)})},r40=function(u){isNaN(u.playPingTimerId)&&(u.playPingTimerId=_.zB(function(){u.state!==1&&u.state!==2?_.hV(new _.wv("[MiniAppPlayLogger] reportPlayPing failed with state "+HqH[u.state])):dJ(u,"PLAY_EVENT_TYPE_PLAY_PING")},u.playPingIntervalMs))},bq2=function(u){return Array.from(u.entries()).map(function(K){var l=_.y(K);
K=l.next().value;l=l.next().value;return{key:K,value:l}})};var azC=function(){},zGa=function(u,K){u.showMiniAppAdCommand=K.showMiniAppAdCommand;
u.isEmbeddedInWebview=K.isEmbeddedInWebview;u.playLogger=K.playLogger},RG2=function(u,K){var l;
return _.H(function(D){if(D.nextAddress==1){if(!u.showMiniAppAdCommand||!u.isEmbeddedInWebview)return D.return(eGk(u,K));u.adResolver=new _.et;var d=new XP;l=_.xL(d,3,K);uw(u.showMiniAppAdCommand,nv0(l));return D.yield(u.adResolver.promise,2)}return D.return(D.yieldResult)})};
azC.prototype.onAdFinished=function(u){u=v2C(u);var K;(K=this.adResolver)==null||K.resolve(u)};
var eGk=function(u,K){var l;return _.H(function(D){if(D.nextAddress==1)D=D.yield((l=u.playLogger)==null?void 0:c42(l,YOL(K)),2);else{var d=D.return;var C=new r00;C=_.xL(C,1,2);D=d.call(D,C)}return D})};var Uzk=new _.G$("INNERTUBE_MANAGER_TOKEN");var fzC=function(){this.callbacks={}};
fzC.prototype.initialize=function(u){var K=this;this.callbacks=u;window.youtubewebview?window.youtubewebview.onmessage=function(l){Q0a(K,l)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(l){Q0a(K,l)})};
var Q0a=function(u,K){if(K.data)try{var l=yQA(K.data);if(_.wH(_.ja(l,1))!=null){var D=ovs(_.A0(l,2));switch(l.getMethodName()){case "yt-mini-app-load-audio-state":var d,C;(C=(d=u.callbacks).onAudioStateLoaded)==null||C.call(d,_.k2(D,Bu(D,AW,1)));break;case "yt-mute-mini-app":var W,M;(M=(W=u.callbacks).onMuteMiniApp)==null||M.call(W);break;case "yt-unmute-mini-app":var q,v;(v=(q=u.callbacks).onUnmuteMiniApp)==null||v.call(q);break;case "yt-playable-exit":var G,t;(t=(G=u.callbacks).onExit)==null||t.call(G);
break;case "yt-post-play-nonce":var x,O;(O=(x=u.callbacks).onPostPlayNonceReceived)==null||O.call(x,L3(D,2,AW));break;case "yt-confirm-exit-mini-app":var a,f;(f=(a=u.callbacks).confirmExitMiniApp)==null||f.call(a);break;case "yt-confirm-exit-mini-app-edu":var B,p;(p=(B=u.callbacks).confirmExitMiniAppEdu)==null||p.call(B);break;case "yt-benchmarking-response":var V,m;(m=(V=u.callbacks).onNativeBenchmarkingMessageReceived)==null||m.call(V,L3(D,2,AW));break;case "yt-mini-app-load-3p-consent-state":var Z,
A;(A=(Z=u.callbacks).multiplayer3pAckStateLoaded)==null||A.call(Z,_.k2(D,Bu(D,AW,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var h,C9;(C9=(h=u.callbacks).exitMiniAppSeenStateLoaded)==null||C9.call(h,_.k2(D,Bu(D,AW,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Wo,$y;($y=(Wo=u.callbacks).onNavigateToNewMiniApp)==null||$y.call(Wo);break;case "yt-game-data-available":var co,UZ;(UZ=(co=u.callbacks).onGameDataAvailable)==null||UZ.call(co,L3(D,2,AW));break;case "yt-pause-mini-app":var tH,
gq;(gq=(tH=u.callbacks).onPauseMiniApp)==null||gq.call(tH);break;case "yt-resume-mini-app":var Bo,uk;(uk=(Bo=u.callbacks).onResumeMiniApp)==null||uk.call(Bo);break;case "yt-playable-ad-finished":var ca,Ha;(Ha=(ca=u.callbacks).onAdFinished)==null||Ha.call(ca,L3(D,2,AW))}}else _.hV(Error("Th"))}catch(hH){_.Xm(Error("Uh"))}else _.hV(Error("Vh"))};var X7b=function(u){this.rpcErrorCode=u};var CL=function(u,K,l){this.intervalMs=u;this.apiFunc=K;this.type=l;this.schedulerReady=!0};
CL.prototype.call=function(u){var K=this,l;return _.H(function(D){if(D.nextAddress==1){if(K.type!==1&&u===K.cachedValue)return D.return();K.pendingApiRequestResolver||(K.pendingApiRequestResolver=new _.et);l=K.pendingApiRequestResolver.promise;K.cachedValue=u;return D.yield(Pgk(K),2)}return D.return(l)})};
CL.prototype.flush=function(u){u=u===void 0?!1:u;var K=this;return _.H(function(l){return K.cachedValue===void 0?l.return():l.yield(K.apiFunc(K.cachedValue,u),0)})};
var Pgk=function(u){var K,l,D;return _.H(function(d){switch(d.nextAddress){case 1:if(!u.schedulerReady||!u.pendingApiRequestResolver)return d.return();u.schedulerReady=!1;K=u.pendingApiRequestResolver;u.pendingApiRequestResolver=void 0;_.Qg(d,2);if(u.cachedValue===void 0){d.jumpTo(4);break}return d.yield(u.apiFunc(u.cachedValue),5);case 5:l=d.yieldResult,K.resolve(l);case 4:_.I$(d,3);break;case 2:D=_.iY(d),K.reject(D);case 3:setTimeout(function(){return _.H(function(C){u.schedulerReady=!0;return C.yield(Pgk(u),
0)})},u.intervalMs),_.TG(d)}})};var Ea9=window.location.origin+"/miniapp_cloudsaves",mO9=[400,401],J4N=_.Sg("cloud_save_game_data_rate_limit_ms",3E3),pCw=function(u){var K=this;this.JSC$16790_miniAppId=u;this.loadAttempts=0;this.cloudSaveIntervalMs=J4N;this.initialDownloadDataSucceeded=!1;this.JSC$16790_playNonceResolver=new _.et;this.scottyUploadRateLimiter=new CL(this.cloudSaveIntervalMs,function(l,D){return j0k(K,l,D)},2);
this.downloadDataPromise=BQB(this);this.downloadDataPromise.then(function(){K.initialDownloadDataSucceeded=!0}).catch(function(){})},iqs=function(u,K){K.then(function(l){return u.JSC$16790_playNonceResolver.resolve(l)})},TQw=function(u){return _.H(function(K){return u.cachedData===void 0?K.return(u.downloadDataPromise):K.return(u.cachedData)})},wCR=function(u,K){return _.H(function(l){u.cachedData=K;
if(!u.initialDownloadDataSucceeded)throw Error("Wh");return l.yield(u.scottyUploadRateLimiter.call(K),0)})},F4w=function(){return new Promise(function(u){setTimeout(u,1E3,"")})},Vqw=function(u,K){var l,D;
return _.H(function(d){if(d.nextAddress==1)return l=u.JSC$16790_miniAppId,d.yield(Promise.race([u.JSC$16790_playNonceResolver.promise,F4w()]),2);D={"X-YouTube-MiniAppId":l,"X-YouTube-PostPlayNonce":d.yieldResult};"DELEGATED_SESSION_ID"in _.mT&&Sxw(K,D);return d.return(D)})},j0k=function(u,K,l){l=l===void 0?!1:l;
return _.H(function(D){return Ao9()?_.S("enable_cloud_save_error_popup_after_retry")?D.return(new Promise(function(d,C){var W,M,q,v,G;return _.H(function(t){switch(t.nextAddress){case 1:W=0,M=!0,v=q=null;case 2:if(!(M&&W++<2)){t.jumpTo(4);break}_.Qg(t,5);return t.yield(gZN(u,K,l),7);case 7:q=t.yieldResult;M=q.ok?!1:!mO9.includes(q.status);_.I$(t,2);break;case 5:v=G=_.iY(t);M=hhh(v);t.jumpTo(2);break;case 4:q?q.ok?(IW(u,J4N),d()):(IW(u,u.cloudSaveIntervalMs*2),C(Error("Xh`"+String(q.status),{cause:{rpcErrorCode:q.status}}))):
(IW(u,u.cloudSaveIntervalMs*2),C(v||Error("Yh"))),_.TG(t)}})})):D.return(new Promise(function(d,C){var W,M;
return _.H(function(q){if(q.nextAddress==1){if(u.JSC$16790_miniAppId==="")return C(Error("Zh")),q.return();_.Qg(q,2);return q.yield(gZN(u,K,l),4)}if(q.nextAddress!=2)return W=q.yieldResult,W.ok?(IW(u,J4N),d()):(IW(u,u.cloudSaveIntervalMs*2),C(Error("Xh`"+String(W.status),{cause:{rpcErrorCode:W.status}}))),_.I$(q,0);M=_.iY(q);IW(u,u.cloudSaveIntervalMs*2);C(M);_.TG(q)})})):D.return()})},gZN=function(u,K,l){l=l===void 0?!1:l;
var D,d,C;return _.H(function(W){if(W.nextAddress==1)return D=_.Yp((new TextEncoder).encode(K)),d=Lh9(),W.yield(Vqw(u,d),2);C=W.yieldResult;return W.return(fetch(d,{method:"POST",body:new Blob([D]),headers:C,keepalive:l}))})},BQB=function(u){var K,l;
return _.H(function(D){if(D.nextAddress==1){if(!Ao9())return D.return("");if(u.JSC$16790_miniAppId==="")throw Error("Zh");if(u.loadAttempts>2)return D.return(u.downloadDataPromise);_.Qg(D,2);return D.yield(NQR(u),4)}if(D.nextAddress!=2)return K=D.yieldResult,D.return(K);l=_.iY(D);if(hhh(l)&&++u.loadAttempts<2)return D.return(BQB(u));throw l;})},NQR=function(u){var K,l,D,d,C;
return _.H(function(W){switch(W.nextAddress){case 1:return _.Qg(W,2),K=Lh9(),W.yield(Vqw(u,K),4);case 4:return l=W.yieldResult,W.yield(fetch(K,{method:"GET",headers:l}),5);case 5:return D=W.yieldResult,D.ok?W.yield(D.text(),6):W.return(Promise.reject(Error("$h`"+String(D.status),{cause:new X7b(D.status)})));case 6:return d=W.yieldResult,W.return((new TextDecoder).decode(_.Wa(d)));case 2:return C=_.iY(W),W.return(Promise.reject(C))}})},IW=function(u,K){u.cloudSaveIntervalMs=K;
u.scottyUploadRateLimiter.intervalMs=u.cloudSaveIntervalMs};
pCw.prototype.flush=function(){var u=this;return _.H(function(K){return u.initialDownloadDataSucceeded?K.yield(u.scottyUploadRateLimiter.flush(!0),0):K.return()})};var kCk=Sh(xg(1),G8(1)),Zqa=Sh(xg(1),G8(3)),y0=function(u){this.callbacks=u};
_.I=y0.prototype;_.I.onAudioToggled=function(u,K){(K===void 0||K)&&_.Uj("yt-mini-app-is-audio-enabled",u,2592E3)};
_.I.onPause=function(){this.onAudioToggled(!1,!1)};
_.I.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.I.returnNativeBenchmarkingMessage=function(){};
_.I.sendGameData=function(){};
_.I.sendStartGameFrameCapture=function(){};
var ugq=function(u,K,l){this.callbacks=u;var D=this;this.sdkVersion=new _.et;this.channel=new i8r(_.ty({destination:window,iframe:K,origin:(new URL(l.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var d=sD;var C=xg(5);var W=new zek;W=_.Ka(W,1,1E4);C=_.Br(C,4,jjk,W);d(D,C);D.onAudioToggled(D.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){D.sdkVersion.resolve("")},1E4)};
_.c(ugq,y0);_.I=ugq.prototype;_.I.onAudioToggled=function(u,K){y0.prototype.onAudioToggled.call(this,u,K===void 0?!0:K);K=sD;var l=xg(2),D=new c0w;u=_.OQ(D,1,u);u=_.Br(l,3,jjk,u);K(this,u)};
_.I.onPause=function(){y0.prototype.onPause.call(this);sD(this,xg(3))};
_.I.onResume=function(){y0.prototype.onResume.call(this);sD(this,xg(4))};
_.I.returnNativeBenchmarkingMessage=function(u){var K=sD,l=xg(6);var D=G8(_.B8(u,HW,1)?1:2);u=_.B8(u,HW,1)?u:null;D=_.Br(D,5,tW,u);K(this,Sh(l,D))};
_.I.sendGameData=function(u){var K=sD,l=xg(7);u=_.Br(l,5,jjk,u);K(this,u)};
_.I.sendStartGameFrameCapture=function(){sD(this,xg(9))};
var oW=function(u,K,l){var D,d,C;return _.H(function(W){if(W.nextAddress==1)return D=u.callbacks,d=D.onSdkCalled,C=K,W.yield(u.sdkVersion.promise,2);d.call(D,C,W.yieldResult,l);_.TG(W)})};
ugq.prototype.onMessage=function(){var u=this;return Fsq(cd,function(K){var l,D,d,C,W,M,q,v,G,t,x,O,a,f,B,p,V,m,Z,A,h,C9,Wo,$y,co,UZ,tH,gq,Bo,uk,ca,Ha,hH,tR,ns,Pa,QV,Ls,yn,dN,OB,vE,Gw,Vm,DI,uG;return _.H(function(oC){switch(oC.nextAddress){case 1:if(!Naw(K.data))return _.hV(Error("ai")),oC.return();l=_.h0(K.data,1);_.S("enable_iframe_message_get_type_via_fields")&&(D=K.data,l=d=_.h0(D,1));switch(l){case 8:if(K.data.hasMetadata()){var ma=u.sdkVersion,$p=ma.resolve;var aC=K.data.getMetadata();aC=_.A0(aC,
1);$p.call(ma,aC);clearTimeout(u.sdkVersionTimeoutId)}break;case 6:return oC.jumpTo(2);case 16:if(!_.p3(K.data,i3a,14,aP))return oC.return();C=_.uO(K.data,i3a,14,aP);(M=(W=u.callbacks).onGameFrameReceived)==null||M.call(W,C);return oC.return();case 17:if(!_.p3(K.data,p8B,15,aP))return oC.return();(v=(q=u.callbacks).onGameAudioReceived)==null||v.call(q,_.uO(K.data,p8B,15,aP));return oC.return();case 1:if(ma=_.uO(K.data,UaH,2,aP))switch(_.h0(ma,1)){case 1:u.callbacks.onFirstFrameReady();if(_.S("enable_network_request_logging_on_game_events")&&
_.B8(ma,r0,4)){oW(u,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.fV(ma,r0,4));break}oW(u,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(aC=($p=u.callbacks).onGameReady)==null||aC.call($p);if(_.S("enable_network_request_logging_on_game_events")&&_.B8(ma,r0,4)){oW(u,"MINI_APP_SDK_API_GAME_READY",_.fV(ma,r0,4));break}oW(u,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.p3(ma,vd,3,fO0))u.callbacks.onResourceLoaded(_.uO(ma,vd,3,fO0))}return oC.return();case 3:return oC.jumpTo(3);case 4:return oC.jumpTo(4);
case 2:return oC.jumpTo(5);case 9:return oC.jumpTo(6);case 10:return u.callbacks.onClick(),oC.return();case 5:return oC.jumpTo(7);case 11:if(!_.p3(K.data,qA,9,aP))return oC.return();G=_.uO(K.data,qA,9,aP);(x=(t=u.callbacks).onBenchmarkingMessageReceived)==null||x.call(t,G);ma=K.reply;$p=xg(1);aC=G8(1);var RC=new qA;var tE=new Uint8Array(snR(G,Bu(G,taC,6))|0);RC=U5(RC,5,taC,_.FH(tE,!1));aC=_.Br(aC,5,tW,RC);ma.call(K,Sh($p,aC));return oC.return();case 12:return oC.jumpTo(8);case 13:return oC.jumpTo(9);
case 15:if(!_.S("enable_open_yt_content"))return K.reply(Zqa),oC.return();if(!_.p3(K.data,BaS,12,aP))return K.reply(Sh(xg(1),G8(2))),oC.return();ma=_.uO(K.data,BaS,12,aP);O=_.A0(ma,1);u.callbacks.onOpenYTContent(O);K.reply(kCk);return oC.return();case 14:return oC.jumpTo(10);default:return oC.return()}oC.jumpTo(0);break;case 2:if(!_.p3(K.data,bE,5,aP))return oC.return();$p=K.data;ma=Bu($p,aP,5);$p=$p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(ma=vpn($p,$p[_.e2]|0,bE,ma))||(ma=bE[xSr])||
(ma=new bE,JR(ma.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),ma=bE[xSr]=ma);a=ma;ma=_.rB(a,$g,1,_.vO());f=_.y(ma);B=f.next();case 12:if(B.done){oC.jumpTo(14);break}p=B.value;V=new _.wv;V.level=_.h0(p,2)===1?"WARNING":"ERROR";m=l2n(p.getSource());return oC.yield(u.sdkVersion.promise,15);case 15:Z={source:m,sdkVersion:oC.yieldResult};_.Sk(_.ja(p,6))!=null?(V.message=p.getMessage(),V.stack=_.A0(p,5),Z.sdkErrorType=DJZ(_.h0(p,6)),_.Sk(_.ja(p,7))!=null&&(Z.sdkApi=dJr(_.h0(p,7)))):V.stack=void 0;
h=A=void 0;(h=(A=u.callbacks).onError)==null||h.call(A,{loggingError:V,metadata:Z});B=f.next();oC.jumpTo(12);break;case 14:return oC.return();case 3:return _.Qg(oC,16),ma=oC.yield,$p=u.callbacks,aC=$p.onSave,RC=_.uO(K.data,aOA,4,aP),RC=_.A0(RC,1),ma.call(oC,aC.call($p,RC),18);case 18:K.reply(kCk);_.I$(oC,17);break;case 16:return C9=_.iY(oC),Wo=K5,$y=C9,co=u.callbacks,UZ="MINI_APP_SDK_API_SAVE_DATA",oC.yield(u.sdkVersion.promise,19);case 19:Wo($y,co,UZ,oC.yieldResult),K.reply(Zqa);case 17:return oC.yield(oW(u,
"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return oC.return();case 4:return _.Qg(oC,21),oC.yield(u.callbacks.onLoad(),23);case 23:tH=oC.yieldResult;ma=K.reply;$p=xg(1);aC=G8(1);RC=new aOA;RC=_.Tj(RC,1,tH);aC=_.Br(aC,3,tW,RC);ma.call(K,Sh($p,aC));_.I$(oC,22);break;case 21:return gq=_.iY(oC),Bo=K5,uk=gq,ca=u.callbacks,Ha="MINI_APP_SDK_API_LOAD_DATA",oC.yield(u.sdkVersion.promise,24);case 24:Bo(uk,ca,Ha,oC.yieldResult),K.reply(Zqa);case 22:return oC.yield(oW(u,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return oC.return();
case 5:_.Qg(oC,26);u.callbacks.onSendHighScore(Aq(_.uO(K.data,Vak,3,aP).getValue()));K.reply(Sh(xg(1),G8(1)));_.I$(oC,27);break;case 26:return hH=_.iY(oC),tR=K5,ns=hH,Pa=u.callbacks,QV="MINI_APP_SDK_API_SEND_SCORE",oC.yield(u.sdkVersion.promise,28);case 28:tR(ns,Pa,QV,oC.yieldResult),K.reply(Zqa);case 27:return oC.yield(oW(u,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return oC.return();case 6:if(!_.p3(K.data,g2m,8,aP)){oC.jumpTo(30);break}ma=oC.yield;$p=_.uO(K.data,g2m,8,aP);$p=_.h0($p,1);return ma.call(oC,
oW(u,dJr($p)),30);case 30:return oC.return();case 7:return ma=K.reply,$p=xg(1),aC=G8(1),RC=u.callbacks.getLanguage(),aC=U5(aC,4,tW,T6(RC)),ma.call(K,Sh($p,aC)),oC.yield(oW(u,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return oC.return();case 8:if(!_.p3(K.data,F1B,10,aP))return oC.return();Ls=_.uO(K.data,F1B,10,aP);yn=u.callbacks;dN=yn.onSdkPerformanceUpdate;return oC.yield(u.sdkVersion.promise,33);case 33:return dN.call(yn,Ls,oC.yieldResult),oC.return();case 9:ma=K.data;$p=Bu(ma,aP,11);if(_.wH(_.ja(ma,
$p))==null)return K.reply(Sh(xg(1),G8(2))),oC.return();OB=L3(K.data,11,aP);u.callbacks.onShareInviteCode(OB);K.reply(kCk);return oC.yield(oW(u,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return oC.return();case 10:if(_.p3(K.data,O3w,13,aP)){oC.jumpTo(35);break}return oC.yield(u.callbacks.onShowMiniAppAd(2),36);case 36:return vE=oC.yieldResult,K.reply(Sh(xg(1),PDS(vE))),oC.yield(oW(u,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return oC.return();case 35:ma=_.uO(K.data,O3w,13,aP);a:switch(_.h0(ma,
1)){case 1:ma={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:ma={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:ma={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Gw=ma;Vm=Gw.adType;DI=Gw.sdkApi;ma=oC.yield;$p=u.callbacks;aC=$p.onShowMiniAppAd;RC=_.uO(K.data,O3w,13,aP);RC=_.A0(RC,2);return ma.call(oC,aC.call($p,Vm,RC||void 0),38);case 38:return uG=oC.yieldResult,K.reply(Sh(xg(1),PDS(uG))),oC.yield(oW(u,DI),39);case 39:return oC.return()}})})};
var sD=function(u,K){_.H(function(l){u.channel.send(K);_.TG(l)})},lw=function(u,K,l){this.callbacks=u;
var D=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;u=euy(K,(new URL(l.toString())).origin);this.gameSnacks=new uqs(u);this.gameSnacks.page.onReady(function(){D.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){D.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var d,C;(C=(d=D.callbacks).onGameReady)==null||C.call(d)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(d,C){try{D.callbacks.onSendHighScore(C)}catch(W){K5(W,D.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(d,C){var W;return _.H(function(M){if(M.nextAddress==1)return _.Qg(M,2),M.yield(D.callbacks.onSave(D.decoder.decode(C)),4);if(M.nextAddress!=2)return _.I$(M,0);W=_.iY(M);K5(W,D.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return M.return()})});
this.gameSnacks.storage.onLoad(function(){var d,C;return _.H(function(W){if(W.nextAddress==1)return _.Qg(W,2),W.yield(D.callbacks.onLoad(),4);if(W.nextAddress!=2)return d=W.yieldResult,W.return(D.encoder.encode(d));C=_.iY(W);K5(C,D.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return W.return(D.encoder.encode(""))})});
this.gameSnacks.init()};
_.c(lw,y0);lw.prototype.onAudioToggled=function(u,K){y0.prototype.onAudioToggled.call(this,u,K===void 0?!0:K);var l;(l=this.gameSnacks)==null||l.audio.update(u)};
lw.prototype.onPause=function(){y0.prototype.onPause.call(this);var u;(u=this.gameSnacks)==null||u.game.pause()};
lw.prototype.onResume=function(){y0.prototype.onResume.call(this);var u;(u=this.gameSnacks)==null||u.game.resume()};var YT2=Cpq,A4k=_.rf(function(u){var K=u.data;var l=u.loadingProgress;u=_.y(_.On("",void 0,"LYYTdd"));var D=u.next().value,d=u.next().value;u=_.y(_.On(!1,void 0,"K0waae"));var C=u.next().value,W=u.next().value,M=[],q=function(){return"transform: scaleX("+(_.Z7(l)||0)+")"},v=null,G=function(){return K()&&v!==null&&v!==void 0?v:v=K().showAnniversaryAnimation?6:YT2()};
_.gp(function(){var a;if(K().timeOutMessages&&((a=K().timeOutMessages)==null?0:a.length)){v=null;a=_.y(M);for(var f=a.next();!f.done;f=a.next())clearTimeout(f.value);M.length=0;I2o(K().timeOutMessages,M,d,W)}},"BNu9j");
var t=function(){return!!K().persistentErrorMessageTitle},x=function(){return l!==void 0},O=function(){return K().title};
return _.n("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.n("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.n("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.n("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var a,f=(a=K().backgroundImage)==null?void 0:a.sources,B;return(f==null?0:f.length)?"background-image: url("+((B=f[0])==null?void 0:B.url)+")":
""}}),_.n("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.n(_.r,{cond:function(){return!t()},
then:function(){var a={};return _.n("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.n("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.n(_.O$,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+G()},
data:function(){var f="loading_animation_"+G();return{animationConfig:{name:f,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+f+".json",loop:!0,autoplay:!0}}}})),_.n("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.n(_.r,{cond:O,
then:function(){return _.n("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},O)}}),_.n("p",{class:_.JB("mini-app-splash-screen-view-model-wiz__timeout-message",(a["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return C()},a)),
"aria-live":"polite"},D),_.n(_.r,{cond:x,then:function(){return _.n("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.n("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:q}))}})))}}),_.n(_.r,{cond:t,
then:function(){return _.n("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.n("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return K().persistentErrorMessageTitle}),_.n(_.r,{cond:function(){return!!K().persistentErrorMessageDescription},
then:function(){return _.n("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return K().persistentErrorMessageDescription})}}))}})))},"ee");var XCa=new _.G$("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var mzw=WV;WV=function(u){function K(l){if(l){var D,d;(D=l.__spec)==null||(d=D.didUnmount)==null||d.call(D);for(D=0;D<l.childNodes.length;D++)K(l.childNodes[D])}}
mzw==null||mzw(u);Al(function(){for(var l=0;l<u.length;l++)K(u[l])})};var hGB=_.rf(function(u){var K=u.data;var l=u.score;var D=u.formattedScore;var d=u.onScoreChanged;var C=u.isEmbeddedInWebview;var W=_.W4("yt-mini-app-score-button-view-model"),M=function(){var O;return _.b(K==null?void 0:(O=K())==null?void 0:O.buttonViewModel,_.kY)},q=function(){var O;
return(l==null?void 0:l())||Number(K==null?void 0:(O=K())==null?void 0:O.lastScore)||0},v=function(){var O;
return(D==null?void 0:D())||((O=M())==null?void 0:O.title)||""},G,t=1;
if(u=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))u=Number(u),t=isNaN(u)?1:u/100;_.gp(function(){d==null||d(q());var O;var a=_.lt((O=M())==null?void 0:O.onTap);if(a){O=_.b(a,O7A);var f,B,p;O=_.b(O==null?void 0:(f=O.panelLoadingStrategy)==null?void 0:(B=f.inlineContent)==null?void 0:(p=B.dialogViewModel)==null?void 0:p.customContent,r7H)}else O=void 0;if(f=O)f.score=v()},"KZFi5e");
u=_.p4(function(){var O,a,f=K==null?void 0:(O=K())==null?void 0:(a=O.loggingDirectives)==null?void 0:a.trackingParams;f&&_.QZ(_.GB().resolve(_.Zl),f);return!1});
_.ZY(function(){if(W.value){var O=W.value.querySelector("button"),a=M();O&&a&&yrq(O,a);$f("yt-share-playable-with-high-score",function(){var f=q().toString(),B=K==null?void 0:K().onShareHighScoreCommand,p=K==null?void 0:K().highScoreShareClientParamIdentifier,V=C==null?void 0:C();B&&(V?(p=new yFa,f=_.Tj(p,2,f),uw(B,f.JSC$12247_serializeBinary())):p&&(_.GB().resolve(XCa).clientParams.set(p,{miniAppClientParams:{highScore:f}}),N9R(B,!1)))})}});
var x=function(){var O=M();O&&(l==null?0:l())&&O.accessibilityText&&(O.accessibilityText=O.accessibilityText.replace(G,v()));G=v();return{numberValue:q(),numberText:v(),heightPx:36,fontSizeMultiplier:t,shouldAnimate:!(l==null||!l())&&!0}};
return _.n("yt-mini-app-score-button-view-model",{class:function(){var O={};return _.jX("mini-app-score-button-view-model-wiz",(O["mini-app-score-button-view-model-wiz--is-visible"]=q()!==0,O))},
el:W,"on:click":u},oZ(!1,function(){return _.n("span",{style:"display:none;"},q)}),_.n(_.mo,{data:function(){var O;
return K==null?void 0:(O=K())==null?void 0:O.buttonViewModel}},{buttonViewModel:function(O){return _.n(_.P2,{data:O.data,
animatedTextProps:x})}}))},"fe");var lQH=_.rf(function(u){var K,l=(K=_.f7("yt-mini-app-is-theater-mode-enabled"))!=null?K:!1,D=_.S("enable_playable_container_save_button"),d=_.S("enable_play_next_destination_page_in_toolbar");K={};return _.n("ytm-mini-app-top-bar-view-model",null,_.n("div",{class:_.JB("yt-mini-app-top-bar-view-model",(K["yt-mini-app-top-bar-view-model--mobile"]=!1,K["yt-mini-app-top-bar-view-model--desktop"]=!0,K))},_.n("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.n(_.r,{cond:function(){var C;
return!!u.data().backButtonEdu&&!((C=u.isExitMiniAppSeen)==null?0:C.call(u))},
then:function(){return _.n(_.mo,{data:function(){return u.data().backButtonEdu}},{buttonViewModel:_.P2})},
else:function(){return _.n(_.mo,{data:function(){return u.data().backButton}},{buttonViewModel:_.P2})}}),_.n(_.r,{cond:function(){return u.data().viewAllButton&&!0},
then:function(){return _.n(_.mo,{data:function(){return u.data().viewAllButton}},{buttonViewModel:_.P2})}}),_.n(_.r,{cond:function(){return u.data().title&&!0},
then:function(){return _.n("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return u.data().title})}})),_.n("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.n(_.r,{cond:function(){var C;
return(C=u.isDesktopPlayPage)==null?void 0:C.call(u)},
then:function(){return _.n(_.G1,null,_.n(EZm,{highScoreButton:function(){return u.data().highScoreButton},
score:u.score,formattedScore:u.formattedScore,onScoreChanged:u.onScoreChanged,isEmbeddedInWebview:u.isEmbeddedInWebview}),_.n(L4a,{enableSaveButton:function(){return _.Z7(D)},
saveButton:function(){return u.data().saveButton},
isSaved:u.isSaved,onSaveToggled:function(){return u.onSaveToggled}}),_.n(uww,{menuButton:function(){return u.data().menuButton}}))},
else:function(){return _.n(_.r,{cond:function(){return!1},
then:function(){return _.n(_.mo,{data:function(){return u.data().playPageButton}},{buttonViewModel:function(C){return _.n(_.P2,{data:C.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.n(EZm,{highScoreButton:function(){return u.data().highScoreButton},
score:u.score,formattedScore:u.formattedScore,onScoreChanged:u.onScoreChanged,isEmbeddedInWebview:u.isEmbeddedInWebview})}})}})),_.n("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.n(_.mo,{data:function(){return u.data().muteButton}},{toggleButtonViewModel:function(C){var W=C.data;
return _.n(_.YK,{data:function(){var M,q;return Object.assign({},W(),{isToggled:(q=(M=u.isAudioEnabled)==null?void 0:M.call(u))!=null?q:!0})},
onToggle:u.onAudioToggled,useOutlinedIcon:!0})}}),_.n(_.mo,{data:function(){return u.data().theatreModeButton}},{toggleButtonViewModel:function(C){var W=C.data;
return _.n("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.n(_.YK,{data:function(){return Object.assign({},W(),{isToggled:l})},
useOutlinedIcon:!0}))}}),_.n(KVm,{fullscreenButton:function(){return u.data().fullscreenButton}}),_.n(_.r,{cond:function(){return _.Z7(d)&&u.data().viewAllButton&&!1},
then:function(){return _.n(_.mo,{data:function(){return u.data().viewAllButton}},{buttonViewModel:_.P2})}}),_.n(_.r,{cond:function(){var C;
return!((C=u.isDesktopPlayPage)==null?0:C.call(u))},
then:function(){return _.n(_.G1,null,_.n(L4a,{enableSaveButton:function(){return _.Z7(D)},
saveButton:function(){return u.data().saveButton},
isSaved:u.isSaved,onSaveToggled:function(){return u.onSaveToggled}}),_.n(uww,{menuButton:function(){return u.data().menuButton}}))}}))))},"ge");
lQH.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var uww=_.rf(function(u){return _.n(_.mo,{data:u.menuButton},{buttonViewModel:_.P2})},"he"),L4a=_.rf(function(u){var K=u.enableSaveButton;
var l=u.saveButton;var D=u.isSaved;var d=u.onSaveToggled;return _.n(_.r,{cond:function(){return K()&&!(l==null||!l())},
then:function(){return _.n(_.mo,{data:function(){var C=_.b(l==null?void 0:l(),_.Za),W;return{toggleButtonViewModel:Object.assign({},C,{isToggled:(W=D==null?void 0:D())!=null?W:!(C==null||!C.isToggled)})}}},{toggleButtonViewModel:function(C){return _.n(_.YK,{data:C.data,
onToggle:d})}})}})},"ie"),EZm=_.rf(function(u){var K=u.highScoreButton;
var l=u.score;var D=u.formattedScore;var d=u.onScoreChanged;var C=u.isEmbeddedInWebview;return _.n(_.mo,{data:K},{miniAppScoreButtonViewModel:function(W){return _.n(hGB,{data:W.data,score:l,formattedScore:D,onScoreChanged:d,isEmbeddedInWebview:C})}})},"je"),KVm=_.rf(function(u){u=u.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.n(_.G1,null):_.n(_.mo,{data:u},{buttonViewModel:_.P2})},"ke");_.DqC=new _.G$("DESKTOP_CURRENT_PAGE");var oda=_.rf(function(u){var K=u.data;var l=_.S("force_active_time_logging_webview"),D=!1,d=new fzC,C=void 0,W=void 0,M=_.GB().resolve(Uzk),q=new azC,v=void 0,G=void 0,t=[],x=void 0,O=void 0,a=!1,f=!1,B=!1,p=!1,V=new _.et,m=_.GB().resolve(XCa),Z=_.GB().resolve(_.lx),A=_.GB().resolve(_.vv(j0)),h,C9=(h=_.GB().resolve(_.vv(_.DqC)))==null?void 0:h.getCurrentPage(),Wo=!1,$y=0,co=function(ZH){ZH.preventDefault();return ZH.returnValue=""},UZ;
u=_.y(_.On(!((UZ=_.f7("yt-mini-app-is-audio-enabled"))!=null&&!UZ),void 0,"cGaEvf"));var tH=u.next().value,gq=u.next().value,Bo;UZ=_.y(_.On(!((Bo=_.f7("exit-mini-app-seen-state"))==null||!Bo),void 0,"DctXGe"));var uk=UZ.next().value,ca=UZ.next().value;Bo=_.y(_.On(!1,void 0,"pU1jdd"));var Ha=Bo.next().value,hH=Bo.next().value;Bo=_.y(_.On(void 0,void 0,"ldLqDf"));var tR=Bo.next().value,ns=Bo.next().value;Bo=_.y(_.On(void 0,void 0,"mdofE"));var Pa=Bo.next().value,QV=Bo.next().value;Bo=_.y(_.On(!0,void 0,
"T1gxCf"));var Ls=Bo.next().value,yn=Bo.next().value;Bo=_.y(_.On(!1,void 0,"gxt7wf"));var dN=Bo.next().value,OB=Bo.next().value;Bo=_.y(_.On(void 0,void 0,"yqLV6d"));var vE=Bo.next().value,Gw=Bo.next().value;Bo=_.y(_.On(0,void 0,"l6CrGf"));var Vm=Bo.next().value,DI=Bo.next().value,uG=_.o9("mini-app-container-view-model"),oC=function(){return K().isEmbeddedInWebview},ma=function(){return K().hasPlayNextShelf};
$f("yt-page-type-changed",function(ZH){if(_.S("enable_is_mini_app_page_active_bugfix"))ZH.detail.newPageSubtype==="mini_app"&&ZH.detail.newPageType==="ytd-browse"||!Ls()||RC();else if(ZH=_.i6q()==="mini_app",ZH!==Ls())if(yn(ZH),ZH){var I2;ZH=(I2=K().playableId)==null?void 0:I2.toString();ZH!==void 0&&window.location.href.includes(ZH)&&!f&&(p=!0,$p(),va.value&&Gg(va.value))}else ZH||RC()});
$f("yt-action",function(ZH){ZH.detail.actionName==="yt-engagement-panel-visible-changed"&&ZH.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&ZH.detail.args[2]==="PAmini_app_panel"&&RC();_.S("enable_is_mini_app_page_active_bugfix")?ZH.detail.actionName==="yt-history-load"&&!Ls()&&(C9==null?0:C9.active)?(yn(!0),$p(),va.value&&Gg(va.value)):ZH.detail.actionName==="yt-history-load"&&Ls()&&!K().isEmbeddedInWebview&&aO():Ls()&&ZH.detail.actionName==="yt-history-load"&&(p?p=!1:K().isEmbeddedInWebview||
aO())});
_.No(function(){aC()});
_.gp(function(){$p()},"PiwKsd");
var $p=function(){var ZH=K().playableId,I2=K().localReleaseId,Np=K().derivedDeviceInterface;if(f)_.hV(new _.wv("[MiniAppContainerViewModel] onEnter was called more than once"));else{f=!0;C=new qTa(ZH,I2,Np,document.visibilityState==="visible");vZw(C);W=new pCw(ZH);dqs(M,ZH);zGa(q,{showMiniAppAdCommand:K().showMiniAppAdCommand,isEmbeddedInWebview:K().isEmbeddedInWebview,playLogger:C});yuH()&&(O=document.body.style.backgroundColor,_.KJ(document.body,"background-color","black"));dv();S2();V=new _.et;
if(K().isEmbeddedInWebview){if(ZH=(new URLSearchParams(window.location.search)).get("postPlayNonce"))nZH(C,ZH),Wo=!0;d.initialize({onAudioStateLoaded:function(db){HE(db)},
onMuteMiniApp:function(){HE(!1)},
onUnmuteMiniApp:function(){HE(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(db){Wo||(nZH(C,db),Wo=!0)},
confirmExitMiniApp:function(){var db,M0,AO;return _.H(function(tX){if(tX.nextAddress==1)return K().confirmExitMiniAppCommand?tX.yield(Promise.race([V.promise,Promise.resolve(!1)]),2):tX.return();(db=tX.yieldResult)?!K().confirmExitMiniAppCommandEdu||(AO=(M0=uk)==null?void 0:M0())!=null&&AO?zj(K().confirmExitMiniAppCommand):(zj(K().confirmExitMiniAppCommandEdu),_.Uj("exit-mini-app-seen-state","true",2592E6)):zj(K().closeMiniAppCommand);_.TG(tX)})},
onNativeBenchmarkingMessageReceived:function(db){db=Sfm(_.NSq(db));if(_.p3(db,_.Lz,3,GRC)){var M0=_.uO(db,_.Lz,3,GRC),AO=kUH();var tX=Aq(AO.getSeconds())-Aq(M0.getSeconds());M0=_.tq(AO,2)-_.tq(M0,2);tX<0&&M0>0?(tX+=1,M0-=1E9):tX>0&&M0<0&&(--tX,M0+=1E9);tX=(new HW).setSeconds(tX);tX=_.M9(tX,2,_.bG(M0),0);_.jF(db,1,tX)}var Mn;(Mn=G)==null||Mn.returnNativeBenchmarkingMessage(db)},
multiplayer3pAckStateLoaded:function(db){aO(db)},
exitMiniAppSeenStateLoaded:function(db){K().confirmExitMiniAppCommandEdu&&ca(db)},
onNavigateToNewMiniApp:function(){zj(K().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(db){db=new URLSearchParams(db);var M0=void 0;db.has("invite_code")&&(M0=new ReH,db=db.get("invite_code"),M0=_.Tj(M0,1,db));if(db=M0){var AO;(AO=G)==null||AO.sendGameData(db)}},
onPauseMiniApp:function(){D=!0;tE()},
onResumeMiniApp:function(){D=!0;HZ()},
onAdFinished:function(db){q.onAdFinished(db)}});
K().showMultiplayer3pConsentDialogCommand||V.resolve(!0);zj(K().onContainerReadyCommand)}else nZH(C),V.resolve(!0);iqs(W,$z0(C));$z0(C).then(function(db){db={miniAppPlayData:{postPlayNonce:db}};var M0,AO=(M0=K().loggingDirectives)==null?void 0:M0.trackingParams;AO&&_.iT().stateChanged(AO,db)});
ZH=K().showSignInDialogCommand;!Ao9()&&ZH&&(_.Uj("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),zj(ZH));K().confirmExitMiniAppCommand&&A&&(ZH=VTR(K().confirmExitMiniAppCommand))&&(A.customConfirmationCommand=ZH)}},aC=function(){O&&_.KJ(document.body,"background-color",O);
a=!1;x&&x.release();W.flush().catch(function(ZH){_.hV(ZH)});
M.flush().catch(function(ZH){_.hV(ZH)});
tqs(C);pM();G=void 0;C7w(m)},RC=function(){yn(!1);
aC();hH(!1);Gw(void 0);ns(void 0);QV(void 0);$y=0;DI(0);f=!1},tE=function(){var ZH;
(ZH=G)==null||ZH.onPause();x&&x.release();W.flush().catch(function(I2){_.hV(I2)});
M.flush().catch(function(I2){_.hV(I2)});
GC0(C)},HZ=function(){var ZH;
(ZH=G)==null||ZH.onResume();S2();ZH=C;ZH.isForeground=!0;dJ(ZH,"PLAY_EVENT_TYPE_PLAY_RESUME")},HE=function(ZH){var I2;
(I2=G)==null||I2.onAudioToggled(ZH);gq(ZH)},aO=function(ZH){K().showMultiplayer3pConsentDialogCommand&&(K().isEmbeddedInWebview&&ZH!==void 0&&V.resolve(ZH),!ZH&&_.i6q()==="mini_app"&&zj(K().showMultiplayer3pConsentDialogCommand))},mf=function(){var ZH,I2,Np,db;
return _.H(function(M0){if(M0.nextAddress==1){!K().isLivestream||K().disableVideoCapture||(ZH=G)!=null&&ZH.sendStartGameFrameCapture();I2=(new URL(window.location.href)).searchParams;if(I2.has("invite_code")){var AO=new ReH,tX=I2.get("invite_code");Np=_.Tj(AO,1,tX);(db=G)==null||db.sendGameData(Np)}Ha()||(hH(!0),AO=C,AO.state!==1?_.hV(new _.wv("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+HqH[AO.state])):(_.OP("mini_app_ids_without_game_ready").includes(AO.JSC$16746_miniAppId)&&(AO.gameReady=
!0),AO.state=2,AO.beforeReady=!1,Dn(AO,"ma_ffr"),dJ(AO,"PLAY_EVENT_TYPE_PLAY_READY")));return M0.yield(V.promise,2)}zj(K().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();K().isEmbeddedInWebview||aO();_.TG(M0)})},AR=function(){var ZH=C;
ZH.gameReady=!0;Dn(ZH,"ma_gr")},PE=function(ZH){var I2;
return _.H(function(Np){if(Np.nextAddress==1)return _.Qg(Np,2),Np.yield(wCR(W,ZH),4);if(Np.nextAddress!=2)return _.I$(Np,0);I2=_.iY(Np);zj(K().showSavingErrorPopupCommand);throw I2;})},Dk=function(){var ZH,I2;
return _.H(function(Np){if(Np.nextAddress==1)return _.Qg(Np,2),Np.yield(TQw(W),4);if(Np.nextAddress!=2)return ZH=Np.yieldResult,Np.return(ZH);I2=_.iY(Np);zj(K().showLoadingErrorDialogCommand);throw I2;})},hE=function(ZH){C.logError(ZH)},CU=function(ZH,I2,Np){STN(C,ZH,I2,Np)},Y$=function(ZH,I2){Oqk(C,ZH,I2)},J9=function(){!l&&K().isEmbeddedInWebview||_.vu();
xzN(C,!0);a||(window.addEventListener("beforeunload",co,{capture:!0}),a=!0)},Jg=function(ZH){var I2,Np,db,M0,AO,tX,Mn;
return _.H(function(m1){if(m1.nextAddress==1)return M&&(!v||v<ZH)&&ZH>0?m1.yield(IQA(M,ZH),3):m1.jumpTo(0);I2=m1.yieldResult;Np=_.y(I2);db=Np.next().value;M0=Np.next().value;AO=db;tX=M0;((Mn=AO)==null?0:Mn.displayString)&&tX&&(ns(tX),QV(AO.displayString));_.TG(m1)})},Jm=function(ZH){var I2=K().onBenchmarkingMessageReceivedCommand;
if(I2){var Np=kUH();_.Br(ZH,3,GRC,Np);uw(I2,b3w(ZH))}},JV=function(ZH){var I2=K().onGameFrameReceivedCommand;
if(I2){var Np=new XP;var db=new He2;var M0=ZO(ZH,1);db=_.iP(db,1,M0);ZH=_.A0(ZH,2);ZH=_.Tj(db,2,ZH);Np=_.jF(Np,2,ZH);uw(I2,nv0(Np))}},aR=function(ZH){var I2=K().onGameAudioDataReceivedCommand;
if(I2){var Np=new XP;var db=new qc2;ZH=_.A0(ZH,1);db=_.Tj(db,1,ZH);Np=_.jF(Np,4,db);uw(I2,nv0(Np))}},Th=function(){var ZH=new URLSearchParams(window.location.search);
if(K().isEmbeddedInWebview&&ZH&&ZH.get("override_hl")==="true"&&ZH.get("hl"))return ZH.get("hl");ZH=document.documentElement.lang;return ZH!==""?ZH:_.lv},ky=function(ZH){var I2=K().onShareInviteCodeCommand;
if(I2)if(K().isEmbeddedInWebview){var Np=new yFa;ZH=_.Tj(Np,1,ZH);uw(I2,oik(ZH))}else Np=K().inviteCodeShareClientParamIdentifier,m.clientParams.set(Np,{miniAppClientParams:{inviteCode:ZH}}),zj(I2)},x0=function(ZH){var I2,Np,db;
return _.H(function(M0){if(M0.nextAddress==1)return I2=K().onMiniAppOpenYtContentRequested,M&&_.S("enable_open_yt_content")&&I2?M0.yield(yzw(M,ZH),3):M0.jumpTo(0);Np=M0.yieldResult;if(Np==="OK")if(K().isEmbeddedInWebview){var AO=new y7R;db=U5(AO,2,AW,T6(ZH));uw(I2,WRk(db))}else Z.clientData.set("video_id",ZH),zj(I2);_.TG(M0)})},WE=function(ZH){$y+=_.tq(ZH,3);
ZH=Math.min(Math.log(1+$y/15E6*9)/Math.log(10),.99);DI(ZH);Pr(ZH)},Pr=_.wR(function(ZH){var I2=K().updateLoadingProgressCommand;
if(I2){var Np=new y7R;ZH=U5(Np,3,AW,_.Mp(ZH));uw(I2,WRk(ZH))}},100),xp=function(ZH){return RG2(q,ZH)},S2=function(){var ZH,I2;
((ZH=_.SGH())==null?void 0:(I2=ZH.wakeLock)==null?void 0:I2.request)!=null&&_.SGH().wakeLock.request("screen").then(function(Np){x=Np}).catch(function(){})},va=_.W4("iframe");
_.gp(function(){K().isSupportedCountry&&(Ao9()||_.S("enable_sign_in_promo")||!K().showSignInDialogCommand?va.value&&Gg(va.value):zj(K().onMiniAppReadyCommand))},"XK60ib");
var R2=function(){return _.n("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Ha()?0:-1},
el:va})},Gg=function(ZH,I2){I2=I2===void 0?!1:I2;
var Np=MS();Np&&(I2||Np.toString()!==ZH.getAttribute("src"))&&(G=KXo(K().source,{isAudioEnabled:tH,onFirstFrameReady:mf,onGameReady:AR,onSave:PE,onLoad:Dk,onError:hE,onSdkCalled:CU,onSdkPerformanceUpdate:Y$,onClick:J9,onSendHighScore:Jg,onBenchmarkingMessageReceived:Jm,getLanguage:Th,onShareInviteCode:ky,onResourceLoaded:WE,onOpenYTContent:x0,onShowMiniAppAd:xp,onGameFrameReceived:JV,onGameAudioReceived:aR},ZH,Np),Fu(ZH,"load",function(){Dn(C,"ma_il");Fu(ZH,"load",function(){Gg(ZH,!0)})}),_.yg(ZH,
Np))},MS=function(){var ZH=K().url;
if(ZH&&(ZH=_.AP(ZH),ZH!==null)){if(K().source&&K().source==="MINI_APP_SOURCE_GAMESNACKS")ZH=_.cK(ZH,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.S("enable_origin_query_parameter_bugfix")){var I2=_.NZ(_.CuZ(ZH.toString()));I2=new URLSearchParams(I2||"");I2.set("origin",window.location.origin);I2=I2.toString();ZH=_.VS(ZH).toString();ZH=_.Fz(USH.exec(ZH)[0]+(I2.trim()?"#"+I2:""))}return ZH}},O2=function(){var ZH={};
ZH=_.JB("yt-mini-app-container-view-model__loading-screen",(ZH["yt-mini-app-container-view-model__loading-screen--fade-out"]=Ha,ZH));var I2=function(){return Ha()?1:Vm()};
return _.n("div",{class:ZH},_.n(_.mo,{data:function(){return K().splashScreen}},{miniAppSplashScreenViewModel:function(Np){return _.n(A4k,{data:Np.data,
loadingProgress:I2})}}))},dv=function(){t=[];
t.push(_.kU(window,"visibilitychange",function(){B||D&&oC()||(document.visibilityState==="visible"?HZ():tE())}));
t.push(_.kU(window,"pagehide",function(){aC()}));
t.push(_.kU(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&uG.value.dispatchEvent(new Event("tap"))},0)}));
t.push(_.kU(uG.value,"pointerdown",function(){xzN(C,!1)},!0));
t.push(_.kU(uG.value,"pause",function(){B=!0;tE()}));
t.push(_.kU(uG.value,"play",function(){B=!1;HZ()}));
t.push(_.kU(uG.value,"exit",function(){aC()}));
var ZH=navigator.keyboard,I2=ZH&&ZH.lock;t.push(_.kU(window,gOC,function(){OB(kOS());kOS()?(K().hasPlayNextShelf&&XY("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),LU("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),I2&&ZH.lock(["Escape"])):(K().hasPlayNextShelf&&LU("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),XY("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),I2&&ZH.unlock())}));
K().showMultiplayer3pConsentDialogCommand&&t.push(_.kU(window,"yt-playables-ack-3p-data-usage",function(){snC(M)}));
K().confirmExitMiniAppCommandEdu&&t.push(_.kU(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Uj("exit-mini-app-seen-state","true",2592E6)}));
K().onGameAudioDataReceivedCommand&&t.push(_.kU(window,"message",function(Np){Np=Np.event_;var db,M0=(db=va.value)==null?void 0:db.src;if(M0&&Np.origin===(new URL(M0)).origin&&Np.data&&Np.data.type==="GAME_AUDIO"&&Np.data.audio&&Np.data.audio.length>0)if(_.S("enable_sending_unwrapped_game_audio_as_serialized_metadata"))uw(K().onGameAudioDataReceivedCommand,Np.data.audio);else{var AO=new FileReader;AO.onload=function(){var tX=new XP;var Mn=new qc2;Mn=_.Tj(Mn,1,AO.result);tX=_.jF(tX,4,Mn);uw(K().onGameAudioDataReceivedCommand,
nv0(tX))};
AO.readAsDataURL(new Blob([Np.data.audio]))}}))},pM=function(){t.forEach(function(ZH){V2(ZH)});
window.removeEventListener("beforeunload",co,{capture:!0})},zj=function(ZH){ZH&&N9R(ZH,K().isEmbeddedInWebview||!1)},LU=function(ZH,I2){ZH=_.y(uG.value.getElementsByClassName(ZH));
for(var Np=ZH.next();!Np.done;Np=ZH.next())Np.value.classList.add(I2)},XY=function(ZH,I2){ZH=_.y(uG.value.getElementsByClassName(ZH));
for(var Np=ZH.next();!Np.done;Np=ZH.next())Np.value.classList.remove(I2)};
return function(){var ZH={};ZH=_.JB("yt-mini-app-container-view-model",(ZH["yt-mini-app-container-view-model--desktop"]=!0,ZH["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return K().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},ZH["yt-mini-app-container-view-model--ios-web-view"]=yuH(),ZH["yt-mini-app-container-view-model--no-top-bar"]=function(){return!K().topBar},ZH["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return K().hasPlayNextShelf},ZH["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return K().hasPlayNextShelf},ZH["yt-mini-app-container-view-model--show-peek-below"]=function(){return!dN()&&K().hasPlayNextShelf},ZH));
var I2={};I2=_.JB("yt-mini-app-container-view-model__content",(I2["yt-mini-app-container-view-model__content--desktop-content"]=!0,I2["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return K().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},I2["yt-mini-app-container-view-model--desktop-play-page"]=function(){return K().hasPlayNextShelf},I2));
return _.n("mini-app-container-view-model",{el:uG},_.n("div",{class:ZH},_.n(_.r,{cond:function(){return K().topBar&&!dN()},
then:function(){return _.n(_.mo,{data:function(){return K().topBar}},{miniAppTopBarViewModel:function(Np){return _.n(lQH,{data:Np.data,
isAudioEnabled:tH,onAudioToggled:function(db){HE(db)},
score:tR,formattedScore:Pa,onScoreChanged:function(db){v=db},
isEmbeddedInWebview:oC,isSaved:vE,onSaveToggled:function(db){Gw(db)},
isExitMiniAppSeen:uk,isDesktopPlayPage:ma})}})}}),_.n("div",{class:I2},_.n(_.r,{cond:Ls,
then:function(){return R2()}}),_.n(_.r,{cond:function(){return!K().isEmbeddedInWebview},
then:function(){return O2()}}))))}()},"le");
oda.idomCompat=!0;_.SX(oda,"mini-app-container-view-model",{props:{data:_.M6}});var WVN=_.rf(function(u){var K=u.data;return _.n("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.n("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.p4(function(){var l=K().onTap;l&&_.IT(l)})},_.n(_.r,{cond:function(){return K().icon},
then:function(l){return _.n(_.VB,{icon:function(){return l().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.n("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return K().title})))},"me");
WVN.idomCompat=!0;var HON=_.rf(function(u){var K=_.o9("div"),l=_.y(_.On(void 0,void 0,"kFCJ0c")),D=l.next().value,d=l.next().value;l=_.y(_.On(void 0,void 0,"PIPgWd"));var C=l.next().value,W=l.next().value;l=_.y(_.On(void 0,void 0,"rV66ob"));var M=l.next().value,q=l.next().value,v=function(){var p=D();return p!==void 0?Math.abs(p):void 0},G=function(){var p=v();
return p===void 0||p<=3},t=function(){var p=v();
var V=C(),m=M();p=p!==void 0&&V!==void 0&&m!==void 0?V-m-p:void 0;return p===void 0||p<=3},x=function(p){K.value&&K.value.scrollBy({top:0,
left:(_.E3("HTML_DIR")==="rtl"?-1:1)*p*K.value.clientWidth,behavior:"smooth"})},O=function(){var p;
d((p=K.value)==null?void 0:p.scrollLeft);var V;W((V=K.value)==null?void 0:V.scrollWidth);var m;q((m=K.value)==null?void 0:m.clientWidth)},a=function(){x(-.5)},f=function(){x(.5)};
l=_.p4(function(){O()});
_.N_(function(){O();if(K.value){var p=new ResizeObserver(O);p.observe(K.value);_.No(function(){p.disconnect()})}});
var B={};return _.n("yt-sponsorships-scrollable-shelf",{class:_.JB("ytdSponsorshipsScrollableShelfHost",u.className)},_.n("div",{class:_.JB("ytdSponsorshipsScrollableShelfContent",(B.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return u.data().previousButton&&u.data().nextButton&&!G()&&!t()},B.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return u.data().previousButton&&!G()&&t()},B.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return u.data().nextButton&&
G()&&!t()},B)),
el:K,"on:scroll":l},u.children),_.n(_.r,{cond:function(){return!G()},
then:function(){return _.n(_.mo,{data:function(){return u.data().previousButton}},{buttonViewModel:function(p){return _.n(_.P2,{data:p.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:a})}})}}),_.n(_.r,{cond:function(){return!t()},
then:function(){return _.n(_.mo,{data:function(){return u.data().nextButton}},{buttonViewModel:function(p){return _.n(_.P2,{data:p.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:f})}})}}))},"ne");
HON.idomCompat=!0;var qIB=_.rf(function(u){var K=u.data;u={};return _.n("yt-sponsorships-hub",{class:_.JB("ytdSponsorshipsHubHost",(u.ytdSponsorshipsHubHostIndented=function(){return K().indented},u))},_.n("div",{class:"ytdSponsorshipsHubHeader"},_.n("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.n("div",{class:"ytdSponsorshipsHubAvatar"},_.n(_.mo,{data:function(){return K().avatar}},{avatarViewModel:_.Y_})),_.n(_.r,{cond:function(){return K().badgeImage},
then:function(l){return _.n("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.n("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.n("div",{class:"ytdSponsorshipsHubBadge"},_.n(_.n4,{data:l,targetWidth:24,targetHeight:24,alt:""}))))}})),_.n("div",{class:"ytdSponsorshipsHubDetails"},_.n("div",{class:"ytdSponsorshipsHubTierName"},function(){return K().tierName}),_.n("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return K().membershipType}),_.n("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return K().membershipDurationOrExpiry})),_.n("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.n(_.mo,{data:function(){return K().manageButton}},{buttonViewModel:function(l){return _.n(_.P2,{data:l.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.n(_.mo,{data:function(){return K().actionMenuButton}},{buttonViewModel:function(l){return _.n(_.P2,{data:l.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.n("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return K().perksTitle}),_.n(HON,{data:function(){return{previousButton:K().previousPerkButton,
nextButton:K().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.n("div",{class:"ytdSponsorshipsHubPerkCards"},_.n(_.mo,{data:function(){return K().perkCards}},{sponsorshipsHubPerkCardViewModel:WVN}),_.n(_.r,{cond:function(){return K().viewAllPerksButton},
then:function(l){return _.n(MwH,{data:l})}}))))},"oe");
qIB.idomCompat=!0;var MwH=_.rf(function(u){var K=u.data;return _.n("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.n(_.mo,{data:function(){return K().button}},{buttonViewModel:_.P2}),_.n("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.n("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return K().title}),_.n("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return K().subtitle})))},"pe");
MwH.idomCompat=!0;_.SX(qIB,"yt-sponsorships-hub",{props:{data:_.M6}});_.$q2=_.rf(function(u){var K=u.data;return _.n("yt-dual-avatar-view-model",{class:_.JB("ytDualAvatarViewModelHost",u.className),style:_.Fb({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var l;return((l=K().badgeCutoutRadius)!=null?l:14)+"px"}})},_.n("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.n(_.mo,{data:function(){return K().startAvatar}},{avatarViewModel:_.Y_}),_.n(_.mo,{data:function(){return K().endAvatar}},{avatarViewModel:_.Y_})),_.n(_.mo,{data:function(){return K().badge}},
{contentPreviewImageViewModel:function(l){return _.n("div",{class:"ytDualAvatarViewModelBadge"},_.n(_.SO,{data:l.data}))}}))},"qe");
_.$q2.idomCompat=!0;var rzB=_.rf(function(u){var K=u.data;var l,D=!((l=_.GB().resolve(_.vv(_.H1)))==null||!l());u=_.RZ(function(){var G,t,x=D?(G=K().header)==null?void 0:G.backgroundColorDarkMode:(t=K().header)==null?void 0:t.backgroundColorLightMode;if(x!==void 0)return _.Kg(x)},void 0,"UX2G6c");
l=_.RZ(function(){var G,t;return D?(G=K().header)==null?void 0:G.backgroundImagePart1Dark:(t=K().header)==null?void 0:t.backgroundImagePart1Light},void 0,"GPAi1d");
var d=_.RZ(function(){var G,t;return D?(G=K().header)==null?void 0:G.backgroundImagePart2Dark:(t=K().header)==null?void 0:t.backgroundImagePart2Light},void 0,"nboJld"),C=_.RZ(function(){return _.E3("HTML_DIR")==="rtl"},void 0,"LGJceb"),W=_.o9("yt-sponsorships-perks-list"),M=!1,q=function(){var G=W.value;
if(G&&!M){var t,x=(t=G.parentElement)==null?void 0:t.parentElement;if(x)for(G=G.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),t=0;t<G.length;++t){var O=G[t];if(O instanceof HTMLElement){x.scrollTo({top:O.offsetTop+O.clientHeight/2-x.clientHeight/2,behavior:"smooth"});M=!0;break}}}};
_.ZY(function(){var G=W.value;if(G){var t=new ResizeObserver(q);t.observe(G);_.No(function(){t.disconnect()})}});
var v={};return _.n("yt-sponsorships-perks-list",{el:W,class:_.JB("ytdSponsorshipsPerksListHost",(v.ytdSponsorshipsPerksListHorizontalPadding=function(){return K().horizontalPaddingEnabled},v))},_.n("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.n("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Fb({"background-color":u})},_.n("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.n(_.r,{cond:l,then:function(G){var t={};return _.n("div",{class:_.JB((t.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=D,t.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!D,t.ytdSponsorshipsPerksListFlipped=C,t))},_.n(_.n4,{data:G,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.n("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.n(_.r,{cond:d,
then:function(G){var t={};return _.n("div",{class:_.JB((t.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=D,t.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!D,t.ytdSponsorshipsPerksListFlipped=C,t))},_.n(_.n4,{data:G,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.n("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.n(_.mo,{data:function(){var G;
return(G=K().header)==null?void 0:G.dualAvatar}},{dualAvatarViewModel:_.$q2})))),_.n("div",{class:"ytdSponsorshipsPerksListBody"},_.n("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return K().title}),_.n(_.r,{cond:function(){return K().perks},
then:function(G){return _.n(_.p0,{each:G},function(t,x){var O={};return _.n("div",{class:_.JB("ytdSponsorshipsPerksListPerkContainer",(O.ytdSponsorshipsPerksListSelectedPerk=function(){var a=x(),f=K().selectedPerkIndex;return a===f},O))},_.n(_.r,{cond:function(){return x()>0},
then:function(){return _.n("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.n("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.n(_.r,{cond:function(){return t.icon},
then:function(a){return _.n(_.VB,{icon:function(){return a().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.n("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.n("div",{class:"ytdSponsorshipsPerksListPerkTitle"},t.title),_.n("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.n(_.qC,{text:t.description})),_.n(_.r,{cond:function(){return t.instructions},
then:function(){var a,f;return _.n("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.n("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(a=t.instructions)==null?void 0:a.title),_.n("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.n(_.qC,{text:(f=t.instructions)==null?void 0:f.text})))}}))),_.n(_.r,{cond:function(){return t.emoji},
then:function(a){return _.n("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.n(_.p0,{each:function(){return a()}},function(f){return _.n(_.n4,{data:f,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.n(ndw,{data:t}))})}})))},"re");
rzB.idomCompat=!0;var ndw=_.rf(function(u){var K=u.data;var l=function(W,M){return W===M},D=function(){var W=K();
W=_.b(W==null?void 0:W.badgesShelf,vxk);return W!==void 0&&W!==null?W:{previousButton:{},nextButton:{}}},d=_.W4("div"),C=function(){var W=d.value;
if(W){var M=W.parentElement;if(M){W=W.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var q=0;q<W.length;++q){var v=W[q];if(v instanceof HTMLElement){M.scrollTo({left:v.offsetLeft+v.clientWidth/2-M.clientWidth/2,behavior:"instant"});break}}}}};
_.ZY(function(){var W=d.value;if(W){var M=new ResizeObserver(C);M.observe(W);_.No(function(){M.disconnect()})}});
return _.n("div",null,_.n(_.r,{cond:function(){return K().badges},
then:function(W){return _.n(HON,{data:D},_.n("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:d},_.n(_.p0,{each:function(){return W()}},function(M,q){var v={},G={},t={};
return _.n("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.n(_.r,{cond:function(){return q()>0},
then:function(){return _.n("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.n("div",{class:_.JB("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(v.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return l(q(),K().currentBadgeIndex)},v.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!l(q(),K().currentBadgeIndex)},v))},_.n("div",{class:_.JB("ytdSponsorshipsPerksListLoyaltyBadge",(G.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return l(q(),
K().currentBadgeIndex)},G.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!l(q(),K().currentBadgeIndex)},G))},_.n(_.r,{cond:function(){return M.image},
then:function(x){var O={};return _.n("div",{class:_.JB((O.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return l(q(),K().currentBadgeIndex)},O.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!l(q(),K().currentBadgeIndex)},O))},_.n(_.n4,{data:x,
alt:""}))}})),_.n("div",{class:_.JB("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(t.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return l(q(),K().currentBadgeIndex)},t))},M.title)))})))}}))},"se");
ndw.idomCompat=!0;_.SX(rzB,"yt-sponsorships-perks-list",{props:{data:_.M6}});_.SX(_.rf(function(u){return _.n("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.n(_.r,{cond:function(){return u.data().image},
then:function(K){return _.n(_.n4,{className:"ytwFantasyEmptyStateViewModelImage",data:K,ariaHidden:!0,alt:""})}}),_.n(_.qC,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return u.data().title}}),_.n(_.qC,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return u.data().subtitle}}),_.n(_.mo,{data:function(){return u.data().primaryButton}},{buttonViewModel:function(K){return _.n(_.P2,{data:K.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"te"),"ytw-fantasy-empty-state-view-model",{props:{data:_.M6}});var vdw;var ocr=_.NX({buttonRenderer:_.H6});_.v4(WXq);_.U4(WXq,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var WL=function(){var u=_.Q.apply(this,arguments)||this;u.hideJoinButtonBeforeSubscribed=_.S("hide_join_button_before_subscribed");u.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return u};
_.c(WL,_.Q);_.I=WL.prototype;_.I.hasShowDialogCommand=function(u){return!!_.b(u,O7A)};
_.I.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"}}}};
_.I.updateJoinButtonOverrides=function(){var u,K;(u=_.bi(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(K=u.polymerController)==null||K.set("overrides",this.joinButtonOverrides);if(u=_.bi(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))u.overrides=this.joinButtonOverrides};
_.I.handleButtonRefreshAction=function(u){if(u=_.b(u,Uba))this.set("data.membershipButton",u.membershipButton),this.notifyPath("data.membershipButton")};
_.I.onYtServiceRequestError=function(u){_.rs(this.hostElement,u.detail.error.message)};
_.I.onTap=function(){var u;(u=this.data)!=null&&u.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)};
_.I.handleUnsubscribeAction=function(){var u,K,l;((u=this.data)==null?void 0:(K=u.membershipButton)==null?void 0:(l=K.buttonRenderer)==null?void 0:l.style)==="STYLE_PRIMARY"&&_.bi(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.MN.Object.defineProperties(WL.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.subscriptionStateEntity)==null||!u.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var u,K=(u=this.data)==null?void 0:u.membershipButton,l;u=(K==null?void 0:K.buttonRenderer)||_.b(K==null?void 0:(l=K.timedAnimationButtonRenderer)==null?void 0:l.buttonRenderer,_.lF);return(u==null?void 0:u.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(u==null?void 0:u.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(u==null?void 0:u.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var u;if(this.hasShowDialogCommand((u=this.data)==null?void 0:u.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var u;if(this.hasShowDialogCommand((u=this.data)==null?void 0:u.navigationEndpoint))return"button"}}});
WL.prototype.onTap=WL.prototype.onTap;WL.prototype.onYtServiceRequestError=WL.prototype.onYtServiceRequestError;WL.prototype.updateJoinButtonOverrides=WL.prototype.updateJoinButtonOverrides;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],WL.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],WL.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],WL.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],WL.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.mv),_.N("design:type",Object)],WL.prototype,"ironButtonState",void 0);_.g([_.U(),_.N("design:type",Object)],WL.prototype,"data",void 0);
_.g([_.R("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],WL.prototype,"hideJoin",null);_.g([_.U(),_.N("design:type",String)],WL.prototype,"subscribeKey",void 0);_.g([_.U({selectorArgs:["subscribeKey"],selector:xFL}),_.N("design:type",Object)],WL.prototype,"subscriptionStateEntity",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],WL.prototype,"hideJoinButtonBeforeSubscribed",void 0);
_.g([_.R("subscriptionStateEntity"),_.U({reflectToAttribute:!0}),_.N("design:type",Object),_.N("design:paramtypes",[])],WL.prototype,"subscribed",null);_.g([_.R("subscribed","data.membershipButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],WL.prototype,"joinButtonOverrides",null);_.g([_.R("data.navigationEndpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],WL.prototype,"channelNameTabIndex",null);
_.g([_.R("data.navigationEndpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],WL.prototype,"channelNameRole",null);_.g([_.JU("joinButtonOverrides"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WL.prototype,"updateJoinButtonOverrides",null);_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],WL.prototype,"onYtServiceRequestError",null);
_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],WL.prototype,"onTap",null);_.g([_.T({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],WL);
var Gls=_.at()(WL,"ytd-video-owner-renderer",function(){if(vdw===void 0){var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" 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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);vdw=u}u=vdw;return u},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.SX(_.rf(function(u){var K=u.data;var l;u=_.y(_.On(!((l=_.f7("yt-mini-app-is-theater-mode-enabled"))==null||!l),void 0,"CtFFDf"));var D=u.next().value,d=u.next().value;l=_.y(_.On(!1,void 0,"pRgDfb"));var C=l.next().value,W=l.next().value;_.ZY(function(){var v=_.kU(window,gOC,function(){W(kOS())});
_.No(function(){V2(v)})});
var M;l=(M=_.GB().resolve(_.vv(gjA)))!=null?M:function(){return _.n("div",null)};
_.s6("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){d(!0);_.Uj("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.s6("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){d(!1);_.Uj("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
M={};u={};var q={};return _.n("mini-app-play-page-renderer",{class:_.JB("miniAppPlayPageRendererHost",(M.miniAppPlayPageRendererHostDetailsView=function(){return!D()},M))},_.n("div",{class:_.JB("miniAppPlayPageRendererGameContainer",(u.miniAppPlayPageRendererGameContainerDetailsView=function(){return!D()},u))},_.n(_.mo,{data:function(){return K().containerViewModel}},{miniAppContainerViewModel:oda}),_.n(_.r,{cond:function(){return K().channel&&K().subscribeButton},
then:function(){var v={};return _.n("div",{class:_.JB("miniAppPlayPageRendererChannelContainer",(v.miniAppPlayPageRendererHideVisibility=function(){return C()},v))},_.n(_.mo,{data:function(){return K().channel}},{videoOwnerRenderer:function(G){return _.n(Gls,{data:G.data})}}),_.n(_.mo,{data:function(){return K().subscribeButton}},{subscribeButtonViewModel:function(G){return _.n(_.YR,{data:G.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.n(_.r,{cond:function(){return!D()&&K().description},
then:function(){var v={};return _.n("div",{class:_.JB("miniAppPlayPageRendererMiniAppDescriptionWrapper",(v.miniAppPlayPageRendererHideVisibility=function(){return C()},v))},_.n("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return K().description}))}})),_.n("div",{class:_.JB("miniAppPlayPageRendererPlayNextContainer",(q.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!D()},q.miniAppPlayPageRendererHideVisibility=function(){return C()},q))},_.n(_.mo,{data:function(){return K().sectionList}},
{sectionListRenderer:l})))},"ue"),"mini-app-play-page-renderer",{props:{data:_.M6}});var HL=function(){var u=_.Q.apply(this,arguments)||this;u.isSearch=!1;u.isConstrainedList=!1;u.hasChipsBar=!1;u.inReplyPanel=!1;u.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"}};u.monitorScroll=!0;u.SCROLL_ANIMATION_DURATION_MS=300;u.nextContinuation={continuationType:"sectionListContinuation"};return u};
_.c(HL,_.Q);_.I=HL.prototype;
_.I.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(u){switch(u.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},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:_.S("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.S("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.I.created=function(){var u=this;this.JSC$16885_scrollAnimation=new _.KL(function(K){u.hostElement.scrollTop=K})};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.I.getItemsPath=function(){return"data.contents"};
_.I.replacePrimaryContent=function(u){this.set("data.contents",u)};
_.I.computeHasSortFilter=function(u){return!!u&&!!u.sortFilterSubMenuRenderer};
_.I.computeShouldScrollInPanel=function(u){var K;return!!(u==null?0:(K=u.scrollPaneStyle)==null?0:K.scrollable)};
_.I.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.cF(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.I.scrollToTop=function(){this.hostElement.scrollTop=0};
_.I.scrollToItemSection=function(u){if(u=this.getItemByIdentifier(u))u=this.getScrollPositionForItem(u),this.hostElement.scrollTop!==u&&this.JSC$16885_scrollAnimation.start(this.hostElement.scrollTop,u,this.SCROLL_ANIMATION_DURATION_MS)};
_.I.getItemByIdentifier=function(u){var K=this.contents.querySelectorAll("ytd-item-section-renderer");if(K&&K.length!==0){var l=Array.from(K).findIndex(function(D){return D.sectionIdentifier===u});
return K[l===-1?0:l]}};
_.I.getScrollPositionForItem=function(u){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===u)return 0;u=_.Ey(u).y+this.hostElement.scrollTop-_.Ey(this.hostElement).y;return Math.min(u,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.MN.Object.defineProperties(HL.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.targetId)==="browse-feedFEclips"}}});
HL.prototype.onScroll=HL.prototype.onScroll;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],HL.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.xR.YtLazyListBehavior),_.N("design:type",Object)],HL.prototype,"ytLazyListBehavior",void 0);_.g([_.e(_.yr.YtNextContinuationBehavior),_.N("design:type",Object)],HL.prototype,"ytNextContinuationBehavior",void 0);
_.g([_.e(_.Izw),_.N("design:type",Object)],HL.prototype,"ytBooleanLogicBehavior",void 0);_.g([_.e(_.Ir),_.N("design:type",Object)],HL.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],HL.prototype,"data",void 0);_.g([_.U({value:2}),_.N("design:type",Number)],HL.prototype,"initialCount",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],HL.prototype,"autoFill",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.N("design:type",Boolean)],HL.prototype,"hasSortFilter",void 0);_.g([_.U({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.N("design:type",Boolean)],HL.prototype,"hideBottomSeparator",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.N("design:type",Boolean)],HL.prototype,"shouldScrollInPanel",void 0);
_.g([_.U(),_.N("design:type",Object)],HL.prototype,"isSearch",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],HL.prototype,"isConstrainedList",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],HL.prototype,"responsiveSizing",void 0);_.g([_.U(),_.N("design:type",Object)],HL.prototype,"hasChipsBar",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],HL.prototype,"pageSubtype",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],HL.prototype,"engagementPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],HL.prototype,"liveChatEngagementPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],HL.prototype,"inReplyPanel",void 0);_.g([_.BF("#action-button"),_.N("design:type",HTMLElement)],HL.prototype,"actionButton",void 0);_.g([_.U(),_.N("design:type",Object)],HL.prototype,"scrollUpButtonData",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],HL.prototype,"engagementPanelDropdown",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],HL.prototype,"engagementPanelDialog",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],HL.prototype,"isClipList",null);_.g([_.BF("#contents"),_.N("design:type",HTMLElement)],HL.prototype,"monitorScrollElement",void 0);_.g([_.BF("#contents"),_.N("design:type",HTMLElement)],HL.prototype,"contents",void 0);
_.g([_.PF("scroll"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HL.prototype,"onScroll",null);_.g([_.T({is:"ytd-section-list-renderer",disableElementRegistration:!0})],HL);
var tww=_.at()(HL,"ytd-section-list-renderer",function(){if(V6N===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);V6N=u}u=V6N;return u},{mode:1});var xqR;var SIa;var bOC;var OOs;var M5=function(){return _.Q.apply(this,arguments)||this};
_.c(M5,_.Q);M5.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
M5.prototype.onLikeButtonClick=function(u){u.stopPropagation();u.preventDefault()};
_.MN.Object.defineProperties(M5.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.data)!=null&&u.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)})}}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],M5.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],M5.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],M5.prototype,"ytRendererStamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],M5.prototype,"data",void 0);
_.g([_.U({selectorArgs:["data.likeStatusEntityKey"],selector:dE}),_.N("design:type",Object)],M5.prototype,"likeStatusEntity",void 0);_.g([_.R("data","likeStatusEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],M5.prototype,"likeButtonRenderer",null);_.g([_.T({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],M5);
_.F(M5,"ytd-slim-metadata-toggle-button-renderer",function(){if(OOs!==void 0)return OOs;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
return OOs=u},{mode:1});var q5=function(){var u=_.Q.apply(this,arguments)||this;u.minimizePipBreakages=_.S("web_pip_minimize_breakages");u.showEqualizer=_.S("web_enable_playlist_video_lockup_equalizer");u.watchColorUpdate=_.S("kevlar_watch_color_update");u.actionMap={};return u};
_.c(q5,_.Q);_.I=q5.prototype;_.I.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"}}}};
_.I.computeEditableClass=function(u){return u&&u.menu?"editable":""};
_.I.computeSelected=function(u){return!(u==null||!u.selected)};
_.I.computeUseColorPalette=function(u){return!!((u==null?0:u.lightColorPalette)&&(u==null?0:u.darkColorPalette))};
_.I.computeLargerPlaylistThumbs=function(u,K){return _.S("web_enable_playlist_bigger_thumbnails")&&!K};
_.I.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.I.onYtServiceRequestSent=function(u,K){K.endpoint&&this.isHideEnclosingAction(K.endpoint)&&!this.selected&&gWs(_.y1(),this.data.videoId)};
_.I.isHideEnclosingAction=function(u){var K=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",u);u=this.get("likeEndpoint.status",u)==="INDIFFERENT";return K||u};
_.I.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.I.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.MN.Object.defineProperties(q5.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var u;return!!(this.withinMiniplayer&&((u=this.data)==null?0:u.actionButtons))}}});
q5.prototype.onYtServiceRequestSent=q5.prototype.onYtServiceRequestSent;q5.prototype.canReorderChanged=q5.prototype.canReorderChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],q5.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],q5.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.s8),_.N("design:type",Object)],q5.prototype,"ytdLockupBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],q5.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],q5.prototype,"withinMiniplayer",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],q5.prototype,"minimizePipBreakages",void 0);_.g([_.U({computed:"computeSelected(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],q5.prototype,"selected",void 0);
_.g([_.U({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],q5.prototype,"useColorPalette",void 0);_.g([_.U({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.N("design:type",Boolean)],q5.prototype,"largerPlaylistThumbs",void 0);_.g([_.U(),_.N("design:type",Object)],q5.prototype,"showEqualizer",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],q5.prototype,"canReorder",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],q5.prototype,"touchPersistentDragHandle",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],q5.prototype,"handleIsHovered",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],q5.prototype,"watchColorUpdate",void 0);_.g([_.U(),_.N("design:type",String),_.N("design:paramtypes",[])],q5.prototype,"reorderIcon",null);
_.g([_.R("largerPlaylistThumbs"),_.N("design:type",Number),_.N("design:paramtypes",[])],q5.prototype,"thumbnailWidth",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],q5.prototype,"showActionButtons",null);_.g([_.wn("canReorder"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q5.prototype,"canReorderChanged",null);
_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],q5.prototype,"onYtServiceRequestSent",null);_.g([_.T({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],q5);
_.F(q5,"ytd-playlist-panel-video-renderer",function(){if(bOC!==void 0)return bOC;var u=document.createElement("template");_.z(u,'\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    </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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return bOC=u},{mode:2});var $k=function(){return _.Q.apply(this,arguments)||this};
_.c($k,_.Q);$k.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],$k.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],$k.prototype,"data",void 0);_.g([_.T({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],$k);
_.F($k,"ytd-playlist-panel-supported-items",function(){if(SIa!==void 0)return SIa;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return SIa=
u},{mode:1});NnR=!0;IS0("\\P{N}");var HQZ;var czk=_.QQ("END_OF_PLAYLIST",void 0,"End of playlist"),aQa=_.QQ("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),nL=function(){var u=_.Q.apply(this,arguments)||this;u.minimizePipBreakages=_.S("web_pip_minimize_breakages");u.updatedCoursePanel=_.S("move_three_dot_menu_to_playlist_panel_header_for_courses");u.hideHeaderText=!1;u.useColorPalette=!1;u.collapsed=!1;u.collapsedPreServerOverride="not_tracked";u.isHovered=!1;u.modernPanels=_.S("kevlar_watch_modern_panels");
u.expandLabel=_.QQ("MINIPLAYER_EXPAND_LABEL");u.collapseLabel=_.QQ("MINIPLAYER_COLLAPSE_LABEL");u.isFloating=!1;u.metaPanel=!1;u.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};u.currentIndex=void 0;return u};
_.c(nL,_.Q);_.I=nL.prototype;
_.I.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"}}}};
_.I.created=function(){this.scrollThrottle=new _.MC(this.onThrottledScroll,1E3,this)};
_.I.onMouseEnter=function(){this.isHovered=!0};
_.I.onMouseLeave=function(){this.isHovered=!1};
_.I.computeOverflowMenuData=function(u){return u&&u.menu?u.menu:null};
_.I.computeCollapsible=function(u){return!u};
_.I.computeHasPlaylistButtons=function(u){return!(!u||!u.playlistButtons)};
_.I.computeHasSeparateSaveButton=function(u){return!(!u||!u.saveButton)};
_.I.computeHasToolbarButton=function(u,K){return!(!u||!(K||u.saveButton||u.menu))};
_.I.computePlaylistType=function(u){if(u&&u.playlistId)return u.playlistId.substring(0,4)};
_.I.computeCanReorder=function(u){return u?u.playlistId&&u.playlistId.startsWith("TLPQ")?!0:!!u.isEditable&&!u.isInfinite:!1};
_.I.attached=function(){var u=this;try{_.GB().resolve(_.lX).setPlaylistComponent(this.hostElement)}catch(K){if(_.S("kevlar_park_on_playlist_token_killswitch"))throw K;_.dw().parkOrScheduleJob(function(){_.GB().resolve(_.lX).setPlaylistComponent(u.hostElement)},2,"ci")}_.GA(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.I.detached=function(){_.ts(this.hostElement)};
_.I.computeTrailingIcon=function(u,K,l){return l?K?"yt-icons:collapse":"yt-icons:close":K?"yt-icons:expand":_.S("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.I.computeIndexMessage=function(u,K){return $JH(u+1)+" / "+$JH(K)};
_.I.onRenderStamperFinished=function(){if(this.scrollForStampDom){var u=!0;this.isHovered&&(u=!1);if(this.collapsed||this.hidden)u=!1;u&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.I.collapseChanged=function(){var u=this;this.collapsed||(_.Xf(this.ytTaskEmitterBehavior.getTaskManager(),function(){u.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.I.hiddenChanged=function(){var u=this;this.hidden||_.Xf(this.ytTaskEmitterBehavior.getTaskManager(),function(){u.scrollToCurrentVideo()})};
_.I.setupReordering=function(){var u=_.bi(this.hostElement).querySelector("#items");x$a?_.$F0(this.ytReorderableBehavior,u,u,"playlist-drag-handle"):_.$F0(this.ytReorderableBehavior,u,u)};
_.I.scrollToCurrentVideo=function(){var u=this;_.YL.addJob(function(){var K=_.bi(u.hostElement).querySelector("#items");if(K){K.style.setProperty("padding-bottom","");var l=_.bi(u.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(l){K=l.parentElement||_.kA(document);var D=K||_.kA(document);var d=_.Ey(l),C=_.Ey(D),W=_.xpB(D);if(D==_.kA(document)){var M=d.x-D.scrollLeft;d=d.y-D.scrollTop}else M=d.x-C.x-W.left,d=d.y-C.y-W.top;l=rEa(l);C=D.clientHeight-
l.height;W=D.scrollLeft;var q=D.scrollTop;W+=M-(D.clientWidth-l.width)/2;D=new _.XB(W,q+(d-C/2));K.scrollLeft=D.x;K.scrollTop=D.y}}},8)};
_.I.dataChanged=function(){var u=this;_.qYa(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.W_(this,function(){_.Ve(u.ytTaskEmitterBehavior.getTaskManager(),function(){u.ytRendererBehavior.markDirty();u.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.I.onFullBleedPlayerChanged=function(){_.S("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.I.onFullscreenChanged=function(){_.S("web_watch_imax_theater_mode")||_.S("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.I.updateNowPlayingOverlay=function(){_.S("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.I.onPlaylistLockupNowPlaying=function(u,K){K&&(this.activeNowPlayingRenderer=K);this.updateNowPlayingOverlay()};
_.I.onScroll=function(){this.scrollThrottle.fire()};
_.I.onThrottledScroll=function(){var u=this;_.Ve(this.ytTaskEmitterBehavior.getTaskManager(),function(){u.ytRendererBehavior.markDirty()})};
_.I.onToggleExpanded=function(u){!this.collapsible||u&&(_.HF(u).tagName==="A"||_.rE(_.WF(u),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.I.setCollapsed=function(u){this.collapsible&&(this.collapsed=u,_.bI(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.I.handleCollapsedFromData=function(u){if(u){var K=u.playlistPanelCollapseState;K==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||K==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),K=K==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==K&&this.setCollapsed(K)):this.currentPlaylistId!==u.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(K=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==K&&this.setCollapsed(K),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=u.playlistId}};
_.I.handleDrop=function(u){var K=u.currDragItem;u=K.data.playlistSetVideoId;var l=_.Fq(K.parentNode.childNodes,K),D=void 0;l>0&&(D=K.parentNode.childNodes[l-1].data.playlistSetVideoId);K=_.y1();if(K.responsePlaylistData&&K.responsePlaylistData.contents){var d=Bhq(u,K.responsePlaylistData);K.responsePlaylistData=(0,_.k$.unsafeClone)(K.responsePlaylistData);O9n(K.responsePlaylistData.contents,d,l);K.queueProxy?Gxs(K.queueProxy,d,l,u,D):K.playlistProxy&&Gxs(K.playlistProxy,d,l,u,D);_.sj(K,_.o8(K,K.response?
K.response.autoplayRenderer:void 0))}};
_.I.handleDarkModeChange=function(u){u!==this.isDarkTheme&&(this.isDarkTheme=u)};
_.I.colorPaletteChanged=function(){var u,K=((u=this.data)==null?void 0:u.contents)||[],l;u=_.y(K);for(K=u.next();!K.done;K=u.next()){K=K.value;var D=void 0;if((D=K.playlistPanelVideoRenderer)==null?0:D.selected){u=K.playlistPanelVideoRenderer;D=K=void 0;(l=this.isDarkTheme?(K=u)==null?void 0:K.darkColorPalette:(D=u)==null?void 0:D.lightColorPalette)&&_.mE(this.hostElement,l);break}}this.useColorPalette=!!l};
_.MN.Object.defineProperties(nL.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var u,K;return!((u=this.data)==null||!u.playlistId)&&!((K=this.data)==null||!K.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var u=_.GB().resolve(_.vv(_.lX)),K;if(((K=this.data)==null?0:K.contents)&&(u==null?0:u.hasAutoplayData())){var l;if(((l=this.playlistLoopStateEntity)==null?void 0:l.state)==="PLAYLIST_LOOP_STATE_ONE"){if(u=this.data.currentIndex,u!==void 0){var D,d;var C=(D=this.data.contents[u])==null?void 0:(d=D.playlistPanelVideoRenderer)==null?void 0:d.title}}else{var W,M=(W=_.b(u.getAutoplayEndpoint(),_.oy))==null?void 0:W.videoId,q,v;C=(q=this.data.contents.find(function(G){var t;
return((t=G.playlistPanelVideoRenderer)==null?void 0:t.videoId)===M}))==null?void 0:(v=q.playlistPanelVideoRenderer)==null?void 0:v.title}return C}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)!=null&&u.nextVideoLabel?this.nextVideoTitle?_.WI(this.data.nextVideoLabel)+":":czk:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var u;if(((u=this.data)==null?0:u.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.S("web_mix_long_byline_from_data"))return _.o7(aQa);var K;return(K=this.data)==null?void 0:K.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D=(u=this.data)==null?void 0:(K=u.playlistButtons)==null?void 0:(l=K.menuRenderer)==null?void 0:l.topLevelButtons;if(D)for(u=_.y(D),K=u.next();!K.done;K=u.next())if(K=K.value,K.playlistLoopButtonRenderer)return K.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var u;return!!(this.collapsed&&((u=this.data)==null?0:u.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.S("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
nL.prototype.colorPaletteChanged=nL.prototype.colorPaletteChanged;nL.prototype.onPlaylistLockupNowPlaying=nL.prototype.onPlaylistLockupNowPlaying;nL.prototype.updateNowPlayingOverlay=nL.prototype.updateNowPlayingOverlay;nL.prototype.onFullscreenChanged=nL.prototype.onFullscreenChanged;nL.prototype.onFullBleedPlayerChanged=nL.prototype.onFullBleedPlayerChanged;nL.prototype.dataChanged=nL.prototype.dataChanged;nL.prototype.hiddenChanged=nL.prototype.hiddenChanged;nL.prototype.collapseChanged=nL.prototype.collapseChanged;
nL.prototype.onRenderStamperFinished=nL.prototype.onRenderStamperFinished;nL.prototype.onMouseLeave=nL.prototype.onMouseLeave;nL.prototype.onMouseEnter=nL.prototype.onMouseEnter;_.g([_.e(_.Ae),_.N("design:type",Object)],nL.prototype,"ironResizableBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],nL.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],nL.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(HYk.YtPlaylistPanelBehavior),_.N("design:type",Object)],nL.prototype,"ytPlaylistPanelBehavior",void 0);_.g([_.e(_.v2.YtTaskEmitterBehavior),_.N("design:type",Object)],nL.prototype,"ytTaskEmitterBehavior",void 0);_.g([_.e(_.n6H),_.N("design:type",Object)],nL.prototype,"ytReorderableBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],nL.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],nL.prototype,"ytdReduxBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],nL.prototype,"actionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],nL.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],nL.prototype,"autoplayData",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],nL.prototype,"withinMiniplayer",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nL.prototype,"minimizePipBreakages",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nL.prototype,"updatedCoursePanel",void 0);_.g([_.U({computed:"setMenuData_(data)"}),_.N("design:type",Object)],nL.prototype,"menuRendererData",void 0);_.g([_.U({computed:"computeOverflowMenuData(data)"}),_.N("design:type",Object)],nL.prototype,"overflowMenuDataTopRow",void 0);_.g([_.U({computed:"computeOverflowMenuData(data)"}),_.N("design:type",Object)],nL.prototype,"overflowMenuData",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nL.prototype,"hideHeaderText",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nL.prototype,"useColorPalette",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.N("design:type",Boolean)],nL.prototype,"collapsible",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nL.prototype,"collapsed",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],nL.prototype,"hidden",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.N("design:type",Boolean)],nL.prototype,"hasPlaylistButtons",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.N("design:type",Boolean)],nL.prototype,"hasSeparateSaveButton",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.N("design:type",Boolean)],nL.prototype,"hasToolbar",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.N("design:type",String)],nL.prototype,"playlistType",void 0);_.g([_.U(),_.N("design:type",Object)],nL.prototype,"isHovered",void 0);_.g([_.U({selectorArgs:["playlistLoopStateEntityKey"],selector:_.zzH}),_.N("design:type",Object)],nL.prototype,"playlistLoopStateEntity",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nL.prototype,"modernPanels",void 0);_.g([_.U({value:56}),_.N("design:type",Number)],nL.prototype,"scrollMargin",void 0);_.g([_.U({computed:"computeCanReorder(data)"}),_.N("design:type",Boolean)],nL.prototype,"canReorder",void 0);_.g([_.U(),_.N("design:type",Object)],nL.prototype,"expandLabel",void 0);_.g([_.U(),_.N("design:type",Object)],nL.prototype,"collapseLabel",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nL.prototype,"isFloating",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nL.prototype,"metaPanel",void 0);_.g([_.U({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.N("design:type",String)],nL.prototype,"trailingIcon",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],nL.prototype,"isDarkTheme",void 0);
_.g([_.U({selector:_.X6}),_.N("design:type",Boolean)],nL.prototype,"miniplayerIsActive",void 0);_.g([_.U({selector:function(u){return u.watch.playerState}}),
_.N("design:type",Number)],nL.prototype,"playerState",void 0);_.g([_.U({selector:_.K1}),_.N("design:type",Boolean)],nL.prototype,"isFullscreen",void 0);_.g([_.U({selector:_.ue}),_.N("design:type",Boolean)],nL.prototype,"isTheaterMode",void 0);_.g([_.U(),_.N("design:type",Object)],nL.prototype,"activeNowPlayingRenderer",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],nL.prototype,"moveThreeDotMenuToTopRow",null);
_.g([_.R("data","autoplayData","playlistLoopStateEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],nL.prototype,"nextVideoTitle",null);_.g([_.R("data","nextVideoTitle"),_.N("design:type",String),_.N("design:paramtypes",[])],nL.prototype,"nextVideoLabel",null);_.g([_.R("collapsed"),_.N("design:type",String),_.N("design:paramtypes",[])],nL.prototype,"buttonAriaLabel",null);
_.g([_.R("data","playlistId","longBylineText"),_.N("design:type",Object),_.N("design:paramtypes",[])],nL.prototype,"mixLongByLine",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],nL.prototype,"playlistLoopStateEntityKey",null);_.g([_.PF("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nL.prototype,"onMouseEnter",null);
_.g([_.PF("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nL.prototype,"onMouseLeave",null);_.g([_.U({reflectToAttribute:!0}),_.R("data","collapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],nL.prototype,"showNextVideoHeader",null);_.g([_.PF("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nL.prototype,"onRenderStamperFinished",null);
_.g([_.JU("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nL.prototype,"collapseChanged",null);_.g([_.JU("hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nL.prototype,"hiddenChanged",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nL.prototype,"dataChanged",null);
_.g([_.R("isTheaterMode","isFullscreen"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],nL.prototype,"isFullBleedPlayer",null);_.g([_.JU("isTheaterMode","isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nL.prototype,"onFullBleedPlayerChanged",null);_.g([_.JU("isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nL.prototype,"onFullscreenChanged",null);
_.g([_.JU("playerState","miniplayerIsActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nL.prototype,"updateNowPlayingOverlay",null);_.g([_.PF("yt-playlist-lockup-now-playing-active"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],nL.prototype,"onPlaylistLockupNowPlaying",null);
_.g([_.JU("data","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nL.prototype,"colorPaletteChanged",null);_.g([_.T({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],nL);
_.z$a=_.at()(nL,"ytd-playlist-panel-renderer",function(){if(xqR===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);xqR=u}u=xqR;return u},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var e$k;var rJ=function(){var u=_.Q.apply(this,arguments)||this;u.modern=_.S("web_button_rework");return u};
_.c(rJ,_.Q);rJ.prototype.computeShouldButtonBeVertical=function(u,K){return u||K};
rJ.prototype.onYtServiceRequestSent=function(u,K){(u=_.b(K.endpoint,_.DL))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.TT("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:u.status})):this.handleLikeEndpoint(u))};
rJ.prototype.computelikeStatusEntityKey=function(u){return u==null?void 0:u.likeStatusEntityKey};
rJ.prototype.handleLikeEndpoint=function(u){u.status==="LIKE"?this.JSC$16910_ytdDislikeToggleButtonRenderer.toggle(!1):u.status==="DISLIKE"?this.JSC$16910_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16910_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16910_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.MN.Object.defineProperties(rJ.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var u;return GcR(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(u=this.likeStatusEntity)==null?void 0:u.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var u;if(this.data&&((u=this.data)==null||!u.hideDislikeButton)){var K;return GcR(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(K=this.likeStatusEntity)==null?void 0:K.likeStatus)}}}});
rJ.prototype.onYtServiceRequestSent=rJ.prototype.onYtServiceRequestSent;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],rJ.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],rJ.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],rJ.prototype,"vertical",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],rJ.prototype,"textTransform",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],rJ.prototype,"useShortsIcon",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],rJ.prototype,"underIconLabel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],rJ.prototype,"modern",void 0);_.g([_.U({value:"left"}),_.N("design:type",String)],rJ.prototype,"buttonTooltipPosition",void 0);
_.g([_.U(),_.N("design:type",Object)],rJ.prototype,"overrides",void 0);_.g([_.BF("#like-button"),_.N("design:type",Object)],rJ.prototype,"JSC$16910_ytdLikeToggleButtonRenderer",void 0);_.g([_.BF("#dislike-button"),_.N("design:type",Object)],rJ.prototype,"JSC$16910_ytdDislikeToggleButtonRenderer",void 0);_.g([_.R("data","likeStatusEntity.likeStatus","useShortsIcon"),_.N("design:type",Object),_.N("design:paramtypes",[])],rJ.prototype,"likeButton",null);
_.g([_.R("data","likeStatusEntity.likeStatus","useShortsIcon"),_.N("design:type",Object),_.N("design:paramtypes",[])],rJ.prototype,"dislikeButton",null);_.g([_.U({computed:"computelikeStatusEntityKey(data)"}),_.N("design:type",String)],rJ.prototype,"likeStatusEntityKey",void 0);_.g([_.U({selectorArgs:["likeStatusEntityKey"],selector:dE}),_.N("design:type",Object)],rJ.prototype,"likeStatusEntity",void 0);
_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],rJ.prototype,"onYtServiceRequestSent",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],rJ);
var R$C=_.at()(rJ,"ytd-like-button-renderer",function(){if(e$k===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);e$k=u}u=e$k;return u},{mode:1});_.UqR={};
_.UqR.YtConditionalRendererBehavior=[_.Y.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(u,K){var l=this,D,d;return _.H(function(C){switch(C.nextAddress){case 1:if(!K)return l.hidden=!0,l.showSpinner=!1,C.return();if((D=u)==null?0:(d=D.visibilityCondition)==null?0:d.mode)switch(u.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return C.jumpTo(5);default:return C.jumpTo(6)}l.showSpinner=
!1;l.hidden=!0;return C.yield(l.shouldShow_(u),4);case 4:l.hidden=!C.yieldResult;C.jumpTo(0);break;case 5:return C.yield(l.shouldShow_(u),8);case 8:l.showSpinner=C.yieldResult;l.hidden=!1;C.jumpTo(0);break;case 6:return l.showSpinner=!1,C.yield(l.shouldShow_(u),9);case 9:l.hidden=!C.yieldResult,_.TG(C)}})},
shouldShow_:function(u){return u&&u.supportedDatas&&u.supportedDatas.rendererVisibilityConditionData&&u.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(u.supportedDatas.rendererVisibilityConditionData.showIf):u&&u.visibilityCondition&&u.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(u.visibilityCondition.showIf):u&&u.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(u.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(u){switch(u){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(u){switch(u){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var u=_.Sy(this.hostElement,"yt-get-mdx-status");return u.length==1&&u[0].connected},
isLocationPermissionGranted_:function(){var u;return _.H(function(K){return K.nextAddress==1?navigator.permissions?K.yield(navigator.permissions.query({name:"geolocation"}),3):K.jumpTo(2):K.nextAddress!=2?(u=K.yieldResult,K.return(Promise.resolve(u.state==="granted"))):K.return(Promise.resolve(!1))})}}];var fQH=function(u,K){K=K===void 0?{}:K;var l=function(D){var d=document.createElement(u),C;var W=(C=d.polymerController)!=null?C:d;Qdb(d,W,D,K);return d};
l.debugName=u+" (CoW wrapped)";return l}("yt-icon"),QnH=_.S("web_bypass_polymer_yt_icon")&&_.S("kevlar_use_wil_icons")?_.rf(function(u){var K=u.icon;
var l=u.active;var D=u.className;var d=u.style;var C=u.dataSelected;var W=u.dataDisabled;var M=u.role;var q=u.themeOverride;var v=u.animateIcon;var G=u.ariaHidden;var t=u.ariaExpanded;var x=u.ariaLabel;var O=u.tabindex;var a=u.id;var f=u.iconFilter;var B=function(){var m=K==null?void 0:K(),Z=null,A=void 0;m&&(m=xVR(m),m=ycy(m),m.length&&(Z=m[1],A=m[0]));return{iconName:Z,iconSetName:A}},p=function(){return SMa(B().iconName,l==null?void 0:l(),void 0,void 0,B().iconSetName,_.GB().resolve(_.Q2))},V=
function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:f==null?void 0:f()}};
return _.n(_.r,{cond:v,then:function(){return _.n(fQH,{icon:K,active:l,className:D,style:d,dataSelected:C,dataDisabled:W,role:M,themeOverride:q,ariaHidden:G,ariaExpanded:t,ariaLabel:x,tabindex:O,id:a,iconFilter:f})},
else:function(){return _.n(_.r,{cond:p,then:function(m){return _.n("span",{class:_.JB("ytIconWrapperHost",D),role:M,"aria-label":x,"aria-hidden":G,tabindex:function(){return isNaN(Number(O==null?void 0:O()))?void 0:Number(O==null?void 0:O())},
id:a,style:d},_.n(UjZ,{data:m,options:V}))}})}})},"ve"):fQH;var P7B=function(u){var K=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];UEZ();_.$L("ytglobal.ytUtilActivityCallback_",function(){_.bI(u,"yt-user-activity")});
new r2(function(){return K.JSC$16925_onMouseMove});
document.addEventListener("scroll",function(){return K.onScroll});
window.addEventListener("resize",function(){return K.onResize})},JzC=function(u,K,l){K in u.eventJobIds||(l=_.k5().addLowPriorityJob(function(){_.vu();
delete u.eventJobIds[K]},l),u.eventJobIds[K]=l)};
P7B.prototype.onScroll=function(u){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):u.target===document&&JzC(this,"scroll",200)};
P7B.prototype.onResize=function(){JzC(this,"resize",200)};
P7B.prototype.JSC$16925_onMouseMove=function(){JzC(this,"mousemove",100)};
_.vB=function(u){u.scrollEventsToIgnore+=1;u.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){u.scrollEventsToIgnore--},500))};var jnN=function(u){this.element=u;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
jnN.prototype.showFeedbackDialog=function(u,K,l,D){var d=BDm();if(!d)return!1;var C=UJw();C.productId=d;K&&(C.flow="submit",C.report={description:K});l&&(BDm()==="59"?C.callback=_.KT(function(){_.YE("userFeedbackEvent",{});l()}):C.callback=_.KT(l));
C.bucket=D||_.E3("GOOGLE_FEEDBACK_BUCKET","Other");pXN(C);u=iOA(this,"GFEEDBACK",u);try{_.G3C(C,u)}catch(W){return _.uZ(W),!1}return!0};
jnN.prototype.showHelpDialog=function(u,K,l){var D=this,d=BDm();if(!d)return!1;var C={helpCenterPath:"/youtube",productData:iOA(this,"GUIDED_HELP",l)};pXN(C);var W=UJw();W.context=u||C.productData.context||"default";W.defaultHelpArticleId=K;W.enableSendFeedback=!0;(_.lZ("gapi.load")||function(M,q){return q()})("client",function(){try{var M=LMB(d,C);
if(_.S("web_always_load_chat_support")&&!D.chatSupportLoaded)try{M.JSC$9904_loadChatSupport(W),D.chatSupportLoaded=!0}catch(q){}M.startHelp(W)}catch(q){_.uZ(q)}})};
var BDm=function(){var u=_.E3("GOOGLE_FEEDBACK_PRODUCT_ID");u||_.uZ(Error("ei"));return u},pXN=function(u){u&&(u.locale=_.S("kevlar_help_use_locale")?_.E3("INNERTUBE_CONTEXT_HL","en"):_.E3("HTML_LANG","en"))},iOA=function(u,K,l){var D=u.productData;
delete D.origin;D.device=_.rq();var d;a:{if(d=document.createElement("canvas")){var C=d.getContext("experimental-webgl",{stencil:!0});if(C){var W=C.getExtension("WEBGL_debug_renderer_info");if(W){d=C.getParameter(W.UNMASKED_RENDERER_WEBGL);break a}}if(C=d.getContext("webgl")){d=C.getParameter(C.RENDERER);break a}}d=null}D.gpu=d;D.isSDC=!!_.E3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(d=_.E3("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.k$.extend(D,d);_.erH(K,D);_.RrH(D);(u=_.bI(u.element,"yt-get-autonav-pause-debug-state"))&&
u.length&&(D.autonav_pause_state=u[0]);u=_.BK();D.browser_resolution=u.width+"\u00d7"+u.height+"@"+(window.devicePixelRatio||1)+"x";l&&_.k$.extend(D,l);return D};
jnN.prototype.resetProductData=function(){this.productData={}};var TDA=function(u){this.feedbackManager=new jnN(u)};
TDA.prototype.showFeedbackDialog=function(u,K,l,D){return this.feedbackManager.showFeedbackDialog(u,K,l,D)};
TDA.prototype.showHelpDialog=function(u,K,l){return this.feedbackManager.showHelpDialog(u,K,l)};var wXw=function(){this.baseUrl="";this.aTag=document.createElement("a")},Gmm=function(u,K,l){l=l===void 0?{}:l;
l.pbj||(l.pbj=1);l=_.$XH(K,l);u.baseUrl&&l&&!_.M7(l)[1]&&!_.q7(l)&&(K=u.baseUrl,IR(K,"/")&&(K=K.slice(0,-1)),_.dq(l,"/")&&(l=l.slice(1)),l=K+"/"+l);lY(u.aTag,mJ(l||""));return u.aTag.href};
wXw.prototype.fetchData=function(u){return _.Stq(u)};
wXw.prototype.postData=function(u,K){var l={method:"POST"};if(K){for(var D=_.y(Object.keys(K)),d=D.next();!d.done;d=D.next()){d=d.value;var C=K[d];_.Ks(C)&&(K[d]=JSON.stringify(C))}l.postParams=K}return _.Stq(u,l)};
_.tCH=function(u,K,l,D,d){u=Gmm(u,K,l);if(!u)throw D=Error("fi"),Object.assign(D,{params:K}),D;return _.Stq(u,d,D)};
wXw.prototype.requestDataForServiceEndpoint=function(u,K){if(_.b(u,_.$cL))return this.fetchData("/getAccountSwitcherEndpoint");K=K||{};var l=_.b(u,Vh2);l?K.se=l.base64EncodedServiceEndpoint:K.sej=JSON.stringify(u);(l=_.AC())&&_.S("enable_service_ajax_csn")&&(K.csn=l);K.theme=_.Nu();_.b(u,MWZ)&&_.E3("DELEGATION_CONTEXT")&&(K.delegation_context=JSON.stringify(_.E3("DELEGATION_CONTEXT")));l=null;for(var D in u)if(IR(D,"Endpoint")||IR(D,"Command")){l=D;break}if(!l){var d=Error("gi");Object.assign(d,{params:u});
_.H1R(d,"WARNING");return new _.RL(function(W,M){M(d)})}D={name:l};
var C;(l=(C=_.b(u,_.Ux))==null?void 0:C.signal)&&(D.signal=l);(C=_.oK(window.location.href))&&C.internalcountrycode&&(D.internalcountrycode=C.internalcountrycode);C="/service_ajax";_.S("debug_forward_web_query_parameters")&&(C=_.ayo(C,window.location.search));C=_.Hv(C,D);u.clickTrackingParams&&_.qB(C,{itct:u.clickTrackingParams});return this.postData(C,K)};_.FV2=new _.G$("GFEEDBACK_TOKEN");var Vww;var gds;var NDa;var klw;var vL=function(){var u=_.Q.apply(this,arguments)||this;u.compact=!1;return u};
_.c(vL,_.Q);vL.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
vL.prototype.computeHasIcon_=function(u){return!!u};
vL.prototype.isSignInIcon_=function(u){return u=="yt-icons:prompted_sign_in"};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],vL.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.UqR.YtConditionalRendererBehavior),_.N("design:type",Object)],vL.prototype,"ytConditionalRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],vL.prototype,"data",void 0);
_.g([_.U({computed:"computeIcon_(data.icon)"}),_.N("design:type",Object)],vL.prototype,"icon_",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.N("design:type",Boolean)],vL.prototype,"hasIcon_",void 0);_.g([_.U({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.N("design:type",Boolean)],vL.prototype,"signInIcon_",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],vL.prototype,"compact",void 0);
_.g([_.E9({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],vL);
_.F(vL,"yt-player-error-message-renderer",function(){if(klw===void 0){var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;NDa===void 0&&(NDa=document.createElement("template"));var D=NDa;l.call(K,D.content.cloneNode(!0),u.content.firstChild);klw=u}u=klw;return u},{mode:2});var ZOA;var YIA;var Gy=function(){return _.Q.apply(this,arguments)||this};
_.c(Gy,_.Q);Gy.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Gy.prototype.computeIcon_=function(u){return u?"yt-icons:"+u.iconType.toLowerCase():"error_outline"};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Gy.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Gy.prototype,"data",void 0);_.g([_.U({computed:"computeIcon_(data.icon)"}),_.N("design:type",Object)],Gy.prototype,"icon_",void 0);_.g([_.E9({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Gy);
_.F(Gy,"yt-player-kav-renderer",function(){if(YIA===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;ZOA===void 0&&(ZOA=document.createElement("template"));var D=ZOA;l.call(K,D.content.cloneNode(!0),u.content.firstChild);YIA=u}u=YIA;return u},{mode:2});var PpH=_.oj(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.SX(_.rf(function(u){var K=_.o9("div"),l=_.y(_.On(0,void 0,"yt0wE")),D=l.next().value,d=l.next().value;l=_.y(_.On(null,void 0,"CnFp5"));var C=l.next().value,W=l.next().value;_.ZY(function(){JrZ(K.value,d,W);K.value.scrollIntoView()});
l=jFq.bind(null,u.data,D);$f("resize",function(){var M=C();if(D()===1&&M!==null){var q;(q=window.grecaptcha)==null||q.reset(M)}});
return _.n("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.n("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.n("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var M,q;return(M=u.data().accessibility)==null?void 0:(q=M.accessibilityData)==null?void 0:q.label}),_.n(_.qC,{text:l,
className:_.JB("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.n("div",{el:K,class:"ytwPlayerCaptchaViewModelGridItem"})))},"we"),"yt-player-captcha-view-model",{props:{data:_.xo}});var BSH=!1;_.Aza=_.rf(function(u){var K=u.data;return _.n("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.n(_.r,{cond:function(){return K().icon},
then:function(l){return _.n("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.n(_.n4,{data:l,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.n(_.r,{cond:function(){return K().title},
then:function(l){return _.n("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.n(_.qC,{text:l}))}}),_.n(_.r,{cond:function(){return K().description},
then:function(l){return _.n("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.n(_.qC,{text:l}))}}),_.n(_.mo,{data:function(){return K().primaryButton}},{buttonViewModel:function(l){return _.n(_.P2,{data:l.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.n(_.mo,{data:function(){return K().secondaryButton}},{buttonViewModel:function(l){return _.n(_.P2,{data:l.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"xe");
_.Aza.idomCompat=!0;var XXH=_.rf(function(u){var K=u.data;_.yU();return _.n("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.n("div",{class:"player-interstitial-renderer-wiz__scrim"},_.n(_.mo,{data:function(){return K().content}},{interstitialViewModel:_.Aza})))},"ye");
XXH.idomCompat=!0;_.SX(XXH,"yt-player-interstitial-renderer",{props:{data:_.M6}});var tt=function(){var u=_.Q.apply(this,arguments)||this;u.noBackground=!1;u.compact=!1;u.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return u};
_.c(tt,_.Q);tt.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"}}}};
tt.prototype.onUpdatePlayerErrorMessageCommand_=function(u){if(_.b(u,l30)){var K;if(u=(K=_.b(u,l30))==null?void 0:K.newPlayerErrorMessageRenderer)this.data=u}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],tt.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],tt.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],tt.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],tt.prototype,"status",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],tt.prototype,"noBackground",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],tt.prototype,"compact",void 0);_.g([_.E9({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],tt);
var mq0=_.at()(tt,"yt-playability-error-supported-renderers",function(){if(gds===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Vww===void 0&&(Vww=document.createElement("template"));var D=Vww;l.call(K,D.content.cloneNode(!0),u.content.firstChild);gds=u}u=gds;return u},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var pML=void 0,TSZ=void 0;var V5q=new iV0;var h$a=function(u){this.store=u;this.xPK=new _.FMB},rbw=function(u,K,l){var D,d;
if(!(d=((D=K.playabilityStatus)==null?void 0:D.status)!=="OK")){u=u.store;var C;d=K.offlineState&&((C=K.videoDetails)==null?0:C.videoId)?_.S("enable_pl_r_c_cd")?jPR(u.getState().entities,K.videoDetails.videoId):!!sDH(u.getState().entities,K.videoDetails.videoId):!1}if(d)return!0;d=Ytq(K);if(d===1){if(_.S("ab_v_vid_sig")){var W,M=(W=K.videoDetails)==null?void 0:W.videoId;if(!M||!l||M!==l){var q;K=new _.wv("282054944_vid",{n5z:l,bWp:(q=K.videoDetails)==null?void 0:q.videoId});_.Xm(K)}}return!0}vMb=
0;var v,G;q=(M=K.auxiliaryUi)==null?void 0:(v=M.messageRenderers)==null?void 0:(G=v.bkaEnforcementMessageViewModel)==null?void 0:G.displayType;if(d!==3&&(q==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||q==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;q={reason:_.GI(_.QQ("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.S("ks_something_wrong_learn_more")?yxq("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.GI(_.QQ("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:_.GI("282054944")};EdR(K,{playerErrorMessageRenderer:q});return!1},v8o=function(u,K){if(jir(K)){_.QR(1,!0);
var l=(l=jir(K))&&_.iQy()?l:void 0;l?(EdR(K,{enforcementMessageViewModel:l}),u.xPK.increment("IN_PLAYER"),_.QR(5)):(u.xPK.increment("SKIP_DISPLAY"),_.QR(2))}},EdR=function(u,K){u.playabilityStatus=Object.assign({},u.playabilityStatus,{status:"ERROR",
errorScreen:K});u.videoDetails=void 0};
h$a.prototype.handleResponse=function(u,K){if(u.playabilityStatus){var l,D,d,C=(K==null?void 0:(l=K.innerTubeRequest)==null?void 0:l.videoId)||(K==null?void 0:(D=K.innerTubeRequest)==null?void 0:(d=D.playerRequest)==null?void 0:d.videoId);rbw(this,u,C)&&v8o(this,u)}};
h$a[vP]=[cU];var $fH=new _.G$("ADBLOCK_DETECTION_SERVICE_TOKEN");var HU=function(u){this.dhj=u};
HU.prototype.bindInnertubeChallengeFetcher=function(u){this.dhj.bicf(u)};
HU.prototype.registerChallengeFetchedCallback=function(u){this.dhj.bcr(u)};
HU.prototype.getLatestChallengeResponse=function(){return this.dhj.blc()};var LVH;LVH=_.oj(["https://static.doubleclick.net/instream/ad_status.js"]);_.ua2=_.Oy(LVH);var dWw;_.xk=function(u,K,l){var D=this;this.network=u;this.options=K;this.networkStatusManager=l;this.hX=null;if(K.useBotguardEverywhere){var d=new _.et;this.hX=d.promise;_.lL.ytAtRC&&_.Vo(_.YL,function(){var C,W;return _.H(function(M){if(M.nextAddress==1){if(!_.lL.ytAtRC)return M.return();C=Ksw(null);return M.yield(D.gs(C),2)}W=M.yieldResult;_.lL.ytAtRC&&_.lL.ytAtRC(JSON.stringify(W));_.TG(M)})});
Ecq().then(function(C){var W,M,q,v;return _.H(function(G){if(G.nextAddress==1)return C.bindInnertubeChallengeFetcher(function(t){return D.gs(Ksw(t))}),G.yield($_q(),2);
W=G.yieldResult;M=C.getLatestChallengeResponse();q=M.challenge;if(!q)throw Error("hi");v={challenge:q,r4:WU(q),vm:W,bgChallenge:new sA};d.resolve(v);C.registerChallengeFetchedCallback(function(t){t=t.challenge;if(!t)throw Error("ii");t={challenge:t,r4:WU(t),vm:W,bgChallenge:new sA};D.hX=Promise.resolve(t)});
_.TG(G)})})}else K.preload&&lEw(this,new Promise(function(C){_.Ve(_.YL,function(){C(DWw(D))},0)}))};
dWw=function(u){var K={preload:!0,useBotguardEverywhere:!0},l=!1;if(typeof K==="boolean")var D={preload:K};else typeof K==="undefined"?D={preload:!0}:(D=K,l=!!K.oV8);K=l?void 0:new _.ye;_.xk.instance=new _.xk(u,D,K);return _.xk.instance};
_.xk.prototype.eFA=function(){var u=this;return _.H(function(K){return K.nextAddress==1?K.yield(Promise.race([u.hX,null]),2):K.return(!!K.yieldResult)})};
_.xk.prototype.vOC=function(u,K,l){var D=this,d,C,W;return _.H(function(M){D.hX===null&&lEw(D,DWw(D));d=!1;C={};W=function(){var q,v,G;return _.H(function(t){switch(t.nextAddress){case 1:return t.yield(D.hX,2);case 2:q=t.yieldResult;C.challenge=q.challenge;if(!q.vm){"c1a"in q.r4&&(C.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");t.jumpTo(3);break}v=Object.assign({},{c:q.challenge,e:u},K);_.Qg(t,4);d=!0;return t.yield(q.vm.snapshot({mk:v}),6);case 6:(G=t.yieldResult)?C.webResponse=G:C.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.I$(t,3);break;case 4:_.iY(t),C.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(u==="ENGAGEMENT_TYPE_PLAYBACK"){var x=q.r4,O={};if(x.c6a){var a=Number(_.E3("DCLKSTAT",0));O.reportingStatus=String(Number(x.c)^(isNaN(a)?0:a))}x.c6b&&(O.broadSpectrumDetectionResult=String(Number(x.c)^Number(_.E3("CATSTAT",0))));C.adblockReporting=O}return t.return(C)}})};
return M.return(Promise.race([W(),C$B(l,function(){var q=Object.assign({},C);d&&(q.error="ATTESTATION_ERROR_VM_TIMEOUT");return q})]))})};
var Ksw=function(u){var K={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};u&&(K.interpreterHash=u);return K},DWw=function(u,K){K=K===void 0?0:K;
var l,D,d,C,W,M,q,v,G,t,x,O;return _.H(function(a){switch(a.nextAddress){case 1:l=Ksw(FpH().wRO);if(_.S("att_fet_ks"))return _.Qg(a,7),a.yield(u.gs(l),9);_.Qg(a,4);return a.yield(IEw(u,l),6);case 6:W=a.yieldResult;d=W.aJg;C=W.o89;D=W;_.I$(a,3);break;case 4:return _.iY(a),_.hV(Error("ji`"+K)),y2w(u,864E5),a.return({challenge:"",r4:{},vm:void 0,bgChallenge:void 0});case 9:D=a.yieldResult;if(!D)throw Error("ki");if(!D.challenge)throw Error("li");d=D.challenge;C=WU(d);if("c1a"in C&&(!D.bgChallenge||!D.bgChallenge.program))throw Error("mi");
_.I$(a,3);break;case 7:M=_.iY(a);_.hV(M);K++;if(K>=5)return _.hV(Error("ji`"+K)),y2w(u,864E5),a.return({challenge:"",r4:{},vm:void 0,bgChallenge:void 0});q=1E3*Math.pow(2,K-1)+Math.random()*1E3;return a.return(new Promise(function(f){_.Ve(_.YL,function(){f(DWw(u,K))},q)}));
case 3:v=hry(C);y2w(u,v*1E3);G=void 0;if(!("c1a"in C&&D.bgChallenge)){a.jumpTo(10);break}t=mJh(D.bgChallenge);_.Qg(a,11);return a.yield(g$a(FpH(),t),13);case 13:_.I$(a,12);break;case 11:return x=_.iY(a),_.hV(x),a.return({challenge:d,r4:C,vm:G,bgChallenge:t});case 12:return _.Qg(a,14),G=new _.Eu({challenge:t,lqp:{po:"aGIf"}}),a.yield(G.ceC,16);case 16:_.I$(a,10);break;case 14:O=_.iY(a),_.hV(O),G=void 0;case 10:return a.return({challenge:d,r4:C,vm:G,bgChallenge:t})}})};
_.xk.prototype.gs=function(u){var K=this,l;return _.H(function(D){l=K.networkStatusManager;if(!l||l.isNetworkAvailable())return D.return(K.network.gs(u));_.hs("att_pna",void 0,"attestation_challenge_fetch");return D.return(new Promise(function(d){l.listenOnce("publicytnetworkstatus-online",function(){K.network.gs(u).then(d)})}))})};
var sp2=function(u){if(!u)throw Error("ki");if(!u.challenge)throw Error("li");var K=u.challenge,l=WU(K);if("c1a"in l&&(!u.bgChallenge||!u.bgChallenge.program))throw Error("mi");return Object.assign({},u,{aJg:K,o89:l})},IEw=function(u,K){var l,D,d,C,W;
return _.H(function(M){switch(M.nextAddress){case 1:l=void 0,D=0,d={};case 2:if(!(D<5)){M.jumpTo(4);break}if(!(D>0)){M.jumpTo(5);break}d.wA0=1E3*Math.pow(2,D-1)+Math.random()*1E3;return M.yield(new Promise(function(q){return function(v){_.Ve(_.YL,function(){v(void 0)},q.wA0)}}(d)),5);
case 5:return _.Qg(M,7),M.yield(u.gs(K),9);case 9:return C=M.yieldResult,M.return(sp2(C));case 7:l=W=_.iY(M),W instanceof Error&&_.hV(W);case 8:D++;d={wA0:void 0};M.jumpTo(2);break;case 4:throw l;}})},lEw=function(u,K){u.hX=K},oC0=function(u){var K,l,D;
return _.H(function(d){if(d.nextAddress==1)return d.yield(Promise.race([u.hX,null]),2);K=d.yieldResult;var C=DWw(u);u.hX=C;(l=K)==null||(D=l.vm)==null||D.dispose();_.TG(d)})},y2w=function(u,K){var l=Date.now()+K,D=function(){var d;
return _.H(function(C){d=l-Date.now();return d<1E3?C.yield(oC0(u),0):(_.Ve(_.YL,D,Math.min(d,6E4)),C.jumpTo(0))})};
D()},C$B=function(u,K){return new Promise(function(l){_.Ve(_.YL,function(){l(K())},u)})};var Wsa=function(){};
Wsa.prototype.processContext=function(u){var K=_.xk.instance;if(!K)return _.H3();var l=dvw(u);return l?new W3(K.vOC(l,KlH(u),500).then(function(D){var d;(u==null?0:(d=u.innerTubeRequest)==null?0:d.context)||(u.innerTubeRequest.context={});d=u.innerTubeRequest.context;d.request||(d.request={});d.request.attestationResponseData=D})):_.H3()};var H8N=function(u){this.innertubeTransportService=u};
H8N.prototype.gs=function(u){_.hs("att_fsr",void 0,"attestation_challenge_fetch");return _.K7(this.innertubeTransportService,u,_.qu(_.d10)).then(function(K){_.hs("att_frr",void 0,"attestation_challenge_fetch");return K})};_.MJS=function(u){this.innertubeTransportService=u};var qws=new _.G$("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var $WA=function(){},r2k=function(u,K,l,D,d){var C=_.E3("YPC_MB_URL");
_.FlL(C).then(function(){nCB(C,u,K,l,D,d)})},nCB=function(u,K,l,D,d,C){try{var W=payments.business.integration,M=payments.business.integration.Style.create().withMaterialDesignStyle(),q=W.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.S("enable_window_constrained_buy_flow_dialog")&&(q=q.usingPopupStyle("windowConstrained"));C&&(q=q.usingCloseCallback(C));var v=l?l:_.E3("YPC_GB_LANGUAGE"),G=_.E3("SESSION_INDEX");W.bootstrap.fromPaymentsUrl(u);W.bootstrap.asMashupMode(q).usingGaiaIndex(G).usingLocale(v).usingStyle(M).usingDefaultActivityStatusChangeHandler().inStandaloneContext(W.standaloneContextAuthId.forGaia()).purchaseManager(K,function(t){D&&D(t)}).load(void 0,d)}catch(t){throw d&&d(t),_.Xm(t),t;
}};var vCa=new _.G$("PURCHASE_MANAGER_TOKEN");var Gv2=function(){var u=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return u.videos},
getContinuationsPresent:function(){return u.continuationsPresent},
setVideos:function(K){u.videos=K},
getRecommendedVideos:function(){return u.recommendedVideos},
setRecommendedVideos:function(K){u.recommendedVideos=K}}};
Gv2.prototype.addVideos=function(u){u&&(this.videos=u.filter(function(K){return!!_.IeZ(K)}).map(function(K){var l=_.IeZ(K);
a:{var D;if(K.playlistVideoRenderer&&((D=K.playlistVideoRenderer)==null?0:D.voteSortTiebreaker))var d=K.playlistVideoRenderer.voteSortTiebreaker;else{if(_.b(K,qZ)){var C;if(D=(d=_.b(K,qZ))==null?void 0:(C=d.playlistItemData)==null?void 0:C.voteSortTiebreaker){d=D;break a}}d=""}}return{itemId:l,videoId:_.oIL(K),voteCount:_.Wl9(K),voteSortTiebreaker:d}}),this.continuationsPresent=!!_.b(u[u.length-1],_.rr))};
var tJa=function(u,K){return u.videos.findIndex(function(l){return l.itemId===K})},xWS=function(u,K){return u.recommendedVideos.findIndex(function(l){return l.itemId===K})},SwH=function(u){u={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:u}}}}};_.GB().resolve(_.t9).resolveCommand(u)};var b8w=function(){Gv2.apply(this,arguments)};
_.c(b8w,Gv2);
var ldw=function(u,K,l,D){if(!u.parentElem)throw Error("ri");var d=tJa(u,K);d===-1&&(d=xWS(u,K),d=d!==-1?d+u.videos.length:-1);if(d===-1)throw Error("si");var C=d>=u.videos.length?u.recommendedVideos[d-u.videos.length]:u.videos[d];C.voteCount=l;C.voteSortTiebreaker=Date.now().toString();d>=u.videos.length?u.recommendedVideos.splice(d-u.videos.length,1):u.videos.splice(d,1);var W=u.videos;for(var M=0,q=W.length-1;M<=q;){var v=Math.floor((M+q)/2);if(W[v].voteCount<C.voteCount)q=v-1;else if(W[v].voteCount>C.voteCount)M=
v+1;else{a:{var G=C.voteSortTiebreaker;var t=W[v].voteSortTiebreaker;if(G.length!==t.length)G=G.length>t.length;else{for(var x=0;x<G.length;x++){var O=G.charCodeAt(x),a=t.charCodeAt(x);if(O>a){G=!0;break a}if(O<a)break}G=!1}}G?q=v-1:M=v+1}}W=M;if(W===-1)throw Error("ti");u.videos.splice(W,0,C);d!==W&&O8w(u,d,W,K,l,D)},O8w=function(u,K,l,D,d,C){var W,M=(W=u.parentElem)==null?void 0:W.children,q=Math.min(K,l),v=Math.max(K,l);
if(M)for(W=q;W<=v;W++)M[W].style.viewTransitionName="item-"+String(W);document.startViewTransition(function(){if(u.parentElem){var G=u.parentElem.children;if(!(!G||K<0||K>=G.length||l<0||l>=G.length)){var t=G[K];if(t){t.remove();u.showRefreshPill=l>=u.videos.length-1&&u.continuationsPresent;if(!u.showRefreshPill){G=G[l]||null;var x;(x=u.parentElem)==null||x.insertBefore(t,G)}_.xs(u.parentElem,"yt-update-video-data-voting-animation",{toIdx:l,itemId:D,newVoteCount:d,voteStatus:C,hideItem:u.showRefreshPill})}}}}).finished.then(function(){if(M)for(var G=
q;G<=v;G++)M[G].style.viewTransitionName="";
if(u.showRefreshPill)SwH(_.QQ("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var t;if(t=G=(t=u.parentElem)==null?void 0:t.children[l])t=G.getBoundingClientRect(),G=t.bottom,t=!(t.top>=0&&G<=u.clientHeight);t&&(t=_.P0(K>l?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(K-l)),SwH(t))}})};var zv0=function(u,K){var l=this;u?this.innertubeTransportServicePromise=Promise.resolve(u):K&&(this.innertubeTransportServicePromise=K(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new CL(3E3,function(D){return c22(l,D)},0);
this.validateMiniAppVideoIdRateLimiter=new CL(3E3,function(D){return aEB(l,D)},1)},dqs=function(u,K){u.JSC$17037_miniAppId=K;
u.reportMiniAppValueRateLimiter=new CL(3E3,function(l){return c22(u,l)},0);
u.validateMiniAppVideoIdRateLimiter=new CL(3E3,function(l){return aEB(u,l)},1)},IQA=function(u,K){var l;
return _.H(function(D){if(D.nextAddress==1)return D.yield(u.reportMiniAppValueRateLimiter.call(K),2);l=D.yieldResult;return D.return([l,K])})},c22=function(u,K){var l,D,d,C,W,M,q;
return _.H(function(v){switch(v.nextAddress){case 1:return v.yield(u.innertubeTransportServicePromise,2);case 2:return l=v.yieldResult,D=_.qu(W9a),d=Date.now(),C={externalPostId:u.JSC$17037_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(d/1E3),nanos:Math.round(d%1E3*1E6)},intValue:""+K}},_.Qg(v,3),v.yield(_.K7(l,C,D),5);case 5:W=v.yieldResult;_.I$(v,4);break;case 3:throw M=_.iY(v),M;case 4:if(W){if("error"in W&&W.error)throw W.error;if(W.errorMetadata)throw Error("ui`"+
W.errorMetadata.status);if(q=W.userStatResult)return v.return(q);throw Error("vi");}throw Error("wi");}})},snC=function(u){var K,l,D,d,C;
_.H(function(W){switch(W.nextAddress){case 1:return W.yield(u.innertubeTransportServicePromise,2);case 2:return K=W.yieldResult,l=_.qu(W9a),D={externalPostId:u.JSC$17037_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.Qg(W,3),W.yield(_.K7(K,D,l),5);case 5:d=W.yieldResult;_.I$(W,4);break;case 3:throw C=_.iY(W),C;case 4:if(d==null)throw Error("wi");if("error"in d&&d.error)throw d.error;if(d.errorMetadata)throw Error("ui`"+d.errorMetadata.status);_.TG(W)}})};
zv0.prototype.flush=function(){var u=this;return _.H(function(K){return K.nextAddress==1?K.yield(u.reportMiniAppValueRateLimiter.flush(),2):K.yield(u.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var yzw=function(u,K){return _.H(function(l){return l.nextAddress==1?l.yield(u.validateMiniAppVideoIdRateLimiter.call(K),2):l.return(l.yieldResult)})},aEB=function(u,K){var l,D,d,C,W,M;
return _.H(function(q){switch(q.nextAddress){case 1:return q.yield(u.innertubeTransportServicePromise,2);case 2:return l=q.yieldResult,D=_.qu(l10),d={videoId:K},_.Qg(q,3),q.yield(_.K7(l,d,D),5);case 5:C=q.yieldResult;_.I$(q,4);break;case 3:throw W=_.iY(q),W;case 4:if(C){if("error"in C&&C.error)throw C.error;if(C.errorMetadata)throw Error("ui`"+C.errorMetadata.status);if(M=C.playabilityStatus)return q.return(M.status);throw Error("xi");}throw Error("wi");}})};
zv0[vP]=[_.vv(_.md),_.vv(JwS)];var evs=function(){this.clientData=new Map};
evs.prototype.getData=function(u){return this.clientData.get(u)};var Rva=function(u){this.store=u};
Rva.prototype.handleResponse=function(u){(u=_.b(u.frameworkUpdates,$Y))&&_.Pi(u,this.store)};
Rva[vP]=[_.lf];var UWH=new _.G$("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var fEa={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 Qp2=new _.G$("ICON_SET_TOKEN"),P$C=new _.G$("ICON_URL_PROVIDER_TOKEN"),J2B=new _.G$("PREFETCH_ICONS_TOKEN"),jpR=new _.G$("ICON_MAP_FN_TOKEN");var Se={},B7w=(Se.ACCESS_TIME="clock",Se.ACCOUNT_BOX="person_account",Se.ACCOUNT_BOX_CAIRO="person_account_cairo",Se.ACCOUNT_CIRCLE="person_circle",Se.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",Se.ACCOUNT_LINKED="account_link_success",Se.ACCOUNT_UNLINKED="account_link",Se.ADD_FRIEND="people",Se.ADD_MODERATOR="shield_add",Se.ADD_TO_LIBRARY="bookmark",Se.ADD_TO_PLAYLIST="add",Se.ADD_TO_QUEUE_TAIL="list_queue",Se.ADD_TO_REMOTE_QUEUE="list_music",Se.ADD_TO_WATCH_LATER="clock",Se.ADD_VIDEO_LINK="film_strip_add",
Se.ALERT_WARN_RED="alert_triangle",Se.ARROW_BACK="arrow_left",Se.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",Se.ARROW_DROP_DOWN="chevron_down",Se.ARROW_DROP_UP="chevron_up",Se.ARROW_FORWARD="arrow_right",Se.AUDIOTRACK="audio",Se.AUTO_AWESOME="sparkle",Se.AVATAR_ANONYMOUS="person_circle",Se.AVATAR_LOGGED_OUT="person_circle",Se.BACK="arrow_left",Se.BAR_CHART="bar_graph",Se.BLOCK="slash_circle_left",Se.BLOCK_USER="slash_circle_left",Se.BOOKMARK_BORDER="bookmark",Se.BREAKING_NEWS_ALT_1="article_alert",
Se.BROADCAST_CAIRO="podcast_cairo",Se.BUG_REPORT="bug",Se.CAMERA_ALT="camera",Se.CAMPAIGN="megaphone",Se.CANCEL="x_circle",Se.CAPTIONS="closed_caption",Se.CAST_OUTLINE="chromecast",Se.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Se.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",Se.CHAT="message_bubble_left",Se.CHAT_BUBBLE="message_bubble_empty",Se.CHAT_SPARK="spark_message_bubble_left",Se.CHECK_BOX_OUTLINE_BLANK="box_empty",Se.CHECK_CIRCLE_OUTLINE="check_circle",Se.CHECK_CIRCLE_THICK="check_circle",Se.CLARIFY=
"article_clarify",Se.CLOSED_CAPTION_SELECTED="closed_caption",Se.CLOSE="x_mark",Se.CLOUD_UPLOAD="cloud_arrow_up",Se.COLLAPSE="chevron_up",Se.COLLAPSE_CAIRO="chevron_up_cairo",Se.COLLECTION="layers",Se.COLOR_LENS="palette",Se.COMMENT="message_bubble_right",Se.CONSENT_SHIELD="person_shield",Se.CONTENT_CUT="scissors",Se.CONTENT_CUT_CAIRO="scissors_cairo",Se.COURSE=_.S("web_enable_course_icon_update")?"creator_academy":"lightbulb",Se.COURSE_CAIRO=_.S("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",Se.CREATION_LIVE="radar_live",Se.CREATION_POST="box_pencil",Se.CREATION_UPLOAD="my_videos",Se.CREATION_UPLOAD_RED="upload",Se.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",Se.CREATOR_STUDIO="youtube_studio",Se.DASHBOARD="grid_asymmetrical",Se.DELETE="trash_can",Se.DELETE_SWEEP="trash_can",Se.DESKTOP="laptop",Se.DISLIKE="thumb_down",Se.DISLIKE_SELECTED="thumb_down",Se.DISMISSAL="x_mark",Se.DISMISS_QUEUE="list_remove",Se.DONE_ALL="check_double",Se.DOWN_ARROW="arrow_down",Se.DO_NOT_DISTURB=
"slash_circle_left",Se.DRAFT="paper_corner_folded",Se.DRAG_HANDLE="bars_2",Se.EDIT="pencil",Se.EMOJI="face_very_happy",Se.EMOJI_FLAGS="flag",Se.EMOJI_OBJECTS="lightbulb",Se.EMOJI_PEOPLE="face_very_happy",Se.EMOJI_RECENT="clock",Se.EMPTY_HEART="heart",Se.EMPTY_LIKE="thumb_up",Se.ERROR_BLACK="alert_circle",Se.ERROR_OUTLINE="alert_circle",Se.EXIT_APP="arrow_in",Se.EXIT_TO_APP="arrow_in",Se.EXPAND="chevron_down",Se.EXPAND_ALL="chevron_expand",Se.EXPAND_CAIRO="chevron_down_cairo",Se.EXPAND_LESS="chevron_up",
Se.EXPAND_MORE="chevron_down",Se.EXPLORE="compass",Se.EXPLORE_DESTINATION="compass",Se.EXTERNAL_LINK="open_new",Se.FAB_UPLOAD="upload",Se.FACE_HAPPY_OUTLINE="face_happy",Se.FACT_CHECK="article_check",Se.FASHION_LOGO="fashion",Se.FASHION_LOGO_CAIRO="fashion_cairo",Se.FAVORITE="heart",Se.FEEDBACK="message_bubble_alert",Se.FEEDBACK_CAIRO="message_bubble_alert_cairo",Se.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Se.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Se.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
Se.FILTER="menu_filter",Se.FIRST_PAGE="chevron_first",Se.FLAG="flag",Se.FULL_HEART="heart",Se.GAME_CONSOLE_DPAD="game_console_dpad",Se.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",Se.GAMING_LOGO="gaming",Se.GAMING_LOGO_CAIRO="gaming_cairo",Se.GO_TO_PAGE="arrow_right",Se.GROUPS="people_group",Se.HAPPY="face_happy",Se.HEALTH_AND_SAFETY="shield_plus",Se.HELP="question_circle",Se.HELP_CAIRO="question_circle_cairo",Se.HELP_OUTLINE="question_circle",Se.HIDE="slash_circle_left",Se.IMAGE="image",
Se.INFINITY_ICON="infinity",Se.INFO="info_circle",Se.INFO_OUTLINE="info_circle",Se.INSERT_CHART_OUTLINED="bar_graph_box_vertical",Se.INSERT_PHOTO="image",Se.KEEP="pin",Se.KEEP_OFF="pin_off",Se.KEYBOARD="keyboard",Se.KEYBOARD_ARROW_DOWN="chevron_down",Se.KEYBOARD_ARROW_UP="chevron_up",Se.KIDS_BLOCK="slash_circle_left",Se.LANGUAGE="globe",Se.LAST_PAGE="chevron_last",Se.LAUNCH="open_new",Se.LEARNING="lightbulb",Se.LEARNING_CAIRO="lightbulb_cairo",Se.LIBRARY_ADD=$vH("library_add"),Se.LIBRARY_OUTLINE=
"library",Se.LIBRARY_REMOVE=$vH(),Se.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",Se.LIKES_PLAYLIST="thumb_up",Se.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",Se.LIKE="thumb_up",Se.LIKE_SELECTED="thumb_up",Se.LIVE="radar_live",Se.LIVE_CAIRO="radar_live_cairo",Se.LIVE_UNLISTED="link",Se.LOCATION_ON="location_point",Se.LOCATION_PIN="location_point",Se.LOOP="arrow_repeat",Se.LOOP_ACTIVE="arrow_repeat",Se.LOOP_ONE="arrow_repeat_1",Se.LOOP_ONE_ACTIVE="arrow_repeat_1",Se.MEH="face_meh",Se.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
Se.MESSAGE="message_bubble_left",Se.MICROPHONE_ON="mic",Se.MIX="youtube_mix",Se.MONETIZATION_ON="dollar_sign_circle",Se.MONEY_FILL="dollar_sign_container",Se.MONEY_FILL_JPY="yen_sign_container",Se.MONEY_HEART="dollar_sign_heart",Se.MORE_HORIZ="overflow_horizontal",Se.MORE_VERT="overflow_vertical",Se.MUSIC="audio",Se.MUSIC_CAIRO="audio_cairo",Se.MUSIC_NOTE_SYMBOL="music",Se.MUSIC_SHUFFLE="arrow_shuffle",Se.MY_CHANNEL="person_circle",Se.MY_LOCATION="location_point",Se.NEWS_STORY="news",Se.NEXT="chevron_right",
Se.NOTIFICATIONS="bell",Se.NOTIFICATIONS_ACTIVE="bell_on",Se.NOTIFICATIONS_CAIRO="bell_cairo",Se.NOTIFICATIONS_DONE_CHECKMARK="check",Se.NOTIFICATIONS_INBOX="bell",Se.NOTIFICATIONS_NONE="bell",Se.NOTIFICATIONS_OFF="bell_off",Se.NOT_INTERESTED="slash_circle_left",Se.OFFICIAL_ARTIST_BADGE="audio",Se.OFFLINE_CLOUD="cloud_off",Se.OFFLINE_DOWNLOAD="download",Se.OFFLINE_DOWNLOAD_CAIRO="download_cairo",Se.OFFLINE_PAUSE="pause",Se.OPEN_IN_NEW="open_new",Se.OUTLINE_ADJUST="adjust",Se.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",Se.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Se.OUTLINE_BAG="bag",Se.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",Se.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Se.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Se.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",Se.PAID="dollar_sign",Se.PAUSE_OUTLINED="pause",Se.PAYMENT="credit_card",Se.PERSON_RADAR_FILLED="person_radar",Se.PHONE_DOWNLOAD="mobile_download",Se.PLAYABLES_LOGO="tic_tac_toe",Se.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
Se.PLAYLISTS="list_play_arrow",Se.PLAYLISTS_CAIRO="list_play_arrow_cairo",Se.PLAYLIST_ADD=$vH("list_add"),Se.PLAYLIST_ADD_CHECK="bookmark",Se.PLAYLIST_PLAY="list_play_arrow",Se.PLAY_ALL="play_arrow",Se.PLAY_CIRCLE="play_arrow_circle",Se.PLAY_OUTLINED="play_arrow_circle",Se.PRIVACY_INFO="shield",Se.PRIVACY_PRIVATE="lock",Se.PRIVACY_PUBLIC="earth",Se.PRIVACY_UNLISTED="link",Se.PROMOTE="megaphone",Se.PURCHASES="price_tag",Se.PURCHASE_SUPER_CHAT="super_chat",Se.PURCHASE_SUPER_STICKER="super_sticker",
Se.QUESTION_ANSWER="message_bubble_question",Se.QUEUE_PLAY_LAST="list_queue_last",Se.QUEUE_PLAY_NEXT="list_play_arrow",Se.REMIX_FILLED="youtube_shorts_remix",Se.REMOVE="bar_circle",Se.REMOVE_CIRCLE="bar_circle",Se.REMOVE_CIRCLE_OUTLINE="bar_circle",Se.REMOVE_DONE="check_double_off",Se.REMOVE_FROM_HISTORY="bar_circle",Se.REMOVE_FROM_PLAYLIST="bar_circle",Se.REMOVE_MODERATOR="shield_off",Se.REPLAY="arrow_circle",Se.REPLAY_10="skip_back_10",Se.REPORT_PROBLEM="alert_triangle",Se.SAD="face_sad",Se.SAVE_PLAYLIST=
"bookmark",Se.SCHEDULE="clock",Se.SCHOOL="creator_academy",Se.SCREEN_FULLSCREEN="screen_full",Se.SEARCH_HISTORY="arrow_time",Se.SELL="price_tag",Se.SETTINGS="gear",Se.SETTINGS_CAIRO="gear_cairo",Se.SETTINGS_LIGHT="gear",Se.SETTINGS_MATERIAL="gear",Se.SHARE_ARROW="share",Se.SHIELD_WITH_AVATAR="person_shield",Se.SHOPPING_BAG="bag",Se.SHOPPING_BAG_CAIRO="bag_cairo",Se.SHOPPING_CART="cart",Se.SHORTS_COMMENT="youtube_shorts_message_bubble_right",Se.SHORTS_DISLIKE="youtube_shorts_thumb_down",Se.SHORTS_LIKE=
"youtube_shorts_thumb_up",Se.SHORTS_SHARE="youtube_shorts_share",Se.SHUFFLE="arrow_shuffle",Se.SLOW_MODE_OFF="message_bubble_left",Se.SOCIAL="people",Se.SORT="menu_sort",Se.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Se.SPEED_1X="1x",Se.SPEED_1_POINT_2X="1_point_2x",Se.SPEED_1_POINT_5X="1_point_5x",Se.SPEED_1_POINT_8X="1_point_8x",Se.SPEED_2X="2x",Se.SPEED_POINT_2X="point_2x",Se.SPEED_POINT_8X="point_8x",Se.SPONSORSHIP_STAR=_.S("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",Se.STAFF_PICK=
"spotlight",Se.START_DVR="add",Se.STAR_BORDER="star",Se.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",Se.STICKER_EMOTICON="face_happy",Se.STOP_DVR="stop",Se.SUBSCRIBE="youtube_logo_icon",Se.SUBSCRIBE_PLUS="add_cairo",Se.SUBSCRIPTION_MANAGER="gear",Se.SUPERVISOR_ACCOUNT="people",Se.SUPER_CHAT_FOR_GOOD="hands_heart",Se.SWAP_HORIZ="arrow_swap_horizontal",Se.SWITCH_ACCOUNTS="person_account",Se.TAB_ACCOUNT="person",Se.TAB_ACTIVITY="bell",Se.TAB_BOOKMARK="bookmark",Se.TAB_EXPLORE="compass",Se.TAB_HOME=
"home",Se.TAB_HOME_CAIRO="home_cairo",Se.TAB_INBOX="mail",Se.TAB_LIKED="thumb_up",Se.TAB_MUSIC_PREMIUM="youtube_music",Se.TAB_SHORTS="youtube_shorts",Se.TAB_SHORTS_CAIRO="youtube_shorts_cairo",Se.TAB_SUBSCRIPTIONS="subscriptions",Se.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",Se.TAB_TRENDING="fire",Se.TIMER="stopwatch",Se.TRAILER="youtube_originals",Se.TRENDING="fire",Se.TRENDING_CAIRO="fire_cairo",Se.TRENDING_UP="rating_up",Se.TROPHY="trophy",Se.TROPHY_CELEBRATIONS="fireworks",Se.TUNE="adjust",
Se.UNBLOCK_USER="bar_circle",Se.UNLIMITED="youtube_logo_icon",Se.UNPLUGGED_LIVE_GUIDE="radar_live",Se.UNPLUGGED_SPORTS="eye_off",Se.UPLOADS="library",Se.UP_ARROW="arrow_up",Se.VERTICAL_ALIGN_BOTTOM="download",Se.VERY_HAPPY="face_very_happy",Se.VERY_SAD="face_very_sad",Se.VIDEOGAME_ASSET="gaming",Se.VIDEOS="play_arrow_circle",Se.VIDEO_CALL="video_camera_add",Se.VIDEO_LIBRARY_WHITE="library",Se.VIDEO_YOUTUBE="youtube_logo_icon",Se.VIEW_LIST="list_view",Se.VIEW_LIST_CAIRO="list_view_cairo",Se.VISIBILITY=
"eye",Se.VISIBILITY_OFF="eye_off",Se.VOLUME_MUTE="volume_off",Se.VOLUME_UP="volume_on",Se.WALLPAPER="image",Se.WARNING="alert_triangle",Se.WATCH_HISTORY="arrow_time",Se.WATCH_HISTORY_CAIRO="arrow_time_cairo",Se.WATCH_LATER="clock",Se.WATCH_LATER_CAIRO="clock_cairo",Se.WATCH_RELATED_MIX="youtube_mix",Se.WHAT_TO_WATCH="home",Se.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Se.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",Se.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",Se.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",Se.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",Se.YT_OUTLINE_MUSIC_24="music",Se);var bx={},pQm=(bx.ACCESS_TIME="clock",bx.ACCOUNT_BOX="person_square",bx.ACCOUNT_BOX_CAIRO="person_square",bx.ACCOUNT_CIRCLE="person_circle",bx.ACCOUNT_CIRCLE_CAIRO="person_circle",bx.ACCOUNT_LINKED="account_link",bx.ACCOUNT_UNLINKED="account_link",bx.ADD_CIRCLE="add_circle",bx.ADD_FRIEND="person_child",bx.ADD_TO_LIBRARY="bookmark",bx.ADD_TO_PLAYLIST="add",bx.ADD_TO_QUEUE_TAIL="queue",bx.ADD_TO_REMOTE_QUEUE="playlist_audio",bx.ADD_TO_WATCH_LATER="clock",bx.ADD_VIDEO_LINK="film_strip_add",bx.ADMIN_PANEL_SETTINGS=
"person_gear",bx.ALERT_WARN_RED="alert_triangle",bx.ALIGN_LEFT="text_align_left",bx.ARROWS_ALERT="arrow_split_alert",bx.ARROW_BACK="arrow_left",bx.ARROW_CIRCLE="arrow_counterclockwise",bx.ARROW_CIRCLE_PLAY="replay",bx.ARROW_CIRCLE_RIGHT="arrow_clockwise",bx.ARROW_DIAGONAL="arrow_up_left",bx.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",bx.ARROW_DROP_DOWN="triangle_down",bx.ARROW_DROP_UP="triangle_up",bx.ARROW_FORWARD="arrow_right",bx.ARROW_PAUSE="pause_history",bx.ARROW_UNDO="undo",bx.ARTICLE="text_page",
bx.ARTICLE_ALERT="text_page_alert",bx.ARTICLE_CHECK="text_page_check",bx.ARTICLE_CLARIFY="text_page_info",bx.AUDIOTRACK="audio",bx.AUDIO_BADGE="audio_badge",bx.AUDIO_SURROUND="surround_sound",bx.AVATAR_ANONYMOUS="person_circle",bx.AVATAR_LOGGED_OUT="person_circle",bx.BACK="arrow_left",bx.BAR_CHART="chart_bar",bx.BAR_CIRCLE="minus_circle",bx.BAR_HORIZONTAL="minus",bx.BLOCK="circle_slash",bx.BLOCK_USER="circle_slash",bx.BOOKMARK_BORDER="bookmark",bx.BOX_OPEN_CHECK="quiz",bx.BOX_PENCIL="square_pencil",
bx.BREAKING_NEWS_ALT_1="text_page_alert",bx.BROADCAST="podcast",bx.BROADCAST_CAIRO="podcast",bx.BUG_REPORT="bug",bx.CAMERA_ALT="camera",bx.CAMPAIGN="megaphone",bx.CANCEL="x_circle",bx.CAPTIONS="closed_captions",bx.CAST_ICON="chromecast",bx.CAST_OUTLINE="chromecast",bx.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",bx.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",bx.CHAT="text_bubble",bx.CHAT_BUBBLE="bubble",bx.CHECK_BOX="check_square",bx.CHECK_BOX_OUTLINE_BLANK="square",bx.CHECK_CIRCLE_FILLED="check_circle",
bx.CHECK_CIRCLE_OUTLINE="check_circle",bx.CHECK_CIRCLE_THICK="check_circle",bx.CHECK_DOUBLE="check_done",bx.CHECK_DOUBLE_OFF="check_done_slash",bx.CHEVRON_LEFT="chevron_left",bx.CHEVRON_RIGHT="chevron_right",bx.CHEVRON_RIGHT_CAIRO="chevron_right",bx.CIRCLES_OVERLAP="account_link",bx.CLAPPERBOARD_CAIRO="clapperboard",bx.CLARIFY="text_page_info",bx.CLOCK_ARROWS="clock_split",bx.CLOCK_ARROWS_ALERT="clock_split_alert",bx.CLOSED_CAPTION="closed_captions",bx.CLOSED_CAPTION_SELECTED="closed_captions",bx.CLOSE=
"x",bx.CLOUD_UPLOAD="cloud_arrow_up",bx.COLLAPSE="chevron_up",bx.COLLAPSE_CAIRO="chevron_up",bx.COLLECTION="square3d_stack",bx.COLOR_LENS="paint_palette",bx.COMMENT="text_bubble",bx.CONSENT_SHIELD="person_shield",bx.CONTENT_CUT="scissors",bx.CONTENT_CUT_CAIRO="scissors",bx.COURSE="graduation_cap",bx.COURSE_CAIRO="graduation_cap",bx.CREATION_LIVE="live",bx.CREATION_POST="square_pencil",bx.CREATION_UPLOAD="video",bx.CREATION_UPLOAD_RED="upload",bx.CREATOR_ACADEMY="graduation_cap",bx.CREATOR_STUDIO=
"youtube_studio",bx.DARK_THEME="theme",bx.DELETE="trash_can",bx.DELETE_SWEEP="trash_can",bx.DESKTOP="laptop",bx.DISLIKE="thumb_down",bx.DISLIKE_SELECTED="thumb_down",bx.DISMISSAL="x",bx.DISMISS_QUEUE="playlist_x",bx.DOGFOOD="pawprint",bx.DOLLAR_SIGN="dollar_sign_circle",bx.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",bx.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",bx.DOWN_ARROW="arrow_down",bx.DO_NOT_DISTURB="circle_slash",bx.DRAFT="document",bx.EARTH="globe",bx.EDIT="pencil",bx.EMOJI="face_very_happy",
bx.EMOJI_FLAGS="flag",bx.EMOJI_OBJECTS="lightbulb",bx.EMOJI_PEOPLE="face_very_happy",bx.EMOJI_RECENT="clock",bx.EMPTY_HEART="heart",bx.EMPTY_LIKE="thumb_up",bx.ERROR_BLACK="alert_circle",bx.ERROR_OUTLINE="alert_circle",bx.ERROR_WHITE="alert_circle",bx.EXIT_APP="arrow_in",bx.EXIT_TO_APP="arrow_in",bx.EXPAND="chevron_down",bx.EXPAND_ALL="chevron_expand",bx.EXPAND_CAIRO="chevron_down",bx.EXPAND_LESS="chevron_up",bx.EXPAND_MORE="chevron_down",bx.EXPLORE="compass",bx.EXPLORE_DESTINATION="compass",bx.EXTERNAL_LINK=
"arrow_up_right",bx.EYE_OFF="eye_slash",bx.FAB_UPLOAD="upload",bx.FACE_HAPPY_OUTLINE="face_happy",bx.FACE_MEH="face_neutral",bx.FACT_CHECK="text_page_check",bx.FASHION_LOGO="fashion",bx.FASHION_LOGO_CAIRO="fashion",bx.FAVORITE="thumb_up",bx.FEEDBACK="alert_bubble",bx.FEEDBACK_CAIRO="alert_bubble",bx.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",bx.FILL_ARROW_SOLID_UP_16="arrow_solid_up",bx.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",bx.FLAG_CAIRO="flag",bx.FLASH_OFF="flash_slash",bx.FLASH_ON="flash",
bx.FULL_HEART="heart",bx.GAMING_LOGO="gaming",bx.GAMING_LOGO_CAIRO="gaming",bx.GO_TO_PAGE="arrow_right",bx.GROUPS="person3",bx.HAND_SWIPE_LEFT="gesture_swipe_left",bx.HAND_SWIPE_RIGHT="gesture_swipe_right",bx.HAPPY="face_happy",bx.HEALTH_AND_SAFETY="shield_health",bx.HEART_BOX="heart_cube",bx.HELP="help_circle",bx.HELP_CAIRO="help_circle",bx.HELP_OUTLINE="help_circle",bx.HIDE="circle_slash",bx.INCOGNITO_CAIRO="incognito",bx.INFINITY_ICON="infinity",bx.INFO="info_circle",bx.INFO_OUTLINE="info_circle",
bx.INSERT_CHART_OUTLINED="chart_bar_square",bx.INSERT_PHOTO="image",bx.KEEP="pin",bx.KEEP_OFF="pin_slash",bx.KEYBOARD="keyboard",bx.KEYBOARD_ARROW_DOWN="chevron_down",bx.KEYBOARD_ARROW_UP="chevron_up",bx.KIDS_BLOCK="circle_slash",bx.LANGUAGE="globe",bx.LAUNCH="arrow_up_right",bx.LEARNING="lightbulb",bx.LEARNING_CAIRO="lightbulb",bx.LIBRARY_ADD="bookmark",bx.LIBRARY_IMAGE="image_stack",bx.LIBRARY_MUSIC="audio_square_stack",bx.LIBRARY_OUTLINE="play_square_stack",bx.LIBRARY_REMOVE="bookmark",bx.LIBRARY_SAVED=
"check_square_stack",bx.LIKES_PLAYLIST="thumb_up",bx.LIKES_PLAYLIST_CAIRO="thumb_up",bx.LIKE="thumb_up",bx.LIKE_SELECTED="thumb_up",bx.LIST_QUEUE="queue",bx.LIVE_CAIRO="live",bx.LIVE_UNLISTED="link",bx.LOCATION_ON="location_pin",bx.LOCATION_PIN="location_pin",bx.LOCATION_POINT="location_pin",bx.LOOP="repeat",bx.LOOP_ACTIVE="repeat",bx.LOOP_ONE="repeat1",bx.LOOP_ONE_ACTIVE="repeat1",bx.MEET="google_meet",bx.MEH="face_neutral",bx.MEMBERSHIPS="memberships",bx.MEMBERS_ONLY_MODE_OFF="text_bubble",bx.MENU_FILTER=
"filter",bx.MESSAGE="text_bubble",bx.MESSAGE_BUBBLE_GEAR="bubble_gear",bx.MESSAGE_BUBBLE_LEFT="text_bubble",bx.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",bx.MESSAGE_BUBBLE_OVERLAP="bubble_stack",bx.MESSAGE_BUBBLE_QUESTION="help_bubble",bx.MICROPHONE_ON="mic",bx.MONETIZATION_ON="dollar_sign_circle",bx.MONEY_FILL="dollar_sign_rectangle",bx.MONEY_FILL_JPY="yen_sign_rectangle",bx.MONEY_HAND="dollar_sign_circle_hand",bx.MONEY_HEART="dollar_sign_heart",bx.MOON_Z="sleep_timer",bx.MORE_HORIZ="overflow_horizontal",
bx.MORE_VERT="overflow_vertical",bx.MUSIC="audio",bx.MUSIC_CAIRO="audio",bx.MUSIC_EXPLICIT_BADGE="explicit",bx.MUSIC_NEW_RELEASE="audio_badge",bx.MUSIC_NOTE_SYMBOL="audio",bx.MUSIC_SCISSORS="audio_scissors",bx.MUSIC_SHUFFLE="shuffle",bx.MY_CHANNEL="person_circle",bx.MY_LOCATION="location_pin",bx.MY_VIDEOS="video",bx.MY_VIDEOS_CAIRO="video",bx.NEWS_CAIRO="news",bx.NEWS_STORY="news",bx.NEXT="chevron_right",bx.NOTE_ADD="bubble_pencil",bx.NOTIFICATIONS="bell",bx.NOTIFICATIONS_ACTIVE="bell_waves",bx.NOTIFICATIONS_CAIRO=
"bell",bx.NOTIFICATIONS_DONE_CHECKMARK="check",bx.NOTIFICATIONS_INBOX="bell",bx.NOTIFICATIONS_NONE="bell",bx.NOTIFICATIONS_OFF="bell_slash",bx.NOT_INTERESTED="circle_slash",bx.OFFICIAL_ARTIST_BADGE="audio",bx.OFFLINE_CLOUD="cloud_slash",bx.OFFLINE_DOWNLOAD="download",bx.OFFLINE_DOWNLOAD_CAIRO="download",bx.OFFLINE_PAUSE="pause",bx.OPEN_IN_NEW="arrow_up_right",bx.OUTLINE_ADJUST="adjust",bx.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",bx.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",bx.OUTLINE_ARROW_SOLID_UP=
"arrow_solid_up",bx.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",bx.OUTLINE_BAG="bag",bx.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",bx.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",bx.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",bx.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",bx.PAID="dollar_sign_circle",bx.PAUSE_OUTLINED="pause",bx.PAYMENT="credit_card",bx.PEOPLE="person_child",bx.PEOPLE_2="person2_rectangle",bx.PEOPLE_GROUP="person3",bx.PEOPLE_NOTE="bubble_asterisk",bx.PERSON_2="person2",bx.PERSON_ACCOUNT=
"person_square_stack",bx.PERSON_MINUS="person_x",bx.PERSON_MUSIC="person_audio",bx.PERSON_RADAR="person_waves",bx.PERSON_RADAR_FILLED="person_waves",bx.PERSON_SETTING="person_gear",bx.PHONE="phone",bx.PHONE_DOWNLOAD="mobile_arrow_down",bx.PICTURE_IN_PICTURE="picture_in_picture",bx.PLAYABLES_LOGO="playables",bx.PLAYABLES_LOGO_CAIRO="playables",bx.PLAYLISTS="playlist",bx.PLAYLISTS_CAIRO="playlist",bx.PLAYLIST_ADD_CHECK="bookmark",bx.PLAY_ALL="play",bx.PLAY_ARROW="play",bx.PLAY_ARROW_CIRCLE="play_circle",
bx.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",bx.PLAY_CIRCLE="play_circle",bx.PLAY_OUTLINED="play_circle",bx.PODCAST_ADD="podcast_add",bx.PODCAST_CHECK="podcast_check",bx.PRIVACY_INFO="shield_x",bx.PRIVACY_PRIVATE="lock",bx.PRIVACY_PUBLIC="globe",bx.PRIVACY_UNLISTED="link",bx.PROMOTE="megaphone",bx.PURCHASES="price_tag",bx.PURCHASE_SUPER_CHAT="super_chat",bx.PURCHASE_SUPER_STICKER="super_sticker",bx.QUESTION_ANSWER="help_bubble",bx.QUESTION_CIRCLE="help_circle",bx.QUEUE_PLAY_LAST="queue_last",
bx.QUEUE_PLAY_NEXT="playlist",bx.QUOTATION_MARK="quote",bx.RADAR_LIVE="live",bx.REMOVE="minus_circle",bx.REMOVE_CIRCLE="minus_circle",bx.REMOVE_CIRCLE_OUTLINE="minus_circle",bx.REMOVE_FROM_HISTORY="minus_circle",bx.REMOVE_FROM_PLAYLIST="minus_circle",bx.REPLAY="arrow_counterclockwise",bx.REPLAY_10="skip10_back",bx.REPLAY_ARROW="replay",bx.REPORT_PROBLEM="alert_triangle",bx.RSS_OFF="rss_slash",bx.SAD="face_sad",bx.SAVE_PLAYLIST="bookmark",bx.SCHEDULE="clock",bx.SCHOOL="graduation_cap",bx.SCREEN_DEFAULT=
"player_default",bx.SCREEN_FULLSCREEN="player_full_enter",bx.SCREEN_LIGHT="ambient_mode",bx.SCREEN_ROTATION="rotate_portrait",bx.SCREEN_SWITCH="player_switch",bx.SCREEN_THEATRE="player_theater",bx.SEARCH_CAIRO="search",bx.SEARCH_HISTORY="history",bx.SELL="price_tag",bx.SETTINGS="gear",bx.SETTINGS_CAIRO="gear",bx.SETTINGS_LIGHT="gear",bx.SETTINGS_MATERIAL="gear",bx.SETTINGS_REMOTE="remote_waves",bx.SHARE="share",bx.SHARE_ARROW="share",bx.SHARE_CAIRO="share",bx.SHIELD="shield_x",bx.SHIELD_OFF="shield_slash",
bx.SHIELD_WITH_AVATAR="person_shield",bx.SHOPPING_BAG="bag",bx.SHOPPING_BAG_CAIRO="bag",bx.SHOPPING_CART="cart",bx.SHORTS_COMMENT="text_bubble",bx.SHORTS_DISLIKE="thumb_down",bx.SHORTS_LIKE="thumb_up",bx.SHORTS_SHARE="share",bx.SKIP_FORWARD_30="skip30_forward",bx.SLASH_CIRCLE_RIGHT="circle_slash",bx.SLOW_MODE_OFF="text_bubble",bx.SOCIAL="person_child",bx.SPARKLE="sparkles",bx.SPARK_IMAGE="image_spark",bx.SPARK_RADAR="spark_waves",bx.SPARK_VIDEO="video_spark",bx.SPEAKER_GROUP="speaker_stack",bx.SPEAKER_OFF=
"speaker_slash",bx.SPEED_1X="n1x",bx.SPEED_1_POINT_2X="n1point2x",bx.SPEED_1_POINT_5X="n1point5x",bx.SPEED_1_POINT_8X="n1point8x",bx.SPEED_2X="n2x",bx.SPONSORSHIP_STAR="memberships",bx.SPORTS="basketball",bx.SPOTLIGHT="spotlight",bx.STAFF_PICK="spotlight",bx.START_DVR="add",bx.STAR_BORDER="star",bx.STAR_HALF="star_half_filled",bx.STAR_SHOOTING="hype",bx.STICKER="sticker",bx.STICKER_EMOTICON="face_happy",bx.STOP_DVR="stop",bx.SUBSCRIBE="youtube",bx.SUBSCRIBE_PLUS="add",bx.SUBSCRIPTION_MANAGER="gear",
bx.SUPERSTAR="super_star",bx.SUPERVISOR_ACCOUNT="person_child",bx.SWAP_HORIZ="arrow_swap_horizontal",bx.SWITCH_ACCOUNTS="person_square_stack",bx.TAB_ACCOUNT="person",bx.TAB_ACTIVITY="bell",bx.TAB_BOOKMARK="bookmark",bx.TAB_EXPLORE="compass",bx.TAB_HOME="home",bx.TAB_HOME_CAIRO="home",bx.TAB_INBOX="mail",bx.TAB_LIKED="thumb_up",bx.TAB_MUSIC_PREMIUM="youtube_music",bx.TAB_SHORTS="shorts",bx.TAB_SHORTS_CAIRO="shorts",bx.TAB_SUBSCRIPTIONS="subscriptions",bx.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",bx.TAB_TRENDING=
"trending",bx.TARGET="target",bx.TARGET_ADD="target_add",bx.TEMPLATE_ADD="template_add",bx.TEXT="font",bx.TIMER="stopwatch",bx.TRENDING_CAIRO="trending",bx.TRENDING_UP="arrow_trend_up",bx.TROPHY_CAIRO="trophy",bx.TROPHY_CELEBRATIONS="fireworks",bx.TROPHY_STAR="star_trophy",bx.TUNE="adjust",bx.TV_OFF="tv_slash",bx.UNBLOCK_USER="minus_circle",bx.UNFAVORITE="thumb_down",bx.UNLIMITED="youtube",bx.UNPLUGGED_LIVE_GUIDE="live",bx.UNPLUGGED_SPORTS="eye_slash",bx.UPLOADS="play_square_stack",bx.UP_ARROW="arrow_up",
bx.VERTICAL_ALIGN_BOTTOM="chevron_down_end",bx.VERTICAL_ALIGN_TOP="chevron_up_end",bx.VERY_HAPPY="face_very_happy",bx.VERY_SAD="face_very_sad",bx.VIDEOS="play_circle",bx.VIDEO_CALL="video_camera_add",bx.VIDEO_LIBRARY_WHITE="play_square_stack",bx.VIDEO_QUALITY_4K="n4k",bx.VIDEO_QUALITY_8K="n8k",bx.VIDEO_YOUTUBE="youtube",bx.VIEW_LIST_CAIRO="view_list",bx.VIEW_MODULE="view_column3_row2",bx.VISIBILITY="eye",bx.VISIBILITY_OFF="eye_slash",bx.VOLUME_DOWN="volume_min",bx.VOLUME_MUTE="volume_mute",bx.VOLUME_OFF=
"volume_mute",bx.VOLUME_STABLE="stable_volume",bx.VOLUME_UP="volume_max",bx.WALLPAPER="image",bx.WARNING="alert_triangle",bx.WATCH_HISTORY="history",bx.WATCH_HISTORY_CAIRO="history",bx.WATCH_LATER="clock",bx.WATCH_LATER_CAIRO="clock",bx.WATCH_RELATED_MIX="mix",bx.WHAT_TO_WATCH="home",bx.YOUTUBE_LINKED_TV="tv_mobile",bx.YOUTUBE_MUSIC_MONOCHROME="youtube_music",bx.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",bx.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",bx.YOUTUBE_SHORTS_ARROW_UP="arrow_up",bx.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16=
"shorts_empty",bx.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",bx.YOUTUBE_SHORTS_OUTLINE_24="shorts",bx);var i82={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,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,7,24],[1,7,24]],arrow_left:[[1,
7,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,11,12],[0,11,16],[0,11,24],[1,11,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,8,24],[1,8,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,
11,12],[0,11,16],[0,11,24],[1,11,16],[1,11,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,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,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,9,24],[1,9,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,
5,24],[1,5,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,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,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,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],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,4,16],[1,4,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,10,24],[1,10,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_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,8,24]],pause_circle:[[0,2,12],
[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,8,18],[1,8,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,6,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,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,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,4,24],[1,4,12],[1,4,16],[1,4,18],[1,4,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,12,24],[1,12,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,11,24,!0],[0,11,32,!0],[1,11,16,!0],[1,11,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,5,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,
3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],
speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,5,12],[0,5,16],[0,5,18],[0,5,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,10,24],[1,10,18],[1,10,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,23,16],[0,23,24],[0,23,36],[1,23,16],[1,23,24],[1,23,36]],thumb_up:[[0,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,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,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],
[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],
video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,2,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,10,18],[1,10,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,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,1,24],[1,1,24]]};var T7w={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,6,24],[1,6,24]],alert_bubble:[[1,1,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,1,24]],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,7,24]],arrow_left:[[1,7,24,!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,11,12],[0,11,18],[0,11,
24],[1,11,18],[1,11,24]],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,8,24],[1,8,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,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,11,18],[1,11,24]],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,6,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,9,24],[1,9,24],[1,9,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,2,24],[1,2,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,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,
3,24]],cloud_slash:[[1,1,24]],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,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,
23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],
face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,
1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,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_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,8,24],[1,8,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:[[1,4,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,1,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]],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,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,1,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,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]],
open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,8,24],[0,8,36],[1,8,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,8,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,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],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,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,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,2,24],[1,2,
24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,2,24],[0,2,36],[1,2,24]],play_circle:[[0,1,24],[1,1,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,2,12],[1,2,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,2,24],[1,2,24],[1,2,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,1,24]],podcast:[[0,4,24],[1,4,18],[1,4,24]],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,1,24],[1,1,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,12,24],[1,12,24]],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,11,24,!0],[1,11,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,
2,24],[1,2,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],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,1,24]],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,
5,24],[1,5,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,1,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,5,18],[0,5,24],[0,5,36],[1,5,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]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],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]],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,23,18],[0,23,24],[1,23,18],[1,23,24]],thumb_up:[[0,21,18],[0,21,24],[1,21,18],[1,21,24]],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,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,
5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],
volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,10,18],[1,10,24]],x_circle:[[0,7,24],[1,7,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_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var wQN={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"},OD=function(u){this.iconUrlProvider=u};
OD.prototype.resolveIcon=function(u,K){var l=wQN[u.iconName.toUpperCase()];l&&(u.iconName=l);var D=u.iconName;D=D.replace(/-/g,"_");u=Object.assign({},u,{iconName:this.mapIconTypeToStandardName(D,!!l)||D.toLowerCase()});if(_.S("enable_web_delhi_icons")||l){var d;return MNw(T7w,u,((d=this.iconUrlProvider)==null?void 0:d.getYtStandardUrl)||rhq,K)}var C;return MNw(i82,u,((C=this.iconUrlProvider)==null?void 0:C.getYtStandardUrl)||nIr,K)};
OD.prototype.mapIconTypeToStandardName=function(u,K){return _.S("enable_web_delhi_icons")||K?pQm[u.toUpperCase()]:B7w[u.toUpperCase()]};
OD[vP]=[_.vv(P$C)];var FsH=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),VJS=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),gCR=new Set(["shorts_comment","shorts_dislike","shorts_like","shorts_share"]),N7a=function(u){this.urlProvider=this.iconUrlProvider=u};
_.c(N7a,OD);
N7a.prototype.resolveIcon=function(u,K){u.iconName==="youtube_logo"&&(u.iconName="yt-logo-updated");if(u.iconName==="youtube_premium_logo"||u.iconName==="youtube_red_logo")u.iconName="yt-logo-red-updated";var l=Object.assign({},u);u.iconName==="menu"&&(_.S("enable_web_delhi_icons")||(l.iconName="bars_3"),l.iconStyle="youtube_outline");u.iconSetName==="socialNetworksRound"&&(u.iconName==="mail"&&(l.iconName="email"),u.iconName==="embed"&&(l.iconSize=60));u.iconName==="more"&&(l.iconName="overflow_horizontal");
u.iconName==="fullscreen"&&(l.iconName="screen_full");u.iconName==="premium_standalone"&&(l.iconName="premium_standalone_cairo");_.S("enable_connect_icon_update_web")&&u.iconName==="account_linked"&&(l.iconName="circles_overlap_check",l.iconStyle="youtube_fill");_.S("enable_connect_icon_update_web")&&u.iconName==="account_unlinked"&&(l.iconName="circles_overlap",l.iconStyle="youtube_outline");FsH.has(u.iconName)&&(l.iconStyle="youtube_fill");_.S("enable_web_delhi_icons")&&(u.iconName==="playlist_add"&&
(l.iconName="bookmark"),u.iconName==="offline_pin"&&(l.iconName="arrow_down_circle",l.iconStyle="youtube_fill"),VJS.has(u.iconName)&&(l.iconName+="_updated"),gCR.has(u.iconName)&&(l.iconStyle="youtube_fill"));u=Object.assign({},l,{iconName:(OD.prototype.mapIconTypeToStandardName.call(this,l.iconName)||l.iconName).toLowerCase()});var D;return(u=MNw(fEa,u,((D=this.urlProvider)==null?void 0:D.getUrl)||vIh,K))?u:OD.prototype.resolveIcon.call(this,l,K)};
N7a[vP]=[_.vv(P$C)];_.kvw=1;var cL=function(){};
_.c(cL,lq);cL.prototype.resolveCommand=function(u){var K,l;return _.H(function(D){K=_.b(u,f0w);if(!K)return D.return();l=Number(K.enableDelayedPacfLoggingTvMs);if(isNaN(l)){var d=JJ();IcR(d,K,0)}else IcR(JJ(),K,l);_.TG(D)})};_.aW=function(){};
_.c(_.aW,lq);
_.aW.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M,q,v;return _.H(function(G){D=_.b(u,Qqw);C=(d=K.form)==null?void 0:d.element;M=(W=C)==null?void 0:W.closest("ytd-enforcement-message-view-model");if(!D||!M)return G.return();l.allowAdsAction||(q=D.fundingChoiceInstructionPageUrl,l.allowAdsAction=new lYH(window,_.AP(q)));var t=l.allowAdsAction;t.wallElement=M;t.allowAdsPopup.style.setProperty("display","flex","important");var x=t.scrollManager;x.originalBodyOverflow=x.JSC$9928_domHelper.JSC$9252_document_.body.style.overflow;x.JSC$9928_domHelper.JSC$9252_document_.body.style.overflow=
"hidden";t.wallElement.style.setProperty("display","none","important");qnR(t.accessibilityManager,t.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((v=l.allowAdsAction.allowAdsPopup)&&v instanceof HTMLElement)for(t=_.y(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),x=t.next();!x.done;x=t.next()){var O=_.y(x.value);x=O.next().value;O=O.next().value;v.style.setProperty(x,O)}_.TG(G)})};
_.aW.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var zy=function(){};
_.c(zy,lq);zy.prototype.resolveCommand=function(u){var K;return _.H(function(l){K=_.b(u,hAS);if(!K)return l.return();$Vq(u);_.TG(l)})};var ee=function(u){this.JSC$17077_commandHandler=u};
_.c(ee,lq);
ee.prototype.resolveCommand=function(u){var K=this,l,D,d,C,W,M,q,v;return _.H(function(G){if(G.nextAddress==1){l=_.b(u,zmN);if((D=l)==null||!D.text||!navigator.clipboard)return G.return();_.Qg(G,2);return G.yield(navigator.clipboard.writeText(l.text),4)}if(G.nextAddress!=2){if(!l.successActions||l.successActions.length===0)return G.return();d=_.y(l.successActions);for(C=d.next();!C.done;C=d.next())W=C.value,K.JSC$17077_commandHandler.resolveCommand(W);return _.I$(G,0)}_.iY(G);if(!l.failureActions||l.failureActions.length===
0)return G.return();M=_.y(l.failureActions);for(q=M.next();!q.done;q=M.next())v=q.value,K.JSC$17077_commandHandler.resolveCommand(v);_.TG(G)})};
ee[vP]=[_.t9];var RW=function(u){this.JSC$17081_commandHandler=u};
_.c(RW,lq);
RW.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M,q,v,G,t,x;return _.H(function(O){switch(O.nextAddress){case 1:D=_.b(u,dGs);if(!D)return O.return();_.Qg(O,2);if(!D.imageBytes&&!D.imageUrl)throw Error("yi");if(!D.imageUrl){if(D.imageBytes){C=D.imageBytes;W=C.replace(/-/g,"+").replace(/_/g,"/");var a=xvr(W);d=_.LM(a)}O.jumpTo(4);break}return O.yield(fetch(D.imageUrl),5);case 5:return M=O.yieldResult,O.yield(M.blob(),6);case 6:q=O.yieldResult,d=_.LM(q);case 4:t=(v=K)==null?void 0:(G=v.form)==
null?void 0:G.element;x=document.createElement("a");lY(x,d);t.appendChild(x);x.download="";x.click();t.removeChild(x);URL.revokeObjectURL(_.Yu(d));D.successCommand&&l.JSC$17081_commandHandler.resolveCommand(D.successCommand);_.I$(O,0);break;case 2:_.iY(O),D.errorCommand&&l.JSC$17081_commandHandler.resolveCommand(D.errorCommand),_.TG(O)}})};
RW[vP]=[_.t9];var UD=function(u){this.store=u};
_.c(UD,lq);UD.prototype.resolveCommand=function(u){var K=this,l,D,d;return _.H(function(C){D=(l=_.b(u,_.iXa))==null?void 0:l.entityBatchUpdate;if(!D)return C.jumpTo(0);d=Object.assign({},D,{mutations:[].concat(_.Am(D.mutations||[]))});return C.yield(_.Pi(d,K.store),0)})};var Z8A=function(u){this.JSC$17088_commandHandler=u;this.feedbackDialogMap=new Map};
Z8A.prototype.openDialog=function(u,K){(u=this.feedbackDialogMap.get(u))&&this.JSC$17088_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:u}},K)};
Z8A[vP]=[_.t9];var fL=new _.G$("FEEDBACK_CONTROLLER_TOKEN");var Q0=new _.G$("APP_STORE_TOKEN");var PL=function(u,K){this.store=u;this.controller=K};
_.c(PL,lq);PL.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M,q,v,G,t,x,O,a,f,B,p,V,m;return _.H(function(Z){if(Z.nextAddress==1){D=_.b(u,_.X_);if(C=(d=D)==null?void 0:d.contentId)for(M=_.y(((W=D)==null?void 0:W.actions)||[]),q=M.next();!q.done;q=M.next())v=q.value,YwS(l,v,C);x=(G=K)==null?void 0:(t=G.form)==null?void 0:t.element;return Z.yield(_.c0(x,[u]).catch(function(){}),2)}O=Z.yieldResult;
((a=O)==null?0:(f=a.data)==null?0:(B=f.feedbackResponses)==null?0:B.length)&&(V=(p=O.data.feedbackResponses[0])==null?void 0:p.followUpDialog)&&C&&(m=l.controller)!=null&&m.feedbackDialogMap.set(C,V);_.TG(Z)})};
var YwS=function(u,K,l){var D=_.b(K,_.ey);if(D){D=_.y(D.commands||[]);for(var d=D.next();!d.done;d=D.next())YwS(u,d.value,l)}_.b(K,_.FP)&&u.store.dispatch(_.TT("commandEntity",A6n(l),{key:l,command:K}));_.b(K,Rbk)&&u.store.dispatch(_.TT("commandEntity",A6n(l),{key:l,command:K}))};
PL[vP]=[Q0,fL];var Jt=function(u){this.controller=u};
_.c(Jt,lq);Jt.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W;return _.H(function(M){D=_.b(u,_.ly);C=(d=D)==null?void 0:d.targetId;if(((W=D)==null?void 0:W.signal)!=="TELL_US_WHY"||!C)return M.return();l.controller.openDialog(C,K);_.TG(M)})};
Jt[vP]=[fL];var je=function(u){this.store=u};
_.c(je,lq);je.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M,q,v;return _.H(function(G){D=_.b(u,lon);C=(d=D)==null?void 0:d.contentId;q=(W=K)==null?void 0:(M=W.form)==null?void 0:M.element;v=_.c0(q,[u]);C&&l.undo(C);return G.yield(v,0)})};
je.prototype.undo=function(u){this.store.dispatch(_.TT("commandEntity",A6n(u),{key:u,command:void 0}))};
je[vP]=[Q0];var BL=function(u){this.JSC$17103_commandHandler=u};
_.c(BL,lq);BL.prototype.resolveCommand=function(u){var K=this,l,D,d,C,W,M,q,v;return _.H(function(G){l=_.b(u,usa);D=l.flowStateKey;d=l.validationFailureCommand;C=l.submitValidFormCommand;W=NAy(_.$5,[D||""]);M=_.b(W,lwa);((q=M)==null?0:q.isValid)&&C&&K.JSC$17103_commandHandler.resolveCommand(C);((v=M)==null?0:v.isValid)||!d||K.JSC$17103_commandHandler.resolveCommand(d);_.TG(G)})};
BL[vP]=[_.t9];var pL=function(u){this.innertubeTransportService=u};
_.c(pL,lq);pL.prototype.resolveCommand=function(u,K){var l=this,D;return _.H(function(d){return d.yield(_.HJ(l.innertubeTransportService,u,(D=K)==null?void 0:D.form).then(function(C){var W,M;K==null||(W=K.commandController)==null||(M=W.onSuccess)==null||M.call(W,u,C)},function(C){var W,M;
K==null||(W=K.commandController)==null||(M=W.onServerError)==null||M.call(W,u,C)}),0)})};
pL[vP]=[_.md];var ix=function(){};
_.c(ix,lq);ix.prototype.resolveCommand=function(u){var K,l,D,d;return _.H(function(C){if(K=_.b(u,_.nKS)){if(l=K.gtmId)D=_.E3("GL",""),_.Yx(l,D);(d=K.gtmData)&&_.AT(d)}_.TG(C)})};var Ty=function(u,K){this.innertubeTransportService=u;this.JSC$17114_actionRouter=K};
_.c(Ty,lq);Ty.prototype.resolveCommand=function(u){var K=this,l,D;return _.H(function(d){l=_.b(u,LIC);if(!l)return d.return();D=l.command;if(!D)return d.return();K.JSC$17114_actionRouter.triggerAction("yt-insert-rich-section-action",l);return d.yield(_.HJ(K.innertubeTransportService,D,{disableCache:!0}),0)})};
Ty[vP]=[_.md,rz];bCw.bind(null,Db);var A2N=bCw.bind(null,OwN);chH.bind(null,Db);var XQk=chH.bind(null,OwN);zTn.bind(null,Db);var mWm=zTn.bind(null,OwN);var wJ=function(){};
_.c(wJ,lq);
wJ.prototype.resolveCommand=function(u){var K,l,D,d,C,W,M,q,v,G;return _.H(function(t){K=_.b(u,iJC);if(!K)return t.return();D=((l=K.operations)==null?void 0:l.operations)||[];d=_.y(D);for(C=d.next();!C.done;C=d.next())if(W=C.value,W.insertItemSectionContent){var x=W.insertItemSectionContent,O=x.contents||[];x.insertByPositionInSection?A2N(x.insertByPositionInSection.sectionTargetId,O,x.insertByPositionInSection.position):x.insertByRelativePositionInSection&&x.insertByRelativePositionInSection.sectionTargetId&&x.insertByRelativePositionInSection.itemTargetId&&
XQk(x.insertByRelativePositionInSection.sectionTargetId,x.insertByRelativePositionInSection.itemTargetId,O,x.insertByRelativePositionInSection.relativePosition)}else W.replaceSection?(x=W.replaceSection,O={},x.replaceByTargetId?O=x.replaceByTargetId:x.replaceByGroupId&&(O={targetId:x.replaceByGroupId.groupId,newContent:x.replaceByGroupId.newContent,undoKey:""}),O.newContent&&zWA(O.targetId,{continuationItems:[O.newContent]})):W.removeItem?(x=W.removeItem,x.removeByTargetId&&x.sectionTargetId&&mWm(x.sectionTargetId,
x.removeByTargetId.targetIds||[])):W.removeSection&&(W.removeSection.removeByTargetId?(M=void 0,hvN(((M=W.removeSection)==null?void 0:M.removeByTargetId.targetIds)||[])):W.removeSection.removeByGroupId&&(q=void 0,hvN(((q=W.removeSection)==null?void 0:q.removeByGroupId.groupIds)||[])));G=((v=K.operations)==null?void 0:v.scrollConfig)||{};ECk(G);_.TG(t)})};
var hvN=function(u){u=_.y(u);for(var K=u.next();!K.done;K=u.next())zWA(K.value,{continuationItems:[]})},ECk=function(u){if(u.scrollToItem){var K=u.scrollToItem.item||{},l=K.itemTargetId;
K=K.sectionTargetId;if(l&&K){var D=document.querySelector("[data-target-id="+K+"]"),d=D==null?void 0:D.querySelector("[data-target-id="+l+"]");D&&d&&setTimeout(function(){var C=d.offsetTop-D.offsetTop,W;if(((W=u.scrollToItem)==null?void 0:W.scrollPosition)==="SCROLL_POSITION_CENTER")C-=D.offsetHeight/2,C+=d.offsetHeight/2;else{var M;((M=u.scrollToItem)==null?void 0:M.scrollPosition)==="SCROLL_POSITION_END"&&(C-=D.offsetHeight,C+=d.offsetHeight)}D.scroll({top:C,behavior:"smooth"})},100)}}};var FJ=new _.G$("CLIENT_NAME_TOKEN");var LsH=new _.G$("DEFAULT_STORE_EXPIRATION_TOKEN");var n8y=new _.G$("CLIENT_LOCATION_SERVICE_TOKEN");var V0=function(u,K,l){this.clientName=u||_.E3("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=K||_.YO.getInstance();this.JSC$17142_commandHandler=l||_.Pb.instance};
_.c(V0,lq);V0.prototype.resolveCommand=function(u){var K=this,l,D;return _.H(function(d){D=(l=_.b(u,k$w))==null?void 0:l.onComplete;K.clientLocationService.clearLocationPlayabilityToken(K.clientName);D&&K.JSC$17142_commandHandler.resolveCommand(D);_.TG(d)})};
V0[vP]=[FJ,n8y,_.t9];var gJ=function(u){this.innertubeTransportService=u};
_.c(gJ,lq);gJ.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W;return _.H(function(M){C=(D=K)==null?void 0:(d=D.form)==null?void 0:d.element;return M.yield(_.HJ(l.innertubeTransportService,u,(W=K)==null?void 0:W.form).then(function(q){Rtq(C,new CustomEvent("yt-service-request-completed"),{data:q},_.E3("openPopupConfig"))}),0)})};
gJ[vP]=[_.md];var N5=function(){};
_.c(N5,lq);N5.prototype.resolveCommand=function(u){var K,l;return _.H(function(D){K=_.b(u,Iwk);l=document.querySelector("mini-app-container-view-model");if(!K||!l)return D.return();K.isPlaying?l.dispatchEvent(new Event("play")):l.dispatchEvent(new Event("pause"));_.TG(D)})};var kk=function(){};
_.c(kk,lq);kk.prototype.resolveCommand=function(u){var K,l,D,d,C,W,M;return _.H(function(q){K=_.b(u,oKS);if((l=K)==null||!l.paramKeys)return q.return();D=K.paramKeys;d=_.lr(window.location.href);C=_.y(D);for(W=C.next();!W.done;W=C.next())M=W.value,d.JSC$9960_queryData_.remove(M);window.history.replaceState(window.history.state,document.title,d.toString());_.TG(q)})};var uq_=function(){this.dropdownMap=new Map};_.Kbo=new _.G$("DROPDOWN_CONTROLLER_TOKEN");var Zn=function(u){this.controller=u};
_.c(Zn,lq);Zn.prototype.resolveCommand=function(u){var K=this,l,D,d,C;return _.H(function(W){l=_.b(u,gxs);if(!l)return W.return();D=l;d=D.dropdownId;C=D.selectedOptionIndex;if(d===void 0||C===void 0)return W.return();var M=K.controller.dropdownMap.get(d);M&&M(C);_.TG(W)})};
Zn[vP]=[_.Kbo];var Yk=function(u){this.controller=u};
_.c(Yk,lq);Yk.prototype.resolveCommand=function(u){var K=this,l;return _.H(function(D){return(l=_.b(u,DLw))?D.yield(K.controller.closeDialog(),0):D.return()})};
Yk[vP]=[_.kR];var At=function(u){this.controller=u};
_.c(At,lq);At.prototype.resolveCommand=function(u){var K=this,l,D;return _.H(function(d){l=_.b(u,TVH);if(!l)return d.return();var C,W=l.panelIdentifier||((C=l.identifier)==null?void 0:C.tag);if(!W)throw Error("zi");return(D=W)?d.yield(K.controller.hidePanel(D),0):d.jumpTo(0)})};
At[vP]=[_.gP];var XJ=function(u,K){this.innertubeTransportService=u;this.controller=K};
_.c(XJ,lq);XJ.prototype.resolveCommand=function(u){var K=this,l,D,d,C;return _.H(function(W){if(W.nextAddress==1)return l=_.b(u,wS2),(D=l)!=null&&D.panelId?W.yield(K.controller.getReloadContinuation(l.panelId),2):W.return();if(W.nextAddress!=3)return(d=W.yieldResult)?W.yield(_.HJ(K.innertubeTransportService,u,{continuation:d}),3):W.return();C=W.yieldResult;return W.yield(K.controller.updatePanel(l.panelId,C.content,!1),0)})};
XJ[vP]=[_.md,_.gP];var mc=function(u,K,l){this.innertubeTransportService=u;this.JSC$17178_screenManager=K;this.JSC$17178_commandHandler=l};
_.c(mc,lq);
mc.prototype.resolveCommand=function(u){var K=this,l,D,d,C,W,M;return _.H(function(q){if(q.nextAddress==1){l=_.b(u,_.UD0);if(!l)return q.return();if(l.commands)for(D=_.y(l.commands),d=D.next();!d.done;d=D.next())C=d.value,K.JSC$17178_commandHandler.resolveCommand(C,{disableClickTracking:!0});W=_.gf(u.clickTrackingParams);_.ev(K.JSC$17178_screenManager,21760,W,{layer:7,parentLayer:0});return q.yield(_.HJ(K.innertubeTransportService,u),2)}M=q.yieldResult;if(!M)return q.return();K.JSC$17178_screenManager.graftServerVe(M.trackingParams,W,
7);_.TG(q)})};
mc[vP]=[_.md,_.Zl,_.t9];var ht=new _.G$("PANEL_LOADING_STRATEGY_TOKEN");var ED=function(u,K){this.controller=u;this.panelLoadingStrategy=K};
_.c(ED,lq);
ED.prototype.resolveCommand=function(u,K){var l=this,D,d,C;return _.H(function(W){D=_.b(u,O7A);if((d=D)==null||!d.panelLoadingStrategy)return W.return();C=function(M){var q,v,G,t,x,O,a,f,B;return _.H(function(p){v=_.b((q=M.dialogViewModel)==null?void 0:q.header,Nwm);G={viewModel:M.dialogViewModel};t={};if(a=_.S("web_enable_dialog_header_label")?(x=v)==null?void 0:(O=x.headline)==null?void 0:O.content:void 0)t.ariaLabel=a;D.dismissOnBackgroundTap===!1&&(t.isModal=!0);return M.dialogViewModel?p.yield(l.controller.openDialog(G,
(f=K)==null?void 0:(B=f.form)==null?void 0:B.element,t),0):p.return()})};
return W.yield(l.panelLoadingStrategy.execute({command:u,data:D.panelLoadingStrategy,renderFn:C,createScreenConfig:{layer:4}}),0)})};
ED[vP]=[_.kR,ht];var LL=function(u,K,l){this.innertubeTransportService=u;this.controller=K;this.JSC$17198_screenManager=l};
_.c(LL,lq);
LL.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M,q,v,G,t,x,O,a;return _.H(function(f){switch(f.nextAddress){case 1:D=_.b(u,_.An);if(!D)return f.return();var B,p=D.panelIdentifier||((B=D.identifier)==null?void 0:B.tag);if(!p)throw Error("zi");d=p;return f.yield(l.controller.isVisible(d,!0),2);case 2:if((C=f.yieldResult)&&D.blockIfPanelOpen)return f.return();q=(M=(W=l.controller).getPanelContent)==null?void 0:M.call(W,d);if(!(B=q))if(D){var V;B=((V=D.globalConfiguration)==null?void 0:
V.initialState)||D.engagementPanel;if(V=!B)V=!!(D==null?0:(p=D.engagementPanelPresentationConfigs)==null?0:p.engagementPanelPopupPresentationConfig);V&&(B=_.eTq(D.panelIdentifier,D.identifier))}else B=void 0;v=B;G=D.engagementPanelPresentationConfigs;t=D.engagementPanelExtras;return f.yield(l.controller.showPanel(d,v,G,t,(x=K)==null?void 0:(O=x.form)==null?void 0:O.element),3);case 3:if(!D.globalConfiguration){f.jumpTo(0);break}_.ev(l.JSC$17198_screenManager,32633);return f.yield(_.HJ(l.innertubeTransportService,
u),5);case 5:return a=f.yieldResult,l.JSC$17198_screenManager.graftServerVe(a.trackingParams),f.yield(l.controller.updatePanel(d,a.content,!0,t,void 0,a.updatePanelContinuationData),0)}})};
LL[vP]=[_.md,_.gP,_.Zl];var uR=function(u,K){this.controller=u;this.panelLoadingStrategy=K};
_.c(uR,lq);uR.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M,q;return _.H(function(v){D=_.b(u,_.wE);if((d=D)==null||!d.panelLoadingStrategy)return v.return();M=lHI(l.controller,(C=K)==null?void 0:(W=C.form)==null?void 0:W.element);q=function(G){return _.H(function(t){return G.sheetViewModel?t.yield(l.controller.openSheet({viewModel:G.sheetViewModel},M),0):t.return()})};
return v.yield(l.panelLoadingStrategy.execute({command:u,data:D.panelLoadingStrategy,renderFn:q,createScreenConfig:{layer:0}}),0)})};
uR[vP]=[_.NR,ht];var K$=function(u,K){this.controller=u;this.JSC$17206_commandHandler=K};
_.c(K$,lq);K$.prototype.resolveCommand=function(u,K){var l=this,D,d,C;return _.H(function(W){if(W.nextAddress==1){D=_.b(u,NVA);var M=_.b(D.showCommand,_.An),q,v,G=(v=M==null?void 0:M.panelIdentifier)!=null?v:M==null?void 0:(q=M.identifier)==null?void 0:q.tag;if(!G)throw Error("Ai");d=G;return W.yield(l.controller.isVisible(d),2)}return(C=W.yieldResult)?W.yield(l.controller.hidePanel(d),0):W.yield(l.JSC$17206_commandHandler.resolveCommand(D.showCommand,K),0)})};
K$[vP]=[_.gP,_.t9];var lR=function(u,K,l){this.innertubeTransportService=u;this.controller=K;this.JSC$17209_screenManager=l};
_.c(lR,lq);
lR.prototype.resolveCommand=function(u){var K=this,l,D,d,C,W,M,q,v,G,t,x,O,a,f,B,p,V,m,Z,A,h,C9;return _.H(function(Wo){switch(Wo.nextAddress){case 1:return D=l=_.b(u,k7N),d=D.targetPanelIdentifier,C=D.contentSourcePanelIdentifier,W=D.globalConfiguration,((M=d)==null?0:M.tag)&&((q=C)==null?0:q.tag)?W?Wo.yield(K.controller.showPanel(d.tag,_.eTq(d.tag,d),void 0,void 0,void 0),5):Wo.yield((x=(t=K.controller).getPanel)==null?void 0:x.call(t,C.tag),4):Wo.return();case 4:O=Wo.yieldResult;v=(a=O)==null?
void 0:(B=(f=a).getPanelContent)==null?void 0:B.call(f);Wo.jumpTo(3);break;case 5:return Wo.yield(_.HJ(K.innertubeTransportService,u),6);case 6:p=Wo.yieldResult,((V=p)==null?0:V.trackingParams)&&K.JSC$17209_screenManager.graftServerVe(p.trackingParams),v=(m=p)==null?void 0:m.content,G=(Z=p)==null?void 0:Z.updatePanelContinuationData;case 3:if(h=(A=v)==null?void 0:A.engagementPanelSectionListRenderer)return Wo.yield(K.controller.showPanel(d.tag,void 0,void 0,void 0,void 0,{content:h.content,secondaryHeaderContent:(C9=
h.header)!=null?C9:{},targetId:h.targetId},G),0);Wo.jumpTo(0)}})};
lR[vP]=[_.md,_.gP,_.Zl];var Df=function(u){this.JSC$17216_commandHandler=u};
_.c(Df,lq);
Df.prototype.resolveCommand=function(u){var K=this,l,D,d,C,W,M;return _.H(function(q){if(q.nextAddress==1)return(l=_.b(u,KeC))?q.yield(_.UK(),2):q.return();D=q.yieldResult;if(!D)return q.return();var v=D,G=(d=l)==null?void 0:d.languageCode,t=(C=l)==null?void 0:C.isAutoTranslated;v.getVideoData&&_.Uvy(v).length&&((G=Qkh(v,G,t))?v.setOption("captions","track",G):(v.setOption("captions","stickyLoading",{}),v.setOption("captions","track",{})));W=D.isSubtitlesOn()?_.QQ("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.QQ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");M=_.re(W);K.JSC$17216_commandHandler.resolveCommand(M);_.TG(q)})};
Df[vP]=[_.t9];var d4=function(u,K){this.shortsPlayerPromise=u;this.JSC$17220_commandHandler=K};
_.c(d4,lq);
d4.prototype.resolveCommand=function(u){var K=this,l,D,d,C,W,M,q,v;return _.H(function(G){if(G.nextAddress==1)return(l=_.b(u,vXm))?G.yield(K.shortsPlayerPromise,2):G.return();D=G.yieldResult;var t=Pmr(D);t!=null&&t.length||(D.loadModule("captions"),t=Pmr(D));d=t;if((C=d)==null||!C.length)return W=_.QQ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),M=_.re(W),K.JSC$17220_commandHandler.resolveCommand(M),G.return();D.toggleSubtitles();q=D.isSubtitlesOn()?_.QQ("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.QQ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");v=_.re(q);K.JSC$17220_commandHandler.resolveCommand(v);_.TG(G)})};
d4[vP]=[_.DgC,_.t9];var C$=function(u){this.JSC$17223_playerPromise=u};
_.c(C$,lq);C$.prototype.resolveCommand=function(u){var K=this,l,D,d,C;return _.H(function(W){if(W.nextAddress==1)return(l=_.b(u,VYk))?W.yield(K.JSC$17223_playerPromise,2):W.return();D=W.yieldResult;d=D.getVideoData().video_id;l.videoId===d&&(C=Number(l.offsetFromVideoStartMilliseconds),C>=0&&D.seekTo(C/1E3));_.TG(W)})};
C$[vP]=[_.aw];var Dwk=_.zI("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),Iz=function(u){this.store=u};
_.c(Iz,lq);
var dw_=function(u){var K,l,D,d;return _.H(function(C){if(C.nextAddress==1)return K=_.E3("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,l=_.E3("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,D=K||l,u.mainAppPlayer=new MR(D),C.yield(u.mainAppPlayer.api,2);d=C.yieldResult;d.addEventListener("onStateChange",u.JSC$17227_playerStateChangeListener.bind(u));document.addEventListener("yt-page-data-updated",u.pauseOnNavigation.bind(u));window.addEventListener("state-navigatestart",
u.pauseOnNavigation.bind(u));_.TG(C)})};
Iz.prototype.JSC$17227_playerStateChangeListener=function(u){switch(u){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"}CLp(this)};
var CLp=function(u){u.store.dispatch(_.TT("sfvAudioItemCurrentlyPlayingEntity",Dwk,{key:Dwk,externalVideoId:u.externalVideoId,sfvAudioItemPlaybackState:u.playbackState,nowPlayingEntityValue:u.nowPlayingEntityValue}))};
Iz.prototype.pauseOnNavigation=function(){var u=this,K,l,D,d;return _.H(function(C){if(C.nextAddress==1){if(!u.mainAppPlayer){var W=new _.wv("Error: mainAppPlayer is unavailable",u.mainAppPlayer);_.Xm(W);return C.return()}return C.yield(u.mainAppPlayer.api,2)}K=C.yieldResult;D=(l=K)==null?void 0:l.getPlayerState();D!==1||(d=K)!=null&&d.pauseVideo();_.TG(C)})};
Iz.prototype.playVideo=function(u,K,l){var D=this,d,C;return _.H(function(W){if(W.nextAddress==1)return W.yield((d=D.mainAppPlayer)==null?void 0:d.api,2);C=W.yieldResult;if(!D.mainAppPlayer||!C){var M=new _.wv("Error: mainAppPlayer is unavailable",D.mainAppPlayer);_.Xm(M);return W.return()}return W.yield(D.mainAppPlayer.loadVideoWithPlayerVars({videoId:D.externalVideoId,audio_only:"1",start:u/1E3,end:u/1E3+K,player_params:l}),0)})};
Iz.prototype.pauseVideo=function(){var u=this,K,l;return _.H(function(D){if(D.nextAddress==1){if(!u.mainAppPlayer){var d=new _.wv("Error: mainAppPlayer is unavailable",u.mainAppPlayer);_.Xm(d);return D.return()}return D.yield(u.mainAppPlayer.api,2)}K=D.yieldResult;(l=K)==null||l.pauseVideo();_.TG(D)})};
Iz.prototype.resolveCommand=function(u){var K=this,l,D,d,C,W,M,q,v,G,t,x,O,a,f,B,p,V,m,Z;return _.H(function(A){if(A.nextAddress==1)return l=_.b(u,qUk),d=(D=l)==null?void 0:D.nowPlayingEntityValue,W=(C=l)==null?void 0:C.externalVideoId,t=Number((G=(M=l)==null?void 0:(q=M.defaultStartPoints)==null?void 0:(v=q[0])==null?void 0:v.offsetMs)!=null?G:"0"),p=Number((B=(x=l)==null?void 0:(O=x.defaultStartPoints)==null?void 0:(a=O[0])==null?void 0:(f=a.duration)==null?void 0:f.seconds)!=null?B:"15"),Z=(m=
(V=l)==null?void 0:V.playerParams)!=null?m:"",d&&W?K.mainAppPlayer?A.jumpTo(2):A.yield(dw_(K),2):A.return();if(A.nextAddress!=6){if(K.nowPlayingEntityValue&&d===K.nowPlayingEntityValue)return K.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?A.yield(K.pauseVideo(),0):A.yield(K.playVideo(t,p,Z),0);K.externalVideoId=W;K.nowPlayingEntityValue=d;K.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return A.yield(K.playVideo(t,p,Z),6)}CLp(K);return A.jumpTo(0)})};
Iz[vP]=[cU];var yv=function(u){this.JSC$17247_commandHandler=u};
_.c(yv,lq);yv.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M;return _.H(function(q){if(q.nextAddress==1)return(D=_.b(u,lFm))?q.yield(_.UK(),2):q.return();d=q.yieldResult;if(!d)return q.return();(C=iCq(d))?l.JSC$17247_commandHandler.resolveCommand(C,K):(W=_.QQ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),M=_.re(W),l.JSC$17247_commandHandler.resolveCommand(M));_.TG(q)})};
yv[vP]=[_.t9];var sH=function(u){this.JSC$17250_playerPromise=u};
_.c(sH,lq);sH.prototype.resolveCommand=function(u){var K=this,l,D,d,C,W;return _.H(function(M){if(M.nextAddress==1){l=_.b(u,g1A);if(!l)return M.return();D=l.overlayRenderer;return D?(d=_.b(D,d6N))?M.yield(K.JSC$17250_playerPromise,3):M.jumpTo(0):M.return()}C=M.yieldResult;C.renderChapterSeekingAnimation(1,_.WI(d.text),(W=d.icon)==null?void 0:W.iconType);_.TG(M)})};
sH[vP]=[_.aw];var oz=function(u){this.store=u};
_.c(oz,lq);
oz.prototype.resolveCommand=function(u){var K=this,l,D,d;return _.H(function(C){if(C.nextAddress==1){l=_.b(u,lC2);if(!l)return C.return();D="";(d=K.store.getState().collabInviteLink)&&l.id===d.playlistId?D=d.inviteLinkURL:l.shortUrl&&(D=l.shortUrl);return D?C.yield(navigator.clipboard.writeText(D),3):C.jumpTo(0)}var W={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.QQ("COPY_LINK_SUCCESS_TOAST")}}}}};_.GB().resolve(_.t9).resolveCommand(W);_.TG(C)})};
oz[vP]=[Q0];var Wh=function(u,K){this.innertubeTransportService=u;this.JSC$17260_commandHandler=K};
_.c(Wh,lq);Wh.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M,q,v,G,t,x;return _.H(function(O){if(O.nextAddress==1)return(D=_.b(u,_.Ct))?O.yield(_.HJ(l.innertubeTransportService,u,(d=K)==null?void 0:d.form),2):O.return();(C=O.yieldResult)&&C.errorMetadata&&(W=C,M=_.re(W.error.message),l.JSC$17260_commandHandler.resolveCommand(M));q=C;if((v=q)==null?0:v.actions)for(G=_.y(q.actions),t=G.next();!t.done;t=G.next())x=t.value,l.JSC$17260_commandHandler.resolveCommand(x);_.TG(O)})};
Wh[vP]=[_.md,_.t9];var Hh=function(){};
_.c(Hh,lq);Hh.prototype.resolveCommand=function(u){var K;return _.H(function(l){K=_.b(u,YuH);if(!K)return l.return();(new d$a(K)).show();_.TG(l)})};_.Mj=new _.G$("PLAYLIST_EDIT_CONTROLLER_TOKEN");var qj=function(u,K,l,D){this.store=u;this.innertubeTransportService=K;this.controller=l;this.JSC$17268_commandHandler=D};
_.c(qj,lq);
qj.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M,q,v,G,t,x,O,a,f,B,p,V,m,Z,A,h,C9,Wo,$y,co,UZ,tH;return _.H(function(gq){if(gq.nextAddress==1){D=_.b(u,_.LP);if(!D)return gq.return();if(D.clientActions){d=_.y(D.clientActions);for(C=d.next();!C.done;C=d.next())W=C.value,l.JSC$17268_commandHandler.resolveCommand(W);var Bo,uk=K==null?void 0:(Bo=K.form)==null?void 0:Bo.element;uk&&_.xs(uk,"yt-dismissible-item-action",D.clientActions)}return gq.yield(_.HJ(l.innertubeTransportService,u,(M=
K)==null?void 0:M.form),2)}if(q=gq.yieldResult)q.errorMetadata?(v=q,G=_.re(v.error.message),l.JSC$17268_commandHandler.resolveCommand(G),"error"in q&&((t=K)==null?0:(x=t.commandController)==null?0:x.onServerError)&&((O=K)==null||(a=O.commandController)==null||a.onServerError(u,q))):(f=K)==null||(B=f.commandController)==null||(V=(p=B).onSuccess)==null||V.call(p,u,q);m=q;((Z=m)==null?0:Z.collaborationInviteLink)&&D.playlistId&&(_.S("web_enable_invite_collaborators_link")||_.S("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
l.store.dispatch(_.SZ({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:D.playlistId,inviteLinkUrl:m.collaborationInviteLink}}));((A=m)==null?0:A.redirectEndpoint)&&l.JSC$17268_commandHandler.resolveCommand(m.redirectEndpoint);((h=m)==null?0:(C9=h.newHeader)==null?0:C9.playlistHeaderRenderer)?IHE(l.controller,m.newHeader.playlistHeaderRenderer):((Wo=m)==null?0:($y=Wo.newHeader)==null?0:$y.musicEditablePlaylistDetailHeaderRenderer)&&IHE(l.controller,m.newHeader.musicEditablePlaylistDetailHeaderRenderer);
l.controller.playlistVideoListElement&&((co=m)==null?0:(UZ=co.playlistEditResults)==null?0:(tH=UZ[0])==null?0:tH.playlistEditVideoAddedResultData)&&((uk=l.controller.playlistVideoListElement)==null||uk.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:m.playlistEditResults[0].playlistEditVideoAddedResultData})));_.TG(gq)})};
qj[vP]=[Q0,_.md,_.Mj,_.t9];var $b=function(u,K){this.controller=u;this.JSC$17278_commandHandler=K};
_.c($b,lq);$b.prototype.resolveCommand=function(u,K){var l=this,D,d,C;return _.H(function(W){D=_.b(u,Dik);l.controller.showRefreshPill&&((d=D)==null?0:d.command)&&(l.JSC$17278_commandHandler.resolveCommand((C=D)==null?void 0:C.command,K),l.controller.showRefreshPill=!1);_.TG(W)})};
$b[vP]=[_.ba,_.t9];var n$=function(u,K){this.store=u;this.JSC$17282_commandHandler=K||_.Pb.instance};
_.c(n$,lq);n$.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M,q,v,G,t,x;return _.H(function(O){D=_.b(u,r5k);d=l.store.getState().radioButtonGroup;if((C=D)==null?0:C.command)l.JSC$17282_commandHandler.resolveCommand((W=D)==null?void 0:W.command,K);else if(d&&((M=D)==null?void 0:M.formId)===d.currentFormId)for(q=Object.values(d.commandsMap),v=_.y(q),G=v.next();!G.done;G=v.next())t=G.value,(x=_.lt(t))&&l.JSC$17282_commandHandler.resolveCommand(x,K);_.TG(O)})};
n$[vP]=[_.lf];var r4=new _.G$("USER_PREFS");var vh=function(u){this.JSC$17287_prefCookie=u};
_.c(vh,lq);vh.prototype.resolveCommand=function(u){var K=this,l;return _.H(function(D){(l=_.b(u,Txs))&&typeof l.useListView==="boolean"&&(_.B0(0,155,l.useListView),K.JSC$17287_prefCookie.save());_.TG(D)})};
vh[vP]=[r4];var Gm=function(u){this.JSC$17291_prefCookie=u};
_.c(Gm,lq);Gm.prototype.resolveCommand=function(u){var K=this,l,D,d,C,W;return _.H(function(M){l=_.b(u,XWm);if((D=l)==null||!D.gl)return M.return();d=l.gl;C={persist_gl:"1",gl:d};K.JSC$17291_prefCookie.set("gl",d);K.JSC$17291_prefCookie.save();W=F_2(C);_.Cg(W);_.TG(M)})};
Gm[vP]=[r4];var tj=function(u){this.JSC$17295_prefCookie=u};
_.c(tj,lq);tj.prototype.resolveCommand=function(u){var K=this,l,D;return _.H(function(d){l=_.b(u,CAw);if(!l)return d.return();D=!1;l.flagNum&&typeof l.value==="boolean"?(_.B0(0,l.flagNum,l.value),D=!0):l.key&&typeof l.stringValue==="string"&&(K.JSC$17295_prefCookie.set(l.key,l.stringValue),D=!0);D&&K.JSC$17295_prefCookie.save();_.TG(d)})};
tj[vP]=[r4];var xb=new _.G$("PREF_STORAGE_PROMISE_TOKEN");var SC=function(u){this.JSC$17299_prefStoragePromise=u};
_.c(SC,lq);SC.prototype.resolveCommand=function(u){var K=this,l,D;return _.H(function(d){if(d.nextAddress==1)return(l=_.b(u,y5s))?d.yield(K.JSC$17299_prefStoragePromise,2):d.return();D=d.yieldResult;return D===void 0||l.key===void 0||l.value===void 0?d.return():d.yield(D.set(l.key,l.value),0)})};
SC[vP]=[xb];var yHH=function(u){this.innertubeTransportService=u};
_.c(yHH,lq);yHH.prototype.resolveCommand=function(u,K){var l=this,D,d;return _.H(function(C){(D=_.b(u,_.pdB))&&D&&D.isFirstRequest&&(_.Ys("search_overview_answer"),_.As("so_rq",void 0,"search_overview_answer"));return C.yield(_.HJ(l.innertubeTransportService,u,(d=K)==null?void 0:d.form),0)})};
yHH[vP]=[_.md];var sRk=function(){};
_.c(sRk,lq);
sRk.prototype.resolveCommand=function(u){var K,l,D,d,C,W,M,q,v;return _.H(function(G){K=_.b(u,Fek);if((l=K)==null?0:l.sectionIdentifier){if(K.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(d=(D=document.getElementsByTagName(K.sectionIdentifier))==null?void 0:D.item(0))d.scrollIntoView({behavior:"smooth"}),(C=Spn(d))&&C.focus({preventScroll:!0});return G.return()}W=document.querySelector("[section-identifier="+K.sectionIdentifier+"]");M=document.querySelector("[section-identifier="+K.referenceSectionIdentifier+
"]");if(!W)return G.return();q=K.verticalScrollOffsetDp?K.verticalScrollOffsetDp:0;M&&(q-=M.offsetTop);window.scrollTo({top:W.offsetTop+q,behavior:"smooth"});(v=Spn(W))&&v.focus({preventScroll:!0})}_.TG(G)})};var bR=function(u){this.JSC$17311_commandHandler=u};
_.c(bR,lq);
bR.prototype.resolveCommand=function(u){var K=this,l,D,d,C,W,M,q;return _.H(function(v){if(v.nextAddress==1){l=_.b(u,CFa);if(!l||!l.imageBytes||!navigator.clipboard)return v.return();if(l.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.Xm(Error("Ci")),v.return();_.Qg(v,2);d=(D=l)==null?void 0:D.imageBytes;C=d.replace(/-/g,"+").replace(/_/g,"/");W=xvr(C);M={};q=[new ClipboardItem((M[W.type]=W,M))];return v.yield(navigator.clipboard.write(q),4)}if(v.nextAddress!=2)return l.successCommand&&
K.JSC$17311_commandHandler.resolveCommand(l.successCommand),_.I$(v,0);_.iY(v);l.errorCommand&&K.JSC$17311_commandHandler.resolveCommand(l.errorCommand);_.TG(v)})};
bR[vP]=[_.t9];var OH=function(u,K){this.innertubeTransportService=u;this.JSC$17315_commandHandler=K};
_.c(OH,lq);OH.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M;return _.H(function(q){if(q.nextAddress==1)return(D=_.b(u,IGB))?q.yield(_.HJ(l.innertubeTransportService,u,(d=K)==null?void 0:d.form),2):q.return();(C=q.yieldResult)&&C.errorMetadata&&D.onFailureCommand&&l.JSC$17315_commandHandler.resolveCommand(D.onFailureCommand);W=C;((M=W)==null?0:M.shareCommand)&&l.JSC$17315_commandHandler.resolveCommand(W.shareCommand,K);_.TG(q)})};
OH[vP]=[_.md,_.t9];var ch=function(){};
_.c(ch,lq);ch.prototype.resolveCommand=function(u){var K,l;return _.H(function(D){K=_.b(u,KmA);if(!K||!navigator.share)return D.return();l={url:K.url};try{return D.return(navigator.share(l))}catch(d){}_.TG(D)})};var az=function(){};
_.c(az,lq);az.prototype.resolveCommand=function(){return _.H(function(u){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.TG(u)})};var zm=function(u){this.JSC$17325_navigationConfirmationService=u};
_.c(zm,lq);zm.prototype.resolveCommand=function(){var u=this;return _.H(function(K){u.JSC$17325_navigationConfirmationService.cancelPendingNavigation();_.TG(K)})};
zm[vP]=[j0];var eC=function(u){this.JSC$17328_screenManager=u};
_.c(eC,lq);eC.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M,q,v;return _.H(function(G){d=(D=K.form)==null?void 0:D.event;W=(C=K.form)==null?void 0:C.element;if(!d)throw new _.wv("Event not passed in when resolving command");M=_.y(d.composedPath());for(q=M.next();!q.done;q=M.next())if(v=q.value,v.tagName==="YT-COPY-LINK-RENDERER")return v.copyUrlToClipboard(),W&&_.sK(l.JSC$17328_screenManager,W),G.return();_.TG(G)})};
eC[vP]=[_.Zl];var Rz=function(){this.JSC$17332_miniAppClientDataProvider=_.GB().resolve(_.lx)};
_.c(Rz,lq);Rz.prototype.resolveCommand=function(){var u=this,K,l;return _.H(function(D){if(u.JSC$17332_miniAppClientDataProvider.clientData.has("video_id")){var d=u.JSC$17332_miniAppClientDataProvider,C=d.clientData.get("video_id");C&&d.clientData.delete("video_id");K="https://youtube.com/watch?v="+C;l=mJ(K);if(l===void 0)throw Error("Di`"+K);_.s2(window,l)}_.TG(D)})};var UH=function(){};
_.c(UH,lq);UH.prototype.resolveCommand=function(){return _.H(function(u){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.TG(u)})};var f$=function(){};
_.c(f$,lq);f$.prototype.resolveCommand=function(){var u;return _.H(function(K){if(K.nextAddress==1)return K.yield(_.YcH(window.document.documentElement),2);(u=document.querySelector("mini-app-container-view-model iframe"))&&u.focus();_.TG(K)})};var Qv=function(u){this.JSC$17339_navigationConfirmationService=u};
_.c(Qv,lq);
Qv.prototype.resolveCommand=function(){var u=this;return _.H(function(K){var l=u.JSC$17339_navigationConfirmationService,D=_.GB().resolve(_.V1),d;if(((d=l.navigateParams)==null?void 0:d.data)!==void 0){var C;_.s_0(D,l.navigateParams.endpoint,l.navigateParams.data,(C=l.navigateParams.navigationType)!=null?C:1,l.navigateParams.tempData,l.navigateParams.isMiniplayer,void 0,!0);l.navigateParams=void 0;l.customConfirmationCommand=void 0}else l.navigateParams&&(D.navigate(l.navigateParams.endpoint,l.navigateParams.reload,
l.navigateParams.params,l.navigateParams.tempData,l.navigateParams.requestType,l.navigateParams.createScreenConfig,!0),l.navigateParams=void 0,l.customConfirmationCommand=void 0);_.TG(K)})};
Qv[vP]=[j0];var Ph=function(){};
_.c(Ph,lq);Ph.prototype.resolveCommand=function(){return _.H(function(u){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.TG(u)})};var Jj=function(u){this.JSC$17344_prefStorage=u};
_.c(Jj,lq);Jj.prototype.resolveCommand=function(){var u=this,K,l;return _.H(function(D){switch(D.nextAddress){case 1:return D.yield(u.JSC$17344_prefStorage,2);case 2:return(K=D.yieldResult)?D.yield(K.set("sfvle",!1),3):D.return();case 3:return D.yield(K.set("sfvles",!0),4);case 4:l=_.jy(),_.B0(0,203,!1),_.B0(0,204,!0),l.save(),_.TG(D)}})};
Jj[vP]=[xb];var jC=function(u){this.JSC$17347_prefStorage=u};
_.c(jC,lq);jC.prototype.resolveCommand=function(){var u=this,K,l;return _.H(function(D){switch(D.nextAddress){case 1:return D.yield(u.JSC$17347_prefStorage,2);case 2:return(K=D.yieldResult)?D.yield(K.set("sfvle",!0),3):D.return();case 3:return D.yield(K.set("sfvles",!0),4);case 4:l=_.jy(),_.B0(0,203,!0),_.B0(0,204,!0),l.save(),_.TG(D)}})};
jC[vP]=[xb];_.oyI=new _.G$("SNACKBAR_CONTROLLER_TOKEN");_.Wbi=new _.G$("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Bh=function(u){this.controller=u};
_.c(Bh,lq);Bh.prototype.resolveCommand=function(u){var K=this,l;return _.H(function(D){l=_.b(u,b7S);if(!l)return D.return();var d=K.controller;d.closeSnackbarFn&&d.closeSnackbarFn();_.TG(D)})};
Bh[vP]=[_.oyI];var p$=function(u,K){this.controller=u;this.sheetController=K};
_.c(p$,lq);p$.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M,q;return _.H(function(v){D=_.b(u,cT0);if(!D)return v.return();W=lHI(l.sheetController,(d=K)==null?void 0:(C=d.form)==null?void 0:C.element);M=_.b(D.content,TwS);if(!M)return v.return();var G=l.controller,t=M,x=(q=D.animationStyle)!=null?q:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(G.showSnackbarFn)G.showSnackbarFn({snackbarViewModel:t,animationStyle:x,durationMs:D.durationSeconds*1E3,target:W});else throw Error("mj");_.TG(v)})};
p$[vP]=[_.oyI,_.NR];var iR=function(){};
_.c(iR,lq);iR.prototype.resolveCommand=function(u){var K;return _.H(function(l){K=_.b(u,ICH);if(!K||typeof K.key!=="string"||typeof K.value!=="string")return l.return();window.localStorage.setItem(K.key,K.value);_.TG(l)})};var Tm=function(u){this.store=u};
_.c(Tm,lq);Tm.prototype.resolveCommand=function(u){var K=this,l;return _.H(function(D){l=_.b(u,Kun);if(!l||!l.stepId||!l.token)return D.return();K.store.dispatch(CsC({stepId:l.stepId,token:l.token,isSelected:!1}));_.TG(D)})};
Tm[vP]=[Q0];var w4=function(u,K,l){this.innertubeTransportService=u;this.store=K;this.JSC$17366_screenManager=l};
_.c(w4,lq);
w4.prototype.resolveCommand=function(u){var K=this,l,D,d,C,W,M,q,v,G,t,x,O,a,f,B,p,V,m,Z,A,h,C9,Wo;return _.H(function($y){l=_.b(u,u4w);if(!l||(D=l.stepIds)==null||!D.length)return $y.return();d=K.store.getState().talkToRecs;C=[];W=[];M=_.y(l.stepIds);for(q=M.next();!q.done;q=M.next())for(v=q.value,G=void 0,(t=(G=d.stepStates[v])==null?void 0:G.userQuery)&&W.push({userQuery:t.userQuery,userQueryToken:t.token}),x=void 0,O=(x=d.stepStates[v])==null?void 0:x.selectionStates,a=_.y(Object.entries(O)),f=
a.next();!f.done;f=a.next())B=f.value,p=_.y(B),V=p.next().value,m=p.next().value,Z=V,A=m,A.isSelected&&C.push(Z);h={selectedChipTokens:C,userQueries:W,submittedStepIds:l.stepIds};C9={browseTalk2recsFormData:h};l.browseEndpoint?(Wo=u,_.hl(Wo,_.jt,l.browseEndpoint)):l.command&&(Wo=l.command);return Wo?$y.yield(_.HJ(K.innertubeTransportService,Wo,{formData:C9,disableCache:!0}).then(function(co){(co==null?0:co.trackingParams)&&K.JSC$17366_screenManager.graftServerVe(co==null?void 0:co.trackingParams)}),
0):$y.return()})};
w4[vP]=[_.md,Q0,_.Zl];var Fj=function(u){this.store=u};
_.c(Fj,lq);Fj.prototype.resolveCommand=function(u){var K=this,l;return _.H(function(D){l=_.b(u,ukq);if(!l||!l.stepId||!l.token)return D.return();K.store.dispatch(CsC({stepId:l.stepId,token:l.token,isSelected:!0}));_.TG(D)})};
Fj[vP]=[Q0];var Vv=function(u){this.store=u};
_.c(Vv,lq);Vv.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M;return _.H(function(q){D=_.b(u,Kim);if(!D||!D.stepId||!D.userQueryToken)return q.return();M=(W=(d=K)==null?void 0:(C=d.form)==null?void 0:C.userQuery)!=null?W:"";l.store.dispatch(_.SZ({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:D.stepId,userQueryToken:D.userQueryToken,userQuery:M}}));_.TG(q)})};
Vv[vP]=[Q0];_.H92=new _.G$("TIMELY_ACTIONS_CONTROLLER_TOKEN");var g4=function(u){this.controller=u};
_.c(g4,lq);g4.prototype.resolveCommand=function(u){var K=this,l,D,d,C;return _.H(function(W){l=_.b(u,iWa);if(!l)return W.return();D=l;d=D.id;C=D.isVisible;if(d===void 0||C===void 0)return W.return();var M;(M=K.controller.timelyActionsMap.get(d))==null||M(d,C);_.TG(W)})};
g4[vP]=[_.H92];var Mrp=function(){this.timelyActionsMap=new Map};var Nj=function(u){this.JSC$17393_commandHandler=u};
_.c(Nj,lq);Nj.prototype.resolveCommand=function(u){var K=this,l,D,d,C,W;return _.H(function(M){l=_.b(u,_.w0);if(!l)return M.return();C=(D=l.item)==null?void 0:(d=D.notificationTextRenderer)==null?void 0:d.successResponseText;if(!C)return M.return();W=_.nc(C);K.JSC$17393_commandHandler.resolveCommand(W);_.TG(M)})};
Nj[vP]=[_.t9];var kb=function(u,K){this.innertubeTransportService=u;this.JSC$17398_playerApiPromise=K};
_.c(kb,lq);
kb.prototype.resolveCommand=function(u){var K=this,l,D,d,C,W,M,q,v,G;return _.H(function(t){if(t.nextAddress==1)return t.yield(K.JSC$17398_playerApiPromise,2);l=t.yieldResult;D=l.getOption("captions","track");d=Object.assign({},_.b(u,_.ejB));(W=(C=l.getVideoData())==null?void 0:C.video_id)?d.externalVideoId=W:_.D_(Error("Ei"));if((M=D)==null?0:M.languageCode)d.languageCode=D.languageCode;if((q=D)==null?0:q.kind)d.kind=D.kind;if((v=D)==null?0:v.name)d.name=D.name;G=Object.assign({},u,{getTranscriptEndpoint:d});return t.yield(_.HJ(K.innertubeTransportService,
G),0)})};
kb[vP]=[_.md,_.aw];var Zf=function(){};
_.c(Zf,lq);Zf.prototype.resolveCommand=function(u){var K,l,D,d,C,W,M,q;return _.H(function(v){K=_.b(u,n4s);if((l=K)==null||!l.paramKeyValuePairs)return v.return();D=window.location.href;d=_.y(K.paramKeyValuePairs);for(C=d.next();!C.done;C=d.next())W=C.value,W.key&&W.value&&(M={},D=_.Wv(D,(M[W.key]=W.value,M)));q=_.GB().resolve(_.Qa);_.fD(q,D);_.TG(v)})};var Yb=function(u,K){this.JSC$17405_commandHandler=u;this.innertubeTransportService=K};
_.c(Yb,lq);
Yb.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M,q,v,G,t,x,O,a,f,B,p,V,m;return _.H(function(Z){switch(Z.nextAddress){case 1:return(C=(D=K)==null?void 0:(d=D.form)==null?void 0:d.element)&&_.C5(C),W=_.jy().get("hl"),M="",_.Qg(Z,2),Z.yield(VNo(W),4);case 4:M=Z.yieldResult;_.I$(Z,3);break;case 2:return _.iY(Z),C&&_.IX(C),_.Xm(Error("Gi"),"ERROR"),Z.return();case 3:q=_.b(u,MKm);if(!q)return C&&_.IX(C),Z.return();(t=(v=q.commerceActionConfig)==null?void 0:(G=v.commandLifeCycleConfig)==null?
void 0:G.onStartCommand)&&l.JSC$17405_commandHandler.resolveCommand(t);return Z.yield(_.HJ(l.innertubeTransportService,u,{client_data:{paymentsClientToken:{token:M}}}),5);case 5:(x=Z.yieldResult)?(C&&_.IX(C),((B=x)==null?0:B.command)&&l.JSC$17405_commandHandler.resolveCommand(x.command),(m=(p=q.commerceActionConfig)==null?void 0:(V=p.commandLifeCycleConfig)==null?void 0:V.onSuccessCommand)&&l.JSC$17405_commandHandler.resolveCommand(m)):(C&&_.IX(C),_.Xm(Error("Hi")),(f=(O=q.commerceActionConfig)==
null?void 0:(a=O.commandLifeCycleConfig)==null?void 0:a.onFailureCommand)&&l.JSC$17405_commandHandler.resolveCommand(f)),_.TG(Z)}})};
Yb[vP]=[_.t9,_.md];var Aj=function(u,K,l){this.store=u;this.JSC$17421_commandHandler=K;this.innertubeTransportService=l};
_.c(Aj,lq);
Aj.prototype.resolveCommand=function(u,K){var l=this,D,d,C,W,M,q,v,G,t;return _.H(function(x){D=_.b(u,q$0);d=D.googlePaymentPayload;D.onStartCommand&&l.JSC$17421_commandHandler.resolveCommand(D.onStartCommand);C=d.encryptedPurchaseParams;W=d.ypcLogWalletAnalyticDataEndpoint;M=D.serializedTransactionFlowLoggingParams;q=d.serializedPaymentsClientParams;v=D.ypcCujContext;t=kXo(l.innertubeTransportService,(G=K)==null?void 0:G.form,C,W,M,q,v);return x.return(t.then(function(O){gIy(K==null?void 0:K.form,
!1);var a=l.store,f=l.JSC$17421_commandHandler,B=O.integratorData;B==null||B===""||O.error!=null?(String(O.error)==="-1"&&D.onDismissCommand?f.resolveCommand(D.onDismissCommand):String(O.error)!=="-1"&&D.onFailureCommand&&f.resolveCommand(D.onFailureCommand),String(O.error)!=="-1"&&String(O.error)!=="132"&&_.Xm(Error("Ii"),"ERROR")):(D.googlePaymentEntityKey&&a.dispatch(_.TT("commerceAcquisitionClientPayloadEntity",D.googlePaymentEntityKey,{key:D.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:B,
fundsGuaranteeCallbackClientData:O.integratorClientCallbackData}}})),D.onSuccessCommand&&f.resolveCommand(D.onSuccessCommand));_.zA()},function(O){gIy(K==null?void 0:K.form,!1);
_.Xm(O,"ERROR");D.onFailureCommand&&l.JSC$17421_commandHandler.resolveCommand(D.onFailureCommand)}))})};
Aj[vP]=[cU,_.t9,_.md];var Xj=function(u,K){this.JSC$17425_commandHandler=u;this.purchaseManager=K};
_.c(Xj,lq);
Xj.prototype.resolveCommand=function(u){var K=this,l,D,d,C,W,M,q,v,G;return _.H(function(t){l=_.b(u,$6H);((D=l)==null?0:(d=D.commandLifeCycleConfig)==null?0:d.onStartCommand)&&K.JSC$17425_commandHandler.resolveCommand(l.commandLifeCycleConfig.onStartCommand);if(!((C=l)==null?0:(W=C.googlePaymentPurchaseManagerPayload)==null?0:W.securePayloadBytes))return _.Xm(Error("Ji"),"ERROR"),t.return();M=vO0(_.Wa(l.googlePaymentPurchaseManagerPayload.securePayloadBytes));q=_.jy().get("hl");v=_.MX();r2k(M.serialize(),
q,function(x){v.resolve(x)},function(x){v.reject(x)},v.resolve);
G=v.promise;return t.return(G.then(function(x){if(x)if(x==null?0:x.errorCode){_.Xm(Error("Ki`"+x.errorCode),"ERROR");var O,a;((O=l)==null?0:(a=O.commandLifeCycleConfig)==null?0:a.onFailureCommand)&&K.JSC$17425_commandHandler.resolveCommand(l.commandLifeCycleConfig.onFailureCommand)}else if(x==null?0:x.isCancelled){var f,B;((f=l)==null?0:(B=f.commandLifeCycleConfig)==null?0:B.onCancelCommand)&&K.JSC$17425_commandHandler.resolveCommand(l.commandLifeCycleConfig.onCancelCommand)}else{var p,V;((p=l)==
null?0:(V=p.commandLifeCycleConfig)==null?0:V.onSuccessCommand)&&K.JSC$17425_commandHandler.resolveCommand(l.commandLifeCycleConfig.onSuccessCommand)}},function(x){_.Xm(x,"ERROR");
var O,a;((O=l)==null?0:(a=O.commandLifeCycleConfig)==null?0:a.onFailureCommand)&&K.JSC$17425_commandHandler.resolveCommand(l.commandLifeCycleConfig.onFailureCommand)}))})};
Xj[vP]=[_.t9,vCa];var qZ_=function(u,K){this.JSC$17433_commandHandler=u;this.commandAllowlistOverride=K;var l;this.commandAllowlist=(l=this.commandAllowlistOverride)!=null?l:qX};
qZ_.prototype.handleResponse=function(u,K,l){var D,d=K==null?void 0:(D=K.config)==null?void 0:D.command;if(!d||this.commandAllowlist.some(function(C){return!!_.b(d,C)})){K=void 0;
l!==void 0&&(K={form:{element:l}});u.onResponseReceivedCommand&&this.JSC$17433_commandHandler.resolveCommand(u.onResponseReceivedCommand,K);u.onResponseReceivedAction&&this.JSC$17433_commandHandler.resolveCommand(u.onResponseReceivedAction,K);u.onResponseReceivedEndpoint&&this.JSC$17433_commandHandler.resolveCommand(u.onResponseReceivedEndpoint,K);u.command&&this.JSC$17433_commandHandler.resolveCommand(u.command,K);if(u.onResponseReceivedCommands)for(l=_.y(u.onResponseReceivedCommands),D=l.next();!D.done;D=
l.next())this.JSC$17433_commandHandler.resolveCommand(D.value,K);if(u.onResponseReceivedActions)for(l=_.y(u.onResponseReceivedActions),D=l.next();!D.done;D=l.next())this.JSC$17433_commandHandler.resolveCommand(D.value,K);if(u.onResponseReceivedEndpoints)for(l=_.y(u.onResponseReceivedEndpoints),D=l.next();!D.done;D=l.next())this.JSC$17433_commandHandler.resolveCommand(D.value,K);if(u.actions)for(u=_.y(u.actions),l=u.next();!l.done;l=u.next())this.JSC$17433_commandHandler.resolveCommand(l.value,K)}};
qZ_[vP]=[_.t9,_.vv(Gsr)];var $wV=new _.G$("INNERTUBE_TOKEN_SERVICE");var nyo=new _.G$("SCHEDULER_TOKEN");var rHE=function(u){this.scheduler=u;u={};this.tokenMap=(u.app={},u.user={},u)};
rHE.prototype.handleResponse=function(u,K){if(!K)throw Error("Li");var l;if(u=(l=u.responseContext)==null?void 0:l.innertubeTokenJar){if(u.appTokens){var D,d,C;l=(D=K.innerTubeRequest.context)==null?void 0:(d=D.request)==null?void 0:(C=d.innertubeTokenJar)==null?void 0:C.appTokens;vyi(this,u.appTokens,this.tokenMap.app,l)}if(u.userTokens){var W,M,q;K=(W=K.innerTubeRequest.context)==null?void 0:(M=W.request)==null?void 0:(q=M.innertubeTokenJar)==null?void 0:q.userTokens;vyi(this,u.userTokens,this.tokenMap.user,
K)}}};
rHE.prototype.processContext=function(u){u.request||(u.request={});var K=Object.keys(this.tokenMap.app).length,l=Object.keys(this.tokenMap.user).length;if(K||l)u.request.innertubeTokenJar={},K&&(u.request.innertubeTokenJar.appTokens=[].concat(_.Am(Object.values(this.tokenMap.app).flat()))),l&&(u.request.innertubeTokenJar.userTokens=[].concat(_.Am(Object.values(this.tokenMap.user).flat())))};
var vyi=function(u,K,l,D){K=_.y(K);for(var d=K.next(),C={};!d.done;C={token$jscomp$138:void 0},d=K.next()){C.token$jscomp$138=d.value;if(C.token$jscomp$138.type===void 0)throw new _.wv("InnerTube token has no type",C.token$jscomp$138);if(C.token$jscomp$138.clearTokens)l[C.token$jscomp$138.type]=[];else if(C.token$jscomp$138.value!==void 0){l[C.token$jscomp$138.type]||(l[C.token$jscomp$138.type]=[]);if(D!==void 0&&D.length){d=_.y(D);for(var W=d.next(),M={};!W.done;M={requestToken:void 0},W=d.next())M.requestToken=
W.value,W=l[C.token$jscomp$138.type].findIndex(function(q){return function(v){return v===q.requestToken||(0,_.k$.equals)(v,q.requestToken)}}(M)),W>-1&&l[C.token$jscomp$138.type].splice(W,1)}l[C.token$jscomp$138.type].push(C.token$jscomp$138);
C.token$jscomp$138.maxAgeSeconds&&Number(C.token$jscomp$138.maxAgeSeconds)>0&&u.scheduler.addLowPriorityJob(function(q){return function(){var v=l[q.token$jscomp$138.type].indexOf(q.token$jscomp$138);v>-1&&l[q.token$jscomp$138.type].splice(v,1)}}(C),Number(C.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.wv("InnerTube token has no value",C.token$jscomp$138);
}};
rHE[vP]=[nyo];var Ghp=new _.G$("LOCAL_INNERTUBE_ROUTER_TOKEN"),tr2=new _.G$("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var mw=function(u){this.serviceMap=u};
mw.prototype.shouldPreferLocalResponse=function(u,K){return(u=xwp(this,u))?u.shouldPreferLocalResponse(K):!1};
mw.prototype.localInnertubeResponse=function(u,K){var l=this,D;return _.H(function(d){return(D=xwp(l,u))?d.return(D.localInnertubeResponse(K)):d.return(Promise.reject(Error("Mi")))})};
mw.prototype.canProvideFallbackResponse=function(u,K){return(u=xwp(this,u))?u.canProvideFallbackResponse(K):!1};
mw.prototype.localFallbackInnertubeResponse=function(u,K){var l=this,D;return _.H(function(d){return(D=xwp(l,u))?d.return(D.localFallbackInnertubeResponse(K)):d.return(Promise.reject(Error("Mi")))})};
var xwp=function(u,K){K=_.RK(K);return K?(u=u.serviceMap[K])?u:null:null};
mw[vP]=[tr2];var wr=function(){};
wr.prototype.shouldPreferLocalResponse=function(){return!1};
wr.prototype.localInnertubeResponse=function(){return _.H(function(u){return u.return(Promise.reject(Error("Ni")))})};
wr.prototype.canProvideFallbackResponse=function(){return!0};
wr.prototype.localFallbackInnertubeResponse=function(){var u,K,l;return _.H(function(D){u=ws("CLOSE_POPUP");K={openPopupAction:Y0r()};l={actions:[u,K]};return D.return(l)})};var k5o=function(u,K){this.JSC$17483_upliftPromise=u;this.store=K};
_.I=k5o.prototype;_.I.shouldPreferLocalResponse=function(u){var K=u.videoId,l;if(l=K)l=jPR(this.store.getState().entities,u.videoId);return l&&B0n(this.store.getState().entities,K)?Xwr(this.store.getState().entities,u.playlistId):!1};
_.I.localInnertubeResponse=function(u){var K=this,l;return _.H(function(D){return(l=K.getPlayerResponse(u))?D.return(Promise.resolve(l)):D.return(Promise.reject(Error("Oi")))})};
_.I.canProvideFallbackResponse=function(u){return!!u.videoId};
_.I.localFallbackInnertubeResponse=function(u){var K=this,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(K.JSC$17483_upliftPromise,2);l=K.getPlayerResponse(u);var d;l?d=D.return(Promise.resolve(l)):d=wZ(K.store.getState().entities,u.videoId)?D.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.GI(_.QQ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:saH()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
D.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.GI(_.QQ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:yxq()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return d})};
_.I.getPlayerResponse=function(u){return sDH(this.store.getState().entities,u.videoId)};var Tb=function(u,K){this.localPlayerService=u;this.localWatchNextService=K};
Tb.prototype.shouldPreferLocalResponse=function(u){var K=u.playerRequest;u=u.watchNextRequest;return!!(K&&this.localPlayerService.shouldPreferLocalResponse(K)&&u&&this.localWatchNextService.shouldPreferLocalResponse(u))};
Tb.prototype.localInnertubeResponse=function(u){var K=this,l,D,d,C;return _.H(function(W){if(W.nextAddress==1){l=u.playerRequest;D=u.watchNextRequest;if(!l||!D)throw new _.wv("Missing streaming request",u);return W.yield(K.localPlayerService.localInnertubeResponse(l),2)}if(W.nextAddress!=3)return d=W.yieldResult,W.yield(K.localWatchNextService.localInnertubeResponse(D),3);C=W.yieldResult;return W.return({playerResponse:d,watchNextResponse:C})})};
Tb.prototype.canProvideFallbackResponse=function(u){var K=u.playerRequest;u=u.watchNextRequest;return!!(K&&this.localPlayerService.canProvideFallbackResponse(K)&&u&&this.localWatchNextService.canProvideFallbackResponse(u))};
Tb.prototype.localFallbackInnertubeResponse=function(u){var K=this,l,D,d,C;return _.H(function(W){if(W.nextAddress==1)return l=u.playerRequest,D=u.watchNextRequest,l&&D?W.yield(K.localPlayerService.localFallbackInnertubeResponse(l),2):W.return(Promise.reject(new _.wv("Missing streaming request",u)));if(W.nextAddress!=3)return d=W.yieldResult,W.yield(K.localWatchNextService.localFallbackInnertubeResponse(D),3);C=W.yieldResult;return W.return({playerResponse:d,watchNextResponse:C})})};var BU=function(u){this.JSC$17493_persistentStorePromiseAccessor=u};
BU.prototype.shouldPreferLocalResponse=function(){return!1};
BU.prototype.localInnertubeResponse=function(){return _.H(function(u){return u.return(Promise.reject(Error("Pi")))})};
BU.prototype.canProvideFallbackResponse=function(){return!0};
BU.prototype.localFallbackInnertubeResponse=function(){var u=this,K,l;return _.H(function(D){return D.nextAddress==1?D.yield(u.JSC$17493_persistentStorePromiseAccessor(),2):D.nextAddress!=3?(K=D.yieldResult)?D.yield(K.get("service:guide:fallback"),3):D.return(Promise.reject(Error("Qi"))):(l=D.yieldResult)&&_.tn(l)?D.return(mvn(_.tn(l))):D.return(Promise.reject(Error("Ri")))})};var F_=function(){};
F_.prototype.shouldPreferLocalResponse=function(){return!1};
F_.prototype.localInnertubeResponse=function(){return _.H(function(u){return u.return(Promise.reject(Error("Si")))})};
F_.prototype.canProvideFallbackResponse=function(){return!0};
F_.prototype.localFallbackInnertubeResponse=function(){var u,K,l;return _.H(function(D){u=ws("CLOSE_POPUP");K={openPopupAction:Y0r()};l={actions:[u,K]};return D.return(l)})};var jl=function(){this.urlMap=SZo;this.fallbackCommand=_.pt};
jl.prototype.shouldPreferLocalResponse=function(u){return(u=u.url)?!!b9p(this,u):!1};
jl.prototype.localInnertubeResponse=function(u){var K=this,l;return _.H(function(D){return(l=u.url)?D.return(O9V(u,b9p(K,l))):D.return(Promise.reject(Error("Ti")))})};
jl.prototype.canProvideFallbackResponse=function(){return!0};
jl.prototype.localFallbackInnertubeResponse=function(u){var K=this,l,D,d,C,W,M,q;return _.H(function(v){l=u.url;if(!l)return v.return(O9V(u,K.fallbackCommand));if(D=b9p(K,l))return v.return(O9V(u,D));d=void 0;C=_.RK(l);C==="/watch"&&(W=_.ur(l,"v"))&&(q=(M=_.ur(l,"list"))!=null?M:void 0,d=_.vi(W,q));d||(d=K.fallbackCommand);return v.return(O9V(u,d))})};
var b9p=function(u,K){if(K)return u.urlMap[_.dd(K)]},O9V=function(u,K){K&&u.parentTrackingParams&&(K.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:u.parentTrackingParams}},K.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:K})};var p5=function(u,K,l){this.JSC$17503_upliftPromise=u;this.store=K;this.JSC$17503_persistentStorePromiseAccessor=l};
p5.prototype.shouldPreferLocalResponse=function(){return!1};
p5.prototype.localInnertubeResponse=function(){return _.H(function(u){return u.return(Promise.reject(Error("Ui")))})};
p5.prototype.canProvideFallbackResponse=function(){return!0};
p5.prototype.localFallbackInnertubeResponse=function(){var u=this;return _.H(function(K){return K.return(cHV(u))})};
var cHV=function(u){var K,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(Gb(u.JSC$17503_upliftPromise,u.store),2);K=D.yieldResult;l={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[Ahn(K)]}}}};return D.return(aHk(u,l))})},aHk=function(u,K){var l,D;
return _.H(function(d){if(d.nextAddress==1)return d.yield(u.JSC$17503_persistentStorePromiseAccessor(),2);if(d.nextAddress!=3)return l=d.yieldResult,d.yield(x5(l),3);D=d.yieldResult;return d.return({responseContext:{},contents:K,topbar:D})})};var PU=function(u,K,l){this.JSC$17510_upliftPromise=u;this.store=K;this.JSC$17510_persistentStorePromiseAccessor=l};
PU.prototype.shouldPreferLocalResponse=function(u){var K=u.videoId;return K&&jPR(this.store.getState().entities,K)&&B0n(this.store.getState().entities,K)?Xwr(this.store.getState().entities,u.playlistId):!1};
PU.prototype.localInnertubeResponse=function(u){var K=this,l,D;return _.H(function(d){if(d.nextAddress==1)return(l=u.videoId)?d.yield(K.JSC$17510_upliftPromise,2):d.return(Promise.reject(Error("Vi")));if(d.nextAddress!=3)return d.yield(zqo(K,u,l),3);D=d.yieldResult;return d.return(eqB(K,D,l))})};
PU.prototype.canProvideFallbackResponse=function(u){return u.videoId?!0:!1};
PU.prototype.localFallbackInnertubeResponse=function(u){var K=this,l,D,d,C;return _.H(function(W){switch(W.nextAddress){case 1:return(l=u.videoId)?W.yield(K.JSC$17510_upliftPromise,2):W.return(Promise.reject(Error("Vi")));case 2:return W.yield(zqo(K,u,l),3);case 3:D=W.yieldResult;if(wZ(K.store.getState().entities,l)){W.jumpTo(4);break}return W.yield(Gb(K.JSC$17510_upliftPromise,K.store),5);case 5:return d=W.yieldResult,W.return(Rqp(D,d));case 4:return jPR(K.store.getState().entities,l)&&B0n(K.store.getState().entities,
l)?W.return(eqB(K,D,l)):(C={title:_.GI(_.QQ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:saH()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},W.return(Rqp(D,C)))}})};
var zqo=function(u,K,l){var D,d,C,W,M;return _.H(function(q){if(q.nextAddress==1)return D=K.playlistId,d=_.vi(l,D),q.yield(u.JSC$17510_persistentStorePromiseAccessor(),2);if(q.nextAddress!=3)return C=q.yieldResult,q.yield(x5(C),3);W=q.yieldResult;M={responseContext:{},currentVideoEndpoint:d,topbar:W};return q.return(M)})},eqB=function(u,K,l){if(u=wZ(u.store.getState().entities,l)){var D;
l=u.videoEntity;var d,C={title:tu(l.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.xw((D=l.localizedStrings)==null?void 0:D.viewCount),viewCount:_.xw((d=l.localizedStrings)==null?void 0:d.viewCount)}}};l.publishedTimestampMillis&&(C.dateText=_.xw(h1L(new Date(Number(l.publishedTimestampMillis)))));D={videoPrimaryInfoRenderer:C};d=u.videoEntity;u=u.channelEntity;u={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:tu(_.QQ("SHOW_MORE",void 0,"Show more")),
showLessText:tu(_.QQ("SHOW_LESS",void 0,"Show less")),description:d.formattedDescription,owner:{videoOwnerRenderer:{title:tu(u.title),thumbnail:u.avatar}}}};K.contents={twoColumnWatchNextResults:{results:{results:{contents:[D,u]}}}}}return K},Rqp=function(u,K){u.contents={singleColumnWatchNextResults:{results:{results:{contents:[Ahn(K)]}}}};
return u};var iw=function(u,K,l){this.JSC$17515_upliftPromise=u;this.store=K;this.JSC$17515_persistentStorePromiseAccessor=l};
iw.prototype.shouldPreferLocalResponse=function(){return!1};
iw.prototype.localInnertubeResponse=function(){return _.H(function(u){return u.return(Promise.reject(Error("Wi")))})};
iw.prototype.canProvideFallbackResponse=function(){return!0};
iw.prototype.localFallbackInnertubeResponse=function(){var u=this,K,l,D,d;return _.H(function(C){switch(C.nextAddress){case 1:return C.yield(u.JSC$17515_persistentStorePromiseAccessor(),2);case 2:return K=C.yieldResult,C.yield(x5(K),3);case 3:return l=C.yieldResult,D={responseContext:{},topbar:l},C.yield(u.JSC$17515_upliftPromise,4);case 4:return C.yield(Gb(u.JSC$17515_upliftPromise,u.store),5);case 5:return d=C.yieldResult,D.watchStatus={backgroundPromoRenderer:d},C.return(D)}})};var Uw6=new _.G$("ENDPOINT_MAP");var fH6=function(){var u=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return u.sequenceMap}}},djN=function(u,K,l){var D,d=(D=K.config)==null?void 0:D.sequenceStrategy;
if(!d)return l();u.sequenceMap.has(d.sequenceKey)||u.sequenceMap.set(d.sequenceKey,[]);u=u.sequenceMap.get(d.sequenceKey);switch(d.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return QRi(u,K,l);case "REQUEST_SEQUENCE_TYPE_REPLACE":return PLH(u,K,l);default:throw new _.wv("Request could not be sequenced",K);}},QRi=function(u,K,l){var D,d,C;
return _.H(function(W){u.length>0?(d=u[u.length-1],D=d.responsePromise.then(function(){return l()})):D=l();
C={request:K,responsePromise:D};u.push(C);JHH(u,C);return W.return(C.responsePromise)})},PLH=function(u,K,l){l=l();
if(u.length>0)for(var D=_.y(u),d=D.next();!d.done;d=D.next())d.value.responsePromise=l;var C={request:K,responsePromise:l};u.push(C);JHH(u,C);return Promise.resolve().then(function(){return u.indexOf(C)>0?C.responsePromise.then(function(W){return Object.assign({},W,{sequenceMetaData:{skipProcessing:!0}})}):C.responsePromise})},JHH=function(u,K){K.responsePromise.then(function(){var l=u.indexOf(K);
l>-1&&u.splice(l,1)})};var jRE=new _.G$("REQUEST_SEQUENCING");var hj=function(){};
_.c(hj,R8);hj.prototype.getApiPaths=function(){return[]};
hj.prototype.getExtension=function(u){return _.b(u,xbm)};
hj.prototype.JSC$12977_buildRequest=function(u,K){u.recaptchaToken=K.recaptchaToken};
hj.prototype.getApiUrl=function(){return"/das_captcha"};var EH=function(){};
_.c(EH,R8);EH.prototype.getApiPaths=function(){return HlC};
EH.prototype.getExtension=function(u){return _.b(u,Xy2)};
EH.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;K.createBackstagePostParams&&(u.createBackstagePostParams=K.createBackstagePostParams);l.comment_text&&(u.commentText=l.comment_text);if(l.attached_video_id)u.videoAttachment={videoId:l.attached_video_id};else if(l.image_poll_options)u.pollAttachmentData={options:l.image_poll_options};else if(l.poll_options)u.pollAttachment={choices:l.poll_options};else if(l.quiz_options)u.quizAttachmentData={options:l.quiz_options};else if(l.image_blob_id)u.imageAttachment=
{encryptedBlobId:l.image_blob_id},l.source_video_id&&(u.imageAttachment.sourceExternalVideoId=l.source_video_id),l.image_preview_coordinates&&(u.imageAttachment.previewCoordinates=JSON.parse(l.image_preview_coordinates));else if(l.images_data)u.imagesAttachment={imagesData:l.images_data};else if(l.clip_external_video_id!==void 0||l.clip_offset_ms!==void 0||l.clip_duration_ms!==void 0){var D,d,C,W,M;u.clipAttachment={externalVideoId:(C=l.clip_external_video_id)!=null?C:"",offsetMs:(W=(D=l.clip_offset_ms)==
null?void 0:D.toString())!=null?W:"",durationMs:(M=(d=l.clip_duration_ms)==null?void 0:d.toString())!=null?M:""}}else l.shared_post_id&&(u.sharedPostAttachment={postId:l.shared_post_id});l.tagged_video_id&&(u.postCreationData={taggedVideoId:l.tagged_video_id});l.access_restrictions&&(typeof l.access_restrictions==="number"&&(K=l.access_restrictions,u.accessRestrictions={restriction:K!==1&&K===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof l.access_restrictions==="string"&&
(u.accessRestrictionsParams=l.access_restrictions));l.scheduled_publish_time_sec&&(u.scheduledPublishTimeSec=l.scheduled_publish_time_sec.toString())};var L$=function(){};
_.c(L$,R8);L$.prototype.getApiPaths=function(){return GnB};
L$.prototype.getExtension=function(u){return _.b(u,HPw)};
L$.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;K.decorateMessageParams&&(u.params=K.decorateMessageParams);l.text&&(u.text=l.text)};var uj=function(){};
_.c(uj,R8);uj.prototype.getApiPaths=function(){return TjC};
uj.prototype.getExtension=function(u){return _.b(u,mbw)};
uj.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;l.video_id&&(u.videoId=l.video_id)};var KA=function(){};
_.c(KA,R8);KA.prototype.getApiPaths=function(){return Njs};
KA.prototype.getExtension=function(u){return _.b(u,_.Ux)};
KA.prototype.JSC$12977_buildRequest=function(u,K,l){l.suggestions_query&&(u.input=l.suggestions_query)};var lj=function(){};
_.c(lj,R8);lj.prototype.getApiPaths=function(){return bDC};
lj.prototype.getExtension=function(u){return _.b(u,hbm)};
lj.prototype.JSC$12977_buildRequest=function(u,K,l){l.comment_text!==void 0&&(u.commentText=l.comment_text);l.scheduled_publish_time_sec&&(u.scheduledPublishTimeSec=l.scheduled_publish_time_sec.toString());u.updateBackstagePostParams=K.updateBackstagePostParams};var DN=function(){};
_.c(DN,R8);DN.prototype.getApiPaths=function(){return MZ};
DN.prototype.getExtension=function(u){return _.b(u,_.C1)};
DN.prototype.JSC$12977_buildRequest=function(u,K,l){l.formData&&(u.formData=l.formData);K.token?u.continuation=K.token:K.continuationTokenKey&&(l=_.Mu().getState(),K=_.eZ(l.entities,"continuationTokenEntity",K.continuationTokenKey))&&(u.continuation=String(K.continuationToken))};
var BqH=function(){};
_.c(BqH,R8);_.I=BqH.prototype;_.I.getApiPaths=function(){return MZ};
_.I.getExtension=function(u){return _.b(u,_.jt)};
_.I.isNavigationCommand=function(){return!0};
_.I.JSC$12984_getStoreKey=function(u){if((u=this.getExtension(u))&&u.browseId){var K={browseId:u.browseId};u.browseEndpointContextSupportedConfigs&&(K.browseEndpointContextSupportedConfigs=JSON.stringify(u.browseEndpointContextSupportedConfigs));u.params&&(K.params=u.params);u.query&&(K.query=u.query);return _.sx("browse",K)}};
_.I.JSC$12977_buildRequest=function(u,K,l){K.browseId&&(u.browseId=K.browseId);K.params&&(u.params=K.params);K.query&&(u.query=K.query);l.formData?u.formData=l.formData:K.formData&&(u.formData=K.formData);K.browseId==="FEsubscriptions"&&_.jy().getFlag(155)&&(u.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");K.browseId==="SPaccount_playback"&&(l=_.jy(),u.formData||(u.formData={}),u.formData.accountSettingsFormData={flagCaptionsDefaultOff:l.getFlag(65),flagAutoCaptionsDefaultOn:l.getFlag(66),
flagDisableInlinePreview:l.getFlag(186),flagAudioDescriptionDefaultOn:l.getFlag(198)});if(K.browseId==="FEwhat_to_watch"){l=_.jy();var D=l.getFlag(196);l.getFlag(197)&&(u.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:D}}})}K.browseId==="FEwhat_to_watch"&&(K=_.jy().getFlag(186),u.inlineSettingStatus=K?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.I.getRequestConfig=function(u,K){K=K===void 0?{}:K;var l={};if(u=this.JSC$12984_getStoreKey(u,K))l.storeStrategy={storeKey:u,disableCache:K.disableCache};_.S("web_log_browse_ticks_ks")||(l.requestTick="br_s",l.responseTick="br_r");return l};var dI=function(){};
_.c(dI,R8);dI.prototype.getApiPaths=function(){return CK2};
dI.prototype.getExtension=function(u){return _.b(u,c5a)};
dI.prototype.JSC$12977_buildRequest=function(u,K,l){u.legacyYoutubeChannelUsername=l.legacyYouTubeChannelUsername||"";u.legacyYoutubeChannelPassword=l.legacyYouTubeChannelPassword||""};var CA=function(){};
_.c(CA,R8);CA.prototype.getApiPaths=function(){return M0A};
CA.prototype.getExtension=function(u){return _.b(u,C4B)};
CA.prototype.JSC$12977_buildRequest=function(u,K,l){l.recaptcha_response_token&&(u.recaptchaResponseToken=l.recaptcha_response_token);l.channel_id&&(u.channelId=l.channel_id)};var IU=function(){};
_.c(IU,R8);IU.prototype.getApiPaths=function(){return ODk};
IU.prototype.getExtension=function(u){return _.b(u,HJa)};
IU.prototype.JSC$12977_buildRequest=function(u,K,l){K.externalChannelId&&(u.externalChannelId=K.externalChannelId);l.handle&&(u.handleUpdate={handle:l.handle},K.handleEditSource&&(u.handleUpdate.handleEditSource=K.handleEditSource))};var yh=function(){};
_.c(yh,R8);yh.prototype.getApiPaths=function(){return eU2};
yh.prototype.getExtension=function(u){return _.b(u,J1a)};
yh.prototype.JSC$12977_buildRequest=function(u,K,l){K.request&&(u.channelId=K.request.channelId);var D;if(l==null?0:(D=l.uploadDefaults)==null?0:D.emojiReactionSet)u.uploadDefaultsRequest||(u.uploadDefaultsRequest={}),u.uploadDefaultsRequest.emojiReactionSet=l.uploadDefaults.emojiReactionSet};var si=function(){};
_.c(si,R8);si.prototype.getApiPaths=function(){return f1a};
si.prototype.getExtension=function(u){return _.b(u,IVB)};
si.prototype.JSC$12977_buildRequest=function(u,K,l){K.externalChannelId&&(u.externalChannelId=K.externalChannelId);K.channelHandleEntityKey&&(u.channelHandleEntityKey=K.channelHandleEntityKey);K.handleEditSource&&(u.handleEditSource=K.handleEditSource);l.handle?u.handle=l.handle:l.name&&(u.name=l.name)};var oU=function(){};
_.c(oU,R8);oU.prototype.getApiPaths=function(){return siN};
oU.prototype.getExtension=function(u){return _.b(u,k8S)};
oU.prototype.JSC$12977_buildRequest=function(u,K){K.actions?u.actions=K.actions:K.action&&(u.actions=[K.action])};var W9=function(){};
_.c(W9,R8);W9.prototype.getApiPaths=function(){return oMH};
W9.prototype.getExtension=function(u){return _.b(u,_.C1)};
W9.prototype.JSC$12977_buildRequest=function(u,K){K.token&&(u.continuation=K.token)};var H9=function(){};
_.c(H9,R8);H9.prototype.getApiPaths=function(){return psN};
H9.prototype.getExtension=function(u){return _.b(u,_.C1)};
H9.prototype.JSC$12977_buildRequest=function(u,K){u.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";K.token&&(u.fetchCommentsParams={continuation:K.token})};var Ml=function(){};
_.c(Ml,R8);Ml.prototype.getApiPaths=function(){return $1C};
Ml.prototype.getExtension=function(u){return _.b(u,N0a)};
Ml.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;K.createReplyParams&&(u.createReplyParams=K.createReplyParams);K.commentText&&(u.commentText=_.WI(K.commentText));l.comment_text&&(u.commentText=l.comment_text);l.image_blob_id&&(u.imageAttachment={encryptedBlobId:l.image_blob_id});l.botguard_response&&(u.botguardResponse=l.botguard_response)};
_.MN.Object.defineProperties(Ml.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ql=function(){};
_.c(ql,R8);ql.prototype.getApiPaths=function(){return nMB};
ql.prototype.getExtension=function(u){return _.b(u,_.ggA)};
ql.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;K.createCommentParams&&(u.createCommentParams=K.createCommentParams);K.commentText&&(u.commentText=_.WI(K.commentText));K.videoPositionMention&&(u.videoPositionMention=K.videoPositionMention);K.sources&&(u.sources=K.sources);l.comment_text&&(u.commentText=l.comment_text);l.attached_video_id?u.videoAttachment={videoId:l.attached_video_id}:l.poll_options?u.pollAttachment={choices:l.poll_options}:l.image_blob_id?u.imageAttachment=
{encryptedBlobId:l.image_blob_id}:l.shared_post_id&&(u.sharedPostAttachment={postId:l.shared_post_id});l.access_restrictions&&typeof l.access_restrictions==="number"&&(K=l.access_restrictions,u.accessRestrictions={restriction:K!==1&&K===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});l.botguard_response&&(u.botguardResponse=l.botguard_response)};
_.MN.Object.defineProperties(ql.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $N=function(){};
_.c($N,R8);$N.prototype.getApiPaths=function(){return cA2};
$N.prototype.getExtension=function(u){return _.b(u,YUm)};
$N.prototype.JSC$12977_buildRequest=function(u,K,l){K.commentText&&(u.replyText=_.WI(K.commentText));l.comment_text&&(u.replyText=l.comment_text);u.updateReplyParams=K.updateReplyParams};
_.MN.Object.defineProperties($N.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nA=function(){};
_.c(nA,R8);nA.prototype.getApiPaths=function(){return a12};
nA.prototype.getExtension=function(u){return _.b(u,ZPm)};
nA.prototype.JSC$12977_buildRequest=function(u,K,l){K.commentText&&(u.commentText=_.WI(K.commentText));l.comment_text&&(u.commentText=l.comment_text);u.updateCommentParams=K.updateCommentParams};
_.MN.Object.defineProperties(nA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rI=function(){};
_.c(rI,R8);rI.prototype.getApiPaths=function(){return zUH};
rI.prototype.getExtension=function(u){return _.b(u,Uem)};
rI.prototype.JSC$12977_buildRequest=function(u,K){K.settings&&(u.settings=K.settings)};var v9=function(){};
_.c(v9,R8);v9.prototype.getApiPaths=function(){return U1S};
v9.prototype.getExtension=function(u){return _.b(u,y1H)};
v9.prototype.JSC$12977_buildRequest=function(u,K){K.channelCreationToken&&(u.channelCreationToken=K.channelCreationToken);K.source&&(u.source=K.source)};var Gq=function(){};
_.c(Gq,R8);Gq.prototype.getApiPaths=function(){return qeS};
Gq.prototype.getExtension=function(u){return _.b(u,Wia)};
Gq.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;if(l.name&&(l.given_name||l.family_name))u=new _.wv("channel creation cannot set both GAIA and YouTube names",K),_.Xm(u);else{if(K.zeroStepChannelCreationParams){if(!l.comment_text){u=new _.wv("zero_step_create_comment_params but no zero_step_texts",K);_.Xm(u);return}u.zeroStepChannelCreationParams=K.zeroStepChannelCreationParams;u.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(u.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
l.comment_text,l.botguard_response&&(u.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=l.botguard_response))}u.channelCreationToken=K.channelCreationToken;l.given_name&&(u.givenName=l.given_name);l.family_name&&(u.familyName=l.family_name);K.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(u.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(l.name||l.handle||l.avatar_url||l.encryptedBlobId||l.isNameChanged!==void 0||l.isHandleChanged!==void 0||l.isDefaultProfilePhoto!==
void 0||l.obakeImageSource)u.overrideChannelCreationParams={},l.name&&(u.overrideChannelCreationParams.name=l.name),l.handle&&(u.overrideChannelCreationParams.handle=l.handle),l.avatar_url&&(u.overrideChannelCreationParams.avatarUrl=l.avatar_url),l.encryptedBlobId&&(u.overrideChannelCreationParams.blobEncryptionId=l.encryptedBlobId),l.enableIdentityForAllChannelCreationDialog&&(l.encryptedBlobId?u.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
l.isDefaultProfilePhoto!==void 0&&(u.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=l.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),l.isNameChanged!==void 0&&(u.overrideChannelCreationParams.identityForAllChannelCreationNameTag=l.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),l.isHandleChanged!==
void 0&&(u.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=l.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),l.obakeImageSource&&(u.overrideChannelCreationParams.obakeImageSourceType=l.obakeImageSource))}};var tN=function(){};
_.c(tN,R8);tN.prototype.getApiPaths=function(u){return(u=this.getExtension(u))&&u.status==="DISLIKE"?bla:u&&u.status==="INDIFFERENT"?yAA:XsS};
tN.prototype.getExtension=function(u){return _.b(u,_.DL)};
tN.prototype.JSC$12977_buildRequest=function(u,K){K.target&&(u.target=K.target);if(K=this.getParams(K))u.params=K};
tN.prototype.getParams=function(u){switch(u==null?void 0:u.status){case "DISLIKE":return u.dislikeParams;case "INDIFFERENT":return u.removeLikeParams;default:return u==null?void 0:u.likeParams}};var xN=function(){};
_.c(xN,R8);xN.prototype.getApiPaths=function(){return vRB};
xN.prototype.getExtension=function(u){return _.b(u,LDa)};
xN.prototype.JSC$12977_buildRequest=function(u,K){K.settingItemId&&(u.settingItemId=K.settingItemId);K.stringValue!=null&&K.stringValue!==void 0?u.newValue={stringValue:K.stringValue}:K.intValue?u.newValue={intValue:K.intValue}:K.boolValue!==null&&K.boolValue!==void 0?u.newValue={boolValue:K.boolValue}:(u=new _.wv("Unknown value type for SetSettingEndpoint.",K),_.Xm(u))};var Sc=function(){};
_.c(Sc,R8);Sc.prototype.getApiPaths=function(){return t0a};
Sc.prototype.getExtension=function(u){return _.b(u,xsH)||void 0};
Sc.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;K.channelIds&&(u.channelIds=K.channelIds);K.siloName&&(u.siloName=K.siloName);K.params&&(u.params=K.params);l.botguardResponse&&(u.botguardResponse=l.botguardResponse);l.feature&&(u.clientFeature=l.feature)};
_.MN.Object.defineProperties(Sc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bj=function(){};
_.c(bj,R8);bj.prototype.getApiPaths=function(){return S8S};
bj.prototype.getExtension=function(u){return _.b(u,u1N)||void 0};
bj.prototype.JSC$12977_buildRequest=function(u,K){K.channelIds&&(u.channelIds=K.channelIds);K.siloName&&(u.siloName=K.siloName);K.params&&(u.params=K.params)};
_.MN.Object.defineProperties(bj.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Oi=function(u){this.shareClientParamsProvider=u};
_.c(Oi,R8);Oi.prototype.getApiPaths=function(){return leb};
Oi.prototype.getExtension=function(u){return _.b(u,Rmm)||_.b(u,_.UD0)||_.b(u,ema)};
Oi.prototype.JSC$12977_buildRequest=function(u,K){K.serializedShareEntity&&(u.serializedSharedEntity=K.serializedShareEntity);if(K.clientParamIdentifier){var l;if((l=this.shareClientParamsProvider)==null?0:l.clientParams.has(K.clientParamIdentifier)){l=this.shareClientParamsProvider;K=K.clientParamIdentifier;var D=l.clientParams.get(K);D&&l.clientParams.delete(K);u.clientParams=D}}};
Oi[vP]=[XCa];var c9=function(){};
_.c(c9,R8);c9.prototype.getApiPaths=function(){return lPC};
c9.prototype.getExtension=function(u){return _.b(u,jMH)};
c9.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.params=K.params)};var aU=function(){};
_.c(aU,R8);aU.prototype.getApiPaths=function(){return Olw};
aU.prototype.getExtension=function(u){return _.b(u,QM2)};
aU.prototype.JSC$12977_buildRequest=function(u,K){K.dismissal&&(u.items=[K.dismissal])};
_.MN.Object.defineProperties(aU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var zq=function(){};
_.c(zq,R8);zq.prototype.getApiPaths=function(){return YeR};
zq.prototype.getExtension=function(u){return _.b(u,_.X_)||void 0};
zq.prototype.JSC$12977_buildRequest=function(u,K,l){u.feedbackTokens=[];K.feedbackToken&&u.feedbackTokens.push(K.feedbackToken);if(K=K.cpn||l.cpn)u.feedbackContext={cpn:K};u.isFeedbackTokenUnencrypted=!!l.is_feedback_token_unencrypted;u.shouldMerge=!1;l.extra_feedback_tokens&&(u.shouldMerge=!0,u.feedbackTokens=u.feedbackTokens.concat(l.extra_feedback_tokens))};
_.MN.Object.defineProperties(zq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ec=function(){};
_.c(ec,R8);ec.prototype.getApiPaths=function(){return YeR};
ec.prototype.getExtension=function(u){return _.b(u,_.Ux)};
ec.prototype.JSC$12977_buildRequest=function(u,K,l){l.feedback_tokens&&(u.feedbackTokens=l.feedback_tokens,u.shouldMerge=!0)};
_.MN.Object.defineProperties(ec.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var RU=function(){};
_.c(RU,R8);RU.prototype.getApiPaths=function(){return YeR};
RU.prototype.getExtension=function(u){return _.b(u,lon)};
RU.prototype.JSC$12977_buildRequest=function(u,K){K.undoToken&&(u.feedbackTokens=[K.undoToken]);K.isUndoTokenUnencrypted&&(u.isFeedbackTokenUnencrypted=K.isUndoTokenUnencrypted)};
_.MN.Object.defineProperties(RU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ui=function(){};
_.c(Ui,R8);Ui.prototype.getApiPaths=function(){return QA2};
Ui.prototype.getExtension=function(u){return _.b(u,Rj2)};
Ui.prototype.JSC$12977_buildRequest=function(u,K){K.nextEndpoint&&_.b(K.nextEndpoint,_.d_)?u.nextEndpoint={urlEndpoint:_.b(K.nextEndpoint,_.d_)}:K.nextEndpoint&&_.b(K.nextEndpoint,_.oy)&&(u.nextEndpoint={watchEndpoint:_.b(K.nextEndpoint,_.oy)});K.setRacy&&(u.setRacy=K.setRacy);K.setControvercy&&(u.setControvercy=K.setControvercy)};var fA=function(u){this.JSC$17696_storeWithEntities=u};
_.c(fA,R8);fA.prototype.getApiPaths=function(){return aPR};
fA.prototype.getExtension=function(u){return _.b(u,Lmw)};
fA.prototype.JSC$12977_buildRequest=function(u,K){K.flowId&&(u.flowId=K.flowId);K.targetId&&(u.targetId=K.targetId);K.continuation&&(u.continuation=K.continuation);var l=K.flowStateEntityKey;if(K.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&l&&this.JSC$17696_storeWithEntities){var D;if(K=(D=this.JSC$17696_storeWithEntities.getState())==null?void 0:D.entities)if(D=_.OV(l).entityType,D=_.eZ(K,D,l))u.flowState=D,u.flowStateEntityKey=l}};
_.MN.Object.defineProperties(fA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
fA[vP]=[cU];var pop=function(){};
_.c(pop,R8);_.I=pop.prototype;_.I.getApiPaths=function(){return ZlR};
_.I.JSC$12984_getStoreKey=function(){return _.sx("guide")};
_.I.getRequestConfig=function(){var u=this.JSC$12984_getStoreKey(),K;u&&(K={storeStrategy:{storeKey:u}});return K};
_.I.isNavigationCommand=function(){return!0};
_.I.getExtension=function(u){return _.b(u,_.Ux)};
_.I.JSC$12977_buildRequest=function(u){u.fetchLiveState=!0};var Qh=function(){};
_.c(Qh,R8);Qh.prototype.getApiPaths=function(){return IP0};
Qh.prototype.getExtension=function(u){return _.b(u,wdA)};
Qh.prototype.JSC$12977_buildRequest=function(){};var P9=function(){};
_.c(P9,R8);P9.prototype.getApiPaths=function(){return yis};
P9.prototype.getExtension=function(u){return _.b(u,FDw)};
P9.prototype.JSC$12977_buildRequest=function(){};var JN=function(){};
_.c(JN,R8);JN.prototype.getApiPaths=function(){return Krw};
JN.prototype.getExtension=function(u){return _.b(u,_.C1)};
JN.prototype.JSC$12977_buildRequest=function(u,K){K.token&&(u.continuation=K.token);var l,D;u==null||(l=u.context)==null||(D=l.user)==null||delete D.onBehalfOfUser};
JN.prototype.getRequestConfig=function(u){var K={},l;if(((l=this.getExtension(u))==null?void 0:l.sessionIndex)!==void 0){var D;K={authStrategy:{sessionIndex:(D=this.getExtension(u))==null?void 0:D.sessionIndex}}}return K};var jc=function(){};
_.c(jc,R8);jc.prototype.JSC$12977_getRequest=function(u){var K=this.getExtension(u),l=u="";if(K==null?0:K.popup)u="true";if(K==null?0:K.disableSignout)l="true";K={};return{input:"/getAccountSwitcherEndpoint",requestShell:yQ("/getAccountSwitcherEndpoint","GET",(K["X-YouTube-Delegation-Context"]=_.E3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),K["X-YouTube-Account-Switcher-Popup"]=u,K["X-YouTube-Account-Switcher-Disable-Signout"]=l,K)),innerTubeRequest:{}}};
jc.prototype.getApiPaths=function(){return[]};
jc.prototype.getExtension=function(u){return _.b(u,_.$cL)};
jc.prototype.JSC$12977_buildRequest=function(){};var B9=function(){};
_.c(B9,R8);B9.prototype.JSC$12977_getRequest=function(u){var K="/cross_account_channel_transfer";(u=this.getExtension(u))&&(K=DBw(K,{target_session:u.targetSessionIndex,source_rapt:u.sourceRapt,rapt:u.targetRapt}));return{input:K,requestShell:yQ(K,"GET"),innerTubeRequest:{}}};
B9.prototype.getApiPaths=function(){return[]};
B9.prototype.getExtension=function(u){return _.b(u,zbN)};
B9.prototype.JSC$12977_buildRequest=function(){};var pA=function(){};
_.c(pA,R8);pA.prototype.getApiPaths=function(){return zk2};
pA.prototype.isNavigationCommand=function(){return!0};
pA.prototype.getExtension=function(u){return _.b(u,_.Ux)};
pA.prototype.JSC$12977_buildRequest=function(u){var K=_.jy().get("gsml","");K&&(u.safetyModeLockerObfuscatedGaiaId=K);u.userInterfaceTheme=_.Nu(!0);_.kO()?u.deviceTheme="DEVICE_THEME_SELECTED":_.ulR()?u.deviceTheme="DEVICE_THEME_SUPPORTED":u.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var ij=function(){};
_.c(ij,R8);ij.prototype.getApiPaths=function(){return Krw};
ij.prototype.getExtension=function(u){return _.b(u,ebN)};
ij.prototype.JSC$12977_buildRequest=function(u,K){if(K&&K.requestType&&(u.requestType=K.requestType,K.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||K.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var l=K.nextUrl;l&&(_.CIo(l)||nT(l))&&(u.nextNavendpoint={urlEndpoint:{url:l}})}K&&K.channelSwitcherQuery&&(u.channelSwitcherQuery=K.channelSwitcherQuery);K&&K.triggerChannelCreation&&(u.triggerChannelCreation=K.triggerChannelCreation);var D;if(K==null?0:(D=K.contentOwnerConfig)==
null?0:D.externalContentOwnerId)u.contentOwnerConfig=K.contentOwnerConfig;u.callCircumstance=K&&K.requestType&&K.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var d,C;K=u==null?void 0:(d=u.context)==null?void 0:(C=d.user)==null?void 0:C.onBehalfOfUser;if(K!==void 0){u.obfuscatedSelectedGaiaId=K;var W,M;u==null||(W=u.context)==null||(M=W.user)==null||delete M.onBehalfOfUser}var q,v;if(d=u==null?void 0:(q=u.context)==null?void 0:(v=q.user)==null?
void 0:v.serializedDelegationContext)u.selectedSerializedDelegationContext=d};var Tq=function(){};
_.c(Tq,R8);Tq.prototype.getApiPaths=function(){return wsR};
Tq.prototype.getExtension=function(u){return _.b(u,baa)};
Tq.prototype.JSC$12977_buildRequest=function(u,K){K.profileOwnerExternalChannelId&&(u.profileOwnerExternalChannelId=K.profileOwnerExternalChannelId);K.profileCardContext&&(u.profileCardContext=K.profileCardContext)};var wI=function(){};
_.c(wI,R8);wI.prototype.getApiPaths=function(){return D1s};
wI.prototype.getExtension=function(u){return _.b(u,fjH)};
wI.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.params=K.params)};var Fy=function(){};
_.c(Fy,R8);Fy.prototype.getApiPaths=function(){return Mow};
Fy.prototype.getExtension=function(u){return _.b(u,_.kVH)};
Fy.prototype.JSC$12977_buildRequest=function(u,K){if(K=K.createBroadcastRequest)u.useMasks=K.useMasks,u.broadcastType=K.broadcastType,u.broadcastSource=K.broadcastSource,u.broadcastMetadata=K.broadcastMetadata,u.broadcastMetadataMask=K.broadcastMetadataMask,u.videoMetadata=K.videoMetadata,u.videoMetadataMask=K.videoMetadataMask,u.liveChatSettingsUpdate=K.liveChatSettingsUpdate,u.liveChatSettingsUpdateMask=K.liveChatSettingsUpdateMask,u.cloneVideoId=K.cloneVideoId,u.cloneWithOverrides=K.cloneWithOverrides,
u.targetEntity=K.targetEntity,u.scheduledRedirectMetadata=K.scheduledRedirectMetadata};var Vh=function(){};
_.c(Vh,R8);Vh.prototype.getApiPaths=function(){return riw};
Vh.prototype.getExtension=function(u){return _.b(u,wPA)};
Vh.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;K.params&&(u.params=K.params);l.questionText&&(u.questionText=l.questionText);l.optionText&&l.optionText.length>0&&(u.optionText=l.optionText)};var gI=function(){};
_.c(gI,R8);gI.prototype.getApiPaths=function(){return toa};
gI.prototype.getExtension=function(u){return _.b(u,ieS)};
gI.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.params=K.params)};var Nl=function(){};
_.c(Nl,R8);Nl.prototype.getApiPaths=function(){return Qi0};
Nl.prototype.getExtension=function(u){return _.b(u,J7S)};
Nl.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.params=K.params)};var kN=function(){};
_.c(kN,R8);kN.prototype.getApiPaths=function(){return Jia};
kN.prototype.getExtension=function(u){return _.b(u,jhw)};
kN.prototype.JSC$12977_buildRequest=function(u,K,l){K.params&&(u.params=K.params);K.continuation&&(u.continuation=K.continuation);l.currentPlayerState&&l.currentPlayerState.playerOffsetMs&&(u.currentPlayerState={playerOffsetMs:l.currentPlayerState.playerOffsetMs.toString()})};var ZN=function(){};
_.c(ZN,R8);ZN.prototype.getApiPaths=function(){return ji2};
ZN.prototype.getExtension=function(u){return _.b(u,PHm)};
ZN.prototype.JSC$12977_buildRequest=function(u,K,l){K.params&&(u.params=K.params);l.continuation&&(u.continuation=l.continuation);"hidden"in l&&(u.webClientInfo={isDocumentHidden:l.hidden});l.isInvalidationTimeoutRequest&&(u.isInvalidationTimeoutRequest=l.isInvalidationTimeoutRequest);l.invalidationPayload&&(K=QhB(_.Wa(rv(l.invalidationPayload))),u.invalidationPayloadLastPublishAtUsec=Ef(K,2));l.reloadActionPanel&&(u.reloadActionPanel=l.reloadActionPanel);l.fullReload&&(u.fullReload=l.fullReload);
l.currentPlayerState&&(u.currentPlayerState=l.currentPlayerState)};var YN=function(){};
_.c(YN,R8);YN.prototype.getApiPaths=function(){return m12};
YN.prototype.getExtension=function(u){return _.b(u,T3H)};
YN.prototype.JSC$12977_buildRequest=function(u,K){u.params=K.params};var Kj=function(){};
_.c(Kj,R8);Kj.prototype.getApiPaths=function(){return PK0};
Kj.prototype.getExtension=function(u){return _.b(u,YF2)};
Kj.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.params=K.params)};var lS=function(){};
_.c(lS,R8);lS.prototype.getApiPaths=function(){return Bj2};
lS.prototype.getExtension=function(u){return _.b(u,Aes)};
lS.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.params=K.params)};var Dr=function(){};
_.c(Dr,R8);Dr.prototype.getApiPaths=function(){return hk0};
Dr.prototype.getExtension=function(u){return _.b(u,FRS)};
Dr.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.params=K.params)};var dU=function(){};
_.c(dU,R8);dU.prototype.getApiPaths=function(){return LrA};
dU.prototype.getExtension=function(u){return _.b(u,VDw)};
dU.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.params=K.params)};var Cj=function(){};
_.c(Cj,R8);Cj.prototype.getApiPaths=function(){return sAA};
Cj.prototype.getExtension=function(u){return _.b(u,JeA)};
Cj.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.params=K.params)};var Il=function(){};
_.c(Il,R8);Il.prototype.getApiPaths=function(){return nRs};
Il.prototype.getExtension=function(u){return _.b(u,_.gvB)};
Il.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;K.params&&(u.params=K.params);l.client_message_id&&(u.clientMessageId=l.client_message_id);l.recaptcha_token&&(u.recaptchaToken=l.recaptcha_token);l.rich_message&&l.rich_message.text_segments?(K=l.rich_message.text_segments.map(function(D){var d={};D.text&&(d.text=D.text);D.emoji_id&&(d.emojiId=D.emoji_id);return d}),u.richMessage={textSegments:K}):l.message&&(u.message=l.message);
l.currentPlayerState&&(u.currentPlayerState=l.currentPlayerState)};var yd=function(){};
_.c(yd,R8);yd.prototype.getApiPaths=function(){return rAw};
yd.prototype.getExtension=function(u){return _.b(u,N3C)};
yd.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.params=K.params)};var sN=function(){};
_.c(sN,R8);sN.prototype.getApiPaths=function(){return xRa};
sN.prototype.getExtension=function(u){return _.b(u,ZeB)};
sN.prototype.JSC$12977_buildRequest=function(u,K,l){K.isUserInitiated&&(u.isUserInitiated=K.isUserInitiated);K.initiationSource&&(u.initiationSource=K.initiationSource);l.locationInfo&&(u.context.client.locationInfo=l.locationInfo)};var ol=function(){};
_.c(ol,R8);ol.prototype.getApiPaths=function(){return EMw};
ol.prototype.getExtension=function(u){return _.b(u,ZWa)};
ol.prototype.JSC$12977_buildRequest=function(u,K,l){K.metadataUpdateRequest&&(K=K.metadataUpdateRequest,u.encryptedVideoId=K.encryptedVideoId,K.liveChat&&(K=K.liveChat,u.liveChat||(u.liveChat={}),K.performAsExternalChannelId&&(u.liveChat.performAsExternalChannelId=K.performAsExternalChannelId),K.source&&(u.liveChat.source=K.source)));var D;if(l==null?0:(D=l.liveChat)==null?0:D.liveChatSettings)u.liveChat||(u.liveChat={}),l=l.liveChat.liveChatSettings,u.liveChat.newLiveChatSettings=l,u.liveChat.newLiveChatSettingsMask||
(u.liveChat.newLiveChatSettingsMask={}),l.emojiReactionSet&&(u.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var Wm=function(){};
_.c(Wm,R8);Wm.prototype.getApiPaths=function(){return URa};
Wm.prototype.getExtension=function(u){return _.b(u,_.KKs)};
Wm.prototype.JSC$12977_buildRequest=function(u,K,l){l.continuation?u.continuation=l.continuation:K.videoId&&(u.videoId=K.videoId);l.clientParams&&(u.clientParams=l.clientParams)};var Hm=function(){};
_.c(Hm,R8);Hm.prototype.getApiPaths=function(){return psN};
Hm.prototype.getExtension=function(u){return _.b(u,_.EU)};
Hm.prototype.JSC$12977_buildRequest=function(u,K){u.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";u.fetchCommentsParams={};K.videoId&&(u.fetchCommentsParams.encryptedVideoId=K.videoId);K.postId&&(u.fetchCommentsParams.postId=K.postId);K.externalChannelId&&(u.fetchCommentsParams.externalChannelId=K.externalChannelId);K.linkedCommentId&&(u.fetchCommentsParams.linkedCommentId=K.linkedCommentId);(0,_.k$.isEmpty)(u.fetchCommentsParams)&&delete u.fetchCommentsParams};var Mc=function(){};
_.c(Mc,R8);Mc.prototype.getApiPaths=function(){return MZ};
Mc.prototype.JSC$12977_buildRequest=function(u){u.browseId="FEnotifications_inbox"};
Mc.prototype.getExtension=function(u){return _.b(u,_.Ux)};var qc=function(){};
_.c(qc,R8);qc.prototype.getApiPaths=function(){return psN};
qc.prototype.JSC$12977_buildRequest=function(u,K){K.signal==="GET_NOTIFICATIONS_MENU"&&(u.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");K.ctoken&&(u.ctoken=K.ctoken)};
var i9G=function(){};
_.c(i9G,qc);i9G.prototype.getExtension=function(u){return _.b(u,_.Ux)};
var TqE=function(){};
_.c(TqE,qc);TqE.prototype.getExtension=function(u){return _.b(u,aCm)};var $Q=function(){};
_.c($Q,R8);$Q.prototype.getApiPaths=function(){return gMk};
$Q.prototype.getExtension=function(u){return _.b(u,_.Ux)};
$Q.prototype.JSC$12977_buildRequest=function(){};var nj=function(){};
_.c(nj,R8);nj.prototype.getApiPaths=function(){return ulC};
nj.prototype.getExtension=function(u){return _.b(u,mAa)||void 0};
nj.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.params=K.params);K.secondaryParams&&(u.secondaryParams=K.secondaryParams)};var rU=function(){};
_.c(rU,R8);rU.prototype.getApiPaths=function(){return K9N};
rU.prototype.getExtension=function(u){return _.b(u,Qxw)};
rU.prototype.JSC$12977_buildRequest=function(u,K){K.undo&&(u.undo=K.undo);K.serializedOptOut&&(u.serializedOptOut=K.serializedOptOut);K.serializedRecordInteractionsRequest&&(u.serializedRecordInteractionsRequest=K.serializedRecordInteractionsRequest)};var Gs=function(){};
_.c(Gs,R8);Gs.prototype.getApiPaths=function(){return dRm};
Gs.prototype.getExtension=function(u){return _.b(u,P6a)};
Gs.prototype.JSC$12977_buildRequest=function(u,K){K.serializedInteractionsRequest&&(u.serializedRecordNotificationInteractionsRequest=K.serializedInteractionsRequest)};var tS=function(){};
_.c(tS,R8);tS.prototype.getApiPaths=function(){return DvH};
tS.prototype.getExtension=function(u){return _.b(u,bjq)};
tS.prototype.JSC$12977_buildRequest=function(u,K,l){K=K===void 0?{}:K;l=l===void 0?{}:l;K.videoId?u.videoId=K.videoId:K.playlistId&&(u.playlistId=K.playlistId);var D,d=(D=K.offlineWebClientEligibility)!=null?D:l.offlineWebClientEligibility;d&&(u.offlineWebClientEligibility=d);var C;if(D=(C=K.preferredFormatType)!=null?C:l.preferredFormatType)u.preferredFormatType=D;var W;if(C=(W=K.lastOfflineQualitySettingsSavedMs)!=null?W:l.lastOfflineQualitySettingsSavedMs)u.lastOfflineQualitySettingsSavedMs=C;
K.params&&(u.params=K.params)};var xQ=function(){};
_.c(xQ,R8);xQ.prototype.getApiPaths=function(){return nt};
xQ.prototype.getExtension=function(u){return _.b(u,_.C1)};
xQ.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;K.token&&(u.continuation=K.token);l.formData&&(u.formData=l.formData)};var SW=function(){};
_.c(SW,R8);SW.prototype.getApiPaths=function(){return nt};
SW.prototype.getExtension=function(u){return _.b(u,wS2)};
SW.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;u.continuation=l.continuation};var bS=function(){};
_.c(bS,R8);bS.prototype.getApiPaths=function(){return nt};
bS.prototype.getExtension=function(u){return _.b(u,_.An)};
bS.prototype.JSC$12977_buildRequest=function(u,K){var l,D=K.panelIdentifier||((l=K.identifier)==null?void 0:l.tag);D&&(u.panelId=D);var d;if((d=K.globalConfiguration)==null?0:d.params){var C;u.params=(C=K.globalConfiguration)==null?void 0:C.params}};
_.MN.Object.defineProperties(bS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ON=function(){};
_.c(ON,R8);ON.prototype.getApiPaths=function(){return nt};
ON.prototype.getExtension=function(u){return _.b(u,O7A)};
ON.prototype.JSC$12977_buildRequest=function(u,K){K.panelLoadingStrategy&&uTH(u,K.panelLoadingStrategy)};var cm=function(){};
_.c(cm,R8);cm.prototype.getApiPaths=function(){return nt};
cm.prototype.getExtension=function(u){return _.b(u,NCs)};
cm.prototype.JSC$12977_buildRequest=function(u,K){K.loadingStrategy&&uTH(u,K.loadingStrategy)};var al=function(){};
_.c(al,R8);al.prototype.getApiPaths=function(){return nt};
al.prototype.getExtension=function(u){return _.b(u,_.wE)};
al.prototype.JSC$12977_buildRequest=function(u,K){K.panelLoadingStrategy&&uTH(u,K.panelLoadingStrategy)};var zs=function(){};
_.c(zs,R8);zs.prototype.getApiPaths=function(){return nt};
zs.prototype.getExtension=function(u){return _.b(u,k7N)};
zs.prototype.JSC$12977_buildRequest=function(u,K){var l,D=(l=K.contentSourcePanelIdentifier)==null?void 0:l.tag;D&&(u.panelId=D);var d;if((d=K.globalConfiguration)==null?0:d.params){var C;u.params=(C=K.globalConfiguration)==null?void 0:C.params}};var eW=function(){};
_.c(eW,R8);eW.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
eW.prototype.getExtension=function(u){return _.b(u,Zkw)};
eW.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.params=K.params)};var Rl=function(){};
_.c(Rl,R8);Rl.prototype.getApiPaths=function(){return RUR};
Rl.prototype.getExtension=function(u){return _.b(u,XzH)};
Rl.prototype.JSC$12977_buildRequest=function(u,K){K.externalChannelId&&(u.externalChannelId=K.externalChannelId);K.superChatAction&&(u.superChatAction=K.superChatAction);K.superStickersAction&&(u.superStickersAction=K.superStickersAction)};var UN=function(){};
_.c(UN,R8);UN.prototype.getApiPaths=function(){return eks};
UN.prototype.getExtension=function(u){return _.b(u,T02)||_.b(u,cSy)};
UN.prototype.JSC$12977_buildRequest=function(u,K){K.videoIds?u.videoIds=K.videoIds:K.videoId&&(u.videoIds=[K.videoId]);K.playlistId&&(u.playlistId=K.playlistId);K.params&&(u.params=K.params);u.excludeWatchLater=!1};var fj=function(){};
_.c(fj,R8);fj.prototype.getApiPaths=function(){return vMa};
fj.prototype.getExtension=function(u){return _.b(u,_.Ct)};
fj.prototype.JSC$12977_buildRequest=function(u,K,l){l.create_playlist_title?u.title=l.create_playlist_title:K.title&&(u.title=K.title);if(l.create_playlist_privacy_status&&typeof l.create_playlist_privacy_status==="number"){a:{var D=l.create_playlist_privacy_status;if(D!==0){if(D===1){D="PUBLIC";break a}if(D===2){D="UNLISTED";break a}}D="PRIVATE"}u.privacyStatus=D}else K.privacyStatus&&(u.privacyStatus=K.privacyStatus);l.create_playlist_description&&(u.description=l.create_playlist_description);K.videoIds&&
(u.videoIds=K.videoIds);K.params&&(u.params=K.params);K.sourcePlaylistId&&(u.sourcePlaylistId=K.sourcePlaylistId)};var Qd=function(){};
_.c(Qd,R8);Qd.prototype.getApiPaths=function(){return x12};
Qd.prototype.getExtension=function(u){return _.b(u,AWH)};
Qd.prototype.JSC$12977_buildRequest=function(u,K){u.playlistId=K.playlistId};var Pm=function(){};
_.c(Pm,R8);Pm.prototype.getApiPaths=function(){return ilR};
Pm.prototype.getExtension=function(u){return _.b(u,ajw)};
Pm.prototype.JSC$12977_buildRequest=function(u,K){K.playlistId&&(u.playlistId=K.playlistId);K.params&&(u.params=K.params)};var JS=function(){};
_.c(JS,R8);JS.prototype.getApiPaths=function(){return DRa};
JS.prototype.getExtension=function(u){return _.b(u,_.LP)||void 0};
JS.prototype.JSC$12977_buildRequest=function(u,K){K.actions&&(u.actions=K.actions);K.params&&(u.params=K.params);K.playlistId&&(u.playlistId=K.playlistId)};var jW=function(){};
_.c(jW,R8);_.I=jW.prototype;_.I.getApiPaths=function(){return C3N};
_.I.getExtension=function(u){return _.b(u,_.TO)};
_.I.JSC$12977_buildRequest=function(u,K){K.videoId&&(u.playerRequest={videoId:K.videoId},K.playerParams&&(u.playerRequest.params=K.playerParams),K.racyCheckOk&&(u.playerRequest.racyCheckOk=!!K.racyCheckOk),K.contentCheckOk&&(u.playerRequest.contentCheckOk=!!K.contentCheckOk));K.params&&(u.params=K.params);K.inputType&&(u.inputType=K.inputType);u.disablePlayerResponse=!0};
_.I.getRequestConfig=function(u){var K;(u=this.JSC$12984_getStoreKey(u))&&(K={storeStrategy:{storeKey:u}});_.S("web_log_reels_ticks")&&(K=K||{},K.requestTick="r_wrs",K.responseTick="r_wrr");return K};
_.I.JSC$12984_getStoreKey=function(u){u=this.getExtension(u);if(_.S("shorts_controller_retrieve_seedless_sequence_v2")){if((u==null?void 0:u.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.sx("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.S("web_shorts_prefetch_service_enabled")&&u!=null&&u.videoId){var K={videoId:u.videoId};u.params&&(K.params=u.params);return _.sx("reel_item_watch",K)}};var Bm=function(){};
_.c(Bm,R8);_.I=Bm.prototype;_.I.getApiPaths=function(){return I1R};
_.I.getExtension=function(u){return _.b(u,_.TO)};
_.I.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;u.sequenceParams=K.sequenceParams;var D;((D=l)==null?0:D.contentPlaybackContext)&&_.S("web_shorts_prefetch_service_enabled")&&(u.playbackContext={contentPlaybackContext:l.contentPlaybackContext})};
_.I.JSC$12984_getStoreKey=function(u){if(_.S("web_enable_delay_shorts_sequence_call")||_.S("shorts_controller_retrieve_seedless_sequence_v2"))if(u=this.getExtension(u),u==null?0:u.sequenceParams)return _.sx("reel_watch_sequence",{sequenceParams:u.sequenceParams})};
_.I.getRequestConfig=function(u){u=this.JSC$12984_getStoreKey(u);var K;u&&(K={storeStrategy:{storeKey:u}});_.S("reel_watch_sequence_request_log_ticks")&&(K=K||{},K.requestTick="r_wsrs",K.responseTick="r_wsrr",K.processorTick="r_wsrp");return K};
var pj=function(){};
_.c(pj,R8);pj.prototype.getApiPaths=function(){return I1R};
pj.prototype.getExtension=function(u){return _.b(u,_.C1)};
pj.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;K.token&&(u.continuation=K.token);var D;((D=l)==null?0:D.contentPlaybackContext)&&_.S("web_shorts_prefetch_service_enabled")&&(u.playbackContext={contentPlaybackContext:l.contentPlaybackContext})};
pj.prototype.getRequestConfig=function(u){u=this.JSC$12984_getStoreKey(u);var K;u&&(K={storeStrategy:{storeKey:u}});_.S("reel_watch_sequence_request_log_ticks")&&(K=K||{},K.requestTick="r_wsrs",K.responseTick="r_wsrr",K.processorTick="r_wsrp");return K};var iS=function(){};
_.c(iS,R8);iS.prototype.getApiPaths=function(){return ci2};
iS.prototype.getExtension=function(u){return _.b(u,_.E4w)};
iS.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;K.flagAction&&(u.action=K.flagAction);K.flagRequestType&&(u.flagRequestType=K.flagRequestType);K.additionalDetailCheckboxChecked&&(u.additionalDetailCheckboxChecked=K.additionalDetailCheckboxChecked);K.legalCheckboxChecked&&(u.legalCheckboxChecked=K.legalCheckboxChecked);K={};l.flag_issue_type!==void 0&&(K.issue=l.flag_issue_type);l.flag_affiliation!==void 0&&(K.affiliation=l.flag_affiliation);l.flag_full_name&&(K.fullName=l.flag_full_name);
Object.keys(K).length&&(u.legalReportDetails=K);if(l.flag_description||l.text)u.userComments=l.flag_description||l.text;K={};l.minutes!==void 0&&l.seconds!==void 0&&(K.minutes=l.minutes,K.seconds=l.seconds);l.vss_id&&(K.vssId=l.vss_id);Object.keys(K).length&&(u.videoReportDetails=K);K={};l.video_ids&&(K.videoIds=l.video_ids);l.impersonated_channel_url&&(K.impersonatedChannelUrl=l.impersonated_channel_url);Object.keys(K).length&&(u.channelAbuseReportDetails=K)};
_.MN.Object.defineProperties(iS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ts=function(){};
_.c(Ts,R8);Ts.prototype.getApiPaths=function(){return fPw};
Ts.prototype.getExtension=function(u){return _.b(u,OeS)};
Ts.prototype.JSC$12977_buildRequest=function(u,K){K.blockedForKidsContent&&(u.blockedForKidsContent=K.blockedForKidsContent)};var wU=function(){};
_.c(wU,R8);wU.prototype.getApiPaths=function(){return oRs};
wU.prototype.getExtension=function(u){return _.b(u,OjH)};
wU.prototype.JSC$12977_buildRequest=function(u,K,l){u.params=K.params;l.impersonated_channel_url&&(u.impersonatedChannelUrl=l.impersonated_channel_url)};var FS=function(){};
_.c(FS,R8);FS.prototype.getApiPaths=function(){return AiN};
FS.prototype.getExtension=function(u){return _.b(u,_.c7N)};
FS.prototype.JSC$12977_buildRequest=function(u,K){K.items&&(u.items=K.items);K.kidGaiaId&&(u.kidGaiaId=K.kidGaiaId)};var Vd=function(){};
_.c(Vd,R8);Vd.prototype.getApiPaths=function(){return Rka};
Vd.prototype.getExtension=function(u){return _.b(u,_.pdB)};
Vd.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.params=K.params);K.targetId&&(u.targetId=K.targetId)};var gU=function(){};
_.c(gU,R8);gU.prototype.getApiPaths=function(){return q8C};
gU.prototype.getExtension=function(u){return _.b(u,zjA)};
gU.prototype.JSC$12977_buildRequest=function(u,K){K.externalVideoId&&(u.externalVideoId=K.externalVideoId);K.query&&(u.query=K.query);K.sourceTimelines&&(u.sourceTimelines=K.sourceTimelines)};var Nc=function(){};
_.c(Nc,R8);Nc.prototype.getApiPaths=function(){return $RR};
Nc.prototype.getExtension=function(u){return _.b(u,_.C1)||void 0};
Nc.prototype.JSC$12977_buildRequest=function(u,K){K.token&&(u.continuation=K.token)};
_.woH=function(){};
_.c(_.woH,R8);_.I=_.woH.prototype;_.I.getApiPaths=function(){return $RR};
_.I.getExtension=function(u){return _.b(u,_.BI)||void 0};
_.I.isNavigationCommand=function(){return!0};
_.I.JSC$12984_getStoreKey=function(u,K){K=K===void 0?{}:K;if(!K.disableCache&&(u=this.getExtension(u))&&u.query)return K={query:u.query},u.params&&(K.params=u.params),_.sx("search",K)};
_.I.JSC$12977_buildRequest=function(u,K,l){K.query&&(u.query=K.query);K.params&&(u.params=K.params);if(!_.S("web_forward_suggest_stats_killswitch")){var D=_.b(K,G72);D&&(u.suggestStats=D)}var d;!_.S("kevlar_searchbox_stats_killswitch")&&((d=l.tempData)==null?0:d.gs_l)&&!_.b(K,G72)&&(u.webSearchboxStatsUrl="/search?oq="+(l.tempData.oq||"")+"&gs_l="+l.tempData.gs_l);var C;if((C=l.tempData)==null?0:C.entityMid)K=u.suggestionSearchParams||{},K.entityMid=l.tempData.entityMid,u.suggestionSearchParams=K;
_.S("enable_desktop_vdcbg_components")&&(l=_.jy().getFlag(186),u.inlineSettingStatus=l?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.I.getRequestConfig=function(u,K){K=K===void 0?{}:K;u=this.JSC$12984_getStoreKey(u,K);var l;u&&(l={storeStrategy:{storeKey:u}});_.S("web_log_search_ticks_ks")||(l=l||{},l.requestTick="sr_s",l.responseTick="sr_r");return l};var kQ=function(){};
_.c(kQ,R8);kQ.prototype.getApiPaths=function(){return Frw};
kQ.prototype.getExtension=function(u){return _.b(u,IGB)};
kQ.prototype.JSC$12977_buildRequest=function(u,K){K.serializedGetSharingProviderDataParams&&(u.serializedGetSharingProviderDataParams=K.serializedGetSharingProviderDataParams)};var Zr=function(){};
_.c(Zr,R8);Zr.prototype.getApiPaths=function(){return Voa};
Zr.prototype.getExtension=function(u){return _.b(u,Ygm)};
Zr.prototype.JSC$12977_buildRequest=function(u,K){K.endpoint&&(u.endpoint=K.endpoint);K.action&&(u.action=K.action)};var YQ=function(){};
_.c(YQ,R8);YQ.prototype.getApiPaths=function(){return SeA};
YQ.prototype.getExtension=function(u){return _.b(u,Xd0)};
YQ.prototype.JSC$12977_buildRequest=function(u,K){u.videoId=K.videoId;K.scheduledRedirectMetadataSourceVideoId&&(u.scheduledRedirectMetadata={sourceVideoId:K.scheduledRedirectMetadataSourceVideoId})};var AS=function(){};
_.c(AS,R8);AS.prototype.getApiPaths=function(){return GzH};
AS.prototype.getExtension=function(u){return _.b(u,_.ATa)};
AS.prototype.JSC$12977_buildRequest=function(u,K){u.params=K.params;u.correctionText=K.correctionText};var XS=function(){};
_.c(XS,R8);XS.prototype.getApiPaths=function(){return uDL};
XS.prototype.getExtension=function(u){return _.b(u,_.ejB)};
XS.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.params=K.params);u.searchQuery=K.searchQuery;u.languageCode=K.languageCode;u.kind=K.kind;u.name=K.name;u.externalVideoId=K.externalVideoId};var mB=function(){};
_.c(mB,R8);mB.prototype.getApiPaths=function(){return JAB};
mB.prototype.getExtension=function(u){return _.b(u,suC)};
mB.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.params=K.params)};var hS=function(u){this.JSC$17971_storeWithEntities=u};
_.c(hS,R8);hS.prototype.getApiPaths=function(){return WrH};
hS.prototype.getExtension=function(u){return _.b(u,WHa)||_.b(u,MKm)};
hS.prototype.JSC$12977_buildRequest=function(u,K,l){l.client_data&&(u.clientData=l.client_data);if(K.commerceActionConfig){var D=K.commerceActionConfig;K=D.actionId;D=D.commerceActionParams;K&&(u.actionId=K);D&&(u.commerceActionParams=D)}else{var d=K.actionId,C=K.commerceActionParams;l=K.entityKeys;d&&(u.actionId=d);C&&(u.commerceActionParams=C);var W;K=(D=this.JSC$17971_storeWithEntities)==null?void 0:(W=D.getState())==null?void 0:W.entities;if(l&&K){D=[];W=_.y(l);for(l=W.next();!l.done;l=W.next())if(d=
l.value,l=_.OV(d).entityType,d=_.eZ(K,l,d))C={},D.push((C[l]=d,C));u.entityMutationPayloads=D}}};
hS.prototype.getRequestConfig=function(u){var K,l=(K=_.b(u,WHa))==null?void 0:K.requestSequenceType;if(l&&u.clickTrackingParams&&l!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:u.clickTrackingParams,sequenceType:l}}};
hS[vP]=[cU];var EN=function(){};
_.c(EN,R8);EN.prototype.getApiPaths=function(){return jAa};
EN.prototype.getExtension=function(u){return _.b(u,_.flm)};
EN.prototype.JSC$12977_buildRequest=function(u,K){K.feedbackData&&(u.feedbackData=K.feedbackData);K.params&&(u.itemParams=K.params)};
_.MN.Object.defineProperties(EN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Lj=function(){};
_.c(Lj,R8);Lj.prototype.getApiPaths=function(){return BPa};
Lj.prototype.getExtension=function(u){return _.b(u,Qum)};
Lj.prototype.JSC$12977_buildRequest=function(u,K,l){l.payments_payload&&(u.paymentsPayload=l.payments_payload);l.offer_params&&(u.offerParams=l.offer_params);K.transactionParams&&(u.transactionParams=K.transactionParams)};var uu=function(){};
_.c(uu,R8);uu.prototype.getApiPaths=function(){return pBk};
uu.prototype.getExtension=function(u){return _.b(u,_.Pf0)};
uu.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;K.buybucketParams&&(u.buybucketData={params:K.buybucketParams},K.stickerParams?u.buybucketData.stickerParams=K.stickerParams:(l.rich_chat_message?u.buybucketData.richChatMessage=l.rich_chat_message:l.chat_message_text&&(u.buybucketData.chatMessageText=l.chat_message_text),l.purchase_price_micros&&(u.buybucketData.purchasePriceMicros=l.purchase_price_micros.toString())));K.donationAmountMicros&&(u.tipAmountMicros=K.donationAmountMicros,
K.tipParams&&(u.tipParams=K.tipParams));K.offerParams&&(u.offerParams=K.offerParams);K.productData&&(u.productData=K.productData);K.transactionParams&&(u.transactionParams=K.transactionParams)};var KY=function(){};
_.c(KY,R8);KY.prototype.getApiPaths=function(){return iDa};
KY.prototype.getExtension=function(u){return _.b(u,BhH)};
KY.prototype.JSC$12977_buildRequest=function(u,K){K.updateFopParams&&(u.updateFopParams=K.updateFopParams)};var lu=function(){};
_.c(lu,R8);lu.prototype.getApiPaths=function(){return TP2};
lu.prototype.getExtension=function(u){return _.b(u,_.t3)};
lu.prototype.JSC$12977_buildRequest=function(u,K){K.couponCode&&(u.couponCode=K.couponCode);K.params&&(u.itemParams=K.params)};var Dx=function(){};
_.c(Dx,R8);Dx.prototype.getApiPaths=function(){return wBk};
Dx.prototype.getExtension=function(u){return _.b(u,_.Hoa)};
Dx.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;K.params&&(u.params=K.params);l.ctk&&(u.clientToken=l.ctk)};var d6=function(u){this.JSC$18006_storeWithEntities=u};
_.c(d6,R8);d6.prototype.getApiPaths=function(){return F92};
d6.prototype.getExtension=function(u){return _.b(u,_.yZ)};
d6.prototype.JSC$12977_buildRequest=function(u,K,l){l.purchase_price_micros&&(u.productData={pdgData:{purchasePriceMicros:l.purchase_price_micros.toString()}},l.rich_chat_message&&(u.productData.pdgData.richChatMessage=l.rich_chat_message),l.currency_code&&(u.productData.pdgData.currencyCode=l.currency_code));K.transactionParams&&(u.transactionParams=K.transactionParams);K.clientLocationContext&&(u.clientLocationContext=K.clientLocationContext);l.payments_payload&&(u.paymentsPayload=l.payments_payload);
l.funds_guarantee_callback_client_data&&(u.fundsGuaranteeCallbackClientData=l.funds_guarantee_callback_client_data);var D,d;l=(D=this.JSC$18006_storeWithEntities)==null?void 0:(d=D.getState())==null?void 0:d.entities;if(K.entityKeys&&l){D=[];K=_.y(K.entityKeys);for(d=K.next();!d.done;d=K.next()){var C=d.value;d=_.OV(C).entityType;if(C=_.eZ(l,d,C)){var W={};D.push((W[d]=C,W))}}u.entityMutationPayloads=D}};
d6[vP]=[cU];var CY=function(){};
_.c(CY,R8);CY.prototype.getApiPaths=function(){return V02};
CY.prototype.getExtension=function(u){return _.b(u,JQA)};
CY.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;l.backend_analytics&&(u.serializedBackendAnalyticsEvent=l.backend_analytics);K.offerParams&&(u.offerParams=K.offerParams)};var I3=function(){};
_.c(I3,R8);I3.prototype.getApiPaths=function(){return TP2};
I3.prototype.getExtension=function(u){return _.b(u,ppb)};
I3.prototype.JSC$12977_buildRequest=function(u,K){K.params&&(u.itemParams=K.params)};var yA=function(){};
_.c(yA,R8);yA.prototype.getApiPaths=function(){return gRw};
yA.prototype.getExtension=function(u){return _.b(u,_.vKw)};
yA.prototype.JSC$12977_buildRequest=function(u,K,l){l.resume_time_ms&&(u.resumeTimeMs=l.resume_time_ms);K.pauseParams&&(u.pauseParams=K.pauseParams)};var sY=function(){};
_.c(sY,R8);sY.prototype.getApiPaths=function(){return NP0};
sY.prototype.getExtension=function(u){return _.b(u,_.jua)};
sY.prototype.JSC$12977_buildRequest=function(u,K,l){l=l===void 0?{}:l;l.c&&(u.redeemCode=l.c);l.rd&&(u.riskData=l.rd);l.ctk&&(u.clientToken=l.ctk)};var o3=function(){};
_.c(o3,R8);o3.prototype.getApiPaths=function(){return kzR};
o3.prototype.getExtension=function(u){return _.b(u,_.GFC)};
o3.prototype.JSC$12977_buildRequest=function(u,K){K.resumeParams&&(u.resumeParams=K.resumeParams)};var WY=function(u,K){this.clientName=u;this.defaultExpirationDelayMs=K};
WY.prototype.put=function(u,K){var l=this,D;return _.H(function(d){D=Object.assign({},K.data);D.key=u;D.clientName=l.clientName;D.expireTimestampMs===void 0&&(D.expireTimestampMs=(Math.round((0,_.vA)())+l.defaultExpirationDelayMs).toString());return d.return(l.putInternal(u,D))})};
WY[vP]=[FJ,LsH];var Fb6=function(){WY.apply(this,arguments);this.JSC$18036_responseStore=new Map};
_.c(Fb6,WY);_.I=Fb6.prototype;_.I.get=function(u){var K=this;return _.H(function(l){return l.return(RA(K,u))})};
_.I.putInternal=function(u,K){var l=this,D,d,C;return _.H(function(W){D=l.defaultExpirationDelayMs;K.expireTimestampMs&&(D=Number(K.expireTimestampMs)-Math.round((0,_.vA)()),d=_.Sg("mweb_override_response_store_expiration_ms"),d>0&&d<D&&(D=d));C=setTimeout(function(){l.remove(u)},D);
l.JSC$18036_responseStore.set(u,{entryData:K,timer:C});_.TG(W)})};
_.I.remove=function(u){var K=this;return _.H(function(l){Vr_(K,u);_.TG(l)})};
_.I.removeAll=function(){var u=this;return _.H(function(K){u.JSC$18036_responseStore.forEach(function(l){clearTimeout(l.timer)});
u.JSC$18036_responseStore.clear();_.TG(K)})};
_.I.has=function(u){return!!this.JSC$18036_responseStore.get(u)};
_.I.getKeys=function(){return this.JSC$18036_responseStore.keys()};
var RA=function(u,K){if(u=u.JSC$18036_responseStore.get(K))return new _.e0(u.entryData)},Vr_=function(u,K){var l=u.JSC$18036_responseStore.get(K);
l&&(clearTimeout(l.timer),u.JSC$18036_responseStore.delete(K))};var KOo;var dHn=function(u,K,l){WY.call(this,u,K);this.token=l};
_.c(dHn,WY);_.I=dHn.prototype;_.I.get=function(u){var K=this,l,D;return _.H(function(d){return d.nextAddress==1?d.yield(DH9(K.token),2):d.nextAddress!=3?(l=d.yieldResult,d.yield(l.get("ResponseStore",[u,K.clientName]),3)):(D=d.yieldResult)?d.return(new _.e0(D)):d.return(void 0)})};
_.I.putInternal=function(u,K){var l=this,D;return _.H(function(d){if(d.nextAddress==1)return d.yield(DH9(l.token),2);D=d.yieldResult;return d.yield(D.put("ResponseStore",K),0)})};
_.I.remove=function(u){var K=this,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(DH9(K.token),2);l=D.yieldResult;return D.return(l.delete("ResponseStore",[u,K.clientName]))})};
_.I.removeAll=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1)return l.yield(DH9(u.token),2);K=l.yieldResult;return l.yield(G9B(K,IDBKeyRange.only(u.clientName)),0)})};
_.I.has=function(){throw Error("Xi");};_.HY=new _.G$("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var gyB=function(u){var K;this.stateTagsData=(K=u.responseContext)==null?void 0:K.stateTags},Nq2=function(u){var K;
return((K=u.stateTagsData)==null?void 0:K.stateTagsModified)||[]};var kh_;kh_=function(u){this.JSC$18049_responseStore=u};
_.da=function(u,K,l){if(!_.S("state_tags_killswitch")){var D=new gyB(K);if(Nq2(D).length>0){var d=u.JSC$18049_responseStore.getKeys();d=_.y(d);for(var C=d.next();!C.done;C=d.next()){C=C.value;var W=RA(u.JSC$18049_responseStore,C);if(W){var M=_.tn(W);a:{var q=void 0;W=Nq2(D);M=((q=(new gyB(M)).stateTagsData)==null?void 0:q.relevantStateTags)||[];q=_.y(M);for(M=q.next();!M.done;M=q.next())if(M=M.value,M.stateTag!=null&&W.includes(M.stateTag)&&M.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){W=
!0;break a}W=!1}W&&Vr_(u.JSC$18049_responseStore,C)}}}}var v;D=(v=K.responseContext)==null?void 0:v.maxAgeSeconds;l&&D&&Number(D)>0&&(K=eU(K,D),u.JSC$18049_responseStore.put(l,new _.e0(K)))};
kh_.prototype.handleResponse=function(u,K){if(!K)throw Error("Yi");var l,D;K=(l=K.config)==null?void 0:(D=l.storeStrategy)==null?void 0:D.storeKey;_.da(this,u,K)};
kh_[vP]=[_.zz];_.HBZ=new _.G$("STORE_RESPONSE_PROCESSOR_TOKEN");var Z9_=function(u){this.JSC$18052_responseStore=u};
Z9_.prototype.handleResponse=function(u,K){if(K.input.match(_.qu(I1R))){var l;if(u==null?0:(l=u.entries)==null?0:l.length)for(u=_.y(u.entries),K=u.next();!K.done;K=u.next()){l=K.value.command;var D=void 0;K=(D=_.b(l,_.TO))==null?void 0:D.unserializedPrefetchData;if(!l||!K)break;D=(new jW).JSC$12984_getStoreKey(l);var d=_.b(K,xAR),C=void 0,W=void 0,M=void 0,q=_.Sg("web_shorts_prefetch_service_ttl_seconds")>0?_.Sg("web_shorts_prefetch_service_ttl_seconds"):Number((M=(C=d)==null?void 0:(W=C.responseContext)==
null?void 0:W.maxAgeSeconds)!=null?M:3600);D&&q>0&&(d=eU(d,q),this.JSC$18052_responseStore.put(D,new _.e0(d)));l=(new JT).JSC$12984_getStoreKey(l);K=_.b(K,dAH);C=d=D=void 0;W=_.Sg("web_shorts_prefetch_service_ttl_seconds")>0?_.Sg("web_shorts_prefetch_service_ttl_seconds"):Number((C=(D=K)==null?void 0:(d=D.responseContext)==null?void 0:d.maxAgeSeconds)!=null?C:3600);l&&W>0&&(K=eU(K,W),this.JSC$18052_responseStore.put(l,new _.e0(K)))}}};
Z9_[vP]=[_.zz];var YZB=function(u){this.innertubeTransportService=u};
YZB[vP]=[_.md];var AH_=new _.G$("SUBMIT_API_SERVICE_TOKEN");var MF=function(){this.scheduler=_.k5()},Xo6;
MF.prototype.pause=function(){throw Error("Zi");};
MF.prototype.resume=function(){throw Error("Zi");};
MF.prototype.queue=function(u){var K=this,l=_.MX(),D=_.Ve(this.scheduler,function(){try{var d;if(_.Pb.instance)var C=_.Pb.instance;else{var W=new _.wv("Error: Unexpected uninitialized CommandHandler.");_.Xm(W);C=void 0}(d=C)==null||d.resolveCommand(u.command);l.resolve()}catch(M){l.reject(M)}});
l.promise.thenCatch(function(d){d instanceof _.dr&&K.scheduler.cancelJob(D)});
return l.promise};
MF.prototype.queueAll=function(u){var K=new Map;u=_.y(u);for(var l=u.next();!l.done;l=u.next())l=l.value,K.set(l.id,this.queue(l));return K};var hqI=function(u,K){var l=this;this.taskModel=u;this.onTaskCancelledCallback=K;this.resolver=_.MX();u=u.proto.prefetchConfig;if(!u)throw Error("$i");if(!u.prefetchAction)throw Error("aj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(D){D instanceof _.dr&&(mwH(l,l.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),l.onTaskCancelledCallback(l.taskModel.id,l.jobId),l.tick("pcc"));
throw D;});
this.timerName=this.taskModel.id;_.Ys(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
hqI.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 mwH=function(u,K){_.Zy({prefetchInfo:{cancellationReason:K}},u.timerName)};
hqI.prototype.tick=function(u){_.As(u,void 0,this.timerName)};var $6=function(){var u=this;this.scheduler=_.k5();this.maxInflightTasks=_.Sg("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Sg("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new FQw;this.onTaskCancelled=function(K,l){l&&u.scheduler.cancelJob(l);Eyp(u,K);qF(u,3)}},Lbo=function(){$6.instance||($6.instance=new $6);
return $6.instance};
$6.prototype.pause=function(){this.prefetchCoordinatorState=0};
$6.prototype.resume=function(){qF(this,0)};
$6.prototype.queue=function(u){u=uHi(this,u);qF(this,1);return u};
$6.prototype.queueAll=function(u){var K=new Map;u=_.y(u);for(var l=u.next();!l.done;l=u.next())l=l.value,K.set(l.id,uHi(this,l));qF(this,1);return K};
var uHi=function(u,K){var l=u.allPrefetchTasks.get(K.id);if(l)return l.cancellablePromise;try{var D=new hqI(K,u.onTaskCancelled)}catch(C){return _.YU(C)}l=D;l.tick("pcq");var d={prefetchInfo:{taskId:l.taskModel.id,isPrefetch:!0,fetchAction:l.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:l.taskModel.command.clickTrackingParams}};l.taskModel.csn&&(d.clientScreenNonce=l.taskModel.csn);_.Zy(d,l.timerName);u.allPrefetchTasks.set(K.id,D);u.drainingHeap.insert(-D.getPriority(),D);return D.cancellablePromise},
qF=function(u,K){u.prefetchCoordinatorState===K&&(u.prefetchCoordinatorState=2,Kap(u))},Kap=function(u){for(var K={};u.prefetchCoordinatorState!==0;K={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(u.inflightPrefetchTasks.size>=u.maxInflightTasks){u.prefetchCoordinatorState=3;break}K.prefetchTask$jscomp$1=u.drainingHeap.remove();if(!K.prefetchTask$jscomp$1){u.prefetchCoordinatorState=1;break}K.taskId$jscomp$3=K.prefetchTask$jscomp$1.taskModel.id;if(u.allPrefetchTasks.has(K.taskId$jscomp$3)){var l=-1;u.coordinatorTimeoutMs>0&&(l=_.Ve(u.scheduler,function(D){return function(){nY(u,D.taskId$jscomp$3,Error("bj"))}}(K),u.coordinatorTimeoutMs));
u.inflightPrefetchTasks.set(K.taskId$jscomp$3,l);if(!u.JSC$18070_commandHandler){if(!_.Pb.instance){nY(u,K.taskId$jscomp$3,Error("cj"));continue}u.JSC$18070_commandHandler=_.Pb.instance}a:switch(K.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":l=1;break a;default:l=0}K.prefetchTask$jscomp$1.jobId=u.scheduler.addJob(function(D){return function(){D.prefetchTask$jscomp$1.tick("pcr");try{u.JSC$18070_commandHandler.resolveCommand(D.prefetchTask$jscomp$1.taskModel.command)||
nY(u,D.taskId$jscomp$3,Error("dj"))}catch(d){nY(u,D.taskId$jscomp$3,d)}}}(K),l,0)}}},lA_=function(u,K){(K=Eyp(u,K))!=null&&(K.resolver.resolve(),K.tick("pce"));
qF(u,3)},nY=function(u,K,l){(K=Eyp(u,K,l))!=null&&(K.resolver.reject(l),K.tick("pcc"),mwH(K,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Sg("prefetch_coordinator_error_logging_sampling_rate")&&(l=new _.wv("Prefetch Command failed.",K.taskModel.id,l.message),_.Xm(l)));
qF(u,3)},Eyp=function(u,K,l){var D=u.allPrefetchTasks.get(K);
D?((l=u.inflightPrefetchTasks.get(K))&&l!==-1&&u.scheduler.cancelJob(l),u.inflightPrefetchTasks.delete(K),u.allPrefetchTasks.delete(K)):_.hV(new _.wv("Unexpected missing prefetch task when deleting task.",K,l==null?void 0:l.message));return D};var DSp=function(u,K,l,D,d){this.id=u;this.triggerOn=K;this.cancelOn=l;this.command=D;this.proto=d};
_.MN.Object.defineProperties(DSp.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var dS_=function(){this.JSC$18075_prefetchCoordinator=Lbo();Xo6||(Xo6=new MF);this.defaultCoordinator=Xo6},CkG;
dS_.getInstance=function(){CkG||(CkG=new dS_);return CkG};
dS_.prototype.get=function(u){switch(u){case 0:return this.JSC$18075_prefetchCoordinator;default:return this.defaultCoordinator}};var r6=function(){this.coordinatorSupplier=dS_.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},sCI=function(u){var K=_.AC()||void 0,l=Object.keys(IAI)[0];
if(l){var D=u.taskIdByTriggerId.get(l);if(D!=null){u.taskIdByTriggerId.delete(l);l=[];D=_.y(D);for(var d=D.next();!d.done;d=D.next())if(d=u.tasks.get(d.value))K!=="UNDEFINED_CSN"&&(d.csn=K),l.push(d);l=yZq(l);K=[];l=_.y(l);for(D=l.next();!D.done;D=l.next()){d=_.y(D.value);D=d.next().value;d=d.next().value;D=u.coordinatorSupplier.get(D).queueAll(d);D=_.y(D);var C=D.next();for(d={};!C.done;d={taskId$jscomp$9:void 0},C=D.next()){var W=_.y(C.value);C=W.next().value;W=W.next().value;d.taskId$jscomp$9=
C;C=W;K.push(d.taskId$jscomp$9);u.queuedPromisesByTask.set(d.taskId$jscomp$9,_.Ne(C,function(M){return function(){yRB(u,M.taskId$jscomp$9)}}(d)))}}}}else _.hV(new _.wv("Unexpected malformed TriggerEvent."))};
r6.prototype.trigger=function(u,K){var l=this,D=this.tasks.get(u);if(!D||this.queuedPromisesByTask.has(u))return!1;o0E(this,u,D.triggerOn);K!=="UNDEFINED_CSN"&&(D.csn=K);K=this.coordinatorSupplier.get(D.taskType).queue(D);this.queuedPromisesByTask.set(u,_.Ne(K,function(){yRB(l,u)}));
return!0};
r6.prototype.cancel=function(u){var K=this.queuedPromisesByTask.get(u);if(K)K.cancel();else return yRB(this,u)};
var yRB=function(u,K){u.queuedPromisesByTask.delete(K);var l=u.tasks.get(K);if(!l)return!1;u.tasks.delete(K);o0E(u,K,l.triggerOn);(l=Idy(l.cancelOn))&&(u=u.taskIdByCancelId.get(l))&&u.delete(K);return!0},o0E=function(u,K,l){(l=Object.keys(l)[0])&&(u=u.taskIdByTriggerId.get(l))&&u.delete(K)};var IAI={taskRegistered:{}},vY=function(){r6.instance||(r6.instance=new r6);this.JSC$18084_taskManager=r6.instance};
_.c(vY,lq);
vY.prototype.resolveCommand=function(u){var K=this,l,D;return _.H(function(d){l=_.b(u,Sj2);if((D=l)==null||!D.tasks){var C=new _.wv("RegisterTasksCommand is missing tasks.");_.Xm(C);return d.return()}C=K.JSC$18084_taskManager;for(var W=_.y(l.tasks),M=W.next();!M.done;M=W.next())if(M=M.value,M=M.id&&M.triggerOn&&M.cancelOn&&M.command?new DSp(M.id,M.triggerOn,M.cancelOn,M.command,M):void 0,M){var q=Object.keys(M.triggerOn)[0];if(q){var v=Idy(M.cancelOn);v?(C.tasks.set(M.id,M),C.taskIdByTriggerId.has(q)||C.taskIdByTriggerId.set(q,
new Set),C.taskIdByTriggerId.get(q).add(M.id),C.taskIdByCancelId.has(v)||C.taskIdByCancelId.set(v,new Set),C.taskIdByCancelId.get(v).add(M.id)):_.hV(new _.wv("Unexpected malformed cancelOn field."))}else _.hV(new _.wv("Unexpected malformed triggerOn field."))}else _.hV(new _.wv("Unexpected malformed Task proto."));sCI(K.JSC$18084_taskManager);_.TG(d)})};var Wao={},HsI=(Wao.rendered={priority:0,callback:function(){var u={};u.numCpu=navigator.hardwareConcurrency;var K={};K.ramGb=_.lL.navigator.deviceMemory;var l={staticContext:{}};K.ramGb&&sYr(K.ramGb)&&(l.staticContext.memoryTotalKbytes=(K.ramGb*1048576).toString());u.numCpu&&sYr(u.numCpu)&&(l.staticContext.cpuCores=u.numCpu);if(_.S("web_enable_adaptive_appl_signal")){u={};K=_.Ex("rses_dpj");var D=_.Ex("rsef_dpj");K&&K>0&&D&&D>0&&(K=Math.ceil(D-K),K>0&&(u.loadLatency=K));u.loadLatency&&sYr(u.loadLatency)&&
(l.appL=u.loadLatency.toString())}_.YE("applicationStarted",l)}},Wao);var M2_=new _.G$("WINDOW_ON_ERROR"),qBE=new _.G$("ERROR_WEIGHT_MAPS"),$S2=new _.G$("INIT_ERROR");var n0G={},rRE=(n0G.initialized={priority:10,callback:function(u){u.injector.resolve($S2)()}},n0G);var v0B=function(){},Gwk=function(){var u=_.lZ("meta_logger_impl");
u||(u=new v0B,_.$L("meta_logger_impl",u));return u},t2I=function(){Gwk().csiSubscriptionKey=EOq("meta_logging_csi_event",function(u){var K=u.timerName;
if(u=u.timelineData){_.Ys(K,{startTime:u.startTime},K);u.infos&&_.Zy(u.infos,K);for(var l=_.y(Object.keys(u.ticks)),D=l.next();!D.done;D=l.next())D=D.value,_.As(D,u.ticks[D],K)}})};
v0B.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&K3r(this.csiSubscriptionKey)};var xSk={},SBp=(xSk.initialized={priority:10,callback:function(){t2I()}},xSk);var bs_=function(u,K){this.innertubeClientName=u;this.JSC$18100_prefCookie=K};
bs_.prototype.record=function(){if(_.S("web_li_record_binary_eval_tick")){var u=_.Ex("rsef_dpj");var K=_.Ex("rses_dpj");u=u!==void 0&&K!==void 0?Math.round(u-K):void 0;if(u!==void 0&&u>0){K=_.f7(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var l=this.poolSize;if(!(K.valuesSeen>=1E9)){if(K.valuesSample.length<l)K.valuesSample.push(u);else{var D=Math.floor(Math.random()*(K.valuesSeen+1));D<l&&(K.valuesSample[D]=u)}K.valuesSeen+=1}_.Uj(this.storagePrefix+"-"+this.innertubeClientName,
K,2592E3);u=K.valuesSample;K=oSq(u);u=u.length<this.poolSize?void 0:K<400?1:K<1700?2:3;u!==void 0&&(this.JSC$18100_prefCookie.set(this.cookiePrefix+this.innertubeClientName,u),this.JSC$18100_prefCookie.save())}}else _.Q1(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18100_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18100_prefCookie.save()};
bs_[vP]=[FJ,r4];var OsE=function(){bs_.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.c(OsE,bs_);var cR6=new _.G$("PAGE_LOAD_TIME_TOKEN");var aAo=function(u){this.signal=u;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;u.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.Ve(_.YL,this.disableLoggingAndSendPayload,1E4)};
aAo.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.YL.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),zwi(this))};
var zwi=function(u){var K=_.Yr();if(K){var l={webClientComponentsData:{components:Array.from(u.ids,function(D){return{id:D}})}};
u.ids.clear();_.iT().visualElementStateChanged(K,l)}};var ew_=new _.G$("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var GK=function(u,K){this.JSC$18129_storeWithEntities=u;this.JSC$18129_commandHandler=K;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
GK.prototype.start=function(){this.JSC$18129_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
GK.prototype.observeDownloadingEntities=function(){var u=_.UAq(this.JSC$18129_storeWithEntities.getState().entities).map(function(D){return f3Z(D)});
if(u.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var K={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:oGZ()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.GI(_.QQ("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18129_commandHandler.resolveCommand(K)}this.downloadingEntities=u}else if(this.downloadingEntities.length){var l=RAb(this.JSC$18129_storeWithEntities.getState().entities).map(function(D){return f3Z(D)});
this.downloadingEntities.filter(function(D){return l.includes(D)}).length&&(u={openPopupAction:ZCZ()},this.JSC$18129_commandHandler.resolveCommand(u));
this.downloadingEntities=[]}};
GK[vP]=[cU,_.t9];var Rwp;_.tG=function(u,K,l,D,d,C,W,M){this.JSC$18132_playerApiPromise=u;this.JSC$18132_commandHandler=K;this.JSC$18132_screenManager=l;this.offlineWebClientEligibility=D;this.JSC$18132_prefStorage=d;this.JSC$18132_actionRouter=C;this.entityTypeMap=W;this.JSC$18132_persistentStorePromiseAccessor=M;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
Rwp=function(){var u=_.GB().resolve(_.tG),K;_.H(function(l){if(l.nextAddress==1)return u.downloadFailureListenerBound?l.return():l.yield(u.JSC$18132_playerApiPromise,2);K=l.yieldResult;K.addEventListener("onOfflineOperationFailure",function(D){if(D.failureReason&&D.entityKey&&D.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(D.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var d=_.OV(D.entityKey).entityId;d&&u.JSC$18132_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
d)}else if(_.S("kevlar_woffle")){d=u.JSC$18132_commandHandler;var C=d.resolveCommand;D=D.failureReason;var W=_.QQ("TRANSFER_FAILED",void 0,"Download failed");D==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(W=_.QQ("STORAGE_FULL",void 0,"Storage full"));C.call(d,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.GI(W),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
u.downloadFailureListenerBound=!0;_.TG(l)})};
_.tG.prototype.deleteVideo=function(u,K){var l=this,D,d,C;return _.H(function(W){if(W.nextAddress==1)return W.yield(l.JSC$18132_playerApiPromise,2);D=W.yieldResult;C={offlineLoggingData:{offlineDeleteReason:(d=K)!=null?d:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return W.yield(D.queueOfflineAction(u,l.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",C),0)})};
_.tG.prototype.pauseVideoDownload=function(u){var K=this,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(K.JSC$18132_playerApiPromise,2);l=D.yieldResult;l.pauseVideoDownload(u);_.TG(D)})};
_.tG.prototype.resumeVideoDownload=function(u){var K=this,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(K.JSC$18132_playerApiPromise,2);l=D.yieldResult;return D.yield(l.resumeVideoDownload(u),0)})};
_.tG[vP]=[_.aw,_.t9,_.Zl,ew_,xb,rz,Ysw,Pe];var USI=new _.G$("DOWNLOAD_STATE_STORE_TOKEN");var fA_=function(u,K){this.JSC$18152_persistentStorePromiseAccessor=u;this.store=K;this.upliftCompletionResolver=new _.et},JRB=function(){var u=_.GB().resolve(QCp),K;
_.H(function(l){switch(l.nextAddress){case 1:if(u.upliftImplPromise)return l.return(u.upliftImplPromise);_.Qg(l,2);u.upliftImplPromise=Pk2(u);return l.yield(u.upliftImplPromise,4);case 4:u.upliftCompletionResolver.resolve();_.I$(l,3);break;case 2:throw K=_.iY(l),u.upliftCompletionResolver.reject(K),K;case 3:return l.return(u.upliftImplPromise)}})},Pk2=function(u){var K,l,D;
return _.H(function(d){switch(d.nextAddress){case 1:return _.L0("LOGGED_IN")?d.yield(u.JSC$18152_persistentStorePromiseAccessor(),2):d.return();case 2:K=d.yieldResult;if(!K)return _.As("vdeur"),d.return();_.As("vdeus");_.Qg(d,3);return d.yield(jCI(K),5);case 5:l=d.yieldResult;u.store.dispatch($A9(l));K.observe(function(C){ngq(u.store,C)});
_.I$(d,4);break;case 3:throw D=_.iY(d),_.As("vdeur"),D;case 4:_.As("vdeuc"),_.TG(d)}})},jCI=function(u){var K;
return _.H(function(l){if(l.nextAddress==1)return l.yield(rZq(u),2);K=l.yieldResult;return l.return(K.reduce(function(D,d){if(!d.data||!d.key||!d.entityType)return D;D[d.entityType]||(D[d.entityType]={});D[d.entityType][d.key]=d.data;return D},{}))})};
fA_[vP]=[Pe,_.lf];var QCp;QCp=new _.G$("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.x6=new _.G$("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Sz=function(u,K){this.JSC$18155_persistentStorePromiseAccessor=u;this.transportService=K};
Sz.prototype.refresh=function(){var u=this,K,l,D,d;return _.H(function(C){if(C.nextAddress==1)return _.L0("LOGGED_IN")?C.yield(u.JSC$18155_persistentStorePromiseAccessor(),2):C.return();if(C.nextAddress!=3)return(K=C.yieldResult)?C.yield(EIZ(K),3):C.return();if((l=C.yieldResult)&&!(Number(l.data.refreshTimestampMs||0)<(0,_.vA)()))return C.return();D={browseId:"SPaccount_downloads"};d=_.qu(MZ);_.K7(u.transportService,D,d).then(function(W){var M;if(K&&(W==null?void 0:(M=W.responseContext)==null?void 0:
M.maxAgeSeconds)!==0){var q;M=(W==null?void 0:(q=W.responseContext)==null?void 0:q.maxAgeSeconds)||604800;q=String(Math.floor((0,_.vA)())+M*1E3);K.put("service:downloads_settings:fallback",new _.e0({innertubeResponse:W,refreshTimestampMs:q}))}});
_.TG(C)})};
Sz[vP]=[_.HY,_.md];var bu=function(u,K){this.JSC$18159_playerPromise=u;this.store=K;this.started=!1};
bu.prototype.start=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1)return u.started?l.return():l.yield(u.JSC$18159_playerPromise,2);K=l.yieldResult;K.addEventListener("onOrchestrationBecameLeader",u.updateIsLeader.bind(u,!0));K.addEventListener("onOrchestrationLostLeader",u.updateIsLeader.bind(u,!1));if(K.isOrchestrationLeader)u.updateIsLeader(K.isOrchestrationLeader());else{var D=new _.wv("Function isOrchestrationLeader is undefined",{"player.isReady":K.isReady(),"player.playVideo":K.playVideo?
"defined":"undefined"});_.Xm(D);u.updateIsLeader(!1)}u.started=!0;_.TG(l)})};
bu.prototype.updateIsLeader=function(u){this.store.dispatch(_.SZ({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:u}}))};
bu[vP]=[_.aw,_.lf];var BN6=function(u,K){this.networkStatusManager=u;this.JSC$18162_prefStoragePromise=K;this.redirectsToPreload=["https://youtube.com"]},pai=function(){var u=_.GB().resolve(BN6),K,l,D,d,C,W;
_.H(function(M){switch(M.nextAddress){case 1:return M.yield(u.JSC$18162_prefStoragePromise,2);case 2:K=M.yieldResult;if(!(l=K)){M.jumpTo(3);break}return M.yield(K.get("yt-redirect-prefetch-id"),4);case 4:l=M.yieldResult;case 3:if(l||!u.networkStatusManager.isNetworkAvailable())return M.return();D={cache:"reload",redirect:"manual"};d=_.y(u.redirectsToPreload);C=d.next();case 5:if(C.done){if(!K){M.jumpTo(0);break}return M.yield(K.set("yt-redirect-prefetch-id",!0,86400),0)}W=C.value;_.Qg(M,8);return M.yield(_.lL.fetch(W,
D),10);case 10:_.I$(M,6);break;case 8:_.iY(M);case 6:C=d.next(),M.jumpTo(5)}})};var OY=function(u){u?(this.container=u,this.containerWasInjected=!0):this.containerWasInjected=!1};
OY.prototype.openDialog=function(u,K,l){var D=this,d;return _.H(function(C){(d=D.container)==null||d.openDialog(u,K,l);_.TG(C)})};
OY.prototype.closeDialog=function(){var u=this,K;return _.H(function(l){(K=u.container)==null||K.closeDialog();_.TG(l)})};
OY.prototype.isDialogOpen=function(){var u=this,K,l;return _.H(function(D){return D.return((l=(K=u.container)==null?void 0:K.isDialogOpen())!=null?l:!1)})};
OY[vP]=[_.vv(f40)];_.isE=new _.G$("POPUP_CONTROLLER_TOKEN");var TN2=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
TN2.prototype.registerPanel=function(u,K){if(u){this.panelMap.set(u,K);var l=this.pendingPanelResolvers.get(u);l&&(l.resolve(K),this.pendingPanelResolvers.delete(u))}};
TN2.prototype.getPanel=function(u){var K=this,l;return _.H(function(D){return(l=K.panelMap.get(u))?D.return(l):D.return(wa_(K,u))})};
var wa_=function(u,K){var l,D;return _.H(function(d){if(l=u.pendingPanelResolvers.get(K))return d.return(l.promise);D=new _.et;u.pendingPanelResolvers.set(K,D);return d.return(D.promise)})},Fai=function(u){TN2.call(this);
var K=this;this.popupController=u;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return K.panelMap.size}}};
_.c(Fai,TN2);_.I=Fai.prototype;_.I.getReloadContinuation=function(u){var K=this,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(K.getPanel(u),2);l=D.yieldResult;return D.return(l.getReloadContinuation())})};
_.I.showPanel=function(u,K,l,D,d,C,W){var M=this,q,v,G,t;return _.H(function(x){if(x.nextAddress==1){W&&M.updatePanelContinuationDatas.set(u,W);if((q=l)==null?0:(v=q.engagementPanelPopupPresentationConfig)==null?0:v.popupType){G=l.engagementPanelPopupPresentationConfig.popupType;d===void 0&&(d=document.body);var O=x.return,a=M.popupController,f=a.openPopup;a:switch(G){case "PANEL_POPUP_TYPE_DIALOG":var B="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":B="DROPDOWN";break a;default:throw Error("fj`"+
G);}return O.call(x,f.call(a,u,K,B,d))}return x.yield(M.getPanel(u),2)}t=x.yieldResult;(K||C)&&t.updatePanel(K,!1,D,C);t.showPanel(D);_.TG(x)})};
_.I.hidePanel=function(u){var K=this,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(K.getPanel(u),2);l=D.yieldResult;l.hidePanel();K.popupController.closePopup(u);_.TG(D)})};
_.I.isVisible=function(u,K){var l=this,D;return _.H(function(d){if(d.nextAddress==1)return K&&!l.panelMap.has(u)?d.return(!1):d.yield(l.getPanel(u),2);D=d.yieldResult;return d.return(D.isVisible())})};
_.I.updatePanel=function(u,K,l,D,d,C){l=l===void 0?!1:l;var W=this,M;return _.H(function(q){if(q.nextAddress==1){if(!K&&!d)return q.return();C&&W.updatePanelContinuationDatas.set(u,C);return q.yield(W.getPanel(u),2)}M=q.yieldResult;M.updatePanel(K,l,D,d);_.TG(q)})};
_.I.registerPanelContent=function(u,K){u&&this.panelContentMap.set(u,K)};
_.I.unregisterPanelContent=function(u){this.panelContentMap.delete(u)};
_.I.getPanelContent=function(u){return this.panelContentMap.get(u)};
_.I.getUpdatePanelContinuationData=function(u){return this.updatePanelContinuationDatas.get(u)};
Fai[vP]=[_.isE];var cY=function(u,K){this.innertubeTransportService=u;this.JSC$18178_screenManager=K},V2G=function(u){var K;
return!((K=u.panelLoadingStrategy)==null||!K.requestTemplate)};
cY.prototype.makeRequest=function(u){var K=this,l,D;return _.H(function(d){switch(d.nextAddress){case 1:if(!V2G(K)){d.jumpTo(2);break}_.Qg(d,3);return d.yield(_.HJ(K.innertubeTransportService,u),5);case 5:return l=d.yieldResult,l?d.return(l.content):(_.Xm(Error("gj")),d.return(void 0));case 3:D=_.iY(d),_.Xm(D);case 2:return d.return(void 0)}})};
cY.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
cY.prototype.execute=function(u){var K=this,l,D,d,C,W,M,q,v,G,t;return _.H(function(x){if(x.nextAddress==1){l=u;D=l.data;d=l.fallbackVe;C=l.parentVe;W=l.createScreenConfig;M=l.renderFn;q=l.command;K.panelLoadingStrategy=D;var O,a,f=((O=K.panelLoadingStrategy)==null?0:O.screenVe)?(a=K.panelLoadingStrategy)==null?void 0:a.screenVe:d;f&&_.ev(K.JSC$18178_screenManager,f,C,W);return(v=K.getContent())?x.yield(M(v),2):x.jumpTo(2)}return x.nextAddress!=4?V2G(K)?x.yield(K.makeRequest(q),4):x.return():(t=G=
x.yieldResult)?x.yield(M(t),0):x.return()})};
cY[vP]=[_.md,_.Zl];var a3=function(){};
a3.prototype.getContainer=function(){return _.rd()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
a3.prototype.openSheet=function(u,K){var l=this,D,d,C,W,M,q;return _.H(function(v){switch(v.nextAddress){case 1:return D={stack:[],error:void 0,hasError:!1},_.Qg(v,2,3),d=W$,v.yield(l.isSheetOpen(),5);case 5:C=v.yieldResult;Xx9(D,W5H(d));if(C){if(K&&l.currentTarget===K)return(W=l.getContainer())==null||W.closeSheet(),v.return();l.pendingData={data:u,target:lHI(l,K)};return v.return()}u.viewModel&&(u={viewModel:u.viewModel});(M=l.getContainer())==null||M.openSheet(u,K);l.currentTarget=K;case 3:_.jj(v);
mfb(D);_.pH(v,0);break;case 2:q=_.iY(v),D.error=q,D.hasError=!0,v.jumpTo(3)}})};
a3.prototype.closeSheet=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1)return l.yield((K=u.getContainer())==null?void 0:K.closeSheet(),2);if(l.nextAddress!=4)return u.currentTarget=void 0,u.pendingData?l.yield(u.openSheet(u.pendingData.data,u.pendingData.target),4):l.jumpTo(0);u.pendingData=void 0;_.TG(l)})};
a3.prototype.isSheetOpen=function(){var u=this,K,l;return _.H(function(D){return D.return((l=(K=u.getContainer())==null?void 0:K.isSheetOpen())!=null?l:!1)})};
var lHI=function(u,K){if(!_.S("web_parent_target_for_sheets"))return K;var l,D;return(D=(l=u.getContainer())==null?void 0:l.getParentTarget(K))!=null?D:K};var aX=window.documentPictureInPicture;var RL9=_.oj(["dark"]),UHq=_.oj(["system-icons"]),fdh=_.oj(["typography"]),QYq=_.oj(["lang"]),PWH=_.oj(["style"]),cZb=_.oj(["dir"]),adH=_.oj(["rounded-container"]),zLo=_.oj(["style"]),jYH=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],zK=function(u){this.JSC$18190_clientRoot=u;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
zK.prototype.openWindow=function(u){var K=this,l,D;return _.H(function(d){if(d.nextAddress==1)return window.documentPictureInPicture&&_.f9()&&!K.currentPipWindow?d.yield((l=aX?aX:null)==null?void 0:l.requestWindow(u),2):d.return(!1);if(d.nextAddress!=3){D=d.yieldResult;if(!D)return d.return(!1);D.addEventListener("pagehide",function(){g0I(K)});
D.addEventListener("resize",K.handlePipWindowResize);K.pipWindowResizeDelay=new _.nn(function(){K.currentPipWindow&&_.Sy(K.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.jA(K.currentPipWindow.innerWidth,K.currentPipWindow.innerHeight)])},D);
JZq(D);pfR(D);return d.yield(ORr(D),3)}if(!xHq())return d.return(!1);K.currentPipWindow=D;K.JSC$18190_eventForwarder=Bo9(D,K.JSC$18190_clientRoot);K.pipWindowResizeDelay.start();return d.return(!0)})};
zK.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var g0I=function(u){if(u.currentPipWindow){var K,l;(K=aX?aX:null)==null||(l=K.window)==null||l.close();u.currentPipWindow.removeEventListener("resize",u.handlePipWindowResize);var D;(D=u.pipWindowResizeDelay)==null||D.dispose();u.pipWindowResizeDelay=void 0;var d;(d=u.JSC$18190_eventForwarder)==null||d.stop();u.JSC$18190_eventForwarder=void 0;K=_.y(u.onCloseCallbacks);for(l=K.next();!l.done;l=K.next())l=l.value,l();u.onCloseCallbacks=[];u.currentPipWindow=null}};
zK.prototype.getWindow=function(){return this.currentPipWindow};
var NNo=function(u,K){var l;(l=u.onCloseCallbacks)==null||l.push(K)};
zK.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.f9()};
_.MN.Object.defineProperties(zK.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
zK[vP]=[hzm];var kwo=new _.G$("PICTURE_IN_PICTURE_CONTROLLER");var iRo=function(u,K){this.lengthY=this.lengthX=0;this.lengthX=K.x-u.x;this.lengthY=K.y-u.y};var ZsH=function(){},IHE=function(u,K){var l;
(l=u.headerElement)==null||l.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:K}))};var YBp=function(){};
YBp.prototype.openPopup=function(u,K,l,D){var d=this,C;return _.H(function(W){if(!d.container)return W.return();C={openPopupAction:{popup:K,popupType:l,uniqueId:u}};return W.return(d.container.handleOpenPopupAction(C,D))})};
YBp.prototype.closePopup=function(u){this.container&&this.container.closePopup(u)};var ARi=function(){this.openTunnels=new Map},HYL=function(u,K,l){if(NoR(l)){var D=_.ur(l,"gclid");
l={handleEvent:function(M){K&&!K.closed&&typeof K.postMessage==="function"&&M&&M.origin&&M.source===K&&M.data&&M.data.action==="gcl_setup"&&K.postMessage(Object.assign({},{action:"gcl_transfer"},D&&{gclid:D},{gadSource:2}),M.origin)}};
for(var d=_.y(u.openTunnels),C=d.next();!C.done;C=d.next()){var W=_.y(C.value);C=W.next().value;W=W.next().value;if(C.closed)try{window.removeEventListener("message",W),u.openTunnels.delete(C)}catch(M){_.Xm(M)}}K&&u.openTunnels.size<15&&(u.openTunnels.set(K,l),window.addEventListener("message",l))}};var Xa_=function(){this.clientParams=new Map},C7w=function(u){for(var K=_.y(u.clientParams.keys()),l=K.next();!l.done;l=K.next())l=l.value,l.startsWith("yt-mini-app-share")&&u.clientParams.delete(l)};var mSp=function(u,K){_.TZ.call(this);var l=this;this.shortsController=u;this.storeWithShorts=K;u=_.iF(this.storeWithShorts,_.sIq,function(D){if(D){var d,C=(d=l.shortsController.getRoot())==null?void 0:d.getPlayer(),W;(d=(W=l.shortsController.alternativePlayerContainerElement)==null?void 0:W.getPlayerContainer())&&(C==null||C.appendTo(d))}else{var M;W=(M=l.shortsController.alternativePlayerContainerElement)==null?void 0:M.getPlayerContainer().querySelector("#player");d=l.shortsController.activeIndex;
(M=(C=l.shortsController.getRoot())==null?void 0:C.querySelector('ytd-reel-video-renderer[id="'+d+'"] #player-container'))&&(W==null||W.appendTo(M,void 0,!0))}});
this.addOnDisposeCallback(u)};
_.c(mSp,_.TZ);var ez=function(u,K,l,D,d){var C=this;this.storeWithShorts=u;this.ephemeralResponseStore=K;this.store=l;this.innertubeTransportService=D;this.innertubeTransportLoader=d;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Da(_.R5);this.isShortsPipActive=_.Da(_.UL);this.nextReelVe=_.Yo(56921);this.prevReelVe=_.Yo(56922);this.backButtonVe=_.Yo(22156);this.TEST_ONLY={getActiveModules:function(){return C.activeModules}}},hwo=function(u){u.unsubscribeFromStore=
_.iF(u.storeWithShorts,_.yf9,function(K){u.initOrDisposeActiveModules(K);
!K&&u.storeWithShorts.getState().shorts.isFullscreen&&(_.v0(document.documentElement),u.storeWithShorts.dispatch(_.L80(!1)))});
u.initOrDisposeActiveModules(_.yf9(u.storeWithShorts.getState()))},ut0,KSA,E0I;
ez.prototype.initOrDisposeActiveModules=function(u){u?this.activeModules.push(new mSp(this,this.storeWithShorts)):(_.$V(this.activeModules),this.activeModules.length=0)};
ez.prototype.registerRootElement=function(u){this.rootElement=u;hwo(this)};
ez.prototype.getRoot=function(){return this.rootElement};
ez.prototype.setActiveIndex=function(u){this.activeIndex=u};
_.AJR=function(u,K){var l,D,d,C,W,M,q;return _.H(function(v){switch(v.nextAddress){case 1:return l=new jW,(D=l.JSC$12984_getStoreKey(K))&&u.ephemeralResponseStore.has(D)?v.yield(u.ephemeralResponseStore.get(D),7):v.yield(E0I(u,K),4);case 4:d=v.yieldResult;if(!D){v.jumpTo(3);break}C=eU(d,3600);return v.yield(u.ephemeralResponseStore.put(D,new _.e0(C)),3);case 7:d=(W=v.yieldResult)==null?void 0:_.tn(W);case 3:return((M=d)==null?0:M.replacementEndpoint)&&(q=_.b(d.replacementEndpoint,_.TO))&&d.sequenceContinuation&&
(q.sequenceParams=d.sequenceContinuation),v.return(d)}})};
ut0=function(u,K){K=(new Bm).JSC$12984_getStoreKey(K);return!!K&&u.ephemeralResponseStore.has(K)};
KSA=function(u,K,l){var D,d,C,W,M;_.H(function(q){if(q.nextAddress==1){D=new Bm;d=D.JSC$12984_getStoreKey(K);if(!d)return q.return();if(l.reelWatchSequenceResponse)return C=eU(l.reelWatchSequenceResponse,3600),u.ephemeralResponseStore.put(d,new _.e0(C)),q.jumpTo(0);if(!u.ephemeralResponseStore.has(d))return q.jumpTo(0);M=l;return q.yield(u.ephemeralResponseStore.get(d),4)}M.reelWatchSequenceResponse=(W=q.yieldResult)==null?void 0:_.tn(W);_.TG(q)})};
E0I=function(u,K){var l=l===void 0?{}:l;var D,d,C;return _.H(function(W){switch(W.nextAddress){case 1:if(u.innertubeTransportService){D=u.innertubeTransportService;W.jumpTo(2);break}if(!u.innertubeTransportLoader){_.uZ(Error("ij"));W.jumpTo(2);break}return W.yield(u.innertubeTransportLoader(),4);case 4:D=W.yieldResult;case 2:return W.yield((d=D)==null?void 0:_.HJ(d,K,l),5);case 5:return C=W.yieldResult,W.return(C)}})};
_.MN.Object.defineProperties(ez.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
ez[vP]=[TFN,_.zz,cU,_.vv(_.md),_.vv(JwS)];_.LaG=new _.G$("STORAGE_MANAGER_TOKEN");var ZRL=["touchmove","scroll"];var mHH={onSpanEnd:function(u){if(u.parent==null){var K=u.name;_.Ys(K);Xfb(u,K)}}};var uII=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},K_p;
uII.prototype.enqueue=function(u,K){K===1?this.currentPersistentToast=u:this.queue.push(u);this.openToast()};
uII.prototype.openToast=function(){var u;(u=this.currentToast)!=null&&u.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.R3=new _.G$("TOAST_MANAGER_TOKEN");var lBH=new _.G$("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var Dp6=new _.G$("VIEW_TRANSITION_COORDINATOR_TOKEN");var dpV=function(u){this.config=u;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;u=_.y(u.transitionConfigs);for(var K=u.next();!K.done;K=u.next())K=_.y(K.value).next().value,this.transitionTasksMap.set(K,[])};
dpV.prototype.registerElement=function(u,K,l){l=l===void 0?!1:l;for(var D=_.y(Object.keys(K)),d=D.next(),C={};!d.done;C={viewTransitionName:void 0},d=D.next()){d=d.value;C.viewTransitionName=K[d];var W=this.elementTasksMap.get(u),M=void 0;if((M=W)==null?0:M.has(d)){_.m0(new _.wv("Element already registered for transition",u.tagName,d));break}W=W||new Map;W.set(d,{beforeTransition:function(q){return function(){u.style.viewTransitionName=q.viewTransitionName}}(C),
afterTransition:function(){u.style.viewTransitionName&&(u.style.viewTransitionName="")},
runOnce:l});this.elementTasksMap.set(u,W)}};
_.y$=function(u,K){var l=u.elementTasksMap.get(K);l&&(l.clear(),l.size===0&&u.elementTasksMap.delete(K))};
dpV[vP]=[lBH];var CG6;_.IBp=_.rf(function(u){return _.n("basic-content-view-model",{class:_.JB("ytBasicContentViewModelHost",_.qE(u.className))},_.n(_.r,{cond:function(){return u.data().headline},
then:function(K){return _.n("div",{class:"ytBasicContentViewModelHeadline"},_.n(_.qC,{text:K}))}}),_.n(_.p0,{each:function(){return u.data().paragraphs||[]},
keyBy:"INDEX"},function(K){return _.n("div",{class:"ytBasicContentViewModelParagraph"},_.n(_.r,{cond:function(){var l=K();return!!(l.header||l.customHeader||l.headline)},
then:function(){return _.n(CG6,{paragraph:K})}}),_.n(_.r,{cond:function(){return K().asset||K().text},
then:function(){return _.n("div",{class:"ytBasicContentViewModelParagraphContent"},_.n(_.r,{cond:function(){return K().asset},
then:function(l){return _.n("div",{class:"ytBasicContentViewModelParagraphAsset"},_.n(_.mo,{data:l},{contentPreviewImageViewModel:_.SO}))}}),_.n(_.r,{cond:function(){return K().text},
then:function(l){return _.n("div",{class:"ytBasicContentViewModelParagraphText"},_.n(_.qC,{text:l}))}}))}}))}))},"ze");
CG6=_.rf(function(u){var K=u.paragraph;return _.n(_.G1,null,_.n(_.r,{cond:function(){return K().headline},
then:function(l){return _.n(_.qC,{text:l,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.n(_.mo,{data:function(){return K().header||K().customHeader}},{sectionHeaderViewModel:function(l){return _.n(_.za,{data:l.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ae");var s2o=_.rf(function(u){var K=_.o9("yt-expandable-metadata-header-view-model"),l=_.p4(function(D){if(!_.uC(_.L1(D),K.value,["A".toString(),"BUTTON".toString()])){var d;(d=u.expandedCallback)==null||d.call(u,!1)}});
return _.n("yt-expandable-metadata-header-view-model",{el:K,class:"ytExpandableMetadataHeaderViewModelHost"},_.n(_.r,{cond:function(){return u.expanded()},
then:function(){return _.n("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":l},_.n("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.n(_.r,{cond:function(){return u.data().expandedTitleImage},
then:function(D){return _.n("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.n(_.n4,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:D}))}}),_.n("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.n("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.n(_.qC,{text:function(){return u.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.n(_.qC,{text:function(){return u.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.n(_.qC,{text:function(){return u.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.n("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.n(_.mo,{data:function(){return u.data().infoButton}},{buttonViewModel:_.P2}),_.n(_.mo,{data:function(){return u.data().collapseButton}},{buttonViewModel:function(D){return _.n(_.P2,{data:D.data,
onClick:function(){var d;(d=u.expandedCallback)==null||d.call(u,!1)}})}})))},
else:function(){return _.n(yEp,Object.assign({},u))}}))},"Be"),opk=_.rf(function(u){return _.n("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.n(_.r,{cond:function(){return u.data().collapsedLabelImage},
then:function(K){return _.n("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.n(_.n4,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:K,alt:""}))}}),_.n(_.qC,{text:function(){return u.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Ce"),yEp=_.rf(function(u){return _.n("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.p4(function(){var K;return void((K=u.expandedCallback)==null?void 0:K.call(u,!0))})},_.n("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.n(_.r,{cond:function(){return u.data().collapsedImage},
then:function(K){return _.n("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.n(_.n4,{width:16,height:16,data:K,alt:""}))}}),_.n(_.r,{cond:function(){return u.data().showLeadingCollapsedLabel},
then:function(){return _.n(opk,Object.assign({},u))}}),_.n("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.n(_.qC,{text:function(){return u.data().collapsedTitle}}))),_.n("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.n(_.r,{cond:function(){return!u.data().showLeadingCollapsedLabel},
then:function(){return _.n(opk,Object.assign({},u))}}),_.n(_.mo,{data:function(){return u.data().infoButton}},{buttonViewModel:_.P2}),_.n(_.mo,{data:function(){return u.data().expandButton}},{buttonViewModel:function(K){return _.n(_.P2,{data:K.data,
onClick:function(){var l;(l=u.expandedCallback)==null||l.call(u,!0)}})}})))},"De");_.W_2=_.rf(function(u){var K=_.y(_.wY(function(){return u.data().initiallyExpanded})),l=K.next().value,D=K.next().value,d,C=(d=_.GB().resolve(_.vv(_.H1)))==null?void 0:d(),W=function(){var M=u.data().colorData;
if(M)return C?M==null?void 0:M.darkColorPalette:M==null?void 0:M.lightColorPalette};
return _.n("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Fb({"background-color":function(){var M=W();return(M==null?0:M.section2Color)?_.Kg(M.section2Color):""}})},_.n(_.mo,{data:function(){return u.data().header}},{expandableMetadataHeaderViewModel:function(M){return _.n(s2o,{data:M.data,
expanded:function(){return!!l()},
expandedCallback:function(q){D(q)}})}}),_.n(_.r,{cond:function(){return l()},
then:function(){return _.n("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.n(_.mo,{data:function(){return u.data().expandedContent}},{horizontalShelfViewModel:function(M){return _.n(_.El,{data:M.data,
includeMargin:!0,forceNarrowLayout:!0,palette:W})},
videoSummaryContentViewModel:function(M){return _.n(a6B,{data:M.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(M){return _.n(_.zx,{data:M.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(M){return _.n(_.IBp,{data:M.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.n(_.mo,{data:function(){return u.data().expandedBottomButtons}},{buttonViewModel:function(M){return _.n("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.n(_.P2,{data:M.data}))}}))}}))},"Ee");var H_k=_.rf(function(u){var K=u.text;var l=u.marqueeSpacing;var D=u.scrollDelay;var d=u.scrollDuration;var C=u.enableMarqueeScroll;u=u.large;var W=_.y(_.On(!1,void 0,"kfNqfd")),M=W.next().value,q=W.next().value,v=_.y(_.On(0,void 0,"bYgZbf"));W=v.next().value;var G=v.next().value,t=_.o9("marquee-scroll");v=_.o9("div");var x=_.o9("span"),O=_.GB().resolve(_.qI);_.gp(function(){if(C()){var B=x.value.getBoundingClientRect().width,p=t.value.getBoundingClientRect().width;if(B>p){var V=(O==="ltr"?-1:1)*
(B+(l?l():16));Promise.resolve().then(function(){q(!0);G(V)})}}},"giRlme");
var a={},f={};return _.n("marquee-scroll",{class:_.JB("ytMarqueeScrollHost",(a.ytMarqueeScrollHostLarge=u,a)),el:t},_.n("div",{id:"marquee-scroll-inner-container",class:_.JB("ytMarqueeScrollInnerContainer",(f.ytMarqueeScrollAnimationEnabled=function(){return M()},f)),
el:v,style:_.Fb({gap:l?(0,_.Ac)(l):"16px","animation-duration":d?vhw(d):"16s","animation-delay":D?vhw(D):"3s","--marquee-translate":(0,_.Ac)(W)})},_.n("span",{el:x,dir:"auto"},_.n(_.qC,{text:K,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.n(_.r,{cond:M,then:function(){return _.n("span",{"aria-hidden":"true",dir:"auto"},_.n(_.qC,{text:K,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Fe");_.Mki=_.rf(function(u){var K=u.data;var l=u.overlayDensity;u=_.p4(function(){K().onTapCommand&&_.IT(K().onTapCommand);return!1});
var D=_.U8o(),d=function(){return(l==null?void 0:l())===1?22:16},C={};
return _.n("reel-sound-metadata-view-model",{class:_.JB("ytReelSoundMetadataViewModelHost",(C.ytReelSoundMetadataViewModelHostLarge=function(){return(l==null?void 0:l())===1},C)),
"on:click":u,tabindex:0,role:"button","on:keydown":D},_.n("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.n(_.r,{cond:function(){return K().musicIcon},
then:function(W){return _.n(_.n4,{data:W,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:d})}}),_.n("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.n(H_k,{text:function(){return K().soundMetadata},
enableMarqueeScroll:function(){return!!K().enableMarqueeScroll},
large:function(){return(l==null?void 0:l())===1}}))))},"Ge");var qop,$pG,UY,G6p,xpo,vpV,O_H,b_2;qop=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];$pG=_.Sg("wil_icon_max_concurrent_fetches",Infinity);
UY=function(u,K,l){var D=this;this.iconSet=u;this.appDirection=K;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.lL.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.S("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.S("wil_icon_network_first");this.renderWhenIdle=_.S("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.S("wil_icon_load_immediately");this.isPurging=!1;u=function(){D.cacheStorageAvailable&&(D.cacheStorageAsync=_.lL.caches.open("yt-icons").then(function(C){return D.cacheStorageSync=C}).catch(function(){D.cacheStorageAvailable=!1}))};
l=(l==null?void 0:l())||{};l=_.y(Object.entries(l));for(K=l.next();!K.done;K=l.next()){var d=_.y(K.value);K=d.next().value;d=d.next().value;d=f0(d);npp(d);this.iconCache[K]=d.cloneNode(!0)}this.isPurging=rE_(this);this.isPurging instanceof Promise?this.isPurging.then(u):u()};
_.eRo=function(u,K){var l=u.resolveIcon(K);return l?u.renderingMode===1?vpV(u,l,u.renderingMode):(K=u.iconCache[l.url])?(K=K.cloneNode(!0),G6p(u,K),vpV(u,l,u.renderingMode,K)):_.tkB(u,l).then(function(D){var d=D?0:1;G6p(u,D);return vpV(u,l,d,D)}):(_.m0(new _.wv("Icon not found",{iconShape:K})),function(){})};
G6p=function(u,K){if(K){u.counter+=1;u="_yt"+u.counter;K=[K].concat(_.Am(K.getElementsByTagName("*")));K=_.y(K);for(var l=K.next();!l.done;l=K.next())if(l=l.value,l.tagName==="style"&&l.textContent)l.textContent=xpo(l.textContent,u,!0);else for(var D=_.y(l.attributes),d=D.next();!d.done;d=D.next()){d=d.value;d.name==="id"&&(d.value+=u);["mask","fill","clip-path"].includes(d.name)&&(d.value=xpo(d.value,u));if(d.name==="style"){var C=l.style;try{C.cssText=xpo(C.cssText,u,!0)}catch(G){var W=void 0,M=
void 0,q=void 0,v=void 0;fY({error:((W=G)==null?void 0:(q=(M=W).toString)==null?void 0:q.call(M))||"",el:l.outerHTML,style:!!C,cssText:(v=C)==null?void 0:v.cssText})}}d.name==="xlink:href"&&(d.value=d.value.replace(/#(.*)/,"#$1"+u))}}};
xpo=function(u,K,l){var D=/url\(["']?#(.*?)["']?\)/;(l===void 0?0:l)&&(D=/url\(["']?#(.*?)["']?\)/g);return u.replace(D,"url(#$1"+K+")")};
vpV=function(u,K,l,D){return function(d,C){var W=Object.assign({},{iconColor:"currentcolor",iconWidth:K.size+"px",iconHeight:K.size+"px",iconDisplay:"block"},C);C=_.PO("DIV");var M=W.iconColor,q=W.iconFilter;W="width: "+W.iconWidth+"; height: "+W.iconHeight+"; display: "+W.iconDisplay+";";q&&(W+=" filter: "+q+";");l===0&&(W+=" fill: "+M+";");l===1&&(q=K.url,W+=" -webkit-mask: url("+q+") no-repeat center / cover; mask: url("+(q+") no-repeat center / cover; background-color: ")+M);K.allowMirroring&&
u.appDirection==="rtl"&&(W+=" transform: scale(-1, 1); transform-origin: center center;");C.setAttribute("style",W);l===0&&D&&C.appendChild(D);d.appendChild(C)}};
_.tkB=function(u,K){var l,D,d;return _.H(function(C){l=function(W){return CH(W)};
D=K.url;if(!So_(D))throw Error("kj");d=b_2(u,D);return C.return(d.then(function(W){return W.clone().text()}).then(function(W){var M=l(W);
W=K.size;var q=_.PO("DIV");_.nH(q,M);M=_.Jq(q.firstElementChild!==void 0?q.firstElementChild:_.mSS(q.firstChild,!0));W=npp(M,W);u.iconCache[D]=W.cloneNode(!0);delete u.responsePromises[D];return W}).catch(function(){}))})};
O_H=function(u){var K,l=(K=u.requestAninmationFrameResolver)==null?void 0:K.promise;l||(u.requestAninmationFrameResolver=new _.et,l=u.requestAninmationFrameResolver.promise,_.lL.requestAnimationFrame(function(){var D;(D=u.requestAninmationFrameResolver)==null||D.resolve();u.requestAninmationFrameResolver=null}));
return l};
b_2=function(u,K){var l,D;return _.H(function(d){if(d.nextAddress==1)return u.waitForAnimationFrame?d.yield(O_H(u),2):d.jumpTo(2);l=u.responsePromises[K];l||(D=function(){var C,W,M;return _.H(function(q){switch(q.nextAddress){case 1:if(!u.cacheStorageAvailable){C=void 0;q.jumpTo(2);break}if(W=u.cacheStorageSync){q.jumpTo(3);break}return q.yield(u.cacheStorageAsync,4);case 4:W=q.yieldResult;case 3:C=W;case 2:return M=C,u.isNetworkFirstStrategy?q.return(u.fetchAndUpdateCache(K,M).catch(u.getCacheStorageResponse.bind(u,
K,M))):q.return(u.getCacheStorageResponse(K,M).catch(u.fetchAndUpdateCache.bind(u,K,M)))}})},l=u.renderWhenIdle?new Promise(function(C,W){_.Ve(_.YL,function(){D().then(C).catch(W)},10)}):D(),u.responsePromises[K]=l);
return d.return(l.catch(function(C){delete u.responsePromises[K];fY({error:(C==null?0:C.toString)?C.toString():"",url:K});throw C;}))})};
UY.prototype.fetchAndUpdateCache=function(u,K){var l=this;return _.H(function(D){return D.return(cEH(l,u).then(function(d){aB_(l,u,d,K);return d}))})};
var cEH=function(u,K){var l;return _.H(function(D){if(u.numFetches<$pG)return u.numFetches+=1,D.return(zi2(u,K).finally(function(){--u.numFetches;if(Object.keys(u.queuedResponseResolvers).length){var d=Object.keys(u.queuedResponseResolvers)[0],C=u.queuedResponseResolvers[d];delete u.queuedResponseResolvers[d];C.resolve(cEH(u,d))}}));
l=new _.et;u.queuedResponseResolvers[K]=l;return D.return(l.promise)})},zi2=function(u,K,l){l=l===void 0?2:l;
var D;return _.H(function(d){D={credentials:"same-origin",priority:"low"};return d.return(_.lL.fetch(K,D).then(function(C){return C.ok?C:Promise.reject(Error("lj`"+C.status+"`"+C.statusText))}).catch(function(C){if(l>0)return zi2(u,K,l-1);
throw C;}))})},aB_=function(u,K,l,D){_.H(function(d){return D?d.return(new Promise(function(C){_.Ve(_.YL,function(){var W,M;
return _.H(function(q){switch(q.nextAddress){case 1:if(!u.isNetworkFirstStrategy){W=void 0;q.jumpTo(2);break}return q.yield(D.match(K).catch(function(){}),3);
case 3:W=q.yieldResult;case 2:if(M=W){q.jumpTo(4);break}return q.yield(D.put(K,l.clone()).catch(function(v){fY({error:(v==null?0:v.toString)?v.toString():"",url:K})}),4);
case 4:C(),_.TG(q)}})},50)})):d.return()})};
UY.prototype.getCacheStorageResponse=function(u,K){return _.H(function(l){return K?l.return(K.match(u).then(function(D){return D&&D.ok?D:Promise.reject()})):l.return(Promise.reject())})};
var npp=function(u,K){K===void 0||u.getAttribute("viewBox")||u.setAttribute("viewBox","0 0 "+K+" "+K);u.setAttribute("focusable","false");u.setAttribute("aria-hidden","true");try{u.style.pointerEvents="none",u.style.display="inherit",u.style.width="100%",u.style.height="100%"}catch(d){var l;fY({error:((l=d)==null?0:l.toString)?d.toString():""});try{u.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(C){var D;fY({error:((D=C)==null?0:D.toString)?C.toString():
""})}}return u},So_=function(u){for(var K=_.y(qop),l=K.next();!l.done;l=K.next())if(u.startsWith(l.value)&&u.endsWith(".svg"))return!0;
return!1};
UY.prototype.resolveIcon=function(u){return this.iconSet.resolveIcon(u)};
var fY=function(u){_.hV(new _.wv("Error in IconManager",u))},rE_=function(u){if(_.S("wil_icons_cache_purge_killswitch"))return!1;
try{var K=_.lL.localStorage}catch(C){return!1}if(!K||!u.cacheStorageAvailable)return!1;var l=function(C){try{var W;(W=K)==null||W.setItem("yt-icons-last-purged",C.toString())}catch(q){var M;fY({error:((M=q)==null?0:M.toString)?q.toString():""})}},D=Number(K.getItem("yt-icons-last-purged"));
if(!D)return D=new Date,D=D.setDate(D.getDate()-Math.floor(Math.random()*90+1)),l(D),!1;if(function(C,W){C=new Date(C);W=new Date(W);return W.getMonth()-C.getMonth()+12*(W.getFullYear()-C.getFullYear())}(D,Date.now())<3)return!1;
try{return _.lL.caches.delete("yt-icons").then(function(C){C&&l(Date.now());return C}).catch(function(){return!1}).finally(function(){u.isPurging=!1})}catch(C){var d;
fY({error:((d=C)==null?0:d.toString)?C.toString():""});return!1}};
UY[vP]=[Qp2,_.qI,_.vv(jpR)];_.QA=function(u,K){this.iconManager=u;this.iconsToFetch=K};
_.QA[vP]=[_.Q2,_.vv(J2B)];var ei_=function(){};var Rik=function(u,K,l){this.requestKey=u;this.zyH=K;this.xW0=l;this.fFV=function(){return new XMLHttpRequest};
this.kxO=void 0;this.eAf=[]};
Rik.prototype.getLatestChallengeResponse=function(){return this.xW0};
var luA=function(u,K,l){var D,d,C,W;return _.H(function(M){if(M.nextAddress==1){_.Ys("attestation_challenge_fetch");_.As("att_fs",void 0,"attestation_challenge_fetch");if(!u.kxO)throw new _.ZV(9,"Missing fetcher");return M.yield(u.kxO(K,l),2)}D=M.yieldResult;C=(d=D)==null?void 0:d.bgChallenge;if(!C)throw new _.ZV(15,"Missing field");u.xW0=D;u.eAf.forEach(function(q){q(D)});
W=mJh(C);_.As("att_fc",void 0,"attestation_challenge_fetch");VYL("attestation_challenge_fetch");return M.return(W)})},au2=function(u,K){var l,D,d,C,W;
return _.H(function(M){switch(M.nextAddress){case 1:l=new cO(100,3E5,.25,2),D=void 0;case 2:if(!(l.currBackoffCount_<10)){M.jumpTo(4);break}_.Qg(M,5);if(!(l.currBackoffCount_>0)){M.jumpTo(7);break}return M.yield(ESn(l.getValue()),7);case 7:return M.yield(UpE(u,K),9);case 9:return d=M.yieldResult,M.return(d);case 5:C=_.iY(M);C instanceof _.ZV?D=C:(W=C instanceof Error?C.message:"Unknown",D=new _.ZV(9,W));Mja(l);M.jumpTo(2);break;case 4:if(D)throw D;throw new _.ZV(9,"Unknown error");}})},UpE=function(u,
K){K=kjw(ZSw(new NuC,K),u.requestKey);
var l=new _.et,D=u.fFV();D.open("POST",u.zyH);D.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");D.setRequestHeader("Content-Type","application/json+protobuf");D.onload=function(){if(_.vsn(D)){var d=Ktk(D.responseText);l.resolve(d)}else l.reject(new _.ZV(_.jE9(_.cv(D)),D.statusText))};
D.onerror=function(){l.reject(new _.ZV(_.jE9(_.cv(D)),D.statusText))};
D.send(K.serialize());return l.promise};var Q2E=function(u){this.networkStatusManager=u;this.isDownloaded=Lly===void 0?function(){return!1}:Lly;
this.isReady=!1;this.vEL=fBk(this)},fBk=function(u){var K;
return _.H(function(l){if(l.nextAddress==1)return l.yield($_q(),2);if(l.nextAddress!=3)return K=l.yieldResult,l.yield($9m(K),3);u.uF=l.yieldResult;u$q(u.uF).then(function(){u.isReady=!0});
return l.return(u.uF)})},PGG=function(u,K,l){u.uF?(u=u.uF.mt8({mk:l,
tof:!0,bDe:!0}),K.serviceIntegrityDimensions={poToken:u}):_.Xm(Error("nj"))};
Q2E.prototype.processContext=function(u){var K=this;if(!u.input.match(_.qu(l10)))return _.H3();var l=u.innerTubeRequest,D=l.videoId;return!D||this.isDownloaded(l)||this.networkStatusManager&&!this.uF&&!this.networkStatusManager.isNetworkAvailable()?_.H3():this.uF?this.isReady?(PGG(this,l,D),_.H3()):new W3(u$q(this.uF).then(function(){PGG(K,l,D)})):new W3(this.vEL.then(function(d){return _.H(function(C){if(C.nextAddress==1)return C.yield(u$q(d),2);
PGG(K,l,D);_.TG(C)})}))};var JE6=new _.G$("WEB_PO_CONTEXT_PROCESSOR");var j2E=function(u,K){var l=this;this.g4g=0;var D;this.r69=(D=K==null?void 0:K.r69)!=null?D:window;this.networkStatusManagerPromise=K==null?void 0:K.networkStatusManagerPromise;var d;this.requestKey=(d=K==null?void 0:K.requestKey)!=null?d:_.bZ("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var C;this.swg=(C=K==null?void 0:K.swg)!=null?C:function(q){return new LJ(q)};
var W;D=(W=K==null?void 0:K.rsg)!=null?W:function(q,v,G){return new Rik(q,v,G)};
this.bgChallenge=mJh(u.bgChallenge);this.ttlSeconds=hry(WU(u.challenge||""));this.n5=D(this.requestKey,_.S("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.lL.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",u);LOr(this.n5);var M;this.mVJ=(M=K==null?void 0:K.mVJ)!=null?M:function(q){_.kU(l.r69.document,"visibilitychange",function(){l.r69.document.visibilityState===
"visible"&&q()})}},pE2=function(u){if(!u.vm){var K={maxAttempts:5,
g8A:u.ttlSeconds*1E3};K6q(u.r69);u.vm=u.swg({n5:u.n5,lqp:{disable:_.S("html5_web_po_disable_remote_logging"),po:"aGIf",x1A:MyL("html5_web_po_experiment_ids"),yab:_.S("wpo_dis_lfdms")?0:1E3,g8g:function(D){var d=u8w.get(D);d||(d=new Lj2(D),d=new Re(d),u8w.set(D,d));return d}},
o69:K,n94:u.bgChallenge,hAg:lKq});u.g4g=Date.now();h_k(u.vm,function(){u.g4g=Date.now()});
G1b(u.vm,function(){return _.H(function(D){return D.return(BHI(u))})});
var l=u.caf.bind(u);u.networkStatusManagerPromise&&u.ttlSeconds>0&&u.networkStatusManagerPromise.then(function(D){D.listen("publicytnetworkstatus-online",l)});
u.mVJ(l)}};
j2E.prototype.caf=function(){if(Date.now()>this.g4g+this.ttlSeconds*1E3){var u;(u=this.vm)==null||m0w(u)}};
var BHI=function(u){if(u.hYf)return u.hYf;if(!u.vm)throw Error("oj");u.hYf=new DC({vm:u.vm,n5:u.n5,eY0:!0,onError:lKq});return u.hYf},dQo=function(u,K){u=new j2E(u,K);
pE2(u);BHI(u)};var PY=function(u,K){this.store=u;this.queue=[];K==null||K.addEventListener("yt-navigate-start",this.reset.bind(this))};
PY.prototype.enqueue=function(u){var K=u.command,l=u.durationMs,D=u.elementToFocus;var d=u.label;var C=u.elementToFocus;u.command?d=_.QQ("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:d,shortcut:_.QQ("SHIFT_PLUS_ENTER")}):C&&(u=d+". "+_.QQ("SHIFT_PLUS_ENTER")+" for more information.",d=_.QQ("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:d,shortcut:_.QQ("SHIFT_PLUS_ENTER")},u));l={announcement:d,durationMs:l!=null?l:8E3};K?l.command=K:D&&(D.classList.add("ephemeral-action-focusable-element"),l.selector=D.tagName+
".ephemeral-action-focusable-element");this.queue.push(l);i_6(this)};
PY.prototype.activate=function(u){var K=_.qGr(this.store.getState());if(K){if(K==null?0:K.command)_.D$(K.command),this.store.dispatch(XRa(null));if(K==null?0:K.selector)K=document.querySelector(K.selector),_.jKH(K);u.preventDefault()}};
var i_6=function(u){if(!_.qGr(u.store.getState())&&u.queue.length){var K=u.queue.shift();K&&(u.previousAnnouncement===K.announcement&&(K.announcement+="\u00a0"),u.store.dispatch(XRa(K)),u.previousAnnouncement=K.announcement,u.timeoutId=setTimeout(function(){if(K.selector){var l;(l=document.querySelector(K.selector))==null||l.classList.remove("ephemeral-action-focusable-element")}u.store.dispatch(XRa(null));i_6(u)},K.durationMs))}};
PY.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(XRa(null));this.queue.length=0;this.timeoutId=void 0};
PY[vP]=[_.lf,_.vv(_.V1)];_.JG=new _.G$("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var THB=window.AbortController||$uH;var wEi=new _.G$("AUTH_SERVICE_TOKEN");var yD9=_.oj(["about:blank"]),IKy;var jz=new _.G$("API_IFRAME_TOKEN"),F_k=new _.G$("FETCH_FN_TOKEN"),Vko=new _.G$("PARSE_FN_TOKEN"),gpo=new _.G$("WINDOW_REQUEST_TOKEN"),NH2=new _.G$("TEXT_DECODER_TOKEN");var Do0;Do0=new _.G$("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.k6o=new _.G$("MISC_UI_SHARED_FLAGS_TOKEN");var Z_2=function(){};
Z_2.prototype.getFlag=function(u){if(u.configType!==2)throw Error("pj");return Yo2(u)};
var Yo2=function(u){switch(u.flagType){case "bool":return _.S(u.flagName);case "int":return _.XH(_.Sg(u.flagName));case "double":return _.Sg(u.flagName);case "string":return _.bZ(u.flagName);case "int32_list":return MyL(u.flagName);case "int64_list":return MyL(u.flagName).map(function(K){return _.XH(K)});
case "string_list":return _.OP(u.flagName);default:throw Error("qj");}};var BY=function(u,K,l){K=K===void 0?{}:K;h7.call(this,l===void 0?"uninitialized":l);this.env=u;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}];K.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=K.shouldWaitOnAsyncImmediate)};
_.c(BY,h7);BY.prototype.init=function(u){var K=this,l;return _.H(function(D){if(D.nextAddress==1)return K.processPluginOptions.shouldWaitOnAsyncImmediate?D.yield(u(K.env),2):(u(K.env),D.jumpTo(2));if(D.nextAddress!=4)return K.jobSet?D.yield(K.jobSet.completedResolver.promise,4):D.jumpTo(4);l=_.dw();l.parkOrScheduleJob(function(){K.transition("rendering")},10,"ci");
_.TG(D)})};
BY.prototype.initialRender=function(u){var K=this,l;return _.H(function(D){if(D.nextAddress==1)return K.processPluginOptions.shouldWaitOnAsyncImmediate?D.yield(u(K.env),2):(u(K.env),D.jumpTo(2));if(D.nextAddress!=4)return K.jobSet?D.yield(K.jobSet.completedResolver.promise,4):D.jumpTo(4);l=_.dw();l.parkOrScheduleJob(function(){K.transition("rendered")},10,"cr");
_.TG(D)})};
BY.prototype.afterRenderImmediate=function(u){var K=this,l;return _.H(function(D){if(D.nextAddress==1)return K.processPluginOptions.shouldWaitOnAsyncImmediate?D.yield(u(K.env),2):(u(K.env),D.jumpTo(2));if(D.nextAddress!=4)return K.jobSet?D.yield(K.jobSet.completedResolver.promise,4):D.jumpTo(4);l=_.dw();l.parkOrScheduleJob(function(){K.transition("after-render-deferred")},10,"carml");
_.TG(D)})};
BY.prototype.afterRenderDeferred=function(u){var K=this;return _.H(function(l){u(K.env);_.TG(l)})};var AEp;_.h8("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});AEp={};_.XE6=(AEp.CSI=$QL(),AEp.ECATCHER=qJy(),AEp);var mpV={},hiH=(mpV.rendered={priority:0,callback:function(u){T_C(u.injector.resolve(g2))}},mpV);var ybZ=new _.G$("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),Epi=new _.G$("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var L_p=function(u){this.callbackFnMap=u;this.configMap={}};
L_p.prototype.handleResponse=function(u){var K;u=(K=u.responseContext)==null?void 0:K.serviceTrackingParams;K=_.y(u);for(u=K.next();!u.done;u=K.next()){u=u.value;var l=u.params,D=u.service;if(l&&D){this.configMap[D]||(this.configMap[D]=new efR);u=this.configMap[D];var d=void 0,C=(d=this.callbackFnMap)==null?void 0:d[D];l=_.y(l);for(D=l.next();!D.done;D=l.next())d=D.value,D=d.key,d=d.value,D&&d&&(u.set(D,d),C&&C(D,d))}}};
L_p[vP]=[_.vv(Epi)];var uzG=!1,tnq=0,nhr=null,G5q=null;var KJG=new _.G$("NETWORK_SLI_TOKEN");var lkp=function(u,K,l,D,d){this.networkSli=u;this.fetchFn=K;this.parseFn=l;this.requestFn=D;this.JSC$18314_textDecoder=d};
lkp.prototype.fetch=function(u,K,l){var D=this,d,C,W;return _.H(function(M){d=D9o(D,u,K);W=(C=D.fetchFn)!=null?C:fetch;return M.return(W(d).then(function(q){return D.handleResponse(q,l)}).catch(function(q){_.hV(q);
if((l==null?0:l.expectJsonStrict)&&q instanceof Tt&&q.errorType===1)return Promise.reject(q)}))})};
var Dj0=function(u,K,l,D){var d,C,W,M,q,v,G;return _.H(function(t){switch(t.nextAddress){case 1:return d=D9o(u,K,l),_.Qg(t,2),t.yield(fetch(d),4);case 4:C=t.yieldResult;_.I$(t,3);break;case 2:throw _.iY(t),new Tt(2,"Failed to parse streaming response",d.url);case 3:if(!C.redirected&&!C.ok)throw(W=u.networkSli)==null||W.failure(),new _.wv("Streaming fetch request not ok",d.url);if(!C.body)throw new _.wv("No response body in streaming response",d.url);M={};if(_.S("web_streaming_fast"))return q=C.body.getReader(),
t.return(d9_(u,q,M,D));v=C.body.pipeThrough(new TextDecoderStream).getReader();G=new _.OF;return t.return(C5H(u,v,G,DcH,M,D))}})},D9o=function(u,K,l){if(u.networkSli){var D=_.RK(_.$s(K,"key"))||"/UNKNOWN_PATH";
u.networkSli.start(D)}D=l;_.S("wug_networking_gzip_request")&&(D=avo(l));var d;return new ((d=u.requestFn)!=null?d:window.Request)(K,D)},d9_=function(u,K,l,D){var d,C,W,M,q,v,G,t,x,O,a;
return _.H(function(f){switch(f.nextAddress){case 1:d=u.JSC$18314_textDecoder?new u.JSC$18314_textDecoder("utf-8"):new TextDecoder("utf-8"),C="",W=function(B){B=B.trim();B.length!==0&&B!=="]"&&B!=="["?(B.startsWith("[")&&(B=B.substring(1)),B.endsWith("]")&&(B=B.slice(0,-1)),B.endsWith(",")&&(B=B.slice(0,-1)),B=B.trim()):B=void 0;if(B)try{var p=JSON.parse(B);DcH(l,p);D==null||D(l,p)}catch(V){throw new Tt(1,"Failed to parse streaming response",B);}},_.Qg(f,2,3);
case 5:return f.yield(K.read(),8);case 8:M=f.yieldResult;q=M.value;if(v=M.done)return C.length>0&&W(C),G=void 0,(G=u.networkSli)==null||G.success(),f.return(l);C+=d.decode(q,{stream:!0});t=C.split("\n");C=t.pop()||"";x=_.y(t);for(O=x.next();!O.done;O=x.next())a=O.value,W(a);f.jumpTo(5);break;case 3:_.jj(f);K.releaseLock();_.pH(f,0);break;case 2:throw _.iY(f),new Tt(1,"Failed to parse streaming response");}})},C5H=function(u,K,l,D,d,C){var W,M,q,v,G,t,x,O,a;
return _.H(function(f){if(f.nextAddress==1)return f.yield(K.read(),2);W=f.yieldResult;M=W.value;if(q=W.done)return(v=u.networkSli)==null||v.success(),f.return(d);try{G=l.parse(M)}catch(B){throw new Tt(1,"Failed to parse streaming response",M);}if(G!=null)for(t=_.y(G),x=t.next();!x.done;x=t.next())O=x.value,D(d,O),a=void 0,(a=C)==null||a(d,O);return f.return(C5H(u,K,l,D,d,C))})};
lkp.prototype.handleResponse=function(u,K){var l,D=(l=this.parseFn)!=null?l:JSON.parse;l=u.text().then(function(d){if((K==null?0:K.jspbResponseCtor)&&u.ok)return OMn(K.jspbResponseCtor,d);d=d.replace(")]}'","");if((K==null?0:K.expectJsonStrict)&&d)try{var C=D(d)}catch(M){throw new Tt(1,"JSON parsing failed after fetch");}var W;return(W=C)!=null?W:D(d)});
u.redirected||u.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),l=l.then(function(d){_.hV(new _.wv("Error: API fetch failed",u.status,u.url,d));return Object.assign({},d,{errorMetadata:{status:u.status}})}));
return l};
lkp[vP]=[_.vv(KJG),_.vv(F_k),_.vv(Vko),_.vv(gpo),_.vv(NH2)];var Ikp=new _.G$("NETWORK_MANAGER_TOKEN");var yXi=[1,2,4,8,16,30],oup=function(u){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=u.maxTimeMs;this.maxFrameCount=u.maxFrameCount===void 0?Math.ceil(60*u.maxTimeMs/1E3):u.maxFrameCount;u=_.y(yXi);for(var K=u.next();!K.done;K=u.next())this.brokenFrameSummarizers.push(new sQi(K.value/60*1E3))},WJ_=function(u){var K=u.frameCountInternal>=u.maxFrameCount;
return u.elapsedTimeMs>=u.maxTimeMs||K},HM_=function(u){for(var K=[],l=_.y(u.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&&K.push(D);return{summaries:K,monitoringDurationMs:Math.round(u.elapsedTimeMs)}};
_.MN.Object.defineProperties(oup.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 sQi=function(u){this.targetFrameTimeMs=u;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.MN.Object.defineProperties(sQi.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var MFG=function(){};
MFG.prototype.start=function(u,K){var l=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var D=new oup({maxTimeMs:u});this.monitor=D;this.lastSummaryInternal=void 0;this.metadataToLog=K;return new Promise(function(d){var C=function(W){if(W===void 0)l.stop(),d(void 0);else if(l.monitor!==D)W=Object.assign({},HM_(D),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),d(W);else{var M=l.monitor;if(!WJ_(M)){M.frameCountInternal++;if(M.prevTime===void 0)M.startTime=
W;else for(var q=W-M.prevTime,v=_.y(M.brokenFrameSummarizers),G=v.next();!G.done;G=v.next()){G=G.value;var t=G.currTimeMs;G.currTimeMs+=q;q>G.targetFrameTimeMs+2&&(G.brokenFrameCount++,G.timeOfFirstBrokenFrameMs===void 0&&(G.timeOfFirstBrokenFrameMs=t),G.timeOfLastBrokenFrameMs=t)}M.prevTime=W}WJ_(l.monitor)?d(l.stop()):_.YL.addJob(C,5,0)}};
_.YL.addJob(C,5,0)})};
MFG.prototype.stop=function(u){if(!this.monitor)return this.lastSummaryInternal;var K=Object.assign({},HM_(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(K.monitoringDurationMs){u=u!=null?u:this.metadataToLog;var l={droppedFramesSummary:K,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};u&&(l[u.type]=u.data);_.YE("manualSmoothnessMeasurement",l)}this.monitor=void 0;this.lastSummaryInternal=K;this.metadataToLog=void 0;return K};_.qSo=new _.G$("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var $9V;$9V=function(u){this.JSC$18337_expiringStorage=new Vx(u)};
_.nuB=function(u){if(_.xQZ()&&(u=_.KG9(_.iZ()+"::"+u)))return new $9V(u)};
$9V.prototype.set=function(u,K,l){l=l!==void 0?Date.now()+l:void 0;this.JSC$18337_expiringStorage.set(u,K,l)};
$9V.prototype.get=function(u){return this.JSC$18337_expiringStorage.get(u)};
$9V.prototype.remove=function(u){this.JSC$18337_expiringStorage.remove(u)};var rX2=new _.G$("SESSION_STORAGE");_.pY=function(){};
_.pY.getInstance=function(){var u=_.lZ("ytglobal.storage_");u||(u=new _.pY,_.$L("ytglobal.storage_",u));return u};
_.pY.prototype.estimate=function(){var u,K,l;return _.H(function(D){u=navigator;return((K=u.storage)==null?0:K.estimate)?D.return(u.storage.estimate()):((l=u.webkitTemporaryStorage)==null?0:l.queryUsageAndQuota)?D.return(SJo()):D.return()})};
_.$L("ytglobal.storageClass_",_.pY);var pnL=!!(ra[1]>>14&1);var RlH=0;var B$L=!1;var vui=_.oj(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),Ggi=_.oj(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var SZo={"/":_.pt,"/?feature=ytca":_.pt,"/feed/downloads":_.Cb9};var Jn=function(u,K,l){this.JSC$18353_upliftPromise=u;this.store=K;this.JSC$18353_persistentStorePromiseAccessor=l};
Jn.prototype.shouldPreferLocalResponse=function(u){return u.browseId==="FEdownloads"||u.browseId==="FEsmart_downloads"&&_.S("kevlar_modern_downloads_page")?!0:!1};
Jn.prototype.localInnertubeResponse=function(u){var K=this;return _.H(function(l){return u.browseId==="FEdownloads"?_.S("kevlar_modern_downloads_page")?l.return(tFG(K)):l.return(x9V(K)):u.browseId==="FEsmart_downloads"&&_.S("kevlar_modern_downloads_page")?l.return(SSI(K)):l.return(Promise.reject(Error("sj")))})};
Jn.prototype.canProvideFallbackResponse=function(){return!0};
Jn.prototype.localFallbackInnertubeResponse=function(u){var K=this,l,D,d;return _.H(function(C){switch(C.nextAddress){case 1:return C.yield(K.JSC$18353_persistentStorePromiseAccessor(),2);case 2:l=C.yieldResult;if(u.browseId!=="SPaccount_downloads"||!l){C.jumpTo(3);break}return C.yield(EIZ(l),4);case 4:if(D=C.yieldResult)return C.return(_.tn(D));case 3:return u.browseId==="FEwhat_to_watch"?C.return(bMH(K)):(d=_.S("web_offline_continuation_automatic_retry")||_.S("web_offline_continuation_retry_button"))&&
u.continuation?C.return(OMV(K)):C.return(cX2(K))}})};
var bMH=function(u){var K;return _.H(function(l){if(l.nextAddress==1)return l.yield(u.JSC$18353_upliftPromise,2);K=_.yFo(u.store.getState().entities);return K.length?l.return(akH(u,K)):l.return(cX2(u))})},x9V=function(u){var K,l;
return _.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$18353_upliftPromise,2);if(D.nextAddress!=3)return K=zuG([{offlineItemSectionRenderer:{}}]),D.yield(eup(u,K),3);l=D.yieldResult;l.onResponseReceivedActions=[ws("REFRESH_DOWNLOADS")];return D.return(l)})},tFG=function(u){var K,l,D,d,C,W,M,q,v,G,t,x,O,a,f,B;
return _.H(function(p){if(p.nextAddress==1)return p.yield(u.JSC$18353_upliftPromise,2);if(p.nextAddress!=3)return K=u.store.getState(),l=K.entities,D=_.NK(l),d=_.kw(l),C=_.itL(K),W=_.p3q(K),M=_.Tzq(K),q=_.WKZ(l),v=_.ih(D),G=_.ZJ(l),t=_.$GH(l),x=_.FKR(K),O=_.hu(K),a={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.xUn(D,d,q,t,C,W,v,G,M,x,O),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},f=_.QQ("DOWNLOADS",void 0,"Downloads"),
p.yield(Ru_(u,a,f),3);B=p.yieldResult;B.onResponseReceivedActions=[ws("REFRESH_DOWNLOADS")];return p.return(B)})},SSI=function(u){var K,l,D,d,C,W,M,q,v;
return _.H(function(G){if(G.nextAddress==1)return G.yield(u.JSC$18353_upliftPromise,2);if(G.nextAddress!=3)return K=u.store.getState(),l=K.entities,D=_.NK(l),d=_.ih(D),C=_.ZJ(l),W={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.bun(D),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},M=_.QQ("SMART_DOWNLOADS",void 0,"Smart downloads"),q=Gph(d,C),G.yield(Ru_(u,W,M,q),3);v=G.yieldResult;v.onResponseReceivedActions=
[ws("REFRESH_DOWNLOADS")];return G.return(v)})},cX2=function(u){var K,l;
return _.H(function(D){if(D.nextAddress==1)return D.yield(Gb(u.JSC$18353_upliftPromise,u.store),2);K=D.yieldResult;l=zuG([Ahn(K)]);return D.return(eup(u,l))})},OMV=function(u){var K,l,D,d;
return _.H(function(C){if(C.nextAddress==1)return K={},l=u.store.getState().continuation.continuationCommand,_.hl(K,_.C1,l),C.yield(Gb(u.JSC$18353_upliftPromise,u.store,K,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);D=C.yieldResult;d={};_.hl(d,_.jBR,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:D}}}],targetId:"browse-feedFEwhat_to_watch"});return C.return({responseContext:{},onResponseReceivedActions:[d]})})},zuG=function(u){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:u}}}}]}}},akH=function(u,K){var l,D;
return _.H(function(d){var C={contents:FR(K)};l=C&&C.contents?C:{};_.S("kevlar_modern_downloads_page")&&(l=Object.assign({},_.Ouq(K),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));D={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:l}}}]}};return d.return(eup(u,D))})},eup=function(u,K){var l,D;
return _.H(function(d){if(d.nextAddress==1)return d.yield(u.JSC$18353_persistentStorePromiseAccessor(),2);if(d.nextAddress!=3)return l=d.yieldResult,d.yield(x5(l),3);D=d.yieldResult;return d.return({responseContext:{},contents:K,topbar:D})})},Ru_=function(u,K,l,D){var d,C;
return _.H(function(W){if(W.nextAddress==1)return W.yield(u.JSC$18353_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3)return d=W.yieldResult,W.yield(x5(d),3);C=W.yieldResult;var M=W.return;var q=D;q=q===void 0?"":q;q={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:l}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.QQ("SETTINGS",void 0,"Settings"),accessibilityText:_.QQ("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:rZ("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:q}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:l};
return M.call(W,{responseContext:{},contents:K,topbar:C,header:{pageHeaderRenderer:q}})})};var U9_=function(){this.moduleRegistry={};this.fetchCount=0};
U9_.prototype.isFetching=function(){return this.fetchCount>0};
var K3=function(u,K){u.moduleRegistry[K.toString()]={asyncId:K,isFetching:!1};return u};
U9_.prototype.JSC$18364_loadModules=function(){for(var u=this,K=new Map,l=[],D=_.y(_.uY.apply(0,arguments)),d=D.next();!d.done;d=D.next()){d=d.value;var C=this.moduleRegistry[d];C?C.resolver?K.set(d,C.resolver):(C.resolver=new _.et,K.set(d,C.resolver),l.push(C.asyncId),C.isFetching=!0):(C=new _.et,K.set(d,C),C.resolve(void 0))}l.length&&(this.fetchCount+=1,_.Ne(_.a8.getMultipleAsync.apply(_.a8,_.Am(l)).then(function(W){for(var M=0;M<l.length;M++){var q=W[M],v=u.moduleRegistry[l[M].toString()];v.isFetching=
!1;v.resolver.resolve(q)}}).catch(function(W){for(var M=_.y(l),q=M.next();!q.done;q=M.next()){q=q.value;
var v=u.moduleRegistry[q.toString()];v.resolver=void 0;v.isFetching=!1;K.get(q.toString()).reject(W)}}),function(){--u.fetchCount}));
return Promise.all([].concat(_.Am(K.values())).map(function(W){return W.promise}))};_.lD=new _.G$("MODULE_REGISTRY_TOKEN");var fko={},QQE=(fko.rendered={priority:0,callback:function(u){a:{var K=void 0;try{var l;b:{if(_.F9r()){var D=_.u6b(_.iZ()+"::pom");if(D){var d=new kx(D);break b}}d=void 0}var C=(l=d)==null?void 0:l.get("role_text");if(!C)break a;K={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:C}]}}}}}}catch(q){}K&&u.injector.resolve(_.t9).resolveCommand(K)}try{var W=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(W){var M=JSON.parse(W);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
M&&u.injector.resolve(_.t9).resolveCommand(M)}}catch(q){}}},fko);var P5G,JX_={},jQ6=(JX_.initialized={priority:10,callback:function(){P5G=gr()}},JX_.rendering={callback:function(u){var K;
return _.H(function(l){if(l.nextAddress==1)return l.yield(P5G,2);K=l.yieldResult;if(!K.endpoint)throw Error("uj`"+_.lL.location.href);Y5(u,K);_.TG(l)})}},JX_);var BbI={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.Am(_.S("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(u){var K=u.stack;if(K.includes("chrome://")||K.includes("chrome-extension://")||u.message.includes("chrome-extension://")||K.includes("moz-extension://")||K.includes("local.adguard.org")||K.includes("auctioneer3.50million.club")||K.includes("youtubedownloader")||K.includes("youtube_home_page")||K.includes("is_youtube_video_no_longer_available")||
K.includes("switchScreenSizeHack")||K.includes("yt_main_big_banner.js")||K.includes("YouTubeCenter.js")||K.includes("/mytube.js")||K.includes("JSON.parseWrapper")||K.includes("/inj_js/common.js")||K.includes("firebug-lite")||K.includes(".repl.co/")||K.includes("linkfix")||K.includes("playAfterAd")||u.message.includes("Access is denied for this document")&&K.includes("<anonymous>")||u.fileName==="user-script"||u.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
K.includes("<anonymous>"))return!0;if(K.includes("https://www.youtube.com"))return!1;u=K.split("\n");if(!u.length)return!1;if(u.length<=3&&K.includes("s.onloadeddata"))return!0;K=0;for(var l=_.y(u),D=l.next();!D.done;D=l.next())D=D.value,(D.includes("https://")||D.includes("http://"))&&K++;return K/u.length>.95},
weight:0},{callback:function(u){return u.message==="Unknown Error"&&u.name.indexOf("NS_")===0},
weight:100},{callback:function(u){if(!_.aj)return!1;var K=u.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||u.message.includes("available to complete this operation"),l=u.stack.includes("webcomponents")&&u.message==="Object doesn't support this action";u=u.message.includes("object that does not implement interface Element");return K||l||u},
weight:0},{callback:function(u){return u.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(u){return u.message==="Operation is not supported"&&(u.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(u){return u.stack.includes("eval code (eval (code:1:1)")||u.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(u){return u.message.includes("Permission denied")&&u.stack.includes("this.domHandler")?!0:u.name.includes("TypeError")&&u.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(u){if(!u.stack)return!1;var K=u.stack.trim().split("\n");K.length&&K[0].endsWith("Error: "+u.message)&&K.shift();K.length&&K[K.length-1].includes("at window.onerror (")&&K.pop();if(!K.length)return!0;if(u.message==="Script error.")return K[0].includes("www.youtube.com")||K.length>=2&&K[0].startsWith("at new")&&K[1].startsWith("at window.onerror");if(u.message==="Unexpected token")return!0;u=_.y(K);for(K=u.next();!K.done;K=u.next())if(K=K.value,!(K.includes("<anonymous>")||
K.startsWith("load@")||K.startsWith("global code@")||K.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(u){return u.message==="Cannot read property 'experiments'"&&u.stack.includes("/s/player/")},
weight:500},{callback:function(u){return u.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(u){return u.stack.includes("/embed.js")?(u.params&&u.params&&(u.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.S("use_error_suppression"))var u=_.E3("SUPPRESS_CLIENT_ERRORS",!1);else{if(u=_.f3)u=/Chrome\/(\d+)/.exec(_.rq()),u=(u?parseFloat(u[1]):NaN)>=66;u=!(u||_.Uf&&_.Rj(65)||_.LT&&_.Rj(12.1)||Mh&&_.Rj(79))}return u},
weight:500}]};var prk={},iMG=(prk.initialized={priority:10,callback:function(u){u.injector.addProvider({provide:hzm,useValue:u.root});u.injector.addProvider({provide:M2_,useValue:hMw});u.injector.addProvider({provide:qBE,useValue:BbI});var K={};u.injector.addProvider((K.provide=$S2,K.useFactory=function(l,D){return function(){MVq(l,D)}},K[vP]=[M2_,
qBE],K));u.injector.addProvider({provide:PB,useClass:PB})}},prk);var Tbp={},wr_=(Tbp.initialized={priority:3,callback:function(){var u;if(u=Yxq()){u=u.replace("/",".");var K=_.jy();K.set("tz",u);K.save();u=!0}else u=!1;u||(u=_.jy(),u.set("utco",-Math.floor((new Date).getTimezoneOffset())),u.save())}},Tbp);var FJo={},VF_=(FJo.initialized={priority:10,callback:function(u){u.injector.resolve(PB).start();u=_.Ib();var K=_.L0("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.L0("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.L0("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.L0("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.UA(_.G$n(),{mainAppWeb:Object.assign({},u,{pageType:K})});_.UA(x2Z(),{mainAppWeb:Object.assign({},u,{pageType:K})});
_.UA(Sc9(),{mainAppWeb:u});_.UA(beq(),{mainAppWeb:u});haB(function(){_.f5(Sc9(),"FAILURE");_.f5(beq(),"FAILURE")});
Ehq();L6q();f1b()}},FJo);var gu2={},Nb6=(gu2.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.As("dl"),_.dw().processSignal("pcl");else{var u=function(){_.As("dl");_.dw().processSignal("pcl");window.removeEventListener("load",u)};
window.addEventListener("load",u)}}},gu2);var kg6={},ZMV=(kg6.rendering={priority:0,callback:function(){var u=_.dw();u.parkOrScheduleJob(function(){u.processSignal("eocs")},10,"eor",5E3)}},kg6);var YS6=function(){};
_.c(YS6,lq);
YS6.prototype.resolveCommand=function(u,K){var l,D,d,C,W,M,q,v;return _.H(function(G){d=(l=_.b(u,_.SFA))==null?void 0:(D=l.dialog)==null?void 0:D.commentReplyDialogRenderer;if(!d)throw new _.wv("No dialog in createCommentReplyDialogEndpoint");W=(C=K.form)==null?void 0:C.event;if(!W)throw new _.wv("Event not passed in when resolving command");M=_.y(W.composedPath());for(q=M.next();!q.done;q=M.next())if(v=q.value,v.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||v.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return v.showReplyDialog(d),G.return();
_.TG(G)})};var iu=function(u){this.pageRequestService=u;this.JSC$18379_prefetchCoordinator=Lbo()};
_.c(iu,lq);iu.prototype.resolveCommand=function(u){var K=this,l,D,d,C;return _.H(function(W){if(W.nextAddress==1){l=_.b(u,KDA);if((D=l)==null||!D.taskId)throw Error("vj");d=l.taskId;_.Qg(W,2);return W.yield(_.EBC(K.pageRequestService,u,{},"").then(function(M){if(!M)throw Error("wj");},function(M){throw Error("xj`"+M);
}),4)}if(W.nextAddress!=2)return lA_(K.JSC$18379_prefetchCoordinator,d),_.I$(W,0);
C=_.iY(W);nY(K.JSC$18379_prefetchCoordinator,d,C);_.TG(W)})};
iu[vP]=[VU];var TK=function(u){this.innertubeTransportService=u};
_.c(TK,lq);TK.prototype.resolveCommand=function(u){var K=this,l,D;return _.H(function(d){l=_.b(u,LDa);if(l.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||l.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")D=l.boolValue?2:1,_.v3.getInstance().setState(D,!0,!0);return d.yield(_.HJ(K.innertubeTransportService,u),0)})};
TK[vP]=[_.md];var w6={},AXG=(w6.addToPlaylistEndpoint=nm(gJ),w6.addToToastAction=nm(Nj),w6.adsControlFlowOpportunityReceivedCommand=nm(cL),w6.captionLanguageSelectActionCommand=nm(Df),w6.captionPickerEndpoint=nm(d4),w6.changeMiniAppPlayStateCommand=nm(N5),w6.changeTimelyActionVisibilityCommand=nm(g4),w6.channelCreationFormEndpoint=nm(pL),w6.clearLocationCommand=nm(V0),w6.clearUrlParamCommand=nm(kk),w6.copyLinkCommand=nm(oz),w6.copyTextEndpoint=nm(ee),w6.createCommentReplyDialogEndpoint=bkH(YS6),w6.createPlaylistServiceEndpoint=
nm(Wh),w6.dismissDialogEndpoint=nm(Yk),w6.entityUpdateCommand=nm(UD),w6.feedbackEndpoint=nm(PL),w6.getAnswerCommand=nm(yHH),w6.getPaymentsClientTokenCommand=nm(Yb),w6.getTranscriptEndpoint=nm(kb),w6.googlePaymentBillingCommand=nm(Aj),w6.googlePaymentPurchaseManagerCommand=nm(Xj),w6.hideEngagementPanelEndpoint=nm(At),w6.hideSnackbarCommand=nm(Bh),w6.insertRichSectionCommand=nm(Ty),w6.listMutationCommand=nm(wJ),w6.logGtmCommand=nm(ix),w6.notifyDropdownOptionSelectedCommand=nm(Zn),w6.openAdAllowlistInstructionCommand=
nm(_.aW),w6.openOnePickAddVideoModalCommand=nm(Hh),w6.persistSubscriptionsDisplayPreferencesCommand=nm(vh),w6.pingingEndpoint=nm(zy),w6.playlistEditEndpoint=nm(qj),w6.playlistVotingRefreshPopupCommand=nm($b),w6.refreshPanelEndpoint=nm(XJ),w6.saveImageToDeviceEndpoint=nm(RW),w6.scrollToSectionEndpoint=bkH(sRk),w6.seekToVideoTimestampCommand=nm(C$),w6.selectCountryCommand=nm(Gm),w6.setCookieCommand=nm(tj),w6.setLocalStorageCommand=nm(iR),w6.setPrefStorageEntryCommand=nm(SC),w6.setSettingEndpoint=nm(TK),
w6.sfvAudioItemPlaybackCommand=nm(Iz),w6.shareImageCommand=nm(bR),w6.sharingProviderDataCommand=nm(OH),w6.showCaptionLanguageSelectActionCommand=nm(yv),w6.showDialogCommand=nm(ED),w6.showEngagementPanelEndpoint=nm(LL),w6.showSheetCommand=nm(uR),w6.showSnackbarCommand=nm(p$),w6.showTransientPlayerScrimOverlayCommand=nm(sH),w6.submitFormWithValidationFlowCommand=nm(BL),w6.talkToRecsDeselectCommand=nm(Tm),w6.talkToRecsNextCommand=nm(w4),w6.talkToRecsSelectCommand=nm(Fj),w6.talkToRecsUpdateTextCommand=
nm(Vv),w6.toggleEngagementPanelCommand=nm(K$),w6.undoFeedbackEndpoint=nm(je),w6.updateEngagementPanelContentCommand=nm(lR),w6.updateUrlParamCommand=nm(Zf),w6.verifyCommand=nm(pL),w6.webNativeShareCommand=nm(ch),w6.webSubmitFormCommand=nm(n$),w6.ACK_PLAYABLES_3P_DATA_CONSENT=nm(az),w6.CANCEL_NAVIGATION=nm(zm),w6.COPY_SHARE_URL=nm(eC),w6.MINI_APP_EXIT_DIALOG_SEEN=nm(UH),w6.MINI_APP_OPEN_URL=nm(Rz),w6.REQUEST_MINI_APP_FULLSCREEN=nm(f$),w6.RESUME_NAVIGATION=nm(Qv),w6.SHARE_PLAYABLE_WITH_HIGH_SCORE=nm(Ph),
w6.TELL_US_WHY=nm(Jt),w6);_.S("web_enable_prefetching_videos_on_home")&&(AXG.prefetchWatchCommand=nm(iu),AXG.registerTasksCommand=nm(vY));_.S("enable_share_panel_navigation_logging_fix_on_web")&&(AXG.shareEntityServiceEndpoint=nm(mc));var ItS=Object.assign({},AXG);var Xr2={},m9G=(Xr2.initialized={priority:10,callback:dM9},Xr2);var huo={},Eu_=(huo.initialized={callback:function(u){var K={},l={};hO9().install((K.document_disposed={callback:function(){_.S("finalize_all_timelines")?g1H():ks();rDo("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.s39();var D=u.injector.resolve(PB);D.intervalId!==void 0&&(D.intervalId&&_.YL.cancelJob(D.intervalId),D.intervalId=void 0,--D.currentPartitionIndex,D=T6A(D),D>0&&Y$C({mainAppWeb:_.Ib(),survivalSli:{partitionMinute:D,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));iow(s7);oD!=null&&
oD.flush();bv&&bv.snapshotAndFlush();D=_.y(u8w.values());for(var d=D.next();!d.done;d=D.next())d.value.snapshotAndFlush()}},K),(l.flush_logs={callback:function(){_.AV()}},l))}},huo);var LJi={},unk=(LJi.rendered={priority:0,callback:function(){var u=new BBs;u.increment("STARTED");if(_.E3("LOGGED_IN")&&_.E3("SERVER_VERSION")!=="test"&&_.E3("SERVER_VERSION")!=="dev"&&!M2a()&&!HsH()){u.increment("EXECUTING");var K=document.createElement("iframe");K.style.display="none";_.Nbh(K,2,_.ES("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.E3("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(K);u.increment("DONE")}}},LJi);var KWk={},lI6=(KWk.rendered={callback:function(){Lbo().resume()}},KWk);var DTp={acknowledgeChannelTouStrikeCommand:we(c9),addToPlaylistServiceEndpoint:we(UN),addToPlaylistEndpoint:we(UN),addUpcomingEventReminderEndpoint:we(wI),browseEndpoint:we(BqH),channelCreationFormEndpoint:we(v9),channelCreationServiceEndpoint:we(Gq),claimLegacyYoutubeChannelEndpoint:we(dI),clearSearchHistoryEndpoint:we(Qh),clearWatchHistoryEndpoint:we(P9),commerceActionCommand:FQ(hS),createBackstagePostEndpoint:we(EH),createBroadcastCommand:we(Fy),createCommentEndpoint:we(ql),createCommentReplyEndpoint:we(Ml),
createLiveChatPollEndpoint:we(Vh),createPlaylistServiceEndpoint:we(fj),crossAccountChannelTransferEndpoint:we(B9),deleteLiveChatMessageCommand:we(gI),deletePlaylistEndpoint:we(Qd),deleteVideoEndpoint:we(YQ),dismissalEndpoint:we(aU),feedbackEndpoint:we(zq),flagEndpoint:we(iS),getAccountSwitcherEndpoint:we(jc),verifyCommand:we(hj),getAccountsListInnertubeEndpoint:we(ij),getCommentsFromInboxCommand:we(Hm),getDownloadActionCommand:we(tS),getFlowCommand:FQ(fA),getKidsBlocklistPickerCommand:we(Ts),getNotificationMenuEndpoint:we(TqE),
getPaymentInstrumentsParamsCommand:we(Dx),getPaymentsClientTokenCommand:FQ(hS),getPdgBuyFlowCommand:we(eW),getReportFormEndpoint:we(wU),getSearchInVideoCommand:we(gU),getAnswerCommand:we(Vd),getSurveyCommand:we(Zr),getTranscriptEndpoint:we(XS),getPostVideoPreviewEndpoint:we(uj),decorateMessageEndpoint:we(L$),likeEndpoint:we(tN),liveChatActionEndpoint:we(YN),liveChatEndpoint:we(ZN),liveChatItemContextMenuEndpoint:we(Nl),liveChatPurchaseMessageEndpoint:we(Kj),liveChatReplayEndpoint:we(kN),manageLiveChatUserEndpoint:we(Dr),
metadataUpdateCommand:we(ol),moderateLiveChatEndpoint:we(dU),modifyChannelNotificationPreferenceEndpoint:we(nj),notificationOptOutEndpoint:we(rU),openSuperStickerBuyFlowCommand:we(lS),performCommentActionEndpoint:we(oU),playlistEditEndpoint:we(JS),playlistEditorEndpoint:we(Pm),profileCardCommand:we(Tq),recordNotificationInteractionsEndpoint:we(Gs),reelWatchEndpoint:we(jW),refreshPanelEndpoint:we(SW),removeUpcomingEventReminderEndpoint:we(Cj),resolveLocationCommand:we(sN),revealBusinessEmailCommand:we(CA),
searchEndpoint:we(_.woH),sendLiveChatMessageEndpoint:we(Il),sendLiveChatVoteEndpoint:we(yd),setSettingEndpoint:we(xN),shareEntityServiceEndpoint:FQ(Oi),sharingProviderDataCommand:we(kQ),showEngagementPanelEndpoint:we(bS),showMoreDrawerCommand:we(cm),showSheetCommand:we(al),showDialogCommand:we(ON),subscribeEndpoint:we(Sc),transcriptSubmitCaptionCorrectionCommand:we(AS),undoFeedbackEndpoint:we(RU),unsubscribeEndpoint:we(bj),updateBackstagePostEndpoint:we(lj),updateCommentEndpoint:we(nA),updateCommentReplyEndpoint:we($N),
updateCommentsSettingsEndpoint:we(rI),updateCreatorChannelInnertubeCommand:we(yh),updateKidsBlacklistEndpoint:we(FS),updateEngagementPanelContentCommand:we(zs),updatePdgFeatureEnablementCommand:we(Rl),updatedMetadataEndpoint:we(Wm),validateChannelHandleCommand:we(si),updateChannelPageSettingsEndpoint:we(IU),verifyAgeEndpoint:we(Ui),watchEndpoint:FQ(JT),whitelistEditEndpoint:we(mB),ypcCancelRecurrenceEndpoint:we(EN),ypcCompleteTransactionEndpoint:we(Lj),ypcFixInstrumentEndpoint:we(KY),ypcGetCartEndpoint:we(uu),
ypcGetOffersEndpoint:we(lu),ypcHandleTransactionEndpoint:FQ(d6),ypcLogWalletAnalyticDataEndpoint:we(CY),ypcOffersEndpoint:we(I3),ypcPauseSubscriptionCommand:we(yA),ypcRedeemCodeEndpoint:we(sY),ypcResumeSubscriptionCommand:we(o3),ypcUpdateFopEndpoint:we(KY)},FK={},dTG=(FK.GET_ACCOUNT_MENU=we(pA),FK.GET_NOTIFICATIONS_MENU=we(i9G),FK.GET_NOTIFICATIONS_INBOX=we(Mc),FK.GET_UNSEEN_NOTIFICATION_COUNT=we($Q),FK.GET_USER_MENTION_SUGGESTIONS=we(KA),FK.LOAD_GUIDE=we(pop),FK.SUBMIT_FEEDBACK=we(ec),FK),VA={},
CYE=(VA.CONTINUATION_REQUEST_TYPE_BROWSE=we(DN),VA.CONTINUATION_REQUEST_TYPE_SEARCH=we(Nc),VA.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=we(Be),VA.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=we(JN),VA.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=we(H9),VA.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=we(W9),VA.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=we(pj),VA.CONTINUATION_REQUEST_TYPE_GET_PANEL=we(xQ),VA),II6={player:FQ(JT),watchNext:we(j_)},ymp={player:FQ(JT),reelItemWatch:we(jW),reelWatchSequence:we(Bm)},
sSo={watchEndpoint:FQ(p7)},oPV={commandEndpointMap:DTp,signalEndpointMap:dTG,continuationEndpointMap:CYE,watchEndpointMap:II6,reelWatchEndpointMap:ymp,streamingEndpointMap:sSo};var WWH,HH6,MjE,q22={disableAllTransitions:(HH6=(WWH=window).matchMedia)==null?void 0:(MjE=HH6.call(WWH,"(prefers-reduced-motion: reduce)"))==null?void 0:MjE.matches,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}}]])};_.g6=new _.G$("VIEW_TRANSITION_MANAGER_TOKEN");var $T6=function(u){this.viewTransitionCoordinator=u;this.isBrowseTransitionEnabled=_.bZ("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.S("web_thumbnail_to_watch_transition");this.isLearningJourneyTransitionEnabled=_.S("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.registerRootElement()};
$T6.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var u={};this.viewTransitionCoordinator.registerElement(document.documentElement,(u.slide="root-slide",u["lockup-to-watch"]="root-lockup-to-watch",u["learning-journey"]="root-learning-journey",u))}};
$T6[vP]=[Dp6];var C_H={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 yMb=["videoPrimaryInfoRenderer","title"],sgZ=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var nPk;nPk=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.rmi=_.rf(function(u){u=_.$U(u,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var K=u.data,l=u.playlistData,D=u.expanded,d=u.onExpandClick,C=u.isReadyToResume,W=function(){var G;return!((G=l())==null||!G.contents)},M=function(){var G=l();
return G&&G.totalVideos&&G.currentIndex!==void 0?G.currentIndex+1+" / "+G.totalVideos:""};
u=_.p4(function(){_.NF(_.GB().resolve(_.uD));return!1});
var q=_.p4(function(){W()&&d&&d()}),v={};
return _.n("ytd-miniplayer-info-bar",{class:_.JB("ytdMiniplayerInfoBarHost",(v.ytdMiniplayerInfoBarHasPlaylistData=W,v)),"on:click":q},_.n("div",{class:"ytdMiniplayerInfoBarContent"},_.n("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":u},_.n(_.qC,{text:function(){var G=K();var t=l();if(t==null?0:t.contents){var x;G=(x=_.ThH(t))==null?void 0:x.title}else G=G==null?void 0:G.miniplayerTitle;return Wuo(G)},
noEndpoints:!0,ellipsisTruncate:!0})),_.n("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.n(_.r,{cond:C,then:function(){return _.n(XG2,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:nPk})}}),_.n("h1",null,_.n(_.qC,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var G=K();var t=l();G=C()?{simpleText:_.QQ("CONTINUE_WATCHING",void 0,"Continue watching")}:(t==null?0:t.contents)?t.titleText:G==null?void 0:G.miniplayerSubtitle;return Wuo(G)},
noEndpoints:!0,ellipsisTruncate:!0})),_.n(_.r,{cond:function(){return!!M()&&!C()},
then:function(){return _.n("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.n("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.n("span",null,M))}}))),_.n(_.r,{cond:W,
then:function(){return _.n("div",{class:"ytdMiniplayerInfoBarExpand"},_.n($e,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(G){d&&(d(),G.stopPropagation())}}},
iconName:function(){return D()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"He");var vPV;vPV=_.rf(function(u){return _.n("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.n($e,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:u.onTap}},
iconName:"yt-icons:close"}))},"Ie");
_.GGG=_.rf(function(u){u=_.$U(u,{playabilityStatus:void 0,isDisabled:!1});var K=u.size,l=u.playabilityStatus,D=u.isDisabled,d=_.o9("div");u=_.y(_.On(void 0,void 0,"bJr0Se"));var C=u.next().value,W=u.next().value;u=_.Da(_.UL);var M=!1,q=function(){return K().height<=0};
_.gp(function(){var x=K(),O=q(),a=C();a&&!O&&a.setInternalSize(x.width,x.height)},"OUOyKb");
_.N_(function(){var x,O,a;return _.H(function(f){if(f.nextAddress==1){x=_.GB().resolve(_.uD);O=x.getPlayerElement();if(!x.isMiniplayerActive()||!O||!d.value)return f.return();O.appendTo(d.value);return f.yield(O.getPlayerPromise(),2)}a=f.yieldResult;a.setSizeStyle(!1,!0);W(a);_.TG(f)})});
_.No(function(){v()});
_.gp(function(){var x=C();if(x)if(D()){var O=x.getPlayerState();(M=O===-1||O===1||O===3)&&x.pauseVideo()}else v()},"KKHe5");
var v=function(){if(M){M=!1;var x;(x=C())==null||x.playVideo()}},G=_.p4(function(){_.NF(_.GB().resolve(_.uD))}),t={};
return _.n("ytd-miniplayer-player-container",{class:_.JB("ytdMiniplayerPlayerContainerHost",(t.ytdMiniplayerPlayerContainerHidden=q,t.ytdMiniplayerPlayerContainerHostShortsPip=u,t)),style:_.Fb({width:function(){return K().width+"px"},
height:function(){return K().height+"px"}})},_.n("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:d}),_.n(_.r,{cond:function(){return!!l()&&!_.FO9(l())},
then:function(){return _.n(mq0,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var x;return((x=l())==null?void 0:x.errorScreen)||null},
status:function(){var x;return((x=l())==null?void 0:x.status)||null}})}}),_.n(_.r,{cond:D,
then:function(){return _.n("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":G},_.n(vPV,{onTap:function(){_.GB().resolve(_.uD).close()}}))}}))},"Je");_.tjk=_.rf(function(u){var K=u.toastData;var l=_.o9("ytd-miniplayer-toast");u=_.y(_.wY(function(){return!!K()}));
var D=u.next().value,d=u.next().value;u=_.y(_.On(!1,void 0,"xkrBze"));var C=u.next().value,W=u.next().value,M=function(){var G;return _.WI((G=K())==null?void 0:G.data.title)};
_.ZY(function(){_.d0.requestAvailability();K()&&d(!1)});
var q,v;_.gp(function(){D()&&(_.xs(l.value,"iron-announce",{text:K().label+" "+M()}),q&&_.YL.cancelJob(q),q=_.YL.addLowPriorityJob(function(){W(!0)},2500))},"OTdL1e");
_.gp(function(){C()&&(v&&_.YL.cancelJob(v),v=_.YL.addLowPriorityJob(function(){d(!1);W(!1)},300))},"yybqib");
u={};return _.n("ytd-miniplayer-toast",{el:l,class:_.JB("ytdMiniplayerToastHost",(u.ytdMiniplayerToastOpening=function(){return D()},u.ytdMiniplayerToastClosing=function(){return C()},u))},_.n(_.r,{cond:function(){var G;
return(G=K())==null?void 0:G.data},
then:function(G){return _.n(D3A,{className:"ytdMiniplayerToastThumbnail",data:G,width:78})}}),_.n("div",{class:"ytdMiniplayerToastInfo"},_.n("div",{class:"ytdMiniplayerToastLabel"},function(){var G;
return(G=K())==null?void 0:G.label}),_.n("div",{class:"ytdMiniplayerToastTitle"},M)))},"Ke");var xMr;var O29=null;var S26=_.rf(function(u){var K=u.progressState;var l=u.multiMarkersPlayerBarRenderer;var D=u.progressBarWidth;var d=function(){return e6w(l())},C=function(){return foH(K())},W=function(){return D()*(K().playedTime/K().videoDuration)};
return _.n("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.n(_.p0,{each:d},function(M,q){return _.n(xTH,{modifiedProps:C,chapters:d,index:q,playedProgressWidth:W,backgroundGradientPosition:function(){var v=C(),G=d(),t=q(),x=W();return(v.playedTime-EA(_.b(G[t],hn)))/v.playedTime*x}})}))},"Le"),xTH=_.rf(function(u){var K=u.modifiedProps;
var l=u.chapters;var D=u.index;var d=u.playedProgressWidth;var C=u.backgroundGradientPosition;u={};u=_.JB("ytChapteredProgressBarChapteredPlayerBarChapter",(u.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return W().isScrubbing},u.ytChapteredProgressBarHoveredMacroMarker=function(){return W().scrubberHovering},u.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return W().videoPosition==="seen"},u));
var W=function(){return Qgw(K(),l(),D())},M=function(){var q=K();
var v=l(),G=D();if(Qgw(q,v,G).videoPosition!=="active")q=0;else{var t=EA(_.b(v[G],hn));q=(q.playedTime-t)/((EA(_.b(v[G+1],hn))||q.videoDuration)-t)}return q};
return _.n("div",{class:u,style:_.Fb({width:function(){var q=K(),v=l(),G=D(),t=_.b(v[G],hn);v=_.b(v[G+1],hn);return(v?EA(v)-EA(t):q.videoDuration-EA(t))/q.videoDuration*100+"%"},
"background-color":function(){a:{var q=W();switch(q.videoPosition){case "pending":q=q.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":q=q.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:q=""}}return q},
"background-size":function(){return(P_H(W())?d():"")+"px"},
"background-position-x":function(){return(P_H(W())?C():"")+"px"}})},_.n("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var q=K(),v=l(),G=D();if(Qgw(q,v,G).videoPosition==="seen")var t=0;else t=EA(_.b(v[G],hn)),v=EA(_.b(v[G+1],hn))||q.videoDuration,q=q.videoDuration*q.percentLoaded,t=v<=q?1:t>=q?0:(q-t)/(v-t);return"width: "+t*100+"%"}}),_.n("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Fb({width:function(){return M()*100+"%"},
"background-size":function(){return(P_H(W(),M())?d():"")+"px"},
"background-position-x":function(){return(P_H(W(),M())?C():"")+"px"}})}))},"Me");var bHE=function(u,K){K=K===void 0?Ce2:K;var l,D=[],d,C=!1;return function(){var W=_.uY.apply(0,arguments);if(C&&l===this&&K(W,D))return d;d=u.apply(this,W);C=!0;l=this;D=W;return d}}(function(u){var K=u.heatMarkers,l=u.minHeightDp===void 0?0:u.minHeightDp,D=u.maxHeightDp===void 0?60:u.maxHeightDp;
var d=d===void 0?!1:d;var C=1E3/K.length;u=[];u.push({x:0,y:100});for(var W=0;W<K.length;W++){var M=void 0,q=((M=_.b(K[W],D6k))==null?void 0:M.heatMarkerIntensityScoreNormalized)||0;M=(W+.5)*C;q=100-_.mz(q*100,l/321*100,D/321*100);W!==0||d||u.push({x:0,y:q});u.push({x:M,y:q});W===K.length-1&&u.push({x:1E3,y:q})}u.push({x:1E3,y:100});K="";for(l=0;l<u.length;l++)d=u[l],l===0?d="M "+d.x.toFixed(1)+","+d.y.toFixed(1):(D=ToH(u[l-1],u[l-2],d),C=ToH(d,u[l-1],u[l+1],!0),d=" C "+(D.x.toFixed(1)+","+D.y.toFixed(1)+
" "+C.x.toFixed(1)+","+C.y.toFixed(1)+" "+d.x.toFixed(1)+","+d.y.toFixed(1))),K+=d;return K});var OHo=_.rf(function(u){var K=u.progressBarProps;var l=u.config;var D={};u=_.JB("ytHeatSeekerHost",(D.ytHeatSeekerHighContrast=u.highContrast,D));var d=function(){return njH(l().chapterData)};
return _.n("yt-progress-bar-heatseeker",{class:u,style:function(){var C;return"height: 320px; display: "+(K().isDragging&&((C=d())==null?0:C.heatMarkers)?"block":"none")}},_.n(_.r,{cond:d,
then:function(C){return _.n(_.r,{cond:function(){return C().heatMarkers},
then:function(){return _.n("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.n("path",{d:function(){return bHE(C())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ne");var cm6=_.rf(function(u){var K=u.progressBarProps;var l=u.config;u={};u=_.JB("ytProgressBarLineProgressBarLine",(u.ytProgressBarLineProgressBarLineRounded=function(){return l().rounded},u.ytProgressBarLineProgressBarLineBottomInset=function(){return l().position===2},u));
return _.n("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.n("div",{class:u},_.n("div",{class:"ytProgressBarLineProgressBarBackground"}),_.n("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+K().percentLoaded*100+"%"}}),_.n("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var D=K();return"width: "+(D.videoDuration?_.mz(D.hoveredTime/D.videoDuration,0,1):0)*100+"%"}}),_.n("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+M6r(K())*100+"%"}})))},"Oe");
cm6.idomCompat=!0;var aIE=_.rf(function(u){var K=u.progressBarProps;var l=u.playheadData;var D=u.interpolateDotPosition;var d=u.hidePlayhead;u={};var C=_.JB("ytProgressBarPlayheadProgressBarPlayheadDot",(u.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return K().isDragging},u.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!K().isDragging&&d()},u));
return _.n("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Fb({"margin-left":function(){return qrZ(K())*100+"%"},
transform:function(){return"translateX(-"+(D()?qrZ(K())*12:6)+"px)"}})},_.n(_.r,{cond:function(){var W;
return(W=_.qE(l)())==null?void 0:W.playheadImage},
then:function(W){var M={};return _.n("div",{class:_.JB("ytProgressBarPlayheadProgressBarPlayheadCustom",(M.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return K().isDragging},M.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!K().isDragging&&d()},M)),
style:_.Fb({"transform-origin":function(){return(D()?qrZ(K())*20:10)+"px center"}})},_.n(_.n4,{data:W,
alt:"","aria-hidden":"true"}))},
else:function(){return _.n("div",{class:C,style:_.Fb({"transform-origin":function(){return(D()?qrZ(K())*12:6)+"px center"}})})}}))},"Pe");
aIE.idomCompat=!0;var k6=function(u,K,l,D,d,C){this.getProgressBarRect=u;this.updateProgressBarRect=K;this.getFilmstripYPosition=l;this.setFineScrubbingDraggedTime=D;this.updateFilmStripDraggedYDistance=d;this.resetFilmStripYOffset=C;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.MC(this.onThrottledSeek,100,this)},z3_=function(u,K,l){return function(D){u.handleClick(D,K(),l())}},UTo=function(u,K){return function(l){e3H(u,
l,R36(l),K())}},fI_=function(u,K){return function(l){e3H(u,l,{x:l.clientX,
y:l.clientY},K())}},PYk=function(u,K,l){return function(D){var d=K(),C=l();
QSG(u,D,R36(D),d,C,!0);if(C.onTouchMove)C.onTouchMove(d)}},jSE=function(u,K,l){return function(D){JmG(u,D,K(),l())}},BmV=function(u,K){return function(){u.handleMouseLeave(K())}},pZo=function(u,K,l){return function(){var D=K(),d=l();
Zx(u,D,d);if(d.onTouchEnd)d.onTouchEnd(D)}},iHE=function(u,K,l){return function(){var D=K(),d=l();
Zx(u,D,d);if(d.onTouchEnd)d.onTouchEnd(D)}},TmH=function(u,K,l){return function(){Zx(u,K(),l())}},wZ2=function(u){return function(K){if(K.keyCode===39||K.keyCode===38){var l,D;
(l=u())==null||(D=l.playerApi)==null||D.seekBy(5,void 0,void 0,72)}else if(K.keyCode===37||K.keyCode===40){var d,C;(d=u())==null||(C=d.playerApi)==null||C.seekBy(-5,void 0,void 0,71)}}},FWE=function(u,K,l){return function(D){!l().disableScrubbing&&u.startPosition&&JmG(u,D,K(),l())}},Vj_=function(u,K,l){return function(){if(!l().disableScrubbing)if(u.startPosition){var D=K(),d=l();
Zx(u,K(),l());if(d.onTouchEnd)d.onTouchEnd(D)}else K().setState({isDragging:!1})}},R36=function(u){u=u.touches[0];
return{x:u.clientX,y:u.clientY}},JmG=function(u,K,l,D){if(K.buttons!==1){if(K.movementX||K.movementY)K.preventDefault(),K.stopPropagation(),u=gPG(u,l,K.clientX),l.setState({isHovering:!0,
hoveredTime:u*l.videoDuration})}else Nm_(l),QSG(u,K,{x:K.clientX,y:K.clientY},l,D,!1)};
k6.prototype.handleMouseLeave=function(u){Nm_(u)};
var Nm_=function(u){u.isHovering&&u.setState({isHovering:!1,hoveredTime:0})},e3H=function(u,K,l,D){u.startPosition||(u.startPosition=l,u.updateProgressBarRect(),u.controlsWereVisibleBeforeDragging=D.controlsVisible,K.stopPropagation(),_.S("medium_progress_bar_modification")||K.preventDefault())},QSG=function(u,K,l,D,d,C){if(u.startPosition)if(C&&d.isInlinePlayback&&u.startPosition&&!u.hasDraggedTheMinimumDistance&&Math.abs(l.y-u.startPosition.y)>Math.abs(l.x-u.startPosition.x))Zx(u,D,d);
else if(K.preventDefault(),K.stopPropagation(),D.videoDuration&&(u.startPosition&&!u.hasDraggedTheMinimumDistance&&(u.hasDraggedTheMinimumDistance=Math.abs(l.x-u.startPosition.x)>=1),d.enableFineScrubbing&&(u.startPosition&&(u.isDraggedForFineScrubbing=-(l.y-u.startPosition.y)>=60),!u.startPosition||l.y>=u.startPosition.y||(D.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:JMy(D.draggedTime,D,d.chapterData)}),u.setFineScrubbingDraggedTime(D.draggedTime),u.updateFilmStripDraggedYDistance(u.startPosition.y,
l.y,D))),u.hasDraggedTheMinimumDistance)){K=gPG(u,D,l.x);if(u.isDraggedForFineScrubbing){var W;(W=D.playerApi)==null||W.pauseVideo();D.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:D.draggedTime,filmStripXDistance:JMy(K*D.videoDuration,D,d.chapterData)})}d.enableFineScrubbing&&(!d.enableFineScrubbing||u.getFilmstripYPosition(D)<68)||D.setState({draggedTime:K*D.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:u.controlsWereVisibleBeforeDragging});var M;(M=
d.cancelAutohideControlsFn)==null||M.call(d)}},Zx=function(u,K,l){var D=l.enableFineScrubbing&&K.fineScrubbingActiveState!=="off";
if(K.isDragging||D){D={isDragging:!1,playedTime:K.draggedTime,controlsVisible:u.controlsWereVisibleBeforeDragging};l.enableFineScrubbing&&K.fineScrubbingActiveState!=="on"&&(u.resetFilmStripYOffset(),D.fineScrubbingActiveState="off");var d=d===void 0?O29:d;var C=_.AC(0);if(C&&d){var W=Math.round(K.playedTime*1E3),M=Math.round(K.draggedTime*1E3);W>2147483647||M>2147483647||_.Hi(C,d,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(W),endMediaTimeMs:String(M),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}K.setState(D);
u.seekThrottle.fire(K.draggedTime,K,7);_.S("mweb_new_progress_bar_play_on_seek")&&u.resumeVideo(K);l.unmuteOnSeek&&(l=K.playerApi,K.volumeMuted&&(l==null||l.unMute()))}else K.setState({controlsVisible:!K.controlsVisible}),(C=l.triggerAutohideControlsAfterDelayFn)==null||C.call(l);u.startPosition=null;u.hasDraggedTheMinimumDistance=!1;u.isDraggedForFineScrubbing=!1;u.controlsWereVisibleBeforeDragging=!1};
k6.prototype.handleClick=function(u,K,l){this.updateProgressBarRect();u.stopPropagation();u=gPG(this,K,u.clientX)*K.videoDuration;K.setState({playedTime:u});if(K.playerState!==2){var D;(D=l.triggerAutohideControlsAfterDelayFn)==null||D.call(l)}this.seekThrottle.fire(u,K,7)};
var gPG=function(u,K,l){u=u.getProgressBarRect(K);return _.mz(0,(l-u.left)/u.width,1)};
k6.prototype.resumeVideo=function(u){if(u.draggedTime<u.videoDuration){var K;(K=u.playerApi)==null||K.playVideo()}};
k6.prototype.onThrottledSeek=function(u,K,l){if(K=K.playerApi){var D;if((D=K.getVideoData())==null?0:D.isLive)D=this.getProgressState(K),u+=(D==null?void 0:D.seekableStart)||0;K.seekTo(u,void 0,void 0,void 0,l)}};
k6.prototype.getProgressState=function(u){var K=u==null?void 0:u.getPresentingPlayerType();return u==null?void 0:u.getProgressState(K)};var Y2_,ZH6,Am_,mT2,kGI,h3V,EP2,LWp,uBE;Y2_=_.rf(function(u){var K=u.progressBarProps;var l=u.config;var D=u.progressBarWidthPx;var d=u.chapterData;var C=TXq(K,function(){return l().isShortsPage}),W=function(){return!K().isHovering&&!l().isShortsPage};
u={};var M=_.JB("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(u.ytPlayerStoryboardHostMwebShorts=function(){return l().isShortsPage&&!1},u));
return _.n("yt-player-storyboard",null,_.n(_.r,{cond:function(){return K().isDragging||K().isHovering},
then:function(){return _.n(_.r,{cond:C,then:function(q){return _.n(_.r,{cond:W,then:function(){return _.n("div",{class:M,"aria-hidden":"true"},_.n(kGI,{props:K,config:l,isBigboard:!0,chapterData:d}))},
else:function(){return _.n(ZH6,{props:K,frame:q,config:l,progressBarWidthPx:D,chapterData:d})}})}})}}))},"Qe");
_.XZG=_.rf(function(u){var K=u.progressBarProps;var l=TXq(K,u.isShortsPage);return _.n("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.n(_.r,{cond:function(){return K().isDragging||K().isHovering},
then:function(){return _.n(_.r,{cond:l,then:function(D){return _.n(Am_,{frame:D,props:K,isBigboard:!0})}})}}))},"Re");
ZH6=_.rf(function(u){var K=u.props;var l=u.frame;var D=u.config;var d=u.progressBarWidthPx;u=u.chapterData;var C={};C=_.JB("ytPlayerStoryboardHost",(C.ytPlayerStoryboardHostMwebShorts=function(){return D().isShortsPage&&!1},C.ytPlayerStoryboardHostInlinePlayer=function(){return D().isInlinePlayer},C.ytPlayerStoryboardHostFadeIn=function(){return D().useFadeInAnimation},C));
return _.n("div",{class:C,"aria-hidden":"true",style:function(){var W=K(),M=jgq(l()),q=d();W=BX9(W)/W.videoDuration;var v=q*W,G=M/2+6;M=q-(M/2+6);return"left: "+(v<=G?G/q*100:v>=M?M/q*100:W*100)+"%"}},_.n(_.r,{cond:function(){var W=K();
return!(D().isShortsPage&&W.videoDuration<15)},
then:function(){return _.n(Am_,{frame:l,props:K,isBigboard:!1})}}),_.n(kGI,{props:K,
config:D,isBigboard:!1,chapterData:u}))},"Se");
Am_=_.rf(function(u){var K=u.frame;var l=u.props;var D=u.isBigboard;var d=function(){var M,q;return(q=(M=l().playerApi)==null?void 0:M.getVideoContentRect())!=null?q:{width:0,height:0}},C=function(){return jgq(K())},W=function(){var M=K();
return M?M.height/M.rows:0};
u={};u=_.JB((u.ytPlayerStoryboardBigboardImageWrapper=D,u.ytPlayerStoryboardStoryboardImageWrapper=function(){return!D()},u));
return _.n("div",{class:u,style:function(){return"width: "+(D()?d().width:C())+"px; height: "+(D()?d().height:W())+"px;"}},_.n(mT2,{frame:K,
storyboardWidth:C,storyboardHeight:W,storyboardScale:function(){return(D()?d().width:C())/C()}}))},"Te");
mT2=_.rf(function(u){var K=u.frame;var l=u.storyboardWidth;var D=u.storyboardHeight;var d=u.storyboardScale;var C=function(){var W=K().row,M=K().column,q=l(),v=D(),G=d();return{left:-M*q*G,top:-W*v*G}};
return _.n("img",{src:function(){return K().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+C().left+"px; top: "+C().top+"px; width: "+K().width*d()+"px; height: "+K().height*d()+"px;"}})},"Ue");
kGI=_.rf(function(u){var K=u.props;var l=u.config;var D=u.isBigboard;var d=u.chapterData;u={};u=_.JB("ytPlayerStoryboardMetadata",(u.ytPlayerStoryboardMetadataBigboard=D,u));return _.n("div",{class:u},_.n(_.r,{cond:D,then:function(){return _.n(_.G1,null,_.n(h3V,{props:K,config:l}),_.n(_.r,{cond:function(){a:{var C=K();var W=l(),M=d(),q;if((W==null?0:W.activeChapter)&&((q=_.b(W==null?void 0:W.activeChapter,hn))==null?0:q.title))C=!0;else{W=_.y(rMH(M));for(W=W.next();!W.done;W=W.next()){C=(W=_.b(W.value,
CfA))&&pTq(C,W);break a}C=!1}}return C},
then:function(){return _.n(EP2,{props:K,config:l,isBigboard:!0,chapterData:d})}}))},
else:function(){return _.n(_.G1,null,_.n(EP2,{props:K,config:l,isBigboard:!0,chapterData:d}),_.n(h3V,{props:K,config:l}))}}))},"Ve");
h3V=_.rf(function(u){var K=u.props;var l=u.config;u={};u=_.JB("ytPlayerStoryboardTimestamp",(u.ytPlayerStoryboardTimestampShorts=function(){return l().isShortsPage},u.ytPlayerStoryboardTimestampIsHovering=function(){return K().isHovering||l().isShortsPage&&!0},u));
return _.n("div",{class:u},_.n(_.G1,null,function(){return _.i2q(BX9(K()))}))},"We");
EP2=_.rf(function(u){var K=u.props;var l=u.config;var D=u.isBigboard;var d=u.chapterData;u={};D=_.JB("ytPlayerStoryboardTitle",(u.ytPlayerStoryboardTitleBigboard=D,u));return _.n("div",{class:D},_.n(_.r,{cond:function(){return!l().isShortsPage},
then:function(){return _.n(LWp,{props:K,activeChapter:function(){return l().activeChapter},
chapterData:d})}}))},"Xe");
LWp=_.rf(function(u){var K=u.props;var l=u.activeChapter;var D=u.chapterData;return _.n(_.G1,null,_.n(_.p0,{each:function(){return rMH(D())},
keyBy:"INDEX"},function(d){return _.n(_.G1,null,_.n(_.r,{cond:function(){return _.b(d(),CfA)&&pTq(K(),_.b(d(),CfA))},
then:function(){return _.n(uBE,{timedMarker:function(){return _.b(d(),CfA)}})}}))}),_.n(_.r,{cond:function(){var d;
return l()&&((d=_.b(l(),hn))==null?void 0:d.title)},
then:function(d){return _.n(_.qC,{text:d,noPreWrap:!0})}}))},"Ye");
uBE=_.rf(function(u){var K=u.timedMarker;return _.n(_.G1,null,_.n("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.n(_.VB,{icon:function(){return K().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.n(_.qC,{text:function(){return K().label},
noPreWrap:!0}))},"Ze");_.KpE=_.rf(function(u){var K=u.progressBarProps;var l=u.playheadData;var D=u.config;u=_.o9("yt-progress-bar");var d=_.o9("div"),C=_.o9("div"),W=_.y(_.On({width:0,left:0},void 0,"NcXsUb")),M=W.next().value,q=W.next().value,v=function(){C.value&&q(C.value.getBoundingClientRect())},G=function(){M().width<=0&&v();
return M()};
$f("resize",v);var t=new k6(G,function(){},function(){return 0},function(){},function(){},function(){}),x=function(){return K()};
W=_.y(_.On(!1,void 0,"ZsF6Xc"));var O=W.next().value,a=W.next().value;W=_.p4(function(){a(!0);D().position===2?setTimeout(function(){v()},100):v()});
var f=_.p4(function(){a(!1);BmV(t,x)()}),B=_.p4(function(Bo){D().doSeekOnClick&&z3_(t,x,D)(Bo);
return!1}),p=_.p4(function(Bo){UTo(t,x)(Bo);
return!1}),V=_.p4(function(Bo){fI_(t,x)(Bo);
return!1}),m=_.p4(function(Bo){PYk(t,x,D)(Bo);
return!1}),Z=_.p4(function(Bo){jSE(t,x,D)(Bo);
return!1}),A=_.p4(function(){pZo(t,x,D)();
return!1}),h=_.p4(function(){iHE(t,x,D)();
return!1}),C9=_.p4(function(){TmH(t,x,D)();
return!1}),Wo=_.p4(function(Bo){wZ2(x)(Bo);
return!1});
$f("mousemove",FWE(t,x,D));$f("mouseup",Vj_(t,x,D));_.ZY(function(){cMH(d.value);a(!1);v();Vj_(t,x,D)()});
var $y={};$y=_.JB("ytPlayerProgressBarHost",function(){return D().className},($y.ytPlayerProgressBarHostReadOnly=function(){return D().disableScrubbing},$y.ytPlayerProgressBarHostHidden=function(){return D().hideProgressBar&&!O()},$y.ytPlayerProgressBarHostLowerPlayer=function(){return D().position===0},$y.ytPlayerProgressBarHostBottomEdge=function(){return D().position===1},$y.ytPlayerProgressBarHostBottomInset=function(){return D().position===2},$y.ytPlayerProgressBarHostCustom=function(){return D().position===
3},$y));
var co={},UZ=_.JB("ytPlayerProgressBarBackground",(co.ytPlayerProgressBarBackgroundHide=function(){return D().position===2&&!O()&&!K().isDragging},co));
co={};co=_.JB("ytPlayerProgressBarDragContainer",(co.ytPlayerProgressBarDragContainerBottomEdge=function(){return D().position===1},co));
var tH={};tH=_.JB("ytPlayerProgressBarProgressBar",(tH.ytPlayerProgressBarProgressBarInset=function(){return D().position===2},tH.ytPlayerProgressBarProgressBarInsetMinimized=function(){return D().position===2&&!O()&&!K().isDragging},tH));
var gq=function(){return Math.floor(M6r(K())*100)};
return _.n("yt-progress-bar",{el:u,class:$y},_.n(_.r,{cond:function(){return D().position===2},
then:function(){return _.n("div",{class:UZ})}}),_.n("div",{el:d,
"on:click":B,"on:touchstart":p,"on:touchmove":m,"on:mouseenter":W,"on:mousedown":V,"on:mouseleave":f,"on:mousemove":Z,"on:mouseup":h,"on:touchend":A,"on:touchcancel":C9,"on:keydown":Wo,class:co,role:"slider","aria-valuenow":gq,"aria-valuetext":function(){return gq()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return K().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.QQ("SEEK_SLIDER")},_.n("div",{el:C,class:tH},_.n(OHo,{progressBarProps:K,config:D,highContrast:function(){return!!D().isInlinePlayback}}),_.n(_.r,{cond:function(){return D().chapterData&&vjZ(D().chapterData)},
then:function(){return _.n(S26,{progressState:K,multiMarkersPlayerBarRenderer:function(){return D().chapterData},
progressBarWidth:function(){return M().width}})},
else:function(){return _.n(cm6,{progressBarProps:K,config:D})}}),_.n(aIE,{progressBarProps:K,
playheadData:l,interpolateDotPosition:function(){return D().position!==2},
hidePlayhead:function(){return D().playheadDotBehavior===1&&!O()}}))),_.n(Y2_,{progressBarProps:K,
config:function(){return{activeChapter:UMZ(K(),D().chapterData),getProgressBarWidthPx:function(){return G().width},
isShortsPage:!!D().isShortsPage,isInlinePlayer:!!D().isInlinePlayback,useFadeInAnimation:!!D().isInlinePlayback}},
progressBarWidthPx:function(){return M().width},
chapterData:function(){return D().chapterData}}))},"$e");
_.KpE.idomCompat=!0;Object.assign({},_.Goq(),{setState:function(){},
domMeasurements:{},appApi:_.H2q(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var lMk;
_.D0H=_.rf(function(){var u,K=(u=_.L5(wTL().playerApi))!=null?u:void 0;u=_.y(_.On(!1,void 0,"HLFBmb"));var l=u.next().value,D=u.next().value;u=_.y(_.On(!1,void 0,"lHH9bc"));var d=u.next().value,C=u.next().value;u=_.y(_.On(!1,void 0,"zsY7yd"));var W=u.next().value,M=u.next().value;u=_.y(_.On(!1,void 0,"KeHQgc"));var q=u.next().value,v=u.next().value;u=_.y(_.On(0,void 0,"gLLCj"));var G=u.next().value,t=u.next().value;u=_.y(_.On(0,void 0,"s3RYkf"));var x=u.next().value,O=u.next().value;u=_.y(_.On(!1,void 0,
"Dn608e"));var a=u.next().value,f=u.next().value;u=_.y(_.On(0,void 0,"AnkH1b"));var B=u.next().value,p=u.next().value;u=_.y(_.On(0,void 0,"QYNL0b"));var V=u.next().value,m=u.next().value;u=_.y(_.On("",void 0,"Yzw45d"));var Z=u.next().value,A=u.next().value;u=_.y(_.On(-1,void 0,"iiVI0c"));var h=u.next().value,C9=u.next().value,Wo=_.RZ(function(){var $y={controlsVisible:l(),isOverlayHidden:d(),shouldWaitToHideControls:W(),isDragging:q(),isHovering:a(),videoDuration:B(),playedTime:V(),videoId:Z(),draggedTime:x(),
hoveredTime:G(),playerState:h()};return Object.assign({},_.Goq(),$y,{domMeasurements:{},setState:function(co){co.controlsVisible!==void 0&&D(co.controlsVisible);co.isOverlayHidden!==void 0&&C(co.isOverlayHidden);co.shouldWaitToHideControls!==void 0&&M(co.shouldWaitToHideControls);co.isDragging!==void 0&&v(co.isDragging);co.isHovering!==void 0&&f(co.isHovering);co.draggedTime!==void 0&&O(co.draggedTime);co.hoveredTime!==void 0&&t(co.hoveredTime);co.videoDuration!==void 0&&p(co.videoDuration);co.playedTime!==
void 0&&m(co.playedTime);co.videoId!==void 0&&A(co.videoId);co.playerState!==void 0&&C9(co.playerState)},
appApi:_.H2q(),playerApi:K})},void 0,"ZW7y9");
_.N_(function(){K==null||K.addEventListener("onVideoProgress",b2H(Wo));K==null||K.addEventListener("onVideoDataChange",Srb(Wo));K==null||K.addEventListener("onStateChange",t6R(Wo))});
_.No(function(){if(K==null?0:K.isReady())K==null||K.removeEventListener("onVideoProgress",b2H(Wo)),K==null||K.removeEventListener("onVideoDataChange",Srb(Wo)),K==null||K.removeEventListener("onStateChange",t6R(Wo))});
return _.n("desktop-shorts-player-controls",null,_.n(lMk,{playerControlsProps:Wo}))},"af");
lMk=_.rf(function(u){var K=u.playerControlsProps;return _.n("div",{class:"desktopShortsPlayerControlsWizHost"},_.n(_.KpE,{progressBarProps:K,config:function(){return{isShortsPage:!0,hideProgressBar:K().videoDuration<30&&K().playerState!==2&&!K().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"bf");_.d06=_.rf(function(u){function K($y){$y!==0||t()?$y>50&&(t()||!O())?(x(!1),a(!0)):$y<=50&&(t()||O())&&(x(!1),a(!1)):x(!0)}
function l($y,co){var UZ;return _.H(function(tH){if(tH.nextAddress==1)return tH.yield(_.UK(),2);UZ=tH.yieldResult;co&&UZ?(UZ.unMute(!0),$y&&(V6q($y,UZ.getVolume()),B(UZ.getVolume()))):UZ&&(UZ.mute(!0),$y&&V6q($y,0));_.TG(tH)})}
function D($y){var co,UZ;return _.H(function(tH){if(tH.nextAddress==1)return tH.yield(_.UK(),2);co=tH.yieldResult;UZ=50;co&&(UZ=co.getVolume(),co.isMuted()?V6q($y,0):V6q($y,UZ));B(UZ);_.TG(tH)})}
var d=u.orientation;u=_.o9("desktop-shorts-volume-controls");var C=_.o9("button"),W=_.W4("input"),M=_.y(_.On(!1,void 0,"F6vt0d")),q=M.next().value,v=M.next().value,G=_.y(_.On(!1,void 0,"S5PCqb"));M=G.next().value;G=G.next().value;var t=M,x=G;G=_.y(_.On(!0,void 0,"Tgy4e"));M=G.next().value;G=G.next().value;var O=M,a=G;M=_.y(_.On(50,void 0,"Dq3efd"));var f=M.next().value,B=M.next().value;M=_.RZ(function(){var $y=t();return _.S("web_shorts_keyboard_enable_mute_shortcut")?$y?_.QQ("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.QQ("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):$y?_.QQ("UNMUTE_VOLUME",void 0,"Unmute"):_.QQ("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
G=_.RZ(function(){var $y=t(),co=O();return{sources:[{clientResource:{imageName:$y?_.S("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":co?_.S("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.S("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var p=_.RZ(function(){var $y=f();return t()?$y+"% volume muted":$y+"% volume"},void 0,"kvkmyc"),V=_.RZ(function(){return d()==="vertical_down"},void 0,"zaNsZ");
_.ZY(function(){function $y(){v(!0)}
function co(){v(!1)}
W&&W.value&&(W.value.addEventListener("focus",$y),W.value.addEventListener("focusout",co),D(W.value).then(function(){K(Number(gjH(W.value)))}));
C&&C.value&&(C.value.addEventListener("focus",$y),C.value.addEventListener("focusout",co));_.No(function(){var UZ;W==null||(UZ=W.value)==null||UZ.removeEventListener("focus",$y);var tH;W==null||(tH=W.value)==null||tH.removeEventListener("focusout",co);var gq;C==null||(gq=C.value)==null||gq.removeEventListener("focus",$y);var Bo;C==null||(Bo=C.value)==null||Bo.removeEventListener("focusout",co)})});
var m=_.p4(function(){if(W&&W.value){var $y=Number(gjH(W.value));Fuq($y);B($y);W.value.style.setProperty("--gradient-percent",$y+"%");K($y)}return!1}),Z=_.p4(function(){v(!0)}),A=_.p4(function(){W&&W.value&&(l(W.value,t()),x(!t()));
return!1}),h={},C9={},Wo={};
return _.n("desktop-shorts-volume-controls",{"on:pointerleave":_.p4(function(){v(!1)}),
class:_.JB("ytdDesktopShortsVolumeControlsHost",(h.ytdDesktopShortsVolumeControlsHostVertical=V,h.ytdDesktopShortsVolumeControlsHostExpanded=q,h)),el:u},_.n(_.r,{cond:function(){return!V()},
then:function(){var $y={};return _.n("div",{class:_.JB("ytdDesktopShortsVolumeControlsBackgroundScrim",($y.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=q,$y))})}}),_.n("div",{class:_.JB((C9.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=V,C9))},_.n("button",{"aria-label":M,
title:M,el:C,"on:click":A,"on:pointerenter":Z,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},G?_.n(_.n4,{data:G,alt:M,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.n("div",{class:_.JB("ytdDesktopShortsVolumeControlsSliderContainer",(Wo.ytdDesktopShortsVolumeControlsSliderContainerExpanded=q,Wo.ytdDesktopShortsVolumeControlsSliderContainerVertical=V,Wo.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=V,Wo.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return q()&&V()},Wo))},_.n("input",{"aria-label":_.QQ("VOLUME"),
title:_.QQ("VOLUME"),el:W,"on:input":m,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":f,"aria-valuetext":p,"aria-valuemin":0,"aria-valuemax":100})))},"cf");_.CQ2=_.rf(function(u){var K=u.data;return _.n("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.n(_.I5,{command:function(){return K().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.n(_.r,{cond:function(){return K().iconName},
then:function(l){return _.n(_.VB,{icon:l})}}),_.n("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return K().text}),_.n(_.r,{cond:function(){return K().showEndChevron},
then:function(){return _.n(_.VB,{icon:"CHEVRON_RIGHT"})}})))},"df");var IMp=_.rf(function(u){var K=u.data;var l=u.overlayDensity;u={};return _.n("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.n(_.mo,{data:function(){return K().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(D){var d=D.data;
return _.n(_.Aa,{data:function(){return(l==null?void 0:l())===1?Object.assign({},d(),{avatar:{avatarViewModel:Object.assign({},_.b(d().avatar,_.ds),{avatarImageSize:"AVATAR_SIZE_48"})}}):d()}})}}),_.n(_.mo,{data:function(){return K().avatarStackViewModel}},{avatarStackViewModel:function(D){return _.n(_.XE,{data:D.data})}}),_.n(_.qC,{className:_.JB("ytReelChannelBarViewModelChannelName",(u.ytReelChannelBarViewModelChannelNameLarge=function(){return(l==null?void 0:l())===1},u)),
text:function(){return K().channelName},
linkInheritColor:!0,userInput:!0}),_.n("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.n(_.mo,{data:function(){return K().subscribeButtonViewModel}},{subscribeButtonViewModel:function(D){var d=D.data;
return _.n(_.YR,{data:function(){return(l==null?void 0:l())===1?Object.assign({},d(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},d().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):d()},
isOverlay:!1})},
buttonViewModel:_.P2})),_.n("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.n(_.mo,{data:function(){var D,d;return(d=_.b((D=K())==null?void 0:D.sponsorButtonViewModel,thw))==null?void 0:d.sponsorButton}},{buttonViewModel:function(D){return _.n(_.P2,{data:D.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ef");var yOE=_.rf(function(u){var K=function(){var D;return(u==null?void 0:(D=u.overlayDensity)==null?void 0:D.call(u))===1?22:16},l={};
return _.n("yt-reel-multi-format-link-view-model",{class:_.JB("ytReelMultiFormatLinkViewModelHost",(l.ytReelMultiFormatLinkViewModelHostTall=!0,l.ytReelMultiFormatLinkViewModelHostLarge=function(){var D;return((D=u.overlayDensity)==null?void 0:D.call(u))===1},l))},_.n(_.I5,{ariaLabel:function(){return u.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return u.data().command}},_.n("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.n(_.r,{cond:function(){return u.data().icon},
then:function(D){return _.n(_.n4,{data:D,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:K})}}),_.n(_.qC,{text:function(){return u.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ff");
yOE.idomCompat=!0;var sOi=_.rf(function(u){var K=u.data;var l=u.overlayDensity;var D=_.o9("yt-shorts-suggested-action-view-model");u=_.y(_.On(!1,void 0,"xDqzhe"));var d=u.next().value,C=u.next().value;u=_.y(_.On(!1,void 0,"LI9CFd"));var W=u.next().value,M=u.next().value,q=function(){return K().isMultiLineSa},v=_.ie(rjn,function(){var Z,A;
return(A=(Z=K().toggleableContent)==null?void 0:Z.entityKey)!=null?A:""}),G=function(){var Z,A,h;
return(h=K().toggleableContent)!=null&&h.entityKey?(A=(Z=v())==null?void 0:Z.value)!=null?A:!1:!1},t=function(){var Z,A,h,C9,Wo,$y,co,UZ,tH,gq,Bo;
return K().toggleableContent?G()?(Z=K().toggleableContent)==null?void 0:Z.toggledData:(A=K().toggleableContent)==null?void 0:A.untoggledData:{primaryText:(UZ=(h=K().defaultContent)==null?void 0:h.primaryText)!=null?UZ:K().text,secondaryText:(C9=K().defaultContent)==null?void 0:C9.secondaryText,onTapCommand:(tH=(Wo=K().defaultContent)==null?void 0:Wo.onTapCommand)!=null?tH:K().onTapCommand,icon:(gq=($y=K().defaultContent)==null?void 0:$y.icon)!=null?gq:K().icon,image:(Bo=(co=K().defaultContent)==null?
void 0:co.image)!=null?Bo:K().image}},x=function(){return q()?K().trailingTapTarget:void 0},O=function(Z,A){return function(){return d()?A:Z}},a=function(){return{leadingSection:O("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(l==null?void 0:l())===1?O("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):O("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:O("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:O("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
u={};u=_.JB((u.ytShortsSuggestedActionViewModelStaticHost=function(){return!q()},u.ytShortsSuggestedActionViewModelDynamicHost=q,u.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return q()&&W()},u.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return q()&&!W()},u));
_.ZY(function(){if(q()){var Z=0,A;if((A=K().animationParams)==null?0:A.shouldExpand){var h,C9;Z=((C9=(h=K().animationParams)==null?void 0:h.expansionDelaySecs)!=null?C9:0)*1E3}var Wo,$y=((Wo=K().animationParams)==null?0:Wo.shouldExpand)?setTimeout(function(){C(!0)},Z):void 0,co,UZ;
Z=((co=K().animationParams)==null?0:co.visibilityDelaySecs)?((UZ=K().animationParams)==null?NaN:UZ.visibilityDelaySecs)*1E3:0;var tH=setTimeout(function(){M(!0)},Z);
_.No(function(){$y&&clearTimeout($y);clearTimeout(tH)})}});
var f=function(Z){_.IT(Z,Object.assign({},{form:{element:D.value}}))},B=_.p4(function(){var Z,A=(Z=t())==null?void 0:Z.onTapCommand;
A&&f(A)}),p=_.p4(function(){var Z,A;
if(Z=(A=x())==null?void 0:A.onTapCommand)return f(Z),!1}),V=_.Fb({"vertical-align":"bottom",
"border-radius":function(){var Z;return q()?((Z=K().defaultContent)==null?0:Z.isCircleImage)?"50%":"4px":"0px"},
width:function(){var Z,A,h;return q()&&((Z=K().defaultContent)==null?0:Z.imageSize)?((h=(A=K().defaultContent)==null?void 0:A.imageSize)!=null?h:24)+"px":null},
height:function(){var Z,A,h;return q()&&((Z=K().defaultContent)==null?0:Z.imageSize)?((h=(A=K().defaultContent)==null?void 0:A.imageSize)!=null?h:24)+"px":null}}),m={};
return _.n("yt-shorts-suggested-action-view-model",{class:u,el:D},_.n("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.n("button",{class:_.JB(function(){return q()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var Z;
return(Z=K().useFullRoundedBorder)!=null&&Z?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!x()&&q()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":q()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var Z;
return(Z=K().disableFixedHeight)!=null&&Z?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(m.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(l==null?void 0:l())===1},m)),
"on:click":B},_.n(_.ko,{model:{color:4}}),_.n("div",{class:_.JB(function(){return q()?a().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.n(_.r,{cond:function(){var Z;
return(Z=t())==null?void 0:Z.image},
then:function(Z){return _.n(_.n4,{data:Z,alt:"",className:function(){return q()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:V})}}),_.n(_.r,{cond:function(){var Z,A;
return(Z=t())==null?void 0:(A=Z.icon)==null?void 0:A.iconType},
then:function(Z){return _.n(_.VB,{icon:Z,active:G,className:function(){return q()?d()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.n("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.n(_.r,{cond:function(){var Z;
return(Z=t())==null?void 0:Z.primaryText},
then:function(Z){return _.n("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.n(_.qC,{text:Z}))}}),_.n(_.r,{cond:function(){var Z;
return(Z=t())==null?void 0:Z.secondaryText},
then:function(Z){return _.n("div",{class:function(){return a().secondaryText()}},_.n(_.qC,{text:Z}))}}))),_.n(_.r,{cond:x,
then:function(Z){return _.n("div",{class:function(){return a().trailingSection()},
"aria-label":function(){var A;return(A=Z().a11yLabel)!=null?A:""},
"on:click":p,role:"button",tabindex:0},_.n(_.ko,{model:{color:4}}),_.n(_.VB,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"gf");var o$k=_.rf(function(u){var K=u.data;var l=u.overlayDensity;var D=_.o9("yt-shorts-video-title-view-model");u=_.p4(function(W){if(_.uC(_.L1(W),D.value,["A".toString()]))return!1;(W=K().truncatedTextOnTapCommand)&&_.IT(W);return!1});
var d={},C={};return _.n("yt-shorts-video-title-view-model",{el:D,class:_.JB("ytShortsVideoTitleViewModelHost",(d.ytShortsVideoTitleViewModelHostClickable=function(){return!!K().truncatedTextOnTapCommand},d)),
"on:click":u},_.n("h2",{class:_.JB("ytShortsVideoTitleViewModelShortsVideoTitle",(C.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(l==null?void 0:l())===1},C))},_.n(_.qC,{text:function(){return K().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"hf");_.WpG=_.rf(function(u){var K=u.data;var l=u.overlayDensity;return _.n("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.n(_.mo,{data:function(){return K().metadataItems}},{badgeViewModel:function(D){return _.n("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.n(_.xW,{data:D.data}))},
playerDisclosureViewModel:function(D){return _.n("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.n(_.CQ2,{data:D.data}))},
shortsSuggestedActionViewModel:function(D){return _.n("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.n(sOi,{data:D.data,overlayDensity:l}))},
reelChannelBarViewModel:function(D){return _.n("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.n(IMp,{data:D.data,overlayDensity:l}))},
reelMultiFormatLinkViewModel:function(D){return _.n("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.n(yOE,{data:D.data,overlayDensity:l}))},
shortsVideoTitleViewModel:function(D){return _.n("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.n(o$k,{data:D.data,overlayDensity:l}))},
reelSoundMetadataViewModel:function(D){return _.n("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.n(_.Mki,{data:D.data,overlayDensity:l}))},
toggleButtonViewModel:function(D){return _.n("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.n(_.YK,{data:D.data}))}}))},"jf");var HS2=_.rf(function(u){var K=_.$U(u,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),l=K.size,D=K.onTap,d=K.disabled,C=K.tooltipText;return _.n("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.n($e,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:l(),disabled:d(),tooltipText:C(),onTap:D}},
iconName:u.iconType}))},"kf"),MAi=_.rf(function(u){function K(G){G.stopPropagation();
G.code==="ArrowUp"?(G.preventDefault(),Z2Z(M.value)):G.code==="ArrowDown"?(G.preventDefault(),Yrq(M.value)):G.code==="KeyM"?NXq():(G.code==="KeyK"||G.code==="Space")&&koq(q())}
var l=_.$U(u,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});u=l.previousButtonDisabled;var D=l.nextButtonDisabled,d=l.data,C=l.playabilityStatus,W=l.previewThumbnail,M=_.o9("ytd-shorts-miniplayer-overlay"),q=_.Da(_.aGH),v;_.N_(function(){(v=_.hO(M.value))&&v.addEventListener("keydown",K)});
_.No(function(){var G;(G=v)==null||G.removeEventListener("keydown",K)});
l=function(){var G,t,x;return(G=d())==null?void 0:(t=G.reelPlayerOverlayRenderer)==null?void 0:(x=t.likeButton)==null?void 0:x.likeButtonRenderer};
return _.n("ytd-shorts-miniplayer-overlay",{el:M,class:"ytdShortsMiniplayerOverlayHost"},_.n("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Fb({"background-image":function(){var G=W();return G?'url("'+_.O4(G.thumbnails)+'")':""}})}),_.n("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.n("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.n(HS2,{iconType:function(){var G=q();
return G===2||G===-1||G===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){koq(q())},
tooltipText:function(){var G=q();return G===1||G===3?_.QQ("PLAYER_LABEL_PAUSE"):_.QQ("PLAYER_LABEL_PLAY")}}),_.n(_.d06,{orientation:"horizontal_right"})),_.n("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.n(HS2,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:u,onTap:function(){Z2Z(M.value)},
tooltipText:_.QQ("PREVIOUS_VIDEO_LABEL")}),_.n(HS2,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:D,onTap:function(){Yrq(M.value)},
tooltipText:_.QQ("NEXT_VIDEO_LABEL")}),_.S("web_shorts_pip_like_button")?_.n("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.n(R$C,{buttonTooltipPosition:"left",data:l,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.n("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.n(_.r,{cond:function(){var G,t;return _.b((G=d())==null?void 0:(t=G.reelPlayerOverlayRenderer)==null?void 0:t.metapanel,
_.ngH)},
then:function(G){return _.n("div",{class:_.JB("ytdShortsMiniplayerOverlayInteractive")},_.n(_.WpG,{data:G}))}})),_.n("div",{class:_.JB("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var G;return!((G=d())==null||!G.adsOverlay)||C()&&!wfy(C())}},_.n("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.n(_.D0H,null)))),_.n(_.r,{cond:function(){var G=d(),t,x;
G=_.b(G==null?void 0:(t=G.adsOverlay)==null?void 0:(x=t.fulfillmentContent)==null?void 0:x.fulfilledLayout,BRS);return _.b(G==null?void 0:G.renderingContent,FIA)},
then:function(G){return _.n("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.n(bum,{data:G}))}}))},"lf");var AML=_.rf(function(){var u=_.y(_.On(new _.jA(NaN,NaN),void 0,"HSMFk")),K=u.next().value,l=u.next().value;u=_.y(_.On(!1,void 0,"uaAxwf"));var D=u.next().value,d=u.next().value,C=_.y(_.On(!1,void 0,"nVSwef"));u=C.next().value;var W=C.next().value,M=_.GB().resolve(_.uD).miniplayerPropSignalMap[0],q=M.data,v=M.shortsData,G=M.nextButtonDisabled,t=M.shortsPreviewThumbnail,x=M.previousButtonDisabled,O=M.externalPlaylistData;C=M.toastData;var a=M.playabilityStatus,f=M.isDisabled,B=M.playerVe,p=M.closeVe;
M=_.Da(_.UL);_.s6("yt-pip-window-resized",function(A){l(A)});
_.s6("yt-activate-pip-miniplayer",function(){return _.H(function(A){W(!0);_.TG(A)})});
var V=function(){var A;return!((A=O())==null||!A.contents)&&D()},m=function(){var A=K(),h=!!q(),C9=V();
A=A.clone();h&&(A.height-=76);C9&&(A.height-=285);return A},Z=function(){d(!D())};
_.gp(function(){var A=B(),h=_.AC(11),C9=_.Yr(11);h&&C9&&A&&(_.DJ(h,C9,A),C9=p())&&(_.dZ(h,A,[C9]),_.If(h,[C9]))},"HPkp0c");
return _.n("ytd-pip-container",{class:"ytdPipContainerHost"},_.n(_.r,{cond:u,then:function(){return _.n(_.GGG,{isDisabled:f,playabilityStatus:a,size:m})}}),_.n(_.r,{cond:q,
then:function(){return _.n(_.rmi,{data:q,expanded:D,onExpandClick:Z,playlistData:O})}}),_.n(_.r,{cond:V,
then:function(){return _.n("div",{class:"ytdPipContainerPlaylistPanel"},_.n(_.z$a,{data:O,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.n(_.r,{cond:M,
then:function(){return _.n(MAi,{data:v,nextButtonDisabled:G,previousButtonDisabled:x,playabilityStatus:a,previewThumbnail:t})}}),_.n("div",{class:"ytdPipContainerToast"},_.n(_.tjk,{toastData:C})))},"mf");var Y6=function(u,K){var l=this;this.pipController=u;this.JSC$18514_clientRoot=K;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=Ioh();this.watchPipEnabled=_.S("web_watch_pip");this.shortsPipEnabled=_.S("web_shorts_pip");this.JSC$18514_watchWhileEnabled=_.S("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;_.iF(_.Mu(),_.S7n,function(D){l.isSingleOptionSurveyActive=D});
this.JSC$18514_onPlayerPlayVideo=this.JSC$18514_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);_.I9(_.Ci.getInstance(),this.miniplayerServiceActionMap,this.JSC$18514_clientRoot);u.pictureInPictureSupported()&&_.YE("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},u92,bS_,GjB,OSo,cOo,dHm;
Y6.prototype.handleMediaSessionPipActivation=function(){var u=this,K;return _.H(function(l){_.B3().mediaSessionPipActivation=!0;K=_.GB().resolve(_.GT);return K.isOnWatch()&&u.watchPipEnabled?(_.B3().watchPipActivation=!0,_.qyV(u,K.data),l.jumpTo(0)):K.isOnShorts()&&u.shortsPipEnabled?(_.B3().shortsPipActivation=!0,_.$06(u),l.jumpTo(0)):u.isMiniplayerActive()&&u.watchPipEnabled&&!u.watchWhileMode?l.yield(n$i(u),0):l.jumpTo(0)})};
var n$i=function(u){var K,l,D,d;return _.H(function(C){if(C.nextAddress==1)return K=!u.miniplayerToPipMode,l=u.playerElement,D=u.miniplayerData,d=u.watchResponse,C.yield(u.deactivate(),2);if(C.nextAddress!=3)return K?(_.B3().mediaSessionPipActivation=!0,_.B3().watchPipActivation=!0):_.B3().miniplayerButtonActivation=!0,C.yield(u.activate(l,D,d),3);u.miniplayerToPipMode=K;_.TG(C)})};
Y6.prototype.onDownloadedVideoDeleted=function(u){var K,l=_.b((K=this.miniplayerData)==null?void 0:K.watchEndpoint,_.oy),D,d;l&&((D=this.watchResponse)==null?void 0:(d=D.playerResponse)==null?void 0:d.offlineState)!==void 0&&(K=l.videoId)&&u&&K===u&&this.close()};
Y6.prototype.onShowMiniplayerCommand=function(u){var K=this,l,D,d,C,W,M,q,v,G,t,x,O,a;return _.H(function(f){switch(f.nextAddress){case 1:return l=_.b(u,C1a),d=(D=l)==null?void 0:D.miniplayerCommand,C=_.b(d,_.oy),d&&C&&!K.active?f.yield(_.ki.getInstance(),2):f.return();case 2:return W=f.yieldResult,f.yield((M=W)==null?void 0:M.get("yt-miniplayer-shown-video-id"),3);case 3:q=f.yieldResult;v=C.videoId;if(!v||q===v)return f.return();G=_.GB().resolve(_.GT);if(G.isOnWatch())return _.hV(Error("Gj")),f.return();
t={channelItem:{externalId:btoa(v)}};K.readyToResumeVe=_.Yo(121253,void 0,void 0,t);_.B3().showMiniplayerCommandActivation=!0;return f.yield(_.CWR(K,d,!0),4);case 4:return K.active?(_.AG(K,{readyToResumeVe:K.readyToResumeVe,continueWatching:!0,premiumBranding:!((x=l)==null||!x.showPremiumBranding)}),_.S("ytd_miniplayer_to_wiz")&&_.AG(K,{isReadyToResume:!0}),K.isReadyToResume=!0):_.AG(K,{continueWatching:!0,premiumBranding:!((O=l)==null||!O.showPremiumBranding)}),f.yield((a=W)==null?void 0:a.set("yt-miniplayer-shown-video-id",
C.videoId),5);case 5:K.readyToResumeVe=void 0,_.TG(f)}})};
Y6.prototype.init=function(u){this.miniplayerEl?_.hV(new _.wv("MiniplayerService already initialized.")):this.miniplayerEl=u};
Y6.prototype.isInitialized=function(){var u=!!this.miniplayerEl;u||_.hV(new _.wv("MiniplayerService used before initialized."));return u};
_.qyV=function(u,K){if(u.isInitialized()){var l=_.ojZ(K.response,K.playerResponse),D=_.GB().resolve(_.GT).getPlayerFromWatch();_.B3().currentEndpoint=l.watchEndpoint||null;u.activate(D,l,K)}};
_.$06=function(u){if(u.isInitialized()){var K=_.GB().resolve(_.GT).getPlayerFromShorts();u.activate(K)}};
u92=function(u,K){var l;(l=!u.isInitialized())||(l=_.GB().resolve(_.GT).isOnWatch()&&u.watchPipMode,l=!(u.isMiniplayerActive()&&(_.B3().userActivation||_.B3().lockupActivation||l)));if(l)return!1;rOI(u,K)?_.NF(u):dHm(u,K);return u.watchPipMode?!_.GB().resolve(_.GT).isOnWatch():!0};
Y6.prototype.isMiniplayerActive=function(){return this.active};
var rOI=function(u,K){var l;K=(l=_.b(K,_.oy))==null?void 0:l.videoId;var D,d;u=(d=_.b((D=u.miniplayerData)==null?void 0:D.watchEndpoint,_.oy))==null?void 0:d.videoId;return K!=null&&K===u};
Y6.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.xs(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.Sy(this.miniplayerEl,"yt-navigate-home-action"))};
_.CWR=function(u,K,l,D){l=l===void 0?!1:l;var d,C,W;return _.H(function(M){switch(M.nextAddress){case 1:if(u.active){M.jumpTo(2);break}d=_.GB().resolve(_.GT);if(W=(C=u.playerElement)!=null?C:d.getPlayerFromWatch()){M.jumpTo(3);break}return M.yield(_.GB().resolve(_.aw),4);case 4:W=d.getPlayerFromWatch();case 3:if(!W){_.hV(Error("Ij"));M.jumpTo(2);break}return M.yield(u.activate(W,D),2);case 2:return u.active?M.yield(dHm(u,K,l),0):M.return()}})};
Y6.prototype.activate=function(u,K,l){var D=this,d,C,W,M,q,v,G,t,x;return _.H(function(O){switch(O.nextAddress){case 1:if(!D.isInitialized())return O.return();if(!u)return _.hV(Error("Ij")),O.return();if(_.n_m()||D.isMiniplayerActive())var a=!0;else a=_.B3().watchPipActivation||_.B3().watchWhileActivation,_.GB().resolve(_.GT).isOnWatch()&&!a?(_.hV(new _.wv("miniplayer activated on watch page")),a=!0):a=_.B3().watchWhileActivation?D.userDeactivatedWatchWhile||!!document.pictureInPictureElement||xHq():
!1;if(a)return $xH(),O.return();d=_.B3().mediaSessionPipActivation;C=_.B3().shortsPipActivation;W=_.B3().watchPipActivation;q=(M=_.B3().watchWhileActivation)||W;v=W||C;if(!D.pictureInPictureEnabled()||!v){O.jumpTo(2);break}return O.yield(v$I(D,d),3);case 3:if(!O.yieldResult)return _.hV(Error("Hj")),$xH(),O.return();case 2:return D.setActive(!0),D.watchResponse=l,D.playerElement=u,D.updateMiniplayerData(K),O.yield(GjB(D,u),4);case 4:if(!D.active)return _.hV(new _.wv("miniplayer deactivated during activation")),
D.removePlayerListeners(),O.return();a=_.GB().resolve(_.lX);a.addEventListener("yt-navigate",_.Ql(D,D.onPlaylistNavigate));a.addEventListener("yt-playlist-data-updated",_.Ql(D,D.JSC$18514_onPlaylistDataUpdated));D.JSC$18514_onPlaylistDataUpdated();$xH();D.JSC$18514_watchWhileEnabled&&_.tA2(D,M);D.pictureInPictureEnabled()&&D.shortsPipEnabled&&(D.shortsPipMode=C,_.Mu().dispatch(ucC(D.shortsPipMode)));D.pictureInPictureEnabled()&&D.watchPipEnabled&&(D.watchPipMode=W,_.bRZ(D.handleMediaSessionPipActivation));
D.player&&(G=D.player.getPlayerState(),t=G===1,_.Mu().dispatch(s4s(G)),_.bI(D.miniplayerEl,"yt-miniplayer-play-state-changed",[t]),_.B3().isVideoPlaying=t);_.bI(D.miniplayerEl,"yt-miniplayer-endpoint-changed");x02(D);_.SyH(D);return D.shortsPipMode||D.watchPipMode?O.yield(_.Ox(D.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.S("ytd_miniplayer_to_wiz")?O.yield(_.Ox(D.miniplayerEl,"yt-activate-miniplayer",[q]),6):O.yield(_.Ox(D.miniplayerEl,"yt-activate-miniplayer-action",[u,q]),6);case 6:if(D.watchResponse&&
!_.S("miniplayer_copy_screen_on_activation_killswitch")){a=D.getScreenLayer();var f=_.AC(0),B=d2q(0);f&&B&&(_.mq(f,B,a),a===0&&lwo(void 0,0))}bS_(D);OSo(D,!0);(x=D.getPlayerElement())==null||x.focusOnPlayer();_.TG(O)}})};
Y6.prototype.updateMiniplayerData=function(u){this.miniplayerData=u;_.AG(this,{data:u})};
_.SyH=function(u){var K,l,D=((K=u.miniplayerData)==null?void 0:(l=K.miniplayerRenderer)==null?void 0:l.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";K=u.watchWhileMode||u.watchPipMode?D&&!_.GB().resolve(_.GT).isOnWatch():D;_.AG(u,{isDisabled:K});var d,C;l=_.b((d=u.miniplayerData)==null?void 0:(C=d.miniplayerRenderer)==null?void 0:C.minimizedEndpoint,_.kg);K&&l&&_.GB().resolve(_.NR).openSheet({openPopupActionCommand:{openPopupAction:l}},u.miniplayerEl)};
bS_=function(u){if(u.watchResponse&&!cOo(u)){var K,l=(K=u.watchResponse.playerResponse)==null?void 0:K.trackingParams;l&&(_.AG(u,{expandVe:_.Yo(35989),closeVe:_.Yo(34699),readyToResumeCloseVe:_.Yo(131070),repositionVe:_.Yo(226204),resizeVe:_.Yo(226205)}),_.AG(u,{playerVe:_.gf(l)}))}};
GjB=function(u,K){return _.H(function(l){if(l.nextAddress==1)return K.preparePlayer(),l.yield(K.getPlayerPromise(),2);u.player=l.yieldResult;u.player&&(u.player.addEventListener("onPlayVideo",u.JSC$18514_onPlayerPlayVideo),u.player.addEventListener("onCloseMiniplayer",u.onPlayerCloseMiniplayer),u.player.addEventListener("onExpandMiniplayer",u.onPlayerExpandMiniplayer),u.player.addEventListener("onStateChange",u.onPlayerStateChange));_.TG(l)})};
_.I=Y6.prototype;_.I.JSC$18514_onPlayerPlayVideo=function(u){var K=u.sessionData&&"autonav"in u.sessionData,l;u.sessionData&&u.sessionData.itct&&(l=u.sessionData.itct);var D=u.watchEndpoint;K=D&&K?_.jl9(D,l):_.vi(u.videoId,u.listId||void 0,l);u.sessionData&&_.qB(_.b(K.commandMetadata,_.nN).url,u.sessionData);dHm(this,K)};
_.I.onPlayerExpandMiniplayer=function(){_.NF(this)};
_.I.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.I.onPlayerStateChange=function(){if(this.player){var u=this.player.getPlayerState(),K=u===1;_.Mu().dispatch(s4s(u));_.Mu().dispatch(_.HKR(u));_.bI(this.miniplayerEl,"yt-miniplayer-play-state-changed",[K]);_.B3().isVideoPlaying=K;if(u===0){K=!_.v3.getInstance().isAutoplaySetExplicitly();var l,D,d,C,W,M,q=(l=this.watchResponse.response)==null?void 0:(D=l.contents)==null?void 0:(d=D.twoColumnWatchNextResults)==null?void 0:(C=d.autoplay)==null?void 0:(W=C.autoplay)==null?void 0:(M=W.autoplayExplicitChoiceDialogRenderer)==
null?void 0:M.confirmDialogRenderer;K&&q&&this.player.setAutonavState(1)}u===0&&this.watchWhileMode&&this.deactivate()}};
_.I.onPlaylistNavigate=function(u,K){var l=this,D,d,C,W,M,q,v;return _.H(function(G){if(G.nextAddress==1){if(!_.b(K.endpoint,_.oy))return G.return();_.B3().currentEndpoint=K.endpoint;_.bI(l.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.GB().resolve(_.GT).isOnWatch()&&(l.watchWhileMode||l.watchPipMode))return G.return();u.stopPropagation();(C=(d=_.b((D=K.endpoint)==null?void 0:D.commandMetadata,_.nN))==null?void 0:d.url)&&K.tempData&&!_.k$.isEmpty(K.tempData)&&_.qB(C,K.tempData);W={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};M=new qha(function(){return l.getPlayerElement()},W,{layer:l.getScreenLayer()});
q=function(t){M.processChunk({endpoint:K.endpoint,data:t})};
aMk(l);l.miniplayerFetchRequest=z__(l,K.endpoint,q);_.Qg(G,2);return G.yield(l.miniplayerFetchRequest,4)}if(G.nextAddress!=2)return v=G.yieldResult,e_o(l,v),_.I$(G,0);_.iY(G);_.TG(G)})};
_.I.JSC$18514_onPlaylistDataUpdated=function(){var u=_.GB().resolve(_.lX).getPlaylistData();this.hasPlaylistData=!!u;_.AG(this,{externalPlaylistData:u||{}})};
_.I.close=function(u){if(this.isInitialized())if(u){if(!((this.watchWhileMode||this.watchPipMode)&&_.GB().resolve(_.GT).isOnWatch()||this.shortsPipMode)){var K;(K=this.getPlayerElement())==null||K.stop()}this.deactivate()}else _.y1().closeMiniplayer(this.miniplayerEl)};
_.I.deactivate=function(u){var K=this,l,D,d,C;return _.H(function(W){if(W.nextAddress==1){if(!K.isInitialized()||!K.active)return W.return();K.setActive(!1);aMk(K);(l=!!u&&rOI(K,u))&&K.isSingleOptionSurveyActive&&_.Sy(K.miniplayerEl,"yt-show-watch-page-survey",[K.isSingleOptionSurveyActive]);return W.yield(R_i(K),2)}if(W.nextAddress!=3){OSo(K,!1);K.isReadyToResume=!1;K.watchResponse=void 0;K.updateMiniplayerData(void 0);K.shortsPipMode&&(K.shortsPipMode=!1,_.Mu().dispatch(ucC(K.shortsPipMode)),g0I(K.pipController),
(D=K.player)==null||D.setInternalSize(NaN,NaN));K.watchPipMode&&(K.watchPipMode=!1,g0I(K.pipController));(d=K.watchWhileMode)&&_.tA2(K,!1);K.removePlayerListeners();var M=_.GB().resolve(_.lX);M.removeEventListener("yt-navigate",_.Ql(K,K.onPlaylistNavigate));M.removeEventListener("yt-playlist-data-updated",_.Ql(K,K.JSC$18514_onPlaylistDataUpdated));_.B3().currentEndpoint=null;_.bI(K.miniplayerEl,"yt-miniplayer-endpoint-changed");K.playerElement=null;$xH();return K.shortsPipMode||K.watchPipMode?W.jumpTo(3):
W.yield(_.Ox(K.miniplayerEl,_.S("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[l,d]),3)}(C=K.player)==null||C.setInternalSize(NaN,NaN);K.player=null;_.TG(W)})};
var R_i=function(u){var K;return _.H(function(l){K=_.GB().resolve(_.GT);return u.shortsPipMode?l.yield(K.movePlayerToShorts(u.playerElement),0):l.yield(K.movePlayerToWatch(u.playerElement),0)})};
Y6.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18514_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Y6.prototype.setActive=function(u){this.active=u;this.isSingleOptionSurveyActive?_.Sy(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.Sy(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Mu().dispatch(_.SZ({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.tA2=function(u,K){u.watchWhileMode=K;_.AG(u,{watchWhile:K})};
OSo=function(u,K){if(!cOo(u))if(u.shortsPipMode||u.watchPipMode){var l;(l=u.player)==null||l.setDocumentPictureInPicture(K)}else{var D;(D=u.player)==null||D.setMinimized(K)}};
cOo=function(u){return u.watchWhileMode&&_.S("kevlar_watch_while_counterfactual")};
_.NF=function(u){var K;return _.H(function(l){switch(l.nextAddress){case 1:if(!u.isInitialized())return l.return();_.Qg(l,2);return l.yield(u.miniplayerFetchRequest,4);case 4:_.I$(l,3);break;case 2:_.iY(l);case 3:u.watchResponse&&u.miniplayerData&&u.miniplayerData.watchEndpoint?(K={url:u.watchResponse.url,endpoint:u.miniplayerData.watchEndpoint,data:u.watchResponse,miniplayer:!0},_.xs(u.miniplayerEl,"yt-navigate-cache",K)):u.miniplayerData&&u.miniplayerData.watchEndpoint&&_.xs(u.miniplayerEl,"yt-navigate",
{endpoint:u.miniplayerData.watchEndpoint}),_.TG(l)}})};
dHm=function(u,K,l){var D,d,C,W;return _.H(function(M){if(M.nextAddress==1){if(rOI(u,K))return M.return();_.B3().currentEndpoint=K;_.bI(u.miniplayerEl,"yt-miniplayer-endpoint-changed");_.bI(u.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.B3().isVideoPlaying=!1;D={clientParams:{miniplayer:!0,autoSaveToQueue:!l}};d=new qha(function(){return u.getPlayerElement()},D,{layer:u.getScreenLayer(),
parentLayer:0},void 0,u.readyToResumeVe);C=function(q){var v,G,t=Object.assign({},(v=q.playerResponse)==null?void 0:(G=v.playerConfig)==null?void 0:G.playbackStartConfig,{startPaused:!0}),x;l&&((x=q.playerResponse)==null?0:x.playerConfig)&&(q.playerResponse.playerConfig.playbackStartConfig=t);d.processChunk({endpoint:K,data:q})};
aMk(u);u.miniplayerFetchRequest=z__(u,K,C);_.Qg(M,2);return M.yield(u.miniplayerFetchRequest,4)}if(M.nextAddress!=2)return W=M.yieldResult,e_o(u,W),_.I$(M,0);_.iY(M);_.TG(M)})};
Y6.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var aMk=function(u){u.miniplayerFetchRequest&&(u.miniplayerFetchRequest.cancel&&u.miniplayerFetchRequest.cancel("Active request obsolete"),u.miniplayerFetchRequest=null)},z__=function(u,K,l){var D=_.ww.instance,d,C=(d=_.b(K.commandMetadata,_.nN))==null?void 0:d.url,W;
d=!C||_.S("disable_miniplayer_tempdata")?{}:(W=N3R(C))!=null?W:{};return DO(D,K,d,window.location.href,"watch",function(M,q){l(q)},function(M){return M!==u.miniplayerFetchRequest})},e_o=function(u,K){var l;
_.H(function(D){if(!K)return D.return();u.watchResponse=K;bS_(u);x02(u);l=_.ojZ(K.response,K.playerResponse);if(u.isMiniplayerActive()){K.response&&(u.playerElement.watchNextData=K.response);var d=_.k$.getValueByKeys.apply(_.k$,[K].concat(_.Am(OKs)));_.k$.getValueByKeys.apply(_.k$,[K].concat(_.Am(RnR)))&&d&&_.GB().resolve(_.lX).setAutoplayRenderer(d);if(d)if(_.S("kevlar_is_pupi_enabled")){var C,W,M,q,v,G=((C=K.response)==null?0:(W=C.playerOverlays)==null?0:(M=W.playerOverlayRenderer)==null?0:(q=M.autonavToggle)==
null?0:(v=q.autoplaySwitchButtonRenderer)==null?0:v.enabled)?2:1;_.v3.getInstance().setState(G,!1,!1)}else C=dLH()?2:1,(G=u.player)==null||G.setAutonavState(C);u.updateMiniplayerData(l);_.SyH(u)}_.TG(D)})},x02=function(u){var K,l,D=(K=u.watchResponse)==null?void 0:(l=K.playerResponse)==null?void 0:l.playabilityStatus,d;
K=D==null?void 0:(d=D.miniplayer)==null?void 0:d.miniplayerRenderer;(K==null?void 0:K.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&K.minimizedEndpoint&&_.c0(u.miniplayerEl,[K.minimizedEndpoint]);_.AG(u,{miniplayerRenderer:K,playabilityStatus:D})};
Y6.prototype.openToast=function(u,K){_.AG(this,{toastData:{data:u,label:K}})};
_.AG=function(u,K){var l=u.miniplayerEl,D;for(D in K)l[D]=K[D];(0,u.miniplayerPropSignalMap[1])(K)};
Y6.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var u;return this.playerElement?this.playerElement:(u=_.bi(this.miniplayerEl).querySelector("#player-container"))==null?void 0:u.firstElementChild};
Y6.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var v$I=function(u,K){K=K===void 0?!1:K;var l,D,d,C,W,M,q;return _.H(function(v){if(v.nextAddress==1){l=navigator.userActivation.isActive||K;if(!l||!u.pictureInPictureSupported())return v.return(!1);D=U0E(u);d=D.width;C=D.height;return v.yield(u.pipController.openWindow({width:d,height:C}),2)}W=v.yieldResult;M=u.pipController.getWindow();if(!M||!W)return v.return(!1);M.document.body.style.overflow="hidden";q=XTy(M);NNo(u.pipController,function(){fMB(u);q()});
return v.return(!0)})},U0E=function(u){var K=_.B3().shortsPipActivation,l,D;
u=K?.5625:(D=(l=u.player)==null?void 0:l.getVideoAspectRatio())!=null?D:16/9;l=Math.min(window.innerWidth,window.innerHeight)/2;K=K?0:76;return u>1?new _.jA(l,K+l/u):new _.jA(l*u,K+l)},fMB=function(u){var K;
_.H(function(l){K=_.GB().resolve(_.GT);return K.isOnWatch()&&u.watchPipMode||K.isOnShorts()&&u.shortsPipMode?l.yield(u.deactivate(),0):u.miniplayerToPipMode?l.yield(n$i(u),0):u.watchPipMode?l.yield(_.NF(u),0):l.jumpTo(0)})};
Y6.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.MN.Object.defineProperties(Y6.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Y6[vP]=[kwo,hzm];var QOG="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(" "),
PQH="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(" "),JOo="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
jOE="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var BuV=null;var pKH={},iSE=(pKH.initialized={priority:10,callback:function(u){var K=_.GB();K.addProvider({provide:Do0,useClass:Z_2});K.addProvider({provide:_.k6o,useFactory:function(){return new dow}});
K.addProvider({provide:FJ,useValue:_.E3("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});K.addProvider({provide:LsH,useValue:5184E6});K.addProvider({provide:nyo,useValue:_.k5()});K.addProvider({provide:cR6,useClass:hKN});K.addProvider({provide:dF,useClass:dF});K.addProvider({provide:_.aw,useFactory:function(){return KjS.promise}});
K.addProvider({provide:_.DgC,useFactory:function(){return _.lXN.promise}});
K.addProvider({provide:Q3H,useValue:function(){var q;return((q=_.xY())==null?void 0:q.getPlayer())||null}});
var l={};K.addProvider((l.provide=_.HY,l.useFactory=function(q,v){return function(){return CWH(q,v)}},l[vP]=[FJ,
LsH],l));l={};K.addProvider((l.provide=_.zz,l.useClass=Fb6,l[vP]=[FJ,LsH],l));l={};K.addProvider((l.provide=_.HBZ,l.useClass=kh_,l[vP]=[_.zz],l));K.addProvider({provide:Q0,useFactory:_.Mu});K.addProvider({provide:cU,useFactory:_.Mu});K.addProvider({provide:USI,useFactory:_.Mu});K.addProvider({provide:TFN,useFactory:_.Mu});K.addProvider({provide:_.lf,useFactory:_.Mu});K.addProvider({provide:Pe,useValue:_.fm});K.addProvider({provide:wEi,useClass:CvL});K.addProvider({provide:UWH,useClass:Rva});K.addProvider({provide:hS,
useClass:hS});K.addProvider({provide:JT,useClass:JT});K.addProvider({provide:j_,useClass:j_});K.addProvider({provide:p7,useClass:p7});K.addProvider({provide:d6,useClass:d6});K.addProvider({provide:fA,useClass:fA});K.addProvider({provide:Oi,useClass:Oi});K.addProvider({provide:Uw6,useValue:oPV});K.addProvider({provide:_.Zl,useFactory:_.iT});K.addProvider({provide:r4,useFactory:_.jy});l={};K.addProvider((l.provide=XnR,l.useFactory=function(q){return function(v){var G=G===void 0?{}:G;var t,x,O=(x=_.b((t=
v.endpoint)==null?void 0:t.commandMetadata,_.nN))==null?void 0:x.rootVe;if(O){var a,f;if(t=v.previousCsn||((f=_.b((a=v.endpoint)==null?void 0:a.commandMetadata,jPC))==null?void 0:f.parentCsn)){var B=B===void 0?{}:B;if(t!==_.AC(B.layer)||O!==d2q(B.layer))ov9(t,B.cttAuthInfo,B.layer||0),lwo(t,B.layer||0),a=B.layer||0,_.h8(D2o(a===void 0?0:a),O);G.parentCsn=t}v.endpoint&&t?L9k(q,v.endpoint,G):_.ev(q,O,void 0,G);var p;((p=v.response)==null?0:p.trackingParams)&&q.graftServerVe(v.response.trackingParams);
var V;((V=v.playerResponse)==null?0:V.trackingParams)&&q.graftServerVe(v.playerResponse.trackingParams);var m;((m=v.reelWatchSequenceResponse)==null?0:m.trackingParams)&&q.graftServerVe(v.reelWatchSequenceResponse.trackingParams)}}},l[vP]=[_.Zl],l));
l={};K.addProvider((l.provide=QCp,l.useClass=fA_,l[vP]=[Pe,_.lf],l));l={};K.addProvider((l.provide=bu,l.useClass=bu,l[vP]=[_.aw,_.lf],l));l={};K.addProvider((l.provide=GK,l.useClass=GK,l[vP]=[cU,_.t9],l));K.addProvider({provide:_.isE,useClass:YBp});l={};K.addProvider((l.provide=_.gP,l.useClass=Fai,l[vP]=[_.isE],l));K.addProvider({provide:_.NR,useClass:a3});K.addProvider({provide:_.oyI,useClass:ei_});K.addProvider({provide:_.kR,useClass:OY});l={};K.addProvider((l.provide=_.Mj,l.useClass=ZsH,l[vP]=
[_.Mj],l));K.addProvider({provide:_.ba,useClass:b8w});K.addProvider({provide:pL,useClass:pL});K.addProvider({provide:gJ,useClass:gJ});K.addProvider({provide:ht,useClass:cY});l={};K.addProvider((l.provide=uR,l.useClass=uR,l[vP]=[_.NR,ht],l));_.S("web_enable_feedback_endpoint_resolver")&&(l={},K.addProvider((l.provide=PL,l.useClass=PL,l[vP]=[Q0,fL],l)),K.addProvider({provide:fL,useClass:Z8A}));_.S("web_enable_feedback_endpoint_resolver_batch_2")&&(l={},K.addProvider((l.provide=je,l.useClass=je,l[vP]=
[Q0],l)),l={},K.addProvider((l.provide=Jt,l.useClass=Jt,l[vP]=[fL],l)));l={};K.addProvider((l.provide=ED,l.useClass=ED,l[vP]=[_.kR,ht],l));l={};K.addProvider((l.provide=Yk,l.useClass=Yk,l[vP]=[_.kR],l));l={};K.addProvider((l.provide=LL,l.useClass=LL,l[vP]=[_.md,_.gP],l));l={};K.addProvider((l.provide=mc,l.useClass=mc,l[vP]=[_.md,_.Zl],l));K.addProvider({provide:bR,useClass:bR});l={};K.addProvider((l.provide=n$,l.useClass=n$,l[vP]=[Q0],l));K.addProvider({provide:p$,useClass:p$});K.addProvider({provide:Bh,
useClass:Bh});l={};K.addProvider((l.provide=Tm,l.useClass=Tm,l[vP]=[Q0],l));l={};K.addProvider((l.provide=w4,l.useClass=w4,l[vP]=[_.md,Q0],l));l={};K.addProvider((l.provide=Fj,l.useClass=Fj,l[vP]=[Q0],l));l={};K.addProvider((l.provide=Vv,l.useClass=Vv,l[vP]=[Q0],l));l={};K.addProvider((l.provide=At,l.useClass=At,l[vP]=[_.gP],l));l={};K.addProvider((l.provide=eC,l.useClass=eC,l[vP]=[_.Zl],l));l={};K.addProvider((l.provide=Jj,l.useClass=Jj,l[vP]=[xb],l));l={};K.addProvider((l.provide=jC,l.useClass=
jC,l[vP]=[xb],l));K.addProvider({provide:f$,useClass:f$});K.addProvider({provide:Qv,useClass:Qv});K.addProvider({provide:zm,useClass:zm});l={};K.addProvider((l.provide=K$,l.useClass=K$,l[vP]=[_.gP,_.t9],l));K.addProvider({provide:wJ,useClass:wJ});l={};K.addProvider((l.provide=XJ,l.useClass=XJ,l[vP]=[_.md,_.gP],l));K.addProvider({provide:N5,useClass:N5});l={};K.addProvider((l.provide=qj,l.useClass=qj,l[vP]=[Q0,_.md,_.Mj],l));l={};K.addProvider((l.provide=Wh,l.useClass=Wh,l[vP]=[_.md,_.t9],l));K.addProvider({provide:ivA,
useValue:tNn});K.addProvider({provide:gqa,useValue:ZLq});K.addProvider({provide:Hh,useClass:Hh});l={};K.addProvider((l.provide=oz,l.useClass=oz,l[vP]=[Q0],l));l={};K.addProvider((l.provide=$b,l.useClass=$b,l[vP]=[_.ba,_.t9],l));l={};K.addProvider((l.provide=BL,l.useClass=BL,l[vP]=[_.t9],l));K.addProvider({provide:UD,useFactory:function(){return new UD(_.Mu())}});
K.addProvider({provide:n8y,useFactory:_.YO.getInstance});l={};K.addProvider((l.provide=V0,l.useClass=V0,l[vP]=[FJ,n8y,_.t9],l));K.addProvider({provide:ix,useClass:ix});K.addProvider({provide:cL,useClass:cL});K.addProvider({provide:zy,useClass:zy});K.addProvider({provide:_.aW,useClass:_.aW});K.addProvider({provide:kb,useClass:kb});l={};K.addProvider((l.provide=Iz,l.useClass=Iz,l[vP]=[cU],l));l={};K.addProvider((l.provide=yv,l.useClass=yv,l[vP]=[_.t9],l));_.S("web_enable_prefetching_videos_on_home")&&
(K.addProvider({provide:vY,useClass:vY}),K.addProvider({provide:iu,useClass:iu}));l={};K.addProvider((l.provide=Nj,l.useClass=Nj,l[vP]=[_.t9],l));K.addProvider({provide:ee,useClass:ee});l={};K.addProvider((l.provide=OH,l.useClass=OH,l[vP]=[_.md,_.t9],l));l={};K.addProvider((l.provide=RW,l.useClass=RW,l[vP]=[_.t9],l));K.addProvider({provide:TK,useClass:TK});K.addProvider({provide:d4,useClass:d4});l={};K.addProvider((l.provide=Df,l.useClass=Df,l[vP]=[cU,_.t9],l));l={};K.addProvider((l.provide=Aj,l.useClass=
Aj,l[vP]=[cU,_.t9,_.md],l));l={};K.addProvider((l.provide=Xj,l.useClass=Xj,l[vP]=[_.t9],l));l={};K.addProvider((l.provide=Yb,l.useClass=Yb,l[vP]=[_.t9,_.md],l));l={};K.addProvider((l.provide=sH,l.useClass=sH,l[vP]=[_.aw],l));l={};K.addProvider((l.provide=C$,l.useClass=C$,l[vP]=[_.aw],l));K.addProvider({provide:tj,useClass:tj});K.addProvider({provide:SC,useClass:SC});K.addProvider({provide:iR,useClass:iR});K.addProvider({provide:ch,useClass:ch});K.addProvider({provide:Gm,useClass:Gm});K.addProvider({provide:kk,
useClass:kk});K.addProvider({provide:vh,useClass:vh});_.S("kevlar_enable_mss_lazy_load")&&K.addProvider({provide:_.lD,useClass:U9_});K.addProvider({provide:_.iX,useClass:ez});K.addProvider({provide:rz,useFactory:function(){return _.Ci.getInstance()}});
K.addProvider({provide:ew_,useFactory:tVq});K.addProvider({provide:xb,useFactory:function(){return _.ki.getInstance()}});
K.addProvider({provide:Ysw,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});l={};K.addProvider((l.provide=_.tG,l.useClass=_.tG,l[vP]=[_.aw,_.t9,_.Zl,ew_,xb,rz,Ysw,Pe],l));K.addProvider({provide:_.Qa,useClass:j3N});K.addProvider({provide:_.Kbo,useClass:uq_});l={};K.addProvider((l.provide=Zn,l.useClass=Zn,l[vP]=[_.Kbo],l));l={};K.addProvider((l.provide=_.x6,l.useFactory=function(q){return q.upliftCompletionResolver.promise},l[vP]=[QCp],l));
l=_.L0("IS_SHELL_LOAD")?"aa":"eocs";var D=_.L0("IS_SHELL_LOAD")?3:2;_.dw().parkOrScheduleJob(function(){JRB()},D,l);
_.dw().parkOrScheduleJob(function(){_.GB().resolve(bu).start()},2,"eocs");
_.dw().parkOrScheduleJob(function(){Rwp()},2,"eocs");
_.dw().parkOrScheduleJob(function(){_.GB().resolve(GK).start()},2,"eocs");
_.S("kevlar_debug_data_app_registration_ks")||DFL();K.addProvider({provide:_.Xb,useValue:new P7B(u.root)});K.addProvider({provide:Dh,useValue:new O1H});K.addProvider({provide:_.FV2,useValue:new TDA(u.root)});K.addProvider({provide:_.XQ,useValue:new wXw});K.addProvider({provide:_.V1,useClass:BB});K.addProvider({provide:kwo,useClass:zK});_.S("kevlar_network_sli_killswitch")||K.addProvider({provide:KJG,useValue:ihC});K.addProvider({provide:jz,useFactory:ssR});_.S("web_bind_fetch")&&(l={},K.addProvider((l.provide=
F_k,l.useFactory=ohh,l[vP]=[_.vv(jz)],l)));_.S("web_bind_parse")&&(l={},K.addProvider((l.provide=Vko,l.useFactory=W69,l[vP]=[_.vv(jz)],l)));_.S("web_bind_window_request")&&(l={},K.addProvider((l.provide=gpo,l.useFactory=HEn,l[vP]=[_.vv(jz)],l)));_.S("web_bind_text_decoder")&&(l={},K.addProvider((l.provide=NH2,l.useFactory=Mnq,l[vP]=[_.vv(jz)],l)));l={};K.addProvider((l.provide=tr2,l.useFactory=ZEH,l[vP]=[_.x6,Q0,_.HY],l));l={};K.addProvider((l.provide=Ghp,l.useClass=mw,l[vP]=[tr2],l));K.addProvider({provide:jRE,
useClass:fH6});K.addProvider({provide:$wV,useClass:rHE});l=[].concat(_.Am(qX));_.S("web_continuation_response_processing")&&l.push(_.C1);l.push(WHa);_.S("enable_share_panel_navigation_logging_fix_on_web")&&l.push(_.UD0);K.addProvider({provide:Gsr,useValue:l});K.addProvider({provide:GM9,useClass:qZ_});K.addProvider({provide:Ikp,useClass:lkp});l={};K.addProvider((l.provide=$fH,l.useClass=h$a,l[vP]=[cU],l));_.YL.addLowPriorityJob(function(){FXy()});
l={};K.addProvider((l.provide=VpC,l.useFactory=function(q){return function(v){var G,t=(G=_.b(v.commandMetadata,_.nN))==null?void 0:G.url;if(!t)throw new _.wv("No URL for PBJ Command",v);t=DBw(t,{pbj:"1"});G=Sxw(t,{})||{};G=Object.assign({},G,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.E3("STS").toString()});v=_.fT({command:JSON.stringify(v),session_token:_.E3("XSRF_TOKEN")});return q.fetch(t,{method:"POST",headers:G,body:v})}},l[vP]=[Ikp],l));
l=[];l.push(K.resolve($wV));D={};D=(D.client_location=_.YO.getInstance(),D.consistency=_.dRn(),D.entities=K.resolve(UWH),D.response_received_commands=K.resolve(GM9),D.store=K.resolve(_.HBZ),D.tokens=K.resolve($wV),D);_.S("web_service_params_response_processor")&&(K.addProvider({provide:Epi,useFactory:function(){var q={};return q.CSI=$QL(),q.ECATCHER=qJy(),q}}),K.addProvider({provide:ybZ,
useClass:L_p}),D.service_params=K.resolve(ybZ));if(_.S("web_shorts_prefetch_service_enabled")){var d=new Z9_(K.resolve(_.zz));D.shorts_prefetch=d}D.adblock_detection=K.resolve($fH);K.addProvider({provide:_.ye,useClass:_.ye});d=K.resolve(Uw6);var C=[];_.S("PremiumClientSharedConfig__enable_att_context_processor")&&(K.addProvider({provide:qws,useClass:Wsa}),C.push(K.resolve(qws)));if(_.S("owl_pl_await")){var W={};K.addProvider((W.provide=JE6,W.useFactory=function(q){return new Q2E(q)},W[vP]=[_.ye],
W));
C.push(K.resolve(JE6))}Lcs(d,K.resolve(Ikp),K.resolve(wEi),D,K.resolve(_.zz),l,C,K.resolve(Ghp),K.resolve(jRE));K.addProvider({provide:_.md,useValue:_.ow.instance});_.S("start_client_gcf")&&K.addProvider({provide:g2,useValue:B_C()});K.addProvider({provide:BN6,useFactory:function(){return new BN6(_.GB().resolve(_.ye),_.ki.getInstance())}});
_.dw().parkOrScheduleJob(function(){pai()},1,"eocs");
l={};K.addProvider((l.provide=Sz,l.useClass=Sz,l[vP]=[_.HY,_.md],l));K.addProvider({provide:_.LaG,useFactory:_.pY.getInstance});_.dw().parkOrScheduleJob(function(){_.GB().resolve(Sz).refresh()},0,"eocs");
gBN(oPV.watchEndpointMap||{},d.reelWatchEndpointMap||{},u.injector.resolve(_.md));K.addProvider({provide:VU,useValue:_.ww.instance});_.S("kevlar_signal_collection_killswitch")||(l={},K.addProvider((l.provide=OsE,l.useClass=OsE,l[vP]=[FJ,r4],l)),_.dw().parkOrScheduleJob(function(){_.GB().resolve(OsE).record()},1,"eocs"));
_.S("web_debug_handler_registration_killswitch")||_.dw().parkOrScheduleJob(function(){KN9("DOWNLOAD_PES",GPq);_.S("offline_client_state_export_ks")||KN9("OFFLINE_CLIENT_STATE",nSq)},0,"eocs");
_.S("kevlar_prevent_polymer_dynamic_font_load")&&_.dw().parkOrScheduleJob(function(){var q=[_.Oy(vui),_.Oy(Ggi)];q=_.y(q);for(var v=q.next();!v.done;v=q.next()){v=v.value;var G=document.createElement("link");_.vZ(G,v,"stylesheet");document.head.appendChild(G)}},1,"eocs");
l=u.injector.resolve(_.md);_.MJS.instance=new _.MJS(l);LXq(dWw(new H8N(l)));l={};u.injector.addProvider((l.provide=ni,l.useFactory=function(q){(q=q==null?void 0:q.getCurrentPage())?q=q.visibilityObserver:(BuV||(BuV=W9o()),q=BuV);return q},l[vP]=[_.vv(_.GT)],l.skipCache=!0,l));
K.addProvider({provide:_.uD,useClass:Y6});K.addProvider({provide:j0,useClass:Vza});u.injector.addProvider({provide:pHN,useValue:QnH});K.addProvider({provide:bvm,useValue:ncn});K.addProvider({provide:_.H1,useValue:zrq});u=K.addProvider;K_p||(K_p=new uII);u.call(K,{provide:_.R3,useValue:K_p});K.addProvider({provide:_.qI,useValue:_.E3("HTML_DIR")==="rtl"?"rtl":"ltr"});K.addProvider({provide:Qp2,useClass:N7a});K.addProvider({provide:_.Q2,useClass:UY});_.GB().addProvider({provide:J2B,useValue:_.S("enable_web_delhi_icons")?
PQH.concat(jOE):QOG.concat(JOo)});K.addProvider({provide:_.QA,useClass:_.QA});K.addProvider({provide:_.qSo,useValue:new MFG});K.addProvider({provide:Uzk,useClass:zv0});K.addProvider({provide:az,useClass:az});K.addProvider({provide:Rz,useClass:Rz});u={};K.addProvider((u.provide=lR,u.useClass=lR,u[vP]=[_.md,_.gP],u));K.addProvider({provide:Zf,useClass:Zf});K.addProvider({provide:XCa,useClass:Xa_});K.addProvider({provide:Ph,useClass:Ph});K.addProvider({provide:GX2,useValue:DvR});K.addProvider({provide:_.lx,
useClass:evs});_.S("enable_payments_purchase_manager")&&K.addProvider({provide:vCa,useClass:$WA});K.addProvider({provide:rX2,useFactory:function(){return function(q){return _.nuB(q)}}});
K.addProvider({provide:_.H92,useClass:Mrp});u={};K.addProvider((u.provide=g4,u.useClass=g4,u[vP]=[_.H92],u));K.addProvider({provide:UH,useClass:UH});K.addProvider({provide:gjA,useValue:tww});K.addProvider({provide:hga,useValue:_.W_2});K.addProvider({provide:MzH,useClass:ARi});K.addProvider({provide:lBH,useValue:q22});u={};K.addProvider((u.provide=Dp6,u.useClass=dpV,u[vP]=[lBH],u));u={};K.addProvider((u.provide=_.g6,u.useClass=$T6,u[vP]=[Dp6],u));u={};K.addProvider((u.provide=_.JG,u.useClass=PY,u[vP]=
[_.lf,_.V1],u));if(_.S("web_explore_hub_on_hover")||_.S("web_client_explore_hub_on_hover"))u={},K.addProvider((u.provide=Ty,u.useClass=Ty,u[vP]=[_.md,rz],u));if(_.S("web_enable_renderer_logger")){var M=new THB;m2w(function(){M.abort()});
K.addProvider({provide:IZh,useValue:new aAo(M.signal)})}K.addProvider({provide:rkm,useValue:xjn});u={};K.addProvider((u.provide=AH_,u.useClass=YZB,u[vP]=[_.md],u))}},pKH);var TuB={},wKV=(TuB.initialized={priority:10,callback:function(){if(!uzG){UEZ();rDo("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.zB(_.Js(rDo,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.S("log_heartbeat_with_lifecycles")){var u={};nD.instance||(nD.instance=new nD);nD.instance.install((u.document_visible={callback:vhh,priority:10},u.document_hidden={callback:vhh,priority:10},u))}else _.np(document,"visibilitychange",vhh);uzG=!0}(u=_.AC())&&u!=="UNDEFINED_CSN"&&usb(u)}},TuB);var FpI={},VA_=(FpI.initialized={callback:function(u){var K=_.Yo(232091),l=u.injector.resolve(_.Zl);_.RD(l,K);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?mMH()&&_.ft(l,K):(u=u.injector.resolve(rX2)("refresh_detector"))&&(u.get("first_tab_load")?_.ft(l,K):u.set("first_tab_load","1"))}},FpI);var g$_={},Nu2=(g$_.initialized={priority:10,callback:dfy},g$_);var kji={},ZS6=(kji.initialized={priority:0,callback:function(){var u=new jek,K="other";_.f3?K="chrome":_.Uf?K="firefox":_.LT?K="safari":Mh&&(K="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(l){u.increment(_.pT(),l,K)}).catch(function(){u.increment(_.pT(),!1,K)}):u.increment(_.pT(),!1,K)}},kji);var Yyp={},AOi=(Yyp.rendering={priority:8,callback:ClH},Yyp);var XKp={},m0i=(XKp.rendering={priority:10,callback:xfb},XKp.rendered={callback:t7b},XKp),h_G={},E$i=(h_G.rendering={callback:xfb},h_G.rendered={callback:t7b},h_G);var LpV=!1,udE={},KMo=(udE.initialized={priority:10,callback:function(){LpV||(l89({didPatch:function(u){u.el&&eln(u.el,u.props)},
didUnmount:function(u){aKr(u.el)}}),LpV=!0)}},udE);var luB=/^\/shorts\/?$/;_.h8("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.S("kevlar_enable_mss")){_.iTL(new GAa);var Dt2=!0,dtB,XK;Dt2=Dt2===void 0?!1:Dt2;dtB=dtB===void 0?!1:dtB;XK=XK===void 0?{}:XK;var C2B=XK.cssRowKey||"",Iu2=XK.combinedSignature||"";!C2B&&window&&window._F_cssRowKey&&(C2B=window._F_cssRowKey,!Iu2&&window._F_combinedSignature&&(Iu2=window._F_combinedSignature));if(C2B&&typeof window._F_installCss!=="function")throw Error("wd");var yqB=XK.loaderClass||_.dV,mN=cPh("base-js"),seB,oVp=zJh("",mN);seB=_.Fz(oVp);var hG=new yqB(seB,C2B,Iu2,Dt2,dtB),WME=
XK.useCors||mN&&mN.hasAttribute("crossorigin"),HVG=XK.corsMode||mN&&mN.getAttribute("crossorigin");WME&&(hG.useCors_=WME);HVG&&(hG.corsMode_=HVG);XK.urlMaxLength&&(hG.urlMaxLength=XK.urlMaxLength);XK.fetchPriority&&(hG.fetchPriority=XK.fetchPriority);var Mbk=kV();Mbk.JSC$9982_loader_=hG;Mbk.setBatchModeEnabled(!0)}
(function(){var u=document.querySelector("ytd-app");if(!u)throw Error("Jj");u=new BY({root:u,injector:_.GB()});u.install(wKV);var K={};u.install((K.initialized={priority:10,callback:K8Z},K));_.S("wp_lat_b")&&(K={},u.install((K.initialized={priority:10,callback:function(){CUy()}},K)));
K={};u.install((K.rendered={priority:0,callback:ERb},K));K={};u.install((K.rendered={priority:0,callback:function(){_.YL.addLowPriorityJob(function(){_.kvw>1&&(kzH(),mRq())},4E4)}},K));
u.install(Nb6);u.install(VA_);u.install(KMo);F6q();u.install(Eu_);u.install(iMG);u.install(VF_);u.install(rRE);u.install(SBp);u.install(m9G);u.install(iSE);_.S("kevlar_enable_mss_lazy_load")&&u.install(Nu2);u.install(wr_);u.install(ZS6);if(!_.L0("IS_SHELL_LOAD")||_.S("kevlar_fetch_initial_data_promise_client")||_.S("sw_nav_preload_pbj")){var l=_.RK(window.location.href);K=l&&l==="/watch";l=l&&l.match(luB);K?u.install(E$i):l?u.install(AOi):u.install(m0i)}else u.install(jQ6);u.install(ZMV);_.S("web_enable_prefetching_videos_on_home")&&
u.install(lI6);_.S("start_client_gcf")&&u.install(hiH);u.install(HsI);(new BBs).increment("INSTALLED");u.install(unk);u.install(QQE);u.transition("initialized");hLo()})();
_.zO=[[["eHdxdHBtejgzaDFza2luZCM=","eDg5Zm91M3M3eHZhbHVlI3Fl"],"X1BMQUNFTUVOVF9LSU5EX0xBWU9VVF9JRF9FTlRFUkVEI2kwbTNjZG9lc3M1MkFE"]];_.a7=["YmFja3MjMmNqZXd2d3I0NWpzZ2xvYmFsQ2FsbA==","ZCNyaXN0OWVjOGk1Y29uQWJub3JtYWxpdHlEZXRlY3Rl","b2g2Zm9uQWRTa2lwI2R6ZnJmbWxn","ZSN0ejMycHVnZW8yMW1yYXdfcGxheWVyX3Jlc3BvbnM=","bnkxcGdwMGFkc0VuZ2FnZW1lbnRQYW5lbFJlbmRlcmVyI3NnMThs"];_.We="YmFja3MjMmNqZXd2d3I0NWpzZ2xvYmFsQ2FsbA== ZCNyaXN0OWVjOGk1Y29uQWJub3JtYWxpdHlEZXRlY3Rl b2g2Zm9uQWRTa2lwI2R6ZnJmbWxn ZSN0ejMycHVnZW8yMW1yYXdfcGxheWVyX3Jlc3BvbnM= X3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI3FyZXg4cXRlN2QzZndlYg== czMycmFiX3NhX2VmIzhldGk4YjJt bnkxcGdwMGFkc0VuZ2FnZW1lbnRQYW5lbFJlbmRlcmVyI3NnMThs".split(" ");
_._ModuleManager_initialize=function(u,K){if(!_.gB){if(!_.Nt)return;_.iTL(_.Nt())}_.gB.setAllModuleInfoString(u,K)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:5,a,d/sye/syf:6/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy5','syi','syh','sye','syc','syb','sy1','syk','sy7','sy6','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.Kx=function(u,K,l,D,d){var C={};K&&(C[K]=l);D?C.errorType=D:d&&(C.errorReason=d);_.YE(u,C);_.AV()};
_.lJ=function(u){var K=_.dw();return _.BLa(K,u,1)};
_.YH({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 u=this.query;u&&(this.full||u[0]==="("||(u="("+u+")"),this._mq=window.matchMedia(u),this._add(),this.queryHandler(this._mq))},
queryHandler:function(u){this._setQueryMatches(u.matches)}});var bVp;var OVG;var cqG=function(){};
_.I=cqG.prototype;_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I._tapHandler=function(){};
_.I._focusChanged=function(){};
_.I._detectKeyboardFocus=function(){};
_.I._userActivate=function(){};
_.I._upHandler=function(){};
_.I._spaceKeyDownHandler=function(){};
_.I._spaceKeyUpHandler=function(){};
_.I._asyncClick=function(){};
_.I._pressedChanged=function(){};
_.I._ariaActiveAttributeChanged=function(){};
_.I._activeChanged=function(){};
_.I._controlStateChanged=function(){};
_.I._changedButtonState=function(){};
_.I._focusBlurHandler=function(){};
_.I._disabledChanged=function(){};
_.I._changedControlState=function(){};
_.I._downHandler=function(){};
_.I.ensureRipple=function(){};
_.I.getRipple=function(){};
_.I.hasRipple=function(){};
_.I._noinkChanged=function(){};
_.I._focusedChanged=function(){};
_.I._createRipple=function(){};
_.I.registered=function(){};
_.I._invalidChanged=function(){};
_.I.hasValidator=function(){};
_.I.validate=function(){};
_.I._getValidity=function(){};
_.I._requiredChanged=function(){};
_.I._valueChanged=function(){};
_.I._checkedChanged=function(){};
_.I._buttonStateChanged=function(){};
_.I._setPressed=function(){};
_.I._setPointerDown=function(){};
_.I._setReceivedFocusFromKeyboard=function(){};
_.I._setFocused=function(){};
cqG=_.YH({is:"tp-yt-paper-radio-button",_template:function(){if(OVG!==void 0)return OVG;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;bVp===void 0&&(bVp=document.createElement("template"));var D=bVp;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return OVG=u},
behaviors:[_.ILS],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(){_.W_(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var u=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),K=Math.floor(3*u);K%2!==u%2&&K++;this.updateStyles({"--paper-radio-button-ink-size":K+"px"})}})}});var auk;var zyB;_.YH({_template:function(){if(zyB!==void 0)return zyB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;auk===void 0&&(auk=document.createElement("template"));var D=auk;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return zyB=u},
is:"tp-yt-paper-radio-group",behaviors:[_.tUH],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(u){var K=this._valueToItem(u);if(!K||!K.hasAttribute("disabled")){if(this.selected){K=this._valueToItem(this.selected);if(this.selected==u)if(this.allowEmptySelection)u="";else{K&&(K.checked=!0);return}K&&
(K.checked=!1)}_.sp.select.apply(this,[u]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(u){this._focusPrevious();u.preventDefault();this._activateFocusedItem()},
_onDownKey:function(u){this._focusNext();u.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(u){_.GTa._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(u){_.GTa._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.sp._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.YX._resetTabindices.apply(this,arguments);this.items.forEach(function(u){u.removeAttribute("aria-selected")},this)}});var eyV;_.E4("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var D4=function(){return _.Q.apply(this,arguments)||this};
_.c(D4,_.Q);_.I=D4.prototype;_.I.computeHasPrimaryIcon=function(u){return!(!u.icon&&!u.thumbnail)};
_.I.computeHasSecondary=function(u){return!(!u.secondaryIcon&&!u.secondaryNotificationText)};
_.I.computeHideSecondaryString=function(u){return!_.S("disable_hide_empty_secondary_string")&&!u.secondaryNotificationText};
_.I.computeCompactLinkStyle=function(u){return u?u.toLowerCase().replace(/_/g,"-"):""};
_.I.computeHasFitHeight=function(u){return u==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.I.isActiveEndpoint=function(u){return(u=this.get("commandMetadata.webCommandMetadata.url",u))?_.RK(window.location.href)!=="/account_transfer_channel"&&_.RK(window.location.href)!=="/gaia_link"&&_.RK(window.location.href)!=="/channel_switcher"||u!=="/account"?_.RK(window.location.href)===u:!0:!1};
_.I.onTap=function(){var u;((u=this.data)==null?0:u.serviceEndpoint)&&_.c0(this.hostElement,[this.data.serviceEndpoint])};
D4.prototype.onTap=D4.prototype.onTap;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],D4.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.N("design:type",Boolean)],D4.prototype,"active",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.N("design:type",String)],D4.prototype,"compactLinkStyle",void 0);
_.g([_.U({computed:"computeIcon_(data.icon)"}),_.N("design:type",Object)],D4.prototype,"icon",void 0);_.g([_.U({computed:"computeIcon_(data.secondaryIcon)"}),_.N("design:type",Object)],D4.prototype,"secondaryIcon",void 0);_.g([_.U({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],D4.prototype,"hasSecondary",void 0);_.g([_.U({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],D4.prototype,"hideSecondaryString",void 0);
_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D4.prototype,"onTap",null);_.g([_.T({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],D4);
_.F(D4,"ytd-compact-link-renderer",function(){if(eyV!==void 0)return eyV;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return eyV=u},{mode:1});var RyE;_.E4("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var dt=function(){var u=_.Q.apply(this,arguments)||this;u.role="link";u.tabindex="0";u.actionMap=_.S("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 u};
_.c(dt,_.Q);_.I=dt.prototype;_.I.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Nu()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.I.getCurrentTheme=function(){return _.kO()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Nu()};
_.I.onThemeSelected=function(u,K){var l=u||K?u:_.ge(),D=(l&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!l&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.K9q(_.RK(window.location.href));_.B0(0,165,u);_.B0(0,174,K);this.prefs.save();D&&_.Sy(this.hostElement,"yt-dark-mode-toggled-action",[l]);_.Sy(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.I.onTap=function(){this.data.serviceEndpoint&&_.c0(this.hostElement,[this.data.serviceEndpoint])};
_.I.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.I.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.I.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
dt.prototype.onTap=dt.prototype.onTap;dt.prototype.dataChanged=dt.prototype.dataChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],dt.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.MA),_.N("design:type",Object)],dt.prototype,"paperItemBehaviors",void 0);_.g([_.U(),_.N("design:type",Object)],dt.prototype,"data",void 0);_.g([_.U({value:function(){return _.jy()}}),
_.N("design:type",_.xv)],dt.prototype,"prefs",void 0);_.g([_.U(),_.N("design:type",Object)],dt.prototype,"label",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],dt.prototype,"role",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],dt.prototype,"tabindex",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dt.prototype,"dataChanged",null);
_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dt.prototype,"onTap",null);_.g([_.T({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],dt);
_.F(dt,"ytd-toggle-theme-compact-link-renderer",function(){if(RyE!==void 0)return RyE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return RyE=u},{mode:1});
}catch(e){_._DumpException(e)}
try{
var fup,Qep;_.Cx=function(u){return!!u.getOptions("captions")};
_.Uti=function(u){return(u=u.getOption("captions","track"))?!!u.displayName:!1};
_.I_=function(u,K){_.ZS(K,u,function(){return fup[K]},function(l){fup[K]=l;
if(!_.S("mweb_player_ve_show_ks")){var D=_.AC(0);D&&l&&_.Cm(D,l)}})};
_.yj=function(u){(u=fup[u])&&_.ft(_.iT(),u)};
fup={};var P2_;/*

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
*/
_.YH({_template:function(){if(P2_!==void 0)return P2_;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;Qep===void 0&&(Qep=document.createElement("template"));var D=Qep;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return P2_=u},
is:"tp-yt-paper-checkbox",behaviors:[_.ILS],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.W_(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var u=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),K="px",l=u.match(/[A-Za-z]+$/);l!==null&&(K=l[0]);u=parseFloat(u);l=8/3*u;K==="px"&&(l=Math.floor(l),l%2!==u%2&&l++);this.updateStyles({"--paper-checkbox-ink-size":l+
K})}})},
_computeCheckboxClass:function(u,K){var l="";u&&(l+="checked ");K&&(l+="invalid");return l},
_computeCheckmarkClass:function(u){return u?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.dZA._createRipple.call(this)}});var JqE=new _.r3("radioButtonSurveyOptionRenderer"),jeG=new _.r3("checkboxSurveyOptionRenderer");var BB_;var pOp;var iVp=0,sb=function(){var u=_.Q.call(this)||this;u.selected=!1;u.isOverlay=!1;u.inputId="toggle-option-"+iVp;iVp++;return u};
_.c(sb,_.Q);sb.prototype.onTap=function(){_.xs(this.hostElement,"ytd-toggle-option-clicked")};
_.g([_.U(),_.N("design:type",String)],sb.prototype,"label",void 0);_.g([_.U(),_.N("design:type",String)],sb.prototype,"inputId",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],sb.prototype,"selected",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],sb.prototype,"isOverlay",void 0);_.g([_.T({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.N("design:paramtypes",[])],sb);
_.F(sb,"ytd-toggle-option-renderer",function(){if(pOp!==void 0)return pOp;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return pOp=u},{mode:1});var o_=function(){var u=_.Q.apply(this,arguments)||this;u.isToggleOption=!1;u.isOverlay=!1;return u};
_.c(o_,_.Q);o_.prototype.onTap=function(u){u.preventDefault();this.data&&(u=!this.data.checked,this.set("data.checked",u),_.xs(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:u,value:this.data.value}))};
_.MN.Object.defineProperties(o_.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
o_.prototype.onTap=o_.prototype.onTap;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],o_.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],o_.prototype,"isToggleOption",void 0);_.g([_.U(),_.N("design:type",Object)],o_.prototype,"isOverlay",void 0);_.g([_.R("data.responseText"),_.N("design:type",String),_.N("design:paramtypes",[])],o_.prototype,"label",null);
_.g([_.PF("ytd-toggle-option-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],o_.prototype,"onTap",null);_.g([_.T({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],o_);
_.F(o_,"ytd-checkbox-survey-option-renderer",function(){if(BB_!==void 0)return BB_;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return BB_=u},{mode:1});var TBG;var wOE;var WG=function(){var u=_.Q.apply(this,arguments)||this;u.checked=!1;u.isToggleOption=!1;return u};
_.c(WG,_.Q);WG.prototype.onTap=function(){this.data&&(this.checked?_.Sy(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.Sy(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
WG.prototype.onTap=WG.prototype.onTap;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],WG.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],WG.prototype,"checked",void 0);_.g([_.U(),_.N("design:type",Object)],WG.prototype,"isToggleOption",void 0);_.g([_.PF("ytd-toggle-option-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],WG.prototype,"onTap",null);
_.g([_.T({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],WG);
_.F(WG,"ytd-radio-button-survey-option-renderer",function(){if(wOE!==void 0)return wOE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return wOE=u},{mode:1});var HG=function(){var u=_.Q.apply(this,arguments)||this;u.disableAnimation=!1;u.isToggleOption=!0;u.followUpSurveyCommand=null;u.selectedRatingEndpoint=null;u.isSlimlineSurveyFollowUp=!1;u.isShortsStyle=!1;u.styleOverrideAttribute=!0;u.isDarkMode=!1;u.isSubmitted=!1;u.roundedContainer=!0;u.improveShortsResponseRate=_.S("web_improve_shorts_response_rate");u.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 u};
_.c(HG,_.Q);_.I=HG.prototype;
_.I.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"}}}}};
_.I.attached=function(){var u=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(l){var D;if((D=l[0])!=null&&D.isIntersecting){_.Bb().reportShown(u.hostElement);var d;(d=u.intersectionObserver)==null||d.unobserve(u.hostElement)}},{rootMargin:"0px",
threshold:.6});var K;(K=this.intersectionObserver)==null||K.observe(this.hostElement)};
_.I.onDarkModeToggledAction=function(u){this.isDarkMode=u};
_.I.dataChanged=function(){var u;if(((u=this.data)==null?void 0:u.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var K;((K=this.data)==null?void 0:K.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var l,D,d,C;this.darkColorPalette=(l=this.data)==null?void 0:(D=l.inlineContent)==null?void 0:(d=D.compactVideoRenderer)==null?void 0:(C=d.thumbnail)==null?
void 0:C.darkColorPalette;var W,M,q,v;this.lightColorPalette=(W=this.data)==null?void 0:(M=W.inlineContent)==null?void 0:(q=M.compactVideoRenderer)==null?void 0:(v=q.thumbnail)==null?void 0:v.lightColorPalette;var G,t;if(((G=this.data)==null?0:(t=G.inlineContent)==null?0:t.compactVideoRenderer)&&this.isShortsStyle){var x,O,a,f;u=_.O4((x=this.data)==null?void 0:(O=x.inlineContent)==null?void 0:(a=O.compactVideoRenderer)==null?void 0:(f=a.thumbnail)==null?void 0:f.thumbnails);_.e8(this.hostElement,
{"--yt-background-url":"url("+u+")"})}};
_.I.handleRequestCompletion=function(){this.hostElement.hidden&&_.xs(this.hostElement,"yt-dismissible-item-dismissed")};
_.I.onPopupClosed=function(u){var K;((K=u.detail)==null?void 0:K.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.Sy(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.I.handleInlineSurveyRatingSelect=function(u,K){var l=this;this.selectedRatingEndpoint=u;this.followUpSurveyCommand=K;this.expanded=!!u;this.getOptionRenderers().forEach(function(D,d){l.notifyPath("followUpSurveyCommand.followUpOptions."+d+".checkboxSurveyOptionRenderer.checked");l.set("followUpSurveyCommand.followUpOptions."+d+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),u=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.Sy(this.hostElement,"yt-reel-non-video-content-dismissal-command",[u]))};
_.I.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.Sy(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var u,K=(u=this.data)==null?void 0:u.dismissalEndpoint;K&&this.ytComponentBehavior.resolveCommand(K)}};
_.I.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.Sy(this.hostElement,"yt-close-popup-action"))};
_.I.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var u=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{u=this.getOptionRenderers().filter(function(D){return D.checked});
if(u.length===0)return;u=u.map(function(D){return D.responseEndpoint})}var K=[];
u.forEach(function(D,d){d!==0&&(D=_.b(D,_.X_))&&D.feedbackToken&&K.push(D.feedbackToken)});
if(u=u[0]){var l={};K.length>0&&(l.extra_feedback_tokens=K);this.ytComponentBehavior.resolveCommand(u,{form:l})}}};
_.I.getOptionRenderers=function(){var u=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(K){u.isSingleSelect=!!_.b(K,JqE);return u.isSingleSelect?_.b(K,JqE):_.b(K,jeG)}):[]};
_.I.handleInlineSurveyOptionSelect=function(u){u=this.optionSelector.indexOf(u);u!==-1&&this.optionSelector.selectIndex(u)};
_.I.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.I.maybeGetBackgroundColor=function(u){return this.isDarkMode?u.section2Color:u.section3Color};
_.I.colorPaletteChanged=function(){var u=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;u=u&&this.maybeGetBackgroundColor(u);this.dismissibleEl.style.backgroundColor=!u||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.ui(u)};
_.MN.Object.defineProperties(HG.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
HG.prototype.colorPaletteChanged=HG.prototype.colorPaletteChanged;HG.prototype.onPopupClosed=HG.prototype.onPopupClosed;HG.prototype.handleRequestCompletion=HG.prototype.handleRequestCompletion;HG.prototype.dataChanged=HG.prototype.dataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],HG.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],HG.prototype,"actionHandlerBehavior",void 0);
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],HG.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],HG.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.BF("#follow-up-survey-options"),_.N("design:type",Object)],HG.prototype,"optionSelector",void 0);_.g([_.U(),_.N("design:type",Object)],HG.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Object)],HG.prototype,"disableAnimation",void 0);_.g([_.U(),_.N("design:type",Object)],HG.prototype,"isToggleOption",void 0);_.g([_.U(),_.N("design:type",Object)],HG.prototype,"followUpSurveyCommand",void 0);_.g([_.U(),_.N("design:type",Object)],HG.prototype,"selectedRatingEndpoint",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],HG.prototype,"expanded",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],HG.prototype,"isSlimlineSurveyFollowUp",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],HG.prototype,"isShortsStyle",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],HG.prototype,"styleOverrideAttribute",void 0);_.g([_.U(),_.N("design:type",Boolean)],HG.prototype,"isSingleSelect",void 0);_.g([_.U(),_.N("design:type",Object)],HG.prototype,"isDarkMode",void 0);
_.g([_.U(),_.N("design:type",Object)],HG.prototype,"lightColorPalette",void 0);_.g([_.U(),_.N("design:type",Object)],HG.prototype,"darkColorPalette",void 0);_.g([_.R("selectedRatingEndpoint","isShortsStyle"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HG.prototype,"isOptionSelected",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],HG.prototype,"roundedContainer",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],HG.prototype,"improveShortsResponseRate",void 0);_.g([_.BF("#dismissible"),_.N("design:type",HTMLElement)],HG.prototype,"dismissibleEl",void 0);_.g([_.BF("#dismiss-button yt-icon-button"),_.N("design:type",HTMLElement)],HG.prototype,"dismissButtonEl",void 0);_.g([_.BF("#inline-survey-header yt-icon-button"),_.N("design:type",HTMLElement)],HG.prototype,"inlineHeaderDismissButtonEl",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HG.prototype,"dataChanged",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HG.prototype,"handleRequestCompletion",null);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],HG.prototype,"onPopupClosed",null);
_.g([_.JU("darkColorPalette","lightColorPalette","isDarkMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HG.prototype,"colorPaletteChanged",null);_.g([_.T({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],HG);
_.F(HG,"ytd-inline-survey-renderer",function(){if(TBG!==void 0)return TBG;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return TBG=u},{mode:1});var FMo=["en-CA","en","es-MX","fr-CA"];_.VbI=_.rf(function(u){var K=_.$U(u,{isOverlay:!1,isModern:!1}),l=K.captionIconType,D=K.onClick;u=K.ariaLabel;var d=K.ariaPressed,C=K.isOverlay,W=K.isModern;K=_.o9("button",function(v){_.I_(v,127299)});
var M=_.p4(function(v){_.yj(127299);D==null||D(v);return!1}),q={};
return _.n("ytm-closed-captioning-button",{class:_.JB("ytmClosedCaptioningButtonHost",(q.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return l()===-1&&C()},q.ytmClosedCaptioningButtonIconDisabled=function(){return l()===-1&&!C()},q))},_.n("button",{el:K,
class:"ytmClosedCaptioningButtonButton",title:u,"aria-label":u,"aria-pressed":d,"on:click":M},_.n(_.VB,{icon:function(){var v="",G=W();var t=G?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";G=G?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var x=_.jy().get("hl");t=!x||FMo.includes(x)?t:G;G=l();switch(G){case -1:case 0:v=t;break;case 1:v=t+"_FILLED";break;default:_.o2(G)}return v}})))},"nf");
_.VbI.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.GD=function(u){return function(K,l){var D=u||l.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(K,l,{get:function(){var d;return this.$?this.$[D]:(d=_.j8(this))==null?void 0:d.querySelector("#"+D)},
enumerable:!0,configurable:!0})}};_.tv=function(u){u=u===void 0?!1:u;_.TZ.call(this);this.pubSub_=new _.Qx(u);_.eb(this,this.pubSub_)};
_.Sa(_.tv,_.TZ);_.tv.prototype.subscribe=function(u,K,l){return this.isDisposed()?0:this.pubSub_.subscribe(u,K,l)};
_.tv.prototype.unsubscribe=function(u,K,l){return this.isDisposed()?!1:this.pubSub_.unsubscribe(u,K,l)};
_.tv.prototype.unsubscribeByKey=function(u){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(u)};
_.tv.prototype.publish=function(u,K){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var ugi=function(){_.Kx("ypcRedeemFlowStarted")},MQ=function(u){_.Kx("ypcRedeemFlowFailed",void 0,void 0,void 0,u)},KXE=function(u,K,l){K&&l&&(u.videos.forEach(function(D){D.videoId===K&&(D.itemId=l)}),u.recommendedVideos.forEach(function(D){D.videoId===K&&(D.itemId=l)}))};var l2V;var DJo;/*

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
*/
_.YH({_template:function(){if(DJo!==void 0)return DJo;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;l2V===void 0&&(l2V=document.createElement("template"));var D=l2V;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return DJo=u},
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(u,K){var l=this._resolveSrc(u);l!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",u===""||K?this._setLoading(!1):(this._resolvedSrc=l,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 u=this.$.sizedImgDiv.style,K=this.$.placeholder.style;u.backgroundSize=K.backgroundSize=this.sizing;u.backgroundPosition=K.backgroundPosition=this.sizing?this.position:"";u.backgroundRepeat=K.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(u){u=_.xf(u,this.$.baseURIAnchor.href);u.length>=2&&u[0]==="/"&&u[1]!=="/"&&(u=(location.origin||location.protocol+"//"+location.host)+u);return u}});var dJk;var Cpi;_.YH({_template:function(){if(Cpi!==void 0)return Cpi;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;dJk===void 0&&(dJk=document.createElement("template"));var D=dJk;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return Cpi=u},
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(u){return u?"false":"true"},
_headingChanged:function(u){var K=this.getAttribute("heading"),l=this.getAttribute("aria-label");typeof l==="string"&&l!==K||this.setAttribute("aria-label",u)},
_computeHeadingClass:function(u){return u?" over-image":""},
_computeAnimated:function(u){return u}});var I2E=new _.r3("addRendererToItemSectionAction");var yrI;var qQ=function(){return _.Q.apply(this,arguments)||this};
_.c(qQ,_.Q);qQ.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],qQ.prototype,"rendererBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],qQ.prototype,"dismissibleItemBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],qQ.prototype,"rendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],qQ.prototype,"data",void 0);_.g([_.T({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],qQ);
_.F(qQ,"ytd-comment-history-entry-renderer",function(){if(yrI!==void 0)return yrI;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return yrI=u},{mode:1});var sFi;_.E4("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.E4("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var $h=function(){return _.Q.apply(this,arguments)||this};
_.c($h,_.Q);_.I=$h.prototype;_.I.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.onKeyUp=function(u){if(u.keyCode===13)this.onTap()};
_.I.onTap=function(){this.data.recordClickEndpoint&&_.GB().resolve(_.t9).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var u=this.data.navigationEndpoint;u&&_.b(u,_.EU)&&_.GB().resolve(_.t9).resolveCommand(u,{form:{element:this.hostElement}})};
_.I.readChanged=function(){var u;_.cF(this.hostElement,"unread",!((u=this.data)==null?0:u.read))};
_.I.dataChanged=function(){this.data&&_.cF(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.I.computeThumbnailSize=function(){var u;return((u=this.data)==null?0:u.highPriorityNotification)?32:48};
_.I.getEndpointURL=function(u){return u&&!_.b(u,_.EU)?this.componentBehavior.computeHref_(u):null};
_.I.getEndpointData=function(u){return u&&!_.b(u,_.EU)?u:null};
$h.prototype.computeThumbnailSize=$h.prototype.computeThumbnailSize;$h.prototype.dataChanged=$h.prototype.dataChanged;$h.prototype.readChanged=$h.prototype.readChanged;$h.prototype.onKeyUp=$h.prototype.onKeyUp;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],$h.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],$h.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],$h.prototype,"data",void 0);_.g([_.U({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.N("design:type",Number)],$h.prototype,"thumbnailSize",void 0);_.g([_.PF("keyup"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],$h.prototype,"onKeyUp",null);
_.g([_.JU("data.read"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$h.prototype,"readChanged",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$h.prototype,"dataChanged",null);_.g([_.JU("data.highPriorityNotification"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$h.prototype,"computeThumbnailSize",null);
_.g([_.T({is:"ytd-notification-renderer",disableElementRegistration:!0})],$h);
_.F($h,"ytd-notification-renderer",function(){if(sFi!==void 0)return sFi;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return sFi=u},{mode:1});var ock;var nE=function(){return _.Q.apply(this,arguments)||this};
_.c(nE,_.Q);nE.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"}}}};
nE.prototype.computeActionButtonClass=function(u){return!u.actionButtons||u.actionButtons.length<=1?"single-button":u.description?"vertical-buttons":"horizontal-buttons"};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],nE.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],nE.prototype,"data",void 0);_.g([_.T({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],nE);
_.F(nE,"ytd-playlist-show-metadata-renderer",function(){if(ock!==void 0)return ock;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return ock=u},{mode:1});var WXI;_.E4("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var r$=function(){return _.Q.apply(this,arguments)||this};
_.c(r$,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],r$.prototype,"data",void 0);_.g([_.T({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],r$);
_.F(r$,"ytd-purchase-item-renderer",function(){if(WXI!==void 0)return WXI;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return WXI=u},{mode:1});var HQo;var M5p={};M5p.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(u){if(u)return u.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(u){if(u==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.E4("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var vn=function(){return _.Q.apply(this,arguments)||this};
_.c(vn,_.Q);vn.prototype.onYtNavigate=function(u){var K=this.openPopupBehavior.getNavigationEndpointPopupAction(u.detail.endpoint);K&&(u.stopPropagation(),this.openPopupBehavior.openPopup(K))};
vn.prototype.onYtNavigate=vn.prototype.onYtNavigate;_.g([_.e(M5p.YtSimpleTextSectionBehavior),_.N("design:type",Object)],vn.prototype,"ytSimpleTextSectionBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.nl),_.N("design:type",Object)],vn.prototype,"openPopupBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],vn.prototype,"data",void 0);
_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],vn.prototype,"onYtNavigate",null);_.g([_.T({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],vn);
_.F(vn,"ytd-simple-text-section-renderer",function(){if(HQo!==void 0)return HQo;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return HQo=u},{mode:1});var qt6;_.E4("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var G5=function(){return _.Q.apply(this,arguments)||this};
_.c(G5,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],G5.prototype,"data",void 0);_.g([_.T({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],G5);
_.F(G5,"ytd-unlimited-page-feature-info-renderer",function(){if(qt6!==void 0)return qt6;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return qt6=u},{mode:1});var $JE;var ncV;var tD=function(){return _.Q.apply(this,arguments)||this};
_.c(tD,_.Q);tD.prototype.dataChanged=function(){if(this.data){var u=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);u&&(u=_.bt(u,screen.width),this.hostElement.style.backgroundImage="url("+u+")")}};
tD.prototype.dataChanged=tD.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],tD.prototype,"data",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tD.prototype,"dataChanged",null);_.g([_.T({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],tD);
_.F(tD,"ytd-post-redemption-section-renderer",function(){if(ncV!==void 0)return ncV;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return ncV=u},{mode:1});var rrE;var xh=function(){return _.Q.apply(this,arguments)||this};
_.c(xh,_.Q);xh.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],xh.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],xh.prototype,"data",void 0);_.g([_.T({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],xh);
_.F(xh,"ytd-ypc-post-redemption-renderer",function(){if(rrE!==void 0)return rrE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return rrE=u},{mode:1});_.E4("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Sn=function(){var u=_.Q.apply(this,arguments)||this;u.MIN_CODE_LENGTH=12;u.MAX_CODE_LENGTH=24;return u};
_.c(Sn,_.Q);_.I=Sn.prototype;_.I.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.I.created=function(){this.riskService=new _.TTq;this.loadPaymentThenable=_.FlL(_.E3("YPC_MB_URL"))};
_.I.ready=function(){var u=this;this.code.addEventListener("keypress",function(K){u.onCodeInputKeypress(K)})};
_.I.dataChanged=function(){var u=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(K){K=_.y(K);for(var l=K.next();!l.done;l=K.next())l=l.value,l.type==="attributes"&&l.attributeName==="dark"&&u.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.I.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var u=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+u+")")}};
_.I.computeRedeemButton=function(u){(u=this.get("redeemButton.buttonRenderer",u))&&(u=Object.assign({},u,{serviceEndpoint:void 0}));return u};
_.I.onRedeemButtonTap=function(u){u.stopPropagation();ugi();this.redeemCode()};
_.I.redeemCode=function(){var u=this;this.isLoading=!0;var K=this.riskService.init();_.gx([K,this.loadPaymentThenable]).then(function(){var l=u.data.redeemButton.buttonRenderer.serviceEndpoint,D=_.wwb(),d=payments.business.integration.ClientTokenFactory.createClientToken(_.b(l,_.jua).countryCode,D);D={c:u.code.value.trim(),rd:window.btoa(D),ctk:d};l&&_.GB().resolve(_.t9).resolveCommand(l,{form:Object.assign({},D,{element:u.hostElement})})},function(){u.showGenericError();
MQ("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.uZ(Error("co"))})};
_.I.onYtServiceRequestCompleted=function(u){u.stopPropagation();this.isLoading=!1;var K,l;this.errorMessage=(K=u.detail)==null?void 0:(l=K.data)==null?void 0:l.errorMessage;var D,d;this.postRedemptionRenderer=(D=u.detail)==null?void 0:(d=D.data)==null?void 0:d.renderer;var C,W;if(u=(C=u.detail)==null?void 0:(W=C.data)==null?void 0:W.redirectEndpoint)this.isLoading=!0,_.xs(this.hostElement,"yt-navigate",{endpoint:u});this.errorMessage?MQ("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
u)&&_.Kx("ypcRedeemFlowSucceeded")};
_.I.onYtServiceRequestError=function(u){u.stopPropagation();this.isLoading=!1;if(u=this.get("detail.error.message",u))this.errorMessage=_.o7(u);MQ("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.I.onInvokeInstrumentManagerActionCompleted=function(u){u.stopPropagation();this.redeemCode()};
_.I.onInvokeInstrumentManagerActionError=function(u){u.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",u)){case "instrumentManagerLoadError":this.showGenericError();MQ("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();MQ("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Kx("ypcRedeemFlowCancelled")}};
_.I.onInput=function(){var u=this;_.It(this,"onInput",function(){var K=u.code.value.trim();u.redeemButtonDisabled=K.length<u.MIN_CODE_LENGTH||K.length>u.MAX_CODE_LENGTH},200)};
_.I.onCodeInputKeypress=function(u){u.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(ugi(),this.redeemCode())};
_.I.computeImageUrl=function(u){return u?_.bt(u.thumbnails,600):null};
_.I.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Sn.prototype.onInvokeInstrumentManagerActionError=Sn.prototype.onInvokeInstrumentManagerActionError;Sn.prototype.onInvokeInstrumentManagerActionCompleted=Sn.prototype.onInvokeInstrumentManagerActionCompleted;Sn.prototype.onYtServiceRequestError=Sn.prototype.onYtServiceRequestError;Sn.prototype.onYtServiceRequestCompleted=Sn.prototype.onYtServiceRequestCompleted;Sn.prototype.dataChanged=Sn.prototype.dataChanged;
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Sn.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Sn.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Sn.prototype,"isLoading",void 0);_.g([_.U(),_.N("design:type",Boolean)],Sn.prototype,"redeemButtonDisabled",void 0);
_.g([_.U(),_.N("design:type",Object)],Sn.prototype,"errorMessage",void 0);_.g([_.U(),_.N("design:type",Object)],Sn.prototype,"postRedemptionRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],Sn.prototype,"observer",void 0);_.g([_.BF("#code"),_.N("design:type",HTMLInputElement)],Sn.prototype,"code",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sn.prototype,"dataChanged",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Sn.prototype,"onYtServiceRequestCompleted",null);_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Sn.prototype,"onYtServiceRequestError",null);
_.g([_.PF("yt-invoke-instrument-manager-action-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Sn.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.g([_.PF("yt-invoke-instrument-manager-action-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Sn.prototype,"onInvokeInstrumentManagerActionError",null);_.g([_.T({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Sn);
_.F(Sn,"ytd-redeem-code-renderer",function(){if($JE!==void 0)return $JE;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return $JE=u},{mode:1});var vc_;_.E4("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var bU=function(){var u=_.Q.apply(this,arguments)||this;u.businessEmailDisplayState="HIDE_SECTION";return u};
_.c(bU,_.Q);_.I=bU.prototype;_.I.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}}}}}};
_.I.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"};
_.I.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.I.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.KN(_.zTm),this.businessEmailDisplayState="CAPTCHA"))};
_.I.onYtServiceRequestCompleted=function(u){var K;if((K=u.detail.data)==null?0:K.businessEmail)this.businessEmail=u.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var l;if((l=u.detail.data)==null?0:l.errorMessage)this.businessEmailErrorMessage=u.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.I.computeEmailHref=function(u){return"mailto:"+u};
_.I.computeSafeUrl=function(u){if(u)return _.ES(u)};
_.I.onBusinessEmailCaptchaSubmit=function(){var u;(u=this.data)!=null&&u.onBusinessEmailRevealClickCommand&&(u=this.JSC$21391_captchaTextarea.value)&&(u={recaptcha_response_token:u,channel_id:this.data.channelId},_.GB().resolve(_.t9).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},u,{element:this.hostElement})}))};
_.I.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.MN.Object.defineProperties(bU.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 u,K;return!((u=this.data)==null||!u.primaryLinks)&&!((K=this.data)==null?0:K.links)&&this.data.primaryLinks.every(function(l){return l.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var u,K;return!((u=this.data)==null||!u.primaryLinks)&&!((K=this.data)==null?0:K.links)&&!this.shouldShowNewLinks}}});
bU.prototype.onYtServiceRequestCompleted=bU.prototype.onYtServiceRequestCompleted;bU.prototype.dataChanged=bU.prototype.dataChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],bU.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],bU.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.BF("#g-recaptcha-response"),_.N("design:type",HTMLTextAreaElement)],bU.prototype,"JSC$21391_captchaTextarea",void 0);_.g([_.U(),_.N("design:type",Object)],bU.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],bU.prototype,"businessEmailDisplayState",void 0);_.g([_.U(),_.N("design:type",String)],bU.prototype,"businessEmail",void 0);_.g([_.U(),_.N("design:type",String)],bU.prototype,"businessEmailErrorMessage",void 0);
_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bU.prototype,"hideDetailsSection",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bU.prototype,"dataChanged",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bU.prototype,"shouldShowNewLinks",null);_.g([_.R("data","shouldShowLinks"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bU.prototype,"shouldShowLegacyLinks",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],bU.prototype,"onYtServiceRequestCompleted",null);_.g([_.T({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],bU);
_.F(bU,"ytd-channel-about-metadata-renderer",function(){if(vc_!==void 0)return vc_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return vc_=u},{mode:1});var Gc2;_.E4("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var OJ=function(){return _.Q.apply(this,arguments)||this};
_.c(OJ,_.Q);OJ.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]]"}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],OJ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],OJ.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Number)],OJ.prototype,"lockupContainerType",void 0);_.g([_.U(),_.N("design:type",String)],OJ.prototype,"thumbnailFixedWidth",void 0);
_.g([_.T({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],OJ);
_.F(OJ,"ytd-channel-featured-content-renderer",function(){if(Gc2!==void 0)return Gc2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Gc2=u},{mode:1});var t5p;_.E4("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var cn=function(){var u=_.Q.apply(this,arguments)||this;u.roundContainer=!0;u.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return u};
_.c(cn,_.Q);_.I=cn.prototype;_.I.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.I.dataChanged=function(){this.imageWidth=this.imageHeight=24;var u=this.data;u.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!u.style&&u.image&&u.image.thumbnails.length&&(u=u.image.thumbnails[0],this.imageWidth=u.width||0,this.imageHeight=u.height||0)};
_.I.computeSource=function(u){return u.secondarySource?_.WI(u.secondarySource):_.WI(u.source)};
_.I.computeClarifyStyle=function(u){return u?u.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.I.isLargeStyle=function(u){return u==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.I.computeBackgroundStyle=function(u){return u?u.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.I.computeHasActionButton=function(u){return!!u.actionButton};
_.I.computeHasBottomSection=function(u){return!!u.ctaHasBottomSection};
_.I.computeIsSourceMissing=function(u){return u.ctaHasBottomSection===!1?!0:u&&this.computeSource(u)?!1:!0};
_.I.computeSecondaryEndpoint=function(u){return u.secondaryEndpoint||u.endpoint};
cn.prototype.dataChanged=cn.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],cn.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],cn.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],cn.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Number)],cn.prototype,"imageWidth",void 0);_.g([_.U(),_.N("design:type",Number)],cn.prototype,"imageHeight",void 0);
_.g([_.U({computed:"computeSecondaryEndpoint(data)"}),_.N("design:type",Object)],cn.prototype,"secondaryEndpoint",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.N("design:type",Boolean)],cn.prototype,"hasActionButton",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.N("design:type",Boolean)],cn.prototype,"hasBottomSection",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.N("design:type",Boolean)],cn.prototype,"missingSource",void 0);_.g([_.U({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],cn.prototype,"icon",void 0);_.g([_.U({computed:"computeIcon_(data.secondaryIcon)"}),_.N("design:type",String)],cn.prototype,"secondaryIcon",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.N("design:type",String)],cn.prototype,"clarifyStyle",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.N("design:type",String)],cn.prototype,"backgroundStyle",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],cn.prototype,"roundContainer",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],cn.prototype,"amsterdamEnabled",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cn.prototype,"dataChanged",null);
_.g([_.T({is:"ytd-clarification-renderer",disableElementRegistration:!0})],cn);
_.F(cn,"ytd-clarification-renderer",function(){if(t5p!==void 0)return t5p;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return t5p=u},{mode:1});var xJ6;var Sti;var as=function(){var u=_.Q.apply(this,arguments)||this;u.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return u};
_.c(as,_.Q);_.I=as.prototype;_.I.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.I.computeIcon=function(u){return u?"yt-icons:"+u.toLowerCase():null};
_.I.computeUseContacts=function(u){return!!u.contacts&&u.contacts.length>0};
_.I.computePhoneContact=function(u){var K,l;return(K=u.contacts)==null?void 0:(l=K.find(function(D){var d;return(D==null?void 0:(d=D.icon)==null?void 0:d.iconType)==="PHONE"}))==null?void 0:l.actionText};
_.I.computeSmsContact=function(u){var K,l;return(K=u.contacts)==null?void 0:(l=K.find(function(D){var d;return(D==null?void 0:(d=D.icon)==null?void 0:d.iconType)==="SMS"}))==null?void 0:l.actionText};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],as.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],as.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],as.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],as.prototype,"amsterdamEnabled",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.N("design:type",Boolean)],as.prototype,"useContacts",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.N("design:type",String)],as.prototype,"phoneContact",void 0);_.g([_.T({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],as);
_.F(as,"ytd-single-action-emergency-support-renderer",function(){if(Sti!==void 0)return Sti;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Sti=u},{mode:1});_.E4("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var z5=function(){var u=_.Q.apply(this,arguments)||this;u.roundedContainer=!0;u.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return u};
_.c(z5,_.Q);z5.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"}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],z5.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],z5.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],z5.prototype,"roundedContainer",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],z5.prototype,"amsterdamEnabled",void 0);
_.g([_.T({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],z5);
_.F(z5,"ytd-emergency-onebox-renderer",function(){if(xJ6!==void 0)return xJ6;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return xJ6=u},{mode:1});var bQp;_.E4("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var en=function(){return _.Q.apply(this,arguments)||this};
_.c(en,_.Q);en.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"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],en.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],en.prototype,"data",void 0);_.g([_.T({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],en);
_.F(en,"ytd-exploratory-results-renderer",function(){if(bQp!==void 0)return bQp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return bQp=u},{mode:1});var OQ2;_.E4("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var Rs=function(){var u=_.Q.apply(this,arguments)||this;u.messageData=null;return u};
_.c(Rs,_.Q);_.I=Rs.prototype;_.I.onServiceRequestCompleted=function(u,K){u=K.actions||[];K=0;for(var l=u.length;K<l;K++){var D=u[K],d=void 0,C=void 0;if((d=_.b(D,_.FP))==null?0:(C=d.item)==null?0:C.messageRenderer)this.messageData=_.b(D,_.FP).item.messageRenderer}};
_.I.dataChanged=function(){var u=this.data;this.hostElement.hidden=!1;_.cF(this.hostElement,"is-channel",u&&!u.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.I.computeThumbnailWidth=function(u){return u?126:56};
_.I.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.I.onSubmitTap=function(){var u=this.data,K=this.selectedResponseIndex;u!==void 0&&K!==void 0&&(u=u.responses[K],u.responseData&&_.GB().resolve(_.t9).resolveCommand(u.responseData,{form:{element:this.hostElement}}))};
_.I.onDismissTap=function(){this.hostElement.hidden=!0;var u=this.data;u!==void 0&&u.dismissalEndpoint&&_.GB().resolve(_.t9).resolveCommand(u.dismissalEndpoint,{form:{element:this.hostElement}})};
_.I.updateSelectedResponseIndexFromBinding=function(u){this.selectedResponseIndex=u.detail.value};
Rs.prototype.onSelectedResponseIndexChange=Rs.prototype.onSelectedResponseIndexChange;Rs.prototype.dataChanged=Rs.prototype.dataChanged;Rs.prototype.onServiceRequestCompleted=Rs.prototype.onServiceRequestCompleted;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Rs.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Rs.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Rs.prototype,"messageData",void 0);
_.g([_.U(),_.N("design:type",Number)],Rs.prototype,"selectedResponseIndex",void 0);_.g([_.BF("#submit-button"),_.N("design:type",HTMLButtonElement)],Rs.prototype,"submitButton",void 0);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],Rs.prototype,"onServiceRequestCompleted",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Rs.prototype,"dataChanged",null);
_.g([_.JU("selectedResponseIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Rs.prototype,"onSelectedResponseIndexChange",null);_.g([_.T({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],Rs);
_.F(Rs,"ytd-feedback-elicitation-single-question-renderer",function(){if(OQ2!==void 0)return OQ2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return OQ2=u},{mode:1});var crI;var UJ=function(){return _.Q.apply(this,arguments)||this};
_.c(UJ,_.Q);UJ.prototype.computeThumbnailWidth=function(u){return u?602:428};
UJ.prototype.updateWideFromBinding=function(u){this.wide=u.detail.value};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],UJ.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],UJ.prototype,"wide",void 0);_.g([_.T({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],UJ);
_.F(UJ,"ytd-newspaper-hero-video-renderer",function(){if(crI!==void 0)return crI;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return crI=u},{mode:1});var a2p;var fE=function(){return _.Q.apply(this,arguments)||this};
_.c(fE,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],fE.prototype,"rendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],fE.prototype,"data",void 0);_.g([_.T({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],fE);
_.F(fE,"ytd-newspaper-mini-video-renderer",function(){if(a2p!==void 0)return a2p;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return a2p=u},{mode:1});var zrI;_.E4("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var QD=function(){return _.Q.apply(this,arguments)||this};
_.c(QD,_.Q);QD.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"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],QD.prototype,"data",void 0);_.g([_.T({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],QD);
_.F(QD,"ytd-newspaper-renderer",function(){if(zrI!==void 0)return zrI;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return zrI=u},{mode:1});var erB;_.E4("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Pn=function(){var u=_.Q.apply(this,arguments)||this;u.isSegment=!1;u.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};u.nextContinuation={continuationType:"playlistVideoListContinuation"};return u};
_.c(Pn,_.Q);_.I=Pn.prototype;_.I.attached=function(){_.GB();var u;(u=_.GB().resolve(_.vv(_.Mj)))!=null&&(u.playlistVideoListElement=this.hostElement)};
_.I.detached=function(){var u;(u=_.GB().resolve(_.vv(_.Mj)))!=null&&(u.playlistVideoListElement=void 0);u=_.GB().resolve(_.vv(_.ba));_.S("web_enable_voting_animation")&&u&&(u.parentElem=void 0,u.videos=[],u.continuationsPresent=!1,u.showRefreshPill=!1)};
_.I.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"}}}}}};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.I.dataChanged=function(){var u=_.GB().resolve(_.vv(_.ba));if(_.S("web_enable_voting_animation")&&this.data&&u){var K=_.bi(this.hostElement).querySelector("#contents");K&&(u.parentElem=K);u.addVideos(this.data.contents)}_.qYa(this.ytReorderableBehavior)};
_.I.onRendererstamperFinished=function(){this.canReorder&&_.$F0(this.ytReorderableBehavior,_.bi(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.I.onPlaylistReloading=function(){this.isReloading=!0};
_.I.onUpdateSetVideoId=function(u){if(u.detail&&this.data&&this.data.contents){var K=u.detail;u=this.data.contents.findIndex(function(d){var C;return((C=d.playlistVideoRenderer)==null?void 0:C.videoId)===K.videoId});
if(!(u<0)&&K.setVideoId&&(this.set("data.contents."+u+".playlistVideoRenderer.setVideoId",K.setVideoId),_.S("web_enable_voting_animation"))){var l;if(u=_.b((l=this.data.contents[u].playlistVideoRenderer)==null?void 0:l.engagementBar,_.yhH)){var D;(D=u.actions)==null||D.forEach(function(d){if(d=_.b(d,_.skZ))d.itemId=K.setVideoId})}(l=_.GB().resolve(_.vv(_.ba)))&&KXE(l,K.videoId,K.setVideoId)}}};
_.I.computeContentsClass=function(u){return u?"reloading":""};
_.I.computeIsSortable=function(u,K){return u&&K>0&&!this.isSegment&&!_.S("shorts_in_playlists_web")};
_.I.computeIsEditable=function(u){return u};
_.I.computeCanReorder=function(u){return u};
_.I.handlePlaylistRemoveVideosAction=function(u){if(this.get("playlistRemoveVideosAction.setVideoIds",u)&&this.data&&this.data.contents){u=_.b(u,_.wWm).setVideoIds;for(var K=this.data.contents.length-1;K>=0;){var l=this.data.contents[K].playlistVideoRenderer;l&&l.setVideoId&&u.includes(l.setVideoId)&&this.splice("data.contents",K,1);K--}_.Sy(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.I.updateIndices=function(){if(this.data&&this.data.contents)for(var u=0;u<this.data.contents.length;u++)this.set("data.contents."+u+".playlistVideoRenderer.index",_.o7(String(u+1)))};
_.I.handleDrop=function(u){u=u.currDragItem;var K=_.Fq(u.parentNode.childNodes,u),l=this.data.contents.splice(Number(_.WI(u.data.index))-1,1)[0];this.data.contents.splice(K,0,l);K=K?this.get("contents."+(K-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();u=this.buildReorderServiceEndpoint(u.data.setVideoId,K);this.ytComponentBehavior.resolveCommand(u)};
_.I.buildReorderServiceEndpoint=function(u,K){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",u),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",K),this.data.onReorderEndpoint):null};
_.I.handleUpdatePlaylistAction=function(u){var K;(u=_.b((K=_.b(u,_.Fim))==null?void 0:K.updatedRenderer,_.I3N))&&this.canReorder!==u.canReorder&&this.set("data.canReorder",u.canReorder);u&&u.contents&&(this.set("data.contents",u.contents),this.isReloading=!1);u&&u.continuations&&this.set("data.continuations",u.continuations)};
_.I.handleAddRendererToItemSectionAction=function(u){var K,l=(K=_.b(u,I2E))==null?void 0:K.renderer,D;l&&((D=_.b(u,I2E))==null?void 0:D.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,l),u=_.GB().resolve(_.vv(_.ba)),_.S("web_enable_voting_animation")&&u&&(l&&(K=_.IeZ(l))&&u.recommendedVideos.push({itemId:K,videoId:_.oIL(l),voteCount:_.Wl9(l),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.I.isVotingEnabledOnPlaylist=function(u){if(!u)return!1;u=_.y(u);for(u=u.next();!u.done;u=u.next()){var K=void 0;return!!_.b((K=u.value.playlistVideoRenderer)==null?void 0:K.engagementBar,_.yhH)}return!1};
_.I.onAppendContinuationItemsActionFinished=function(){var u;this.isVotingEnabledOnPlaylist((u=this.data)==null?void 0:u.contents)&&(this.updateIndices(),u=_.GB().resolve(_.vv(_.ba)),_.S("web_enable_voting_animation")&&u&&this.data&&u.addVideos(this.data.contents))};
_.I.updateVideoData=function(u){if(u.detail&&this.data&&this.data.contents){var K=u.detail;u=K.toIdx;var l=K.itemId,D=K.newVoteCount,d=K.voteStatus;K=K.hideItem;var C,W,M=(C=this.data)==null?void 0:(W=C.contents)==null?void 0:W.findIndex(function(t){return _.IeZ(t)===l});
if(!(M<0)){C=this.data.contents[M];var q;if((q=C.playlistVideoRenderer)==null?0:q.voteCount)C.playlistVideoRenderer.voteCount=D;var v;if(q=_.b((v=C.playlistVideoRenderer)==null?void 0:v.engagementBar,_.yhH)){var G;(G=q.actions)==null||G.forEach(function(t){(t=_.b(t,_.skZ))&&t.initialState&&(t.initialState.votes=D,t.initialState.status=d)})}this.data.contents.splice(M,1);
K||this.data.contents.splice(u,0,C);this.updateIndices()}}};
Pn.prototype.updateVideoData=Pn.prototype.updateVideoData;Pn.prototype.onAppendContinuationItemsActionFinished=Pn.prototype.onAppendContinuationItemsActionFinished;Pn.prototype.onUpdateSetVideoId=Pn.prototype.onUpdateSetVideoId;Pn.prototype.onPlaylistReloading=Pn.prototype.onPlaylistReloading;Pn.prototype.onRendererstamperFinished=Pn.prototype.onRendererstamperFinished;Pn.prototype.dataChanged=Pn.prototype.dataChanged;
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Pn.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.yr.YtNextContinuationBehavior),_.N("design:type",Object)],Pn.prototype,"ytNextContinuationBehavior",void 0);
_.g([_.e(_.n6H),_.N("design:type",Object)],Pn.prototype,"ytReorderableBehavior",void 0);_.g([_.e(_.Ir),_.N("design:type",Object)],Pn.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Pn.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Pn.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],Pn.prototype,"isReloading",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Pn.prototype,"isSegment",void 0);_.g([_.U({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.N("design:type",Boolean)],Pn.prototype,"isSortable",void 0);_.g([_.U({computed:"computeIsEditable(data.isEditable)"}),_.N("design:type",Boolean)],Pn.prototype,"isEditable",void 0);_.g([_.U({computed:"computeCanReorder(data.canReorder)"}),_.N("design:type",Boolean)],Pn.prototype,"canReorder",void 0);
_.g([_.U({value:101}),_.N("design:type",Number)],Pn.prototype,"scrollMargin",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pn.prototype,"dataChanged",null);_.g([_.PF("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pn.prototype,"onRendererstamperFinished",null);
_.g([_.PF("yt-playlist-reloading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pn.prototype,"onPlaylistReloading",null);_.g([_.PF("yt-update-set-video-id"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Pn.prototype,"onUpdateSetVideoId",null);
_.g([_.PF("yt-append-continuation-items-action-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pn.prototype,"onAppendContinuationItemsActionFinished",null);_.g([_.PF("yt-update-video-data-voting-animation"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Pn.prototype,"updateVideoData",null);_.g([_.T({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Pn);
_.F(Pn,"ytd-playlist-video-list-renderer",function(){if(erB!==void 0)return erB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return erB=u},{mode:_.zW("kevlar_poly_si_batch_j047")?1:2});var RrE;var JD=function(){return _.Q.apply(this,arguments)||this};
_.c(JD,_.Q);JD.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"}}}}};
JD.prototype.onTextWrapperTap=function(u){var K=this.data&&this.data.navigationEndpoint;K&&!_.rE(_.WF(u),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.xs(this.hostElement,"yt-navigate",{endpoint:K})};
JD.prototype.dataChanged=function(){var u=this.get("data.offerButton.buttonRenderer.serviceEndpoint");u&&u.commandMetadata&&_.b(u.commandMetadata,_.Z3)&&_.b(u.commandMetadata,_.Z3).fireAutomatically&&_.GB().resolve(_.t9).resolveCommand(u,{form:{element:this.hostElement}})};
JD.prototype.dataChanged=JD.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],JD.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],JD.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.s8),_.N("design:type",Object)],JD.prototype,"ytdLockupBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],JD.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],JD.prototype,"useBiggerThumbs",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.bZ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],JD.prototype,"biggerThumbsStyle",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],JD.prototype,"leftAligned",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JD.prototype,"dataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-movie-renderer"})],JD);
_.F(JD,"ytd-movie-renderer",function(){if(RrE!==void 0)return RrE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return RrE=u},{mode:1});var UJp;var jn=function(){var u=_.Q.apply(this,arguments)||this;u.rounded=!0;u.pageAttachedTo=void 0;u.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return u};
_.c(jn,_.Q);jn.prototype.attached=function(){this.pageAttachedTo=_.GB().resolve(_.GT).getCurrentPage();_.xs(this.hostElement,"yt-player-attached",this.player)};
jn.prototype.detached=function(){var u;if((u=this.pageAttachedTo)==null?0:u.hostElement)_.xs(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
jn.prototype.dataChanged=function(){var u;if((u=this.data)==null?0:u.videoId)u={video_id:this.data.videoId,autoplay:!0},!_.S("miniplayer_stop_channel_video_autoplay_killswitch")&&_.GB().resolve(_.uD).isMiniplayerActive()&&(u.pause_at_start=!0,u.autoplay=!1),this.player.loadVideoWithPlayerVars(u)};
jn.prototype.handleSignalActionPausePlayer=function(){_.SU().pause()};
jn.prototype.dataChanged=jn.prototype.dataChanged;_.g([_.U(),_.N("design:type",Object)],jn.prototype,"data",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],jn.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],jn.prototype,"rounded",void 0);_.g([_.BF("#player"),_.N("design:type",Object)],jn.prototype,"player",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jn.prototype,"dataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],jn);
_.F(jn,"ytd-channel-video-player-renderer",function(){if(UJp!==void 0)return UJp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return UJp=u},{mode:1});var f2V;var QFo;var PpB;var Bn=function(){var u=_.Q.apply(this,arguments)||this;u.playing=!1;u.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.DA(u);u.active=!1;return u};
_.c(Bn,_.Q);_.I=Bn.prototype;_.I.detached=function(){this.stop()};
_.I.play=function(){var u=this,K,l,D,d,C;return _.H(function(W){if(W.nextAddress==1)return u.active=!0,K=u.get("data.inlinePlaybackEndpoint.watchEndpoint"),l=K.videoId||u.data.videoId,D=K.startTimeSeconds||0,d=K.playerParams||null,_.S("kevlar_player_update_killswitch")?W.yield(u.playerEl.update({args:{video_id:l,startSeconds:D,player_params:d}}),2):(u.playerEl.loadVideoWithPlayerVars({video_id:l,startSeconds:D,player_params:d,autoplay:!0}),W.jumpTo(2));if(W.nextAddress!=4)return W.yield(u.playerEl.getPlayerPromise(),
4);C=W.yieldResult;C.unloadModule("annotations_module");C.addEventListener("onStateChange",function(M){u.onPlayerStateChange(M)});
_.TG(W)})};
_.I.onPlayerStateChange=function(u){if(this.active)switch(this.playing=u===1,u){case 1:_.xs(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.xs(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.I.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.I.resize=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1)return l.yield(u.playerEl.getPlayerPromise(),2);K=l.yieldResult;K.setSize(NaN,NaN);_.TG(l)})};
_.g([_.U(),_.N("design:type",Object)],Bn.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Bn.prototype,"playing",void 0);_.g([_.U(),_.N("design:type",Object)],Bn.prototype,"playerId",void 0);_.g([_.BF("#player"),_.N("design:type",Object)],Bn.prototype,"playerEl",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Bn);
_.F(Bn,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(PpB!==void 0)return PpB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return PpB=u},{mode:1});var Jro;var jFi;var pE=function(){var u=_.Q.apply(this,arguments)||this;u.width=0;return u};
_.c(pE,_.Q);_.I=pE.prototype;_.I.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Ql(this,this.onEnded));this.mp4El.addEventListener("error",_.Ql(this,this.onError))};
_.I.detached=function(){this.videoEl.removeEventListener("ended",_.Ql(this,this.onEnded));this.mp4El.removeEventListener("error",_.Ql(this,this.onError))};
_.I.play=function(){var u=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var K=this.videoEl.play();K?K.then(function(){u.handleVideoStartPlaying()}).catch(function(){_.xs(u.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.xs(this.hostElement,"yt-video-thumbnail-not-playing")};
_.I.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.I.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.I.dataChanged=function(){var u;if((u=this.data)==null?0:u.thumbnailPlaceholder)u=_.bt(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+u+")";this.stop();this.autoplay&&this.play()};
_.I.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.I.onEnded=function(){this.stop();_.xs(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.I.onError=function(){_.xs(this.hostElement,"yt-video-thumbnail-error")};
_.I.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.I.getVideoThumbnail=function(u){if(u&&u.length)return u[0]};
pE.prototype.dataChanged=pE.prototype.dataChanged;_.g([_.U(),_.N("design:type",Object)],pE.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],pE.prototype,"animatePlaceholderOnEntrance",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],pE.prototype,"autoplay",void 0);_.g([_.U({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.N("design:type",Object)],pE.prototype,"videoThumbnail",void 0);
_.g([_.U(),_.N("design:type",Boolean)],pE.prototype,"loop",void 0);_.g([_.U(),_.N("design:type",Boolean)],pE.prototype,"isVideoPlaying",void 0);_.g([_.U(),_.N("design:type",Object)],pE.prototype,"width",void 0);_.g([_.BF("#mp4"),_.N("design:type",HTMLElement)],pE.prototype,"mp4El",void 0);_.g([_.BF("#placeholder"),_.N("design:type",HTMLElement)],pE.prototype,"placeholderEl",void 0);_.g([_.BF("#video"),_.N("design:type",HTMLVideoElement)],pE.prototype,"videoEl",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pE.prototype,"dataChanged",null);_.g([_.E9({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],pE);
_.F(pE,"yt-video-as-thumbnail-details",function(){if(jFi===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Jro===void 0&&(Jro=document.createElement("template"));var D=Jro;l.call(K,D.content.cloneNode(!0),u.content.firstChild);jFi=u}u=jFi;return u},{mode:2});var iU=function(){var u=_.Q.apply(this,arguments)||this;u.disableGridStateAware=!1;u.animationEnabled=_.S("enable_web_ketchup_hero_animation");u.transitioningOut=!1;u.narrow=!1;u.narrower=!1;u.isCarouselInFeed=!1;u.videoTimeoutJobId=0;u.panelTimeoutJobId=0;u.panelTimeoutJobStartMs=0;u.actionMap={"yt-window-resized":"onWindowResized"};return u};
_.c(iU,_.Q);_.I=iU.prototype;_.I.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.I.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var u;this.player&&((u=this.data)==null?0:u.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.I.attached=function(){this.onWindowResized()};
_.I.detached=function(){this.clearTimeouts()};
_.I.onWindowResized=function(){this.updateSize()};
_.I.computePanelLayout=function(u){return u&&u.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.I.playVideo=function(){var u;this.video&&((u=this.data)==null?0:u.videoThumbnail)&&this.video.play();var K;this.player&&((K=this.data)==null?0:K.inlinePlaybackRenderer)&&this.player.play()};
_.I.stopVideo=function(){var u;this.video&&((u=this.data)==null?0:u.videoThumbnail)&&this.video.stop();var K;this.player&&((K=this.data)==null?0:K.inlinePlaybackRenderer)&&this.player.stop()};
_.I.transitionOut=function(){var u=this;this.transitioningOut=!0;return new Promise(function(K){var l=function(){_.bi(u.hostElement).querySelector("#action-button").removeEventListener("animationend",l);_.YL.cancelJob(D);K();u.transitioningOut=!1};
var D=_.Ve(_.YL,l,1E3);_.bi(u.hostElement).querySelector("#action-button").addEventListener("animationend",l);u.player&&(u.player.playing=!1)})};
_.I.computeMetadataOrder=function(u){return u&&u.metadataOrder&&u.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?u.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.I.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.I.computeAvatarSize=function(u){return u&&u.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.I.onContentClick=function(u){if(!_.rE(_.WF(u),this.hostElement,["A".toString(),"BUTTON".toString()])){var K;if((K=this.data)==null?0:K.navigationEndpoint){var l;this.componentBehavior.resolveCommand((l=this.data)==null?void 0:l.navigationEndpoint)}}};
_.I.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.I.setBackgroundImage=function(u){if(u=this.getBackgroundImageUrl(u))_.bi(this.hostElement).querySelector("#hero").style.backgroundImage="url("+u+")"};
_.I.setScrimLayer=function(u){var K=this.getScrimLayerColorStops(u);u=((u==null?void 0:u.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(u=180);_.E3("HTML_DIR")==="rtl"&&(u=-u);K&&(_.bi(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+u+"deg, "+K+")")};
_.I.isNarrower=function(){return this.hostElement.clientWidth<iU.NARROW_VERSION_SIZE};
_.I.getScrimLayerColorStops=function(){var u,K=(u=this.data)==null?void 0:u.scrimColorValues;if(!K)return null;if(K.length===1)return u=_.Kg(K[0]),u+" 0%, "+u+" 100%";if(K.length===3){var l=[0,72,98];return K.map(function(D,d){return _.Kg(D)+" "+l[d]+"%"}).join(",")}return null};
_.I.getBackgroundImageUrl=function(u){return u&&u.largeFormFactorBackgroundThumbnail?_.bt((u.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||u.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.I.onPlaying=function(){this.startVideoTimeout()};
_.I.onEnded=function(){this.rotate()};
_.I.startPanelTimeout=function(){var u=this;if(!this.panelTimeoutJobId){var K=this.get("data.minPanelDisplayDurationMs");K&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Ve(_.YL,function(){u.rotate()},K))}};
_.I.startVideoTimeout=function(){var u=this;if(!this.videoTimeoutJobId){_.YL.cancelJob(this.panelTimeoutJobId);var K=Date.now()-this.panelTimeoutJobStartMs;K=Math.max(0,this.get("data.minPanelDisplayDurationMs")-K);K=Math.max(this.get("data.minVideoPlayDurationMs")||0,K);this.videoTimeoutJobId=_.Ve(_.YL,function(){u.rotate()},K)}};
_.I.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.YL.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.YL.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.I.rotate=function(){this.clearTimeouts();_.xs(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.MN.Object.defineProperties(iU.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.bi(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.bi(this.hostElement).querySelector("#video")}}});
_.MN.Object.defineProperties(iU,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
iU.prototype.onEnded=iU.prototype.onEnded;iU.prototype.onPlaying=iU.prototype.onPlaying;iU.prototype.dataChanged=iU.prototype.dataChanged;_.g([_.e(_.D1),_.N("design:type",Object)],iU.prototype,"ytdGridStateAwareBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],iU.prototype,"componentBehavior",void 0);_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],iU.prototype,"ytdGuideStateAwareBehavior",void 0);
_.g([_.e(_.Izw),_.N("design:type",Object)],iU.prototype,"ytBooleanLogicBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],iU.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],iU.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],iU.prototype,"disableGridStateAware",void 0);_.g([_.U(),_.N("design:type",Object)],iU.prototype,"data",void 0);_.g([_.U({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.N("design:type",String)],iU.prototype,"panelLayout",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],iU.prototype,"animationEnabled",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],iU.prototype,"transitioningOut",void 0);
_.g([_.U({computed:"computeMetadataOrder(data)"}),_.N("design:type",Boolean)],iU.prototype,"metadataOrder",void 0);_.g([_.U({computed:"computeByline(data)"}),_.N("design:type",Object)],iU.prototype,"byline",void 0);_.g([_.U({computed:"computeAvatarSize(data)"}),_.N("design:type",Number)],iU.prototype,"avatarSize",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],iU.prototype,"narrow",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],iU.prototype,"narrower",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],iU.prototype,"layoutStyle",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],iU.prototype,"isCarouselInFeed",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iU.prototype,"dataChanged",null);_.g([_.PF("yt-default-promo-panel-renderer-playing"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iU.prototype,"onPlaying",null);
_.g([_.PF("yt-default-promo-panel-renderer-ended"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iU.prototype,"onEnded",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],iU);
_.F(iU,"ytd-default-promo-panel-renderer",function(){if(QFo!==void 0)return QFo;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return QFo=u},{mode:1});_.E4("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var T5=function(){var u=_.Q.apply(this,arguments)||this;u.narrower=!1;u.dotMenuVisible=!1;u.paginationThumbnailsVisible=!1;u.active=!0;u.disableGridStateAware=!1;u.actionMap={"yt-window-resized":"onWindowResized"};return u};
_.c(T5,_.Q);_.I=T5.prototype;_.I.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]]"}}}}}};
_.I.attached=function(){document.addEventListener("yt-page-type-changed",_.Ql(this,this.onPageTypeChange));this.currentPageSubtype=_.PI(location.pathname);this.onWindowResized()};
_.I.detached=function(){this.jobId&&_.YL.cancelJob(this.jobId);this.updateSizeJobId&&_.YL.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Ql(this,this.onPageTypeChange))};
_.I.onPageTypeChange=function(u){this.active=u.detail.newPageSubtype===this.currentPageSubtype};
_.I.onWindowResized=function(){this.updateSize()};
_.I.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.I.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.I.setCarouselItem=function(u){u>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.YL.cancelJob(this.jobId);var K=this.getCurrentPanelElement();K&&K.stopVideo();this.currentItemIndex=u%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(K||(K=this.getCurrentPanelElement()),K.playVideo()):this.startRotationJob()};
_.I.scrollThumbnails=function(u){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var K=this.getCurrentPaginationElement();if(K){var l=_.bi(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?l.style.transform="translateX(0)":(K=K.offsetWidth+8,l.style.transform="translateX(-"+K*(u-Math.ceil(Math.floor(this.overlay.offsetWidth/K)/2)+1)+"px)")}}};
_.I.onDataChanged=function(){var u=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Xf(_.YL,function(){u.getCurrentPanelElement().updateSize();u.updateSize()}))};
_.I.getCurrentPanelElement=function(){return _.bi(_.bi(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.I.getCurrentPaginationElement=function(){return _.bi(_.bi(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.I.getNavigationClass=function(u,K){return u===K?"selected":""};
_.I.getNavigationDurationStyle=function(u){return"animation-duration:"+(this.get("data.carouselItems."+u+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.I.onNavigationTap=function(u){var K=this,l=u.model.index;l!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){K.setCarouselItem(l)}),this.autorotateActive=!1)};
_.I.onVideoThumbnailEnded=function(){var u=this;if(this.shouldRotate()){var K=this.getCurrentPaginationElement();K&&(K.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){K.classList.remove("finished");u.setNextCarouselItem()}))}};
_.I.onVideoThumbnailError=function(){this.startRotationJob()};
_.I.onVideoNotPlaying=function(){this.startRotationJob()};
_.I.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.I.startRotationJob=function(){var u=this;_.YL.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.YL.addLowPriorityJob(function(){u.getCurrentPanelElement().transitionOut().then(function(){u.setNextCarouselItem()})},this.rotationTimeout))};
_.I.computeDotMenuVisible=function(u,K){return!!u&&!!u.carouselItems&&u.carouselItems.length>1&&!u.paginationThumbnails||!!K};
_.I.computePaginationThumbnailsVisible=function(u,K){var l,D;return((D=u==null?void 0:(l=u.paginationThumbnails)==null?void 0:l.length)!=null?D:0)>1&&!K};
_.I.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.I.computePaginatorAlignment=function(u){return(u==null?void 0:u.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.I.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.I.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.I.isNarrower=function(u){return(u!=null?u:0)<iU.NARROW_VERSION_SIZE};
T5.prototype.activeChanged=T5.prototype.activeChanged;T5.prototype.onVideoNotPlaying=T5.prototype.onVideoNotPlaying;T5.prototype.onVideoThumbnailError=T5.prototype.onVideoThumbnailError;T5.prototype.onVideoThumbnailEnded=T5.prototype.onVideoThumbnailEnded;T5.prototype.onDataChanged=T5.prototype.onDataChanged;_.g([_.e(_.D1),_.N("design:type",Object)],T5.prototype,"ytdGridStateAwareBehavior",void 0);
_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],T5.prototype,"ytdGuideStateAwareBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],T5.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],T5.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],T5.prototype,"currentItem",void 0);
_.g([_.U(),_.N("design:type",Number)],T5.prototype,"currentItemIndex",void 0);_.g([_.U(),_.N("design:type",Number)],T5.prototype,"rotationTimeout",void 0);_.g([_.U(),_.N("design:type",Number)],T5.prototype,"loopCount",void 0);_.g([_.U({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.N("design:type",String)],T5.prototype,"paginatorAlignment",void 0);_.g([_.U(),_.N("design:type",Number)],T5.prototype,"jobId",void 0);
_.g([_.U(),_.N("design:type",Number)],T5.prototype,"updateSizeJobId",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],T5.prototype,"isCarouselInFeed",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],T5.prototype,"narrower",void 0);_.g([_.U({computed:"computeDotMenuVisible(data, narrower)"}),_.N("design:type",Object)],T5.prototype,"dotMenuVisible",void 0);
_.g([_.U({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.N("design:type",Object)],T5.prototype,"paginationThumbnailsVisible",void 0);_.g([_.U({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.N("design:type",String)],T5.prototype,"layoutType",void 0);_.g([_.U({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],T5.prototype,"autorotateActive",void 0);_.g([_.U(),_.N("design:type",Object)],T5.prototype,"active",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],T5.prototype,"disableGridStateAware",void 0);_.g([_.BF("#overlay"),_.N("design:type",HTMLElement)],T5.prototype,"overlay",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T5.prototype,"onDataChanged",null);
_.g([_.PF("yt-video-thumbnail-ended"),_.PF("yt-default-promo-panel-renderer-rotate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T5.prototype,"onVideoThumbnailEnded",null);_.g([_.PF("yt-video-thumbnail-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T5.prototype,"onVideoThumbnailError",null);
_.g([_.PF("yt-video-thumbnail-not-playing"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T5.prototype,"onVideoNotPlaying",null);_.g([_.wn("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T5.prototype,"activeChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],T5);
_.F(T5,"ytd-carousel-item-renderer",function(){if(f2V!==void 0)return f2V;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return f2V=u},{mode:2});var BSB;var pMG;var iQp;var TSo;var w$=function(){var u=_.Q.apply(this,arguments)||this;u.originalQuery=null;u.originalEndpoint=null;return u};
_.c(w$,_.Q);w$.prototype.computeShowOriginalQueryWithoutEndpoint_=function(u,K){return!(!u||K)};
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],w$.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],w$.prototype,"correctedText",void 0);_.g([_.U(),_.N("design:type",Object)],w$.prototype,"correctedQuery",void 0);_.g([_.U(),_.N("design:type",Object)],w$.prototype,"correctedEndpoint",void 0);_.g([_.U(),_.N("design:type",Object)],w$.prototype,"originalText",void 0);_.g([_.U(),_.N("design:type",Object)],w$.prototype,"originalQuery",void 0);
_.g([_.U(),_.N("design:type",Object)],w$.prototype,"originalEndpoint",void 0);_.g([_.U({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.N("design:type",Boolean)],w$.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.g([_.E9({is:"yt-search-query-correction",disableElementRegistration:!0})],w$);
_.F(w$,"yt-search-query-correction",function(){if(TSo===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;iQp===void 0&&(iQp=document.createElement("template"));var D=iQp;l.call(K,D.content.cloneNode(!0),u.content.firstChild);TSo=u}u=TSo;return u},{mode:2});_.E4("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var F$=function(){return _.Q.apply(this,arguments)||this};
_.c(F$,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],F$.prototype,"data",void 0);_.g([_.E9({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],F$);
_.F(F$,"yt-did-you-mean-renderer",function(){if(pMG===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;BSB===void 0&&(BSB=document.createElement("template"));var D=BSB;l.call(K,D.content.cloneNode(!0),u.content.firstChild);pMG=u}u=pMG;return u},{mode:2});var wM_;var FXp;_.E4("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var VD=function(){return _.Q.apply(this,arguments)||this};
_.c(VD,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],VD.prototype,"data",void 0);_.g([_.E9({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],VD);
_.F(VD,"yt-including-results-for-renderer",function(){if(FXp===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;wM_===void 0&&(wM_=document.createElement("template"));var D=wM_;l.call(K,D.content.cloneNode(!0),u.content.firstChild);FXp=u}u=FXp;return u},{mode:2});var V5I;var gc_;_.E4("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var g$=function(){return _.Q.apply(this,arguments)||this};
_.c(g$,_.Q);g$.prototype.computeExtraClasses_=function(u,K){var l="";u&&(l+=" "+u.toLowerCase().replace(/_/g,"-"));K&&(l+=" "+K.toLowerCase().replace(/_/g,"-"));return l};
g$.prototype.computeUrlImg_=function(){var u=this.data;u.image&&(_.bi(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.bt(u.image.thumbnails,Number.MAX_VALUE)+")")};
g$.prototype.computeUrlImg_=g$.prototype.computeUrlImg_;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],g$.prototype,"data",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g$.prototype,"computeUrlImg_",null);_.g([_.E9({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],g$);
_.F(g$,"yt-music-pass-feature-info-renderer",function(){if(gc_===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;V5I===void 0&&(V5I=document.createElement("template"));var D=V5I;l.call(K,D.content.cloneNode(!0),u.content.firstChild);gc_=u}u=gc_;return u},{mode:2});var NSi;var kcI;_.E4("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var NQ=function(){return _.Q.apply(this,arguments)||this};
_.c(NQ,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],NQ.prototype,"data",void 0);_.g([_.E9({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],NQ);
_.F(NQ,"yt-no-results-found-showing-results-for-renderer",function(){if(kcI===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;NSi===void 0&&(NSi=document.createElement("template"));var D=NSi;l.call(K,D.content.cloneNode(!0),u.content.firstChild);kcI=u}u=kcI;return u},{mode:2});var ZQ_;var YtH;_.E4("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var kh=function(){return _.Q.apply(this,arguments)||this};
_.c(kh,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],kh.prototype,"data",void 0);_.g([_.E9({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],kh);
_.F(kh,"yt-results-without-quotes-renderer",function(){if(YtH===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;ZQ_===void 0&&(ZQ_=document.createElement("template"));var D=ZQ_;l.call(K,D.content.cloneNode(!0),u.content.firstChild);YtH=u}u=YtH;return u},{mode:2});var Ar6;var XME;_.E4("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var ZK=function(){return _.Q.apply(this,arguments)||this};
_.c(ZK,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ZK.prototype,"data",void 0);_.g([_.E9({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],ZK);
_.F(ZK,"yt-search-no-results-renderer",function(){if(XME===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Ar6===void 0&&(Ar6=document.createElement("template"));var D=Ar6;l.call(K,D.content.cloneNode(!0),u.content.firstChild);XME=u}u=XME;return u},{mode:2});var mJ6;var hrp;_.E4("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Yh=function(){return _.Q.apply(this,arguments)||this};
_.c(Yh,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Yh.prototype,"data",void 0);_.g([_.E9({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Yh);
_.F(Yh,"yt-showing-results-for-renderer",function(){if(hrp===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;mJ6===void 0&&(mJ6=document.createElement("template"));var D=mJ6;l.call(K,D.content.cloneNode(!0),u.content.firstChild);hrp=u}u=hrp;return u},{mode:2});var Eci;var LXH;var uDG;var KlE;var AD=function(){var u=_.Q.apply(this,arguments)||this;u.answerExpanded=!1;return u};
_.c(AD,_.Q);AD.prototype.toggleAnswer_=function(u){var K=_.HF(u);K&&K.classList.contains("yt-simple-endpoint")||(u.preventDefault(),u.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
AD.prototype.toggleAnswer_=AD.prototype.toggleAnswer_;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],AD.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],AD.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],AD.prototype,"answerExpanded",void 0);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],AD.prototype,"toggleAnswer_",null);
_.g([_.E9({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],AD);
_.F(AD,"yt-generic-faq-question-renderer",function(){if(KlE===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;uDG===void 0&&(uDG=document.createElement("template"));var D=uDG;l.call(K,D.content.cloneNode(!0),u.content.firstChild);KlE=u}u=KlE;return u},{mode:2});_.E4("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var X$=function(){return _.Q.apply(this,arguments)||this};
_.c(X$,_.Q);X$.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],X$.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],X$.prototype,"data",void 0);_.g([_.E9({is:"yt-faq-section-renderer",disableElementRegistration:!0})],X$);
_.F(X$,"yt-faq-section-renderer",function(){if(LXH===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Eci===void 0&&(Eci=document.createElement("template"));var D=Eci;l.call(K,D.content.cloneNode(!0),u.content.firstChild);LXH=u}u=LXH;return u},{mode:2});var le_;var DvE;_.E4("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var m6=function(){return _.Q.apply(this,arguments)||this};
_.c(m6,_.Q);
m6.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"}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],m6.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],m6.prototype,"data",void 0);_.g([_.E9({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],m6);
_.F(m6,"yt-offer-item-expanded-renderer",function(){if(DvE===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;le_===void 0&&(le_=document.createElement("template"));var D=le_;l.call(K,D.content.cloneNode(!0),u.content.firstChild);DvE=u}u=DvE;return u},{mode:2});var dvp;var Cmp;_.E4("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var hD=function(){return _.Q.apply(this,arguments)||this};
_.c(hD,_.Q);
hD.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"}}}}};
hD.prototype.computeFullWidthMode=function(u){return!(!u||!u.fullWidthMode)};
hD.prototype.computeBorderlessMode=function(u){return!(!u||!u.borderlessMode)};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],hD.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],hD.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.N("design:type",Boolean)],hD.prototype,"fullWidthMode",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.N("design:type",Boolean)],hD.prototype,"borderlessMode",void 0);_.g([_.E9({is:"yt-offer-item-renderer",disableElementRegistration:!0})],hD);
_.F(hD,"yt-offer-item-renderer",function(){if(Cmp===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;dvp===void 0&&(dvp=document.createElement("template"));var D=dvp;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Cmp=u}u=Cmp;return u},{mode:2});var Ieo;var yhE;_.E4("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var EJ=function(){return _.Q.apply(this,arguments)||this};
_.c(EJ,_.Q);EJ.prototype.computeAriaLevel_=function(u){return this.getLevelID_(u)};
EJ.prototype.getLevelID_=function(u){return(u=u.match(/[0-9]+$/))&&u.length==1?u[0]:"1"};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],EJ.prototype,"data",void 0);_.g([_.U({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.N("design:type",String)],EJ.prototype,"ariaLevel",void 0);_.g([_.U({value:"heading",reflectToAttribute:!0}),_.N("design:type",String)],EJ.prototype,"role",void 0);
_.g([_.U({value:-1,reflectToAttribute:!0}),_.N("design:type",Number)],EJ.prototype,"tabindex",void 0);_.g([_.E9({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],EJ);
_.F(EJ,"yt-subscription-product-header-renderer",function(){if(yhE===void 0){var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Ieo===void 0&&(Ieo=document.createElement("template"));var D=Ieo;l.call(K,D.content.cloneNode(!0),u.content.firstChild);yhE=u}u=yhE;return u},{mode:2});var sko;var oIG;_.E4("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var LE=function(){return _.Q.apply(this,arguments)||this};
_.c(LE,_.Q);LE.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:_.L4("menuRenderer"),events:!0}}};
LE.prototype.onStampFinished_=function(){_.bi(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
LE.prototype.onStampFinished_=LE.prototype.onStampFinished_;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],LE.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],LE.prototype,"data",void 0);_.g([_.PF("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LE.prototype,"onStampFinished_",null);
_.g([_.E9({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],LE);
_.F(LE,"yt-subscription-product-renderer",function(){if(oIG===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;sko===void 0&&(sko=document.createElement("template"));var D=sko;l.call(K,D.content.cloneNode(!0),u.content.firstChild);oIG=u}u=oIG;return u},{mode:2});var Wl_;var HCp;_.E4("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var u_=function(){return _.Q.apply(this,arguments)||this};
_.c(u_,_.Q);u_.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
u_.prototype.imageScrimColorValuesChanged_=function(){var u,K=(u=this.data)==null?void 0:u.imageScrimColorValues;_.bi(this.hostElement).querySelector("#scrim").style.backgroundColor=K?_.Kg(K[0]):"transparent"};
u_.prototype.imageScrimColorValuesChanged_=u_.prototype.imageScrimColorValuesChanged_;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],u_.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],u_.prototype,"data",void 0);
_.g([_.JU("data.imageScrimColorValues"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u_.prototype,"imageScrimColorValuesChanged_",null);_.g([_.E9({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],u_);
_.F(u_,"yt-subscription-product-upsell-offer-renderer",function(){if(HCp===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Wl_===void 0&&(Wl_=document.createElement("template"));var D=Wl_;l.call(K,D.content.cloneNode(!0),u.content.firstChild);HCp=u}u=HCp;return u},{mode:2});var MNp;var q06;var $vB;var nIk;var rhi;var vI6;var K2=function(){return _.Q.apply(this,arguments)||this};
_.c(K2,_.Q);K2.prototype.onYtServiceRequestError_=function(u){_.rs(this.hostElement,u.detail.error.message)};
K2.prototype.onYtServiceRequestError_=K2.prototype.onYtServiceRequestError_;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],K2.prototype,"data",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],K2.prototype,"collapsible",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],K2.prototype,"isManageRed",void 0);
_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],K2.prototype,"onYtServiceRequestError_",null);_.g([_.E9({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],K2);
_.F(K2,"yt-single-ypc-offer-renderer",function(){if(vI6===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;rhi===void 0&&(rhi=document.createElement("template"));var D=rhi;l.call(K,D.content.cloneNode(!0),u.content.firstChild);vI6=u}u=vI6;return u},{mode:2});var l_=function(){return _.Q.apply(this,arguments)||this};
_.c(l_,_.Q);l_.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],l_.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],l_.prototype,"isManageRed",void 0);_.g([_.E9({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],l_);
_.F(l_,"yt-single-ypc-offer-list-renderer",function(){if(nIk===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;$vB===void 0&&($vB=document.createElement("template"));var D=$vB;l.call(K,D.content.cloneNode(!0),u.content.firstChild);nIk=u}u=nIk;return u},{mode:2});var GXk;var tNV;_.E4("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Do=function(){return _.Q.apply(this,arguments)||this};
_.c(Do,_.Q);Do.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Do.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Do.prototype,"isManageRed",void 0);_.g([_.E9({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Do);
_.F(Do,"yt-ypc-offers-list-renderer",function(){if(tNV===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;GXk===void 0&&(GXk=document.createElement("template"));var D=GXk;l.call(K,D.content.cloneNode(!0),u.content.firstChild);tNV=u}u=tNV;return u},{mode:2});_.E4("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var dX=function(){return _.Q.apply(this,arguments)||this};
_.c(dX,_.Q);
dX.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}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],dX.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],dX.prototype,"data",void 0);_.g([_.E9({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],dX);
_.F(dX,"yt-unlimited-manage-subscription-page-renderer",function(){if(q06===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;MNp===void 0&&(MNp=document.createElement("template"));var D=MNp;l.call(K,D.content.cloneNode(!0),u.content.firstChild);q06=u}u=q06;return u},{mode:2});var xvk;var S0o;var C2=function(){return _.Q.apply(this,arguments)||this};
_.c(C2,_.Q);_.I=C2.prototype;_.I.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.I.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.I.onKeypress_=function(u){u.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.I.handleHeaderTap_=function(u){u.preventDefault();u.stopPropagation();this.expandOffers_()};
_.I.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.I.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
C2.prototype.dataChanged_=C2.prototype.dataChanged_;_.g([_.e(_.T7),_.N("design:type",Object)],C2.prototype,"ironA11yKeysBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],C2.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],C2.prototype,"offersVisible_",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C2.prototype,"dataChanged_",null);_.g([_.E9({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],C2);
_.F(C2,"yt-collapsible-ypc-offer-renderer",function(){if(S0o===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;xvk===void 0&&(xvk=document.createElement("template"));var D=xvk;l.call(K,D.content.cloneNode(!0),u.content.firstChild);S0o=u}u=S0o;return u},{mode:2});var bCp;var OCi;_.E4("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var Ig=function(){return _.Q.apply(this,arguments)||this};
_.c(Ig,_.Q);_.I=Ig.prototype;_.I.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.I.dataChanged_=function(){if(this.data.backgroundImage){var u=_.bt(this.data.backgroundImage.thumbnails,screen.width),K=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=K?"linear-gradient(180deg, "+K+"), url("+u+")":"url("+u+")";this.data.gtmId&&_.Yx(this.data.gtmId,_.E3("GL",""))}};
_.I.onYtServiceRequestError_=function(u){_.rs(this.hostElement,u.detail.error.message)};
_.I.getScrimLayerColorStops_=function(){var u,K,l=(u=this.data.unlimitedHeaderV2Data)==null?void 0:(K=u.unlimitedHeaderV2Data)==null?void 0:K.scrimLayerColors;if(!l)return null;var D=100/l.length;return l.map(function(d,C){C*=D;return _.Kg(d)+" "+C+"%"}).join(",")};
_.I.computeLogoWithPadding=function(u){var K,l,D;return(u=(K=u.unlimitedLogoImage)==null?void 0:(l=K.thumbnails)==null?void 0:(D=l[0])==null?void 0:D.height)&&u%31===0?!0:!1};
Ig.prototype.onYtServiceRequestError_=Ig.prototype.onYtServiceRequestError_;Ig.prototype.dataChanged_=Ig.prototype.dataChanged_;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.g([_.U({computed:"computeLogoWithPadding(data)"}),_.N("design:type",Boolean)],Ig.prototype,"logoWithPadding",void 0);
_.g([_.U(),_.N("design:type",Object)],Ig.prototype,"data",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ig.prototype,"dataChanged_",null);_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ig.prototype,"onYtServiceRequestError_",null);_.g([_.E9({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],Ig);
_.F(Ig,"yt-unlimited-page-header-renderer",function(){if(OCi===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;bCp===void 0&&(bCp=document.createElement("template"));var D=bCp;l.call(K,D.content.cloneNode(!0),u.content.firstChild);OCi=u}u=OCi;return u},{mode:2});var chE;var aeI;_.E4("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var yz=function(){return _.Q.apply(this,arguments)||this};
_.c(yz,_.Q);yz.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],yz.prototype,"data",void 0);_.g([_.E9({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],yz);
_.F(yz,"yt-unlimited-user-notification-renderer",function(){if(aeI===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;chE===void 0&&(chE=document.createElement("template"));var D=chE;l.call(K,D.content.cloneNode(!0),u.content.firstChild);aeI=u}u=aeI;return u},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.L0E=_.rf(function(u){var K=_.$U(u,{numberOfChips:5}).numberOfChips;return _.n("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.n(_.p0,{each:function(){return Array(K==null?void 0:K())}},function(){return _.n("div",{class:"ytGhostChipShelfChip"})}))},"zg");_.u3G=_.rf(function(u){var K=function(){var C;return((C=u.data)==null?void 0:C.call(u).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},l=_.Qo(),D=_.GB().resolve(_.qI);
_.N_(function(){requestAnimationFrame(function(){var C;(C=l.lottieEl)==null||C.addEventListener("DOMLoaded",function(){var W;(W=u.onLottieLoaded)==null||W.call(u)})})});
var d={};return _.n("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var C;return((C=u.data)==null?void 0:C.call(u).targetId)||""}},_.n(_.O$,{className:_.JB((d.ytChatLoadingViewModelRtl=D==="rtl",d)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:K()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||K()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:K()}}},
animationRef:l}))},"Ag");
}catch(e){_._DumpException(e)}
try{
var GdE,t9I,xo_,SnV,bIk,OIV,cgI,a7_,epE,Bp_,cG,jZV,f7G,Jgo,PrE,QZI,Uop,p$k,iI_,Tp6,w$6,a_,FtI,V9E,kdk,R_,gT2,Ub,zL,fx,NpV,eL,ZIE,Yni,Ag2,X$p,mo2,hp_,Lto,D_o,IYE,y8o,sEE,oD6,WTI,Mfp,$_i,r8_,vDB,G1_,tfp,S3B,b0G,O0E,c8_,aYG,z9I,e9_,U_G,J8V,PcH,fYI,jE_,QEo,BiH,wVE,Tip,pVi,i06,PG,FT_,VfE,Ni_,m_E,h9p,EDV,LT6,u0_,KgG,l_E,D7p,d7G,CZI,y9_,sKE,onH,Y32;
_.bJ=function(u){var K=new _.wv("Error accessing DB");return _.nR9().then(function(l){return new Promise(function(D,d){try{var C=l.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(u);C.onsuccess=function(){var W=C.result;D(W?W.value:null)};
C.onerror=function(){K.params={key:u,source:"onerror"};d(K)}}catch(W){K.params={key:u,
thrownError:String(W)},d(K)}})},function(){return null})};
_.vTE=function(u,K){var l=_.wrb(K);l!=="javascript:"&&l!=="data:"&&u.setAttribute("href",K)};
GdE=function(u,K){return _.eZ(u.entities,"flowStateEntity",K)};
t9I=function(u,K){return _.eZ(u.entities,"contextNoteUserRatingEntityPayload",K)};
xo_=function(u){return _.iL(u,function(K){return K.languageCode==="en"})};
SnV=function(u){var K=Ob;if(_.Uti(u))u.setOption("captions","stickyLoading",{}),u.setOption("captions","track",{});else{var l=_.iL(_.Uvy(u),function(D){return D.displayName===K});
u.setOption("captions","track",l)}};
bIk=function(u){if(!u)return 0;var K=u.getPresentingPlayerType(),l=u.getVideoData();return l&&l.isLive?(u=u.getProgressState(K),u.seekableEnd-u.seekableStart):u.getDuration(K)};
OIV=function(u,K){for(var l=_.y(Object.keys(u)),D=l.next();!D.done;D=l.next())if(D=D.value,u[D]!==K[D])return!1;return!0};
cgI=function(){return document.getElementById("player-control-overlay")};
a7_=function(u){u!==-1&&!_.S("player_controls_log_creation_killswitch")&&cgI()&&(_.As("pcu_cs",u),_.As("pcu_ce"))};
epE=function(u){return _.n("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(u.subscribeButton?[u.subscribeButton,u.channelAccess]:[u.channelAccess]).map(function(K){return _.n("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.n("div",{class:"yt-profile-identity-info-view-model-wiz--button"},zpE(K)))}))};
_.Rpk=function(u){var K=u.data;var l=u.hideDivider;u=u.isChannelInfoCard;var D={};D=(D["yt-profile-identity-info-view-model-wiz__frame"]=!0,D["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!K.channelBanner,D);D={class:_.jX(D)};var d,C={imageBannerViewModel:{image:(d=K.channelBanner)==null?void 0:d.image,style:"IMAGE_BANNER_STYLE_INSET"}};d=_.n("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},K.channelBanner?_.n("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
zpE(C,{imageBannerViewModel:{isPositionRelative:!0}})):null);C=_.n("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},zpE(K.avatar));var W;var M=_.n("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.n("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},K.channelDisplayName),K.verifiedOrOacBadge?_.n("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.n(_.n4,{data:{thumbnails:[{url:(W=K.verifiedOrOacBadge)==null?void 0:W.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);W=_.n("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},M,zpE(K.threeDotMenu));M=_.n("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.n("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.n("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},K.channelHandle),K.channelPronouns&&K.channelHandle?_.n("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.n("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},K.channelPronouns)),_.n("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.n("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},K.leftOfBulletInfo),K.leftOfBulletInfo&&K.rightOfBulletInfo?_.n("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.n("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},K.rightOfBulletInfo)));W=_.n("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},W,M);return _.n("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.n("div",D,d,_.n("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},C,W),K.channelDescription?_.n("div",{class:u?"yt-profile-identity-info-view-model-wiz__channel-description-alternate":"yt-profile-identity-info-view-model-wiz__channel-description"},
K.channelDescription):null,epE(K),l?null:_.n("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
Bp_=function(u,K){var l=_.qE(u,{}),D=Uop("top",K),d=Uop("bottom",K),C=Uop("left",K),W=Uop("right",K);return _.Fb({top:function(){return cG(l().position,D)},
bottom:function(){return cG(l().position,d)},
left:function(){return cG(l().position,C)},
right:function(){return cG(l().position,W)},
position:function(){return cG(l().positionType,f7G)},
height:function(){return cG(l().height,a_)},
width:function(){return cG(l().width,a_)},
"min-width":function(){return cG(l().minWidth,a_)},
"min-height":function(){return cG(l().minHeight,a_)},
"max-width":function(){return cG(l().maxWidth,a_)},
"max-height":function(){return cG(l().maxHeight,a_)},
"aspect-ratio":function(){return cG(l().aspectRatio,String)},
"margin-top":function(){return cG(l().margin,D)},
"margin-bottom":function(){return cG(l().margin,d)},
"margin-left":function(){return cG(l().margin,C)},
"margin-right":function(){return cG(l().margin,W)},
"padding-top":function(){return cG(l().padding,D)},
"padding-bottom":function(){return cG(l().padding,d)},
"padding-left":function(){return cG(l().padding,C)},
"padding-right":function(){return cG(l().padding,W)},
"flex-direction":function(){return cG(l().flexDirection,QZI)},
"justify-content":function(){return cG(l().justifyContent,PrE)},
"align-items":function(){return cG(l().alignItems,Jgo)},
"flex-grow":function(){return cG(l().flexGrow,String)},
"flex-shrink":function(){return cG(l().flexShrink,String)},
"flex-basis":function(){return cG(l().flexBasis,a_)},
"align-self":function(){return cG(l().alignSelf,Jgo)},
"flex-wrap":function(){return cG(l().flexWrap,jZV)},
"align-content":function(){return cG(l().alignContent,Jgo)}})};
cG=function(u,K){return u!==void 0?K(u):void 0};
jZV=function(u){switch(u){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
f7G=function(u){switch(u){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
Jgo=function(u){switch(u){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"}};
PrE=function(u){switch(u){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"}};
QZI=function(u){switch(u){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"}};
Uop=function(u,K){var l=K==="rtl";switch(u){case "top":var D=p$k;break;case "bottom":D=iI_;break;case "left":D=Tp6;break;default:D=w$6}return function(d){return cG(D(d,l),a_)}};
p$k=function(u){var K=u.top;var l=u.vertical;u=u.all;var D;return(D=K!=null?K:l)!=null?D:u};
iI_=function(u){var K=u.bottom;var l=u.vertical;u=u.all;var D;return(D=K!=null?K:l)!=null?D:u};
Tp6=function(u,K){var l=u.left;var D=u.end;var d=u.start;var C=u.horizontal;u=u.all;var W,M;return(M=(W=l!=null?l:K?D:d)!=null?W:C)!=null?M:u};
w$6=function(u,K){var l=u.right;var D=u.end;var d=u.start;var C=u.horizontal;u=u.all;var W,M;return(M=(W=l!=null?l:K?d:D)!=null?W:C)!=null?M:u};
a_=function(u){var K=u.value;switch(u.unit){case "YPC_DIMENSION_UNIT_POINT":return K+"px";case "YPC_DIMENSION_UNIT_FRACTION":return K+"%";default:return""+K}};
FtI=function(u){switch(u){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"}};
V9E=function(u){var K=u!=null?u:{};u=K.fontRole;var l=K.fontSize;K=K.fontWeight;if(u!==null&&l!==null)switch(u){case "YPC_FONT_ROLE_DISPLAY":switch(l){case "YPC_FONT_SIZE_L":return K==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return K==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return K==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return K==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(l){case "YPC_FONT_SIZE_L":return K==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return K==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return K===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return K==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(l){case "YPC_FONT_SIZE_XL":return K==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return K==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return K==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return K==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return K==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
kdk=function(u,K,l){function D(G){return Object.values(G).map(function(t){var x=t.productId;t=t.pricingOptionIndex;return zL(d(x).pricingOptions,t).pricingOptionId})}
function d(G){return M().get(G)}
function C(G){G=D(G);l(G)}
var W=eL([u,K],function(G,t){var x=G==null?void 0:G.selectedPricingOptions;G={};var O=!0;if(x&&t.length)for(var a=_.y(t),f=a.next();!f.done;f=a.next()){f=f.value;var B=gT2(f.pricingOptions,function(m){a:{m=m.pricingOptionId;for(var Z=_.y(x),A=Z.next();!A.done;A=Z.next())if(A.value===m){m=!0;break a}m=!1}return m});
if(B>=0){O=!1;var p=zL(f.pricingOptions,B),V=void 0;G[f.groupId]={productId:f.productId,pricingOptionIndex:B,pricingGroupAttributes:(V=p)==null?void 0:V.pricingGroupAttributes}}}O&&t.length&&(O=zL(t[0].pricingOptions,0),G[t[0].groupId]={productId:t[0].productId,pricingOptionIndex:0,pricingGroupAttributes:O==null?void 0:O.pricingGroupAttributes});return G}),M=eL([K],function(G){return new Map(G.map(function(t){return[t.productId,
t]}))}),q=eL([K],function(G){var t=new Map;
G=_.y(G);for(var x=G.next();!x.done;x=G.next()){var O=x.value;x=O.groupId;var a=O.productId;O=_.y(R_(O.pricingOptions));for(var f=O.next();!f.done;f=O.next()){var B=_.y(f.value);f=B.next().value;B=B.next().value;t.set(B.pricingOptionId,{groupId:x,productId:a,index:f,pricingOption:B,pricingGroupAttributes:B.pricingGroupAttributes})}}return t}),v=eL([K],function(G){var t=new Map;
G=_.y(G);for(var x=G.next();!x.done;x=G.next()){var O=x.value;x=O.groupId;var a=O.productId,f=void 0;O=_.y(R_((f=O.pricingGroups)!=null?f:[]));for(f=O.next();!f.done;f=O.next()){var B=_.y(f.value);f=B.next().value;B=B.next().value;t.set(B.pricingGroupId,{groupId:x,productId:a,index:f,pricingGroup:B,pricingGroupAttributes:B.pricingGroupAttributes})}}return t});
return{getProductById:d,isProductSelected:function(G){var t=d(G);if(!t)return!1;var x;return((x=W()[t.groupId])==null?void 0:x.productId)===G},
getSelectedPricingOptions:function(){return Object.values(W()).map(function(G){var t=G.productId;G=G.pricingOptionIndex;return zL(d(t).pricingOptions,G)})},
getSelectedPricingGroupAttributesByGroupId:function(G){var t;return(G=(t=W()[G])==null?void 0:t.pricingGroupAttributes)?Array.from(G):void 0},
getSelectedProductByGroupId:function(G){var t;return(G=(t=W()[G])==null?void 0:t.productId)?d(G):void 0},
onProductSelected:function(G){var t=d(G);if(t){var x=W(),O;if(((O=x[t.groupId])==null?void 0:O.productId)!==G){var a,f;O=(f=(a=x[t.groupId])==null?void 0:a.pricingOptionIndex)!=null?f:0;Ub(t.pricingOptions)<=O&&(O=0);a=zL(t.pricingOptions,O);var B;f={};C(Object.assign({},x,(f[t.groupId]={productId:G,pricingOptionIndex:O,pricingGroupAttributes:(B=a==null?void 0:a.pricingGroupAttributes)!=null?B:[]},f)))}}},
onPricingOptionSelected:function(G){var t=q().get(G);if(t){G=t.groupId;var x=t.productId;t=t.index;var O=W(),a,f;if(((a=O[G])==null?void 0:a.productId)!==x||((f=O[G])==null?void 0:f.pricingOptionIndex)!==t){var B,p;a={};C(Object.assign({},O,(a[G]={productId:x,pricingOptionIndex:t,pricingGroupAttributes:(p=(B=O[G])==null?void 0:B.pricingGroupAttributes)!=null?p:[]},a)))}}},
onPricingGroupSelected:function(G){var t=v().get(G);if(t){G=t.groupId;var x=t.productId,O=t.pricingGroup.pricingGroupAttributes,a=d(x);if(a){t=W();var f=t[G].pricingGroupAttributes,B;if(((B=t[G])==null?void 0:B.productId)!==x||!fx(NpV(f,Ub(O)),O)){B=Array.from(O);for(O=Ub(O);O<Ub(f);O++){var p="",V=!1,m=Array.from(B);m.push(zL(f,O));for(var Z=_.y(a.pricingGroups),A=Z.next();!A.done;A=Z.next())if(A=A.value,fx(A.pricingGroupAttributes,m)){B.push(zL(f,O));V=!0;break}else p===""&&Ub(A.pricingGroupAttributes)===
m.length&&fx(NpV(A.pricingGroupAttributes,B.length),B)&&(p=zL(A.pricingGroupAttributes,O));V||B.push(p)}p=t[G].pricingOptionIndex;O=[];V=new Map;m=0;a=_.y(R_(a.pricingOptions));for(Z=a.next();!Z.done;Z=a.next())A=_.y(Z.value),Z=A.next().value,A=A.next().value,fx(A.pricingGroupAttributes,B)&&O.push(Z),fx(A.pricingGroupAttributes,f)&&V.set(Z,m++);O.length===0?f=0:(f=V.get(p),f=f!==void 0&&f<O.length?O[f]:O[0]);a={};C(Object.assign({},t,(a[G]={productId:x,pricingOptionIndex:f,pricingGroupAttributes:B},
a)))}}}},
onClearGroupSelected:function(G){var t=W();t[G]&&(t=Object.fromEntries(Object.entries(t).filter(function(x){return _.y(x).next().value!==G})),C(t))}}};
R_=function(u){return function l(){var D,d,C,W,M;return _.el(l,function(q){switch(q.nextAddress){case 1:_.BZ(q,2),D=0,d=_.y(u),C=d.next();case 4:if(C.done){q.jumpTo(2);break}W=C.value;M=_.RX;return q.yield([D++,W],7);case 7:M(q.yieldResult);C=d.next();q.jumpTo(4);break;case 2:_.jj(q),_.pH(q,0)}})}()};
gT2=function(u,K){u=_.y(R_(u));for(var l=u.next();!l.done;l=u.next()){var D=_.y(l.value);l=D.next().value;D=D.next().value;if(K(D))return l}return-1};
Ub=function(u){var K=0;for(u=u[Symbol.iterator]();!u.next().done;)++K;return K};
zL=function(u,K){u=_.y(R_(u));for(var l=u.next();!l.done;l=u.next()){var D=_.y(l.value);l=D.next().value;D=D.next().value;if(l===K)return D}};
fx=function(u,K){if(!u&&!K)return!0;if(!u||!K)return!1;u=Array.from(u);K=Array.from(K);if(u.length!==K.length)return!1;for(var l=0;l<u.length;l++)if(u[l]!==K[l])return!1;return!0};
NpV=function(u,K){K=K===void 0?Infinity:K;var l=[];u=_.y(R_(u));for(var D=u.next();!D.done;D=u.next()){var d=_.y(D.value);D=d.next().value;d=d.next().value;if(D>=K)break;D>=0&&l.push(d)}return l};
eL=function(u,K){var l,D;return function(){for(var d=u.map(function(W){return W()}),C=0;C<d.length;C++)if(!l||d[C]!==l[C]){l=d;
D=K.apply(null,_.Am(d));break}return D}};
ZIE=function(u,K,l){var D=[];u=_.y(u);for(var d=u.next();!d.done;d=u.next()){d=d.value;var C=void 0;((C=K)==null?0:C.length)&&!fx(d.pricingGroupAttributes,K)||D.push({pricingOption:d,isSelected:l.includes(d.pricingOptionId)})}return D};
Yni=function(u,K){return _.eZ(u.entities,"pdpStateEntity",K)};
Ag2=function(u){var K,l;return!!(u.productId&&u.groupId&&((K=u.pricingOptions)==null?0:K.length)&&u.pricingOptions.every(function(D){return D.pricingOptionId})&&((l=u.pricingGroups)==null||!l.length||Array.isArray(u.pricingGroups)&&u.pricingGroups.every(function(D){return D.pricingGroupId&&D.pricingGroupAttributes&&D.pricingGroupAttributes.length>0})))};
X$p=function(u,K,l){return kdk(u,eL([K],function(D){return D.filter(Ag2)}),l)};
mo2=function(u,K){return K.length===0?[u]:[u.slice(0,K[0]),u.slice(K[0])].filter(function(l){return l.length>0})};
hp_=function(u){switch(u){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""}};
Lto=function(u,K,l,D){D=Object.assign({},D);_.hl(D,ETV,{selectedOptionId:u,primaryButtonOverride:l});_.Hb().dispatch(_.TT("flowStateEntity",K,D))};
_.lYI=function(){if(!upp){var u=_.y(_.On(new Map,void 0,"UJImUe"));upp=u.next().value;KTp=u.next().value}return upp};
D_o=function(u){if(u)return _.lYI()().get(u)};
_.d_i=function(u,K){if(u&&K){var l=_.lYI();l().set(u,K);u=l();KTp(new Map(u))}};
_.CcI=function(u){return{onSubmit:function(){var K;(K=D_o(u()))==null||K.onSubmit()},
isValid:function(){var K=D_o(u());return K?K.isValid():!0},
isSubmitting:function(){var K,l;return!!((K=D_o(u()))==null?0:(l=K.isSubmitting)==null?0:l.call(K))}}};
IYE=function(u,K){return _.eZ(u.entities,"contextNoteFeedEntityPayload",K)};
y8o=function(u,K){switch(u){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return K==null?void 0:K.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return K==null?void 0:K.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return K==null?void 0:K.ratingNotHelpfulText}};
sEE=function(u,K){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:u.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:u.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:u.deleteDialogTitle}]},dialogMessages:[{runs:[{text:u.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:u.deleteActionText}]},command:{performCommentActionEndpoint:{action:K}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:u.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
oD6=function(u){u.style.height="auto";u.style.height=u.scrollHeight+"px"};
WTI=function(u){return[u.syncStep,u.asyncStep].filter(function(K){return K!==void 0})};
Mfp=function(u){var K,l,D;if(u=(K=u.structuredContextNoteFormSchema)==null?void 0:(l=K.fieldSchemas)==null?void 0:(D=l.noteBody)==null?void 0:D.validationSchema)for(K=_.y(WTI(u)),l=K.next();!l.done;l=K.next()){l=l.value.rules;if(!l)break;l=_.y(l);for(l=l.next();!l.done;l=l.next())return _.b(l.value,_.H0E)}};
$_i=function(u){if(u){u=_.y(WTI(u));for(var K=u.next();!K.done;K=u.next()){K=K.value.rules;if(!K)break;K=_.y(K);for(K=K.next();!K.done;K=K.next())return _.b(K.value,q3E)}}};
r8_=function(u){if(u){u=_.y(WTI(u));for(var K=u.next();!K.done;K=u.next()){K=K.value.rules;if(!K)break;K=_.y(K);for(K=K.next();!K.done;K=K.next())return _.b(K.value,nDV)}}};
vDB=function(u){u=/^https?:\/\//.test(u)?u:"http://"+u;try{var K=_.lr(u)}catch(l){return!1}if(K.toString()!==u)return!1;u=K.JSC$9960_domain_.split(".");return u.length>1&&u.every(function(l){return!!l})};
G1_=function(u,K,l,D){var d;D=(d=D.structuredContextNoteData)==null?void 0:d.createCommentEndpoint;if(d=_.b(D,_.ggA))return d.commentText=_.o7(u),d.videoPositionMention=K,d.sources=l,D};
tfp=function(u){return u==null?void 0:u.stringValue};
S3B=function(u,K,l){u=u.map(function(D,d){return{listItemViewModel:{title:D.title,subtitle:D.subtitle,leadingImage:D.leadingImage,trailingImage:d===K?x_2:void 0,rendererContext:{commandContext:{onTap:D.onTap}}}}});
return Object.assign({},l&&{header:{panelHeaderViewModel:{title:l}}},{content:{listViewModel:{listItems:u}}})};
b0G=function(u,K){if(u&&K)switch(K){case "SELECTION_TYPE_BOOL":return u.boolValue;case "SELECTION_TYPE_INT":return u.intValue;case "SELECTION_TYPE_STRING":return u.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return u.privacyStatusValue}};
O0E=function(u){var K;u=(K=u.options)==null?void 0:K.findIndex(function(l){return l.isSelected});
return u===void 0?-1:u};
c8_=function(u,K,l){var D=function(){return u().label},d={},C=_.JB("ytDropdownViewModelLabel",(d.ytDropdownViewModelLabelError=K,d));
return _.n(_.r,{cond:function(){return u().label&&!(l()===-1&&u().label&&!u().placeholderText)},
then:function(){return _.n("div",{class:C},_.n(_.qC,{text:D}))}})};
aYG=function(u,K){var l={};l=_.JB("ytDropdownViewModelTitle",(l.ytDropdownViewModelTitlePlaceholder=function(){return K()===-1},l));
return _.n("div",{class:l},_.n(_.qC,{text:function(){var D=u();var d=K();if(d===-1)D=D.placeholderText?D.placeholderText:D.label;else{var C,W;D=(C=D.options)==null?void 0:(W=C[d])==null?void 0:W.title}return D}}))};
z9I=function(u,K){var l=function(){return u().hint};
return _.n(_.G1,null,_.n(_.r,{cond:function(){return l()&&!K()},
then:function(){return _.n("div",{class:_.JB("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.n(_.qC,{text:l,className:"ytDropdownViewModelSupportText"}))}}),_.n(_.r,{cond:K,
then:function(){return _.n("div",{id:"dropdown-view-model-error",role:"alert",class:_.JB("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.n(_.VB,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.n(_.qC,{text:K,className:"ytDropdownViewModelSupportText"}))}}))};
e9_=function(u,K){var l=_.GB().resolve(_.Kbo);_.ZY(function(){var D=u().id;D&&l!=null&&l.dropdownMap.set(D,K)})};
U_G=function(u){u=_.b(u.scheduleButton,R9_);u=_.b(u==null?void 0:u.primaryButton,_.kY);u=_.b(u==null?void 0:u.onTap,_.K4);var K,l,D=((l=_.b(u,_.ey))==null?void 0:l.commands)||[u];l=_.y(D);for(u=l.next();!u.done&&!(K=_.b(u.value,_.kVH));u=l.next());var d;K=(d=K)==null?void 0:d.createBroadcastRequest;if(!K)throw Error("Mj");return K};
J8V=function(u,K,l){l=l===void 0?{}:l;var D,d;return _.H(function(C){if(D=fYI(K))return C.return(D);(d=QEo(u,K,l))&&PcH(K,d);return C.return(d)})};
PcH=function(u,K){var l=jE_(u);l&&K.then(function(D){_.GB().resolve(_.zz).put(l,new _.e0({innertubeResponse:D}))})};
fYI=function(u){if(u=jE_(u)){var K=_.GB().resolve(_.zz);if(K.has(u))return K.get(u).then(function(l){return l==null?void 0:_.tn(l)})}return null};
jE_=function(u){var K=_.b(u.endpoint,_.oy);if(K!=null&&K.videoId)return K={videoId:K.videoId},_.S("web_imp_player_mute_params")&&(K.mutedAtStart=u.startPlaybackInMutedState),_.sx("inline_playback",K)};
QEo=function(u,K,l){u=_.HJ(u,K.endpoint,BiH(K,l)).then(function(D){return D});
return Promise.resolve(u)};
BiH=function(u,K){K=_.S("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!u.startPlaybackInMutedState},K):Object.assign({},{vis:5,autonav:"1"},K);var l;K={contentPlaybackContext:_.VR(K,(l=_.b(u.endpoint.commandMetadata,_.nN))==null?void 0:l.url,window.location.href)};_.S("web_imp_player_mute_params")&&(K.overrideMutedAtStart=!u.startPlaybackInMutedState);return K};
wVE=function(u,K){var l=window.MutationObserver;l&&(Qj=new l(function(D,d){D=_.y(D);for(var C=D.next();!C.done;C=D.next()){C=C.value;var W;if(W=C.type==="childList"&&C.target)a:{W=u;C=pVi(C.target);W=pVi(W);for(var M=null,q=0;q<C.length;q++)if(W.includes(C[q])){if(q===0){W=!1;break a}M=C[q];break}M?(C=i06(C,M),W=i06(W,M),W=C<W):W=!1}if(W){K();d.disconnect();break}}}),(l=Tip())&&Qj.observe(l,{childList:!0,
subtree:!0}))};
Tip=function(){var u=document.getElementsByTagName("ytd-rich-grid-renderer");if(u.length>0)return u[0];u=document.getElementsByTagName("ytd-section-list-renderer");return u.length>0?u[0]:null};
pVi=function(u){for(var K=[];u;)K.push(u),u=u.parentElement;return K};
i06=function(u,K){var l=Array.from(K.children);K=u.indexOf(K);return K>0?l.indexOf(u[K-1]):-1};
PG=function(u,K,l){l=l===void 0?{}:l;return _.QQ(u,l,K)};
FT_=function(u){switch(u){case "MUSIC":return!0;default:return!1}};
VfE=function(u){return u==null?void 0:u.filter(function(K){return K.premiereTrailerBadgeRenderer})};
Ni_=function(u){var K,l=u==null?void 0:(K=u.find(function(t){return t.thumbnailOverlayTimeStatusRenderer}))==null?void 0:K.thumbnailOverlayTimeStatusRenderer,D,d;
if((l==null?0:(D=l.icon)==null?0:D.iconType)&&FT_(l==null?void 0:(d=l.icon)==null?void 0:d.iconType)){var C;return{icon:l==null?void 0:(C=l.icon)==null?void 0:C.iconType}}var W,M;var q=(u=(W=u==null?void 0:(q=u.find(function(t){return t.thumbnailBottomOverlayViewModel}))==null?void 0:q.thumbnailBottomOverlayViewModel)==null?void 0:(M=W.badges)==null?void 0:M.find(function(t){var x,O;
return((x=_.b(t,gDG))==null?void 0:(O=x.inlinePlaybackBadgeData)==null?void 0:O.replicateAsTimestamp)===!0}))?_.b(u,gDG):void 0;
if(q==null?0:q.icon){var v,G;if((q=(v=_.LZh(q==null?void 0:q.icon))==null?void 0:(G=v.clientResource)==null?void 0:G.imageName)&&FT_(q))return{icon:q}}return{}};
m_E=function(u,K){var l=k1E,D=_.y(_.On(Z0o(new Y32(function(){},l,K)),void 0,"PAnyd")),d=D.next().value,C=D.next().value,W=new Y32(function(M){C(M)},l,K);
_.gp(function(){Promise.resolve().then(function(){var M,q=(M=u())!=null?M:{};W.playerControlsData=q;_.S("player_controls_skip_double_signal_old")&&(W.lastSeenPlayerApi=_.L5(q.playerApi));_.S("player_controls_skip_double_signal_old")||(W.lastSeenPlayerApi=_.L5(q.playerApi));A8k(W)});
_.No(function(){XVB(W)})},"HikUP");
_.No(function(){XVB(W)});
return function(){return d()}};
h9p=function(u){return function(K){var l=u(),D={playerState:K};if(K===1){var d;(d=l.playerApi)==null||d.loadModule("captions")}if(K===0){var C;(C=l.playerApi)==null||C.unloadModule("captions")}(K!==-1||_.S("web_imp_controls_set_player_state_killswitch"))&&l.setState(D)}};
EDV=function(u){return function(K){u().setState({playbackRate:K})}};
LT6=function(u){return function(K){var l=u(),D=l.playerApi,d=D==null?void 0:D.getVideoData(),C=(d==null?void 0:d.isLive)||!1;d=d==null?void 0:d.video_id;C={videoDuration:bIk(D||void 0),isLive:C,videoId:d};C.videoId!==l.videoId&&(C=Object.assign({},_.Goq(D),C));if(K==null?0:K.playertype)C.playerType=K.playertype;if(D){C.captionsAvailable=_.Cx(D);K=C;var W;d=(W=D.getStoryboardLevel(D.getNumberOfStoryboardLevels()-1))==null?void 0:W.intervalMs;K.storyboardInterval=d?d/1E3:void 0;C.captionsAvailable&&
(C.captionsEnabled=_.Uti(D))}C.volumeMuted=!(D==null||!D.isMuted());l.setState(C)}};
u0_=function(u){return function(K){var l=u(),D=l.playerApi;if(D){var d=D.getPresentingPlayerType();K={playedTime:K||0,percentLoaded:D.getVideoLoadedFraction(),playerType:d};l.playerState===0&&(K.playedTime=l.videoDuration);l.isLive&&(d=D.getProgressState(d),K.playedTime-=d.seekableStart,K.videoDuration=bIk(D));if(l.playerType===1)D=!1;else{var C;if((C=l.uxConfig)==null?0:C.showCuedOverlay){var W;D=!((W=l.playerApi)==null?0:W.getPlayerStateObject(l.playerType).isDomPaused)}else D=!0}D&&delete K.playedTime;
l.setState(K)}}};
KgG=function(u){return function(){var K=u(),l,D,d,C={volume:(d=(l=K.playerApi)==null?void 0:l.getVolume())!=null?d:0,volumeMuted:!((D=K.playerApi)==null||!D.isMuted())};K.setState(C)}};
l_E=function(u){return function(){var K=u(),l=K.playerApi;if(l){var D={captionsAvailable:_.Cx(l)};D.captionsAvailable&&(D.captionsEnabled=_.Uti(l));K.setState(D)}}};
D7p=function(u){return function(){var K=u();if(K.playerApi&&!(K.volumeMuted||K.controlsVisible&&K.isProbablyAScreenreaderUser)){K.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var l;(l=document.querySelector(".player-control-play-pause-icon"))==null||l.focus()}}};
d7G=function(u){return{appApi:Object.assign({},_.H2q(),{showCaptionsToggleToast:function(K){var l,D;(D=(l=u()).showCaptionsToggleToast)==null||D.call(l,K)},
openInMiniplayer:function(){var K,l;(l=(K=u()).openInMiniplayer)==null||l.call(K)}})}};
CZI=function(u,K){var l,D,d;return!!(u==null?0:(l=u.playerResponse)==null?0:(D=l.playerConfig)==null?0:(d=D.inlinePlaybackConfig)==null?0:d.showScrubbingControls)&&!(K==null?0:K.hideScrubbingControls)};
_.I_o=function(u){var K=!u.miniplayerIsActive;return[5,2,0].includes(u.miniplayerPlaybackState)||K};
y9_={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};sKE=function(u,K){var l,D,d,C,W;_.H(function(M){if(!K.length)return M.return([]);l=[];D=_.y(K);for(d=D.next();!d.done;d=D.next())C=d.value,(W=u.resolveIcon(C))&&!u.iconCache[W.url]&&l.push(_.tkB(u,W).then(function(){}).catch(function(){}));
return M.return(Promise.all(l))})};
onH=function(u,K){var l=[];K=(new Set(K)).values();K=_.y(K);for(var D=K.next();!D.done;D=K.next()){D=D.value;for(var d=_.y(Object.values(y9_)),C=d.next();!C.done;C=d.next())l.push({iconName:D,iconStyle:C.value})}sKE(u.iconManager,l)};
_.Wgp=function(u,K,l){var D=l!=null?l:u.iconsToFetch;D!=null&&D.length?K!==void 0&&K>=0?_.Ve(_.YL,function(){onH(u,D)},K):onH(u,D):Promise.resolve()};
Y32=function(u,K,l){var D=this;this.renderFn=u;this.listeners=K;this.context=l;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var d;this.lastSeenPlayerApi=_.L5((d=this.playerControlsData)==null?void 0:d.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.Goq(),void 0);_.S("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){Z0o(D).setState({playerState:-1});D.resetRecentlyNavigatedJobId&&_.YL.cancelJob(D.resetRecentlyNavigatedJobId);
D.recentlyNavigated=!0;D.resetRecentlyNavigatedJobId=_.YL.addJob(function(){D.recentlyNavigated=!1},8,1E4)})};
Y32.prototype.setState=function(u){if(!_.S("mweb_player_skip_no_op_state_changes")||!OIV(u,this.state))if(this.state=Object.assign({},this.state,u),!_.S("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)u=-1,_.S("player_controls_log_creation_killswitch")||cgI()||(u=(0,_.vA)()),_.As("pcu_s"),_.As("pcu_se"),_.As("pcu_rs"),this.renderFn(Z0o(this)),_.As("pcu_re"),a7_(u),_.YL.addJob(function(){_.As("pcu_ap")},8)};
var Z0o=function(u){var K;var l=_.L5((K=u.playerControlsData)==null?void 0:K.playerApi);return Object.assign({},u.state,{setState:u.boundSetState,domMeasurements:{progressBarLineRect:u.progressBarLineRect},playerApi:l,appApi:u.context.appApi,playerContainer:u.context.playerContainer,playerControlContainer:u.context.playerControlContainer,uxConfig:u.context.uxConfig})},A8k=function(u){u.listeners.forEach(function(K){u.eventListenerCleanupFunctions.push(K.register(function(){return Z0o(u)},function(){return u.getData()}))})},
XVB=function(u){u.eventListenerCleanupFunctions.forEach(function(K){K()});
u.eventListenerCleanupFunctions.length=0};
Y32.prototype.getData=function(){return this.playerControlsData};var JI=new _.r3("abuseReportFlowState");var HTE=new _.r3("feedbackFormFlowState");var Mgi=new _.r3("inputBoxViewModel");var qPp=new _.r3("flowNextStepCommand");var $7p=new _.r3("flowPrevStepCommand");var nnB=new _.r3("updateFlowCommand");_.r9_=new _.r3("flowStepRenderer");_.H0E=new _.r3("lengthValidationRule");var q3E=new _.r3("regexValidationRule");var nDV=new _.r3("selectedValidationRule");var vni=new _.r3("talkToRecsViewModel");var GB6=new _.r3("creatorGoalSetUpFlowDropdownItemViewModel");var tgI=new _.r3("creatorGoalSetUpFlowDropdownViewModel");var gDG=new _.r3("thumbnailBadgeViewModel");_.x7_=new _.r3("radioButtonGroupViewModel");var R9_=new _.r3("panelFooterViewModel");var SPi=new _.r3("ypcCancelRecurrenceCommand");var bTo=new _.r3("cancellationFlowState");var ETV=new _.r3("premiumPurchaseFlowState");var OT6=new _.r3("surveyAnswerCardRenderer");var c9i=new _.r3("showMoreButtonRenderer");var a_V;var zXI,eXE=function(){if(zXI!==void 0)return zXI;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;a_V===void 0&&(a_V=document.createElement("template"));var D=a_V;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return zXI=u};var jL=function(){var u=_.Q.apply(this,arguments)||this;u.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";u.goalDescription="";u.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";u.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";u.startButtonId="start-button";u.exampleButtonId="example-button";return u};
_.c(jL,_.Q);_.I=jL.prototype;_.I.getGoalDropdownItems=function(){var u,K;return(K=_.b((u=this.data)==null?void 0:u.purchaseTargetDropdown,tgI))==null?void 0:K.dropdownItems};
_.I.getTimerDropdownItems=function(){var u,K;return(K=_.b((u=this.data)==null?void 0:u.timerDropdown,tgI))==null?void 0:K.dropdownItems};
_.I.getColorDropdownItems=function(){var u,K;return(K=_.b((u=this.data)==null?void 0:u.colorDropdown,tgI))==null?void 0:K.dropdownItems};
_.I.getDropdownItemText=function(u){var K;return(K=_.b(u,GB6))==null?void 0:K.itemLabel};
_.I.getDropdownItemValue=function(u){u=_.b(u,GB6);return(u==null?void 0:u.timeLimit)||(u==null?void 0:u.purchaseTarget)||(u==null?void 0:u.eligiblePurchaseType)};
_.I.updateFlowState=function(u){_.Sy(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:u}])};
_.I.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.I.updateGoalValue=function(u){this.goal=u.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.I.onTextValueChanged=function(u){this.goalDescription=u.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.I.updateTimerValue=function(u){this.timer=u.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.I.updateTierValue=function(u){this.tier=u.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.I.getButtonViewModel=function(u){u=(u==null?void 0:u.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var K,l=_.b((K=this.data)==null?void 0:K.startGoalButton,_.kY);return Object.assign({},l,{state:u})};
_.MN.Object.defineProperties(jL,{template:{configurable:!0,enumerable:!0,get:function(){return eXE()}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],jL.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],jL.prototype,"goal",void 0);_.g([_.U(),_.N("design:type",Object)],jL.prototype,"goalDescription",void 0);_.g([_.U(),_.N("design:type",Object)],jL.prototype,"timer",void 0);_.g([_.U(),_.N("design:type",Object)],jL.prototype,"tier",void 0);
_.g([_.U(),_.N("design:type",Object)],jL.prototype,"startButtonId",void 0);_.g([_.U(),_.N("design:type",Object)],jL.prototype,"exampleButtonId",void 0);_.g([_.E9({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],jL);_.F(jL,"yt-creator-goal-set-up-flow-view-model",function(){return eXE()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var RXH;var U7_;var f_G;var QKG=function(){return _.Q.apply(this,arguments)||this};
_.c(QKG,_.Q);_.g([_.U(),_.N("design:type",Object)],QKG.prototype,"data",void 0);_.g([_.E9({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],QKG);
_.F(QKG,"yt-survey-answer-card-renderer",function(){if(f_G===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;U7_===void 0&&(U7_=document.createElement("template"));var D=U7_;l.call(K,D.content.cloneNode(!0),u.content.firstChild);f_G=u}u=f_G;return u},{mode:2});var PZI;var J96;var BG=function(){return _.Q.apply(this,arguments)||this};
_.c(BG,_.Q);_.I=BG.prototype;_.I.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.I.selectedItemChanged=function(u){_.Sy(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[u.feedbackToken||""]}])};
_.I.surveyAnswerCardRendererClicked=function(u){if(u.target&&_.b(u.model.item,OT6)){var K=u.target;u=_.b(u.model.item,OT6);u.onTapCommand?_.ay(K,[u.onTapCommand],K):this.data.onTapCommand&&_.ay(K,[this.data.onTapCommand],K);this.selectedItemChanged(u)}};
_.I.checkIsCancellationStyle=function(u){return u==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.I.updateSelectedItemFromBinding=function(u){this.selectedItem=u.detail.value};
BG.prototype.onSelectedItemChanged=BG.prototype.onSelectedItemChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],BG.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],BG.prototype,"selectedItem",void 0);_.g([_.U({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.N("design:type",Boolean)],BG.prototype,"isCancellationStyle",void 0);
_.g([_.JU("selectedItem"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BG.prototype,"onSelectedItemChanged",null);_.g([_.E9({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],BG);
_.F(BG,"yt-survey-flow-step-renderer",function(){if(J96===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;PZI===void 0&&(PZI=document.createElement("template"));var D=PZI;l.call(K,D.content.cloneNode(!0),u.content.firstChild);J96=u}u=J96;return u},{mode:2});var px=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return u};
_.c(px,_.Q);px.prototype.handleSurveyFlowStepOptionChanged=function(u){this.ytdReduxBehavior.dispatch(_.SZ({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:u}));_.Sy(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:u}}])};
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],px.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],px.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],px.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],px);
_.F(px,"ytd-survey-flow-step-renderer",function(){if(RXH!==void 0)return RXH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return RXH=u},{mode:1});var zpE;zpE=_.NX({avatarViewModel:_.Y_,buttonViewModel:_.P2,subscribeButtonViewModel:_.YR,imageBannerViewModel:_.Wua});_.jKB=_.B1(_.Rpk);_.v4(_.Rpk);var Bv_;var iJ=function(){return _.Q.apply(this,arguments)||this};
_.c(iJ,_.Q);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],iJ.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],iJ.prototype,"data",void 0);_.g([_.T({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],iJ);
_.F(iJ,"ytd-channel-history-renderer",function(){if(Bv_!==void 0)return Bv_;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Bv_=u},{mode:1});var pvp;var iTG=function(){return _.Q.apply(this,arguments)||this};
_.c(iTG,_.Q);_.g([_.U(),_.N("design:type",Object)],iTG.prototype,"data",void 0);_.g([_.T({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],iTG);
_.F(iTG,"ytd-feature-enablement-info-renderer",function(){if(pvp!==void 0)return pvp;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return pvp=u},{mode:1});var TvG;var wvI;var TL=function(){var u=_.Q.apply(this,arguments)||this;u.textBoxMaxLength=_.S("enable_tvod_campaign_code_integration")?15:12;return u};
_.c(TL,_.Q);_.I=TL.prototype;_.I.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.I.onSubmit=function(){var u=this.data.serviceEndpoint,K=_.b(u,_.t3);K&&u&&(K.couponCode=this.userInput,_.GB().resolve(_.t9).resolveCommand(u,{form:{element:this.hostElement}}))};
_.I.validate=function(){var u=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=u&&!this.data.errorMessage;this.showErrorMessage=u&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.S("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.I.computeStyle=function(u){return u};
_.I.computeShowValidationBelowInput=function(u){return u!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.I.updateUserInputFromBinding=function(u){this.userInput=u.currentTarget.value};
_.I.updateShowErrorMessageFromBinding=function(u){this.showErrorMessage=u.detail.value};
_.MN.Object.defineProperties(TL.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
TL.prototype.dataChanged=TL.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],TL.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],TL.prototype,"userInput",void 0);_.g([_.U(),_.N("design:type",Boolean)],TL.prototype,"disableApplyButton",void 0);_.g([_.U(),_.N("design:type",Boolean)],TL.prototype,"hideApplyButton",void 0);
_.g([_.U(),_.N("design:type",Boolean)],TL.prototype,"hideErrorMessage",void 0);_.g([_.U(),_.N("design:type",Boolean)],TL.prototype,"showTick",void 0);_.g([_.U(),_.N("design:type",Boolean)],TL.prototype,"showErrorMessage",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],TL.prototype,"couponStyle",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.N("design:type",Boolean)],TL.prototype,"showValidationBelowInput",void 0);_.g([_.U(),_.N("design:type",Object)],TL.prototype,"textBoxMaxLength",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TL.prototype,"dataChanged",null);
_.g([_.R("showTick","showErrorMessage","userInput"),_.N("design:type",String),_.N("design:paramtypes",[])],TL.prototype,"validationState",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],TL);
_.F(TL,"ytd-ypc-coupon-renderer",function(){if(wvI!==void 0)return wvI;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return wvI=u},{mode:1});var wt=function(){return _.Q.apply(this,arguments)||this};
_.c(wt,_.Q);wt.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"}}}};
wt.prototype.computeStyle=function(u){return u};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],wt.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],wt.prototype,"buttonStyle",void 0);_.g([_.T({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],wt);
_.F(wt,"ytd-flow-bottom-bar-renderer",function(){if(TvG!==void 0)return TvG;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return TvG=u},{mode:1});var Fg6;var Vgp;var gnE;var F9=function(){return _.Q.apply(this,arguments)||this};
_.c(F9,_.Q);F9.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
F9.prototype.focus=function(u){this.title&&_.Wu(this.title,u)};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],F9.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],F9.prototype,"data",void 0);_.g([_.BF("#title"),_.N("design:type",HTMLElement)],F9.prototype,"title",void 0);_.g([_.T({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],F9);
_.F(F9,"ytd-flow-top-bar-renderer",function(){if(gnE!==void 0)return gnE;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return gnE=u},{mode:1});var NvB;var kBI;var ZTk;var Vj=function(){return _.Q.apply(this,arguments)||this};
_.c(Vj,_.Q);Vj.prototype.freeTextValueChanged=function(){_.Sy(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Vj.prototype.updateFreeTextValueFromBinding=function(u){this.freeTextValue=u.detail.value};
_.MN.Object.defineProperties(Vj.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var u,K,l=(K=(u=this.data)==null?void 0:u.responseMaxLength)!=null?K:500,D;return((D=this.freeTextValue)!=null?D:"").length>=l?"maxed-out":""}}});
Vj.prototype.freeTextValueChanged=Vj.prototype.freeTextValueChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Vj.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],Vj.prototype,"freeTextValue",void 0);_.g([_.BF("#user-input"),_.N("design:type",HTMLTextAreaElement)],Vj.prototype,"input",void 0);
_.g([_.R("freeTextValue"),_.N("design:type",Object),_.N("design:paramtypes",[])],Vj.prototype,"characterLimitClass",null);_.g([_.JU("freeTextValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vj.prototype,"freeTextValueChanged",null);_.g([_.E9({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Vj);
_.F(Vj,"yt-free-text-input-flow-step-renderer",function(){if(ZTk===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;kBI===void 0&&(kBI=document.createElement("template"));var D=kBI;l.call(K,D.content.cloneNode(!0),u.content.firstChild);ZTk=u}u=ZTk;return u},{mode:2});var gt=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return u};
_.c(gt,_.Q);gt.prototype.handleFreeTextFlowStepInputChanged=function(u){_.Sy(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:u}}])};
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],gt.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],gt.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],gt.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],gt);
_.F(gt,"ytd-free-text-input-flow-step-renderer",function(){if(NvB!==void 0)return NvB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return NvB=u},{mode:1});var YPi;var A9_;var Xvi=function(){return _.Q.apply(this,arguments)||this};
_.c(Xvi,_.Q);_.g([_.U(),_.N("design:type",Object)],Xvi.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],Xvi);
_.F(Xvi,"ytd-metadata-line-renderer",function(){if(A9_!==void 0)return A9_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return A9_=u},{mode:1});var NY=function(){return _.Q.apply(this,arguments)||this};
_.c(NY,_.Q);NY.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],NY.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],NY.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],NY.prototype,"isMasthead",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],NY);
_.F(NY,"ytd-media-product-renderer",function(){if(YPi!==void 0)return YPi;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return YPi=u},{mode:1});var m72;var kJ=function(){return _.Q.apply(this,arguments)||this};
_.c(kJ,_.Q);kJ.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
kJ.prototype.onBillboardImageLoaded=function(){_.xs(this.hostElement,"yt-refit")};
kJ.prototype.onBillboardImageLoaded=kJ.prototype.onBillboardImageLoaded;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],kJ.prototype,"data",void 0);_.g([_.BF("#billboardImage"),_.N("design:type",Object)],kJ.prototype,"billboardImage",void 0);_.g([_.PF("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kJ.prototype,"onBillboardImageLoaded",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],kJ);
_.F(kJ,"ytd-billboard-masthead-renderer",function(){if(m72!==void 0)return m72;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return m72=u},{mode:1});var hXo;var Z4=function(){var u=_.Q.apply(this,arguments)||this;u.smallSize=!1;return u};
_.c(Z4,_.Q);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Z4.prototype,"ytComponentBehaviorType",void 0);_.g([_.U(),_.N("design:type",Object)],Z4.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Z4.prototype,"smallSize",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Z4);
_.F(Z4,"ytd-bullet-formatted-string",function(){if(hXo!==void 0)return hXo;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return hXo=u},{mode:1});var Enp;var YJ=function(){return _.Q.apply(this,arguments)||this};
_.c(YJ,_.Q);YJ.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],YJ.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],YJ);
_.F(YJ,"ytd-offer-detail-renderer",function(){if(Enp!==void 0)return Enp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Enp=u},{mode:1});var Lgo;var AI=function(){return _.Q.apply(this,arguments)||this};
_.c(AI,_.Q);AI.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"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],AI.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],AI.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],AI);
_.F(AI,"ytd-offer-detail-step-renderer",function(){if(Lgo!==void 0)return Lgo;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Lgo=u},{mode:1});var uZ6;var X9=function(){var u=_.Q.apply(this,arguments)||this;u.isInOfferModule=!1;return u};
_.c(X9,_.Q);_.I=X9.prototype;_.I.computeHasEndpoint=function(){var u;return!((u=this.data)==null||!u.onClickCommand)};
_.I.dataChanged=function(){var u;if((u=this.data)==null?0:u.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")};
_.I.detached=function(){var u;if((u=this.data)==null?0:u.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.I.handleClickEvent=function(){var u;if((u=this.data)==null?0:u.onClickCommand){var K;this.componentBehavior.resolveCommand((K=this.data)==null?void 0:K.onClickCommand)}};
_.I.onContentKeyDown=function(u){u.key==="Enter"?this.handleClickEvent(u):u.key===" "&&u.preventDefault()};
_.I.onContentKeyUp=function(u){u.key===" "&&this.handleClickEvent(u)};
X9.prototype.dataChanged=X9.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],X9.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],X9.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],X9.prototype,"data",void 0);_.g([_.U({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],X9.prototype,"hasEndpoint",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],X9.prototype,"isInOfferModule",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X9.prototype,"dataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],X9);
_.F(X9,"ytd-channel-masthead-renderer",function(){if(uZ6!==void 0)return uZ6;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return uZ6=u},{mode:1});var K5k;var mF=function(){var u=_.Q.apply(this,arguments)||this;u.thumbnailObjectFit="CONTAIN";u.thumbnailObjectPosition="LEFT";u.isExpanded=!1;return u};
_.c(mF,_.Q);_.I=mF.prototype;_.I.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.I.dataChanged=function(){this.resetStates()};
_.I.computeisTapOnOfferInfoContainerEnabled=function(){var u;return((u=this.data)==null?void 0:u.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.I.onExpandBtnClick=function(){var u,K=_.b((u=this.data)==null?void 0:u.showMoreButtonRenderer,c9i);K&&_.QZ(_.iT(),K.trackingParams);this.isExpanded=!this.isExpanded};
_.I.onOfferInfoClick=function(u){this.isTapOnOfferInfoContainerEnabled&&(_.rE(_.WF(u)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.vJ(_.WF(u)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.I.onBottomBarClick=function(){this.executeTapCommand()};
_.I.executeTapCommand=function(){var u,K=(u=this.data)==null?void 0:u.tapCommand;K&&this.ytComponentBehavior.resolveCommand(K)};
_.I.resetStates=function(){this.isExpanded=!1};
_.MN.Object.defineProperties(mF.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var u=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),K,l,D;return((K=this.data)==null?void 0:K.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&u&&!!((l=this.data)==null?0:(D=l.benefits)==null?0:D.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return((K=_.b((u=this.data)==null?void 0:u.showMoreButtonRenderer,c9i))==null?void 0:K.showMoreButtonTitle)||((l=this.data)==null?void 0:l.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return((K=_.b((u=this.data)==null?void 0:u.showMoreButtonRenderer,c9i))==null?void 0:K.showLessButtonTitle)||((l=this.data)==null?void 0:l.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var u;return(u=this.showLessButtonTitle)!=null?u:""}var K;return(K=this.showMoreButtonTitle)!=null?K:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return((u=this.data)==null?void 0:u.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((K=this.data)==null?0:K.footerTitle)||((l=this.data)==null?0:l.footerSubtitle))}}});
mF.prototype.dataChanged=mF.prototype.dataChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],mF.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],mF.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",String)],mF.prototype,"thumbnailObjectFit",void 0);
_.g([_.U(),_.N("design:type",String)],mF.prototype,"thumbnailObjectPosition",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.N("design:type",Boolean)],mF.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.g([_.U(),_.N("design:type",Object)],mF.prototype,"isExpanded",void 0);_.g([_.U(),_.N("design:type",Object)],mF.prototype,"data",void 0);_.g([_.U({computed:"computeIcon_(data.footerIcon)"}),_.N("design:type",String)],mF.prototype,"icon",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mF.prototype,"dataChanged",null);_.g([_.R("data.thumbnail"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mF.prototype,"hasThumbnail",null);_.g([_.R("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mF.prototype,"enableExpandButton",null);
_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mF.prototype,"enableOfferContentIcon",null);_.g([_.R("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.N("design:type",Object),_.N("design:paramtypes",[])],mF.prototype,"showMoreButtonTitle",null);_.g([_.R("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.N("design:type",Object),_.N("design:paramtypes",[])],mF.prototype,"showLessButtonTitle",null);
_.g([_.R("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.N("design:type",String),_.N("design:paramtypes",[])],mF.prototype,"expandedBtnText",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mF.prototype,"enableBottomBar",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],mF);
_.F(mF,"ytd-offer-card-renderer",function(){if(K5k!==void 0)return K5k;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return K5k=u},{mode:1});var lq_;var hI=function(){return _.Q.apply(this,arguments)||this};
_.c(hI,_.Q);hI.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"}}}};
hI.prototype.onClick=function(u){if(!_.rE(u.composedPath()||[],this.hostElement,["A".toString()])){var K,l;if((u=(l=_.b((K=this.data)==null?void 0:K.actionButton,_.lF))==null?void 0:l.command)&&!this.ytComponentBehavior.resolveCommand(u)){var D;(D=_.iT())==null||D.clickCommand(u);_.GB().resolve(_.t9).resolveCommand(u,{form:{element:this.hostElement}})}}};
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],hI.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],hI.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],hI.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],hI);
_.F(hI,"ytd-offer-content-renderer",function(){if(lq_!==void 0)return lq_;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return lq_=u},{mode:1});var DhG;var Eb=function(){return _.Q.apply(this,arguments)||this};
_.c(Eb,_.Q);Eb.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.MN.Object.defineProperties(Eb.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var u,K;return!((u=this.data)==null||!u.title)||!((K=this.data)==null||!K.description)}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Eb.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Eb.prototype,"data",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Eb.prototype,"hasHeaderData",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Eb);
_.F(Eb,"ytd-offer-section-renderer",function(){if(DhG!==void 0)return DhG;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return DhG=u},{mode:1});var dhE;var Lx=function(){return _.Q.apply(this,arguments)||this};
_.c(Lx,_.Q);
Lx.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"}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Lx.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Lx.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Lx.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Lx);
_.F(Lx,"ytd-offer-selection-step-renderer",function(){if(dhE!==void 0)return dhE;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return dhE=u},{mode:1});var Cnp;var uV=function(){return _.Q.apply(this,arguments)||this};
_.c(uV,_.Q);uV.prototype.computeStyle=function(u){return u};
uV.prototype.computeImageWidth=function(u){return u==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.g([_.U({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.N("design:type",String)],uV.prototype,"containerStyle",void 0);_.g([_.U({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.N("design:type",String)],uV.prototype,"imageWidth",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],uV.prototype,"data",void 0);
_.g([_.T({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],uV);
_.F(uV,"ytd-confirmation-masthead-renderer",function(){if(Cnp!==void 0)return Cnp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Cnp=u},{mode:1});var IqV;var Kb=function(){return _.Q.apply(this,arguments)||this};
_.c(Kb,_.Q);Kb.prototype.computeStyle=function(u){return u};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Kb.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.N("design:type",String)],Kb.prototype,"containerStyle",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Kb);
_.F(Kb,"ytd-purchase-complete-detail-renderer",function(){if(IqV!==void 0)return IqV;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return IqV=u},{mode:1});var yPV;var lV=function(){var u=_.Q.apply(this,arguments)||this;u.scriptsAppended=!1;return u};
_.c(lV,_.Q);lV.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"}}}};
lV.prototype.onDataChanged=function(){var u=this.get("data.gtmId");u&&(_.Yx(u,_.E3("GL","")),this.setupConversionTracking())};
lV.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var u=document.createElement("noscript");u.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(u);this.scriptsAppended=!0}};
lV.prototype.onDataChanged=lV.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],lV.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],lV.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],lV.prototype,"scriptsAppended",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lV.prototype,"onDataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],lV);
_.F(lV,"ytd-purchase-complete-step-renderer",function(){if(yPV!==void 0)return yPV;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return yPV=u},{mode:1});var s$p;var DZ=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(DZ,_.Q);DZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],DZ.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],DZ.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],DZ.prototype,"darkerDarkTheme",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],DZ);
_.F(DZ,"ytd-ypc-transaction-error-message-renderer",function(){if(s$p!==void 0)return s$p;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return s$p=u},{mode:1});var oL2;var W5B;var d1=function(){var u=_.Q.apply(this,arguments)||this;u.handlePhoneVerificationSuccess=function(K){if(u.isValidPhoneVerificationCompletionMessageEvent(K)){var l;((l=u.data)==null?0:l.nextStepCommand)&&u.ytComponentBehavior.resolveCommand(u.data.nextStepCommand)}};
return u};
_.c(d1,_.Q);d1.prototype.isValidPhoneVerificationCompletionMessageEvent=function(u){if(u.data!=="yt-phone-verification-complete")return!1;u=_.q7(u.origin);return u!==null&&u.includes("youtube.com")};
d1.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
d1.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],d1.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],d1.prototype,"data",void 0);_.g([_.E9({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],d1);
_.F(d1,"yt-feature-enablement-soft-entry-renderer",function(){if(W5B===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;oL2===void 0&&(oL2=document.createElement("template"));var D=oL2;l.call(K,D.content.cloneNode(!0),u.content.firstChild);W5B=u}u=W5B;return u},{mode:1});var HUE;var MG_;var qv2;var $hI;var nLE=function(){return _.Q.apply(this,arguments)||this};
_.c(nLE,_.Q);_.g([_.U(),_.N("design:type",Object)],nLE.prototype,"data",void 0);_.g([_.E9({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],nLE);
_.F(nLE,"yt-benefits-item-renderer",function(){if($hI===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;qv2===void 0&&(qv2=document.createElement("template"));var D=qv2;l.call(K,D.content.cloneNode(!0),u.content.firstChild);$hI=u}u=$hI;return u},{mode:2});var rPI;var vL_;var Cb=function(){return _.Q.apply(this,arguments)||this};
_.c(Cb,_.Q);Cb.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Cb.prototype.computeisWithoutPadding=function(){var u;return((u=this.data)==null?void 0:u.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Cb.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.N("design:type",Boolean)],Cb.prototype,"isWithoutPadding",void 0);_.g([_.E9({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Cb);
_.F(Cb,"yt-benefits-section-renderer",function(){if(vL_===void 0){var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;rPI===void 0&&(rPI=document.createElement("template"));var D=rPI;l.call(K,D.content.cloneNode(!0),u.content.firstChild);vL_=u}u=vL_;return u},{mode:2});var IV=function(){return _.Q.apply(this,arguments)||this};
_.c(IV,_.Q);IV.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
IV.prototype.computeisUsingLargeWidth=function(){var u;return((u=this.data)==null?void 0:u.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],IV.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],IV.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.N("design:type",Boolean)],IV.prototype,"isUsingLargeWidth",void 0);_.g([_.E9({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],IV);
_.F(IV,"yt-benefits-flow-step-renderer",function(){if(MG_===void 0){var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;HUE===void 0&&(HUE=document.createElement("template"));var D=HUE;l.call(K,D.content.cloneNode(!0),u.content.firstChild);MG_=u}u=MG_;return u},{mode:2});var G_H;var tG_;var y4=function(){return _.Q.apply(this,arguments)||this};
_.c(y4,_.Q);y4.prototype.checkIsUsingLargeWidth=function(){var u;return((u=this.data)==null?void 0:u.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.g([_.U(),_.N("design:type",Object)],y4.prototype,"data",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.g([_.U({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.N("design:type",Boolean)],y4.prototype,"isUsingLargeWidth",void 0);_.g([_.E9({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],y4);
_.F(y4,"yt-confirmation-flow-step-renderer",function(){if(tG_===void 0){var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;G_H===void 0&&(G_H=document.createElement("template"));var D=G_H;l.call(K,D.content.cloneNode(!0),u.content.firstChild);tG_=u}u=tG_;return u},{mode:2});var xh6;var SvE;var bUk=function(){return _.Q.apply(this,arguments)||this};
_.c(bUk,_.Q);_.g([_.U(),_.N("design:type",Object)],bUk.prototype,"data",void 0);_.g([_.E9({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],bUk);
_.F(bUk,"yt-info-flow-step-renderer",function(){if(SvE===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;xh6===void 0&&(xh6=document.createElement("template"));var D=xh6;l.call(K,D.content.cloneNode(!0),u.content.firstChild);SvE=u}u=SvE;return u},{mode:2});var OUI;var cP6;var aqp=function(){return _.Q.apply(this,arguments)||this};
_.c(aqp,_.Q);_.g([_.U(),_.N("design:type",Object)],aqp.prototype,"data",void 0);_.g([_.E9({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],aqp);
_.F(aqp,"yt-info-list-flow-step-renderer",function(){if(cP6===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;OUI===void 0&&(OUI=document.createElement("template"));var D=OUI;l.call(K,D.content.cloneNode(!0),u.content.firstChild);cP6=u}u=cP6;return u},{mode:2});var zJ6=_.rf(function(u){var K=u.data;return _.n("styled-text-view-model",{class:_.JB("ytStyledTextViewModelHost",function(){return V9E(K().fontAttributes)},function(){return FtI(K().color)})},_.n(_.qC,{text:function(){return K().text},
ariaLabel:function(){var l,D,d;return(d=(l=K().accessibility)==null?void 0:(D=l.accessibilityData)==null?void 0:D.label)!=null?d:""}}))},"of");
zJ6.idomCompat=!0;var eJI=_.rf(function(u){var K=function(){var d,C,W,M;return(M=(W=(d=u.alt)==null?void 0:d.call(u))!=null?W:(C=u.data().accessibilityData)==null?void 0:C.label)!=null?M:""},l=function(){return u.data().imageWidth},D=function(){return u.data().imageHeight};
return _.n("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.n(_.r,{cond:function(){var d=u.data();if(d){var C,W,M;var q=((C=_.GB().resolve(_.vv(_.H1)))==null?0:C())?(W=d.imageDark)!=null?W:d.imageLight:(M=d.imageLight)!=null?M:d.imageDark}else q=void 0;return q},
then:function(d){return _.n(_.n4,Object.assign({},u,{data:d,alt:K,targetWidth:l,targetHeight:D,preserveHeight:!0,preserveWidth:!0}))}}))},"pf");
eJI.idomCompat=!0;var sX=_.rf(function(u){var K=u.data;u=_.qE(function(){return K().slots},[]);
var l=_.qE(function(){return K().layoutProperties},{}),D=_.GB().resolve(_.qI);
return _.n("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:Bp_(l,D)},_.n(_.p0,{each:u,keyBy:"INDEX"},function(d){return _.n("div",{class:"ytContainerLayoutViewModelSlot",style:Bp_(function(){return d().layoutProperties},D)},_.n(_.mo,{data:function(){return d().contents}},{containerLayoutViewModel:sX,
badgeViewModel:_.xW,buttonViewModel:_.P2,styledTextViewModel:zJ6,contentPreviewImageViewModel:function(C){return _.n(_.SO,{data:C.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(C){return _.n(eJI,{data:C.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"qf");
sX.idomCompat=!0;var RJ2=_.rf(function(u){var K=u.data;var l=u.stateFns;var D=function(){var v=K(),G=v.productId;return!(!v.clearGroupId&&!G)},d=function(){var v=K(),G=v.clearGroupId;
return(v=v.productId)?l().isProductSelected(v):G?l().getSelectedProductByGroupId(G)==null:!1},C=function(){var v=K(),G=v.clearGroupId;
if(v=v.productId)l().onProductSelected(v);else if(G)l().onClearGroupSelected(G)},W=function(){var v=K(),G=v.clearGroupId;
if(v=v.productId){var t;return"group:"+(((t=l().getProductById(v))==null?void 0:t.groupId)||"")}return G?"group:"+G:""},M=_.qE(function(){return K().header},[]),q=_.qE(function(){return K().body},[]);
return _.n("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.n(_.r,{cond:function(){return M().length>0||D()},
then:function(){return _.n("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.n("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.n(_.mo,{data:M},{containerLayoutViewModel:function(v){return _.n("div",{class:"ytPdpCardSectionViewModelContentItem"},_.n(sX,{data:v.data}))},
styledTextViewModel:function(v){return _.n("div",{class:"ytPdpCardSectionViewModelContentItem"},_.n(zJ6,{data:v.data}))}})),_.n(_.r,{cond:D,
then:function(){return _.n("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.n(_.XU,{checked:d,name:W,onChange:C}))}}))}}),_.n(_.r,{cond:function(){return q().length>0},
then:function(){return _.n("div",null,_.n(_.mo,{data:q},{containerLayoutViewModel:function(v){return _.n("div",{class:"ytPdpCardSectionViewModelContentItem"},_.n(sX,{data:v.data}))}}))}}))},"rf");
RJ2.idomCompat=!0;var UhV=_.rf(function(u){var K=u.data;var l=u.stateFns;return _.n("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.n(_.r,{cond:function(){return K().banner},
then:function(D){return _.n("div",{class:"ytPdpCardViewModelBanner"},_.n(_.qC,{text:D}))}}),_.n(_.mo,{data:function(){return K().sections}},{pdpCardSectionViewModel:function(D){D=D.data;
var d={};return _.n("div",{class:_.JB("ytPdpCardViewModelSectionContainer",(d.ytPdpCardViewModelShowDividers=function(){return K().showDividers},d))},_.n(RJ2,{data:D,
stateFns:l}))}}))},"sf");
UhV.idomCompat=!0;var fqo=_.rf(function(u){var K=u.data;var l=u.isOverlay;u={};return _.n("pdp-masthead-view-model",{class:_.JB("ytPdpMastheadViewModelHost",(u.ytPdpMastheadViewModelIsOverlay=l,u))},_.n(_.mo,{data:function(){return K().image}},{contentPreviewImageViewModel:_.SO,
themedImageViewModel:function(D){return _.n(eJI,{data:D.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.n(_.r,{cond:function(){return K().title},
then:function(D){return _.n("h1",{class:"ytPdpMastheadViewModelHeading"},_.n(_.qC,{text:D,isOverlay:l}))}}),_.n(_.p0,{each:function(){var D;
return(D=K().finePrint)!=null?D:[]}},function(D){return _.n("div",{class:"ytPdpMastheadViewModelFinePrint"},_.n(_.qC,{text:D,
isOverlay:l}))}))},"tf");
fqo.idomCompat=!0;var Q$p=_.rf(function(u){var K=u.data;var l=u.stateFns;var D=function(){return"pdp-pricing-group-selector-"+K().pricingGroupAttributeIds},d=_.qE(function(){return K().pricingGroupSelectorSectionHeader});
return _.n("pdp-pricing-group-selector-view-model",null,_.n(_.r,{cond:function(){return!!d()},
then:function(){return _.n(_.mo,{data:d},{sectionHeaderViewModel:function(C){C=C.data;var W={};return _.n("div",{class:_.JB("ytPdpPricingGroupSelectorViewModelSectionHeader",(W.ytPdpPricingGroupSelectorViewModelFullBleed=!0,W.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,W))},_.n(_.za,{data:C}))}})}}),_.n("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.n(_.p0,{each:function(){var C=l().getSelectedProductByGroupId(K().groupId);
if(!C)return _.m0(Error("Kj`"+K().groupId)),[];var W,M=(W=K().pricingGroupAttributeIds)!=null?W:[],q;if((q=C.pricingGroups)==null||!q.length||!M.length)return[];W=C.pricingGroups.filter(function(x){return M.length?x.pricingGroupAttributes.every(function(O){return M.includes(O)}):!1});
C=[];if(M.length>0){W=[].concat(_.Am(W));q=_.y(M);for(var v=q.next(),G={};!v.done;G={targetAttrId:void 0},v=q.next())G.targetAttrId=v.value,v=W.findIndex(function(x){return function(O){return O.pricingGroupAttributes.includes(x.targetAttrId)}}(G)),v!==-1&&(C.push(W[v]),W.splice(v,1))}var t=l().getSelectedPricingGroupAttributesByGroupId(K().groupId);
return C.map(function(x){var O=!1;t&&x.pricingGroupAttributes&&(O=fx(x.pricingGroupAttributes,t));return{pricingGroup:x,isSelected:O}})},
keyBy:function(C){return C.pricingGroup.pricingGroupId}},function(C){return _.n("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.n("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.n(_.mo,{data:function(){return C().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:sX})),_.n("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.n(_.XU,{checked:function(){return C().isSelected},
name:D,onClick:function(){l().onPricingGroupSelected(C().pricingGroup.pricingGroupId)}})))})))},"uf");
Q$p.idomCompat=!0;var PnB=_.rf(function(u){var K=u.data;var l=u.stateFns;var D=function(){var W=l().getSelectedPricingOptions().map(function(v){return v.pricingOptionId}),M=l().getSelectedProductByGroupId(K().groupId);
if(!M)return _.m0(Error("Lj`"+K().groupId)),[];var q=l().getSelectedPricingGroupAttributesByGroupId(K().groupId);return ZIE(M.pricingOptions,q,W)},d=_.qE(function(){return K().pricingOptionSelectorSectionHeader}),C=function(){return D().length>1};
return _.n("pdp-pricing-option-selector-view-model",null,_.n(_.r,{cond:function(){return!!d()&&C()},
then:function(){return _.n(_.mo,{data:d},{sectionHeaderViewModel:function(W){W=W.data;var M={};return _.n("div",{class:_.JB("ytPdpPricingOptionSelectorViewModelSectionHeader",(M.ytPdpPricingOptionSelectorViewModelFullBleed=!0,M.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,M))},_.n(_.za,{data:W}))}})}}),_.n(_.r,{cond:C,
then:function(){return _.n("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.n(_.p0,{each:D,keyBy:"INDEX"},function(W){return _.n("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.n("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.n(_.mo,{data:function(){return W().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:sX})),_.n("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.n(_.XU,{checked:function(){return W().isSelected},
onClick:function(){l().onPricingOptionSelected(W().pricingOption.pricingOptionId);var M=W().pricingOption.onSelectPricingOption;if(M=_.lt(M)){var q;(q=_.GB().resolve(_.t9))==null||q.resolveCommand(M)}}})))}))}}))},"vf");
PnB.idomCompat=!0;var JPi=_.rf(function(u){var K=u.data;var l=u.stateFns;return _.n("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.n(_.mo,{data:function(){var D,d;return(d=(D=l().getSelectedPricingOptions()[0])==null?void 0:D.primaryButton)!=null?d:K().emptyStateButton}},{buttonViewModel:_.P2}))},"wf");
JPi.idomCompat=!0;var j$G=_.rf(function(u){var K=u.stateFns;return _.n("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.n(_.mo,{data:function(){return K().getSelectedPricingOptions().flatMap(function(l){return l.summaryLines}).filter(function(l){return!!l})}},{containerLayoutViewModel:function(l){return _.n("div",{class:"ytPdpSummaryViewModelLineItem"},_.n(sX,{data:l.data}))}}))},"xf");
j$G.idomCompat=!0;var BlB=_.rf(function(u){function K(B){var p=W();_.ME(_.EL("pdpStateEntity",p,{key:p,selectedPricingOptions:B}))}
var l=u.data;var D=u.internalScrolling;var d=u.stateFnsForTesting;var C=_.qE(function(){return l().allProducts},[]),W=_.qE(function(){return l().pdpStateEntityKey},""),M=_.ie(Yni,W),q=_.RZ(function(){_.Z7(!0);
var B;return(B=d==null?void 0:d())!=null?B:X$p(M,C,K)},void 0,"pjJzrd"),v=_.qE(function(){return l().body},[]),G=_.qE(function(){return l().columnBreakHints},[]),t=function(){return l().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},x=function(){return t()||l().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},O=_.RZ(function(){var B=_.Wk(l().background),p;
if(B==null?0:(p=B.sources)==null?0:p.length){var V=V===void 0?!0:V;B=_.ln9(void 0,B.sources,void 0,V,V?1E3:void 0,V?void 0:1E3)}else B=null;return B},void 0,"GO4GAe");
u=_.Fb({"--pdp-view-model-background":function(){return O()?"url("+O()+")":void 0}});
var a={};D=_.JB("ytPdpViewModelHost",(a.ytPdpViewModelHasBackground=function(){return x()||!!O()},a.ytPdpViewModelHasDarkBackground=x,a.ytPdpViewModelHasScrim=t,a.ytPdpViewModelInternalScrolling=_.qE(D,!1),a));
var f=function(B){var p={};return _.JB("ytPdpViewModelItem",(p.ytPdpViewModelFullBleed=function(){return _.VLq(B())==="dividerViewModel"||_.VLq(B())==="sectionHeaderViewModel"},p.ytPdpViewModelNoVerticalPadding=function(){return _.VLq(B())==="sectionHeaderViewModel"},p))};
_.ZY(function(){var B=l().onStartCommand;if(B&&(B=_.lt(B))){var p;(p=_.GB().resolve(_.t9))==null||p.resolveCommand(B)}});
return _.n("pdp-view-model",{class:D,style:u},_.n("div",{class:"ytPdpViewModelColumnContainer"},_.n(_.p0,{each:function(){return mo2(v(),G())},
keyBy:"INDEX"},function(B){return _.n("div",{class:"ytPdpViewModelColumn"},_.n(_.mo,{data:B},{containerLayoutViewModel:function(p,V){p=p.data;return _.n("div",{class:f(function(){return B()[V()]})},_.n(sX,{data:p}))},
dividerViewModel:function(p,V){p=p.data;return _.n("div",{class:f(function(){return B()[V()]})},_.n(_.nh2,{data:p}))},
pdpCardViewModel:function(p,V){p=p.data;return _.n("div",{class:f(function(){return B()[V()]})},_.n(UhV,{data:p,
stateFns:q}))},
pdpMastheadViewModel:function(p,V){p=p.data;return _.n("div",{class:f(function(){return B()[V()]})},_.n(fqo,{data:p,
isOverlay:x}))},
pdpPricingGroupSelectorViewModel:function(p,V){p=p.data;return _.n("div",{class:f(function(){return B()[V()]})},_.n(Q$p,{data:p,
stateFns:q}))},
pdpPricingOptionSelectorViewModel:function(p,V){p=p.data;return _.n("div",{class:f(function(){return B()[V()]})},_.n(PnB,{data:p,
stateFns:q}))},
pdpPrimaryButtonViewModel:function(p,V){p=p.data;return _.n("div",{class:f(function(){return B()[V()]})},_.n(JPi,{data:p,
stateFns:q}))},
pdpSummaryViewModel:function(p,V){p=p.data;return _.n("div",{class:f(function(){return B()[V()]})},_.n(j$G,{data:p,
stateFns:q}))},
sectionHeaderViewModel:function(p,V){p=p.data;return _.n("div",{class:f(function(){return B()[V()]})},_.n(_.za,{data:p}))}}))})))},"yf");
BlB.idomCompat=!0;_.SX(BlB,"pdp-view-model",{props:{data:_.M6,stateFnsForTesting:_.xo,internalScrolling:_.xo}});var pA_=_.rf(function(u){var K=u.data;var l=u.className;var D=_.ie(_.$5,function(){return K().flowStateEntityKey});
return _.n("ytm-premium-purchase-button-renderer",{class:_.JB("yt-premium-purchase-button-renderer",l)},_.n(_.mo,{data:function(){var d;return(d=_.b(D(),ETV))==null?void 0:d.primaryButtonOverride}},{buttonRenderer:function(d){return _.n(_.H6,{data:d.data,
className:l})},
buttonViewModel:function(d){return _.n(_.P2,{data:d.data,className:l})}}))},"zf");
pA_.idomCompat=!0;var iU_=_.rf(function(u){var K=u.data;u=u.className;var l=function(){return hp_(K().style)},D=_.JB("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",l),d=_.JB("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",l);
return _.n("yt-flow-bottom-bar-renderer",{class:_.JB("yt-flow-bottom-bar-renderer",u,l)},_.n(_.mo,{data:function(){return K().secondaryButton}},{buttonRenderer:function(C){return _.n(_.H6,{data:C.data,
className:d})},
buttonViewModel:function(C){return _.n(_.P2,{data:C.data,className:d})},
premiumPurchaseButtonRenderer:function(C){return _.n(pA_,{data:C.data,className:d})}}),_.n(_.mo,{data:function(){return K().primaryButton}},{buttonRenderer:function(C){return _.n(_.H6,{data:C.data,
className:D})},
buttonViewModel:function(C){return _.n(_.P2,{data:C.data,className:D})},
premiumPurchaseButtonRenderer:function(C){return _.n(pA_,{data:C.data,className:D})}}))},"Af");
iU_.idomCompat=!0;_.SX(iU_,"yt-flow-bottom-bar-renderer",{props:{data:_.M6,className:_.M6}});var TlE=_.rf(function(u){var K=_.JB(u.className,"ytOfferSummaryRendererHost");return _.n("yt-offer-summary-renderer",{class:K},_.n("div",{class:"ytOfferSummaryRendererTextContainer"},_.n("div",{class:"ytOfferSummaryRendererEyebrowText"},_.n(_.qC,{text:function(){return u.data().eyebrowText}})),_.n("div",{class:"ytOfferSummaryRendererTitle"},_.n(_.qC,{text:function(){return u.data().title}})),_.n("div",{class:"ytOfferSummaryRendererSubtitle"},_.n(_.qC,{text:function(){return u.data().subtitle}})),
_.n("div",{class:"ytOfferSummaryRendererFeatureListData"},_.n(_.p0,{each:function(){var l;
return(l=u.data().featureListData)!=null?l:[]}},function(l){var D;
return _.n("div",{class:"ytOfferSummaryRendererFeatureList"},_.n(_.VB,{icon:(D=l.icon)==null?void 0:D.iconType,active:function(){return l.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(l.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.n("div",{class:"ytOfferSummaryRendererFeatureListText"},_.n(_.qC,{text:l.text,
className:function(){return l.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.n("div",{class:"ytOfferSummaryRendererDescription"},_.n(_.qC,{text:function(){return u.data().description}}))))},"Bf");_.SX(_.rf(function(u){var K={};K=_.JB("ytOfferSummaryFlowStepRendererHost",(K.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=u.shouldDisableHeaderTopMargin,K));return _.n("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:K},_.n("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.n("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.n(_.qC,{text:function(){return u.data().header}})),_.n("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.n(_.qC,{text:function(){return u.data().subtitle}}))),_.n("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.n(_.mo,{data:function(){return u.data().offerSummary}},{offerSummaryRenderer:function(l){return _.n(TlE,{data:l.data,
className:u.flowClassName})}})))},"Cf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.xo,
flowClassName:_.xo,flowStateEntityKey:_.xo,shouldDisableHeaderTopMargin:_.xo}});var wAp=_.rf(function(u){var K=u.data;var l=u.className;var D=u.flowStateEntityKey;var d=u.selectionStepStyle;u=_.p4(function(q){var v=K(),G=D==null?void 0:D();q.target&&(q.stopPropagation(),q=G||"",G=_.$5(_.Hb().getState(),q),v=Object.assign({},G,{premiumPurchaseFlowState:{selectedOptionId:v.optionId,primaryButtonOverride:v.primaryButtonOverride}}),_.Hb().dispatch(_.TT("flowStateEntity",q,v)));return!1});
var C=function(){return(D==null?void 0:D())||""},W=_.ie(_.$5,C);
_.ZY(function(){var q=K(),v=C(),G=W();q.defaultSelected&&v!==""&&q.primaryButtonOverride&&Lto(q.optionId||"",v,q.primaryButtonOverride,G)});
var M={};return _.n("ytm-option-item-renderer",{"on:click":u,class:_.JB(l,"ytm-option-item-renderer",(M["ytm-option-item-renderer--lp2-style"]=function(){return(d==null?void 0:d())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},M))},_.n("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.n("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var q=K(),v=C(),G=W();G=_.b(G,ETV);return(G?(G==null?void 0:G.selectedOptionId)||"":q.defaultSelected&&v!==""?(q==null?void 0:q.optionId)||"":"")===K().optionId},
name:("input"+_.h5(_.Z5)).toString()})),_.n("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.n(_.mo,{data:function(){return K().titleBadge}},{badgeViewModel:function(q){return _.n(_.xW,{data:q.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.n(_.r,{cond:function(){return K().eyebrowText},
then:function(){return _.n("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.n(_.qC,{text:function(){return K().eyebrowText}}))}}),_.n("div",{class:"ytm-option-item-renderer__option-item-title"},_.n(_.qC,{text:function(){return K().title}})),_.n("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.n(_.qC,{text:function(){return K().subtitle}})),_.n(_.r,{cond:function(){return K().featureListData},
then:function(){return _.n("div",{class:"ytm-option-item-renderer__feature-list-data"},_.n(_.p0,{each:function(){return K().featureListData||[]}},function(q){var v,G=(v=q.icon)==null?void 0:v.iconType;
a:switch(q.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":v="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":v="ytm-option-item-renderer__feature-list-icon-small";break a;default:v="ytm-option-item-renderer__feature-list-icon-default"}return _.n("div",{class:"ytm-option-item-renderer__feature-list"},_.n(_.VB,{icon:G,className:v,active:function(){return q.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.n("div",{class:"ytm-option-item-renderer__feature-list-text"},_.n(_.qC,{text:q.text,
className:function(){return q.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.n("div",{class:"ytm-option-item-renderer__option-item-description"},_.n(_.qC,{text:function(){return K().description}}))))},"Df");var F5E=_.rf(function(u){var K=u.data;var l=u.flowClassName;var D=u.flowStateEntityKey;var d=u.selectionStepStyle;return _.n("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.n("div",{class:"yt-option-section-renderer__option-section-header-section"},_.n("div",{class:"yt-option-section-renderer__option-section-header"},_.n(_.qC,{text:function(){return K().title}}),_.n(_.mo,{data:function(){return K().titleBadge}},{badgeViewModel:function(C){return _.n(_.xW,
{data:C.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.n(_.r,{cond:function(){return K().subtitle},
then:function(){return _.n("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.n(_.qC,{text:function(){return K().subtitle}}))}}),_.n(_.r,{cond:function(){return K().featureListData},
then:function(C){return _.n("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.n(_.p0,{each:C},function(W){var M;return _.n("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.n(_.VB,{icon:(M=W.icon)==null?void 0:M.iconType,active:function(){return W.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(W.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.n("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.n(_.qC,{text:W.text,
className:function(){return W.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.n(_.r,{cond:function(){return K().secondaryTitle},
then:function(){return _.n("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.n(_.qC,{text:function(){return K().secondaryTitle}}))}}),_.n(_.p0,{each:function(){return K().sectionDisclaimers||[]}},function(C){return _.n("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.n(_.qC,{text:C}))})),_.n(_.mo,{data:function(){return K().optionItems}},{optionItemRenderer:function(C){return _.n("div",{class:"yt-option-section-renderer__option-item"},_.n(wAp,{data:C.data,
className:l,flowStateEntityKey:D,selectionStepStyle:d}))}}),_.n(_.r,{cond:function(){return K().offerText},
then:function(){return _.n("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.n(_.qC,{text:function(){return K().offerText}}))}}))},"Ef");
F5E.idomCompat=!0;var VGI=_.rf(function(u){var K=u.data;var l=u.flowClassName;var D=u.flowStateEntityKey;u=u.isDesktop;var d=function(){var v;return(v=K().flowStateEntityKey)!=null?v:D==null?void 0:D()},C=function(){return(d==null?void 0:d())||""},W=function(){return K().style},M=_.ie(_.$5,C);
_.ZY(function(){var v=K(),G=C(),t=M();!_.b(t,ETV)&&v.noPreselect&&G!==""&&v.defaultButtonOverride&&Lto("default",G,v.defaultButtonOverride,t)});
var q={};return _.n("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.JB("ytm-option-selection-flow-step-renderer",(q["ytm-option-selection-flow-step-renderer--desktop"]=u,q["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return K().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},q))},_.n("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"},
_.n("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.n(_.qC,{text:function(){return K().header}})),_.n("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.n(_.qC,{text:function(){return K().subtitle}}))),_.n(_.mo,{data:function(){return K().optionItems||[]}},{optionItemRenderer:function(v){return _.n("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.n(wAp,{data:v.data,
className:l,flowStateEntityKey:d,selectionStepStyle:W}))},
optionSectionRenderer:function(v){return _.n("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.n(F5E,{data:v.data,flowClassName:l,flowStateEntityKey:d,selectionStepStyle:W}))}}))},"Ff");
VGI.idomCompat=!0;_.SX(VGI,"yt-option-selection-flow-step-renderer",{props:{data:_.M6,flowClassName:_.M6,flowStateEntityKey:_.M6,isDesktop:_.M6}});var upp,KTp;_.oV=_.rf(function(u){var K=_.$U(u,{type:1,disablePadding:!1,disablePrimaryButton:!1}),l=K.data,D=K.type;u=K.disablePadding;var d=K.disablePrimaryButton,C=K.onClickPrimaryButton,W=function(){return l().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},M=function(){return{disabled:d(),
state:d()?"disabled":"active"}},q=function(){return l().leadingLabel||l().trailingLabel};
K={};return _.n("yt-panel-footer-view-model",{class:_.JB("yt-panel-footer-view-model-wiz",(K["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return l().shouldHideDivider},K["yt-panel-footer-view-model-wiz--disable-padding"]=u,K))},_.n(_.r,{cond:q,
then:function(){var v={},G={};return _.n("div",{class:_.JB("yt-panel-footer-view-model-wiz__text-row",(v["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var t=l();return!(!t.leadingLabel&&!t.trailingLabel||!t.primaryButton&&!t.secondaryButton)},v))},_.n(_.qC,{text:function(){return l().leadingLabel},
className:_.JB((G["yt-panel-footer-view-model-wiz--text-padding"]=q,G))}),_.n(_.qC,{text:function(){return l().trailingLabel}}))}}),_.n(_.r,{cond:W,
then:function(){var v={};return _.n("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.n("div",{class:_.JB("yt-panel-footer-view-model-wiz__primary-button",(v["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return l().secondaryButton},v))},_.n(_.mo,{data:function(){return l().primaryButton}},{buttonViewModel:function(G){return _.n(_.P2,{data:G.data,
buttonOverrides:M,onClick:C})}})),_.n(_.mo,{data:function(){return l().secondaryButton}},{buttonViewModel:_.P2}))}}),_.n(_.r,{cond:function(){return!W()},
then:function(){var v={},G={},t={};return _.n("div",{class:_.JB("yt-panel-footer-view-model-wiz__button-row",(v["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===D()},v))},_.n("div",{class:_.JB("yt-panel-footer-view-model-wiz__button-row--left-button",(G["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===D()},G["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!l().secondaryButton||0===D()},G["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===D()},G))},_.n(_.mo,{data:function(){return l().secondaryButton}},{buttonViewModel:_.P2})),_.n("div",{class:_.JB("yt-panel-footer-view-model-wiz__primary-button",(t["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===D()||1===D()},t["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===D()},t))},_.n(_.mo,{data:function(){return l().primaryButton}},{buttonViewModel:function(x){return _.n(_.P2,{data:x.data,
buttonOverrides:M,onClick:C})}})))}}))},"Gf");
_.oV.idomCompat=!0;_.gLE=_.rf(function(u){u=_.$U(u,{disablePadding:!1});var K=u.data,l=u.disablePadding;u=_.CcI(function(){return K().formId});
var D=u.onSubmit,d=u.isValid,C=u.isSubmitting;return _.n("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.n(_.mo,{data:function(){return K().panelFooter}},{panelFooterViewModel:function(W){return _.n(_.oV,{data:W.data,
onClickPrimaryButton:function(){D()},
disablePrimaryButton:function(){return!d()||C()},
disablePadding:l})}}))},"Hf");_.SX(_.gLE,"yt-form-footer-view-model",{props:{data:_.M6,disablePadding:_.M6}});_.SX(_.rf(function(u){return _.n("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.n("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.n(_.r,{cond:function(){var K;return(K=u.data())==null?void 0:K.image},
then:function(K){return _.n(_.n4,{data:K,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.n("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.n(_.qC,{text:function(){var K;
return(K=u.data())==null?void 0:K.title}})),_.n("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.n(_.qC,{text:function(){var K;
return(K=u.data())==null?void 0:K.subtitle}})),_.n("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.n(_.mo,{data:function(){var K;
return(K=u.data())==null?void 0:K.viewTipsButton}},{buttonViewModel:_.P2}))))},"If"),"yt-contributor-zero-state-view-model",{props:{data:_.M6}});var NlI=_.rf(function(u){var K=_.ie(IYE,_.qE(function(){var W;return(W=u.data())==null?void 0:W.noteFeedEntityKey},"")),l=_.ie(t9I,_.qE(function(){var W;
return(W=u.data())==null?void 0:W.userRatingEntityKey},"")),D=_.S("enable_user_rating_web"),d=function(){var W,M,q;
return((W=K())==null?0:W.contributorNote)?(M=K())==null?void 0:M.contributorNote:(q=u.data())==null?void 0:q.existingNote},C=function(){var W,M;
return!!l()&&!!y8o((W=l())==null?void 0:W.helpfulnessValue,(M=u.data())==null?void 0:M.noteData)};
return D?_.n("yt-note-view-model",{class:"ytNoteViewModelHost"},_.n("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.n("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.n(_.r,{cond:function(){var W,M;return(W=u.data())==null?void 0:(M=W.noteData)==null?void 0:M.isPinned},
then:function(){return _.n(_.VB,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.n(_.r,{cond:function(){var W,M;return(W=u.data())==null?void 0:(M=W.noteData)==null?void 0:M.isPublished},
then:function(){return _.n(_.VB,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.n(_.mo,{data:function(){var W;
return(W=u.data())==null?void 0:W.metadata}},{contentMetadataViewModel:_.bs}),_.n("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var W,M;
return(M=_.b((W=u.data())==null?void 0:W.metadata,_.BwC))==null?void 0:M.delimiter}),_.n(_.qC,{text:function(){var W;
return(W=d())==null?void 0:W.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.n(_.mo,{data:function(){var W,M,q,v,G,t,x,O=!!((W=u.data())==null?0:(M=W.noteData)==null?0:M.isPinned);W=C();M=(q=u.data())==null?void 0:q.noteData;q=(v=K())==null?void 0:(G=v.contributorNote)==null?void 0:G.deleteAction;v=(t=u.data())==null?void 0:t.overflowButtonNoteWithRatingOnTapOverride;t=(x=u.data())==null?void 0:x.overflowButton;return O?sEE(M,q):W?{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}}:t}},{buttonViewModel:function(W){return _.n(_.P2,{data:W.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.n("div",{class:"ytNoteViewModelNoteContent"},_.n(_.qC,{text:function(){var W;
return(W=d())==null?void 0:W.text}})),_.n(_.r,{cond:function(){var W,M;
return!((W=u.data())==null?0:(M=W.noteData)==null?0:M.isPinned)},
then:function(){return _.n(_.r,{cond:C,then:function(){return _.n("div",{class:"ytNoteViewModelUserRatingContainer"},_.n(_.qC,{text:function(){var W,M;return y8o((W=l())==null?void 0:W.helpfulnessValue,(M=u.data())==null?void 0:M.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.n(_.mo,{data:function(){var W;return(W=u.data())==null?void 0:W.userRatingButton}},{buttonViewModel:function(W){return _.n(_.P2,{data:W.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.n(_.r,{cond:function(){var W,M;
return!((W=u.data())==null?0:(M=W.noteData)==null?0:M.ignoreDivider)},
then:function(){return _.n("div",{class:"ytNoteViewModelDivider"},_.n(_.mo,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(W){return _.n(_.nh2,{data:W.data})}}))}})):_.n("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.n("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.n("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.n(_.r,{cond:function(){var W,M;return(W=u.data())==null?void 0:(M=W.noteData)==null?void 0:M.isPinned},
then:function(){return _.n(_.VB,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.n(_.r,{cond:function(){var W,M;return(W=u.data())==null?void 0:(M=W.noteData)==null?void 0:M.isPublished},
then:function(){return _.n(_.VB,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.n(_.r,{cond:function(){return D},
then:function(){return _.n(_.mo,{data:function(){var W;return(W=u.data())==null?void 0:W.metadata}},{contentMetadataViewModel:function(W){return _.n(_.bs,{data:W.data})}})}}),_.n(_.qC,{text:function(){var W,M;
return(W=u.data())==null?void 0:(M=W.noteData)==null?void 0:M.headerText}}),_.n("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.n(_.qC,{text:function(){var W,M;
return(W=u.data())==null?void 0:(M=W.noteData)==null?void 0:M.delimiter}})),_.n(_.qC,{text:function(){var W,M;
return(W=K())==null?void 0:(M=W.contributorNote)==null?void 0:M.publishedTimeText}})),_.n(_.mo,{data:function(){var W,M,q;
return sEE((W=u.data())==null?void 0:W.noteData,(M=K())==null?void 0:(q=M.contributorNote)==null?void 0:q.deleteAction)}},{buttonViewModel:function(W){return _.n(_.P2,{data:W.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.n("div",{class:"ytNoteViewModelNoteContent"},_.n(_.qC,{text:function(){var W,M;
return(W=K())==null?void 0:(M=W.contributorNote)==null?void 0:M.text}})))},"Jf");
NlI.idomCompat=!0;_.SX(NlI,"yt-note-view-model",{props:{data:_.M6}});var WD=_.rf(function(u){var K=_.$U(u,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),l=K.label,D=K.text,d=K.placeholder,C=K.hint;u=K.rows;var W=K.overflowStyle,M=K.outline,q=K.disabled,v=K.disableNewLines,G=K.characterLimit,t=K.validation,x=K.onInput,O=_.o9("textarea");K=_.y(_.wY(function(){return D()}));
var a=K.next().value,f=K.next().value;K=_.y(_.On(!1,void 0,"fXvinf"));var B=K.next().value,p=K.next().value,V=function(){p(!0)},m=function(){p(!1)};
_.ZY(function(){var gq=O.value,Bo=W(),uk=a();Bo==="expand-vertically"&&uk&&oD6(gq);O.value.addEventListener("focusin",V);O.value.addEventListener("focusout",m)});
_.No(function(){O.value.removeEventListener("focusin",V);O.value.removeEventListener("focusout",m)});
var Z=function(){var gq;return(gq=t())==null?void 0:gq.validate(a())},A=function(){return G()&&!Z()&&a().length>G().maxChars},h=function(){return!!Z()||A()};
K=_.p4(function(gq){if(!gq.currentTarget)return!1;gq=gq.currentTarget;f(gq.value);W()==="expand-vertically"&&oD6(gq);x==null||x(gq.value);return!0});
var C9=_.p4(function(gq){v()&&gq.key==="Enter"&&gq.preventDefault();return!1}),Wo=_.p4(function(){O.value.focus()}),$y=function(){return d()||l()},co={},UZ={},tH={};
return _.n("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.n("div",{class:_.JB("ytStandardsTextareaShapeTextareaContainer",(co.ytStandardsTextareaShapeTextareaContainerOutline=M,co.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=q,co.ytStandardsTextareaShapeTextareaContainerOutlineError=h,co)),"on:click":Wo},_.n("label",{class:_.JB("ytStandardsTextareaShapeLabel",(UZ.ytStandardsTextareaShapeLabelFocused=B,UZ.ytStandardsTextareaShapeLabelDisabled=q,UZ.ytStandardsTextareaShapeLabelError=
function(){return h()&&!q()},UZ.ytStandardsTextareaShapeLabelHidden=function(){return!B()&&!a()&&!!$y()},UZ))},l),_.n("div",{class:_.JB("ytStandardsTextareaShapePlaceholder",(tH.ytStandardsTextareaShapePlaceholderVisible=function(){return!B()&&!a()},tH)),
"aria-hidden":"true"},$y),_.n("textarea",{el:O,class:"ytStandardsTextareaShapeTextarea",rows:u,disabled:q,placeholder:$y,"on:input":K,"on:keydown":C9},a)),_.n(_.r,{cond:function(){return C()&&!h()},
then:function(){var gq={};return _.n("div",{class:_.JB("ytStandardsTextareaShapeHint",(gq.ytStandardsTextareaShapeHintDisabled=q,gq))},_.n("div",{class:"ytStandardsTextareaShapeHintHintMessage"},C))}}),_.n(_.r,{cond:Z,
then:function(){return _.n(k_E,{disabled:q},_.n("div",{class:"ytStandardsTextareaShapeErrorMessage"},Z))}}),_.n(_.r,{cond:G,
then:function(gq){return _.n(_.r,{cond:A,then:function(){return _.n(k_E,{disabled:q},_.n("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return gq().errorMessage}),_.n("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return a().length+"/"+gq().maxChars}))}})}}))},"Kf");
WD.idomCompat={callbacks:{onInput:!0}};var k_E=_.rf(function(u){var K={};return _.n("div",{class:_.JB("ytStandardsTextareaShapeError",(K.ytStandardsTextareaShapeErrorDisabled=u.disabled,K)),role:"alert"},_.n(_.VB,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),u.children)},"Lf");_.ZUH=_.rf(function(u){var K=u.data;return _.n("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.n(WD,{text:u.text,label:function(){var l;return(l=K().contentProperties)==null?void 0:l.labelText},
placeholder:function(){var l;return(l=K().contentProperties)==null?void 0:l.placeholderText},
hint:function(){var l;return(l=K().contentProperties)==null?void 0:l.hintText},
outline:function(){var l;return!((l=K().displayProperties)==null?0:l.hideBorder)},
overflowStyle:function(){var l;return((l=K().displayProperties)==null?0:l.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:u.disabled,disableNewLines:function(){var l;return(l=K().displayProperties)==null?void 0:l.disableNewLines},
onInput:u.onInput,characterLimit:u.characterLimit,validation:u.validation,rows:function(){var l;return(l=K().displayProperties)==null?void 0:l.rows}}))},"Mf");_.Yv_=_.rf(function(u){var K=u.data;return _.n("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.n(WD,{text:u.text,label:function(){var l;return(l=K().contentProperties)==null?void 0:l.labelText},
placeholder:function(){var l;return(l=K().contentProperties)==null?void 0:l.placeholderText},
hint:function(){var l;return(l=K().contentProperties)==null?void 0:l.hintText},
outline:function(){var l;return!((l=K().displayProperties)==null?0:l.hideBorder)},
overflowStyle:function(){var l;return((l=K().displayProperties)==null?0:l.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var l;return(l=K().displayProperties)==null?void 0:l.disableNewLines},
onInput:u.onInput,characterLimit:u.characterLimit,validation:u.validation,rows:function(){var l;return(l=K().displayProperties)==null?void 0:l.rows}}))},"Nf");var APp=_.rf(function(u){var K=_.y(_.wY(function(){var $y,co;return(($y=u.data().structuredContextNoteFormSchema)==null?0:(co=$y.initialValues)==null?0:co.noteBody)?u.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),l=K.next().value,D=K.next().value;
K=_.y(_.wY(function(){u.data();return!1}));
var d=K.next().value,C=K.next().value;K=_.y(_.wY(function(){u.data();return!1}));
var W=K.next().value,M=K.next().value;K=_.y(_.wY(function(){var $y,co;return(($y=u.data().structuredContextNoteFormSchema)==null?0:(co=$y.initialValues)==null?0:co.timestamp)?u.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var q=K.next().value,v=K.next().value;K=_.y(_.wY(function(){u.data();return!1}));
var G=K.next().value,t=K.next().value;K=_.y(_.wY(function(){var $y,co;return(($y=u.data().structuredContextNoteFormSchema)==null?0:(co=$y.initialValues)==null?0:co.sources)?[u.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var x=K.next().value,O=K.next().value;K=_.y(_.wY(function(){u.data();return!1}));
var a=K.next().value,f=K.next().value;K=_.y(_.wY(function(){return!1}));
var B=K.next().value,p=K.next().value;_.ZY(function(){var $y;_.d_i(($y=u.data().structuredContextNoteFormSchema)==null?void 0:$y.id,{isSubmitting:B,onSubmit:function(){p(!0);var co=G1_(l(),q(),x(),u.data()),UZ=_.GB().resolve(_.t9);co&&UZ&&UZ.resolveCommand(co,{commandController:{onSuccess:function(){p(!1)}}})},
isValid:function(){return d()&&!W()&&!G()&&!a()}})});
var V=function($y){if($y!==void 0&&(D($y),!d()&&$y.length>0&&C(!0),d())){var co=Mfp(u.data());if(co){var UZ=co.minLength;co=co.maxLength;UZ&&$y.length<UZ?M(!0):co&&$y.length>co?M(!0):M(!1)}}},m=function($y){if($y!==void 0){v($y);
if($y.length>0){var co,UZ,tH,gq,Bo=$_i((co=u.data())==null?void 0:(UZ=co.structuredContextNoteFormSchema)==null?void 0:(tH=UZ.fieldSchemas)==null?void 0:(gq=tH.timestamp)==null?void 0:gq.validationSchema);if(Bo&&(co=Bo.regex)&&!(new RegExp(co)).test($y)){t(!0);return}}t(!1)}},Z=function($y){if($y!==void 0){var co=$y.split(/[ \n]/).map(function(UZ){return UZ.trim()});
O(co);if($y.length>0)for($y=_.y(co),co=$y.next();!co.done;co=$y.next())if(!vDB(co.value)){f(!0);return}f(!1)}},A=function(){return{validate:function($y){if(d()){var co=Mfp(u.data());
if(co){var UZ=co.minLength;co=co.translations;if(UZ&&$y.length<UZ)return co==null?void 0:co.minLengthErrorMessage}}}}},h=function(){var $y=Mfp(u.data()),co=$y==null?void 0:$y.maxLength,UZ;
$y=$y==null?void 0:(UZ=$y.translations)==null?void 0:UZ.maxLengthErrorMessage;if(co&&$y)return{maxChars:co,errorMessage:$y}},C9=function(){return{validate:function($y){if($y){var co,UZ,tH,gq,Bo=$_i((co=u.data())==null?void 0:(UZ=co.structuredContextNoteFormSchema)==null?void 0:(tH=UZ.fieldSchemas)==null?void 0:(gq=tH.timestamp)==null?void 0:gq.validationSchema);
if(Bo&&(co=Bo.regex,Bo=Bo.translations,co&&!(new RegExp(co)).test($y)))return Bo==null?void 0:Bo.regexErrorMessage}}}},Wo=function(){return{validate:function($y){if($y){var co,UZ,tH,gq,Bo=r8_((co=u.data())==null?void 0:(UZ=co.structuredContextNoteFormSchema)==null?void 0:(tH=UZ.fieldSchemas)==null?void 0:(gq=tH.sources)==null?void 0:gq.validationSchema);
if(Bo&&(co=Bo.translations,co==null?0:co.selectedErrorMessage))for($y=$y.split(/[ \n]/).map(function(uk){return uk.trim()}),$y=_.y($y),UZ=$y.next();!UZ.done;UZ=$y.next())if(!vDB(UZ.value))return $y=void 0,($y=co)==null?void 0:$y.selectedErrorMessage}}}};
return _.n("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.n("div",{class:"ytStructuredContextNoteViewModelTextField"},_.n(_.mo,{data:function(){var $y;return($y=u.data())==null?void 0:$y.noteContents}},{textFormFieldViewModel:function($y){return _.n(_.Yv_,{data:$y.data,
onInput:V,validation:A,characterLimit:h})},
textFieldViewModel:function($y){return _.n(_.ZUH,{data:$y.data,onInput:V,validation:A,characterLimit:h})}})),_.n("div",{class:"ytStructuredContextNoteViewModelTextField"},_.n(_.mo,{data:function(){var $y;
return($y=u.data())==null?void 0:$y.noteTimestamp}},{textFormFieldViewModel:function($y){return _.n(_.Yv_,{data:$y.data,
onInput:m,validation:C9})},
textFieldViewModel:function($y){return _.n(_.ZUH,{data:$y.data,onInput:m,validation:C9})}})),_.n("div",{class:"ytStructuredContextNoteViewModelTextField"},_.n(_.mo,{data:function(){var $y;
return($y=u.data())==null?void 0:$y.noteSources}},{textFormFieldViewModel:function($y){return _.n(_.Yv_,{data:$y.data,
onInput:Z,validation:Wo})},
textFieldViewModel:function($y){return _.n(_.ZUH,{data:$y.data,onInput:Z,validation:Wo})}})))},"Of");
APp.idomCompat=!0;_.SX(APp,"yt-structured-context-note-view-model",{props:{data:_.M6}});var XAi=_.rf(function(u){var K=_.y(_.wY(function(){var C;if((C=u.controlled)==null?0:C.call(u))return[];var W;return(((W=u.data())==null?void 0:W.chips)||[]).map(function(M){M=_.b(M,_.ID);if(M==null?0:M.selected)return tfp(M.chipValue)}).filter(function(M){return M!==void 0})})),l=K.next().value,D=K.next().value,d=function(C){var W=tfp(C.chipValue);
if(W!==void 0){var M;if((M=u.controlled)==null?0:M.call(u))return void u.controlled().onTap(W);C=l().includes(W)?[].concat(_.Am(l().filter(function(v){return v!==W}))):[].concat(_.Am(l()),[W]);
D(C);var q;if((q=u.uncontrolled)==null?0:q.call(u))u.uncontrolled().onUpdate(C)}};
return _.n("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.n(_.p0,{each:function(){return u.data().chips||[]}},function(C){return _.n("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.n(_.Y3,{data:function(){return _.b(C,_.ID)},
selected:function(){var W;if(W=_.b(C,_.ID)){var M=tfp(W.chipValue);if(M!==void 0){var q;W=((q=u.controlled)==null?0:q.call(u))?u.controlled().selectedValues.includes(M):l().includes(M)}else W=void 0}else W=!1;return W},
callback:d}))}))},"Pf");var mho=_.rf(function(u){var K=u.data;var l=function(){var M;return((M=K())==null?void 0:M.flowStateKey)||""},D=_.ie(_.$5,l),d=function(){var M;
return(M=_.b(D(),HTE))==null?void 0:M.chips},C=function(M){if(M!==void 0){var q=d()||[];
q=q.find(function(v){return v===M})?q.filter(function(v){return v!==M}):[].concat(_.Am(q),[M]);
q=Object.assign({},D(),{feedbackFormFlowState:Object.assign({},_.b(D(),HTE),{chips:q})});_.ME(_.TT("flowStateEntity",l(),q))}},W=function(){var M;
return _.b((M=K())==null?void 0:M.inputBox,Mgi)};
u=_.wR(function(M){var q=W();q=!(q==null?0:q.maxChars)||M.length<=q.maxChars;M=Object.assign({},D(),{feedbackFormFlowState:Object.assign({},_.b(D(),HTE),{detail:M}),abuseReportFlowState:Object.assign({},_.b(D(),JI),{navigationEnabled:q})});_.ME(_.TT("flowStateEntity",l(),M))},150);
return _.n("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.n("div",{class:"ytFeedbackFormViewModelChips"},_.n(_.mo,{data:function(){var M;return(M=K())==null?void 0:M.chipSelection}},{chipSelectionFormFieldViewModel:function(M){return _.n(XAi,{data:M.data,
controlled:function(){return{selectedValues:d()||[],onTap:C}}})}})),_.n("div",{class:"ytFeedbackFormViewModelInputBox"},_.n(WD,{text:function(){var M;
return(M=_.b(D(),HTE))==null?void 0:M.detail},
placeholder:function(){var M;return((M=W())==null?void 0:M.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var M=W();if(M&&M.maxChars)return{maxChars:M.maxChars,errorMessage:M.maxCharsExceededErrorMessage||""}},
onInput:u})),_.n("div",{class:"ytFeedbackFormViewModelFooterText"},_.n(_.qC,{text:function(){return K().footerText}})))},"Qf");
mho.idomCompat=!0;_.SX(mho,"yt-feedback-form-view-model",{props:{data:_.M6}});var hJ_=_.rf(function(u){var K=u.data;var l=function(){return K().flowStateKey||""},D=_.ie(GdE,l),d=function(){return _.b(D(),JI)},C=function(){if(_.S("enable_gff_accessibility_fix")){var W=!0,M;
if((M=d())==null?0:M.navigationEnabled){var q;_.IT((q=d())==null?void 0:q.navigationCommand);W=!1}M=Object.assign({},D(),{abuseReportFlowState:Object.assign({},d(),{isReportFormDirty:W})});_.ME(_.TT("flowStateEntity",l(),M))}else _.IT((W=d())==null?void 0:W.navigationCommand)};
return _.n("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.n("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.n(_.mo,{data:function(){return K().cancelButton}},{buttonViewModel:function(W){return _.n(_.P2,{data:W.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:C})}}),_.n(_.mo,{data:function(){var W;
if(K().navButton){var M=Object;var q=M.assign,v=_.b(K().navButton,_.kY),G=((W=d())==null?0:W.navigationEnabled)||_.S("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",t,x;W=_.b((t=d())==null?void 0:t.navigationCommand,_.K4);t=(x=_.b(W,_.d_))==null?void 0:x.url;M={buttonViewModel:q.call(M,{},v,{state:G,iconName:t?"OPEN_IN_NEW":""})}}else M=void 0;return M}},{buttonViewModel:function(W){return _.n(_.P2,{data:W.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:C})}})))},"Rf");
hJ_.idomCompat=!0;_.SX(hJ_,"yt-report-form-bottom-bar-view-model",{props:{data:_.M6}});var ELI=_.rf(function(u){var K=u.nextStep;return _.n("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.n("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.n(_.VB,{icon:function(){return K().iconName||""}})),_.n("div",null,_.n(_.qC,{text:function(){return K().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Sf"),L5_=_.rf(function(u){var K=u.data;
var l,D=(l=_.GB().resolve(_.vv(_.H1)))==null?void 0:l(),d=_.ie(_.$5,function(){return K().flowStateKey||""});
return _.n("yt-report-form-confirmation-page-view-model",{class:function(){var C;return((C=_.b(d(),JI))==null?void 0:C.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.n("div",{class:function(){var C;
return((C=_.b(d(),JI))==null?void 0:C.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.n(_.n4,{data:function(){return D&&K().imageDark?K().imageDark:K().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.n("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.n("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return K().confirmationHeader}),_.n("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.n(_.qC,{text:function(){return K().confirmationText}})),_.n("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.n(_.qC,{text:function(){return K().lawEnforcementText}})),
_.n("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return K().whatToExpectHeader}),_.n(_.r,{cond:function(){return K().nextSteps},
then:function(C){return _.n("div",null,_.n(_.p0,{each:C},function(W){return _.n(ELI,{nextStep:W})}))}}),_.n(_.r,{cond:function(){return K().legalReportText},
then:function(C){return _.n("div",null,_.n(_.qC,{text:C,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Tf");
L5_.idomCompat=!0;_.SX(L5_,"yt-report-form-confirmation-page-view-model",{props:{data:_.M6}});var um_=_.rf(function(u){var K=u.data;var l=function(){var C;return((C=_.b(K().inputBox,Mgi))==null?void 0:C.maxChars)||500},D=function(){return K().flowStateKey||""},d=_.ie(_.$5,D);
u=_.wR(function(C){C=Object.assign({},d(),{flowFormState:{isValid:C.length<=l()},abuseReportFlowState:{userComments:C,navigationEnabled:!(C.length>l()),isReportFormDirty:!0}});_.Hb().dispatch(_.EL("flowStateEntity",D(),C))},150);
_.ZY(function(){var C=Object.assign({},d(),{flowFormState:{isValid:!0}});_.Hb().dispatch(_.EL("flowStateEntity",D(),C))});
return _.n("yt-report-form-details-page-view-model",{class:function(){var C;return((C=_.b(d(),JI))==null?void 0:C.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.n("h1",{class:function(){var C;
return((C=_.b(d(),JI))==null?void 0:C.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return K().detailsPageHeader}),_.n("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.n(_.qC,{text:function(){return K().bodyText}})),_.n("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.n(WD,{label:function(){var C;
return((C=_.b(K().inputBox,Mgi))==null?void 0:C.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var C;return{errorMessage:((C=_.b(K().inputBox,Mgi))==null?void 0:C.maxCharsExceededErrorMessage)||"",maxChars:l()}},
onInput:u})))},"Uf");
um_.idomCompat=!0;_.SX(um_,"yt-report-form-details-page-view-model",{props:{data:_.M6}});var K0H=_.rf(function(u){var K=u.data;var l=u.selectedKey;var D=u.onSelected;var d=u.groupName;var C=function(){return K().text},W=function(){return K().attributedText},M=function(){return K().subtext},q=function(){return K().attributedSubtext},v=_.n("div",{class:"ytRadioButtonItemViewModelLabel"},_.n(_.r,{cond:C,
then:function(){return _.n("div",null,C)}}),_.n(_.r,{cond:W,
then:function(){return _.n(_.qC,{text:W})}}),_.n(_.r,{cond:M,
then:function(){return _.n("div",{class:"ytRadioButtonItemViewModelSubText"},M)}}),_.n(_.r,{cond:q,
then:function(){return _.n("div",{class:"ytRadioButtonItemViewModelSubText"},_.n(_.qC,{text:q}))}})),G=function(){if(W()){var x;
return(x=W())==null?void 0:x.content}return C()},t=function(){if(q()){var x;
return(x=q())==null?void 0:x.content}return M()};
u={};return _.n("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.n(_.XU,{name:d,checked:function(){return!(l==null||!l()||K().key!==(l==null?void 0:l()))},
onChange:function(x){D==null||D(x.target,K(),d==null?void 0:d())},
labelRenderable:function(){return v},
ariaLabel:function(){return t()?G()+", "+t():G()},
className:_.JB((u.ytRadioButtonItemViewModelSubTitle=function(){return!!K().subtext},u))}))},"Vf");_.ls_=_.rf(function(u){var K=u.data;var l=u.onSelected;var D=u.selectedKey;var d=u.groupName;var C=function(){return(d==null?void 0:d())||K().key};
return _.n("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost",tabindex:0},_.n("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.n(_.mo,{data:function(){return K().radioButtons}},{radioButtonItemViewModel:function(W){return _.n(K0H,{data:W.data,
onSelected:l,selectedKey:D,groupName:C})}})))},"Wf");var Dm2=_.rf(function(u){var K=u.data;var l=_.W4("div"),D=function(){return K().flowStateKey||""},d=_.ie(_.$5,D),C=function(){return _.b(d(),JI)};
_.gp(function(){var W,M;if(((W=C())==null?0:W.isReportFormDirty)&&((M=C())==null||!M.navigationEnabled)&&_.S("enable_gff_accessibility_fix")){var q;if(((q=C())==null?void 0:q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var v;(v=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||v.scrollIntoView()}else{var G;(G=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||G.scrollIntoView()}}},"VvP2Ne");
return _.n("yt-report-form-reason-select-page-view-model",{class:function(){var W;return((W=C())==null?void 0:W.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.n("h1",{class:function(){var W;
return((W=C())==null?void 0:W.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return K().pageHeader}),_.n("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.n(_.qC,{text:function(){return K().bodyText}})),_.n("div",{class:function(){var W;
return((W=C())==null?void 0:W.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.n(_.r,{cond:function(){var W,M;
return((W=C())==null?void 0:W.isReportFormDirty)&&!((M=C())==null?0:M.navigationEnabled)&&_.S("enable_gff_accessibility_fix")},
then:function(){return _.n("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:l},_.n(_.VB,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.n("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return K().emptyReasonSelectErrorMessage}))}}),_.n(_.ls_,{data:function(){return _.b(K().radioButtonGroup,_.x7_)},
onSelected:function(W,M){W=Object.assign({},d(),{abuseReportFlowState:Object.assign({},C(),{reasonKey:M.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:M.command})});_.ME(_.TT("flowStateEntity",D(),W))},
selectedKey:function(){var W;return(W=C())==null?void 0:W.reasonKey},
groupName:"report-form-reason-select-page"})))},"Xf");
Dm2.idomCompat=!0;_.SX(Dm2,"yt-report-form-reason-select-page-view-model",{props:{data:_.M6}});var dmI=_.rf(function(u){var K=u.data;var l,D=(l=_.GB().resolve(_.vv(_.H1)))==null?void 0:l();return _.n("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.n("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.n(_.n4,{data:function(){return D&&K().imageDark?K().imageDark:K().image},
alt:""})),_.n("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.n("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return K().header}),_.n(_.qC,{text:function(){return K().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Yf");
dmI.idomCompat=!0;_.SX(dmI,"yt-report-form-sign-in-page-view-model",{props:{data:_.M6}});_.SX(_.rf(function(u){var K=u.data;var l=function(){return K().titleSuperscript},D=function(){return K().answersShelf},d=function(){return K().videoShelf},C=function(){var f;
return(f=K().textInputPlaceholder)==null?void 0:f.content},W=function(){return K().showOpenTextInput&&!_.S("web_hide_explore_hub_until_user_navigates_back_to_home")},M=function(){var f;
return(f=K().textInputValue)==null?void 0:f.content},q=_.W4("input");
_.N_(function(){W()&&M()&&q.value&&(q.value.value=M())});
var v=function(f){f=f.target.value.trim();var B=K().onUpdateText;B&&_.IT(B,{form:{userQuery:f}});K().userQuery=f},G=_.wR(function(f){v(f)},150),t=_.p4(function(f){G(f);
return!1}),x=_.p4(function(f){f.key==="Enter"&&(v(f),(f=K().onNextStepCommand)&&_.IT(f,{forceClickLogging:!0}));
return!1}),O=_.o9("yt-talk-to-recs-view-model"),a=function(){if(_.S("web_hide_explore_hub_until_user_navigates_back_to_home")){var f,B,p;
(p=(B=(f=O.value)==null?void 0:f.closest("ytd-flow-step-renderer"))==null?void 0:B.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||p.click()}};
return _.n("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:O},_.n("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.n(_.mo,{data:function(){return K().topCornerButton}},{buttonViewModel:_.P2})),_.n("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.n("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.n(_.qC,{text:function(){return K().title}}),_.n(_.r,{cond:l,
then:function(){return _.n("sup",{class:"ytwTalkToRecsSuperScript"},_.n(_.qC,{text:l}))}})),_.n("div",{class:"ytwTalkToRecsSubtitle"},_.n(_.qC,{text:function(){return K().subtitle}})),_.n("div",{class:"ytwTalkToRecsResultsShelf"},_.n(_.r,{cond:D,
then:function(){return _.n(_.mo,{data:D},{chipsShelfViewModel:function(f){return _.n("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.n(_.OEN,{data:f.data,callback:a,enableSingleChipSelection:!0}))}})}}),_.n(_.r,{cond:d,
then:function(){return _.n(_.mo,{data:d},{horizontalShelfViewModel:function(f){return _.n("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.n(_.El,{data:f.data}))}})}})),_.n(_.r,{cond:W,
then:function(){return _.n("div",{class:"ytwTalkToRecsUserInputBox"},_.n("input",{el:q,type:"text",class:"ytwTalkToRecsTextInput",placeholder:C,value:function(){return K().userQuery},
"on:input":t,"on:keyup":x,maxlength:200}))}})))},"Zf"),"yt-talk-to-recs-view-model",{props:{data:_.M6}});var x_2={sources:[{clientResource:{imageName:"CHECK"}}]};_.CPo=_.rf(function(u){var K=_.o9("div");u=_.$U(u,{error:void 0});var l=u.data,D=u.error,d=u.onSelected;u=_.y(_.wY(function(){return O0E(l())}));
var C=u.next().value,W=u.next().value;e9_(l,function(x){W(x);var O,a,f=b0G((O=l().options)==null?void 0:(a=O[x])==null?void 0:a.value,l().type);d==null||d(f);K.value.focus()});
u=_.p4(function(){if(!l().disabled){var x=l(),O=C(),a=K.value;x.options&&(x=S3B(x.options,O,x.label),_.GB().resolve(_.NR).openSheet({viewModel:x},a))}});
var M=_.fZh(),q=function(){return!!D()},v=function(){return!!l().disabled},G={},t={};
return _.n("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.n("div",{class:_.JB("ytDropdownViewModelDropdownContainer",(G.ytDropdownViewModelDropdownContainerErrorBorder=q,G.ytDropdownViewModelDropdownContainerDisabled=v,G)),"on:click":u,el:K,role:"combobox",tabindex:0,"on:keydown":M,"aria-invalid":q,"aria-disabled":v,"aria-describedby":function(){return q()?"dropdown-view-model-error":void 0}},_.n("div",{class:"ytDropdownViewModelText"},c8_(l,q,C),aYG(l,C)),_.n("div",{class:_.JB("ytDropdownViewModelChevronDown",
(t.ytDropdownViewModelChevronDownDisabled=v,t))},_.n(_.VB,{icon:"CHEVRON_DOWN"}))),z9I(l,D))},"$f");_.SX(_.rf(function(u){var K=u.data;var l=function(d){var C=U_G(K());C.videoMetadata||(C.videoMetadata={});C.videoMetadata.sponsorshipsMetadata||(C.videoMetadata.sponsorshipsMetadata={});C.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(d)},D=function(d){var C=U_G(K());
C.scheduledRedirectMetadata||(C.scheduledRedirectMetadata={});C.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(d)};
return _.n("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.n("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.n("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.n(_.qC,{text:function(){return K().title}}),_.n(_.VB,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.n(_.qC,{text:function(){return K().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.n(_.mo,{data:function(){return K().tierChoices}},{dropdownViewModel:function(d){return _.n("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.n(_.CPo,{data:d.data,
onSelected:l}))}}),_.n(_.mo,{data:function(){return K().startTimeChoices}},{dropdownViewModel:function(d){return _.n("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.n(_.CPo,{data:d.data,
onSelected:D}))}}),_.n(_.qC,{text:function(){return K().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.n("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.n(_.mo,{data:function(){return K().scheduleButton}},{panelFooterViewModel:_.oV})))},"ag"),"ytfz-schedule-fanzone-view-model",{props:{data:_.M6}});_.SX(_.rf(function(u){var K=u.data;u=u.className===void 0?"":u.className;var l=_.ie(GdE,function(){return K().flowStateEntityKey||""}),D={};
D=_.JB("ytFlowBottomBarViewModelFlowBottomBarButtons",(D.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return K().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||K().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},D));
var d={},C=_.JB("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",D,(d.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return K().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},d.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return K().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},d));
d={};var W=_.JB("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",D,(d.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return K().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},d.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return K().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},d));
D={};D=_.JB("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(D.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return K().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},D.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return K().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},D.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return K().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
D));
u=_.JB("ytFlowBottomBarViewModelHost",u);return _.n("yt-flow-bottom-bar-view-model",{class:u},_.n(_.r,{cond:function(){var M;return(M=K())==null?void 0:M.textSection},
then:function(M){return _.n("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.n(_.qC,{text:M}))}}),_.n("div",{class:D},_.n(_.mo,{data:function(){return K().secondaryButton}},{buttonViewModel:function(M){return _.n(_.P2,{data:M.data,
className:W})}}),_.n(_.mo,{data:function(){return K().primaryButton}},{buttonViewModel:function(M){return _.n(_.P2,{data:M.data,
className:C,buttonOverrides:function(){var q;return{disabled:!((q=l())==null||!q.primaryButtonDisabled)}}})}})))},"bg"),"yt-flow-bottom-bar-view-model",{props:{data:_.M6,
className:_.xo}});var IsH="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),HD=function(){var u=_.Q.apply(this,arguments)||this;u.enableScrollingFix=!0;u.bottomBar=!1;u.hideBottomBar=!1;u.fitContent=!1;return u};
_.c(HD,_.Q);_.I=HD.prototype;_.I.ready=function(){_.S("enable_pdp_icon_prefetch")&&_.Wgp(_.GB().resolve(_.QA),0,IsH)};
_.I.focus=function(u){this.topBar?_.Wu(this.topBar,u):this.paperDialog.focus(u)};
_.I.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$18882_scroller&&(this.JSC$18882_scroller.dialogElement=this.paperDialog,this.JSC$18882_scroller.attached&&typeof this.JSC$18882_scroller.attached==="function"&&this.JSC$18882_scroller.attached())};
_.I.onDataChanged=function(){var u;this.fitContent=!((u=this.data)==null||!u.fitContent);var K;this.bottomBar=!((K=this.data)==null||!K.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.I.onProgressChanged=function(){var u,K,l=((K=(u=this.data)==null?void 0:u.progress)!=null?K:0)*100;this.progressElement.style.width=l+"%"};
_.I.isProgressHidden=function(){var u;return!((u=this.data)==null?0:u.progress)};
_.I.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(u){return _.S("enable_wiz_next_lp2_msof")&&u&&!u.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.MN.Object.defineProperties(HD.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var u;return _.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.b((u=this.data)==null?void 0:u.content,vni)}}});
HD.prototype.onProgressChanged=HD.prototype.onProgressChanged;HD.prototype.onDataChanged=HD.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],HD.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],HD.prototype,"enableScrollingFix",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],HD.prototype,"bottomBar",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],HD.prototype,"hideBottomBar",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],HD.prototype,"containsExploreHub",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],HD.prototype,"fitContent",void 0);_.g([_.BF("#progress"),_.N("design:type",HTMLElement)],HD.prototype,"progressElement",void 0);
_.g([_.BF("#scroller"),_.N("design:type",Object)],HD.prototype,"JSC$18882_scroller",void 0);_.g([_.BF("ytd-flow-top-bar-renderer"),_.N("design:type",HTMLElement)],HD.prototype,"topBar",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HD.prototype,"onDataChanged",null);_.g([_.JU("data.progress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HD.prototype,"onProgressChanged",null);
_.g([_.T({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],HD);
_.F(HD,"ytd-flow-step-renderer",function(){if(Vgp!==void 0)return Vgp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Vgp=u},{mode:1});var yV_=function(u){this.resolveCommand=u;this.steps={}},sL6=function(u,K){K=_.y(K||[]);
for(var l=K.next();!l.done;l=K.next()){l=l.value;var D=Object.values(l)[0],d=void 0;if((d=D)==null?0:d.stepId)u.steps[D.stepId]=l}},HpE=function(u,K){var l,D,d,C,W;
return _.H(function(M){if((l=u.state)==null||!l.currentStepId)return M.return(void 0);D=oEE(u);if(!D)return M.return(W0B(u));if(d=_.b(D,_.r9_)){var q;((q=d.screenLoggingData)==null?0:q.screenVeType)&&_.ev(_.iT(),d.screenLoggingData.screenVeType);((C=d)==null?0:C.onStepStartCommand)&&u.resolveCommand((W=d)==null?void 0:W.onStepStartCommand,{})}if(d&&K){q=d;var v,G,t,x;((v=K.flowLoggingData)==null?0:v.eventNamespace)&&((G=q.flowEventData)==null?0:G.eventType)&&((t=q.flowEventData)==null?0:t.eventMetadata)&&
((x=K.flowLoggingData)==null?0:x.flowType)&&(v=_.R7(K.flowLoggingData.eventNamespace,q.flowEventData.eventType,q.flowEventData.eventMetadata),_.Ud(_.fc(),v,K.flowLoggingData.flowType));K.steps&&!K.steps.includes(D)&&K.steps.push(D)}return M.return(D)})};
yV_.prototype.back=function(){var u;(u=this.state)!=null&&u.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
yV_.prototype.handleUpdateFlowCommand=function(u){u.steps&&sL6(this,u.steps);u.entityUpdateCommand&&this.resolveCommand(u.entityUpdateCommand,{});u.flowContinuationCommand&&(u=u.flowContinuationCommand)&&(this.getFlowContinuationCommand=u);this.awaitFlowContinuation&&(this.awaitFlowContinuation(oEE(this)),this.awaitFlowContinuation=void 0)};
yV_.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var W0B=function(u){return _.H(function(K){return u.getFlowContinuationCommand?K.return(new Promise(function(l){u.awaitFlowContinuation=l;u.getFlowContinuationCommand&&u.resolveCommand(u.getFlowContinuationCommand,{flow_state:u.state})})):K.return(Promise.resolve(void 0))})},oEE=function(u){var K;
if((K=u.state)!=null&&K.currentStepId)return u.steps[u.state.currentStepId]};var M8=function(){var u=_.Q.apply(this,arguments)||this;u.flowState=new yV_(function(K,l){l=l===void 0?{}:l;_.Pb.instance.resolveCommand(K,{form:{form:l,element:u.hostElement}})});
u.initialState=!0;u.isLoading=!1;u.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return u};
_.c(M8,_.Q);_.I=M8.prototype;_.I.onPopupClosed=function(u){u&&this.hostElement!==u.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.I.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.I.focus=function(u){var K=this;_.Cr(function(){var l=_.bi(K.hostElement).querySelector("ytd-flow-step-renderer");(l==null?0:l.topBar)?l.focus(u):K.topBar&&_.Wu(K.topBar,u)},1)};
_.I.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.I.computeTopBarHidden=function(u){var K;return!((K=_.b(u,_.r9_))==null||!K.topBarOverride)};
_.I.dataChanged=function(){var u=this,K,l;return _.H(function(D){if(D.nextAddress==1){((K=u.data)==null?0:K.steps)&&sL6(u.flowState,u.data.steps);if((l=u.data)==null?0:l.flowContinuationCommand){var d=u.flowState,C=u.data.flowContinuationCommand;C&&(d.getFlowContinuationCommand=C)}return D.yield(HpE(u.flowState,u.data),2)}u.currentFlowStep=D.yieldResult;_.TG(D)})};
_.I.flowChanged=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1){if(!u.flow)return l.return();u.flowState.state=u.flow;u.isLoading=!0;return l.yield(HpE(u.flowState,u.data),2)}K=l.yieldResult;if(!K||u.flow.isLoading)return l.return();u.currentFlowStep=K;u.initialState=!1;u.isLoading=!1;u.autofocusAndRefit();_.TG(l)})};
_.I.autofocusAndRefit=function(){var u=this,K=_.GB().resolve(_.vv(_.zF)),l=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),D=document.querySelector("yt-report-form-confirmation-page-view-model"),d=document.querySelector("yt-report-form-details-page-view-model"),C=document.querySelector("yt-report-form-reason-select-page-view-model"),W=document.querySelector("yt-contributor-zero-state-view-model"),
M=document.querySelector("yt-structured-context-note-view-model"),q=document.querySelector("yt-note-view-model");(!l&&K&&K.isKeyBoardInUse()||D||!l&&d||!l&&C||W||M||q)&&_.Hu(this.hostElement);_.W_(this,function(){_.xs(u.hostElement,"yt-refit")})};
_.I.handleUpdateFlowCommand=function(u){this.data&&(u=_.b(u,nnB),u.targetId===this.data.targetId&&(u.flowContinuationCommand&&(this.data.flowContinuationCommand=u.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(u),this.autofocusAndRefit()))};
_.I.handleFlowNextStepCommand=function(u){this.data&&this.flow&&this.flow.key&&(u=_.b(u,qPp),u.targetId===this.data.targetId&&(u=u.stepId||"",this.ytdReduxBehavior.dispatch(_.EL("flowStateEntity",this.flow.key,{currentStepId:u,stepIdStack:(this.flow.stepIdStack||[]).concat(u)}))))};
_.I.handleFlowPrevStepCommand=function(u){if(this.data&&this.flow&&this.flow.key&&(u=_.b(u,$7p),u.targetId===this.data.targetId)){var K=[].concat(_.Am(this.flow.stepIdStack||[]));K.length>1?(K.pop(),this.ytdReduxBehavior.dispatch(_.EL("flowStateEntity",this.flow.key,{currentStepId:K[K.length-1],stepIdStack:K}))):u.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(u.onFirstStepCommand)}};
_.I.handleYpcCancelRecurrenceCommand=function(u){if(this.data&&this.flow&&this.flow.key&&(u=_.b(u,SPi),u.targetId===this.data.targetId&&u.endpointCommand)){var K=_.b(this.flow,bTo);K&&_.b(u.endpointCommand,_.flm)&&(_.b(u.endpointCommand,_.flm).feedbackData=K.surveyFeedback);this.ytComponentBehavior.resolveCommand(u.endpointCommand)}};
_.I.handlePartialUpdateFlowStateEntity=function(u){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.EL("flowStateEntity",this.flow.key,u,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
M8.prototype.flowChanged=M8.prototype.flowChanged;M8.prototype.dataChanged=M8.prototype.dataChanged;M8.prototype.onPopupClosed=M8.prototype.onPopupClosed;_.g([_.e(_.Ll),_.N("design:type",Object)],M8.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],M8.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],M8.prototype,"ytComponentBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],M8.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],M8.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],M8.prototype,"initialState",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],M8.prototype,"isLoading",void 0);_.g([_.U(),_.N("design:type",Object)],M8.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Object)],M8.prototype,"currentFlowStep",void 0);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],M8.prototype,"onPopupClosed",null);_.g([_.U({selectorArgs:["data.flowStateEntityKey"],selector:GdE}),_.N("design:type",Object)],M8.prototype,"flow",void 0);_.g([_.BF("ytd-flow-top-bar-renderer"),_.N("design:type",HTMLElement)],M8.prototype,"topBar",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],M8.prototype,"dataChanged",null);_.g([_.wn("flow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],M8.prototype,"flowChanged",null);_.g([_.T({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],M8);
_.MHE=_.at()(M8,"ytd-flow-root-renderer",function(){if(Fg6!==void 0)return Fg6;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Fg6=u},{mode:_.zW("kevlar_poly_si_batch_j025")?1:2});var q5B;var Qj=null;_.SX(_.rf(function(u){return _.n("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.n("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.n(_.qC,{text:function(){return u.data().text}}),_.n("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"cg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.M6}});var $mB=_.rf(function(u){var K=u.playerControlsProps;var l=u.isShortsPage;return _.n("yt-bigboard",null,_.n(_.r,{cond:function(){return K().isDragging},
then:function(){return _.n("div",{class:"ytBigboardStoryboardHost"},_.n(_.XZG,{progressBarProps:K,isShortsPage:l}))}}))},"dg");
$mB.idomCompat=!0;_.q8={ACCOUNT_LABEL:PG("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:PG("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:PG("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:PG("AD_BADGE_HINT"),AD_BADGE_TEXT:PG("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:PG("ALL_CHANNELS_LABEL"),AMBIENT_MODE:PG("AMBIENT_MODE"),AMBIENT_MODE_OFF:PG("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:PG("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:PG("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:PG("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:PG("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:PG("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:PG("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:PG("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:PG("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:PG("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:PG("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:PG("AUTO_ZOOM","Auto zoom"),BACK:PG("BACK"),CANCEL:PG("CANCEL"),CHANNEL_SWITCHER_LABEL:PG("CHANNEL_SWITCHER_LABEL"),CLOSE:PG("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:PG("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:PG("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:PG("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:PG("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:PG("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:PG("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:PG("COMMENT_MODAL_CONTENT"),CONFIRM_OK:PG("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:PG("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:PG("COPIED_TO_CLIPBOARD"),COPY:PG("COPY"),COPY_DEBUG_INFO:PG("COPY_DEBUG_INFO"),COPY_EMBED_CODE:PG("COPY_EMBED_CODE"),
COPY_LINK_LABEL:PG("COPY_LINK_LABEL"),COPY_VIDEO_URL:PG("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:PG("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:PG("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:PG("DELETE_FROM_DOWNLOADS"),DIALOG:PG("DIALOG"),DONE:PG("DONE"),DOWNLOAD:PG("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:PG("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:PG("FLAG_CONFIRM"),FLAG_CONTENT:PG("FLAG_CONTENT"),FLAG_LABEL:PG("FLAG_LABEL"),FLAG_TITLE:PG("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:PG("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:PG("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:PG("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:PG("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:PG("HIDE_SEARCH_FILTERS_LABEL"),HOME:PG("HOME","Home"),INVALID_RESPONSE_RECEIVED:PG("INVALID_RESPONSE_RECEIVED"),LIBRARY:PG("LIBRARY","Library"),LISTENING:PG("LISTENING"),LOADING:PG("LOADING"),LONG_PRESS_MIC_TO_SPEAK:PG("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:PG("LOOP"),MENU_DESKTOP:PG("MENU_DESKTOP"),
MENU_EXIT:PG("MENU_EXIT"),MENU_FEEDBACK:PG("MENU_FEEDBACK"),MENU_HELP:PG("MENU_HELP"),MENU_IMPRESSUM:PG("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:PG("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:PG("MENU_SETTINGS"),MENU_SIGN_IN:PG("MENU_SIGN_IN"),MENU_TITLE:PG("MENU_TITLE"),MENU_YOUR_DATA:PG("MENU_YOUR_DATA"),MORE_INFO:PG("MORE_INFO"),MORE_OPTIONS:PG("MORE_OPTIONS"),MUTE_VOLUME:PG("MUTE_VOLUME"),NEW_PLAYLIST:PG("NEW_PLAYLIST"),NEXT_VIDEO:PG("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:PG("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:PG("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:PG("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:PG("NOT_FOUND_TITLE"),NO_DOWNLOADS:PG("NO_DOWNLOADS"),NO_MIC_INPUT:PG("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:PG("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:PG("OOPS_MESSAGE"),OPEN_APP:PG("OPEN_APP"),OPEN_YOUTUBE:PG("OPEN_YOUTUBE"),PAUSE:PG("PAUSE"),PLAY:PG("PLAY"),PLAYER_CAPTION:PG("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:PG("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:PG("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:PG("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:PG("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:PG("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:PG("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:PG("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:PG("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:PG("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:PG("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:PG("PLAYER_MINIMIZE"),PLAYER_NEXT:PG("PLAYER_NEXT"),PLAYER_PAUSE:PG("PLAYER_PAUSE"),PLAYER_PLAY:PG("PLAYER_PLAY"),
PLAYER_PREVIOUS:PG("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:PG("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:PG("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:PG("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:PG("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:PG("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:PG("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:PG("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:PG("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:PG("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:PG("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:PG("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:PG("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:PG("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:PG("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:PG("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:PG("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:PG("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:PG("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:PG("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:PG("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:PG("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:PG("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:PG("PLAY_ALL"),PLEASE_FIX_ERRORS:PG("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:PG("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:PG("PREVIOUS_VIDEO"),PRIVACY_POLICY:PG("PRIVACY_POLICY"),RELOAD:PG("RELOAD"),REQUIRED_LABEL:PG("REQUIRED_LABEL"),SAVE_PLAYLIST:PG("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:PG("SCRUB_SLIDE_USER_EDU"),SEARCH:PG("SEARCH","Search"),
SEARCH_APPEND_LABEL:PG("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:PG("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:PG("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:PG("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:PG("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:PG("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:PG("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:PG("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:PG("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:PG("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:PG("SEEK_SLIDER"),SETTINGS_LABEL:PG("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:PG("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:PG("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:PG("SHOW_LESS"),SHOW_MORE:PG("SHOW_MORE"),SHOW_PLAYER_CONTROLS:PG("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:PG("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:PG("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:PG("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:PG("SIGN_IN_ON_WEB"),STABLE_VOLUME:PG("STABLE_VOLUME"),STABLE_VOLUME_OFF:PG("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:PG("STABLE_VOLUME_ON"),STATS_FOR_NERDS:PG("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:PG("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:PG("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:PG("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:PG("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:PG("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:PG("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:PG("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:PG("TIMESTAMP_SECONDS"),TOGGLE_OFF:PG("TOGGLE_OFF"),TOGGLE_ON:PG("TOGGLE_ON"),TRENDING:PG("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:PG("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:PG("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:PG("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:PG("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:PG("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:PG("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:PG("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:PG("VIDEO_LINK_LABEL")};var nEo=_.rf(function(u){var K=u.playerApi;u=_.o9("button",function(D){_.I_(D,36843)});
var l=PG("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.n("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.n("button",{el:u,class:"ytPlayerControlsJumpForwardButtonButton",title:l,"aria-label":l,"on:click":_.p4(function(){_.yj(36843);K&&K().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.n("span",null,_.n(_.VB,{icon:"FAST_FORWARD"}))))},"eg");var rVo=_.rf(function(u){var K=u.appApi;u=_.o9("button",function(D){_.I_(D,62946)});
var l=PG("OPEN_IN_MINIPLAYER");return _.n("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.n("button",{el:u,class:"ytMiniplayerButtonButton",title:l,"aria-label":l,"on:click":_.p4(function(){_.yj(62946);var D,d;(d=(D=K()).openInMiniplayer)==null||d.call(D);return!1})},_.n(_.VB,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"fg");var vEI=_.rf(function(u){var K=u.playerApi;u=_.o9("button",function(C){_.I_(C,142812)});
var l=_.y(_.On(!1,void 0,"I3VCyb")),D=l.next().value,d=l.next().value;l=function(){return PG("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(D()?1:2)})};
return _.n("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.n("button",{el:u,class:"ytPlaybackSpeedButtonButton",title:l,"aria-label":l,"on:click":_.p4(function(){_.yj(142812);if(K){var C=K(),W=D();C.setPlaybackRate(W?1:2);d(!D())}return!1})},_.n("span",null,_.n(_.VB,{icon:function(){return D()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"gg");var GrB=_.rf(function(u){var K=u.title;var l=u.ariaLabel;var D=u.icon;var d=u.command;var C=u.veType;u=_.o9("button",function(W){C&&_.I_(W,C())});
return _.n("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.n("button",{el:u,class:"ytdThumbnailOverlayButtonButton",title:K,"aria-label":l,"on:click":_.p4(function(){C&&_.yj(C());d&&_.GB().resolve(_.t9).resolveCommand(d())})},_.n(_.VB,{icon:D})))},"hg");var Ob="";var tHI=_.rf(function(u){var K=u.playerControlsProps,l=u.onClickFn;u=_.RZ(function(){var C=K(),W=-1;C.captionsAvailable&&(W=C.captionsEnabled?1:0);return W},void 0,"WecR8e");
var D=_.RZ(function(){var C=K();return C.captionsAvailable?_.QQ(C.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.QQ("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),d=_.RZ(function(){var C=K();
C=C.captionsAvailable?C.captionsEnabled:void 0;return C},void 0,"Q17ly");
return _.n("yt-closed-captions-toggle-button",null,_.n(_.VbI,{captionIconType:u,ariaLabel:D,ariaPressed:d,onClick:function(C){var W=K();if(W.captionsAvailable){var M=W.playerApi;if(M){var q=W.playerApi;if(q){var v=Ob;if(v){q=q.getOption("captions","track");var G;Ob=(G=q?q.displayName:null)!=null?G:v}else _.Cx(q)?(v=_.Uvy(q),Ob=v.length?(G=xo_(v))?G.displayName:v[0].displayName:""):Ob=""}SnV(M);_.S("mweb_disable_set_state_captions_killswitch")&&W.setState({captionsEnabled:!W.captionsEnabled})}}var t,
x;(x=(t=W.appApi).showCaptionsToggleToast)==null||x.call(t,W);l==null||l(C)},
isOverlay:!0}))},"ig");var xmp=_.rf(function(u){var K=u.data;return _.n("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.n(_.LD,{data:function(){return{type:16,text:_.Etn(K().label)}}}))},"jg");var S5p=_.rf(function(u){var K=_.JB("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return u.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return u.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return u.size()==="small"?u.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
u.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.n("animated-seek-arrows",{class:_.JB("ytPlayerControlsAnimatedSeekArrowsHost")},_.n("span",{class:K}),_.n("span",{class:K}),_.n("span",{class:K}))},"kg");
S5p.idomCompat=!0;var bpi=_.rf(function(){var u=_.QQ("PLAYER_SECONDS",{seconds_placeholder:"30"}),K=_.y(_.On(!1,void 0,"Yj8msb")),l=K.next().value,D=K.next().value,d=_.y(_.On(!1,void 0,"r9Z50e"));K=d.next().value;var C=d.next().value;d={};var W=_.JB("jumpForwardOverlayOverlay",(d.jumpForwardOverlayOverlayHidden=K,d));_.ZY(function(){var M=null,q=null,v=function(){M!==null&&_.k5().cancelJob(M);q!==null&&_.k5().cancelJob(q);C(!0);D(!0);_.zH(_.k5(),function(){C(!1)});
M=_.zH(_.k5(),function(){C(!0);q=_.zH(_.k5(),function(){D(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",v);_.No(function(){window.removeEventListener("jump-forward-clicked",v)})});
return _.n("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.n(_.r,{cond:l,then:function(){return _.n("div",{class:W},_.n(S5p,{direction:1,size:"large"}),_.n("div",null,u))}}))},"lg");var Opp=_.q8.MUTE_VOLUME,cVH=_.q8.UNMUTE_VOLUME,asE=_.rf(function(u){var K=u.muteIconType;var l=u.onClick;var D=u.useOutlineIcon;var d=u.useDelhiIcons;u=_.o9("button",function(M){_.I_(M,28662)});
var C=function(){var M=K(),q=D==null?void 0:D(),v=d==null?void 0:d(),G="",t="";switch(M){case -1:case 0:G=q?"VOLUME_OFF":v?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";t=cVH;break;case 1:G=q?"VOLUME_UP_OUTLINE":v?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";t=Opp;break;case 2:G=q?"VOLUME_DOWN_OUTLINE":v?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";t=Opp;break;default:_.o2(M)}return{iconName:G,ariaLabel:t}},W=function(){return C().ariaLabel};
return _.n("ytm-mute-button",{class:"ytmMuteButtonHost"},_.n("button",{el:u,class:"ytmMuteButtonButton",title:W,"aria-label":W,"on:click":_.p4(function(M){_.yj(28662);l==null||l(M);return!1})},_.n("span",null,_.n(_.VB,{icon:function(){return C().iconName}}))))},"mg");var zaE=_.rf(function(u){var K=u.volumeProps;var l=u.onClickFn;var D=u.useOutlineIcon;var d=u.useDelhiIcons;return _.n("yt-mute-toggle-button",null,_.n(asE,{muteIconType:function(){var C=K();return C.volumeMuted||C.volume===0?0:C.volume>50?1:2},
onClick:function(C){var W=K().playerApi;W&&(W.isMuted()?W.unMute():W.mute(!1));l==null||l(C)},
useOutlineIcon:function(){return!(D==null||!D())},
useDelhiIcons:function(){return!(d==null||!d())}}))},"ng");
zaE.idomCompat=!0;var eak=_.rf(function(u){var K=u.data;var l=_.o9("ytm-paid-content-overlay-renderer");return _.n("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:l,"on:animationend":_.p4(function(){l.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.n(_.I5,{command:function(){return K().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.n(_.r,{cond:function(){var D;return(D=K().icon)==null?void 0:D.iconType},
then:function(){return _.n("span",null,_.n(_.VB,{icon:function(){var D;return(D=K().icon)==null?void 0:D.iconType}}))}}),_.n("div",{class:"ytmPaidContentOverlayText"},_.n(_.qC,{text:function(){return K().text}})),_.n(_.r,{cond:function(){return K().navigationEndpoint},
then:function(){return _.n(_.VB,{icon:"CHEVRON_RIGHT"})}})))},"og");
eak.idomCompat=!0;var k1E=[].concat(_.Am([{register:function(u){var K=KgG(u),l;(l=u().playerApi)==null||l.addEventListener("onVolumeChange",K);return function(){}}},
{register:function(u){var K=l_E(u);u=u().playerApi;u==null||u.addEventListener("captionschanged",K);u==null||u.addEventListener("captionssettingschanged",K);u==null||u.addEventListener("onCaptionsTrackListChanged",K);return function(){}}},
{register:function(u){if(!_.S("mweb_screenreader_accessible_player"))return function(){};
var K=D7p(u),l=document.querySelector("video");l==null||l.addEventListener("touchend",K);return function(){l==null||l.removeEventListener("touchend",K)}}},
{register:function(u){if(!_.S("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var K=D7p(u),l=document.querySelector("video");l==null||l.addEventListener("focus",K);return function(){l==null||l.removeEventListener("focus",K)}}}]),[{register:function(u){var K=h9p(u),l;
(l=u().playerApi)==null||l.addEventListener("onStateChange",K);return function(){}}},
{register:function(u){var K=EDV(u),l;(l=u().playerApi)==null||l.addEventListener("onPlaybackRateChange",K);return function(){}}},
{register:function(u){var K=LT6(u),l;(l=u().playerApi)==null||l.addEventListener("onVideoDataChange",K);return function(){}}},
{register:function(u){var K=u0_(u),l,D;(l=u())==null||(D=l.playerApi)==null||D.addEventListener("onVideoProgress",K);return function(){}}}]);var Ra_=_.rf(function(u){var K=u.data;var l=function(){return _.QQ("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+K().playbackRate})};
return _.n(_.r,{cond:function(){return K().playbackRate&&K().playbackRate!==1},
then:function(){return _.n("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.n("div",{class:"ytPlaybackRateOverlayOverlay"},_.n(S5p,{direction:1,size:"small"}),_.n("div",{class:"ytPlaybackRateOverlayLabel"},l)))}})},"pg");var UmG=_.rf(function(u){var K=u.data;return _.n("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.n(_.r,{cond:function(){var l,D=(l=K())==null?void 0:l.playerResponse,d;return D==null?void 0:(d=D.paidContentOverlay)==null?void 0:d.paidContentOverlayRenderer},
then:function(l){return _.n(eak,{data:l})}}))},"rg"),fso=_.rf(function(u){var K=u.props;
var l=u.data;var D=u.options;var d=function(){var v,G,t,x;return(v=l())==null?void 0:(G=v.playerResponse)==null?void 0:(t=G.playerConfig)==null?void 0:(x=t.inlinePlaybackConfig)==null?void 0:x.showAudioControls},C=function(){var v,G;
if(d()&&((v=D())==null?void 0:(G=v.additionalButton)==null?void 0:G.button)!==void 0){var t,x,O;v=(t=l())==null?void 0:(x=t.playerApi)==null?void 0:(O=x.getSize())==null?void 0:O.height;if(!(v===void 0||v<180)){var a,f;return(a=D())==null?void 0:(f=a.additionalButton)==null?void 0:f.button}}},W=function(){var v,G;
return(v=D())==null?void 0:(G=v.additionalButton)==null?void 0:G.thumbnailOverlayButtonRenderers},M=function(){var v,G;
return(v=D())==null?void 0:(G=v.additionalButton)==null?void 0:G.thumbnailOverlayButtonViewModels},q=function(){var v=[_.n(zaE,{volumeProps:K}),
_.n(tHI,{playerControlsProps:K})];C()===1&&v.push(_.n(nEo,{playerApi:function(){return K().playerApi}}));
C()===2&&v.push(_.n(rVo,{appApi:function(){return K().appApi}}));
C()===3&&v.push(_.n(vEI,{playerApi:function(){return K().playerApi}}));
var G=W();if(C()===4&&G){G=_.y(G);for(var t=G.next(),x={};!t.done;x={tooltip$jscomp$2:void 0,ariaLabel$jscomp$22:void 0,icon$jscomp$53:void 0,command$jscomp$581:void 0},t=G.next()){t=t.value;x.tooltip$jscomp$2=t.tooltip;var O=void 0,a=void 0;x.ariaLabel$jscomp$22=((O=t.accessibility)==null?void 0:(a=O.accessibilityData)==null?void 0:a.label)||x.tooltip$jscomp$2;O=void 0;x.icon$jscomp$53=(O=t.icon)==null?void 0:O.iconType;x.command$jscomp$581=t.command;x.tooltip$jscomp$2&&x.ariaLabel$jscomp$22&&x.icon$jscomp$53&&
v.push(_.n(GrB,{title:function(f){return function(){return f.tooltip$jscomp$2}}(x),
ariaLabel:function(f){return function(){return f.ariaLabel$jscomp$22}}(x),
icon:function(f){return function(){return f.icon$jscomp$53}}(x),
command:function(f){return function(){return f.command$jscomp$581}}(x)}))}}G=M();
if(C()===4&&G)for(G=_.y(G),t=G.next(),x={};!t.done;x={tooltip$jscomp$3:void 0,ariaLabel$jscomp$23:void 0,icon$jscomp$54:void 0,command$jscomp$582:void 0},t=G.next())t=t.value,x.tooltip$jscomp$3=t.title,x.ariaLabel$jscomp$23=t.accessibilityText||x.tooltip$jscomp$3,x.icon$jscomp$54=t.iconName,x.command$jscomp$582=_.lt(t.onTap),x.tooltip$jscomp$3&&x.ariaLabel$jscomp$23&&x.icon$jscomp$54&&v.push(_.n(GrB,{title:function(f){return function(){return f.tooltip$jscomp$3}}(x),
ariaLabel:function(f){return function(){return f.ariaLabel$jscomp$23}}(x),
icon:function(f){return function(){return f.icon$jscomp$54}}(x),
command:function(f){return function(){return f.command$jscomp$582}}(x)}));
return v};
return _.n(_.r,{cond:d,then:function(){return _.n("div",{class:"ytInlinePlayerControlsTopRightControls"},_.n(_.p0,{each:q},function(v){return _.n("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.n("div",{class:"ytInlinePlayerControlsButtonIcon"},v))}))}})},"sg"),JVo=_.rf(function(u){var K=u.props;
var l=u.data;var D=u.options;u={};u=_.JB("ytInlinePlayerControlsBottomRightControls",(u.ytInlinePlayerControlsBottomRightControlsHidden=function(){var d;return CZI(l(),D())&&((d=D())==null?void 0:d.insetProgressBar)&&(K().isHovering||K().isDragging)},u));
return _.n("div",{class:u},_.n(QLE,{data:l}),_.n(_.r,{cond:function(){var d;return!((d=D())==null?0:d.hideTimeDisplay)},
then:function(){return _.n(PPB,{props:K,data:l})}}))},"tg"),QLE=_.rf(function(u){var K=u.data;
return _.n(_.mo,{data:function(){var l;return VfE((l=K())==null?void 0:l.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:xmp})},"ug"),PPB=_.rf(function(u){var K=u.props;
var l=u.data;return _.n(_.r,{cond:function(){return K().isLive},
then:function(){return _.n(jLV,null)},
else:function(){return _.n(B2V,{props:K,data:l})}})},"vg"),B2V=_.rf(function(u){var K=u.props;
var l=u.data;var D=_.RZ(function(){var d;return Ni_((d=l())==null?void 0:d.thumbnailOverlays)},void 0,"kUmuA");
return _.n("div",{class:_.JB("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.q8.PLAYER_TIME_ELAPSED+" "+_.i2q(K().playedTime)}},_.n(_.LD,{data:function(){var d=_.i2q(K().videoDuration-K().playedTime);
return Object.assign({},{type:16,text:d},D())}}))},"wg"),jLV=_.rf(function(){var u=_.JB("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.n("div",{class:u},_.n(_.LD,{data:{type:17,text:_.q8.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"xg"),puV=_.rf(function(u){var K=u.props;
var l=u.data;var D=u.options;return _.n(_.KpE,{progressBarProps:K,config:function(){var d,C=_.b((d=l())==null?void 0:d.multiMarkersPlayerBar,_.llN),W;d=((W=D())==null?0:W.insetProgressBar)?2:1;var M;W=(M=D())==null?void 0:M.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:d,chapterData:C,isInlinePlayback:!0,doSeekOnClick:W,playheadDotBehavior:W?1:0}}})},"yg");_.SX(_.rf(function(u){var K=u.data;var l=u.appApi;var D=u.options;var d=m_E(K,d7G(l));u={};l={};return _.n("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.n("div",{class:_.JB("ytInlinePlayerControlsDarkenedOverlay",(u.ytInlinePlayerControlsDarkenedOverlayShow=function(){return d().isHovering},u))}),_.n(bpi,null),_.n(Ra_,{data:d}),_.n(UmG,{data:K}),_.n($mB,{playerControlsProps:d,
isShortsPage:!1}),_.n("div",{class:_.JB((l.ytInlinePlayerControlsControlsHidden=function(){return d().isDragging},l))},_.n(fso,{props:d,
data:K,options:D}),_.n(JVo,{props:d,data:K,options:D})),_.n(_.r,{cond:function(){return CZI(K(),D())},
then:function(){return _.n(puV,{props:d,data:K,options:D})}}))},"qg"),"yt-inline-player-controls",{props:{data:_.M6,
appApi:_.xo,options:_.M6}});var $7=function(){var u=_.Q.apply(this,arguments)||this;u.opts=null;u.playerControlsData=null;u.playerControlsAppApi={openInMiniplayer:function(){u.openInMiniplayer()}};
u.playerControlsOptions={};u.noAnimation=!1;u.playbackIntentTriggered=!1;u.positionData=null;u.hidden=!0;u.active=!1;u.playing=!1;u.videoPreviewDataIndex=0;u.JSC$18938_playerPromise=null;u.player=null;u.enableAudioControls=!1;u.hasBeenUnmuted=!1;u.captionsHaveBeenTurnedOff=!1;u.JSC$18938_playerEvents=new Map;u.videoPreviewFetchRequest=null;u.scheduledPreviewEndJobId=null;u.JSC$18938_preventProgressSaveTimer=null;u.watchEndpointStartTimeUpdaterInterval=null;u.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};u.windowOnBlurFn=function(){u.deactivate()};
return u};
_.c($7,_.Q);_.I=$7.prototype;
_.I.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.S("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.I.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$18938_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$18938_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$18938_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$18938_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Ql(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Ql(this,this.onScroll))};
_.I.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Ql(this,this.onScroll))};
_.I.onPageTypeChange=function(){this.deactivate()};
_.I.onWindowResized=function(){this.deactivate()};
_.I.onCaptionsChanged=function(u){u=!!u.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!u);this.setCaptionSize()};
_.I.setCaptionSize=function(){var u;if(this.active&&!this.captionsHaveBeenTurnedOff&&((u=this.player)==null?0:u.getCaptionWindowContainerId())){var K;(K=this.player)==null||K.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.I.currentPageAllowed=function(){return!this.isWatchPage};
_.I.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var u=this.positionData,K=u.initialTopPosition,l=u.initialHorizontalPosition;_.e8(this.hostElement,{"--ytd-video-preview-translate-left":u.finalHorizontalPosition-l+"px","--ytd-video-preview-translate-top":u.finalTopPosition-K+"px","--ytd-video-preview-original-top-position":K+"px","--ytd-video-preview-original-horizontal-position":l+"px",
"--ytd-video-preview-initial-scale":"scale("+u.initialScale+")","--ytd-video-preview-width":u.videoPreviewWidth+"px","--ytd-video-preview-height":u.videoPreviewHeight+"px"});return!0};
_.I.handleOpenVideoPreviewAction=function(u){var K=this,l;return _.H(function(D){if(!K.currentPageAllowed())return D.return(0);K.opts=u;return(l=K.alignVideoPreviewForAnimation(u.thumbnail))?D.return(K.activate()):D.return(0)})};
_.I.onMouseLeave=function(u){this.shouldDeactivateOnMouseLeave(u)&&this.deactivate()};
_.I.onScroll=function(){var u,K;((u=this.opts)==null?0:u.isAutoplay)&&((K=this.opts)==null?0:K.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.I.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.YL.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.I.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.I.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",$7.JSC$18937_DEFAULT_CLICK_LOCATION_BEHAVIOR,$7.JSC$18937_CLICK_LOCATION_ID_MAP)};
_.I.shouldDeactivateOnMouseLeave=function(u){u=u.relatedTarget;if(!u)return!0;var K;return(K=this.opts)!=null&&K.mediaRenderer?!_.O9(this.opts.mediaRenderer).contains(u):!0};
_.I.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.I.onPlaybackStart=function(){var u=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$18938_preventProgressSaveTimer=
_.zH(_.YL,function(){u.resetPreventProgressSaveTimer()},1E4);
var K;if((K=this.opts)==null?0:K.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.zH(_.YL,function(){u.hasMultipleVideoPreviews()?u.startPlaybackForNextVideo():u.deactivate()},this.opts.videoPreviewDurationMs);
var l;this.player.setGlobalCrop(((l=this.opts)==null?0:l.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.I.getRoundedCornersSize=function(){var u;if((u=this.opts)==null?0:u.roundedCornersSize){var K;return(K=this.opts)==null?void 0:K.roundedCornersSize}var l;if((l=this.opts)==null?0:l.enableRounding){var D;if(((D=this.opts)==null?void 0:D.thumbnailSize)==="small")return 1;var d;if(((d=this.opts)==null?void 0:d.thumbnailSize)==="medium")return 2;var C;if(((C=this.opts)==null?void 0:C.thumbnailSize)==="large")return 3}return _.S("web_imp_inset_progress_bar")?3:0};
_.I.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.I.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.I.onMediaContainerClick=function(u){this.isShortcutClick(u)||(this.navigateToWatch(u),u.preventDefault(),u.stopPropagation())};
_.I.activate=function(){var u=this,K,l,D,d,C,W,M,q,v;return _.H(function(G){switch(G.nextAddress){case 1:if(!u.currentPageAllowed())return G.return(0);l=(K=u.videoPreviewData)==null?void 0:K.inlinePlaybackEndpoint;D=_.ow.instance;if(!l||!D)return G.return(0);u.playbackIntentTriggered=!0;((d=u.opts)==null?0:d.mediaRenderer)&&((C=u.opts)==null||!C.isAutoplay)&&wVE(u.opts.mediaRenderer,function(){u.deactivate()});
_.W_(u,function(){u.revealPreviewUi()});
W={};_.S("enable_unknown_lact_fix_on_html5")&&(_.GB().resolve(_.Xb),W.lact=_.Gr());u.videoPreviewFetchRequest=J8V(D,u.getInlinePlaybackRequestData(u.videoPreviewData),W);_.Qg(G,2);return G.yield(u.videoPreviewFetchRequest,4);case 4:M=G.yieldResult;if(((q=M)==null?void 0:(v=q.playabilityStatus)==null?void 0:v.status)==="OK")return G.return(u.handlePlayerResponse(M));throw Error("Nj");case 2:_.iY(G),u.deactivate();case 3:return G.return(1)}})};
_.I.getInlinePlaybackRequestData=function(u){var K,l=_.S("web_imp_player_mute_params")?((K=this.opts)==null?void 0:K.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:u.inlinePlaybackEndpoint,startPlaybackInMutedState:l}};
_.I.handlePlayerResponse=function(u){var K=this,l,D,d,C,W,M,q,v,G,t;return _.H(function(x){if(x.nextAddress==1){l=K.getInlinePlaybackVideoId();if(!(((D=u)==null?0:(d=D.videoDetails)==null?0:d.videoId)&&K.currentPageAllowed()&&K.playbackIntentTriggered&&K.opts&&l))return K.deactivate(),x.return(0);if(u.videoDetails.videoId!==l)return x.return(0);K.enableAudioControls=!!((C=u.playerConfig)==null?0:(W=C.inlinePlaybackConfig)==null?0:W.showAudioControls);u.trackingParams=K.getInlinePlaybackTrackingParams();
if(!K.inlinePlayer)return x.return(0);M={};if(v=_.b((q=K.videoPreviewData)==null?void 0:q.inlinePlaybackEndpoint,_.oy))M.watch_endpoint=v;if(K.videoPreviewData){var O,a=(O=_.b(K.videoPreviewData.inlinePlaybackEndpoint,_.oy))==null?void 0:O.startTimeSeconds;a!==void 0&&(u.playerConfig||(u.playerConfig={}),u.playerConfig.playbackStartConfig||(u.playerConfig.playbackStartConfig={}),u.playerConfig.playbackStartConfig.startPosition||(u.playerConfig.playbackStartConfig.startPosition={}),u.playerConfig.playbackStartConfig.startSeconds=
a,u.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(a*1E3))}K.inlinePlayer.loadVideoWithPlayerResponse(u,M);if(K.JSC$18938_playerPromise)return x.jumpTo(2);K.JSC$18938_playerPromise=K.inlinePlayer.getPlayerPromise();return x.yield(K.JSC$18938_playerPromise,3)}x.nextAddress!=2&&(G=x.yieldResult,G.setInlinePreview(!0),G.setSizeStyle(!1,!0),K.ytPlayerListenerBehavior.listenToPlayerEvents(G,K.JSC$18938_playerEvents),K.player=G,_.xs(K.hostElement,"player-api-ready"));((t=K.opts)==
null?0:t.showPlayerControls)&&K.videoPreviewData&&K.player&&(K.playerControlsData={playerResponse:u,isInlinePlayback:!0,thumbnailOverlays:K.videoPreviewData.thumbnailOverlays,playerApi:K.player},K.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!K.unroundCornersForPlayback,additionalButton:K.getAdditionalButtonType(K.videoPreviewData.thumbnailOverlays)});return x.return(2)})};
_.I.revealPreviewUi=function(){var u=this;this.playbackIntentTriggered&&_.n2Z(this,function(){u.hasThumbnailPositionChangedSinceTriggered()||(u.updateActiveState(!0),u.noAnimation=!1)})};
_.I.hasThumbnailPositionChangedSinceTriggered=function(){var u=this.positionData,K=this.getThumbnailPositionData();return(u==null?void 0:u.initialTopPosition)!==(K==null?void 0:K.initialTopPosition)||(u==null?void 0:u.initialHorizontalPosition)!==(K==null?void 0:K.initialHorizontalPosition)};
_.I.getThumbnailPositionData=function(){var u,K;if((K=this.opts)==null||!K.thumbnail)return null;K=this.opts.thumbnail;var l=((u=this.opts)==null?0:u.cropPlayerToFillThumbnailHorizontally)?!1:!0;var D=K.getBoundingClientRect();u=D.width;K=D.height;var d=D.top+window.scrollY;D=D.left+window.scrollX;var C=l?Math.ceil(u):u;l=l?Math.ceil(K):K;var W=u/C;u={initialScale:W,initialTopPosition:d-12*W,finalTopPosition:d-12-(l-K)/2,initialHorizontalPosition:D-(12+(C-u)/2),finalHorizontalPosition:D-12-(C-u)/
2,videoPreviewWidth:C,videoPreviewHeight:l};return u};
_.I.updateActiveState=function(u){this.active=u;this.ytdReduxBehavior.dispatch(_.SZ({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:u}))};
_.I.stopPlayer=function(u){u=u.resetWatchEndpointStartTime===void 0?!1:u.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(u)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.YL.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.I.deactivate=function(u){u=u===void 0?{}:u;u=u.resetWatchEndpointStartTime===void 0?!1:u.resetWatchEndpointStartTime;Qj&&(Qj.disconnect(),Qj=null);this.stopPlayer({resetWatchEndpointStartTime:u});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.I.isValidThumbnailOverlayButton=function(u,K){u=u.thumbnailOverlayButtonRenderer;var l;return!!u&&!!u.tooltip&&!((l=u.icon)==null||!l.iconType)&&K.includes(u.icon.iconType)};
_.I.isValidThumbnailOverlayButtonViewModel=function(u,K){var l;u=_.b((l=u.thumbnailOverlayButtonViewModel)==null?void 0:l.overlayButton,_.kY);return!!u&&!!u.title&&!!u.iconName&&K.includes(u.iconName)};
_.I.getAdditionalButtonType=function(u){var K=this;if(_.S("web_imp_fastforward_button"))return{button:1};if(_.S("web_imp_miniplayer_button"))return{button:2};if(_.S("web_imp_playback_speed_button"))return{button:3};var l=["BOX_STACK_3"],D=(u||[]).filter(function(C){return K.isValidThumbnailOverlayButton(C,l)}).map(function(C){return C.thumbnailOverlayButtonRenderer});
if(D.length)return{button:4,thumbnailOverlayButtonRenderers:D};var d=["BOX_STACK_3"];u=(u||[]).filter(function(C){return K.isValidThumbnailOverlayButtonViewModel(C,d)}).map(function(C){return _.b(C.thumbnailOverlayButtonViewModel.overlayButton,_.kY)});
if(u.length)return{button:4,thumbnailOverlayButtonViewModels:u}};
_.I.allowCaptions=function(){var u;return!((u=this.opts)==null?0:u.forceCaptionsOff)};
_.I.allowUnmuting=function(){var u;return this.enableAudioControls&&!((u=this.opts)==null?0:u.forceMutedVolume)};
_.I.beginStartTimeUpdater=function(){var u=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.zB(function(){u.updateWatchEndpointStartTime()},1E3)};
_.I.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.I.resetPreventProgressSaveTimer=function(){this.JSC$18938_preventProgressSaveTimer!==null&&(_.YL.cancelJob(this.JSC$18938_preventProgressSaveTimer),this.JSC$18938_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.I.updateWatchEndpointStartTime=function(u){var K=this.videoPreviewData;if(this.player&&K!=null&&K.inlinePlaybackEndpoint&&!this.JSC$18938_preventProgressSaveTimer){u=u?0:Math.floor(this.player.getCurrentTime());var l=_.b(K.navigationEndpoint,_.oy);l&&(l.startTimeSeconds=u);if(K=_.b(K.inlinePlaybackEndpoint,_.oy))K.startTimeSeconds=u}};
_.I.isShortcutClick=function(u){return!!u&&(u.ctrlKey||u.shiftKey||u.metaKey)};
_.I.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.I.openInMiniplayer=function(){var u=this,K,l;return _.H(function(D){if(D.nextAddress==1){l=(K=u.videoPreviewData)==null?void 0:K.navigationEndpoint;if(!l)return D.return();_.B3().lockupActivation=!0;return D.yield(_.CWR(_.GB().resolve(_.uD),l),2)}_.B3().userActivation=!0;_.TG(D)})};
_.I.navigateToWatch=function(u){var K,l=(K=this.videoPreviewData)==null?void 0:K.navigationEndpoint;if(l){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(l,u,!0);else{if(_.S("web_thumbnail_to_watch_transition")){var D,d;(D=this.opts)==null||(d=D.onNavigateToWatchCallback)==null||d.call(D)}_.xs(this.hostElement,"yt-navigate",{endpoint:l})}this.deactivate()}};
_.I.getInlinePlaybackVideoId=function(){var u,K;return(K=_.b((u=this.videoPreviewData)==null?void 0:u.inlinePlaybackEndpoint,_.oy))==null?void 0:K.videoId};
_.I.getInlinePlaybackTrackingParams=function(){var u,K;return(u=this.videoPreviewData)==null?void 0:(K=u.inlinePlaybackEndpoint)==null?void 0:K.clickTrackingParams};
_.I.hasMultipleVideoPreviews=function(){var u;return!!(((u=this.opts)==null?0:u.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.I.startPlaybackForNextVideo=function(){var u;(u=this.opts)!=null&&u.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())};
_.MN.Object.defineProperties($7.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.opts)==null?0:u.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.opts)==null||!u.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 u;if(Array.isArray((u=this.opts)==null?void 0:u.videoPreviewData)){var K;return(K=this.opts)==null?void 0:K.videoPreviewData[this.videoPreviewDataIndex]}var l;return(l=this.opts)==null?void 0:l.videoPreviewData}}});
$7.prototype.onIsAdsVideoChange=$7.prototype.onIsAdsVideoChange;$7.prototype.onInlinePreviewIsEnabledChange=$7.prototype.onInlinePreviewIsEnabledChange;$7.prototype.optsChanged=$7.prototype.optsChanged;$7.prototype.onMouseLeave=$7.prototype.onMouseLeave;$7.JSC$18937_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);$7.JSC$18937_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"}];
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],$7.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",_.HB)],$7.prototype,"ytPlayerListenerBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],$7.prototype,"componentBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],$7.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.tA.YtSparklesClickLocationBehavior),_.N("design:type",Object)],$7.prototype,"ytSparklesClickLocationBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],$7.prototype,"opts",void 0);_.g([_.U(),_.N("design:type",Object)],$7.prototype,"playerControlsData",void 0);
_.g([_.U(),_.N("design:type",Object)],$7.prototype,"playerControlsAppApi",void 0);_.g([_.U(),_.N("design:type",Object)],$7.prototype,"playerControlsOptions",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$7.prototype,"noAnimation",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$7.prototype,"hidden",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$7.prototype,"active",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$7.prototype,"playing",void 0);_.g([_.U({selector:_.cFo}),_.N("design:type",Boolean)],$7.prototype,"inlinePreviewIsEnabled",void 0);_.g([_.U(),_.N("design:type",String)],$7.prototype,"pagePath",void 0);_.g([_.U({selector:_.mG}),_.N("design:type",Boolean)],$7.prototype,"isWatchPage",void 0);_.g([_.R("videoPreviewData"),_.N("design:type",Object),_.N("design:paramtypes",[])],$7.prototype,"thumbnailData",null);
_.g([_.R("opts","active"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$7.prototype,"hidePlayerControls",null);_.g([_.R("opts"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$7.prototype,"isAdsVideo",null);_.g([_.R("opts"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$7.prototype,"roundedCornersSmall",null);
_.g([_.R("opts"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$7.prototype,"roundedCornersMedium",null);_.g([_.R("opts"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$7.prototype,"roundedCornersLarge",null);_.g([_.R("opts"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$7.prototype,"unroundCornersForPlayback",null);
_.g([_.R("opts","videoPreviewDataIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],$7.prototype,"videoPreviewData",null);_.g([_.U(),_.N("design:type",Object)],$7.prototype,"videoPreviewDataIndex",void 0);_.g([_.BF("#inline-player"),_.N("design:type",Object)],$7.prototype,"inlinePlayer",void 0);_.g([_.PF("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],$7.prototype,"onMouseLeave",null);
_.g([_.wn("opts"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$7.prototype,"optsChanged",null);_.g([_.wn("inlinePreviewIsEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$7.prototype,"onInlinePreviewIsEnabledChange",null);_.g([_.JU("isAdsVideo"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$7.prototype,"onIsAdsVideoChange",null);
_.g([_.T({is:"ytd-video-preview",disableElementRegistration:!0})],$7);
_.F($7,"ytd-video-preview",function(){if(q5B!==void 0)return q5B;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return q5B=u},{mode:2});
}catch(e){_._DumpException(e)}
try{
var M7_,qkH,$fE;M7_=function(u){return _.S("kevlar_watch_cinematics_invisible")||u.fullscreen&&_.S("kevlar_watch_cinematics_invisible_in_fullscreen")||u.theater&&!u.fullscreen&&_.S("kevlar_watch_cinematics_invisible_in_theater")};
qkH=function(){var u=document.createElement("canvas"),K=u.getContext("2d");if(!K)throw Error("ho");_.KJ(u,{position:"absolute",width:"100%",height:"100%"});return{element:u,context:K}};
$fE=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.S("kevlar_watch_cinematics_css_blur")};
_.n8p=function(u,K,l){return Math.abs(u-K)<=(l||1E-6)};
_.rbp=function(u,K){return u==K?!0:u&&K?u.width==K.width&&u.height==K.height:!1};_.v8E=new _.r3("notificationActionRenderer");var GM_=function(u){var K=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.et;this.element.addEventListener("load",function(){K.loaded=!0;K.resolver.resolve(K.element)});
this.element.addEventListener("error",function(){K.failed=!0});
this.element.src=u};var t7_=function(u,K){this.image=u;this.frame=K};
t7_.prototype.drawToCanvas=function(u,K){var l=this.frame.width/this.frame.columns,D=this.frame.height/this.frame.rows,d=K.offsetX,C=K.offsetY;M7_(K)?(u.fillStyle=K.fullscreen?"#000":"#0f0f0f",u.fillRect(d,C,(K==null?void 0:K.width)||l,(K==null?void 0:K.height)||D)):u.drawImage(this.image,this.frame.column*l,this.frame.row*D,l,D,d,C,(K==null?void 0:K.width)||l,(K==null?void 0:K.height)||D)};
var xf_=function(u){this.color=u};
xf_.prototype.drawToCanvas=function(u,K){var l=K.offsetX,D=K.offsetY,d=K.width,C=K.height;u.fillStyle=M7_(K)?K.fullscreen?"#000":"#0f0f0f":this.color;u.fillRect(l,D,d,C)};var ug=function(u,K){_.tv.call(this);this.playerApi=K;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.jA(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();Sk_(this,u);bBG(this);this.update()};
_.c(ug,_.tv);ug.prototype.addEventListeners=function(){var u=this,K=function(){u.update()},l=function(d){u.paused||(d.type==="newdata"&&(u.mosaics.clear(),OBi(u),Kq(u)),bBG(u),u.update())},D=function(){u.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",K);this.playerApi.addEventListener("onVideoDataChange",l);this.playerApi.addEventListener("onStateChange",D);this.addOnDisposeCallback(function(){u.playerApi.removeEventListener("onVideoProgress",K);u.playerApi.removeEventListener("onVideoDataChange",l);u.playerApi.removeEventListener("onStateChange",D)})};
var Sk_=function(u,K){u.cinematicContainerRenderer!==K&&(u.cinematicContainerRenderer=K,OBi(u),Kq(u),u.colorStoreUpdateJobId=_.YL.addLowPriorityJob(function(){var l;if((l=u.cinematicContainerRenderer.colorStore)!=null&&l.sampledColors){l=Infinity;for(var D=_.y(u.cinematicContainerRenderer.colorStore.sampledColors),d=D.next();!d.done;d=D.next()){d=d.value;var C=Number(d.key);C!==0&&C<l&&(l=C);C=_.Kg(d.value);u.colorStore.set(d.key,C)}u.colorStoreTimeInterval=l}}))},OBi=function(u){u.colorStoreUpdateJobId&&
(_.YL.cancelJob(u.colorStoreUpdateJobId),u.colorStoreUpdateJobId=void 0);
u.colorStore.clear();u.currentStoryboardColor=void 0},cbE=function(u,K){var l;
return(l=u.getStoryboardFrame(K))==null?void 0:l.url};
ug.prototype.onPlayerStateChange=function(){this.update()};
ug.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var bBG=function(u){var K=u.getStoryboardFrame(0);K&&(K=new _.jA(K.width/K.columns,K.height/K.rows),_.rbp(u.currentStoryboardSize,K)||(u.currentStoryboardSize=K,u.publish("STORYBOARD_SIZE_CHANGED",u.currentStoryboardSize)))},amH=function(u,K){u.currentStoryboardIndex=K;
u.pendingStoryboardIndex=NaN;K=u.getStoryboardFrame(u.currentStoryboardIndex);u.currentStoryboard=new t7_(u.mosaics.get(K.url).element,K);u.publish("STORYBOARD_CHANGED",u.currentStoryboard);u.lastUpdateTime=(0,_.vA)()};
ug.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Kq=function(u){u.currentStoryboardIndex=NaN;u.pendingStoryboardIndex=NaN;u.currentStoryboard&&(u.currentStoryboard=void 0,u.publish("STORYBOARD_CHANGED",void 0));u.lastUpdateTime=NaN};
ug.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Kq(this);else{var u=this.playerApi.getPlayerState(1);if(u===-1||u===5||u===0)Kq(this);else if(isNaN(this.lastUpdateTime)||!((0,_.vA)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(u=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){u=""+Math.round(u*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var K=this.colorStore.get(u);K?K!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=K,this.currentStoryboard=new xf_(K),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.vA)()):(_.hV(new _.wv("Could not find color for timestamp: "+u,this.cinematicContainerRenderer)),Kq(this))}else Kq(this);else zZV(this,u)}};
var zZV=function(u,K){var l=u.getStoryboardFrameIndex(K);if(l!==u.currentStoryboardIndex&&l!==u.pendingStoryboardIndex){K=cbE(u,l);var D=u.mosaics.get(K);D?D.loaded&&amH(u,l):(u.pendingStoryboardIndex=l,l=new GM_(K),u.mosaics.set(K,l),l.resolver.promise.then(function(){if(!u.isDisposed()&&!u.paused&&!isNaN(u.pendingStoryboardIndex)){var d=cbE(u,u.pendingStoryboardIndex);if(d){var C;(C=u.mosaics.get(d))!=null&&C.loaded&&amH(u,u.pendingStoryboardIndex)}else Kq(u)}}))}};
ug.prototype.getStoryboardFrameIndex=function(u){var K=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(u,K)};
ug.prototype.getStoryboardFrame=function(u){var K=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,l,D;return((D=(l=this.playerApi).getStoryboardFrame)==null?void 0:D.call(l,u,K))||null};
ug.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Dz=function(u,K,l,D){D=D===void 0?!1:D;_.TZ.call(this);this.cinematicContainerRenderer=K;this.playerApi=l;this.theater=this.fullscreen=!1;var d;this.ambientLightThemeEnabled=!D&&!!(K==null?0:(d=K.config)==null?0:d.enableInLightTheme);this.ambientFullscreenEnabled=D&&_.S("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=D&&_.S("web_cinematic_theater_mode");this.container=document.createElement("div");u.appendChild(this.container);var C;if(_.S("web_cinematic_theater_mode")||_.S("web_cinematic_fullscreen")||
(K==null?0:(C=K.config)==null?0:C.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);eZ_(this);u=this.ambientV2Container||this.container;this.backCanvas=qkH();this.frontCanvas=qkH();u.appendChild(this.backCanvas.element);u.appendChild(this.frontCanvas.element);this.storyboardManager=new ug(K,this.playerApi);_.eb(this,this.storyboardManager);this.addEventListeners();RZI(this)?UfE(this,100+lg(this)*3*2,100+lg(this)*3*2):fmG(this);
Qc6(this,this.storyboardManager.currentStoryboard)};
_.c(Dz,_.TZ);var eZ_=function(u){u.ambientV2Container?Pl6(u):(_.KJ(u.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+JbG(u)+", "+jcE(u)+")"}),$fE()&&_.KJ(u.container,"filter","blur("+_.Sg("cinematic_watch_css_filter_blur_strength",40)+"px)"))},Pl6=function(u){if(u.ambientV2Container){var K=u.playerApi.getVideoAspectRatio();
_.KJ(u.container,{"aspect-ratio":""+K,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.KJ(u.ambientV2Container,{"aspect-ratio":""+K,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+JbG(u)+", "+jcE(u)+")"});$fE()&&_.KJ(u.ambientV2Container,"filter","blur("+_.Sg("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
Dz.prototype.setFullscreen=function(u,K){this.fullscreen=u;this.theater=!!K;eZ_(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),u=this.storyboardManager.currentStoryboard,BK2(this),u&&pxp(this,u)};
Dz.prototype.addEventListeners=function(){var u=this,K=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(d){Qc6(u,d)}),l=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){fmG(u)});
this.addOnDisposeCallback(function(){u.storyboardManager.unsubscribeByKey(K);u.storyboardManager.unsubscribeByKey(l)});
if(this.ambientV2Container){var D=function(){Pl6(u)};
this.playerApi.addEventListener("onVideoDataChange",D);this.addOnDisposeCallback(function(){u.playerApi.removeEventListener("onVideoDataChange",D)})}};
var fmG=function(u){if(!RZI(u)){var K=u.storyboardManager.currentStoryboardSize;isNaN(K.width)||isNaN(K.height)||UfE(u,Number(K.width)+lg(u)*3*2,Number(K.height)+lg(u)*3*2)}},UfE=function(u,K,l){u.backCanvas.element.width=K;
u.backCanvas.element.height=l;u.frontCanvas.element.width=K;u.frontCanvas.element.height=l},RZI=function(u){return u.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},Qc6=function(u,K,l){l=l===void 0?!1:l;
var D=u.frontCanvas.element.getAnimations()[0];D?(D.pause(),u.backCanvas.context.globalAlpha=Number(getComputedStyle(u.frontCanvas.element).opacity),u.frontCanvas.element.style.opacity="0",D.finish()):u.backCanvas.context.globalAlpha=1;u.backCanvas.context.drawImage(u.frontCanvas.element,0,0,u.backCanvas.element.width,u.backCanvas.element.height);BK2(u);K&&pxp(u,K);K=K?u.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Sg("cinematic_watch_fade_out_duration",500);D=_.Sg("cinematic_watch_transition_frame_rate")/
1E3;var d={};D&&(d={easing:"steps("+Math.round(K*D)+")"});(l===void 0?0:l)||u.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:K,iterations:1},d));u.frontCanvas.element.style.opacity="1"},BK2=function(u){var K=u.ambientLightThemeEnabled||u.ambientTheaterModeEnabled,l=u.ambientLightThemeEnabled||u.ambientFullscreenEnabled;
u.frontCanvas.context.fillStyle=u.theater&&K||u.fullscreen&&l?"#000":"#0f0f0f";$fE()||(u.frontCanvas.context.filter="blur(0)");u.frontCanvas.context.fillRect(0,0,u.frontCanvas.element.width,u.frontCanvas.element.height)},pxp=function(u,K){$fE()||(u.frontCanvas.context.filter="blur("+lg(u)+"px)");
u.frontCanvas.context.globalAlpha=u.fullscreen&&u.ambientFullscreenEnabled||u.theater&&u.ambientTheaterModeEnabled?_.Sg("cinematic_watch_effect_letterbox_opacity",.8):_.Sg("cinematic_watch_effect_opacity",.4);var l={offsetX:lg(u)*3,offsetY:lg(u)*3,theater:u.theater,fullscreen:u.fullscreen};RZI(u)&&(l.width=100,l.height=100);K.drawToCanvas(u.frontCanvas.context,l);u.frontCanvas.context.globalAlpha=1},lg=function(u){var K;
return(K=u.cinematicContainerRenderer.config.blurStrength)!=null?K:5},JbG=function(u){var K,l;
if((u.fullscreen||u.theater)&&((K=u.cinematicContainerRenderer.config)==null?0:(l=K.watchFullscreenConfig)==null?0:l.colorSourceWidthMultiplier))return u.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var D;return(D=u.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?D:u.cinematicContainerRenderer.config.colorSourceSizeMultiplier},jcE=function(u){var K,l;
if((u.fullscreen||u.theater)&&((K=u.cinematicContainerRenderer.config)==null?0:(l=K.watchFullscreenConfig)==null?0:l.colorSourceHeightMultiplier))return u.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var D;return(D=u.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?D:u.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
Dz.prototype.disposeInternal=function(){_.TZ.prototype.disposeInternal.call(this);this.container.remove()};
Dz.prototype.clear=function(){Qc6(this,void 0,!0)};
Dz.prototype.pause=function(){this.storyboardManager.pause()};var iB_;iB_=_.T3(function(){var u,K,l=!((K=(u=document.createElement("canvas")).getContext)==null||!K.call(u,"2d")),D;u=!((D=CSS)==null||!D.supports("filter: blur(0)"));D=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var d;return l&&u&&D&&!((d=CSS)==null||!d.supports("aspect-ratio: 1 / 1"))});
_.dQ=function(u,K){_.tv.call(this);this.container=u;this.playerApi=K;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=TKo(this);this.update()};
_.c(_.dQ,_.tv);_.wxE=function(u){var K=document.documentElement.hasAttribute("dark");u.isDarkModeEnabled=K;u.update()};
_.FkV=function(u,K){u.settingEnabled=K;u.update()};
_.dQ.prototype.setFullscreen=function(u,K){this.fullscreen=u;this.theater=!!K;this.update()};
_.V7_=function(u,K){u.cinematicContainerRenderer=K;u.cinematicContainerRenderer&&(u.cinematicsVe=_.Yo(u.isShorts()?227858:159022),_.RD(_.iT(),u.cinematicsVe),u.loggingClientData={watchCinematicContainerData:{presentationStyle:u.cinematicContainerRenderer.presentationStyle}});u.update()};
_.dQ.prototype.isShorts=function(){var u,K;return((u=this.cinematicContainerRenderer)==null?void 0:(K=u.config)==null?void 0:K.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.dQ.prototype.isAllowed=function(){var u;if(u=iB_()){var K,l,D;u=((l=this.cinematicContainerRenderer)==null?void 0:l.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((D=this.cinematicContainerRenderer)==null||!D.colorStore)||((K=this.cinematicContainerRenderer)==null?void 0:K.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(u)if(_.S("web_cinematics_pausing")){var d,C;u=this.isDarkModeEnabled||!!((d=this.cinematicContainerRenderer)==
null?0:(C=d.config)==null?0:C.enableInLightTheme)}else{var W,M;d=!!((W=this.cinematicContainerRenderer)==null?0:(M=W.config)==null?0:M.enableInLightTheme)&&(_.E3("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);u=this.isDarkModeEnabled||d}if(W=u){var q,v;W=!((v=(q=this.prefersReducedMotionQuery)==null?void 0:q.matches)!=null&&v)}return W};
_.g8k=function(u){(u=u.currentCinematicEffect)!=null&&(u=u.storyboardManager,u.paused=!1,bBG(u),u.update())};
_.dQ.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var TKo=function(u){if(!_.S("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var K=window.matchMedia("(prefers-reduced-motion: reduce)"),l=function(){u.update()};
K.addListener(l);u.addOnDisposeCallback(function(){K.removeListener(l)});
return K}};
_.dQ.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var u=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Dz(this.container,u,this.playerApi,this.isDarkModeEnabled),_.eb(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var K=this.currentCinematicEffect;K.cinematicContainerRenderer!==
u&&(K.cinematicContainerRenderer=u,Sk_(K.storyboardManager,u),eZ_(K));u=_.jy();_.B0(0,194,!0);u.save();u=_.AC();this.cinematicsVe&&u&&_.If(u,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(u=_.AC(),this.cinematicsVe&&u&&_.yM(u,[this.cinematicsVe],!1,this.loggingClientData),_.qt(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.MN.Object.defineProperties(_.dQ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var V6H;var gjB;_.YH({_template:function(){if(gjB!==void 0)return gjB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=
u.content,l=K.insertBefore;V6H===void 0&&(V6H=document.createElement("template"));var D=V6H;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return gjB=u},
is:"tp-yt-iron-pages",behaviors:[_.Ae,_.sp],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var iRE;_.ToE=function(){if(_.S("kevlar_home_skeleton")&&!iRE){var u=document.querySelector("#home-page-skeleton");u&&(_.As("hgcr"),_.Jq(u),iRE=!0)}};
iRE=!1;_.b_=new _.r3("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var eTI,Uvp,fe6,Qk6,Pmk,JhH,jkI,BT_,iCH,TTH,ww_,gIp,kXE,ZCo,NT_,FlG,VNE,Xwk;_.zTV=function(u,K,l){K=K===void 0?5:K;if(K!==0){var D=typeof u==="function"?u():document.querySelector(u);D?(l==null?0:l.enableSmartFocus)?_.jKH(D):D.focus():setTimeout(function(){_.zTV(u,K-1,l)},500)}};
eTI=function(u){return String.raw.apply(String,[{raw:u}].concat(_.Am(_.uY.apply(1,arguments).map(function(K){return K instanceof Array?K.join(""):K}))))};
Uvp=function(u){var K=_.uY.apply(1,arguments),l=K.length;if(!Array.isArray(u)||!Array.isArray(u.raw)||u.length!==u.raw.length||!_.$wm&&u===u.raw||!(_.$wm&&!_.nyB||_.gb(u))||l+1!==u.length)throw new TypeError("$");return new RTI(Object.freeze({strings:Object.freeze(u),args:Object.freeze(K)}))};
fe6=function(u){return _.wBL(_.TPr(u&16777215))<.5};
Qk6=function(u,K,l){var D=l.minimumRowsOfVideosBetweenSections===void 0?1:l.minimumRowsOfVideosBetweenSections;return u<(l.minimumRowsOfVideosAtStart===void 0?2:l.minimumRowsOfVideosAtStart)||K!==null&&u-K<=D?!1:!0};
Pmk=function(u,K){var l=0,D=0;u=_.y(u);for(var d=u.next();!d.done;d=u.next()){var C=d.value;if(C.richItemRenderer)C.richItemRenderer.rowIndex=D,C.richItemRenderer.colIndex=l++,l===K&&(l=0,D++);else if(C.richGroupRenderer&&C.richGroupRenderer.numColumns!==void 0)C.richGroupRenderer.rowIndex=D,C.richGroupRenderer.colIndex=l,l+=C.richGroupRenderer.numColumns,l===K&&(l=0,D++);else if(C.richSectionRenderer){var W=d=void 0;if(C=_.b((d=C)==null?void 0:(W=d.richSectionRenderer)==null?void 0:W.content,_.xiw))C.rowIndex=
D++}}};
JhH=function(u,K){var l=K.contentElement;K=K.rendererToTagNameMap;if(l&&K&&K.size!==0){for(var D=new Map,d=_.y(l.children),C=d.next();!C.done;C=d.next()){C=C.value;var W=C.tagName.toLowerCase(),M=D.get(W);M||(M=[],D.set(W,M));M.push(C)}if(D.size!==0)for(d=Math.min(u.length,l.children.length),C=new Map,W=0;W<d;W++){M=Object.keys(u[W])[0];M=K.get(M);if(!M)break;var q=C.get(M);q===void 0&&(q=0,C.set(M,q));var v=D.get(M);if(!v||q>=v.length)break;C.set(M,q+1);M=v[q];q=l.children[W];q!==M&&(_.BJ9=!0,_.pLn.set(M,
!0),l.insertBefore(M,q),_.pLn.delete(M),_.BJ9=!1)}}};
jkI=function(u,K,l,D,d,C,W){D=D===void 0?{}:D;if(!u||!u.length)return[];u=u.slice();var M=[],q=[];d=null;for(var v=0,G=function(p){q.sort(function(Z,A){return A.skippedOnRow-Z.skippedOnRow});
for(var V,m=(V=q.shift())==null?void 0:V.content;m;)!m.richSectionRenderer&&p||M.push(m),V=void 0,m=(V=q.shift())==null?void 0:V.content},t=void 0;u.length>0||q.length>0;){for(var x=[],O=K;O>0;){var a=void 0,f=void 0,B=(f=q[0]&&q[0].skippedOnRow<v?(a=q.shift())==null?void 0:a.content:void 0)!=null?f:u.shift();
if(!B)break;if(B.richItemRenderer)a=B.richItemRenderer.targetId,f=void 0,a&&((f=W)==null?0:f.has(a))&&(a=W.get(a),!t||a&&a.timestamp>t.timestamp)&&(t=a),x.push(B),O--;else if(B.richGroupRenderer&&B.richGroupRenderer.numColumns!==void 0)B.richGroupRenderer.numColumns<=O?(x.push(B),O-=B.richGroupRenderer.numColumns):O===K&&B.richGroupRenderer.numColumns>K?(x.push({richGroupRenderer:Object.assign({},B.richGroupRenderer,{numColumns:K})}),O=0):q.push({content:B,skippedOnRow:v});else if(B.richSectionRenderer)if(Qk6(v,
d,D)&&O===K){M.push(B);d=v;v++;continue}else q.push({content:B,skippedOnRow:v});else if(B.continuationItemRenderer){G(!0);M.push(B);O=0;break}if(O===0)M.push.apply(M,_.Am(x));else if(!l&&u.length===0){G(!1);M.push.apply(M,_.Am(x));O=0;break}}v++;t&&(M.push(t.content),v++);t=void 0}Pmk(M,K);C&&JhH(M,C);return M};
BT_=function(){return _.uY.apply(0,arguments).flat().filter(function(u){return u}).join(";")};
iCH=function(){return Uvp(pw2,BT_.apply(null,_.Am(_.uY.apply(0,arguments))))};
TTH=function(u){switch(u){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
ww_=function(u){return u.talkToRecs};
gIp=function(u,K){if(K){var l=_.Mu().getState().entities.flowStateEntity,D=FlG(u),d=[K];D&&D!==K&&d.push(D);var C=!0,W;if(l&&u.flowStateEntityKey&&((W=l[u.flowStateEntityKey])==null?void 0:W.primaryButtonDisabled)!==void 0){var M;C=!((M=l[u.flowStateEntityKey])==null||!M.primaryButtonDisabled)}VNE(u,D!=null?D:K,d,C)}};
kXE=function(u){return _.iF(_.Mu(),function(K){return K.entities.flowStateEntity},function(K,l){if(u.flowStateEntityKey){var D,d=K==null?void 0:(D=K[u.flowStateEntityKey])==null?void 0:D.currentStepId,C;
l=l==null?void 0:(C=l[u.flowStateEntityKey])==null?void 0:C.currentStepId;C=_.Mu().getState().talkToRecs;if(d&&d!==l){var W;K=(K==null?void 0:(W=K[u.flowStateEntityKey])==null?void 0:W.stepIdStack)||Object.keys(C.stepStates);W=!NT_(C==null?void 0:C.stepStates[d]);VNE(u,d,K,W)}}})};
ZCo=function(u){return _.iF(_.Mu(),ww_,function(K){var l=FlG(u);if(l){var D=Object.keys(K.stepStates);K=!NT_(K==null?void 0:K.stepStates[l]);VNE(u,l,D,K)}})};
NT_=function(u){var K=Object.keys((u==null?void 0:u.selectionStates)||{}).reduce(function(C,W){return C||(u==null?void 0:u.selectionStates[W].isSelected)},!1),l,D,d=!!(u==null?0:(l=u.userQuery)==null?0:(D=l.userQuery)==null?0:D.trim());
return K||d};
FlG=function(u){if(u.flowStateEntityKey){var K,l,D=(K=_.Mu().getState().entities.flowStateEntity)==null?void 0:(l=K[u.flowStateEntityKey])==null?void 0:l.currentStepId;if(D)return D}};
VNE=function(u,K,l,D){_.Mu().dispatch(_.TT("flowStateEntity",u.flowStateEntityKey,{currentStepId:K,stepIdStack:l,key:u.flowStateEntityKey,primaryButtonDisabled:D}))};
_.Y0k=function(u,K){return _.eZ(u.entities,"youchatPendingResponseEntity",K)};
_.AhV=function(u){return function(K){_.ME(_.TT("youchatPendingResponseEntity",u,{entityKey:u,isPendingResponse:K}))}};
Xwk=function(u){u==null||u.addEventListener("DOMLoaded",function(){u.goToAndPlay(u.totalFrames-48,!0)})};
_.n0=function(u){this.__isSoyCss=!0;this.css=eTI.apply(null,[u.strings].concat(_.Am(u.args)))};
_.n0.prototype.toString=function(){return this.css};
var RTI=function(){_.n0.apply(this,arguments)};
_.c(RTI,_.n0);var pw2=_.oj(["",""]);var mvV;var hT_;_.YH({_template:function(){if(hT_!==void 0)return hT_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
var K=u.content,l=K.insertBefore;mvV===void 0&&(mvV=document.createElement("template"));var D=mvV;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return hT_=u},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var EIo=new _.r3("talkToRecsFlowRenderer");var Llp=new _.r3("flowRootRenderer");var uTE=new _.r3("learningJourneyQuizViewModel");var KOE=new _.r3("chipsShelfViewModel");var ld6=new _.r3("responsiveContainerConfiguration");var DH_=new _.r3("horizontalShelfViewModel");_.dHV=new _.r3("engagementPanelSectionListRenderer");var CWE=new _.r3("conversationResourceViewModel");var Idp=function(){this.horizontal=!1},yZI=function(u,K){u.horizontal=K};
Idp.prototype.position=function(u,K,l,D){D=D===void 0?1:D;u=this.delta(u)*D+K;D=Math.max(K,l);return u>=Math.min(K,l)&&u<=D?u:l};
Idp.prototype.axis=function(u){u=this.direction(u);return u==="up"||u==="down"?"Y":"X"};var sr=function(u,K,l){K=K===void 0?_.Ns():K;this.target=u;this.manager=K;this.touchAction=l;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
sr.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(_.Am(this.events)));for(var u=_.y(this.events),K=u.next();!K.done;K=u.next())this.listen(K.value)}};
sr.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Am(this.events)));for(var u=_.y(this.events),K=u.next();!K.done;K=u.next())this.unlisten(K.value)}};
sr.prototype.listen=function(u){this.eventMap[u]&&this.target.addEventListener(u,this.eventMap[u])};
sr.prototype.unlisten=function(u){this.eventMap[u]&&this.target.removeEventListener(u,this.eventMap[u])};var og=function(){Idp.apply(this,arguments)};
_.c(og,Idp);og.prototype.direction=function(u){var K=u.detail;u=K.deltaY;K=K.deltaX;return u&&!this.horizontal?u>0?"down":"up":K&&this.horizontal?K>0?"right":"left":"none"};
og.prototype.distance=function(u){return Math.abs(this.delta(u))};
og.prototype.delta=function(u){var K=this.direction(u),l=u.detail;u=l.deltaX;l=l.deltaY;return K==="up"||K==="down"?l||0:u||0};
og.prototype.velocity=function(u){var K=this.direction(u),l=u.detail;u=l.velocityX;l=l.velocityY;return Math.abs(K==="up"||K==="down"?l||0:u||0)};_.WT=function(u,K,l,D,d,C){d=d===void 0?new og:d;C=C===void 0?_.Ns():C;sr.call(this,K,C,D);var W=this;this.element=u;this.target=K;this.config=l;this.input=d;this.manager=C;this.events=["panstart","panmove","panend"];this.onPanStart=function(){W.config.draggingClass&&W.element.classList.add(W.config.draggingClass);W.config.startAction&&W.config.startAction()};
this.onPanMove=function(M){var q=sYk(W,M);if(q){W.move(M,q);q.fade&&W.fade(M,q);var v=W.input.direction(M);q.moveAction&&q.moveAction(oSI(W,M,q),v)}};
this.onPanEnd=function(M){var q,v,G,t,x,O;return _.H(function(a){if(a.nextAddress==1){W.animationRequestId&&cancelAnimationFrame(W.animationRequestId);W.animationRequestId=void 0;q=sYk(W,M);if(!q)return a.return();v=q;G=v.triggerAction;t=v.fade;x=v.disableFinish;O=v.translateBack;var f=W.input.velocity(M),B=W.input.distance(M),p=W.threshold(q);return f>.3&&B>10||B>p?x?a.jumpTo(6):t?a.yield(WOi(W,M),6):a.yield(HRH(W,M,q),6):O?a.yield(W.translateBack(M),3):a.jumpTo(3)}a.nextAddress!=3&&G&&G();W.config.draggingClass&&
W.element.classList.remove(W.config.draggingClass);W.reset();_.TG(a)})};
u=Object.keys(l.triggers);this.directions=new Set(u);yZI(this.input,this.directions.has("right")||this.directions.has("left"))};
_.c(_.WT,sr);_.WT.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var sYk=function(u,K){K=u.input.direction(K);return u.config.triggers[K]};
_.WT.prototype.move=function(u,K){var l=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var D=l.input.axis(u),d=l.input.position(u,l.config.startPosition,K.endPosition,K.moveRatio||1);l.element.style.transform="translate"+D+"("+d+"px)";l.animationRequestId=void 0}))};
var oSI=function(u,K,l){var D=l.moveRatio||1;l=Math.abs(u.config.startPosition-l.endPosition);return Math.min(u.input.distance(K)*D,l)/l};
_.WT.prototype.fade=function(u,K){var l=K.endOpacity;u=oSI(this,u,K);u>0&&(this.element.style.opacity=""+(((l||0)-1)*u+1))};
_.WT.prototype.threshold=function(u){return u.threshold?u.threshold:Math.abs(u.endPosition-this.config.startPosition)/3};
var HRH=function(u,K,l){var D,d,C,W,M,q,v;return _.H(function(G){if(G.nextAddress==1)return D=u.input.delta(K)+u.config.startPosition,d=u.input.axis(K),C=l,W=C.endPosition,M=C.transitionEndPosition,v=(q=M)!=null?q:W,G.yield(u.element.animate([{transform:"translate"+d+"("+D+"px)"},{transform:"translate"+d+"("+v+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);u.element.style.transform="translate"+d+"("+v+"px)";_.TG(G)})};
_.WT.prototype.translateBack=function(u){var K=this,l,D;return _.H(function(d){if(d.nextAddress==1){if(!K.element.style.transform)return d.return();l=K.input.axis(u);D=K.config.startPosition;return d.yield(K.element.animate([{transform:K.element.style.transform},{transform:"translate"+l+"("+D+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}K.element.style.transform="translate"+l+"("+D+"px)";_.TG(d)})};
var WOi=function(u,K){var l,D,d,C;return _.H(function(W){if(W.nextAddress==1)return l=u.input.delta(K)+u.config.startPosition,D=u.input.axis(K),d=l+70,C=u.element.style.opacity===""?1:u.element.style.opacity,W.yield(u.element.animate([{transform:"translate"+D+"("+l+"px)",opacity:C},{transform:"translate"+D+"("+d+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);u.element.style.transform="translate"+D+"("+d+"px)";u.element.style.opacity="0";_.TG(W)})};var HT=function(){var u=_.ii.apply(this,arguments)||this;u._noAccessors=!0;u.scrollRate=3;u.autoScrollAnimationStart=0;u.autoScrollPaused=!1;u.autoScrollRafId=0;return u};
_.c(HT,_.ii);_.I=HT.prototype;_.I.created=function(){var u=this;this.boundAutoScrollHandler=function(K){u.autoScroll(K)}};
_.I.detached=function(){this.hostElement.removeEventListener("mouseout",_.Ql(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Ql(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Ql(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.I.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Ql(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Ql(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Ql(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Ql(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Ql(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Ql(this,this.endAutoScroll)),this.endAutoScroll())};
_.I.autoScroll=function(u){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=u);var K;if(K=!this.autoScrollPaused&&this.scrollTarget)K=this.scrollTarget,K=K.scrollHeight-K.scrollTop!==K.clientHeight;K&&(K=1E3/this.scrollRate,u-=this.autoScrollAnimationStart,u>K&&(this.scrollTarget.scrollTop+=Math.ceil(u/K),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.I.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.I.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
HT.prototype.autoScrollEnabledChanged=HT.prototype.autoScrollEnabledChanged;_.g([_.U(),_.N("design:type",Object)],HT.prototype,"scrollRate",void 0);_.g([_.U(),_.N("design:type",Object)],HT.prototype,"scrollTarget",void 0);_.g([_.U(),_.N("design:type",Boolean)],HT.prototype,"autoScrollEnabled",void 0);_.g([_.JU("autoScrollEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HT.prototype,"autoScrollEnabledChanged",null);_.g([_.TQ()],HT);_.MVI=[HT.prototype];var qGk;var MM=function(){var u=_.Q.apply(this,arguments)||this;u.buttonUpdate=_.S("web_button_rework");u.dismissButtonOverrides=_.S("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;u.forceDarkTheme=!1;u.forceLightTheme=!1;u.dynamicTextHeight=94;u.hasOverflowButton=!1;u.isInfeedModernization=!1;return u};
_.c(MM,_.Q);_.I=MM.prototype;_.I.computeUrlImg=function(u){if(u)return _.O4(u.thumbnails)};
_.I.getLogoHeight=function(u){return this.logoWithPadding(u)?"31":"24"};
_.I.getLogoClassName=function(u){return this.logoWithPadding(u)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.I.logoWithPadding=function(u){var K,l;return(u=(K=u.thumbnails)==null?void 0:(l=K[0])==null?void 0:l.height)&&u%31===0?!0:!1};
_.I.sendImpressionEndpoints=function(u){u.impressionEndpoints&&_.c0(this.hostElement,u.impressionEndpoints)};
_.I.observeBasicPalette=function(){var u,K,l=(u=this.data)==null?void 0:(K=u.colorData)==null?void 0:K.basicColorPaletteData;l?_.mE(this.hostElement,l):_.mE(this.hostElement,{})};
_.I.observeDataChanged=function(){var u;this.dynamicTextHeight=((u=this.data)==null?0:u.supplementalText)?74:94;var K;this.hasSupplementalText=!((K=this.data)==null||!K.supplementalText);if(_.S("web_button_rework")){var l,D,d,C;u=(l=this.data)==null?void 0:(D=l.actionButton)==null?void 0:(d=D.buttonRenderer)==null?void 0:(C=d.colorData)==null?void 0:C.basicColorPaletteData;var W,M,q;if(!((W=this.data)==null?0:(M=W.actionButton)==null?0:(q=M.buttonRenderer)==null?0:q.style)&&u){this.computeIsInfeedModernization(this.data)||
(u.borderColor=u.foregroundTitleColor);var v,G;this.set("data.actionButton.buttonRenderer",_.k$.unsafeClone((v=this.data)==null?void 0:(G=v.actionButton)==null?void 0:G.buttonRenderer))}}};
_.I.observeDataForCounterfactual=function(){if(_.S("kevlar_banner_cf_extra_logging")){var u;((u=this.data)==null?0:u.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.I.computeSupplementalStyle=function(){var u;if((u=this.data)!=null&&u.supplementalText){var K,l,D;if((K=this.data)==null?0:(l=K.colorData)==null?0:(D=l.basicColorPaletteData)==null?0:D.foregroundActivatedColor)return u=_.ui(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+u+"; --yt-endpoint-hover-color:"+u+"; --yt-endpoint-visited-color:"+u+"; --yt-formatted-string-bold-font-weight:700;"}};
_.I.computeForcedDarkTheme=function(){var u,K,l,D=(u=this.data)==null?void 0:(K=u.actionButton)==null?void 0:(l=K.buttonRenderer)==null?void 0:l.style,d,C,W;u=fe6(((d=this.data)==null?void 0:(C=d.colorData)==null?void 0:(W=C.basicColorPaletteData)==null?void 0:W.backgroundColor)||0);return D&&u};
_.I.computeForcedLightTheme=function(){var u,K,l,D=(u=this.data)==null?void 0:(K=u.actionButton)==null?void 0:(l=K.buttonRenderer)==null?void 0:l.style,d,C,W;u=!fe6(((d=this.data)==null?void 0:(C=d.colorData)==null?void 0:(W=C.basicColorPaletteData)==null?void 0:W.backgroundColor)||0);return D&&u};
_.I.computeHasOverflowButton=function(u){return!!u.overflowButton};
_.I.computeHasTitle=function(u){return!!u.title};
_.I.computeTitleMaxFontSize=function(u){return this.computeHasOverflowButton(u)?28:64};
_.I.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.I.computeIsInfeedModernization=function(){var u,K,l,D,d=(u=this.data)==null?void 0:(K=u.actionButton)==null?void 0:(l=K.buttonRenderer)==null?void 0:(D=l.colorData)==null?void 0:D.basicColorPaletteData;return(d==null?void 0:d.backgroundColor)===452984831||(d==null?void 0:d.backgroundColor)===218103808};
MM.prototype.observeDataForCounterfactual=MM.prototype.observeDataForCounterfactual;MM.prototype.observeDataChanged=MM.prototype.observeDataChanged;MM.prototype.observeBasicPalette=MM.prototype.observeBasicPalette;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],MM.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],MM.prototype,"ytdDismissibleItemBehavior",void 0);
_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],MM.prototype,"ytdGuideStateAwareBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],MM.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],MM.prototype,"buttonUpdate",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],MM.prototype,"hasSupplementalText",void 0);_.g([_.U(),_.N("design:type",Object)],MM.prototype,"dismissButtonOverrides",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.N("design:type",Boolean)],MM.prototype,"hasTitle",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.N("design:type",Object)],MM.prototype,"forceDarkTheme",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.N("design:type",Object)],MM.prototype,"forceLightTheme",void 0);_.g([_.U(),_.N("design:type",Object)],MM.prototype,"dynamicTextHeight",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.N("design:type",Object)],MM.prototype,"hasOverflowButton",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.N("design:type",Object)],MM.prototype,"isInfeedModernization",void 0);_.g([_.JU("data.colorData.basicColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MM.prototype,"observeBasicPalette",null);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MM.prototype,"observeDataChanged",null);_.g([_.JU("data.isVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MM.prototype,"observeDataForCounterfactual",null);_.g([_.T({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],MM);
_.F(MM,"ytd-banner-promo-renderer",function(){if(qGk!==void 0)return qGk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return qGk=u},{mode:1});var $H_;var nSH;var rZI;var qM=function(){return _.Q.apply(this,arguments)||this};
_.c(qM,_.Q);_.g([_.U(),_.N("design:type",Object)],qM.prototype,"data",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],qM.prototype,"ytRendererBehavior",void 0);_.g([_.T({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],qM);
_.F(qM,"ytd-hashtag-grid-tile-renderer",function(){if(rZI!==void 0)return rZI;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return rZI=u},{mode:1});var n2=function(){return _.Q.apply(this,arguments)||this};
_.c(n2,_.Q);n2.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
n2.prototype.updateRichGridTrendingHashtagsVisibility=function(){var u,K;if(((u=this.data)==null||!u.isExpanded)&&(K=this.data)!=null&&K.tiles){u=this.data.tiles.length;K=u>this.richGridItemsPerRow?this.richGridItemsPerRow+1:u;var l=Math.ceil(u/K);this.fullyVisibleRows=u%K===1&&l===2?1:Math.min(l,2);this.isShowMoreVisible=this.fullyVisibleRows<l}};
n2.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
n2.prototype.updateRichGridTrendingHashtagsVisibility=n2.prototype.updateRichGridTrendingHashtagsVisibility;_.g([_.U(),_.N("design:type",Object)],n2.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Number)],n2.prototype,"fullyVisibleRows",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],n2.prototype,"isShowMoreVisible",void 0);_.g([_.U({selector:_.Au,value:0}),_.N("design:type",Number)],n2.prototype,"richGridItemsPerRow",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],n2.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],n2.prototype,"ytdReduxBehavior",void 0);_.g([_.JU("data","richGridItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],n2.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.g([_.T({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],n2);
_.F(n2,"ytd-hashtag-grid-shelf-renderer",function(){if(nSH!==void 0)return nSH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return nSH=u},{mode:1});var vS_;var GPi;var rX=function(){var u=_.Q.apply(this,arguments)||this;u.visibleVideos=[];u.hiddenVideos=[];u.modern=_.S("web_modern_buttons");u.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return u};
_.c(rX,_.Q);_.I=rX.prototype;_.I.attached=function(){var u=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",u);this.onDarkModeToggledAction(u)};
_.I.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"}}}};
_.I.dataChanged=function(){var u=this;this.requestElementsPerRow();var K,l;this.currentColorPalette=this.isDarkTheme?(K=this.data)==null?void 0:K.darkColorData:(l=this.data)==null?void 0:l.lightColorData;var D;if((D=this.currentColorPalette)==null?0:D.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.W_(this,function(){u.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.I.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.I.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.I.computeIsFirstFeedItem=function(u){return u};
_.I.onDarkModeToggledAction=function(u){u!==this.isDarkTheme&&this.set("isDarkTheme",u);this.data&&(this.currentColorPalette=u?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.I.getCurrentLogo=function(u,K){if(u)return K?u.darkLogoImage:u.lightLogoImage};
_.I.computeTitleStyle=function(u){var K;if((K=this.data)!=null&&K.title&&u&&u.textPrimary!==void 0)return"color:"+_.ui(u.textPrimary)+";"};
_.I.computeSubtitleStyle=function(u){var K;if((K=this.data)!=null&&K.subtitle&&u&&u.textSecondary!==void 0)return"color:"+_.ui(u.textSecondary)+";"};
_.I.computeDismissIconStyle=function(u){if(this.data&&this.data.dismissButton&&u&&u.textPrimary!==void 0)return"--yt-button-color:"+_.ui(u.textPrimary)+";"};
_.I.computeOverflowButtonStyle=function(u){if(this.data&&this.data.overflowButton&&u&&u.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.ui(u.textPrimary)+";--yt-spec-icon-active-other:"+_.ui(u.textPrimary)+";"};
_.I.computeBackgroundStyle=function(u){if(u&&this.data){var K="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var l=_.O4((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);l&&(K+='background-image:url("'+l+'");')}u.backgroundColor!==void 0&&(K+="background-color:"+_.Kg(u.backgroundColor)+";");return K}};
_.I.computeButton=function(){var u,K=Object.assign({},_.b((u=this.data)==null?void 0:u.showMoreButton,_.lF));if(this.modern&&K){K.style="STYLE_MONO_OUTLINE";var l;if(u=(l=this.currentColorPalette)==null?void 0:l.textPrimary)K.colorData={basicColorPaletteData:{foregroundTitleColor:u,borderColor:u}}}return K};
_.I.shouldShowBottomButton=function(u,K){return!(u==null?0:u.header)&&!(u==null||!u.primaryButton)&&K<3};
_.I.checkExpanded=function(u){this.isExpanded=u&&u.content?this.hiddenVideos.length===0:!0};
_.I.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.I.getLogoHeight=function(u){return this.logoWithPadding(u)?"26":"20"};
_.I.getLogoImageId=function(u){return this.logoWithPadding(u)?"logo-image-with-padding":"logo-image"};
_.I.computeHasSectionHeader=function(u){return!!u.header};
_.I.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var u;if((u=this.data.primaryButton)==null?0:u.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 K;((K=this.data.dismissButton)==null?0:K.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var l,D;((l=this.data)==null?0:(D=l.primaryButton)==null?0:D.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.I.setVisibleVideos=function(u){if(this.data&&this.data.content)if(this.data.content.length){var K=this.data.content.length;this.data.header?u?(this.visibleVideos=this.data.content.slice(0,Math.min(K,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(K,this.slimItemsPerRow),K)):(this.visibleVideos=this.data.content.slice(0,Math.min(K,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(K,this.elementsPerRow),K)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(K,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(K,this.elementsPerRow),K)):(this.visibleVideos=this.data.content.slice(0,Math.min(K,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(K,this.elementsPerRow-1),K))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.I.setHasMovieRenderer=function(){var u;if((u=this.data)!=null&&u.content){var K;this.hasMovieRenderer=!!_.b((K=this.data)==null?void 0:K.content[0],_.E1m)}else this.hasMovieRenderer=!1};
_.I.requestElementsPerRow=function(){_.xs(this.hostElement,"yt-request-elements-per-row")};
_.I.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var u=_.y(this.hiddenMediaRenderers),K=u.next();!K.done;K=u.next())K.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(u=_.bi(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&u.focus()}};
_.I.updateTitleSpec=function(){var u;(u=this.data)!=null&&u.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.I.logoWithPadding=function(u){var K,l,D;return(u=(K=this.getCurrentLogo(u,this.isDarkTheme))==null?void 0:(l=K.thumbnails)==null?void 0:(D=l[0])==null?void 0:D.height)&&u%31===0?!0:!1};
_.I.onUpdateElementsPerRowAction=function(u,K,l){u&&this.elementsPerRow!==u&&(this.elementsPerRow=u);l&&this.slimItemsPerRow!==l&&(this.slimItemsPerRow=l)};
rX.prototype.slimItemsPerRowChanged=rX.prototype.slimItemsPerRowChanged;rX.prototype.elementsPerRowChanged=rX.prototype.elementsPerRowChanged;rX.prototype.dataChanged=rX.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],rX.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],rX.prototype,"ytdDismissibleItemBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],rX.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],rX.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],rX.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],rX.prototype,"currentColorPalette",void 0);_.g([_.U(),_.N("design:type",Array)],rX.prototype,"visibleVideos",void 0);_.g([_.U(),_.N("design:type",Array)],rX.prototype,"hiddenVideos",void 0);
_.g([_.U(),_.N("design:type",Object)],rX.prototype,"primaryButton",void 0);_.g([_.U({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],rX.prototype,"elementsPerRow",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],rX.prototype,"isDarkTheme",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],rX.prototype,"isExpanded",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],rX.prototype,"largeTitle",void 0);
_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],rX.prototype,"hasMovieRenderer",void 0);_.g([_.U(),_.N("design:type",Number)],rX.prototype,"slimItemsPerRow",void 0);_.g([_.U(),_.N("design:type",Boolean)],rX.prototype,"showLightVideoMetadata",void 0);_.g([_.U(),_.N("design:type",Boolean)],rX.prototype,"showDarkVideoMetadata",void 0);_.g([_.U(),_.N("design:type",Number)],rX.prototype,"videoMetadataColor",void 0);
_.g([_.U({reflectToAttribute:!0,selector:_.Yw}),_.N("design:type",Boolean)],rX.prototype,"miniMode",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.N("design:type",Boolean)],rX.prototype,"isFirstFeedItem",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.N("design:type",Boolean)],rX.prototype,"hasSectionHeader",void 0);
_.g([_.U({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],rX.prototype,"roundedContainer",void 0);_.g([_.pg("#visible-video-container ytd-rich-grid-media"),_.N("design:type",Array)],rX.prototype,"visibleMediaRenderers",void 0);_.g([_.pg("#hidden-video-container ytd-rich-grid-media"),_.N("design:type",Array)],rX.prototype,"hiddenMediaRenderers",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],rX.prototype,"modern",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rX.prototype,"dataChanged",null);_.g([_.JU("elementsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rX.prototype,"elementsPerRowChanged",null);_.g([_.JU("slimItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rX.prototype,"slimItemsPerRowChanged",null);
_.g([_.T({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],rX);
_.F(rX,"ytd-brand-video-shelf-renderer",function(){if(GPi!==void 0)return GPi;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return GPi=u},{mode:1});var tVi;var vT=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return u};
_.c(vT,_.Q);_.I=vT.prototype;_.I.attached=function(){var u=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",u);this.onDarkModeToggledAction(u)};
_.I.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"}}}};
_.I.dataChanged=function(){this.requestElementsPerRow();var u,K;this.currentColorPalette=this.isDarkTheme?(u=this.data)==null?void 0:u.darkColorData:(K=this.data)==null?void 0:K.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.I.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.I.computeIsFirstFeedItem=function(u){return u};
_.I.onDarkModeToggledAction=function(u){u!==this.isDarkTheme&&this.set("isDarkTheme",u);this.data&&(this.currentColorPalette=u?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(u),this.updateButtonPalette())};
_.I.shouldShowThumbnailInMetadata=function(u){return u<=1};
_.I.computeVideoMetadataColor=function(){if(this.data){var u;if((u=this.currentColorPalette)==null?0:u.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.I.computeTitleStyle=function(u){var K;if((K=this.data)!=null&&K.title&&u&&u.textPrimary!==void 0)return"color:"+_.ui(u.textPrimary)+";"};
_.I.computeSubtitleStyle=function(u){var K;if((K=this.data)!=null&&K.subtitle&&u&&u.textSecondary!==void 0)return"color:"+_.ui(u.textSecondary)+";"};
_.I.computeOverflowButtonStyle=function(u){if(this.data&&this.data.overflowButton&&u.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.ui(u.textPrimary)+";--yt-spec-icon-active-other:"+_.ui(u.textPrimary)+";"};
_.I.computeBackgroundStyle=function(u){if(u&&this.data){var K="";u.backgroundColor!==void 0&&(K+="background-color:"+_.Kg(u.backgroundColor)+";");return K}};
_.I.computeHasOverflowButton=function(u){return!!u.overflowButton};
_.I.updateButtonPalette=function(){if(this.data){var u;if((u=this.data.primaryButton)==null?0:u.buttonRenderer){var K;if((K=this.currentColorPalette)==null?0:K.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var l;((l=this.currentColorPalette)==null?0:l.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)})}}};
_.I.requestElementsPerRow=function(){_.xs(this.hostElement,"yt-request-elements-per-row")};
_.I.updateTitleSpec=function(){var u;(u=this.data)!=null&&u.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")};
_.I.onUpdateElementsPerRowAction=function(u){u&&this.elementsPerRow!==u&&(this.elementsPerRow=u)};
vT.prototype.elementsPerRowChanged=vT.prototype.elementsPerRowChanged;vT.prototype.dataChanged=vT.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],vT.prototype,"ytdDismissibleItemBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],vT.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],vT.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],vT.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],vT.prototype,"currentColorPalette",void 0);_.g([_.U(),_.N("design:type",Object)],vT.prototype,"primaryButton",void 0);
_.g([_.U({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],vT.prototype,"elementsPerRow",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],vT.prototype,"isDarkTheme",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],vT.prototype,"titleSize",void 0);_.g([_.U(),_.N("design:type",Number)],vT.prototype,"videoMetadataColor",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.Yw}),_.N("design:type",Boolean)],vT.prototype,"miniMode",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.N("design:type",Boolean)],vT.prototype,"isFirstFeedItem",void 0);_.g([_.U({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],vT.prototype,"roundedContainer",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.N("design:type",Boolean)],vT.prototype,"hasOverflowButton",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vT.prototype,"dataChanged",null);_.g([_.JU("elementsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vT.prototype,"elementsPerRowChanged",null);_.g([_.T({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],vT);
_.F(vT,"ytd-brand-video-singleton-renderer",function(){if(tVi!==void 0)return tVi;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return tVi=u},{mode:_.zW("kevlar_poly_si_batch_j070")?1:2});var xHi;var SGB=_.rf(function(u){var K=u.data;return _.n(_.n4,{data:function(){return K().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(K().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var l=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":l=88;break a;default:l=88}return l},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return K().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Mi"),ORk=_.rf(function(u){var K=u.metadataRow;
var l=u.delimiter;return _.n(_.p0,{each:function(){return K().textParts||[]},
keyBy:"INDEX"},function(D,d){return _.n(_.G1,null,_.n(_.qC,{text:D,noWrap:!0,userInput:!0}),_.n(bRo,{delimiter:l,max:function(){return K().textParts.length},
index:d}))})},"Ni"),bRo=_.rf(function(u){var K=u.delimiter;
var l=u.max;var D=u.index;return _.n(_.r,{cond:function(){return(K==null?void 0:K())&&l()-1>D()},
then:function(){return _.n("span",null,K)}})},"Oi"),cZ_=_.rf(function(u){var K=u.data;
u={};return _.n("yt-profile-page-header-information-view-model",{class:_.JB("profile-page-header-information-view-model-wiz",(u["profile-page-header-information-view-model-wiz--mobile"]=!1,u))},_.n(_.r,{cond:function(){return K().onTap},
then:function(){return _.n(_.I5,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.lt(K().onTap)}},_.n(_.mo,{data:function(){return K().thumbnail}},{profilePageHeaderThumbnailViewModel:SGB}))},
else:function(){return _.n("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.n(_.mo,{data:function(){return K().thumbnail}},{profilePageHeaderThumbnailViewModel:SGB}))}}),_.n("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.n(_.r,{cond:function(){return K().onTap},
then:function(){return _.n(_.mo,{data:function(){return K().title}},{profilePageHeaderTitleViewModel:function(l){var D=l.data;
return _.n(_.I5,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.lt(D().onTap)}},_.n(_.qC,{text:function(){return D().title}}))}})},
else:function(){return _.n(_.mo,{data:function(){return K().title}},{profilePageHeaderTitleViewModel:function(l){var D=l.data;
return _.n(_.qC,{text:function(){return D().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.n(_.mo,{data:function(){return K().metadata}},{profilePageHeaderMetadataViewModel:function(l){var D=l.data;
return _.n(_.r,{cond:function(){return D().metadataRows},
then:function(d){return _.n("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.n(_.p0,{each:d,keyBy:"INDEX"},function(C,W){return _.n(_.G1,null,_.n(ORk,{metadataRow:C,delimiter:" \u2022 "}),_.n(bRo,{delimiter:" \u2022 ",max:function(){return d().length},
index:W}))}))}})}})))},"Pi");
cZ_.idomCompat=!0;_.SX(cZ_,"yt-profile-page-header-information-view-model",{props:{data:_.M6}});var Go=function(){return _.Q.apply(this,arguments)||this};
_.c(Go,_.Q);Go.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Go.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Go.prototype,"data",void 0);_.g([_.T({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Go);
_.F(Go,"ytd-effect-pivot-header-view-model",function(){if(xHi!==void 0)return xHi;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return xHi=
u},{mode:1});var adB;var tM=function(){return _.Q.apply(this,arguments)||this};
_.c(tM,_.Q);tM.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],tM.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],tM.prototype,"data",void 0);_.g([_.T({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],tM);
_.F(tM,"ytd-source-pivot-header-renderer",function(){if(adB!==void 0)return adB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return adB=u},{mode:1});_.zLE=_.rf(function(u){var K=u.data;var l=function(){var D;return _.lC((D=K())==null?void 0:D.rendererContext)};
u={};return _.n("content-list-item-view-model",{el:_.v1(_.DS(function(){return K().rendererContext})),
class:_.JB("ytContentListItemViewModelHost",(u.ytContentListItemViewModelTappable=l,u)),role:function(){return l()?"listitem":void 0},
tabindex:function(){return l()?0:void 0}},_.n("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.n("div",{class:"ytContentListItemViewModelImageContainer"},_.n(_.r,{cond:function(){return K().image},
then:function(D){return _.n(_.n4,{data:D,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.n(_.mo,{data:function(){var D;
return(D=K())==null?void 0:D.avatar}},{avatarViewModel:_.Y_})),_.n("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.n("div",{class:_.JB("ytContentListItemViewModelTitle",function(){a:{switch(K().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var D="ytContentListItemViewModelProminentTitle";
break a}D=void 0}return D})},_.n(_.qC,{text:function(){return K().title}})),_.n("div",{class:"ytContentListItemViewModelMetadata"},_.n(_.mo,{data:function(){return K().metadata}},{contentMetadataViewModel:function(D){return _.n(_.bs,{data:D.data,
layout:1})}})))),_.n("div",{class:"ytContentListItemViewModelActionButton"},_.n(_.mo,{data:function(){var D;
return(D=K())==null?void 0:D.actionButton}},{buttonViewModel:_.P2,
toggleButtonViewModel:_.YK})))},"Qi");_.SX(_.rf(function(u){var K=function(){return u.data().background},l=function(){return u.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},D=function(){return u.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.n("yt-card-view-model",{class:_.JB("ytCardViewModelHost",u.className)},_.n(_.Oa,{contentId:function(){return u.data().contentId}},function(){return _.n("div",{class:_.JB("ytCardViewModelCardViewModelInner",function(){return TTH(u.data().cardStyle)})},_.n(_.mo,{data:K},{cinematicContainerViewModel:function(d){return _.n(_.DMN,{data:d.data})}}),_.n("div",{class:"ytCardViewModelContentWrapper"},_.n(_.r,{cond:function(){return!l()},
then:function(){var d={};return _.n("div",{class:"ytCardViewModelTopContent"},_.n(_.mo,{data:function(){return u.data().topContent}},{contentListItemViewModel:function(C){return _.n(_.zLE,{data:C.data})}}),_.n("div",{class:_.JB("ytCardViewModelInlineTrailingAction",(d.ytCardViewModelInlineCenterTrailingAction=D,d))},_.n(_.mo,{data:function(){return u.data().trailingAction}},{buttonViewModel:function(C){return _.n(_.P2,{data:C.data})}})))}}),_.n("div",{class:"ytCardViewModelBodyContent"},_.n(_.mo,
{data:function(){return u.data().bodyContent}},{contentListItemViewModel:function(d){return _.n(_.zLE,{data:d.data})}}))),_.n(_.r,{cond:function(){return l()},
then:function(){return _.n("div",{class:"ytCardViewModelOverlayTrailingAction"},_.n(_.mo,{data:function(){return u.data().trailingAction}},{buttonViewModel:function(d){return _.n(_.P2,{data:d.data})}}))}}))}))},"Ri"),"yt-card-view-model",{props:{data:_.M6,
className:_.M6}});_.SX(_.rf(function(u){var K=function(){return _.b(u.data().flowRoot,Llp)};
_.ZY(function(){var l=K(),D=function(){},d=function(){};
if(l){var C,W,M,q=((M=_.b((C=K())==null?void 0:(W=C.steps)==null?void 0:W[0],_.r9_))==null?void 0:M.stepId)||"";gIp(l,q);D=kXE(l);d=ZCo(l)}_.No(function(){var v=K();v&&_.Mu().dispatch(_.TT("flowStateEntity",v.flowStateEntityKey));D();D=function(){};
d();d=function(){}})});
return _.n("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.n(_.Oa,{contentId:function(){return u.data().contentId}},function(){return _.n("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.n(_.r,{cond:K,
then:function(l){return _.n(_.MHE,{data:l})}}))}))},"Si"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.M6}});_.SX(_.rf(function(){return _.n("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.n("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.n("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.n(_.L0E,null)),_.n(_.vtC,{data:{rows:1},isExploreHub:!0}))},"Ti"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.SX(_.rf(function(u){var K=u.data;var l=u.standardUnitMinWidth;u=_.y((0,_.SEB)(K));var D=u.next().value,d=u.next().value,C=function(){var M,q=(M=D())==null?void 0:M.contents;return q==null||q.length===0},W=function(){d(Object.assign({},D(),{contents:[]}))};
return _.n("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.v1(_.r_({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var M=_.b(K().chipsShelf,KOE);if(M!=null&&M!=null&&M.autoselectChipOnVisible){var q,v,G=_.b(M==null?void 0:(q=M.contents)==null?void 0:q[(v=M.autoselectedChipIndex)!=null?v:0],_.ID);G&&G.tapCommand&&_.IT(G.tapCommand)}}}))},_.n(_.Oa,{contentId:function(){return K().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.n("div",null,_.n("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.n(_.mo,{data:function(){return K().header}},{sectionHeaderViewModel:function(M){return _.n(_.za,{data:M.data,
disableHorizontalPadding:!0})}})),_.n("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.n(_.mo,{data:function(){return K().chipsShelf}},{chipsShelfViewModel:function(M){return _.n(_.OEN,{data:M.data,
callback:W,enableSingleChipSelection:!0})}})),_.n("div",null,_.n(_.r,{cond:C,
then:function(){return _.n("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.n(_.vtC,{data:{rows:1},isExploreHub:!0}))}}),_.n(_.mo,{data:function(){var M;
return(M=D())==null?void 0:M.contents}},{richShelfRenderer:function(M){return _.n(_.S0B,{data:M.data,
isInnerShelf:!0,standardUnitMinWidth:l})}})))}))},"Ui"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.M6,
standardUnitMinWidth:_.M6}});var xj=function(){return _.Q.apply(this,arguments)||this};
_.c(xj,_.Q);
xj.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
xj.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.g([_.e(_.Ll),_.N("design:type",Object)],xj.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],xj.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ir),_.N("design:type",Object)],xj.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],xj.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Number)],xj.prototype,"standardUnitMinWidth",void 0);_.g([_.T({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],xj);
_.F(xj,"ytd-rich-section-renderer",function(){if(vS_!==void 0)return vS_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return vS_=u},{mode:_.zW("kevlar_poly_si_batch_j029")?
1:2});_.SX(_.jKB,"yt-profile-identity-info-view-model",{props:{data:_.M6,hideDivider:_.M6,isChannelInfoCard:_.M6}});_.SX(_.M62,"yt-page-header-view-model",{props:{data:_.M6,noPadding:_.M6,enableBanner:_.M6,cinematicContainerTopbarOffset:_.M6,allowCinematicContainerOverflow:_.M6,displayAsSidebar:_.M6,displayAsPanel:_.M6,alwaysUseMediumTextMetadata:_.M6}});_.SX(_.rf(function(u){var K=u.data;var l=function(){var d;return(d=K().numColumns)!=null?d:2},D=function(){return l()>1?3:2};
u={};return _.n("ytd-rich-grid-group",{class:_.JB("ytdRichGridGroupHost",(u.ytdRichGridGroupHostFirstColumn=function(){return K().colIndex===0},u)),
style:_.Fb({"--ytd-rich-grid-group-num-columns":l,"--ytd-rich-grid-items-per-group":D})},_.n("div",{class:"ytdRichGridGroupContents"},_.n(_.mo,{data:function(){var d;return(d=K().contents)==null?void 0:d.slice(0,D())}},{richItemRenderer:function(d){return _.n(_.tNm,{data:d.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Vi"),"ytd-rich-grid-group",{props:{data:_.M6}});var S6=function(){var u=_.Q.apply(this,arguments)||this;u.resizeOnObserverInit=!1;u.isInlinePreviewDisabled=_.S("web_disable_inline_preview");u.disableStickyFilterBar=!1;u.transparentBackgroundChipsBar=!1;u.hideChipsBar=!1;u.isWatchDefaultLayout=!0;u.continuationShowButton=!1;u.rowReducedHorizontalMargin=!1;u.useCompactList=!1;u.manualDownloadsPresent=!1;u.smartDownloadsPresent=!1;u.shouldRenderDownloadsBanner=!1;u.hasOptedIntoSmartDownloads=!1;u.elementsPerRow=4;u.typographyBump=!1;u.showGnomeContents=
!1;u.showExploreHubContents=!1;u.slimItemsPerRow=1;u.pageLoadingFromNavigation=!1;u.loggingRefactor=_.S("kevlar_rich_grid_logging_fix");u.resizeObserver=null;u.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"};u.rendererToTagNameMap=
new Map(Object.entries(u.contentMapping()).map(function(K){var l=_.y(K);K=l.next().value;l=l.next().value;return[K,l.component]}));
u.insertedContent=new Map;return u};
_.c(S6,_.Q);_.I=S6.prototype;_.I.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var u=_.y(_.bi(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),K=u.next();!K.done;K=u.next())K.value.useCompactList=this.useCompactList};
_.I.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var u=_.y(_.bi(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),K=u.next();!K.done;K=u.next())K=K.value,K.sizing=this.sizing,K.typographyBump=this.typographyBump};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.I.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]]"}}}};
_.I.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}}};
_.I.attached=function(){document.addEventListener("yt-page-type-changed",_.Ql(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21582_throttledOnResize=new _.MC(this.resizeObserved,_.Sg("rich_grid_resize_delay_ms",50),this)};
_.I.detached=function(){var u;(u=this.resizeObserver)==null||u.disconnect();document.removeEventListener("yt-page-type-changed",_.Ql(this,this.onPageChange))};
_.I.insertRichSection=function(u){var K=u.richItemTargetId;u=u.richSectionRendererToInsert;K&&u&&(this.insertedContent.set(K,{content:u,timestamp:Date.now()}),this.reflowContent())};
_.I.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.I.computeIsInlinePreviewEnabled=function(u,K,l){return _.S("web_disable_inline_preview")?!1:!l&&_.I_o({miniplayerIsActive:u,miniplayerPlaybackState:K})};
_.I.computeSizing=function(){var u=_.QJZ(this.data);if(u||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return u?this.useCompactList?"COMPACT":u:this.miniMode?"COMPACT":_.S("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.I.updateItemMinAndMaxWidth=function(){var u=_.Sg("rich_grid_max_item_width",500);u>0&&_.e8(this.hostElement,{"--ytd-rich-grid-item-max-width":u+"px"});var K;u=this.getRichItemMinWidth((K=this.hostElement)==null?void 0:K.clientWidth);u>0&&_.e8(this.hostElement,{"--ytd-rich-grid-item-min-width":u+"px"})};
_.I.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.I.resizeObserved=function(){_.bI(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.I.navigateBackToHome=function(){_.S("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var u=_.GB().resolve(_.GT).isOnWatch(),K,l=((K=_.PI(location.pathname))==null?void 0:K.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(l)||u)&&this.gnomeContents&&_.S("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);u&&this.exploreHubContents&&_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Mu().dispatch(_.SZ({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.I.onPageChange=function(){var u=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.S("disable_chip_select_on_nav")||_.bI(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.YL.addJob(function(){u.pageLoadingFromNavigation=!1;_.S("disable_chip_select_on_nav")&&_.S("h5_reset_cache_and_filter_before_update_masthead")&&u.resetCacheAndIsFilteredFeed();u.setMasthead();u.maybeSetBigYoodle();u.forceRefreshAndLog();u.terminateVideoPreview();_.S("web_hide_gnome_until_user_navigates_back_to_home")&&
(u.dataChanged(),_.W_(u,function(){if(u.showGnomeContents){var K=Array.from(_.bi(u.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(D){D=_.bi(D).querySelector("ytd-rich-shelf-renderer");return!!D&&D.isGnomeShelf()});
if(K){K=K.offsetTop-u.contentsElement.offsetTop;var l=_.GB().resolve(_.GT).getCurrentPage();l&&l.getPageScrollingElement().scrollTo({top:K,behavior:"smooth"})}}}));
_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&(u.dataChanged(),_.W_(u,function(){if(u.showExploreHubContents&&!_.S("web_explore_hub_no_scroll")){var K=Array.from(_.bi(u.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(D){return!!D.querySelector("ytd-talk-to-recs-flow-renderer")});
if(K){K=K.offsetTop-u.contentsElement.offsetTop;var l=_.GB().resolve(_.GT).getCurrentPage();l&&l.getPageScrollingElement().scrollTo({top:K,behavior:"smooth"})}}}))},8)):((_.S("web_hide_gnome_until_user_navigates_back_to_home")||_.S("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.I.dataChanged=function(){var u=this,K=_.Sg("web_rich_grid_row_margin",0);K>0&&_.e8(this.hostElement,{"--ytd-rich-grid-row-margin":K+"px"});_.bI(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.W_(this,function(){u.updateRichItemGridPositions();u.contentsElement&&_.e8(u.hostElement,{"--ytd-rich-grid-content-offset-top":u.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.I.initResizeObserver=function(){var u=this;if(window.ResizeObserver){var K;(K=this.resizeObserver)==null||K.disconnect();var l=!1;this.resizeObserver=new ResizeObserver(function(){if(l){var D;(D=u.resizeObserver)==null||D.disconnect();var d;(d=u.JSC$21582_throttledOnResize)==null||d.fire();requestAnimationFrame(function(){var W;(W=u.JSC$21582_throttledOnResize)==null||W.fire();u.initResizeObserver()})}else if(l=!0,u.resizeOnObserverInit){var C;
(C=u.JSC$21582_throttledOnResize)==null||C.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.I.contentLengthChanged=function(){if(_.S("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.bI(this.hostElement,"ytd-rich-item-index-update-action")};
_.I.updateElementsPerRow=function(){_.bI(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.SZ({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.SZ({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.I.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.I.onRichShelfRendererCollapse=function(u){if(this.shownItems){var K=u.detail;u=this.shownItems.findIndex(function(D){var d,C;return((C=_.b(D==null?void 0:(d=D.richSectionRenderer)==null?void 0:d.content,_.xiw))==null?void 0:C.trackingParams)===K});
var l=u+1;u<0||l>=this.contentsElement.children.length||!this.shownItems[l].richItemRenderer||this.contentsElement.children[l].scrollIntoView({behavior:"smooth",block:"start"})}};
_.I.onSoftReloadPage=function(){this.scrollUpToTop()};
_.I.handleRerenderDownloadsData=function(){_.S("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.I.handlePlaylistRemoveVideosAction=function(u){var K;if(((K=_.b(u,_.wWm))==null?0:K.setVideoIds)&&this.data&&this.data.contents){u=_.b(u,_.wWm).setVideoIds;for(K=this.data.contents.length-1;K>=0;){var l=_.b(this.data.contents[K],_.Yg);(l=l&&_.b(l.content,_.Kt))&&l.setVideoId&&u.includes(l.setVideoId)&&this.splice("data.contents",K,1);K--}this.updateIndices()}};
_.I.updateIndices=function(){if(this.data&&this.data.contents)for(var u=0;u<this.data.contents.length;u++)this.set("data.contents."+u+".richItemRenderer.index",_.o7(String(u+1)))};
_.I.hasTopRowInlinePlayableVideoWithEndorsement=function(u){var K;return!((K=u.slice(0,this.getItemsPerRow()))==null||!K.some(function(l){var D;l=_.b(l==null?void 0:(D=l.richItemRenderer)==null?void 0:D.content,_.dz);var d;return(l==null?void 0:l.inlinePlaybackEndpoint)&&(l==null?void 0:(d=l.thumbnailOverlays)==null?void 0:d.some(function(C){return C.thumbnailOverlayEndorsementRenderer}))}))};
_.I.refreshGridLayoutNew=function(u,K,l,D){var d=D.postsPerRow;var C=D.slimItemsPerRow;var W=D.gameCardsPerRow;D=D.miniGameCardsPerRow;var M;if((M=this.data)==null||!M.contents||!this.containerWidth)return!1;var q;if((q=this.data.responsiveContainerConfiguration)==null?0:q.responsiveSize){var v=_.e7h(this.data.responsiveContainerConfiguration,this.containerWidth),G;M=_.o5(Object.assign({},v,{standardUnitMinWidth:(G=this.data)==null?void 0:G.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&v.isCompactList)}else M=_.o5({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(v=this.data)==null?void 0:v.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=M.typographyBump;G=!1;if(u||this.elementsPerRow!==M.numItems||this.postsPerRow!==d||this.slimItemsPerRow!==C||this.gameCardsPerRow!==
W||this.miniGameCardsPerRow!==D||this.gutter!==M.gutter)G=this.elementsPerRow!==M.numItems,this.elementsPerRow=M.numItems,this.postsPerRow=d,this.slimItemsPerRow=C,this.gameCardsPerRow=W,this.miniGameCardsPerRow=D,this.gutter=M.gutter,this.itemWidth=M.itemWidth,this.reflowContent(K),_.e8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":M.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(l);this.ytdReduxBehavior.dispatch(_.SZ({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:M.maxContainerWidth}));return G};
_.I.refreshGridLayout=function(u,K){var l,D=(l=this.hostElement)==null?void 0:l.clientWidth;this.containerWidth=this.adjustRichGridWidth(D,!0);var d;if((d=this.data)==null||!d.contents||!this.containerWidth)return u&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.S("rg_pending_reflow_ks")&&(u=!0,this.pendingForceReflow=!1);l=this.getRichItemMinWidth(D);var C=this.isShortsPanel?146:194,W=this.getMiniGameCardMinWidth(),M=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
D=l=this.calcElementsPerRow(l,M);(d=l<=3&&this.miniModeAllowed())&&(l=this.calcElementsPerRow(240,4));var q=this.calcMaxSlimElementsPerRow(l,M,this.isDefaultGrid);M=this.calcElementsPerRow(C,q);var v=this.calcElementsPerRow(this.isCompactGrid?C:154,q);C=this.calcElementsPerRow(this.isCompactGrid?C:W,q);W=!1;if(this.sizing)return this.refreshGridLayoutNew(u,K,d,{postsPerRow:D,slimItemsPerRow:M,gameCardsPerRow:v,miniGameCardsPerRow:C});if(u||this.elementsPerRow!==l||this.postsPerRow!==D||this.slimItemsPerRow!==
M||this.gameCardsPerRow!==v||this.miniGameCardsPerRow!==C)W=this.elementsPerRow!==l,this.elementsPerRow=l,this.postsPerRow=D,this.slimItemsPerRow=M,this.gameCardsPerRow=v,this.miniGameCardsPerRow=C,this.reflowContent(K),this.updateElementsPerRow(),_.e8(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)&&_.e8(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(d);_.bI(this.hostElement,"yt-rich-grid-layout-refreshed");return W};
_.I.getRichItemMinWidth=function(u){var K=_.Sg("rich_grid_min_item_width",310);if(!_.S("kevlar_disable_min_width_override")){var l,D;K=(D=(l=this.data)==null?void 0:l.minItemWidth)!=null?D:K}return K+_.c6o(u)};
_.I.calcMaxSlimElementsPerRow=function(u,K,l){return(l===void 0?0:l)?u===1?2:u%2===0?_.S("web_shorts_2_by_3_reduce_items_per_row")&&u>=4?u/2*3-1:u/2*3:_.S("web_shorts_2_by_3_reduce_items_per_row")&&u>=3?u+1:u+2:K*2};
_.I.adjustRichGridWidth=function(u,K){var l=_.S("disable_rich_grid_guide_compensation");if(!this.isWatch&&!l){l=_.GB().resolve(_.vv(_.dP));var D=l==null?void 0:l.guideElement;if(!(!l||l.getData()||D!=null&&D.opened||l.getMiniGuideVisible()))if(l.canFitPersistentGuide(u)&&l.getGuideExpandsAutomatically()){var d,C,W=Number((d=window.getComputedStyle(this.hostElement))==null?void 0:(C=d.getPropertyValue("--app-drawer-width"))==null?void 0:C.replace("px",""));u-=W||0}else if(l.canFitMiniGuide(u)){var M;
d=Number((W=window.getComputedStyle(this.hostElement))==null?void 0:(M=W.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:M.replace("px",""));u-=d||0}}u>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(u-=K?32:48));return u};
_.I.calcElementsPerRow=function(u,K){var l=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),D=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((l+D)/(u+D))||1,K)};
_.I.reflowContent=function(u){var K=this;if(!this.isReflowing){this.isReflowing=!0;var l,D,d=!!((l=this.data)==null?0:(D=l.contents)==null?0:D.some(function(O){return _.b(O,_.rr)}));
l=this.getItemsPerRow();var C;D=(C=this.data)==null?void 0:C.reflowOptions;u&&(_.As("rgr_s"),_.W_(this,function(){_.As("rgr_nrf")}));
u={};(C=_.bi(this.hostElement).querySelector("#contents"))&&(u={contentElement:C,rendererToTagNameMap:this.rendererToTagNameMap});C=(C=this.data.contents)?C.slice():[];var W=(_.S("web_hide_gnome_behind_feed_filter_chip")||_.S("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,M=_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,q=-1,v=-1;if(this.isHomePage&&M){for(M=0;M<C.length;M++){var G=void 0,t=void 0;_.b((G=C[M])==null?void 0:
(t=G.richSectionRenderer)==null?void 0:t.content,EIo)&&(v=M)}v>-1&&(this.exploreHubContents=C.splice(v,1))}if(this.isHomePage&&W){for(v=0;v<C.length;v++)t=G=void 0,(M=_.b((G=C[v])==null?void 0:(t=G.richSectionRenderer)==null?void 0:t.content,_.xiw))&&W&&(t=G=void 0,M=_.b((G=M)==null?void 0:(t=G.contents)==null?void 0:t[0],_.Yg),G=void 0,_.b((G=M)==null?void 0:G.content,_.x2B)&&(q=v));q>-1&&(this.gnomeContents=C.splice(q,1))}var x=jkI(C,l,d,D,this.getRichGridStyle(),u,this.insertedContent);d=function(){K.shownItems=
x;K.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(x),_.W_(this,d)):d()}};
_.I.getFirstRowItems=function(u){for(var K=[],l=0;l<u.length;l++){var D=void 0,d=void 0,C=void 0,W=void 0,M=void 0,q=void 0;if(((D=u[l])==null?void 0:(d=D.richItemRenderer)==null?void 0:d.rowIndex)===0||((C=u[l])==null?void 0:(W=C.richGroupRenderer)==null?void 0:W.rowIndex)===0||((M=u[l])==null?void 0:(q=M.richSectionRenderer)==null?void 0:q.rowIndex)===0)K.push(u[l]);else break}return K};
_.I.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.I.handleChipCloudChipSelectAction=function(u,K){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.S("web_hide_gnome_behind_feed_filter_chip")&&(K?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.I.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.S("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.I.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.S("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.I.terminateVideoPreview=function(){_.bI(this.hostElement,"yt-terminate-video-preview-action")};
_.I.updateRichItemGridPositions=function(){var u={gridData:{gridColumnCount:this.elementsPerRow}},K;if((K=this.data)==null?0:K.trackingParams)this.loggingRefactor?_.iT().stateChanged(this.data.trackingParams,u):(K=_.AC())&&_.MK(K,_.gf(this.data.trackingParams),u);_.bI(this.hostElement,"ytd-rich-item-index-update-action")};
_.I.miniModeAllowed=function(){return _.S("disable_channels_mini_mode")?!1:this.isChannelPage};
_.I.getMiniGameCardMinWidth=function(){return 154};
_.I.updateMiniMode=function(u){this.miniMode=this.miniModeAllowed()&&u;this.ytdReduxBehavior.dispatch(_.SZ({type:"SET_RICH_GRID_MINI_MODE",payload:u}))};
_.I.isCurrentPage=function(){return location.pathname===this.pagePath};
_.I.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var u=_.GB().resolve(_.GT).getCurrentPage();u&&u.setScrollTop(0)}};
_.I.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.I.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.I.maybeSetBigYoodle=function(){var u,K=(u=this.data)==null?void 0:u.bigYoodle;this.bigYoodleData!==K&&(this.bigYoodleData=K)};
_.I.setMasthead=function(){var u;((u=this.data)==null?0:u.masthead)?this.mastheadData=this.data.masthead:_.S("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.I.getRichGridStyle=function(){var u,K;return(K=(u=this.data)==null?void 0:u.style)!=null?K:"RICH_GRID_STYLE_UNKNOWN"};
_.I.onIsShortsGridChange=function(){var u=this.ytdReduxBehavior,K=u.dispatch,l=this.getRichGridStyle();K.call(u,_.SZ({type:"SET_RICH_GRID_STYLE",payload:l}))};
_.MN.Object.defineProperties(S6.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var u;return(((u=this.data)==null?void 0:u.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var u;return(((u=this.data)==null?void 0:u.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var u=_.GB().resolve(_.GT).getCurrentPage(),K,l,D;return(((K=this.data)==null?void 0:K.targetId)==="browse-feedFEsfv_audio_pivot"||_.S("web_enable_channel_pivot_panel")&&((l=this.data)==null?void 0:l.targetId)==="browse-feedFEsfv_channel_pivot"||_.S("web_enable_effect_pivot_panel")&&((D=this.data)==null?void 0:D.targetId)==="browse-feedFEsfv_effect_pivot")&&(u==null?void 0:u.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.S("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 u;return!((u=this.data)==null?0:u.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var u;return((u=_.GB().resolve(_.GT).getCurrentPage())==null?void 0:u.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var u;return((u=_.GB().resolve(_.GT).getCurrentPage())==null?void 0:u.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var u;return this.hideChipsBar||(((u=this.data)==null?void 0:u.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.S("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var u;return(((u=this.data)==null?void 0:u.targetId)||"")==="watch-next-feed"&&!_.S("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return((u=this.data)==null?0:u.enableContentSpecificAspectRatio)||((K=this.data)==null?0:(l=K.responsiveContainerConfiguration)==null?0:l.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Sg("web_continuation_handler_margin",0):0}}});
S6.prototype.onIsShortsGridChange=S6.prototype.onIsShortsGridChange;S6.prototype.onReloadContinuationFinish=S6.prototype.onReloadContinuationFinish;S6.prototype.reflowContent=S6.prototype.reflowContent;S6.prototype.handleRerenderDownloadsData=S6.prototype.handleRerenderDownloadsData;S6.prototype.onRichShelfRendererCollapse=S6.prototype.onRichShelfRendererCollapse;S6.prototype.onRequestElementsPerRow=S6.prototype.onRequestElementsPerRow;S6.prototype.contentLengthChanged=S6.prototype.contentLengthChanged;
S6.prototype.dataChanged=S6.prototype.dataChanged;S6.prototype.onSizingChange=S6.prototype.onSizingChange;S6.prototype.onUseCompactListChange=S6.prototype.onUseCompactListChange;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],S6.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ae),_.N("design:type",Object)],S6.prototype,"ironResizableBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],S6.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Ir),_.N("design:type",Object)],S6.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],S6.prototype,"componentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],S6.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],S6.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0,selector:_.Yw}),_.N("design:type",Boolean)],S6.prototype,"miniMode",void 0);_.g([_.U({value:[]}),_.N("design:type",Array)],S6.prototype,"shownItems",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],S6.prototype,"isReflowing",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],S6.prototype,"isFilteredFeed",void 0);_.g([_.U({selector:_.xGn}),_.N("design:type",Boolean)],S6.prototype,"guideIsExpanded",void 0);
_.g([_.U({selectorArgs:["entitySelectorType"],selector:function(u,K){if(_.S("kevlar_modern_downloads_page")&&K&&K!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(K){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":K=u.entities;var l=_.NK(K),D=_.kw(K),d=_.itL(u),C=_.p3q(u),W=_.Tzq(u),M=_.WKZ(K),q=_.ih(l),v=_.ZJ(K);return _.xUn(l,D,M,_.$GH(K),d,C,q,v,W,_.FKR(u),_.hu(u));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return u=_.NK(u.entities),_.bun(u);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return u=
_.yFo(u.entities),_.Ouq(u);default:_.hV(new _.wv("Error: entitySelectorType defined but not matched in selector.",u,K))}}}),
_.N("design:type",Object)],S6.prototype,"entityDrivenRichGridData",void 0);_.g([_.U(),_.N("design:type",Object)],S6.prototype,"resizeOnObserverInit",void 0);_.g([_.U(),_.N("design:type",Object)],S6.prototype,"bigYoodleData",void 0);_.g([_.U(),_.N("design:type",Object)],S6.prototype,"mastheadData",void 0);_.g([_.U(),_.N("design:type",Boolean)],S6.prototype,"isInlinePreviewDisabled",void 0);_.g([_.U(),_.N("design:type",Object)],S6.prototype,"disableStickyFilterBar",void 0);
_.g([_.U(),_.N("design:type",Object)],S6.prototype,"transparentBackgroundChipsBar",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],S6.prototype,"hideChipsBar",void 0);_.g([_.U(),_.N("design:type",Object)],S6.prototype,"isWatchDefaultLayout",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],S6.prototype,"continuationShowButton",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],S6.prototype,"rowReducedHorizontalMargin",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],S6.prototype,"useCompactList",void 0);_.g([_.U({selector:function(u){return _.kw(u.entities).length>0}}),
_.N("design:type",Object)],S6.prototype,"manualDownloadsPresent",void 0);_.g([_.U({selector:function(u){return _.NK(u.entities).length>0}}),
_.N("design:type",Object)],S6.prototype,"smartDownloadsPresent",void 0);_.g([_.U({selector:_.p3q}),_.N("design:type",Object)],S6.prototype,"shouldRenderDownloadsBanner",void 0);_.g([_.U({selector:_.itL}),_.N("design:type",Object)],S6.prototype,"hasOptedIntoSmartDownloads",void 0);_.g([_.JU("useCompactList"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S6.prototype,"onUseCompactListChange",null);
_.g([_.JU("sizing","typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S6.prototype,"onSizingChange",null);_.g([_.U({selector:_.aGH}),_.N("design:type",Number)],S6.prototype,"miniplayerPlaybackState",void 0);_.g([_.U({selector:_.X6}),_.N("design:type",Boolean)],S6.prototype,"miniplayerIsActive",void 0);
_.g([_.U({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.N("design:type",Boolean)],S6.prototype,"isInlinePreviewEnabled",void 0);_.g([_.U({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.N("design:type",String)],S6.prototype,"sizing",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],S6.prototype,"elementsPerRow",void 0);
_.g([_.U(),_.N("design:type",Object)],S6.prototype,"typographyBump",void 0);_.g([_.U(),_.N("design:type",Number)],S6.prototype,"itemWidth",void 0);_.g([_.BF("#header"),_.N("design:type",HTMLElement)],S6.prototype,"headerElement",void 0);_.g([_.BF("#contents"),_.N("design:type",HTMLElement)],S6.prototype,"contentsElement",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S6.prototype,"dataChanged",null);
_.g([_.wn("data.contents.length"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S6.prototype,"contentLengthChanged",null);_.g([_.PF("yt-request-elements-per-row"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S6.prototype,"onRequestElementsPerRow",null);
_.g([_.PF("yt-rich-shelf-renderer-collapse"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],S6.prototype,"onRichShelfRendererCollapse",null);_.g([_.wn("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S6.prototype,"handleRerenderDownloadsData",null);
_.g([_.R("data"),_.N("design:type",String),_.N("design:paramtypes",[])],S6.prototype,"entitySelectorType",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"isSub",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"isWatch",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"isShortsPanel",null);_.g([_.U({reflectToAttribute:!0}),_.R("isWatch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"reducedTopMargin",null);_.g([_.U({reflectToAttribute:!0}),_.R("data","isWatch","isWatchDefaultLayout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"noTopMargin",null);
_.g([_.U({reflectToAttribute:!0}),_.R("isInlinePreviewEnabled","shownItems"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"topRowEndorsement",null);_.g([_.R("data.header"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"hideHeader",null);_.g([_.PF("yt-rich-grid-reflow"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean]),_.N("design:returntype")],S6.prototype,"reflowContent",null);
_.g([_.PF("yt-reload-continuation-finish"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S6.prototype,"onReloadContinuationFinish",null);_.g([_.R("data"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"isSlimGrid",null);_.g([_.R("data"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"isShortsGrid",null);
_.g([_.R("data","isSlimGrid","isShortsGrid"),_.U(),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"noRichItemGutterMargins",null);_.g([_.R("data"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"isShortsGridSlim",null);_.g([_.R("data"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"isCompactGrid",null);
_.g([_.R("data"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"isDefaultGrid",null);_.g([_.R("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"hideChipsBarOnHome",null);_.g([_.R("data.targetId"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"hideChipsBarOnWatch",null);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S6.prototype,"onIsShortsGridChange",null);_.g([_.R("data.enableContentSpecificAspectRatio"),_.U(),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S6.prototype,"force16By9ThumbnailAspectRatio",null);_.g([_.R("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],S6.prototype,"continuationTriggerOffset",null);_.g([_.T({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],S6);
_.F(S6,"ytd-rich-grid-renderer",function(){if($H_!==void 0)return $H_;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return $H_=u},{mode:2});var eLI=_.rf(function(u){var K=u.thumbsUp,l=u.thumbsDown,D=u.rightAlignThumbs;u=_.y(_.On(!1,void 0,"FjNDrf"));var d=u.next().value,C=u.next().value;u=_.y(_.On(!1,void 0,"Tphjfb"));var W=u.next().value,M=u.next().value;u={};return _.n("div",{class:_.JB("ytwThumbsUpDownThumbs",(u.ytwThumbsUpDownRightAlign=function(){return D==null?void 0:D()},u))},_.n(_.YK,{data:K,
onToggle:function(q){C(q);W()&&M(!1)},
buttonShapeOverrides:function(){return{toggled:d()}}}),_.n(_.YK,{data:l,
onToggle:function(q){M(q);d()&&C(!1)},
buttonShapeOverrides:function(){return{toggled:W()}}}))},"Wi");
eLI.idomCompat=!0;var UHi=_.rf(function(u){var K=function(){return u.data().pendingStateEntityKey||""},l=_.ie(_.Y0k,K),D=function(){var M;
if(!(M=u.disabled())){var q;M=!((q=l())==null||!q.isPendingResponse)}return M},d=_.y(_.On(iCH(""),void 0,"aC8eBe")),C=d.next().value,W=d.next().value;
_.N_(function(){requestAnimationFrame(function(){var M=u.data().onShowAnimationMs||0;M=M>0?iCH("--chip-animation-duration: "+M+"ms;"):iCH("");W(M)})});
return _.n("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:C},_.n(_.p0,{each:function(){return u.data().chipData||[]},
keyBy:"REFERENCE"},function(M){return _.n(RL_,{data:M,disabled:D,pendingStateKey:K,onError:u.onError})}))},"Xi"),RL_=_.rf(function(u){var K=_.W4("button"),l=_.y(_.On(!0,void 0,"NaMiCd")),D=l.next().value,d=l.next().value,C=function(){return u.data().text.content},W=_.p4(function(M){var q,v,G,t,x,O,a,f;
return _.H(function(B){switch(B.nextAddress){case 1:M.stopPropagation();if(u.disabled())return B.return();v=String(Math.floor(((q=_.f1())==null?void 0:q.getCurrentTime())||0)*1E3);G="youchat-"+Date.now();t=function(){_.D$(u.data().onClick||{});var p={continuationCommand:{token:u.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},V={inputComposerFormData:{clientMessageId:G,playerOffsetMs:v}};return new Promise(function(m,Z){_.D$(p,{form:{formData:V},commandController:{onSuccess:function(A,
h){m(h)},
onServerError:function(A,h){Z(h.error)}}})})};
x=_.AhV(u.pendingStateKey());x(!0);_.zTV("#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");d(!1);_.Qg(B,2);return B.yield(t(),4);case 4:_.I$(B,3);break;case 2:O=_.iY(B),(f=(a=u).onError)==null||f.call(a,O);case 3:x(!1),_.TG(B)}})});
return _.n(_.r,{cond:D,then:function(){return _.n("div",{class:"ytwYouChatChipsDataChipWrapper"},_.n("button",{el:K,class:"ytwYouChatChipsDataChip","data-disabled":u.disabled,"on:click":W,tabindex:0},C))}})},"Yi");var fd6=_.rf(function(u){var K=u.data;var l=u.initiallyExpanded;var D=function(){var v;return(v=K().conversationResourceData)==null?void 0:v.learningGuideData};
u=_.y(_.wY(function(){var v;return(v=l==null?void 0:l())!=null?v:!1}));
var d=u.next().value,C=u.next().value,W=function(){C(!0)},M=_.RZ(function(){var v,G;
return(G=(v=D())==null?void 0:v.sections)!=null?G:[]},void 0,"xl8NRc"),q=_.RZ(function(){return M().length>4},void 0,"oAM7of");
u=_.RZ(function(){var v;return!d()&&q()&&(v=D())!=null&&v.expandButton?M().slice(0,4):M()},void 0,"uzQ9rc");
return _.n("yt-conversation-resource-view-model",{class:_.JB("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.n(_.mo,{data:u},{expandableMetadataViewModel:_.W_2}),_.n(_.r,{cond:function(){return q()&&!d()},
then:function(){return _.n("div",{id:"showMoreButton"},_.n(_.mo,{data:function(){var v;return(v=D())==null?void 0:v.expandButton}},{buttonViewModel:function(v){return _.n(_.P2,{data:v.data,
onClick:W})}}))}}))},"Zi");var QYi=_.rf(function(u){var K=function(){var h;return(h=u.data().text)==null?void 0:h.content},l=function(){var h,C9;
return(h=u.data().webData)==null?void 0:(C9=h.textResult)==null?void 0:C9.content},D=_.GB().resolve(_.qI),d=_.Qo(),C=function(){return u.data().chatResponseStyle},W=function(){return!u.data().transparentBackground},M=function(){return u.data().rightAlignThumbs},q=function(){return u.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||u.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},v=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:q()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:u.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},G=function(){var h;
return u.data().webData||((h=u.data().text)==null?void 0:h.content)||u.data().videoResultsData||u.data().conversationResourceViewModel||u.data().quiz},t=function(){return!!u.data().sectionHeader||G()},x=function(){var h;
return(h=u.data().videoResultsData)==null?void 0:h.videoShelf},O=function(){var h;
return _.b(((h=u.data().videoResultsData)==null?void 0:h.videoShelf)||{},DH_)},a=function(){var h;
return(h=u.data().webData)==null?void 0:h.sourcesShelf},f=function(){var h;
return _.b(((h=u.data().webData)==null?void 0:h.sourcesShelf)||{},DH_)},B=function(){return _.b(u.data().conversationResourceViewModel||{},CWE)},p=function(){return _.b(u.data().quiz||{},uTE)},V=function(){return C()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||C()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:u.data().thumbsDownViewModel&&u.data().thumbsUpViewModel},m=function(){return _.b(u.data().thumbsUpViewModel,_.Za)},Z=function(){return _.b(u.data().thumbsDownViewModel,_.Za)};
_.N_(function(){requestAnimationFrame(function(){var h;(h=u.shouldAnimateIcon)!=null&&h.call(u)&&Xwk(d.lottieEl)})});
var A={};return _.n("you-chat-item-view-model",{class:_.JB("ytwYouChatItemViewModelYouChatItemViewModel",(A.ytwYouChatItemViewModelColumnLayout=function(){return q()},A)),
"data-target-id":function(){return u.data().id||""}},_.n(_.r,{cond:function(){return u.data().removeIcon?!1:t()},
then:function(){var h={};return _.n("div",{"aria-hidden":"true"},_.n(_.O$,{className:_.JB("ytwYouChatItemViewModelIcon",(h.ytwYouChatItemViewModelRtl=D==="rtl",h.ytwYouChatItemViewModelHidden=function(){return!(u.data().hideIcon||C()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||C()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:t())},h)),
animationName:"YOUCHAT_ICON",data:v,animationRef:d}))}}),_.n(_.r,{cond:t,
then:function(){var h={};return _.n("div",{class:_.JB("ytwYouChatItemViewModelHost",(h.ytwYouChatItemViewModelHostNoPadding=function(){return!!u.data().sectionHeader&&!G()},h.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return C()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},h.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return C()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},h.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return C()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
h.ytwYouChatItemViewModelGradientBackground=W,h)),
role:"alert"},_.n(_.r,{cond:K,then:function(C9){return _.n(_.qrB,{text:C9})}}),_.n(_.mo,{data:function(){return u.data().sectionHeader}},{sectionHeaderViewModel:function(C9){var Wo={};
return _.n(_.za,{data:C9.data,className:_.JB("ytwYouChatItemViewModelSectionHeader",(Wo.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!u.data().sectionHeader&&!G()},Wo))})}}),_.n(_.r,{cond:l,
then:function(C9){return _.n(_.qrB,{text:C9})}}),_.n(_.r,{cond:x,
then:function(){return _.n("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.n(_.El,{data:O,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.n(_.r,{cond:a,
then:function(){return _.n("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.n(_.El,{data:f,hasPeek:!0,disableArrows:!1}))}}),_.n(_.r,{cond:B,
then:function(){return _.n(fd6,{data:B})}}),_.n(_.r,{cond:p,
then:function(){return _.n(_.YJw,{data:p})}}),_.n(_.r,{cond:V,
then:function(){return _.n(eLI,{thumbsUp:m,thumbsDown:Z,rightAlignThumbs:M})}}))}}),_.n(_.r,{cond:function(){return u.data().chipsData},
then:function(h){return _.n(UHi,{data:h,disabled:u.pending,onError:u.onError})}}))},"$i");
QYi.idomCompat={callbacks:{onError:!0,onSend:!0}};var PWB=_.rf(function(u){var K=function(){return u.data().choiceSelectedText},l=function(){return u.data().hasGradientBackground},D={};
return _.n("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.n(_.r,{cond:K,then:function(){return _.n("div",{class:"ytYouChatUserTurnChoiceSelected"},_.n(_.qC,{text:K}))}}),_.n("div",{class:_.JB("ytYouChatUserTurnUserMessage",(D.ytYouChatUserTurnGradientContainer=l,D.ytYouChatUserTurnDefaultContainer=function(){return!l()},D))},function(){return u.data().text}))},"aj");var JZH=_.rf(function(u){var K=_.y((0,_.cfC)(u.data)).next().value;return _.n("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return u.data().targetId||""}},_.n(_.mo,{data:function(){return u.data().header}},{chipBarViewModel:_.$Qk}),_.n(_.mo,{data:function(){return K().contents}},{accordionViewModel:_.hlR,
alertBannerViewModel:_.SJa,chatLoadingViewModel:_.u3G,chatUserTurnViewModel:PWB,learningJourneyLoaderViewModel:_.ZEA,lockupViewModel:function(l){return _.n(_.zx,{data:l.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:u.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(l){return _.n(QYi,{data:l.data,pending:!1})}}))},"bj");_.SX(_.rf(function(u){var K=_.y((0,_.cfC)(u.data)).next().value,l=_.o9("yt-section-list-renderer"),D=_.y(_.On(void 0,void 0,"rQpPgc")),d=D.next().value,C=D.next().value,W=function(){var M;return _.b((M=u.data().sectionListLayoutConfiguration)==null?void 0:M.layoutConfiguration,ld6)};
_.ZY(function(){var M,q=(M=l.value)==null?void 0:M.clientWidth;if(W()){M=W();var v=M.responsiveSize;q=q<528?"CONTAINER_SIZE_NARROW":q<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var G=_.y(M.responsiveMap||[]);for(var t=G.next();!t.done;t=G.next())if(t=t.value,t.containerSize===q){G=t.containerType;break b}G=void 0}if(G&&v){b:{if(G==="CONTAINER_TYPE_VERTICAL_LIST")if(v==="RESPONSIVE_SIZE_STANDARD"){if(q!=="CONTAINER_SIZE_NARROW"){t="50%";break b}}else{t=q==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}t=void 0}M={responsiveSize:v,containerSize:q,containerType:G,force16By9ThumbnailAspectRatio:!M.enableContentSpecificAspectRatio,contentPreviewWidth:t,fullbleed:(G==="CONTAINER_TYPE_VERTICAL_LIST"||G==="CONTAINER_TYPE_GRID")&&q==="CONTAINER_SIZE_NARROW"&&!1}}else M=void 0}else M=void 0;C(M)});
return _.n("yt-section-list-renderer",{class:_.JB("ytSectionListRendererHost",u.className),el:l,"data-target-id":function(){return u.data().targetId||""}},_.n(_.mo,{data:function(){return K().contents}},{itemSectionRenderer:function(M){return _.n(JZH,{data:M.data,
containerLayoutConfig:d})}}))},"cj"),"yt-section-list-renderer",{props:{data:_.M6,
className:_.xo}});var jYB;var Bo_;var pf2=function(){return _.Q.apply(this,arguments)||this};
_.c(pf2,_.Q);_.g([_.U(),_.N("design:type",Object)],pf2.prototype,"data",void 0);_.g([_.E9({is:"yt-alert-renderer",disableElementRegistration:!0})],pf2);
_.F(pf2,"yt-alert-renderer",function(){if(Bo_===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;jYB===void 0&&(jYB=document.createElement("template"));var D=jYB;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Bo_=u}u=Bo_;return u},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.vVp=function(u,K){var l,D;K=K===void 0?{}:K;var d,C,W,M,q,v,G,t,x,O,a,f;return _.H(function(B){switch(B.nextAddress){case 1:d=K;C=d.shouldWrap===void 0?!0:d.shouldWrap;W=d.skipTransitionTimeoutMs===void 0?300:d.skipTransitionTimeoutMs;M=d.beforeTransition;q=d.afterTransition;if(!C||!document.startViewTransition||document.visibilityState==="hidden")return B.return(u());l=window.innerWidth;D=window.innerHeight;v=!1;(G=M)==null||G();_.Qg(B,2);t=document.startViewTransition(u);x=setTimeout(function(){t.skipTransition();
v=!0},W);
return B.yield(t.ready,4);case 4:return clearTimeout(x),B.yield(t.finished,5);case 5:clearTimeout(x);(O=q)==null||O();_.I$(B,0);break;case 2:a=_.iY(B),(f=q)==null||f(),a&&!v&&document.visibilityState!=="hidden"&&l===window.innerWidth&&D===window.innerHeight&&_.Xm(a),_.TG(B)}})};
_.EY=function(){for(var u=Array(36),K=0,l,D=0;D<36;D++)D==8||D==13||D==18||D==23?u[D]="-":D==14?u[D]="4":(K<=2&&(K=33554432+Math.random()*16777216|0),l=K&15,K>>=4,u[D]=_.eES[D==19?l&3|8:l]);return u.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 GZG=_.oj(['<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>']),
tbE=_.qVa(GZG);tbE.setAttribute("style","display: none;");document.head.appendChild(tbE.content);_.LY=_.DhL(function(u){var K=_.PO("DIV");u&&(K.className=u);K.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";u=_.PO("DIV");_.qo0(u,"200px","200px");K.appendChild(u);document.body.appendChild(K);u=K.offsetWidth-K.clientWidth;_.Jq(K);return u});var xti;var SQi;var uJ=function(){var u=_.Q.apply(this,arguments)||this;u.icon=null;return u};
_.c(uJ,_.Q);uJ.prototype.dismiss=function(){_.xs(this.hostElement,"yt-live-chat-error-message-dismiss")};
uJ.prototype.computeIcon=function(u){return u&&u.iconType?"yt-icons:"+u.iconType.toLowerCase():"yt-icons:close"};
_.g([_.U(),_.N("design:type",Object)],uJ.prototype,"data",void 0);_.g([_.U({computed:"computeIcon(data.icon)"}),_.N("design:type",Object)],uJ.prototype,"icon",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],uJ);
_.F(uJ,"yt-live-chat-error-message-renderer",function(){if(SQi===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;xti===void 0&&(xti=document.createElement("template"));var D=xti;l.call(K,D.content.cloneNode(!0),u.content.firstChild);SQi=u}u=SQi;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var Vqi,gZH,NQE,kCG,XC_,EZV,L4E,uwi,zC,KVV,lQI,eq,Dq2,dq_,C7i,IQB,yz6,sn2,odE,WVH,HOH,MwI,qIo,$qk,ndi,rzo,vd6,Gl_,twi,xqE,SIE,R0,bO2,OO_,czG,e$G,R$2,UqE,fQI,QnI,P7o,aQ_,z$_,jnH,BDV,pXH,iOB,TDB,Jz2,FVk;Vqi=function(u,K){return _.eZ(u.entities,"timedMarkersListSyncEntity",K)};
gZH=function(u,K){return _.eZ(u.entities,"liveReactionsDataEntity",K)};
NQE=function(u,K){u=_.eZ(u.entities,"booleanEntity",K);return!(!u||!u.value)};
kCG=function(u,K){var l=_.AC();l&&u&&_.DJ(l,_.gf(u),K)};
_.Zq_=function(u){return u.watch.isWatchActive};
_.YTk=function(u){return _.ue(u)||_.K1(u)||_.X9r(u)};
_.A4G=function(u){return!_.YTk(u)};
_.a0=function(u){return u.watch.watchScrollTop};
XC_=function(u){return u.watch.isLiveChatCollapsed};
_.mz6=function(){_.S("web_watch_log_theater_mode")&&_.v7r("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.hGo=function(u,K,l){if(!u.includes("START_TIME_PLACEHOLDER")||!u.includes("END_TIME_PLACEHOLDER"))return u;var D=new Date(0),d=new Date(0);D.setUTCMilliseconds(K);d.setUTCMilliseconds(l);return u.replace("START_TIME_PLACEHOLDER",_.Cc(D,7)).replace("END_TIME_PLACEHOLDER",_.Cc(d,7))};
EZV=function(u,K){return _.eZ(u.entities,"booleanEntity",K)};
L4E=function(){return function(u){_.ME(_.TT("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:u}))}};
uwi=function(u){switch(u){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}};
zC=function(u,K,l){var D=_.lt(l);u&&K&&D&&u.getPlayerPromise().then(function(d){_.tz9(D)&&_.AV();(new _.gL(d)).executeCommand(D,K);_.S("continue_playback_on_desktop_companion_click")||d.pauseVideo()})};
KVV=function(u){var K=_.xY(),l;if(l=_.lZ("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var D;l=(D=l())==null?void 0:D.layoutId}else l=null;zC(K,l,u)};
lQI=function(u){var K=_.xY(),l;if(l=_.lZ("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var D;l=(D=l())==null?void 0:D.layoutId}else l=null;zC(K,l,u)};
eq=function(u,K){var l=u<0?"-":"";u=Math.abs(u);var D=Math.floor(u/3600),d=Math.floor(u)%3600,C=Math.floor(d/60);d=Math.floor(d)%60;var W="";(K===void 0?0:K)&&(W="."+Math.round((u-Math.floor(u))*10));return D>0?l+D+":"+(C<10?"0"+C:""+C)+":"+(d<10?"0"+d:""+d)+W:l+C+":"+(d<10?"0"+d:""+d)+W};
Dq2=function(u){var K=u.match(/[^0-9:\.]/g);if(K&&K.length>0)return null;u=u.split(":");if(u.length===0||u.length>3)return null;K=1;for(var l=0;u.length>0;){var D=u.pop();if(D===void 0)break;var d=Number(D);if(D===""||isNaN(d))return null;l+=d*K;K*=60}return l};
dq_=function(u,K,l,D){u=Math.max(l,u);K=Math.min(K,D-l);u+K>D?(l=D,u=l-K):l=u+K;return{start:u,end:l}};
C7i=function(u,K,l,D,d,C){u<l?u=l:u+d>D&&(u=D-d);K>D&&(K=D);K=Math.min(u+C,Math.max(u+d,K));return{start:u,end:K}};
IQB=function(u,K,l,D,d,C){K>D?K=D:K-d<l&&(K=l+d);u<l&&(u=l);u=Math.min(K-d,Math.max(K-C,u));return{start:u,end:K}};
yz6=function(u){return _.S("web_transcript_cue_id_killswitch")?String(u):"ytd-transcript-renderer_"+u};
sn2=function(u){return _.S("web_transcript_cue_id_killswitch")?!0:u.startsWith("ytd-transcript-renderer")};
odE=function(u){var K=_.xY(),l;if(l=_.lZ("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var D;l=(D=l())==null?void 0:D.layoutId}else l=null;zC(K,l,u)};
WVH=function(u){u.style.height="auto";u.style.height=Math.min(u.scrollHeight||20,80)+"px"};
HOH=function(u,K,l){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:K,hasGradientBackground:l}}],insertByPositionInSection:{sectionTargetId:u,position:"INSERTION_POSITION_LAST"}}}]}}}};
MwI=function(u){var K=_.xY(),l;l=(l=_.lZ("yt.www.ads.eventcache.getLastCompanionData"))?(l=l())&&l.layoutId:null;zC(K,l,u)};
qIo=function(u){var K=_.xY(),l;l=(l=_.lZ("yt.www.ads.eventcache.getLastCompanionData"))?(l=l())&&l.layoutId:null;zC(K,l,u)};
$qk=function(u,K){K=K===void 0?!1:K;if(u.simpleText)u=[{text:u.simpleText}];else{var l;u=((l=u.runs)!=null?l:[]).map(function(D){return Object.assign({},D)})}if(K)for(K=_.y(u),l=K.next();!l.done;l=K.next())l.value.bold=!0;
return u};
ndi=function(u){var K=u.startEndTimeTemplate,l=u.startTimeUtcMillis;u=u.endTimeUtcMillis;if(K&&l&&u)return _.o7(_.hGo(_.WI(K),Number(l),Number(u)))};
rzo=function(u,K){var l,D,d=u==null?void 0:(l=u.viewCount)==null?void 0:(D=l.videoViewCountRenderer)==null?void 0:D.shortViewCount;if(!K&&d)return d;var C,W;return u==null?void 0:(C=u.viewCount)==null?void 0:(W=C.videoViewCountRenderer)==null?void 0:W.viewCount};
vd6=function(u,K){var l=u==null?void 0:u.relativeDateText;return!K&&l?[l,!0]:[u==null?void 0:u.dateText,!1]};
Gl_=function(u,K,l,D,d){D=D===void 0?!0:D;d=d===void 0?"":d;var C=rzo(u,K),W=_.y(vd6(u,K)),M=W.next().value;W=W.next().value;K=K?u==null?void 0:u.sponsorsOnlyFirstTimeLongText:u==null?void 0:u.sponsorsOnlyFirstTimeShortText;var q=[];l&&C&&q.push(C);!l&&W||!M||q.push(M);u=[].concat(_.Am(q),[K,u==null?void 0:u.stationName,u==null?void 0:u.rating,u?ndi(u):void 0,u==null?void 0:u.upNextProgramText,u==null?void 0:u.superTitleLink]).filter(function(v){return!!v});
l={runs:[]};for(C=0;C<u.length;C++)l.runs.push.apply(l.runs,_.Am($qk(u[C],D))),C<u.length-1&&l.runs.push({text:" "+d+" ",bold:D});return l};
twi=function(u){if(u)return{runs:[{text:u,bold:!0}]}};
xqE=function(u){var K,l,D,d;if(u=u==null?void 0:(K=u.contents)==null?void 0:(l=K.twoColumnWatchNextResults)==null?void 0:(D=l.results)==null?void 0:(d=D.results)==null?void 0:d.contents){var C,W;return(W=(C=u.find(function(M){return!!M.videoPrimaryInfoRenderer}))==null?void 0:C.videoPrimaryInfoRenderer)==null?void 0:W.updatedMetadataEndpoint}};
SIE=function(u,K){var l;return(l=u.sourceConfigs)==null?void 0:l.find(function(D){return D.videoId===K})};
R0=function(u){return u==="End of video"||u==="End of playlist"};
bO2=function(u){var K,l,D,d;return(K=u.getWatchNextResponse())==null?void 0:(l=K.contents)==null?void 0:(D=l.twoColumnWatchNextResults)==null?void 0:(d=D.playlist)==null?void 0:d.playlist};
OO_=function(u){var K,l,D,d,C,W;return(K=bO2(u))==null?void 0:(l=K.playlistButtons)==null?void 0:(D=l.menuRenderer)==null?void 0:(d=D.topLevelButtons)==null?void 0:(C=d[0])==null?void 0:(W=C.playlistLoopButtonRenderer)==null?void 0:W.playlistLoopStateEntityKey};
czG=function(u){var K=_.GB().resolve(_.lX),l;return(K=(l=_.b(K.getAutoplayEndpoint(),_.oy))==null?void 0:l.playlistId)&&K===u};
e$G=function(u,K,l,D,d){function C(){_.YL.cancelJob(UT);var W=aQ_(K,l/u.getPlaybackRate()),M=W.hours,q=W.minutes;W=(W.seconds*1E3||6E4)/u.getPlaybackRate();u.setVideoTimeLeft(z$_(M,q));D&&u.getPlayerState()!==0&&u.setSleepTimerTimeLeft(z$_(M,q,!0));(M>0||q>0)&&!d&&(UT=_.Vo(_.YL,C,W))}
_.YL.cancelJob(UT);UT=_.Vo(_.YL,C)};
R$2=function(u,K,l){function D(){_.YL.cancelJob(fq);var d=aQ_(K,l),C=d.hours;d=d.minutes;var W=6E4/u.getPlaybackRate();if(C>0||d>0)u.setSleepTimerTimeLeft(z$_(C,d,!0)),fq=_.Vo(_.YL,D,W)}
_.YL.cancelJob(fq);fq=_.Vo(_.YL,D)};
UqE=function(u,K){var l=u.getVolume()/(K/500),D=function(d){_.YL.cancelJob(Qc);var C=Math.floor(d-l);u.setVolume(C,!1);C>0&&(Qc=_.Vo(_.YL,function(){D(C)},500))};
_.YL.cancelJob(Qc);Qc=_.Vo(_.YL,function(){D(u.getVolume())})};
fQI=function(u,K){_.YL.cancelJob(Qc);K&&u.syncVolume()};
QnI=function(){var u={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.QQ("SLEEP_TIMER_DISRUPTED")}}}}};_.GB().resolve(_.t9).resolveCommand(u)};
P7o=function(u){return(u.getDuration()-u.getProgressState().current)*1E3};
aQ_=function(u,K){u=u+K-(0,_.vA)();if(u<=0)return{hours:0,minutes:0,seconds:0};var l=new Jz2(0,0,0,0,0,0,u);u=l.getHours();K=l.getMinutes();l=l.getSeconds();l!==0&&K++;K!==0&&K%60===0&&(u++,K=0);return{hours:u,minutes:K,seconds:l}};
z$_=function(u,K,l){return u>0&&K>0?l?_.QQ("TIME_LEFT_HOURS_MINUTES",{hours:u.toString(),minutes:K.toString()}):_.QQ("TIME_HOURS_MINUTES",{hours:u.toString(),minutes:K.toString()}):u>0?l?_.P0("TIME_LEFT_HOURS",u):_.P0("TIME_HOURS",u):l?_.QQ("TIME_LEFT_MINUTES",{minutes:K.toString()}):_.QQ("TIME_MINUTES",{minutes:K.toString()})};
jnH=function(u,K){if(u.timelyActions)return u.timelyActions.find(function(l){var D;return((D=_.b(l,PC))==null?void 0:D.cueRangeId)===K})};
BDV=function(u){var K=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.eS(u);u.keyMap_.forEach(function(l,D){_.Vn(K,D)||this.remove(D)},u)};
pXH=function(u,K){u.reloadContinuationItemsCommandMatcher=K};
_.J4=function(u,K){u.insertBefore(K,u.childNodes[0]||null)};
iOB=function(u){if(u>=48&&u<=57||u>=96&&u<=106||u>=65&&u<=90||_.ea&&u==0)return!0;switch(u){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 _.zR;default:return!1}};
TDB=function(u){if(u.altKey&&!u.ctrlKey||u.metaKey||u.keyCode>=112&&u.keyCode<=123)return!1;if(iOB(u.keyCode))return!0;switch(u.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!_.zR;default:return u.keyCode<166||u.keyCode>183}};
Jz2=function(u,K,l,D,d,C,W){this.date=typeof u==="number"?new Date(u,K||0,l||1,D||0,d||0,C||0,W||0):new Date(u&&u.getTime?u.getTime():_.x2())};
_.Sa(Jz2,_.V9);_.I=Jz2.prototype;_.I.getHours=function(){return this.date.getHours()};
_.I.getMinutes=function(){return this.date.getMinutes()};
_.I.getSeconds=function(){return this.date.getSeconds()};
_.I.getMilliseconds=function(){return this.date.getMilliseconds()};
_.I.getUTCDay=function(){return this.date.getUTCDay()};
_.I.getUTCHours=function(){return this.date.getUTCHours()};
_.I.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.I.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.I.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.I.setHours=function(u){this.date.setHours(u)};
_.I.setMinutes=function(u){this.date.setMinutes(u)};
_.I.setSeconds=function(u){this.date.setSeconds(u)};
_.I.setMilliseconds=function(u){this.date.setMilliseconds(u)};
_.I.setUTCHours=function(u){this.date.setUTCHours(u)};
_.I.setUTCMinutes=function(u){this.date.setUTCMinutes(u)};
_.I.setUTCSeconds=function(u){this.date.setUTCSeconds(u)};
_.I.setUTCMilliseconds=function(u){this.date.setUTCMilliseconds(u)};
_.I.add=function(u){_.V9.prototype.add.call(this,u);u.hours&&this.setUTCHours(this.date.getUTCHours()+u.hours);u.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+u.minutes);u.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+u.seconds)};
_.I.JSC$11206_toIsoString=function(u){var K=_.V9.prototype.JSC$11206_toIsoString.call(this,u);return u?K+"T"+_.bO(this.getHours(),2)+":"+_.bO(this.getMinutes(),2)+":"+_.bO(this.getSeconds(),2):K+"T"+_.bO(this.getHours(),2)+_.bO(this.getMinutes(),2)+_.bO(this.getSeconds(),2)};
_.I.equals=function(u){return this.getTime()==u.getTime()};
_.I.toString=function(){return this.JSC$11206_toIsoString()};
_.I.clone=function(){var u=new Jz2(this.date);u.firstDayOfWeek_=this.firstDayOfWeek_;u.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return u};
_.wXi=function(u){return _.SZ({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:u}})};
FVk=new _.r3("imageTileRenderer");var Vwi=new _.r3("adGridCardCollectionViewModel");var gd_=new _.r3("carouselTitleViewModel");var ND_=new _.r3("ctaCarouselItemViewModel");var kl6=new _.r3("textFieldViewModel");_.ZOB=new _.r3("engagementPanelHeaderShowNavigationButtonCommand");var YIB=new _.r3("hideEngagementPanelScrimAction");var Az_=new _.r3("setActivePanelItemAction");var XXI=new _.r3("showEngagementPanelScrimAction");var mqp=new _.r3("updateEngagementPanelAction");var h$_=new _.r3("updateSearchInVideoResultsAction");var EdE=new _.r3("transcriptCueGroupRenderer");var LVI=new _.r3("transcriptCueRenderer");var uak=new _.r3("transcriptFooterRenderer");var Ks6=new _.r3("engagementPanelAdSubtitleRenderer");var lE6=new _.r3("videoDescriptionFantasySectionViewModel");var DW6=new _.r3("deleteClipEngagementPanelCommand");var dWi=new _.r3("loopCommand");var C$o=new _.r3("changeCreatorEndscreenVisibilityCommand");var IEi=new _.r3("liveChatCallForQuestionsRenderer");var y26=new _.r3("updateTimedMarkersSyncObserverCommand");var PC=new _.r3("timelyActionViewModel");var spk=new _.r3("timelyActionsOverlayViewModel");var oCp=new _.r3("repeatChapterCommand");var Ws_=new _.r3("watchPlayerOverflowMenuCommand");var H8H=new _.r3("compositeVideoOverlayRenderer");var MJp=new _.r3("sortFilterSubMenuRenderer");var qw_=new _.r3("switchListItemViewModel");var $WB=new _.r3("inputComposerViewModel");var nCo=new _.r3("transcriptEditSegmentCommand");var r2G=new _.r3("transcriptUpdateSegmentTextCommand");var vC_=new _.r3("transcriptSearchBoxRenderer");var Gvk=new _.r3("transcriptSegmentListRenderer");var tJ_=new _.r3("transcriptSegmentRenderer");_.xWp=new _.r3("updateDateTextAction");var SwI=new _.r3("updateTitleAction");var b86=new _.r3("updateViewershipAction");var O8i=new _.r3("carouselLockupRenderer");var jq=new _.r3("expandableVideoDescriptionBodyRenderer");var c2k=new _.r3("videoDescriptionHeaderRenderer");var aEo=new _.r3("videoDescriptionYouchatSectionViewModel");_.BC=_.Sg("kevlar_watch_page_horizontal_margin",24);_.zvp=_.Sg("kevlar_watch_page_columns_top_padding",24);_.ev_=426+_.BC*2;_.pq=_.Sg("kevlar_watch_two_column_width_threshold",1E3);_.RvE=_.BC*2;_.UWI=_.Sg("kevlar_watch_secondary_width",402);_.fE_=_.Sg("kevlar_watch_max_player_width",1280);_.Qpk=_.Sg("kevlar_watch_flexy_metadata_height",136);_.P$2=_.RvE+310+_.BC;_.J2o=_.RvE+360+_.BC;var jpE={PAUSE_CHAT:18};var B76;var pQV;var ig=function(){return _.Q.apply(this,arguments)||this};
_.c(ig,_.Q);ig.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
ig.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var u=_.b(this.data.button,_.kY);u&&(u.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.MN.Object.defineProperties(ig,{template:{configurable:!0,enumerable:!0,get:function(){if(pQV===void 0){var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;B76===void 0&&(B76=document.createElement("template"));var D=B76;l.call(K,D.content.cloneNode(!0),u.content.firstChild);pQV=u}u=pQV;return u}}});
_.g([_.e(_.Dl),_.N("design:type",Object)],ig.prototype,"ytLiveChatReduxBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ig.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U({selectorArgs:["data.enabledEntityKey"],selector:NQE,observer:"onEnabledChange"}),_.N("design:type",Boolean)],ig.prototype,"enabled",void 0);_.g([_.U(),_.N("design:type",Object)],ig.prototype,"data",void 0);_.g([_.E9({is:"yt-disableable-button-view-model",noInjection:!0})],ig);var i8k;var T76;var wQH=["transVert01","transVert02","transVert03"],FsI="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),TC=function(){var u=_.Q.apply(this,arguments)||this;u.emojiManager=_.Cl;u.isDarkTheme=document.documentElement.hasAttribute("dark");u.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};u.reactionBuckets=[];u.noEmojiIdentifier="NO_EMOJI";return u};
_.c(TC,_.Q);_.I=TC.prototype;_.I.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.I.desktopFountainEmojiSizePxChanged=function(){_.e8(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.I.createUserReactionAnimation=function(u){this.createEmojiAnimation(u,!0)};
_.I.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var u;((u=this.data)==null?0:u.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.TT("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Am(this.emojiContainer.children)).forEach(function(K){K.remove()})};
_.I.detached=function(){this.cleanupFountain()};
_.I.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var u;this.reactionBuckets=_.k$.unsafeClone((u=this.emojiFountainData)==null?void 0:u.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.I.processEmojiBucket=function(u){var K=this;if(this.reactionBuckets&&!(u>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var l=this.reactionBuckets[u];this.generateEmojiAnimations(l);if(u<this.reactionBuckets.length-1){var D;if(l==null?0:(D=l.duration)==null?0:D.seconds)this.emojiBucketTimerId=setTimeout(function(){K.processEmojiBucket(u+1)},Number(l.duration.seconds)*1E3)}}};
_.I.generateEmojiAnimations=function(u){var K=this,l=this.getRandomEmojiIdFromBucketWithOverride(u);if(l&&l!==this.noEmojiIdentifier){var D=0;u.targetEps?(D=this.linearInterpolateBounded(1,20,100,12,u.emojiSizeIndex||0),this.createEmojiAnimation(l,!1,u.emojiAnimationMs,D),D=this.getEmojiDelayMsFromTargetEps(u.targetEps)):(this.createEmojiAnimation(l),D=this.getEmojiDelayMsFromDistribution(u.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){K.generateEmojiAnimations(u)},D)}};
_.I.getRandomEmojiIdFromBucketWithOverride=function(u){if(!(u&&u.reactionsData&&u.reactionsData.length&&u.totalReactions))return this.noEmojiIdentifier;for(var K=u.totalReactions,l=1,D=_.y(u.reactionsData),d=D.next();!d.done;d=D.next())d=d.value,(d.reactionWeightOverride||d.reactionWeightOverride===0)&&d.reactionCount&&(K-=d.reactionCount,l-=d.reactionWeightOverride);D=!0;l<0&&(D=!1,K=u.totalReactions,l=1);if(D&&l>0&&K===0)if(l===1){d=0;for(var C=_.y(u.reactionsData),W=C.next();!W.done;W=C.next())W=
W.value,W.reactionCount&&W.reactionCount>0&&d++;d=1/d;C=_.y(u.reactionsData);for(W=C.next();!W.done;W=C.next())W.value.reactionWeightOverride=d}else for(d=1/(1-l),C=_.y(u.reactionsData),W=C.next();!W.done;W=C.next())W=W.value,W.reactionWeightOverride&&(W.reactionWeightOverride*=d);d=Math.random();C=0;W=_.y(u.reactionsData);for(var M=W.next();!M.done;M=W.next())if(M=M.value,M.reactionCount&&(C=(M.reactionWeightOverride||M.reactionWeightOverride===0)&&D?C+M.reactionWeightOverride:C+l*M.reactionCount/
K,C>d&&(M.reactionCount--,u.totalReactions--,M=this.reactionItemToEmojiString(M),M!==this.noEmojiIdentifier)))return M;return this.noEmojiIdentifier};
_.I.reactionItemToEmojiString=function(u){if(u.unicodeEmojiId)return u.unicodeEmojiId;if(u.emoteId)return u.emoteId;if(u.videoReactionType)switch(u.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.I.createEmojiAnimation=function(u,K,l,D){K=K===void 0?!1:K;this.lastEmojiRequestedForTesting=u;var d=u.startsWith("yt-icons:"),C=_.DP(this.emojiManager,u);if(C||d){var W=document.createElement("emoji");W.classList.add("yt-emoji-fountain-view-model");W.classList.add(wQH[Math.floor(Math.random()*wQH.length)]);var M=document.createElement("div");M.classList.add("yt-emoji-fountain-view-model");M.classList.add("horizontal-container");M.classList.add(FsI[Math.floor(Math.random()*FsI.length)]);K?(l=document.createElement("div"),
l.classList.add("user-reaction-bubble"),l.classList.add("yt-emoji-fountain-view-model"),M.appendChild(l)):(l&&(W.style.animationDuration=l+"ms",M.style.animationDuration=l+"ms"),D&&(W.style.width=D+"px",W.style.height=D+"px"));d?(d=document.createElement("yt-icon"),d.polymerController.icon=u,D&&(d.style.width=D+"px",d.style.height=D+"px"),u=d):u=this.emojiManager.createEmoji(C,!1);u.classList.add("yt-emoji-fountain-view-model");M.appendChild(u);W.appendChild(M);this.emojiContainer.appendChild(W);
W.addEventListener("animationend",function(){W.remove()});
var q,v;if((q=this.data)==null?0:(v=q.loggingDirectives)==null?0:v.trackingParams)K=K?_.Yo(183501):_.Yo(183500),kCG(this.data.loggingDirectives.trackingParams,K),_.cNh(K);setTimeout(function(){W&&W.remove()},2E3)}};
_.I.getEmojiDelayMsFromDistribution=function(u){return Math.random()*(u||1)*1E3};
_.I.getEmojiDelayMsFromTargetEps=function(u){return Math.random()*2*(1/u)*1E3};
_.I.linearInterpolateBounded=function(u,K,l,D,d){d=Math.min(Math.max(d,u),l);return(K*(l-d)+D*(d-u))/(l-u)};
TC.prototype.onEmojiFountainDataEntityUpdate=TC.prototype.onEmojiFountainDataEntityUpdate;TC.prototype.desktopFountainEmojiSizePxChanged=TC.prototype.desktopFountainEmojiSizePxChanged;TC.prototype.isActiveChanged=TC.prototype.isActiveChanged;_.g([_.U(),_.N("design:type",_.lK)],TC.prototype,"emojiManager",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Dl),_.N("design:type",Object)],TC.prototype,"ytLiveChatReduxBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],TC.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],TC.prototype,"data",void 0);_.g([_.U({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(u,K){return _.eZ(u.entities,"emojiFountainDataEntity",K)}}),
_.N("design:type",Object)],TC.prototype,"emojiFountainData",void 0);_.g([_.U(),_.N("design:type",Boolean)],TC.prototype,"isActive",void 0);_.g([_.JU("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TC.prototype,"isActiveChanged",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],TC.prototype,"isDarkTheme",void 0);_.g([_.U(),_.N("design:type",String)],TC.prototype,"lastEmojiRequestedForTesting",void 0);
_.g([_.U({value:function(){return _.Sg("desktop_fountain_emoji_size_px",20)}}),
_.N("design:type",Number)],TC.prototype,"desktopFountainEmojiSizePx",void 0);_.g([_.JU("desktopFountainEmojiSizePx"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TC.prototype,"desktopFountainEmojiSizePxChanged",null);_.g([_.BF("#emoji-container"),_.N("design:type",HTMLElement)],TC.prototype,"emojiContainer",void 0);
_.g([_.JU("emojiFountainData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TC.prototype,"onEmojiFountainDataEntityUpdate",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],TC);
_.F(TC,"yt-emoji-fountain-view-model",function(){if(T76===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;i8k===void 0&&(i8k=document.createElement("template"));var D=i8k;l.call(K,D.content.cloneNode(!0),u.content.firstChild);T76=u}u=T76;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var VJp;var gCE;var wQ=function(){return _.Q.apply(this,arguments)||this};
_.c(wQ,_.Q);wQ.prototype.onChoiceChanged=function(){this.data&&_.e8(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
wQ.prototype.onChoiceChanged=wQ.prototype.onChoiceChanged;_.g([_.U(),_.N("design:type",Object)],wQ.prototype,"data",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wQ.prototype,"onChoiceChanged",null);_.g([_.T({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],wQ);
_.F(wQ,"yt-live-chat-banner-poll-choice",function(){if(gCE===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;VJp===void 0&&(VJp=document.createElement("template"));var D=VJp;l.call(K,D.content.cloneNode(!0),u.content.firstChild);gCE=u}u=gCE;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var N7_;var kvi;var F2=function(){var u=_.Q.apply(this,arguments)||this;u.modern=_.S("web_button_rework_with_live");u.small=!1;return u};
_.c(F2,_.Q);F2.prototype.computeIsSmall=function(){var u;return((u=this.buttonOverrides)==null?void 0:u.size)==="S"};
F2.prototype.computeId=function(){return this.data&&this.data.targetId};
_.g([_.e(_.dh.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],F2.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.g([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",String)],F2.prototype,"id",void 0);_.g([_.U(),_.N("design:type",Object)],F2.prototype,"buttonOverrides",void 0);_.g([_.U(),_.N("design:type",Object)],F2.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],F2.prototype,"modern",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.N("design:type",Object)],F2.prototype,"small",void 0);_.g([_.T({disableElementRegistration:!0,is:"yt-live-chat-button"})],F2);
_.F(F2,"yt-live-chat-button",function(){if(kvi===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;N7_===void 0&&(N7_=document.createElement("template"));var D=N7_;l.call(K,D.content.cloneNode(!0),u.content.firstChild);kvi=u}u=kvi;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Z8B;var Ywp;var Vc=function(){var u=_.Q.apply(this,arguments)||this;u.inCollapsedBanner=!1;u.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};u.questionButtonOverrides={style:"mono",type:"filled"};return u};
_.c(Vc,_.Q);_.I=Vc.prototype;_.I.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]]"}}}}}};
_.I.onContextMenuButtonClick=function(u){this.ytLiveChatItemBehavior.showContextMenu(u)};
_.I.onYtRendererstamperFinished=function(){this.menuButton=_.bi(this.hostElement).querySelector("#menu-button")};
_.I.dataChanged=function(){var u,K;if((K=_.b((u=this.data)==null?void 0:u.overflowMenuButton,_.lF))==null?0:K.command)this.data.contextMenuEndpoint=_.b(this.data.overflowMenuButton,_.lF).command};
_.I.onButtonClick=function(){var u,K=_.b((u=this.data)==null?void 0:u.askQuestionButton,_.lF);if(K){if(K.trackingParams&&(u=_.gf(K.trackingParams))){var l=_.AC();l&&_.Wi(l,u)}_.xs(this.hostElement,"innertube-command",K.command)}};
Vc.prototype.onYtRendererstamperFinished=Vc.prototype.onYtRendererstamperFinished;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Vc.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Dl),_.N("design:type",Object)],Vc.prototype,"ytLiveChatReduxBehavior",void 0);_.g([_.e(_.Ii.YtLiveChatItemBehavior),_.N("design:type",_.y8)],Vc.prototype,"ytLiveChatItemBehavior",void 0);_.g([_.U({observer:"dataChanged"}),_.N("design:type",Object)],Vc.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Vc.prototype,"inCollapsedBanner",void 0);_.g([_.U(),_.N("design:type",Object)],Vc.prototype,"buttonOverrides",void 0);_.g([_.U(),_.N("design:type",Object)],Vc.prototype,"questionButtonOverrides",void 0);_.g([_.PF("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vc.prototype,"onYtRendererstamperFinished",null);
_.g([_.T({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Vc);
_.F(Vc,"yt-live-chat-call-for-questions-renderer",function(){if(Ywp===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Z8B===void 0&&(Z8B=document.createElement("template"));var D=Z8B;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Ywp=u}u=Ywp;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var A2H={};A2H.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 u=this;window.requestAnimationFrame(function(){u.restoreFocusNode_||(u.restoreFocusNode_=document.activeElement);var K=_.Tss(u.hostElement);K.length&&K[K.length-1].focus()})},
isAttachedChanged_:function(u,K){u?this.focusChild_():K&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(u){this.hidden||_.WF(u).indexOf(this.hostElement)!==-1||(u.stopPropagation(),this.focusChild_())}};var XQG;var mWV;var gQ=function(){return _.Q.apply(this,arguments)||this};
_.c(gQ,_.Q);gQ.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
gQ.prototype.onClick=function(u){u.target!==this.confirmButton&&u.target!==this.cancelButton&&(this.hidden=!0)};
_.g([_.BF("#confirm_button"),_.N("design:type",Object)],gQ.prototype,"confirmButton",void 0);_.g([_.BF("#cancel_button"),_.N("design:type",Object)],gQ.prototype,"cancelButton",void 0);_.g([_.U(),_.N("design:type",hvH)],gQ.prototype,"data",void 0);_.g([_.U({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],gQ.prototype,"hidden",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],gQ.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(A2H.YtLiveChatDialogBehavior),_.N("design:type",Object)],gQ.prototype,"ytLiveChatDialogBehavior",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],gQ);
var hvH=_.F(gQ,"yt-live-chat-dialog-renderer",function(){if(mWV===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;XQG===void 0&&(XQG=document.createElement("template"));var D=XQG;l.call(K,D.content.cloneNode(!0),u.content.firstChild);mWV=u}u=mWV;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var ECG;var LsI,uqM=function(){if(LsI!==void 0)return LsI;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;ECG===void 0&&(ECG=document.createElement("template"));var D=ECG;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return LsI=u};var KbS;var lHz;var Nz=function(){var u=_.Q.apply(this,arguments)||this;u.tooltip=null;u.data=null;u.id="";u.active=!1;u.icon="";u.disabled=!1;u.showTooltip=!1;u.useToggledActiveState=!0;u.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return u};
_.c(Nz,_.Q);_.I=Nz.prototype;
_.I.dataChanged=function(){var u;((u=this.data)==null?0:u.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,_.zQ)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var K;if((K=this.data)==null?0:K.disabled)this.disabled=!0};
_.I.computeId=function(u){return u};
_.I.computeIcon=function(u,K){if(!u)return"";if(this.useToggledActiveState)return"yt-icons:"+u.toLowerCase();var l,D;return K&&((l=this.data)==null?0:(D=l.toggledIcon)==null?0:D.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+u.toLowerCase()};
_.I.logPDGEntryPoint=function(){_.ilH(_.R7("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")};
_.I.immediatelyShowTooltip=function(){var u=_.bi(this.hostElement).querySelector("#tooltip");u.animationDelay=0;u.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};u.show()};
_.I.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.I.onClick=function(u){var K;((K=this.data)==null?0:K.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(),u.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.xs(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.I.computeShowTooltip=function(u,K){return!!(u&&u.tooltip&&K)};
_.I.maybeUpdateTooltipText=function(){var u=this,K;if((K=this.data)==null?0:K.tooltip){var l=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.zQ)(u.tooltip).textContent=l},250)}};
_.I.handleLiveChatActions=function(u){var K=this;u.length&&(this.id!=="creator"&&this.id!=="product-picker"||u.forEach(function(l){(l=K.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",l))&&l.durationSec===l.fullDurationSec&&K.startBubble(K.colorFromDecimal(l.startBackgroundColor))}))};
_.I.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.I.startBubble=function(u){_.e8(this.hostElement,{"--yt-live-chat-monetization-button-glow":u});this.hostElement.setAttribute("bubble","")};
_.I.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.I.colorFromDecimal=function(u){typeof u==="string"&&(u=Number(u));return"rgba("+[u>>16&255,u>>8&255,u&255,(u>>24&255)/255].join()+")"};
Nz.prototype.onAnimationEnd=Nz.prototype.onAnimationEnd;Nz.prototype.disabledChanged=Nz.prototype.disabledChanged;Nz.prototype.dataChanged=Nz.prototype.dataChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Nz.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Nz.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.dh.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],Nz.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Nz.prototype,"data",void 0);_.g([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",Object)],Nz.prototype,"id",void 0);_.g([_.U({notify:!0,reflectToAttribute:!0}),_.N("design:type",Object)],Nz.prototype,"active",void 0);
_.g([_.U({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.N("design:type",Object)],Nz.prototype,"icon",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Nz.prototype,"disabled",void 0);_.g([_.U({computed:"computeShowTooltip(data, disabled)"}),_.N("design:type",Object)],Nz.prototype,"showTooltip",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Nz.prototype,"useToggledActiveState",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nz.prototype,"dataChanged",null);_.g([_.JU("disabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nz.prototype,"disabledChanged",null);_.g([_.PF("animationend"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Nz.prototype,"onAnimationEnd",null);
_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Nz);
_.F(Nz,"yt-live-chat-icon-toggle-button-renderer",function(){if(lHz===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;KbS===void 0&&(KbS=document.createElement("template"));var D=KbS;l.call(K,D.content.cloneNode(!0),u.content.firstChild);lHz=u}u=lHz;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var DwF;var dwM;var kZ=function(){return _.Q.apply(this,arguments)||this};
_.c(kZ,_.Q);kZ.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.g([_.U(),_.N("design:type",Object)],kZ.prototype,"data",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],kZ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.T({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],kZ);
_.F(kZ,"yt-live-chat-message-input-prompt-header-renderer",function(){if(dwM===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;DwF===void 0&&(DwF=document.createElement("template"));var D=DwF;l.call(K,D.content.cloneNode(!0),u.content.firstChild);dwM=u}u=dwM;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var CL9;var IHX;var yHb;var sRF;var oyz;var Wbu;var H9Q=function(){return _.Q.apply(this,arguments)||this};
_.c(H9Q,_.Q);_.g([_.U(),_.N("design:type",Object)],H9Q.prototype,"data",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],H9Q);
_.F(H9Q,"yt-live-chat-message-subtext-renderer",function(){if(Wbu===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;oyz===void 0&&(oyz=document.createElement("template"));var D=oyz;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Wbu=u}u=Wbu;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Zz=function(){var u=_.Q.apply(this,arguments)||this;u.subtextOnBottom=!1;u.buttonOverrides={style:"mono",type:"tonal"};return u};
_.c(Zz,_.Q);Zz.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"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Zz.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Zz.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Zz.prototype,"subtextOnBottom",void 0);_.g([_.U(),_.N("design:type",Object)],Zz.prototype,"buttonOverrides",void 0);
_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Zz);
_.F(Zz,"yt-live-chat-message-renderer",function(){if(sRF===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;yHb===void 0&&(yHb=document.createElement("template"));var D=yHb;l.call(K,D.content.cloneNode(!0),u.content.firstChild);sRF=u}u=sRF;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Mr9;var qZM;var YZ=function(){var u=_.Q.apply(this,arguments)||this;u.isRemovable=!1;u.hasPrefilledText=!1;u.isInputDirty=!1;u.overCharacterLimit=!1;u.underCharacterLimit=!1;u.showErrorMessage=!1;return u};
_.c(YZ,_.Q);_.I=YZ.prototype;_.I.computeId=function(){return this.data.id};
_.I.computeInputData=function(){return this.data.inputData};
_.I.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.I.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.I.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.I.getLiveChatRichMessageInput=function(){return _.bi(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.I.clearInput=function(){_.bi(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.I.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.I.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.I.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.I.handleTextInputCharCountChanged=function(u){u=u.detail&&u.detail.characterCount;u!==void 0&&(this.characterCount=u,u!==0&&(this.isInputDirty=!0))};
_.I.onInputFocusOut=function(){this.isInputDirty=!0};
_.I.onClickCloseButton=function(){_.xs(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
YZ.prototype.handleTextInputCharCountChanged=YZ.prototype.handleTextInputCharCountChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],YZ.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],YZ.prototype,"data",void 0);_.g([_.U({computed:"computeId(data.id)"}),_.N("design:type",String)],YZ.prototype,"id",void 0);_.g([_.U({computed:"computeInputData(data.inputData)"}),_.N("design:type",Object)],YZ.prototype,"inputData",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.N("design:type",Object)],YZ.prototype,"isRemovable",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.N("design:type",Object)],YZ.prototype,"hasPrefilledText",void 0);_.g([_.U({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.N("design:type",Number)],YZ.prototype,"charactersRemaining",void 0);
_.g([_.U(),_.N("design:type",Number)],YZ.prototype,"characterCount",void 0);_.g([_.U(),_.N("design:type",Object)],YZ.prototype,"isInputDirty",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.N("design:type",Object)],YZ.prototype,"overCharacterLimit",void 0);_.g([_.U({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.N("design:type",Object)],YZ.prototype,"underCharacterLimit",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.N("design:type",Object)],YZ.prototype,"showErrorMessage",void 0);_.g([_.PF("yt-live-chat-text-input-field-renderer-character-count-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],YZ.prototype,"handleTextInputCharCountChanged",null);
_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],YZ);
_.F(YZ,"yt-live-chat-poll-editor-input",function(){if(qZM===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Mr9===void 0&&(Mr9=document.createElement("template"));var D=Mr9;l.call(K,D.content.cloneNode(!0),u.content.firstChild);qZM=u}u=qZM;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var $wS;var nyS;var rHX={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},A4=function(){var u=_.Q.apply(this,arguments)||this;u.modern=_.S("web_button_rework_with_live");u.closeButtonOverrides={iconPosition:"icon-only"};u.startButtonOverrides={style:"mono",type:"filled"};u.addOptionButtonOverrides={style:"mono",type:"text"};return u};
_.c(A4,_.Q);_.I=A4.prototype;
_.I.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"}}}}};
_.I.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var u;_.b((u=this.data)==null?void 0:u.startButton,_.lF)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.I.computeId=function(){return this.data&&this.data.id||""};
_.I.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.I.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.I.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.I.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.I.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var u=0;u<this.pollEditorInfoWithDefaults.minPollOptions;u++)this.addPollOptionData()};
_.I.getIsValidPoll=function(){var u=this;if(!this.pollEditorInfoWithDefaults)return!1;var K=this.pollEditorInfoWithDefaults,l=K.minPollOptionChars,D=K.maxPollOptionChars,d=K.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>K.maxPollQuestionChars)return!1;K=_.bi(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(K).every(function(C,W){C=C.characterCount;!C&&d[W]&&(C=u.ytRendererBehavior.getSimpleString(d[W]).length);return C!==void 0&&C>=l&&C<=D})};
_.I.isValidPollChanged=function(){var u;_.b((u=this.data)==null?void 0:u.startButton,_.lF)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.I.addPollOptionData=function(){var u=this.pollEditorInfoWithDefaults,K=u.maxPollOptionChars,l=u.optionPlaceholderText,D=u.customOptionPlaceholderText,d=u.pollOptionData;this.currentNumPollOptions>=u.maxPollOptions||(u={liveChatPollOptionInput:{inputData:{placeholder:D[this.currentNumPollOptions]||l,maxCharacterLimit:K},maxCharacterLimit:K,minCharacterLimit:u.minPollOptionChars,hasPrefilledText:!!D[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=u.minPollOptions}},d.charCountErrorText&&
(u.liveChatPollOptionInput.charCountErrorText=d.charCountErrorText),d.charsRemainingAltLabel&&(u.liveChatPollOptionInput.charsRemainingAltLabel=d.charsRemainingAltLabel),d.removeOptionAltText&&(u.liveChatPollOptionInput.removeOptionAltText=d.removeOptionAltText),this.push("pollOptionsData",u),d=Array.from(_.bi(_.bi(this.hostElement).querySelector("#poll-options")).children),d.forEach(function(C,W){C.polymerController.set("data.id",W)}),_.bi(d[d.length-1]).querySelector("#input").focus())};
_.I.getPollOptionInputValues=function(){var u=this,K=[],l=_.bi(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),D=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(l).forEach(function(d,C){var W=null;d=d.getLiveChatRichMessageInput();var M;(d==null?0:(M=d.textSegments)==null?0:M.length)?W=_.Iw(d):D[C]&&(W=u.formattedStringToLiveChatRichMessageInput(D[C]));K.push(W)});
return K};
_.I.requestCreateAndStartPoll=function(u){var K=this.getPollOptionInputValues();if(!K.some(function(D){return!D})){K={optionText:K};
var l=_.bi(_.bi(this.hostElement).querySelector("#poll-question")).firstChild;l&&l.liveChatRichMessageInput&&(K.questionText=_.Iw(l.liveChatRichMessageInput));_.c0(this.hostElement,[u,K])}};
_.I.selectedChanged=function(){if(this.selected){var u=_.bi(_.bi(this.hostElement).querySelector("#start-button")).firstElementChild;if(u){var K;(K=_.bi(u).querySelector("#button")||_.O9(u).querySelector("button"))==null||K.focus()}}};
_.I.handleTextInputChanged=function(u){var K;((K=u.target)==null?void 0:K.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=u.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.I.handleStartButtonAction=function(u){u.detail.actionName==="yt-service-request"&&(u.stopPropagation(),(u=u.detail.args[1])&&this.requestCreateAndStartPoll(u))};
_.I.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.I.handleServiceRequestCompleted=function(u){this.createPollRequestInFlight=!1;(u=u.detail&&u.detail.data)&&u.success&&(_.xs(this.hostElement,"picker-cancelled"),_.Sy(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.I.onCloseClick=function(){_.xs(this.hostElement,"picker-cancelled");_.Sy(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.I.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.I.handlePollEditorInputClosed=function(u){var K=this.pollOptionsData.findIndex(function(l){return l.liveChatPollOptionInput.id===u.detail.id});
this.splice("pollOptionsData",K,1);this.isValidPoll=this.getIsValidPoll()};
_.I.onPickerCancelled=function(){this.reset()};
_.I.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var u=_.bi(_.bi(this.hostElement).querySelector("#poll-question")).firstChild;u&&u.setLiveChatRichMessageInput(null);if(u=_.bi(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){u=_.y(Array.from(u));for(var K=u.next();!K.done;K=u.next())K.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.I.formattedStringToLiveChatRichMessageInput=function(u){return u.simpleText?{text_segments:[u.simpleText]}:{text_segments:u.runs}};
_.MN.Object.defineProperties(A4.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(rHX,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
A4.prototype.onPickerCancelled=A4.prototype.onPickerCancelled;A4.prototype.handlePollEditorInputClosed=A4.prototype.handlePollEditorInputClosed;A4.prototype.handleServiceRequestCompleted=A4.prototype.handleServiceRequestCompleted;A4.prototype.handleServiceRequestSent=A4.prototype.handleServiceRequestSent;A4.prototype.handleTextInputChanged=A4.prototype.handleTextInputChanged;A4.prototype.selectedChanged=A4.prototype.selectedChanged;A4.prototype.isValidPollChanged=A4.prototype.isValidPollChanged;
A4.prototype.shouldInitializePollChanged=A4.prototype.shouldInitializePollChanged;A4.prototype.dataChanged=A4.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],A4.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],A4.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],A4.prototype,"modern",void 0);
_.g([_.U(),_.N("design:type",Object)],A4.prototype,"closeButtonOverrides",void 0);_.g([_.U(),_.N("design:type",Object)],A4.prototype,"startButtonOverrides",void 0);_.g([_.U(),_.N("design:type",Object)],A4.prototype,"addOptionButtonOverrides",void 0);_.g([_.U({computed:"computeId(data.id)",reflectToAttribute:!0}),_.N("design:type",String)],A4.prototype,"id",void 0);_.g([_.U({value:function(){return[]}}),
_.N("design:type",Array)],A4.prototype,"pollOptionsData",void 0);_.g([_.R("pollEditorInfoWithDefaults"),_.N("design:type",Object),_.N("design:paramtypes",[])],A4.prototype,"pollQuestionData",null);_.g([_.U({value:0}),_.N("design:type",Number)],A4.prototype,"pollQuestionCharacterCount",void 0);_.g([_.R("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.N("design:type",Object),_.N("design:paramtypes",[])],A4.prototype,"pollQuestionCharactersRemaining",null);
_.g([_.U({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.N("design:type",Boolean)],A4.prototype,"overQuestionCharacterLimit",void 0);_.g([_.R("data.pollEditorInfo"),_.N("design:type",Object),_.N("design:paramtypes",[])],A4.prototype,"pollEditorInfoWithDefaults",null);_.g([_.U({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.N("design:type",Number)],A4.prototype,"currentNumPollOptions",void 0);
_.g([_.U({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.N("design:type",Boolean)],A4.prototype,"hasMaxNumPollOptions",void 0);_.g([_.R("pollEditorInfoWithDefaults","pollOptionsData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],A4.prototype,"shouldInitializePoll",null);_.g([_.U(),_.N("design:type",Object)],A4.prototype,"isValidPoll",void 0);
_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],A4.prototype,"createPollRequestInFlight",void 0);_.g([_.U(),_.N("design:type",Object)],A4.prototype,"selected",void 0);_.g([_.U({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.N("design:type",Boolean)],A4.prototype,"showQuestionErrorMessage",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A4.prototype,"dataChanged",null);_.g([_.JU("shouldInitializePoll"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A4.prototype,"shouldInitializePollChanged",null);_.g([_.JU("isValidPoll"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A4.prototype,"isValidPollChanged",null);
_.g([_.JU("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A4.prototype,"selectedChanged",null);_.g([_.PF("yt-live-chat-text-input-field-renderer-character-count-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],A4.prototype,"handleTextInputChanged",null);
_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A4.prototype,"handleServiceRequestSent",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],A4.prototype,"handleServiceRequestCompleted",null);
_.g([_.PF("yt-live-chat-poll-editor-input-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],A4.prototype,"handlePollEditorInputClosed",null);_.g([_.PF("picker-cancelled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A4.prototype,"onPickerCancelled",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],A4);
_.F(A4,"yt-live-chat-poll-editor-panel-renderer",function(){if(nyS===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;$wS===void 0&&($wS=document.createElement("template"));var D=$wS;l.call(K,D.content.cloneNode(!0),u.content.firstChild);nyS=u}u=nyS;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var vyu;var Gh9;var X2=function(){return _.Q.apply(this,arguments)||this};
_.c(X2,_.Q);X2.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
X2.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.MN.Object.defineProperties(X2.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var u,K;return(u=this.data)==null?void 0:(K=u.title)==null?void 0:K.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var u;return _.lt((u=this.data)==null?void 0:u.onTapCommand)}}});
_.g([_.e(_.po.YtEndpointBehavior),_.N("design:type",Object)],X2.prototype,"ytEndpointBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],X2.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],X2.prototype,"itemId",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],X2.prototype,"hasPromotion",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],X2.prototype,"innertubeCommand",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],X2);
_.F(X2,"yt-live-chat-product-picker-panel-item-view-model",function(){if(Gh9===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;vyu===void 0&&(vyu=document.createElement("template"));var D=vyu;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Gh9=u}u=Gh9;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var trQ;var xwu;var m4=function(){var u=_.Q.apply(this,arguments)||this;u.id="product-picker";u.selected=!1;u.closeButtonId="close-button";u.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return u};
_.c(m4,_.Q);_.I=m4.prototype;_.I.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.I.observeSelected=function(){this.selected&&this.hostElement.focus();var u=_.bi(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");u.length&&u[0].focus()};
_.I.onCloseBuyFlow=function(){_.xs(this.hostElement,"picker-cancelled")};
_.I.onCloseClick=function(){_.xs(this.hostElement,"picker-cancelled");var u;((u=this.data)==null?0:u.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.b(this.data.closeButton,_.kY))};
_.I.onCloseEngageWithAudienceEditorPanels=function(){_.xs(this.hostElement,"picker-cancelled")};
m4.prototype.observeSelected=m4.prototype.observeSelected;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],m4.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],m4.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],m4.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],m4.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"id",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"selected",void 0);_.g([_.U(),_.N("design:type",Object)],m4.prototype,"closeButtonId",void 0);_.g([_.JU("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m4.prototype,"observeSelected",null);
_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],m4);
_.F(m4,"yt-live-chat-product-picker-panel-view-model",function(){if(xwu===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;trQ===void 0&&(trQ=document.createElement("template"));var D=trQ;l.call(K,D.content.cloneNode(!0),u.content.firstChild);xwu=u}u=xwu;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var SZS;var b9u;var h4=function(){var u=_.Q.apply(this,arguments)||this;u.iconId="";u.icon="";u.disabled=!1;u.systemIcons=_.S("kevlar_system_icons");return u};
_.c(h4,_.Q);_.I=h4.prototype;_.I.attached=function(){_.S("live_chat_compute_product_button_aria_label")||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1"))};
_.I.computeIconId=function(u){return u&&u.icon&&u.icon.iconType?u.icon.iconType.toLowerCase():""};
_.I.computeIcon=function(u){return u&&u.icon&&u.icon.iconType?(u=u.icon.iconType.toLowerCase(),(u.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+u):""};
_.I.computeDisabled=function(u){return!!u};
_.I.computeCommand=function(u,K){return K?void 0:u};
_.I.computeTooltip=function(u,K){return K&&u?u:""};
_.I.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.MN.Object.defineProperties(h4.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.S("live_chat_compute_product_button_aria_label"))return"";var u="",K,l,D;if((K=this.data)==null?0:(l=K.text)==null?0:(D=l.runs)==null?0:D.length)u=this.data.text.runs[0].text||"";else{var d,C;if((d=this.data)==null?0:(C=d.text)==null?0:C.simpleText)u=this.data.text.simpleText}var W,M,q;if((W=this.data)==null?0:(M=W.subtext)==null?0:(q=M.runs)==null?0:q.length)u&&(u+=". "),u+=this.data.subtext.runs[0].text||
"";else{var v,G;if((v=this.data)==null?0:(G=v.subtext)==null?0:G.simpleText)u&&(u+=". "),u+=this.data.subtext.simpleText}return u}}});
_.g([_.e(_.po.YtEndpointBehavior),_.N("design:type",Object)],h4.prototype,"ytEndpointBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],h4.prototype,"data",void 0);_.g([_.U({computed:"computeIconId(data)",reflectToAttribute:!0}),_.N("design:type",Object)],h4.prototype,"iconId",void 0);
_.g([_.U({computed:"computeIcon(data)",reflectToAttribute:!0}),_.N("design:type",Object)],h4.prototype,"icon",void 0);_.g([_.U({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.N("design:type",Object)],h4.prototype,"disabled",void 0);_.g([_.U({computed:"computeCommand(data.command, disabled)"}),_.N("design:type",Object)],h4.prototype,"command",void 0);_.g([_.U({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.N("design:type",String)],h4.prototype,"tooltip",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],h4.prototype,"systemIcons",void 0);_.g([_.R("data.text","data.subtext"),_.U(),_.N("design:type",String),_.N("design:paramtypes",[])],h4.prototype,"ariaLabel",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],h4);
_.F(h4,"yt-live-chat-product-button-renderer",function(){if(b9u===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;SZS===void 0&&(SZS=document.createElement("template"));var D=SZS;l.call(K,D.content.cloneNode(!0),u.content.firstChild);b9u=u}u=b9u;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var O9S;var cHS;var ET=function(){var u=_.Q.apply(this,arguments)||this;u.selected=!1;u.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 u};
_.c(ET,_.Q);_.I=ET.prototype;_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.I.computeId=function(u){return u.id||""};
_.I.onCloseClick=function(){_.xs(this.hostElement,"picker-cancelled")};
_.I.observeSelected=function(){this.selected&&this.hostElement.focus();var u=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");u.length&&u[0].focus()};
_.I.onCloseBuyFlow=function(){_.xs(this.hostElement,"picker-cancelled")};
_.I.onCloseEngageWithAudienceEditorPanels=function(){_.xs(this.hostElement,"picker-cancelled")};
ET.prototype.observeSelected=ET.prototype.observeSelected;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],ET.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ET.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ET.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ET.prototype,"data",void 0);
_.g([_.U({computed:"computeId(data)",reflectToAttribute:!0}),_.N("design:type",String)],ET.prototype,"id",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ET.prototype,"selected",void 0);_.g([_.JU("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ET.prototype,"observeSelected",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],ET);
_.F(ET,"yt-live-chat-product-picker-renderer",function(){if(cHS===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;O9S===void 0&&(O9S=document.createElement("template"));var D=O9S;l.call(K,D.content.cloneNode(!0),u.content.firstChild);cHS=u}u=cHS;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var aHF;var zqS;var eqk;var Rqu;var Lq=function(){return _.Q.apply(this,arguments)||this};
_.c(Lq,_.Q);Lq.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()};
Lq.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Lq.prototype.created=function(){this.ids={background:_.EY(),maskOne:_.EY(),maskTwo:_.EY(),gradient:_.EY(),largeBackground:_.EY(),largeGradientOne:_.EY(),largeGradientTwo:_.EY(),largeGradientPath:_.EY()}};
Lq.prototype.maybeLoadAnimationBackground=Lq.prototype.maybeLoadAnimationBackground;_.g([_.U({value:!1}),_.N("design:type",Boolean)],Lq.prototype,"useLargeBackground",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Lq.prototype,"useAnimationBackground",void 0);_.g([_.U({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.N("design:type",Boolean)],Lq.prototype,"useRegularBackground",void 0);
_.g([_.U(),_.N("design:type",Object)],Lq.prototype,"ids",void 0);_.g([_.U(),_.N("design:type",Object)],Lq.prototype,"lottieAnimation",void 0);_.g([_.BF("#animation-background"),_.N("design:type",HTMLDivElement)],Lq.prototype,"animationBackground",void 0);_.g([_.JU("useAnimationBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lq.prototype,"maybeLoadAnimationBackground",null);
_.g([_.E9({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Lq);
_.F(Lq,"yt-live-interactivity-component-background",function(){if(Rqu===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;eqk===void 0&&(eqk=document.createElement("template"));var D=eqk;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Rqu=u}u=Rqu;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var u7=function(){var u=_.Q.apply(this,arguments)||this;u.characterCount=0;u.showInputErrorMessage=!1;u.startQnaRequestInFlight=!1;u.modern=_.S("web_button_rework_with_live");u.buttonOverrides={style:"mono",type:"filled"};u.closeButtonOverrides={iconPosition:"icon-only"};u.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return u};
_.c(u7,_.Q);_.I=u7.prototype;
_.I.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]]"}}}}}};
_.I.onCharacterCountChanged=function(u){var K,l,D,d,C=(l=_.b(this==null?void 0:(K=this.data)==null?void 0:K.creatorCallForQuestions,IEi))==null?void 0:(D=l.inputField)==null?void 0:(d=D.liveChatTextInputFieldRenderer)==null?void 0:d.maxCharacterLimit,W,M;C!=null&&(u==null?void 0:(W=u.detail)==null?void 0:W.characterCount)!=null&&_.b(this==null?void 0:(M=this.data)==null?void 0:M.startButton,_.lF)&&(K=u.detail.characterCount>C,this.set("data.startButton.buttonRenderer.isDisabled",u.detail.characterCount===
0||K),this.showInputErrorMessage=K)};
_.I.onCloseClick=function(){_.xs(this.hostElement,"picker-cancelled");_.Sy(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.I.onPickerCancelled=function(){var u=_.bi(this.hostElement).querySelector("#qna-creator-text-input-field");u&&u.setLiveChatRichMessageInput(null)};
_.I.handleOpenQnaStartPanel=function(){var u=_.bi(this.hostElement).querySelector("#qna-creator-text-input-field");u&&u.focus()};
_.I.handleStartButtonAction=function(u){var K=this;if(u.detail.actionName==="yt-service-request"&&(u.stopPropagation(),u=u.detail.args[1])){var l=_.bi(this.hostElement).querySelector("#qna-creator-text-input-field"),D;(l==null?0:(D=l.liveChatRichMessageInput)==null?0:D.textSegments)&&l.liveChatRichMessageInput.textSegments.length!==0&&(D={rich_message:_.Iw(l.liveChatRichMessageInput)},_.c0(this.hostElement,[u,D]).then(function(){_.xs(K.hostElement,"picker-cancelled")}))}};
_.I.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.I.handleServiceRequestCompleted=function(u){var K;u=u==null?void 0:(K=u.detail)==null?void 0:K.data;(u==null?0:u.actions)&&u.actions.length>0?this.startQnaRequestInFlight=!1:_.Sy(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.I.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
u7.prototype.handleServiceRequestError=u7.prototype.handleServiceRequestError;u7.prototype.handleServiceRequestCompleted=u7.prototype.handleServiceRequestCompleted;u7.prototype.handleServiceRequestSent=u7.prototype.handleServiceRequestSent;u7.prototype.onPickerCancelled=u7.prototype.onPickerCancelled;u7.prototype.onCharacterCountChanged=u7.prototype.onCharacterCountChanged;_.g([_.U(),_.N("design:type",Object)],u7.prototype,"characterCount",void 0);
_.g([_.U(),_.N("design:type",Object)],u7.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],u7.prototype,"showInputErrorMessage",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],u7.prototype,"startQnaRequestInFlight",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],u7.prototype,"modern",void 0);_.g([_.U(),_.N("design:type",Object)],u7.prototype,"buttonOverrides",void 0);
_.g([_.U(),_.N("design:type",Object)],u7.prototype,"closeButtonOverrides",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Dl),_.N("design:type",Object)],u7.prototype,"ytLiveChatReduxBehavior",void 0);_.g([_.e(_.Ii.YtLiveChatItemBehavior),_.N("design:type",_.y8)],u7.prototype,"ytLiveChatItemBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],u7.prototype,"ytActionHandlerBehavior",void 0);_.g([_.PF("yt-live-chat-text-input-field-renderer-character-count-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],u7.prototype,"onCharacterCountChanged",null);_.g([_.PF("picker-cancelled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u7.prototype,"onPickerCancelled",null);
_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u7.prototype,"handleServiceRequestSent",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],u7.prototype,"handleServiceRequestCompleted",null);
_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],u7.prototype,"handleServiceRequestError",null);_.g([_.T({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],u7);
_.F(u7,"yt-live-chat-qna-start-panel-renderer",function(){if(zqS===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;aHF===void 0&&(aHF=document.createElement("template"));var D=aHF;l.call(K,D.content.cloneNode(!0),u.content.firstChild);zqS=u}u=zqS;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Uwg;var fHg;var KO=function(){return _.Q.apply(this,arguments)||this};
_.c(KO,_.Q);KO.prototype.dismiss=function(){_.xs(this.hostElement,"yt-live-chat-error-message-dismiss")};
KO.prototype.edit=function(){_.xs(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.g([_.U(),_.N("design:type",Object)],KO.prototype,"data",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],KO);
_.F(KO,"yt-live-chat-text-actions-error-message-renderer",function(){if(fHg===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Uwg===void 0&&(Uwg=document.createElement("template"));var D=Uwg;l.call(K,D.content.cloneNode(!0),u.content.firstChild);fHg=u}u=fHg;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var QRu;var PLb;var JHb;var jRr;var l7=function(){var u=_.Q.apply(this,arguments)||this;u.isDarkTheme=document.documentElement.hasAttribute("dark");u.newnessDotEligible=!1;return u};
_.c(l7,_.Q);l7.prototype.sendReaction=function(){var u,K,l=((u=this.data)==null?void 0:u.emojiId)||((K=this.data)==null?void 0:K.emoteId),D;l&&((D=this.data)==null?0:D.shouldTriggerAnimation)&&_.Sy(this.hostElement,"yt-create-user-reaction-animation",[l]);var d;(u=_.lt((d=this.data)==null?void 0:d.onTap))&&_.Jl(u,this.hostElement);this.showNewnessDot&&_.Sy(this.hostElement,"yt-hide-newness-dot")};
l7.prototype.onClick=function(u){(!u||u.clientX||u.clientY)&&this.sendReaction()};
l7.prototype.onKeyDown=function(u){u.key!=="Enter"&&u.key!==" "||u.repeat||this.sendReaction()};
_.MN.Object.defineProperties(l7.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var u,K;return!!(((u=this.data)==null?0:u.emojiId)||((K=this.data)==null?0:K.emoteId))}}});
_.g([_.U(),_.N("design:type",Object)],l7.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],l7.prototype,"isDarkTheme",void 0);_.g([_.U(),_.N("design:type",Object)],l7.prototype,"newnessDotEligible",void 0);_.g([_.R("data.maybeShowNewnessDot"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],l7.prototype,"showNewnessDot",null);_.g([_.R("data.emojiId","data.emoteId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],l7.prototype,"useYtImage",null);
_.g([_.E9({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],l7);
_.F(l7,"yt-reaction-control-panel-button-view-model",function(){if(jRr===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;JHb===void 0&&(JHb=document.createElement("template"));var D=JHb;l.call(K,D.content.cloneNode(!0),u.content.firstChild);jRr=u}u=jRr;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Bqb;var po9;var DQ=function(){var u=_.Q.apply(this,arguments)||this;u.reactionControlPanelExpanded=!1;u.isDarkTheme=document.documentElement.hasAttribute("dark");u.newnessDotEligible=!1;return u};
_.c(DQ,_.Q);_.I=DQ.prototype;_.I.expandedButtonsChanged=function(){var u,K;_.e8(this.hostElement,{"--expanded-buttons-height":((K=(u=this.expandedButtonsData)==null?void 0:u.length)!=null?K:0)*36+"px"})};
_.I.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}}};
_.I.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.I.onMouseLeave=function(){var u=this;this.collapseTimer=setTimeout(function(){u.reactionControlPanelExpanded=!1},500)};
_.I.onFocusIn=function(){this.onMouseEnter()};
_.I.onFocusOut=function(){this.onMouseLeave()};
_.I.onCollapsedButtonFocusIn=function(){var u=this;setTimeout(function(){var K;(K=u.expandedButtons.querySelector("button"))==null||K.focus()},100)};
_.I.onCollapsedButtonFocusOut=function(u){u.stopPropagation()};
_.MN.Object.defineProperties(DQ.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var u,K;return _.k$.unsafeClone((u=this.liveReactionsData)==null?void 0:u.emojiButtonData)||((K=this.data)==null?void 0:K.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var u;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((u=this.data)==null||!u.maybeShowNewnessDot)}}});
DQ.prototype.expandedButtonsChanged=DQ.prototype.expandedButtonsChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],DQ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Dl),_.N("design:type",Object)],DQ.prototype,"ytLiveChatReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],DQ.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],DQ.prototype,"reactionControlPanelExpanded",void 0);_.g([_.U({selectorArgs:["data.liveReactionsDataEntityKey"],selector:gZH}),_.N("design:type",Object)],DQ.prototype,"liveReactionsData",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],DQ.prototype,"isDarkTheme",void 0);_.g([_.U(),_.N("design:type",Object)],DQ.prototype,"newnessDotEligible",void 0);
_.g([_.R("liveReactionsData","data.expandedButtons"),_.N("design:type",Object),_.N("design:paramtypes",[])],DQ.prototype,"expandedButtonsData",null);_.g([_.R("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.U({reflectToAttribute:!0}),_.N("design:type",Object),_.N("design:paramtypes",[])],DQ.prototype,"showNewnessDot",null);_.g([_.BF("#expanded-buttons"),_.N("design:type",HTMLElement)],DQ.prototype,"expandedButtons",void 0);
_.g([_.JU("expandedButtonsData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DQ.prototype,"expandedButtonsChanged",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],DQ);
_.F(DQ,"yt-reaction-control-panel-view-model",function(){if(po9===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Bqb===void 0&&(Bqb=document.createElement("template"));var D=Bqb;l.call(K,D.content.cloneNode(!0),u.content.firstChild);po9=u}u=po9;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var dD=new _.Ev("yt-live-chat"),i95=Date.parse("2024-7-24"),CO=function(){var u=_.Q.apply(this,arguments)||this;u.emojiManager=_.Cl;u.newnessDotEligible=!1;u.newnessDotImpressionCounted=!1;u.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return u};
_.c(CO,_.Q);_.I=CO.prototype;_.I.emojiCustomizationEnabledChanged=function(){var u;((u=this.data)==null?0:u.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((u=dD.getCreationTime("emoji-customization-count"))&&u<i95&&dD.set("emoji-customization-count","0"),u=Number(dD.get("emoji-customization-count"))||0,u<3&&(this.newnessDotEligible=!0,dD.set("emoji-customization-count",(u+1).toString())),this.newnessDotImpressionCounted=!0)};
_.I.hideNewnessDot=function(){this.newnessDotEligible=!1;dD.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.I.handleReactionsMute=function(u){var K=_.AC(),l=_.Yo(206221),D={checkboxData:{state:u?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};K&&_.Wi(K,l,D);this.reactionsMuted=u};
_.I.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.I.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}}};
_.MN.Object.defineProperties(CO.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var u;return(!((u=this.liveReactionsData)==null||!u.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
CO.prototype.liveReactionsSettingChanged=CO.prototype.liveReactionsSettingChanged;CO.prototype.emojiCustomizationEnabledChanged=CO.prototype.emojiCustomizationEnabledChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],CO.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Dl),_.N("design:type",Object)],CO.prototype,"ytLiveChatReduxBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],CO.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],CO.prototype,"data",void 0);_.g([_.U(),_.N("design:type",_.lK)],CO.prototype,"emojiManager",void 0);_.g([_.U(),_.N("design:type",Object)],CO.prototype,"newnessDotEligible",void 0);_.g([_.U(),_.N("design:type",Object)],CO.prototype,"newnessDotImpressionCounted",void 0);
_.g([_.U({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:NQE}),_.N("design:type",Boolean)],CO.prototype,"liveReactionsSetting",void 0);_.g([_.U({selectorArgs:["data.liveReactionsDataEntityKey"],selector:gZH}),_.N("design:type",Object)],CO.prototype,"liveReactionsData",void 0);_.g([_.U({value:function(){var u=_.S("enable_lwe_web_mute"),K=dD.get("allow-reactions");return K===void 0?!1:!K&&u}}),
_.N("design:type",Boolean)],CO.prototype,"reactionsMuted",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],CO.prototype,"liveReactionsEnabled",null);_.g([_.JU("data.emojiCustomizationEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CO.prototype,"emojiCustomizationEnabledChanged",null);
_.g([_.JU("liveReactionsEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CO.prototype,"liveReactionsSettingChanged",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],CO);
_.F(CO,"yt-reaction-control-panel-overlay-view-model",function(){if(PLb===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;QRu===void 0&&(QRu=document.createElement("template"));var D=QRu;l.call(K,D.content.cloneNode(!0),u.content.firstChild);PLb=u}u=PLb;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Tqr={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(u){var K=this.$.pickers.selected;if(K){_.bi(this.hostElement).removeAttribute(K+"-open");var l="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(l="#picker-buttons",K==="emoji"&&_.bi(this.hostElement).querySelector("#emoji-picker-button")&&(l="#emoji-picker-button"));if(l=_.bi(this.hostElement).querySelector(l).querySelector("#"+K))l.active=!1}l=u;K==u&&(l=null);K!=
u&&_.bi(this.hostElement).setAttribute(u+"-open","");this.$.pickers.selected=l;_.Sy(this.hostElement,"yt-live-chat-picker-changed",[l])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var In=function(){var u=_.Q.apply(this,arguments)||this;u.numSentMessages=0;u.timeoutDurationMs=0;u.timeoutMs=0;u.lastTimeoutTimeMs=0;u.pendingMessageId="";u.hasFiredInitialFocusActions=!1;u.isBeforeFocusEnabled=!0;u.id="";u.characterCount=0;u.maxCharacterLimit=0;u.remainingCharacterCount=0;u.inputExpanded=!1;u.buttonOverrides={iconPosition:"icon-only"};u.inReplyPanel=!1;u.countdownRatio=0;u.isTooltipVisible=!1;u.tooltipTimeout=1E4;u.systemIcons=_.S("kevlar_system_icons");u.tallerEmojiPicker=_.S("live_chat_taller_emoji_picker");
u.sendReplyMessageInFlight=!1;u.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"};u.onResize=function(){u.maybeToggleCharacterCount()};
return u};
_.c(In,_.Q);_.I=In.prototype;
_.I.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"}}}};
_.I.attached=function(){window.addEventListener("resize",this.onResize)};
_.I.detached=function(){window.removeEventListener("resize",this.onResize)};
_.I.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.I.sendMessage=function(){var u=this,K,l,D,d;return _.H(function(C){if(u.sendDisabled)return C.return();u.isTooltipVisible&&_.Sy(u.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(u.data.sendButton&&u.data.sendButton.buttonRenderer){u.input.completeEmojis();K=u.data.sendButton.buttonRenderer.serviceEndpoint;if(!K)return C.return();D=((l=_.b(K,_.gvB))==null?void 0:l.clientIdPrefix)||"";d={client_message_id:D+String(u.numSentMessages++),rich_message:_.Iw(u.input.liveChatRichMessageInput)};
u.pendingMessageId=d.client_message_id;u.inReplyPanel&&(u.sendReplyMessageInFlight=!0);_.c0(u.hostElement,[K,d]);u.input.setLiveChatRichMessageInput(null)}_.TG(C)})};
_.I.handleSendButtonAction=function(u){u.detail.actionName==="yt-service-request"&&(u.stopPropagation(),this.sendMessage())};
_.I.onSendCompleted=function(u,K){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(u=this.get("timeoutDurationUsec",K.data))&&this.handleTimeout(Number(u)/1E3);this.errorMessage=this.get("errorMessage",K.data);this.pendingMessageId=""};
_.I.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.Sy(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.I.handlePickerButtonToggle=function(u){u=u.detail.targetId;this.ytPickerBehavior.togglePicker_(u);if(u==="emoji")this.input.focus();else if(u==="qna-start-panel"){var K,l;(K=_.bi(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(l=K.querySelector("#qna-creator-text-input-field"))==null||l.focus()}};
_.I.onComponentReplaced=function(u){var K,l;u.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((K=u.replacement.liveChatMessageInputRenderer)==null?0:(l=K.headerRenderer)==null?0:l.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.I.onEmojiSelect=function(u){this.input.focus();this.input.insertEmoji(u.detail)};
_.I.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.I.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.Sy(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.Sy(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.I.onOpenPopupAction=function(u,K){var l=this;K===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.Sy(l.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.I.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.I.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.I.focusChanged=function(){this.maybeToggleCharacterCount()};
_.I.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var u=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",u>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.I.computeId=function(){return this.data&&this.data.targetId||""};
_.I.computeSendDisabled=function(u,K,l,D){u=!!(!u||K&&u>K||D);(K=_.bi(this.hostElement).querySelector("#send-button"))&&K.children.length&&(K.children[0].disabled=u);return u};
_.I.handleTimeout=function(u){this.timeoutDurationMs=this.timeoutMs=u;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.I.updateTimeout=function(u){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(u-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=u,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.I.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.I.onErrorMessageEdit=function(u){this.input.setLiveChatRichMessageInput(u.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.I.errorMessageChanged=function(){var u=this;_.Cr(function(){_.Sy(u.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.I.computeAuthorNameColor=function(u){var K;if(_.S("live_chat_author_name_color_usernames")&&(u==null?0:(K=u.authorName)==null?0:K.simpleText))return _.Car(_.I5y(u.authorName.simpleText));if(_.S("live_chat_seed_color_usernames")&&(u==null?0:u.authorSeedColorArgb))return _.Car(_.Rt(u.authorSeedColorArgb));if(_.S("live_chat_colored_usernames"))return"#cc0000";var l;return _.S("live_chat_simple_color_usernames")&&(u==null?0:(l=u.authorName)==null?0:l.simpleText)&&(u==null?0:u.authorUsernameColorLight)&&
(u==null?0:u.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Rt(u.authorUsernameColorDark):_.Rt(u.authorUsernameColorLight):""};
_.I.onIsTooltipVisibleChanged=function(){var u=_.bi(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){u.hidden=!1;u.setAttribute("role","alert")},0):(u.hidden=!0,u.removeAttribute("role"))};
_.I.onFocusedChanged=function(u){this.inputFocused=u.detail.value};
_.MN.Object.defineProperties(In.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 u;return!((u=this.data)==null||!u.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?void 0:(K=u.pickers)==null?void 0:K.find(function(l){return l.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var u=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return u?this.ytRendererBehavior.getSimpleString(u):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
In.prototype.onIsTooltipVisibleChanged=In.prototype.onIsTooltipVisibleChanged;In.prototype.errorMessageChanged=In.prototype.errorMessageChanged;In.prototype.onErrorMessageEdit=In.prototype.onErrorMessageEdit;In.prototype.onErrorMessageDismiss=In.prototype.onErrorMessageDismiss;In.prototype.focusChanged=In.prototype.focusChanged;In.prototype.characterCountChanged=In.prototype.characterCountChanged;In.prototype.onEmojiSelect=In.prototype.onEmojiSelect;In.prototype.handlePickerButtonToggle=In.prototype.handlePickerButtonToggle;
In.prototype.onSendError=In.prototype.onSendError;In.prototype.onSendCompleted=In.prototype.onSendCompleted;In.prototype.sendMessage=In.prototype.sendMessage;In.prototype.dataChanged=In.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],In.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.e(Tqr.YtPickerBehavior),_.N("design:type",Object)],In.prototype,"ytPickerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],In.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.dh.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],In.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],In.prototype,"hasFiredInitialFocusActions",void 0);
_.g([_.U(),_.N("design:type",Object)],In.prototype,"isBeforeFocusEnabled",void 0);_.g([_.U(),_.N("design:type",Object)],In.prototype,"data",void 0);_.g([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",Object)],In.prototype,"id",void 0);_.g([_.U(),_.N("design:type",Object)],In.prototype,"characterCount",void 0);_.g([_.U(),_.N("design:type",Object)],In.prototype,"maxCharacterLimit",void 0);
_.g([_.U(),_.N("design:type",Object)],In.prototype,"remainingCharacterCount",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],In.prototype,"inputExpanded",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],In.prototype,"inputFocused",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],In.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.g([_.U(),_.N("design:type",_.Ws)],In.prototype,"participantsManager",void 0);
_.g([_.U(),_.N("design:type",Object)],In.prototype,"buttonOverrides",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],In.prototype,"inReplyPanel",void 0);_.g([_.R("characterCount, maxCharacterLimit, countdownActive"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],In.prototype,"sendDisabled",null);_.g([_.U(),_.N("design:type",Object)],In.prototype,"countdownRatio",void 0);
_.g([_.R("countdownRatio"),_.N("design:type",Number),_.N("design:paramtypes",[])],In.prototype,"countdownStrokeDashOffset",null);_.g([_.R("countdownRatio"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],In.prototype,"countdownActive",null);_.g([_.R("data.interactionMessage"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],In.prototype,"hasInteractionMessage",null);
_.g([_.R("data.emojiPickerButton"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],In.prototype,"hasEmojiPickerButton",null);_.g([_.R("data, characterCount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],In.prototype,"showAvatar",null);_.g([_.R("data.pickers"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],In.prototype,"hasProductPickerPanelViewModel",null);
_.g([_.U(),_.N("design:type",Object)],In.prototype,"errorMessage",void 0);_.g([_.U(),_.N("design:type",Object)],In.prototype,"genericErrorMessage",void 0);_.g([_.U(),_.N("design:type",Object)],In.prototype,"isTooltipVisible",void 0);_.g([_.U(),_.N("design:type",Object)],In.prototype,"tooltipTimeout",void 0);_.g([_.R("data.onInitialFocusCommand"),_.N("design:type",String),_.N("design:paramtypes",[])],In.prototype,"tooltipMessage",null);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],In.prototype,"systemIcons",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],In.prototype,"tallerEmojiPicker",void 0);_.g([_.R("data"),_.N("design:type",String),_.N("design:paramtypes",[])],In.prototype,"authorNameColor",null);_.g([_.U(),_.N("design:type",Object)],In.prototype,"sendReplyMessageInFlight",void 0);_.g([_.BF("#input"),_.N("design:type",_.RRN)],In.prototype,"input",void 0);
_.g([_.BF("#count"),_.N("design:type",HTMLElement)],In.prototype,"count",void 0);_.g([_.BF("#input-container"),_.N("design:type",HTMLElement)],In.prototype,"inputContainer",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],In.prototype,"dataChanged",null);_.g([_.PF("yt-live-chat-send-message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],In.prototype,"sendMessage",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[Event,_.n1]),_.N("design:returntype")],In.prototype,"onSendCompleted",null);_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],In.prototype,"onSendError",null);
_.g([_.PF("yt-live-chat-icon-toggle-button-renderer-toggle"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],In.prototype,"handlePickerButtonToggle",null);_.g([_.PF("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],In.prototype,"onEmojiSelect",null);
_.g([_.JU("characterCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],In.prototype,"characterCountChanged",null);_.g([_.JU("inputFocused"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],In.prototype,"focusChanged",null);_.g([_.PF("yt-live-chat-error-message-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],In.prototype,"onErrorMessageDismiss",null);
_.g([_.PF("yt-live-chat-error-message-edit"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],In.prototype,"onErrorMessageEdit",null);_.g([_.JU("errorMessage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],In.prototype,"errorMessageChanged",null);_.g([_.JU("isTooltipVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],In.prototype,"onIsTooltipVisibleChanged",null);
_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],In);
_.F(In,"yt-live-chat-message-input-renderer",function(){if(IHX===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;CL9===void 0&&(CL9=document.createElement("template"));var D=CL9;l.call(K,D.content.cloneNode(!0),u.content.firstChild);IHX=u}u=IHX;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var wob;var Fbg;var yu=function(){var u=_.Q.apply(this,arguments)||this;u.systemIcons=_.S("kevlar_system_icons");u.firedOnClickCommand=!1;u.inReplyPanel=!1;return u};
_.c(yu,_.Q);
yu.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"}}}};
yu.prototype.onButtonToggle=function(u){u.target.disabled||this.ytPickerBehavior.togglePicker_(u.detail.targetId)};
yu.prototype.onClick=function(){var u=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.Sy(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return u.firedOnClickCommand=!1},5E3))};
_.MN.Object.defineProperties(yu.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?void 0:(K=u.panels)==null?void 0:K.find(function(l){return l.liveChatProductPickerPanelViewModel}))!==void 0}}});
yu.prototype.onButtonToggle=yu.prototype.onButtonToggle;_.g([_.e(Tqr.YtPickerBehavior),_.N("design:type",Object)],yu.prototype,"ytPickerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],yu.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],yu.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],yu.prototype,"systemIcons",void 0);_.g([_.U({reflectToAttribute:!1}),_.N("design:type",Object)],yu.prototype,"firedOnClickCommand",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],yu.prototype,"inReplyPanel",void 0);_.g([_.R("data.pickers"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yu.prototype,"hasProductPickerPanelViewModel",null);
_.g([_.PF("yt-live-chat-icon-toggle-button-renderer-toggle"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],yu.prototype,"onButtonToggle",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],yu);
_.F(yu,"yt-live-chat-restricted-participation-renderer",function(){if(Fbg===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;wob===void 0&&(wob=document.createElement("template"));var D=wob;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Fbg=u}u=Fbg;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var sI=function(){var u=_.Q.apply(this,arguments)||this;u.genericErrorMessage=_.o7("Error, try again.");u.inReplyPanel=!1;u.hideBorder=!1;return u};
_.c(sI,_.Q);sI.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}}}}}};
_.MN.Object.defineProperties(sI,{template:{configurable:!0,enumerable:!0,get:function(){return uqM()}}});
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],sI.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],sI.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],sI.prototype,"genericErrorMessage",void 0);_.g([_.U(),_.N("design:type",Object)],sI.prototype,"inReplyPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],sI.prototype,"hideBorder",void 0);
_.g([_.E9({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],sI);_.F(sI,"yt-live-chat-engagement-panel-input-renderer",function(){return uqM()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var VrJ,gyk;VrJ=_.Yo(115994);gyk=_.Yo(115993);_.on=function(u,K,l){var D=this;var d=l.dragDownAction;this.layer=0;this.JSC$22232_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return D.dragDownAction()}}}};
this.JSC$22232_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return D.dragDownAction()}}}};
this.fullscreen=!1;var C=_.iT();_.U7(C,VrJ,this.layer);_.U7(C,gyk,this.layer);this.dragDownAction=function(){d();_.sK(C,{visualElement:D.fullscreen?VrJ:gyk})};
this.gesture=new _.WT(u,K,this.JSC$22232_watchConfig,"pandown");this.attach()};
_.on.prototype.attach=function(){this.gesture.attach()};
_.on.prototype.detach=function(){this.gesture.detach()};
_.on.prototype.update=function(u){this.fullscreen=u;this.gesture.config=u?this.JSC$22232_watchFullScreenConfig:this.JSC$22232_watchConfig};var NqQ={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(u){if(u&&u.length==1&&Array.isArray(u[0].loggingUrls)){u=_.k$.unsafeClone(u[0]);var K=this.macros||{},l=this.getAdModuleClient_();if(!l)return _.zA();u.loggingUrls.forEach(function(D){if(D.baseUrl){var d=D.baseUrl;var C=K;C=C===void 0?{}:C;d=l.getOptions().includes("replaceUrlMacros")?_.g9R(l,"replaceUrlMacros",{url:d,additionalMapping:C}):d;D.baseUrl=d}},this);
u=[u]}return _.c0(this.hostElement,u)},
getAdModuleClient_:function(){var u=_.xY(this);return u?(u=u.getPlayer())?new _.gL(u):null:null}}]};var khJ;var WX=function(){var u=_.Q.apply(this,arguments)||this;u.isCollapsed=!1;u.modernPanels=_.S("kevlar_watch_modern_panels");u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return u};
_.c(WX,_.Q);_.I=WX.prototype;_.I.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.I.onDonateTap=function(){var u=this.get("data.donateButton.buttonRenderer.command");if(u){var K=_.AC(),l=this.get("data.donateButton.buttonRenderer.trackingParams");K&&l&&_.Wi(K,_.gf(l));this.ytOpenPopupBehavior.openPopup(u)}};
_.I.onShowMore=function(){this.isCollapsed=!1;var u=_.AC(),K=this.get("data.expandButton.buttonRenderer.trackingParams");u&&K&&_.Wi(u,_.gf(K))};
_.I.onShowLess=function(){this.isCollapsed=!0};
_.I.dataChanged=function(){_.e8(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.I.onDarkModeToggledAction=function(u){this.isDarkTheme=u};
_.I.handleUpdate=function(u){if(u=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",u))this.set("data.startLabel",u.startLabel),this.set("data.endLabel",u.endLabel),this.set("data.progress",u.progress),this.set("data.amountRaisedLabel",u.amountRaisedLabel),this.dataChanged()};
_.I.handleOpenPopupAction=function(u){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",u)&&_.Sy(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.I.computeHeaderBackgroundUrl=function(u,K){if(u)return K?u.headerBackgroundDarkUrl:u.headerBackgroundUrl};
_.I.isProgressBarVisible=function(u){return!(!u||u.progress===void 0)};
_.I.headerBackgroundClass=function(){return _.E3("HTML_DIR")==="rtl"?"flip":""};
WX.prototype.dataChanged=WX.prototype.dataChanged;_.g([_.e(_.B2.YtOpenPopupBehavior),_.N("design:type",Object)],WX.prototype,"ytOpenPopupBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],WX.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],WX.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],WX.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],WX.prototype,"isCollapsed",void 0);_.g([_.U({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.N("design:type",String)],WX.prototype,"headerBackgroundUrl",void 0);_.g([_.U(),_.N("design:type",Boolean)],WX.prototype,"isDarkTheme",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],WX.prototype,"modernPanels",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WX.prototype,"dataChanged",null);_.g([_.T({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],WX);
_.F(WX,"ytd-donation-shelf-renderer",function(){if(khJ!==void 0)return khJ;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return khJ=u},{mode:1});var Z9J;var YZk=function(){return _.Q.apply(this,arguments)||this};
_.c(YZk,_.Q);_.g([_.U(),_.N("design:type",Object)],YZk.prototype,"data",void 0);_.g([_.T({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],YZk);
_.F(YZk,"ytd-donation-unavailable-renderer",function(){if(Z9J!==void 0)return Z9J;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Z9J=u},{mode:1});var AHJ;var HX=function(){return _.Q.apply(this,arguments)||this};
_.c(HX,_.Q);HX.prototype.computeIconType=function(u){return u?"yt-icons:"+u.toLowerCase():null};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],HX.prototype,"data",void 0);_.g([_.T({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],HX);
_.F(HX,"ytd-limited-state-message-renderer",function(){if(AHJ!==void 0)return AHJ;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return AHJ=u},{mode:1});var Xog;var Mq=function(){return _.Q.apply(this,arguments)||this};
_.c(Mq,_.Q);Mq.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Mq.prototype.onTap=function(u){var K=this.data&&this.data.endpoint;K&&!_.rE(_.WF(u),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.xs(this.hostElement,"yt-navigate",{endpoint:K})};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Mq.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Mq.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Mq.prototype,"data",void 0);_.g([_.T({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Mq);
_.F(Mq,"ytd-autotagging-metadata-renderer",function(){if(Xog!==void 0)return Xog;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Xog=u},{mode:1});var mwb;var qq=function(){return _.Q.apply(this,arguments)||this};
_.c(qq,_.Q);qq.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],qq.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],qq.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],qq.prototype,"data",void 0);_.g([_.T({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],qq);
_.F(qq,"ytd-autotagging-metadata-row-renderer",function(){if(mwb!==void 0)return mwb;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return mwb=u},{mode:1});var hqz;var Eyu;var $d=function(){var u=_.Q.apply(this,arguments)||this;u.engagementPanelContent=!1;return u};
_.c($d,_.Q);$d.prototype.computeHasDividerLine=function(u,K){return u&&!K};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],$d.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.N("design:type",Boolean)],$d.prototype,"hasDividerLine",void 0);_.g([_.U(),_.N("design:type",Object)],$d.prototype,"engagementPanelContent",void 0);
_.g([_.T({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],$d);
_.F($d,"ytd-metadata-row-header-renderer",function(){if(Eyu!==void 0)return Eyu;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Eyu=u},{mode:1});var LbS;var nO=function(){return _.Q.apply(this,arguments)||this};
_.c(nO,_.Q);nO.prototype.computeHasDividerLine=function(u){return u};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],nO.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.N("design:type",Boolean)],nO.prototype,"hasDividerLine",void 0);_.g([_.T({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],nO);
_.F(nO,"ytd-metadata-row-renderer",function(){if(LbS!==void 0)return LbS;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return LbS=u},{mode:1});var uHu;var rD=function(){return _.Q.apply(this,arguments)||this};
_.c(rD,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],rD.prototype,"data",void 0);_.g([_.T({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],rD);
_.F(rD,"ytd-metadata-with-image-row-renderer",function(){if(uHu!==void 0)return uHu;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return uHu=u},{mode:1});var Kau;var vX=function(){var u=_.Q.apply(this,arguments)||this;u.rounded=!0;u.fixie=!1;u.fullWidth=!1;return u};
_.c(vX,_.Q);_.I=vX.prototype;_.I.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.onDataChanged=function(){var u=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(K){u.onEndpointLinkKeyPress(K)}))};
_.I.onEndpointLinkKeyPress=function(u){u.target===this.endpointLink&&u.keyCode===13&&_.xs(this.hostElement,"click")};
_.I.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var u;if((u=this.data)==null?0:u.endpoint)_.ay(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.I.onYtNavigate=function(u){this.endpointHref||(u.stopPropagation(),u.preventDefault())};
_.I.onInformationButtonContainerClick=function(u){u.target.id!=="information-button-container"&&(u.stopPropagation(),u.preventDefault())};
_.I.computeStyle=function(u){return u};
_.I.computeIsThumbnailStyle=function(u){return u==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.I.computeThumbnailWidth=function(u){switch(u){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}};
_.I.computeThumbnailObjectFit=function(u){switch(u){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.MN.Object.defineProperties(vX.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?0:u.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
vX.prototype.onYtNavigate=vX.prototype.onYtNavigate;vX.prototype.onClick=vX.prototype.onClick;vX.prototype.onDataChanged=vX.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],vX.prototype,"componentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],vX.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],vX.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],vX.prototype,"componentStyle",void 0);_.g([_.U({computed:"computeIsThumbnailStyle(data.style)"}),_.N("design:type",Boolean)],vX.prototype,"isThumbnailStyle",void 0);_.g([_.U({computed:"computeThumbnailObjectFit(data.style)"}),_.N("design:type",String)],vX.prototype,"thumbnailObjectFit",void 0);
_.g([_.U({computed:"computeThumbnailWidth(data.style)"}),_.N("design:type",Number)],vX.prototype,"thumbnailWidth",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],vX.prototype,"rounded",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],vX.prototype,"fixie",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],vX.prototype,"fullWidth",void 0);_.g([_.BF("#endpoint-link"),_.N("design:type",HTMLAnchorElement)],vX.prototype,"endpointLink",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vX.prototype,"onDataChanged",null);_.g([_.R("data.endpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],vX.prototype,"endpointHref",null);_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],vX.prototype,"onClick",null);
_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],vX.prototype,"onYtNavigate",null);_.g([_.T({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],vX);
_.F(vX,"ytd-rich-metadata-renderer",function(){if(Kau!==void 0)return Kau;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Kau=u},{mode:_.zW("kevlar_poly_si_batch_j075")?1:2});var lAM;var Gl=function(){var u=_.Q.apply(this,arguments)||this;u.fixie=!1;u.fullWidth=!1;return u};
_.c(Gl,_.Q);Gl.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Gl.prototype.computeHasDividerLine=function(u){return u};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Gl.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Gl.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.N("design:type",Boolean)],Gl.prototype,"hasDividerLine",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Gl.prototype,"fixie",void 0);_.g([_.U(),_.N("design:type",Object)],Gl.prototype,"fullWidth",void 0);
_.g([_.T({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Gl);
_.F(Gl,"ytd-rich-metadata-row-renderer",function(){if(lAM!==void 0)return lAM;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return lAM=u},{mode:1});var tz=function(){var u=_.Q.apply(this,arguments)||this;u.engagementPanelContent=!1;u.fixie=!1;u.fullWidth=!1;return u};
_.c(tz,_.Q);
tz.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"}}}};
tz.prototype.computeCollapsibleItems=function(u,K,l){return u===void 0||K===void 0||l===void 0||l?[]:u.slice(K)};
tz.prototype.computeAlwaysShownItems=function(u,K){return u&&u.length?u.slice(0,K):[]};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],tz.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],tz.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],tz.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],tz.prototype,"collapsed",void 0);
_.g([_.U({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.N("design:type",Array)],tz.prototype,"alwaysShownItems",void 0);_.g([_.U({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.N("design:type",Array)],tz.prototype,"collapsibleItems",void 0);_.g([_.U(),_.N("design:type",Object)],tz.prototype,"engagementPanelContent",void 0);_.g([_.U(),_.N("design:type",Object)],tz.prototype,"fixie",void 0);
_.g([_.U(),_.N("design:type",Object)],tz.prototype,"fullWidth",void 0);_.g([_.T({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],tz);
_.F(tz,"ytd-metadata-row-container-renderer",function(){if(hqz!==void 0)return hqz;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return hqz=u},{mode:1});var DS9;var xd=function(){var u=_.Q.apply(this,arguments)||this;u.currentPageUrl="";u.baseUrl="";u.isHiddenByUser=null;u.hidden=!1;u.showAboveScrim=!1;u.watchNextGrid=_.S("kevlar_watch_grid");u.modernButtons=_.S("web_modern_buttons");u.roundedContainer=!0;u.noBorder=!1;u.roundBackground=!_.S("live_chat_round_background_killswitch");u.overflowHideChat=_.S("live_chat_overflow_hide_chat");u.forceDarkTheme=!1;u.theaterWatchWhile=!1;u.isListeningForPlayerProgress=!1;u.JSC$22268_playerEvents=new Map;u.isFrameReady=
!1;u.player=null;u.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 u};
_.c(xd,_.Q);_.I=xd.prototype;_.I.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.bI(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.I.created=function(){var u=this;this.handleIframeEventListener=function(K){u.handleIframeEvent(K)};
this.handleKeyboardEventListener=function(K){u.handleKeyboardEvent(K)};
this.JSC$22268_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22268_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22268_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22268_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22268_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.I.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()};
_.I.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};
_.I.computeBaseUrl=function(u){var K="/live_chat";this.isChatReplay()&&(K="/live_chat_replay");return _.bA(_.SS(_.x4(_.lr(u),K),null),"").toString()};
_.I.dataChanged=function(){_.S("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.I.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var u=this.url;if(this.isChatReplay()&&this.player){var K=Math.floor(this.player.getProgressState().current*1E3);u=_.dp(_.lr(u),"playerOffsetMs",K.toString()).toString()}K=this.chatframe;try{var l=u==="about:blank"?_.rHR:_.ES(u),D=K.contentDocument.location,d=_.KH(l);d!==void 0&&D.replace(d)}catch(C){K.src=u}}};
_.I.collapsedChanged=function(){_.xs(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.I.handleIframeEvent=function(u){if(u&&this.baseUrl.startsWith(u.origin)&&u.source===this.chatframe.contentWindow&&_.Ks(u.data))if(u.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(u);else if(u.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(u.data["yt-show-feedback-dialog"]){var K=_.GB().resolve(_.vv(_.FV2));if(K){var l=u.ports,D;l&&l.length&&(D=function(){l[0].postMessage({})});
u=u.data["yt-show-feedback-dialog"];K.showFeedbackDialog(u.customProductData,u.feedbackContent,D,u.bucket)}}else if(u.data["yt-show-survey"])_.xs(this.hostElement,"yt-show-survey",u.data["yt-show-survey"]);else if(u.data["yt-purchase-membership"])_.GB().resolve(_.t9).resolveCommand(u.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(u.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(u.data["yt-tunnel-out-live-service-request"]);else if(u.data["yt-user-activity"])_.vu();
else if(u.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(u.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(u.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(u.data["yt-open-popup"]);else if(u.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(u.data["yt-log-flow-logging-event-command"]);else if(u.data["yt-hide-live-chat"])this.onShowHideChat();else u.data["yt-report-moderation-state-log"]&&
this.player&&(K={cpn:this.player.getVideoData().cpn},_.YE("liveChatBeingModerated",K))};
_.I.attachLiveChatResponseVeTrackingParams=function(u){u=_.gf(u);var K=_.AC(),l=_.lZ("liveChatRenderer.trackingParams",this.data);K&&l&&_.DJ(K,_.gf(l),u)};
_.I.handleBuyflowMessages=function(u){var K=u.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,l=u.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,D=u.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.NT9(_.vU(_.ob),K.replace(/-/g,"+").replace(/_/g,"/"),function(d){u.ports[0].postMessage({success:!0,buyFlowResponse:d})},void 0,function(d){u.ports[0].postMessage({success:!1,
error:d&&d.message||"Buyflow rejected without error."})},_.jy().get("hl"),void 0,function(){u.ports[0].postMessage({closed:!0})},l,D)};
_.I.setupPlayerProgressRelay=function(){var u=this;if(!this.isListeningForPlayerProgress){var K=_.SU();K!=null&&K.getPlayerPromise&&(K.getPlayerPromise().then(function(l){u.playerApiReady(l)}),this.isListeningForPlayerProgress=!0)}};
_.I.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.I.playerApiReady=function(u){this.setPlayer(u)};
_.I.playerProgressHandler=function(){if(this.player){var u=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":u.current})}};
_.I.playerAdStartHandler=function(u){this.postToContentWindow({"yt-player-ad-start":u})};
_.I.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.I.playerStateChangeHandler=function(u){this.postToContentWindow({"yt-player-state-change":u})};
_.I.setPlayer=function(u){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22268_playerEvents);u&&(this.player=u,this.ytPlayerListenerBehavior.listenToPlayerEvents(u,this.JSC$22268_playerEvents),_.xs(this.hostElement,"player-api-ready"))};
_.I.liveChatPageUrl=function(u,K,l,D){return!l||K?"about:blank":l.liveChatRenderer?(K=_.lr(this.currentPageUrl).JSC$9960_queryData_,BDV(K),u=_.lr(u),K.add("continuation",l.liveChatRenderer.continuations[0].reloadContinuationData.continuation),l=_.Nu()==="USER_INTERFACE_THEME_DARK",(D||l)&&K.add("dark_theme","true"),_.SS(u,K),D=_.lr(u.toString()),l=D.JSC$9960_queryData_,"SESSION_INDEX"in _.mT&&(l.add("authuser",_.E3("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.mT&&l.add("pageId",_.E3("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.mT&&l.add("sdc",_.E3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),D.toString()):""};
_.I.isCollapsed=function(u,K){return K!==null?K:this.isChatReplay()||u&&u.conversationBarRenderer&&u.conversationBarRenderer.availabilityMessage?!0:u?u.liveChatRenderer?u.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.S("live_chat_hide_premiere_replay_message")||u.conversationBarRenderer&&u.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.I.isHidden=function(u,K,l){var D=K&&K.conversationBarRenderer&&K.conversationBarRenderer.availabilityMessage,d=K&&K.liveChatRenderer&&K.liveChatRenderer.showHideButton,C=K&&K.liveChatRenderer&&K.liveChatRenderer.showButton;return l&&u&&!D&&!C||!l&&u&&!D&&!d?!0:K&&K.liveChatRenderer&&K.liveChatRenderer.initialDisplayState?K.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.I.computeButtonOverride=function(u,K){if(u&&K)return{type:"outline"}};
_.I.setCollapsedState=function(u){_.b(u,_.RYB)&&(this.isHiddenByUser=!!_.b(u,_.RYB).collapsed,!this.isHiddenByUser&&_.S("enable_teaser_framework_web_client")&&_.Sy(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.I.forwardReduxActionToIframe=function(u){this.postToContentWindow({"yt-live-chat-forward-redux-action":u})};
_.I.onLoopRangeChange=function(u){this.showAboveScrim=!(u==null||!u.postId)};
_.I.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.I.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.I.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.I.sendDarkThemePostMessage=function(u){this.postToContentWindow({"yt-live-chat-set-dark-theme":u})};
_.I.onLiveChatBuyFlowCallback=function(u){this.postToContentWindow({"yt-live-chat-buy-flow-callback":u})};
_.I.handleKeyboardEvent=function(u){(0,_.k$.containsValue)(jpE,u.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:u.type,keyCode:u.keyCode}})};
_.I.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.I.postToContentWindow=function(u){if(this.isFrameReady)try{var K=window.location.protocol+"//"+window.location.host,l;(l=this.chatframe)!=null&&l.contentWindow?this.chatframe.contentWindow.postMessage(u,K):_.hV(new _.wv("Tried posting a message to an iframe with no content window",u))}catch(D){_.Xm(D)}};
_.I.shouldHideChatFrame=function(u){return u&&_.S("hide_live_chat_button_when_collapsed")};
_.MN.Object.defineProperties(xd.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.S("live_chat_overflow_hide_chat")||_.S("web_watch_chat_hide_button_killswitch"))return _.S("live_chat_overflow_hide_chat");var u,K,l,D;return!!((u=this.data)==null?0:(K=u.liveChatRenderer)==null?0:(l=K.header)==null?0:(D=l.liveChatHeaderRenderer)==null?0:D.collapseButton)}}});
xd.prototype.collapsedChanged=xd.prototype.collapsedChanged;xd.prototype.urlChanged=xd.prototype.urlChanged;xd.prototype.dataChanged=xd.prototype.dataChanged;xd.prototype.onShowHideChat=xd.prototype.onShowHideChat;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],xd.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],xd.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",_.HB)],xd.prototype,"ytPlayerListenerBehavior",void 0);_.g([_.e(_.B2.YtOpenPopupBehavior),_.N("design:type",Object)],xd.prototype,"ytOpenPopupBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],xd.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],xd.prototype,"currentPageUrl",void 0);
_.g([_.U({computed:"computeBaseUrl(currentPageUrl,data)"}),_.N("design:type",Object)],xd.prototype,"baseUrl",void 0);_.g([_.U({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.N("design:type",String)],xd.prototype,"url",void 0);_.g([_.U(),_.N("design:type",Object)],xd.prototype,"isHiddenByUser",void 0);_.g([_.U({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.N("design:type",Object)],xd.prototype,"hidden",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.N("design:type",Boolean)],xd.prototype,"collapsed",void 0);_.g([_.U({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.N("design:type",Boolean)],xd.prototype,"hideChatFrame",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],xd.prototype,"showAboveScrim",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],xd.prototype,"watchNextGrid",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],xd.prototype,"modernButtons",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],xd.prototype,"roundedContainer",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],xd.prototype,"noBorder",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],xd.prototype,"roundBackground",void 0);
_.g([_.U({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.N("design:type",Object)],xd.prototype,"toggleButtonOverride",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],xd.prototype,"overflowHideChat",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],xd.prototype,"forceDarkTheme",void 0);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xd.prototype,"enableShowWithoutHideChatButton",null);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],xd.prototype,"theaterWatchWhile",void 0);_.g([_.BF("#chatframe"),_.N("design:type",HTMLIFrameElement)],xd.prototype,"chatframe",void 0);_.g([_.PF("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xd.prototype,"onShowHideChat",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xd.prototype,"dataChanged",null);
_.g([_.JU("url"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xd.prototype,"urlChanged",null);_.g([_.JU("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xd.prototype,"collapsedChanged",null);_.g([_.T({is:"ytd-live-chat-frame",disableElementRegistration:!0})],xd);
_.F(xd,"ytd-live-chat-frame",function(){if(DS9!==void 0)return DS9;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return DS9=u},{mode:1});var dSM;var Sw=function(){var u=_.Q.apply(this,arguments)||this;u.modern=_.S("web_modern_buttons");u.buttonOverrides={style:"call-to-action",type:"filled"};return u};
_.c(Sw,_.Q);Sw.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=_.ui(this.data.backgroundColor)))};
Sw.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var u=this.getFormattedStringLoggingDirectives(this.data.headline);u&&this.rendererBehavior.logExplicitClick(u)}};
Sw.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var u=this.getFormattedStringLoggingDirectives(this.data.description);u&&this.rendererBehavior.logExplicitClick(u)}};
Sw.prototype.getFormattedStringLoggingDirectives=function(u){return u&&u.runs&&u.runs.length>0&&u.runs[0]&&u.runs[0].loggingDirectives?u.runs[0].loggingDirectives:null};
Sw.prototype.dataChanged=Sw.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Sw.prototype,"rendererBehavior",void 0);_.g([_.e(NqQ.YtMacroReplacementBehavior),_.N("design:type",Object)],Sw.prototype,"macroReplacementBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Sw.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Sw.prototype,"navigationEndpoint",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Sw.prototype,"enableColors",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Sw.prototype,"modern",void 0);_.g([_.U(),_.N("design:type",Object)],Sw.prototype,"buttonOverrides",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sw.prototype,"dataChanged",null);_.g([_.T({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Sw);
_.F(Sw,"ytd-action-basic-immersive-content-renderer",function(){if(dSM!==void 0)return dSM;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return dSM=u},{mode:1});var Ck5;var IAz;var b7=function(){return _.Q.apply(this,arguments)||this};
_.c(b7,_.Q);b7.prototype.dataChanged=function(){var u;((u=this.data)==null?void 0:u.backgroundColor)!==void 0&&_.e8(this.hostElement,{"--bgu-color":_.ui(this.data.backgroundColor)})};
b7.prototype.onImageTileClick=function(){var u;((u=this.data)==null?0:u.navigationEndpoint)&&_.xs(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var K;((K=this.data)==null?0:K.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.MN.Object.defineProperties(b7.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var u;if(((u=this.data)==null?void 0:u.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 u;return((u=this.data)==null?void 0:u.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var u,K,l;if(((u=this.data)==null?void 0:(K=u.detailsLine)==null?void 0:K.texts)!=null&&((l=this.data)==null?void 0:l.detailsLine.texts.length)>0){var D;return(D=this.data)==null?void 0:D.detailsLine.texts.map(function(d){return d.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var u,K,l;if(((u=this.data)==null?void 0:(K=u.optionalDetailsLine)==null?void 0:K.texts)!=null&&((l=this.data)==null?void 0:l.optionalDetailsLine.texts.length)>0){var D;return(D=this.data)==null?void 0:D.optionalDetailsLine.texts.map(function(d){return d.text}).join("")}return null}}});
b7.prototype.dataChanged=b7.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],b7.prototype,"rendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],b7.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],b7.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data.backgroundColor"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],b7.prototype,"hasBackgroundColor",null);
_.g([_.R("data.objectFit"),_.N("design:type",Object),_.N("design:paramtypes",[])],b7.prototype,"getObjectFit",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.tileRenderingStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],b7.prototype,"hasTileMetadata",null);_.g([_.R("data.detailsLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],b7.prototype,"getSecondaryDetails",null);
_.g([_.R("data.optionalDetailsLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],b7.prototype,"getOptionalDetails",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],b7.prototype,"dataChanged",null);_.g([_.T({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],b7);
_.F(b7,"ytd-image-tile-renderer",function(){if(IAz!==void 0)return IAz;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return IAz=u},{mode:1});var yRk;var OI=function(){return _.Q.apply(this,arguments)||this};
_.c(OI,_.Q);OI.prototype.getOpenLinkIcon=function(){return _.S("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
OI.prototype.onSitelinkTap=function(){_.xs(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.S("kevlar_command_handler_migration_killswitch"))_.ay(this.hostElement,this.data.clickCommands,this.hostElement);else for(var u=_.y(this.data.clickCommands),K=u.next();!K.done;K=u.next())this.ytComponentBehavior.resolveCommand(K.value)};
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],OI.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],OI.prototype,"rendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],OI.prototype,"data",void 0);_.g([_.T({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],OI);
_.F(OI,"ytd-sitelink-renderer",function(){if(yRk!==void 0)return yRk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return yRk=u},{mode:1});var cX=function(){var u=_.Q.apply(this,arguments)||this;u.paddingFix=_.S("enable_ads_web_ep_buenos_aires_and_padding_fix");return u};
_.c(cX,_.Q);cX.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"}}}};
cX.prototype.dataChanged=function(){var u=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(K){K.clickTrackingParams&&delete K.clickTrackingParams;u.ytMacroReplacementBehavior.sendServiceRequestAction([K])})};
cX.prototype.shouldHideFooter=function(u){return!(u&&_.S("use_ads_engagement_panel_desktop_footer_cta"))};
_.MN.Object.defineProperties(cX.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?void 0:u.imageTileRenderers)===void 0||((K=this.data)==null?void 0:K.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(l){var D;return(D=_.b(l,FVk))==null?void 0:D.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?void 0:u.imageTileRenderers)===void 0||((K=this.data)==null?void 0:K.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(l){var D;return((D=_.b(l,FVk))==null?void 0:D.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
cX.prototype.dataChanged=cX.prototype.dataChanged;_.g([_.e(NqQ.YtMacroReplacementBehavior),_.N("design:type",Object)],cX.prototype,"ytMacroReplacementBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],cX.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],cX.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],cX.prototype,"paddingFix",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data.imageTileRenderers"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cX.prototype,"removeBorderFromImageTiles",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.imageTileRenderers"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cX.prototype,"useFooteredMetadataRenderingStyle",null);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cX.prototype,"dataChanged",null);_.g([_.T({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],cX);
_.F(cX,"ytd-action-engagement-panel-content-renderer",function(){if(Ck5!==void 0)return Ck5;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Ck5=u},{mode:1});var sCz;var o0X=_.rf(function(u){var K=u.data;var l=u.customCommandResolver;return _.n("ad-grid-card-image-full-metadata-view-model",{class:function(){var D;return((D=K().interaction)==null?0:D.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.v1(_.r_({visibilityCallback:function(D){var d,C=(d=K().interaction)==null?void 0:d.onFirstVisible;D&&C&&_.IT(C)},
showOption:_.v6}),_.sL(function(){return K().interaction},l)),
"aria-label":function(){var D,d;return(D=K().interaction)==null?void 0:(d=D.accessibility)==null?void 0:d.label}},_.n("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.n(_.mo,{data:function(){return K().adImage}},{adImageViewModel:function(D){return _.n(_.pG,{data:D.data,
customCommandResolver:l})}})),_.n("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.n(_.r,{cond:function(){return K().headline},
then:function(D){return _.n(_.qC,{text:D,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.n(_.r,{cond:function(){return K().detailsLine},
then:function(D){return _.n("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.n(_.mo,{data:D},{adDetailsLineViewModel:function(d){return _.n(_.a4,{data:d.data,customCommandResolver:l,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.n(_.r,{cond:function(){return K().secondaryDetailsLine},
then:function(D){return _.n("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.n(_.mo,{data:D},{adDetailsLineViewModel:function(d){return _.n(_.a4,{data:d.data,customCommandResolver:l,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"lj");var WaS=_.rf(function(u){var K=u.data;var l=u.customCommandResolver;return _.n("ad-grid-card-image-view-model",{class:function(){var D;return((D=K().interaction)==null?0:D.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.v1(_.r_({visibilityCallback:function(D){var d,C=(d=K().interaction)==null?void 0:d.onFirstVisible;D&&C&&_.IT(C)},
showOption:_.v6}),_.sL(function(){return K().interaction},l)),
"aria-label":function(){var D,d;return(D=K().interaction)==null?void 0:(d=D.accessibility)==null?void 0:d.label}},_.n(_.mo,{data:function(){return K().adImage}},{adImageViewModel:function(D){return _.n(_.pG,{data:D.data,
customCommandResolver:l})}}),_.n("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.n(_.mo,{data:function(){return K().adCardBadge}},{adCardBadgeViewModel:_.Huw})))},"mj");var Hsz=_.rf(function(u){var K=u.data;var l=u.customCommandResolver;return _.n("ad-grid-card-text-view-model",{class:function(){var D;return((D=K().interaction)==null?0:D.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.v1(_.r_({visibilityCallback:function(D){var d,C=(d=K().interaction)==null?void 0:d.onFirstVisible;D&&C&&_.IT(C)},
showOption:_.v6}),_.sL(function(){return K().interaction},l)),
"aria-label":function(){var D,d;return(D=K().interaction)==null?void 0:(d=D.accessibility)==null?void 0:d.label}},_.n("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.n(_.r,{cond:function(){return K().title},
then:function(D){return _.n(_.qC,{text:D,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.n("div",{class:function(){return _.S("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.n(_.p0,{each:function(){var D;
return((D=K())==null?void 0:D.descriptions)||[]},
keyBy:"INDEX"},function(D){return _.n(_.qC,{text:D,className:function(){return _.S("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.n("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.n(_.mo,{data:function(){return K().moreInfoButton}},{adButtonViewModel:function(D){return _.n(_.tw,{data:D.data,
customCommandResolver:l})}})))},"nj");var M2J=_.rf(function(u){var K=u.data;var l=u.customCommandResolver;var D=u.adGridCardCollectionStyle;return _.n("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.v1(_.r_({visibilityCallback:function(d){var C,W=(C=K().interaction)==null?void 0:C.onFirstVisible;d&&W&&_.IT(W)},
showOption:_.v6})),style:function(){return"grid-template-columns: repeat("+uwi(D?D():K().style)+", minmax(0, 1fr));"}},_.n(_.mo,{data:function(){var d;
return(d=K())==null?void 0:d.gridCards}},{adGridCardImageViewModel:function(d){return _.n(WaS,{data:d.data,
customCommandResolver:l})},
adGridCardImageFullMetadataViewModel:function(d){return _.n(o0X,{data:d.data,customCommandResolver:l})},
adGridCardTextViewModel:function(d){return _.n(Hsz,{data:d.data,customCommandResolver:l})}}))},"oj");_.SX(_.rf(function(u){var K=u.data;return _.n("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.v1(_.r_({visibilityCallback:function(l){var D,d=(D=K().interaction)==null?void 0:D.onFirstVisible;l&&d&&_.IT(d)},
showOption:_.v6}),_.sL(function(){return K().interaction},KVV))},_.n("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.n(_.r,{cond:_.SOy("(min-width: "+((0,_.LY)()+_.pq)+"px)"),
then:function(){return _.n(_.mo,{data:function(){return K().adGridCardCollection}},{adGridCardCollectionViewModel:function(l){return _.n(M2J,{data:l.data,
customCommandResolver:KVV})}})},
else:function(){return _.n(_.mo,{data:function(){return K().adGridCardCollection}},{adGridCardCollectionViewModel:function(l){return _.n(M2J,{data:l.data,
customCommandResolver:KVV,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.n("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.n(_.mo,{data:function(){return K().adButton}},{adButtonViewModel:function(l){return _.n(_.tw,{data:l.data,
customCommandResolver:KVV})}})))},"pj"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.M6}});_.SX(_.rf(function(u){var K=u.data;return _.n("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.v1(_.r_({visibilityCallback:function(l){var D,d=(D=K().interaction)==null?void 0:D.onFirstVisible;l&&d&&_.IT(d)},
showOption:_.v6}),_.sL(function(){return K().interaction},lQI))},_.n("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.n(_.mo,{data:function(){if(_.SOy("(min-width: "+((0,_.LY)()+_.pq)+"px)")())var l=K().adGridCardCollection;
else{l=Object.assign({},_.b(K().adGridCardCollection,Vwi));var D;l.gridCards!==void 0&&((D=l.gridCards)==null?void 0:D.length)>1?l.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":l.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";l={adGridCardCollectionViewModel:l}}return l}},{adGridCardCollectionViewModel:function(l){return _.n(M2J,{data:l.data,
customCommandResolver:lQI})}})),_.n("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.n(_.mo,{data:function(){return K().adButton}},{adButtonViewModel:function(l){return _.n(_.tw,{data:l.data,
customCommandResolver:lQI})}})))},"qj"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.M6}});var an=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return u};
_.c(an,_.Q);_.I=an.prototype;_.I.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"}}}};
_.I.attached=function(){this.getDataFromPlayerAndRender()};
_.I.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.I.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.I.getDataFromPlayerAndRender=function(){var u=this,K=_.xY(this.hostElement);K&&K.getPlayerPromise().then(function(l){u.getCachedDataAndListen(l)})};
_.I.getCachedDataAndListen=function(u){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(u,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(u,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=u)};
_.I.resolveCachedActions=function(){var u=_.lZ("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(u=u&&u())&&!_.k$.isEmpty(u)&&this.sendUpdateEngagementPanelAction(u);(u=(u=_.lZ("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&u())&&!_.k$.isEmpty(u)&&this.sendChangeEngagementPanelVisibilityAction(u);(u=(u=_.lZ("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&u())&&!_.k$.isEmpty(u)&&this.sendScrollToEngagementPanelCommand(u)};
_.I.sendUpdateEngagementPanelAction=function(u){var K;_.Sy(this.hostElement,"yt-update-engagement-panel-action",[(K=_.k$.get(u,"action"))!=null?K:u])};
_.I.sendChangeEngagementPanelVisibilityAction=function(u){_.Sy(this.hostElement,"yt-change-engagement-panel-visibility-action",[u])};
_.I.sendScrollToEngagementPanelCommand=function(u){_.Sy(this.hostElement,"yt-scroll-to-engagement-panel-command",[u])};
_.I.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.S("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.hV(Error("ro"))};
an.prototype.dataChanged=an.prototype.dataChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],an.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],an.prototype,"componentBehavior",void 0);_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",_.HB)],an.prototype,"ytPlayerListenerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],an.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],an.prototype,"player",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],an.prototype,"dataChanged",null);_.g([_.T({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],an);
_.F(an,"ytd-ads-engagement-panel-content-renderer",function(){if(sCz!==void 0)return sCz;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
return sCz=u},{mode:1});var qBX;var zl=function(){var u=_.Q.apply(this,arguments)||this;u.player=null;u.JSC$22305_playerEvents=new Map;u.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return u};
_.c(zl,_.Q);_.I=zl.prototype;_.I.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]]"}}}}}};
_.I.created=function(){this.player=null;this.JSC$22305_playerEvents=new Map;this.JSC$22305_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22305_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22305_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22305_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.I.attached=function(){var u=this,K=_.xY();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));K&&K.getPlayerPromise().then(function(l){u.setPlayer(l);u.set("isPageLoad",!1)})};
_.I.setPlayer=function(u){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22305_playerEvents);this.set("player",u);u&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(u,this.JSC$22305_playerEvents),u.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.I.onLoopRangeChange=function(u){var K=_.GB().resolve(_.vv(_.GT));if((!K||K.isOnWatch())&&this.hostElement.clientHeight){var l;!u&&((l=this.data)==null?0:l.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.I.onVideoProgress=function(u){var K,l,D=((K=this.player)==null?void 0:(l=K.getPresentingPlayerType)==null?void 0:l.call(K))===2;this.isAdPlaying!==D&&this.set("isAdPlaying",D);var d;if(!D&&(d=this.player)!=null&&d.getLoopRange()){l=this.player.getLoopRange();K=l.startTimeMs;l=l.endTimeMs;D=this.player.getProgressState(1).seekableStart;var C;K<D*1E3&&((C=this.data)==null?0:C.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
u=l<u*1E3;var W;((W=this.player)==null?0:W.getLoopRange())&&u&&this.player.seekTo(K/1E3)}};
_.I.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.I.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.I.onYtDeleteClipEngagementPanelCommand=function(u){_.b(u,DW6).command&&this.ytComponentBehavior.resolveCommand(_.b(u,DW6).command)};
_.MN.Object.defineProperties(zl.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.voteCount)||_.o7("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],zl.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],zl.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],zl.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",_.HB)],zl.prototype,"ytPlayerListenerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],zl.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],zl.prototype,"isAdPlaying",void 0);_.g([_.U({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],zl.prototype,"isPageLoad",void 0);_.g([_.U({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],zl.prototype,"isDarkTheme",void 0);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],zl.prototype,"voteCount",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],zl.prototype,"channelEndpoint",null);_.g([_.R("channelEndpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],zl.prototype,"channelHref",null);_.g([_.T({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],zl);
_.F(zl,"ytd-clip-attribution-renderer",function(){if(qBX!==void 0)return qBX;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return qBX=u},{mode:1});var $SQ;var ew=function(){var u=_.Q.apply(this,arguments)||this;u.player=null;u.JSC$22310_playerEvents=new Map;return u};
_.c(ew,_.Q);_.I=ew.prototype;_.I.created=function(){this.player=null;this.JSC$22310_playerEvents=new Map;this.JSC$22310_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22310_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22310_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.I.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.I.attached=function(){var u=this,K=_.xY();K&&K.getPlayerPromise().then(function(l){u.setPlayer(l);u.set("isPageLoad",!1)})};
_.I.setPlayer=function(u){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22310_playerEvents);this.set("player",u);if(u){this.ytPlayerListenerBehavior.listenToPlayerEvents(u,this.JSC$22310_playerEvents);var K;(u==null?void 0:(K=u.getPresentingPlayerType)==null?void 0:K.call(u))===2&&this.playerAdStartHandler()}};
_.I.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.I.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.I.onVideoProgress=function(){var u,K,l=((u=this.player)==null?void 0:(K=u.getPresentingPlayerType)==null?void 0:K.call(u))===2;this.isAdPlaying!==l&&this.set("isAdPlaying",l)};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ew.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",_.HB)],ew.prototype,"ytPlayerListenerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ew.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ew.prototype,"isAdPlaying",void 0);
_.g([_.U({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],ew.prototype,"isPageLoad",void 0);_.g([_.T({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],ew);
_.F(ew,"ytd-clip-section-footer-renderer",function(){if($SQ!==void 0)return $SQ;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return $SQ=u},{mode:1});var n05;var rRX;var Rn=function(){return _.Q.apply(this,arguments)||this};
_.c(Rn,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Rn.prototype,"data",void 0);_.g([_.T({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Rn);
_.F(Rn,"ytd-clip-ad-state-renderer",function(){if(rRX!==void 0)return rRX;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return rRX=u},{mode:1});var v0k;var UI=function(){var u=_.Q.apply(this,arguments)||this;u.value="";u.valid=!1;u.userChangedValue=!1;u.disabled=!1;u.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return u};
_.c(UI,_.Q);_.I=UI.prototype;_.I.detached=function(){this.userChangedValue=!1};
_.I.handleKeyDown=function(u){if(_.zR)var K=13;else _.bqr&&_.ea?K=13:K=13;u.keyCode===K&&u.preventDefault()};
_.I.handleInput=function(){var u=_.bi(this.hostElement).querySelector("#title");if(u){var K=(u.value||"").replace(/\r|\n/g," ");this.set("value",K);u.value=K;this.valid=u.validate();this.userChangedValue=!0}};
_.I.handleBlur=function(){this.valid=_.bi(this.hostElement).querySelector("#title").validate()};
_.I.onValueChanged=function(){_.xs(this.hostElement,"title-changed",{title:this.value})};
_.I.onValidChanged=function(){_.xs(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.I.setInput=function(u,K){var l=_.bi(this.hostElement).querySelector("#title");l&&(l.value=u,this.handleInput(),K&&(l.invalid=!1,this.valid=!0))};
_.I.onClipCreationDisable=function(){this.set("disabled",!0)};
_.I.onClipCreationEnable=function(){this.set("disabled",!1)};
_.I.onClipCreationVisibilityChange=function(u){var K=this;u.visible?requestAnimationFrame(function(){var l;((l=_.bi(K.hostElement).querySelector("#title"))==null?void 0:l.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
UI.prototype.onValidChanged=UI.prototype.onValidChanged;UI.prototype.onValueChanged=UI.prototype.onValueChanged;UI.prototype.handleBlur=UI.prototype.handleBlur;UI.prototype.handleInput=UI.prototype.handleInput;UI.prototype.handleKeyDown=UI.prototype.handleKeyDown;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],UI.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],UI.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],UI.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],UI.prototype,"value",void 0);_.g([_.U(),_.N("design:type",Object)],UI.prototype,"valid",void 0);_.g([_.U(),_.N("design:type",Object)],UI.prototype,"userChangedValue",void 0);_.g([_.U(),_.N("design:type",Object)],UI.prototype,"disabled",void 0);_.g([_.PF("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],UI.prototype,"handleKeyDown",null);
_.g([_.PF("input"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UI.prototype,"handleInput",null);_.g([_.PF("blur"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UI.prototype,"handleBlur",null);_.g([_.JU("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UI.prototype,"onValueChanged",null);
_.g([_.JU("valid"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UI.prototype,"onValidChanged",null);_.g([_.T({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],UI);
_.F(UI,"ytd-clip-creation-text-input-renderer",function(){if(v0k!==void 0)return v0k;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return v0k=u},{mode:1});var GwF;var t2z;var xSF;var SBu;var bsM;var fO=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};u.pendingStoryboardImages_={};u.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];u.tickLabelInterval=30;u.mediumTickInterval=5;u.largeTickInterval=15;u.aboveRulerHeight=32;u.rulerHeight=50;u.smallTickHeight=4;u.mediumTickHeight=8;u.largeTickHeight=16;u.mediaListeners_=
{};return u};
_.c(fO,_.Q);_.I=fO.prototype;_.I.attached=function(){var u=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(K){K=_.y(["screen and (min-resolution: "+K+")","screen and (max-resolution: "+K+")"]);for(var l=K.next();!l.done;l=K.next()){l=l.value;var D=window.matchMedia(l);D&&(u.mediaListeners_[l]=u.updatePixelRatio_.bind(u),D.addEventListener?D.addEventListener("change",u.mediaListeners_[l]):D.addListener?D.addListener(u.mediaListeners_[l]):delete u.mediaListeners_[l])}})};
_.I.detached=function(){this.setPlayer(null);for(var u=_.y(Object.keys(this.mediaListeners_)),K=u.next();!K.done;K=u.next()){var l=K.value;K=this.mediaListeners_[l];(l=window.matchMedia(l))&&(l.removeEventListener?l.removeEventListener("change",K):l.removeListener&&l.removeListener(K))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.I.onVisibilityChangedAction_=function(u){var K=this;u.visible&&!this.player_&&(u=_.xY())&&u.getPlayerPromise().then(function(l){K.setPlayer(l)})};
_.I.setPlayer=function(u){u&&this.set("player_",u)};
_.I.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.I.setUpCanvas_=function(){var u=this.rulerWidth,K=this.devicePixelRatio_,l=this.visible;this.set("canvasReady_",!1);if(l&&K!==0){l=this.aboveRulerHeight+this.rulerHeight;var D=_.bi(this.hostElement).querySelector("#ticks");D.width=u*K;D.height=l*K;D.style.width=u+"px";D.style.height=l+"px";D.getContext("2d").scale(K,K);this.set("canvasReady_",!0)}};
_.I.drawRuler_=function(u,K,l,D,d,C,W,M,q,v,G,t){u&&l&&K&&(u=_.bi(this.hostElement).querySelector("#ticks"),K=u.getContext("2d"),K.clearRect(0,0,u.width,u.height),K.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),K.lineWidth=2,K.beginPath(),K.moveTo(0,this.aboveRulerHeight),K.lineTo(u.width,this.aboveRulerHeight),K.moveTo(0,u.height),K.lineTo(u.width,u.height),K.stroke(),this.drawRulerTicks_(u,C,d,D),this.drawStoryboardImages_(u,l,C,d,D),K.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
K.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(W-C,D,!1),this.rulerHeight),l=this.timeToPixels_(M-C,D,!1),K.fillRect(l,this.aboveRulerHeight,u.width-l,this.rulerHeight),this.drawSpeedLines_(u,C,t))};
_.I.drawRulerTicks_=function(u,K,l,D){var d=u.getContext("2d");d.save();d.lineWidth=1;for(var C=Math.floor(Math.max(0,K-this.tickLabelInterval));C<K+l;C++){d.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var W=(C-K)*D;d.beginPath();d.moveTo(W,u.height);var M=this.smallTickHeight;C%this.largeTickInterval===0?M=this.largeTickHeight:C%this.mediumTickInterval===0&&(M=this.mediumTickHeight);d.lineTo(W,u.height-M);d.stroke();C%this.tickLabelInterval===0&&(d.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),d.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),d.fillText(eq(C),W+4,12),d.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),d.moveTo(W,0),d.lineTo(W,this.aboveRulerHeight),d.stroke())}d.restore()};
_.I.percentToHex_=function(u){u=Math.round(u*255).toString(16);u.length<2&&(u="0"+u);return u};
_.I.drawSpeedLines_=function(u,K,l){var D=u.getContext("2d");D.save();var d=Math.min(25,Math.abs(l)-15)/25,C=u.width*.3*d,W=u.width*-.3,M=u.width*1.3,q=this.aboveRulerHeight;u=u.height;var v=Math.round(4*d),G=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");G.length<7&&(G="#"+G.substring(1,4).repeat(2));var t=this.percentToHex_(.5+d/2);t=G+t;G+="00";if(d>0)for(d=0;d<v;d++){var x=W+Math.random()*(M-W),O=q+Math.random()*(u-q),a=C+K%C,f=D.createLinearGradient(x,O,x+a,O);
l<0?(f.addColorStop(0,t),f.addColorStop(.4,t),f.addColorStop(.9,G)):(f.addColorStop(.1,G),f.addColorStop(.6,t),f.addColorStop(1,t));D.strokeStyle=f;D.lineWidth=1;D.beginPath();D.moveTo(x,O);D.lineTo(x+a,O);D.stroke()}D.restore()};
_.I.getStoryboardForTime_=function(u,K,l){l===void 0&&(l=K.getNumberOfStoryboardLevels()-1);u=K.getStoryboardFrameIndex(u,l);return K.getStoryboardFrame(u,l)};
_.I.drawStoryboardImages_=function(u,K,l,D,d){if(!this.disabled){u=u.getContext("2d");var C=this.getStoryboardForTime_(0,K);if(C){var W=C.width/C.columns;C=C.height/C.rows;var M=W/C,q=this.rulerHeight*M;q=this.tickLabelInterval*(M<this.tickLabelInterval*d/this.rulerHeight?1/Math.floor(this.tickLabelInterval*d/q):Math.round(q/(this.tickLabelInterval*d)));var v=q*d,G=this.rulerHeight,t=v/this.rulerHeight,x=Math.floor(Math.max(0,l-q));for(x-=x%q;x<l+D;x+=q){var O=this.getStoryboardForTime_(x,K),a=this.getPreloadedStoryboard_(O.url);
if(a){var f=(x-l)*d,B=this.aboveRulerHeight,p=O.column*W,V=O.row*C;if(M<t){var m=G/(v/M);O=W;m*=C;V+=(C-m)/2}else O=v/(G*M)*W,m=C,p+=(W-O)/2;u.drawImage(a,p,V,O,m,f,B,v,G)}else this.fetchStoryboardImage_(O)}}}};
_.I.getPreloadedStoryboard_=function(u){return this.storyboardImages_.find(function(K){if(K.src==u)return!0;var l=K.src.indexOf(u);return l!=-1&&l==K.src.length-u.length})};
_.I.fetchStoryboardImage_=function(u){var K=this,l=this.getPreloadedStoryboard_(u.url),D=this.pendingStoryboardImages_[u.url];l||D!==void 0||(l=new Promise(function(d){var C=new Image(u.width,u.height);C.src=u.url;C.onload=function(){d(C)};
C.onerror=function(){d(null)}}),this.pendingStoryboardImages_[u.url]=l,l.then(function(d){d&&K.push("storyboardImages_",d);
return d}).finally(function(){delete K.pendingStoryboardImages_[u.url]}))};
_.I.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.I.timeToPixels_=function(u,K,l){u*=K;return l===void 0||l?u+"px":u};
_.I.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
fO.prototype.drawRuler_=fO.prototype.drawRuler_;fO.prototype.setUpCanvas_=fO.prototype.setUpCanvas_;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],fO.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],fO.prototype,"ytRendererBehavior",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],fO.prototype,"start",void 0);_.g([_.U({value:30}),_.N("design:type",Number)],fO.prototype,"end",void 0);
_.g([_.U({value:!1}),_.N("design:type",Boolean)],fO.prototype,"visible",void 0);_.g([_.U(),_.N("design:type",Object)],fO.prototype,"player_",void 0);_.g([_.U(),_.N("design:type",Number)],fO.prototype,"tickSpacing",void 0);_.g([_.U(),_.N("design:type",Number)],fO.prototype,"windowSizeSec",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],fO.prototype,"rulerWidth",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],fO.prototype,"rulerShift",void 0);
_.g([_.U({value:!1}),_.N("design:type",Boolean)],fO.prototype,"canvasReady_",void 0);_.g([_.U({value:function(){return[]}}),
_.N("design:type",Array)],fO.prototype,"storyboardImages_",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],fO.prototype,"disabled",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],fO.prototype,"forceRender_",void 0);_.g([_.U({value:1}),_.N("design:type",Number)],fO.prototype,"devicePixelRatio_",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],fO.prototype,"windowSpeed",void 0);
_.g([_.JU("visible","devicePixelRatio_","rulerWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fO.prototype,"setUpCanvas_",null);
_.g([_.JU("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.N("design:returntype")],fO.prototype,"drawRuler_",null);_.g([_.E9({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],fO);
_.F(fO,"yt-clip-creation-scrubber-canvas",function(){if(bsM===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);bsM=u}u=bsM;return u},
{mode:2});var OsX;var cRg;var Qu=function(){var u=_.Q.apply(this,arguments)||this;u.start=0;u.end=30;u.visible=!1;u.draggingLeft_=!1;u.draggingRight_=!1;u.draggingRuler_=!1;u.draggingWindow_=!1;u.seekableStart=0;u.seekableEnd=0;u.rulerWidth_=0;u.rulerShift_=0;u.windowSlideSpeed=0;u.disabled=!1;u.initialized=!1;u.durationAccessibilityLabel="";u.activeLoopRange_=!1;u.rulerDragMouseStart_=0;u.rulerDragRulerStart_=0;u.rulerDragStartTime_=0;u.rulerDragEndTime_=0;u.dragMouseLastX_=0;u.scrollInterval_=null;u.scrubberVe_=null;u.boundHandlers_=
{};u.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return u};
_.c(Qu,_.Q);_.I=Qu.prototype;
_.I.created=function(){var u=this;this.JSC$22323_playerEvents=new Map;this.JSC$22323_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22323_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22323_playerEvents.set("onStateChange",this.onStateChange_);var K={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(K).forEach(function(l){u.boundHandlers_[l]=K[l].bind(u)})};
_.I.attached=function(){this.activeLoopRange_=!1;_.bi(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.bi(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Yo(156731)};
_.I.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.bi(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.bi(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.I.onVisibilityChangedAction_=function(u){var K=this;u.visible&&!this.player_&&(u=_.xY())&&u.getPlayerPromise().then(function(l){K.setPlayer(l)})};
_.I.setPlayer=function(u){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22323_playerEvents);u&&(this.set("player_",u),this.ytPlayerListenerBehavior.listenToPlayerEvents(u,this.JSC$22323_playerEvents))};
_.I.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.I.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.I.beginHandleDrag_=function(u){this.disabled||(u.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=u.clientX,u.target===_.bi(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():u.target===_.bi(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.I.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.I.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.I.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.I.beginRulerDrag_=function(u){this.disabled||(u.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=u.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.I.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.I.beginWindowScroll_=function(){var u=this;this.scrollInterval_=setInterval(function(){var K=u.windowSlideSpeed;if(K=_.n8p(u.start,u.boundedRulerStartLimit_())?K-.1:_.n8p(u.end,u.boundedRulerEndLimit_())?K+.1:0){var l=u.capRulerOffset_(u.rulerShift_+K);l==u.rulerShift_?K=0:(u.set("rulerShift_",l),_.xs(u.hostElement,"set-fixed-length-range",{start:u.start+K,duration:u.end-u.start}))}u.set("windowSlideSpeed",K)},33)};
_.I.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.I.endDrag_=function(){this.logClick();var u=void 0;this.draggingRight_?u=this.end-1:this.draggingLeft_&&(u=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,u);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))};
_.I.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.I.updateRulerSize_=function(){this.set("rulerWidth_",_.bi(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.I.handleMouseDrag_=function(u){u.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(u):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(u):this.draggingWindow_&&this.handleWindowDrag_(u))};
_.I.handleRulerDrag_=function(u){u=this.pixelsToTime_(u.clientX-this.rulerDragMouseStart_);u=this.capRulerOffset_(this.rulerDragRulerStart_-u);this.set("rulerShift_",u);var K=this.rulerDragStartTime_-(this.rulerDragRulerStart_-u);_.xs(this.hostElement,"set-fixed-length-range",{start:K,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-u)-K})};
_.I.handleWindowDrag_=function(u){var K=u.clientX-this.dragMouseLastX_;this.dragMouseLastX_=u.clientX;u=this.pixelsToTime_(K);_.xs(this.hostElement,"set-fixed-length-range",{start:this.start+u,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.I.capRulerOffset_=function(u){var K=this.seekableStart-this.pixelsToTime_(16),l=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(K,u),l)};
_.I.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.I.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.I.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.I.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.I.handleWindowHandleDrag_=function(u){var K=u.clientX-this.dragMouseLastX_;this.dragMouseLastX_=u.clientX;u=this.pixelsToTime_(K);if(this.draggingLeft_){var l=this.start+u;var D=this.end}else this.draggingRight_&&(l=this.start,D=this.end+u);_.xs(this.hostElement,"set-range",{start:l,end:D,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.I.onVideoProgress_=function(u){this.disabled||(u=this.timeToPixels_(u-this.rulerShift_,this.tickSpacing_),_.bi(this.hostElement).querySelector("#playhead").style.transform="translateX("+u+")")};
_.I.onClipCreationDisable_=function(){this.endDrag_()};
_.I.timeToPixels_=function(u,K,l){u*=K;return l===void 0||l?u+"px":u};
_.I.pixelsToTime_=function(u){return u/this.tickSpacing_};
_.I.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.I.centerRuler_=function(u,K,l){this.set("rulerShift_",this.capRulerOffset_(u+(K-u)/2-l/2))};
_.I.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.I.updateLoopRange_=function(u,K,l,D,d,C,W){u&&(K&&D&&!l?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(u.pauseVideo(),u.seekTo(d,!1,void 0,void 0,50)):this.draggingRight_?(u.pauseVideo(),u.seekTo(C-.1,!1,void 0,void 0,50)):(W!==void 0?u.seekTo(W,!0,void 0,void 0,50):(K=u.getCurrentTime(),K<d||K>C?u.seekTo(d,!0,void 0,void 0,50):u.seekTo(K,!0,void 0,void 0,50)),u.playVideo()),u.setLoopRange({startTimeMs:d*1E3,endTimeMs:C*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(u.getCurrentTime())):
this.activeLoopRange_&&(u.setLoopRange(null),this.activeLoopRange_=!1))};
_.I.updateHandles_=function(){_.bi(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.bi(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.I.updateRuler_=function(){var u=this.end,K=this.start,l=this.draggableStartLimit_(),D=this.draggableEndLimit_();(K<l-.001||u>D+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.I.computeDurationLabel_=function(u,K){return u?u.replace("$clip_length",parseFloat(K).toFixed(1)):""};
_.I.computeDuration_=function(u,K){return this.isValidTime_(u)&&this.isValidTime_(K)&&u<K?K-u:0};
_.I.isValidTime_=function(u){return isNaN(parseFloat(u))||u<0?!1:this.player_?u>=this.seekableStart&&u<=this.seekableEnd:!0};
_.I.computeWindowSizeSec_=function(u,K,l){return Math.min((u||12E4)/1E3,l-K)};
_.I.computeTickSpacing_=function(u,K){return K?K/u:1};
_.I.onDragStateChanged_=function(){_.xs(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.I.centerRangeOnTime_=function(u){var K=this.duration;u=dq_(u-K/2,K,this.seekableStart,this.seekableEnd);_.xs(this.hostElement,"set-fixed-length-range",{start:u.start,duration:u.end-u.start})};
_.I.nearlyLessThan_=function(u,K,l){return u+(l===void 0?1E-6:l)<K};
_.I.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var u=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(u,this.start)||this.nearlyLessThan_(this.end,u))&&this.centerRangeOnTime_(u)}};
_.I.onStateChange_=function(u){this.visible&&!this.disabled&&u==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.I.computeDragState_=function(u,K,l,D){return u?"left":K?"right":l?"ruler":D?"window":"none"};
_.I.logClick=function(){var u=_.AC(),K=_.Yr();u&&K&&this.scrubberVe_&&(_.S("combine_ve_grafts")?_.RD(_.iT(),this.scrubberVe_,K):_.DJ(u,K,this.scrubberVe_),_.Wi(u,this.scrubberVe_))};
Qu.prototype.onDragStateChanged_=Qu.prototype.onDragStateChanged_;Qu.prototype.updateRuler_=Qu.prototype.updateRuler_;Qu.prototype.updateHandles_=Qu.prototype.updateHandles_;Qu.prototype.onUpdateLoopRange=Qu.prototype.onUpdateLoopRange;Qu.prototype.onInitializedChanged_=Qu.prototype.onInitializedChanged_;Qu.prototype.onVisibleChanged_=Qu.prototype.onVisibleChanged_;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Qu.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",Object)],Qu.prototype,"ytPlayerListenerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Qu.prototype,"start",void 0);_.g([_.U(),_.N("design:type",Object)],Qu.prototype,"end",void 0);_.g([_.U({computed:"computeDuration_(start, end)"}),_.N("design:type",Number)],Qu.prototype,"duration",void 0);
_.g([_.U(),_.N("design:type",String)],Qu.prototype,"lengthTemplate",void 0);_.g([_.U({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.N("design:type",String)],Qu.prototype,"durationLabel",void 0);_.g([_.U(),_.N("design:type",Object)],Qu.prototype,"visible",void 0);_.g([_.U(),_.N("design:type",Object)],Qu.prototype,"player_",void 0);_.g([_.U(),_.N("design:type",Object)],Qu.prototype,"draggingLeft_",void 0);_.g([_.U(),_.N("design:type",Object)],Qu.prototype,"draggingRight_",void 0);
_.g([_.U(),_.N("design:type",Object)],Qu.prototype,"draggingRuler_",void 0);_.g([_.U({value:!1}),_.N("design:type",Object)],Qu.prototype,"draggingWindow_",void 0);_.g([_.U({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.N("design:type",Number)],Qu.prototype,"tickSpacing_",void 0);_.g([_.U(),_.N("design:type",Object)],Qu.prototype,"seekableStart",void 0);_.g([_.U(),_.N("design:type",Object)],Qu.prototype,"seekableEnd",void 0);
_.g([_.U(),_.N("design:type",Number)],Qu.prototype,"windowSizeMs",void 0);_.g([_.U({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.N("design:type",Number)],Qu.prototype,"windowSizeSec_",void 0);_.g([_.U(),_.N("design:type",Object)],Qu.prototype,"rulerWidth_",void 0);_.g([_.U(),_.N("design:type",Object)],Qu.prototype,"rulerShift_",void 0);_.g([_.U(),_.N("design:type",Object)],Qu.prototype,"windowSlideSpeed",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Qu.prototype,"disabled",void 0);_.g([_.U(),_.N("design:type",Object)],Qu.prototype,"initialized",void 0);_.g([_.U(),_.N("design:type",Object)],Qu.prototype,"durationAccessibilityLabel",void 0);_.g([_.U({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.N("design:type",String)],Qu.prototype,"dragState",void 0);
_.g([_.JU("visible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qu.prototype,"onVisibleChanged_",null);_.g([_.JU("initialized"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qu.prototype,"onInitializedChanged_",null);_.g([_.JU("player_","visible","disabled","initialized","start","end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qu.prototype,"onUpdateLoopRange",null);
_.g([_.JU("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qu.prototype,"updateHandles_",null);_.g([_.JU("start","end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qu.prototype,"updateRuler_",null);
_.g([_.JU("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qu.prototype,"onDragStateChanged_",null);_.g([_.E9({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Qu);
_.F(Qu,"yt-clip-creation-scrubber-view",function(){if(cRg===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;OsX===void 0&&(OsX=document.createElement("template"));var D=OsX;l.call(K,D.content.cloneNode(!0),u.content.firstChild);cRg=u}u=cRg;return u},{mode:2});var PX=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};u.startHighlightTimeout=0;u.endHighlightTimeout=0;return u};
_.c(PX,_.Q);_.I=PX.prototype;_.I.attached=function(){var u=this;this.startInput.addEventListener("input",function(K){return u.handleStartInput_(K)});
this.endInput.addEventListener("input",function(K){return u.handleEndInput_(K)});
this.startInput.addEventListener("focusout",function(K){return u.handleStartBlur_(K)});
this.endInput.addEventListener("focusout",function(K){return u.handleEndBlur_(K)})};
_.I.setPlayer=function(u){this.set("player_",u)};
_.I.onSetFixedLengthRange_=function(u){var K=u.detail;u=K.start;var l=K.duration,D=K.startLimit;K=K.endLimit;D||(D=this.seekableStart_);K||(K=this.seekableEnd_);u=dq_(u,l,D,K);this.start=u.start;this.end=u.end};
_.I.onSetRange_=function(u){var K=u.detail;u=K.start;var l=K.end,D=K.startLimit;K=K.endLimit;D||(D=this.seekableStart_);K||(K=this.seekableEnd_);if(u=C7i(u,l,D,K,this.minLengthSec,this.maxLengthSec))this.start=u.start,this.end=u.end};
_.I.updateInputs_=function(){var u=this.end,K=this.start;this.startInput.focused||(this.startInput.value=eq(K,!0));this.endInput.focused||(this.endInput.value=eq(u,!0))};
_.I.handleStartInput_=function(u){u=Dq2(u.target.value);if(u===null)this.set("startValid",!1);else{var K=this.end,l=C7i(u,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);l?(this.set("endWillUpdate",l.end!==K),this.set("startValid",l.start===u)):this.set("startValid",!1)}};
_.I.handleEndInput_=function(u){u=Dq2(u.target.value);if(u===null)this.set("endValid",!1);else{var K=this.start,l=IQB(this.start,u,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);l?(this.set("startWillUpdate",l.start!==K),this.set("endValid",l.end===u)):this.set("endValid",!1)}};
_.I.handleStartBlur_=function(u){u=Dq2(u.target.value);u===null?this.startInput.value=eq(this.start,!0):this.forceUpdateInputs_(C7i(u,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.I.handleEndBlur_=function(u){u=Dq2(u.target.value);u===null?this.endInput.value=eq(this.end,!0):this.forceUpdateInputs_(IQB(this.start,u,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.I.forceUpdateInputs_=function(u){u&&(this.start=u.start,this.end=u.end);this.startInput.value=eq(this.start,!0);this.endInput.value=eq(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.I.initializeClipRange_=function(){var u=this.seekableEnd_,K=this.seekableStart_,l=this.visible_,D=this.player_;if(!D||!l||K===null||!u)this.set("initialized",!1);else if(!this.initialized){var d=D.getCurrentTime(),C=this.getDefaultLengthSec_();l=D.getVideoData();var W=D.getPlayerState()==1,M=l.isLive;C=Math.min(C,u-K);d=Math.max(0,d);u=M?IQB(d-C,d,K,u,this.minLengthSec,this.maxLengthSec):W?dq_(d-C/2,C,K,u):dq_(d,C,K,u);this.start=u.start;this.end=u.end;this.set("initialized",!0);l.isLive&&D.seekTo(u.start);
this.startInput.value=eq(this.start,!0);this.endInput.value=eq(this.end,!0)}};
_.I.onStartChanged_=function(){var u=this;_.xs(this.hostElement,"start-changed",{start:this.start});var K;isNaN((K=this.oldStart)!=null?K:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){u.set("highlightStart",!1);u.startHighlightTimeout=0;u.oldStart=u.start},3E3))};
_.I.onEndChanged_=function(){var u=this;_.xs(this.hostElement,"end-changed",{end:this.end});var K;isNaN((K=this.oldEnd)!=null?K:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){u.set("highlightEnd",!1);u.endHighlightTimeout=0;u.oldEnd=u.end},3E3))};
_.I.onVisibilityChangedAction_=function(u){var K=this;this.set("visible_",u.visible);this.visible_&&!this.player_&&(u=_.xY())&&u.getPlayerPromise().then(function(l){K.setPlayer(l)})};
_.I.computeMinLengthSec_=function(u){return u/1E3||5};
_.I.computeMaxLengthSec_=function(u){return u/1E3||60};
_.I.computeDefaultLengthSec_=function(u){return u/1E3};
_.I.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.I.computeSeekableStart_=function(u,K){return u&&K?u.getProgressState(1).seekableStart:0};
_.I.computeSeekableEnd_=function(u,K){return u&&K?u.getProgressState(1).seekableEnd:0};
_.I.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.I.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.I.onDragState_=function(u){this.set("highlightStart",u.detail.startChanging);this.set("highlightEnd",u.detail.endChanging)};
PX.prototype.onDragState_=PX.prototype.onDragState_;PX.prototype.onEndChanged_=PX.prototype.onEndChanged_;PX.prototype.onStartChanged_=PX.prototype.onStartChanged_;PX.prototype.initializeClipRange_=PX.prototype.initializeClipRange_;PX.prototype.updateInputs_=PX.prototype.updateInputs_;PX.prototype.onSetRange_=PX.prototype.onSetRange_;PX.prototype.onSetFixedLengthRange_=PX.prototype.onSetFixedLengthRange_;
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],PX.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],PX.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],PX.prototype,"data",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],PX.prototype,"start",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],PX.prototype,"startValid",void 0);
_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],PX.prototype,"startWillUpdate",void 0);_.g([_.U({value:30}),_.N("design:type",Number)],PX.prototype,"end",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],PX.prototype,"endValid",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],PX.prototype,"endWillUpdate",void 0);_.g([_.U({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.N("design:type",Number)],PX.prototype,"minLengthSec",void 0);
_.g([_.U({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.N("design:type",Number)],PX.prototype,"maxLengthSec",void 0);_.g([_.U({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.N("design:type",Number)],PX.prototype,"defaultLengthSec",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],PX.prototype,"visible_",void 0);_.g([_.U(),_.N("design:type",Object)],PX.prototype,"player_",void 0);
_.g([_.U({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.N("design:type",Number)],PX.prototype,"seekableStart_",void 0);_.g([_.U({computed:"computeSeekableEnd_(player_, visible_)"}),_.N("design:type",Number)],PX.prototype,"seekableEnd_",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],PX.prototype,"initialized",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],PX.prototype,"disabled",void 0);
_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],PX.prototype,"highlightStart",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],PX.prototype,"highlightEnd",void 0);_.g([_.BF("#start"),_.N("design:type",HTMLInputElement)],PX.prototype,"startInput",void 0);_.g([_.BF("#end"),_.N("design:type",HTMLInputElement)],PX.prototype,"endInput",void 0);
_.g([_.PF("set-fixed-length-range"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],PX.prototype,"onSetFixedLengthRange_",null);_.g([_.PF("set-range"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],PX.prototype,"onSetRange_",null);_.g([_.JU("start","end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PX.prototype,"updateInputs_",null);
_.g([_.JU("player_","visible_","seekableStart_","seekableEnd_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PX.prototype,"initializeClipRange_",null);_.g([_.JU("start"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PX.prototype,"onStartChanged_",null);_.g([_.JU("end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PX.prototype,"onEndChanged_",null);
_.g([_.PF("clips-drag-state"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],PX.prototype,"onDragState_",null);_.g([_.E9({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],PX);
_.F(PX,"yt-clip-creation-scrubber-renderer",function(){if(SBu===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;xSF===void 0&&(xSF=document.createElement("template"));var D=xSF;l.call(K,D.content.cloneNode(!0),u.content.firstChild);SBu=u}u=SBu;return u},{mode:2});var Jz=function(){var u=_.Q.apply(this,arguments)||this;u.player_=null;u.JSC$22337_playerEvents=new Map;u.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return u};
_.c(Jz,_.Q);_.I=Jz.prototype;_.I.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"}}}};
_.I.created=function(){this.JSC$22337_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22337_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22337_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22337_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.I.detached=function(){this.setPlayer(null)};
_.I.onVisibilityChangedAction_=function(u){var K=this,l;if((l=this.data)==null?0:l.externalVideoId){var D;this.videoId=(D=this.data)==null?void 0:D.externalVideoId}this.getPlayer().then(function(d){if(u.visible)K.returnTime=d.getCurrentTime(),K.isAtLiveHead=d.getProgressState().isAtLiveHead;else{var C=K.returnTime;K.isAtLiveHead&&(C=Number.POSITIVE_INFINITY);d.seekTo(C,void 0,void 0,void 0,51)}})};
_.I.getPlayer=function(){var u=this;if(!this.player_){var K=_.xY();if(K)return K.getPlayerPromise().then(function(l){u.setPlayer(l);return l})}return Promise.resolve(this.player_)};
_.I.setPlayer=function(u){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22337_playerEvents);if(u){this.player_=u;var K;((K=this.data)==null?0:K.externalVideoId)||this.set("videoId",u.getVideoData().video_id||"");var l;(u==null?void 0:(l=u.getPresentingPlayerType)==null?void 0:l.call(u))===2&&(this.set("isAdPlaying",!0),_.Sy(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(u,this.JSC$22337_playerEvents)}};
_.I.ready=function(){_.bi(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.I.onTitleChanged_=function(u){this.set("titleValue",u.detail.title)};
_.I.onStartChanged_=function(u){this.set("start",u.detail.start)};
_.I.onEndChanged_=function(u){this.set("end",u.detail.end)};
_.I.onTitleValidChanged_=function(u){this.set("titleValid",u.detail.valid)};
_.I.onStartValidChanged_=function(u){this.set("startValid",u.detail.valid)};
_.I.onEndValidChanged_=function(u){this.set("endValid",u.detail.valid)};
_.I.onVideoDataChange_=function(){var u;if((u=this.data)==null||!u.externalVideoId){var K;this.set("videoId",((K=this.player_)==null?void 0:K.getVideoData().video_id)||"")}};
_.I.computeFormValid_=function(u,K,l,D){return!!(u&&K&&l&&D)};
_.I.computeCancelButton_=function(u,K,l){return u&&_.b(u,_.lF)?{buttonRenderer:Object.assign({},_.b(u,_.lF),{isDisabled:K||l})}:null};
_.I.computeSubmitButton_=function(u,K,l){return u&&_.b(u,_.lF)?{buttonRenderer:Object.assign({},_.b(u,_.lF),{command:void 0,isDisabled:!this.formValid||K||l})}:null};
_.I.computeSubmitCommand_=function(u){return u||null};
_.I.onSubmit_=function(u){var K=this;u.stopPropagation();u.preventDefault();this.submitCommand_&&(u={},u.comment_text=this.titleValue,u.clip_external_video_id=this.videoId,u.clip_offset_ms=parseInt(this.start*1E3,10),u.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.c0(this.hostElement,[this.submitCommand_,u]).then(function(){K.set("isLoading_",!1)},function(){K.set("isLoading_",!1)}))};
_.I.playerAdStartHandler_=function(){_.Sy(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.I.playerAdEndHandler_=function(){_.Sy(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.I.onVideoProgress_=function(){var u=this;this.getPlayer().then(function(K){var l,D=(K==null?void 0:(l=K.getPresentingPlayerType)==null?void 0:l.call(K))===2;u.isAdPlaying!==D&&(D?u.playerAdStartHandler_():u.playerAdEndHandler_())})};
Jz.prototype.onEndValidChanged_=Jz.prototype.onEndValidChanged_;Jz.prototype.onStartValidChanged_=Jz.prototype.onStartValidChanged_;Jz.prototype.onTitleValidChanged_=Jz.prototype.onTitleValidChanged_;Jz.prototype.onEndChanged_=Jz.prototype.onEndChanged_;Jz.prototype.onStartChanged_=Jz.prototype.onStartChanged_;Jz.prototype.onTitleChanged_=Jz.prototype.onTitleChanged_;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Jz.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",Object)],Jz.prototype,"ytPlayerListenerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Jz.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Jz.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Jz.prototype,"data",void 0);_.g([_.U({value:""}),_.N("design:type",String)],Jz.prototype,"titleValue",void 0);
_.g([_.U({value:!1}),_.N("design:type",Boolean)],Jz.prototype,"titleValid",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],Jz.prototype,"start",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],Jz.prototype,"startValid",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],Jz.prototype,"end",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],Jz.prototype,"endValid",void 0);_.g([_.U({value:""}),_.N("design:type",String)],Jz.prototype,"videoId",void 0);
_.g([_.U({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.N("design:type",Boolean)],Jz.prototype,"formValid",void 0);_.g([_.U({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.N("design:type",Object)],Jz.prototype,"submitButton_",void 0);_.g([_.U({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.N("design:type",Object)],Jz.prototype,"submitCommand_",void 0);
_.g([_.U({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.N("design:type",Object)],Jz.prototype,"cancelButton_",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Jz.prototype,"isLoading_",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Jz.prototype,"isAdPlaying",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],Jz.prototype,"returnTime",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Jz.prototype,"isAtLiveHead",void 0);
_.g([_.PF("title-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Jz.prototype,"onTitleChanged_",null);_.g([_.PF("start-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Jz.prototype,"onStartChanged_",null);_.g([_.PF("end-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Jz.prototype,"onEndChanged_",null);
_.g([_.PF("title-valid-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Jz.prototype,"onTitleValidChanged_",null);_.g([_.PF("start-valid-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Jz.prototype,"onStartValidChanged_",null);_.g([_.PF("end-valid-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Jz.prototype,"onEndValidChanged_",null);
_.g([_.E9({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Jz);
_.F(Jz,"yt-clip-creation-renderer",function(){if(t2z===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;GwF===void 0&&(GwF=document.createElement("template"));var D=GwF;l.call(K,D.content.cloneNode(!0),u.content.firstChild);t2z=u}u=t2z;return u},{mode:2});var jw=function(){return _.Q.apply(this,arguments)||this};
_.c(jw,_.Q);jw.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"}}}};
jw.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(u){return u.hasOwnProperty("clipCreationRenderer")})&&_.Sy(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
jw.prototype.onPanelContentVisibleChanged=jw.prototype.onPanelContentVisibleChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],jw.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.s$.YtVisibilityBehavior),_.N("design:type",Object)],jw.prototype,"ytVisibilityBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],jw.prototype,"ytdReduxBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],jw.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],jw.prototype,"panelContentVisible",void 0);_.g([_.JU("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jw.prototype,"onPanelContentVisibleChanged",null);_.g([_.T({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],jw);
_.F(jw,"ytd-clip-section-renderer",function(){if(n05!==void 0)return n05;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return n05=u},{mode:1});var aAS;var BX=function(){return _.Q.apply(this,arguments)||this};
_.c(BX,_.Q);_.I=BX.prototype;
_.I.onKeyDown=function(u){if(this.snippetElements.length!==0&&(u=u.keyCode,u===38||u===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);u===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.mz(this.highlightedIndex,-1,this.snippetElements.length);u=this.snippetElements.length;var K=this.highlightedIndex%u;this.highlightedIndex=K*u<0?K+u:K;u=this.snippetElements[this.highlightedIndex];this.highlightSnippet(u);this.ensureVisible(u)}};
_.I.onKeyUp=function(u){var K=this;TDB(u)&&(u.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.YL.cancelJob(this.inputTimerId),this.inputTimerId=_.YL.addLowPriorityJob(function(){K.typedValue&&(K.fetchSnippets(K.typedValue),K.logInputGesture(K.data))},1E3))};
_.I.onClick=function(u){(u=_.op2(u.target,null,"snippet-item"))&&this.selectSnippet(u)};
_.I.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.I.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.I.ready=function(){var u=this;this.inputElement.addEventListener("focus",function(){u.snippetsWrapper.style.removeProperty("display")})};
_.I.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.I.getSourceTimelines=function(){if(!this.data)return[];var u=[];if(this.data.searchInVideoSources)for(var K=_.y(this.data.searchInVideoSources),l=K.next();!l.done;l=K.next())l=l.value,l==="SEARCH_IN_VIDEO_SOURCE_ASR"?u.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):l==="SEARCH_IN_VIDEO_SOURCE_OCR"&&u.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return u};
_.I.fetchSnippets=function(u){var K=_.Sy(this.hostElement,"yt-get-current-video-id-action")[0],l=this.getSourceTimelines();u={getSearchInVideoCommand:{externalVideoId:K,query:u!=null?u:"",sourceTimelines:l},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.GB().resolve(_.t9).resolveCommand(u,{form:{element:this.hostElement}})};
_.I.filterSnippets=function(u,K){var l=this;if(K){this.filteredSnippets=(0,_.k$.unsafeClone)(u);var D=RegExp(_.OJy(K),"i");this.filteredSnippets=this.filteredSnippets.filter(function(W){return D.test(l.ytRendererBehavior.getSimpleString(W.snippet))});
u=_.y(this.filteredSnippets);for(var d=u.next();!d.done;d=u.next()){d=d.value;var C=this.ytRendererBehavior.getSimpleString(d.snippet);d.snippet={runs:[{text:C.substring(0,C.toLowerCase().indexOf(K))},{text:C.substring(C.toLowerCase().indexOf(K),C.toLowerCase().indexOf(K)+K.length),bold:!0},{text:C.substring(C.toLowerCase().indexOf(K)+K.length,C.length)}]}}}else this.filteredSnippets=u};
_.I.onUpdateSearchInVideoResults=function(u){if(!(this.snippets.length>0)){var K,l,D;if((D=(K=_.b(u,h$_))==null?void 0:(l=K.results)==null?void 0:l.length)!=null&&D){var d;this.filteredSnippets=this.snippets=((d=_.b(u,h$_))==null?void 0:d.results).map(function(C){var W,M,q;return{startMs:C==null?void 0:(W=C.searchInVideoResultRenderer)==null?void 0:W.startMs,startTimeText:C==null?void 0:(M=C.searchInVideoResultRenderer)==null?void 0:M.startTimeText,snippet:C==null?void 0:(q=C.searchInVideoResultRenderer)==
null?void 0:q.snippet}})}}};
_.I.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};
_.I.highlightSnippet=function(u){u.classList.add("highlighted")};
_.I.removeSnippetHighlight=function(u){u.classList.remove("highlighted")};
_.I.selectSnippet=function(u){this.typedValue=String(u.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(u);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.I.ensureVisible=function(u){var K=this.snippetsWrapper.scrollTop,l=K+this.snippetsWrapper.clientHeight,D=u.offsetTop-this.snippetsWrapper.offsetTop;u=D+u.clientHeight;D<K?this.snippetsWrapper.scrollTop-=K-D:u>l&&(this.snippetsWrapper.scrollTop+=u-l)};
_.I.seekPlayer=function(u){var K,l;return _.H(function(D){if(D.nextAddress==1){if(!u)return D.jumpTo(0);K=Number(u.dataset.startOffset);return D.yield(_.SU().getPlayerPromise(),3)}l=D.yieldResult;l.seekTo(K/1E3,!0);l.wakeUpControls();_.TG(D)})};
_.I.logInputGesture=function(u){var K=_.AC();K&&(u==null?0:u.trackingParams)&&_.Hi(K,_.gf(u.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.I.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("typed-value-changed",this.typedValue))};
_.I.updateTypedValueFromBinding=function(u){this.typedValue=u.currentTarget.value};
BX.prototype.typedValueChangedForBinding=BX.prototype.typedValueChangedForBinding;BX.prototype.dataChanged=BX.prototype.dataChanged;BX.prototype.panelContentVisibleChanged=BX.prototype.panelContentVisibleChanged;BX.prototype.onClick=BX.prototype.onClick;BX.prototype.onKeyUp=BX.prototype.onKeyUp;BX.prototype.onKeyDown=BX.prototype.onKeyDown;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],BX.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],BX.prototype,"data",void 0);_.g([_.U({value:[]}),_.N("design:type",Array)],BX.prototype,"snippets",void 0);_.g([_.U({value:[]}),_.N("design:type",Array)],BX.prototype,"filteredSnippets",void 0);_.g([_.U({value:[]}),_.N("design:type",Array)],BX.prototype,"snippetElements",void 0);
_.g([_.BF("#siv-input"),_.N("design:type",HTMLElement)],BX.prototype,"inputElement",void 0);_.g([_.BF("#siv-snippets-wrapper"),_.N("design:type",HTMLElement)],BX.prototype,"snippetsWrapper",void 0);_.g([_.U(),_.N("design:type",String)],BX.prototype,"typedValue",void 0);_.g([_.U({value:-1}),_.N("design:type",Number)],BX.prototype,"highlightedIndex",void 0);_.g([_.PF("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[_.BW]),_.N("design:returntype")],BX.prototype,"onKeyDown",null);
_.g([_.PF("keyup"),_.N("design:type",Function),_.N("design:paramtypes",[_.BW]),_.N("design:returntype")],BX.prototype,"onKeyUp",null);_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],BX.prototype,"onClick",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],BX.prototype,"panelContentVisible",void 0);
_.g([_.JU("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BX.prototype,"panelContentVisibleChanged",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BX.prototype,"dataChanged",null);_.g([_.JU("typedValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BX.prototype,"typedValueChangedForBinding",null);
_.g([_.T({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],BX);
_.F(BX,"ytd-search-in-video-renderer",function(){if(aAS!==void 0)return aAS;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return aAS=u},{mode:1});var zwu;var pO=function(){return _.Q.apply(this,arguments)||this};
_.c(pO,_.Q);pO.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
pO.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]]"}}}}}};
pO.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var u,K,l,D,d=(K=_.b((u=this.data)==null?void 0:u.onClickCommand,_.w0))==null?void 0:(l=K.item)==null?void 0:(D=l.notificationTextRenderer)==null?void 0:D.successResponseText;d&&_.f6q(this.hostElement,d)}};
_.MN.Object.defineProperties(pO.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D;return this.isProductPlaceholder&&((u=this.data)==null?void 0:(K=u.hiddenProductOptions)==null?void 0:K.showDropCountdown)&&!!((l=this.data)==null?0:(D=l.hiddenProductOptions)==null?0:D.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var u;return!this.isProductPlaceholder&&!((u=this.data)==null?0:u.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var u,K;return!((u=this.data)==null?0:u.priceReplacementText)&&!((K=this.data)==null||!K.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],pO.prototype,"componentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],pO.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],pO.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("isProductPlaceholder"),_.N("design:type",Object),_.N("design:paramtypes",[])],pO.prototype,"useCenterLayoutContainer",null);_.g([_.U({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],pO.prototype,"buttonOverride",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pO.prototype,"isProductPlaceholder",null);
_.g([_.R("isProductPlaceholder"),_.N("design:type",Object),_.N("design:paramtypes",[])],pO.prototype,"showDropCountdown",null);_.g([_.R("isProductPlaceholder","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pO.prototype,"showBrandName",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pO.prototype,"showPriceReplacementText",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pO.prototype,"showPrice",null);
_.g([_.R("isProductPlaceholder"),_.N("design:type",Object),_.N("design:paramtypes",[])],pO.prototype,"showMetadata",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],pO);
_.F(pO,"ytd-product-list-item-renderer",function(){if(zwu!==void 0)return zwu;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return zwu=u},{mode:1});var ewM;var i7=function(){return _.Q.apply(this,arguments)||this};
_.c(i7,_.Q);i7.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
i7.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
i7.prototype.panelContentVisibleChanged=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1)return u.playerApi?l.jumpTo(2):l.yield(_.SU().getPlayerPromise(),3);l.nextAddress!=2&&(u.playerApi=l.yieldResult);(K=u.playerApi)==null||K.productsInVideoVisibilityUpdated(!!u.panelContentVisible);_.TG(l)})};
i7.prototype.panelContentVisibleChanged=i7.prototype.panelContentVisibleChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],i7.prototype,"panelContentVisible",void 0);_.g([_.U(),_.N("design:type",Object)],i7.prototype,"data",void 0);
_.g([_.JU("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],i7.prototype,"panelContentVisibleChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],i7);
_.F(i7,"ytd-product-list-renderer",function(){if(ewM!==void 0)return ewM;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return ewM=u},{mode:1});var Rw9;var Tl=function(){var u=_.Q.apply(this,arguments)||this;u.hideTimestamps=!!_.f7("hide-transcript-timestamps");u.currentCueIndex=-1;u.flatCues=[];u.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};u.TEST_ONLY={getFlatCues:function(){return u.flatCues}};
return u};
_.c(Tl,_.Q);_.I=Tl.prototype;_.I.hideTimestampsChanged=function(){_.Uj("hide-transcript-timestamps",this.hideTimestamps)};
_.I.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.I.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.I.dataChanged=function(){var u;if((u=this.data)!=null&&u.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;u=_.y(this.data.cueGroups);for(var K=u.next();!K.done;K=u.next()){K=_.y(_.b(K.value,EdE).cues);for(var l=K.next();!l.done;l=K.next())this.flatCues.push(Number(_.b(l.value,LVI).startOffsetMs))}}};
_.I.onYtPlayerTimeChanged=function(u){if(!(u<0)){for(var K=this.currentCueIndex,l=K;;){var D=l>=0?this.flatCues[l]/1E3:-1;if(u+.5<D)--l;else if(D=l+1<this.flatCues.length?this.flatCues[l+1]/1E3:Infinity,u+.5>D)l+=1;else break}l!==K&&(K>=0&&((u=this.getCueElement(K))&&u.classList.remove("active"),(K=this.getCueGroupElement(K))&&K.classList.remove("active")),(K=this.getCueElement(l))&&K.classList.add("active"),(K=this.getCueGroupElement(l))&&K.classList.add("active"),this.currentCueIndex=l,this.isHovered||
this.scrollElementToTop(l))}};
_.I.scrollElementToTop=function(u){u=this.getCueElement(u>=3?u-3:0);this.hostElement.scrollTop=Math.min(u.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.I.getCueElement=function(u){return _.bi(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[u]+'"]')};
_.I.getCueGroupElement=function(u){return(u=this.getCueElement(u))&&u.parentElement?u.parentElement.parentElement:null};
_.I.onTap=function(u){var K=_.HF(u);u.target.classList.contains("cue")&&this.seekCueElement(K)};
_.I.onKeyPress=function(u){u.keyCode==13&&(u=_.op2(u.target,null,"cue"))&&this.seekCueElement(u)};
_.I.seekCueElement=function(u){u=Number(u.getAttribute("start-offset"));_.Sy(this.hostElement,"yt-transcript-player-seek",[u/1E3])};
_.I.onMouseEnter=function(){this.isHovered=!0};
_.I.onMouseLeave=function(){this.isHovered=!1};
Tl.prototype.onMouseLeave=Tl.prototype.onMouseLeave;Tl.prototype.onMouseEnter=Tl.prototype.onMouseEnter;Tl.prototype.onKeyPress=Tl.prototype.onKeyPress;Tl.prototype.onTap=Tl.prototype.onTap;Tl.prototype.dataChanged=Tl.prototype.dataChanged;Tl.prototype.hideTimestampsChanged=Tl.prototype.hideTimestampsChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Tl.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Tl.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Tl.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Tl.prototype,"hideTimestamps",void 0);_.g([_.U(),_.N("design:type",Boolean)],Tl.prototype,"isHovered",void 0);_.g([_.JU("hideTimestamps"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tl.prototype,"hideTimestampsChanged",null);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tl.prototype,"dataChanged",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Tl.prototype,"onTap",null);_.g([_.PF("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Tl.prototype,"onKeyPress",null);
_.g([_.PF("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tl.prototype,"onMouseEnter",null);_.g([_.PF("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tl.prototype,"onMouseLeave",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Tl);
_.F(Tl,"ytd-transcript-body-renderer",function(){if(Rw9!==void 0)return Rw9;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Rw9=u},{mode:1});var USz;var wD=function(){var u=_.Q.apply(this,arguments)||this;u.darkerPanels=_.S("web_watch_darker_panels");return u};
_.c(wD,_.Q);wD.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],wD.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],wD.prototype,"darkerPanels",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],wD);
_.F(wD,"ytd-transcript-footer-renderer",function(){if(USz!==void 0)return USz;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return USz=u},{mode:1});var fAM;var QC9;var Fw=function(){var u=_.Q.apply(this,arguments)||this;u.systemIcons=_.S("kevlar_system_icons");u.showClearButton=!1;return u};
_.c(Fw,_.Q);_.I=Fw.prototype;_.I.handleInput=function(u){var K=this;u.target.value.length?_.It(this,"ytdTranscriptSearchBoxSearch",function(){K.emitSearchEvent(u)},500):(_.HhZ(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=u.target.value.length>0};
_.I.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.I.handleClick=function(){var u,K=(u=this.data)==null?void 0:u.trackingParams;K&&_.QZ(_.iT(),K)};
_.I.handleClear=function(){_.HhZ(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var u,K,l=(K=_.b((u=this.data)==null?void 0:u.clearButton,_.lF))==null?void 0:K.trackingParams;l&&_.QZ(_.iT(),l);this.clear()};
_.I.emitSearchEvent=function(u){_.xs(this.hostElement,"yt-transcript-search-box-search",{query:u.target.value});var K,l;(u=(l=_.b((K=this.data)==null?void 0:K.searchButton,_.lF))==null?void 0:l.trackingParams)&&_.QZ(_.iT(),u)};
_.I.emitClearEvent=function(){_.xs(this.hostElement,"yt-transcript-search-box-clear")};
_.MN.Object.defineProperties(Fw.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.bi(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Fw.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Fw.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Fw.prototype,"systemIcons",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Fw);
_.F(Fw,"ytd-transcript-search-box-renderer",function(){if(QC9!==void 0)return QC9;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return QC9=u},{mode:1});var PkQ;var JRk;var Vu=function(){return _.Q.apply(this,arguments)||this};
_.c(Vu,_.Q);Vu.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var u,K;this.sectionHeaderAriaLabel=(u=this.data)==null?void 0:(K=u.accessibility)==null?void 0:K.accessibilityData.label}};
Vu.prototype.fireSelectedEvent=function(u){_.xs(this.hostElement,"ytd-transcript-section-header",{startMs:u})};
Vu.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Vu.prototype.handleKeyPress=function(u){this.data&&u.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.MN.Object.defineProperties(Vu.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var u,K;return(K=(u=this.data)==null?void 0:u.enableTappableTranscriptHeader)!=null?K:!1}}});
Vu.prototype.dataChanged=Vu.prototype.dataChanged;_.g([_.U(),_.N("design:type",Object)],Vu.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],Vu.prototype,"sectionHeaderAriaLabel",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Vu.prototype,"enableTappableTranscriptHeader",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vu.prototype,"dataChanged",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Vu);
_.F(Vu,"ytd-transcript-section-header-renderer",function(){if(JRk!==void 0)return JRk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return JRk=u},{mode:1});var jCz;var BNg;var gD=function(){var u=_.Q.apply(this,arguments)||this;u.isEditMode=!1;u.touchCaptionsEnabled=!1;u.deleteCaptionCorrectionPopupCommand=null;u.voteCaptionCorrectionPopupCommand=null;u.roundedContainer=!0;u.mouseOver=!1;u.textChanged=!1;u.messages={suggest_correction:_.QQ("suggest_correction",void 0,"Edit caption"),suggested_caption:_.QQ("suggested_caption",void 0,"Suggested caption"),submit_correction:_.QQ("submit_correction",void 0,"Submit for review"),cancel_correction:_.QQ("cancel_correction",
void 0,"Cancel"),replay_segment:_.QQ("replay_segment",void 0,"Re-play segment"),delete_correction:_.QQ("delete_correction",void 0,"Delete correction")};u.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return u};
_.c(gD,_.Q);_.I=gD.prototype;_.I.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)};
_.I.handleDelete=function(u){if(this.deleteCaptionCorrectionPopupCommand){var K=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);K&&this.ytdOpenPopupBehavior.openPopup(K);u.stopPropagation()}};
_.I.handleSubmit=function(u){if(this.data&&this.data.submitCaptionCorrectionCommand&&(u.stopPropagation(),this.textChanged)){var K;u=(K=_.b(this.data.submitCaptionCorrectionCommand,_.ATa))==null?void 0:K.params;K=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:u,correctionText:String(this.ironTextAreaElement.value),originalText:_.WI(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(K);this.isEditMode=!1}};
_.I.handleUpdateSegmentText=function(u){(u=_.b(u,r2G))&&u.targetId&&this.data&&u.targetId===this.data.targetId&&(u.userCorrection&&(this.editedText=u.userCorrection),u.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.WI(this.data.snippet)),u.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=u.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=u.voteCaptionCorrectionPopupCommand?
u.voteCaptionCorrectionPopupCommand:null,u.accessibility&&(this.segmentAriaLabel=u.accessibility.accessibilityData.label))};
_.I.handleCancel=function(u){this.isEditMode=!1;u.stopPropagation();this.logClientVe(159409)};
_.I.handleEditSegmentCommand=function(u){(u=_.b(u,nCo))&&u.targetId&&this.data&&u.targetId===this.data.targetId&&this.handleEdit()};
_.I.handleEditButtonClick=function(u){this.data&&(this.handleEdit(),u.stopPropagation())};
_.I.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var u;(u=this.ironTextAreaElement.textarea)==null||u.focus();this.logClientVe(159407)}};
_.I.handleMouseEnter=function(){this.mouseOver=!0};
_.I.handleMouseLeave=function(){this.mouseOver=!1};
_.I.handleReplay=function(u){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),u.stopPropagation(),this.logClientVe(159408))};
_.I.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()))};
_.I.handleKeypress=function(u){this.data&&(this.isEditMode?u.stopPropagation():this.isEnterPress(u)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(u)&&this.logClientVe(138758))};
_.I.handleTextboxClick=function(u){u.stopPropagation()};
_.I.handleTextboxKeydown=function(u){this.isControlEnterPress(u)?this.handleSubmit(u):u.key==="Escape"&&this.handleCancel(u)};
_.I.handleTextboxKeyup=function(){this.textChanged=_.WI(this.latestText)!==String(this.ironTextAreaElement.value)};
_.I.fireSelectedEvent=function(u){_.xs(this.hostElement,"yt-transcript-segment-selected",{startMs:u})};
_.I.fireReplayEvent=function(u,K){_.xs(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(u-100,0),endMs:K})};
_.I.fireEditEvent=function(u,K){_.xs(this.hostElement,"yt-transcript-segment-edit",{startMs:u,endMs:K})};
_.I.isEnterPress=function(u){return u.key==="Enter"||u.code==="Enter"||u.code==="NumpadEnter"||u.keyCode===13?!0:!1};
_.I.isControlEnterPress=function(u){var K=u.key==="Enter"||u.code==="Enter"||u.code==="NumpadEnter"||u.keyCode===13;return(u.ctrlKey||u.metaKey)&&K};
_.I.isCopyPress=function(u){var K=u.ctrlKey;return u.key==="c"&&K};
_.I.logClick=function(){var u,K=(u=this.data)==null?void 0:u.trackingParams;K&&_.QZ(_.iT(),K)};
_.I.logClientVe=function(u){_.ft(_.iT(),_.Yo(u))};
_.MN.Object.defineProperties(gD.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}}});
gD.prototype.handleMouseLeave=gD.prototype.handleMouseLeave;gD.prototype.handleMouseEnter=gD.prototype.handleMouseEnter;gD.prototype.dataChanged=gD.prototype.dataChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],gD.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.nl),_.N("design:type",Object)],gD.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],gD.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],gD.prototype,"isEditMode",void 0);_.g([_.U(),_.N("design:type",Object)],gD.prototype,"touchCaptionsEnabled",void 0);_.g([_.U(),_.N("design:type",Object)],gD.prototype,"editedText",void 0);_.g([_.U(),_.N("design:type",Object)],gD.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.g([_.U(),_.N("design:type",Object)],gD.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.g([_.U(),_.N("design:type",String)],gD.prototype,"segmentAriaLabel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],gD.prototype,"roundedContainer",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],gD.prototype,"mouseOver",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],gD.prototype,"textChanged",void 0);_.g([_.U(),_.N("design:type",Object)],gD.prototype,"messages",void 0);
_.g([_.BF("#suggestion"),_.N("design:type",Object)],gD.prototype,"ironTextAreaElement",void 0);_.g([_.R("data","editedText"),_.N("design:type",Object),_.N("design:paramtypes",[])],gD.prototype,"latestText",null);_.g([_.R("touchCaptionsEnabled","isEditMode"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gD.prototype,"enableEditButton",null);
_.g([_.R("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gD.prototype,"enableUndoButton",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gD.prototype,"dataChanged",null);_.g([_.PF("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gD.prototype,"handleMouseEnter",null);
_.g([_.PF("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gD.prototype,"handleMouseLeave",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],gD);
_.F(gD,"ytd-transcript-segment-renderer",function(){if(BNg!==void 0)return BNg;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return BNg=u},{mode:1});var Nq=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};u.isError=!1;u.darkerPanels=_.S("web_watch_darker_panels");u.useParentMaxHeight=_.S("web_watch_transscript_use_parent_max_height");u.segmentOffsets=[];u.segmentIndex=-1;return u};
_.c(Nq,_.Q);_.I=Nq.prototype;_.I.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"}}}}};
_.I.segmentsChanged=function(){this.updateOffsets()};
_.I.onYtPlayerTimeChanged=function(u){for(var K=this.segmentIndex,l=K;;){if(l>=0){var D=this.segmentOffsets[l].start;var d=this.segmentOffsets[l].isAutoScrollable}else D=-1,d=!0;var C=u+.5;if(!d){D=l+1<this.segmentOffsets.length?this.segmentOffsets[l+1].start:Infinity;if(C>=D){l+=1;continue}l=-1;break}if(C<D)D=l-1>=0&&this.segmentOffsets[l-1].isAutoScrollable,d=l===0||D?1:2,l-=d;else if(d=l+1<this.segmentOffsets.length&&this.segmentOffsets[l+1].isAutoScrollable?1:2,D=l+d<this.segmentOffsets.length?
this.segmentOffsets[l+d].start:Infinity,C>D)l+=d;else{if(l<0)break;l<this.segmentOffsets.length&&C>this.segmentOffsets[l].end&&(l=-1);break}}if(K!==l){if(K>=0){var W;(W=this.getSegmentElement(K))==null||W.classList.remove("active")}this.segmentIndex=l;if(!(l<0)){var M;(M=this.getSegmentElement(l))==null||M.classList.add("active");this.isHovered||this.scrollElementToTop(l)}}};
_.I.handleSegmentEdit=function(u){u.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=u.target,_.Sy(this.hostElement,"yt-transcript-player-edit",[u.detail.startMs/1E3,u.detail.endMs/1E3]))};
_.I.handleSegmentSelected=function(u){_.Sy(this.hostElement,"yt-transcript-player-seek",[u.detail.startMs/1E3])};
_.I.handleSegmentReplay=function(u){_.Sy(this.hostElement,"yt-transcript-player-replay",[u.detail.startMs/1E3,u.detail.endMs/1E3])};
_.I.handleSectionHeaderSelected=function(u){_.Sy(this.hostElement,"yt-transcript-player-seek",[u.detail.startMs/1E3])};
_.I.onMouseEnter=function(){this.isHovered=!0};
_.I.onMouseLeave=function(){this.isHovered=!1};
_.I.onRetryButtonClick=function(){_.xs(this.hostElement,"transcript-retry-button-click")};
_.I.getSegmentElement=function(u){return _.bi(this.hostElement).querySelector(":nth-child("+(u+1)+")")};
_.I.scrollElementToTop=function(u){u=this.getSegmentElement(u>=2?u-2:0);this.hostElement.scrollTop=Math.min(u.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.I.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(u){var K,l=(K=u.transcriptSegmentRenderer)!=null?K:u.transcriptSectionHeaderRenderer;return{start:Number(l.startMs)/1E3,end:Number(l.endMs)/1E3,isAutoScrollable:u.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.I.clearHighlightedSegments=function(){var u=_.bi(this.hostElement);u=_.y(u.querySelectorAll("ytd-transcript-segment-renderer"));for(var K=u.next();!K.done;K=u.next())K.value.classList.remove("active")};
_.MN.Object.defineProperties(Nq.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?void 0:u.searchResultSegments)||((K=this.data)==null?void 0:K.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
Nq.prototype.onMouseLeave=Nq.prototype.onMouseLeave;Nq.prototype.onMouseEnter=Nq.prototype.onMouseEnter;Nq.prototype.handleSectionHeaderSelected=Nq.prototype.handleSectionHeaderSelected;Nq.prototype.handleSegmentReplay=Nq.prototype.handleSegmentReplay;Nq.prototype.handleSegmentSelected=Nq.prototype.handleSegmentSelected;Nq.prototype.handleSegmentEdit=Nq.prototype.handleSegmentEdit;Nq.prototype.segmentsChanged=Nq.prototype.segmentsChanged;
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Nq.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Nq.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Nq.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Nq.prototype,"isError",void 0);
_.g([_.U(),_.N("design:type",Object)],Nq.prototype,"noResultLabel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Nq.prototype,"darkerPanels",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Nq.prototype,"useParentMaxHeight",void 0);_.g([_.R("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],Nq.prototype,"segments",null);
_.g([_.R("segments","noResultLabel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Nq.prototype,"displayNoResults",null);_.g([_.JU("segments"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nq.prototype,"segmentsChanged",null);_.g([_.PF("yt-transcript-segment-edit"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Nq.prototype,"handleSegmentEdit",null);
_.g([_.PF("yt-transcript-segment-selected"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Nq.prototype,"handleSegmentSelected",null);_.g([_.PF("yt-transcript-segment-replay"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Nq.prototype,"handleSegmentReplay",null);
_.g([_.PF("ytd-transcript-section-header"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Nq.prototype,"handleSectionHeaderSelected",null);_.g([_.PF("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nq.prototype,"onMouseEnter",null);_.g([_.PF("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nq.prototype,"onMouseLeave",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],Nq);
_.F(Nq,"ytd-transcript-segment-list-renderer",function(){if(jCz!==void 0)return jCz;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return jCz=u},{mode:1});var kd=function(){var u=_.Q.apply(this,arguments)||this;u.hideTimestamps=!!_.f7("hide-transcript-timestamps");u.isLoadingTranscripts=!1;u.darkerPanels=_.S("web_watch_darker_panels");u.isError=!1;u.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return u};
_.c(kd,_.Q);_.I=kd.prototype;_.I.headerChanged=function(){var u,K;this.baseGetTranscriptsCommand=(K=_.b((u=this.data)==null?void 0:u.header,vC_))==null?void 0:K.onTextChangeCommand};
_.I.bodyChanged=function(){var u=this.getBodyRenderer();u&&(u.initialSegments&&(this.initialTranscriptsRenderer=u),u.noResultLabel&&(this.noResultLabel=u.noResultLabel),u.retryLabel&&(this.retryLabel=u.retryLabel))};
_.I.detached=function(){this.clearSearchBoxText()};
_.I.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.I.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"}}}};
_.I.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.I.fireSearch=function(u){var K=this;if(u){var l=u.detail.query;if(this.baseGetTranscriptsCommand){var D;u=(D=_.b(this.baseGetTranscriptsCommand,_.ejB))==null?void 0:D.params;var d;D=_.b((d=this.data)==null?void 0:d.footer,uak);var C;if((d=(C=_.b(D==null?void 0:D.languageMenu,MJp))==null?void 0:C.subMenuItems)&&d.length>0&&(C=d.find(function(q){return q.selected}))){var W,M;
u=(W=C.continuation)==null?void 0:(M=W.reloadContinuationData)==null?void 0:M.continuation}W=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:u,searchQuery:l}});this.ytComponentBehavior.resolveCommand(W,{commandController:{onServerError:function(){K.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});pXH(this.ytContinuationHandlerBehavior,function(){return l===K.getCurrentSearchBoxText()})}}};
_.I.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.I.onRetryButtonClick=function(){this.isError=!1;var u={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:u}))};
_.I.hideTimestampsChanged=function(){_.Uj("hide-transcript-timestamps",this.hideTimestamps)};
_.I.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.I.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.I.handleSignalActionCopyTranscript=function(){var u=this,K=this.getBodyRenderer();K&&(K=((K==null?void 0:K.searchResultSegments)||(K==null?void 0:K.initialSegments)||[]).map(function(l){return _.b(l,tJ_)}).filter(function(l){return!!l}).map(function(l){return{snippet:l.snippet||{runs:[{text:""}]},
startTimeText:l.startTimeText||{simpleText:""}}}).map(function(l){var D=(l.snippet.runs||[]).reduce(function(d,C){return d+C.text},"");
return u.hideTimestamps?D:l.startTimeText.simpleText+" "+D}).join("\n"),this.copyToClipboard(K))};
_.I.copyToClipboard=function(u){navigator.clipboard&&navigator.clipboard.writeText(u)};
_.I.getCurrentSearchBoxText=function(){var u;return(u=this.searchBox)==null?void 0:u.value};
_.I.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.I.getBodyRenderer=function(){var u;return _.b((u=this.data)==null?void 0:u.body,Gvk)};
_.I.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.MN.Object.defineProperties(kd.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.bi(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
kd.prototype.hideTimestampsChanged=kd.prototype.hideTimestampsChanged;kd.prototype.searchCleared=kd.prototype.searchCleared;kd.prototype.fireSearch=kd.prototype.fireSearch;kd.prototype.onReloadContinuationFinish=kd.prototype.onReloadContinuationFinish;kd.prototype.bodyChanged=kd.prototype.bodyChanged;kd.prototype.headerChanged=kd.prototype.headerChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],kd.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],kd.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],kd.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ir),_.N("design:type",Object)],kd.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],kd.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],kd.prototype,"hideTimestamps",void 0);
_.g([_.U(),_.N("design:type",Object)],kd.prototype,"isLoadingTranscripts",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],kd.prototype,"darkerPanels",void 0);_.g([_.U(),_.N("design:type",Object)],kd.prototype,"isError",void 0);_.g([_.JU("data.header"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kd.prototype,"headerChanged",null);
_.g([_.wn("data.body"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kd.prototype,"bodyChanged",null);_.g([_.PF("yt-reload-continuation-finish"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kd.prototype,"onReloadContinuationFinish",null);_.g([_.PF("yt-transcript-search-box-search"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],kd.prototype,"fireSearch",null);
_.g([_.PF("yt-transcript-search-box-clear"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kd.prototype,"searchCleared",null);_.g([_.JU("hideTimestamps"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kd.prototype,"hideTimestampsChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],kd);
_.F(kd,"ytd-transcript-search-panel-renderer",function(){if(PkQ!==void 0)return PkQ;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return PkQ=u},{mode:1});var ZQ=function(){var u=_.Q.apply(this,arguments)||this;u.player=null;u.playerPollJobId=0;return u};
_.c(ZQ,_.Q);_.I=ZQ.prototype;_.I.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.I.onLoadReloadContinuation=function(u){_.S("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:u.target.data.continuation}}):(u={clickTrackingParams:u.target.data.clickTrackingParams,getTranscriptEndpoint:{params:u.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.GB().resolve(_.t9).resolveCommand(u,{form:{element:this.hostElement}}))};
_.I.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"}}}};
_.I.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.I.attached=function(){this.updatePlayerListening()};
_.I.detached=function(){this.updatePlayerListening()};
_.I.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.I.startPlayerListening=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1)return(K=_.xY())?l.yield(K.getPlayerPromise(),2):l.return();u.player=l.yieldResult;u.playerPollJobId=_.YL.addLowPriorityJob(function(){u.getPlayerVideoProgress()},1E3);
u.player.addEventListener("onCueRangeEnter",function(D){u.onCueRangeEnter(D)});
u.player.addEventListener("onCueRangeExit",function(D){u.onCueRangeExit(D)});
u.player.addEventListener("onStateChange",function(D){u.onPlayerStateChange(D)});
u.player.addEventListener("SEEK_TO",function(D){u.onPlayerSeek(D)});
_.TG(l)})};
_.I.getPlayerVideoProgress=function(){var u=this;_.YL.cancelJob(this.playerPollJobId);if(this.player){var K=this.player.getCurrentTime();_.Sy(this.hostElement,"yt-player-time-changed",[K])}this.playerPollJobId=_.YL.addLowPriorityJob(function(){u.getPlayerVideoProgress()},1E3)};
_.I.stopPlayerListening=function(){this.player=null;_.YL.cancelJob(this.playerPollJobId)};
_.I.onPlayerStateChange=function(u){u===2&&this.removePendingCue()};
_.I.onPlayerSeek=function(u){var K;if(K=this.pendingReplayCueId)K=this.pendingReplayCueId,K=u===(_.S("web_transcript_cue_id_killswitch")?Number(K):Number(K.split("_")[1]));K||this.removePendingCue()};
_.I.onCueRangeEnter=function(u){sn2(u)&&(this.pendingReplayCueId=u)};
_.I.onCueRangeExit=function(u){sn2(u)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.I.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.I.onYtTranscriptPlayerSeek=function(u){this.player&&this.player.seekTo(u,!0)};
_.I.onYtTranscriptPlayerReplay=function(u,K){this.player&&(this.player.addCueRange(yz6(u),u,K),this.player.seekTo(u,!0),this.player.playVideo())};
_.I.onYtTranscriptPlayerEdit=function(u,K){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(yz6(u),u,K),this.player.seekTo(u,!0))};
ZQ.prototype.onLoadReloadContinuation=ZQ.prototype.onLoadReloadContinuation;ZQ.prototype.panelContentVisibleChanged=ZQ.prototype.panelContentVisibleChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],ZQ.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ZQ.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],ZQ.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ZQ.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],ZQ.prototype,"panelContentVisible",void 0);_.g([_.JU("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZQ.prototype,"panelContentVisibleChanged",null);
_.g([_.PF("yt-load-reload-continuation"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],ZQ.prototype,"onLoadReloadContinuation",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],ZQ);
_.F(ZQ,"ytd-transcript-renderer",function(){if(fAM!==void 0)return fAM;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return fAM=u},{mode:1});var pau;var isr;var Yd=function(){return _.Q.apply(this,arguments)||this};
_.c(Yd,_.Q);Yd.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.xs(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.ay(this.hostElement,[this.data.clickCommand],this.hostElement))};
Yd.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.LY)()+_.pq)+"px)"};
Yd.prototype.updateShouldHideFromBinding=function(u){this.shouldHide=u.detail.value};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Yd.prototype,"rendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Yd.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],Yd.prototype,"shouldHide",void 0);_.g([_.T({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Yd);
_.F(Yd,"ytd-ad-engagement-panel-banner-renderer",function(){if(isr!==void 0)return isr;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return isr=u},{mode:_.zW("kevlar_poly_si_batch_j070")?1:2});var TNQ;var Az=function(){var u=_.Q.apply(this,arguments)||this;u.modernPanels=_.S("kevlar_watch_modern_panels");u.buttonUpdate=_.S("web_modern_buttons");u.adsSemanticText=_.S("enable_ads_web_ep_buenos_aires_and_padding_fix");return u};
_.c(Az,_.Q);Az.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.g([_.U(),_.N("design:type",Object)],Az.prototype,"data",void 0);_.g([_.U({computed:"computeHideDefaultAdBadge(data)"}),_.N("design:type",Boolean)],Az.prototype,"hideDefaultAdBadge",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Az.prototype,"modernPanels",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Az.prototype,"buttonUpdate",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Az.prototype,"adsSemanticText",void 0);
_.g([_.T({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Az);
_.F(Az,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(TNQ!==void 0)return TNQ;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return TNQ=u},{mode:1});var waJ;var Xw=function(){var u=_.Q.apply(this,arguments)||this;u.darkerPanels=_.S("web_watch_darker_panels");u.enableSqueezebackPanels=_.S("web_shorts_enable_squeezeback_panels");u.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");u.modernPanels=_.S("kevlar_watch_modern_panels");u.headerClickListener=function(K){u.onHeaderClick(K)};
u.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return u};
_.c(Xw,_.Q);_.I=Xw.prototype;_.I.computeAdsInfoButton=function(){if(_.S("web_modern_buttons")){var u,K;return(K=_.b((u=this.data)==null?void 0:u.subtitleComplex,Ks6))==null?void 0:K.adInfoRenderer}};
_.I.updateHeaderClickListener=function(){var u,K,l;((u=this.data)==null?0:u.navigationEndpoint)||((K=this.data)==null?0:K.onClickCommand)||_.b((l=this.data)==null?void 0:l.visibilityButton,_.DG)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.I.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}}}}}};
_.I.collapsedChanged=function(){var u;(u=this.data)!=null&&u.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.S("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.I.focus=function(u){var K=this;this.titleElement&&_.YL.addJob(function(){_.Wu(K.titleElement,u)},0,500)};
_.I.computeTitleAriaLabel=function(u){var K=[];if(u.title){var l,D;K.push(this.ytRendererBehavior.getSimpleString(u.title)||((l=u.title.accessibility)==null?void 0:(D=l.accessibilityData)==null?void 0:D.label))}u.contextualInfo&&K.push(this.ytRendererBehavior.getSimpleString(u.contextualInfo));return K.join(" ")};
_.I.onHeaderClick=function(u){this.shouldTriggerHeaderClick(u)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.xs(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.ay(this.hostElement,[this.data.onClickCommand],this.hostElement)):(u=this.getVisibilityToggleButton())&&u.click())};
_.I.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var u=_.b(this.data.visibilityButton,_.lF)||_.b(this.data.visibilityButton,_.DG);u&&this.ytRendererBehavior.logExplicitClick(u)}};
_.I.getVisibilityToggleButton=function(){var u=_.bi(this.hostElement).querySelector("#visibility-button").firstElementChild;return(u==null?void 0:u.is)==="ytd-toggle-button-renderer"?u:null};
_.I.shouldTriggerHeaderClick=function(u){return!_.rE(_.WF(u),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.I.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(u){u=_.b(u,_.ZOB);this.targetId&&(u==null?void 0:u.targetId)===this.targetId&&(u=u.navigationButton)&&this.set("data.navigationButton",u)};
_.MN.Object.defineProperties(Xw.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var u;return!!(((u=this.entity)==null?0:u.isActionButtonHidden)||this.hideActionButton)}}});
Xw.prototype.collapsedChanged=Xw.prototype.collapsedChanged;Xw.prototype.updateHeaderClickListener=Xw.prototype.updateHeaderClickListener;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Xw.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Xw.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Xw.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.Ll),_.N("design:type",Object)],Xw.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Xw.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],Xw.prototype,"targetId",void 0);_.g([_.U(),_.N("design:type",Boolean)],Xw.prototype,"collapsed",void 0);_.g([_.U(),_.N("design:type",Boolean)],Xw.prototype,"hideActionButton",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xw.prototype,"shortsPanel",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xw.prototype,"liveChatEngagementPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xw.prototype,"learningChatEngagementPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Xw.prototype,"darkerPanels",void 0);_.g([_.BF("#title"),_.N("design:type",HTMLElement)],Xw.prototype,"titleElement",void 0);_.g([_.BF("#header"),_.N("design:type",HTMLElement)],Xw.prototype,"headerElement",void 0);
_.g([_.U({computed:"computeAdsInfoButton(data)"}),_.N("design:type",Object)],Xw.prototype,"adsInfoButton",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Xw.prototype,"enableSqueezebackPanels",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Xw.prototype,"enableAnchoredPanel",void 0);_.g([_.U({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(u,K){return _.eZ(u.entities,"engagementPanelTitleHeaderEntity",K)}}),
_.N("design:type",Object)],Xw.prototype,"entity",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Xw.prototype,"modernPanels",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xw.prototype,"adsSemanticText",null);_.g([_.JU("data","data.navigationEndpoint","data.onClickCommand"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xw.prototype,"updateHeaderClickListener",null);
_.g([_.wn("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xw.prototype,"collapsedChanged",null);_.g([_.R("entity","hideActionButton"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xw.prototype,"isActionButtonHidden",null);_.g([_.T({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Xw);
_.F(Xw,"ytd-engagement-panel-title-header-renderer",function(){if(waJ!==void 0)return waJ;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return waJ=u},{mode:1});var Fau;var mV=function(){return _.Q.apply(this,arguments)||this};
_.c(mV,_.Q);mV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],mV.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],mV.prototype,"data",void 0);_.g([_.T({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],mV);
_.F(mV,"ytd-macro-markers-info-item-renderer",function(){if(Fau!==void 0)return Fau;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Fau=u},{mode:1});var V25;var kwS=function(u,K,l,D,d,C){_.TZ.call(this);var W=this;this.JSC$22439_containerElement=u;this.hostElement=K;this.supportedSyncItems=l;this.syncEntityKey=D;this.options=d;this.renderLazyListItems=C;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;g0z(this);NNS(this);this.JSC$22439_scrollAnimation=new _.KL(function(M){u.scrollTop=M});
_.eb(this,this.JSC$22439_scrollAnimation);this.addOnDisposeCallback(function(){W.exitBrowsingMode(!1);W.activeItem&&W.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.c(kwS,_.TZ);var g0z=function(u){var K=_.iF(_.GB().resolve(_.lf),function(l){return l.entities.markersEngagementPanelSyncEntity||{}},function(l,D){var d;
l[u.syncEntityKey]!==D[u.syncEntityKey]&&((d=l[u.syncEntityKey])==null?void 0:d.activeItemIndex)!==void 0&&u.updatePanelActiveItem(l[u.syncEntityKey].activeItemIndex)});
u.unsubscribeFromTimedMarkersListSyncEntity=K;u.addOnDisposeCallback(K);Zsb(u)},Zsb=function(u){var K=_.GB().resolve(_.lf);
K=_.MCh(K.getState(),u.syncEntityKey);(K==null?void 0:K.activeItemIndex)!==void 0&&(K=u.getItemByIndex(K.activeItemIndex))&&u.setActiveItem(K)},NNS=function(u){var K=new _.MC(u.onScroll,50,u);
_.eb(u,K);var l=function(){K.fire()};
u.JSC$22439_containerElement.addEventListener("scroll",l);u.addOnDisposeCallback(function(){u.JSC$22439_containerElement.removeEventListener("scroll",l)})};
_.I=kwS.prototype;
_.I.updatePanelActiveItem=function(u){var K=this.getItemByIndex(u);if(K){if(this.setActiveItem(K),this.contentVisible)if(this.browsingMode){var l;((l=this.options)==null?void 0:l.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(u=YB9(this),K.offsetTop<this.JSC$22439_containerElement.clientHeight+this.JSC$22439_containerElement.scrollTop&&u&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));ARu(this)}else this.scrollToItem(K)}else _.hV(new _.wv("Could not find "+this.supportedSyncItems+
" sync child to set active.",u,this.JSC$22439_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.I.getItemByIndex=function(u){var K;(K=this.renderLazyListItems)==null||K.call(this,u);K=this.JSC$22439_containerElement.querySelectorAll(this.supportedSyncItems);if(K.length>u)return K[u]};
_.I.setActiveItem=function(u){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));u.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=u};
_.I.scrollToItem=function(u){u=this.getScrollPositionForItem(u);this.JSC$22439_containerElement.scrollTop!==u&&this.JSC$22439_scrollAnimation.start(this.JSC$22439_containerElement.scrollTop,u,300)};
_.I.getScrollPositionForItem=function(u){if(this.JSC$22439_containerElement.querySelectorAll(this.supportedSyncItems)[0]===u)return 0;var K,l=((K=this.options)==null?0:K.percentOffset)?this.JSC$22439_containerElement.clientHeight*this.options.percentOffset:0;u=_.Ey(u).y+this.JSC$22439_containerElement.scrollTop-(_.Ey(this.JSC$22439_containerElement).y+l);return Math.max(0,Math.min(u,this.JSC$22439_containerElement.scrollHeight-this.JSC$22439_containerElement.offsetHeight))};
_.I.onScroll=function(){this.activeItemBelowSyncPosition=YB9(this);if(this.activeItem&&!this.JSC$22439_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22439_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var u;switch((u=this.options)==null?void 0:u.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!XaJ(this));ARu(this);break;default:this.enterBrowsingMode(!0)}}};
_.I.enterBrowsingMode=function(u){var K=this,l,D;return _.H(function(d){if(d.nextAddress==1){if(K.browsingMode)return d.return();K.browsingMode=!0;u&&K.hostElement.classList.add("browsing-mode");K.playerExitBrowsingModeListener=function(){K.exitBrowsingMode(!1)};
return d.yield(_.UK(),2)}l=d.yieldResult;(D=l)==null||D.addEventListener("SEEK_TO",K.playerExitBrowsingModeListener);_.TG(d)})};
_.I.exitBrowsingMode=function(u){u=u===void 0?!0:u;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),u&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.I.removePlayerSeekListener=function(){var u=this,K,l;return _.H(function(D){if(D.nextAddress==1)return u.playerExitBrowsingModeListener?D.yield(_.UK(),3):D.jumpTo(0);K=D.yieldResult;(l=K)==null||l.removeEventListener("SEEK_TO",u.playerExitBrowsingModeListener);u.playerExitBrowsingModeListener=void 0;_.TG(D)})};
var ARu=function(u){var K;((K=u.options)==null?void 0:K.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(XaJ(u)?u.hostElement.classList.remove("browsing-mode"):u.activeItem&&u.hostElement.classList.add("browsing-mode"))},YB9=function(u){if(!u.activeItem)return!1;
var K,l=((K=u.options)==null?0:K.percentOffset)?u.JSC$22439_containerElement.clientHeight*u.options.percentOffset:0;return u.activeItem.offsetTop>=u.JSC$22439_containerElement.scrollTop+l},XaJ=function(u){if(!u.activeItem)return!1;
var K=u.activeItem.offsetTop+14<=u.JSC$22439_containerElement.scrollTop+u.JSC$22439_containerElement.clientHeight;return u.activeItem.offsetTop+u.activeItem.clientHeight-14>=u.JSC$22439_containerElement.scrollTop&&K};
kwS.prototype.panelContentVisibleChanged=function(u){(this.contentVisible=u)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var mS9=function(u,K){u.syncEntityKey=K;var l;(l=u.unsubscribeFromTimedMarkersListSyncEntity)==null||l.call(u);g0z(u)},hwS=function(u,K){u.options=K};var hz=function(){var u=_.Q.apply(this,arguments)||this;u.browsingMode=!1;u.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return u};
_.c(hz,_.Q);_.I=hz.prototype;_.I.activeItemChanged=function(){if(!_.S("synced_panel_scrolling_controller")){var u;((u=this.syncEntity)==null?void 0:u.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.I.created=function(){var u=this;_.S("synced_panel_scrolling_controller")||(this.JSC$22443_scrollAnimation=new _.KL(function(K){u.contents.scrollTop=K}),this.boundExitBrowsingMode=function(){u.exitBrowsingMode(!1)})};
_.I.detached=function(){if(_.S("synced_panel_scrolling_controller")){var u;(u=this.scrollController)==null||u.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.I.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"}}}};
_.I.dataChanged=function(){var u=this;_.S("synced_panel_scrolling_controller")?_.W_(this,function(){if(u.scrollController){var K;(K=u.scrollController)==null||K.exitBrowsingMode(!1);var l,D,d;(D=u.scrollController)==null||mS9(D,(d=(l=u.data)==null?void 0:l.syncModelEntityKey)!=null?d:"default-macro-markers-list-renderer-entity-key");var C,W,M;(M=u.scrollController)==null||hwS(M,{percentOffset:(C=u.data)==null?void 0:C.selectedItemAlignmentPercentOffset,floatingPillType:(W=u.data)==null?void 0:W.floatingPillType})}else{var q,
v,G,t;u.scrollController=new kwS(u.contents,u.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(t=(q=u.data)==null?void 0:q.syncModelEntityKey)!=null?t:"default-macro-markers-list-renderer-entity-key",{percentOffset:(v=u.data)==null?void 0:v.selectedItemAlignmentPercentOffset,floatingPillType:(G=u.data)==null?void 0:G.floatingPillType},function(x){u.renderLazyListItems(x)})}u.scrollController.panelContentVisibleChanged(!!u.panelContentVisible)}):this.exitBrowsingMode()};
_.I.computeButtonShape=function(){var u=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){u.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.I.computeSyncEnabled=function(u){return!(u==null||!u.syncButtonLabel)};
_.I.renderLazyListItems=function(u){for(var K=this.contents.children,l=0,D=0;D<K.length;D++){var d=void 0;(d=K[D].ytLazyListBehavior)==null||d.fillRemainingListItems();var C=void 0,W=void 0;d=_.b((C=this.data)==null?void 0:(W=C.contents)==null?void 0:W[D],_.QPa);W=C=void 0;if((C=d)==null?0:(W=C.contents)==null?0:W.length)l+=d.contents.length;if(l>=u)break}};
_.I.getItemByIndex=function(u){this.renderLazyListItems(u);var K=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(K.length>u)return K[u]};
_.I.setActiveItem=function(u){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);u.active!==void 0&&(u.active=!0);this.currentActiveItem=u};
_.I.handleSetActivePanelItemAction=function(u){if((u=_.b(u,Az_))&&this.panelTargetId===u.panelTargetId){u=u.itemIndex;if(_.S("synced_panel_scrolling_controller")){var K,l;var D=(l=(K=this.data)==null?void 0:K.syncModelEntityKey)!=null?l:"default-macro-markers-list-renderer-entity-key"}else{var d;D=(d=this.data)==null?void 0:d.syncModelEntityKey}if(D){var C;((C=this.syncEntity)==null?void 0:C.activeItemIndex)!==u&&this.ytdReduxBehavior.dispatch(_.TT("markersEngagementPanelSyncEntity",D,{key:D,activeItemIndex:u}))}else this.updatePanelActiveItem(u)}};
_.I.updatePanelActiveItem=function(u){var K=this.getItemByIndex(u);K?(this.setActiveItem(K),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(K)):_.hV(new _.wv("Could not find ytd-macro-markers-list-renderer sync child to set active.",u,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.I.scrollToItem=function(u){u=this.getScrollPositionForItem(u);this.contents.scrollTop!==u&&this.JSC$22443_scrollAnimation.start(this.contents.scrollTop,u,300)};
_.I.getScrollPositionForItem=function(u){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===u)return 0;u=_.Ey(u).y+this.contents.scrollTop-_.Ey(this.contents).y-this.getStickyHeaderHeight(u);return Math.min(u,this.contents.scrollHeight-this.contents.offsetHeight)};
_.I.getStickyHeaderHeight=function(u){if(u.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var K,l,D;return(D=(K=u.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(l=K.header)==null?void 0:l.offsetHeight)!=null?D:0}return 0};
_.I.onScroll=function(){_.S("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22443_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.I.enterBrowsingMode=function(){var u=this;return _.H(function(K){if(K.nextAddress==1){if(u.browsingMode)return K.return();u.browsingMode=!0;return K.yield(_.SU().getPlayerPromise(),2)}u.player=K.yieldResult;u.player.addEventListener("SEEK_TO",u.boundExitBrowsingMode);_.TG(K)})};
_.I.exitBrowsingMode=function(u){this.browsingMode&&(this.browsingMode=!1,(u===void 0||u)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.I.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.I.onSyncClick=function(){if(_.S("synced_panel_scrolling_controller")){var u;(u=this.scrollController)==null||u.exitBrowsingMode()}else this.exitBrowsingMode()};
_.I.panelContentVisibleChanged=function(){if(_.S("synced_panel_scrolling_controller")){var u;(u=this.scrollController)==null||u.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
hz.prototype.panelContentVisibleChanged=hz.prototype.panelContentVisibleChanged;hz.prototype.dataChanged=hz.prototype.dataChanged;hz.prototype.activeItemChanged=hz.prototype.activeItemChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],hz.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],hz.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],hz.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],hz.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],hz.prototype,"data",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],hz.prototype,"useCustomColors",void 0);_.g([_.U({computed:"computeSyncEnabled(data)"}),_.N("design:type",Boolean)],hz.prototype,"syncEnabled",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],hz.prototype,"panelTargetId",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],hz.prototype,"panelContentVisible",void 0);_.g([_.BF("#contents"),_.N("design:type",HTMLElement)],hz.prototype,"contents",void 0);_.g([_.BF("#sync-container"),_.N("design:type",HTMLElement)],hz.prototype,"syncContainer",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],hz.prototype,"browsingMode",void 0);
_.g([_.U({selectorArgs:["data.syncModelEntityKey"],selector:_.MCh}),_.N("design:type",Object)],hz.prototype,"syncEntity",void 0);_.g([_.JU("syncEntity.activeItemIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hz.prototype,"activeItemChanged",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hz.prototype,"dataChanged",null);
_.g([_.JU("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hz.prototype,"panelContentVisibleChanged",null);_.g([_.T({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],hz);
_.F(hz,"ytd-macro-markers-list-renderer",function(){if(V25!==void 0)return V25;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return V25=u},{mode:1});var E0z;var EI=function(){return _.Q.apply(this,arguments)||this};
_.c(EI,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],EI.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],EI.prototype,"data",void 0);_.g([_.T({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],EI);
_.F(EI,"ytd-error-corrections-section-item-renderer",function(){if(E0z!==void 0)return E0z;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return E0z=u},{mode:1});var La5;var LO=function(){return _.Q.apply(this,arguments)||this};
_.c(LO,_.Q);LO.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],LO.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],LO.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],LO.prototype,"data",void 0);_.g([_.T({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],LO);
_.F(LO,"ytd-error-corrections-section-renderer",function(){if(La5!==void 0)return La5;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return La5=u},{mode:1});var uIz;var u$=function(){return _.Q.apply(this,arguments)||this};
_.c(u$,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],u$.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],u$.prototype,"data",void 0);_.g([_.T({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],u$);
_.F(u$,"ytd-topic-link-renderer",function(){if(uIz!==void 0)return uIz;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return uIz=u},{mode:1});var K_u;var K8=function(){var u=_.Q.apply(this,arguments)||this;u.modern=_.S("kevlar_modern_sd_v2");u.modernLockupV2=_.S("modernize_structured_description_playlist_lockups_v2");u.modernTypography=_.S("web_modern_typography");return u};
_.c(K8,_.Q);K8.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"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],K8.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],K8.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],K8.prototype,"modern",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],K8.prototype,"modernLockupV2",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],K8.prototype,"modernTypography",void 0);_.g([_.T({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],K8);
_.F(K8,"ytd-video-description-course-section-renderer",function(){if(K_u!==void 0)return K_u;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return K_u=u},{mode:1});var lBb;var l$=function(){var u=_.Q.apply(this,arguments)||this;u.modern=_.S("kevlar_modern_sd_v2");u.modernTypography=_.S("web_modern_typography");return u};
_.c(l$,_.Q);l$.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"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],l$.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],l$.prototype,"modern",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],l$.prototype,"modernTypography",void 0);
_.g([_.T({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],l$);
_.F(l$,"ytd-video-description-files-section-renderer",function(){if(lBb!==void 0)return lBb;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return lBb=u},{mode:1});var Dpg;var DE=function(){return _.Q.apply(this,arguments)||this};
_.c(DE,_.Q);DE.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"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],DE.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],DE.prototype,"data",void 0);_.g([_.T({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],DE);
_.F(DE,"ytd-video-description-gaming-section-renderer",function(){if(Dpg!==void 0)return Dpg;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Dpg=u},{mode:1});var dpS;var d7=function(){var u=_.Q.apply(this,arguments)||this;u.isExpanded=!1;return u};
_.c(d7,_.Q);d7.prototype.computeHasDefaultMetadataEndpoint=function(u){var K;u=u==null?void 0:(K=u.defaultMetadata)==null?void 0:K.runs;return!(!u||u.length!==1||!u[0].navigationEndpoint)};
d7.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.MN.Object.defineProperties(d7.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],d7.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],d7.prototype,"isExpanded",void 0);_.g([_.U({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],d7.prototype,"hasDefaultMetadataEndpoint",void 0);
_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],d7.prototype,"isExpandable",null);_.g([_.R("data","isExpandable","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],d7.prototype,"showExpandedMetadata",null);_.g([_.T({is:"ytd-info-row-renderer",disableElementRegistration:!0})],d7);
_.F(d7,"ytd-info-row-renderer",function(){if(dpS!==void 0)return dpS;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return dpS=u},{mode:1});var CGg;var C8=function(){var u=_.Q.apply(this,arguments)||this;u.currentIndex=0;u.supportComponentResize=!0;u.modern=_.S("kevlar_modern_sd_v2");u.JSC$22469_lastScrollContainerWidth=NaN;return u};
_.c(C8,_.Q);_.I=C8.prototype;
_.I.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"}}}};
_.I.getItemsPath=function(){return"videoLockups"};
_.I.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.I.onIronResize=function(){this.updateVideoLockupStyles()};
_.I.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.I.updateVideoLockupStyles=function(){var u;this.JSC$22469_scrollContainer!==void 0&&(u=this.videoLockups)!=null&&u.length&&(u=this.JSC$22469_scrollContainer.clientWidth,u!==this.JSC$22469_lastScrollContainerWidth&&(this.JSC$22469_lastScrollContainerWidth=u,_.e8(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(u*.8,415)+"px"}),_.xs(this.hostElement,"iron-resize")))};
_.MN.Object.defineProperties(C8.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var u=[],K;if((K=this.data)==null||!K.carouselLockups)return u;K=_.y(this.data.carouselLockups);for(var l=K.next();!l.done;l=K.next()){l=l.value;var D=void 0;((D=_.b(l,O8i))==null?0:D.videoLockup)&&u.push(_.b(l,O8i).videoLockup)}return u}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.videoLockups)==null||!u.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var u=[],K;if((K=this.data)==null||!K.carouselLockups)return u;var l;return(l=_.b(this.data.carouselLockups[this.scrollCount],O8i))==null?void 0:l.infoRows}}});
C8.prototype.dataChanged=C8.prototype.dataChanged;C8.prototype.onIronResize=C8.prototype.onIronResize;C8.prototype.hiddenChanged=C8.prototype.hiddenChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],C8.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],C8.prototype,"componentBehavior",void 0);_.g([_.e(_.S0.YtdHorizontalListBehavior),_.N("design:type",Object)],C8.prototype,"ytdHorizontalListBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],C8.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],C8.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],C8.prototype,"inlineStructuredDescription",void 0);_.g([_.U({value:2}),_.N("design:type",Number)],C8.prototype,"initialCount",void 0);_.g([_.U(),_.N("design:type",Object)],C8.prototype,"currentIndex",void 0);
_.g([_.U(),_.N("design:type",Number)],C8.prototype,"scrollCount",void 0);_.g([_.U(),_.N("design:type",Object)],C8.prototype,"supportComponentResize",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],C8.prototype,"contentHidden",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],C8.prototype,"modern",void 0);_.g([_.BF("#scroll-container"),_.N("design:type",HTMLDivElement)],C8.prototype,"JSC$22469_scrollContainer",void 0);
_.g([_.JU("contentHidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C8.prototype,"hiddenChanged",null);_.g([_.R("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],C8.prototype,"videoLockups",null);_.g([_.R("videoLockups"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],C8.prototype,"hasVideoLockups",null);
_.g([_.PF("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C8.prototype,"onIronResize",null);_.g([_.R("data","scrollCount"),_.N("design:type",Object),_.N("design:paramtypes",[])],C8.prototype,"infoRows",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C8.prototype,"dataChanged",null);_.g([_.T({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],C8);
_.F(C8,"ytd-video-description-music-section-renderer",function(){if(CGg!==void 0)return CGg;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return CGg=u},{mode:_.zW("kevlar_poly_si_batch_j081")?1:2});var IB9;var Ip=function(){var u=_.Q.apply(this,arguments)||this;u.modern=_.S("kevlar_modern_sd_v2");u.modernTypography=_.S("web_modern_typography");return u};
_.c(Ip,_.Q);Ip.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.g([_.U({}),_.N("design:type",Object)],Ip.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ip.prototype,"modern",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ip.prototype,"modernTypography",void 0);
_.g([_.T({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Ip);
_.F(Ip,"ytd-video-description-transcript-section-renderer",function(){if(IB9!==void 0)return IB9;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return IB9=u},{mode:1});var yEu;_.SX(_.rf(function(u){var K=_.ie(_.o7q,function(){return u.data().firstProviderLinkStatusEntityKey}),l=_.ie(_.o7q,function(){return u.data().secondProviderLinkStatusEntityKey}),D=function(){var d,C;
return((d=K())==null?void 0:d.linked)||((C=l())==null?void 0:C.linked)};
return _.n("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.n(_.qC,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return u.data().sectionTitle}}),_.n(_.qC,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return D()?u.data().connectedMessage:u.data().notConnectedMessage}}),_.n(_.r,{cond:D,
then:function(){return _.n(_.mo,{data:function(){return u.data().connectedButton}},{buttonViewModel:function(d){return _.n(_.P2,{data:d.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.n(_.r,{cond:function(){return!D()},
then:function(){return _.n(_.mo,{data:function(){return u.data().notConnectedButton}},{buttonViewModel:function(d){return _.n(_.P2,{data:d.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"rj"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.M6}});_.SX(_.rf(function(u){var K=u.data;return _.n("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.n("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.n(_.qC,{text:function(){return K().sectionTitle}})),_.n("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.n(_.qC,{text:function(){return K().bodyHeader}})),_.n("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.n(_.qC,{text:function(){return K().bodyText}})),_.n(_.r,
{cond:function(){return K().attributionText},
then:function(){return _.n("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.n(_.qC,{text:function(){return K().attributionText}}))}}))},"sj"),"how-this-was-made-section-view-model",{props:{data:_.M6}});_.SX(_.rf(function(u){return _.n("yt-video-description-youchat-section-view-model",{class:_.JB("ytVideoDescriptionYouchatSectionViewModelHost")},_.n("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.n(_.qC,{text:function(){return u.data().sectionTitle}})),_.n("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.n(_.qC,{text:function(){return u.data().subHeaderText}})),_.n("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.n(_.P2,{data:function(){return _.b(u.data().primaryButton,
_.kY)}})))},"tj"),"yt-video-description-youchat-section-view-model",{props:{data:_.M6}});var yk=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return u};
_.c(yk,_.Q);_.I=yk.prototype;
_.I.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}}}}}};
_.I.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.I.dataChanged=function(){var u,K;this.hasDescriptionOnly=!(((u=this.data)==null?void 0:(K=u.items)==null?void 0:K.length)!==1||!_.b(this.data.items[0],jq))};
_.I.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.I.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.I.autoFocusDescription=function(){var u;((u=_.GB().resolve(_.vv(_.zF)))==null?0:u.isKeyBoardInUse())&&this.description&&_.Hu(this.description)};
_.I.resize=function(){if(_.S("kevlar_disable_sd_resize"))this.JSC$22477_cardList&&_.xs(this.JSC$22477_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.xs(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.xs(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.I.scrollToSection=function(u){if(u=this.getSectionElement(u))_.Sy(this.hostElement,"yt-scroll-to-watch-element",[u]),u.focus()};
_.I.getSectionElement=function(u){switch(u){case "infocards-item-section":var K;return(K=this.infocardsSection)!=null?K:null;case "transcript-item-section":var l;return(l=this.transcriptSection)!=null?l:null;case "how-this-was-made-section-item-section":var D;return(D=this.howThisWasMadeSection)!=null?D:null;case "files-item-section":var d;return(d=this.filesSection)!=null?d:null;default:return null}};
_.I.handleSetActiveItemAction=function(u){var K=_.b(u,Az_),l=K&&(K==null?void 0:K.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22477_cardList;if(K&&l){u=this.currentActiveChapter;var D=this.currentActiveProblem;K=l==null?void 0:l.getItemByIndex(K.itemIndex);var d=l=!0;K&&(K.active=!0,K.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(l=u!==K,d=!1,this.currentActiveChapter=K):(K==null?void 0:K.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(l=!1,d=D!==K,this.currentActiveProblem=K));u&&l&&(u.active=!1);D&&d&&(D.active=!1)}};
_.MN.Object.defineProperties(yk.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.S("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
yk.prototype.onYtExpanderMoreTapped=yk.prototype.onYtExpanderMoreTapped;yk.prototype.onHiddenChanged=yk.prototype.onHiddenChanged;yk.prototype.dataChanged=yk.prototype.dataChanged;yk.prototype.panelContentVisibleChanged=yk.prototype.panelContentVisibleChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],yk.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Ae),_.N("design:type",Object)],yk.prototype,"ironResizableBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],yk.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],yk.prototype,"panelContentVisible",void 0);_.g([_.U(),_.N("design:type",Boolean)],yk.prototype,"hasDescriptionOnly",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],yk.prototype,"inlineStructuredDescription",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],yk.prototype,"hidden",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],yk.prototype,"shortsPanel",void 0);_.g([_.U(),_.N("design:type",Object)],yk.prototype,"videoSummary",void 0);_.g([_.U(),_.N("design:type",Object)],yk.prototype,"merchShelf",void 0);
_.g([_.R("videoSummary"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yk.prototype,"showVideoSummary",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],yk.prototype,"engagementPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],yk.prototype,"watchWhileSdp",void 0);_.g([_.BF("ytd-expandable-video-description-body-renderer"),_.N("design:type",Object)],yk.prototype,"description",void 0);
_.g([_.BF("ytd-horizontal-card-list-renderer"),_.N("design:type",Object)],yk.prototype,"JSC$22477_cardList",void 0);_.g([_.BF("ytd-horizontal-card-list-renderer[center-items]"),_.N("design:type",Object)],yk.prototype,"problemWalkthroughCardList",void 0);_.g([_.BF("ytd-shelf-renderer"),_.N("design:type",Object)],yk.prototype,"shelfSection",void 0);_.g([_.BF("ytd-video-description-music-section-renderer"),_.N("design:type",Object)],yk.prototype,"musicMetadataSection",void 0);
_.g([_.BF("ytd-video-description-infocards-section-renderer"),_.N("design:type",Object)],yk.prototype,"infocardsSection",void 0);_.g([_.BF("ytd-video-description-transcript-section-renderer"),_.N("design:type",Object)],yk.prototype,"transcriptSection",void 0);_.g([_.BF("how-this-was-made-section-view-model"),_.N("design:type",Object)],yk.prototype,"howThisWasMadeSection",void 0);_.g([_.BF("ytd-video-description-files-section-renderer"),_.N("design:type",Object)],yk.prototype,"filesSection",void 0);
_.g([_.JU("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yk.prototype,"panelContentVisibleChanged",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yk.prototype,"dataChanged",null);_.g([_.JU("hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yk.prototype,"onHiddenChanged",null);
_.g([_.PF("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yk.prototype,"onYtExpanderMoreTapped",null);_.g([_.T({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],yk);
_.F(yk,"ytd-structured-description-content-renderer",function(){if(yEu!==void 0)return yEu;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return yEu=u},{mode:2});var s2S;var opF;var sw=function(){return _.Q.apply(this,arguments)||this};
_.c(sw,_.Q);sw.prototype.computeAriaLabel=function(u){var K,l;return(u==null?void 0:(K=u.accessibility)==null?void 0:(l=K.accessibilityData)==null?void 0:l.label)||_.QQ("LOADING",void 0,"Loading")};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],sw.prototype,"data",void 0);_.g([_.U({computed:"computeAriaLabel(data)"}),_.N("design:type",String)],sw.prototype,"ariaLabel",void 0);_.g([_.E9({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],sw);
_.F(sw,"yt-content-loading-renderer",function(){if(opF===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;s2S===void 0&&(s2S=document.createElement("template"));var D=s2S;l.call(K,D.content.cloneNode(!0),u.content.firstChild);opF=u}u=opF;return u},{mode:_.zW("kevlar_poly_si_batch_j043")?1:2});_.SX(_.rf(function(u){var K=_.y(_.On(!1,void 0,"QkPiwb")),l=K.next().value,D=K.next().value;K=_.y(_.On(!1,void 0,"AFECB"));var d=K.next().value,C=K.next().value;_.ZY(function(){var q=_.b(u.data().collaboratePlaylistCollaborationSetting,qw_);q&&D(q.switchedOnByDefault);var v=_.b(u.data().allowNewCollaboratorsPlaylistCollaborationSetting,qw_);v&&C(v.switchedOnByDefault);if(!q&&!v||!q&&u.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")D(!0),C(!0)});
var W=function(q){D(q);C(q);var v=u.data().playlistCollaborationEntityKey||"";var G=_.Hb().getState();(G=_.eZ(G.entities,"playlistCollaborationEntity",v))&&(G==null?void 0:G.isCollaborative)===q||_.Hb().dispatch(_.TT("playlistCollaborationEntity",v,Object.assign({},G,{isCollaborative:q})))},M=function(q){C(q)};
return _.n("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.n("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.n(_.mo,{data:function(){return u.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(q){return _.n(_.PUR,{data:q.data,
onSwitch:W})}})),_.n(_.r,{cond:l,
then:function(){return _.n(_.G1,null,_.n("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.n(_.mo,{data:function(){return u.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(q){return _.n(_.PUR,{data:q.data,
onSwitch:M,overrideDisabled:!1})}})),_.n(_.r,{cond:d,
then:function(){return _.n("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.n(_.mo,{data:function(){return u.data().copyLinkButton}},{buttonViewModel:_.P2}))}}),_.n("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.n(_.mo,{data:function(){return u.data().playlistCollaborators}},{contentListItemViewModel:_.zLE})))}}))},"uj"),"playlist-collaboration-view-model",{props:{data:_.M6}});var W_Q=_.rf(function(u){var K=u.data;var l=u.customCommandResolver;return _.n(_.G1,null,_.n("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.n(_.mo,{data:function(){return K().adAvatar}},{adAvatarViewModel:function(D){return _.n(_.qzH,{data:D.data,
customCommandResolver:l})}})),_.n("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.n(_.r,{cond:function(){return K().headline},
then:function(D){return _.n(_.qC,{text:D,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.n("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.n(_.mo,{data:function(){return K().adBadge}},{adBadgeViewModel:function(D){return _.n(_.c6,{data:D.data,
hasDot:function(){return K().primaryDetailsLine!==void 0},
customCommandResolver:l,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.n(_.mo,{data:function(){return K().primaryDetailsLine}},{adDetailsLineViewModel:function(D){return _.n(_.a4,{data:D.data,
customCommandResolver:l,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"vj"),H_F=_.rf(function(u){var K=u.data;
var l=u.customCommandResolver;return _.n("ad-avatar-lockup-view-model",{class:function(){var D;return((D=K().interaction)==null?0:D.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.v1(_.r_({visibilityCallback:function(D){var d,C=(d=K().interaction)==null?void 0:d.onFirstVisible;D&&C&&_.IT(C)},
showOption:_.v6}),_.sL(function(){return K().interaction},l)),
"aria-label":function(){var D,d;return(D=K().interaction)==null?void 0:(d=D.accessibility)==null?void 0:d.label}},_.n(_.VI,null,_.n(_.ic,{when:function(){return K().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.n(W_Q,{data:K,
customCommandResolver:l})}),_.n(_.Fp,null,function(){return null})))},"wj");_.SX(_.rf(function(u){var K=u.data;var l=u.panelContentVisibility;u=_.r_({visibilityCallback:function(C){var W,M=(W=K().interaction)==null?void 0:W.onFirstVisible;C&&M&&_.IT(M)},
showOption:_.v6});var D=_.sL(function(){return K().interaction},odE);
_.Ag(function(){var C,W;if(W=_.lZ("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var M;W=(M=W())==null?void 0:M.onLayoutVisibleCallback}else W=null;(C=W)==null||C()});
var d=function(){return l()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.n("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.v1(u,D)},_.n("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.n("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.n(_.r,{cond:_.SOy("(min-width: "+((0,_.LY)()+_.pq)+"px) or (max-width: 600px)"),then:function(){return _.n(_.mo,{data:function(){return K().adImage}},{adImageViewModel:function(C){return _.n(_.pG,{data:C.data,
targetHeight:80,customCommandResolver:odE})}})}})),_.n("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.n("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.n(_.mo,{data:function(){return K().adAvatarLockup}},{adAvatarLockupViewModel:function(C){return _.n(H_F,{data:C.data,
customCommandResolver:odE})}})),_.n(_.r,{cond:d,
then:function(){return _.n(_.mo,{data:function(){return K().adButton}},{adButtonViewModel:function(C){return _.n(_.tw,{data:C.data,
customCommandResolver:odE})}})},
else:function(){return _.n(_.mo,{data:function(){return K().menu}},{buttonViewModel:_.P2})}}),_.n("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.n(_.mo,{data:function(){var C=_.b(K().toggleButton,_.Za);
return{toggleButtonViewModel:Object.assign({},C,{isTogglingDisabled:!0,isToggled:d()})}}},{toggleButtonViewModel:_.YK})))))},"xj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.M6,
panelContentVisibility:_.M6}});_.SX(_.rf(function(u){var K=function(){return _.b(u.data().inputComposerViewModel,$WB)},l=function(){var a;
return((a=K())==null?void 0:a.youchatPendingResponseEntityKey)||""},D=_.ie(_.Y0k,l),d=function(){var a;
return!((a=D())==null||!a.isPendingResponse)},C=_.y(_.On(!0,void 0,"DR0q1d")),W=C.next().value,M=C.next().value,q=function(){return K().sectionTargetId||"youchat_messages_section"};
C=_.W4("yt-chat-input-view-model");var v=_.o9("textarea"),G=_.ie(EZV,"chat_input_view_model_state"),t=L4E(),x=function(){var a;return!((a=G())==null||!a.value)};
_.ZY(function(){var a;if(!x()&&((a=K())==null?0:a.welcomeFeatureContinuation)){a={continuationCommand:{token:K().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var f,B=String(Math.floor(((f=_.f1())==null?void 0:f.getCurrentTime())||0)*1E3);f={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:B}};_.D$(a,{form:{formData:f}});t(!0)}var p=q(),V;(V=_.GB().resolve(_.vv(_.V1)))==null||V.addEventListener("yt-navigate-start",function(){_.YY.remove(p);t(!1)},
{once:!0})});
var O=function(){var a=v.value.value;v.value.value="";WVH(v.value);var f,B=((f=K())==null?void 0:f.enableGradientColorBg)||!1;f=HOH(q(),a,B);_.D$(f);var p=_.AhV(l()),V;_.IT(((V=K())==null?void 0:V.onSubmitCommand)||{});p(!0);var m;V=String(Math.floor(((m=_.f1())==null?void 0:m.getCurrentTime())||0)*1E3);var Z;m={continuationCommand:{token:(Z=K())==null?void 0:Z.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};a={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:a,
playerOffsetMs:V}};_.D$(m,{form:{formData:a},commandController:{onSuccess:function(){p(!1)},
onServerError:function(){var A=q();_.D$({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:A}}]}}});p(!1)}}})};
return _.n("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:C},_.n("div",{class:"chatInputViewModelChatInputWrapper"},_.n("form",{class:"chatInputViewModelChatInputForm"},_.n("textarea",{class:"chatInputViewModelChatInput",el:v,"on:keydown":_.p4(function(a){var f=d()||!1;WVH(v.value);f||a.key!=="Enter"||a.shiftKey||(a.preventDefault(),O());return!1}),
"on:keyup":_.p4(function(){M(v.value.value.length===0);return!1}),
placeholder:function(){var a,f;var B=_.b((f=K())==null?void 0:f.inputFormField,kl6);return B==null?void 0:(a=B.contentProperties)==null?void 0:a.placeholderText},
rows:1}),_.n(_.P2,{data:function(){return _.b(u.data().sendButton,_.kY)},
onClick:function(a){a.preventDefault();O();M(v.value.value.length===0)},
buttonOverrides:function(){return{disabled:W()||d()}}})),_.n(_.qC,{className:"chatInputViewModelChatDisclaimer",
text:function(){var a;return(a=_.b(u.data().disclaimer,_.PEs))==null?void 0:a.text}})))},"yj"),"yt-chat-input-view-model",{props:{data:_.M6}});var Mku=["engagement-panel-clip-create","engagement-panel-clip-view"],qou=0,op=function(){var u=_.Q.apply(this,arguments)||this;var K;u.headerData=(K=u.data)==null?void 0:K.header;u.darkerPanels=_.S("web_watch_darker_panels");u.matchContentTheme=_.S("web_watch_panel_content_match_theme");u.disableAutoFill=!1;u.isFullscreen=!1;u.isTheaterMode=!1;u.modernPanels=_.S("kevlar_watch_modern_panels");u.liveChatReplyPanel=!1;u.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");u.disableBackdropFilter=
_.S("web_disable_backdrop_filter");u.trackEngagementPanelVisibility=_.S("web_watch_track_engagement_panel_visibility");u.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 u};
_.c(op,_.Q);_.I=op.prototype;
_.I.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(u){var K;return(u==null?void 0:(K=u.webComponentHint)==null?void 0:K.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"}}}};
_.I.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var u;if((u=this.hostElement.parentElement)==null?0:u.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.I.detached=function(){this.updateTheaterDisablement()};
_.I.showPanel=function(){var u=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.YL.addJob(function(){u.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.I.maybeScrollToItemSection=function(u){var K=this,l,D=u==null?void 0:(l=u.sectionListEngagementPanelExtras)==null?void 0:l.scrollToItemSectionIdentifier;D&&_.YL.addJob(function(){var d;(d=K.sectionListRendererElement)==null||d.scrollToItemSection(D)},8)};
_.I.hidePanel=function(){var u=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.YL.addJob(function(){u.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.I.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.I.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.I.updatePanel=function(u,K,l,D){var d=this;if((u=u==null?void 0:u.engagementPanelSectionListRenderer)||D){if(u){D=u.header;var C=u.content,W=u.footer;(u=u.targetId)&&this.set("data.targetId",u);D&&this.set("data.header",D);C&&this.set("data.content",C);W&&this.set("data.footer",W)}else D&&(u=D.content,C=D.secondaryHeaderContent,(D=D.targetId)&&this.set("data.targetId",D),u&&this.set("data.content",u),C&&(this.secondaryHeaderData=C));this.updateChildVisibilityProperties();if(K){var M;_.S("kevlar_update_panel_focus_scroll_killswitch")||
(M={preventScroll:!0});this.focus(M)}_.W_(this,function(){_.xs(d.hostElement,"yt-refit");d.maybeScrollToItemSection(l)})}};
_.I.computeHeaderData=function(){var u,K=(0,_.k$.unsafeClone)((u=this.data)==null?void 0:u.header);if(K){u=new _.r3(Object.keys(K)[0]);var l=_.b(K,u),D=_.b(this.secondaryHeaderData,u);D&&_.hl(K,u,Object.assign({},D,l))}return K};
_.I.getReloadContinuation=function(){var u,K,l,D=_.y(((u=this.data)==null?void 0:(K=u.content)==null?void 0:(l=K.sectionListRenderer)==null?void 0:l.continuations)||[]);for(u=D.next();!u.done;u=D.next())if(u=u.value,u.reloadContinuationData)return u.reloadContinuationData.continuation};
_.I.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var u;((u=this.data)==null?0:u.targetId)&&(u=this.contentElement.firstElementChild)&&u.setAttribute("panel-target-id",this.data.targetId)};
_.I.forwardPopupClosedToFlowRootRenderer=function(){var u=_.bi(this.hostElement).querySelector("ytd-flow-root-renderer");if(u)u.onPopupClosed()};
_.I.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var u;if(!Mku.includes((u=this.theaterDisablementPanelIdentifier)!=null?u:""))if(u=_.S("web_watch_imax_theater_mode")&&this.isTheaterMode,u=_.S("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||u,_.S("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||u){var K;this.visibility=(K=this.data)==null?void 0:K.visibility;var l;this.trackEngagementPanelVisibility&&((l=this.data)==null?void 0:l.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var D,d,C,W;this.contentEmpty=!!(((D=this.data)==null?0:(d=D.content)==null?0:d.structuredDescriptionContentRenderer)&&Object.keys((C=this.data)==null?void 0:(W=C.content)==null?void 0:
W.structuredDescriptionContentRenderer).length===0);(K=_.GB().resolve(_.gP))&&K.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.I.isTheaterModeChanged=function(){_.S("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.I.isFullscreenChanged=function(){_.S("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.I.focus=function(u){if(this.header)this.header.focus(u);else{var K;(K=_.bi(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||K.focus(u)}};
_.I.visibilityChanged=function(){if(!_.S("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var u=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",K=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",l=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",D=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d=D||!this.lastVisibility,C,W,M,q=((C=this.data)==null?void 0:(W=C.identifier)==null?void 0:
W.tag)||((M=this.data)==null?void 0:M.panelIdentifier);if(u&&d){var v;((v=this.data)==null?0:v.onShowCommands)&&_.ay(this.hostElement,this.data.onShowCommands,this.hostElement);q&&_.Mu().dispatch(_.SZ({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:q}}))}else if(K&&l){var G;((G=this.data)==null?0:G.onHideCommands)&&_.ay(this.hostElement,this.data.onHideCommands,this.hostElement);q&&_.Mu().dispatch(_.SZ({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:q}}))}u&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*qou++));_.S("kevlar_watch_focus_on_engagement_panels")&&u&&D&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.I.notifyVisibilityChanged=function(u){var K;_.bI(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,u,(K=this.data)==null?void 0:K.targetId])};
_.I.updateTheaterDisablement=function(){if(!_.S("kevlar_watch_theater_disablement_killswitch")){var u=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&Mku.includes(u)&&!_.S("watch_next_grid_ignore_disallowed_panels")){var K=_.ue(_.Mu().getState()),l=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";u!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():l?(this.originalTheaterState===void 0&&(this.originalTheaterState=K,this.theaterDisablementPanelIdentifier=
u),K&&_.Sy(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.I.clearTheaterDisablement=function(){_.Sy(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.I.updateChildVisibilityProperties=function(){this.hostElement||_.S("kevlar_panel_property_init_killswitch")||this._enableProperties();var u=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=u);var K,l=(K=this.headerElement)==null?void 0:K.firstElementChild;if(l&&!this.adHeaderImageLockupViewModel){K=u==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";l.collapsed=K;l=_.bi(l).querySelector("#visibility-button");if(!l)return;(l=l.firstElementChild)&&
l.polymerController.is==="ytd-toggle-button-renderer"&&l.polymerController.data.isToggled!==K&&l.polymerController.set("data.isToggled",K)}var D;if(K=(D=this.contentElement)==null?void 0:D.firstElementChild)if(u&&u!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")K.removeAttribute("panel-content-visible");else{K.setAttribute("panel-content-visible","");var d;(d=K.markDirty)==null||d.call(K)}};
_.I.onYtChangeEngagementPanelVisibilityAction=function(u){var K=this,l,D=(l=this.data)==null?void 0:l.targetId,d,C,W;l=((d=this.data)==null?void 0:(C=d.identifier)==null?void 0:C.tag)||((W=this.data)==null?void 0:W.panelIdentifier);var M=_.b(u,_.Bx2),q;u=D&&(M==null?void 0:M.targetId)===D||l&&(M==null?void 0:(q=M.panelIdentifier)==null?void 0:q.tag)===l;this.dialog&&u&&(M==null?void 0:M.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(D==="engagement-panel-comments-section"?_.Sy(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.Sy(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",l]));!_.S("kevlar_use_engagement_panel_management_component")&&u&&(D=M.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!D?_.YL.addJob(function(){K.visibility=M.visibility},2,this.hideDelayMs):this.visibility=M.visibility,M.visibility&&this.notifyVisibilityChanged(M.visibility))};
_.I.onYtScrollToEngagementPanelCommand=function(u){var K,l=(K=this.data)==null?void 0:K.targetId,D,d,C;K=((D=this.data)==null?void 0:(d=D.identifier)==null?void 0:d.tag)||((C=this.data)==null?void 0:C.panelIdentifier);u=_.b(u,_.A1A);var W;(l&&(u==null?void 0:u.targetId)===l||K&&(u==null?void 0:(W=u.panelIdentifier)==null?void 0:W.tag)===K)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.Sy(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.I.attachVEs=function(u){var K,l;(u==null?0:(K=u.content)==null?0:(l=K.productListRenderer)==null?0:l.trackingParams)&&_.iT().graftServerVe(u.content.productListRenderer.trackingParams);var D,d;(u==null?0:(D=u.content)==null?0:(d=D.transcriptRenderer)==null?0:d.trackingParams)&&_.iT().graftServerVe(u.content.transcriptRenderer.trackingParams)};
_.I.onYtUpdateEngagementPanelAction=function(u){var K,l=(K=this.data)==null?void 0:K.targetId;u=_.b(u,mqp);l&&(u==null?void 0:u.targetId)===l&&(this.updatePanel({engagementPanelSectionListRenderer:{header:u==null?void 0:u.header,content:u==null?void 0:u.content}},!1),this.attachVEs(u))};
_.I.onYtShowEngagementPanelScrimAction=function(u){var K,l=(K=this.data)==null?void 0:K.targetId;u=_.b(u,XXI);l&&(u==null?void 0:u.engagementPanelTargetId)===l&&(this.scrimmed=!0)};
_.I.onYtHideEngagementPanelScrimAction=function(u){var K,l=(K=this.data)==null?void 0:K.targetId;u=_.b(u,YIB);l&&(u==null?void 0:u.engagementPanelTargetId)===l&&(this.scrimmed=!1)};
_.I.getIdentifier=function(){var u,K,l;return((u=this.data)==null?void 0:u.panelIdentifier)||((K=this.data)==null?void 0:(l=K.identifier)==null?void 0:l.tag)};
_.I.getSurface=function(){var u,K;return(u=this.data)==null?void 0:(K=u.identifier)==null?void 0:K.surface};
_.MN.Object.defineProperties(op.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var u=this.getIdentifier();return u==="engagement-panel-youchat"||u==="PAyouchat"}}});
op.prototype.visibilityChanged=op.prototype.visibilityChanged;op.prototype.isFullscreenChanged=op.prototype.isFullscreenChanged;op.prototype.isTheaterModeChanged=op.prototype.isTheaterModeChanged;op.prototype.dataChanged=op.prototype.dataChanged;op.prototype.forwardPopupClosedToFlowRootRenderer=op.prototype.forwardPopupClosedToFlowRootRenderer;op.prototype.onYtRendererstamperFinished=op.prototype.onYtRendererstamperFinished;
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],op.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],op.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],op.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],op.prototype,"ytEventForwardingBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],op.prototype,"data",void 0);
_.g([_.U({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.N("design:type",Object)],op.prototype,"headerData",void 0);_.g([_.U(),_.N("design:type",Object)],op.prototype,"secondaryHeaderData",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],op.prototype,"visibility",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],op.prototype,"contentEmpty",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],op.prototype,"scrimmed",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],op.prototype,"dialog",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],op.prototype,"dropdown",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],op.prototype,"darkerPanels",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],op.prototype,"matchContentTheme",void 0);_.g([_.U(),_.N("design:type",Object)],op.prototype,"disableAutoFill",void 0);
_.g([_.U({reflectToAttribute:!0,value:_.S("optimal_reading_width_comments_ep")}),_.N("design:type",Boolean)],op.prototype,"optimalReadingWidthComments",void 0);_.g([_.U(),_.N("design:type",Number)],op.prototype,"hideDelayMs",void 0);_.g([_.U({selector:_.K1,reflectToAttribute:!0}),_.N("design:type",Object)],op.prototype,"isFullscreen",void 0);_.g([_.U({selector:_.ue,reflectToAttribute:!0}),_.N("design:type",Object)],op.prototype,"isTheaterMode",void 0);
_.g([_.U(),_.N("design:type",Number)],op.prototype,"showDelayMs",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data.targetId"),_.N("design:type",Object),_.N("design:paramtypes",[])],op.prototype,"targetId",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],op.prototype,"webSize",null);_.g([_.U(),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],op.prototype,"hideFooterBorder",null);
_.g([_.U(),_.N("design:type",Object)],op.prototype,"isWatch",void 0);_.g([_.U(),_.N("design:type",Object)],op.prototype,"originalTheaterState",void 0);_.g([_.U(),_.N("design:type",Object)],op.prototype,"theaterDisablementPanelIdentifier",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],op.prototype,"modernPanels",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],op.prototype,"isWatchWhilePanel",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],op.prototype,"shortsPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],op.prototype,"liveChatEngagementPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],op.prototype,"learningChatEngagementPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],op.prototype,"liveChatReplyPanel",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],op.prototype,"enableAnchoredPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],op.prototype,"disableBackdropFilter",void 0);_.g([_.U(),_.N("design:type",Object)],op.prototype,"trackEngagementPanelVisibility",void 0);_.g([_.BF("#header"),_.N("design:type",HTMLElement)],op.prototype,"headerElement",void 0);_.g([_.BF("#header > *"),_.N("design:type",HTMLElement)],op.prototype,"header",void 0);
_.g([_.BF("ytd-section-list-renderer"),_.N("design:type",Object)],op.prototype,"sectionListRendererElement",void 0);_.g([_.BF("panel-ad-header-image-lockup-view-model"),_.N("design:type",HTMLElement)],op.prototype,"adHeaderImageLockupViewModel",void 0);_.g([_.BF("#content"),_.N("design:type",HTMLElement)],op.prototype,"contentElement",void 0);
_.g([_.PF("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],op.prototype,"onYtRendererstamperFinished",null);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],op.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.g([_.wn("data","isFullscreen","isTheaterMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],op.prototype,"dataChanged",null);
_.g([_.JU("isTheaterMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],op.prototype,"isTheaterModeChanged",null);_.g([_.JU("isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],op.prototype,"isFullscreenChanged",null);_.g([_.JU("visibility"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],op.prototype,"visibilityChanged",null);
_.g([_.T({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],op);
_.F(op,"ytd-engagement-panel-section-list-renderer",function(){if(pau!==void 0)return pau;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return pau=u},{mode:_.zW("kevlar_poly_si_batch_j028")?1:2});var $p5;var WQ=function(){var u=_.Q.apply(this,arguments)||this;u.lastRenderedPanelIds=new Set;u.visiblePanels=[];u.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return u};
_.c(WQ,_.Q);_.I=WQ.prototype;_.I.dataChanged=function(){if(this.data){for(var u=[],K=_.y(this.data),l=K.next();!l.done;l=K.next()){l=l.value;var D=void 0,d=void 0,C=(D=l)==null?void 0:(d=D.engagementPanelSectionListRenderer)==null?void 0:d.visibility;d=D=void 0;((D=l)==null?0:(d=D.engagementPanelSectionListRenderer)==null?0:d.targetId)&&C!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&u.push(l)}this.visiblePanels=u}else this.visiblePanels=[]};
_.I.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}}};
_.I.withoutVisiblePanelById=function(u){return this.visiblePanels.filter(function(K){var l;return((l=K.engagementPanelSectionListRenderer)==null?void 0:l.targetId)!==u})};
_.I.onYtChangeEngagementPanelVisibilityAction=function(u){var K=this,l=_.b(u,_.Bx2);if(this.data&&(l==null?0:l.targetId)&&(l==null?0:l.visibility)){var D,d=(D=this.data.find(function(W){var M;return((M=W.engagementPanelSectionListRenderer)==null?void 0:M.targetId)===l.targetId}))==null?void 0:D.engagementPanelSectionListRenderer;
if(d){var C=this.withoutVisiblePanelById(l.targetId);l.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(u=this.data.find(function(W){var M;return((M=W.engagementPanelSectionListRenderer)==null?void 0:M.targetId)===l.targetId}))&&(C=[u].concat(_.Am(C)));
this.hideDelayMs&&l.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&C.length===0?_.YL.addJob(function(){d.visibility=l.visibility;K.visiblePanels=C},10,this.hideDelayMs):(d.visibility=l.visibility,this.visiblePanels=C);
_.bI(this.hostElement,"yt-engagement-panels-visible-changed",[C])}}};
_.I.onRendererstamperFinished=function(){var u=new Set(this.visiblePanels.map(function(K){var l;return(l=K.engagementPanelSectionListRenderer)==null?void 0:l.targetId}));
this.handlePanelVisibilityChange(u,this.lastRenderedPanelIds);this.lastRenderedPanelIds=u};
_.I.handlePanelVisibilityChange=function(u,K){u=u===void 0?new Set:u;K=K===void 0?new Set:K;if(this.data)for(var l=_.y(this.data),D=l.next();!D.done;D=l.next()){D=D.value;var d=void 0,C=void 0,W=(d=D)==null?void 0:(C=d.engagementPanelSectionListRenderer)==null?void 0:C.targetId;if(W&&(d=K.has(W),C=u.has(W),W=void 0,!d&&C?(C=d=void 0,W=(d=D)==null?void 0:(C=d.engagementPanelSectionListRenderer)==null?void 0:C.onShowCommands):d&&!C&&(C=d=void 0,W=(d=D)==null?void 0:(C=d.engagementPanelSectionListRenderer)==
null?void 0:C.onHideCommands),W))for(D=_.y(W),W=D.next();!W.done;W=D.next())this.ytComponentBehavior.resolveCommand(W.value)}};
WQ.prototype.onRendererstamperFinished=WQ.prototype.onRendererstamperFinished;WQ.prototype.dataChanged=WQ.prototype.dataChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],WQ.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],WQ.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],WQ.prototype,"lastRenderedPanelIds",void 0);_.g([_.U(),_.N("design:type",Number)],WQ.prototype,"hideDelayMs",void 0);_.g([_.U(),_.N("design:type",Array)],WQ.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Array)],WQ.prototype,"visiblePanels",void 0);_.g([_.U(),_.N("design:type",Boolean)],WQ.prototype,"isWatchWhilePanel",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WQ.prototype,"dataChanged",null);_.g([_.PF("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WQ.prototype,"onRendererstamperFinished",null);_.g([_.T({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],WQ);
_.F(WQ,"ytd-watch-engagement-panels",function(){if($p5!==void 0)return $p5;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return $p5=u},{mode:1});var npu;var HQ=function(){return _.Q.apply(this,arguments)||this};
_.c(HQ,_.Q);HQ.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.nH(_.bi(this.hostElement).querySelector("#text"),_.OsR(_.zww,this.data.companionLegalText))};
HQ.prototype.computeAutoScrollEnabled=function(u,K){return u&&!K};
HQ.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
HQ.prototype.onToggleTap=function(){this.expanded=!this.expanded};
HQ.prototype.expandedChanged=HQ.prototype.expandedChanged;HQ.prototype.dataChanged=HQ.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.MVI),_.N("design:type",Object)],HQ.prototype,"ytdAutoScrollBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],HQ.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],HQ.prototype,"expanded",void 0);
_.g([_.U({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.N("design:type",Boolean)],HQ.prototype,"autoScrollEnabled",void 0);_.g([_.U(),_.N("design:type",String)],HQ.prototype,"expanderIcon",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HQ.prototype,"dataChanged",null);
_.g([_.JU("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HQ.prototype,"expandedChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],HQ);
_.F(HQ,"ytd-companion-legal-text-renderer",function(){if(npu!==void 0)return npu;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return npu=u},{mode:1});var rEJ;var MW=function(){var u=_.Q.apply(this,arguments)||this;u.buttonUpdate=_.S("web_modern_buttons");u.kevlarWatchGrid=_.S("kevlar_watch_grid");u.centerAlignDescription=_.S("action_companion_center_align_description");u.truncateDomain=_.S("action_companion_truncate_domain");return u};
_.c(MW,_.Q);_.I=MW.prototype;_.I.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.I.getOnLayoutVisibleCallback=function(){var u=_.lZ("yt.www.ads.eventcache.getLastCompanionData");return u?(u=u())&&u.onLayoutVisibleCallback:null};
_.I.getLayoutId=function(){var u=_.lZ("yt.www.ads.eventcache.getLastCompanionData");return u?(u=u())&&u.layoutId:null};
_.I.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",MW.JSC$22524_DEFAULT_AD_BADGE_RENDERER);var u=this.getOnLayoutVisibleCallback();u&&u()}};
_.I.getButtonRenderer=function(u){return u.actionButton&&_.b(u.actionButton,_.lF)?(delete _.b(u.actionButton,_.lF).navigationEndpoint,_.b(u.actionButton,_.lF)):{}};
_.I.onClick=function(u){var K=this;if((!_.S("web_modern_buttons")||!_.rE(_.WF(u),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){u=_.xY();var l=this.getLayoutId();u&&l&&_.S("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?u.getPlayerPromise().then(function(D){(new _.gL(D)).executeCommand(K.data.navigationEndpoint,l)}):_.S("kevlar_companion_resolve_command_killswitch")?_.xs(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.Sy(this.hostElement,"yt-companion-ad-clicked",["action-companion",l])}};
_.MN.Object.defineProperties(MW.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return((u=this.data)==null?0:(K=u.detailsLine)==null?0:(l=K.adRating)==null?0:l.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 u,K,l,D;return((u=this.data)==null?0:(K=u.detailsLine)==null?0:(l=K.adRating)==null?0:(D=l.ratingIcon)==null?0:D.iconType)?_.fr(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D;return((u=this.data)==null?0:(K=u.detailsLine)==null?0:(l=K.texts)==null?0:(D=l[0])==null?0:D.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?0:(K=u.description)==null?0:K.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var u=_.lZ("yt.www.ads.eventcache.getLastCompanionData");return u?(u=u())&&u.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var u=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return u?u.indexOf("/default_banner")!==-1:!0}}});
MW.prototype.onClick=MW.prototype.onClick;MW.prototype.dataChanged=MW.prototype.dataChanged;MW.JSC$22524_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.QQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],MW.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],MW.prototype,"rendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],MW.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],MW.prototype,"buttonUpdate",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],MW.prototype,"kevlarWatchGrid",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],MW.prototype,"centerAlignDescription",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],MW.prototype,"truncateDomain",void 0);
_.g([_.U({computed:"computeButtonOverride(buttonUpdate)"}),_.N("design:type",Object)],MW.prototype,"buttonOverride",void 0);_.g([_.R("data.detailsLine.adRating.ratingText"),_.N("design:type",Object),_.N("design:paramtypes",[])],MW.prototype,"getRating",null);_.g([_.R("getRating"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MW.prototype,"computeRatingHidden",null);
_.g([_.R("data.detailsLine.adRating.ratingIcon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],MW.prototype,"iconType",null);_.g([_.R("data.detailsLine.texts.0.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],MW.prototype,"getDetailsLine",null);_.g([_.R("getDetailsLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MW.prototype,"computeDetailsLineHidden",null);
_.g([_.R("data.description.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],MW.prototype,"getDescriptionText",null);_.g([_.R("getDescriptionText"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MW.prototype,"computeDescriptionTextHidden",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MW.prototype,"interactionLoggingClientData",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MW.prototype,"hideBanner",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MW.prototype,"dataChanged",null);_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],MW.prototype,"onClick",null);_.g([_.T({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],MW);
_.F(MW,"ytd-action-companion-ad-renderer",function(){if(rEJ!==void 0)return rEJ;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return rEJ=u},{mode:_.zW("kevlar_poly_si_batch_j067")?1:2});var vpS;var G6u;var qW=function(){var u=_.Q.apply(this,arguments)||this;u.buttonUpdate=_.S("web_modern_buttons");u.hideLegacyBanner=_.S("enable_dsa_one_click_ata_translators_infeed_elements");u.adInfoButtonStyle="mono";u.adInfoButtonType="text";u.noDotAdBadge=!0;return u};
_.c(qW,_.Q);_.I=qW.prototype;_.I.getOnLayoutVisibleCallback=function(){var u=_.lZ("yt.www.ads.eventcache.getLastCompanionData");return u?(u=u())&&u.onLayoutVisibleCallback:null};
_.I.getLayoutId=function(){var u=_.lZ("yt.www.ads.eventcache.getLastCompanionData");return u?(u=u())&&u.layoutId:null};
_.I.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 u=this.data.image.thumbnail.thumbnails[0];this.imageSrc=u.url?_.ES(u.url):void 0;this.imageWidth=u.width||0;this.imageHeight=u.height||0}this.data.clickthroughEndpoint&&_.b(this.data.clickthroughEndpoint,_.d_)&&(u=_.b(this.data.clickthroughEndpoint,_.d_).url,_.S("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
u||"":u?(u=_.ES(u),this.clickThroughUrl=_.Yu(u)):this.clickThroughUrl=void 0);(u=this.getOnLayoutVisibleCallback())&&u()}};
_.I.onClick=function(u){_.rE(_.WF(u),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(u)};
_.I.handleClick=function(){var u=this;this.data&&this.data.clickthroughEndpoint&&(_.xs(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(K){u.macroReplacementBehavior.sendServiceRequestAction([K])}),_.Sy(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.I.onLoad=function(){_.bI(this.hostElement,"yt-refit-popups-action")};
_.MN.Object.defineProperties(qW.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var u=_.lZ("yt.www.ads.eventcache.getLastCompanionData");return u?(u=u())&&u.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var u=_.lZ("yt.www.ads.eventcache.getLastCompanionData");return u?(u=u())&&u.interactionLoggingClientData:null}}});
qW.prototype.onLoad=qW.prototype.onLoad;qW.prototype.onClick=qW.prototype.onClick;qW.prototype.dataChanged=qW.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],qW.prototype,"rendererBehavior",void 0);_.g([_.e(NqQ.YtMacroReplacementBehavior),_.N("design:type",Object)],qW.prototype,"macroReplacementBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],qW.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],qW.prototype,"buttonUpdate",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],qW.prototype,"hideLegacyBanner",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],qW.prototype,"adInfoButtonStyle",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],qW.prototype,"adInfoButtonType",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],qW.prototype,"macros",null);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],qW.prototype,"interactionLoggingClientData",null);_.g([_.U(),_.N("design:type",String)],qW.prototype,"clickThroughUrl",void 0);_.g([_.U(),_.N("design:type",_.N9)],qW.prototype,"imageSrc",void 0);_.g([_.U(),_.N("design:type",Number)],qW.prototype,"imageWidth",void 0);_.g([_.U(),_.N("design:type",Number)],qW.prototype,"imageHeight",void 0);_.g([_.U(),_.N("design:type",Object)],qW.prototype,"noDotAdBadge",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qW.prototype,"dataChanged",null);_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],qW.prototype,"onClick",null);_.g([_.PF("load"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qW.prototype,"onLoad",null);_.g([_.T({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],qW);
_.F(qW,"ytd-image-companion-renderer",function(){if(G6u!==void 0)return G6u;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return G6u=u},{mode:_.zW("kevlar_poly_si_batch_j067")?1:2});var tkk;var $C=function(){return _.Q.apply(this,arguments)||this};
_.c($C,_.Q);_.I=$C.prototype;_.I.dataChanged=function(){this.set("data.adBadge",$C.JSC$22533_DEFAULT_AD_BADGE_RENDERER);if(this.data){var u=this.getOnLayoutVisibleCallback();u&&u()}};
_.I.getOnLayoutVisibleCallback=function(){var u=_.lZ("yt.www.ads.eventcache.getLastCompanionData");return u?(u=u())&&u.onLayoutVisibleCallback:null};
_.I.getLayoutId=function(){var u=_.lZ("yt.www.ads.eventcache.getLastCompanionData");return u?(u=u())&&u.layoutId:null};
_.I.onCompanionClicked=function(u){this.data&&(u.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.Sy(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.I.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var u=_.xY(),K=this.getLayoutId(),l=this.data.clickToAdvSiteEndpoint;u&&K&&_.S("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?u.getPlayerPromise().then(function(D){(new _.gL(D)).executeCommand(l,K)}):_.xs(this.hostElement,"yt-navigate",{endpoint:l})}};
_.I.sendTrackingPings=function(u){if(u&&u.length!==0&&u[0].loggingUrls&&(u=u[0].loggingUrls.map(this.getBaseUrl)))for(var K=0;K<u.length;K++)_.Cp(u[K])};
_.I.getBaseUrl=function(u){return u.baseUrl||""};
_.MN.Object.defineProperties($C.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var u=_.lZ("yt.www.ads.eventcache.getLastCompanionData");return u?(u=u())&&u.interactionLoggingClientData:null}}});
$C.prototype.onCompanionClicked=$C.prototype.onCompanionClicked;$C.prototype.dataChanged=$C.prototype.dataChanged;$C.JSC$22533_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.QQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],$C.prototype,"data",void 0);_.g([_.BF("#title"),_.N("design:type",HTMLElement)],$C.prototype,"shopTitle",void 0);
_.g([_.wn("data.impressionEndpoints"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$C.prototype,"dataChanged",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],$C.prototype,"interactionLoggingClientData",null);_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$C.prototype,"onCompanionClicked",null);
_.g([_.T({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],$C);
_.F($C,"ytd-shopping-companion-renderer",function(){if(tkk!==void 0)return tkk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return tkk=u},{mode:1});_.SX(_.rf(function(u){var K=u.data;u=_.r_({visibilityCallback:function(D){var d,C=(d=K().interaction)==null?void 0:d.onFirstVisible;D&&C&&_.IT(C)},
showOption:_.v6});var l=_.sL(function(){return K().interaction},MwI);
_.Ag(function(){var D,d;d=(d=_.lZ("yt.www.ads.eventcache.getLastCompanionData"))?(d=d())&&d.onLayoutVisibleCallback:null;(D=d)==null||D()});
return _.n("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.p4(function(D){_.bI(D.currentTarget,"yt-refit-popups-action")}),
el:_.v1(u,l),"aria-label":function(){var D,d;return(D=K().interaction)==null?void 0:(d=D.accessibility)==null?void 0:d.label}},_.n("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.n(_.mo,{data:function(){return K().adImage}},{adImageViewModel:function(D){return _.n(_.pG,{data:D.data,
targetHeight:80,customCommandResolver:MwI})}})),_.n("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.n("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.n(_.mo,{data:function(){return K().adBadge}},{adBadgeViewModel:function(D){return _.n(_.c6,{data:D.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.n("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.n(_.mo,{data:function(){return K().menu}},{buttonViewModel:_.P2}))))},"zj"),"banner-image-layout-view-model",{props:{data:_.M6}});_.SX(_.rf(function(u){var K=u.data;u=_.r_({visibilityCallback:function(D){var d,C=(d=K().interaction)==null?void 0:d.onFirstVisible;D&&C&&_.IT(C)},
showOption:_.v6});var l=_.sL(function(){return K().interaction},qIo);
_.Ag(function(){var D,d;d=(d=_.lZ("yt.www.ads.eventcache.getLastCompanionData"))?(d=d())&&d.onLayoutVisibleCallback:null;(D=d)==null||D()});
return _.n("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.v1(u,l)},_.n("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.n(_.mo,{data:function(){return K().adImage}},{adImageViewModel:function(D){return _.n(_.pG,{data:D.data,
targetHeight:80,customCommandResolver:qIo})}})),_.n("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.n("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.n(_.mo,{data:function(){return K().adAvatarLockup}},{adAvatarLockupViewModel:function(D){return _.n(H_F,{data:D.data,
customCommandResolver:qIo})}})),_.n(_.mo,{data:function(){return K().adButton}},{adButtonViewModel:function(D){return _.n(_.tw,{data:D.data,
customCommandResolver:qIo})}}),_.n("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.n(_.mo,{data:function(){return K().menu}},{buttonViewModel:_.P2}))))},"Aj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.M6}});var xpS={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"},n8=function(){var u=_.Q.apply(this,arguments)||this;u.updateCompanionDataJobId=0;u.contentVideoId=null;u.player=null;u.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return u};
_.c(n8,_.Q);_.I=n8.prototype;_.I.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:xpS}}};
_.I.attached=function(){var u=this,K=_.xY();K&&K.getPlayerPromise().then(function(l){u.getCachedDataAndListen(l)})};
_.I.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.I.updateRendererStamper=function(){var u={};if(this.data)for(var K in xpS)if(this.data[K]){u[K]=this.data[K];break}if(this.oneofRenderer!=void 0||Object.keys(u).length)this.oneofRenderer=u};
_.I.getCachedDataAndListen=function(u){var K=this.retrieveCachedCompanionData();K&&Object.keys(K).length&&this.receiveCompanionData(K);this.ytPlayerListenerBehavior.listenToPlayerEvent(u,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=u};
_.I.retrieveCachedCompanionData=function(){return _.lL.yt&&_.lL.yt.www&&_.lL.yt.www.ads&&_.lL.yt.www.ads.eventcache&&_.lL.yt.www.ads.eventcache.getLastCompanionData?_.lL.yt.www.ads.eventcache.getLastCompanionData():null};
_.I.receiveCompanionData=function(u){u&&Object.keys(u).length?(this.contentVideoId=u.contentVideoId,this.setCompanionData(u)):this.setCompanionData(u)};
_.I.setCompanionData=function(u){this.cancelPendingCompanionAdJobs();if(u){this.updateCompanionDataJobId=0;for(var K in xpS)xpS.hasOwnProperty(K)&&(this.data[K]=void 0);u.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",u.shoppingCompanionCarouselRenderer):u.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",u.imageCompanionAdRenderer):u.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",u.actionCompanionAdRenderer),_.bI(this.hostElement,
"yt-hide-unlimited-offer-module"),_.bI(this.hostElement,"yt-hide-tvfilm-offer-module")):u.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",u.bannerImageLayoutViewModel):u.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",u.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.I.dataChanged=function(){var u=this,K=_.xY();K?K.getPlayerPromise().then(function(l){u.contentVideoId&&l.getVideoUrl().includes("v="+u.contentVideoId)||(u.cancelPendingCompanionAdJobs(),u.updateRendererStamper())}):_.D_(Error("so"))};
_.I.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.YL.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.I.handleCompanionAdClicked=function(u,K){this.player.onAdUxClicked(u,K);this.player.pauseVideo()};
n8.prototype.dataChanged=n8.prototype.dataChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],n8.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],n8.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",_.HB)],n8.prototype,"ytPlayerListenerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],n8.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],n8.prototype,"oneofRenderer",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],n8.prototype,"dataChanged",null);_.g([_.T({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],n8);
_.F(n8,"ytd-companion-slot-renderer",function(){if(vpS!==void 0)return vpS;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return vpS=u},{mode:_.zW("kevlar_poly_si_batch_j067")?
1:2});var SoJ;var r7=function(){return _.Q.apply(this,arguments)||this};
_.c(r7,_.Q);r7.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
r7.prototype.dataChanged=r7.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],r7.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],r7.prototype,"companionSlotData",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],r7.prototype,"dataChanged",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],r7);
_.F(r7,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(SoJ!==void 0)return SoJ;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return SoJ=u},{mode:1});var b_Q;var vQ=function(){var u=_.Q.apply(this,arguments)||this;u.skinnyMode=!1;u.COMPACT_EVENT_COUNT=4;u.onShelfToggleButtonTap=function(){u.logTap(u.data);u.showingMore=!u.showingMore};
u.onShelfToggleButtonFocus=function(){u.showingMore||(u.logTap(u.data),u.showingMore=!0,_.W_(u,function(){var K=u.COMPACT_EVENT_COUNT-1,l;(l=_.bi(u.hostElement).querySelector("#event-"+K))==null||l.focus()}))};
return u};
_.c(vQ,_.Q);_.I=vQ.prototype;_.I.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.I.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.I.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Ql(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Ql(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Ql(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Ql(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Ql(this.infoTooltip,this.infoTooltip.hide))};
_.I.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Ql(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Ql(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Ql(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Ql(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Ql(this.infoTooltip,this.infoTooltip.hide))};
_.I.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)};
_.I.onShowingMoreChanged=function(){var u;this.showingMoreChanged((u=this.showingMore)!=null?u:!1)};
_.I.showingMoreChanged=function(u){var K=this.get("data.events")||[];this.set("restEvents",K.slice(1,u?K.length:this.COMPACT_EVENT_COUNT).map(function(l){return l.ticketEventRenderer}));
K.slice(0,u?K.length:this.COMPACT_EVENT_COUNT).forEach(function(l){var D=_.AC();l=l.ticketEventRenderer.trackingParams;_.Yr()&&D&&l&&(l=_.gf(l),D&&_.Cm(D,l))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.I.computeAriaLabel=function(u){return u.subtitle1+", "+u.subtitle2};
_.I.logTap=function(u){_.Yr()&&this.ytRendererBehavior.logExplicitClick(u)};
_.I.isKeyboardAction=function(u){return this.get("detail.x",u)===0&&this.get("detail.y",u)===0};
_.I.onFirstEventTap=function(u){u.target&&this.handleTap(u.target,this.firstEvent,this.isKeyboardAction(u))};
_.I.onTicketLinkTap=function(u){u.target&&this.handleTap(u.target,u.model.item,this.isKeyboardAction(u))};
_.I.handleTap=function(u,K,l){if(K.buttonCommand)if(K.hasMultipleOffers)Object.assign(_.b(K.buttonCommand,_.kg),{properties:{source:l?"keyboard":"tap"}}),this.logTap(K),this.popupPositionTarget=u,_.ay(this.hostElement,[K.buttonCommand],this.hostElement);else{var D;if((D=_.b(K.buttonCommand,_.d_))==null?0:D.url)this.logTap(K),_.s2(window,_.b(K.buttonCommand,_.d_).url)}};
vQ.prototype.onShowingMoreChanged=vQ.prototype.onShowingMoreChanged;vQ.prototype.dataChanged=vQ.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],vQ.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],vQ.prototype,"firstEvent",void 0);_.g([_.U(),_.N("design:type",Object)],vQ.prototype,"restEvents",void 0);_.g([_.U(),_.N("design:type",String)],vQ.prototype,"imageUrl",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],vQ.prototype,"showingMore",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],vQ.prototype,"canShowMore",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],vQ.prototype,"skinnyMode",void 0);_.g([_.U(),_.N("design:type",HTMLElement)],vQ.prototype,"popupPositionTarget",void 0);_.g([_.BF("#banner-info-tooltip"),_.N("design:type",Object)],vQ.prototype,"infoTooltip",void 0);
_.g([_.BF("#info-container"),_.N("design:type",HTMLElement)],vQ.prototype,"infoContainer",void 0);_.g([_.BF("#shelf-toggler"),_.N("design:type",HTMLElement)],vQ.prototype,"shelfToggleButton",void 0);_.g([_.BF("#separator"),_.N("design:type",HTMLDivElement)],vQ.prototype,"separator",void 0);_.g([_.U(),_.N("design:type",String)],vQ.prototype,"shelfTogglerLabelText",void 0);_.g([_.U(),_.N("design:type",String)],vQ.prototype,"shelfTogglerIcon",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vQ.prototype,"dataChanged",null);_.g([_.wn("showingMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vQ.prototype,"onShowingMoreChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],vQ);
_.F(vQ,"ytd-ticket-shelf-renderer",function(){if(b_Q!==void 0)return b_Q;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return b_Q=u},{mode:1});var O_b;var cEb;var Gv=function(){return _.Q.apply(this,arguments)||this};
_.c(Gv,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Gv.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Gv.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Gv);
_.F(Gv,"ytd-comments-entry-point-message-renderer",function(){if(cEb!==void 0)return cEb;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return cEb=u},{mode:1});var aBJ;var t2=function(){return _.Q.apply(this,arguments)||this};
_.c(t2,_.Q);_.MN.Object.defineProperties(t2.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.teaserAvatar)}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],t2.prototype,"data",void 0);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],t2.prototype,"hasAvatar",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],t2);
_.F(t2,"ytd-comments-entry-point-teaser-renderer",function(){if(aBJ!==void 0)return aBJ;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return aBJ=u},{mode:1});var ziQ;var xC=function(){return _.Q.apply(this,arguments)||this};
_.c(xC,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],xC.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],xC.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],xC);
_.F(xC,"ytd-comments-simplebox-renderer",function(){if(ziQ!==void 0)return ziQ;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return ziQ=u},{mode:1});var SJ=function(){var u=_.Q.apply(this,arguments)||this;u.fullHeight=!_.S("comment_teaser_full_height_kill_switch")&&_.S("kevlar_watch_grid");return u};
_.c(SJ,_.Q);SJ.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"}}}};
SJ.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
SJ.prototype.onTap=function(){var u=this.tapCommand;u&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(u))};
SJ.prototype.onKeyUp=function(u){if(u.keyCode===13)this.onTap()};
_.MN.Object.defineProperties(SJ.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.data)==null?0:u.onTap)return this.data.onTap;var K,l;if(((K=this.data)==null?0:K.teaserContent)||((l=this.data)==null?0:l.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)!=null&&u.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
SJ.prototype.onKeyUp=SJ.prototype.onKeyUp;SJ.prototype.onTap=SJ.prototype.onTap;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],SJ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],SJ.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],SJ.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],SJ.prototype,"fullHeight",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],SJ.prototype,"tapCommand",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],SJ.prototype,"simpleboxPlaceholder",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SJ.prototype,"hasSimpleboxPlaceholder",null);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],SJ.prototype,"simpleboxAvatar",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],SJ.prototype,"teaserContent",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SJ.prototype,"hasTeaserContent",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],SJ.prototype,"teaserAvatar",null);
_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SJ.prototype,"hasTeaserAvatar",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],SJ.prototype,"messageText",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],SJ.prototype,"contentRenderer",null);_.g([_.R("data"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SJ.prototype,"hasContents",null);
_.g([_.R("data"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SJ.prototype,"hasContentRenderer",null);_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SJ.prototype,"onTap",null);_.g([_.PF("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[_.BW]),_.N("design:returntype")],SJ.prototype,"onKeyUp",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],SJ);
_.F(SJ,"ytd-comments-entry-point-header-renderer",function(){if(O_b!==void 0)return O_b;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return O_b=u},{mode:1});var eiM;_.S("web_enable_sink_animated_rolling_character_and_number")?_.SX(_.BgN,"yt-animated-rolling-number",{props:{numberText:_.M6,numberValue:_.M6,heightPx:_.M6,fontSizeMultiplier:_.M6,shouldAnimate:_.M6,forceRollUp:_.M6}}):_.U4(_.Cjy,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var RiF=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),Upr={numberText:"",heightPx:2*RiF,shouldAnimate:!1},b$=function(){var u=_.Q.apply(this,arguments)||this;u.usingAnimatedComponents=!0;u.wasDetailed=!1;u.JSC$22570_browserSupportsAnimation=_.S("web_supports_animations_api");u.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};u.detailed=!1;u.shouldAnimate=!1;u.viewCountProps=Upr;u.dateTextProps=
Upr;u.metadataBadgesInDescription=_.S("web_metadata_badges_in_description");return u};
_.c(b$,_.Q);_.I=b$.prototype;_.I.resetAnimationState=function(){this.shouldAnimate=!1};
_.I.updateDynamicMetadata=function(){if(this.JSC$22570_browserSupportsAnimation){if(!this.detailed){var u,K,l,D;var d=(u=this.videoPrimaryInfoRenderer)==null?void 0:(K=u.viewCount)==null?void 0:(l=K.videoViewCountRenderer)==null?void 0:(D=l.extraShortViewCount)==null?void 0:D.simpleText;var C,W,M,q;var v=(C=this.videoPrimaryInfoRenderer)==null?void 0:(W=C.viewCount)==null?void 0:(M=W.videoViewCountRenderer)==null?void 0:(q=M.shortViewCount)==null?void 0:q.simpleText}if(!v){var G,t,x,O;d=(G=this.videoPrimaryInfoRenderer)==
null?void 0:(t=G.viewCount)==null?void 0:(x=t.videoViewCountRenderer)==null?void 0:(O=x.unlabeledViewCountValue)==null?void 0:O.simpleText;var a,f,B,p;v=(a=this.videoPrimaryInfoRenderer)==null?void 0:(f=a.viewCount)==null?void 0:(B=f.videoViewCountRenderer)==null?void 0:(p=B.viewCount)==null?void 0:p.simpleText}var V,m,Z;u=Number((V=this.videoPrimaryInfoRenderer)==null?void 0:(m=V.viewCount)==null?void 0:(Z=m.videoViewCountRenderer)==null?void 0:Z.originalViewCount);var A,h;V=(A=this.videoPrimaryInfoRenderer)==
null?void 0:(h=A.relativeDateText)==null?void 0:h.simpleText;var C9;A=!((C9=this.videoPrimaryInfoRenderer)==null||!C9.relativeDateText);if(d&&v&&u&&(V||!A)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;C9=v.split(new RegExp("("+d+")"));d=twi(C9[0]);var Wo;v={numberText:(Wo=C9[1])!=null?Wo:"",numberValue:u,heightPx:2*RiF,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var $y;Wo=(($y=C9[2])!=null?$y:"")+"  ";this.setViewCount(v,d,twi(Wo));
if(!this.detailed&&A){d=V.split(/(\d+)/);$y=twi(d[0]);var co;Wo={numberText:(co=d[1])!=null?co:"",heightPx:2*RiF,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var UZ;co=((UZ=d[2])!=null?UZ:"")+"  ";this.setDateText(Wo,$y,twi(co))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.I.setViewCount=function(u,K,l){_.WI(K)!==_.WI(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=K);this.viewCountProps.numberText!==(u==null?void 0:u.numberText)&&(this.viewCountProps=u||Upr);_.WI(l)!==_.WI(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=l)};
_.I.setDateText=function(u,K,l){_.WI(K)!==_.WI(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=K);this.dateTextProps.numberText!==(u==null?void 0:u.numberText)&&(this.dateTextProps=u||Upr);_.WI(l)!==_.WI(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=l)};
_.I.onYtUpdateViewershipAction=function(u){this.videoPrimaryInfoRenderer&&(_.b(u,b86).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.b(u,b86).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.b(u,b86).viewCount)))};
_.I.onYtUpdateDateTextAction=function(u){if(this.videoPrimaryInfoRenderer){u=_.b(u,_.xWp).dateText;this.shouldAnimate=!0;var K;((K=this.videoPrimaryInfoRenderer)==null?0:K.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",u):this.set("videoPrimaryInfoRenderer.dateText",u)}};
_.MN.Object.defineProperties(b$.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return Gl_(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.WI(Gl_(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.WI(this.viewCountPreNumberText),this.viewCountProps.numberText,_.WI(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.WI(this.dateTextPreNumberText),this.dateTextProps.numberText,_.WI(this.dateTextPostNumberText)].join("")}}});
b$.prototype.updateDynamicMetadata=b$.prototype.updateDynamicMetadata;b$.prototype.resetAnimationState=b$.prototype.resetAnimationState;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],b$.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],b$.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],b$.prototype,"videoPrimaryInfoRenderer",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],b$.prototype,"detailed",void 0);_.g([_.U(),_.N("design:type",Object)],b$.prototype,"shouldAnimate",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],b$.prototype,"viewCountPreNumberText",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],b$.prototype,"viewCountProps",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],b$.prototype,"viewCountPostNumberText",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],b$.prototype,"dateTextPreNumberText",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],b$.prototype,"dateTextProps",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],b$.prototype,"dateTextPostNumberText",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],b$.prototype,"metadataBadgesInDescription",void 0);_.g([_.R("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.N("design:type",Object),_.N("design:paramtypes",[])],b$.prototype,"infoText",null);
_.g([_.R("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.N("design:type",String),_.N("design:paramtypes",[])],b$.prototype,"descriptionInfoTooltipText",null);_.g([_.R("detailed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],b$.prototype,"showDescriptionInfoTooltip",null);
_.g([_.R("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.N("design:type",String),_.N("design:paramtypes",[])],b$.prototype,"animatedViewCountAccessibilityLabel",null);_.g([_.R("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.N("design:type",String),_.N("design:paramtypes",[])],b$.prototype,"animatedDateTextAccessibilityLabel",null);
_.g([_.JU("videoPrimaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],b$.prototype,"resetAnimationState",null);_.g([_.JU("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],b$.prototype,"updateDynamicMetadata",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-watch-info-text"})],b$);
_.F(b$,"ytd-watch-info-text",function(){if(eiM!==void 0)return eiM;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return eiM=u},{mode:1});var fBF;var Q2X="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var PG5=_.rf(function(u){var K=u.data;var l=u.setTapCommand;_.gp(function(){var D=_.lt(K().onTap);l(D)},"X4onJd");
return _.n("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.n(_.mo,{data:function(){return K().avatar}},{avatarViewModel:_.Y_}),_.n("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.n("span",null,function(){return K().simpleboxText})))},"Bj");var JEg=_.rf(function(u){return _.n("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.n(_.r,{cond:function(){return _.b(u.data().avatar,_.ds)},
then:function(K){return _.n(_.Y_,{data:K,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.n("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.n(_.qC,{text:function(){return u.data().teaserText}})))},"Cj");var j2r=_.rf(function(u){var K=u.data;var l=u.setTapCommand;_.gp(function(){var D=_.lt(K().onTap);l(D)},"PmAol");
return _.n("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.n(_.mo,{data:function(){return K().teasers}},{commentsEntryPointTeaserViewModel:JEg}))},"Dj");var BHz=_.rf(function(u){var K=u.data;var l=u.setTapCommand;_.gp(function(){var D=_.lt(K().onTap);l(D)},"Nh3Hjd");
return _.n("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.n(_.qC,{text:function(){return K().messageText}}))},"Ej");var pEQ=_.rf(function(u){var K=u.data;var l=u.setTapCommand;var D=u.isDisabled;_.gp(function(){var d=(D==null?0:D())?void 0:_.lt(K().onTap);l(d)},"omeiWe");
return _.n("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.n(_.VB,{icon:function(){return K().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.n(_.r,{cond:function(){return K().image},
then:function(d){return _.n(_.n4,{data:d,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.n(_.qC,{text:function(){return K().text},
className:function(){return K().image||K().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.n(_.mo,{data:function(){return K().button}},{buttonViewModel:function(d){return _.n(_.P2,{data:d.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:D==null?void 0:D()}}})}}))},"Fj");var i_g=_.rf(function(u){var K=u.data;var l=u.itemIndex;var D=u.selectedIndex;var d=u.indexUpdatedCallback;var C=u.observer;u=u.title;var W=_.o9("yt-carousel-item-view-model",function(t){_.S("web_metadata_carousel_elref_bugfix")&&C&&C().observe(t)}),M=function(t){l()===D()&&d(t)},q=_.Da(XC_),v=_.Da(_.mlw),G=function(){var t,x,O;
return((t=K())==null?void 0:t.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!q()||((x=K())==null?void 0:x.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&v().includes("PAposts_by_host")||((O=K())==null?void 0:O.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&v().includes("PAyouchat")};
_.ZY(function(){_.S("web_metadata_carousel_elref_bugfix")||C&&C().observe(W.value)});
return _.n("yt-carousel-item-view-model",{el:W,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":u},_.n(_.mo,{data:function(){var t,x;return(x=(t=_.b(K().carouselItem,ND_))==null?void 0:t.textCarousel)!=null?x:K().carouselItem}},{textCarouselItemViewModel:function(t){return _.n(pEQ,{data:t.data,
setTapCommand:M,isDisabled:G})},
commentTeaserCarouselItemViewModel:function(t){return _.n(j2r,{data:t.data,setTapCommand:M})},
commentInputBoxCarouselItemViewModel:function(t){return _.n(PG5,{data:t.data,setTapCommand:M})},
commentsEntryPointMessageViewModel:function(t){return _.n(BHz,{data:t.data,setTapCommand:M})}}))},"Gj");var THk=_.rf(function(u){var K=u.numDots;var l=u.activeIndex;return _.n("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.n(_.p0,{each:function(){return Array.from({length:K()})},
keyBy:"INDEX"},function(D,d){return _.n("div",{class:function(){var C={};return _.jX("ytCarouselDotsShapeDot",(C.ytCarouselDotsShapeDotActive=d===l(),C))}})}))},"Hj");var wEu=_.rf(function(u){var K=u.data;var l=u.handleCarouselNavigation;var D=u.numItems;var d=u.selectedIndex;var C=function(){return{disabled:d()===0}},W=function(){return{disabled:d()===D()-1}};
return _.n("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.n("div",null,_.n("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return K().title}),_.n(_.r,{cond:function(){return K().subtitle},
then:function(M){return _.n("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return K().subtitleAccessibilityText}},M)}})),_.n(_.r,{cond:function(){return D()>1},
then:function(){return _.n("div",{class:"ytCarouselTitleViewModelNavigation"},_.n(THk,{numDots:D,activeIndex:d}),_.n(_.r,{cond:function(){return K().previousButton},
then:function(M){return _.n(_.mo,{data:M},{buttonViewModel:function(q){return _.n(_.P2,{data:q.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return l(-1)},
buttonOverrides:C})}})}}),_.n(_.r,{cond:function(){return K().nextButton},
then:function(M){return _.n(_.mo,{data:M},{buttonViewModel:function(q){return _.n(_.P2,{data:q.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return l(1)},
buttonOverrides:W})}})}}))}}))},"Ij");_.SX(_.rf(function(u){var K=u.data;var l,D=_.o9("yt-video-metadata-carousel-view-model"),d=_.o9("div",function(A){if(_.S("web_metadata_carousel_elref_bugfix")){var h=function(){var C9=A.offsetWidth*f(),Wo=24*(f()-1);x(C9+Wo)};
h();window.ResizeObserver&&(l=new ResizeObserver(h),l.observe(A))}}),C=_.E3("HTML_DIR")==="rtl",W=!1,M=0,q=0;
u=_.y(_.On(0,void 0,"f4aYxe"));var v=u.next().value,G=u.next().value;u=_.y(_.On(0,void 0,"kU9O9"));var t=u.next().value,x=u.next().value;u=_.y(_.On(!1,void 0,"GqphDd"));var O=u.next().value,a=u.next().value,f=function(){var A,h,C9;return(C9=(A=K())==null?void 0:(h=A.carouselTitles)==null?void 0:h.length)!=null?C9:0},B=function(){d.value&&d.value.scrollLeft!==M&&G((C?d.value.scrollLeft<M:d.value.scrollLeft>M)?Math.min(v()+1,f()-1):Math.max(v()-1,0))},p;
window.IntersectionObserver&&(p=new IntersectionObserver(function(A){A=_.y(A);for(var h=A.next();!h.done;h=A.next())if(h.value.isIntersecting){if(W){W=!1;break}B()}else G(q)},{threshold:.2}));
_.gp(function(){if(d.value){var A=(C?-1:1)*(t()/f()+12)*(O()&&p?q:v());typeof d.value.scrollTo==="function"?d.value.scrollTo({left:A,behavior:"smooth"}):d.value.scrollLeft=A;M=A;q=O()&&p?q:v()}},"ZP1VMb");
var V,m=function(A){V=A};
_.ZY(function(){if(!_.S("web_metadata_carousel_elref_bugfix")){var A=function(){var C9=d.value.offsetWidth*f(),Wo=24*(f()-1);x(C9+Wo)};
A();if(window.ResizeObserver){var h=new ResizeObserver(A);h.observe(d.value);_.No(function(){h.disconnect();p&&p.disconnect()})}}});
_.No(function(){if(_.S("web_metadata_carousel_elref_bugfix")){var A;(A=l)==null||A.disconnect();var h;(h=p)==null||h.disconnect()}});
var Z=function(A){A=v()+A;A>=0&&A<f()&&(W=!0,G(A))};
return _.n("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:D,"on:click":_.p4(function(A){if(_.uC(_.L1(A),D.value,["BUTTON".toString()])||!V)return!1;_.GB().resolve(_.t9).resolveCommand(V,{forceClickLogging:!0});return!1}),
"on:touchstart":_.p4(function(){a(!0);return!1}),
"on:touchend":_.p4(function(){p||B();a(!1);return!1}),
hidden:function(){var A,h;return!((A=K())==null?0:(h=A.carouselItems)==null?0:h.length)}},_.n("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.n(_.r,{cond:function(){return K().carouselTitles},
then:function(A){return _.n(_.mo,{data:function(){return A()[O()&&p?q:v()]}},{carouselTitleViewModel:function(h){return _.n(wEu,{data:h.data,
handleCarouselNavigation:Z,numItems:f,selectedIndex:v})}})}})),_.n("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:d},_.n("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+t()+"px;"}},_.n(_.r,{cond:function(){return K().carouselItems},
then:function(A){return _.n(_.p0,{each:A},function(h,C9){return _.n(_.mo,{data:function(){return h}},{carouselItemViewModel:function(Wo){return _.n(i_g,{data:Wo.data,
itemIndex:C9,selectedIndex:v,indexUpdatedCallback:m,observer:p,title:function(){a:{var $y=C9();var co,UZ=(co=K())==null?void 0:co.carouselTitles;if(UZ&&($y=UZ[$y])){var tH;$y=(tH=_.b($y,gd_))==null?void 0:tH.title;break a}$y=void 0}return $y}})}})})}}))))},"Jj"),"yt-video-metadata-carousel-view-model",{props:{data:_.M6}});var F_F=_.S("web_action_buttons_update_owner_width")?32:12,Ow=function(){var u=_.Q.apply(this,arguments)||this;u.isHovering=!1;u.enableColorSampling=_.S("web_delhi_colorful_sd");u.metadataBadgesInDescription=_.S("web_metadata_badges_in_description");u.descriptionCollapsed=!0;u.useFadedScrimDescription=_.S("kevlar_enable_faded_scrim_on_description");u.skinnyMode=!1;u.playlist=!1;u.isDark=document.documentElement.hasAttribute("dark");u.disableVideoOwnerOnTap=_.S("swatchie_video_owner_on_tap_ks");u.swatcherooDelayLoad=
_.S("swatcheroo_enable_ghost_cards");u.primaryMenuWidth=0;u.videoId="";u.titleHeadlineXs=_.S("web_watch_typography_title_headline_xs");u.titleHeadlineS=_.S("web_watch_typography_title_headline_s");u.titleHeadlineM=_.S("web_watch_typography_title_headline_m");u.titleHashtagBlackLinkified=_.S("web_title_hashtag_black_linkified");u.titleHashtagGreyLinkified=_.S("web_title_hashtag_grey_linkified");u.actionButtonsUpdateOwnerWidth=_.S("web_action_buttons_update_owner_width");u.shouldForceIconOnly=!1;u.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};u.isFullscreen=!1;u.isTheaterMode=!1;return u};
_.c(Ow,_.Q);_.I=Ow.prototype;_.I.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.I.updateOwnerAndDescriptionPosition=function(){_.S("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.J4(this.bottomRowElement,this.ownerElement)):(_.J4(this.bottomRowElement,this.descriptionElement),_.J4(this.topRowElement,this.ownerElement)))};
_.I.titleOnTap=function(u){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.rE(_.WF(u)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var K;((K=window.getSelection())==null?0:K.toString().length)||this.handleExpandDescriptionCommands()}};
_.I.videoOwnerOnTap=function(u){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.rE(_.WF(u)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.I.detached=function(){var u=this,K;return _.H(function(l){(K=u.resizeObserver)==null||K.disconnect();_.TG(l)})};
_.I.maybeAttachResizeObserver=function(){var u=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.MC(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){u.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.I.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var u=this.hostElement.clientWidth,K=Math.max(this.largerItemWrap?400:350,u/2-F_F);if(_.S("web_action_buttons_update_owner_width")){var l;K=(((l=document.getElementById("owner"))==null?void 0:l.clientWidth)||0)+F_F}this.actionsOnSeparateLine=this.primaryMenuWidth>u-K?!0:!1}};
_.I.stripAttributedDescription=function(u){return{content:u.content.replace(/[\r\n]{2,}/g,"\n")}};
_.I.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.S("web_modern_buttons"),forceIconButton:!_.S("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:_.S("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"}}}};
_.I.videoPrimaryInfoRendererChanged=function(){var u;if((u=this.videoPrimaryInfoRenderer)==null?0:u.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.I.videoSecondaryInfoRendererChanged=function(){var u,K;(K=(u=this.descriptionInlineExpander).collapse)==null||K.call(u);this.descriptionExpandClientVe=_.Yo(110509);this.descriptionCollapseClientVe=_.Yo(110510);u=_.AC();K=_.Yr();u&&K&&(_.S("combine_ve_grafts")?(_.RD(_.iT(),this.descriptionExpandClientVe,K),_.RD(_.iT(),this.descriptionCollapseClientVe,K)):_.dZ(u,K,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.I.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.I.updateTopLevelIconsOnly=function(){var u=this;_.S("top_level_update_killswitch")||this.menu&&_.YL.addLowPriorityJob(function(){u.menu.topLevelIconsOnly=u.skinnyMode},_.Sg("swathceroo_delay_flexible_menu_update",100))};
_.I.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.S("web_action_buttons_minimize_subscribe")};
_.I.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.I.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.I.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.I.onYtTextInlineExpanderExpandedChanged=function(){if(!_.S("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var u,K;(K=(u=this.structuredDescriptionContentRendererElement).resize)==null||K.call(u)}};
_.I.onRenderStamperFinished=function(u){(u==null?void 0:u.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.I.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.I.onYtExpanderLessTapped=function(){var u,K=(u=this.videoSecondaryInfoRenderer)==null?void 0:u.showLessCommand;K&&this.ytComponentBehavior.resolveCommand(K)};
_.I.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.I.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.I.onDescriptionClick=function(u){if(!_.rE(_.WF(u)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var K;((K=window.getSelection())==null?0:K.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.S("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.I.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.I.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.I.logCollapseClick=function(){var u=_.AC();u&&this.descriptionCollapseClientVe&&_.Wi(u,this.descriptionCollapseClientVe)};
_.I.logExpandClick=function(){var u=_.AC();u&&this.descriptionExpandClientVe&&_.Wi(u,this.descriptionExpandClientVe)};
_.I.collapseDescription=function(){this.descriptionCollapsed=!0};
_.I.scrollToTopOfContainer=function(){_.Sy(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.I.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.I.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.I.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.I.resize=function(){if(this.descriptionInlineExpander){var u,K;(K=(u=this.descriptionInlineExpander).resize)==null||K.call(u)}else _.hV(new _.wv("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var l;(l=this.menu)==null||l.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.S("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.I.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var u,K,l,D,d=_.S("web_action_buttons_update_owner_width")?(l=(u=_.bi(this.menu).querySelector("#button-shape"))==null?void 0:u.clientWidth)!=null?l:0:(D=(K=_.bi(this.menu).querySelector("#button"))==null?void 0:K.clientWidth)!=null?D:0,C,W;u=((W=(C=_.bi(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:C.clientWidth)!=null?W:0)+8+d;var M,q;d=(q=(M=_.bi(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:M.children.length)!=null?q:2;u<=8*d||(this.primaryMenuWidth=u)}};
_.I.onYtUpdateTitleAction=function(u){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.b(u,SwI).title)};
_.I.onYtUpdateDescriptionAction=function(u){if(u=_.b(u,_.LL0)){var K,l=!((K=this.videoSecondaryInfoRenderer)==null||!K.attributedDescription);u.isEmpty||!u.description&&!u.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):u.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",u.attributedDescription):u.description&&(l?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Ep(u.description)):this.set("videoSecondaryInfoRenderer.description",u.description))}};
_.I.onYtDarkModeToggledAction=function(u){this.isDark=u};
_.I.registerPanel=function(){if(!_.S("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var u=_.S("web_watch_imax_theater_mode")&&this.isTheaterMode;u=_.S("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||u;var K=_.GB().resolve(_.gP);K&&!u&&K.registerPanel("engagement-panel-structured-description",this)}};
_.I.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.I.parseColorSamplingData=function(){var u;if(_.S("web_delhi_colorful_sd")&&((u=this.structuredDescriptionContentRenderer)==null?0:u.items)&&(u=this.structuredDescriptionContentRenderer.items.find(function(d){return!!_.b(d,jq)}))){var K,l;
this.hoverColor={lightTheme:(K=_.b(u,jq))==null?void 0:K.lightThemeColorPalette,darkTheme:(l=_.b(u,jq))==null?void 0:l.darkThemeColorPalette};var D;this.hoverText=(D=_.b(u,jq))==null?void 0:D.colorSampledDescriptionBodyText}};
_.I.updateHoverColor=function(){if(_.S("web_delhi_colorful_sd")){var u=this.hoverColor,K={},l;u=(l=this.isDark?u==null?void 0:u.darkTheme:u==null?void 0:u.lightTheme)!=null?l:{};l=_.y(Q2X);for(var D=l.next();!D.done;D=l.next()){D=D.value;var d=u[D];K["--yt-saturated-"+_.Qi(D)]=d?_.Kg(d):"initial"}_.e8(this.hostElement,K)}};
_.I.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.I.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.I.showPanel=function(u){this.expandDescription();var K=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;K.resize();var l,D=u==null?void 0:(l=u.sectionListEngagementPanelExtras)==null?void 0:l.scrollToItemSectionIdentifier;D?_.YL.addJob(function(){K==null||K.scrollToSection(D)},8):this.scrollToTopOfContainer()};
_.I.isVisible=function(){return!this.descriptionCollapsed};
_.I.getReloadContinuation=function(){};
_.I.hidePanel=function(){};
_.I.updatePanel=function(){};
_.MN.Object.defineProperties(Ow.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var u;return _.S("web_delhi_colorful_sd")&&(u=this.structuredDescriptionContentRenderer)!=null&&u.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(K){return!_.b(K,jq)&&!_.b(K,c2k)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.structuredDescriptionContentRendererComputed)!=null&&u.items){var K;u=_.y((K=this.structuredDescriptionContentRendererComputed)==null?void 0:K.items);for(K=u.next();!K.done;K=u.next())if(K=_.b(K.value,_.mL0))return K}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.videoPrimaryInfoRenderer)==null?0:u.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return!!((u=this.videoSecondaryInfoRenderer)==null?0:(K=u.owner)==null?0:(l=K.videoOwnerRenderer)==null?0:l.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var u,K;if((u=this.videoSecondaryInfoRenderer)==null?0:(K=u.attributedDescription)==null?0:K.content){var l,D;return(D=this.stripAttributedDescription((l=this.videoSecondaryInfoRenderer)==null?void 0:l.attributedDescription))!=null?D:{runs:[]}}}if(_.S("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var d,C,W,M;return(M=(W=(d=this.videoSecondaryInfoRenderer)==
null?void 0:d.description)!=null?W:(C=this.videoSecondaryInfoRenderer)==null?void 0:C.attributedDescription)!=null?M:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var u,K;return(K=(u=this.videoSecondaryInfoRenderer)==null?void 0:u.headerRuns)!=null?K:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.commentsEntryPointHeaderRenderer)==null||!u.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.videoMetadataCarousel)==null||!u.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Sg("swatchie_desc_lines",3):this.hasTeaserCarousel?_.Sg("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var u,K,l=Object.assign({},(u=this.videoSecondaryInfoRenderer)==null?void 0:(K=u.metadataRowContainer)==null?void 0:K.metadataRowContainerRenderer);if(l&&l.rows&&l.collapsedItemCount!==void 0&&!(l.rows.length<=l.collapsedItemCount))return l.rows=l.rows.slice(l.collapsedItemCount),l.collapsedItemCount=0,l}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var u,K,l=Object.assign({},(u=this.videoSecondaryInfoRenderer)==null?void 0:(K=u.metadataRowContainer)==null?void 0:K.metadataRowContainerRenderer);if(l&&l.rows&&l.collapsedItemCount!==void 0)return l.rows=l.rows.slice(0,l.collapsedItemCount),l.collapsedItemCount=l.rows.length,l}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var u,K;return!!((u=this.structuredDescriptionContentRendererComputed)==null?0:(K=u.items)==null?0:K.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 u;return(u=this.videoSecondaryInfoRenderer)==null?void 0:u.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return((u=this.videoSecondaryInfoRenderer)==null?0:(K=u.owner)==null?0:(l=K.videoOwnerRenderer)==null?0:l.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D;return!!((u=this.videoPrimaryInfoRenderer)==null?0:(K=u.videoActions)==null?0:(l=K.menuRenderer)==null?0:(D=l.flexibleItems)==null?0:D.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.MI(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.MI(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var u=this;if(_.S("web_title_hashtag_grey_delinkified")){var K,l=_.k$.unsafeClone((K=this.videoPrimaryInfoRenderer)==null?void 0:K.title);(K=l==null?void 0:l.runs)&&K.forEach(function(D){if(D==null?0:D.navigationEndpoint)D.textColor=4284506208,u.isDark&&(D.textColor=4289374890)});
return l}return(l=this.videoPrimaryInfoRenderer)==null?void 0:l.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.S("web_title_hashtag_black_delinkified")||_.S("web_title_hashtag_grey_delinkified")}}});
Ow.prototype.updateHoverColor=Ow.prototype.updateHoverColor;Ow.prototype.parseColorSamplingData=Ow.prototype.parseColorSamplingData;Ow.prototype.resetDescriptionState=Ow.prototype.resetDescriptionState;Ow.prototype.registerPanel=Ow.prototype.registerPanel;Ow.prototype.onYtExpanderLessTapped=Ow.prototype.onYtExpanderLessTapped;Ow.prototype.onYtExpanderMoreTapped=Ow.prototype.onYtExpanderMoreTapped;Ow.prototype.onRenderStamperFinished=Ow.prototype.onRenderStamperFinished;
Ow.prototype.onYtTextInlineExpanderExpandedChanged=Ow.prototype.onYtTextInlineExpanderExpandedChanged;Ow.prototype.onYtTextInlineExpanderCollapseClicked=Ow.prototype.onYtTextInlineExpanderCollapseClicked;Ow.prototype.onYtTextInlineExpanderExpandClicked=Ow.prototype.onYtTextInlineExpanderExpandClicked;Ow.prototype.moveActionsElement=Ow.prototype.moveActionsElement;Ow.prototype.updateShouldForceIconOnly=Ow.prototype.updateShouldForceIconOnly;Ow.prototype.updateTopLevelIconsOnly=Ow.prototype.updateTopLevelIconsOnly;
Ow.prototype.structuredDescriptionContentRendererChanged=Ow.prototype.structuredDescriptionContentRendererChanged;Ow.prototype.videoSecondaryInfoRendererChanged=Ow.prototype.videoSecondaryInfoRendererChanged;Ow.prototype.videoPrimaryInfoRendererChanged=Ow.prototype.videoPrimaryInfoRendererChanged;Ow.prototype.maybeUpdateActionsOnSeparateLine=Ow.prototype.maybeUpdateActionsOnSeparateLine;Ow.prototype.updateOwnerAndDescriptionPosition=Ow.prototype.updateOwnerAndDescriptionPosition;
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Ow.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Ow.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.Ll),_.N("design:type",Object)],Ow.prototype,"ytdReduxBehavior",void 0);_.g([_.BF("#above-the-fold"),_.N("design:type",HTMLElement)],Ow.prototype,"aboveTheFoldContainer",void 0);_.g([_.BF("#menu ytd-menu-renderer"),_.N("design:type",Object)],Ow.prototype,"menu",void 0);_.g([_.BF("#description-inline-expander"),_.N("design:type",Object)],Ow.prototype,"descriptionInlineExpander",void 0);
_.g([_.BF("#faded-structured-description"),_.N("design:type",Object)],Ow.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.g([_.BF("#structured-description"),_.N("design:type",Object)],Ow.prototype,"structuredDescriptionContentRendererElement",void 0);_.g([_.BF("#title"),_.N("design:type",HTMLElement)],Ow.prototype,"titleElement",void 0);_.g([_.BF("#description"),_.N("design:type",HTMLElement)],Ow.prototype,"descriptionElement",void 0);
_.g([_.BF("#description-interaction"),_.N("design:type",Object)],Ow.prototype,"descriptionInteraction",void 0);_.g([_.BF("#owner"),_.N("design:type",HTMLElement)],Ow.prototype,"ownerElement",void 0);_.g([_.BF("#top-row"),_.N("design:type",HTMLElement)],Ow.prototype,"topRowElement",void 0);_.g([_.BF("#bottom-row"),_.N("design:type",HTMLElement)],Ow.prototype,"bottomRowElement",void 0);_.g([_.BF("#actions"),_.N("design:type",HTMLElement)],Ow.prototype,"actionsElement",void 0);
_.g([_.BF("#bottom-actions"),_.N("design:type",HTMLElement)],Ow.prototype,"bottomActionsElement",void 0);_.g([_.BF("#ytd-watch-info-text"),_.N("design:type",Object)],Ow.prototype,"watchInfoTextElement",void 0);_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"videoPrimaryInfoRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"videoSecondaryInfoRenderer",void 0);
_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"commentsEntryPointHeaderRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"videoMetadataCarousel",void 0);_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"structuredDescriptionContentRenderer",void 0);_.g([_.R("structuredDescriptionContentRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ow.prototype,"structuredDescriptionContentRendererComputed",null);
_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"videoSummary",void 0);_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"merchShelf",void 0);_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"infoPanelBelowMetadata",void 0);_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"hoverColor",void 0);_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"hoverText",void 0);_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"isHovering",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ow.prototype,"enableColorSampling",void 0);_.g([_.R("structuredDescriptionContentRendererComputed"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ow.prototype,"productShelf",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ow.prototype,"metadataBadgesInDescription",void 0);_.g([_.R("videoPrimaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ow.prototype,"shouldHideBadges",null);
_.g([_.R("productShelf","descriptionCollapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ow.prototype,"shouldShowProductShelf",null);_.g([_.U(),_.N("design:type",Boolean)],Ow.prototype,"isWatchFlexy",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ow.prototype,"descriptionCollapsed",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ow.prototype,"useFadedScrimDescription",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ow.prototype,"skinnyMode",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("videoSecondaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ow.prototype,"largerItemWrap",null);_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"playlist",void 0);_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"clarifyBox",void 0);_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"playerAds",void 0);
_.g([_.U(),_.N("design:type",Boolean)],Ow.prototype,"isDark",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ow.prototype,"actionsOnSeparateLine",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ow.prototype,"disableVideoOwnerOnTap",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ow.prototype,"swatcherooDelayLoad",void 0);_.g([_.U(),_.N("design:type",Boolean)],Ow.prototype,"suppressTopLevelMetadataRows",void 0);
_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"primaryMenuWidth",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ow.prototype,"videoId",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ow.prototype,"titleHeadlineXs",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ow.prototype,"titleHeadlineS",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ow.prototype,"titleHeadlineM",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ow.prototype,"titleHashtagBlackLinkified",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ow.prototype,"titleHashtagGreyLinkified",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ow.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.g([_.U(),_.N("design:type",Object)],Ow.prototype,"shouldForceIconOnly",void 0);
_.g([_.wn("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"updateOwnerAndDescriptionPosition",null);_.g([_.wn("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.g([_.R("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ow.prototype,"descriptionText",null);_.g([_.R("videoSecondaryInfoRenderer.headerRuns"),_.N("design:type",Array),_.N("design:paramtypes",[])],Ow.prototype,"headerRuns",null);
_.g([_.U({value:!1}),_.R("commentsEntryPointHeaderRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ow.prototype,"hasTeaser",null);_.g([_.U({value:!1,reflectToAttribute:!0}),_.R("videoMetadataCarousel"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ow.prototype,"hasTeaserCarousel",null);_.g([_.U({value:3}),_.R("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ow.prototype,"descriptionMaxLines",null);
_.g([_.R("videoSecondaryInfoRenderer.metadataRowContainer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ow.prototype,"collapsibleMetadataRows",null);_.g([_.R("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ow.prototype,"alwaysVisibleMetadataRows",null);
_.g([_.R("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ow.prototype,"hasInlineStructuredDescription",null);_.g([_.R("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ow.prototype,"showInlineStructuredDescription",null);
_.g([_.R("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ow.prototype,"descriptionExpandCommand",null);_.g([_.R("videoSecondaryInfoRenderer.owner"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ow.prototype,"videoOwnerCommand",null);_.g([_.U({reflectToAttribute:!0}),_.R("videoPrimaryInfoRenderer.videoActions"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ow.prototype,"flexMenuEnabled",null);
_.g([_.U({selector:_.K1,reflectToAttribute:!0}),_.N("design:type",Object)],Ow.prototype,"isFullscreen",void 0);_.g([_.U({selector:_.ue,reflectToAttribute:!0}),_.N("design:type",Object)],Ow.prototype,"isTheaterMode",void 0);_.g([_.R("descriptionText","useFadedScrimDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ow.prototype,"showAttributedStringDescription",null);
_.g([_.R("descriptionText","useFadedScrimDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ow.prototype,"showFormattedStringDescription",null);_.g([_.R("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ow.prototype,"showFadedStructuredDescription",null);
_.g([_.wn("videoPrimaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"videoPrimaryInfoRendererChanged",null);_.g([_.R("videoPrimaryInfoRenderer.title"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ow.prototype,"videoTitle",null);_.g([_.R("videoPrimaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ow.prototype,"noEndpoints",null);
_.g([_.wn("videoSecondaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"videoSecondaryInfoRendererChanged",null);_.g([_.JU("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"structuredDescriptionContentRendererChanged",null);
_.g([_.JU("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"updateTopLevelIconsOnly",null);_.g([_.JU("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"updateShouldForceIconOnly",null);_.g([_.JU("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"moveActionsElement",null);
_.g([_.PF("yt-text-inline-expander-expand-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"onYtTextInlineExpanderExpandClicked",null);_.g([_.PF("yt-text-inline-expander-collapse-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.g([_.PF("yt-text-inline-expander-expanded-changed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.g([_.PF("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Ow.prototype,"onRenderStamperFinished",null);
_.g([_.PF("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"onYtExpanderMoreTapped",null);_.g([_.PF("yt-expander-less-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"onYtExpanderLessTapped",null);
_.g([_.JU("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"registerPanel",null);_.g([_.JU("videoSecondaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"resetDescriptionState",null);
_.g([_.JU("structuredDescriptionContentRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"parseColorSamplingData",null);_.g([_.JU("hoverColor","isDark"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ow.prototype,"updateHoverColor",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Ow);
_.F(Ow,"ytd-watch-metadata",function(){if(fBF!==void 0)return fBF;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return fBF=u},{mode:2});_.XEg=function(u){_.TZ.call(this);this.JSC$22594_watchApi=u;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;VkS(this);gpS(this);NHQ(this);k6S(this);Z_Q(this);YoQ(this);AE9(this)};
_.c(_.XEg,_.TZ);var NHQ=function(u){var K=function(){_.S("kevlar_is_pupi_enabled")||cQ(u)};
u.JSC$22594_watchApi.getRoot().addEventListener("yt-player-updated",K);u.addOnDisposeCallback(function(){u.JSC$22594_watchApi.getRoot().removeEventListener("yt-player-updated",K)})},Z_Q=function(u){if(_.S("kevlar_endscreen_auto_theater_mode")){var K=u.JSC$22594_watchApi.subscribeToActiveChanged(function(){mpS(u)},!1);
u.addOnDisposeCallback(K)}},VkS=function(u){var K,l,D,d,C;
_.H(function(W){if(W.nextAddress==1)return W.yield(u.JSC$22594_watchApi.playerApi,2);K=W.yieldResult;l=function(M){M=!!M;ap(u)&&(M=M?2:1,_.v3.getInstance().setState(M,!0,!1))};
D=function(M){M&&_.A4G(_.Mu().getState())&&(_.Sy(u.JSC$22594_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),u.temporaryTheaterMode=!0)};
d=function(M){_.S("kevlar_player_update_autonav_on_new_data")&&M.type==="newdata"&&(_.S("kevlar_is_pupi_enabled")||cQ(u))};
C=function(M){u.onPlayerStateChange(M)};
_.S("kevlar_endscreen_auto_theater_mode")&&K.addEventListener("onAutonavCancelled",D);K.addEventListener("onAutonavChangeRequest",l);K.addEventListener("onVideoDataChange",d);K.addEventListener("onStateChange",C);u.addOnDisposeCallback(function(){K.removeEventListener("onAutonavChangeRequest",l);K.removeEventListener("onVideoDataChange",d);K.removeEventListener("onStateChange",C);_.S("kevlar_endscreen_auto_theater_mode")&&K.removeEventListener("onAutonavCancelled",D)});
_.TG(W)})},gpS=function(u){u.JSC$22594_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){u.autonavCancelledBySignal=!0;
_.S("kevlar_is_pupi_enabled")||cQ(u)});
u.JSC$22594_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(K,l,D){l&&cQ(u,D)});
u.JSC$22594_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){ap(u)&&_.v3.getInstance().setState(2,!0,!0)});
u.JSC$22594_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){ap(u)&&_.v3.getInstance().setState(1,!0,!0)});
u.addOnDisposeCallback(function(){u.JSC$22594_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");u.JSC$22594_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");u.JSC$22594_watchApi.unregisterActionHandler("yt-enable-autoplay-command");u.JSC$22594_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},k6S=function(u){var K=u.JSC$22594_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){AE9(u)}),l=u.JSC$22594_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){YoQ(u)});
u.addOnDisposeCallback(function(){u.JSC$22594_watchApi.unsubscribeByKey(K);u.JSC$22594_watchApi.unsubscribeByKey(l)})},AE9=function(u){u.autonavCancelledBySignal=!1;
_.S("kevlar_is_pupi_enabled")||cQ(u)},YoQ=function(u){var K=u.JSC$22594_watchApi.getWatchNextResponse(),l,D;
var d=(K=(D=_.b(K==null?void 0:(d=K.playerOverlays)==null?void 0:(l=d.playerOverlayRenderer)==null?void 0:l.autonavToggle,_.KHa))==null?void 0:D.enabled)?2:1;_.S("kevlar_is_pupi_enabled")?_.v3.getInstance().setState(d,!1,!1):cQ(u);_.S("web_persist_server_autonav_state_on_client")&&typeof K==="boolean"&&_.C1o(d===2)},ap=function(u){if(u.autonavCancelledBySignal)return!1;
var K,l,D,d;return!!((K=u.JSC$22594_watchApi.getWatchNextResponse())==null?0:(l=K.contents)==null?0:(D=l.twoColumnWatchNextResults)==null?0:(d=D.autoplay)==null?0:d.autoplay)};
_.XEg.prototype.onPlayerStateChange=function(u){if(u===0){u=!_.v3.getInstance().isAutoplaySetExplicitly();var K=this.JSC$22594_watchApi.getWatchNextResponse(),l,D,d,C;K=_.b(K==null?void 0:(l=K.contents)==null?void 0:(D=l.twoColumnWatchNextResults)==null?void 0:(d=D.autoplay)==null?void 0:(C=d.autoplay)==null?void 0:C.autoplayExplicitChoiceDialogRenderer,_.bPa);ap(this)&&u&&K&&_.Pb.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:K},popupType:"DIALOG"}})}else mpS(this)};
var mpS=function(u){u.temporaryTheaterMode&&(u.temporaryTheaterMode=!1,_.Sy(u.JSC$22594_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},cQ=function(u,K){K=K===void 0?!1:K;
var l;_.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$22594_watchApi.playerApi,2);l=D.yieldResult;ap(u)?l.setAutonavState(_.v3.getInstance().getState(),K):l.setAutonavState(1,K);_.TG(D)})};var hib={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"};_.L_9=function(u){_.TZ.call(this);var K=this;this.JSC$22599_watchApi=u;var l=this.JSC$22599_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Epu(K)});
this.addOnDisposeCallback(function(){K.JSC$22599_watchApi.unsubscribeByKey(l)});
Epu(this)};
_.c(_.L_9,_.TZ);var Epu=function(u){var K=u.JSC$22599_watchApi.getPlayerResponse(),l=u.JSC$22599_watchApi.getWatchNextResponse();if(!_.FO9(K==null?void 0:K.playabilityStatus,l==null?void 0:l.playerOverlays)){var D;var d=K==null?void 0:(D=K.playabilityStatus)==null?void 0:D.errorScreen}u.JSC$22599_watchApi.provideRenderingData("ERROR_SCREEN",d)};var uz5=_.rf(function(u){var K=u.data;u=_.S("web_watch_video_details_hide_subtitle");var l=_.S("web_watch_video_details_single_line_title"),D=_.p4(function(){var M=K().onTap;M&&_.GB().resolve(_.t9).resolveCommand(M)}),d={},C={},W={};
return _.n("yt-player-overlay-video-details-renderer",{class:_.JB("ytPlayerOverlayVideoDetailsRendererHost",(d.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.S("web_watch_video_details_transparent_background"),d)),"on:click":D,role:"button"},_.n("h2",{class:_.JB("ytPlayerOverlayVideoDetailsRendererTitle",(C.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return l},C))},_.n(_.qC,{text:function(){return K().title}})),_.n("div",{class:_.JB("ytPlayerOverlayVideoDetailsRendererSubtitle",
(W.ytPlayerOverlayVideoDetailsRendererHideSubtitle=u,W))},_.n(_.qC,{text:function(){return K().subtitle}})))},"Kj");var zv={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},KJ5=_.rf(function(u){var K=u.data;var l=_.Da(_.K1),D=_.S("web_watch_action_bar_resize_buttons"),d=_.S("delhi_modern_web_player_icons")&&!_.S("enable_web_delhi_icons"),C=function(){return D&&!l()?{size:"M"}:void 0};
u={};return _.n("yt-player-quick-action-buttons",{class:_.JB("ytPlayerQuickActionButtonsHost",(u.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!l()},u))},_.n(_.p0,{each:function(){if(d){var W=K();
W=JSON.parse(JSON.stringify(W));for(var M=_.y(W),q=M.next();!q.done;q=M.next()){var v=q.value,G=void 0;q=_.b((G=_.b(v,_.hW))==null?void 0:G.toggleButtonViewModel,_.Za);var t=void 0;G=_.b((t=_.b(v,_.mD))==null?void 0:t.toggleButtonViewModel,_.Za);t=_.b(v,_.kY);v=_.b(v,_.Za);if(q)G=_.b(q.defaultButtonViewModel,_.kY),q=_.b(q.toggledButtonViewModel,_.kY),G&&G.iconName&&(G.iconName=zv[G.iconName]),q&&q.iconName&&(q.iconName=zv[q.iconName]);else if(G)q=_.b(G.defaultButtonViewModel,_.kY),G=_.b(G.toggledButtonViewModel,
_.kY),q&&q.iconName&&(q.iconName=zv[q.iconName]),G&&G.iconName&&(G.iconName=zv[G.iconName]);else if(t)t.iconName&&(t.iconName=zv[t.iconName]);else if(v){q=_.b(v.defaultButtonViewModel,_.kY);G=_.b(v.toggledButtonViewModel,_.kY);v=void 0;if((v=q)==null?0:v.iconName)q.iconName=zv[q.iconName];q=void 0;if((q=G)==null?0:q.iconName)G.iconName=zv[G.iconName]}}}else W=K();return W}},function(W){return _.n(_.mo,{data:function(){return W}},{buttonViewModel:function(M){return _.n(_.P2,{data:M.data,
buttonOverrides:C})},
likeButtonViewModel:function(M){return _.n(_.hA,{data:M.data,buttonShapeOverrideables:C,disableIconAnimation:!0})},
dislikeButtonViewModel:function(M){return _.n(_.m9,{data:M.data,buttonShapeOverrideables:C})},
toggleButtonViewModel:function(M){return _.n(_.YK,{data:M.data,buttonShapeOverrides:C})}})}))},"Lj");_.D9S=function(u){_.TZ.call(this);var K=this;this.JSC$22604_watchApi=u;u=_.y(_.On({},void 0,"ufFdVc"));this.quickActionsViewModel=u.next().value;this.setQuickActionsViewModel=u.next().value;u=_.y(_.On({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=u.next().value;this.setPlayerOverlayVideoDetailsRenderer=u.next().value;var l=this.JSC$22604_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){lku(K)});
this.addOnDisposeCallback(function(){K.JSC$22604_watchApi.unsubscribeByKey(l)});
lku(this)};
_.c(_.D9S,_.TZ);
var lku=function(u){var K,l,D,d,C,W,M,q,v,G,t,x,O,a;_.H(function(f){if(f.nextAddress==1)return f.yield(u.JSC$22604_watchApi.playerApi,2);K=f.yieldResult;l=u.JSC$22604_watchApi.getWatchNextResponse();C=(D=l)==null?void 0:(d=D.playerOverlays)==null?void 0:d.playerOverlayRenderer;M=_.b((W=C)==null?void 0:W.fullscreenQuickActionsBar,_.DAA);(v=(q=u).setQuickActionsViewModel)==null||v.call(q,M||{});M&&d9M(u,K);x=(G=C)==null?void 0:(t=G.videoDetails)==null?void 0:t.playerOverlayVideoDetailsRenderer;(a=(O=
u).setPlayerOverlayVideoDetailsRenderer)==null||a.call(O,x||{});x&&C5b(u,K);_.TG(f)})},d9M=function(u,K){if(!u.quickActionButtonsContainer){u.quickActionButtonsContainer=document.createElement("div");
K.setFullscreenQuickActions(u.quickActionButtonsContainer);var l=function(){return u.quickActionsViewModel().quickActionButtons||[]},D=_.gi(u.quickActionButtonsContainer,function(){return _.n(KJ5,{data:l})});
u.addOnDisposeCallback(function(){K.setFullscreenQuickActions(void 0);D()})}},C5b=function(u,K){if(!u.playerOverlayVideoDetailsRendererContainer){u.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
K.setPlayerOverlayVideoDetailsRenderer(u.playerOverlayVideoDetailsRendererContainer);var l=_.gi(u.playerOverlayVideoDetailsRendererContainer,function(){return _.n(uz5,{data:u.playerOverlayVideoDetailsRenderer})});
u.addOnDisposeCallback(function(){K.setPlayerOverlayVideoDetailsRenderer(void 0);l()})}};_.eJ=function(u){_.TZ.call(this);var K=this;this.JSC$22609_watchApi=u;this.JSC$22609_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;u=_.iF(_.Mu(),_.K1,function(l){K.onFullscreenChanged(l)});
this.addOnDisposeCallback(u);u=_.iF(_.Mu(),_.a0,function(l){K.onWatchScroll(l)});
this.addOnDisposeCallback(u);_.S("kevlar_watch_while_v2")&&(u=_.iF(_.Mu(),_.X6,function(l){Iku(K,l)}),this.addOnDisposeCallback(u));
yXu(this);sQu(this);ouu();this.onWatchScroll(_.a0(_.Mu().getState()));_.L0("START_IN_FULL_WINDOW_MODE")&&this.JSC$22609_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.c(_.eJ,_.TZ);var yXu=function(u){u.JSC$22609_watchApi.registerActionHandler("yt-fullscreen-change-action",function(K){var l=u.JSC$22609_watchApi.isActive();K&&!l||_.Mu().dispatch(_.SZ({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!K}}))});
u.addOnDisposeCallback(function(){u.JSC$22609_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},sQu=function(u){var K,l;
_.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$22609_watchApi.playerApi,2);K=D.yieldResult;l=function(){u.onFullerscreenEduClicked()};
K.addEventListener("onFullerscreenEduClicked",l);u.addOnDisposeCallback(function(){K.removeEventListener("onFullerscreenEduClicked",l)});
_.TG(D)})};
_.eJ.prototype.onFullscreenChanged=function(u){var K=this,l;return _.H(function(D){if(D.nextAddress==1)return K.isFullscreen=!!_.rd(),D.yield(K.JSC$22609_watchApi.playerApi,2);l=D.yieldResult;K.JSC$22609_miniplayerActive||l.setFauxFullscreen(K.isFullscreen);if(u&&(K.JSC$22609_watchApi.focusOnPlayer(),!K.fullerscreenEduButtonShownThisPlayback)){K.fullerscreenEduButtonShownThisPlayback=!0;var d=_.f7("yt-fullerscreen-edu-button-shown-count")||0;_.Uj("yt-fullerscreen-edu-button-shown-count",d+1,31536E3);
K.updateFullerscreenEduButtonSubtleModeState()}_.TG(D)})};
var Iku=function(u,K){var l;_.H(function(D){if(D.nextAddress==1)return u.JSC$22609_miniplayerActive=K,D.yield(u.JSC$22609_watchApi.playerApi,2);l=D.yieldResult;l.setFauxFullscreen(!u.JSC$22609_miniplayerActive&&u.isFullscreen);_.TG(D)})};
_.eJ.prototype.onWatchScroll=function(u){var K=this,l,D;return _.H(function(d){if(d.nextAddress==1)return _.S("external_fullscreen_with_edu")?d.yield(K.JSC$22609_watchApi.playerApi,2):d.return();l=d.yieldResult;D=u<=0;K.shouldShowFullerscreenEdu!==D&&(K.shouldShowFullerscreenEdu=D,l.updateFullerscreenEduButtonVisibility(!K.shouldShowFullerscreenEdu));_.TG(d)})};
_.eJ.prototype.onFullerscreenEduClicked=function(){this.JSC$22609_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var u=_.f7("yt-fullerscreen-edu-button-click-count")||0;_.Uj("yt-fullerscreen-edu-button-click-count",u+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.eJ.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var u=this,K,l,D,d,C,W;return _.H(function(M){if(M.nextAddress==1)return K=_.f7("yt-fullerscreen-edu-button-click-count")||0,l=_.f7("yt-fullerscreen-edu-button-shown-count")||0,D=_.Sg("external_fullscreen_button_click_threshold"),d=_.Sg("external_fullscreen_button_shown_threshold"),C=K>=D||l>=d,M.yield(u.JSC$22609_watchApi.playerApi,2);W=M.yieldResult;W.updateFullerscreenEduButtonSubtleModeState(C);_.TG(M)})};
_.eJ.prototype.disposeInternal=function(){_.TZ.prototype.disposeInternal.call(this);var u=_.rd();_.S("kevlar_exit_fullscreen_leaving_watch")&&u&&_.v0(u)};
var ouu=function(){if(_.S("web_watch_add_viewport_meta_tag")){var u=document.querySelector("meta[name=viewport]"),K=document.head;K&&!u&&(u=document.createElement("meta"),u.name="viewport",u.content="width=device-width, initial-scale=1.0, viewport-fit=cover",K.appendChild(u))}};_.Rp=function(u){_.TZ.call(this);var K=this;this.JSC$22613_watchApi=u;this.jobId=0;this.pendingRequestId=void 0;var l=this.JSC$22613_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){WJJ(K)});
this.addOnDisposeCallback(function(){K.JSC$22613_watchApi.unsubscribeByKey(l)});
WJJ(this)};
_.c(_.Rp,_.TZ);var HMM=function(u){_.YL.cancelJob(u.jobId);u.pendingRequestId=void 0},WJJ=function(u){HMM(u);
var K=xqE(u.JSC$22613_watchApi.getWatchNextResponse());if(K){var l=250,D,d=(D=_.b(K,_.KKs))==null?void 0:D.initialDelayMs;_.S("web_watch_updated_metadata_server_initial_delay")&&d&&(l=d);u.jobId=_.YL.addLowPriorityJob(function(){return u.fetchUpdatedMetadata(K)},l)}};
_.Rp.prototype.fetchUpdatedMetadata=function(u,K){var l=this,D,d,C,W,M,q,v,G,t,x,O,a,f,B,p;return _.H(function(V){switch(V.nextAddress){case 1:K&&(D={continuation:K});if(!_.S("web_get_updated_metadata_fantasy_panel_continuation_params")){V.jumpTo(2);break}d=_.GB().resolve(_.gP);C="PAsports_fantasy";return V.yield(d.isVisible(C,!0),3);case 3:V.yieldResult&&(v=(M=(W=d).getUpdatePanelContinuationData)==null?void 0:(q=M.call(W,C))==null?void 0:q.updatePanelContinuationRequest)&&(D||(D={}),D.clientParams=
{panelContinuationParams:{panelContinuation:v}});case 2:G=_.GB().resolve(_.md);if(!G)return _.Xm(Error("to")),V.return();t={};l.pendingRequestId=t;return V.yield(_.HJ(G,u,D),4);case 4:x=V.yieldResult;if(t!==l.pendingRequestId)return V.return();f=(O=x)==null?void 0:(a=O.continuation)==null?void 0:a.timedContinuationData;((B=f)==null?0:B.continuation)&&((p=f)==null?0:p.timeoutMs)&&(l.jobId=_.YL.addLowPriorityJob(function(){return l.fetchUpdatedMetadata(u,f.continuation)},f.timeoutMs));
_.TG(V)}})};
_.Rp.prototype.disposeInternal=function(){_.TZ.prototype.disposeInternal.call(this);HMM(this)};var MF5=_.rf(function(u){var K=_.p4(function(){var D=u.data().videoId;if(u.active())D=_.vi(D),_.GB().resolve(_.t9).resolveCommand(D);else{var d=u.playerApi(),C=d.getAvailableAudioTracks(),W,M,q=(W=u.sourceVideoConfig().audioTracks)==null?void 0:(M=W.find(function(v){return v.isDefaultForSource}))==null?void 0:M.id;
if(C=C.find(function(v){return v.getLanguageInfo().getId()===q}))d.setAudioTrack(C,!0),d.setCompositeParam({activeVideoId:D}),u.setActiveSourceId(D)}}),l={};
return _.n("ytw-composite-source-video-overlay",{class:_.JB("ytwCompositeSourceVideoOverlayHost",(l.ytwCompositeSourceVideoOverlayActive=u.active,l.ytwCompositeSourceVideoOverlayInteracting=u.interacting,l)),style:_.Fb({left:function(){var D;return((D=u.data().topLeftCornerX)!=null?D:0)*100+"%"},
top:function(){var D;return((D=u.data().topLeftCornerY)!=null?D:0)*100+"%"},
width:function(){var D;return((D=u.data().width)!=null?D:0)*100+"%"},
height:function(){var D;return((D=u.data().height)!=null?D:0)*100+"%"}}),
"on:click":K},_.n("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Mj");var qSS=_.rf(function(u){var K=_.y(_.wY(function(){var W,M=(W=u.data().sources)==null?void 0:W.find(function(q){return q.isActive});
if(M)return M.videoId})),l=K.next().value,D=K.next().value;
K=_.y(_.On(!1,void 0,"WI4BUb"));var d=K.next().value,C=K.next().value;return _.n("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.p4(function(){C(!0)}),
"on:mouseout":_.p4(function(){C(!1)})},_.n(_.r,{cond:function(){return u.data().sources},
then:function(W){return _.n(_.p0,{each:W},function(M){return _.n(MF5,{data:M,active:function(){return M.videoId===l()},
setActiveSourceId:D,interacting:d,playerApi:u.playerApi,sourceVideoConfig:function(){return SIE(u.compositeVideoConfig(),M.videoId)}})})}}))},"Nj");_.rXQ=function(u){_.TZ.call(this);this.JSC$22629_watchApi=u;u=_.y(_.On({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=u.next().value;this.setCompositeVideoOverlayRenderer=u.next().value;u=_.y(_.On({},void 0,"U5hcq"));this.compositeVideoConfig=u.next().value;this.setCompositeVideoConfig=u.next().value;$9S(this);nuk(this)};
_.c(_.rXQ,_.TZ);var $9S=function(u){var K=u.JSC$22629_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){nuk(u)});
u.addOnDisposeCallback(function(){u.JSC$22629_watchApi.unsubscribeByKey(K)})},vuu=function(u){var K;
return _.H(function(l){if(l.nextAddress==1)return l.yield(u.JSC$22629_watchApi.playerApi,2);K=l.yieldResult;K.setCompositeVideoOverlayRendererComponent(u.container);_.TG(l)})},Ggu=function(u){var K;
return _.H(function(l){if(l.nextAddress==1)return l.yield(u.JSC$22629_watchApi.playerApi,2);K=l.yieldResult;K.setCompositeVideoOverlayRendererComponent(void 0);_.TG(l)})},tF5=function(u){var K,l;
return _.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$22629_watchApi.playerApi,2);K=D.yieldResult;u.container=document.createElement("div");l=_.gi(u.container,function(){return _.n(qSS,{data:u.compositeVideoOverlayRenderer,compositeVideoConfig:u.compositeVideoConfig,playerApi:K})});
u.addOnDisposeCallback(l);_.TG(D)})},nuk=function(u){var K,l,D,d,C,W,M,q;
_.H(function(v){return v.nextAddress==1?(K=u.JSC$22629_watchApi.getPlayerResponse(),C=_.b((l=K)==null?void 0:(D=l.overlay)==null?void 0:(d=D.playerControlsOverlayRenderer)==null?void 0:d.compositeVideoOverlay,H8H),q=(W=K)==null?void 0:(M=W.playerConfig)==null?void 0:M.compositeVideoConfig,C&&u.setCompositeVideoOverlayRenderer(C),q&&u.setCompositeVideoConfig(q),C&&q?u.container?v.jumpTo(6):v.yield(tF5(u),6):x9S(u)?v.yield(Ggu(u),0):v.jumpTo(0)):x9S(u)?v.jumpTo(0):v.yield(vuu(u),0)})},x9S=function(u){var K;
return!((K=u.container)==null||!K.parentElement)};
_.rXQ.prototype.disposeInternal=function(){x9S(this)&&Ggu(this);_.TZ.prototype.disposeInternal.call(this)};_.akb=function(u){_.TZ.call(this);var K=this;this.JSC$22635_watchApi=u;var l=this.JSC$22635_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var D=K.JSC$22635_watchApi.getPlayerResponse();if(D){var d,C;if(D=_.b((d=D.endscreen)==null?void 0:(C=d.endscreenRenderer)==null?void 0:C.hideButton,_.Za)){var W;(W=K.setEndscreenHideButton)==null||W.call(K,D);SSz(K)}}});
this.addOnDisposeCallback(function(){K.JSC$22635_watchApi.unsubscribeByKey(l)});
u=_.y(_.On({},void 0,"PPHRb"));this.endscreenHideButton=u.next().value;this.setEndscreenHideButton=u.next().value;bMb(this);OMS(this);cXQ(this)};
_.c(_.akb,_.TZ);var SSz=function(u){var K,l;_.H(function(D){if(D.nextAddress==1)return u.creatorEndscreenHideButtonContainer?D.return():D.yield(u.JSC$22635_watchApi.playerApi,2);K=D.yieldResult;u.creatorEndscreenHideButtonContainer=document.createElement("div");_.CI(u.creatorEndscreenHideButtonContainer,!1);K.setCreatorEndscreenHideButton(u.creatorEndscreenHideButtonContainer);l=_.gi(u.creatorEndscreenHideButtonContainer,function(){return _.n(_.YK,{data:u.endscreenHideButton,useOutlinedIcon:!0})});
u.addOnDisposeCallback(function(){l();var d;(d=K)==null||d.setCreatorEndscreenHideButton(void 0)});
_.TG(D)})},bMb=function(u){var K,l;
_.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$22635_watchApi.playerApi,2);K=D.yieldResult;l=function(){u.creatorEndscreenHideButtonContainer&&_.CI(u.creatorEndscreenHideButtonContainer,!0)};
K.addEventListener("endscreenelementshown",l);u.addOnDisposeCallback(function(){var d;(d=K)==null||d.removeEventListener("endscreenelementshown",l)});
_.TG(D)})},OMS=function(u){var K=function(){u.creatorEndscreenHideButtonContainer&&_.CI(u.creatorEndscreenHideButtonContainer,!1)},l=u.JSC$22635_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",K),D=u.JSC$22635_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",K);
u.addOnDisposeCallback(function(){u.JSC$22635_watchApi.unsubscribeByKey(l);u.JSC$22635_watchApi.unsubscribeByKey(D)})},cXQ=function(u){u.JSC$22635_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(K){var l=_.b(K,C$o);
u.JSC$22635_watchApi.playerApi.then(function(D){D==null||D.setCreatorEndscreenVisibility(!!l.hide)})});
u.addOnDisposeCallback(function(){u.JSC$22635_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.euu=function(u){_.TZ.call(this);this.JSC$22641_watchApi=u;zu5(this)};
_.c(_.euu,_.TZ);var zu5=function(u){var K,l;_.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$22641_watchApi.playerApi,2);K=D.yieldResult;l=function(d){_.Mu().dispatch(_.SZ({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:d}}))};
K.addEventListener("onRetroModeChanged",l);u.addOnDisposeCallback(function(){K.removeEventListener("onRetroModeChanged",l)});
_.TG(D)})};var fq=0,UT=0,Qc=0;var RuM;RuM=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Uw=function(u){_.TZ.call(this);this.JSC$22654_watchApi=u;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;U9J(this)};
_.c(_.Uw,_.TZ);
var U9J=function(u){var K,l,D;_.H(function(d){if(d.nextAddress==1)return d.yield(u.JSC$22654_watchApi.playerApi,2);K=d.yieldResult;if(u.isDisposed())return d.return();u.sessionStorage=_.nuB("yt-sleep-timer");u.sessionStorage||_.hV(new _.wv("SessionStorage for Sleep Timer is undefined."));((l=u.sessionStorage)==null?void 0:l.get("yt-sleep-timer"))==="true"&&(QnI(),(D=u.sessionStorage)==null||D.remove("yt-sleep-timer"),K.syncVolume());fkS(u,K);QQX(u,K);P55(u,K);_.TG(d)})},fkS=function(u,K){var l=function(v){u.onSleepTimerSettingsChanged(v,
K)},D=function(v){u.onPlayerStateChange(v,K)},d=function(){u.onLoopChange(K)},C=function(){u.onCloseMiniplayer(K)},W=function(){e$G(K,(0,_.vA)(),P7o(K),u.selectedOption==="End of video",K.getPlayerState()!==1)},M=function(){u.onSeekComplete(K)},q=function(){_.YL.cancelJob(UT);
var v=K.getCurrentTime()>=K.getDuration(),G=u.selectedOption==="End of video"||u.selectedOption==="End of playlist"&&!czG(u.playlistId);v&&G&&JXJ(u,K)};
K.addEventListener("onSleepTimerSettingsChanged",l);K.addEventListener("onLoopChange",d);K.addEventListener("onLoopRangeChange",d);K.addEventListener("onStateChange",D);K.addEventListener("onCloseMiniplayer",C);K.addEventListener("onSleepTimerFeatureAvailable",W);K.addEventListener("SEEK_COMPLETE",M);K.addEventListener("onAdStart",q);u.addOnDisposeCallback(function(){K.removeEventListener("onSleepTimerSettingsChanged",l);K.removeEventListener("onLoopChange",d);K.removeEventListener("onLoopRangeChange",
d);K.removeEventListener("onStateChange",D);K.removeEventListener("onCloseMiniplayer",C);K.removeEventListener("onSleepTimerFeatureAvailable",W);K.removeEventListener("SEEK_COMPLETE",M);K.removeEventListener("onAdStart",q)})},QQX=function(u,K){var l=u.JSC$22654_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var D=K.getVideoData().video_id,d,C=(d=bO2(u.JSC$22654_watchApi))==null?void 0:d.playlistId;
u.pauseAutonavPlayback&&(K.pauseVideo(),K.syncVolume(),u.pauseAutonavPlayback=!1);if(u.selectedOption==="End of video"&&D!==u.videoId)f8(u,K);else{if(u.selectedOption==="End of playlist"){d=czG(u.playlistId);if(C!==u.playlistId){f8(u,K);break a}d?d&&jQg(u,K):Bbz(u,K)}u.videoId=D;u.playlistId=C}}});
u.addOnDisposeCallback(function(){u.JSC$22654_watchApi.unsubscribeByKey(l)})},P55=function(u,K){var l=_.GB().resolve(_.lf),D=_.iF(l,_.btb,function(C){C&&u.selectedOption!=="Off"&&f8(u,K)}),d=u.JSC$22654_watchApi.subscribeToActiveChanged(function(C){var W,M;
return _.H(function(q){if(q.nextAddress==1)return q.yield(_.B3().navigationFinishPromise,2);W=!_.n_m();M=_.GB().resolve(_.uD).isMiniplayerActive();C||!R0(u.selectedOption)||M||W||f8(u,K);_.TG(q)})},!1);
l=_.iF(l,function(C){return C.entities.playlistLoopStateEntity||{}},function(C){C=C===void 0?{}:C;
var W=OO_(u.JSC$22654_watchApi);if(W){var M;((M=C[W])==null?void 0:M.state)==="PLAYLIST_LOOP_STATE_ALL"&&R0(u.selectedOption)&&f8(u,K)}});
u.addOnDisposeCallback(D);u.addOnDisposeCallback(l);u.addOnDisposeCallback(d)};
_.Uw.prototype.onSleepTimerSettingsChanged=function(u,K){switch(u){case "Off":this.selectedOption!=="Off"&&f8(this,K);break;case "End of video":case "End of playlist":prF(this,u,K);break;default:prF(this,u,K,RuM.get(u))}};
_.Uw.prototype.onLoopChange=function(u){(u.getLoopVideo()||u.getLoopRange())&&R0(this.selectedOption)&&f8(this,u)};
_.Uw.prototype.onCloseMiniplayer=function(u){R0(this.selectedOption)&&f8(this,u)};
var prF=function(u,K,l,D){iM5(u,l);u.selectedOption=K;u.videoId=l.getVideoData().video_id;u.playlistId="";var d;(d=u.sessionStorage)==null||d.set("yt-sleep-timer","true");u.adjustmentsCount++;e$G(l,(0,_.vA)(),P7o(l),u.selectedOption==="End of video");if(u.selectedOption==="End of video")Bbz(u,l),Tb9(u,l);else if(u.selectedOption==="End of playlist"){Tb9(u,l);var C,W;u.playlistId=(W=(C=bO2(u.JSC$22654_watchApi))==null?void 0:C.playlistId)!=null?W:"";czG(u.playlistId)||Bbz(u,l)}else D&&(u.presetFadeSchedulerId=
_.Vo(_.YL,function(){UqE(l,15E3)},D-15E3),u.presetPauseSchedulerId=_.Vo(_.YL,function(){JXJ(u,l)},D),R$2(l,(0,_.vA)(),D))},JXJ=function(u,K){if(u.JSC$22654_watchApi.isActive()){var l={dismissDialogEndpoint:{}};
var D={commandExecutorCommand:{commands:[l,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};l={buttonViewModel:{title:_.QQ("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:l}}};D={buttonViewModel:{title:_.QQ("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:D}}};var d={dialogHeaderViewModel:{headline:{content:_.QQ("SLEEP_TIMER_ENDED_TITLE")}}},
C={basicContentViewModel:{paragraphs:[{text:{content:_.QQ("SLEEP_TIMER_ENDED_TEXT")}}]}};l={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:d,content:C,footer:{panelFooterViewModel:{primaryButton:l,secondaryButton:D,shouldHideDivider:!0}}}}}}};_.GB().resolve(_.t9).resolveCommand(l,{form:{element:u}})}else QnI();wrJ(u,!1);FJS(u,K);K.pauseVideo();_.v3.getInstance().getState()===2&&K.getPlayerState()===5&&(u.pauseAutonavPlayback=!0)},f8=function(u,K){wrJ(u,!0);
FJS(u,K);QnI()},FJS=function(u,K){iM5(u,K);
u.selectedOption="Off";u.videoId="";u.playlistId="";u.adjustmentsCount=0;var l;(l=u.sessionStorage)==null||l.remove("yt-sleep-timer");_.YL.cancelJob(fq);K.resetSleepTimerMenuSettings()},wrJ=function(u,K){K={timer_length_adjustment_times_during_session:u.adjustmentsCount-1,
is_session_cancelled:K};switch(u.selectedOption){case "Off":K.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":K.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":K.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:K.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",K.option_duration_in_minutes=RuM.get(u.selectedOption)/6E4}_.YE("sleepTimerSessionFinishEvent",K)};
_.Uw.prototype.onPlayerStateChange=function(u,K){u===1?e$G(K,(0,_.vA)(),P7o(K),this.selectedOption==="End of video"):u===0?(_.YL.cancelJob(UT),K.setVideoTimeLeft(z$_(0,0))):u===2&&_.YL.cancelJob(UT);this.selectedOption==="End of video"?u===0?JXJ(this,K):u===2&&fQI(K):this.selectedOption!=="End of playlist"||czG(this.playlistId)||(u===0?JXJ(this,K):u===2&&fQI(K))};
_.Uw.prototype.onSeekComplete=function(u){u.getPlayerState()===2&&e$G(u,(0,_.vA)(),P7o(u),this.selectedOption==="End of video",!0)};
_.Uw.prototype.onCueRangeEnter=function(u,K){u==="sleep-timer-fade-audio"&&UqE(K,(K.getDuration()-K.getProgressState().current)*1E3)};
_.Uw.prototype.onCueRangeExit=function(u,K){u==="sleep-timer-fade-audio"&&K.getPlayerState()!==0&&fQI(K,!0)};
var Bbz=function(u,K){K.addCueRange("sleep-timer-fade-audio",K.getDuration()-15,K.getDuration());K.addEventListener("onCueRangeEnter",function(l){u.onCueRangeEnter(l,K)});
K.addEventListener("onCueRangeExit",function(l){u.onCueRangeExit(l,K)})},jQg=function(u,K){K.removeCueRange("sleep-timer-fade-audio");
K.removeEventListener("onCueRangeEnter",function(l){u.onCueRangeEnter(l,K)});
K.removeEventListener("onCueRangeExit",function(l){u.onCueRangeExit(l,K)})},iM5=function(u,K){R0(u.selectedOption)?jQg(u,K):(_.YL.cancelJob(u.presetPauseSchedulerId),_.YL.cancelJob(u.presetFadeSchedulerId),u.presetPauseSchedulerId=0,u.presetFadeSchedulerId=0);
fQI(K,!0)},Tb9=function(u,K){K.setLoop(!1);
K.setLoopVideo(!1);K.setLoopRange(null);(u=OO_(u.JSC$22654_watchApi))&&_.GB().resolve(_.lf).dispatch(_.TT("playlistLoopStateEntity",u,{key:u,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.kgg=function(u){_.TZ.call(this);this.JSC$22657_watchApi=u;VFJ(this);guQ(this);Nbg(this);u=u.getRoot();if(u.is==="ytd-watch-flexy"||u.is==="ytd-watch-grid")u.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.mz6();_.S("web_watch_log_theater_mode_cookie_state")&&_.jg.get("wide","0")==="1"&&_.v7r("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.c(_.kgg,_.TZ);var VFJ=function(u){var K,l;_.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$22657_watchApi.playerApi,2);K=D.yieldResult;l=function(d){ZMS(u,!!d)};
K.addEventListener("SIZE_CLICKED",l);u.addOnDisposeCallback(function(){K.removeEventListener("SIZE_CLICKED",l)});
_.TG(D)})},guQ=function(u){u.JSC$22657_watchApi.registerActionHandler("yt-toggle-theater-mode",function(K,l){ZMS(u,K,l===void 0?!0:l)});
u.addOnDisposeCallback(function(){u.JSC$22657_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.kgg.prototype.getState=function(){return _.ue(_.Mu().getState())};
var ZMS=function(u,K,l){l=l===void 0?!0:l;var D,d,C,W=_.S("enable_player_resize_transition")&&!!u.JSC$22657_watchApi.getWatchNextResponse()&&!((D=u.JSC$22657_watchApi.getWatchNextResponse())==null?0:(d=D.contents)==null?0:(C=d.twoColumnWatchNextResults)==null?0:C.conversationBar);_.vVp(function(){_.Mu().dispatch(_.SZ({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:K}}));_.S("theater_mode_scroll_to_top_killswitch")||u.JSC$22657_watchApi.scrollWatchTo(0,!1);_.rd()&&_.S("external_fullscreen")&&_.v0(document.documentElement);
Nbg(u);l&&_.Bv("wide",K?"1":"0",-1);_.Sy(u.JSC$22657_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);u.JSC$22657_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:K});K&&_.mz6()},{shouldWrap:W})},Nbg=function(u){var K;
_.H(function(l){if(l.nextAddress==1)return l.yield(u.JSC$22657_watchApi.playerApi,2);K=l.yieldResult;K.setSizeStyle(!0,u.getState());_.TG(l)})};var XrQ=function(u){_.TZ.call(this);var K=this;this.playerApi=u;this.timeToPanelSyncKeyMap={};var l;if(u==null?0:(l=u.isReady)==null?0:l.call(u)){l=_.iF(_.GB().resolve(_.lf),function(d){return d.entities.timedMarkersListSyncEntity||{}},function(d,C){d=d===void 0?{}:d;
C=C===void 0?{}:C;for(var W=_.y(Object.keys(C)),M=W.next();!M.done;M=W.next())M=M.value,d[M]!==C[M]&&YSg(K,C[M]);C=_.y(Object.keys(d));for(W=C.next();!W.done;W=C.next())W=W.value,M=d[W],K.timeToPanelSyncKeyMap[W]&&AX5(K,M)});
this.addOnDisposeCallback(l);var D=function(d){K.onCueRangeEnter(d)};
u.addEventListener("onCueRangeEnter",D);this.addOnDisposeCallback(function(){var d;(d=u.removeEventListener)==null||d.call(u,"onCueRangeEnter",D)})}};
_.c(XrQ,_.TZ);
var AX5=function(u,K){var l,D;if((l=u.playerApi)==null?0:(D=l.isReady)==null?0:D.call(l)){var d;if((l=K==null?void 0:(d=K.timedListData)==null?void 0:d.sections)&&K!=null&&K.key)for(d=_.y(l),l=d.next();!l.done;l=d.next())if(l=l.value,l.timedSyncDataList&&l.sectionId)for(D=0;D<l.timedSyncDataList.length;D++){var C=l.timedSyncDataList[D];C.syncItemId&&u.playerApi.addCueRange(l.sectionId+"_"+K.key+"_"+C.syncItemId,Number(C.videoTimeMs)/1E3,D===l.timedSyncDataList.length-1?0x8000000000000:Number(l.timedSyncDataList[D+
1].videoTimeMs)/1E3)}}},YSg=function(u,K){var l,D;
if((l=u.playerApi)==null?0:(D=l.isReady)==null?0:D.call(l)){var d;if((l=K==null?void 0:(d=K.timedListData)==null?void 0:d.sections)&&K!=null&&K.key)for(d=_.y(l),l=d.next();!l.done;l=d.next())if(l=l.value,l.timedSyncDataList&&l.sectionId){D=_.y(l.timedSyncDataList);for(var C=D.next();!C.done;C=D.next())C=C.value,C.syncItemId&&u.playerApi.removeCueRange(l.sectionId+"_"+K.key+"_"+C.syncItemId)}}};
XrQ.prototype.onCueRangeEnter=function(u){for(var K=_.y(Object.keys(this.timeToPanelSyncKeyMap)),l=K.next();!l.done;l=K.next()){l=l.value;var D=_.y(u.split("_"+l+"_")),d=D.next().value;D=D.next().value;if(d&&D){u=_.GB().resolve(_.lf);K=this.timeToPanelSyncKeyMap[l];var C=_.MCh(u.getState(),K);l=m95(l,d,D);if(l===-1)break;l={activeSyncId:D,activeItemIndex:l,activeSectionInfo:{sectionIdentifier:d}};C?u.dispatch(_.EL("markersEngagementPanelSyncEntity",K,l)):u.dispatch(_.TT("markersEngagementPanelSyncEntity",
K,Object.assign({},{key:K},l)));break}}};
var m95=function(u,K,l){var D=_.GB().resolve(_.lf),d,C;u=(d=Vqi(D.getState(),u))==null?void 0:(C=d.timedListData)==null?void 0:C.sections;if(!u)return-1;d=0;C=_.y(u);for(u=C.next();!u.done;u=C.next()){u=u.value;D=u.timedSyncDataList||[];if(u.sectionId===K)return K=D.findIndex(function(W){return W.syncItemId===l}),K===-1?K:d+K;
d+=D.length}return-1};_.LJu=function(u){_.TZ.call(this);var K=this;this.JSC$22670_watchApi=u;this.unresolvedCommands=[];this.JSC$22670_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(l){huS(K,l)});
this.addOnDisposeCallback(function(){K.JSC$22670_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
EuM(this)};
_.c(_.LJu,_.TZ);var EuM=function(u){var K;_.H(function(l){if(l.nextAddress==1)return l.yield(u.JSC$22670_watchApi.playerApi,2);K=l.yieldResult;if(u.isDisposed())return l.return();u.timedSyncObserver=new XrQ(K);u.unresolvedCommands.length&&(u.unresolvedCommands.forEach(function(D){return huS(u,D)}),u.unresolvedCommands=[]);
_.eb(u,u.timedSyncObserver);_.TG(l)})},huS=function(u,K){if(u.timedSyncObserver){var l=_.b(K,y26);
if(l&&l.timedSyncEntityKey&&l.panelSyncEntityKey){u=u.timedSyncObserver;K=l.timedSyncEntityKey;var D=l.panelSyncEntityKey;l=!!l.isEnabled;l=l===void 0?!0:l;var d=_.GB().resolve(_.lf);d=Vqi(d.getState(),K);l?u.timeToPanelSyncKeyMap[K]||(u.timeToPanelSyncKeyMap[K]=D,AX5(u,d)):(delete u.timeToPanelSyncKeyMap[K],YSg(u,d))}}else u.unresolvedCommands.push(K)};var unF=_.rf(function(u){var K=u.data,l=u.maybeLogSmartSkipClientData,D=null,d=null,C=_.S("web_enable_auto_focus_for_timely_action_button"),W=function(){D=document.activeElement},M=function(){K().smartSkipMetadata&&(D=document.activeElement,_.zTV(function(){return d}))},q=function(G){if(K().smartSkipMetadata&&(!G||G.key!=="Enter")){D&&D.isConnected&&(_.zTV(function(){return D}),D=null);
var t;(t=d)==null||t.blur()}};
u=_.p4(function(){l==null||l(!0,K());return!1});
var v=_.v1(_.DS(function(){return K().rendererContext},{onTap:function(G,t){t({disableClickTracking:!0})}}),_.r_({visibilityCallback:function(G){if(C)G?d&&K().smartSkipMetadata&&(M(),document.addEventListener("focusin",W)):(document.removeEventListener("focusin",W),q());
else if(G){G=_.Kz(K().rendererContext);var t=Number(K().maxVisibleDurationMilliseconds),x,O=(x=_.b(K().rendererContext,_.T8))==null?void 0:x.label;G&&t&&O&&(x={label:O,command:G,durationMs:t},_.GB().resolve(_.JG).enqueue(x))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.N_(function(){if(C){var G;if((d=(G=v.value)==null?void 0:G.querySelector("button"))&&K().smartSkipMetadata){var t;(t=v.value)==null||t.addEventListener("keydown",q)}}});
_.No(function(){C&&(d&&K().smartSkipMetadata&&d.removeEventListener("keydown",q),document.removeEventListener("focusin",W),q())});
return _.n("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:v,"on:click":u},_.n(_.mo,{data:function(){return K().content}},{buttonViewModel:_.P2}))},"Oj");var KWF=_.rf(function(u){var K=u.data,l=u.playerApi,D=_.GB().resolve(_.H92);u=_.y(_.wY(function(){K()}));
var d=u.next().value,C=u.next().value,W=function(){return jnH(K(),d())},M=function(v,G){var t,x,O=(t=_.b(G==null?void 0:G.rendererContext,_.TW))==null?void 0:(x=t.loggingDirectives)==null?void 0:x.trackingParams;
if((G=G==null?void 0:G.smartSkipMetadata)&&G.loggingData&&(x=G.loggingData,G=x.algorithmId,t=x.startMilliseconds,x=x.endMilliseconds,G&&t!==void 0&&x!==void 0)){var a,f;v={smartSkipData:Object.assign({},{versionName:G,startMediaTimeMs:t,endMediaTimeMs:x},v&&{userInteractionMediaTimeMs:(Math.floor(((a=_.xY())==null?void 0:(f=a.getPlayer())==null?void 0:f.getCurrentTime())||0)*1E3).toString()})};a=_.AC();var B;O&&(B=_.gf(O));a&&B&&_.MK(a,B,v)}},q=function(v,G){var t=jnH(K(),v);
if(t){var x=_.b(t,PC),O;if(O=G)O=l(),t=_.b(t,PC),O=t!=null&&t.smartSkipMetadata?!(O==null?0:O.isSameMarkerTypeVisible((t==null?void 0:t.smartSkipMetadata.markerKey)||"")):!0;if(O){var a,f;(x==null?0:(a=x.smartSkipMetadata)==null?0:(f=a.loggingData)==null?0:f.isCounterfactual)||(M(!1,x),C(v))}else G||d()!==v||C(void 0)}};
_.gp(function(){var v=K().timelyActions;if(v){v=_.y(v);for(var G=v.next();!G.done;G=v.next()){G=_.b(G.value,PC);var t=void 0;(t=G)!=null&&t.cueRangeId&&D.timelyActionsMap.set(G.cueRangeId,q)}_.No(function(){D.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.n("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.n(_.mo,{data:W},{timelyActionViewModel:function(v){return _.n(unF,{data:v.data,maybeLogSmartSkipClientData:function(){M(!0,_.b(W(),PC))}})}}))},"Pj");_.DTu=function(u){_.TZ.call(this);this.JSC$22682_watchApi=u;u=_.y(_.On({},void 0,"pLDp2"));this.timelyActionsOverlay=u.next().value;this.setTimelyActionsOverlay=u.next().value;lIg(this)};
_.c(_.DTu,_.TZ);var lIg=function(u){var K,l,D,d;_.H(function(C){if(C.nextAddress==1)return dT5(u),CYX(u),u.timelyActionsContainer=document.createElement("div"),C.yield(u.JSC$22682_watchApi.playerApi,2);K=C.yieldResult;(D=(l=K).insertTimelyActionUi)==null||D.call(l,u.timelyActionsContainer);d=_.gi(u.timelyActionsContainer,function(){return _.n(KWF,{data:u.timelyActionsOverlay,playerApi:K})});
u.addOnDisposeCallback(d);_.TG(C)})},CYX=function(u){var K=u.JSC$22682_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){dT5(u)});
u.addOnDisposeCallback(function(){u.JSC$22682_watchApi.unsubscribeByKey(K)})},dT5=function(u){var K=u.JSC$22682_watchApi.getWatchNextResponse();
if(K){var l,D;if(K=_.b((l=K.playerOverlays)==null?void 0:(D=l.playerOverlayRenderer)==null?void 0:D.timelyActionsOverlayViewModel,spk)){var d;(d=u.setTimelyActionsOverlay)==null||d.call(u,K)}}};_.ym9=function(u){_.TZ.call(this);this.JSC$22686_watchApi=u;IIg(this)};
_.c(_.ym9,_.TZ);var IIg=function(u){var K,l;_.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$22686_watchApi.playerApi,2);K=D.yieldResult;l=function(d){_.Pb.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.b(d,_.v8E)},popupType:"TOAST"}})};
K.addEventListener("onYtShowToast",l);u.addOnDisposeCallback(function(){K.removeEventListener("onYtShowToast",l)});
_.TG(D)})};var sSS,HHg,rmu,oPS,WWb,nPF,q2Q,$Tg,vPS,GG5;sSS=!1;_.Mjr=function(u){_.TZ.call(this);this.JSC$22689_watchApi=u;this.fullscreen=this.theater=!1;oPS(this);WWb(this);HHg(this)};
_.c(_.Mjr,_.TZ);HHg=function(u){var K,l,D;_.H(function(d){if(d.nextAddress==1)return d.yield(u.JSC$22689_watchApi.playerApi,2);K=d.yieldResult;if(u.isDisposed())return d.return();l=u.JSC$22689_watchApi.getElement("CINEMATICS");if(!l)return d.return();u.JSC$22689_cinematicController=new _.dQ(l,K);_.eb(u,u.JSC$22689_cinematicController);_.wxE(u.JSC$22689_cinematicController);q2Q(u,_.hky());D=u.JSC$22689_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(C){$Tg(u,C)});
u.addOnDisposeCallback(function(){u.JSC$22689_watchApi.unsubscribeByKey(D)});
nPF(u);$Tg(u,u.JSC$22689_cinematicController.isAllowed());_.S("web_cinematic_manager_redux_killswitch")?_.Qk(u,u.fullscreen,u.theater):rmu(u);vPS(u);_.TG(d)})};
rmu=function(u){u.fullscreen=_.K1(_.Mu().getState());u.theater=_.ue(_.Mu().getState());_.Qk(u,u.fullscreen,u.theater);var K=_.iF(_.Mu(),_.K1,function(D){u.fullscreen=D;_.Qk(u,u.fullscreen,u.theater)}),l=_.iF(_.Mu(),_.ue,function(D){u.theater=D;
_.Qk(u,u.fullscreen,u.theater)});
u.addOnDisposeCallback(K);u.addOnDisposeCallback(l)};
oPS=function(u){var K=u.JSC$22689_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){nPF(u)});
u.addOnDisposeCallback(function(){u.JSC$22689_watchApi.unsubscribeByKey(K)})};
WWb=function(u){var K,l;_.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$22689_watchApi.playerApi,2);K=D.yieldResult;l=function(d){q2Q(u,d)};
K.addEventListener("cinematicSettingsToggleChange",l);u.addOnDisposeCallback(function(){K.removeEventListener("cinematicSettingsToggleChange",l)});
_.TG(D)})};
nPF=function(u){var K=u.JSC$22689_watchApi.getWatchNextResponse(),l;K=_.b(K==null?void 0:(l=K.pageVisualEffects)==null?void 0:l[0],_.b_);var D;(D=u.JSC$22689_cinematicController)==null||_.V7_(D,K)};
q2Q=function(u,K){var l;(l=u.JSC$22689_cinematicController)==null||_.FkV(l,K);GG5(u)};
$Tg=function(u,K){var l;_.H(function(D){if(D.nextAddress==1)return _.S("kevlar_watch_cinematics_invisible")&&(K=!1),D.yield(u.JSC$22689_watchApi.playerApi,2);l=D.yieldResult;l.updateCinematicSettings(K);GG5(u);_.TG(D)})};
vPS=function(u){var K=_.jy();if(_.S("kevlar_measure_ambient_mode_idle")&&!K.getFlag(192)&&!sSS){sSS=!0;var l=_.Ve(_.YL,function(){_.GB().resolve(_.qSo).start(1E4)},5E3);
u.addOnDisposeCallback(function(){_.YL.cancelJob(l);_.GB().resolve(_.qSo).stop()})}};
_.Qk=function(u,K,l){u.fullscreen=K;u.theater=l;var D;(D=u.JSC$22689_cinematicController)==null||D.setFullscreen(u.fullscreen,u.theater);if(_.S("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(u.theater||u.fullscreen){var d;(d=u.JSC$22689_cinematicController)==null||_.g8k(d)}else if((u=u.JSC$22689_cinematicController)!=null){var C;(C=u.currentCinematicEffect)==null||C.pause()}};
GG5=function(u){if(_.S("web_cinematic_theater_mode")||_.S("web_cinematic_fullscreen")){var K;u.JSC$22689_watchApi.getRoot().toggleCinematicsActive(!((K=u.JSC$22689_cinematicController)==null||!K.isEnabled()))}};_.bHX=function(u){_.TZ.call(this);var K=this;this.JSC$22692_watchApi=u;this.commentsReady=!1;this.setCommentsJobId=0;u=_.iF(_.Mu(),_.a0,function(){tjF(K)});
this.addOnDisposeCallback(u);var l=this.JSC$22692_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){xTb(K)}),D=this.JSC$22692_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){xTb(K)});
this.addOnDisposeCallback(function(){K.JSC$22692_watchApi.unsubscribeByKey(l);K.JSC$22692_watchApi.unsubscribeByKey(D)});
var d=function(){_.S("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&S2g(K,"false")};
this.JSC$22692_watchApi.getRoot().addEventListener("yt-page-data-will-update",d);this.addOnDisposeCallback(function(){K.JSC$22692_watchApi.getRoot().removeEventListener("yt-page-data-will-update",d)});
xTb(this)};
_.c(_.bHX,_.TZ);var xTb=function(u){u.commentsReady=!1;_.YL.cancelJob(u.setCommentsJobId);u.setCommentsJobId=_.Ve(_.YL,function(){tjF(u)},1E3)},tjF=function(u){if(!u.commentsReady){_.As("cmi");
_.YL.cancelJob(u.setCommentsJobId);var K,l,D,d,C=(K=u.JSC$22692_watchApi.getWatchNextResponse())==null?void 0:(l=K.contents)==null?void 0:(D=l.twoColumnWatchNextResults)==null?void 0:(d=D.results)==null?void 0:d.results.contents;K=void 0;if(C&&C.length)for(C=_.y(C),l=C.next();!l.done;l=C.next())if(l=l.value,d=D=void 0,((D=l)==null?void 0:(d=D.itemSectionRenderer)==null?void 0:d.sectionIdentifier)==="comment-item-section"){_.S("web_watch_provide_undefined_comments")?K=l.itemSectionRenderer:u.JSC$22692_watchApi.provideRenderingData("COMMENTS",
l.itemSectionRenderer);S2g(u,"true");break}_.S("web_watch_provide_undefined_comments")&&u.JSC$22692_watchApi.provideRenderingData("COMMENTS",K);u.commentsReady=!0;u.JSC$22692_watchApi.dispatchEvent("yt-watch-comments-ready")}},S2g=function(u,K){var l;
(l=u.JSC$22692_watchApi.getElement("COMMENTS"))==null||l.setAttribute("canScheduleJobs",K)};_.BQ=function(u){_.TZ.call(this);var K=this;this.JSC$22695_watchApi=u;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.S("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.S("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.S("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Sg("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)OHS(this);
else{var l=this.JSC$22695_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){PQ(K);J2(K)}),D=this.JSC$22695_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){jJ(K);
J2(K)});
this.JSC$22695_watchApi.getRoot().is==="ytd-watch-grid"&&_.S("swatcheroo_pbs_load_grid")&&(cmg(this),aIr(this));this.addOnDisposeCallback(function(){K.JSC$22695_watchApi.unsubscribeByKey(l);K.JSC$22695_watchApi.unsubscribeByKey(D);_.YL.cancelJob(K.provideRichGridJobId)});
PQ(this);jJ(this)}};
_.c(_.BQ,_.TZ);var OHS=function(u){var K=u.JSC$22695_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){u.providePlayerJobId=_.Xf(_.YL,function(){PQ(u);J2(u)},u.provideAllDataDelayMs)}),l=u.JSC$22695_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){u.provideWatchNextJobId=_.Xf(_.YL,function(){jJ(u);
J2(u)},u.provideAllDataDelayMs)}),D=u.JSC$22695_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){u.provideWatchNextJobId=_.Xf(_.YL,function(){jJ(u);
J2(u)},u.provideAllDataDelayMs)});
u.JSC$22695_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Ve(_.YL,function(){PQ(u);jJ(u);J2(u)},100)});
u.JSC$22695_watchApi.addPageDisposeJob(function(){_.YL.cancelJob(u.provideWatchNextJobId);_.YL.cancelJob(u.providePlayerJobId)});
u.addOnDisposeCallback(function(){u.JSC$22695_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");u.JSC$22695_watchApi.unsubscribeByKey(K);u.JSC$22695_watchApi.unsubscribeByKey(l);u.JSC$22695_watchApi.unsubscribeByKey(D);_.YL.cancelJob(u.providePlayerJobId);_.YL.cancelJob(u.provideWatchNextJobId)});
PQ(u);jJ(u)},PQ=function(u){var K=u.JSC$22695_watchApi.getPlayerResponse(),l,D,d=(D=K==null?void 0:(l=K.playabilityStatus)==null?void 0:l.messageRenderers)!=null?D:[],C,W;
K=(W=K==null?void 0:(C=K.playabilityStatus)==null?void 0:C.messages)!=null?W:[];C=_.y(K);for(W=C.next();!W.done;W=C.next())d.push({alertRenderer:{text:_.o7(W.value),type:"WARNING"}});u.JSC$22695_watchApi.provideRenderingData("ALERTS",d)},jJ=function(u){var K=[],l,D,d,C=u.JSC$22695_watchApi.getWatchNextResponse(),W,M,q,v,G=C==null?void 0:(W=C.contents)==null?void 0:(M=W.twoColumnWatchNextResults)==null?void 0:(q=M.results)==null?void 0:(v=q.results)==null?void 0:v.contents;
if(G)for(W=_.y(G),M=W.next();!M.done;M=W.next())if(M=M.value,M.videoPrimaryInfoRenderer)var t=M;else if(M.videoSecondaryInfoRenderer){var x=M;v=q=void 0;M=Object.assign({},(q=M.videoSecondaryInfoRenderer)==null?void 0:(v=q.metadataRowContainer)==null?void 0:v.metadataRowContainerRenderer);if(M.rows&&M.collapsedItemCount!==void 0){M.rows=M.rows.slice(0,M.collapsedItemCount).filter(function(Vm){return!!Vm.richMetadataRowRenderer});
M.collapsedItemCount=M.rows.length;var O={metadataRowContainerRenderer:M}}}else if(M.merchandiseShelfRenderer)var a=M;else if(M.ticketShelfRenderer)var f=M;else if(M.expandableMetadataRenderer)var B=M;else if(M.itemSectionRenderer)if(q=M.itemSectionRenderer.contents,v=void 0,u.directlyProvideComments&&((v=M.itemSectionRenderer)==null?void 0:v.sectionIdentifier)==="comment-item-section")_.As("cmi"),u.JSC$22695_watchApi.provideRenderingData("COMMENTS",M.itemSectionRenderer);else if(q)for(M=_.y(q),q=
M.next();!q.done;q=M.next())if(q=q.value,q.commentsEntryPointHeaderRenderer)var p=q;else if(q.clarificationRenderer||q.infoPanelContainerRenderer||q.infoPanelContentRenderer||q.emergencyOneboxRenderer){K.push(q);var V=V||!!x}else q.limitedStateMessageRenderer?D=q:q.videoMetadataCarouselViewModel&&(d=q);if(_.S("web_watch_merch_in_sd_when_ticket_shelf_present")&&a&&f){var m=a;a=void 0}if(u.provideWatchNextSecondaryResults){var Z,A,h;u.JSC$22695_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
C==null?void 0:(Z=C.contents)==null?void 0:(A=Z.twoColumnWatchNextResults)==null?void 0:(h=A.secondaryResults)==null?void 0:h.secondaryResults)}if(u.JSC$22695_watchApi.getRoot().is==="ytd-watch-grid"){var C9,Wo;u.JSC$22695_watchApi.provideRenderingData("LIVE_CHAT",C==null?void 0:(C9=C.contents)==null?void 0:(Wo=C9.twoColumnWatchNextResults)==null?void 0:Wo.conversationBar)}var $y,co,UZ,tH;(Z=C==null?void 0:($y=C.contents)==null?void 0:(co=$y.twoColumnWatchNextResults)==null?void 0:(UZ=co.secondaryResults)==
null?void 0:(tH=UZ.secondaryResults)==null?void 0:tH.offerModule)&&(Z.donationShelfRenderer||Z.donationUnavailableRenderer)&&u.JSC$22695_watchApi.getRoot().is!=="ytd-watch-grid"&&(l=Z);$y=u.JSC$22695_watchApi.getPlayerResponse();if(!$y||!_.FO9($y.playabilityStatus,C==null?void 0:C.playerOverlays)){var gq;if(C==null?0:(gq=C.contents)==null?0:gq.singleColumnWatchNextResults){var Bo,uk;var ca=C==null?void 0:(Bo=C.contents.singleColumnWatchNextResults.results)==null?void 0:(uk=Bo.results)==null?void 0:
uk.contents}else{var Ha,hH,tR,ns;gq=!!(G==null?0:(Ha=G[0])==null?0:(hH=Ha.itemSectionRenderer)==null?0:(tR=hH.contents)==null?0:(ns=tR[0])==null?0:ns.backgroundPromoRenderer);var Pa,QV;Ha=!!(C==null?0:(Pa=C.contents)==null?0:(QV=Pa.twoColumnWatchNextResults)==null?0:QV.secondaryResults);gq&&!Ha&&(ca=G)}}G=K[0];Pa=K[1];V&&K.length===1&&(Pa=G,G=void 0);u.JSC$22695_watchApi.provideRenderingData("PRIMARY_INFO",t);u.JSC$22695_watchApi.provideRenderingData("SECONDARY_INFO",x);u.JSC$22695_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
p);u.JSC$22695_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",d);u.JSC$22695_watchApi.provideRenderingData("CLARIFICATION",G);u.JSC$22695_watchApi.provideRenderingData("RICH_METADATA",O);u.JSC$22695_watchApi.provideRenderingData("MERCH_SHELF",a);_.S("web_watch_merch_in_sd_when_ticket_shelf_present")&&u.JSC$22695_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",m);u.JSC$22695_watchApi.provideRenderingData("TICKET_SHELF",f);u.JSC$22695_watchApi.provideRenderingData("LIMITED_STATE",D);u.JSC$22695_watchApi.getRoot().is!==
"ytd-watch-grid"&&u.JSC$22695_watchApi.provideRenderingData("DONATION_SHELF",l);u.JSC$22695_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",ca);u.JSC$22695_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Pa);u.JSC$22695_watchApi.provideRenderingData("EXPANDABLE_METADATA",B);if(u.swatcherooProvideAllDataOnScheduledJob){var Ls,yn,dN,OB,vE,Gw;t=C==null?void 0:(Ls=C.contents)==null?void 0:(yn=Ls.twoColumnWatchNextResults)==null?void 0:(dN=yn.secondaryResults)==null?void 0:(OB=dN.secondaryResults)==
null?void 0:(vE=OB.results)==null?void 0:(Gw=vE[0])==null?void 0:Gw.richGridRenderer;u.JSC$22695_watchApi.provideRenderingData("RICH_GRID_RENDERER",t)}};
_.BQ.prototype.hasCompanionAds=function(u){var K,l;return(l=u==null?void 0:(K=u.adPlacements)==null?void 0:K.some(function(D){var d,C,W,M;return(D==null?void 0:(d=D.adPlacementRenderer)==null?void 0:(C=d.renderer)==null?void 0:C.actionCompanionAdRenderer)||(D==null?void 0:(W=D.adPlacementRenderer)==null?void 0:(M=W.renderer)==null?void 0:M.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?l:!1};
var J2=function(u){if(!_.S("swaterdoo_ps_wn_handle_ks")){u.swatcherooProvideAllDataOnScheduledJob||aIr(u,3E3);var K=u.JSC$22695_watchApi.getPlayerResponse(),l,D,d,C,W,M=(l=u.JSC$22695_watchApi.getWatchNextResponse())==null?void 0:(D=l.contents)==null?void 0:(d=D.twoColumnWatchNextResults)==null?void 0:(C=d.secondaryResults)==null?void 0:(W=C.secondaryResults)==null?void 0:W.offerModule;K=u.hasCompanionAds(K);var q,v;l=(M==null?void 0:(q=M.tvfilmOfferModuleRenderer)==null?void 0:q.clientShouldSuppressIfCompanionAdDisplayed)||
(M==null?void 0:(v=M.unlimitedOfferModuleRenderer)==null?void 0:v.suppressIfCompanionAds);q=K&&l;u.JSC$22695_watchApi.getRoot().is==="ytd-watch-grid"&&u.JSC$22695_watchApi.provideRenderingData("OFFER_MODULE",q?void 0:M)}},aIr=function(u,K){_.S("swatcheroo_pbs_load_grid")&&(u.provideRichGridJobId&&_.YL.cancelJob(u.provideRichGridJobId),u.provideRichGridJobId=_.Xf(_.YL,function(){u.provideRichGridJobId=0;
var l,D,d,C,W,M,q,v=(l=u.JSC$22695_watchApi.getWatchNextResponse())==null?void 0:(D=l.contents)==null?void 0:(d=D.twoColumnWatchNextResults)==null?void 0:(C=d.secondaryResults)==null?void 0:(W=C.secondaryResults)==null?void 0:(M=W.results)==null?void 0:(q=M[0])==null?void 0:q.richGridRenderer;v&&u.JSC$22695_watchApi.provideRenderingData("RICH_GRID_RENDERER",v)},K))},cmg=function(u){var K,l;
_.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$22695_watchApi.playerApi,2);K=D.yieldResult;l=function(){u.onPlaybackStart()};
K.addEventListener("onPlaybackStartExternal",l);u.addOnDisposeCallback(function(){K.removeEventListener("onPlaybackStartExternal",l)});
_.TG(D)})};
_.BQ.prototype.onPlaybackStart=function(){aIr(this)};_.e3b=function(u){_.TZ.call(this);var K=this;this.JSC$22705_watchApi=u;u.playerApi.then(function(l){K.player=l});
this.gestures=new _.on(this.JSC$22705_watchApi.getRoot(),u.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.Zq_(_.Mu().getState())&&_.a0(_.Mu().getState())<=0)if(_.K1(_.Mu().getState())){var l;(l=K.player)==null||l.toggleFullscreen()}else _.Sy(K.JSC$22705_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
z3M(this)};
_.c(_.e3b,_.TZ);var z3M=function(u){var K=_.iF(_.Mu(),_.K1,function(l){u.onFullscreenChanged(l)});
u.addOnDisposeCallback(K);K=_.iF(_.Mu(),_.a0,function(l){u.gestures&&(l>0?u.gestures.detach():u.gestures.attach())});
u.addOnDisposeCallback(K)};
_.e3b.prototype.onFullscreenChanged=function(u){this.gestures&&this.gestures.update(u)};_.UTS=function(u){_.TZ.call(this);var K=this;this.JSC$22708_watchApi=u;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(u.subscribeToActiveChanged(function(l){K.onActiveChanged(l)}));
R3g(this)};
_.c(_.UTS,_.TZ);var fIM=function(u){if(_.S("swatcheroo_page_dispose_all_watch_data"))u.pageDisposalDataTypes=Object.values(hib).filter(function(l){return l!=="PLAYLIST"});
else if(_.S("swatcheroo_page_dispose_rich_grid")){var K;(K=u.pageDisposalDataTypes)==null||K.push("RICH_GRID_RENDERER")}},R3g=function(u){_.S("swatcheroo_enable_ghost_cards")&&(fIM(u),u.JSC$22708_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.YL.cancelJob(u.clearDataJobId);
u.clearDataJobId=0}),u.runPageDisposeJob=function(){var K=_.GB().resolve(_.GT).getDestinationPageType()==="watch";
u.clearDataJobId=_.Xf(_.YL,u.runClearDataJob,K?0:_.Sg("web_watch_delay_page_dispose_ms",1E4))},u.runClearDataJob=function(){QS5(u)},u.runOnYtNavigateAwayFinish=function(){u.clearDataJobId&&(_.YL.cancelJob(u.clearDataJobId),u.clearDataJobId=0,QS5(u))},document.addEventListener("yt-navigate-finish",u.runOnYtNavigateAwayFinish),u.JSC$22708_watchApi.addPageDisposeJob(u.runPageDisposeJob),u.addOnDisposeCallback(function(){u.JSC$22708_watchApi.removePageDisposeJob(u.runPageDisposeJob);
u.JSC$22708_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",u.runOnYtNavigateAwayFinish)}))},QS5=function(u){u.pageDisposalDataTypes.forEach(function(K){u.JSC$22708_watchApi.provideRenderingData(K,void 0)});
u.clearDataJobId=0};
_.UTS.prototype.onActiveChanged=function(u){u&&((u=document.querySelector("#watch-page-skeleton"))&&_.Jq(u),PYF(this),document.body.removeAttribute("no-y-overflow"),_.L0("IS_SHELL_LOAD")&&_.ToE())};
var PYF=function(u){_.H(function(K){if(K.nextAddress==1)return K.yield(u.JSC$22708_watchApi.playerApi,2);_.yU();_.TG(K)})};var Jm5;Jm5=_.S("kevlar_watch_while_counterfactual")?0:.25;_.p8=function(u){_.TZ.call(this);this.JSC$22711_watchApi=u;this.JSC$22711_watchWhileEnabled=_.S("kevlar_watch_while_v2");this.pipEnabled=_.S("web_enable_pip_on_miniplayer");jSr(this);BmS(this);pZS(this)};
_.c(_.p8,_.TZ);var jSr=function(u){u.JSC$22711_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){iHX(u)});
u.addOnDisposeCallback(function(){u.JSC$22711_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},BmS=function(u){var K,l;
_.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$22711_watchApi.playerApi,2);K=D.yieldResult;l=function(){iHX(u)};
K.addEventListener("onCollapseMiniplayer",l);u.addOnDisposeCallback(function(){K.removeEventListener("onCollapseMiniplayer",l)});
_.TG(D)})},pZS=function(u){var K=u.JSC$22711_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&K&&u.JSC$22711_watchWhileEnabled&&(u.playerIntersectionObserver=new IntersectionObserver(function(l){u.handleIntersect(l)},{threshold:[Jm5]}),u.playerIntersectionObserver.observe(K),u.addOnDisposeCallback(function(){var l;
(l=u.playerIntersectionObserver)==null||l.disconnect()}))},iHX=function(u){var K,l,D;
_.H(function(d){if(d.nextAddress==1){K=_.GB().resolve(_.GT);l=K.data;D=_.ojZ(l.response,l.playerResponse);_.B3().miniplayerButtonActivation=!0;if(u.pipEnabled)return _.B3().watchPipActivation=!0,d.jumpTo(2);_.GB().resolve(_.uD).collapse();return d.yield(_.B3().navigationFinishPromise,2)}if(d.nextAddress!=4)return _.B3().currentEndpoint=D.watchEndpoint||null,d.yield(_.GB().resolve(_.uD).activate(u.JSC$22711_watchApi.getElement("PLAYER"),D,l),4);_.B3().userActivation=!0;_.TG(d)})};
_.p8.prototype.handleIntersect=function(u){Tmb(this,u[u.length-1])};
var Tmb=function(u,K){u.watchWhileJobId&&_.YL.cancelJob(u.watchWhileJobId);u.watchWhileJobId=_.YL.addLowPriorityJob(function(){var l,D;return _.H(function(d){if(d.nextAddress==1)return u.watchWhileJobId=void 0,l=_.GB().resolve(_.uD),K.intersectionRatio>Jm5?l.isMiniplayerActive()?d.yield(l.deactivate(),0):d.jumpTo(0):(D=!l.isMiniplayerActive())?d.yield(wZQ(u),5):d.jumpTo(4);d.nextAddress!=4&&(D=d.yieldResult);if(!D)return d.jumpTo(0);_.B3().watchWhileActivation=!0;return d.yield(FWr(u),0)})},100)},
wZQ=function(u){return _.H(function(K){return K.nextAddress==1?_.S("kevlar_watch_while_paused")?K.return(!0):K.yield(u.isPlayerPlaying(),2):K.return(K.yieldResult)})};
_.p8.prototype.isPlayerPlaying=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1)return l.yield(u.JSC$22711_watchApi.playerApi,2);K=l.yieldResult;return l.return(K.getPlayerStateObject().isPlaying)})};
var FWr=function(u){var K,l;return _.H(function(D){K=_.GB().resolve(_.GT).data;l=_.ojZ(K.response,K.playerResponse);_.B3().currentEndpoint=l.watchEndpoint||null;return D.yield(_.GB().resolve(_.uD).activate(u.JSC$22711_watchApi.getElement("PLAYER"),l,K),0)})};_.NmM=function(u){_.TZ.call(this);this.JSC$22715_watchApi=u;VjM(this);gP5(this)};
_.c(_.NmM,_.TZ);var gP5=function(u){var K,l;_.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$22715_watchApi.playerApi,2);K=D.yieldResult;l=function(d){var C;d.sessionData&&d.sessionData.itct&&(C=d.sessionData.itct);var W=d.watchEndpoint;if(W&&d.sessionData&&d.sessionData.autonav)W=_.jl9(W,C);else{var M;W=_.vi(d.videoId,(M=d.listId)!=null?M:void 0,C)}C={endpoint:W};d.sessionData&&(C.tempData=d.sessionData);u.JSC$22715_watchApi.dispatchEvent("yt-navigate",C)};
K.addEventListener("onPlayVideo",l);u.addOnDisposeCallback(function(){K.removeEventListener("onPlayVideo",l)});
_.TG(D)})},VjM=function(u){var K=function(l){u.onYtNavigate(l)};
u.JSC$22715_watchApi.getRoot().addEventListener("yt-navigate",K);u.addOnDisposeCallback(function(){u.JSC$22715_watchApi.getRoot().removeEventListener("yt-navigate",K)})};
_.NmM.prototype.onYtNavigate=function(u){var K=this,l,D,d,C,W,M,q,v,G;return _.H(function(t){if(t.nextAddress==1){if(!((l=u.detail)==null?0:(D=l.endpoint)==null?0:D.watchEndpoint))return t.return();d=u.detail.endpoint.watchEndpoint;C=K.JSC$22715_watchApi.getWatchNextResponse();M=_.b((W=C)==null?void 0:W.currentVideoEndpoint,_.oy);if(!M)return t.return();if(d.videoId!==M.videoId||d.playlistId&&d.playlistId!==M.playlistId||typeof d.startTimeSeconds!=="number")return t.jumpTo(0);u.stopPropagation();
(q=_.S("kevlar_watch_while_v2")&&!_.S("kevlar_watch_while_counterfactual"))&&_.GB().resolve(_.uD).isMiniplayerActive()||K.JSC$22715_watchApi.scrollWatchTo(0,!0);return t.yield(K.JSC$22715_watchApi.playerApi,3)}v=t.yieldResult;G=d.startTimeSeconds;v.seekTo(G,void 0,void 0,void 0,84);v.wakeUpControls();G<v.getDuration()&&v.playVideo();_.TG(t)})};_.ZHg=function(u){_.TZ.call(this);var K=this;this.JSC$22718_watchApi=u;var l=this.JSC$22718_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){kGz(K)});
this.addOnDisposeCallback(function(){K.JSC$22718_watchApi.unsubscribeByKey(l)});
kGz(this)};
_.c(_.ZHg,_.TZ);var kGz=function(u){var K=u.JSC$22718_watchApi.getWatchNextResponse();if(K){var l,D=[].concat(_.Am((l=K==null?void 0:K.engagementPanels)!=null?l:[]));D.unshift.apply(D,_.Am(Y2J(K)));u.JSC$22718_watchApi.provideRenderingData("ENGAGEMENT_PANELS",D)}},AmM=function(u){var K,l,D,d=(K=u.engagementPanels)==null?void 0:(l=K.find(function(O){var a;
return((a=O.engagementPanelSectionListRenderer)==null?void 0:a.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(D=l.engagementPanelSectionListRenderer.content)==null?void 0:D.structuredDescriptionContentRenderer,C;
if(_.b(d==null?void 0:(C=d.items)==null?void 0:C.find(function(O){return!!_.b(O,aEo)}),aEo))return!0;
var W,M,q,v;if(u=(((W=u.contents)==null?void 0:(M=W.twoColumnWatchNextResults)==null?void 0:(q=M.results)==null?void 0:(v=q.results)==null?void 0:v.contents)||[]).find(function(O){return O.videoPrimaryInfoRenderer})){var G,t,x;
return(((G=u.videoPrimaryInfoRenderer)==null?void 0:(t=G.videoActions)==null?void 0:(x=t.menuRenderer)==null?void 0:x.flexibleItems)||[]).some(function(O){O=_.b(O,_.cWm);if(!O)return!1;var a,f;O=(a=O.topLevelButton)==null?void 0:(f=a.buttonViewModel)==null?void 0:f.onTap;if(!O)return!1;a=_.lt(O);if(!a)return!1;var B;return((B=_.b(a,_.An))==null?void 0:B.panelIdentifier)==="PAyouchat"})}return!1},Y2J=function(u){var K=[];
if(!_.S("web_watch_inject_placeholder_fantasy_panel_killswitch")){var l,D,d,C=(l=u.engagementPanels)==null?void 0:(D=l.find(function(M){var q;return((q=M.engagementPanelSectionListRenderer)==null?void 0:q.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(d=D.engagementPanelSectionListRenderer.content)==null?void 0:d.structuredDescriptionContentRenderer,W;
_.b(C==null?void 0:(W=C.items)==null?void 0:W.find(function(M){return!!_.b(M,lE6)}),lE6)&&(l=_.eTq("PAsports_fantasy"),l.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",K.push(l))}AmM(u)&&(u=_.eTq("PAyouchat"),u.engagementPanelSectionListRenderer.targetId="PAyouchat",u.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",K.push(u));
return K};_.mTQ=function(u){_.TZ.call(this);this.JSC$22721_watchApi=u;XZ5(this)};
_.c(_.mTQ,_.TZ);var XZ5=function(u){u.JSC$22721_watchApi.registerActionHandler("yt-loop-command",function(K){h3S(u,K)});
u.JSC$22721_watchApi.registerActionHandler("yt-repeat-chapter-command",function(K){EPQ(u,K)});
u.addOnDisposeCallback(function(){u.JSC$22721_watchApi.unregisterActionHandler("yt-loop-command");u.JSC$22721_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},h3S=function(u,K){var l;
_.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$22721_watchApi.playerApi,2);l=D.yieldResult;_.b(K,dWi).loop?(l.setLoopRange({startTimeMs:Number(_.b(K,dWi).startTimeMs),endTimeMs:Number(_.b(K,dWi).endTimeMs),postId:_.b(K,dWi).postId,type:"clips"}),l.playVideo()):l.setLoopRange(null);_.TG(D)})},EPQ=function(u,K){var l,D;
_.H(function(d){if(d.nextAddress==1)return d.yield(u.JSC$22721_watchApi.playerApi,2);l=d.yieldResult;D=_.b(K,oCp).repeat;D==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(l.setLoopRange({startTimeMs:Number(_.b(K,oCp).startTimeMs),endTimeMs:Number(_.b(K,oCp).endTimeMs),type:"repeatChapter"}),l.playVideo()):D==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&l.setLoopRange(null);_.TG(d)})};_.uBX=function(u){_.TZ.call(this);this.JSC$22726_watchApi=u;LWu(this)};
_.c(_.uBX,_.TZ);var LWu=function(u){u.JSC$22726_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(K){KpX(u,K)});
u.addOnDisposeCallback(function(){u.JSC$22726_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},KpX=function(u,K){var l,D,d,C,W,M,q,v,G,t,x;
_.H(function(O){if(O.nextAddress==1)return O.yield(u.JSC$22726_watchApi.playerApi,2);l=O.yieldResult;if(C=(d=(D=_.b(K,Ws_))==null?void 0:D.highlightedMenuItemKey)!=null?d:"")(M=(W=l).highlightSettingsMenuItem)==null||M.call(W,C);if(G=(v=(q=_.b(K,Ws_))==null?void 0:q.openMenuItemKey)!=null?v:"")(x=(t=l).openSettingsMenuItem)==null||x.call(t,G);_.TG(O)})};var lMF=_.zI("/youtube/app/watch/player_state","playerStateEntity");_.d0g=function(u){_.TZ.call(this);this.JSC$22729_watchApi=u;D0b(this)};
_.c(_.d0g,_.TZ);var CQQ=function(u){switch(u){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"}},D0b=function(u){var K,l;
_.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$22729_watchApi.playerApi,2);K=D.yieldResult;l=function(d){u.onPlayerStateChange(d)};
K.addEventListener("onStateChange",l);u.addOnDisposeCallback(function(){K.removeEventListener("onStateChange",l)});
_.TG(D)})};
_.d0g.prototype.onPlayerStateChange=function(u){var K=this,l,D;return _.H(function(d){if(d.nextAddress==1)return d.yield(K.JSC$22729_watchApi.playerApi,2);l=d.yieldResult;D=l.getVideoData().video_id;_.Hb().dispatch(_.TT("playerStateEntity",lMF,{key:lMF,playerState:CQQ(u),videoId:D}));_.TG(d)})};_.yOr=function(u){_.TZ.call(this);var K=this;this.JSC$22733_watchApi=u;this.enableExternalPlaylistPanelInPlayer=_.S("delhi_web_player_use_external_playlist_panel");_.GB().resolve(_.lX).setPlayer(this.JSC$22733_watchApi.getElement("PLAYER"));u=this.JSC$22733_watchApi.subscribeToActiveChanged(function(l){K.onActiveChanged(l)});
this.addOnDisposeCallback(u);IMu(this)};
_.c(_.yOr,_.TZ);var IMu=function(u){var K,l;_.H(function(D){if(D.nextAddress==1)return u.enableExternalPlaylistPanelInPlayer?D.yield(u.JSC$22733_watchApi.playerApi,2):D.return();K=D.yieldResult;l=function(){if(u.playlistPanelElement)u.playlistPanelElement.onToggleExpanded()};
K.addEventListener("onToggleExternalPlaylistPanel",l);u.addOnDisposeCallback(function(){K.removeEventListener("onToggleExternalPlaylistPanel",l)});
_.TG(D)})};
_.yOr.prototype.onActiveChanged=function(u){var K=this,l=_.GB().resolve(_.lX),D=function(){sOu(K)};
u?(this.playlistPanelElement=this.JSC$22733_watchApi.getElement("PLAYLIST_PANEL"))?(l.setPlaylistComponent(this.playlistPanelElement),l.addEventListener("yt-playlist-data-updated",D),this.addOnDisposeCallback(function(){l.removeEventListener("yt-playlist-data-updated",D)}),sOu(this)):_.D_(Error("uo")):(l.removeEventListener("yt-playlist-data-updated",D),l.cancelVideoSkip())};
var sOu=function(u){var K=_.GB().resolve(_.lX);u.JSC$22733_watchApi.provideRenderingData("PLAYLIST",K.getPlaylistData())};_.i$=function(u){_.TZ.call(this);var K=this;this.JSC$22736_watchApi=u;this.onPageScroll=function(){K.scrollThrottle.fire();K.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.MC(this.onThrottledScroll,200,this);_.eb(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.MC(this.onMastheadThrottledScroll,50,this);_.eb(this,this.mastheadScrollThrottle);this.animation=new _.KL(function(l){K.JSC$22736_watchApi.getRoot().setScrollTop(l)});
u=_.iF(_.Mu(),_.K1,function(){K.onFullscreenChanged()});
this.addOnDisposeCallback(u);o$F(this);Wp5(this);this.onThrottledScroll()};
_.c(_.i$,_.TZ);
_.i$.prototype.onFullscreenChanged=function(){var u=this,K=this.JSC$22736_watchApi.getRoot();!this.pageScrollElement&&K.pageScrollElement?(this.pageScrollElement=K.pageScrollElement,K.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){u.pageScrollElement&&u.pageScrollElement.removeEventListener("scroll",u.onPageScroll)})):this.pageScrollElement&&!K.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var o$F=function(u){window.addEventListener("scroll",u.onPageScroll);u.addOnDisposeCallback(function(){window.removeEventListener("scroll",u.onPageScroll)})},Wp5=function(u){u.JSC$22736_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(K){a:{var l;
if(l=u.JSC$22736_watchApi.getRoot().contains(K)&&!u.animation.isAnimating()){l=K.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var D,d,C=(K==null?void 0:(D=K.parentElement)==null?void 0:(d=D.parentElement)==null?void 0:d.id)==="fixed-secondary";l=!(l&&C)}if(l){if(_.S("kevlar_watch_scroll_manager_absolute_offset_killswitch"))D=K.offsetTop;else for(D=0,d=K;d!==null;)D+=d.offsetTop,D-=d.scrollTop,d=d.offsetParent;d=D;D=d-24;K=d+K.offsetHeight+24;d=u.JSC$22736_watchApi.getRoot().getPageScrollingElement();
l=u.JSC$22736_watchApi.getRoot().getScrollTop();C=l+d.clientHeight-56;if(D<l+56)K=D-56;else if(K>C)K-=d.clientHeight;else break a;u.scrollWatchTo(Math.max(0,K),!0)}}});
u.addOnDisposeCallback(function(){u.JSC$22736_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.i$.prototype.onThrottledScroll=function(){var u=_.Mu(),K=u.dispatch,l=this.JSC$22736_watchApi.getRoot().getScrollTop();K.call(u,_.SZ({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:l}}))};
_.i$.prototype.onMastheadThrottledScroll=function(){this.JSC$22736_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$22736_watchApi.getRoot().getScrollTop())};
_.i$.prototype.scrollWatchTo=function(u,K){(K===void 0?0:K)?this.animation.start(this.JSC$22736_watchApi.getRoot().getScrollTop(),Math.max(0,u),500):this.JSC$22736_watchApi.getRoot().setScrollTop(u)};_.qyS=function(u){_.TZ.call(this);var K=this;this.JSC$22739_watchApi=u;var l=this.JSC$22739_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){HSQ(K)}),D=this.JSC$22739_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){MAu(K)});
this.addOnDisposeCallback(function(){K.JSC$22739_watchApi.unsubscribeByKey(l);K.JSC$22739_watchApi.unsubscribeByKey(D)});
HSQ(this);MAu(this)};
_.c(_.qyS,_.TZ);
var HSQ=function(u){var K,l,D,d=(D=(K=u.JSC$22739_watchApi.getPlayerResponse())==null?void 0:(l=K.videoDetails)==null?void 0:l.title)!=null?D:"";u.JSC$22739_watchApi.dispatchEvent("yt-update-title",d)},MAu=function(u){var K,l,D,d,C,W,M,q=(M=((W=(K=u.JSC$22739_watchApi.getWatchNextResponse())==null?void 0:(l=K.contents)==null?void 0:(D=l.twoColumnWatchNextResults)==null?void 0:(d=D.results)==null?void 0:(C=d.results)==null?void 0:C.contents)!=null?W:[]).find(function(v){return!!v.videoPrimaryInfoRenderer}))==null?
void 0:M.videoPrimaryInfoRenderer;
(K=_.WI(q==null?void 0:q.title))&&u.JSC$22739_watchApi.dispatchEvent("yt-update-title",K)};_.n$u=function(u){_.TZ.call(this);this.JSC$22742_watchApi=u;$0g(this)};
_.c(_.n$u,_.TZ);var $0g=function(u){var K,l;_.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$22742_watchApi.playerApi,2);K=D.yieldResult;l=function(){u.onYpcContentRequest()};
K.addEventListener("onYpcContentRequest",l);u.addOnDisposeCallback(function(){K.removeEventListener("onYpcContentRequest",l)});
_.TG(D)})};
_.n$u.prototype.onYpcContentRequest=function(){var u,K,l,D,d,C=(u=this.JSC$22742_watchApi.getWatchNextResponse())==null?void 0:(K=u.contents)==null?void 0:(l=K.twoColumnWatchNextResults)==null?void 0:(D=l.secondaryResults)==null?void 0:(d=D.secondaryResults)==null?void 0:d.offerModule,W,M,q,v;u=(v=(q=(M=(W=C==null?void 0:C.episodeOfferModuleRenderer)!=null?W:C==null?void 0:C.movieOfferModuleRenderer)!=null?M:C==null?void 0:C.unlimitedOfferModuleRenderer)!=null?q:C==null?void 0:C.liveOfferModuleRenderer)!=
null?v:C==null?void 0:C.tvfilmOfferModuleRenderer;var G,t,x;C=(x=C==null?void 0:(G=C.tvfilmOfferModuleRenderer)==null?void 0:(t=G.actionButtons)==null?void 0:t.length)!=null?x:0;t=Math.max(C-1,0);var O,a,f;G=(f=u==null?void 0:(O=u.offerButton)==null?void 0:O.buttonRenderer)!=null?f:u==null?void 0:(a=u.actionButtons)==null?void 0:a[t].buttonRenderer;var B,p;(O=(p=(B=G==null?void 0:G.navigationEndpoint)!=null?B:G==null?void 0:G.serviceEndpoint)!=null?p:G==null?void 0:G.command)&&_.Pb.instance.resolveCommand(O)};
}catch(e){_._DumpException(e)}
try{
var krE,VHG,wuG;_.F0i=function(){var u=_.k$.clone(T2H),K;return(new _.RL(function(l,D){u.onSuccess=function(d){_.vsn(d)?l(new wuG(d)):D(new _.nb("Request failed, status="+_.cv(d),"net.badstatus",d))};
u.onError=function(d){D(new _.nb("Unknown request error","net.unknown",d))};
u.onTimeout=function(d){D(new _.nb("Request timed out","net.timeout",d))};
K=_.UP("//googleads.g.doubleclick.net/pagead/id",u)})).thenCatch(function(l){if(l instanceof _.dr){var D;
(D=K)==null||D.abort()}return _.YU(l)})};
_.gEo=function(u){a:{var K="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(K="EMBEDDED_PLAYER_MODE_PFL");var l=u.raw_embedded_player_response;if(!l&&(u=u.embedded_player_response))try{l=JSON.parse(u)}catch(d){break a}if(l)b:for(var D in VHG)if(VHG[D]==l.embeddedPlayerMode){K=VHG[D];break b}}return K==="EMBEDDED_PLAYER_MODE_PFL"};
_.N2_=function(){if(_.S("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("pf");if(!_.T3q())return Error("qf");var u=_.E3("PLAYER_VARS",{});if(_.k$.get(u,"privembed",!1)=="1")return Error("rf");if(_.gEo(u))return Error("sf")};
krE=function(u){switch(u){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:_.o2(u,"unknown result type")}};
_.Zp_=function(u,K,l){K=_.Bjr[K];l={detected:u===0,source:K.lhC,detectionResult:krE(u),contentCpn:l};_.YE("biscottiBasedDetection",l);_.CqH.increment(K.lhC,u);K.xfn!==void 0&&_.h8("CATSTAT",_.Jio(u,K))};
_.r1=function(u,K){var l={};l.key=u;l.value=K;return _.nR9().then(function(D){return new Promise(function(d,C){try{var W=D.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(l);W.onsuccess=function(){d()};
W.onerror=function(){C()}}catch(M){C(M)}})})};
_.AV6=function(){var u=_.Sg("user_engagement_experiments_rate_limit_ms"),K=Y5E.get("last-user-engagement-exp-trigger-timestamp");return!K||(0,_.vA)()>=K+u?(Y5E.set("last-user-engagement-exp-trigger-timestamp",(0,_.vA)()),!0):!1};
_.vD=function(u,K,l,D,d){K=K===void 0?null:K;l=l===void 0?null:l;D=D===void 0?null:D;d=d===void 0?null:d;u={youThereEventType:u};l&&(u.lactThresholdMs=l.lactThresholdMs,u.mediaPosSec=l.promptDelaySec,u.lactServerRequestMs=l.lactServerRequestMs,u.triggerReason=l.triggerReason);d!=null&&(u.renderingMediaPosSec=Math.round(d));K||(K=_.AC());K&&(u.clientScreenNonce=K);D&&(u.clientPlaybackNonce=D);_.YE("youThere",u)};
VHG={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"};wuG=function(u){this.xhr=u};
_.nb=function(u,K,l){_.uL.call(this,u+", errorCode="+K);this.errorCode=K;this.xhr=l;this.name="PromiseAjaxError"};
_.c(_.nb,_.uL);var T2H={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var Y5E=new _.Ev("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.ipH=function(u){return _.SZ({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:u})};
}catch(e){_._DumpException(e)}
try{
var Vk,R_u,fMk,QO5,PQb,JOS,BuS,NuQ,kju,ZSg,jOX,U0r,wKS,Tuk,XKu;_.e_S=function(){var u=window.location.hash;u.charAt(0)==="#"&&(u=u.charAt(1)==="!"?u.substring(2):u.substring(1));return _.sP(u)};
Vk=function(u,K,l){var D;return _.H(function(d){if(d.nextAddress==1)return d.yield(K(),2);D=d.yieldResult;l(D,u);_.TG(d)})};
R_u=function(){return _.H(function(u){return u.nextAddress==1?u.yield((_.N2_()!==void 0?_.YU(Error("tf")):_.F0i()).then(function(){return 1},function(K){if(K.message==="Biscotti id is disabled")return 3;
_.hV("Failed fetching bid");return 0}),2):u.return(u.yieldResult)})};
fMk=function(){var u=_.vI("emNubnF5YnI2dW1xeXQtaGF2ZW4tZW1iZWQtcGxheWVyIw=="),K=_.vI("Mjd6ZjQwZGdpZnJhbWUjNHBuMg==");return document.querySelector(K+U0r+u)?0:1};
QO5=function(){return _.x1r(_.We)};
PQb=function(){return _.SeH()===0?0:_.blo()};
JOS=function(){return _.ek9(_.gK9([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
BuS=function(){return _.Moq(jOX)};
_.pKb=function(u){_.H(function(K){switch(K.nextAddress){case 1:return K.yield(Vk("b.f_",R_u,u),2);case 2:return K.yield(Vk("j.s_",_.Wrq,u),3);case 3:return K.yield(Vk("r.s_",_.yi9,u),4);case 4:return K.yield(Vk("e.h_",BuS,u),5);case 5:if(!_.S("ab_det_sc_inj")){K.jumpTo(6);break}return K.yield(Vk("s.i_",_.GnZ,u),6);case 6:if(_.S("ab_deg_unex_thr")){K.jumpTo(8);break}return K.yield(Vk("a.o_",_.rih,u),8);case 8:if(_.S("ks_get_o_pp")){K.jumpTo(10);break}return K.yield(Vk("g.o_",_.nMZ,u),10);case 10:if(_.S("ks_det_gpbl")){K.jumpTo(12);
break}return K.yield(Vk("p.i_",_.$1R,u),12);case 12:return K.yield(Vk("f.i_",_.m6Z,u),14);case 14:return K.yield(Vk("a.b_",_.CKr,u),15);case 15:return K.yield(Vk("p.m_",_.LHq,u),16);case 16:if(!_.S("ab_det_el_h_v2")){K.jumpTo(17);break}return K.yield(Vk("n.h_",JOS,u),17);case 17:return K.yield(Vk("o.p_",QO5,u),19);case 19:return K.yield(Vk("e.i_",fMk,u),20);case 20:if(_.S("ab_det_apm"))return K.yield(Vk("o.a_",PQb,u),0);K.jumpTo(0)}})};
_.iSX=function(u,K){u={videoId:u};K&&(u.playlistId=K);return u};
_.Fpz=function(){if(_.T3q()){var u=_.E3("PLAYER_VARS",{});if(_.k$.get(u,"privembed",!1)!="1"&&!_.gEo(u)){var K=function(){Tuk=!0;"google_ad_status"in window?_.h8("DCLKSTAT",1):_.h8("DCLKSTAT",2)};
try{_.KN(_.ua2,K)}catch(l){}wKS.push(_.YL.addLowPriorityJob(function(){if(!(Tuk||"google_ad_status"in window)){try{_.fwn(_.ua2.toString(),K)}catch(l){}Tuk=!0;_.h8("DCLKSTAT",3)}},5E3))}}};
_.g7=function(u,K,l){l=l===void 0?!1:l;var D=Math.max(u.width,_.ev_);if(_.S("kevlar_watch_feed_big_thumbs")&&u.width>=1550-_.LY()&&u.height>=800)D-=_.J2o;else if(u.width>=_.pq){var d=_.RvE+_.UWI+_.BC;_.S("kevlar_watch_feed_big_thumbs")&&(d=_.P$2);D-=d}else D-=_.RvE;D=Math.min(D,_.fE_);d=240;l&&(d=380);K<.5624||(!_.S("kevlar_watch_flexy_disable_small_window_sizing")&&(u.height<630&&u.width>=657||u.height>=630&&u.width>=_.pq&&u.width<1327)?d=360:!_.S("kevlar_watch_flexy_disable_large_window_sizing")&&
u.height>=630&&u.width>=1327&&(d=480));var C=Math.min(D*K,u.height-(56+_.zvp+_.Qpk));C=Math.max(C,d);K<1?D=C/K:u.width>=_.pq&&(D=_.g7(u,.5625,l).width);return new _.jA(Math.round(D),Math.round(C))};
_.VAJ=function(u){var K=0;u.indexOf("h")!=-1&&(u=u.split("h"),K=u[0]*60*60,u=u[1]);u.indexOf("m")!=-1&&(u=u.split("m"),K=u[0]*60+K,u=u[1]);u.indexOf("s")!=-1?(u=u.split("s"),K=u[0]*1+K):K=u*1+K;return K};
_.g$J=function(){_.Sg("service_worker_push_logged_out_prompt_watches")!=-1&&_.bJ("WatchCount").then(function(u){u>=100||_.r1("WatchCount",u+1)})};
NuQ=function(u){var K=u.externalVideoId||"";return K?u.isShortsEligible?"https://www.youtube.com/shorts/"+K:"https://www.youtube.com/watch?v="+K:""};
kju=function(u){var K=[];u.viewCount&&K.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:u.viewCount});u.likeCount&&K.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:u.likeCount});return K};
ZSg=function(u){var K,l,D={"@context":"https://schema.org","@type":"VideoObject",description:_.WI(u.description),duration:"PT"+(u.lengthSeconds||"0")+"S",embedUrl:u.embed?u.embed.iframeUrl:"",name:_.WI(u.title),thumbnailUrl:((K=u.thumbnail)==null?void 0:(l=K.thumbnails)==null?void 0:l.map(function(G){return G&&G.url||""}))||[],
uploadDate:u.publishDate};_.S("mweb_video_schema_id_killswitch")||(D["@id"]=NuQ(u));K=kju(u);K.length&&(D.interactionStatistic=K);u.category&&(D.genre=u.category);u.ownerChannelName&&(D.author=u.ownerChannelName);u.liveBroadcastDetails&&(D.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:u.liveBroadcastDetails.startTimestamp,endDate:u.liveBroadcastDetails.endTimestamp}]);if(u.learningResource){u=u.learningResource;D["@type"]=["VideoObject","LearningResource"];var d;if((d=u.learningResourceType)==
null?0:d.length)D.learningResourceType=u.learningResourceType[0];var C;if((C=u.educationalAlignment)==null?0:C.length)D.educationalAlignment={"@type":"AlignmentObject",targetName:u.educationalAlignment[0]};var W;if((W=u.educationalLevel)==null?0:W.length){d=u.educationalLevel[0];var M;if((M=u.educationalLevelCountry)==null?0:M.length)d+=" ("+u.educationalLevelCountry+")";D.educationalLevel=d}var q,v;if(((q=u.learningResourceType)==null?0:q.length)&&u.learningResourceType[0]==="Problem walkthrough"&&
((v=u.problemDescriptions)==null?0:v.length))for(D.hasPart=[],M=_.y(u.problemDescriptions),q=M.next();!q.done;q=M.next())d=q.value,q=d.problemDescriptionText,v=d.startOffset,d=d.url,q&&v!==void 0&&d&&D.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:q,text:q,startOffset:v,url:d})}return D};
_.Yy9=function(u){return _.SZ({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:u}})};
jOX=[[["amlzajdvcHJpbWFyeSNuaGtlMHQ=",null,null],[null,["d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI3drY3F5MzRxbDcxMXl0ZC10","eWxlLXNjb3BlI2VvOXZkMTczaDN2dHN0"],null],["c3RoZWFkLWFkI2M4N21wMnJwZzV6MW1h",["NHR4ZnltZWNmbm15dGQtcmljaC1ncmlkLXJlbmRlcmVyI3A="],null],[null,["MmlocjVxaWhwM3l5dGQtcmljaC1ncmlkLXJlbmRlcmVyI3Q=","eWxlLXNjb3BlIzFwNm94eXByd2hpM3N0"],null],[null,["eTNzYjQ3eGF5dGQtYmFubmVyLXByb21vLXJlbmRlcmVyI3lzZzI=","eWxlLXNjb3BlIzRkc3diMXBwamw2anN0"],null],[null,["IzduN2NjNWRjNXZuanl0ZC1hZC1zbG90LXJlbmRlcmVy"],
null]],[["cGxheWVyLWFkcyNqZzRkeGJkcndpNzI=",null,null]],[["aW5uZXIjY21mM3ZoNGhjOWJkZXNjcmlwdGlvbi0=",null,null],[null,null,"c3drOXJ6N3oxZ3l0ZC1tZXJjaC1zaGVsZi1yZW5kZXJlciNt"],["eG5qODJqdGY3b3U1bWFpbiM=",["bGV0OXRiYnFmeXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyIzVnaA=="],null]]];U0r="#";wKS=[];Tuk=!1;_.AOu=["engagement-panel-ads"];XKu=new _.r3("updateSentimentBarStateCommand");_.m0u=new _.r3("showSurveyCommand");_.NW=new _.r3("changeMarkersVisibilityCommand");var E$u,LpS,DtQ,luk,KMS,kC;_.h_5=function(u,K){this.playerProvider_=u;this.actionSenderElement_=K;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.h_5.prototype.reset=function(){E$u(this);this.isUserPredictedAbsent_=!1};
E$u=function(u,K){!u.youThereData_||u.showWarningJob_||K!==void 0&&K||(_.vD("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.AC(),u.youThereData_,u.clientPlaybackNonce_),_.AV());_.YL.cancelJob(u.showWarningJob_);u.showWarningJob_=0;_.YL.cancelJob(u.showBlockingWarningJob_);u.showBlockingWarningJob_=0;_.YL.cancelJob(u.pausePlaybackJob_);u.pausePlaybackJob_=0;u.youThereData_=null;u.clientPlaybackNonce_=void 0;u.inYouThereFlow_=!1};
_.udr=function(u,K){var l,D,d;_.H(function(C){if(C.nextAddress==1)return u.reset(),C.yield(u.playerProvider_().getPlayerPromise(),2);l=C.yieldResult;u.clientPlaybackNonce_=l.getVideoData().cpn;u.youThereData_=K.configData.youThereData;if(!u.youThereData_)return C.return();if(u.youThereData_.triggerReason&&u.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.AV6())return _.vD("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.AC(),u.youThereData_,u.clientPlaybackNonce_),C.return();D=u.youThereData_.promptDelaySec;
d=l.getCurrentTime();u.showWarningJob_=_.YL.addLowPriorityJob(function(){return _.H(function(W){u.showWarningJob_=0;return W.yield(LpS(u),0)})},Math.max(D-d,0)*1E3);
_.TG(C)})};
LpS=function(u){var K,l,D,d,C,W;return _.H(function(M){if(M.nextAddress==1)return M.yield(u.playerProvider_().getPlayerPromise(),2);if(M.nextAddress!=3)return K=M.yieldResult,l=K.getCurrentTime(),M.yield(KMS(u),3);D=M.yieldResult;if(!D||!u.youThereData_)return M.return();if(_.S("check_user_lact_at_prompt_shown_time_on_web")&&(d=parseInt(u.youThereData_.lactThresholdMs,10),_.Gr()<d))return _.vD("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.AC(),u.youThereData_,u.clientPlaybackNonce_),M.return();if(u.youThereData_.playbackPauseDelayMs<=
0)return luk(u),M.return();!_.S("external_fullscreen")&&(C=_.rd())&&(u.ignoreFullscreenExitUserActivity_=!0,_.YL.addLowPriorityJob(function(){u.ignoreFullscreenExitUserActivity_=!1},2E3),_.v0(C));
u.youThereData_.showToastWarningPrompt&&(kC(u,u.youThereData_.showWarningActions),u.inYouThereFlow_=!0,_.vD("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.AC(),u.youThereData_,u.clientPlaybackNonce_,l),_.vD("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.AC(),u.youThereData_,u.clientPlaybackNonce_,l));W=0;u.youThereData_.blockingPromptDelayMs&&(W=u.youThereData_.blockingPromptDelayMs);u.showBlockingWarningJob_=_.YL.addLowPriorityJob(function(){return _.H(function(q){u.showBlockingWarningJob_=0;return q.yield(DtQ(u),
0)})},W);
_.TG(M)})};
DtQ=function(u){var K,l,D;return _.H(function(d){if(d.nextAddress==1)return d.yield(KMS(u),2);K=d.yieldResult;if(!u.youThereData_)return d.return();K&&(u.youThereData_.showBlockingWarningAction&&(_.vD("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.AC(),u.youThereData_,u.clientPlaybackNonce_),(l=_.b(u.youThereData_.showBlockingWarningAction,_.ey))?kC(u,l.commands):kC(u,[u.youThereData_.showBlockingWarningAction]),u.inYouThereFlow_=!0),D=u.youThereData_.playbackPauseDelayMs,u.pausePlaybackJob_=
_.YL.addLowPriorityJob(function(){return _.H(function(C){u.pausePlaybackJob_=0;return C.yield(luk(u),0)})},D));
_.TG(d)})};
luk=function(u){var K;return _.H(function(l){if(l.nextAddress==1)return l.yield(KMS(u),2);K=l.yieldResult;if(!u.youThereData_)return l.return();K&&(_.vD("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.AC(),u.youThereData_,u.clientPlaybackNonce_),kC(u,u.youThereData_.showPausedActions),u.inYouThereFlow_=!0);_.TG(l)})};
_.h_5.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var u=_.b(this.youThereData_.userActiveDuringFlowAction,_.ey);u?kC(this,u.commands):kC(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.vD("YOU_THERE_EVENT_TYPE_LACT_RESET",_.AC(),this.youThereData_,this.clientPlaybackNonce_),_.AV());E$u(this,!0)}_.dtk(this,!1)};
_.C2k=function(u){_.vD("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.AC(),u.youThereData_,u.clientPlaybackNonce_)};
KMS=function(u){var K,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(u.playerProvider_().getPlayerPromise(),2);K=D.yieldResult;l=K.getPlayerState();return D.return(l==-1||l==1||l==3)})};
_.dtk=function(u,K){var l;_.H(function(D){if(D.nextAddress==1){if(u.isUserPredictedAbsent_==K)return D.jumpTo(0);u.isUserPredictedAbsent_=K;return D.yield(u.playerProvider_().getPlayerPromise(),3)}l=D.yieldResult;l.setUserEngagement(K);K&&_.vD("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.AC(),u.youThereData_,u.clientPlaybackNonce_);_.TG(D)})};
kC=function(u,K){if(_.S("handle_service_request_actions")||_.S("kevlar_youthere_service_endpoint_actions_killswitch"))_.ay(u.actionSenderElement_,K,u.actionSenderElement_);else{K=_.y(K);for(var l=K.next();!l.done;l=K.next())l=l.value,l.commandMetadata&&l.commandMetadata.webCommandMetadata&&l.commandMetadata.webCommandMetadata.sendPost?_.c0(u.actionSenderElement_,[l]):_.ay(u.actionSenderElement_,[l],u.actionSenderElement_)}};var IuQ;var yqk;var ZE=function(){var u=_.Q.apply(this,arguments)||this;u.systemIcons=_.S("kevlar_system_icons");u.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return u};
_.c(ZE,_.Q);ZE.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var u=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(u=this.data.percentIfLiked||0,this.activated=!0):(u=this.data.percentIfIndifferent||0,this.activated=!1);_.bi(this.hostElement).querySelector("#like-bar").style.width=u+"%"}};
ZE.prototype.handleUpdateSentimentBarStateCommand=function(u){this.data&&this.set("data.likeStatus",_.b(u,XKu).likeStatus)};
ZE.prototype.observeLikeStatus=ZE.prototype.observeLikeStatus;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],ZE.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ZE.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],ZE.prototype,"activated",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ZE.prototype,"systemIcons",void 0);_.g([_.JU("data.likeStatus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZE.prototype,"observeLikeStatus",null);_.g([_.T({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],ZE);
_.F(ZE,"ytd-sentiment-bar-renderer",function(){if(yqk!==void 0)return yqk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return yqk=u},{mode:1});var sek;var YC=function(){var u=_.Q.apply(this,arguments)||this;u.small=!0;return u};
_.c(YC,_.Q);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],YC.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],YC.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],YC.prototype,"small",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],YC);
_.F(YC,"ytd-video-view-count-renderer",function(){if(sek!==void 0)return sek;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return sek=u},{mode:_.zW("kevlar_poly_si_batch_j080")?1:2});var A2=function(){var u=_.Q.apply(this,arguments)||this;u.infoFormattedStrings=[];u.wrapVideoActions=_.S("kevar_watch_wrap_video_actions");u.hideSentimentBar=_.S("kevlar_watch_hide_sentiment_bar");u.actionMap={};return u};
_.c(A2,_.Q);_.I=A2.prototype;_.I.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.S("web_modern_buttons"),forceIconButton:!_.S("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.I.dataChanged=function(){_.S("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.I.computeInfoFormattedStrings=function(u){if(!u)return[];var K=[];u.dateText&&K.push(u.dateText);u.stationName&&K.push(u.stationName);u.rating&&K.push(u.rating);u.startEndTimeTemplate&&u.startTimeUtcMillis&&u.endTimeUtcMillis&&K.push(_.o7(_.hGo(_.WI(u.startEndTimeTemplate),Number(u.startTimeUtcMillis),Number(u.endTimeUtcMillis))));u.upNextProgramText&&K.push(u.upNextProgramText);return K};
_.I.scheduleInitialUpdatedMetadataRequest=function(){var u,K=(u=this.data)==null?void 0:u.updatedMetadataEndpoint;if(K){var l;u=Number((l=_.b(K,_.KKs))==null?void 0:l.initialDelayMs);l=isNaN(u)?250:u;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),l)}};
_.I.setSentimentBarWidth=function(){var u=this;_.W_(this,function(){var K=_.bi(u.hostElement).querySelector("ytd-menu-renderer");if(K){K=K.topLevelButtons;for(var l=0,D=0;D<K.length;D++){var d=K[D],C=u.get("toggleButtonSupportedData.toggleButtonIdData.id",d.data);if(C==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||C==="TOGGLE_BUTTON_ID_TYPE_LIKE")l+=d.clientWidth+8;else break}l&&(u.sentiment.style.width=l-8+" px")}})};
_.I.fetchUpdatedMetadata=function(u){var K;u&&(K={continuation:u});var l;(u=(l=this.data)==null?void 0:l.updatedMetadataEndpoint)&&_.GB().resolve(_.t9).resolveCommand(u,{form:Object.assign({},K,{element:this.hostElement})})};
_.I.onYtServiceRequestSent=function(u,K){K.endpoint&&_.b(K.endpoint,_.DL)&&(this.hasUpdateSentimentBarStateCommands()&&!_.S("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.b(K.endpoint,_.DL).status),this.setSentimentBarWidth())};
_.I.hasUpdateSentimentBarStateCommands=function(){var u,K,l,D,d=(D=(u=this.data)==null?void 0:(K=u.videoActions)==null?void 0:(l=K.menuRenderer)==null?void 0:l.topLevelButtons)!=null?D:[];u=_.y(d);for(K=u.next();!K.done;K=u.next()){K=K.value;d=D=l=void 0;var C=(l=K.toggleButtonRenderer)==null?void 0:(D=l.toggleButtonSupportedData)==null?void 0:(d=D.toggleButtonIdData)==null?void 0:d.id;if(C==="TOGGLE_BUTTON_ID_TYPE_LIKE"||C==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){D=l=void 0;K=(D=_.b((l=K.toggleButtonRenderer)==
null?void 0:l.defaultServiceEndpoint,_.ey))==null?void 0:D.commands;if(!K)break;K=_.y(K);for(l=K.next();!l.done;l=K.next())if(_.b(l.value,XKu))return!0}}return!1};
_.I.onYtServiceRequestCompleted=function(u,K){var l;(u=(l=K.data)==null?void 0:l.loggingDirectives)&&_.JDr(_.iT(),u);this.get("continuation.timedContinuationData",K.data)&&this.data&&this.data.updatedMetadataEndpoint&&(K=K.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,K.continuation),K.timeoutMs))};
_.I.computeHasDateText=function(u){return!!u&&!!u.dateText};
_.MN.Object.defineProperties(A2.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D;return!((D=(u=this.data)==null?void 0:(K=u.videoActions)==null?void 0:(l=K.menuRenderer)==null?void 0:l.flexibleItems)==null||!D.length)}}});
A2.prototype.onYtServiceRequestCompleted=A2.prototype.onYtServiceRequestCompleted;A2.prototype.onYtServiceRequestSent=A2.prototype.onYtServiceRequestSent;A2.prototype.dataChanged=A2.prototype.dataChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],A2.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],A2.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.v2.YtTaskEmitterBehavior),_.N("design:type",Object)],A2.prototype,"ytTaskEmitterBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],A2.prototype,"data",void 0);_.g([_.U({computed:"computeInfoFormattedStrings(data)"}),_.N("design:type",Array)],A2.prototype,"infoFormattedStrings",void 0);
_.g([_.U({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],A2.prototype,"hasDateText",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],A2.prototype,"wrapVideoActions",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],A2.prototype,"hideSentimentBar",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],A2.prototype,"flexMenuEnabled",null);
_.g([_.BF("#sentiment"),_.N("design:type",Object)],A2.prototype,"sentiment",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A2.prototype,"dataChanged",null);_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],A2.prototype,"onYtServiceRequestSent",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],A2.prototype,"onYtServiceRequestCompleted",null);
_.F(A2,"ytd-video-primary-info-renderer",function(){if(IuQ===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);IuQ=u}u=IuQ;return u},{mode:1});var oVu;var Xa=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return u};
_.c(Xa,_.Q);_.I=Xa.prototype;_.I.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"}}}};
_.I.dataChanged=function(){var u;this.descriptionToggled=!((u=this.data)==null||!u.defaultExpanded);var K;this.collapsed=this.descriptionAlwaysCollapsed||!((K=this.data)==null?0:K.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Yo(110509);this.showLessClientVe=_.Yo(110510);u=_.AC();K=_.Yr();u&&K&&_.dZ(u,K,[this.showMoreClientVe,this.showLessClientVe])};
_.I.onYtExpanderMoreTapped=function(){var u,K=(u=this.data)==null?void 0:u.showMoreCommand;K&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(K);(u=_.AC())&&this.showMoreClientVe&&_.Wi(u,this.showMoreClientVe)};
_.I.onYtExpanderLessTapped=function(){var u=_.AC();u&&this.showLessClientVe&&_.Wi(u,this.showLessClientVe);var K;(u=(K=this.data)==null?void 0:K.showLessCommand)&&this.componentBehavior.resolveCommand(u)};
_.I.handleUpdateDateTextAction=function(u){this.data&&this.data.dateText&&this.set("data.dateText",_.b(u,_.xWp).dateText)};
_.I.handleUpdateDescriptionAction=function(u){if(u=_.b(u,_.LL0))u.isEmpty||!u.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Ep(u.description)):this.set("data.description",u.description)};
_.I.onYtChangeEngagementPanelVisibilityAction=function(u){if(_.S("web_structured_description_show_more")||_.S("web_engagement_panel_open_description")){var K,l=(K=_.b(u,_.Bx2))==null?void 0:K.targetId,D;u=((D=_.b(u,_.Bx2))==null?void 0:D.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";l==="engagement-panel-structured-description"&&u&&(this.descriptionToggled=!0)}};
_.I.updateCollapsedFromBinding=function(u){this.collapsed=u.detail.value};
_.I.updateDescriptionToggledFromBinding=function(u){this.descriptionToggled=u.detail.value};
_.I.updateCanCollapseFromBinding=function(u){this.canCollapse=u.detail.value};
_.MN.Object.defineProperties(Xa.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var u,K,l=(u=this.data)==null?void 0:(K=u.metadataRowContainer)==null?void 0:K.metadataRowContainerRenderer;return!!l&&!!l.rows&&l.rows.length>l.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.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}}});
Xa.prototype.onYtExpanderLessTapped=Xa.prototype.onYtExpanderLessTapped;Xa.prototype.onYtExpanderMoreTapped=Xa.prototype.onYtExpanderMoreTapped;Xa.prototype.dataChanged=Xa.prototype.dataChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Xa.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Xa.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Xa.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],Xa.prototype,"collapsed",void 0);_.g([_.U(),_.N("design:type",Boolean)],Xa.prototype,"descriptionToggled",void 0);
_.g([_.U(),_.N("design:type",Boolean)],Xa.prototype,"canCollapse",void 0);_.g([_.U(),_.N("design:type",Object)],Xa.prototype,"subscribeButtonData",void 0);_.g([_.U(),_.N("design:type",Number)],Xa.prototype,"descriptionCollapsedHeight",void 0);_.g([_.U(),_.N("design:type",Object)],Xa.prototype,"structuredDescriptionContentRenderer",void 0);_.g([_.U({value:function(){return _.S("web_watch_description_always_collapsed")}}),
_.N("design:type",Boolean)],Xa.prototype,"descriptionAlwaysCollapsed",void 0);_.g([_.BF("#description"),_.N("design:type",HTMLDivElement)],Xa.prototype,"description",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xa.prototype,"dataChanged",null);_.g([_.PF("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xa.prototype,"onYtExpanderMoreTapped",null);
_.g([_.PF("yt-expander-less-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xa.prototype,"onYtExpanderLessTapped",null);_.g([_.R("data.metadataRowContainer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xa.prototype,"metadataCollapsible",null);_.g([_.R("data","structuredDescriptionContentRenderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xa.prototype,"hasInlineStructuredDescription",null);
_.g([_.R("data.attributedDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xa.prototype,"hasAttributedDescription",null);_.g([_.R("hasInlineStructuredDescription","collapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xa.prototype,"loadStructuredDescription",null);_.g([_.R("data","structuredDescriptionContentRenderer","collapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xa.prototype,"showInlineStructuredDescription",null);
_.g([_.R("data","hasInlineStructuredDescription","metadataCollapsible"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xa.prototype,"descriptionAlwaysCollapsible",null);
_.F(Xa,"ytd-video-secondary-info-renderer",function(){if(oVu===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);oVu=u}u=oVu;return u},{mode:2});var WMr;var ms=function(){return _.Q.apply(this,arguments)||this};
_.c(ms,_.Q);ms.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:_.S("web_modern_buttons"),forceIconButton:!_.S("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
ms.prototype.activate=function(u){u.appendTo(this.player);u.getPlayerPromise().then(function(K){K.setMinimized(!0)});
this.active=!0};
ms.prototype.deactivate=function(){var u=this.player.firstElementChild;u.getPlayerPromise().then(function(K){K.setMinimized(!1)});
this.active=!1;return u};
ms.prototype.onScrollUpTap=function(){var u=_.GB().resolve(_.GT).getCurrentPage();u&&u.setScrollTop(0)};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ms.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],ms.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ms.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],ms.prototype,"active",void 0);
_.g([_.U({reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.N("design:type",Boolean)],ms.prototype,"darkLaunch",void 0);_.g([_.BF("#player"),_.N("design:type",HTMLDivElement)],ms.prototype,"player",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],ms);
_.F(ms,"ytd-miniplayer-bar-renderer",function(){if(WMr!==void 0)return WMr;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return WMr=u},{mode:1});_.SX(_.rf(function(u){var K=_.o9("script");_.gp(function(){var l;if(l=JSON)l=ZSg(u.data()),l=_.MT(JSON.stringify(l).replace(/</g,"\\u003C"));var D=u.data(),d=_.WI(D.title).trim().length===0,C=!D.publishDate||D.publishDate.trim().length===0,W,M,q,v,G=!((W=D.thumbnail)==null?0:(M=W.thumbnails)==null?0:M.length)||!((q=D.thumbnail)==null?0:q.thumbnails[0].url)||((v=D.thumbnail)==null?void 0:v.thumbnails[0].url.trim().length)===0;K.value&&l&&!(d||C||G)&&_.qT(K.value,l)},"I9AhLd");
return _.n("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.n("script",{el:K,type:"application/ld+json"}))},"Qj"),"player-microformat-renderer",{props:{data:_.xo}});
}catch(e){_._DumpException(e)}
try{
var v$z,OSS;_.rOz=function(u){return u.watch.watchWindowSize};
v$z=function(u,K,l,D){if(u.isLockupToWatchTransitionEnabled){if(K){var d={};u.viewTransitionCoordinator.registerElement(K,(d["lockup-to-watch"]="player-lockup-to-watch",d["watch-next-appears"]="player-watch-next-loaded",d))}l&&(K={},u.viewTransitionCoordinator.registerElement(l,(K["lockup-to-watch"]="below-lockup-to-watch",K["watch-next-appears"]="below-watch-next-loaded",K)));D&&(l={},u.viewTransitionCoordinator.registerElement(D,(l["watch-next-appears"]="secondary-watch-next-loaded",l)))}};
_.Gjk=function(u){return _.SZ({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:u}})};
OSS=function(u){_.TZ.call(this);var K=this;this.JSC$22746_watchApi=u;u=_.iF(_.Mu(),_.X9r,function(){tAQ(K)});
this.addOnDisposeCallback(u);u=_.iF(_.Mu(),_.rOz,function(){tAQ(K)});
this.addOnDisposeCallback(u);x0Q(this);Syb(this);bSJ()};
_.c(OSS,_.TZ);var x0Q=function(u){var K=function(D){_.Mu().dispatch(_.wXi(D.matches))},l=window.matchMedia("(max-width: "+(999+_.LY())+"px)");
l.addListener(K);u.addOnDisposeCallback(function(){l.removeListener(K)});
K(l)},Syb=function(u){u.JSC$22746_watchApi.registerActionHandler("yt-window-resized",function(){bSJ()});
u.addOnDisposeCallback(function(){u.JSC$22746_watchApi.unregisterActionHandler("yt-window-resized")})},bSJ=function(){var u=_.iv();
_.Mu().dispatch(_.SZ({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:u.width,height:u.height}}}))},tAQ=function(u){var K;
_.H(function(l){if(l.nextAddress==1)return l.yield(u.JSC$22746_watchApi.playerApi,2);K=l.yieldResult;K.setSize(NaN,NaN);_.TG(l)})};var cOS=function(u){_.TZ.call(this);var K=_.GB().resolve(_.g6);v$z(K,u.getElement("PLAYER_CONTAINER"),u.getElement("BELOW_THE_PLAYER"),u.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var l=u.getElement("PLAYER_CONTAINER"),D=u.getElement("BELOW_THE_PLAYER"),d=u.getElement("SECONDARY");K.isLockupToWatchTransitionEnabled&&(l&&_.y$(K.viewTransitionCoordinator,l),D&&_.y$(K.viewTransitionCoordinator,D),d&&_.y$(K.viewTransitionCoordinator,d))})};
_.c(cOS,_.TZ);_.Tv=function(u){_.tv.call(this);var K=this;this.rootElement=u;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return K.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(l){K.initOrDisposeActiveModules(l)}));
this.onAttached()};
_.c(_.Tv,_.tv);_.I=_.Tv.prototype;_.I.getRoot=function(){return this.rootElement};
_.I.getElement=function(u){return this.rootElement.getElement(u)};
_.I.setPlayerResponse=function(u){this.playerResponse=u;this.publish("PLAYER_RESPONSE_UPDATED",u)};
_.I.getPlayerResponse=function(){return this.playerResponse};
_.I.setWatchNextResponse=function(u){this.watchNextResponse===u?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=u,this.publish("WATCH_NEXT_RESPONSE_UPDATED",u))};
_.I.getWatchNextResponse=function(){return this.watchNextResponse};
_.I.registerActionHandler=function(u,K){var l=this;if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var D={};_.I9(_.Ci.getInstance(),(D[u]=K,D),this.getRoot())}else this.actionHandlers.has(u)||(this.actionHandlers.set(u,[]),D={},_.I9(_.Ci.getInstance(),(D[u]=function(){var d=_.uY.apply(0,arguments);return(l.actionHandlers.get(u)||[]).map(function(C){return C.apply(null,_.Am(d))})},D),this.getRoot())),this.actionHandlers.get(u).push(K)};
_.I.unregisterActionHandler=function(u){if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var K={};_.yH(_.Ci.getInstance(),(K[u]=!0,K),this.getRoot())}else(K=this.actionHandlers.get(u))?(K.pop(),K.length===0&&(K={},_.yH(_.Ci.getInstance(),(K[u]=!0,K),this.getRoot()),this.actionHandlers.delete(u))):_.hV(new _.wv("Attempted to unregister an action handler which is not registered.",u))};
_.I.addPageDisposeJob=function(u){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Nw(this.rootElement.pageDisposeJobs,u)};
_.I.removePageDisposeJob=function(u){this.rootElement.pageDisposeJobs&&_.AH(this.rootElement.pageDisposeJobs,u)};
_.I.dispatchEvent=function(u,K){_.xs(this.rootElement,u,K)};
_.I.provideRenderingData=function(u,K){this.rootElement.provideRenderingData(u,K)};
_.I.scrollWatchTo=function(u,K){var l;(l=this.watchScrollManager)==null||l.scrollWatchTo(u,K)};
_.I.focusOnPlayer=function(){var u=this.getElement("PLAYER");_.W_(u,function(){if(u&&u.firstElementChild){var K=u.querySelector(".html5-video-player");K&&(_.vB(_.GB().resolve(_.Xb)),K.focus())}else _.hV(Error("vo"))})};
_.I.updateCinematicFullscreenConfig=function(){if(_.S("web_cinematic_manager_redux_killswitch")){var u=!!this.rootElement.theater,K=!!this.rootElement.fullscreen,l;(l=this.watchCinematicManager)==null||_.Qk(l,K,u)}};
_.I.subscribeToActiveChanged=function(u,K){K=K===void 0?!0:K;var l=_.iF(_.Mu(),_.Zq_,function(D){u(D)});
K&&u(_.Zq_(_.Mu().getState()));return l};
_.I.isActive=function(){return _.Zq_(_.Mu().getState())};
_.I.onAttached=function(){var u=_.S("external_fullscreen");_.S("use_unified_flag_accessor")&&(u=_.GB().resolve(_.k6o).retriever.getFlag(_.l7N));(u||_.L0("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var aMF=function(u){return u.getRoot().is==="ytd-watch-flexy"||u.getRoot().is==="ytd-watch-grid"},w7=function(u){return u.getRoot().is==="ytd-watch-fixie"};
_.Tv.prototype.initPersistentModules=function(){if(w7(this)||aMF(this)&&_.S("kevlar_watch_flexy_theater_manager")){var u=new _.kgg(this);_.eb(this,u)}u=new _.UTS(this);_.eb(this,u);u=new _.eJ(this);_.eb(this,u);u=new _.BQ(this);_.eb(this,u);u=new _.d0g(this);_.eb(this,u);u=new _.Uw(this);_.eb(this,u);if(w7(this)||aMF(this)&&_.S("kevlar_watch_flexy_playlist_manager"))u=new _.yOr(this),_.eb(this,u);_.S("web_thumbnail_to_watch_transition")&&(u=new cOS(this),_.eb(this,u))};
_.Tv.prototype.initOrDisposeActiveModules=function(u){u?(this.watchScrollManager=new _.i$(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.NmM(this)),this.activeModules.push(new _.XEg(this)),w7(this)&&this.activeModules.push(new OSS(this)),this.activeModules.push(new _.qyS(this)),this.activeModules.push(new _.p8(this)),(w7(this)||_.S("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.L_9(this)),this.activeModules.push(new _.mTQ(this)),
(w7(this)||_.S("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.n$u(this)),(w7(this)||_.S("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.ym9(this)),_.S("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Mjr(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.S("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.uBX(this)),_.S("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.e3b(this)),
u=_.S("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.S("kevlar_watch_flexy_comments_manager")&&!u&&this.activeModules.push(new _.bHX(this)),_.S("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Rp(this)),this.activeModules.push(new _.LJu(this)),this.activeModules.push(new _.ZHg(this)),_.S("web_enable_timely_actions")&&this.activeModules.push(new _.DTu(this)),_.S("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.akb(this)),
_.S("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.rXQ(this)),_.S("web_fullscreen_components")&&this.activeModules.push(new _.D9S(this)),_.S("web_player_rtr_ctrls")&&this.activeModules.push(new _.euu(this))):(_.$V(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.Tv.prototype.disposeInternal=function(){_.tv.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.MN.Object.defineProperties(_.Tv.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var FO_,cT,VVI,gSo,kPH,ZRG,No2,YGp;FO_=function(){var u=_.pN();u.info||(u.info={});return u.info};
cT=function(u){return Math.round(_.Fi()+u)};
VVI=function(){var u;if(_.S("csi_use_performance_navigation_timing")){var K,l,D,d=_.wd==null?void 0:(u=_.wd.getEntriesByType)==null?void 0:(K=u.call(_.wd,"navigation"))==null?void 0:(l=K[0])==null?void 0:(D=l.toJSON)==null?void 0:D.call(l);d?(d.requestStart=cT(d.requestStart),d.responseEnd=cT(d.responseEnd),d.redirectStart=cT(d.redirectStart),d.redirectEnd=cT(d.redirectEnd),d.domainLookupEnd=cT(d.domainLookupEnd),d.connectStart=cT(d.connectStart),d.connectEnd=cT(d.connectEnd),d.responseStart=cT(d.responseStart),
d.secureConnectionStart=cT(d.secureConnectionStart),d.domainLookupStart=cT(d.domainLookupStart),d.isPerformanceNavigationTiming=!0,u=d):u=_.wd.timing}else u=_.S("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.wd.timing)):_.wd.timing;return u};
gSo=function(){if(_.wd.getEntriesByType){var u=_.wd.getEntriesByType("paint");if(u=_.iL(u,function(l){return l.name==="first-paint"}))return cT(u.startTime)}var K;
_.S("csi_use_performance_navigation_timing")?K=_.wd.getEntriesByType("first-paint")[0].startTime:K=_.wd.timing.msFirstPaint;return K?Math.max(0,K):0};
kPH=function(){var u=window.location.protocol,K=_.wd.getEntriesByType("resource");K=_.Of(K,function(l){return l.name.indexOf(u+"//fonts.gstatic.com/s/")===0});
(K=No2(K,function(l,D){return D.duration>l.duration?D:l}))&&K.startTime>0&&K.responseEnd>0&&(_.VQ("wffs",cT(K.startTime)),_.VQ("wffe",cT(K.responseEnd)))};
ZRG=function(u,K){u=document.querySelector(u);if(!u)return!1;var l="",D=u.nodeName;D==="SCRIPT"?(l=u.src,l||(l=u.getAttribute("data-timing-href"))&&(l=window.location.protocol+l)):D==="LINK"&&(l=u.href);_.oS(document)&&u.setAttribute("nonce",_.oS(document));return l?(u=_.wd.getEntriesByName(l))&&u[0]&&(u=u[0],l=_.Fi(),_.VQ("rsf_"+K,l+Math.round(u.fetchStart)),_.VQ("rse_"+K,l+Math.round(u.responseEnd)),u.transferSize!==void 0&&u.transferSize===0)?!0:!1:!1};
_.ag=function(u,K){_.KT(function(){_.TA("").info.actionType=u;K&&_.h8("TIMING_AFT_KEYS",K);_.h8("TIMING_ACTION",u);var l=_.fFw(_.E3("TIMING_INFO",{}));Object.keys(l).length>0&&_.gd(l);l={isNavigation:!0,actionType:_.v1b(_.E3("TIMING_ACTION"))};var D=_.E3("PREVIOUS_ACTION");D&&(l.previousAction=_.v1b(D));if(D=_.E3("CLIENT_PROTOCOL"))l.httpProtocol=D;if(D=_.E3("CLIENT_TRANSPORT"))l.transportProtocol=D;(D=_.AC())&&D!=="UNDEFINED_CSN"&&(l.clientScreenNonce=D);D=_.ULy();if(D===1||D===-1)l.isVisible=!0;
D=_.o1n().loadType==="cold";var d=FO_();D||(D=d.yt_lt==="cold");if(D){l.loadType="cold";D=FO_();d=VVI();var C=_.Fi(),W=_.E3("CSI_START_TIMESTAMP_MILLIS",0);W>0&&!_.S("embeds_web_enable_csi_start_override_killswitch")&&(C=W);C&&(_.VQ("srt",d.responseStart),D.prerender!==1&&_.bWo(C));D=gSo();D>0&&_.VQ("fpt",D);D=VVI();D.isPerformanceNavigationTiming&&_.gd({performanceNavigationTiming:!0},void 0);_.VQ("nreqs",D.requestStart,void 0);_.VQ("nress",D.responseStart,void 0);_.VQ("nrese",D.responseEnd,void 0);
D.redirectEnd-D.redirectStart>0&&(_.VQ("nrs",D.redirectStart,void 0),_.VQ("nre",D.redirectEnd,void 0));D.domainLookupEnd-D.domainLookupStart>0&&(_.VQ("ndnss",D.domainLookupStart,void 0),_.VQ("ndnse",D.domainLookupEnd,void 0));D.connectEnd-D.connectStart>0&&(_.VQ("ntcps",D.connectStart,void 0),_.VQ("ntcpe",D.connectEnd,void 0));D.secureConnectionStart>=_.Fi()&&D.connectEnd-D.secureConnectionStart>0&&(_.VQ("nstcps",D.secureConnectionStart,void 0),_.VQ("ntcpe",D.connectEnd,void 0));_.wd&&"getEntriesByType"in
_.wd&&kPH();D=[];if(document.querySelector&&_.wd&&_.wd.getEntriesByName)for(var M in YGp)YGp.hasOwnProperty(M)&&(d=YGp[M],ZRG(M,d)&&D.push(d));if(D.length>0)for(l.resourceInfo=[],M=_.y(D),D=M.next();!D.done;D=M.next())l.resourceInfo.push({resourceCache:D.value})}_.gd(l);l=_.iI();l.preLoggedGelInfos||(l.preLoggedGelInfos=[]);M=l.preLoggedGelInfos;l=_.HW9();D=void 0;for(d=0;d<M.length;d++)if(C=M[d],C.loadType){D=C.loadType;break}if(_.o1n().loadType==="cold"&&(l.loadType==="cold"||D==="cold")){D=_.WeH();
d=_.iI();d=d.gelTicks?d.gelTicks:d.gelTicks={};for(var q in D)if(!(q in d))if(typeof D[q]==="number")_.VQ(q,_.NB(q));else if(_.S("log_repeated_ytcsi_ticks"))for(C=_.y(D[q]),W=C.next();!W.done;W=C.next())W=W.value,_.VQ(q.slice(1),W);q={};D=!1;M=_.y(M);for(d=M.next();!d.done;d=M.next())D=d.value,_.EW(l,D),_.EW(q,D),D=!0;D&&_.gd(q)}_.joH(!0);q=_.E3("TIMING_ACTION");_.lZ("ytglobal.timingready_")&&q&&_.kVq()&&_.J$r()&&_.esn()})()};
No2=function(u,K){return Array.prototype.reduce.call(u,K,{duration:0})};
YGp={'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 AZE={};AZE.YtVisibilityRootBehavior=[_.LxS.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.qt(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.E3("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var u=_.E3("INNERTUBE_CLIENT_NAME")!=="WEB";_.S("kevlar_use_vimio_behavior")&&u&&_.ERa()}}];_.zo={};_.zo.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(u){u.detail.contextProvider=this;u.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
AZE.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.MX();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(u){var K=this;this.pageCount+=1;_.S("kevlar_use_vimio_behavior")&&(_.E3("INNERTUBE_CLIENT_NAME")==="WEB"?_.YL.addJob(function(){K.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(u)},
loadPage_:function(u){this.data=u},
ytPageBehaviorActiveObserver_:function(u){var K=this;_.S("kevlar_use_vimio_behavior")&&(u?_.E3("INNERTUBE_CLIENT_NAME")==="WEB"?_.YL.addJob(function(){K.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(u){if(!this.setScrollTopJobId_){var K=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){K.setScrollTopJobId_=0;var l=_.GB().resolve(_.vv(_.Xb));l&&_.vB(l);this.getPageScrollingElement().scrollTop=u}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.kA(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var wfp;var Or=function(){var u=_.Q.apply(this,arguments)||this;u.playerListenerConfig=null;u.actionMap={"yt-show-watch-page-survey":"openSurvey"};return u};
_.c(Or,_.Q);_.I=Or.prototype;_.I.dataChanged=function(){var u=this,K=_.xY();K&&K.getPlayerPromise().then(function(D){u.maybeRemovePlayerListeners(D)});
var l=this.data&&this.data.survey;l&&((l=(l=l.singleOptionSurveyRenderer||l.checkboxSurveyRenderer||l.multiStageSurveyRenderer)&&l.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(K,l):this.openSurvey())};
_.I.triggerWatchPageSurvey=function(u,K){var l=this,D,d,C,W,M,q,v,G,t;return _.H(function(x){if(x.nextAddress==1)return u?x.yield(u.getPlayerPromise(),2):x.return();l.player=x.yieldResult;if(!l.player)return x.return();D={};d=_.y(K);for(C=d.next();!C.done;C=d.next())W=C.value,M=_.y(l.createEventListenerPair(W)),q=M.next().value,v=M.next().value,G=q,t=v,G&&t&&(D[G]=t,l.ytPlayerListenerBehavior.listenToPlayerEvent(l.player,G,t));l.playerListenerConfig=D;_.TG(x)})};
_.I.createEventListenerPair=function(u){var K=u.playbackEventTrigger;return K?this.handlePlaybackTrigger(K):(u=u.watchTimeTrigger)?this.handleWatchTimeTrigger(u):[void 0,void 0]};
_.I.handleWatchTimeTrigger=function(u){var K=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var l=u.videoWatchFraction,D=u.watchTimeSec;return D&&l?["onVideoProgress",function(){K.player&&K.isWatchTimeConditionMet(K.player,l,D)&&K.showSurvey()}]:[void 0,
void 0]};
_.I.isWatchTimeConditionMet=function(u,K,l){var D=u.getProgressState(),d=D.current-this.lastKnownPlaybackPosition;d<5&&(this.accumulatedMediaTime+=d);this.lastKnownPlaybackPosition=D.current;D=Math.round(this.accumulatedMediaTime/D.duration*1E3)/1E3;return u.getPresentingPlayerType&&u.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>l||D>K)};
_.I.handlePlaybackTrigger=function(u){var K=this;u=u.playbackEvent;if(u==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var l="onStateChange";var D=function(d){d===0&&K.showSurvey()}}else u==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(l="onVideoProgress",D=function(d){K.player&&K.player.getPresentingPlayerType&&K.player.getPresentingPlayerType()===1&&d&&K.showSurvey()}):u==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(l="onAdEnd",D=this.showSurvey);
return[l,D]};
_.I.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.I.openSurvey=function(){var u=this,K=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.ipH(!!K));_.YL.addJob(function(){u.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:K}})},0,0)};
_.I.maybeRemovePlayerListeners=function(u){if(this.playerListenerConfig){for(var K=_.y(Object.keys(this.playerListenerConfig)),l=K.next();!l.done;l=K.next())l=l.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(u,l,this.playerListenerConfig[l]);this.playerListenerConfig=null}};
Or.prototype.dataChanged=Or.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Or.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.nl),_.N("design:type",Object)],Or.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",_.HB)],Or.prototype,"ytPlayerListenerBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Or.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.e(_.Ll),_.N("design:type",Object)],Or.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Or.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Or.prototype,"playerListenerConfig",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],Or.prototype,"lastKnownPlaybackPosition",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],Or.prototype,"accumulatedMediaTime",void 0);_.g([_.U(),_.N("design:type",Object)],Or.prototype,"player",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Or.prototype,"dataChanged",null);_.g([_.T({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Or);
_.F(Or,"ytd-survey-trigger-renderer",function(){if(wfp!==void 0)return wfp;var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return wfp=u},{mode:1});
}catch(e){_._DumpException(e)}
try{
var UzG=new _.r3("promotedSparklesWebRenderer");var fz2=new _.r3("relatedChipCommand");var Q0_;var PgG;var rQ=function(){return _.Q.apply(this,arguments)||this};
_.c(rQ,_.Q);rQ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],rQ.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],rQ);
_.F(rQ,"ytd-compact-tvfilm-entry-point-renderer",function(){if(PgG!==void 0)return PgG;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return PgG=u},{mode:1});var J4H;var j0G;var BQo;var vC=function(){return _.Q.apply(this,arguments)||this};
_.c(vC,_.Q);vC.prototype.ready=function(){this.initializeDefs()};
vC.prototype.initializeDefs=function(){var u=this.meta.byKey("yt-icons"),K=_.bi(u).querySelector("#star"),l=_.bi(u).querySelector("#star_half");u=_.bi(u).querySelector("#star_border");K&&this.defs.appendChild(K.cloneNode(!0));l&&this.defs.appendChild(l.cloneNode(!0));u&&this.defs.appendChild(u.cloneNode(!0))};
vC.prototype.percentChanged=function(){for(var u=this.rating;u.firstChild;)u.removeChild(u.firstChild);var K=Math.round(this.percent/10);u=Math.floor(K/2);K%=2;var l=5-u-K;this.appendStars("star",u,0);this.appendStars("star_half",K,u);this.appendStars("star_border",l,u+K)};
vC.prototype.appendStars=function(u,K,l){for(var D=0;D<K;D++){var d=(18+this.spacing)*(D+l),C=document.createElementNS("http://www.w3.org/2000/svg","use");_.vTE(C,"#"+u);C.setAttribute("x",""+d);C.setAttribute("y","0");this.rating.appendChild(C)}};
vC.prototype.percentChanged=vC.prototype.percentChanged;_.g([_.BF("#defs"),_.N("design:type",HTMLElement)],vC.prototype,"defs",void 0);_.g([_.BF("#rating"),_.N("design:type",HTMLElement)],vC.prototype,"rating",void 0);_.g([_.U(),_.N("design:type",Number)],vC.prototype,"percent",void 0);_.g([_.U({value:6}),_.N("design:type",Number)],vC.prototype,"spacing",void 0);_.g([_.U({value:_.FG.create("iron-meta",{type:"iconset"})}),_.N("design:type",_.ND)],vC.prototype,"meta",void 0);
_.g([_.JU("percent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vC.prototype,"percentChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-ratings"})],vC);
_.F(vC,"ytd-ratings",function(){if(BQo!==void 0)return BQo;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return BQo=u},{mode:1});var GC=function(){return _.Q.apply(this,arguments)||this};
_.c(GC,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],GC.prototype,"data",void 0);_.g([_.T({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],GC);
_.F(GC,"ytd-offer-review-renderer",function(){if(j0G!==void 0)return j0G;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return j0G=u},{mode:1});var t4=function(){var u=_.Q.apply(this,arguments)||this;u.badges=[{textBadge:{label:_.o7("CC")}}];return u};
_.c(t4,_.Q);_.I=t4.prototype;_.I.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.I.dataChanged=function(){var u=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(u&&u.commandMetadata&&_.b(u.commandMetadata,_.Z3)&&_.b(u.commandMetadata,_.Z3).fireAutomatically)_.GB().resolve(_.t9).resolveCommand(u,{form:{element:this.hostElement}});else{var K;u&&((K=_.b(u,_.Z3))==null?0:K.fireAutomatically)&&_.GB().resolve(_.t9).resolveCommand(u,{form:{element:this.hostElement}})}};
_.I.isEmptyContent=function(u){return this.isStorefrontEntryPointEmpty(u)&&this.shouldHideOfferModule(u)};
_.I.isStorefrontEntryPointEmpty=function(u){return!u||!u.storefrontEntryPoint};
_.I.shouldHideOfferModule=function(u){return!!u.hideVideoDetails};
_.I.isOfferModuleNavigationInactive=function(u){return!u.navigationEndpoint&&!u.serviceEndpoint};
_.I.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.GB().resolve(_.t9).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
t4.prototype.dataChanged=t4.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],t4.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],t4.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.N("design:type",Boolean)],t4.prototype,"hidden",void 0);
_.g([_.U(),_.N("design:type",Object)],t4.prototype,"badges",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t4.prototype,"dataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],t4);
_.F(t4,"ytd-movie-offer-module-renderer",function(){if(J4H!==void 0)return J4H;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return J4H=u},{mode:1});var pC6;var xZ=function(){return _.Q.apply(this,arguments)||this};
_.c(xZ,_.Q);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],xZ.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],xZ.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],xZ);
_.F(xZ,"ytd-media-masthead-renderer",function(){if(pC6!==void 0)return pC6;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return pC6=u},{mode:1});var iq_;_.SX(_.yMa,"course-metadata-view-model",{props:{data:_.xo,isOverlay:_.xo}});var Sq=function(){var u=_.Q.apply(this,arguments)||this;u.isMetadataVisible=!1;u.modernPanels=_.S("kevlar_watch_modern_panels");u.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return u};
_.c(Sq,_.Q);_.I=Sq.prototype;
_.I.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"}}}}};
_.I.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.I.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.I.expanderChanged=function(){var u;if((u=this.data)==null?0:u.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.I.isExpandButtonToggled=function(){var u,K;return(K=_.b((u=this.data)==null?void 0:u.expandMetadataButton,_.Za))==null?void 0:K.isToggled};
_.I.onVisibilityButtonClick=function(){var u;if((u=this.data)==null?0:u.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.I.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Sq.prototype.expanderChanged=Sq.prototype.expanderChanged;Sq.prototype.dataChanged=Sq.prototype.dataChanged;Sq.prototype.descriptionChanged=Sq.prototype.descriptionChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Sq.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Sq.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e([_.bf.YtActionHandlerBehavior]),_.N("design:type",Object)],Sq.prototype,"actionHandlerBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],Sq.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Sq.prototype,"isMetadataVisible",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Sq.prototype,"modernPanels",void 0);_.g([_.BF("#expander"),_.N("design:type",Object)],Sq.prototype,"expander",void 0);_.g([_.JU("data.description"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sq.prototype,"descriptionChanged",null);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sq.prototype,"dataChanged",null);_.g([_.JU("isMetadataVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sq.prototype,"expanderChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Sq);
_.F(Sq,"ytd-tvfilm-offer-module-renderer",function(){if(iq_!==void 0)return iq_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return iq_=u},{mode:2});var TQi;var bg=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return u};
_.c(bg,_.Q);bg.prototype.dataChanged=function(){this.hostElement.hidden=!1};
bg.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
bg.prototype.onThumbnailTap=function(u){this.data&&this.data.serviceEndpoint&&(_.GB().resolve(_.t9).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),u.stopPropagation())};
bg.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
bg.prototype.dataChanged=bg.prototype.dataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],bg.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],bg.prototype,"rendererBehaviors",void 0);_.g([_.e([_.bf.YtActionHandlerBehavior]),_.N("design:type",Object)],bg.prototype,"actionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],bg.prototype,"data",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bg.prototype,"dataChanged",null);_.g([_.T({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],bg);
_.F(bg,"ytd-unlimited-offer-module-renderer",function(){if(TQi!==void 0)return TQi;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return TQi=u},{mode:1});var wCE;var F46;var OT=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return u};
_.c(OT,_.Q);OT.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
OT.prototype.handleRelatedChipCommand=function(u){u=_.b(u,fz2);var K=u.contents;K?_.bI(this.hostElement,"yt-item-section-replace-action",[K,u.targetSectionIdentifier]):_.bI(this.hostElement,"yt-item-section-continuation-action",[u.continuationData,u.targetSectionIdentifier])};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],OT.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],OT.prototype,"actionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],OT.prototype,"data",void 0);_.g([_.E9({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],OT);
_.F(OT,"yt-related-chip-cloud-renderer",function(){if(F46===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;wCE===void 0&&(wCE=document.createElement("template"));var D=wCE;l.call(K,D.content.cloneNode(!0),u.content.firstChild);F46=u}u=F46;return u},{mode:2});var cC=function(){var u=_.Q.apply(this,arguments)||this;u.isTwoColumns=!0;u.hideOfferModules=!1;u.watchFeedBigThumbs=_.S("kevlar_watch_feed_big_thumbs");u.watchNextGridHideChips=_.S("kevlar_watch_grid_hide_chips");u.eligibleToSwitchToGrid=_.S("web_watch_eligible_to_switch_to_grid");u.disableShortsShelfHeightOverride=_.S("web_shorts_wn_shelf_ratio_tuning");u.isWatchNextGrid=!1;u.reuseComponents=!_.S("kevlar_watch_grid");u.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return u};
_.c(cC,_.Q);_.I=cC.prototype;
_.I.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.S("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}}};
_.I.getItemsPath=function(){return"data.results"};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.I.created=function(){this.ytLazyListBehavior.initialCount=1};
_.I.ready=function(){_.e8(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%"})};
_.I.resultsChanged=function(){if(this.data&&this.data.results){for(var u=this.data.results,K=null,l=null,D=0;D<u.length;D++)u[D].relatedChipCloudRenderer?K=u[D].relatedChipCloudRenderer:u[D].itemSectionRenderer&&(l=u[D].itemSectionRenderer);if(K&&l)for(this.set("data.continuations",[]),u=_.b(K.content,_.eAa).chips,K=0;K<u.length;K++)if(D=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",u[K]),D.loadCached||!D.contents){D.contents=l.contents;break}}};
_.I.dataChanged=function(){var u=this,K;if((K=this.data)!=null&&K.results&&this.hasAllowedInstreamAd(this.playerData)){if(K=this.data.results.filter(function(M){return!!M.promotedSparklesWebRenderer})){for(var l=0;l<K.length;l++){var D=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",K[l]);
if(D)for(var d=0;d<D.length;d++)D[d]&&D[d].baseUrl&&_.Cp(D[d].baseUrl)}this.set("data.results",this.data.results.filter(function(M){return!M.promotedSparklesWebRenderer}))}if(K=this.data.results.filter(function(M){return!!u.getSparklesAd(M)})){K=_.y(K);
for(d=K.next();!d.done;d=K.next())if(D=l=void 0,d=(l=this.getSparklesAd(d.value))==null?void 0:(D=l.errorCommand)==null?void 0:D.loggingUrls)for(l=_.y(d),D=l.next();!D.done;D=l.next())(D=D.value)&&D.baseUrl&&_.Cp(D.baseUrl);var C,W;this.set("data.results",(C=this.data)==null?void 0:(W=C.results)==null?void 0:W.filter(function(M){return!M.adSlotRenderer}))}}};
_.I.getSparklesAd=function(u){var K,l;u=_.b((K=u.adSlotRenderer)==null?void 0:(l=K.fulfillmentContent)==null?void 0:l.fulfilledLayout,_.jqa);return _.b(u==null?void 0:u.renderingContent,UzG)};
_.I.hasAllowedInstreamAd=function(u){u=this.get("adPlacements",u)||[];for(var K=0;K<u.length;K++){var l=this.get("adPlacementRenderer.config.adPlacementConfig",u[K]);if(l&&l.suppressDisplayAd)return!0}return!1};
_.I.computeHideUnlimitedOfferModule=function(u,K){return u&&u.offerModule&&K&&u.offerModule.unlimitedOfferModuleRenderer&&u.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(K)?!0:!1};
_.I.hideUnlimitedOfferModuleChanged=function(){var u=_.bi(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");u&&(u.hidden=this.hideUnlimitedOfferModule)};
_.I.updateLockupContainerTypes=function(u){if(this.eligibleToSwitchToGrid){var K;(K=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||K.forEach(function(l){l.containerType=u})}};
_.I.computeHideTvfilmOfferModule=function(u,K){var l,D;return!!((u==null?0:(l=u.offerModule)==null?0:(D=l.tvfilmOfferModuleRenderer)==null?0:D.clientShouldSuppressIfCompanionAdDisplayed)&&K&&this.hasCompanionAds(K))};
_.I.hideTvfilmOfferModuleChanged=function(){var u=_.bi(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");u&&(u.hidden=this.hideTvfilmOfferModule)};
_.I.hasCompanionAds=function(u){u=this.get("adPlacements",u)||[];for(var K=0;K<u.length;K++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",u[K]))return!0;var l=void 0,D=void 0,d=void 0;if(!_.S("web_watch_top_banner_companion_check_killswitch")&&((l=u[K])==null?0:(D=l.adPlacementRenderer)==null?0:(d=D.renderer)==null?0:d.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.I.hasSuppressedResults=function(u){return u==null?!0:u.filter(function(K){return!K.continuationItemRenderer&&!K.compactPromotedVideoRenderer&&!K.promotedSparklesWebRenderer}).length===0};
_.I.computeShowButton=function(u,K){return this.isWatchNextGrid?u:u||this.hasSuppressedResults(K)};
_.I.showButtonChanged=function(){if(this.isWatchNextGrid){var u=_.bi(this.hostElement).querySelector("ytd-rich-grid-renderer");u&&this.showButton!==null&&(u.continuationShowButton=this.showButton)}else{u=_.bi(this.hostElement).querySelector("yt-next-continuation");var K=_.bi(this.hostElement).querySelector("ytd-continuation-item-renderer"),l=_.bi(this.hostElement).querySelector("ytd-item-section-renderer");u&&(u.showButton=this.showButton);K&&(K.showButton=this.showButton);l&&(l.continuationShowButton=
this.showButton)}};
_.I.continuationTap=function(u){var K;if(((K=this.data)==null?void 0:K.continuations)!=null&&u.target.tagName==="TP-YT-PAPER-BUTTON")for(u=this.data.continuations,K=0;K<u.length;K++)u[K].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(u[K].nextContinuationData||{})};
_.I.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("shown-items-changed",this.shownItems))};
_.MN.Object.defineProperties(cC.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.shownItems)==null||!u.some(function(K){return!!K.lockupViewModel||K.compactVideoRenderer}))}}});
cC.prototype.shownItemsChangedForBinding=cC.prototype.shownItemsChangedForBinding;cC.prototype.showButtonChanged=cC.prototype.showButtonChanged;cC.prototype.hideTvfilmOfferModuleChanged=cC.prototype.hideTvfilmOfferModuleChanged;cC.prototype.updateLockupContainerTypes=cC.prototype.updateLockupContainerTypes;cC.prototype.hideUnlimitedOfferModuleChanged=cC.prototype.hideUnlimitedOfferModuleChanged;cC.prototype.dataChanged=cC.prototype.dataChanged;cC.prototype.resultsChanged=cC.prototype.resultsChanged;
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],cC.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.xR.YtLazyListBehavior),_.N("design:type",Object)],cC.prototype,"ytLazyListBehavior",void 0);_.g([_.e(_.yr.YtNextContinuationBehavior),_.N("design:type",Object)],cC.prototype,"ytNextContinuationBehavior",void 0);
_.g([_.e(_.Ir),_.N("design:type",Object)],cC.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],cC.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],cC.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],cC.prototype,"playerData",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],cC.prototype,"autoFill",void 0);_.g([_.U({value:60}),_.N("design:type",Number)],cC.prototype,"targetFramerate",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],cC.prototype,"isTwoColumns",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],cC.prototype,"hideOfferModules",void 0);_.g([_.U(),_.N("design:type",Object)],cC.prototype,"shownItems",void 0);_.g([_.U({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.N("design:type",Boolean)],cC.prototype,"hideUnlimitedOfferModule",void 0);
_.g([_.U({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.N("design:type",Boolean)],cC.prototype,"hideTvfilmOfferModule",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],cC.prototype,"watchFeedBigThumbs",void 0);_.g([_.U(),_.N("design:type",Object)],cC.prototype,"watchNextGridHideChips",void 0);_.g([_.U(),_.N("design:type",Object)],cC.prototype,"eligibleToSwitchToGrid",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],cC.prototype,"disableShortsShelfHeightOverride",void 0);_.g([_.U({selector:_.le,reflectToAttribute:!0}),_.N("design:type",Object)],cC.prototype,"isGridViewEnabled",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],cC.prototype,"showMoreButton",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],cC.prototype,"isWatchNextGrid",void 0);
_.g([_.U({computed:"computeShowButton(showMoreButton, data.results)"}),_.N("design:type",Boolean)],cC.prototype,"showButton",void 0);_.g([_.wn("data.results.*"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cC.prototype,"resultsChanged",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cC.prototype,"dataChanged",null);
_.g([_.JU("hideUnlimitedOfferModule"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cC.prototype,"hideUnlimitedOfferModuleChanged",null);_.g([_.R("isGridViewEnabled","containsLockups","data"),_.U({reflectToAttribute:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],cC.prototype,"lockupContainerType",null);
_.g([_.JU("lockupContainerType","data"),_.N("design:type",Function),_.N("design:paramtypes",[Number]),_.N("design:returntype")],cC.prototype,"updateLockupContainerTypes",null);_.g([_.JU("hideTvfilmOfferModule"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cC.prototype,"hideTvfilmOfferModuleChanged",null);_.g([_.JU("showButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cC.prototype,"showButtonChanged",null);
_.g([_.JU("shownItems"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cC.prototype,"shownItemsChangedForBinding",null);_.g([_.R("shownItems"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cC.prototype,"containsLockups",null);
_.F(cC,"ytd-watch-next-secondary-results-renderer",function(){if(Q0_===void 0){var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);Q0_=u}u=Q0_;return u},{mode:1});
}catch(e){_._DumpException(e)}
try{
var HV5=function(u){if((u==null?void 0:u.value)===void 0||u==null||!u.unit)return"initial";a:{switch(u.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var K="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":K="%";break a}K=void 0}return K?""+u.value+K:"initial"},MbF=new _.r3("shoppingContentLineItemViewModel");var qQS=_.rf(function(u){var K=_.$U(u,{}).data;return _.n("yt-shopping-content-line-item-view-model",{class:_.JB("ytShoppingContentLineItemViewModelHost")},_.n(_.qC,{text:function(){var l;return(l=K().text)==null?void 0:l.attributedString}}))},"Rj");var $tu=_.rf(function(u){u=_.$U(u,{});var K=u.data;return _.n("yt-shopping-content-line-view-model",{class:_.JB("ytShoppingContentLineViewModelHost",u.className),style:_.Fb({"--shopping-content-line-gap":function(){return K().itemGap?K().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return K().lineHeight?K().lineHeight+"px":void 0}})},_.n(_.p0,{each:function(){return(K().items||[]).map(function(l){return _.b(l,MbF)}).filter(function(l){return!!l})}},function(l){return _.n(qQS,{data:l})}))},"Sj");_.SX(_.rf(function(u){var K=_.$U(u,{}).data,l=function(){var d;return((d=K().image)==null?void 0:d.width)||40},D=function(){var d;
return((d=K().image)==null?void 0:d.height)||40};
return _.n("yt-shopping-timely-shelf-content-view-model",{class:_.JB("ytShoppingTimelyShelfContentViewModelHost"),style:_.Fb({"--shopping-timely-shelf-content-padding-top":function(){var d;return HV5((d=K().padding)==null?void 0:d.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var d;return HV5((d=K().padding)==null?void 0:d.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var d;return HV5((d=K().padding)==null?void 0:d.start)},
"--shopping-timely-shelf-content-padding-end":function(){var d;return HV5((d=K().padding)==null?void 0:d.end)}})},_.n(_.r,{cond:function(){var d;
return(d=K().image)==null?void 0:d.image},
then:function(d){return _.n(_.n4,{preserveHeight:!0,preserveWidth:!0,width:l,height:D,data:d,alt:""})}}),_.n(_.mo,{data:function(){return K().avatar}},{avatarViewModel:_.Y_}),_.n("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.n(_.mo,{data:function(){return K().line1}},{shoppingContentLineViewModel:function(d){return _.n($tu,{data:d.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.n(_.mo,{data:function(){return K().line2}},{shoppingContentLineViewModel:function(d){return _.n($tu,{data:d.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.n("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.n(_.p0,{each:function(){var d;
return(d=K().button)!=null?d:[]}},function(d){return _.n(_.mo,{data:function(){return d}},{buttonViewModel:_.P2})})))},"Tj"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.M6}});_.nVb={};
_.nVb.YtdWatchBehavior=[_.Y.YtRendererBehavior,_.WB.YtPlayerListenerBehavior,_.SK.YtRendererstamperBehavior,_.bf.YtActionHandlerBehavior,_.zo.YtPageBehavior,_.po.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 _.L0("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.S("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("full_bleed_single_column_default_player")}},
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 _.L0("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)"},playerUnavailableFixedVisibility:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_error_screen_fix")}},
playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,
value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,
reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.S("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 _.Sg("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Sg("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.S("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.S("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.S("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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, isTwoColumns_)"},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 _.S("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.S("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.S("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var u={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:_.lJ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.lJ(["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"||_.S("swa_prov_panels_ks")?u.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(u.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},u.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return u},
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 u=this;this.watchController=void 0;this.pageDisposeJobs=[function(){u.showMetadataPlaceholder_()},
function(){_.S("web_watch_dont_clear_comments")||u.clearComments_()},
function(){u.clearPlayerAds_()},
function(){u.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;_.S("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.S("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.h_5(function(){return _.tK(u)},this.hostElement);
this.pageDisposeJobs.push(function(){u.youThereManager_.reset()});
_.S("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){u.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.z7;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;_.S("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));_.S("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Ql(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(u){u&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:u}),u.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(u){_.S("kevlar_watch_flexy_theater_manager")&&(this.theater=u,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(u){!_.S("kevlar_watch_while_v2")&&!_.S("web_watch_pip")||u||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(u){this.active!==void 0&&(this.fullscreen=u,_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(u){this.active!==void 0&&(_.xs(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(u>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(u){this.initCsi_();this.updatePageData_(u)},
updatePageData_:function(u){var K=this;if(u)if(this.data===u){this.onPageLoadWithSameData_();var l;(l=this.watchController)==null||l.setWatchNextResponse(this.data)}else this.data=u;this.playlist&&_.Zy({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.As("nw");this.loading=!1;_.Ve(_.YL,function(){K.initDclkstatus_();var D,d=((D=K.player)==null?void 0:D.getVideoData().cpn)||"";_.pKb(function(C,W){_.Zp_(C,W,d)})})},
onPageLoadWithSameData_:function(){_.S("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 u=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!u);this.set("loadingData.playlistLoading",u&&u!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),u=this.watchNextSkeletonEl_.firstElementChild;u;)u.classList.remove("hidden"),u=u.nextElementSibling;if(_.S("kevlar_watch_frame0_loading_state")){var K,l,D;u=(K=this.loadingData)==null?void 0:(l=K.endpoint)==null?void 0:(D=l.watchEndpoint)==null?void 0:D.videoId;var d;u&&(d="https://i.ytimg.com/vi/"+u+"/frame0.jpg");_.bi(this.hostElement).querySelector("#player").style.backgroundImage=d?"url("+d+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var u=_.bi(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&u&&(u.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var K,l;(l=(K=this.watchMetadata).updateSentimentBarWidth)==
null||l.call(K);var D,d;(d=(D=this.watchMetadata).resize)==null||d.call(D)}_.S("kevlar_watch_frame0_loading_state")&&(_.bi(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(u){var K=_.bi(this.hostElement).querySelector(u);K?_.GA(K,!1):_.hV(new _.wv("Overscroll monitor not found for component: ",u))},
removeSplitScrollMouseTrap:function(u){var K=_.bi(this.hostElement).querySelector(u);K?_.ts(K):_.hV(new _.wv("Disposal component for  overscroll monitoring not found: ",u))},
onLoadingChanged_:function(u){u?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(u){var K=this;u?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.YL.addLowPriorityJob(function(){K.onWindowResized_(_.iv(!0))})},
updateTheaterModeState_:function(u){if(!_.S("kevlar_watch_flexy_theater_manager")){u=u||this.fullWindowMode_;if(this.theater!==void 0||u)this.theater=u;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();u&&_.mz6()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.S("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var u=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.S("external_fullscreen")&&this.fullscreen&&(u=!0);_.S("web_watch_error_screen_fix")&&(u=this.fullBleedPlayer);u=u?_.bi(this.hostElement).querySelector("#player-full-bleed-container"):_.bi(this.hostElement).querySelector("#player-container-inner");var K=this.getPlayerContainer(),l=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip");K.parentElement!==u&&(l&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.tK(this).appendTo(u,K),_.S("web_watch_error_screen_fix")||u.appendChild(_.bi(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var u=_.bi(this.hostElement).querySelector("#error-screen"),K=this.fullBleedPlayer?_.bi(this.hostElement).querySelector("#player-full-bleed-container"):_.bi(this.hostElement).querySelector("#player");u.parentElement!==K&&K.appendChild(u)},
deactivateMiniplayerAndResetPlayer:function(){var u=this;return _.H(function(K){if(K.nextAddress==1)return K.yield(_.GB().resolve(_.uD).deactivate(),2);u.updatePlayerLocation();_.TG(K)})},
updateCinematicsLocation:function(){var u=this.getElement("CINEMATICS");if(u){var K=this.getCinematicsLocationContainer();u.parentElement!==K&&K.appendChild(u);var l;(l=this.watchController)==null||l.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&!this.isTwoColumns_)?_.bi(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.bi(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(u,K,l){var D=document.documentElement.hasAttribute("dark"),d=D&&_.S("web_cinematic_theater_mode"),C=D&&_.S("web_cinematic_fullscreen");D=!D&&this.cinematicLightTheme;return l||u&&d||K&&C||(K||u)&&D},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var u=this,K;(K=this.watchController)==null||K.setWatchNextResponse(this.data);_.S("kevlar_watch_flexy_comments_manager")||this.initComments_();_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.GB().resolve(_.lX).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,_.S("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.YL.addLowPriorityJob(function(){_.bI(u.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.S("web_watch_start_chat_in_theater_mode")){var l,D,d;if((l=this.data)==null?0:(D=l.contents)==null?0:(d=D.twoColumnWatchNextResults)==null?0:d.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var C,W;((C=this.data)==null?0:(W=C.contents)==null?0:W.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(u){var K;(K=this.watchController)==null||K.setPlayerResponse(this.playerData);u&&u.playabilityStatus&&(K=this.isVideoPlayable_(u.playabilityStatus,this.getPlayerOverlays_(this.data)),u=this.isLiveStreamOffline_(u.playabilityStatus),K&&!u||_.W_(this,function(){_.As("pbu")}));
this.setPlayerAds_();_.bI(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(u,K){if((_.S("kevlar_watch_while_v2")||_.S("web_watch_pip"))&&this.playerData&&K)return this.playerData.videoDetails},
watchPageActiveChanged_:function(u){_.Mu().dispatch(_.Gjk(this.active));u?this.activate_():this.deactivate_()},
attached:function(){var u=this;this.watchController=new _.Tv(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);_.S("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var K=_.tK(this);_.S("kevlar_disable_prepare_player")||
K.preparePlayer();_.S("kevlar_watch_flexy_playlist_manager")||_.GB().resolve(_.lX).setPlayer(K);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();K={"--ytd-watch-flexy-scrollbar-width":_.LY()+"px"};this.is==="ytd-watch-grid"&&(K["--ytd-watch-flexy-sidebar-width"]=_.UWI+"px",K["--ytd-watch-grid-horizontal-page-margins"]=_.BC+"px",K["--ytd-watch-grid-columns-top-margins"]=_.zvp+"px",K["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Sg("kv_pl_mx_sz_ks")&&
_.Sg("kevlar_watch_max_player_width")&&(K["--ytd-watch-flexy-max-player-width-wide-screen"]=_.fE_+"px");_.Sg("kevlar_watch_flexy_metadata_height")&&(K["--ytd-watch-flexy-space-below-player"]=_.Qpk+"px");this.safeUpdateStyles(K);_.S("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.on(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return u.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.bi(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var u=_.LY(),K=_.pq+u,l=K;this.fixedPanels&&(K+=_.UWI);var D=657+u;u=1327+u;_.bi(this.hostElement).querySelector("#two-column-query").query="(min-width: "+K+"px)";_.bi(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(D+"px), (min-height: 630px) and (min-width: ")+(K+"px) and (max-width: ")+(u+"px)");_.bi(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(u+"px)");
_.bi(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+l+"px)"},
calculateCurrentPlayerSize_:function(){var u=_.bi(this.hostElement).querySelector("#miniplayer-bar").firstChild,K=this.squeezeback&&!_.S("web_watch_squeezeback_player_size_killswitch");return u&&u.active||this.theater||_.S("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||K||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.jA(NaN,NaN):_.g7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.g7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.qt(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var u=this;this.onWindowResized_(_.iv());_.S("browse_skeleton_removal_on_watch_killswitch")||_.L0("IS_SHELL_LOAD")&&_.ToE();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var K=_.tK(this);K.addEventListener("yt-player-updated",_.Ql(this,this.onPlayerUpdated_));K.getPlayerPromise().then(function(l){u.playerApiReady_(l)});
_.S("kevlar_watch_flexy_playlist_manager")||(K=_.GB().resolve(_.lX),_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&K.addEventListener("yt-navigate",_.Ql(this,this.onYtNavigate_)),K.setPlaylistComponent(_.bi(this.hostElement).querySelector("#playlist")),K.addEventListener("yt-playlist-data-updated",_.Ql(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.YL.addLowPriorityJob(function(){_.xs(u.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.tK(this).removeEventListener("yt-player-updated",_.Ql(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.S("kevlar_watch_flexy_playlist_manager")){var u=_.GB().resolve(_.lX);_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&u.removeEventListener("yt-navigate",_.Ql(this,this.onYtNavigate_));
u.cancelVideoSkip();u.removeEventListener("yt-playlist-data-updated",_.Ql(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.xs(this.hostElement,"yt-autonav-pause-player",!1);u=_.rd();_.S("kevlar_exit_fullscreen_leaving_watch")&&u&&_.v0(u)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(u){this.player&&this.player.updateVideoData({rvs:u.rvs})},
getPageContents:function(u){return u&&u.contents&&u.contents.twoColumnWatchNextResults&&u.contents.twoColumnWatchNextResults.results&&u.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(u){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",u)},
onRetrieveLocation_:function(u,K){K.hasComments?K.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):K.locationRetrieved("/related_ajax",void 0);u.stopPropagation()},
onSubscriptionChanged_:function(u,K){this.player&&(K?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ag("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.bi(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.bi(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(u){this.player=u;this.setPlayerState(u.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.S("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.S("kevlar_unified_player")||_.S("kevlar_player_new_bootstrap_adoption"))&&_.yU()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(u,K){K=K===void 0?!0:K;_.rd()&&_.S("external_fullscreen")&&_.v0(document.documentElement);this.theaterRequested_=u;K&&_.Bv("wide",u?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.Sy(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.xs(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(u){_.E5(u,typeof this.player),this.player&&_.E5(u,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var u;((u=this.player)==null?0:u.isFullscreen())?this.player.toggleFullscreen():_.Sy(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(u,K){return this.loading?K:!!Object.keys(u).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(u){if(u){u=_.y(u);for(var K=u.next();!K.done;K=u.next())K=K.value,K.youThereRenderer&&_.udr(this.youThereManager_,K.youThereRenderer)}},
setPlaylistData_:function(u){return u||{}},
userEngagementConfigDataChanged_:function(u){if(u)if(u.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var K=this.youThereManager_;_.Gr()<u.lowEngagementThresholdMs||_.dtk(K,!0)}else u.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Sy(this.hostElement,"yt-autonav-pause-user-engagement",[u])},
isPlayerUnavailable_:function(u,K,l){return!!u&&!this.isVideoPlayable_(u,l)&&!K},
getPlayerOverlays_:function(u){return(u==null?void 0:u.playerOverlays)||null},
isVideoPlayable_:function(u,K){if(!u)return!1;var l=u.status==="OK"||u.status==="LIVE_STREAM_OFFLINE",D=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",u)||this.get("errorScreen.ypcTrailerRenderer",u);u=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",u);var d;K=K==null?void 0:(d=K.playerOverlayRenderer)==null?void 0:d.gatedActionsOverlayRenderer;return!!l||!!D||!!u||!!K},
hasWatchNextResponseErrorRenderer:function(u){var K=this.getPageContents(u),l,D,d,C,W;return!(u==null?0:(l=u.contents)==null?0:(D=l.twoColumnWatchNextResults)==null?0:D.secondaryResults)&&!!((d=K[0])==null?0:(C=d.itemSectionRenderer)==null?0:(W=C.contents[0])==null?0:W.backgroundPromoRenderer)},
isLiveStreamOffline_:function(u){return u?u.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(u,K,l){var D=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",K),d=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];d=_.S("web_no_skip_video_on_verification_checks")?(u==null?void 0:u.status)&&d.includes(u.status):u&&u.status==="AGE_CHECK_REQUIRED";var C=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",u);C==void 0&&(C=!0);!l||this.isVideoPlayable_(u,this.getPlayerOverlays_(K))||
D||d||!C||_.GB().resolve(_.lX).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.g$J()},
onPlayerFeedbackStartRequest_:function(u){_.Sy(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:u}])},
onPlayerFeedbackArticleRequest_:function(u){_.Sy(this.hostElement,"yt-help-dialog-requested",[u])},
onPlayerYpcContentRequest_:function(){var u,K,l,D,d,C,W,M,q=((u=this.data)==null?NaN:(K=u.contents)==null?NaN:(l=K.twoColumnWatchNextResults)==null?NaN:(D=l.secondaryResults)==null?NaN:(d=D.secondaryResults)==null?NaN:(C=d.offerModule)==null?NaN:(W=C.tvfilmOfferModuleRenderer)==null?NaN:(M=W.actionButtons)==null?NaN:M.length)-1;u=[".offerButton.buttonRenderer.",".actionButtons."+(q>=0?q:0)+".buttonRenderer."];K=_.y(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(l=K.next();!l.done;l=K.next())for(l=l.value,D=_.y(u),d=D.next();!d.done;d=D.next())if(d="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+l+d.value,d=this.get(d+"navigationEndpoint",this.data)||this.get(d+"serviceEndpoint",this.data)||this.get(d+"command",this.data)){_.Jl(d,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(u){_.xs(this.hostElement,"yt-autonav-pause-player",u)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(u){u()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(u){switch(u){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(u){switch(u){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.xs(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(u)},
setPlayerState:function(u){_.Mu().dispatch(_.HKR(u))},
onPlayerSubscribe_:function(u){_.Sy(this.hostElement,"yt-player-subscribe",[u])},
onPlayerUnsubscribe_:function(u){_.Sy(this.hostElement,"yt-player-unsubscribe",[u])},
onPlayerAdYtShowToast_:function(u){_.Sy(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:u.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(u){if(u)return u},
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(u){return!_.S("web_watch_move_summary_to_sd")&&!!u},
computeWatchMetadataRefresh:function(){return _.S("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.S("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var u,K,l,D;this.watchNextSecondaryResults=(u=this.data)==null?void 0:(K=u.contents)==null?void 0:(l=K.twoColumnWatchNextResults)==null?void 0:(D=l.secondaryResults)==null?void 0:D.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.S("swatcheroo_pbs_load_grid")&&!_.S("swatcheroo_provide_all_data_on_scheduled_job")){_.YL.cancelJob(this.setRichGridJobId_);var u,K,l,D,d,C,W;this.setRichGridRendererData((u=this.data)==null?void 0:(K=u.contents)==null?void 0:(l=K.twoColumnWatchNextResults)==null?void 0:(D=l.secondaryResults)==null?void 0:(d=D.secondaryResults)==null?void 0:(C=d.results)==null?void 0:(W=C[0])==null?
void 0:W.richGridRenderer)}},
setRichGridRendererData:function(u){this.richGridRendererData=u},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var u,K=(u=this.data)==null?void 0:u.engagementPanels;if(K==null?0:K.length){u=null;K=_.y(K);for(var l=K.next();!l.done;l=K.next()){l=l.value;var D=void 0;if(((D=l.engagementPanelSectionListRenderer)==null?void 0:D.targetId)==="engagement-panel-structured-description"){u=l;break}}var d,C,W;u=(d=u)==null?void 0:(C=d.engagementPanelSectionListRenderer)==null?void 0:(W=C.content)==null?void 0:W.structuredDescriptionContentRenderer;if(u==null?0:u.items){d=
[];C=_.y(u.items);for(W=C.next();!W.done;W=C.next()){W=W.value;if(!_.S("sd_horizontal_list_show_nav_killswitch")){var M=D=l=K=u=void 0,q=void 0,v=(u=W.horizontalCardListRenderer)==null?void 0:(K=u.header)==null?void 0:(l=K.richListHeaderRenderer)==null?void 0:(D=l.navigationButton)==null?void 0:(M=D.buttonRenderer)==null?void 0:(q=M.command)==null?void 0:q.commandExecutorCommand;v&&v.commands&&(v.commands=v.commands.filter(function(G){return!_.b(G,_.ZOB)}))}(!W.expandableVideoDescriptionBodyRenderer&&
!W.videoDescriptionHeaderRenderer||_.S("web_delhi_colorful_sd"))&&d.push(W)}return{items:d}}}},
constructWarning_:function(u){return{text:_.o7(u),type:"WARNING"}},
isPlaShelfEnabled_:function(u){if((this.get("adPlacements",u)||[]).length)return!0;u=this.get("playerAds",u)||[];return!(!u.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",u[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var u=this;_.xs(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var K=this.getScrollTop()>0;this.gestures_&&(K?this.gestures_.detach():this.gestures_.attach());K!==this.showFullerscreenEdu_&&_.S("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=K,_.tK(this).getPlayerPromise().then(function(l){l.updateFullerscreenEduButtonVisibility(u.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.xs(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var u=this;this.commentsReady=!1;_.YL.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Ve(_.YL,function(){u.setComments_()},1E3)},
setComments_:function(){if(!_.S("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.As("cmi");_.YL.cancelJob(this.setCommentsJobId_);var u=this.getPageContents(this.data);if(u&&u.length){u=_.y(u);for(var K=u.next();!K.done;K=u.next())if(K=K.value,this.get("itemSectionRenderer.sectionIdentifier",K)==="comment-item-section"){this.comments=K.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.xs(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.S("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.As("cmc")},
doRemoveComments_:function(){this.comments={};_.S("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.YL.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.YL.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(u,K){var l=_.b(K.endpoint,_.oy);l&&(!(K=this.get("data.currentVideoEndpoint.watchEndpoint"))||l.videoId!==K.videoId||l.playlistId&&l.playlistId!==K.playlistId||l.index!==void 0&&l.index!==K.index||typeof l.startTimeSeconds!=="number"||(u.stopPropagation(),this.setScrollTop(0),_.tK(this).getPlayerPromise().then(function(D){var d=l.startTimeSeconds;D.seekTo(d);D.wakeUpControls();d<D.getDuration()&&D.playVideo()})))},
updatePlayerStartTime_:function(){var u=_.e_S();"t"in u&&(u=_.VAJ(u.t),this.player.seekTo(u,!0))},
updateTitleFromWatchNext:function(u){u=this.getPageContents(u);var K,l;(u=_.WI(u==null?void 0:(K=u[0])==null?void 0:(l=K.videoPrimaryInfoRenderer)==null?void 0:l.title))&&_.xs(this.hostElement,"yt-update-title",u)},
updateTitle_:function(u){u=this.get("videoDetails.title",u)||"";_.xs(this.hostElement,"yt-update-title",u)},
syncWithRemoteVideo_:function(u,K,l){if(this.active&&this.player){var D=this.player.getVideoData();if(D.video_id===l&&(l=D.list,_.S("polymer_enable_mdx_queue")&&l&&l.startsWith("RQ")&&(l=void 0),D.video_id!==u||l!=K)){var d;_.S("kevlar_player_watch_endpoint_navigation")?d=_.jl9(_.iSX(u,K)):d=this.buildWatchEndpoint_(u,K);_.xs(this.hostElement,"yt-navigate",{endpoint:d,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(u,K,l){return _.vi(u,K,l)},
initDclkstatus_:function(){_.Fpz()},
attachWatchPageSkeleton_:function(){var u=document.querySelector("#watch-page-skeleton");if(u){var K=u.querySelector("#primary-info"),l=u.querySelector("#secondary-info"),D=u.querySelector("#related");K&&_.bi(this.hostElement).querySelector("#info-skeleton").appendChild(K);l&&_.bi(this.hostElement).querySelector("#meta-skeleton").appendChild(l);D&&(_.bi(this.hostElement).querySelector("#related-skeleton").appendChild(D),this.watchNextSkeletonEl_=D);_.Jq(u)}},
handlePlayerUpdated_:function(){_.tK(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(u,K){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof K!=="undefined"){var l=this.watchNextSkeletonEl_.children,D=u&&u.indexSplices.length?u.indexSplices[0].index:0;u=Math.min(this.watchNextShownItems.length,l.length);K||(D=0,u=l.length);for(K=D;K<u;K++)l[K].classList.add("hidden")}},
onPlayerFullscreenChange_:function(u){_.S("external_fullscreen")||_.Sy(this.hostElement,"yt-player-fullscreen",[u.fullscreen])},
onFullscreenChange_:function(u){this.fullscreen=u;this.gestures_&&this.gestures_.update(this.fullscreen);var K=_.tK(this);K.getPlayerPromise().then(function(l){l.setFauxFullscreen(!!_.rd())});
this.updateFullBleedElementLocations();u&&(K.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(u,K){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!K},
computeIsDonationShelfCollapsed_:function(u){return u},
computeShouldShowMerchShelf:function(u,K){return K&&!!u},
computeResponseHasComments:function(u){var K,l,D,d,C;return!!(u==null?0:(K=u.contents)==null?0:(l=K.twoColumnWatchNextResults)==null?0:(D=l.results)==null?0:(d=D.results)==null?0:(C=d.contents)==null?0:C.some(function(W){var M;return(W==null?void 0:(M=W.itemSectionRenderer)==null?void 0:M.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(u,K,l,D){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&D?!1:!!u&&!!Object.keys(u).length&&!K},
identity:_.wq,onWindowResized_:function(u){this.windowSize_=u;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(u){var K=this;u&&u.type!=="dataloaded"&&u.type!=="dataupdated"||_.tK(this).getPlayerPromise().then(function(l){var D=l.getPlayerState();D!==5&&D!==0&&(l=1/l.getVideoAspectRatio(),K.videoHeightToWidthRatio_!==l&&(K.videoHeightToWidthRatio_=l))})},
schedulePlayerSizeUpdate_:function(u){var K=this,l=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip"),D=function(){if(K.watchMetadata){var d,C;(C=(d=K.watchMetadata).resize)==null||C.call(d)}_.tK(K).getPlayerPromise().then(function(W){if(_.S("kevlar_set_internal_player_size")){if(!l||!K.isMiniplayerActive()){var M=K.calculateCurrentPlayerSize_();W.setInternalSize(M.width,M.height)}}else W.setSize(NaN,NaN);_.S("kevlar_watch_while")&&K.updateWatchWhileScrollThreshold_()})};
u?D():_.Xf(_.YL,D)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(u){this.set("data.survey",u.detail)},
onYtShowSurveyCommand_:function(u){this.set("data.survey",_.b(u,_.m0u).survey)},
onDownloadedVideoDeleted:function(u){var K=this,l,D;return _.H(function(d){if(d.nextAddress==1){if(!K.active||(l=K.playerData)==null||!l.offlineState||K.videoId!==u)return d.return();(D=K.player)==null||D.stopVideo();_.B3().navigatingAwayFromWatchDeletedVideo=!0;_.Jl(_.Cb9,K.hostElement);return d.yield(_.B3().navigationFinishPromise,2)}_.B3().navigatingAwayFromWatchDeletedVideo=!1;_.TG(d)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var u;this.theater?u=_.mz(.5625*this.windowSize_.width,480,this.windowSize_.height-185):u=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==u&&(this.watchWhileScrollThreshold_=u,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var u=_.bi(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&u){var K=this.windowSize_.height>=624,l=this.active?this.getScrollTop():0;!u.active&&K&&l>=this.watchWhileScrollThreshold_?(u.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):u.active&&(!K||l<this.watchWhileScrollThreshold_&&!_.rd())&&(u.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var u=_.bi(this.hostElement).querySelector("#secondary-inner");if(u){var K=_.bi(this.hostElement).querySelector("#below"),l=_.bi(this.hostElement).querySelector("#secondary"),D=_.bi(this.hostElement).querySelector("#comments");D&&l&&K&&(this.defaultTwoColumnLayout?(u.appendChild(D),l.appendChild(u)):(K.appendChild(D),_.J4(K,u)))}}},
isTwoColumnsChanged_:function(u,K){if(u!==!0||K!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(u=_.bi(this.hostElement).querySelector("#secondary-inner"))){K=_.bi(this.hostElement).querySelector("#below");var l=_.bi(this.hostElement).querySelector("#secondary"),D=_.bi(this.hostElement).querySelector("#comments");D&&l&&K&&(this.isTwoColumns_?(u.appendChild(D),l.appendChild(u)):(K.appendChild(D),
_.J4(K,u)))}}else{u=!_.S("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);K=_.bi(this.hostElement).querySelector("#panels");var d=_.bi(this.hostElement).querySelector("#alerts");l=_.bi(this.hostElement).querySelector("#playlist");D=_.bi(this.hostElement).querySelector("#related");var C=_.bi(this.hostElement).querySelector("#donation-shelf"),W=_.bi(this.hostElement).querySelector("#comments");this.isTwoColumns_?(d=_.bi(this.hostElement).querySelector("#secondary-inner"),
u&&(d.appendChild(K),d.appendChild(l)),d.appendChild(C),d.appendChild(D)):(u&&(_.mI(K,d),_.mI(l,d)),_.mI(C,d),W&&_.mI(D,W));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.S("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.S("web_watch_enable_fs_squeezeback_panels")&&_.S("web_watch_theater_chat")){var u=_.bi(this.hostElement).querySelector("#chat-container"),K=this.theater&&!this.fullscreen||_.S("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&K?(K=_.bi(this.hostElement).querySelector("#columns"),(u==null?void 0:u.parentElement)!==K&&K.append(u),this.fixedPanels=!0):(this.fixedPanels=
!1,K=_.bi(this.hostElement).querySelector("#playlist"),u&&K?_.hy(u,K):_.hV(new _.wv("Missing element when updating chat location",{"chatContainer defined":!!u,"playlist defined":!!K})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(u,K){return _.S("sw_metadata_vis_toggle_ks")?!0:!!u||!!K},
computeForceDarkPanelTheme:function(u){return _.S("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&u:!1},
safeUpdateStyles:function(u){try{_.e8(this.hostElement,u)}catch(K){_.hV(K)}},
videoHeightToWidthRatioChanged_:function(u,K){K&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(u){this.videoHeightToWidthRatio_=1/u},
computeIsVerticalVideo_:function(u){return u>=1},
computeIsFourThreeToSixteenNineVideo_:function(u){return u<=.7501&&u>=.5624},
computeIsExtraWideVideo_:function(u){return u<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.tK(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.tK(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.C2k(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(u){var K=_.f7(u)||0;_.Uj(u,K+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var u=_.f7("yt-fullerscreen-edu-button-click-count")||0,K=_.f7("yt-fullerscreen-edu-button-shown-count")||0,l=_.Sg("external_fullscreen_button_shown_threshold"),D=u>=_.Sg("external_fullscreen_button_click_threshold")||K>=l;_.tK(this).getPlayerPromise().then(function(d){d.updateFullerscreenEduButtonSubtleModeState(D)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(u,K){return K},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.GB().resolve(_.lX).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var u=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.YL.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.YL.addLowPriorityJob(function(){u.fullHeightPanelPositionUpdateJobId=0;var K=_.bi(u.hostElement).querySelector("#secondary"),l=_.bi(u.hostElement).querySelector("#fixed-secondary");K=K.getBoundingClientRect();var D=K.width;u.swatcherooSqueezeback&&
(D+=_.BC);if(u.swatcherooSqueezeback){var d=_.bi(u.hostElement).querySelector("#squeezeback-constraining-container");d.style.width=D+"px";d.style.flex="0 0 "+D+"px"}l.style.width=D+"px";l.style.left=K.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var u=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.YL.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.YL.addLowPriorityJob(function(){u.panelMaxHeightUpdateJob_=0;var K;!u.isTwoColumns_||u.theater||u.fullscreen?K=460:K=u.calculateNormalPlayerSize_().height;var l=K+"px";_.S("live_chat_taller_height")&&!u.theater&&(l="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.S("live_chat_medium_height")&&!u.theater&&(l="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.S("live_chat_scaled_height")&&!u.theater&&(l="calc(100vh - var(--ytd-toolbar-height) - 238px)");u.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":K+"px","--ytd-watch-flexy-chat-max-height":l,"--ytd-watch-flexy-structured-description-max-height":K+"px","--ytd-watch-flexy-comments-panel-max-height":K+"px","--ytd-comments-engagement-panel-content-height":K+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(u){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",u)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ay(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(u){var K=_.bi(this.hostElement).querySelector("#engagement-panel-scrim");u?K.addEventListener("tap",_.Ql(this,this.onEngagementPanelScrimClick_)):K.removeEventListener("tap",_.Ql(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(u){if(this.hostElement.contains(u)&&!this.scrollToAnimation_.isAnimating()){var K=u.offsetTop-24;u=u.offsetTop+u.offsetHeight+24;var l=this.getPageScrollingElement(),D=this.getScrollTop(),d=D+l.clientHeight-56;if(K<D+56)K-=56;else if(u>d)K=u-l.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,K),500)}},
onYtSignalActionScrollToComments:function(){var u=this.hostElement.querySelector("#comments");if(u&&!this.scrollToAnimation_.isAnimating()){u=u.offsetTop-56-24;if(_.S("kevlar_comment_teaser_scroll_to_midpoint")&&(u-=_.BK().height/3,u<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,u),500)}},
onYtEngagementPanelVisibleChanged:function(u,K,l){if(this.active&&this.trackEngagementPanelVisibility&&!_.AOu.includes(l)){if(K==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.bI(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var D=_.GB().resolve(_.gP);this.visiblePanelIdentifiers_.forEach(function(d){d!==l&&D.hidePanel(d)})}this.visiblePanelIdentifiers_.add(l)}K!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&K!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(l);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(u){return u?"":"watch-active-metadata"},
computeNewMetadataClass:function(u){return u?"watch-active-metadata":""},
computeFullBleedPlayer:function(u,K,l){return _.S("web_watch_error_screen_fix")?_.S("external_fullscreen")&&u||K||this.enableFullBleedSingleColumnDefaultPlayer&&!l:u||K||this.enableFullBleedSingleColumnDefaultPlayer&&!l},
computeDefaultLayout:function(u){return!u},
computeDefaultTwoColumnLayout:function(u,K){return!u&&K},
updatePanelsLocation:function(){if(_.S("web_watch_enable_fs_squeezeback_panels")&&this.isAttached){var u=_.bi(this.hostElement).querySelector("#below"),K=_.bi(this.hostElement).querySelector("#panels"),l=_.bi(this.hostElement).querySelector("#playlist"),D=_.bi(this.hostElement).querySelector("#chat-container"),d=_.bi(this.hostElement).querySelector("#panels-full-bleed-container"),C=_.bi(this.hostElement).querySelector("#secondary-inner"),W=this.fullscreen||this.theater&&this.iMaxTheaterMode,M=this.theater&&
!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;W?(d.appendChild(K),d.appendChild(D),d.appendChild(l)):this.isTwoColumns_?(M?(u=_.bi(this.hostElement).querySelector("#columns"),(D==null?void 0:D.parentElement)!==u&&u.append(D),this.fixedPanels=!0):_.J4(C,D),_.J4(C,K),_.J4(C,l)):(u.appendChild(K),u.appendChild(D),u.appendChild(l))}},
swatcherooUpdatePanelsLocation:function(u,K,l,D,d,C){if(this.is==="ytd-watch-grid"){K=u&&!K;this.swatcherooSplitScroll&&(K?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));l=_.bi(this.hostElement).querySelector("#panels");var W=_.bi(this.hostElement).querySelector("#playlist"),M=_.bi(this.hostElement).querySelector("#fixed-secondary"),q=_.bi(this.hostElement).querySelector("#fixed-below"),
v=_.bi(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),G=_.bi(this.hostElement).querySelector("#chat-container");C&&(u?M.appendChild(l):q.appendChild(l));d?u?M.appendChild(G):q.appendChild(G):_.hy(G,v);D?u?M.appendChild(W):q.appendChild(W):_.hy(W,v);this.swatcherooSplitScroll&&(u=_.bi(this.hostElement).querySelector("#secondary"),D=_.bi(this.hostElement).querySelector("#columns"),d=_.bi(this.hostElement).querySelector("#fixed-columns-secondary"),K?
d.appendChild(u):D.appendChild(u))}},
computeMetadataSkinnyMode:function(u,K,l){return this.is!=="ytd-watch-grid"?!1:u?l:K},
computeWatchWhilePanelsActive:function(u,K){return u||K},
computeNoBorderOnChat:function(u){return _.S("web_watch_theater_chat_no_border")&&u},
computeLiveChatPresentAndExpanded:function(u,K){return u&&!K},
computePanelExpanded:function(u,K,l){return u||K||l},
computeSqueezeback:function(u,K,l,D){if(_.S("web_watch_enable_fs_squeezeback_panels")){var d=this.iMaxTheaterMode&&this.theater;return(u||K||l)&&(D||d)}},
computeSwatcherooSqueezeback:function(u,K,l){return this.is!=="ytd-watch-grid"||_.S("ww_squeezeback_killswitch")?!1:u&&K&&l},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(u){_.tK(this).getPlayerPromise().then(function(K){var l;(l=K.changeMarkerVisibility)==null||l.call(K,_.b(u,_.NW).isVisible||!1,_.b(u,_.NW).entityKeys||[],_.b(u,_.NW).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(u){this.liveChatCollapsed=u.detail;_.Mu().dispatch(_.Yy9(u.detail));if(!this.liveChatCollapsed&&this.squeezeback){var K=_.GB().resolve(_.gP);this.visiblePanelIdentifiers_.forEach(function(l){K.hidePanel(l)})}},
onSetPlaylistCollapsed:function(u){_.S("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!u)},
provideRenderingData:function(u,K){switch(u){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=K;break;case "PRIMARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=K);this.videoPrimaryInfoRendererValue=K==null?void 0:K.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=K);this.videoSecondaryInfoRendererValue=K==null?void 0:K.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
K;break;case "CLARIFICATION":this.clarifyBoxValue=K;break;case "LIVE_CHAT":this.conversationBar=K;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=K;break;case "PLAYLIST":this.externalPlaylistData_=K!=null?K:{};break;case "MERCH_SHELF":this.merchShelfValue=K==null?void 0:K.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=K;break;case "TICKET_SHELF":this.ticket=K;break;case "OFFER_MODULE":this.offerModule=K;break;case "LIMITED_STATE":this.limitedStateValue=
K;break;case "DONATION_SHELF":this.donation=K;break;case "ALERTS":this.alertsValue=K;break;case "COMMENTS":this.comments=K;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=K;break;case "ENGAGEMENT_PANELS":this.engagementPanels=K;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=K;break;case "RICH_GRID_RENDERER":this.richGridRendererData=K;break;case "EXPANDABLE_METADATA":this.expandableMetadata=K;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
K;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=K}},
toggleCinematicsActive:function(u){this.cinematicsActive=u},
isMiniplayerActive:function(){return _.GB().resolve(_.uD).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var mmk;_.XuV=function(u){if(!(0,_.mzh)(u))throw Error("K``"+String(u));};
_.hao=function(u){return u.findIndex(function(K){return mmk.indexOf(K.tagName)>-1})>-1};
_.EEE=function(){var u=_.GB().resolve(_.iX);_.xEZ(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(u.isFullscreenEnabled()?_.v0(document.documentElement):_.YcH(document.documentElement))};
mmk=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.x7=new Map;_.x7.set(32,59972);_.x7.set(27,50765);_.x7.set(70,60102);_.x7.set(76,60221);_.x7.set(77,60222);_.x7.set(74,60223);_.x7.set(84,60224);_.x7.set(38,61941);_.x7.set(40,61942);_.x7.set(73,62521);_.x7.set(67,62522);_.x7.set(80,63390);_.x7.set(78,63397);_.x7.set(75,59972);_.x7.set(188,63385);_.x7.set(190,63384);_.x7.set(36,63387);
_.x7.set(35,63386);_.x7.set(37,63388);_.x7.set(39,63389);_.x7.set(79,63423);_.x7.set(87,63424);_.x7.set(107,63426);_.x7.set(109,63425);_.x7.set(65,63428);_.x7.set(83,63430);_.x7.set(68,63429);_.x7.set(221,63431);_.x7.set(219,63432);_.x7.set(97,63439);_.x7.set(98,63440);_.x7.set(99,63441);_.x7.set(100,63442);_.x7.set(101,63443);_.x7.set(102,63444);_.x7.set(103,63445);_.x7.set(104,63446);_.x7.set(105,63447);_.SE=new Map;_.SE.set(80,63390);_.SE.set(78,63397);_.SE.set(188,63400);_.SE.set(190,63401);
_.SE.set(191,60765);_.SE.set(13,247917);_.bV=new Map;_.OX=new Map;
}catch(e){_._DumpException(e)}
try{
var YQV,mtG,hyE,EV6;_.gVI=function(u){return u.ui.guideIsVisibleButNotPersistent};
_.NBI=function(u){return u.ui.tabGesturesIsActive};
_.kZV=function(){var u=_.bZ("service_worker_scope");try{return navigator.serviceWorker.getRegistration(u)}catch(K){return Promise.reject(K)}};
_.ZVE=function(u){return!(!u||!u.pushManager)};
YQV=function(){return _.kZV().then(_.ZVE).catch(function(){return!1})};
_.AqB=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?YQV():Promise.resolve(!1)};
_.XO6=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
mtG=function(){var u,K,l;return _.H(function(D){switch(D.nextAddress){case 1:return D.yield(_.ki.getInstance(),2);case 2:u=D.yieldResult;if(!u){K=void 0;D.jumpTo(3);break}return D.yield(u.get("lmqf"),4);case 4:K=D.yieldResult;case 3:switch((l=K)||(l="SD"),l){case "HD":return D.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return D.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return D.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return D.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return D.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
hyE=function(u){var K,l,D;return _.H(function(d){if(d.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.S("disable_av1_setting")){var C=window.localStorage["yt-player-av1-pref"];C=C==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":C==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else C="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(K=u===C)return d.jumpTo(2);D=l=u;return d.yield(mtG(),3)}d.nextAddress!=2&&(K=D===d.yieldResult);return d.return(K)})};var LMo;var uLp=_.V7.IronButtonState,KtG=(0,_.wV)(HTMLElement);
_.YH({_template:function(){if(LMo!==void 0)return LMo;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;EV6===void 0&&(EV6=document.createElement("template"));var D=EV6;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return LMo=u},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[uLp,_.wC,_.gC,_.Zj],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(u){var K=(0,_.jB)(this);K.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:u});K.shadowRoot.appendChild(u);return KtG.prototype._attachDom.call(this,u)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var u=this.contentElement;u&&u.selectedItem&&this._setSelectedItem(u.selectedItem)},
get contentElement(){for(var u=_.wM(this.$.content).getDistributedNodes(),K=0,l=u.length;K<l;K++)if(u[K].nodeType===Node.ELEMENT_NODE)return u[K]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(u){this._setSelectedItem(u.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(u){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u)===this&&this.open()},
_selectedItemChanged:function(u){var K="";u?K=u.label||u.getAttribute("label")||u.textContent.trim():K="";this.value=K;this._setSelectedItemLabel(K)},
_computeMenuVerticalOffset:function(u,K){return K?K:u?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var u=this.opened?"true":"false",K=this.contentElement;K&&K.setAttribute("aria-expanded",u)}});_.MY=new _.r3("navigateAction");var l7H=new _.r3("formRenderer");var qY=function(){var u=_.ii.apply(this,arguments)||this;u.showInput=!1;return u};
_.c(qY,_.ii);_.I=qY.prototype;_.I.detached=function(){this.showInput&&window.removeEventListener("click",_.Ql(this,this.closeOnOutsideClick_))};
_.I.stopPropagation_=function(u){this.showInput&&u.stopPropagation()};
_.I.closeOnOutsideClick_=function(u){this.closeOnOutsideClickCondition(u)&&(this.showInput=!1,window.removeEventListener("click",_.Ql(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.I.closeOnOutsideClickCondition=function(){return!0};
_.I.closeOnOutsideClickHandler=function(){};
_.I.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Ql(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.I.openOnClickHandler=function(){};
_.I.showInputChanged=function(){};
_.I.setShowInput=function(u){this.showInput=u};
qY.prototype.setShowInput=qY.prototype.setShowInput;qY.prototype.showInputChanged=qY.prototype.showInputChanged;qY.prototype.openOnClickHandler=qY.prototype.openOnClickHandler;qY.prototype.openOnClick_=qY.prototype.openOnClick_;qY.prototype.closeOnOutsideClickHandler=qY.prototype.closeOnOutsideClickHandler;qY.prototype.closeOnOutsideClickCondition=qY.prototype.closeOnOutsideClickCondition;qY.prototype.closeOnOutsideClick_=qY.prototype.closeOnOutsideClick_;qY.prototype.stopPropagation_=qY.prototype.stopPropagation_;
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],qY.prototype,"showInput",void 0);_.g([_.PF("click"),_.PF("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],qY.prototype,"stopPropagation_",null);_.g([_.JU("showInput"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean]),_.N("design:returntype")],qY.prototype,"showInputChanged",null);_.g([_.TQ()],qY);_.Dop=[qY.prototype];var do6;var Cr6;var $J=function(){return _.Q.apply(this,arguments)||this};
_.c($J,_.Q);_.I=$J.prototype;_.I.computePreselectedOption=function(u,K){return K===this.itemSelected_?u:void 0};
_.I.dataChanged_=function(){var u=this;this.preselectedSubreason=this.itemSelected_=-1;var K;(K=this.data)!=null&&K.key&&_.W_(this,function(){var l,D=Number((l=u.data)==null?void 0:l.key);!Number.isNaN(D)&&(u.itemSelected_=D,l=(l=(u.data.items||[])[D])&&l.optionSelectableItemRenderer&&l.optionSelectableItemRenderer.preselectedIndex)&&(u.preselectedSubreason=l)})};
_.I.isSubReasonHidden_=function(u,K){return u!=K};
_.I.onTopItemSelected_=function(u,K){for(var l=_.bi(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),D=0,d=l.length;D<d;D++)l[D].select(0);_.Sy(this.hostElement,"yt-report-form-update",[K.item.value]);u.stopPropagation()};
_.I.onItemSelected_=function(u,K){_.Sy(this.hostElement,"yt-report-form-update",[K.item.value]);u.stopPropagation()};
_.I.getItem_=function(u){return u.serviceItem?u.serviceItem:u.navigationItem?u.navigationItem:u.optionSelectableItemRenderer?u.optionSelectableItemRenderer:null};
_.I.computeText_=function(u){return(u=this.getItem_(u))?this.ytRendererBehavior.getSimpleString(u.text):null};
_.I.validate=function(){return this.itemSelected_!==-1};
_.I.computeAriaLabel_=function(u){var K=_.WI(u.text);(u=u.accessibility&&u.accessibility.accessibilityData&&u.accessibility.accessibilityData.label)&&(K+=". "+u);return K};
_.I.computeItemSelected_=function(u){return u};
_.I.preventSelection_=function(u){u.stopPropagation();this.tooltipTapped=!0};
_.I.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.I.updateItemSelectedFromBinding=function(u){this.itemSelected_=u.detail.value};
_.I.save=function(){var u;this.validate()&&(u=this.data)!=null&&u.items&&(u=this.data.items[this.itemSelected_],u!=null&&u.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(u.optionSelectableItemRenderer.submitEndpoint)||_.c0(this.hostElement,[u.optionSelectableItemRenderer.submitEndpoint])))};
$J.prototype.onPaperRippleTransitionEnd_=$J.prototype.onPaperRippleTransitionEnd_;$J.prototype.dataChanged_=$J.prototype.dataChanged_;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],$J.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],$J.prototype,"data",void 0);_.g([_.U({value:-1}),_.N("design:type",Number)],$J.prototype,"itemSelected_",void 0);
_.g([_.U({computed:"computeItemSelected_(itemSelected_)"}),_.N("design:type",Number)],$J.prototype,"value",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],$J.prototype,"restoreFocusOnClose",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],$J.prototype,"tooltipTapped",void 0);_.g([_.U({value:-1}),_.N("design:type",Number)],$J.prototype,"preselectedSubreason",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$J.prototype,"dataChanged_",null);_.g([_.PF("transitionend"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$J.prototype,"onPaperRippleTransitionEnd_",null);_.g([_.E9({is:"yt-options-renderer",disableElementRegistration:!0})],$J);
_.F($J,"yt-options-renderer",function(){if(Cr6===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;do6===void 0&&(do6=document.createElement("template"));var D=do6;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Cr6=u}u=Cr6;return u},{mode:2});var I7p;var ygo;var sZG;var oTV;var WtH;var HI_;var nx=function(){return _.Q.apply(this,arguments)||this};
_.c(nx,_.Q);nx.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
nx.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
nx.prototype.onTap=function(u){if(this.hostElement.classList.contains("selected")||_.Ox(this.hostElement,"yt-share-panel-can-select-contact-action"))u&&u.detail&&(u.detail.x||u.detail.y)&&_.bi(this.hostElement).querySelector("#target").blur(),(u=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),u={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:u?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.Sy(this.hostElement,"yt-share-panel-select-contact-action",[u])};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],nx.prototype,"ytRendererBehavior",void 0);_.g([_.U({observer:"onDataChanged"}),_.N("design:type",Object)],nx.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.N("design:type",String)],nx.prototype,"componentTitle",void 0);_.g([_.BF("#thumbnail"),_.N("design:type",Object)],nx.prototype,"thumbnail",void 0);_.g([_.E9({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],nx);
_.F(nx,"yt-enrolled-contact-renderer",function(){if(HI_===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;WtH===void 0&&(WtH=document.createElement("template"));var D=WtH;l.call(K,D.content.cloneNode(!0),u.content.firstChild);HI_=u}u=HI_;return u},{mode:2});var M96;var qnE;var rt=function(){return _.Q.apply(this,arguments)||this};
_.c(rt,_.Q);rt.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
rt.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
rt.prototype.onTap=function(u){if(this.hostElement.classList.contains("selected")||_.Ox(this.hostElement,"yt-share-panel-can-select-contact-action"))u&&u.detail&&(u.detail.x||u.detail.y)&&_.bi(this.hostElement).querySelector("#target").blur(),(u=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),u={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:u?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.Sy(this.hostElement,"yt-share-panel-select-contact-action",[u])};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],rt.prototype,"ytRendererBehavior",void 0);_.g([_.U({observer:"onDataChanged"}),_.N("design:type",Object)],rt.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.N("design:type",String)],rt.prototype,"componentTitle",void 0);_.g([_.BF("#thumbnail"),_.N("design:type",Object)],rt.prototype,"thumbnail",void 0);_.g([_.E9({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],rt);
_.F(rt,"yt-suggested-contact-renderer",function(){if(qnE===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;M96===void 0&&(M96=document.createElement("template"));var D=M96;l.call(K,D.content.cloneNode(!0),u.content.firstChild);qnE=u}u=qnE;return u},{mode:2});var vG=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-share-panel-reset-action":"onReset"};return u};
_.c(vG,_.Q);vG.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"}}}}}};
vG.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.Sy(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
vG.prototype.onReset=function(){for(var u=_.bi(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),K=u.length-1;K>=0;K--)u[K].classList.toggle("selected")};
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],vG.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],vG.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U({observer:"onDataChanged"}),_.N("design:type",Object)],vG.prototype,"data",void 0);
_.g([_.E9({is:"yt-contact-section-renderer",disableElementRegistration:!0})],vG);
_.F(vG,"yt-contact-section-renderer",function(){if(oTV===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;sZG===void 0&&(sZG=document.createElement("template"));var D=sZG;l.call(K,D.content.cloneNode(!0),u.content.firstChild);oTV=u}u=oTV;return u},{mode:2});var GL=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return u};
_.c(GL,_.Q);_.I=GL.prototype;_.I.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"}}}};
_.I.onYtRefreshFormCommand=function(u){var K;(u=_.b((K=_.b(u,_.ZJS))==null?void 0:K.formRenderer,l7H))&&this.set("data",u)};
_.I.reset=function(){var u=_.bi(this.hostElement).querySelector("#fields").children;u=_.y(u);for(var K=u.next();!K.done;K=u.next())K=K.value,K.reset&&K.reset()};
_.I.getForm=function(){var u={},K=_.bi(this.hostElement).querySelector("#fields").children;K=_.y(K);for(var l=K.next();!l.done;l=K.next()){l=l.value;if(!l.validate())return null;u[l.data.key]=l.value}return u};
_.I.submitFormFields=function(){if(this.fields)for(var u=_.y(this.fields),K=u.next();!K.done;K=u.next())K=K.value,K.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?K.save():K.nodeName==="YT-OPTIONS-RENDERER"&&K.save()};
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],GL.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],GL.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],GL.prototype,"data",void 0);_.g([_.pg("#fields > *"),_.N("design:type",Array)],GL.prototype,"fields",void 0);
_.g([_.E9({is:"yt-form-renderer",disableElementRegistration:!0})],GL);
_.F(GL,"yt-form-renderer",function(){if(ygo===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;I7p===void 0&&(I7p=document.createElement("template"));var D=I7p;l.call(K,D.content.cloneNode(!0),u.content.firstChild);ygo=u}u=ygo;return u},{mode:2});var $o_;var tI=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return u};
_.c(tI,_.Q);tI.prototype.onCheckboxChange=function(u){this.data&&(u=(this.checked=_.HF(u).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.GB().resolve(_.t9).resolveCommand(u,{form:{element:this.hostElement}})};
tI.prototype.handleUpdateCheckboxCommand=function(u){(u=_.b(u,_.sM0))&&this.data&&this.data.id===u.id&&(this.set("data.disabled",u.disabled),this.set("data.title",u.title))};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],tI.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],tI.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],tI.prototype,"checked",void 0);_.g([_.T({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],tI);
_.F(tI,"ytd-settings-checkbox-renderer",function(){if($o_!==void 0)return $o_;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return $o_=u},{mode:1});var nTo;var xJ=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return u};
_.c(xJ,_.Q);xJ.prototype.dataChanged=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1)return u.radio.removeAttribute("checked"),!u.data||!u.data.id||u.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.XO6()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(K=u.data&&u.data.id)?l.yield(hyE(u.data.id),4):l.jumpTo(3):(u.set("data.hidden",!0),l.jumpTo(0));l.nextAddress!=3&&(K=l.yieldResult);K&&_.Sy(u.hostElement,"yt-select-settings-radio-option",[u.data.id]);_.TG(l)})};
xJ.prototype.onButtonChanged=function(u){_.HF(u).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.GB().resolve(_.t9).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.Sy(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
xJ.prototype.onSelectOption=function(u){this.data&&this.data.id&&(this.data.id===u?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
xJ.prototype.dataChanged=xJ.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],xJ.prototype,"ytActionHandlerBehavior",void 0);_.g([_.BF("#radio"),_.N("design:type",Object)],xJ.prototype,"radio",void 0);_.g([_.U(),_.N("design:type",Object)],xJ.prototype,"data",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],xJ.prototype,"dataChanged",null);_.g([_.T({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],xJ);
_.F(xJ,"ytd-settings-radio-option-renderer",function(){if(nTo!==void 0)return nTo;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return nTo=u},{mode:1});var rgk;var SL=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return u};
_.c(SL,_.Q);
SL.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"}}}};
SL.prototype.handleUpdateTextCommand=function(u){(u=_.b(u,_.o4a))&&this.data&&this.data.id===u.id&&this.set("data",u)};
SL.prototype.handleUpdateConnectedAppRendererCommand=function(u){if(_.b(u,_.MSw)&&this.data){var K,l;if(u=(K=_.b(u,_.MSw))==null?void 0:(l=K.newConnectedAppRenderer)==null?void 0:l.connectedAppRenderer)this.data=u}};
SL.prototype.computeConnectedAppStyle=function(u){return u.style?u.style.toLowerCase().replace(/_/g,"-"):""};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],SL.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],SL.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],SL.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.N("design:type",String)],SL.prototype,"connectedAppStyle",void 0);_.g([_.T({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],SL);
_.F(SL,"ytd-connected-app-renderer",function(){if(rgk!==void 0)return rgk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return rgk=u},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Zu("iuT5Oc");

_.YV();
}catch(e){_._DumpException(e)}
try{
_.Zu("L3n37");
var bV9=function(u){return u.watch.isLearningJourneyActive},OV5=_.Yo(115994),cq5=_.Yo(115993),auF=function(u,K,l){var D=this;
var d=l.dragDownAction;this.layer=0;this.JSC$22815_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return D.dragDownAction()}}}};
this.JSC$22815_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return D.dragDownAction()}}}};
this.fullscreen=!1;var C=_.iT();_.U7(C,OV5,this.layer);_.U7(C,cq5,this.layer);this.dragDownAction=function(){d();_.sK(C,{visualElement:D.fullscreen?OV5:cq5})};
this.gesture=new _.WT(u,K,this.JSC$22815_watchConfig,"pandown");this.attach()};
auF.prototype.attach=function(){this.gesture.attach()};
auF.prototype.detach=function(){this.gesture.detach()};
auF.prototype.update=function(u){this.fullscreen=u;this.gesture.config=u?this.JSC$22815_watchFullScreenConfig:this.JSC$22815_watchConfig};var zyk=function(u){_.tv.call(this);var K=this;this.rootElement=u;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return K.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(l){K.initOrDisposeActiveModules(l)}));
this.onAttached()};
_.c(zyk,_.tv);_.I=zyk.prototype;_.I.getRoot=function(){return this.rootElement};
_.I.getElement=function(u){return this.rootElement.getElement(u)};
_.I.setPlayerResponse=function(u){this.playerResponse=u;this.publish("PLAYER_RESPONSE_UPDATED",u)};
_.I.getPlayerResponse=function(){return this.playerResponse};
_.I.setWatchNextResponse=function(u){this.watchNextResponse===u?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=u,this.publish("WATCH_NEXT_RESPONSE_UPDATED",u))};
_.I.getWatchNextResponse=function(){return this.watchNextResponse};
_.I.registerActionHandler=function(u,K){var l=this;if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var D={};_.I9(_.Ci.getInstance(),(D[u]=K,D),this.getRoot())}else this.actionHandlers.has(u)||(this.actionHandlers.set(u,[]),D={},_.I9(_.Ci.getInstance(),(D[u]=function(){var d=_.uY.apply(0,arguments);return(l.actionHandlers.get(u)||[]).map(function(C){return C.apply(null,_.Am(d))})},D),this.getRoot())),this.actionHandlers.get(u).push(K)};
_.I.unregisterActionHandler=function(u){if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var K={};_.yH(_.Ci.getInstance(),(K[u]=!0,K),this.getRoot())}else(K=this.actionHandlers.get(u))?(K.pop(),K.length===0&&(K={},_.yH(_.Ci.getInstance(),(K[u]=!0,K),this.getRoot()),this.actionHandlers.delete(u))):_.hV(new _.wv("Attempted to unregister an action handler which is not registered.",u))};
_.I.addPageDisposeJob=function(u){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Nw(this.rootElement.pageDisposeJobs,u)};
_.I.removePageDisposeJob=function(u){this.rootElement.pageDisposeJobs&&_.AH(this.rootElement.pageDisposeJobs,u)};
_.I.dispatchEvent=function(u,K){_.xs(this.rootElement,u,K)};
_.I.provideRenderingData=function(u,K){this.rootElement.provideRenderingData(u,K)};
_.I.scrollWatchTo=function(u,K){var l;(l=this.watchScrollManager)==null||l.scrollWatchTo(u,K)};
_.I.focusOnPlayer=function(){var u=this.getElement("PLAYER");_.W_(u,function(){if(u&&u.firstElementChild){var K=u.querySelector(".html5-video-player");K&&(_.vB(_.GB().resolve(_.Xb)),K.focus())}else _.hV(Error("vo"))})};
_.I.updateCinematicFullscreenConfig=function(){var u=!!this.rootElement.theater,K=!!this.rootElement.fullscreen,l;(l=this.watchCinematicManager)==null||_.Qk(l,K,u)};
_.I.subscribeToActiveChanged=function(u,K){K=K===void 0?!0:K;var l=_.iF(_.Mu(),bV9,function(D){u(D)});
K&&u(bV9(_.Mu().getState()));return l};
_.I.isActive=function(){return bV9(_.Mu().getState())};
_.I.onAttached=function(){var u=_.S("external_fullscreen");_.S("use_unified_flag_accessor")&&(u=_.GB().resolve(_.k6o).retriever.getFlag(_.l7N));(u||_.L0("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.I.initPersistentModules=function(){if(_.S("kevlar_watch_flexy_theater_manager")){var u=new _.kgg(this);_.eb(this,u)}u=new _.UTS(this);_.eb(this,u);u=new _.eJ(this);_.eb(this,u);u=new _.BQ(this);_.eb(this,u);u=new _.d0g(this);_.eb(this,u);u=new _.Uw(this);_.eb(this,u);_.S("kevlar_watch_flexy_playlist_manager")&&(u=new _.yOr(this),_.eb(this,u))};
_.I.initOrDisposeActiveModules=function(u){u?(this.watchScrollManager=new _.i$(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.NmM(this)),this.activeModules.push(new _.XEg(this)),this.activeModules.push(new _.qyS(this)),this.activeModules.push(new _.p8(this)),_.S("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.L_9(this)),this.activeModules.push(new _.mTQ(this)),_.S("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.n$u(this)),
_.S("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.ym9(this)),_.S("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Mjr(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.S("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.uBX(this)),_.S("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.e3b(this)),u=_.S("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.S("kevlar_watch_flexy_comments_manager")&&!u&&this.activeModules.push(new _.bHX(this)),_.S("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Rp(this)),this.activeModules.push(new _.LJu(this)),this.activeModules.push(new _.ZHg(this)),_.S("web_enable_timely_actions")&&this.activeModules.push(new _.DTu(this)),_.S("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.akb(this)),_.S("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.rXQ(this)),
_.S("web_fullscreen_components")&&this.activeModules.push(new _.D9S(this)),_.S("web_player_rtr_ctrls")&&this.activeModules.push(new _.euu(this))):(_.$V(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.I.disposeInternal=function(){_.tv.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.MN.Object.defineProperties(zyk.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var eyS={},RyX=["learning-journey-engagement-panel","PAlearning_chat"];
eyS.YtdLearningJourneyWatchBehavior=[_.Y.YtRendererBehavior,_.WB.YtPlayerListenerBehavior,_.SK.YtRendererstamperBehavior,_.bf.YtActionHandlerBehavior,_.zo.YtPageBehavior,_.po.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 _.L0("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.S("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 _.L0("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 _.S("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.S("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 _.Sg("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Sg("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.S("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.S("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_watch_rounded_player_large")||_.S("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 _.S("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.S("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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:_.lJ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.lJ(["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 u=this;this.watchController=void 0;this.pageDisposeJobs=[function(){u.showMetadataPlaceholder_()},
function(){_.S("web_watch_dont_clear_comments")||u.clearComments_()},
function(){u.clearPlayerAds_()},
function(){u.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;_.S("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.S("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.h_5(function(){return _.tK(u)},this.hostElement);
this.pageDisposeJobs.push(function(){u.youThereManager_.reset()});
_.S("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){u.resetFullerscreenEduButtonForNewPlayback_()}));
_.S("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.z7;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;_.S("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.S("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));_.S("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Ql(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(u){u&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:u}),u.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(u){_.S("kevlar_watch_flexy_theater_manager")&&(this.theater=u,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.S("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(u){!_.S("kevlar_watch_while_v2")&&!_.S("web_watch_pip")||u||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(u){this.active!==void 0&&(this.fullscreen=u,_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(u){this.active!==void 0&&(_.xs(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(u>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(u){this.initCsi_();this.updatePageData_(u)},
updatePageData_:function(u){var K=this;if(u)if(this.data===u){this.onPageLoadWithSameData_();var l;(l=this.watchController)==null||l.setWatchNextResponse(this.data)}else this.data=u;this.playlist&&_.Zy({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.As("nw");this.loading=!1;_.Ve(_.YL,function(){K.initDclkstatus_();var D,d=((D=K.player)==null?void 0:D.getVideoData().cpn)||"";_.pKb(function(C,W){_.Zp_(C,W,d)})})},
onPageLoadWithSameData_:function(){_.S("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 u=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!u);this.set("loadingData.playlistLoading",u&&u!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),u=this.watchNextSkeletonEl_.firstElementChild;u;)u.classList.remove("hidden"),u=u.nextElementSibling;var K,l,D;u=(K=this.loadingData)==null?void 0:(l=K.endpoint)==null?void 0:(D=l.watchEndpoint)==null?void 0:D.videoId;var d;u&&(d="https://i.ytimg.com/vi/"+u+"/frame0.jpg");_.bi(this.hostElement).querySelector("#player").style.backgroundImage=d?"url("+d+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var u=_.bi(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&u&&(u.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var K,l;(l=(K=this.watchMetadata).updateSentimentBarWidth)==
null||l.call(K);var D,d;(d=(D=this.watchMetadata).resize)==null||d.call(D)}_.bi(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(u){var K=_.bi(this.hostElement).querySelector(u);K?_.GA(K,!1):_.hV(new _.wv("Overscroll monitor not found for component: ",u))},
removeSplitScrollMouseTrap:function(u){var K=_.bi(this.hostElement).querySelector(u);K?_.ts(K):_.hV(new _.wv("Disposal component for  overscroll monitoring not found: ",u))},
onLoadingChanged_:function(u){u?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(u){var K=this;u?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.YL.addLowPriorityJob(function(){K.onWindowResized_(_.iv(!0))})},
updateTheaterModeState_:function(u){if(!_.S("kevlar_watch_flexy_theater_manager")){u=u||this.fullWindowMode_;if(this.theater!==void 0||u)this.theater=u;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();u&&_.mz6()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var u=this.theater;_.S("external_fullscreen")&&this.fullscreen&&(u=!0);u=u?_.bi(this.hostElement).querySelector("#player-full-bleed-container"):_.bi(this.hostElement).querySelector("#player-container-inner");var K=this.getPlayerContainer(),l=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip");K.parentElement!==u&&(l&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.tK(this).appendTo(u,K),u.appendChild(_.bi(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var u=this;return _.H(function(K){if(K.nextAddress==1)return K.yield(_.GB().resolve(_.uD).deactivate(),2);u.updatePlayerLocation();_.TG(K)})},
updateCinematicsLocation:function(){var u=this.getElement("CINEMATICS");if(u){var K=this.getCinematicsLocationContainer();u.parentElement!==K&&K.appendChild(u);var l;(l=this.watchController)==null||l.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.bi(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.bi(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(u,K){var l=document.documentElement.hasAttribute("dark"),D=l&&_.S("web_cinematic_theater_mode"),d=l&&_.S("web_cinematic_fullscreen");l=!l&&this.cinematicLightTheme;return u&&D||K&&d||(K||u)&&l},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var u;(u=this.watchController)==null||u.setWatchNextResponse(this.data);_.S("kevlar_watch_flexy_comments_manager")||this.initComments_();_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.GB().resolve(_.lX).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.S("web_watch_start_chat_in_theater_mode")){var K,
l,D;if((K=this.data)==null?0:(l=K.contents)==null?0:(D=l.twoColumnWatchNextResults)==null?0:D.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var d,C;((d=this.data)==null?0:(C=d.contents)==null?0:C.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(u){var K;(K=this.watchController)==null||K.setPlayerResponse(this.playerData);u&&u.playabilityStatus&&(K=this.isVideoPlayable_(u.playabilityStatus,this.getPlayerOverlays_(this.data)),u=this.isLiveStreamOffline_(u.playabilityStatus),K&&!u||_.W_(this,function(){_.As("pbu")}));
this.setPlayerAds_();_.bI(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(u){_.Mu().dispatch(_.SZ({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));u?this.activate_():this.deactivate_()},
attached:function(){var u=this;this.watchController=new zyk(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.S("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var K=_.tK(this);_.S("kevlar_disable_prepare_player")||K.preparePlayer();_.S("kevlar_watch_flexy_playlist_manager")||_.GB().resolve(_.lX).setPlayer(K);this.updatePageMediaQueries();K={"--ytd-watch-flexy-scrollbar-width":_.LY()+
"px"};!_.Sg("kv_pl_mx_sz_ks")&&_.Sg("kevlar_watch_max_player_width")&&(K["--ytd-watch-flexy-max-player-width-wide-screen"]=_.fE_+"px");_.Sg("kevlar_watch_flexy_metadata_height")&&(K["--ytd-watch-flexy-space-below-player"]=_.Qpk+"px");this.safeUpdateStyles(K);_.S("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new auF(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return u.onPlayerTouchPanDown_()}}));
_.S("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.bi(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var u=_.LY(),K=_.pq+u,l=K;this.fixedPanels&&(K+=_.UWI);var D=657+u;u=1327+u;_.bi(this.hostElement).querySelector("#two-column-query").query="(min-width: "+K+"px)";_.bi(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(D+"px), (min-height: 630px) and (min-width: ")+(K+"px) and (max-width: ")+(u+"px)");_.bi(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(u+"px)");
_.bi(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+l+"px)"},
calculateCurrentPlayerSize_:function(){var u=_.bi(this.hostElement).querySelector("#miniplayer-bar").firstChild;return u&&u.active||this.theater||_.S("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.jA(NaN,NaN):_.g7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.g7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.qt(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var u=this;this.onWindowResized_(_.iv());_.S("browse_skeleton_removal_on_watch_killswitch")||_.L0("IS_SHELL_LOAD")&&_.ToE();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var K=_.tK(this);K.addEventListener("yt-player-updated",_.Ql(this,this.onPlayerUpdated_));K.getPlayerPromise().then(function(l){u.playerApiReady_(l)});
_.S("kevlar_watch_flexy_playlist_manager")||(K=_.GB().resolve(_.lX),_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&K.addEventListener("yt-navigate",_.Ql(this,this.onYtNavigate_)),K.setPlaylistComponent(_.bi(this.hostElement).querySelector("#playlist")),K.addEventListener("yt-playlist-data-updated",_.Ql(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.YL.addLowPriorityJob(function(){_.xs(u.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.tK(this).removeEventListener("yt-player-updated",_.Ql(this,this.onPlayerUpdated_));if(!_.S("kevlar_watch_flexy_playlist_manager")){var u=_.GB().resolve(_.lX);_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&u.removeEventListener("yt-navigate",_.Ql(this,this.onYtNavigate_));u.cancelVideoSkip();u.removeEventListener("yt-playlist-data-updated",_.Ql(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.S("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.xs(this.hostElement,"yt-autonav-pause-player",!1);u=_.rd();_.S("kevlar_exit_fullscreen_leaving_watch")&&u&&_.v0(u)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(u){this.player&&this.player.updateVideoData({rvs:u.rvs})},
getPageContents:function(u){return u&&u.contents&&u.contents.twoColumnWatchNextResults&&u.contents.twoColumnWatchNextResults.results&&u.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(u){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",u)},
onRetrieveLocation_:function(u,K){K.hasComments?K.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):K.locationRetrieved("/related_ajax",void 0);u.stopPropagation()},
onSubscriptionChanged_:function(u,K){this.player&&(K?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ag("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.bi(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.bi(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(u){this.player=u;this.setPlayerState(u.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.S("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.S("kevlar_unified_player")||_.S("kevlar_player_new_bootstrap_adoption"))&&_.yU()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(u,K){K=K===void 0?!0:K;_.rd()&&_.S("external_fullscreen")&&_.v0(document.documentElement);this.theaterRequested_=u;K&&_.Bv("wide",u?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.S("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.Sy(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.xs(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(u){_.E5(u,typeof this.player),this.player&&_.E5(u,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var u;((u=this.player)==null?0:u.isFullscreen())?this.player.toggleFullscreen():_.Sy(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(u,K){return this.loading?K:!!Object.keys(u).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(u){if(u){u=_.y(u);for(var K=u.next();!K.done;K=u.next())K=K.value,K.youThereRenderer&&_.udr(this.youThereManager_,K.youThereRenderer)}},
setPlaylistData_:function(u){return u||{}},
userEngagementConfigDataChanged_:function(u){if(u)if(u.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var K=this.youThereManager_;_.Gr()<u.lowEngagementThresholdMs||_.dtk(K,!0)}else u.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Sy(this.hostElement,"yt-autonav-pause-user-engagement",[u])},
isPlayerUnavailable_:function(u,K,l){return!!u&&!this.isVideoPlayable_(u,l)&&!K},
getPlayerOverlays_:function(u){return(u==null?void 0:u.playerOverlays)||null},
isVideoPlayable_:function(u,K){if(!u)return!1;var l=u.status==="OK"||u.status==="LIVE_STREAM_OFFLINE",D=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",u)||this.get("errorScreen.ypcTrailerRenderer",u);u=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",u);var d;K=K==null?void 0:(d=K.playerOverlayRenderer)==null?void 0:d.gatedActionsOverlayRenderer;return!!l||!!D||!!u||!!K},
hasWatchNextResponseErrorRenderer:function(u){var K=this.getPageContents(u),l,D,d,C,W;return!(u==null?0:(l=u.contents)==null?0:(D=l.twoColumnWatchNextResults)==null?0:D.secondaryResults)&&!!((d=K[0])==null?0:(C=d.itemSectionRenderer)==null?0:(W=C.contents[0])==null?0:W.backgroundPromoRenderer)},
isLiveStreamOffline_:function(u){return u?u.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(u,K,l){var D=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",K),d=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];d=_.S("web_no_skip_video_on_verification_checks")?(u==null?void 0:u.status)&&d.includes(u.status):u&&u.status==="AGE_CHECK_REQUIRED";var C=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",u);C==void 0&&(C=!0);!l||this.isVideoPlayable_(u,this.getPlayerOverlays_(K))||
D||d||!C||_.GB().resolve(_.lX).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.g$J()},
onPlayerFeedbackStartRequest_:function(u){_.Sy(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:u}])},
onPlayerFeedbackArticleRequest_:function(u){_.Sy(this.hostElement,"yt-help-dialog-requested",[u])},
onPlayerYpcContentRequest_:function(){var u,K,l,D,d,C,W,M,q=((u=this.data)==null?NaN:(K=u.contents)==null?NaN:(l=K.twoColumnWatchNextResults)==null?NaN:(D=l.secondaryResults)==null?NaN:(d=D.secondaryResults)==null?NaN:(C=d.offerModule)==null?NaN:(W=C.tvfilmOfferModuleRenderer)==null?NaN:(M=W.actionButtons)==null?NaN:M.length)-1;u=[".offerButton.buttonRenderer.",".actionButtons."+(q>=0?q:0)+".buttonRenderer."];K=_.y(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(l=K.next();!l.done;l=K.next())for(l=l.value,D=_.y(u),d=D.next();!d.done;d=D.next())if(d="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+l+d.value,d=this.get(d+"navigationEndpoint",this.data)||this.get(d+"serviceEndpoint",this.data)||this.get(d+"command",this.data)){_.Jl(d,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(u){_.xs(this.hostElement,"yt-autonav-pause-player",u)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(u){u()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(u){switch(u){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(u){switch(u){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.xs(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(u)},
setPlayerState:function(u){_.Mu().dispatch(_.HKR(u))},
onPlayerSubscribe_:function(u){_.Sy(this.hostElement,"yt-player-subscribe",[u])},
onPlayerUnsubscribe_:function(u){_.Sy(this.hostElement,"yt-player-unsubscribe",[u])},
onPlayerAdYtShowToast_:function(u){_.Sy(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:u.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(u){if(u)return u},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(u){return!_.S("web_watch_move_summary_to_sd")&&!!u},
computeWatchMetadataRefresh:function(){return _.S("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var u,K,l,D;this.watchNextSecondaryResults=(u=this.data)==null?void 0:(K=u.contents)==null?void 0:(l=K.twoColumnWatchNextResults)==null?void 0:(D=l.secondaryResults)==null?void 0:D.secondaryResults}},
setRichGridRendererData:function(u){this.richGridRendererData=u},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var u,K=(u=this.data)==null?void 0:u.engagementPanels;if(K==null?0:K.length){u=null;K=_.y(K);for(var l=K.next();!l.done;l=K.next()){l=l.value;var D=void 0;if(((D=l.engagementPanelSectionListRenderer)==null?void 0:D.targetId)==="engagement-panel-structured-description"){u=l;break}}var d,C,W;u=(d=u)==null?void 0:(C=d.engagementPanelSectionListRenderer)==null?void 0:(W=C.content)==null?void 0:W.structuredDescriptionContentRenderer;if(u==null?0:u.items){d=
[];C=_.y(u.items);for(W=C.next();!W.done;W=C.next()){W=W.value;if(!_.S("sd_horizontal_list_show_nav_killswitch")){var M=D=l=K=u=void 0,q=void 0,v=(u=W.horizontalCardListRenderer)==null?void 0:(K=u.header)==null?void 0:(l=K.richListHeaderRenderer)==null?void 0:(D=l.navigationButton)==null?void 0:(M=D.buttonRenderer)==null?void 0:(q=M.command)==null?void 0:q.commandExecutorCommand;v&&v.commands&&(v.commands=v.commands.filter(function(G){return!_.b(G,_.ZOB)}))}W.expandableVideoDescriptionBodyRenderer||
W.videoDescriptionHeaderRenderer||d.push(W)}return{items:d}}}},
constructWarning_:function(u){return{text:_.o7(u),type:"WARNING"}},
isPlaShelfEnabled_:function(u){if((this.get("adPlacements",u)||[]).length)return!0;u=this.get("playerAds",u)||[];return!(!u.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",u[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var u=this;_.xs(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var K=this.getScrollTop()>0;this.gestures_&&(K?this.gestures_.detach():this.gestures_.attach());K!==this.showFullerscreenEdu_&&_.S("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=K,_.tK(this).getPlayerPromise().then(function(l){l.updateFullerscreenEduButtonVisibility(u.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.xs(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var u=this;this.commentsReady=!1;_.YL.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Ve(_.YL,function(){u.setComments_()},1E3)},
setComments_:function(){if(!_.S("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.As("cmi");_.YL.cancelJob(this.setCommentsJobId_);var u=this.getPageContents(this.data);if(u&&u.length){u=_.y(u);for(var K=u.next();!K.done;K=u.next())if(K=K.value,this.get("itemSectionRenderer.sectionIdentifier",K)==="comment-item-section"){this.comments=K.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.xs(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.S("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.As("cmc")},
doRemoveComments_:function(){this.comments={};_.S("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.YL.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.YL.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(u,K){var l=_.b(K.endpoint,_.oy);l&&(!(K=this.get("data.currentVideoEndpoint.watchEndpoint"))||l.videoId!==K.videoId||l.playlistId&&l.playlistId!==K.playlistId||l.index!==void 0&&l.index!==K.index||typeof l.startTimeSeconds!=="number"||(u.stopPropagation(),this.setScrollTop(0),_.tK(this).getPlayerPromise().then(function(D){var d=l.startTimeSeconds;D.seekTo(d);D.wakeUpControls();d<D.getDuration()&&D.playVideo()})))},
updatePlayerStartTime_:function(){var u=_.e_S();"t"in u&&(u=_.VAJ(u.t),this.player.seekTo(u,!0))},
updateTitleFromWatchNext:function(u){u=this.getPageContents(u);var K,l;(u=_.WI(u==null?void 0:(K=u[0])==null?void 0:(l=K.videoPrimaryInfoRenderer)==null?void 0:l.title))&&_.xs(this.hostElement,"yt-update-title",u)},
updateTitle_:function(u){u=this.get("videoDetails.title",u)||"";_.xs(this.hostElement,"yt-update-title",u)},
syncWithRemoteVideo_:function(u,K,l){if(this.active&&this.player){var D=this.player.getVideoData();if(D.video_id===l&&(l=D.list,_.S("polymer_enable_mdx_queue")&&l&&l.startsWith("RQ")&&(l=void 0),D.video_id!==u||l!=K)){var d;_.S("kevlar_player_watch_endpoint_navigation")?d=_.jl9(_.iSX(u,K)):d=this.buildWatchEndpoint_(u,K);_.xs(this.hostElement,"yt-navigate",{endpoint:d,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(u,K,l){return _.vi(u,K,l)},
initDclkstatus_:function(){_.Fpz()},
attachWatchPageSkeleton_:function(){var u=document.querySelector("#watch-page-skeleton");if(u){var K=u.querySelector("#primary-info"),l=u.querySelector("#secondary-info"),D=u.querySelector("#related");K&&_.bi(this.hostElement).querySelector("#info-skeleton").appendChild(K);l&&_.bi(this.hostElement).querySelector("#meta-skeleton").appendChild(l);D&&(_.bi(this.hostElement).querySelector("#related-skeleton").appendChild(D),this.watchNextSkeletonEl_=D);_.Jq(u)}},
handlePlayerUpdated_:function(){_.tK(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(u,K){if(this.watchNextSkeletonEl_&&typeof K!=="undefined"){var l=this.watchNextSkeletonEl_.children,D=u&&u.indexSplices.length?u.indexSplices[0].index:0;u=Math.min(this.watchNextShownItems.length,l.length);K||(D=0,u=l.length);for(K=D;K<u;K++)l[K].classList.add("hidden")}},
onPlayerFullscreenChange_:function(u){_.S("external_fullscreen")||_.Sy(this.hostElement,"yt-player-fullscreen",[u.fullscreen])},
onFullscreenChange_:function(u){this.fullscreen=u;this.gestures_&&this.gestures_.update(this.fullscreen);var K=_.tK(this);K.getPlayerPromise().then(function(l){l.setFauxFullscreen(!!_.rd())});
this.updateFullBleedElementLocations();u&&(K.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(u,K){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!K},
computeIsDonationShelfCollapsed_:function(u){return u},
computeShouldShowMerchShelf:function(u,K){return K&&!!u},
computeResponseHasComments:function(u){var K,l,D,d,C;return!!(u==null?0:(K=u.contents)==null?0:(l=K.twoColumnWatchNextResults)==null?0:(D=l.results)==null?0:(d=D.results)==null?0:(C=d.contents)==null?0:C.some(function(W){var M;return(W==null?void 0:(M=W.itemSectionRenderer)==null?void 0:M.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(u,K){this.responseHasComments=this.computeResponseHasComments(this.data);return!!u&&!!Object.keys(u).length&&!K},
identity:_.wq,onWindowResized_:function(u){this.windowSize_=u;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.S("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(u){var K=this;u&&u.type!=="dataloaded"&&u.type!=="dataupdated"||_.tK(this).getPlayerPromise().then(function(l){var D=l.getPlayerState();D!==5&&D!==0&&(l=1/l.getVideoAspectRatio(),K.videoHeightToWidthRatio_!==l&&(K.videoHeightToWidthRatio_=l))})},
schedulePlayerSizeUpdate_:function(u){var K=this,l=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip"),D=function(){if(K.watchMetadata){var d,C;(C=(d=K.watchMetadata).resize)==null||C.call(d)}_.tK(K).getPlayerPromise().then(function(W){if(_.S("kevlar_set_internal_player_size")){if(!l||!K.isMiniplayerActive()){var M=K.calculateCurrentPlayerSize_();W.setInternalSize(M.width,M.height)}}else W.setSize(NaN,NaN);_.S("kevlar_watch_while")&&K.updateWatchWhileScrollThreshold_()})};
u?D():_.Xf(_.YL,D)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(u){this.set("data.survey",u.detail)},
onYtShowSurveyCommand_:function(u){this.set("data.survey",_.b(u,_.m0u).survey)},
onDownloadedVideoDeleted:function(u){var K=this,l,D;return _.H(function(d){if(d.nextAddress==1){if(!K.active||(l=K.playerData)==null||!l.offlineState||K.videoId!==u)return d.return();(D=K.player)==null||D.stopVideo();_.B3().navigatingAwayFromWatchDeletedVideo=!0;_.Jl(_.Cb9,K.hostElement);return d.yield(_.B3().navigationFinishPromise,2)}_.B3().navigatingAwayFromWatchDeletedVideo=!1;_.TG(d)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var u;this.theater?u=_.mz(.5625*this.windowSize_.width,480,this.windowSize_.height-185):u=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==u&&(this.watchWhileScrollThreshold_=u,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var u=_.bi(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&u){var K=this.windowSize_.height>=624,l=this.active?this.getScrollTop():0;!u.active&&K&&l>=this.watchWhileScrollThreshold_?(u.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):u.active&&(!K||l<this.watchWhileScrollThreshold_&&!_.rd())&&(u.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(u,K){if(u!==!0||K!==void 0){u=!_.S("live_chat_over_engagement_panels");K=_.bi(this.hostElement).querySelector("#chat-container");var l=_.bi(this.hostElement).querySelector("#plj-sidebar"),D=_.bi(this.hostElement).querySelector("#panels"),d=_.bi(this.hostElement).querySelector("#plj-panels"),C=_.bi(this.hostElement).querySelector("#plj-playlist"),W=_.bi(this.hostElement).querySelector("#alerts"),M=_.bi(this.hostElement).querySelector("#playlist"),q=_.bi(this.hostElement).querySelector("#related"),
v=_.bi(this.hostElement).querySelector("#donation-shelf"),G=_.bi(this.hostElement).querySelector("#comments");this.isTwoColumns_?(W=_.bi(this.hostElement).querySelector("#secondary-inner"),W.appendChild(l),l.appendChild(C),C.appendChild(M),l.appendChild(d),u&&W.appendChild(D),_.S("web_watch_theater_chat")||W.appendChild(K),u||W.appendChild(D),W.appendChild(v),W.appendChild(q)):(u&&_.mI(D,W),_.mI(M,W),_.S("web_watch_theater_chat")||_.mI(K,W),u||_.mI(D,W),_.mI(v,W),G&&(d&&_.mI(d,G),_.mI(q,G)));_.S("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.S("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.S("web_watch_theater_chat")){var u=_.bi(this.hostElement).querySelector("#chat-container"),K=this.theater&&!this.fullscreen||_.S("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&K?_.S("web_watch_theater_chat_beside_player")?(K=_.bi(this.hostElement).querySelector("#panels-full-bleed-container"),(u==null?void 0:u.parentElement)!==K&&K.append(u),this.panelsBesidePlayer=!0):_.S("web_watch_theater_fixed_chat")&&
(K=_.bi(this.hostElement).querySelector("#columns"),(u==null?void 0:u.parentElement)!==K&&K.append(u),this.fixedPanels=!0):(_.S("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.S("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),K=_.bi(this.hostElement).querySelector("#playlist"),u&&K?_.hy(u,K):_.hV(new _.wv("Missing element when updating chat location",{"chatContainer defined":!!u,"playlist defined":!!K})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(u,K){return _.S("sw_metadata_vis_toggle_ks")?!0:!!u||!!K},
computeForceDarkPanelTheme:function(u){return _.S("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&u:!1},
safeUpdateStyles:function(u){try{_.e8(this.hostElement,u)}catch(K){_.hV(K)}},
videoHeightToWidthRatioChanged_:function(u,K){K&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.S("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(u){this.videoHeightToWidthRatio_=1/u},
computeIsVerticalVideo_:function(u){return u>=1},
computeIsFourThreeToSixteenNineVideo_:function(u){return u<=.7501&&u>=.5624},
computeIsExtraWideVideo_:function(u){return u<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.tK(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.tK(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.C2k(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(u){var K=_.f7(u)||0;_.Uj(u,K+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var u=_.f7("yt-fullerscreen-edu-button-click-count")||0,K=_.f7("yt-fullerscreen-edu-button-shown-count")||0,l=_.Sg("external_fullscreen_button_shown_threshold"),D=u>=_.Sg("external_fullscreen_button_click_threshold")||K>=l;_.tK(this).getPlayerPromise().then(function(d){d.updateFullerscreenEduButtonSubtleModeState(D)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(u,K){return K},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.GB().resolve(_.lX).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var u=this;this.panelMaxHeightUpdateJob_&&_.YL.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.YL.addLowPriorityJob(function(){u.panelMaxHeightUpdateJob_=0;var K;!u.isTwoColumns_||u.theater||u.fullscreen?K=460:K=u.calculateNormalPlayerSize_().height;var l=K+"px";_.S("live_chat_taller_height")&&!u.theater&&(l="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.S("live_chat_medium_height")&&
!u.theater&&(l="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.S("live_chat_scaled_height")&&!u.theater&&(l="calc(100vh - var(--ytd-toolbar-height) - 238px)");u.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":K+"px","--ytd-watch-flexy-chat-max-height":l,"--ytd-watch-flexy-structured-description-max-height":K+"px","--ytd-watch-flexy-comments-panel-max-height":K+"px","--ytd-comments-engagement-panel-content-height":K+"px"})})},
onYtShowEngagementPanelScrimAction_:function(u){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",u)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ay(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(u){var K=_.bi(this.hostElement).querySelector("#engagement-panel-scrim");u?K.addEventListener("tap",_.Ql(this,this.onEngagementPanelScrimClick_)):K.removeEventListener("tap",_.Ql(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(u){if(this.hostElement.contains(u)&&!this.scrollToAnimation_.isAnimating()){var K=u.offsetTop-24;u=u.offsetTop+u.offsetHeight+24;var l=this.getPageScrollingElement(),D=this.getScrollTop(),d=D+l.clientHeight-56;if(K<D+56)K-=56;else if(u>d)K=u-l.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,K),500)}},
onYtSignalActionScrollToComments:function(){var u=this.hostElement.querySelector("#comments");if(u&&!this.scrollToAnimation_.isAnimating()){u=u.offsetTop-56-24;if(_.S("kevlar_comment_teaser_scroll_to_midpoint")&&(u-=_.BK().height/3,u<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,u),500)}},
onYtEngagementPanelVisibleChanged:function(u,K,l){this.active&&this.trackEngagementPanelVisibility&&!_.AOu.includes(l)&&(K==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(l),K!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&K!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(l),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(u){return u?"":"watch-active-metadata"},
computeNewMetadataClass:function(u){return u?"watch-active-metadata":""},
computeFullBleedPlayer:function(u,K){return u||K},
computeDefaultLayout:function(u){return!u},
computeDefaultTwoColumnLayout:function(u,K){return!u&&K},
computeWatchWhilePanelsActive:function(u,K){return u||K},
computeNoBorderOnChat:function(u){return _.S("web_watch_theater_chat_no_border")&&u},
computeLiveChatPresentAndExpanded:function(u,K){return u&&!K},
computePanelExpanded:function(u,K,l){return u||K||l},
onChangeMarkersVisibility:function(u){_.tK(this).getPlayerPromise().then(function(K){var l;(l=K.changeMarkerVisibility)==null||l.call(K,_.b(u,_.NW).isVisible||!1,_.b(u,_.NW).entityKeys||[],_.b(u,_.NW).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(u){this.liveChatCollapsed=u.detail;_.Mu().dispatch(_.Yy9(u.detail))},
provideRenderingData:function(u,K){switch(u){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=K;break;case "PRIMARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=K);this.videoPrimaryInfoRendererValue=K==null?void 0:K.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=K);this.videoSecondaryInfoRendererValue=K==null?void 0:K.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
K;break;case "CLARIFICATION":this.clarifyBoxValue=K;break;case "LIVE_CHAT":this.conversationBar=K;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=K;break;case "PLAYLIST":this.externalPlaylistData_=K!=null?K:{};break;case "MERCH_SHELF":this.merchShelfValue=K==null?void 0:K.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=K;break;case "OFFER_MODULE":this.offerModule=K;break;case "LIMITED_STATE":this.limitedStateValue=K;break;case "DONATION_SHELF":this.donation=K;break;
case "ALERTS":this.alertsValue=K;break;case "COMMENTS":this.comments=K;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=K;break;case "ENGAGEMENT_PANELS":this.engagementPanels=K;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=K;break;case "RICH_GRID_RENDERER":this.richGridRendererData=K;break;case "EXPANDABLE_METADATA":this.expandableMetadata=K;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=K}},
toggleCinematicsActive:function(u){this.cinematicsActive=u},
isMiniplayerActive:function(){return _.GB().resolve(_.uD).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(u){return RyX.map(function(K){return u.find(function(l){var D;return(l==null?void 0:(D=l.engagementPanelSectionListRenderer)==null?void 0:D.targetId)===K})}).filter(function(K){return K!==void 0})},
getNonLearningJourneyEngagementPanels:function(u){return u.filter(function(K){var l;return!RyX.includes((K==null?void 0:(l=K.engagementPanelSectionListRenderer)==null?void 0:l.targetId)||"")})}}];var Utu;var L8=function(){var u=_.Q.apply(this,arguments)||this;u.flexy=!0;u.learningJourney=!0;u.roundedInfoPanel=!0;u.viewTransitionEnabled=_.S("enable_player_resize_transition");u.smallerChatMinHeight=_.S("live_chat_smaller_min_height");u.cinematicTheaterMode=_.S("web_cinematic_theater_mode");u.transparentTheaterMode=_.S("web_transparent_theater_mode");u.cinematicFullscreen=_.S("web_cinematic_fullscreen");u.useLargerMaxPlayerValue=_.S("kevlar_flexy_use_larger_player_value");u.cinematicFullscreenV2=_.S("web_cinematic_fullscreen_v2");
u.isDarkTheme=document.documentElement.hasAttribute("dark");u.theaterLargerPlayer=_.S("web_watch_theater_larger_player");u.defaultCollapsePlaylist=_.S("web_watch_default_collapse_playlist");return u};
_.c(L8,_.Q);_.I=L8.prototype;_.I.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.I.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.I.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.I.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.I.ready=function(){var u=this,K=function(){u.onColumnScroll()};
this.primary.addEventListener("scroll",K);this.secondary.addEventListener("scroll",K)};
_.I.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.I.updateIsTwoColumnsFromBinding=function(u){_.S("web_watch_update_narrow_width_killswitch")||_.Mu().dispatch(_.wXi(!u.detail.value));this.ytdWatchBehavior.isTwoColumns_=u.detail.value};
_.I.updateFlexySmallWindowFromBinding=function(u){this.ytdWatchBehavior.flexySmallWindow_=u.detail.value};
_.I.updateFlexyLargeWindowFromBinding=function(u){this.ytdWatchBehavior.flexyLargeWindow_=u.detail.value};
_.I.updateWatchWhileWindowSizeSufficientFromBinding=function(u){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=u.detail.value};
_.I.updateWatchNextCanShowMoreFromBinding=function(u){this.ytdWatchBehavior.watchNextCanShowMore=u.detail.value};
_.I.updateShownItemsFromBinding=function(u){u.detail.path?this.set(u.detail.path,u.detail.value):this.ytdWatchBehavior.watchNextShownItems=u.detail.value};
_.I.getElement=function(u){switch(u){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22824_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22824_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.MN.Object.defineProperties(L8.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.data)==null||!u.pageVisualEffects)return!1;for(var K=0;K<this.data.pageVisualEffects.length;K++)if(u=_.b(this.data.pageVisualEffects[K],_.b_))return K=void 0,(K=u.config)==null?void 0:K.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.learningJourneyEngagementPanels)==null?void 0:u.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var u,K=(u=this.learningJourneyEngagementPanels)==null?void 0:u.find(function(x){var O;return(x==null?void 0:(O=x.engagementPanelSectionListRenderer)==null?void 0:O.panelIdentifier)==="learning-journey-engagement-panel"});
if(K){var l,D,d,C,W,M,q,v,G;if(u=(v=((q=(W=((C=K==null?void 0:(l=K.engagementPanelSectionListRenderer)==null?void 0:(D=l.content)==null?void 0:(d=D.sectionListRenderer)==null?void 0:d.contents)!=null?C:[])[0])==null?void 0:(M=W.itemSectionRenderer)==null?void 0:M.contents)!=null?q:[])[0])==null?void 0:(G=v.accordionViewModel)==null?void 0:G.onTitleTap){var t=_.lt(u);if(t)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.Pb.instance.resolveCommand(t)}}}}}}});
_.MN.Object.defineProperties(L8,{template:{configurable:!0,enumerable:!0,get:function(){if(Utu===void 0){var u=document.createElement("template");_.z(u,'\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="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>\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);Utu=u}u=Utu;return u}}});
L8.prototype.updateMiniplayerIsActiveValue=L8.prototype.updateMiniplayerIsActiveValue;L8.prototype.updateScrollTopValue=L8.prototype.updateScrollTopValue;L8.prototype.updateFullscreenValue=L8.prototype.updateFullscreenValue;L8.prototype.updateTheaterValue=L8.prototype.updateTheaterValue;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],L8.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],L8.prototype,"ytComponentBehavior",void 0);
_.g([_.e(eyS.YtdLearningJourneyWatchBehavior),_.N("design:type",Object)],L8.prototype,"ytdWatchBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],L8.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],L8.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],L8.prototype,"playerData",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],L8.prototype,"flexy",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],L8.prototype,"learningJourney",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],L8.prototype,"roundedInfoPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],L8.prototype,"viewTransitionEnabled",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],L8.prototype,"smallerChatMinHeight",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],L8.prototype,"cinematicTheaterMode",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],L8.prototype,"transparentTheaterMode",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],L8.prototype,"cinematicFullscreen",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],L8.prototype,"useLargerMaxPlayerValue",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],L8.prototype,"cinematicFullscreenV2",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],L8.prototype,"isDarkTheme",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],L8.prototype,"theaterLargerPlayer",void 0);_.g([_.U(),_.N("design:type",Object)],L8.prototype,"defaultCollapsePlaylist",void 0);_.g([_.U({selector:_.ue}),_.N("design:type",Object)],L8.prototype,"theaterValue",void 0);
_.g([_.U({selector:_.K1}),_.N("design:type",Object)],L8.prototype,"fullscreenValue",void 0);_.g([_.U({selector:_.a0}),_.N("design:type",Object)],L8.prototype,"scrollTopValue",void 0);_.g([_.U({selector:_.X6}),_.N("design:type",Object)],L8.prototype,"miniplayerIsActiveValue",void 0);_.g([_.BF("#ytd-plj-player"),_.N("design:type",HTMLElement)],L8.prototype,"ytdPlayer",void 0);_.g([_.BF("#playlist"),_.N("design:type",HTMLElement)],L8.prototype,"JSC$22824_ytdPlaylistPanelRenderer",void 0);
_.g([_.GD("ytd-comments"),_.N("design:type",HTMLElement)],L8.prototype,"ytdComments",void 0);_.g([_.BF("#primary"),_.N("design:type",HTMLElement)],L8.prototype,"primary",void 0);_.g([_.BF("#secondary"),_.N("design:type",HTMLElement)],L8.prototype,"secondary",void 0);_.g([_.BF("#player-container"),_.N("design:type",HTMLElement)],L8.prototype,"playerContainer",void 0);_.g([_.BF("#cinematics"),_.N("design:type",HTMLElement)],L8.prototype,"JSC$22824_cinematics",void 0);
_.g([_.JU("theaterValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],L8.prototype,"updateTheaterValue",null);_.g([_.JU("fullscreenValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],L8.prototype,"updateFullscreenValue",null);_.g([_.JU("scrollTopValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],L8.prototype,"updateScrollTopValue",null);
_.g([_.JU("miniplayerIsActiveValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],L8.prototype,"updateMiniplayerIsActiveValue",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],L8.prototype,"cinematicLightTheme",null);_.g([_.U({reflectToAttribute:!0}),_.R("learningJourneyEngagementPanels"),_.N("design:type",Object),_.N("design:paramtypes",[])],L8.prototype,"hasLearningJourneyPanels",null);
_.g([_.R("learningJourneyEngagementPanels"),_.N("design:type",Object),_.N("design:paramtypes",[])],L8.prototype,"backButtonData",null);_.g([_.T({is:"ytd-watch-learning-journey"})],L8);_.a8.registerService(_.Dfb,L8);
_.YV();
}catch(e){_._DumpException(e)}
try{
_.Zu("Tm0L3c");
var vVu;var GZ5;var tbr=function(){return _.Q.apply(this,arguments)||this};
_.c(tbr,_.Q);_.g([_.T({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],tbr);
_.F(tbr,"ytd-ghost-comments-renderer",function(){if(GZ5===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);GZ5=u}u=GZ5;return u},{mode:1});var xtu;var SQu=function(){return _.Q.apply(this,arguments)||this};
_.c(SQu,_.Q);_.g([_.T({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],SQu);
_.F(SQu,"ytd-ghost-watch-metadata-renderer",function(){if(xtu===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);xtu=u}u=xtu;return u},{mode:1});var Ew=function(){var u=_.Q.apply(this,arguments)||this;u.ghostGridRenderer={rows:6};u.roundedInfoPanel=!0;u.hideOfferModules=!0;u.smallerChatMinHeight=_.S("live_chat_smaller_min_height");u.cinematicTheaterMode=_.S("web_cinematic_theater_mode");u.transparentTheaterMode=_.S("web_transparent_theater_mode");u.darkerPanels=_.S("web_watch_darker_panels");u.cinematicFullscreen=_.S("web_cinematic_fullscreen");u.cinematicFullscreenV2=_.S("web_cinematic_fullscreen_v2");u.isDarkTheme=document.documentElement.hasAttribute("dark");
return u};
_.c(Ew,_.Q);_.I=Ew.prototype;_.I.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.I.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.I.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.I.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.I.ready=function(){var u=this,K=function(){u.onColumnScroll()};
this.primary.addEventListener("scroll",K);this.secondary.addEventListener("scroll",K)};
_.I.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.I.updateIsTwoColumnsFromBinding=function(u){this.ytdWatchBehavior.isTwoColumns_=u.detail.value};
_.I.updateFlexySmallWindowFromBinding=function(u){this.ytdWatchBehavior.flexySmallWindow_=u.detail.value};
_.I.updateFlexyLargeWindowFromBinding=function(u){this.ytdWatchBehavior.flexyLargeWindow_=u.detail.value};
_.I.updateWatchWhileWindowSizeSufficientFromBinding=function(u){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=u.detail.value};
_.I.updateWatchNextCanShowMoreFromBinding=function(u){this.ytdWatchBehavior.watchNextCanShowMore=u.detail.value};
_.I.updateShownItemsFromBinding=function(u){_.S("swatcheroo_direct_use_rich_grid")||(u.detail.path?this.set(u.detail.path,u.detail.value):this.ytdWatchBehavior.watchNextShownItems=u.detail.value)};
_.I.getElement=function(u){switch(u){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22812_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22812_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.MN.Object.defineProperties(Ew.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.data)==null||!u.pageVisualEffects)return!1;for(var K=0;K<this.data.pageVisualEffects.length;K++)if(u=_.b(this.data.pageVisualEffects[K],_.b_))return K=void 0,(K=u.config)==null?void 0:K.enableInLightTheme;return!1}}});
Ew.prototype.updateMiniplayerIsActiveValue=Ew.prototype.updateMiniplayerIsActiveValue;Ew.prototype.updateScrollTopValue=Ew.prototype.updateScrollTopValue;Ew.prototype.updateFullscreenValue=Ew.prototype.updateFullscreenValue;Ew.prototype.updateTheaterValue=Ew.prototype.updateTheaterValue;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Ew.prototype,"ytComponentBehavior",void 0);
_.g([_.e(_.nVb.YtdWatchBehavior),_.N("design:type",Object)],Ew.prototype,"ytdWatchBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Ew.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ew.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Ew.prototype,"ghostGridRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],Ew.prototype,"playerData",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ew.prototype,"roundedInfoPanel",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ew.prototype,"hideOfferModules",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ew.prototype,"smallerChatMinHeight",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ew.prototype,"cinematicTheaterMode",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ew.prototype,"transparentTheaterMode",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ew.prototype,"darkerPanels",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ew.prototype,"cinematicFullscreen",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ew.prototype,"cinematicFullscreenV2",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ew.prototype,"isDarkTheme",void 0);_.g([_.U({selector:_.ue}),_.N("design:type",Object)],Ew.prototype,"theaterValue",void 0);
_.g([_.U({selector:_.K1}),_.N("design:type",Object)],Ew.prototype,"fullscreenValue",void 0);_.g([_.U({selector:_.a0}),_.N("design:type",Object)],Ew.prototype,"scrollTopValue",void 0);_.g([_.U({selector:_.X6}),_.N("design:type",Object)],Ew.prototype,"miniplayerIsActiveValue",void 0);_.g([_.BF("#ytd-player"),_.N("design:type",HTMLElement)],Ew.prototype,"ytdPlayer",void 0);_.g([_.BF("#playlist"),_.N("design:type",HTMLElement)],Ew.prototype,"JSC$22812_ytdPlaylistPanelRenderer",void 0);
_.g([_.BF("#ytd-comments"),_.N("design:type",HTMLElement)],Ew.prototype,"ytdComments",void 0);_.g([_.BF("#primary"),_.N("design:type",HTMLElement)],Ew.prototype,"primary",void 0);_.g([_.BF("#secondary"),_.N("design:type",HTMLElement)],Ew.prototype,"secondary",void 0);_.g([_.BF("#player-container"),_.N("design:type",HTMLElement)],Ew.prototype,"playerContainer",void 0);_.g([_.BF("#cinematics"),_.N("design:type",HTMLElement)],Ew.prototype,"JSC$22812_cinematics",void 0);
_.g([_.JU("theaterValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ew.prototype,"updateTheaterValue",null);_.g([_.JU("fullscreenValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ew.prototype,"updateFullscreenValue",null);_.g([_.JU("scrollTopValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ew.prototype,"updateScrollTopValue",null);
_.g([_.JU("miniplayerIsActiveValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ew.prototype,"updateMiniplayerIsActiveValue",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ew.prototype,"cinematicLightTheme",null);
_.F(Ew,"ytd-watch-grid",function(){if(vVu===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);vVu=u}u=vVu;return u},{mode:2});_.a8.registerService(_.lmr,Ew);
_.YV();
}catch(e){_._DumpException(e)}
try{
_.Zu("CF909");
var rqr;var h2=function(){var u=_.Q.apply(this,arguments)||this;u.flexy=!0;u.roundedInfoPanel=!0;u.viewTransitionEnabled=_.S("enable_player_resize_transition");u.smallerChatMinHeight=_.S("live_chat_smaller_min_height");u.cinematicTheaterMode=_.S("web_cinematic_theater_mode");u.transparentTheaterMode=_.S("web_transparent_theater_mode");u.cinematicFullscreen=_.S("web_cinematic_fullscreen");u.useLargerMaxPlayerValue=_.S("kevlar_flexy_use_larger_player_value");u.isDarkTheme=document.documentElement.hasAttribute("dark");
u.defaultCollapsePlaylist=_.S("web_watch_default_collapse_playlist");u.retroModeReduxValue=!1;return u};
_.c(h2,_.Q);_.I=h2.prototype;_.I.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.I.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.I.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.I.updateRetroModeReduxValue=function(){_.S("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.I.ready=function(){var u=this,K=function(){u.onColumnScroll()};
this.primary.addEventListener("scroll",K);this.secondary.addEventListener("scroll",K)};
_.I.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.I.updateIsTwoColumnsFromBinding=function(u){_.S("web_watch_update_narrow_width_killswitch")||_.Mu().dispatch(_.wXi(!u.detail.value));this.ytdWatchBehavior.isTwoColumns_=u.detail.value};
_.I.updateFlexySmallWindowFromBinding=function(u){this.ytdWatchBehavior.flexySmallWindow_=u.detail.value};
_.I.updateFlexyLargeWindowFromBinding=function(u){this.ytdWatchBehavior.flexyLargeWindow_=u.detail.value};
_.I.updateWatchWhileWindowSizeSufficientFromBinding=function(u){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=u.detail.value};
_.I.updateWatchNextCanShowMoreFromBinding=function(u){this.ytdWatchBehavior.watchNextCanShowMore=u.detail.value};
_.I.updateShownItemsFromBinding=function(u){u.detail.path?this.set(u.detail.path,u.detail.value):this.ytdWatchBehavior.watchNextShownItems=u.detail.value};
_.I.getElement=function(u){switch(u){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22807_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22807_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.MN.Object.defineProperties(h2.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.data)==null||!u.pageVisualEffects)return!1;for(var K=0;K<this.data.pageVisualEffects.length;K++)if(u=_.b(this.data.pageVisualEffects[K],_.b_))return K=void 0,(K=u.config)==null?void 0:K.enableInLightTheme;return!1}}});
_.MN.Object.defineProperties(h2,{template:{configurable:!0,enumerable:!0,get:function(){if(rqr===void 0){var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);rqr=u}u=rqr;return u}}});
h2.prototype.updateRetroModeReduxValue=h2.prototype.updateRetroModeReduxValue;h2.prototype.updateScrollTopValue=h2.prototype.updateScrollTopValue;h2.prototype.updateFullscreenValue=h2.prototype.updateFullscreenValue;h2.prototype.updateTheaterValue=h2.prototype.updateTheaterValue;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],h2.prototype,"ytComponentBehavior",void 0);
_.g([_.e(_.nVb.YtdWatchBehavior),_.N("design:type",Object)],h2.prototype,"ytdWatchBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],h2.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],h2.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],h2.prototype,"playerData",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],h2.prototype,"flexy",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],h2.prototype,"roundedInfoPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],h2.prototype,"viewTransitionEnabled",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],h2.prototype,"smallerChatMinHeight",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],h2.prototype,"cinematicTheaterMode",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],h2.prototype,"transparentTheaterMode",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],h2.prototype,"cinematicFullscreen",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],h2.prototype,"useLargerMaxPlayerValue",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],h2.prototype,"isDarkTheme",void 0);_.g([_.U(),_.N("design:type",Object)],h2.prototype,"defaultCollapsePlaylist",void 0);
_.g([_.U({selector:_.ue}),_.N("design:type",Object)],h2.prototype,"theaterValue",void 0);_.g([_.U({selector:_.K1}),_.N("design:type",Object)],h2.prototype,"fullscreenValue",void 0);_.g([_.U({selector:_.a0}),_.N("design:type",Object)],h2.prototype,"scrollTopValue",void 0);_.g([_.U({selector:_.X6}),_.N("design:type",Object)],h2.prototype,"miniplayerIsActive",void 0);_.g([_.U({selector:function(u){return u.watch.isWatchRetroMode}}),
_.N("design:type",Object)],h2.prototype,"retroModeReduxValue",void 0);_.g([_.GD("ytd-player"),_.N("design:type",HTMLElement)],h2.prototype,"ytdPlayer",void 0);_.g([_.BF("#playlist"),_.N("design:type",HTMLElement)],h2.prototype,"JSC$22807_ytdPlaylistPanelRenderer",void 0);_.g([_.GD("ytd-comments"),_.N("design:type",HTMLElement)],h2.prototype,"ytdComments",void 0);_.g([_.BF("#primary"),_.N("design:type",HTMLElement)],h2.prototype,"primary",void 0);
_.g([_.BF("#secondary"),_.N("design:type",HTMLElement)],h2.prototype,"secondary",void 0);_.g([_.BF("#player-container"),_.N("design:type",HTMLElement)],h2.prototype,"playerContainer",void 0);_.g([_.BF("#below"),_.N("design:type",HTMLElement)],h2.prototype,"below",void 0);_.g([_.BF("#cinematics"),_.N("design:type",HTMLElement)],h2.prototype,"JSC$22807_cinematics",void 0);
_.g([_.JU("theaterValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h2.prototype,"updateTheaterValue",null);_.g([_.JU("fullscreenValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h2.prototype,"updateFullscreenValue",null);_.g([_.JU("scrollTopValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h2.prototype,"updateScrollTopValue",null);
_.g([_.JU("retroModeReduxValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h2.prototype,"updateRetroModeReduxValue",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],h2.prototype,"cinematicLightTheme",null);_.g([_.T({is:"ytd-watch-flexy"})],h2);_.a8.registerService(_.KkH,h2);
_.YV();
}catch(e){_._DumpException(e)}
try{
_.Zu("nmfa2d");
var z_M;var Fa=function(){var u=_.Q.apply(this,arguments)||this;u.hidden=!1;u.errorScreen=null;u.playlistData={};return u};
_.c(Fa,_.Q);_.I=Fa.prototype;_.I.getPlayer=function(){return this.ytdPlayer};
_.I.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:_.lJ(["aa","eocs"])}}};
_.I.onActiveChanged=function(){_.Mu().dispatch(_.Gjk(this.ytPageBehavior.active))};
_.I.playerDataChanged=function(){var u;(u=this.watchController)==null||u.setPlayerResponse(this.playerData)};
_.I.dataChanged=function(){var u;(u=this.watchController)==null||u.setWatchNextResponse(this.data)};
_.I.sizeChanged=function(){var u,K;(K=(u=this.metadata).resize)==null||K.call(u)};
_.I.attached=function(){this.watchController=new _.Tv(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.I.detached=function(){_.qt(this.watchController);this.watchController=void 0};
_.I.getPlayerContainer=function(){return this.playerContainer};
_.I.getElement=function(u){switch(u){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22755_playlistPanel}};
_.I.provideRenderingData=function(u,K){switch(u){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=K;break;case "ERROR_SCREEN":this.errorScreen=K!=null?K:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=K;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=K;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=K;break;case "RICH_METADATA":this.richMetadataRowContainer=K;break;case "CLARIFICATION":this.clarificationData=K;break;case "PLAYLIST":this.playlistData=
K!=null?K:{};break;case "MERCH_SHELF":this.merchShelf=K;break;case "TICKET_SHELF":this.ticketShelf=K;break;case "LIMITED_STATE":this.limitedState=K;break;case "DONATION_SHELF":this.donationShelf=K;break;case "ALERTS":this.alerts=K}};
_.MN.Object.defineProperties(Fa.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return!this.hidden&&!!((u=this.data)==null?0:(K=u.contents)==null?0:(l=K.twoColumnWatchNextResults)==null?0:l.conversationBar)}}});
Fa.prototype.sizeChanged=Fa.prototype.sizeChanged;Fa.prototype.dataChanged=Fa.prototype.dataChanged;Fa.prototype.playerDataChanged=Fa.prototype.playerDataChanged;Fa.prototype.onActiveChanged=Fa.prototype.onActiveChanged;_.g([_.e(_.zo.YtPageBehavior),_.N("design:type",Object)],Fa.prototype,"ytPageBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Fa.prototype,"ytComponentBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Fa.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Fa.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Fa.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Fa.prototype,"playerData",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Fa.prototype,"hidden",void 0);_.g([_.BF("#ytd-player"),_.N("design:type",HTMLElement)],Fa.prototype,"ytdPlayer",void 0);_.g([_.BF("#player-container"),_.N("design:type",HTMLElement)],Fa.prototype,"playerContainer",void 0);_.g([_.BF("#metadata"),_.N("design:type",Object)],Fa.prototype,"metadata",void 0);_.g([_.BF("#playlist"),_.N("design:type",HTMLElement)],Fa.prototype,"JSC$22755_playlistPanel",void 0);
_.g([_.U({selector:_.A4G,reflectToAttribute:!0}),_.N("design:type",Object)],Fa.prototype,"fixie",void 0);_.g([_.U({selector:_.YTk,reflectToAttribute:!0}),_.N("design:type",Object)],Fa.prototype,"singleColumn",void 0);_.g([_.U({selector:function(u){return _.ue(u)&&!_.K1(u)},
reflectToAttribute:!0}),_.N("design:type",Object)],Fa.prototype,"theater",void 0);_.g([_.U({selector:_.K1,reflectToAttribute:!0}),_.N("design:type",Object)],Fa.prototype,"fullscreen",void 0);_.g([_.U({selector:_.rOz}),_.N("design:type",Object)],Fa.prototype,"windowSize",void 0);_.g([_.U(),_.N("design:type",Object)],Fa.prototype,"singleColumnContents",void 0);_.g([_.U(),_.N("design:type",Object)],Fa.prototype,"errorScreen",void 0);_.g([_.U(),_.N("design:type",Object)],Fa.prototype,"playlistData",void 0);
_.g([_.U(),_.N("design:type",Object)],Fa.prototype,"videoPrimaryInfoRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],Fa.prototype,"videoSecondaryInfoRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],Fa.prototype,"richMetadataRowContainer",void 0);_.g([_.U(),_.N("design:type",Object)],Fa.prototype,"clarificationData",void 0);_.g([_.U(),_.N("design:type",Object)],Fa.prototype,"commentsEntryPointHeaderRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],Fa.prototype,"ticketShelf",void 0);
_.g([_.U(),_.N("design:type",Object)],Fa.prototype,"merchShelf",void 0);_.g([_.U(),_.N("design:type",Object)],Fa.prototype,"donationShelf",void 0);_.g([_.U(),_.N("design:type",Object)],Fa.prototype,"limitedState",void 0);_.g([_.U(),_.N("design:type",Object)],Fa.prototype,"alerts",void 0);_.g([_.R("playlistData"),_.N("design:type",Object),_.N("design:paramtypes",[])],Fa.prototype,"hasPlaylistData",null);
_.g([_.R("data","hidden"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Fa.prototype,"hasChat",null);_.g([_.JU("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fa.prototype,"onActiveChanged",null);_.g([_.JU("playerData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fa.prototype,"playerDataChanged",null);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fa.prototype,"dataChanged",null);_.g([_.JU("windowSize","singleColumn"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fa.prototype,"sizeChanged",null);
_.F(Fa,"ytd-watch-fixie",function(){if(z_M===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);z_M=u}u=z_M;return u},{mode:1});_.a8.registerService(_.ueR,Fa);
_.YV();
}catch(e){_._DumpException(e)}
try{
_.Zu("xwEKAe");
var NKG=function(u){var K=_.jy();if(K.getFlag(202))K=K.getFlag(201);else{var l;K=(u==null?void 0:(l=u.config)==null?void 0:l.settingOnByDefault)!==void 0?u.config.settingOnByDefault:!_.S("web_shorts_cinematics_disabled_by_default")}return K},kMi=function(u){var K=_.jy();
_.B0(0,201,u);_.B0(0,202,!0);K.save()},ZBV=function(u){return(u=_.mVb(u))?_.EmL(u):0},Yk_=function(u){return u.shorts.isSmallScreenSqueezeback},Ab_=function(u){return u.shorts.isPlaybackStarted},hZH=function(u){var K=_.oLR(3),l=new Set;
_.No(function(){return void l.forEach(function(D){return void D()})});
return function(D){var d=_.H$(K);try{var C=Xx_(mf_(u),D);l.add(C);return function(){C();l.delete(C)}}finally{_.H$(d)}}},E86=function(u){var K=u.children;
var l=u.root;_.N_(function(){var D=hZH(l)(K);_.No(D)});
return document.createTextNode("")},Xx_=function(u,K){var l=Lk2(u);
u=_.y(_.KUR(K,!0));K=u.next().value;var D=u.next().value;l.append.apply(l,_.Am(K));return function(){D();l.remove()}},mf_=function(u){if(typeof u==="string")return u=document.querySelector(u),_.XuV(u),u;
if(_.xD(u)&&u.nodeType===Node.ELEMENT_NODE)return u;if(!u.__value&&!u.__optional){var K=_.jNn.USE_ELEMENT_NOT_ASSIGNED(u.__expectedTagName);u.__hasErrored=!0;throw K;}return u.value},Lk2=function(u){var K=document.createElementNS(u.namespaceURI,u.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return u.appendChild(K)},u2E=function(u,K,l,D){u=K-u;
l=D-l;return Math.sqrt(u*u+l*l)},K4E=function(u,K){u&&_.GB().resolve(_.t9).resolveCommand(u,{forceClickLogging:!0,
form:{element:K}})},lz6=function(u,K,l,D){u=K-u;
l=D-l;return Math.sqrt(u*u+l*l)},DzB=function(u,K){u&&_.GB().resolve(_.t9).resolveCommand(u,{forceClickLogging:!0,
form:{element:K}})},dzE=function(){return _.GB().resolve(_.iX).dismissedIndices},Cg_=function(u){return _.SZ({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:u}})},Iz6=function(u){return _.SZ({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:u}})},Cq=function(u){return _.SZ({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:u}})};var I0=function(u,K){if(u instanceof I0)this.array_=u.array_;else{var l;if(l=_.mb(u))a:{for(var D=l=0;D<u.length;D++){if(!_.mb(u[D])||l>0&&u[D].length!=l){l=!1;break a}for(var d=0;d<u[D].length;d++)if(typeof u[D][d]!=="number"){l=!1;break a}l==0&&(l=u[D].length)}l=l!=0}if(l)this.array_=_.Xq(u);else if(u instanceof _.jA)this.array_=y4p(u.height,u.width);else if(typeof u==="number"&&typeof K==="number"&&u>0&&K>0)this.array_=y4p(u,K);else throw Error("io");}this.size_=new _.jA(this.array_[0].length,
this.array_.length)},s0H=function(u,K,l){for(var D=0;D<u.getSize().height;D++)for(var d=0;d<u.getSize().width;d++)K.call(l,u.array_[D][d],D,d,u)},oZI=function(u,K){var l=new I0(u.getSize());
s0H(u,function(D,d,C){l.array_[d][C]=K.call(void 0,D,d,C,u)});
return l},y4p=function(u,K){for(var l=[],D=0;D<u;D++){l[D]=[];
for(var d=0;d<K;d++)l[D][d]=0}return l};
I0.prototype.add=function(u){if(!_.rbp(this.size_,u.getSize()))throw Error("jo");return oZI(this,function(K,l,D){return K+u.array_[l][D]})};
I0.prototype.equals=function(u,K){if(this.size_.width!=u.size_.width||this.size_.height!=u.size_.height)return!1;K=K||0;for(var l=0;l<this.size_.height;l++)for(var D=0;D<this.size_.width;D++)if(!_.n8p(this.array_[l][D],u.array_[l][D],K))return!1;return!0};
I0.prototype.getSize=function(){return this.size_};
var yc=function(u,K,l){return K>=0&&K<u.size_.height&&l>=0&&l<u.size_.width?u.array_[K][l]:null};
I0.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var sT=function(u,K,l,D){if(!(K>=0&&K<u.size_.height&&l>=0&&l<u.size_.width))throw Error("ko`"+K+"`"+l+"`"+u.size_.height+"`"+u.size_.width);u.array_[K][l]=D};
I0.prototype.multiply=function(u){if(u instanceof I0){if(this.size_.width!=u.getSize().height)throw Error("lo");return W4k(this,u)}if(typeof u==="number")return HqI(this,u);throw Error("mo");};
var W4k=function(u,K){var l=new I0(u.size_.height,K.getSize().width);s0H(l,function(D,d,C){for(var W=D=0;W<this.size_.width;W++)D+=yc(this,d,W)*yc(K,W,C);sT(l,d,C,D)},u);
return l},HqI=function(u,K){return oZI(u,function(l){return l*K})};var Mqi=new _.r3("inlineSurveyRenderer");var qT_=new _.r3("interstitialViewModel");var $zp=new _.r3("reelNavigateCommand");var nZI=new _.r3("reelNonVideoContentDismissalCommand");var r4p=new _.r3("showReelsCommentsOverlayCommand");var vZi=new _.r3("shortsSuggestedActionViewModel");var GCp=new _.r3("videoInteractionPopUpRenderer");var tq_;var xzH;var STH;var o0=function(){var u=_.Q.apply(this,arguments)||this;u.ctaVisualElement=null;u.currentCsn=null;return u};
_.c(o0,_.Q);_.I=o0.prototype;_.I.onDataChanged=function(){this.maybeLogShows()};
_.I.computeButtonShape=function(){var u=this;if(this.data)return{buttonText:_.WI(this.data.text),state:"active",onTap:function(){u.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.I.maybeCreateCtaVe=function(){var u;if((u=this.data)!=null&&u.badgeInteractionLogging){var K;if(u=(K=this.data.badgeInteractionLogging)==null?void 0:K.trackingParams)this.ctaVisualElement=_.gf(u)}};
_.I.maybeLogClicks=function(){this.currentCsn=_.AC(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Wi(this.currentCsn,this.ctaVisualElement)};
_.I.maybeLogShows=function(){this.currentCsn=_.AC(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.If(this.currentCsn,[this.ctaVisualElement])};
_.I.onTap=function(){var u;if((u=this.data)!=null&&u.onClickCommand){var K;this.ytComponentBehavior.resolveCommand((K=this.data)==null?void 0:K.onClickCommand);this.maybeLogClicks()}};
o0.prototype.onDataChanged=o0.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],o0.prototype,"ytComponentBehavior",void 0);_.g([_.U({}),_.N("design:type",Object)],o0.prototype,"data",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],o0.prototype,"onDataChanged",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],o0);
_.F(o0,"ytd-shopping-overlay-badge-renderer",function(){if(STH!==void 0)return STH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return STH=u},{mode:1});_.SX(_.Mki,"reel-sound-metadata-view-model",{props:{data:_.xo,overlayDensity:_.xo}});_.SX(_.CQ2,"player-disclosure-view-model",{props:{data:_.M6}});_.SX(_.rx0,"pivot-button-view-model",{props:{data:_.xo,className:_.xo}});_.SX(_.vG2,"reel-action-bar-view-model",{props:{data:_.M6,buttonShapeOverrideables:_.M6}});_.SX(_.rf(function(u){function K(){var Wo,$y,co,UZ,tH=($y=_.b((Wo=m())==null?void 0:Wo.command,_.w0))==null?void 0:(co=$y.item)==null?void 0:(UZ=co.notificationTextRenderer)==null?void 0:UZ.successResponseText;if(tH)_.Sy(D.value,"yt-open-popup-action",[_.nc(tH),D.value]);else if(Z())K4E(Z(),a.value);else{var gq;K4E((gq=m())==null?void 0:gq.command,a.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var l=u.data;var D=_.o9("yt-player-overlay-video-interactions");u=_.y(_.On("0px",void 0,"O1N7Ce"));var d=u.next().value,C=u.next().value;u=_.y(_.On("0px",void 0,"tTDBdb"));var W=u.next().value,M=u.next().value;u=_.y(_.On(0,void 0,"fh8Zkc"));var q=u.next().value,v=u.next().value;u=_.y(_.On(0,void 0,"CUjqGd"));var G=u.next().value,t=u.next().value,x=function(){var Wo;if(((Wo=_.f1())==null?void 0:Wo.getPlayerState())!==-1){D.value.style.display="inherit";var $y;($y=_.f1())==null||$y.removeEventListener("onStateChange",
x)}O()},O=function(){var Wo=document.querySelector("video");
if(Wo){v(Wo.getBoundingClientRect().width);t(Wo.getBoundingClientRect().height);var $y;C((Wo==null?void 0:($y=Wo.style)==null?void 0:$y.left)||"0px");var co;M((Wo==null?void 0:(co=Wo.style)==null?void 0:co.top)||"0px")}};
_.gp(function(){var Wo,$y,co;if(((Wo=_.f1())==null?void 0:Wo.getPlayerState())===-1&&Math.round(((co=($y=_.f1())==null?void 0:$y.getVideoAspectRatio())!=null?co:0)*100)!==Math.round(q()/G()*100)){D.value.style.display="none";var UZ,tH;t(q()/((tH=(UZ=_.f1())==null?void 0:UZ.getVideoAspectRatio())!=null?tH:1))}},"VB5m5");
_.N_(function(){var Wo;(Wo=_.f1())==null||Wo.addEventListener("onStateChange",x);window.addEventListener("resize",O);O();var $y,co,UZ;if((UZ=($y=l())==null?void 0:(co=$y.regions)==null?void 0:co[0])==null||!UZ.transformationMatrix)throw Error("qo");var tH;if((tH=l())==null?0:tH.trackingParams){var gq;_.iT().graftServerVe((gq=l().trackingParams)!=null?gq:"")}_.No(function(){var Bo;(Bo=_.f1())==null||Bo.removeEventListener("onStateChange",x);window.removeEventListener("resize",O)})});
var a=_.o9("svg"),f=_.y(_.On(!1,void 0,"TPsTce"));u=f.next().value;var B=f.next().value,p=_.y(_.On(!1,void 0,"Uz6CHf"));f=p.next().value;var V=p.next().value,m=function(){var Wo;return _.b((Wo=l())==null?void 0:Wo.popUp,GCp)},Z=function(){var Wo;
return(Wo=l())==null?void 0:Wo.command},A=function(){return _.b(Z(),_.wE)!==void 0};
p=_.p4(function(){K();return!1});
var h={},C9={};return _.n("yt-player-overlay-video-interactions",{el:D},_.n("svg",{"on:mouseover":_.p4(function(){A()&&B(!0);V(!0);return!1}),
"on:mouseout":_.p4(function(){B(!1);V(!1);return!1}),
"on:keydown":_.p4(function(Wo){Wo.key==="Enter"&&K();return!1}),
"on:focus":_.p4(function(){A()&&B(!0);return!1}),
"on:blur":_.p4(function(){A()&&B(!1);return!1}),
el:a,tabindex:0,"aria-label":function(){var Wo;return(Wo=l())==null?void 0:Wo.a11yString},
id:"player-overlay-video-interaction-svg",class:_.JB("yt-player-overlay-video-interactions__interactions-svg",(h["yt-player-overlay-video-interactions__interactions-svg-hover"]=u,h),(C9["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=f,C9)),role:"button",style:function(){var Wo,$y,co,UZ=(co=(Wo=l())==null?void 0:($y=Wo.regions)==null?void 0:$y[0].transformationMatrix)!=null?co:[];Wo=q();$y=G();co=[];for(var tH=0,gq=-1;tH<UZ.length;tH++)tH%3===0&&(gq++,co[gq]=[]),co[gq].push(UZ[tH]);
UZ=new I0(co);co=new I0([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);co=UZ.multiply(co);UZ=new I0([[0,0],[0,0],[0,0],[0,0]]);for(tH=0;tH<co.getSize().width;tH++){gq=yc(co,0,tH);var Bo=yc(co,1,tH);if(gq===null||Bo===null)throw Error("po`"+(tH+1).toString());sT(UZ,tH,0,gq*Wo);sT(UZ,tH,1,Bo*$y)}Wo=yc(UZ,0,0);tH=yc(UZ,1,0);$y=yc(UZ,0,1);gq=yc(UZ,1,1);if(Wo===null||tH===null||$y===null||gq===null)throw Error("no");co=u2E(Wo,tH,$y,gq);Bo=yc(UZ,3,0);UZ=yc(UZ,3,1);if(Bo===null||UZ===null)throw Error("oo");UZ=u2E(Wo,
Bo,$y,UZ);gq=(Number((gq*-1).toFixed(2))-Number(($y*-1).toFixed(2)))/(Number(tH.toFixed(2))-Number(Wo.toFixed(2)));Bo=Math.atan(gq)*180/Math.PI;tH=gq===Number.POSITIVE_INFINITY?-90:gq===Number.NEGATIVE_INFINITY?90:Object.is(gq,-0)?180:gq===0?0:gq>0?Bo*-1:Wo<tH?Bo*-1:Math.abs(Bo)+180;return"left:calc("+Wo+"px + "+d()+"); top:calc("+($y+"px + "+W()+"); width:")+(co+"px; height:")+(UZ+"px; transform:rotate(")+(tH+"deg);")},
"on:click":p}))},"gj"),"yt-player-overlay-video-interactions",{props:{data:_.M6}});_.SX(_.WpG,"yt-reel-metapanel-view-model",{props:{data:_.M6,overlayDensity:_.M6}});var bqk=_.rf(function(u){var K=u.children;var l=u.region;u=_.y(_.On(void 0,void 0,"rwJZyc"));var D=u.next().value,d=u.next().value;u=_.y(_.On("0px",void 0,"H14H5c"));var C=u.next().value,W=u.next().value;u=_.y(_.On("0px",void 0,"Mn8Uvf"));var M=u.next().value,q=u.next().value;u=_.y(_.On(0,void 0,"QQCIqc"));var v=u.next().value,G=u.next().value;u=_.y(_.On(0,void 0,"HyEvh"));var t=u.next().value,x=u.next().value,O=function(){var m=D();if(m){var Z;if(((Z=_.f1())==null?void 0:Z.getPlayerState())!==-1){m.style.display=
"inherit";var A;(A=_.f1())==null||A.removeEventListener("onStateChange",O)}f()}},a=function(){var m=document.querySelectorAll("video");
return Array.from(m).find(function(Z){var A;return Z==null?void 0:(A=Z.style)==null?void 0:A.width})},f=function(){var m=a();
if(m){G(m.getBoundingClientRect().width);x(m.getBoundingClientRect().height);var Z;W((m==null?void 0:(Z=m.style)==null?void 0:Z.left)||"0px");var A;q((m==null?void 0:(A=m.style)==null?void 0:A.top)||"0px")}};
_.gp(function(){var m=D();if(m){var Z,A,h;if(((Z=_.f1())==null?void 0:Z.getPlayerState())===-1&&Math.round(((h=(A=_.f1())==null?void 0:A.getVideoAspectRatio())!=null?h:0)*100)!==Math.round(v()/t()*100)){m.style.display="none";var C9,Wo;x(v()/((Wo=(C9=_.f1())==null?void 0:C9.getVideoAspectRatio())!=null?Wo:1))}}},"RdGxIf");
var B=function(){f()},p;
_.N_(function(){f();var m;if(!(l==null?0:(m=l())==null?0:m.transformationMatrix))throw Error("qo");var Z;(Z=_.f1())==null||Z.addEventListener("onStateChange",O);if(window.ResizeObserver){if(m=a())p=new ResizeObserver(B),p.observe(m)}else window.addEventListener("resize",f);_.No(function(){var A;(A=_.f1())==null||A.removeEventListener("onStateChange",O);p?p.disconnect():window.removeEventListener("resize",f)})});
var V=function(){var m,Z,A=(Z=l==null?void 0:(m=l())==null?void 0:m.transformationMatrix)!=null?Z:[];m=v();Z=t();for(var h=[],C9=0,Wo=-1;C9<A.length;C9++)C9%3===0&&(Wo++,h[Wo]=[]),h[Wo].push(A[C9]);A=new I0(h);h=new I0([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);h=A.multiply(h);A=new I0([[0,0],[0,0],[0,0],[0,0]]);for(C9=0;C9<h.getSize().width;C9++){Wo=yc(h,0,C9);var $y=yc(h,1,C9);if(Wo===null||$y===null)throw Error("po`"+(C9+1).toString());sT(A,C9,0,Wo*m);sT(A,C9,1,$y*Z)}m=yc(A,0,0);C9=yc(A,1,0);Z=yc(A,0,1);
Wo=yc(A,1,1);if(m===null||C9===null||Z===null||Wo===null)throw Error("no");h=lz6(m,C9,Z,Wo);$y=yc(A,3,0);A=yc(A,3,1);if($y===null||A===null)throw Error("oo");A=lz6(m,$y,Z,A);Wo=(Number((Wo*-1).toFixed(2))-Number((Z*-1).toFixed(2)))/(Number(C9.toFixed(2))-Number(m.toFixed(2)));$y=Math.atan(Wo)*180/Math.PI;C9=Wo===Number.POSITIVE_INFINITY?-90:Wo===Number.NEGATIVE_INFINITY?90:Object.is(Wo,-0)?180:Wo===0?0:Wo>0?$y*-1:m<C9?$y*-1:Math.abs($y)+180;return"left:calc("+m+"px + "+C()+"); top:calc("+(Z+"px + "+
M()+"); width:")+(h+"px; height:")+(A+"px; transform:rotate(")+(C9+"deg);")};
return _.n(E86,{root:"#sticker-layer"},function(){return _.n("yt-overlay-sticker",{el:_.v1(d),style:V,class:"ytOverlayStickerHost"},K)})},"hj");var OqG=_.rf(function(u){function K(){var O,a,f,B,p=(a=_.b((O=q())==null?void 0:O.command,_.w0))==null?void 0:(f=a.item)==null?void 0:(B=f.notificationTextRenderer)==null?void 0:B.successResponseText;if(p)_.Sy(D.value,"yt-open-popup-action",[_.nc(p),D.value]);else if(v())DzB(v(),D.value);else{var V;DzB((V=q())==null?void 0:V.command,D.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var l=u.data;var D=_.o9("svg"),d=_.y(_.On(!1,void 0,"T9Bq7b"));u=d.next().value;var C=d.next().value,W=_.y(_.On(!1,void 0,"iMHq9c"));d=W.next().value;var M=W.next().value,q=function(){var O;return _.b((O=l())==null?void 0:O.popUp,GCp)},v=function(){var O;
return(O=l())==null?void 0:O.command},G=function(){return _.b(v(),_.wE)!==void 0};
W=_.p4(function(){K();return!1});
var t={},x={};return _.n("svg",{"on:mouseover":_.p4(function(){G()&&C(!0);M(!0);return!1}),
"on:mouseout":_.p4(function(){C(!1);M(!1);return!1}),
"on:keydown":_.p4(function(O){O.key==="Enter"&&K();return!1}),
"on:focus":_.p4(function(){G()&&C(!0);return!1}),
"on:blur":_.p4(function(){G()&&C(!1);return!1}),
el:D,tabindex:0,"aria-label":function(){var O;return(O=l())==null?void 0:O.a11yString},
id:"player-overlay-video-interaction-svg",class:_.JB("ytPlayerOverlayInteractionInteractionsSvg",(t.ytPlayerOverlayInteractionInteractionsSvgHover=u,t),(x.ytPlayerOverlayInteractionInteractionsSvgHideOutline=d,x)),role:"button","on:click":W})},"jj");_.SX(_.rf(function(u){var K=u.data;_.N_(function(){var l;if((l=K())==null?0:l.trackingParams){var D;_.iT().graftServerVe((D=K().trackingParams)!=null?D:"")}});
return _.n("yt-player-overlay-interaction",null,_.n(bqk,{region:function(){var l,D;return(l=K())==null?void 0:(D=l.regions)==null?void 0:D[0]}},_.n(OqG,Object.assign({},u))))},"ij"),"yt-player-overlay-interaction",{props:{data:_.M6}});var WC=function(){var u=_.Q.apply(this,arguments)||this;u.showScrubber=!1;u.isWatchWhileMode=!1;u.enableRemixButton=_.S("web_enable_shorts_remix_handoff_ep");u.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");u.enableNewStickers=_.S("use_shorts_sticker_overlay_web");u.anchoredPanelActive=!1;u.enableLivingroomLayout=_.S("reels_enable_livingroom_layout");u.enablePlayerMetadataContainer=_.S("reels_web_enable_metadata_container");u.enableSqueezebackPanels=_.S("web_shorts_enable_squeezeback_panels");
u.useAspectRatio=_.S("web_use_aspect_ratio");u.isSqueezebackActive=!1;u.smallScreenSqueezeback=!1;u.isPlayerStarted=!1;u.overlayDensity=0;u.isOverlay=!1;u.isImmersive=!1;u.isImmersiveHorizontal=!1;u.isFullscreen=!1;u.onWindowResized=function(){var K;u.set("isImmersive",((K=window.getComputedStyle(u.hostElement))==null?void 0:K.getPropertyValue("--immersive-mode-on"))==="1");u.set("isImmersiveHorizontal",u.isImmersive&&u.enableLivingroomLayout&&!u.isWatchWhileMode)};
return u};
_.c(WC,_.Q);_.I=WC.prototype;_.I.updateIsOverlay=function(u){this.isOverlay=u.detail.value};
_.I.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.S("web_enable_flexible_overlay")||_.S("web_enable_format_first")||_.S("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.I.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.I.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.I.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.I.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.I.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.I.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.I.ready=function(){(_.S("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"))&&(!_.S("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.bZ("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.bZ("reels_action_justified_content")||"flex-start")};
_.I.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.I.setFakeLoadingButtons=function(){_.S("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.QQ("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.QQ("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.QQ("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.QQ("SHARE_LABEL",void 0,"Share")}}}),_.S("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.QQ("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()};
_.I.setEmptyOverlayMetadata=function(){_.S("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}))};
_.MN.Object.defineProperties(WC.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.infoPanel)}}});
WC.prototype.onIsActiveChanged=WC.prototype.onIsActiveChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],WC.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],WC.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],WC.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],WC.prototype,"ytdGuideStateAwareBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],WC.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],WC.prototype,"isActive",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],WC.prototype,"hidden",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],WC.prototype,"useShortsIcon",void 0);_.g([_.U({value:"left"}),_.N("design:type",String)],WC.prototype,"buttonTooltipPosition",void 0);
_.g([_.U({value:_.S("reels_enable_livingroom_layout")?"top":"left"}),_.N("design:type",String)],WC.prototype,"likeButtonTooltipPosition",void 0);_.g([_.U({value:"none"}),_.N("design:type",String)],WC.prototype,"textTransform",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],WC.prototype,"showScrubber",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],WC.prototype,"isWatchWhileMode",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("data.infoPanel"),_.N("design:type",Object),_.N("design:paramtypes",[])],WC.prototype,"hasInfoPanel",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],WC.prototype,"enableRemixButton",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],WC.prototype,"enableAnchoredPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],WC.prototype,"enableNewStickers",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],WC.prototype,"anchoredPanelActive",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],WC.prototype,"enableLivingroomLayout",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],WC.prototype,"enablePlayerMetadataContainer",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],WC.prototype,"enableSqueezebackPanels",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],WC.prototype,"useAspectRatio",void 0);_.g([_.U({selector:_.sIq,reflectToAttribute:!0}),_.N("design:type",Object)],WC.prototype,"isSqueezebackActive",void 0);_.g([_.U({selector:Yk_,reflectToAttribute:!0}),_.N("design:type",Object)],WC.prototype,"smallScreenSqueezeback",void 0);_.g([_.U({selector:Ab_}),_.N("design:type",Object)],WC.prototype,"isPlayerStarted",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],WC.prototype,"overlayDensity",void 0);_.g([_.U(),_.N("design:type",Object)],WC.prototype,"isOverlay",void 0);_.g([_.U({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.N("design:type",Boolean)],WC.prototype,"isShortsOverlay",void 0);_.g([_.U(),_.N("design:type",Object)],WC.prototype,"isImmersive",void 0);_.g([_.U(),_.N("design:type",Object)],WC.prototype,"isImmersiveHorizontal",void 0);
_.g([_.U({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.N("design:type",Boolean)],WC.prototype,"isShortsImmersive",void 0);_.g([_.U({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.N("design:type",Object)],WC.prototype,"buttonOverride",void 0);_.g([_.U({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.N("design:type",Object)],WC.prototype,"actionBarButtonOverride",void 0);
_.g([_.U({selector:_.R5,reflectToAttribute:!0}),_.N("design:type",Object)],WC.prototype,"isFullscreen",void 0);_.g([_.JU("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WC.prototype,"onIsActiveChanged",null);_.g([_.T({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],WC);
_.F(WC,"ytd-reel-player-overlay-renderer",function(){if(xzH!==void 0)return xzH;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return xzH=u},{mode:1});var c4k;var HC=function(){var u=_.Q.apply(this,arguments)||this;u.videoDuration=0;u.playedTime=0;u.isActive=!1;u.JSC$22011_playerEvents=new Map;return u};
_.c(HC,_.Q);_.I=HC.prototype;_.I.created=function(){this.JSC$22011_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22011_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.I.attached=function(){this.getPlayerAndInitializeListeners()};
_.I.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22011_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Ql(this,this.onPageChanged))};
_.I.getPlayerAndInitializeListeners=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1)return K=_.xY(),K?l.yield(K.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Ql(u,u.onPageChanged)),l.jumpTo(0));u.player=l.yieldResult;u.initializePlayerListeners();_.TG(l)})};
_.I.onPageChanged=function(u){var K=this;return _.H(function(l){if(l.nextAddress==1)return u.detail.newPageType!=="ytd-shorts"?l.return():l.yield(_.SU().getPlayerPromise(),2);K.player=l.yieldResult;K.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Ql(K,K.onPageChanged));_.TG(l)})};
_.I.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22011_playerEvents)};
_.I.onVideoDataChange=function(u){var K=this;return _.H(function(l){if(!K.player||u.type!=="newdata")return l.return();K.videoDuration=_.S("web_shorts_use_progress_state_for_gapless")?K.player.getProgressState(u.playertype).seekableEnd:K.player.getDuration(u.playertype);K.playedTime=0;_.TG(l)})};
_.I.onVideoProgress=function(u){var K=this,l,D;return _.H(function(d){if(!K.player)return d.return();l=K.player.getPresentingPlayerType();D=K.player.getPlayerState();K.videoDuration=_.S("web_shorts_use_progress_state_for_gapless")?K.player.getProgressState(l).seekableEnd:K.player.getDuration(l);K.playedTime=D===0?K.videoDuration:u;_.TG(d)})};
_.I.getPercentPlayed=function(u,K){return u?_.mz(K/u,0,1):0};
_.MN.Object.defineProperties(HC.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 u="";return u=this.videoDuration&&this.playedTime?u+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):u+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],HC.prototype,"componentBehavior",void 0);_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",_.HB)],HC.prototype,"ytPlayerListenerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],HC.prototype,"player",void 0);_.g([_.U(),_.N("design:type",Object)],HC.prototype,"videoDuration",void 0);_.g([_.U(),_.N("design:type",Object)],HC.prototype,"playedTime",void 0);_.g([_.U(),_.N("design:type",Object)],HC.prototype,"isActive",void 0);
_.g([_.R("videoDuration","playedTime"),_.N("design:type",Number),_.N("design:paramtypes",[])],HC.prototype,"percentPlayed",null);_.g([_.R("videoDuration","playedTime"),_.N("design:type",Object),_.N("design:paramtypes",[])],HC.prototype,"percentPlayedStyle",null);_.g([_.R("videoDuration","isActive"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HC.prototype,"hideProgressBar",null);
_.F(HC,"ytd-progress-bar-line",function(){if(c4k===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);c4k=u}u=c4k;return u},{mode:_.zW("kevlar_poly_si_batch_j028")?1:2});var az2;_.SX(_.VbI,"ytm-closed-captioning-button",{props:{captionIconType:_.M6,onClick:_.xo,ariaLabel:_.M6,ariaPressed:_.M6,isOverlay:_.xo,isModern:_.xo}});_.SX(_.d06,"desktop-shorts-volume-controls",{props:{orientation:_.M6}});var Mz=function(){var u=_.Q.apply(this,arguments)||this;u.playerState=null;u.isMuted=!1;u.shortsModernControlsEnabled=_.S("web_shorts_modern_controls");u.volumeControlsOrientationState=_.S("web_shorts_modern_controls")?"vertical_down":"horizontal_right";u.isOverlay=!0;u.captionIconType=-1;u.ariaLabel="";u.overlayDensity=0;u.JSC$22014_playerEvents=new Map;u.onClosedCaptionsButtonClick=function(){u.player&&_.Cx(u.player)&&(u.player.toggleSubtitles(),u.updateCaptionIconType())};
return u};
_.c(Mz,_.Q);_.I=Mz.prototype;_.I.created=function(){this.JSC$22014_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22014_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22014_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.I.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Yo(28662);this.playPauseButtonClientVE=_.Yo(36842);this.fullscreenButtonToggleOffClientVE=_.Yo(222256);this.fullscreenButtonToggleOnClientVE=_.Yo(222257);var u=_.AC(),K=_.Yr();u&&K&&(_.S("combine_ve_grafts")?(_.RD(_.iT(),this.muteButtonClientVE,K),_.RD(_.iT(),this.playPauseButtonClientVE,K)):_.dZ(u,K,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.I.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22014_playerEvents),this.player=null)};
_.I.updateCaptionIconType=function(){var u=-1,K=void 0,l=_.QQ("CLOSED_CAPTIONS_DISABLED");this.player&&_.Cx(this.player)&&(_.Uti(this.player)?(K=!0,l=_.QQ("CLOSED_CAPTIONS_ON"),u=1):(K=!1,l=_.QQ("CLOSED_CAPTIONS_OFF"),u=0));this.captionIconType=u;this.ariaPressedState=K;this.ariaLabel=l};
_.I.getPlayerAndInitializeListeners=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1)return K=_.xY(),K?l.yield(K.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Ql(u,u.onPageChanged)),l.jumpTo(0));u.player=l.yieldResult;u.initializePlayerListeners();_.TG(l)})};
_.I.onPageChanged=function(u){var K=this;return _.H(function(l){if(l.nextAddress==1)return u.detail.newPageType!=="ytd-shorts"?l.return():l.yield(_.SU().getPlayerPromise(),2);K.player=l.yieldResult;K.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Ql(K,K.onPageChanged));_.TG(l)})};
_.I.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22014_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.I.onPlayerStateChange=function(u){this.playerState=u};
_.I.onPlayerVolumeChange=function(u){this.isMuted=u.muted};
_.I.onPlayPauseButtonClick=function(){var u=this,K,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(_.SU().getPlayerPromise(),2);K=D.yieldResult;(l=_.AC())&&u.playPauseButtonClientVE&&_.Wi(l,u.playPauseButtonClientVE);K.getPlayerState()!==1?K.playVideo():K.pauseVideo();_.TG(D)})};
_.I.computePlayPauseIcon=function(u){return u===2||u===-1||u===5?_.S("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.S("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.S("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.I.computeFullscreenLabel=function(u){return u?_.QQ("FULLSCREEN_EXIT_LABEL"):_.QQ("FULLSCREEN_ENTER_LABEL")};
_.I.computePlayPauseLabel=function(u){return u===1||u===3?_.QQ("PLAYER_LABEL_PAUSE"):_.QQ("PLAYER_LABEL_PLAY")};
_.I.onMuteButtonClick=function(){var u=this,K,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(_.SU().getPlayerPromise(),2);K=D.yieldResult;(l=_.AC())&&u.muteButtonClientVE&&_.Wi(l,u.muteButtonClientVE);K.isMuted()?K.unMute(!0):K.mute(!0);_.TG(D)})};
_.I.computeMuteIcon=function(u){return u?"miniplayer:volume-off":"miniplayer:volume-up"};
_.I.computeMuteLabel=function(u){return u?_.QQ("PLAYER_LABEL_UNMUTE"):_.QQ("PLAYER_LABEL_MUTE")};
_.I.onFullscreenButtonClick=function(){var u=_.AC();u&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Wi(u,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Wi(u,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.EEE()};
_.MN.Object.defineProperties(Mz.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var u=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(){u.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?_.S("web_shorts_modern_controls")?"player_full_exit_alt":_.S("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.S("web_shorts_modern_controls")?"player_full_enter_alt":_.S("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Mz.prototype,"componentBehavior",void 0);_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",_.HB)],Mz.prototype,"ytPlayerListenerBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Mz.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Mz.prototype,"player",void 0);_.g([_.U(),_.N("design:type",Object)],Mz.prototype,"playerState",void 0);_.g([_.U(),_.N("design:type",Object)],Mz.prototype,"isMuted",void 0);
_.g([_.U({computed:"computePlayPauseIcon(playerState)"}),_.N("design:type",String)],Mz.prototype,"playPauseIcon",void 0);_.g([_.U({computed:"computeMuteIcon(isMuted)"}),_.N("design:type",String)],Mz.prototype,"muteIcon",void 0);_.g([_.U({selector:_.R5}),_.N("design:type",Boolean)],Mz.prototype,"isFullscreen",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Mz.prototype,"shortsModernControlsEnabled",void 0);
_.g([_.U(),_.N("design:type",Object)],Mz.prototype,"volumeControlsOrientationState",void 0);_.g([_.U(),_.N("design:type",Object)],Mz.prototype,"isOverlay",void 0);_.g([_.U(),_.N("design:type",Object)],Mz.prototype,"captionIconType",void 0);_.g([_.U(),_.N("design:type",Object)],Mz.prototype,"ariaLabel",void 0);_.g([_.U(),_.N("design:type",Object)],Mz.prototype,"ariaPressedState",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Mz.prototype,"overlayDensity",void 0);
_.g([_.R("playerState"),_.N("design:type",Object),_.N("design:paramtypes",[])],Mz.prototype,"playPauseButtonData",null);_.g([_.R("isFullscreen"),_.N("design:type",Object),_.N("design:paramtypes",[])],Mz.prototype,"fullscreenButtonData",null);_.g([_.U(),_.N("design:type",Object)],Mz.prototype,"onClosedCaptionsButtonClick",void 0);_.g([_.R("isFullscreen"),_.N("design:type",String),_.N("design:paramtypes",[])],Mz.prototype,"fullscreenIcon",null);
_.F(Mz,"ytd-shorts-player-controls",function(){if(az2===void 0){var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);az2=u}u=az2;return u},{mode:1});var zGE;_.SX(_.Aza,"yt-interstitial-view-model",{props:{data:_.M6}});var eGG=_.rf(function(u){var K=u.data;return _.n("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.n("h1",{class:"reelWatchBreakViewModelHostTitle"},_.n(_.qC,{text:function(){return K().title}})),_.n("h2",{class:"reelWatchBreakViewModelHostBody"},_.n(_.qC,{text:function(){return K().body},
isOverlay:!0})),_.n(_.mo,{data:function(){return K().buttons}},{buttonViewModel:function(l,D){return _.n("div",{class:function(){return D()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.n(_.P2,{data:l.data}))}}))},"kj");
eGG.idomCompat=!0;_.SX(eGG,"reel-watch-break-view-model",{props:{data:_.M6}});var qz=function(){return _.Q.apply(this,arguments)||this};
_.c(qz,_.Q);qz.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}}};
_.MN.Object.defineProperties(qz.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var u;return!!_.b((u=this.data)==null?void 0:u.renderer,Mqi)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var u;return!!_.b((u=this.data)==null?void 0:u.renderer,qT_)}}});
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],qz.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],qz.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],qz.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],qz.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("data.renderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qz.prototype,"isSurvey",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.renderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qz.prototype,"isInterstitialViewModel",null);_.g([_.T({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],qz);
_.F(qz,"ytd-reel-non-video-content-renderer",function(){if(zGE!==void 0)return zGE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
return zGE=u},{mode:_.zW("kevlar_poly_si_batch_j028")?1:2});var RGk;_.SX(_.D0H,"desktop-shorts-player-controls",{});var $Z=function(){var u=_.Q.apply(this,arguments)||this;u.isPlayerPaused=!1;u.isPlayerStarted=!1;u.showPlayerControls=!1;u.showScrubber=!1;u.autoHideJobId=0;u.modern=_.S("web_button_rework");u.overlayType=_.bZ("web_shorts_expanded_overlay_type");u.panelData=void 0;u.isWatchWhileMode=!1;u.hasError=!1;u.panelShowDelayMs=1;u.scrubberComponent={};u.isFullscreen=!1;u.shouldHideOverlay=!1;u.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");u.enablePersistentAnchoredPanel=_.S("desktop_shorts_v2_persistent_anchored_panel");
u.hideWatchWhilePanel=_.S("web_shorts_hide_watch_while_panel");u.useAspectRatio=_.S("web_use_aspect_ratio");u.isPersistentPanelActive=!1;u.anchoredPanelActive=!1;u.isShortsPipActive=!1;u.smallScreenSqueezeback=!1;u.enableFlexibleOverlay=_.S("web_enable_flexible_overlay");u.overlayDensity=0;u.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};u.onWindowResized=function(){_.It(u,
"calculateOverlayDensity",function(){u.calculateOverlayDensity()},100)};
return u};
_.c($Z,_.Q);_.I=$Z.prototype;_.I.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.I.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.I.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var u=_.GB().resolve(_.gP);this.isWatchWhileMode&&(_.S("web_enable_shorts_new_carousel")?_.YL.addJob(function(){u.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):u.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.I.handleShowReelsCommentsOverlayCommand=function(u){u=_.b(u,r4p);this.isActive&&(u==null?0:u.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))};
_.I.updateEngagementPanelVisibility=function(u,K){u&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:K?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:u}})};
_.I.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.I.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.GB().resolve(_.iX).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.I.handleWatchWhilePanelScrimClick=function(){var u=_.GB().resolve(_.gP);this.activeWatchWhilePanel&&(u.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.I.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.I.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.S("web_enable_shorts_new_carousel")?0:void 0}}};
_.I.handlePlayerClick=function(u){var K=this,l,D;if((D=(l=window).matchMedia)!=null&&D.call(l,"(any-pointer: coarse)").matches||!u)this.showPlayerControls=!0,_.YL.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Ve(_.YL,function(){K.showPlayerControls=!1},4E3)};
_.I.isFirstReel=function(){return this.index===0};
_.I.handleMouseenter=function(){_.YL.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.I.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.I.handleScrubberEnter=function(){this.showScrubber=!0};
_.I.handleScrubberLeave=function(){this.showScrubber=!1};
_.I.maybeLogNonDefaultAspectRatio=function(){var u;(u=this.data)!=null&&u.thumbnail&&this.isActive&&.5625!==ZBV(this.data.thumbnail)&&_.v7r("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.I.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var u=document.querySelector("#shorts-container");if(u){u=u.offsetWidth/2-this.playerContainer.offsetWidth/2;u=u>=368?1:u>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&u===1&&(u=0);this.isPersistentPanelActive&&(u=0);window.innerWidth<=599&&(u=2);this.overlayDensity=u;var K;(K=this.onOverlayDensityChanged)==null||K.call(this,this.index,this.overlayDensity)}}};
_.I.onOverlayDensityChange=function(){var u;(u=this.onOverlayDensityChanged)==null||u.call(this,this.index,this.overlayDensity);(u=_.bi(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&u.set("overlayDensity",this.overlayDensity);if(u=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))u.overlayDensity=this.overlayDensity};
_.I.isVideoContent=function(u){_.GB().resolve(_.iX);return!!_.b(u,_.TO)};
_.I.isNonVideoContent=function(u){_.GB().resolve(_.iX);return!!_.b(u,_.uF)};
_.I.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.MN.Object.defineProperties($Z.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var u,K;return _.S("web_enable_format_first")||((u=this.data)==null?void 0:u.adsOverlay)&&_.S("web_enable_format_first_ads_only")||((K=this.data)==null?void 0:K.reelPlayerOverlayRenderer)&&_.S("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.S("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var u;return!this.isActive||!this.isPlayerStarted||(u=this.data)!=null&&u.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var u;if(((u=this.data)==null?0:u.command)&&this.isVideoContent(this.data.command)){var K,l;if(((K=this.data)==null?0:K.adsOverlay)&&Object.keys((l=this.data)==null?void 0:l.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var D,d;if(((D=this.data)==null?0:D.reelPlayerOverlayRenderer)&&Object.keys((d=this.data)==null?void 0:d.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
$Z.prototype.onOverlayDensityChange=$Z.prototype.onOverlayDensityChange;$Z.prototype.calculateOverlayDensity=$Z.prototype.calculateOverlayDensity;$Z.prototype.maybeLogNonDefaultAspectRatio=$Z.prototype.maybeLogNonDefaultAspectRatio;$Z.prototype.onEngagementPanelsChanged=$Z.prototype.onEngagementPanelsChanged;$Z.prototype.onScrubberDataChange=$Z.prototype.onScrubberDataChange;$Z.prototype.updateShouldHideOverlay=$Z.prototype.updateShouldHideOverlay;
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],$Z.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],$Z.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],$Z.prototype,"ytdGuideStateAwareBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],$Z.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Number)],$Z.prototype,"index",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],$Z.prototype,"isActive",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],$Z.prototype,"isHiddenInDom",void 0);_.g([_.U(),_.N("design:type",Object)],$Z.prototype,"isPlayerPaused",void 0);_.g([_.U({selector:Ab_}),_.N("design:type",Object)],$Z.prototype,"isPlayerStarted",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"showPlayerControls",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"showScrubber",void 0);_.g([_.U(),_.N("design:type",Object)],$Z.prototype,"autoHideJobId",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"modern",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"overlayType",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],$Z.prototype,"ytdReduxBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],$Z.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],$Z.prototype,"watchWhileEngagementPanels",void 0);_.g([_.U(),_.N("design:type",Object)],$Z.prototype,"panelData",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"isWatchWhileMode",void 0);_.g([_.U(),_.N("design:type",String)],$Z.prototype,"activeWatchWhilePanel",void 0);
_.g([_.U(),_.N("design:type",Object)],$Z.prototype,"hasError",void 0);_.g([_.U(),_.N("design:type",Object)],$Z.prototype,"panelShowDelayMs",void 0);_.g([_.U(),_.N("design:type",Object)],$Z.prototype,"scrubberComponent",void 0);_.g([_.U({selector:_.R5,reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"isFullscreen",void 0);_.g([_.U(),_.N("design:type",Object)],$Z.prototype,"shouldHideOverlay",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"enableAnchoredPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"enablePersistentAnchoredPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"hideWatchWhilePanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"useAspectRatio",void 0);
_.g([_.U({selector:_.sIq,reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"isPersistentPanelActive",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"anchoredPanelActive",void 0);_.g([_.U({selector:_.UL,reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"isShortsPipActive",void 0);_.g([_.U({selector:Yk_,reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"smallScreenSqueezeback",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],$Z.prototype,"enableFormatFirst",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"enableFlexibleOverlay",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"overlayDensity",void 0);_.g([_.U(),_.N("design:type",Function)],$Z.prototype,"onOverlayDensityChanged",void 0);
_.g([_.U(),_.R("isActive","hasError","isPlayerStarted"),_.N("design:type",Object),_.N("design:paramtypes",[])],$Z.prototype,"shouldRenderPlayerElements",null);_.g([_.U(),_.R("isActive","isWatchWhileMode"),_.N("design:type",Object),_.N("design:paramtypes",[])],$Z.prototype,"watchWhileOrPersistentActive",null);_.g([_.JU("isActive","hasError","showingExpandedOverlay"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$Z.prototype,"updateShouldHideOverlay",null);
_.g([_.U({reflectToAttribute:!0}),_.R("isActive","isPlayerStarted","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],$Z.prototype,"shouldRenderScrubber",null);_.g([_.JU("shouldRenderScrubber"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$Z.prototype,"onScrubberDataChange",null);_.g([_.R("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],$Z.prototype,"overlayComponent",null);
_.g([_.JU("watchWhileEngagementPanels"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$Z.prototype,"onEngagementPanelsChanged",null);_.g([_.BF("#player-container"),_.N("design:type",HTMLElement)],$Z.prototype,"playerContainer",void 0);_.g([_.BF("#cinematic-container"),_.N("design:type",HTMLElement)],$Z.prototype,"cinematicContainer",void 0);
_.g([_.JU("isPersistentPanelActive","data.thumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$Z.prototype,"maybeLogNonDefaultAspectRatio",null);_.g([_.JU("isPersistentPanelActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$Z.prototype,"calculateOverlayDensity",null);_.g([_.JU("overlayDensity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$Z.prototype,"onOverlayDensityChange",null);
_.g([_.T({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],$Z);
_.F($Z,"ytd-reel-video-renderer",function(){if(RGk!==void 0)return RGk;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" 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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return RGk=u},{mode:_.zW("kevlar_poly_si_batch_j028")?1:2});var nq=function(){var u=_.Q.apply(this,arguments)||this;u.isPreviousPageShorts=!1;u.index=0;u.delayedActiveIndex=0;u.playablePreviousIndex=null;u.isPlayerPaused=!1;u.isPlayerStarted=!1;u.intersectionObserverThreshold=.6;u.fitToVisibleBounds=!1;u.pageSubtype="shorts";u.enablePreviousContinuation=_.S("shorts_in_playlists_web");u.shortsPipEnabled=_.S("web_shorts_pip");u.isDark=document.documentElement.hasAttribute("dark");u.shortsViewTransitions=_.S("web_shorts_view_transitions");u.isFullscreen=!1;u.isShortsPipActive=
!1;u.buttonOverride={iconPosition:"icon-only",size:"XL"};u.anchoredPanelActive=!1;u.isActive=!1;u.smallScreenPersistentPanel=!1;u.isPersistentPanelActive=!1;u.smallScreenSqueezeBack=!1;u.enableScrollIntoViewCenter=_.S("web_scroll_into_view_center");u.formatFirst=_.S("web_enable_format_first")||_.S("web_enable_format_first_ads_only")||_.S("web_enable_format_first_organic_only");u.enableFlexibleOverlay=_.S("web_enable_flexible_overlay");u.useAspectRatio=_.S("web_use_aspect_ratio");u.isShortsInitialized=
!1;u.hidePreviousButtonImmediately=!1;u.showPreviousButtonImmediately=!1;u.endOfNextContinuation=!1;u.currentPlayerIndex=0;u.nextReelVe=_.Yo(56921);u.prevReelVe=_.Yo(56922);u.loopToggleOffVe=_.Yo(198013);u.loopToggleOnVe=_.Yo(198014);u.ambientModeToggleVe=_.Yo(227860);u.reelPlayerPausedStateRendererVe=_.Yo(141313);u.storedPlaybackSpeed=null;u.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"};u.onOverlayDensityChanged=function(K,l){var D;(D=u.getActiveReelVideo(K))==null||D.setAttribute("overlay-density",String(l))};
return u};
_.c(nq,_.Q);_.I=nq.prototype;
_.I.deflateInactivePreviousSlides=function(){var u=_.Sg("web_shorts_deflate_inactive_slides_aggressive_distance");if(u>0&&this.shortsProcessedSequence&&this.activeIndex){u=this.activeIndex-u;for(var K=0;K<=u;K++){var l=void 0;((l=this.shortsProcessedSequence[K].reelPlayerOverlayRenderer)==null?0:l.metapanel)&&this.set("shortsProcessedSequence."+K+".reelPlayerOverlayRenderer",{});l=void 0;((l=this.shortsProcessedSequence[K].adsOverlay)==null?0:l.adSlotMetadata)&&this.set("shortsProcessedSequence."+K+
".adsOverlay",{})}}};
_.I.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.I.onResize=function(){var u=_.Mu(),K=u.dispatch,l=this.calculateIsSmallWidth();K.call(u,_.SZ({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:l}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.I.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:_.S("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.I.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var u=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,K=u,l=0;u<250&&(K=u+this.shortsInnerContainer.clientWidth,l=24);_.e8(this.hostElement,{"--ytd-shorts-header-width":K+"px","--ytd-shorts-top-spacing":l+"px"})}};
_.I.isFirstShorts=function(u){return u?this.index===-u.length:this.index===0};
_.I.isActiveReel=function(u,K,l){l&&(K=this.calculatePrevIndex(K,l));return u===K};
_.I.onFullscreenChange=function(){if(_.S("web_fullscreen_shorts")){var u;(u=this.getActiveReelVideo(this.activeIndex))==null||u.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.GB().resolve(_.uD).close(!0)}};
_.I.engagementPanelsChanged=function(){var u;this.watchWhileEngagementPanels=(u=this.data)==null?void 0:u.engagementPanels};
_.I.unregisterPanels=function(){var u=_.GB().resolve(_.gP);if(this.watchWhileEngagementPanels)for(var K=_.y(this.watchWhileEngagementPanels),l=K.next();!l.done;l=K.next()){var D=l.value,d=void 0,C=void 0;l=(d=D.engagementPanelSectionListRenderer)==null?void 0:(C=d.identifier)==null?void 0:C.tag;D=this.getPanelContentIdentifier(D.engagementPanelSectionListRenderer);u&&(l&&u.panelMap.delete(l),D&&_.S("web_shorts_panel_caching_bugfix")&&(d=l=void 0,(d=(l=u).unregisterPanelContent)==null||d.call(l,D)))}};
_.I.isVideoContent=function(u){return this.isVideoContentCommand(u==null?void 0:u.command)};
_.I.getActiveReelVideo=function(u){return _.bi(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+u+'"]')};
_.I.calculatePrevIndex=function(u,K){return K?u-((K==null?void 0:K.length)||0):-1};
_.I.onKeydown=function(u){var K=_.WF(u)||[];if(!_.hao(K))if(u.code==="ArrowUp")u.preventDefault(),this.handlePrevButtonClick();else if(u.code==="ArrowDown")u.preventDefault(),this.handleNextButtonClick();else if(u.code==="KeyM")this.toggleMuteUnmuteVideo();else if(u.code==="KeyK"||u.code==="Space")this.togglePlayPauseVideo();else if((u.code==="KeyA"||u.code==="ArrowLeft")&&_.S("web_shorts_keyboard_enable_seek_shortcuts")){var l;(l=this.player)==null||l.seekBy(-5)}else if((u.code==="KeyD"||u.code===
"ArrowRight")&&_.S("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var D;(D=this.player)==null||D.seekBy(5)}};
_.I.onServiceRequestCompleted=function(u,K){u=K.data;u.continuationEndpoint&&u.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:u.entries,continuationEndpoint:u.continuationEndpoint}}):u.prevContinuationEndpoint&&u.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:u.prevEntries,prevContinuationEndpoint:u.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.I.handleEngagementPanelVisibilityChanged=function(u,K){var l=_.GB().resolve(_.gP);if(u&&l){var D=this.getPanelIdentifier(u);if(K==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==D){l.hidePanel(this.activePanel);var d;this.activePanel=((d=u.identifier)==null?void 0:d.tag)||u.panelIdentifier}else this.isPersistentPanelActive=!0,_.Mu().dispatch(Cg_(!0)),this.anchoredPanelActive=!0,this.activePanel=D;else K==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
D&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Mu().dispatch(Cg_(!1)))}};
_.I.handlePanelScrimClick=function(){var u=_.GB().resolve(_.gP);this.activePanel&&(u.hidePanel(this.activePanel),_.Mu().dispatch(Cg_(!1)))};
_.I.getShortsLoopSetting=function(){var u,K,l,D,d;return _.H(function(C){switch(C.nextAddress){case 1:return _.S("kevlar_shorts_auto_advance")?C.yield(_.ki.getInstance(),2):C.return(!0);case 2:return(u=C.yieldResult)?C.yield(u.get("sfvles"),3):C.return(!0);case 3:return l=(K=C.yieldResult)!=null?K:!1,C.yield(u.get("sfvle"),4);case 4:return d=(D=C.yieldResult)!=null?D:!0,l?C.return(d):C.return(!0)}})};
_.I.handleSignalActionToggleLoopShortsOff=function(){var u=this,K,l,D;return _.H(function(d){switch(d.nextAddress){case 1:if(!u.player)return d.return();u.player.setLoopVideo(!1);K=_.iT();_.ft(K,u.loopToggleOffVe);return d.yield(_.ki.getInstance(),2);case 2:return(l=d.yieldResult)?d.yield(l.set("sfvle",!1),3):d.return();case 3:return d.yield(l.set("sfvles",!0),4);case 4:D=_.jy(),_.B0(0,203,!1),_.B0(0,204,!0),D.save(),_.TG(d)}})};
_.I.handleSignalActionToggleLoopShortsOn=function(){var u=this,K,l,D;return _.H(function(d){switch(d.nextAddress){case 1:if(!u.player)return d.return();u.player.setLoopVideo(!0);K=_.iT();_.ft(K,u.loopToggleOnVe);return d.yield(_.ki.getInstance(),2);case 2:return(l=d.yieldResult)?d.yield(l.set("sfvle",!0),3):d.return();case 3:return d.yield(l.set("sfvles",!0),4);case 4:D=_.jy(),_.B0(0,203,!0),_.B0(0,204,!0),D.save(),_.TG(d)}})};
_.I.handleSignalActionToggleCinematicShortsOn=function(){kMi(!0);var u;(u=this.JSC$22038_cinematicController)==null||_.FkV(u,!0);_.ft(_.iT(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.I.handleSignalActionToggleCinematicShortsOff=function(){kMi(!1);var u;(u=this.JSC$22038_cinematicController)==null||_.FkV(u,!1);_.ft(_.iT(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.I.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.I.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.I.unhideCurrentOverlay=function(){if(this.overlayContainer){var u=this.overlayContainer.querySelector("#experiment-overlay");u&&_.YL.addLowPriorityJob(function(){u.style.display="unset"},100)}};
_.I.getCurrentShort=function(){if(this.currentEndpoint){var u=this.currentEndpoint;if(this.isNonVideoContentCommand(u)){var K=_.b(u,_.uF);return{reelNonVideoContentRenderer:_.b(K==null?void 0:K.renderer,_.rWa),command:u}}if(this.data){var l;K=(l=_.b(this.currentEndpoint,_.TO))==null?void 0:l.thumbnail;var D;l=(D=this.data.overlay)==null?void 0:D.reelPlayerOverlayRenderer;_.GB().resolve(_.iX);u=this.data;var d,C;D=(d=u.overlay)==null?void 0:(C=d.shortsAdsRenderer)==null?void 0:C.adSlots;if(D!==void 0)D.length===
0?(_.nz("Shorts ads returned no ad slots."),u=void 0):(D.length>1&&_.nz("Shorts ads has more than one ad slots."),u=_.b(D[0],_.pys));else{var W,M;u=_.b((W=u.overlay)==null?void 0:(M=W.shortsAdsRenderer)==null?void 0:M.overlay,_.pys)}W=u;u=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.b(this.currentEndpoint,_.TO),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:l,thumbnail:K,command:u,adsOverlay:W}}}};
_.I.created=function(){var u=this;this.scrollToVideoThrottle=new _.MC(function(K){var l;(l=u.getActiveReelVideo(K))==null||l.scrollIntoView({behavior:"smooth",block:"nearest",inline:u.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.MC(function(K){var l;(l=u.getActiveReelVideo(K))==null||l.scrollIntoView({behavior:"auto",block:"nearest",inline:u.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.I.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.I.attached=function(){var u=this;_.GB().resolve(_.iX).registerRootElement(this);this.pageScrollElement=_.bi(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Ql(this,this.processResetAction));_.S("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.S("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var K=
u.getActiveReelVideo(u.activeIndex);u.maybeCreateIntersectionObserver();K==null||K.scrollIntoView({behavior:"instant",block:"nearest",inline:u.enableScrollIntoViewCenter?"center":"start"});u.shortsContainer.style.overflowY="scroll"}))};
_.I.calculateSqueezebackPanelSize=function(){var u=this,K=window.innerWidth-456-(window.innerHeight-106)*.5625;_.YL.addLowPriorityJob(function(){K<360?_.Mu().dispatch(Iz6(!0)):(u.hostElement.style.setProperty("--anchored-panel-width",Math.min(K,480)+"px"),_.Mu().dispatch(Iz6(!1)))})};
_.I.detached=function(){var u=_.GB().resolve(_.iX);u.rootElement=void 0;var K;(K=u.unsubscribeFromStore)==null||K.call(u);u.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Ql(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.I.onResizeFinished=function(u,K){var l=this,D=new ResizeObserver(function(){l.shortsContainer.style.overflowY="hidden";_.YL.addLowPriorityJob(function(){K()},100)});
D.observe(u);return D};
_.I.resetDocumentScrollTop=function(){var u,K;if((u=document)==null?0:(K=u.scrollingElement)==null?0:K.scrollTop)document.scrollingElement.scrollTop=0};
_.I.loadPage_=function(u){var K=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),u){var l;!_.S("web_enable_delay_shorts_sequence_call")&&((l=_.b(this.currentEndpoint,_.TO))==null?0:l.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=u;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){K.isPlayerStarted&&(K.handleOnPlaybackCommand(),K.afterPlayerStarted=function(){})};
this.registerPanel(u)}};
_.I.afterPlayerStarted=function(){};
_.I.handleOnPlaybackCommand=function(){if(_.S("web_shorts_comment_stickers")&&this.isPlayerStarted){var u,K=(u=_.b(this.currentEndpoint,_.TO))==null?void 0:u.onPlaybackCommand;K&&this.ytComponentBehavior.resolveCommand(K)}};
_.I.maybeCreateIntersectionObserver=function(){var u=this,K=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==K){this.intersectionObserverThreshold=K;var l={rootMargin:"0px",threshold:K},D;(D=this.intersectionObserver)==null||D.disconnect();this.intersectionObserver=new IntersectionObserver(function(d){d=_.y(d);for(var C=d.next();!C.done;C=d.next())if(C=C.value,C.intersectionRatio>K){C=Number(C.target.id);if(isNaN(C))break;if(C===u.index)break;
_.FeL();u.loadVideo(C);_.hs("r_vtc")}},l);
this.observeShorts()}};
_.I.observeShorts=function(){var u=[].concat(_.Am(_.bi(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));u=_.y(u);for(var K=u.next();!K.done;K=u.next()){K=K.value;var l=void 0;(l=this.intersectionObserver)==null||l.observe(K)}};
_.I.initCsi=function(){_.ag("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var u={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"}},K,l;if((K=this.playerData)==null?0:(l=K.cacheMetadata)==null?0:l.isCacheHit)u.isCacheHit=!0;var D;if(K=(D=_.b(this.currentEndpoint,_.TO))==null?void 0:
D.prefetchTaskId)u.prefetchInfo={taskId:K};_.Zy(u)};
_.I.isAd=function(){var u,K;return!!((u=_.b(this.currentEndpoint,_.TO))==null?0:(K=u.adClientParams)==null?0:K.isAd)};
_.I.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.I.getPlayerContainer=function(){var u;return(u=_.bi(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:u.playerContainer};
_.I.onPlayerStateChange=function(u){var K=this;this.isPlayerPaused=u===2;u!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?u===1&&this.index===0&&(this.isPlayerStarted||_.Mu().dispatch(Cq(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Mu().dispatch(Cq(!0)));this.player&&!this.player.getLoopVideo()&&_.YL.addLowPriorityJob(function(){K.getShortsLoopSetting().then(function(l){var D;(D=K.player)==null||D.setLoopVideo(l)})});
this.isPlayerPaused&&_.S("web_shorts_paused_state_logging")&&_.If(_.AC(),[this.reelPlayerPausedStateRendererVe])};
_.I.isInBackground=function(){var u=window.document.visibilityState;return!(!u||u==="visible")};
_.I.isShortPlayable=function(){if(_.S("kevlar_playable_short_killswitch"))return!0;var u;return(u=this.playerData)!=null&&u.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.I.setNormalPlaybackSpeed=function(){var u=this,K,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(u.getPlayer().getPlayerPromise(),2);K=D.yieldResult;l=K.getPlaybackRate();l!==1&&(u.storedPlaybackSpeed=l,K.setPlaybackRate(1));_.TG(D)})};
_.I.restorePlaybackSpeed=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1)return u.storedPlaybackSpeed===null?l.jumpTo(0):l.yield(u.getPlayer().getPlayerPromise(),3);K=l.yieldResult;K.setPlaybackRate(u.storedPlaybackSpeed);u.storedPlaybackSpeed=null;_.TG(l)})};
_.I.playerDataChanged=function(){var u=this,K,l,D,d,C,W,M,q,v;return _.H(function(G){if(G.nextAddress==1){K=u.getPlayer();(l=u.intersectionObserver)==null||l.disconnect();if(u.playerData){if(((D=u.playerData.videoDetails)==null?void 0:D.videoId)!==((d=K.getPlayer())==null?void 0:d.getVideoData().video_id)){C={};if(W=_.b(u.currentEndpoint,_.TO))C.watch_endpoint=W,W.endTimeSeconds&&(C.end=W.endTimeSeconds);K.loadVideoWithPlayerResponse(u.playerData,C)}}else return G.return();return u.player?G.jumpTo(2):
G.yield(K.getPlayerPromise(),3)}G.nextAddress!=2&&(u.player=G.yieldResult,u.JSC$22038_playerStateChangeListener=u.onPlayerStateChange.bind(u),u.player.addEventListener("onStateChange",u.JSC$22038_playerStateChangeListener),_.S("kevlar_client_enable_shorts_player_bootstrap")&&_.yU(),u.scrollToVideoThrottle.fire(u.index),u.movePlayerToVideo(u.index),_.YL.addLowPriorityJob(function(){u.getShortsLoopSetting().then(function(t){var x;(x=u.player)==null||x.setLoopVideo(t)})}),_.lXN.resolve(u.player),u.player.syncVolume(),
u.getPlayer().focusOnPlayer());
_.YL.addLowPriorityJob(function(){u.observeShorts()},100);
M=u.player.getPlayerState(u.player.getPresentingPlayerType());M!==1||u.isPlayerStarted||_.Mu().dispatch(Cq(!0));u.updateBackNavContainerWidth();q=_.b(u.currentEndpoint,_.TO);((v=q)==null?0:v.startTimeSeconds)&&u.player.seekTo(q.startTimeSeconds);if(u.JSC$22038_cinematicController||u.cinematicsInitializeJobId)return G.return();u.cinematicsInitializeJobId=_.YL.addLowPriorityJob(function(){u.initCinematicController();u.cinematicsInitializeJobId=void 0});
_.TG(G)})};
_.I.onShortUndoDismiss=function(){var u=this,K=dzE().pop();K!==void 0&&(_.W_(this,function(){u.showCardWithIndex(K)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.I.onShortsDismiss=function(u){if(u=u.detail.reelDismissalActionRenderer)(u=_.b(u.onDismissalCompletionRenderer,_.v8E))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:u}}}),this.scrollAndDismissCard()};
_.I.processReelNonVideoContentDismissalCommand=function(u){var K=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);u=_.b(u,nZI);this.activeDimissalTimeout=setTimeout(function(){K.scrollAndDismissCard()},Number(u==null?void 0:u.delayMs))};
_.I.scrollAndDismissCard=function(){var u=this,K=this.index;dzE().push(K);_.W_(this,function(){var l=u.getPlayableNextIndex();l!==null&&(l=u.getActiveReelVideo(l),u.hideCardWithIndex(K),l==null||l.scrollIntoView({behavior:"smooth",block:"nearest",inline:u.enableScrollIntoViewCenter?"center":"start"}))})};
_.I.hideCardWithIndex=function(u){if(u=this.getActiveReelVideo(u))u.hidden=!0};
_.I.showCardWithIndex=function(u){if(u=this.getActiveReelVideo(u))u.hidden=!1};
_.I.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.I.activeChanged=function(u){_.Mu().dispatch(_.SZ({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:u}}));if(u)document.addEventListener("keydown",_.Ql(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var K;(K=this.player)==null||K.sendAbandonmentPing()}var l;(l=this.player)==null||l.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Ql(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.I.graftClientVisualElements=function(){if(this.data){var u=_.iT();_.ltw(u,_.zA({response:this.reelWatchSequenceResponse}));_.RD(u,this.nextReelVe);_.RD(u,this.prevReelVe);_.S("kevlar_shorts_auto_advance")&&(_.RD(u,this.loopToggleOffVe),_.RD(u,this.loopToggleOnVe));_.RD(u,this.ambientModeToggleVe);_.If(_.AC(),[this.nextReelVe,this.prevReelVe]);_.S("web_shorts_paused_state_logging")&&_.RD(u,this.reelPlayerPausedStateRendererVe)}};
_.I.graftNvcRenderer=function(){var u,K,l,D,d=this.index<0?(u=this.shortsProcessedPrevSequence)==null?void 0:(K=u[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:K.command:(l=this.shortsProcessedSequence)==null?void 0:(D=l[this.index])==null?void 0:D.command;if(d&&this.isNonVideoContentCommand(d)){u=_.b(d,_.uF);var C,W;(u=(C=_.b(u==null?void 0:u.renderer,_.rWa))==null?void 0:(W=C.loggingDirectives)==null?void 0:W.trackingParams)&&_.iT().graftServerVe(u)}};
_.I.setActiveIndex=function(){_.GB().resolve(_.iX).setActiveIndex(this.index)};
_.I.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.I.lazyUpdateMiniplayerData=function(){var u=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.YL.addLowPriorityJob(function(){u.updateMiniplayerData();u.updateMiniplayerDataJobId=void 0}))};
_.I.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.YL.cancelJob(this.updateMiniplayerDataJobId)};
_.I.updateMiniplayerData=function(){var u,K,l,D=_.GB().resolve(_.uD),d={shortsData:this.getCurrentShort(),previousButtonDisabled:!((u=this.prevButtonData)==null||!u.isDisabled),nextButtonDisabled:!((K=this.nextButtonData)==null||!K.isDisabled),playabilityStatus:(l=this.playerData)==null?void 0:l.playabilityStatus};_.AG(D,d)};
_.I.resetPlayerLocation=function(){var u=this.getPlayer();this.initialPlayerContainer&&u.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.I.movePlayerToVideo=function(u,K){var l=this;K=K===void 0?!0:K;var D=this.getActiveReelVideo(u),d=this.getPlayer();if(D){this.overlayContainer?D.appendChild(this.overlayContainer):(this.overlayContainer=_.bi(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,D.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||d.appendTo(this.overlayContainer.playerContainer,void 0,!0));var C;(C=this.player)==null||C.setSize(NaN,NaN);this.isActive||_.Ve(_.YL,function(){l.isActive=
!0});
d.style.visibility="visible";_.S("reels_web_disable_rtr_tick")||_.S("reels_web_use_pbs_first_shorts")&&u===0||_.As("r_tr");this.currentPlayerIndex=u;D.appendChild(this.errorScreenContainer);var W;(W=this.JSC$22038_cinematicController)==null||_.g8k(W)}else K?_.YL.addLowPriorityJob(function(){l.movePlayerToVideo(l.index,!1)}):Math.random()<=_.Sg("web_shorts_error_logging_threshold")&&_.m0(new _.wv("Trying to movePlayerToVideo with undefined container.",{firstAttempt:K,
index:u}))};
_.I.enableFormatFirst=function(u){return _.S("web_enable_format_first")||u.adsOverlay&&_.S("web_enable_format_first_ads_only")||u.reelPlayerOverlayRenderer&&_.S("web_enable_format_first_organic_only")};
_.I.getAspectRatio=function(u){if(u!=null&&u.thumbnail&&this.enableFormatFirst(u))return"--ytd-shorts-player-ratio: "+ZBV(u.thumbnail)};
_.I.getBackgroundImage=function(u){if(u!=null&&u.thumbnail)return(u=_.O4(u.thumbnail.thumbnails))?'background-image:url("'+u+'");':"background-color:black;"};
_.I.onPersistentPanelActiveChanged=function(){var u=this.getCurrentShort();if(u&&this.enableFormatFirst(u)&&(u==null?0:u.thumbnail)&&ZBV(u.thumbnail)!==.5625){var K;(K=this.player)==null||K.setSize(NaN,NaN)}};
_.I.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.I.moveCinematicsToVideo=function(){var u=_.bi(this.hostElement).querySelector("ytd-reel-video-renderer");(u==null?0:u.cinematicContainer)&&u.cinematicContainer!==this.shortsCinematicContainer.parentElement&&u.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.I.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.I.updatePrevButtonData=function(){var u=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(u){var K;this.prevButtonData=u=Object.assign({},u,{accessibility:{label:_.QQ("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:u.isDisabled||this.index===-(((K=this.shortsProcessedPrevSequence)==null?void 0:K.length)||0),tooltip:this.isUpArrowHidden?"":_.QQ("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=u=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.I.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.I.updateNextButtonData=function(){var u=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(u){var K;this.nextButtonData=u=Object.assign({},u,{accessibility:{label:_.QQ("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:u.isDisabled||this.index===((K=this.shortsProcessedSequence)==null?void 0:K.length),tooltip:_.QQ("NEXT_VIDEO_LABEL")||""})}};
_.I.getPlayablePreviousIndex=function(){for(var u,K=this.index-1;K>=-(((u=this.prevShortsSequence)==null?void 0:u.length)||0);K--)if(!dzE().includes(K))return K;return null};
_.I.getIndexInSequence=function(u,K){return u.findIndex(function(l){var D;return((D=_.b(l.command,_.TO))==null?void 0:D.videoId)===K})};
_.I.handlePrevButtonClick=function(u){var K=this,l,D;return _.H(function(d){l=K.getPlayablePreviousIndex();if(l===null)return d.return();K.gestureType=((D=u)==null?void 0:D.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";l===0&&(K.hidePreviousButtonImmediately=!0);if(K.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){K.transitionToVideoThrottle.fire(l)}),d.return();
K.scrollToVideoThrottle.fire(l);_.TG(d)})};
_.I.getPlayableNextIndex=function(){for(var u,K=this.index+1;K<(((u=this.shortsProcessedSequence)==null?void 0:u.length)||0);K++)if(!dzE().includes(K))return K;return null};
_.I.handleNextButtonClick=function(u,K){var l=this,D,d;return _.H(function(C){D=l.getPlayableNextIndex();if(D===null)return C.return();D===1&&(l.showPreviousButtonImmediately=!0);l.gestureType=((d=u)==null?void 0:d.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";K&&(l.gestureType=K);if(l.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){l.transitionToVideoThrottle.fire(D)}),C.return();
l.scrollToVideoThrottle.fire(D);_.TG(C)})};
_.I.handleReelNavigateCommand=function(u,K,l){(u=_.b(u,$zp))&&K&&u.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(l)};
_.I.loadVideo=function(u,K){K=K===void 0?!1:K;if(u!==this.currentPlayerIndex){_.Mu().dispatch(Cq(!1));if(this.isAd()&&!K){var l;(l=this.player)==null||l.notifyShortsAdSwipeEvent()}if((K=this.JSC$22038_cinematicController)!=null){var D;(D=K.currentCinematicEffect)==null||D.pause()}if((D=this.JSC$22038_cinematicController)!=null){var d;(d=D.currentCinematicEffect)==null||d.clear()}D=u>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(D));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var C,W,M,q;d=u<0?(C=this.shortsProcessedPrevSequence)==null?void 0:(W=C[this.shortsProcessedPrevSequence.length+u])==null?void 0:W.command:(M=this.shortsProcessedSequence)==null?void 0:(q=M[u])==null?void 0:q.command;this.index=u;this.gestureType||(this.gestureType=D?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
d&&this.isVideoContentCommand(d)&&(this.ytComponentBehavior.resolveCommand(d,{form:{createScreenConfig:{clickedVisualElement:D?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(d&&this.isNonVideoContentCommand(d)){this.currentEndpoint=d;this.data=void 0;C=_.iT();W=_.b(d,_.uF);var v,G;(W=(v=_.b(W==null?void 0:W.renderer,_.rWa))==null?void 0:(G=v.screenLoggingData)==null?void 0:G.screenVeType)&&_.ev(C,W);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(v=this.getActiveReelVideo(u))&&v.appendChild(this.overlayContainer)}var t,x;if(((t=this.reelWatchSequenceResponse)==null?0:t.continuationEndpoint)&&((x=this.reelWatchSequenceResponse)==null?0:x.entries)&&u===this.reelWatchSequenceResponse.entries.length-1){var O,a;t={contentPlaybackContext:_.VR({},(a=_.b((O=this.currentEndpoint)==null?void 0:O.commandMetadata,_.nN))==null?void 0:a.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:t})}var f,B,p;((f=this.reelWatchSequenceResponse)==null?0:f.prevContinuationEndpoint)&&u===-(((B=this.reelWatchSequenceResponse)==null?void 0:(p=B.prevEntries)==null?void 0:p.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.I.setMiniplayerPreview=function(u){u=(u===void 0?0:u)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var K,l,D=_.GB().resolve(_.uD),d={shortsData:void 0,shortsPreviewThumbnail:u?(K=this.shortsProcessedSequence)==null?void 0:(l=K[u])==null?void 0:l.thumbnail:void 0};_.AG(D,d)};
_.I.updateTitle=function(u){var K,l;u=(u==null?0:u.adSlots)?"":(l=u==null?void 0:(K=u.videoDetails)==null?void 0:K.title)!=null?l:"";_.xs(this.hostElement,"yt-update-title",u)};
_.I.registerPanel=function(u){var K=_.GB().resolve(_.gP);if(K){u=_.y(u.engagementPanels||[]);for(var l=u.next();!l.done;l=u.next()){l=l.value;var D=this.getPanelContentIdentifier(l.engagementPanelSectionListRenderer),d=void 0,C=void 0;(C=(d=K).registerPanelContent)==null||C.call(d,D,l)}}};
_.I.getPanelIdentifier=function(u){var K;return(u==null?void 0:(K=u.identifier)==null?void 0:K.tag)||(u==null?void 0:u.panelIdentifier)||(u==null?void 0:u.targetId)};
_.I.getPanelContentIdentifier=function(u){var K;return(u==null?void 0:u.targetId)||(u==null?void 0:u.panelIdentifier)||(u==null?void 0:(K=u.identifier)==null?void 0:K.tag)};
_.I.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;_.Mu().dispatch(Cq(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.Mu().dispatch(Cg_(!1));var u=_.GB().resolve(_.iX);u.dismissedIndices=[];u.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.GB().resolve(_.uD).close(!0)};
_.I.processAppendReelWatchSequenceContinuationEntriesAction=function(u){var K=this,l;(l=this.intersectionObserver)==null||l.disconnect();u=u.appendReelWatchSequenceContinuationEntriesAction;if(u==null?0:u.entries){var D;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Am(((D=this.reelWatchSequenceResponse)==null?void 0:D.entries)||[]),_.Am(u.entries)),continuationEndpoint:u.continuationEndpoint})}else if(u==null?0:u.prevEntries){var d;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Am(((d=this.reelWatchSequenceResponse)==null?void 0:d.prevEntries)||[]),_.Am(u.prevEntries)),prevContinuationEndpoint:u.prevContinuationEndpoint});_.YL.addLowPriorityJob(function(){K.movePlayerToVideo(K.index);var C;(C=K.getActiveReelVideo(K.index))==null||C.scrollIntoView({block:"nearest",inline:K.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.YL.addLowPriorityJob(function(){K.observeShorts()},100)};
_.I.processWatchSequence=function(u){var K=this;return u.map(function(l){l=l.command;if(K.isVideoContentCommand(l)){var D=_.b(l,_.TO);return{reelPlayerOverlayRenderer:_.b(D==null?void 0:D.overlay,_.vgB),thumbnail:D.thumbnail,command:l}}return K.isNonVideoContentCommand(l)?(D=_.b(l,_.uF),{reelNonVideoContentRenderer:_.b(D==null?void 0:D.renderer,_.rWa),command:l}):{command:l}})};
_.I.calculateIntersectionObserverThreshold=function(){var u=_.bi(this.hostElement).querySelector("ytd-reel-video-renderer"),K=1;(u==null?0:u.offsetHeight)&&(u==null?0:u.offsetWidth)&&(K=Math.min(u.offsetHeight,this.shortsContainer.offsetHeight)/u.offsetHeight*(Math.min(u.offsetWidth,this.shortsContainer.offsetWidth)/u.offsetWidth));return Math.round(K*.6*10)/10};
_.I.isVideoContentCommand=function(u){_.GB().resolve(_.iX);return!!_.b(u,_.TO)};
_.I.isNonVideoContentCommand=function(u){_.GB().resolve(_.iX);return!!_.b(u,_.uF)};
_.I.initCinematicController=function(){var u=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22038_cinematicController=new _.dQ(this.shortsCinematicContainer,this.player);var K,l=_.b((K=this.data)==null?void 0:K.background,_.b_);_.V7_(this.JSC$22038_cinematicController,l);_.FkV(this.JSC$22038_cinematicController,NKG(l));_.wxE(this.JSC$22038_cinematicController);_.YL.addLowPriorityJob(function(){u.moveCinematicsToVideo()})}};
_.I.handleMiniplayerNavigateShorts=function(u){u==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():u==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.I.handleSignalActionToggleShortsPictureInPicture=function(){if(_.GB().resolve(_.uD).pictureInPictureSupported()){var u=_.GB().resolve(_.iX);if(_.S("web_shorts_pip")){var K=_.GB().resolve(_.uD);u.isShortsPipActive()?K.deactivate():K.isMiniplayerActive()||(_.B3().shortsPipActivation=!0,_.$06(K))}}else(u=this.player)==null||u.togglePictureInPicture()};
_.MN.Object.defineProperties(nq.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.reelWatchSequenceResponse)!=null&&u.prevEntries)return this.processWatchSequence([].concat(_.Am(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var u=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!u)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var K=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.Am(this.prevShortsSequence.slice(0,K)),[u],_.Am(this.prevShortsSequence.slice(K+
1)))}K=this.index+this.shortsProcessedPrevSequence.length;u.thumbnail=this.shortsProcessedPrevSequence[K].thumbnail;return[].concat(_.Am(this.shortsProcessedPrevSequence.slice(0,K)),[u],_.Am(this.shortsProcessedPrevSequence.slice(K+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.reelWatchSequenceResponse)!=null&&u.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var u=this.getCurrentShort();if(!u||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[u];if(u==null||!u.reelNonVideoContentRenderer){var K=this.getIndexInSequence(this.shortsSequence,_.b(this.currentEndpoint,_.TO).videoId);if(this.index===0&&K!==-1)return this.currentPlayerIndex=this.index=K,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.Am(this.shortsSequence.slice(0,this.index)),[u],_.Am(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){u.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var l,D,d,C;K=((D=_.b((l=this.shortsProcessedSequence[0])==null?void 0:l.command,_.TO))==null?void 0:D.videoId)===((C=_.b((d=this.shortsSequence[0])==null?void 0:d.command,_.TO))==null?void 0:C.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.Am(this.shortsProcessedSequence.slice(0,
this.index)),[u],_.Am(this.shortsSequence.slice(K)))}return[u].concat(_.Am(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var u=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;u&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(u)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 u,K;return this.index===((u=this.reelWatchSequenceResponse)==null?void 0:(K=u.entries)==null?void 0:K.length)}var l;return!((l=this.reelWatchSequenceResponse)==null?0:l.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var u;(u=this.delayedActiveIndexUpdateDebouncer)==null||u.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return this.isShortPlayable()||((K=_.b((u=this.data)==null?void 0:u.watchStatus,_.zA0))==null?void 0:(l=K.style)==null?void 0:l.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var u=this,K=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),l;if((this.data||K)&&(((l=this.data)==null?0:l.engagementPanels)||this.isAd()||K)){K=!1;this.activePanel="shorts-comments-panel";var D;l=_.y(((D=this.data)==null?void 0:D.engagementPanels)||[]);for(D=l.next();!D.done;D=l.next())if(this.getPanelIdentifier(D.value.engagementPanelSectionListRenderer)===this.activePanel){K=!0;break}if(this.isPersistentPanelActive){var d=
_.GB().resolve(_.gP);_.Ve(_.YL,function(){d.showPanel(u.activePanel,void 0,void 0,void 0,null)},100)}var C;
D=[].concat(_.Am(Object.values(((C=this.data)==null?void 0:C.engagementPanels)||{})));if(_.S("enable_preview_panel_for_shorts_search_suggested_action")){var W,M,q,v,G;((v=_.b((W=this.data)==null?void 0:(M=W.overlay)==null?void 0:(q=M.reelPlayerOverlayRenderer)==null?void 0:q.metapanel,_.ngH))==null?void 0:(G=v.metadataItems)==null?void 0:G.find(function(t){var x,O;return((x=_.b(t,vZi))==null?void 0:(O=x.icon)==null?void 0:O.iconType)==="SEARCH"}))!==void 0&&D.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}C=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);W=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return C===void 0&&W===void 0||(C==null?0:C.isDisabled)||(W==null?void 0:W.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!K?(K=D==null?void 0:D.findIndex(function(t){var x,
O;return((x=t.engagementPanelSectionListRenderer)==null?void 0:(O=x.identifier)==null?void 0:O.tag)==="shorts-comments-panel"}),K===-1||K===void 0||D!=null&&D.splice(K,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.QQ("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.QQ("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:_.QQ("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.QQ("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(_.Am(Object.values(D||
{})))):D}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.shortsProcessedSequence)==null?void 0:u[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var u=this,K,l,D;if((K=this.playerData)==null?0:(l=K.playabilityStatus)==null?0:(D=l.errorScreen)==null?0:D.playerInterstitialRenderer)return _.YL.addLowPriorityJob(function(){u.movePlayerToVideo(u.index)}),this.playerData.playabilityStatus.errorScreen;
var d,C;return((d=this.data)==null?void 0:d.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((C=this.data)==null?0:C.watchStatus)&&_.b(this.data.watchStatus,_.beN)?(_.YL.addLowPriorityJob(function(){u.movePlayerToVideo(u.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.MN.Object.defineProperties(nq,{template:{configurable:!0,enumerable:!0,get:function(){if(tq_===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);tq_=u}u=tq_;return u}}});
nq.prototype.onNextButtonDataChange=nq.prototype.onNextButtonDataChange;nq.prototype.onPrevButtonDataChange=nq.prototype.onPrevButtonDataChange;nq.prototype.onPersistentPanelActiveChanged=nq.prototype.onPersistentPanelActiveChanged;nq.prototype.lazyUpdateMiniplayerData=nq.prototype.lazyUpdateMiniplayerData;nq.prototype.onShortsPipActiveChanged=nq.prototype.onShortsPipActiveChanged;nq.prototype.setActiveIndex=nq.prototype.setActiveIndex;nq.prototype.graftNvcRenderer=nq.prototype.graftNvcRenderer;
nq.prototype.graftClientVisualElements=nq.prototype.graftClientVisualElements;nq.prototype.onActiveChanged=nq.prototype.onActiveChanged;nq.prototype.onShortsDismiss=nq.prototype.onShortsDismiss;nq.prototype.onShortUndoDismiss=nq.prototype.onShortUndoDismiss;nq.prototype.playerDataChanged=nq.prototype.playerDataChanged;nq.prototype.afterPlayerStarted=nq.prototype.afterPlayerStarted;nq.prototype.unhideCurrentOverlay=nq.prototype.unhideCurrentOverlay;nq.prototype.onServiceRequestCompleted=nq.prototype.onServiceRequestCompleted;
nq.prototype.engagementPanelsChanged=nq.prototype.engagementPanelsChanged;nq.prototype.onFullscreenChange=nq.prototype.onFullscreenChange;nq.prototype.onResize=nq.prototype.onResize;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],nq.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.zo.YtPageBehavior),_.N("design:type",Object)],nq.prototype,"ytPageBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],nq.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.e(_.Ae),_.N("design:type",Object)],nq.prototype,"ironResizableBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],nq.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],nq.prototype,"ytdGuideStateAwareBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],nq.prototype,"ytdReduxBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],nq.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"playerData",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"reelWatchSequenceResponse",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"cachedReelWatchSequenceResponse",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"cachedSequenceParams",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"cachedSequenceProvider",void 0);
_.g([_.U(),_.N("design:type",Object)],nq.prototype,"currentEndpoint",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"nextButtonData",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"prevButtonData",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"isPreviousPageShorts",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"index",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"delayedActiveIndex",void 0);
_.g([_.U(),_.N("design:type",Object)],nq.prototype,"playablePreviousIndex",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"player",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"isPlayerPaused",void 0);_.g([_.U({selector:Ab_}),_.N("design:type",Object)],nq.prototype,"isPlayerStarted",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"intersectionObserver",void 0);_.g([_.U(),_.N("design:type",Number)],nq.prototype,"cinematicsInitializeJobId",void 0);
_.g([_.U(),_.N("design:type",Number)],nq.prototype,"updateMiniplayerDataJobId",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"fitToVisibleBounds",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"pageSubtype",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],nq.prototype,"enablePreviousContinuation",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nq.prototype,"shortsPipEnabled",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nq.prototype,"isDark",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nq.prototype,"shortsViewTransitions",void 0);_.g([_.U({selector:_.R5,reflectToAttribute:!0}),_.N("design:type",Object)],nq.prototype,"isFullscreen",void 0);_.g([_.U({selector:_.UL,reflectToAttribute:!0}),_.N("design:type",Object)],nq.prototype,"isShortsPipActive",void 0);
_.g([_.BF("#shorts-inner-container"),_.N("design:type",HTMLElement)],nq.prototype,"shortsInnerContainer",void 0);_.g([_.BF("#back-nav-button ytd-button-renderer"),_.N("design:type",_.vs)],nq.prototype,"backNavButton",void 0);_.g([_.BF("#shorts-container"),_.N("design:type",HTMLElement)],nq.prototype,"shortsContainer",void 0);_.g([_.GD("error-screen"),_.N("design:type",HTMLElement)],nq.prototype,"errorScreenContainer",void 0);
_.g([_.GD("player"),_.N("design:type",Object)],nq.prototype,"playerElement",void 0);_.g([_.GD("shorts-cinematic-container"),_.N("design:type",HTMLElement)],nq.prototype,"shortsCinematicContainer",void 0);_.g([_.GD("initial-player-container"),_.N("design:type",HTMLElement)],nq.prototype,"initialPlayerContainer",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"buttonOverride",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nq.prototype,"anchoredPanelActive",void 0);
_.g([_.U(),_.N("design:type",String)],nq.prototype,"activePanel",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"isActive",void 0);_.g([_.U({selector:Yk_,reflectToAttribute:!0}),_.N("design:type",Object)],nq.prototype,"smallScreenPersistentPanel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nq.prototype,"isPersistentPanelActive",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"smallScreenSqueezeBack",void 0);
_.g([_.U(),_.N("design:type",Object)],nq.prototype,"enableScrollIntoViewCenter",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nq.prototype,"formatFirst",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nq.prototype,"enableFlexibleOverlay",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nq.prototype,"useAspectRatio",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"panelContainer",void 0);
_.g([_.U(),_.N("design:type",Object)],nq.prototype,"overlayContainer",void 0);_.g([_.U(),_.N("design:type",Object)],nq.prototype,"isShortsInitialized",void 0);_.g([_.R("reelWatchSequenceResponse"),_.N("design:type",Object),_.N("design:paramtypes",[])],nq.prototype,"prevShortsSequence",null);_.g([_.R("data","prevShortsSequence"),_.N("design:type",Object),_.N("design:paramtypes",[])],nq.prototype,"shortsProcessedPrevSequence",null);
_.g([_.R("reelWatchSequenceResponse"),_.N("design:type",Object),_.N("design:paramtypes",[])],nq.prototype,"shortsSequence",null);_.g([_.R("data","shortsSequence"),_.N("design:type",Object),_.N("design:paramtypes",[])],nq.prototype,"shortsProcessedSequence",null);
_.g([_.U({reflectToAttribute:!0}),_.R("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],nq.prototype,"isUpArrowHidden",null);_.g([_.U({reflectToAttribute:!0}),_.R("reelWatchSequenceResponse","index","endOfNextContinuation"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],nq.prototype,"isDownArrowHidden",null);
_.g([_.U(),_.R("index"),_.N("design:type",Number),_.N("design:paramtypes",[])],nq.prototype,"activeIndex",null);_.g([_.R("isShortPlayable","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],nq.prototype,"shouldRenderOfflineContent",null);_.g([_.PF("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"onResize",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],nq.prototype,"anchoredEngagementPanels",null);
_.g([_.U(),_.N("design:type",Object)],nq.prototype,"watchWhileEngagementPanels",void 0);_.g([_.JU("isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"onFullscreenChange",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"engagementPanelsChanged",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],nq.prototype,"onServiceRequestCompleted",null);_.g([_.R("data","shortsSequence","index"),_.N("design:type",Object),_.N("design:paramtypes",[])],nq.prototype,"activeReel",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"unhideCurrentOverlay",null);
_.g([_.JU("isPlayerStarted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"afterPlayerStarted",null);_.g([_.R("playerData","reelWatchSequenceResponse","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],nq.prototype,"errorScreen",null);_.g([_.R("errorScreen"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],nq.prototype,"hasError",null);
_.g([_.JU("playerData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],nq.prototype,"playerDataChanged",null);_.g([_.PF("yt-dismissible-item-undo-feedback"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"onShortUndoDismiss",null);_.g([_.PF("yt-disable-lockup-interaction"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],nq.prototype,"onShortsDismiss",null);
_.g([_.wn("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"onActiveChanged",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"graftClientVisualElements",null);_.g([_.JU("currentPlayerIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"graftNvcRenderer",null);
_.g([_.JU("index"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"setActiveIndex",null);_.g([_.JU("isShortsPipActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"onShortsPipActiveChanged",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"lazyUpdateMiniplayerData",null);
_.g([_.U(),_.N("design:type",Object)],nq.prototype,"onOverlayDensityChanged",void 0);_.g([_.JU("isPersistentPanelActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"onPersistentPanelActiveChanged",null);_.g([_.JU("index","data","isUpArrowHidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"onPrevButtonDataChange",null);
_.g([_.JU("index","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"onNextButtonDataChange",null);_.g([_.T({is:"ytd-shorts"})],nq);_.a8.registerService(_.LuH,nq);
_.YV();
}catch(e){_._DumpException(e)}
try{
_.Zu("JzFVk");
var koH=function(u){return _.n("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},NXI(u.data.ctaButton,{buttonViewModel:{}}),_.n(_.qC,{text:u.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var Z2o;var YrH;var Jb=function(){return _.Q.apply(this,arguments)||this};
_.c(Jb,_.Q);Jb.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Jb.prototype.computeBlueBottomLink=function(u){return u};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Jb.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Jb.prototype,"data",void 0);_.g([_.U({computed:"computeIcon_(data.bottomIcon)"}),_.N("design:type",String)],Jb.prototype,"bottomIcon",void 0);
_.g([_.U({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Jb.prototype,"enableBlueBottomLink",void 0);_.g([_.T({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Jb);
_.F(Jb,"ytd-web-answer-renderer",function(){if(YrH!==void 0)return YrH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return YrH=u},{mode:_.zW("kevlar_poly_si_batch_j035")?1:2});var AMG;var j7=function(){var u=_.Q.apply(this,arguments)||this;u.hasChipBar=!1;return u};
_.c(j7,_.Q);j7.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}}};
j7.prototype.computeHasChipBar=function(u){return!(u==null||!u.chipBar)};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],j7.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],j7.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.N("design:type",Object)],j7.prototype,"hasChipBar",void 0);_.g([_.T({is:"ytd-search-header-renderer",disableElementRegistration:!0})],j7);
_.F(j7,"ytd-search-header-renderer",function(){if(AMG!==void 0)return AMG;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return AMG=u},{mode:1});var XTp;var Bx=function(){return _.Q.apply(this,arguments)||this};
_.c(Bx,_.Q);Bx.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Bx.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-page-continuation"})],Bx);
_.F(Bx,"ytd-page-continuation",function(){if(XTp!==void 0)return XTp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return XTp=u},{mode:1});var mME;var h6G;var EjE;var pB=function(){return _.Q.apply(this,arguments)||this};
_.c(pB,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],pB.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],pB);
_.F(pB,"ytd-watch-card-one-vs-one-event",function(){if(EjE!==void 0)return EjE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return EjE=u},{mode:1});var il=function(){return _.Q.apply(this,arguments)||this};
_.c(il,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],il.prototype,"data",void 0);_.g([_.T({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],il);
_.F(il,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(h6G!==void 0)return h6G;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return h6G=u},{mode:1});var LuB;var TM=function(){return _.Q.apply(this,arguments)||this};
_.c(TM,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],TM.prototype,"data",void 0);_.g([_.T({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],TM);
_.F(TM,"ytd-banner-and-box-hero-image-renderer",function(){if(LuB!==void 0)return LuB;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return LuB=u},{mode:1});var ue2;var wK=function(){var u=_.Q.apply(this,arguments)||this;u.modern=_.S("web_modern_buttons");return u};
_.c(wK,_.Q);wK.prototype.computeIcon=function(){var u,K,l=(u=this.data)==null?void 0:(K=u.icon)==null?void 0:K.iconType;if(l)return _.fr(l)};
wK.prototype.computeButtonShape=function(){var u;return{buttonText:_.WI((u=this.data)==null?void 0:u.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.MN.Object.defineProperties(wK.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"}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],wK.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],wK.prototype,"modern",void 0);_.g([_.U({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.style"),_.N("design:type",Object),_.N("design:paramtypes",[])],wK.prototype,"buttonColor",null);
_.g([_.T({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],wK);
_.F(wK,"ytd-call-to-action-button-renderer",function(){if(ue2!==void 0)return ue2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return ue2=u},{mode:1});var KkE;var Fe=function(){return _.Q.apply(this,arguments)||this};
_.c(Fe,_.Q);Fe.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.bi(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.bt(this.data.leftThumbnail.thumbnails,216)+")")};
Fe.prototype.onLeftThumbnailChanged=Fe.prototype.onLeftThumbnailChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Fe.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Fe.prototype,"data",void 0);_.g([_.JU("data.leftThumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fe.prototype,"onLeftThumbnailChanged",null);_.g([_.T({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Fe);
_.F(Fe,"ytd-collage-hero-image-renderer",function(){if(KkE!==void 0)return KkE;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return KkE=u},{mode:1});var lmk;var V_=function(){return _.Q.apply(this,arguments)||this};
_.c(V_,_.Q);V_.prototype.computeStyle=function(u){return u};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],V_.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],V_.prototype,"componentStyle",void 0);_.g([_.T({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],V_);
_.F(V_,"ytd-single-hero-image-renderer",function(){if(lmk!==void 0)return lmk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return lmk=u},{mode:1});var Df_;var gK=function(){return _.Q.apply(this,arguments)||this};
_.c(gK,_.Q);_.I=gK.prototype;
_.I.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:_.S("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.I.computeSubtitle=function(u){if(this.data){var K;if(this.data.upcomingEventData){u=_.WI(u.subtitle);var l=Number(this.data.upcomingEventData.startTime);isNaN(l)||(K=_.o7(_.hK(u,l)))}else K=u.subtitle;return K}};
_.I.onHeroTap=function(u){u.preventDefault();var K=this.data&&this.data.navigationEndpoint;!K||!_.rE(_.WF(u),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.rE(_.WF(u),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.S("kevlar_watchcard_hero_video_renderer_killswitch")?_.xs(this.hostElement,"yt-navigate",{navigationEndpoint:K}):this.ytComponentBehavior.resolveCommand(K))};
_.I.computeHeroTabIndex=function(u){return u&&u.simpleText?-1:0};
_.I.computeHeroRole=function(u){return u&&u.simpleText?"":"link"};
_.I.computeIsReminderButtonPresent=function(u){return!(!u||!u.reminderButton)};
_.I.computeHideBottomItems=function(u){return!(this.computeIsReminderButtonPresent(u)||u.subtitle)};
_.I.dataChanged=function(){var u=this.get("data.buttons.buttonRenderer.serviceEndpoint"),K;((K=_.b(u==null?void 0:u.commandMetadata,_.Z3))==null?0:K.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(u)};
gK.prototype.dataChanged=gK.prototype.dataChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],gK.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],gK.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],gK.prototype,"data",void 0);
_.g([_.U({computed:"computeSubtitle(data)"}),_.N("design:type",String)],gK.prototype,"subtitle",void 0);_.g([_.U({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],gK.prototype,"isReminderButtonPresent",void 0);_.g([_.U({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],gK.prototype,"hideBottomItems",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gK.prototype,"dataChanged",null);_.g([_.T({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],gK);
_.F(gK,"ytd-watch-card-hero-video-renderer",function(){if(Df_!==void 0)return Df_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Df_=u},{mode:1});var dfp;var Nf=function(){return _.Q.apply(this,arguments)||this};
_.c(Nf,_.Q);_.I=Nf.prototype;_.I.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"}}}};
_.I.computeTitleBadges=function(u){return u?[u]:[]};
_.I.computeHeaderStyle=function(u){return u?u.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.I.computeAvatarAriaLabel=function(u){if(u){var K,l,D,d;return(d=(K=u.avatar)==null?void 0:(l=K.accessibility)==null?void 0:(D=l.accessibilityData)==null?void 0:D.label)!=null?d:_.WI(u==null?void 0:u.title)}};
_.I.computeAvatarHeight=function(u){return u==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.I.computeBadgeRowClass=function(u){return(u==null?0:u[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Nf.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Nf.prototype,"data",void 0);_.g([_.U({computed:"computeTitleBadges(data.titleBadge)"}),_.N("design:type",Array)],Nf.prototype,"titleBadges",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.N("design:type",String)],Nf.prototype,"headerStyle",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.N("design:type",String)],Nf.prototype,"badgeRowClass",void 0);_.g([_.T({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Nf);
_.F(Nf,"ytd-watch-card-rich-header-renderer",function(){if(dfp!==void 0)return dfp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return dfp=u},{mode:1});var ClB;var Imp;var k8=function(){return _.Q.apply(this,arguments)||this};
_.c(k8,_.Q);k8.prototype.onMetadataTap=function(u){var K=this.data&&this.data.navigationEndpoint;K&&!_.rE(_.WF(u),this.hostElement,["A".toString()])&&_.xs(this.hostElement,"yt-navigate",{endpoint:K})};
_.MN.Object.defineProperties(k8.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 u;if(this.data.upcomingEventData){var K=_.WI(this.data.subtitle),l=Number(this.data.upcomingEventData.startTime);isNaN(l)||(u=_.o7(_.hK(K,l)))}else u=this.data.subtitle;return u}}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],k8.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data.style"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],k8.prototype,"isCondensed",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],k8.prototype,"subtitle",null);
_.g([_.T({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],k8);
_.F(k8,"ytd-watch-card-compact-video-renderer",function(){if(Imp!==void 0)return Imp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Imp=u},{mode:1});var ybo;var Zm=function(){return _.Q.apply(this,arguments)||this};
_.c(Zm,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Zm.prototype,"data",void 0);_.g([_.T({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Zm);
_.F(Zm,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(ybo!==void 0)return ybo;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return ybo=u},{mode:1});var Y8=function(){return _.Q.apply(this,arguments)||this};
_.c(Y8,_.Q);Y8.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}}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Y8.prototype,"ytRendererStamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Y8.prototype,"data",void 0);_.g([_.T({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Y8);
_.F(Y8,"ytd-vertical-watch-card-list-renderer",function(){if(ClB!==void 0)return ClB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return ClB=u},{mode:1});var scV;var Ab=function(){var u=_.Q.apply(this,arguments)||this;u.ariaExpanded="false";return u};
_.c(Ab,_.Q);_.I=Ab.prototype;_.I.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.I.dataChanged=function(){var u;this.currentSeasonIndex=((u=this.data)==null?void 0:u.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.I.computeEpisodesInfo=function(u,K,l){if(u!==void 0&&K.length===u.length)return u[l]};
_.I.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.I.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.I.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.I.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.I.getUppercaseSimpleString=function(u){return this.ytRendererBehavior.getSimpleString(u).toUpperCase()};
_.I.updateCurrentSeasonIndexFromBinding=function(u){this.currentSeasonIndex=u.detail.value};
Ab.prototype.onIronOverlayClosed=Ab.prototype.onIronOverlayClosed;Ab.prototype.currentSeasonIndexChanged=Ab.prototype.currentSeasonIndexChanged;Ab.prototype.dataChanged=Ab.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ab.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ab.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",String)],Ab.prototype,"label",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],Ab.prototype,"currentSeasonIndex",void 0);_.g([_.U({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.N("design:type",Object)],Ab.prototype,"episodesInfo",void 0);_.g([_.U({value:"false"}),_.N("design:type",Object)],Ab.prototype,"ariaExpanded",void 0);_.g([_.BF("#lists"),_.N("design:type",Object)],Ab.prototype,"lists",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ab.prototype,"dataChanged",null);_.g([_.wn("currentSeasonIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ab.prototype,"currentSeasonIndexChanged",null);_.g([_.PF("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Ab.prototype,"onIronOverlayClosed",null);
_.g([_.T({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Ab);
_.F(Ab,"ytd-watch-card-section-dropdown-renderer",function(){if(scV!==void 0)return scV;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return scV=u},{mode:1});var o8G;var Xe=function(){var u=_.Q.apply(this,arguments)||this;u.isSearch=!1;return u};
_.c(Xe,_.Q);Xe.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}}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Xe.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Xe.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Xe.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Xe.prototype,"isSearch",void 0);_.g([_.T({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Xe);
_.F(Xe,"ytd-watch-card-section-sequence-renderer",function(){if(o8G!==void 0)return o8G;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
return o8G=u},{mode:1});var NXI=_.NX({buttonViewModel:_.P2});_.v4(koH);_.U4(koH,"ytd-button-banner-view-model",{propNames:["data"]});var mk=function(){var u=_.Q.apply(this,arguments)||this;u.isSearch=!1;return u};
_.c(mk,_.Q);
mk.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"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],mk.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],mk.prototype,"rounded",void 0);_.g([_.U(),_.N("design:type",Object)],mk.prototype,"isSearch",void 0);
_.g([_.T({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],mk);
_.F(mk,"ytd-universal-watch-card-renderer",function(){if(mME!==void 0)return mME;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return mME=u},{mode:1});var Wk_;_.SX(_.rf(function(u){var K=u.data;var l;u=!((l=_.GB().resolve(_.vv(_.H1)))==null||!l());l={};return _.n("overview-message-view-model",{class:_.JB("ytwOverviewMessageViewModelHost",(l.ytwOverviewMessageViewModelDarkBackground=u,l.ytwOverviewMessageViewModelLightBackground=!u,l))},_.n(_.r,{cond:function(){return K().primaryImage},
then:function(D){return _.n(_.n4,{data:D,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.n(_.r,{cond:function(){return K().primaryText},
then:function(){return _.n("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.n(_.qC,{text:function(){return K().primaryText}}))}}),_.n(_.r,{cond:function(){return K().secondaryText},
then:function(){return _.n("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.n(_.qC,{text:function(){return K().secondaryText}}))}}))},"fj"),"overview-message-view-model",{props:{data:_.M6}});_.U4(_.Gow,"ytd-overview-answer-view-model",{propNames:["data"]});var hb=function(){return _.Q.apply(this,arguments)||this};
_.c(hb,_.Q);hb.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"}}}};
hb.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],hb.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ir),_.N("design:type",Object)],hb.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],hb.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],hb.prototype,"isSearch",void 0);
_.g([_.T({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],hb);
_.F(hb,"ytd-secondary-search-container-renderer",function(){if(Wk_!==void 0)return Wk_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
return Wk_=u},{mode:1});var HBo;var Ek=function(){var u=_.Q.apply(this,arguments)||this;u.renderSecondarySearchContainer=!1;u.isSearch=!1;return u};
_.c(Ek,_.Q);_.I=Ek.prototype;_.I.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"}}}};
_.I.created=function(){var u=this;this.boundStampSecondarySearchContainerIfFits=function(){u.stampSecondarySearchContainerIfFits()};
_.h8("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.I.computeIsSearchFrictionPage=function(u){var K,l,D,d,C;u=u==null?void 0:(K=u.primaryContents)==null?void 0:(l=K.sectionListRenderer)==null?void 0:(D=l.contents)==null?void 0:(d=D[0])==null?void 0:(C=d.itemSectionRenderer)==null?void 0:C.contents;if(!u)return!1;K=_.y(u);for(l=K.next();!l.done;l=K.next())if(D=void 0,(D=l.value)==null?0:D.searchFrictionViewModel)return!0;return!1};
_.I.computeShowSecondaryColumn=function(u,K){return!!(K&&K.secondaryContents&&u)};
_.I.activeChanged=function(){var u=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Ql(this,this.debounceStampSecondarySearchContainerIfFits)),_.Cr(function(){u.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Ql(this,this.debounceStampSecondarySearchContainerIfFits))};
_.I.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.I.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.I.debounceStampSecondarySearchContainerIfFits=function(){_.It(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.I.onRetrieveLocation=function(u,K){K.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);u.stopPropagation()};
_.I.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
Ek.prototype.dataChanged=Ek.prototype.dataChanged;Ek.prototype.onRetrieveLocation=Ek.prototype.onRetrieveLocation;Ek.prototype.persistentGuideChanged=Ek.prototype.persistentGuideChanged;Ek.prototype.activeChanged=Ek.prototype.activeChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ek.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Ek.prototype,"ytdGuideStateAwareBehavior",void 0);_.g([_.e(_.Ae),_.N("design:type",Object)],Ek.prototype,"ironResizableBehavior",void 0);_.g([_.U(),_.N("design:type",Boolean)],Ek.prototype,"active",void 0);_.g([_.U(),_.N("design:type",Object)],Ek.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],Ek.prototype,"useBiggerThumbs",void 0);_.g([_.U({reflectToAttribute:!0,value:function(){return _.bZ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],Ek.prototype,"biggerThumbsStyle",void 0);_.g([_.U(),_.N("design:type",Object)],Ek.prototype,"renderSecondarySearchContainer",void 0);_.g([_.U({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.N("design:type",Boolean)],Ek.prototype,"showSecondaryColumn",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.N("design:type",Boolean)],Ek.prototype,"isSearchFrictionPage",void 0);
_.g([_.U(),_.N("design:type",Object)],Ek.prototype,"isSearch",void 0);_.g([_.JU("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ek.prototype,"activeChanged",null);_.g([_.JU("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ek.prototype,"persistentGuideChanged",null);
_.g([_.PF("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Ek.prototype,"onRetrieveLocation",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ek.prototype,"dataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],Ek);
_.F(Ek,"ytd-two-column-search-results-renderer",function(){if(HBo!==void 0)return HBo;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return HBo=u},{mode:1});var LB=function(){var u=_.Q.apply(this,arguments)||this;u.hasSearchHeader=!1;u.hasSecondaryContent=!1;u.hasBiggerThumbs=_.S("enable_desktop_search_bigger_thumbs");u.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return u};
_.c(LB,_.Q);_.I=LB.prototype;_.I.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:_.lJ(["aa","eocs"])}}};
_.I.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.I.loadPage_=function(u){this.initCsi();u&&(this.data=u,_.h8("REFINEMENTS_TUPLE",["FromSearchResponse",u.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Hu(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.I.initCsi=function(){_.ag("results",["ol","cpt"])};
_.I.updateTitle=function(){var u=_.ur(window.location.href,"q");u||(u=_.ur(window.location.href,"search_query"));_.xs(this.hostElement,"yt-update-title",u||"")};
_.I.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.I.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.S("web_srp_data_changed_terminate_imp_killswitch")||_.Sy(this.hostElement,"yt-terminate-video-preview-action")};
_.I.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.I.computeHasSearchHeader=function(u){var K;u=u==null?void 0:(K=u.header)==null?void 0:K.searchHeaderRenderer;return!!u&&(!!u.searchFilterButton||!!u.chipBar)};
_.I.computeHasSecondaryContent=function(u){var K,l;return!!(u==null?0:(K=u.contents)==null?0:(l=K.twoColumnSearchResultsRenderer)==null?0:l.secondaryContents)};
_.MN.Object.defineProperties(LB,{template:{configurable:!0,enumerable:!0,get:function(){if(Z2o===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);Z2o=u}u=Z2o;return u}}});
LB.prototype.onReloadContinuationFinish=LB.prototype.onReloadContinuationFinish;LB.prototype.dataChanged=LB.prototype.dataChanged;_.g([_.e(_.zo.YtPageBehavior),_.N("design:type",Object)],LB.prototype,"ytPageBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],LB.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],LB.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ir),_.N("design:type",Object)],LB.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],LB.prototype,"data",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],LB.prototype,"monitorScroll",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],LB.prototype,"hasSearchHeader",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],LB.prototype,"hasSecondaryContent",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],LB.prototype,"hasBiggerThumbs",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LB.prototype,"dataChanged",null);
_.g([_.PF("yt-reload-continuation-finish"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LB.prototype,"onReloadContinuationFinish",null);_.g([_.T({is:"ytd-search"})],LB);_.a8.registerService(_.Ejo,LB);
_.YV();
}catch(e){_._DumpException(e)}
try{
_.Zu("h8y2qb");
var Xf_=function(u){if(u=_.mVb(u)){var K;(K=u.sources)!=null&&K[0]?(K=_.EmL(u),K=K<1?"VERTICAL":K>1?"HORIZONTAL":"SQUARE"):K=void 0;return K}},e6=function(u){_.Fx.call(this,"upload");
this.opts.query=u},hLE=function(u,K){return _.n(mHB,{data:u,
onYtNavigate:K})},ESV=function(u,K){return _.eZ(u.entities,"pageHeaderEntity",K)},u$H=function(u,K){return u.map(function(l){if(l.tabRenderer)return LOk(l.tabRenderer);
if(l.expandableTabRenderer&&K){var D=l.expandableTabRenderer;return{customTabRenderable:function(){return K(D)}}}return{}})},LOk=function(u){return{identifier:u.tabIdentifier,
aTagConfig:_.dY({innertubeCommand:u.endpoint,forceNewState:!0}),title:u.title,selected:u.selected,disabled:u.unselectable,icon:u.icon}},K6I=function(u){return _.SZ({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:u})},lKH=function(u){if(!_.be(document,"gtm-noscript")){var K=document.createElement("noscript");
K.id="gtm-noscript";K.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+u+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(K)}};_.Sa(e6,_.Fx);e6.prototype.JSC$10002_setLabel=function(u){e6.superClass_.JSC$10002_setLabel.call(this,u);return this};
e6.prototype.addUploadMetadata=function(u,K){e6.superClass_.addUploadMetadata.call(this,u,K);return this};var DQi=function(u){if(u!=="youtubebanner"&&u!=="youtube-channel-banner")throw Error("eo");e6.call(this,u)};
_.c(DQi,e6);DQi.prototype.JSC$10002_setLabel=function(u){e6.prototype.JSC$10002_setLabel.call(this,u);return this};
DQi.prototype.addUploadMetadata=function(u,K){e6.prototype.addUploadMetadata.call(this,u,K);return this};var dQE=[_.Ae,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(u){_.wM(u).path[0]!==this&&(this.resetLayout(),u.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var u=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.ao(this._layoutDebouncer,_.Zp,u);_.zV(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var u=this;requestAnimationFrame(function(){u.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(u){this.resizerShouldNotify(u)&&this._notifyDescendant(u)},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 CUp=[_.SKC,{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(u,K){var l=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[u];if(!l)throw new ReferenceError(this._getUndefinedMsg(u));u=this._boundEffect(l,K||{});u.setUp();return u},
_effectsChanged:function(u,K,l){this._tearDownEffects();u&&l&&(u.split(" ").forEach(function(D){var d;D!==""&&((d=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[D])?this._effects.push(this._boundEffect(d,K[D])):console.warn(this._getUndefinedMsg(D)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(u,K){K=K||{};var l=parseFloat(K.startsAt||0),D=parseFloat(K.endsAt||1),d=D-l,C=function(){};
D=l===0&&D===1?u.run:function(W,M){u.run.call(this,Math.max(0,(W-l)/d),M)};
return{setUp:u.setUp?u.setUp.bind(this,K):C,run:u.run?D.bind(this):C,tearDown:u.tearDown?u.tearDown.bind(this):C}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(u){u.setUp()!==!1&&this._effectsRunFn.push(u.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(u){u.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(u,K){this._effectsRunFn&&this._effectsRunFn.forEach(function(l){l(u,K)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var u=this._clampedScrollTop;this._updateScrollState(u);this.threshold>0&&this._setThresholdTriggered(u>=this.threshold)}},
_getDOMRef:function(u){console.warn("_getDOMRef","`"+u+"` is undefined")},
_getUndefinedMsg:function(u){return"Scroll effect `"+u+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+u+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("fo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(u){var K={};u=parseFloat(u.scalar);K.background=this._getDOMRef("background");K.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");K.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");K.deltaBg=K.backgroundFrontLayer.offsetHeight-K.background.offsetHeight;K.deltaBg===0?(isNaN(u)&&(u=.8),K.deltaBg=(this._dHeight||0)*u):(isNaN(u)&&(u=
1),K.deltaBg*=u);this._fxParallaxBackground=K},
run:function(u){var K=this._fxParallaxBackground;this.transform("translate3d(0px, "+K.deltaBg*Math.min(1,u)+"px, 0px)",K.backgroundFrontLayer);K.backgroundRearLayer&&this.transform("translate3d(0px, "+K.deltaBg*Math.min(1,u)+"px, 0px)",K.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var IKp;var yD_;var ss2=function(){};
_.I=ss2.prototype;_.I._scrollTargetChanged=function(){};
_.I.scroll=function(){};
_.I._isValidScrollTarget=function(){};
_.I._toggleScrollListener=function(){};
_.I.toggleScrollListener=function(){};
_.I.createEffect=function(){};
_.I._effectsChanged=function(){};
_.I._layoutIfDirty=function(){};
_.I._boundEffect=function(){};
_.I._setUpEffect=function(){};
_.I._tearDownEffects=function(){};
_.I._runEffects=function(){};
_.I._scrollHandler=function(){};
_.I._scrollStateChanged=function(){};
_.I._getUndefinedMsg=function(){};
_.I.notifyResize=function(){};
_.I.assignParentResizable=function(){};
_.I.stopResizeNotificationsFor=function(){};
_.I._subscribeIronResize=function(){};
_.I._unsubscribeIronResize=function(){};
_.I.resizerShouldNotify=function(){};
_.I._onDescendantIronResize=function(){};
_.I._fireResize=function(){};
_.I._onIronRequestResizeNotifications=function(){};
_.I._parentResizableChanged=function(){};
_.I._notifyDescendant=function(){};
_.I._requestResizeNotifications=function(){};
_.I._findParent=function(){};
_.I._appResetLayoutHandler=function(){};
_.I.resetLayout=function(){};
_.I._notifyLayoutChanged=function(){};
_.I._notifyDescendantResize=function(){};
_.I._setThresholdTriggered=function(){};
ss2=_.YH({_template:function(){if(yD_!==void 0)return yD_;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;IKp===void 0&&(IKp=document.createElement("template"));var D=IKp;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return yD_=u},
is:"tp-yt-app-header",behaviors:[CUp,dQE],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 u=_.wM(this.$.slot).getDistributedNodes(),K=0,l;l=u[K];K++)if(l.nodeType===Node.ELEMENT_NODE)if(l.hasAttribute("sticky")){this._stickyElRef=l;break}else this._stickyElRef||(this._stickyElRef=l);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var u=this._clampedScrollTop,K=this._height===0||u===0,l=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;K||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();K?this._updateScrollState(u,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=l}},
_updateScrollState:function(u,K){if(this._height!==0){var l=0,D=this._top;var d=this._maxHeaderTop;var C=u-this._lastScrollTop,W=Math.abs(C),M=u>this._lastScrollTop,q=performance.now();this._mayMove()&&(l=this._clamp(this.reveals?D+C:u,0,d));u>=this._dHeight&&(l=this.condenses&&!this.fixed?Math.max(this._dHeight,l):l,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&W<100){if(q-this._initTimestamp>300||this._wasScrollingDown!==M)this._initScrollTop=u,this._initTimestamp=q;u>=d&&
(Math.abs(this._initScrollTop-u)>30||W>10?(M&&u>=d?l=d:!M&&u>=this._dHeight&&(l=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((l-D)/(C/(q-this._lastTimestamp)),0,300)+"ms"):l=this._top)}d=this._dHeight===0?u>0?1:0:l/this._dHeight;K||(this._lastScrollTop=u,this._top=l,this._wasScrollingDown=M,this._lastTimestamp=q);if(K||d!==this._progress||D!==l||u===0)this._progress=d,this._runEffects(d,l),this._transformHeader(l)}},
_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(u){this.translate3d(0,-u+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&u>=this._stickyElTop?Math.min(u,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(u,K,l){return Math.min(l,Math.max(K,u))},
_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),_.wM(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(u){switch(u){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.wM(this).querySelector("[main-title]");case "condensedTitle":return _.wM(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var oh6;var W6_;_.YH({_template:function(){if(W6_!==void 0)return W6_;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;oh6===void 0&&(oh6=document.createElement("template"));var D=oh6;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return W6_=u},
is:"tp-yt-app-header-layout",behaviors:[dQE],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.wM(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var u=this.header;if(this.isAttached&&u){this.$.wrapper.classList.remove("initializing");u.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)u.style.left=
"",u.style.right="";else{var K=this.getBoundingClientRect(),l=document.documentElement.clientWidth-K.right;u.style.left=K.left+"px";u.style.right=l+"px"}K=this.$.contentContainer.style;l=u.offsetHeight;u.fixed&&!u.condenses&&this.hasScrollingRegion?(K.marginTop=l+"px",K.paddingTop=""):(K.paddingTop=l+"px",K.marginTop="")}}});var HEV=new _.r3("replaceFeedContentAction");var MnI=new _.r3("alertCommand");var qJp=new _.r3("manageLabsStateCommand");var $QG=new _.r3("inlineFormRenderer");var Rg=new _.r3("playlistSidebarPrimaryInfoRenderer");var nhk=new _.r3("productDetailsThumbnailRenderer"),rDE=new _.r3("productDetailsVariantRenderer"),vh6=new _.r3("productDetailsVariantOptionRenderer"),G5I=new _.r3("productDetailsOffersContainerRenderer"),tnH=new _.r3("productDetailsOfferRenderer");var xQo=new _.r3("shoppingFlaggingRenderer");var SJE=new _.r3("playlistBylineRenderer");var bEB=new _.r3("insertChannelTabCommand");var Ur=function(){return _.ii.apply(this,arguments)||this};
_.c(Ur,_.ii);_.I=Ur.prototype;_.I.activeChanged=function(){if(this.active){var u=_.bi(this.hostElement).querySelector("#header");u&&_.xs(u,"iron-resize");window.addEventListener("scroll",_.Ql(this,this.onScroll))}else window.removeEventListener("scroll",_.Ql(this,this.onScroll)),_.xs(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.I.guideVisibleChanged=function(){var u=_.bi(this.hostElement).querySelector("#header");u&&_.xs(u,"iron-resize")};
_.I.onScroll=function(){var u=this;_.It(this,"onScroll",function(){var K=_.bi(u.hostElement).querySelector("#header");K&&K.polymerController&&(K=K.polymerController.getScrollState().progress===1?"standard":"seamed",_.xs(u.hostElement,"yt-request-panel-mode-change",{mode:K}))},10)};
_.I.tabsChanged=function(){if(this.tabs){for(var u=null,K=0,l=this.tabs.length;K<l;++K){var D=this.tabs[K].tabRenderer;if(D&&D.selected){u=K;break}}this.selected=u}};
_.I.onTabsActivate=function(u){_.xs(this.hostElement,"yt-navigate",{endpoint:this.tabs[u.detail.selected].tabRenderer.endpoint})};
Ur.prototype.tabsChanged=Ur.prototype.tabsChanged;Ur.prototype.guideVisibleChanged=Ur.prototype.guideVisibleChanged;Ur.prototype.activeChanged=Ur.prototype.activeChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ur.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Ur.prototype,"ytdGuideStateAwareBehavior",void 0);_.g([_.U(),_.N("design:type",Array)],Ur.prototype,"tabs",void 0);
_.g([_.U(),_.N("design:type",Object)],Ur.prototype,"selected",void 0);_.g([_.U(),_.N("design:type",Boolean)],Ur.prototype,"active",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ur.prototype,"disableHeaderFluidWidth",void 0);_.g([_.JU("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ur.prototype,"activeChanged",null);
_.g([_.JU("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ur.prototype,"guideVisibleChanged",null);_.g([_.JU("tabs"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ur.prototype,"tabsChanged",null);_.g([_.TQ()],Ur);var OEH=[_.Y.YtRendererBehavior,_.CD.YtdGuideStateAwareBehavior,Ur.prototype];var cDo=2/3,aKk=_.Yo(130749),zlH=function(u,K){var l=this;this.element=u;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){l.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:cDo,moveAction:function(D){l.moveAction(D)},
triggerAction:function(){l.element.isReloading=!0;_.sK(_.iT(),{visualElement:aKk});_.Pb.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:l.element}})}}}};
_.U7(_.iT(),aKk,this.layer);this.gesture=new _.WT(u,K,this.refreshConfig,"pan-down");this.attach()};
_.I=zlH.prototype;_.I.attach=function(){this.gesture.attach()};
_.I.detach=function(){this.gesture.detach()};
_.I.reset=function(){this.element.close()};
_.I.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.I.moveAction=function(u){this.element.rotation=u*360};var elV=_.Yo(130750),f2=function(u,K,l,D,d){var C=this;this.element=u;this.parent=l;this.channelHeader=D;this.ytdReduxDispatch=d;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){C.tabsStartAtInPx=C.channelHeader.clientHeight-48;var W;(W=C.selectedTab)!=null&&W.title&&(W=_.GB().resolve(_.vv(_.GT)))&&(W=W.getCurrentPage(),C.lastVisitedTabScrollPosition=W.getScrollTop(),C.previousTab&&
((C.lastVisitedTabScrollPosition===void 0?0:C.lastVisitedTabScrollPosition<C.channelHeader.clientHeight-48)?C.scrollPositionForTabs.has(C.selectedTab.title)&&C.scrollPositionForTabs.delete(C.selectedTab.title):C.scrollPositionForTabs.set(C.selectedTab.title,W.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:RlE(),triggerAction:function(){C.navigate(C.previousTab)},
moveAction:function(W,M){C.moveAction(W,M)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-RlE(),triggerAction:function(){C.navigate(C.nextTab)},
moveAction:function(W,M){C.moveAction(W,M)}}}};
_.U7(_.iT(),elV,this.layer);this.gesture=new _.WT(u,K,this.tabConfig);this.attach()};
f2.prototype.attach=function(){this.gesture.attach()};
f2.prototype.detach=function(){this.gesture.detach()};
f2.prototype.tabsChanged=function(u){if(u){var K=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;u=_.y(u);for(var l=u.next();!l.done;l=u.next()){l=l.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=l);var D=void 0;if((D=l)==null?0:D.selected)this.previousTab=K,this.selectedTab=l;K=l}K=this.gesture;u=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.config=u;this.scrollPositionNeedsUpdate=!0}};
f2.prototype.moveAction=function(u,K){if(!this.tabsElement){var l;this.tabsElement=(l=this.parent.header)==null?void 0:l.tabsElement;K==="right"&&this.previousTab?_.EBC(_.ww.instance,this.previousTab.endpoint,{},""):K==="left"&&this.nextTab&&_.EBC(_.ww.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}l=this.tabsElement._pos;K==="right"&&(u*=-1);this.tabsElement._positionBar(l.width,l.left*1+l.width*u)};
var RlE=function(){var u,K;return(K=(u=_.GB().resolve(_.GT).getCurrentPage())==null?void 0:u.clientWidth)!=null?K:0};
f2.prototype.navigate=function(u){this.element.data=void 0;if(u=u==null?void 0:u.endpoint)this.ytdReduxDispatch(K6I(!0)),_.sK(_.iT(),{visualElement:elV}),_.Pb.instance.resolveCommand({navigateAction:{endpoint:u}},{form:{element:this.element}})};var UQp;var fKp;var Qz=function(){return _.Q.apply(this,arguments)||this};
_.c(Qz,_.Q);Qz.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Qz.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Qz.prototype,"data",void 0);_.g([_.T({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Qz);
_.F(Qz,"ytd-labs-edit-renderer",function(){if(fKp!==void 0)return fKp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return fKp=u},{mode:1});var Qs_;var PT=function(){var u=_.Q.apply(this,arguments)||this;u.dark=!1;u.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";u.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return u};
_.c(PT,_.Q);PT.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
PT.prototype.ready=function(){var u=document.documentElement.hasAttribute("dark");this.setBackgroundImage(u);this.dark=u};
PT.prototype.onDarkModeToggledAction=function(u){this.setBackgroundImage(u);this.dark=u};
PT.prototype.setBackgroundImage=function(u){_.e8(this.hostElement,{"--yt-labs-header-background":"url("+(u?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],PT.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],PT.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],PT.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],PT.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],PT.prototype,"dark",void 0);
_.g([_.T({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],PT);
_.F(PT,"ytd-labs-header-renderer",function(){if(Qs_!==void 0)return Qs_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Qs_=u},{mode:1});var PUE;var JM=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return u};
_.c(JM,_.Q);JM.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"}}}}}};
JM.prototype.onYtToggleButton=function(u){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",u.detail.toggled)};
JM.prototype.onManageLabsState=function(u){if(u=_.b(u,qJp))u.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?u.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&u.labsItemId===this.data.labsItemId&&(u.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.Sy(this.hostElement,"yt-check-labs-opted-in-state").some(function(K){return K})&&this.data.confirmationDialogCommand?_.ay(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.GB().resolve(_.t9).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&u.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.GB().resolve(_.t9).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
JM.prototype.onCheckLabsOptedInState=function(){var u=this.get("data.primaryButton.toggleButtonRenderer");return u?u.isToggled:!1};
_.MN.Object.defineProperties(JM.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
JM.prototype.onYtToggleButton=JM.prototype.onYtToggleButton;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],JM.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],JM.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],JM.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],JM.prototype,"itemStyle",null);_.g([_.PF("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],JM.prototype,"onYtToggleButton",null);_.g([_.T({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],JM);
_.F(JM,"ytd-labs-item-renderer",function(){if(PUE!==void 0)return PUE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return PUE=u},{mode:1});var JDk;var jsE;var j6=function(){return _.Q.apply(this,arguments)||this};
_.c(j6,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],j6.prototype,"data",void 0);_.g([_.T({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],j6);
_.F(j6,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(jsE!==void 0)return jsE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return jsE=u},{mode:1});var B$G;var BT=function(){return _.Q.apply(this,arguments)||this};
_.c(BT,_.Q);BT.prototype.observeSuperchatChip=function(){if(this.data){var u={"--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)};_.e8(this.hostElement,u)}};
BT.prototype.colorFromDecimal=function(u){return _.Kg(Number(u||0))};
BT.prototype.observeSuperchatChip=BT.prototype.observeSuperchatChip;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],BT.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],BT.prototype,"data",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BT.prototype,"observeSuperchatChip",null);_.g([_.T({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],BT);
_.F(BT,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(B$G!==void 0)return B$G;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return B$G=u},{mode:1});var p2=function(){return _.Q.apply(this,arguments)||this};
_.c(p2,_.Q);p2.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"}}}};
_.MN.Object.defineProperties(p2.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],p2.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.KD),_.N("design:type",Object)],p2.prototype,"ytdDismissibleItemBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],p2.prototype,"data",void 0);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],p2.prototype,"hideMessageBlock",null);
_.g([_.T({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],p2);
_.F(p2,"ytd-live-chat-history-entry-renderer",function(){if(JDk!==void 0)return JDk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return JDk=u},{mode:1});var pnG;var i_=function(){return _.Q.apply(this,arguments)||this};
_.c(i_,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],i_.prototype,"data",void 0);_.g([_.T({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],i_);
_.F(i_,"ytd-channel-options-renderer",function(){if(pnG!==void 0)return pnG;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return pnG=u},{mode:1});var iE2;var To=function(){return _.Q.apply(this,arguments)||this};
_.c(To,_.Q);To.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],To.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],To.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],To.prototype,"data",void 0);_.g([_.T({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],To);
_.F(To,"ytd-settings-email-item-renderer",function(){if(iE2!==void 0)return iE2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return iE2=u},{mode:1});var T$6;var wX=function(){return _.Q.apply(this,arguments)||this};
_.c(wX,_.Q);wX.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"}}}};
wX.prototype.getExpansionIcon=function(u){return u?"COLLAPSE":"EXPAND"};
wX.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.MN.Object.defineProperties(wX.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],wX.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],wX.prototype,"data",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],wX.prototype,"expanded",void 0);_.g([_.R("expanded"),_.N("design:type",String),_.N("design:paramtypes",[])],wX.prototype,"emailListExpanded",null);
_.g([_.BF("#options"),_.N("design:type",Object)],wX.prototype,"options",void 0);_.g([_.T({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],wX);
_.F(wX,"ytd-settings-email-list-renderer",function(){if(T$6!==void 0)return T$6;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return T$6=u},{mode:1});var wnp;var Fk=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return u};
_.c(Fk,_.Q);Fk.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"}}}};
Fk.prototype.handleSignalActionSubmitForm=function(){var u,K=(u=this.formRenderer)==null?void 0:u.getForm();K&&this.data.serviceEndpoint&&_.GB().resolve(_.t9).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},K,{element:this.hostElement})})};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Fk.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Fk.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Fk.prototype,"data",void 0);_.g([_.BF("yt-form-renderer"),_.N("design:type",Object)],Fk.prototype,"formRenderer",void 0);
_.g([_.T({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Fk);
_.F(Fk,"ytd-settings-gaia-link-renderer",function(){if(wnp!==void 0)return wnp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return wnp=u},{mode:1});var F6I;var Vz=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return u};
_.c(Vz,_.Q);Vz.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.XO6()&&this.set("data.hidden",!1)};
Vz.prototype.onSwitchReady=function(){var u=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.S("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.AqB().then(function(K){K&&(Notification.permission==="default"?u.set("data.hidden",!1):Notification.permission==="granted"&&_.bJ("NotificationsDisabled").then(function(l){l||_.Sy(u.hostElement,"yt-toggle-settings-switch",[u.data.id,!l]);u.set("data.hidden",!1)}).catch(function(){}))})})};
Vz.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}}}}};
Vz.prototype.handleUpdateOptionsCommand=function(u){(u=_.b(u,_.Wma))&&this.data&&this.data.id===u.id&&(this.set("data.hidden",u.hidden),u.text!==void 0&&this.set("data.text",u.text),u.clearOptions&&this.set("data.options",[]))};
Vz.prototype.onSwitchReady=Vz.prototype.onSwitchReady;Vz.prototype.dataChanged=Vz.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Vz.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Vz.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Vz.prototype,"data",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vz.prototype,"dataChanged",null);_.g([_.PF("yt-settings-switch-ready"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vz.prototype,"onSwitchReady",null);_.g([_.T({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Vz);
_.F(Vz,"ytd-settings-options-renderer",function(){if(F6I!==void 0)return F6I;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return F6I=u},{mode:1});var Vnp;var gX=function(){return _.Q.apply(this,arguments)||this};
_.c(gX,_.Q);gX.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
gX.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
gX.prototype.onYtExpanderMoreTapped=gX.prototype.onYtExpanderMoreTapped;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],gX.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],gX.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],gX.prototype,"data",void 0);
_.g([_.PF("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gX.prototype,"onYtExpanderMoreTapped",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],gX);
_.F(gX,"ytd-product-details-description-renderer",function(){if(Vnp!==void 0)return Vnp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Vnp=u},{mode:1});var ghE;var NM=function(){var u=_.Q.apply(this,arguments)||this;u.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";u.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";u.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";u.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return u};
_.c(NM,_.Q);NM.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.MN.Object.defineProperties(NM.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?void 0:(K=u.offerData)==null?void 0:K.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?void 0:u.purchaseButtonRenderers)!==void 0&&((K=this.data)==null?void 0:K.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var u,K;return!((u=this.data)==null||!u.formattedFromMerchantText)&&(!((K=this.data)==null||!K.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],NM.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],NM.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],NM.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],NM.prototype,"data",void 0);
_.g([_.U({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],NM.prototype,"shippingIcon",void 0);_.g([_.U({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],NM.prototype,"shippingAddressIcon",void 0);_.g([_.U({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],NM.prototype,"googleGuaranteeIcon",void 0);
_.g([_.U({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],NM.prototype,"returnPolicyIcon",void 0);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],NM.prototype,"showAdditionalFees",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],NM.prototype,"showMultiPurchaseButtons",null);
_.g([_.R("data","showMultiPurchaseButtons"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],NM.prototype,"showPurchaseData",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],NM);
_.F(NM,"ytd-product-details-hero-offer-renderer",function(){if(ghE!==void 0)return ghE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return ghE=u},{mode:1});var N$o;var k5E;var kj=function(){return _.Q.apply(this,arguments)||this};
_.c(kj,_.Q);_.I=kj.prototype;_.I.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.I.onKeyDown=function(u){u=u.keyCode;u!==13&&u!==32||this.handleSelection()};
_.I.onMouseEnterImage=function(){var u;((u=this.data)==null?void 0:u.thumbnailDetails)!==void 0&&_.bI(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.I.onMouseLeaveImage=function(){_.bI(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.I.handleSelection=function(){this.data&&_.xs(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.MN.Object.defineProperties(kj.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.isSelected)}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],kj.prototype,"data",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kj.prototype,"isSelected",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],kj);
_.F(kj,"ytd-product-details-thumbnail-renderer",function(){if(k5E!==void 0)return k5E;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return k5E=u},{mode:1});var Zo=function(){var u=_.Q.apply(this,arguments)||this;var K={};u.actionMap=(K["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",K["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",K);u.selectedThumbnailIndex=0;u.selectItem=function(l){l.target.onKeyDown(l)};
return u};
_.c(Zo,_.Q);_.I=Zo.prototype;_.I.handlePreviewImageSelect=function(u){this.hoverThumbnail=u};
_.I.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.I.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.I.onThumbnailSelected=function(u,K){this.selectedThumbnailIndex=K};
_.I.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.I.updateOffset=function(){var u=_.bi(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-u));this.ytdHorizontalListBehavior.reposition_()};
_.MN.Object.defineProperties(Zo.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.data)==null?0:u.imageRenderer){var K,l;return((K=this.data)==null?void 0:(l=K.imageRenderer)==null?void 0:l.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var u;if((u=this.data)==null?0:u.imageRenderer){var K;return(K=_.b(this.data.imageRenderer[this.selectedThumbnailIndex],nhk))==null?void 0:K.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var u=this,K,l,D,d=(D=(K=this.data)==null?void 0:(l=K.imageRenderer)==null?void 0:l.map(function(C,W){return{productDetailsThumbnailRenderer:Object.assign({},_.b(C,nhk),{index:W,isSelected:W===u.selectedThumbnailIndex})}}))!=null?D:[];
return Object.assign({},this.data,{imageRenderer:d})}}});
Zo.prototype.updateOffset=Zo.prototype.updateOffset;Zo.prototype.dataChanged=Zo.prototype.dataChanged;Zo.prototype.onThumbnailSelected=Zo.prototype.onThumbnailSelected;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Zo.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.S0.YtdHorizontalListBehavior),_.N("design:type",Object)],Zo.prototype,"ytdHorizontalListBehavior",void 0);
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Zo.prototype,"componentBehavior",void 0);_.g([_.e([_.bf.YtActionHandlerBehavior]),_.N("design:type",Object)],Zo.prototype,"actionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Zo.prototype,"data",void 0);_.g([_.U({value:"$.items.children"}),_.N("design:type",String)],Zo.prototype,"itemsPath",void 0);_.g([_.U({value:3}),_.N("design:type",Number)],Zo.prototype,"initialCount",void 0);
_.g([_.BF("#items"),_.N("design:type",Object)],Zo.prototype,"items",void 0);_.g([_.U(),_.N("design:type",Object)],Zo.prototype,"selectedThumbnailIndex",void 0);_.g([_.U(),_.N("design:type",Object)],Zo.prototype,"hoverThumbnail",void 0);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zo.prototype,"showThumbnails",null);
_.g([_.PF("ytd-product-details-thumbnail-renderer-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Number]),_.N("design:returntype")],Zo.prototype,"onThumbnailSelected",null);_.g([_.R("data","selectedThumbnailIndex","hoverThumbnail"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zo.prototype,"thumbnailDetails",null);_.g([_.R("data","selectedThumbnailIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zo.prototype,"populatedData",null);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zo.prototype,"dataChanged",null);_.g([_.PF("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zo.prototype,"updateOffset",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Zo);
_.F(Zo,"ytd-product-details-image-carousel-renderer",function(){if(N$o!==void 0)return N$o;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return N$o=u},{mode:_.zW("kevlar_poly_si_batch_j079")?1:2});var ZEB;var Yj=function(){return _.Q.apply(this,arguments)||this};
_.c(Yj,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Yj.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Yj.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Yj.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Yj);
_.F(Yj,"ytd-product-details-offer-renderer",function(){if(ZEB!==void 0)return ZEB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return ZEB=u},{mode:1});var YJ6;var AM=function(){var u=_.Q.apply(this,arguments)||this;u.isOffersHidden=!0;return u};
_.c(AM,_.Q);AM.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var u,K=_.b((u=this.data)==null?void 0:u.viewOffersButton,_.lF);K&&this.ytRendererBehavior.logExplicitClick(K)};
AM.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.MN.Object.defineProperties(AM.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D;return(l=_.b((u=this.data)==null?void 0:(K=u.offers)==null?void 0:K[0],tnH))==null?void 0:(D=l.offerData)==null?void 0:D.vendorLogoUrl}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],AM.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],AM.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],AM.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],AM.prototype,"isOffersHidden",void 0);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],AM.prototype,"firstOfferVendorLogoUrl",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],AM);
_.F(AM,"ytd-product-details-offers-container-renderer",function(){if(YJ6!==void 0)return YJ6;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return YJ6=u},{mode:1});var AD2;var Xn2;var Xk=function(){return _.Q.apply(this,arguments)||this};
_.c(Xk,_.Q);Xk.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Xk.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.bI(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Xk.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.bI(this,"ytd-product-details-variant-image-unselect")};
_.MN.Object.defineProperties(Xk.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 u;return((u=this.data)==null?void 0:u.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return((u=this.data)==null?void 0:u.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((K=this.data)==null?void 0:K.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((l=this.data)==null?void 0:l.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var u;if(((u=this.data)==null?void 0:u.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var u,K;return this.isUnavailable?(u=this.data)==null?void 0:u.variantOptionUnavailableAccessibilityLabel:(K=this.data)==null?void 0:K.variantOptionAccessibilityLabel}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Xk.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Xk.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Xk.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],Xk.prototype,"displayType",void 0);
_.g([_.R("displayType","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xk.prototype,"isImageButton",null);_.g([_.R("displayType","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xk.prototype,"isPillButton",null);_.g([_.R("data"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xk.prototype,"isActive",null);
_.g([_.R("data"),_.U({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xk.prototype,"isUnavailable",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Xk.prototype,"thumbnailDetails",null);_.g([_.R("isUnavailable","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Xk.prototype,"accessibilityLabel",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Xk);
_.F(Xk,"ytd-product-details-variant-option-renderer",function(){if(Xn2!==void 0)return Xn2;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Xn2=u},{mode:1});var mQ_;var mu=function(){var u=_.Q.apply(this,arguments)||this;u.variantsExpanded=!1;u.hideShowMoreLessVariantButton=!0;u.initialized=!1;u.computeVariantsDebouncer=null;u.computeVariants=function(K){K=K===void 0?!1:K;u.variantsExpanded||u.showOptions()||!K||(u.variantsExpanded=!0);if(u.variantsExpanded){K=_.y(u.items.children);for(var l=K.next();!l.done;l=K.next())l.value.hidden=!1}u.initialized=!0};
return u};
_.c(mu,_.Q);_.I=mu.prototype;_.I.ready=function(){var u=this;setTimeout(function(){u.computeVariants(!0)})};
_.I.showOptions=function(){for(var u=_.y(this.items.children),K=u.next();!K.done;K=u.next())K.value.hidden=!0;var l=this.container.getBoundingClientRect().width,D=0,d=u=0;K=!1;for(var C=_.y(this.items.children),W=C.next();!W.done;W=C.next()){W=W.value;W.hidden=!1;var M=W.getBoundingClientRect().width;if(D+M<l)D+=M;else if(++d<2)D=M;else break;u+=1;W.hasAttribute("is-active")&&(K=!0)}for(l=u;l<this.items.children.length;l++)this.items.children[l].hidden=!0;this.hideShowMoreLessVariantButton=u===this.items.children.length;
return K};
_.I.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.ao(this.computeVariantsDebouncer,_.qL.after(100),this.computeVariants)};
_.I.onShowMoreLessVariantsButtonClick=function(){var u;(u=this.data)!=null&&u.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.I.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.MN.Object.defineProperties(mu.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var u,K,l=(u=this.data)==null?void 0:(K=u.variantOptionRenderers)==null?void 0:K.find(function(C){return _.b(C,vh6).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),D,d;
return(d=(D=_.b(l,vh6))==null?void 0:D.name)!=null?d:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.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"}}}});
mu.prototype.debouncedComputeVariants=mu.prototype.debouncedComputeVariants;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],mu.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],mu.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],mu.prototype,"componentBehavior",void 0);_.g([_.e(_.Ae),_.N("design:type",Object)],mu.prototype,"ironResizableBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],mu.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],mu.prototype,"variantsExpanded",void 0);_.g([_.U(),_.N("design:type",Object)],mu.prototype,"hideShowMoreLessVariantButton",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],mu.prototype,"initialized",void 0);_.g([_.BF("#items"),_.N("design:type",HTMLDivElement)],mu.prototype,"items",void 0);_.g([_.BF("#container"),_.N("design:type",HTMLDivElement)],mu.prototype,"container",void 0);
_.g([_.BF("#more-variants-button"),_.N("design:type",HTMLElement)],mu.prototype,"moreVariantsButton",void 0);_.g([_.R("data"),_.N("design:type",String),_.N("design:paramtypes",[])],mu.prototype,"selectedOptionName",null);_.g([_.JU("data","variantsExpanded"),_.PF("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mu.prototype,"debouncedComputeVariants",null);
_.g([_.R("data"),_.N("design:type",String),_.N("design:paramtypes",[])],mu.prototype,"displayType",null);_.g([_.R("displayType"),_.N("design:type",Object),_.N("design:paramtypes",[])],mu.prototype,"variantItemsClassname",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],mu);
_.F(mu,"ytd-product-details-variant-renderer",function(){if(mQ_!==void 0)return mQ_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return mQ_=u},{mode:1});var hM=function(){return _.Q.apply(this,arguments)||this};
_.c(hM,_.Q);
hM.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"}}}};
_.MN.Object.defineProperties(hM.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var u,K,l=(K=_.b((u=this.data)==null?void 0:u.offersContainerRenderer,G5I))==null?void 0:K.offers;return l!==void 0&&(l==null?void 0:l.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 u,K,l;return((l=(u=this.data)==null?void 0:(K=u.variants)==null?void 0:K.map(function(D){var d,C;D=(C=(d=_.b(D,rDE))==null?void 0:d.variantOptionRenderers)==null?void 0:C.find(function(M){var q;return((q=_.b(M,vh6))==null?void 0:q.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var W;return(W=_.b(D,vh6))==null?void 0:W.name}).filter(function(D){return typeof D==="string"}))!=null?l:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D=(K=_.b((u=this.data)==null?void 0:u.shoppingFlaggingRenderer,xQo))==null?void 0:(l=K.reportButton)==null?void 0:l.buttonRenderer;if(D)return{text:D.text,command:D.command,icon:{iconType:"FLAG"},accessibilityData:D.accessibilityData,trackingParams:D.trackingParams,loggingDirectives:D.loggingDirectives}}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],hM.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],hM.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],hM.prototype,"data",void 0);_.g([_.BF("#image-carousel-renderer"),_.N("design:type",Object)],hM.prototype,"imageCarouselRenderer",void 0);
_.g([_.BF("#hero-offer-renderer"),_.N("design:type",Object)],hM.prototype,"productDetailsHeroOfferRenderer",void 0);_.g([_.BF("#variants"),_.N("design:type",Object)],hM.prototype,"productDetailsVariantRenderer",void 0);_.g([_.BF("#offers"),_.N("design:type",Object)],hM.prototype,"productDetailsOffersContainerRenderer",void 0);_.g([_.BF("#description-renderer"),_.N("design:type",Object)],hM.prototype,"productDetailsDescriptionRenderer",void 0);
_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hM.prototype,"showPurchaseData",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hM.prototype,"showHeroOfferRenderer",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hM.prototype,"showBrandText",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hM.prototype,"showOffers",null);
_.g([_.R("showOffers","showPurchaseData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hM.prototype,"showBuySeparator",null);_.g([_.R("showOffers","showPurchaseData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hM.prototype,"showBuyCard",null);_.g([_.R("data"),_.N("design:type",String),_.N("design:paramtypes",[])],hM.prototype,"selectedVariantsText",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],hM.prototype,"shoppingReportingButtonData",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],hM);
_.F(hM,"ytd-product-details-renderer",function(){if(AD2!==void 0)return AD2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return AD2=u},{mode:1});var hlE;var Ehi;var L6i;var Er=function(){return _.Q.apply(this,arguments)||this};
_.c(Er,_.Q);Er.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.MN.Object.defineProperties(Er.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Er.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Er.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Er.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],Er.prototype,"formattedAmount",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Er.prototype,"ariaLabel",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("data.style"),_.N("design:type",String),_.N("design:paramtypes",[])],Er.prototype,"vcBalanceWidgetStyle",null);_.g([_.E9({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Er);
_.F(Er,"yt-vc-balance-renderer",function(){if(L6i===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Ehi===void 0&&(Ehi=document.createElement("template"));var D=Ehi;l.call(K,D.content.cloneNode(!0),u.content.firstChild);L6i=u}u=L6i;return u},{mode:2});_.E4("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var L2=function(){return _.Q.apply(this,arguments)||this};
_.c(L2,_.Q);_.MN.Object.defineProperties(L2.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:""}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],L2.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],L2.prototype,"data",void 0);_.g([_.U({selectorArgs:["data.vcBalanceEntityKey"],selector:function(u,K){return _.eZ(u.entities,"vcBalanceEntity",K)}}),
_.N("design:type",Object)],L2.prototype,"vcBalanceEntity",void 0);_.g([_.R("vcBalanceEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],L2.prototype,"formattedAmount",null);_.g([_.R("vcBalanceEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],L2.prototype,"vcBalanceAriaLabel",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],L2);
_.F(L2,"ytd-vc-balance-renderer",function(){if(hlE!==void 0)return hlE;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return hlE=u},{mode:1});var ukI;var ul=function(){var u=_.Q.apply(this,arguments)||this;u.rotation=0;u.isReloading=!1;return u};
_.c(ul,_.Q);ul.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
ul.prototype.reset=function(){this.hostElement.style.opacity=""};
ul.prototype.close=function(){var u=this;return _.H(function(K){if(K.nextAddress==1)return K.yield(u.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);u.hostElement.style.opacity="0";_.TG(K)})};
ul.prototype.rotationChanged=ul.prototype.rotationChanged;_.g([_.U(),_.N("design:type",Object)],ul.prototype,"rotation",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ul.prototype,"isReloading",void 0);_.g([_.BF("#icon"),_.N("design:type",HTMLElement)],ul.prototype,"icon",void 0);_.g([_.JU("rotation"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ul.prototype,"rotationChanged",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-refresh"})],ul);
_.F(ul,"ytd-refresh",function(){if(ukI!==void 0)return ukI;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return ukI=u},{mode:1});var KuV;var KB=function(){return _.Q.apply(this,arguments)||this};
_.c(KB,_.Q);KB.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"}}}};
KB.prototype.dataChanged=function(){if(this.data){var u=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var K=_.bt(this.data.banner.thumbnails,this.hostElement.clientWidth);K&&(K.indexOf("//")===0&&(K="https:"+K),this.hasBannerArt=!0,_.e8(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+K+")"}))}this.hasBannerArt!==u&&_.bi(this.hostElement).querySelector("#header").fire("iron-resize")}};
KB.prototype.updateSelectedFromBinding=function(u){this.selected=u.detail.value};
KB.prototype.dataChanged=KB.prototype.dataChanged;_.g([_.e(OEH),_.N("design:type",Object)],KB.prototype,"ytdTabbedHeaderBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.D1),_.N("design:type",Object)],KB.prototype,"ytdGridStateAwareBehavior",void 0);_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],KB.prototype,"ytdGuideStateAwareBehavior",void 0);
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],KB.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],KB.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Number)],KB.prototype,"selected",void 0);_.g([_.U(),_.N("design:type",Boolean)],KB.prototype,"active",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],KB.prototype,"hasBannerArt",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KB.prototype,"dataChanged",null);_.g([_.T({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],KB);
_.F(KB,"ytd-interactive-tabbed-header-renderer",function(){if(KuV!==void 0)return KuV;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return KuV=u},{mode:1});var loV;var ll=function(){return _.Q.apply(this,arguments)||this};
_.c(ll,_.Q);ll.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ll.prototype.computeActionsAlignment=function(u){return(u==null?void 0:u.actionsAlignment)||""};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ll.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ll.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.N("design:type",String)],ll.prototype,"actionsAlignment",void 0);_.g([_.T({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],ll);
_.F(ll,"ytd-page-footer-renderer",function(){if(loV!==void 0)return loV;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return loV=u},{mode:1});var DMH;var dM_;var Dm=function(){var u=_.Q.apply(this,arguments)||this;u.isEditing=!1;u.useSlot=!1;u.isMultiline=!1;return u};
_.c(Dm,_.Q);_.I=Dm.prototype;_.I.onKeydown=function(u){if(u.keyCode===13&&!this.isMultiline)this.onSave();else if(u.keyCode===27)this.onCancel()};
_.I.computeComponentStyle=function(u){return(u==null?0:u.style)?u.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.I.computeisMultiline=function(u){if(this.multilineOverride!==void 0)return this.multilineOverride;var K,l;return!!(u==null?0:(K=u.formField)==null?0:(l=K.textInputFormFieldRenderer)==null?0:l.isMultiline)};
_.I.computeTextDisplayed=function(u,K){if(u)return u;if(K)return K};
_.I.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.I.onSave=function(){if(this.textForm.validate()){this.textForm.save();var u=this.textForm.value;if(u)this.set("data.textDisplayed",_.o7(u));else{var K;((K=this.data)==null?0:K.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.oi("inline-form-changed",this.data));this.isEditing=!1}};
_.I.onCancel=function(){var u=_.WI(this.data.textDisplayed);u===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(u);this.isEditing=!1};
Dm.prototype.onKeydown=Dm.prototype.onKeydown;_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],Dm.prototype,"ytEventForwardingBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Dm.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Dm.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Dm.prototype,"isEditing",void 0);_.g([_.U(),_.N("design:type",Object)],Dm.prototype,"useSlot",void 0);_.g([_.U(),_.N("design:type",Boolean)],Dm.prototype,"multilineOverride",void 0);_.g([_.U(),_.N("design:type",Boolean)],Dm.prototype,"enableOverlayTheme",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.N("design:type",String)],Dm.prototype,"componentStyle",void 0);
_.g([_.U({computed:"computeisMultiline(data)"}),_.N("design:type",Object)],Dm.prototype,"isMultiline",void 0);_.g([_.BF("#text-form"),_.N("design:type",Object)],Dm.prototype,"textForm",void 0);_.g([_.PF("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],Dm.prototype,"onKeydown",null);_.g([_.T({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Dm);
_.F(Dm,"ytd-inline-form-renderer",function(){if(dM_!==void 0)return dM_;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return dM_=u},{mode:1});var C_B;var dK=function(){var u=_.Q.apply(this,arguments)||this;u.previousSelectValue=void 0;u.selectedItemMessage=void 0;return u};
_.c(dK,_.Q);dK.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
dK.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var u,K,l,D,d=(u=this.data)==null?void 0:(K=u.dropdown)==null?void 0:(l=K.dropdownRenderer)==null?void 0:(D=l.entries)==null?void 0:D.map(function(M){return M.privacyDropdownItemRenderer});
u=_.y(d!=null?d:[]);for(K=u.next();!K.done;K=u.next())if((K=K.value)&&K.int32Value===this.selectedValue){this.selectedItemMessage=K.itemMessage;break}}else this.selectedItemMessage=void 0;var C;(C=this.onValueChanged)==null||C.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var W;(W=this.data)!=null&&W.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
dK.prototype.onValueChangedForSelectedValue=function(u){this.selectedValue=u.detail.value};
dK.prototype.selectedValueChanged=dK.prototype.selectedValueChanged;_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],dK.prototype,"ytEventForwardingBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],dK.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],dK.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],dK.prototype,"theme",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Number)],dK.prototype,"selectedValue",void 0);_.g([_.U(),_.N("design:type",Function)],dK.prototype,"onValueChanged",void 0);
_.g([_.wn("selectedValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dK.prototype,"selectedValueChanged",null);_.g([_.T({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],dK);
_.F(dK,"ytd-dropdown-form-field-renderer",function(){if(C_B!==void 0)return C_B;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return C_B=u},{mode:_.zW("kevlar_poly_si_batch_j025")?1:2});var Io6;var CB=function(){return _.Q.apply(this,arguments)||this};
_.c(CB,_.Q);_.MN.Object.defineProperties(CB.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var u=[],K=_.y(this.data||[]),l=K.next();!l.done;l=K.next())(l=_.b(l.value,SJE))&&u.push(l);return u}}});
_.g([_.U(),_.N("design:type",Array)],CB.prototype,"data",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],CB.prototype,"byline",null);_.g([_.T({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],CB);
_.F(CB,"ytd-playlist-byline-renderer",function(){if(Io6!==void 0)return Io6;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Io6=u},{mode:1});var yM_;var Ic=function(){var u=_.Q.apply(this,arguments)||this;u.rtlBullet=_.S("web_playlist_stats_rtl_bullet_icon_killswitch");u.modern=_.S("web_modern_buttons");u.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return u};
_.c(Ic,_.Q);_.I=Ic.prototype;_.I.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"}}}}};
_.I.attached=function(){};
_.I.computeIsCustomThumbnail=function(u){return u?!!u.playlistCustomThumbnailRenderer:!1};
_.I.onYtNavigate=function(u,K){if(K&&K.actions&&K.actions.indexOf("shuffle")>-1){u=_.GB().resolve(_.lX);var l=K.tempData||{};l.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);K.tempData=l;u.isShuffleNextPlaylist=!0}};
_.I.onUpdatePlaylistAction=function(u){var K;u=(K=_.b(u,_.Fim))==null?void 0:K.updatedRenderer;if(K=_.b(u,Rg))this.data=K};
_.I.computeStyleType=function(u){return u?u.toLowerCase().replace(/_/g,"-"):""};
_.I.computeThumbnailWidth=function(u){return u==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.I.computeHideThumbnailAria=function(u){if(u==null?0:u.thumbnailOverlays)for(var K=0;K<u.thumbnailOverlays.length;K++){var l=void 0;if((l=u.thumbnailOverlays[K])==null?0:l.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Ic.prototype.onYtNavigate=Ic.prototype.onYtNavigate;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ic.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Ic.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Ic.prototype,"ytComponentBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],Ic.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ic.prototype,"rtlBullet",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.N("design:type",String)],Ic.prototype,"styleType",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.N("design:type",Number)],Ic.prototype,"thumbnailWidth",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ic.prototype,"modern",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.N("design:type",Boolean)],Ic.prototype,"isCustomThumbnail",void 0);_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Object]),_.N("design:returntype")],Ic.prototype,"onYtNavigate",null);_.g([_.T({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Ic);
_.F(Ic,"ytd-playlist-sidebar-primary-info-renderer",function(){if(yM_!==void 0)return yM_;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return yM_=u},{mode:1});var sgo;var y_=function(){return _.Q.apply(this,arguments)||this};
_.c(y_,_.Q);y_.prototype.computeOwnerVisibility=function(u){return!(!u.videoOwner&&!u.button)};
y_.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"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],y_.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],y_.prototype,"data",void 0);_.g([_.T({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],y_);
_.F(y_,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(sgo!==void 0)return sgo;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return sgo=u},{mode:1});var ojo;var sk=function(){var u=_.Q.apply(this,arguments)||this;u.expanded=!1;u.isCompact=!1;return u};
_.c(sk,_.Q);_.I=sk.prototype;_.I.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.I.dataChanged=function(){this.data&&_.nH(_.bi(this.text),_.OsR(_.zww,_.WI(this.data.text||null)))};
_.I.computeAutoScrollEnabled=function(u,K){return u&&!K};
_.I.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.I.toggleOnTap=function(){this.expanded=!this.expanded};
sk.prototype.expandedChanged=sk.prototype.expandedChanged;sk.prototype.dataChanged=sk.prototype.dataChanged;_.g([_.e(_.MVI),_.N("design:type",Object)],sk.prototype,"ytdAutoScrollBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],sk.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],sk.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],sk.prototype,"expanded",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],sk.prototype,"isCompact",void 0);_.g([_.U({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.N("design:type",Boolean)],sk.prototype,"autoScrollEnabled",void 0);_.g([_.BF("#text"),_.N("design:type",Object)],sk.prototype,"text",void 0);_.g([_.BF("#expander-icon"),_.N("design:type",Object)],sk.prototype,"expanderIcon",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sk.prototype,"dataChanged",null);_.g([_.JU("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sk.prototype,"expandedChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],sk);
_.F(sk,"ytd-channel-legal-info-renderer",function(){if(ojo!==void 0)return ojo;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return ojo=u},{mode:1});var WuE;var H2H=_.QQ("DOWNLOAD",{},"Download"),M6k=_.QQ("DOWNLOADING",{},"Downloading"),qro=_.QQ("DOWNLOADED",{},"Downloaded"),oc=function(){var u=_.Q.apply(this,arguments)||this;u.downloadProgress=0;u.isDownloadComplete=!1;u.transferState="TRANSFER_STATE_UNKNOWN";return u};
_.c(oc,_.Q);_.I=oc.prototype;_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.dataChanged=function(){var u;(u=this.data)!=null&&u.tooltip||(u=_.Lm(_.Mu().getState(),this.playlistId),this.updateButtonState(u))};
_.I.computePlaylistId=function(u){return u};
_.I.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.I.updateButtonState=function(u){if(this.data&&(this.data.tooltip!==M6k||!_.pm(u))){this.isDownloadComplete=!1;switch(u){case "TRANSFER_STATE_UNKNOWN":u=H2H;var K="OFFLINE_DOWNLOAD";var l="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":u=qro;K="OFFLINE_PIN";l="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":u=M6k;K="OFFLINE_DOWNLOADING_ZERO";l="ACTION_REMOVE_WITH_PROMPT";
break;default:u=H2H,K="OFFLINE_DOWNLOAD",l="ACTION_ADD"}var D=Object.assign({},this.data);D.tooltip=u;D.accessibilityData={accessibilityData:{label:u}};D.icon={iconType:K};D.size="SIZE_DEFAULT";_.b(D.command,_.BJ)&&(_.b(D.command,_.BJ).action=l);this.set("data",D)}};
_.I.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var u="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?u="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?u="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?u="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?u="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?u="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(u="OFFLINE_PIN",this.isDownloadComplete=!0);var K;u!==((K=this.data.icon)==null?void 0:K.iconType)&&(K=Object.assign({},this.data),K.tooltip=M6k,K.accessibilityData={accessibilityData:{label:M6k}},K.icon={iconType:u},_.b(K.command,_.BJ)&&(_.b(K.command,_.BJ).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",K))}};
oc.prototype.updateProgress=oc.prototype.updateProgress;oc.prototype.onTransferStateChanged=oc.prototype.onTransferStateChanged;oc.prototype.dataChanged=oc.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],oc.prototype,"ytdReduxBehavior",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],oc.prototype,"forceIconButton",void 0);
_.g([_.U({value:!0}),_.N("design:type",Boolean)],oc.prototype,"forceIconOnly",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],oc.prototype,"overrides",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],oc.prototype,"buttonTooltipPosition",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],oc.prototype,"styleActionButton",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],oc.prototype,"disableTextTransform",void 0);
_.g([_.U({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.N("design:type",String)],oc.prototype,"playlistId",void 0);_.g([_.U(),_.N("design:type",Object)],oc.prototype,"data",void 0);_.g([_.U({selector:_.PFq,selectorArgs:["playlistId"]}),_.N("design:type",Object)],oc.prototype,"downloadProgress",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],oc.prototype,"isDownloadComplete",void 0);
_.g([_.U({selector:_.Lm,selectorArgs:["playlistId"]}),_.N("design:type",String)],oc.prototype,"transferState",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],oc.prototype,"showTooltips",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],oc.prototype,"sendCommandWhenDisabled",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],oc.prototype,"disabled",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oc.prototype,"dataChanged",null);_.g([_.wn("transferState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oc.prototype,"onTransferStateChanged",null);_.g([_.wn("downloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oc.prototype,"updateProgress",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],oc);
_.F(oc,"ytd-download-playlist-button-renderer",function(){if(WuE!==void 0)return WuE;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return WuE=u},{mode:1});var $M6;_.SX(_.k40,"thumbnail-overlay-button-view-model",{props:{data:_.M6,lockupExperiments:_.M6}});var Wx=function(){var u=_.Q.apply(this,arguments)||this;u.isSquare=!1;u.isVertical=!1;return u};
_.c(Wx,_.Q);Wx.prototype.computeIsSquare=function(u){return u!=null&&u.thumbnail?Xf_(u.thumbnail)==="SQUARE":!1};
Wx.prototype.computeIsVertical=function(u){return u!=null&&u.thumbnail?Xf_(u.thumbnail)==="VERTICAL":!1};
Wx.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Wx.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.N("design:type",Object)],Wx.prototype,"isSquare",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.N("design:type",Object)],Wx.prototype,"isVertical",void 0);
_.g([_.U(),_.N("design:type",Object)],Wx.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],Wx);
_.F(Wx,"ytd-hero-playlist-thumbnail-renderer",function(){if($M6!==void 0)return $M6;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return $M6=u},{mode:1});var Hx=function(){var u=_.Q.apply(this,arguments)||this;u.isDarkTheme=!1;u.isUltraWide=!1;u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return u};
_.c(Hx,_.Q);_.I=Hx.prototype;_.I.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.GB();var u;(u=_.GB().resolve(_.vv(_.Mj)))!=null&&(u.headerElement=this.hostElement)};
_.I.detached=function(){var u;(u=_.GB().resolve(_.vv(_.Mj)))!=null&&(u.headerElement=void 0)};
_.I.onUpdateHeader=function(u){(u=u.detail)&&this.set("data",u)};
_.I.computeTextDisplayed=function(u){if(u)return u.textDisplayed?u.textDisplayed:u.placeholder};
_.I.gradientColorToLinearGradientStop=function(u){var K=this.isDarkTheme?u.darkThemeColor:u.lightThemeColor;return K?_.Kg(K)+" "+((u==null?void 0:u.startLocation)||0)*100+"%":"transparent"};
_.I.onWindowResize=function(){var u;((u=this.data)==null?0:u.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.I.onIronResize=function(u){this.isUltraWide=!u.detail.value};
_.I.onDarkModeToggledAction=function(u){this.isDarkTheme=u};
_.I.onUpdatePlaylistName=function(u){var K=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},u.detail.value));_.W_(this,function(){var l;(l=K.editableTitle)==null||l.resize()})};
_.I.onUpdatePlaylistDescription=function(u){var K=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},u.detail.value));_.W_(this,function(){var l;(l=K.editableDescriptionInlineExpander)==null||l.resize()})};
_.I.getCinematicData=function(u){return _.b(u==null?void 0:u.cinematicContainer,_.b_)};
_.MN.Object.defineProperties(Hx.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 u,K=(u=this.getCinematicData(this.data))==null?void 0:u.config;return(u=this.isDarkTheme?K==null?void 0:K.darkThemeBackgroundColor:K==null?void 0:K.lightThemeBackgroundColor)?"background-color:"+_.ui(u)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var u;return _.b((u=this.data)==null?void 0:u.descriptionForm,$QG)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var u=this,K,l,D;return"background:linear-gradient(to bottom, "+(((D=(K=this.getCinematicData(this.data))==null?void 0:(l=K.gradientColorConfig)==null?void 0:l.map(function(d){return u.gradientColorToLinearGradientStop(d)}))==null?void 0:D.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var u;return _.WI((u=this.data)==null?void 0:u.descriptionTapText)}}});
Hx.prototype.onUpdateHeader=Hx.prototype.onUpdateHeader;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Hx.prototype,"actionHandlerBehavior",void 0);_.g([_.BF("#description-inline-expander"),_.N("design:type",Object)],Hx.prototype,"descriptionInlineExpander",void 0);
_.g([_.BF("#editable-description-inline-expander"),_.N("design:type",Object)],Hx.prototype,"editableDescriptionInlineExpander",void 0);_.g([_.U(),_.N("design:type",Object)],Hx.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Hx.prototype,"isUltraWide",void 0);_.g([_.BF("#editable-title-display"),_.N("design:type",Object)],Hx.prototype,"editableTitle",void 0);_.g([_.R("isUltraWide"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hx.prototype,"maxDescriptionLines",null);
_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hx.prototype,"noCinematicData",null);_.g([_.PF("yt-new-playlist-header"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Hx.prototype,"onUpdateHeader",null);_.g([_.R("data","isDarkTheme"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hx.prototype,"backgroundStyle",null);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hx.prototype,"descriptionFormData",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hx.prototype,"getDropdownTheme",null);_.g([_.R("data","isDarkTheme"),_.N("design:type",String),_.N("design:paramtypes",[])],Hx.prototype,"gradientStyle",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hx.prototype,"descriptionTapText",null);
_.g([_.T({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Hx);
_.F(Hx,"ytd-playlist-header-renderer",function(){if(DMH!==void 0)return DMH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return DMH=u},{mode:_.zW("kevlar_poly_si_batch_j078")?1:2});var njB;var rMB;var Mf=function(){return _.Q.apply(this,arguments)||this};
_.c(Mf,_.Q);Mf.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Mf.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Mf.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Mf.prototype,"data",void 0);_.g([_.T({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],Mf);
_.F(Mf,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(rMB!==void 0)return rMB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return rMB=u},{mode:1});var qf=function(){return _.Q.apply(this,arguments)||this};
_.c(qf,_.Q);
qf.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}}}}};
qf.prototype.computeUsePremiumShowStyle=function(u){if(!u||!u.items)return!1;for(var K=0;K<u.items.length;K++)if(_.b(u.items[K],Rg)){var l=void 0;return((l=_.b(u.items[K],Rg))==null?void 0:l.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],qf.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],qf.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.N("design:type",Boolean)],qf.prototype,"usePremiumShowStyle",void 0);
_.g([_.T({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],qf);
_.F(qf,"ytd-playlist-sidebar-renderer",function(){if(njB!==void 0)return njB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return njB=u},{mode:1});var vjo;var Goi;var t62=function(u,K,l,D,d,C,W,M){this.minWidth=u;this.minHeight=K;this.recommendedWidth=l;this.recommendedHeight=D;this.JSC$21795_maxFileSize=d;this.title=C;this.bannerGalleryTitle=W;this.channelId=M;this.picker_=null;u=_.I1H("yt-banner");K=u.addView;l=(new DQi("youtubebanner")).addUploadMetadata("silo_id","19");l.opts.ytMaxFileSize=this.JSC$21795_maxFileSize;D=this.recommendedHeight;l.opts.ytRecWidth=this.recommendedWidth;l.opts.ytRecHeight=D;K.call(u,l);u.addView(new _.Ni);K=u.addView;l=new _.Ni;
l.opts.type="ytbanner";K.call(u,l.JSC$10002_setLabel(this.bannerGalleryTitle));K=u.setTitle(this.title).setSize(1E3);K.urlParamMap_.set("thumbs","orig");l=this.minWidth;D=this.minHeight;if(isNaN(l)||isNaN(D))throw Error("gb`"+l+"`"+D);K.urlParamMap_.set("minSize",l+"x"+D);K.urlParamMap_.set("cropMode","ytcb");this.builder_=u};
t62.prototype.open=function(){var u=this;return new _.RL(function(K,l){_.$7S(u.builder_,function(D){D.action=="picked"?K(D):D.action=="cancel"&&l(Error("go"))});
u.picker_&&u.picker_.dispose();u.picker_=u.builder_.build();u.picker_.setVisible(!0)})};
t62.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var xMk=function(u){this.channelId=u};
xMk.prototype.upload=function(u){var K="";u.viewToken&&(K=u.viewToken[2].type);var l=u.docs[0];u=l.crop;K={channel_id:this.channelId,fife_url:l.thumbnails[0].url,photo_id:l.id,is_gallery_image:K=="ytbanner"};u&&(K.crop_top=u.top,K.crop_right=u.right,K.crop_bottom=u.bottom,K.crop_left=u.left);return _.Stq("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:K})};var $8=function(){var u=_.Q.apply(this,arguments)||this;u.ariaLabel=null;return u};
_.c($8,_.Q);_.I=$8.prototype;_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.I.detached=function(){this.picker&&this.picker.dispose()};
_.I.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.I.computeAriaLabel=function(u){return u};
_.I.onTap=function(){var u=this,K;if((K=this.data)==null||!K.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new t62(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 l;(l=this.picker)==null||l.open().then(function(D){u.handleBannerPicked(D)},function(){})}};
_.I.handleBannerPicked=function(u){var K=this;this.uploader||(this.uploader=new xMk(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(u).then(function(l){K.handleBannerUploadSucceeded(l)},function(l){K.handleBannerUploadFailed(l)})};
_.I.handleBannerUploadSucceeded=function(u){u&&u.errors?this.handleBannerUploadFailed(u):(_.xs(this.hostElement,"yt-banner-updated",u),this.message=null)};
_.I.handleBannerUploadFailed=function(u){this.message=u&&u.errors&&u.errors.length?u.errors[0]:null};
$8.prototype.dataChanged=$8.prototype.dataChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],$8.prototype,"componentBehavior",void 0);_.g([_.e(_.mv),_.N("design:type",Object)],$8.prototype,"ironButtonState",void 0);_.g([_.U(),_.N("design:type",Object)],$8.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.N("design:type",Object)],$8.prototype,"ariaLabel",void 0);
_.g([_.U(),_.N("design:type",Object)],$8.prototype,"message",void 0);_.g([_.U(),_.N("design:type",Object)],$8.prototype,"picker",void 0);_.g([_.U(),_.N("design:type",Object)],$8.prototype,"uploader",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$8.prototype,"dataChanged",null);_.g([_.T({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],$8);
_.F($8,"ytd-channel-banner-editor-renderer",function(){if(Goi!==void 0)return Goi;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Goi=u},{mode:1});var Sr_;var b2E=_.oj(["#"]),nB=function(){return _.Q.apply(this,arguments)||this};
_.c(nB,_.Q);nB.prototype.computeHrefWithDefault=function(u){return this.ytComponentBehavior.computeHref_(u,!0)||_.iML(b2E)};
nB.prototype.dataChanged=function(){var u=this.data;u&&u.targetId&&_.$$0(_.gw(),u.targetId,this.moreIcon)};
nB.prototype.dataChanged=nB.prototype.dataChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],nB.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],nB.prototype,"data",void 0);_.g([_.BF("#more-icon"),_.N("design:type",Object)],nB.prototype,"moreIcon",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nB.prototype,"dataChanged",null);
_.g([_.T({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],nB);
_.F(nB,"ytd-channel-tagline-renderer",function(){if(Sr_!==void 0)return Sr_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Sr_=u},{mode:1});var O2_;var rK=function(){return _.Q.apply(this,arguments)||this};
_.c(rK,_.Q);_.I=rK.prototype;_.I.ready=function(){var u=this;_.bi(this.hostElement).querySelector("#form").addEventListener("submit",function(K){u.onSubmit(K)})};
_.I.onDataChanged=function(){var u;((u=this.data)==null?0:u.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.I.onIconButtonKeydown=function(u){u.keyCode===13&&this.iconButton.click()};
_.I.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.I.openOnClickHandler=function(){this.input.focus()};
_.I.onSubmit=function(u){u.preventDefault();return!1};
_.I.submitOnEnterKeyUp=function(u){var K;if(u.keyCode===13&&((K=this.data)==null?0:K.expandedText)){u=this.data.endpoint;K=_.k$.unsafeClone(u);var l;((l=_.b(K==null?void 0:K.commandMetadata,_.nN))==null?0:l.url)?(_.b(K.commandMetadata,_.nN).url=_.uy(_.b(K.commandMetadata,_.nN).url,"query",this.data.expandedText),_.b(K,_.jt)&&(_.b(K,_.jt).query=this.data.expandedText),_.xs(this.hostElement,"yt-navigate",{endpoint:K,tempData:{disableCache:!0}})):(l=new _.wv("Error: Trying to navigate to an endpoint without url",
u),_.Xm(l))}};
_.I.updateDataExpandedTextFromBinding=function(u){this.set("data.expandedText",u.detail.value)};
_.MN.Object.defineProperties(rK.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
rK.prototype.onDataChanged=rK.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Dop),_.N("design:type",Object)],rK.prototype,"ytdExpandableInputBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],rK.prototype,"data",void 0);_.g([_.BF("#input"),_.N("design:type",Object)],rK.prototype,"input",void 0);_.g([_.BF("#icon-button"),_.N("design:type",HTMLElement)],rK.prototype,"iconButton",void 0);
_.g([_.U(),_.N("design:type",String),_.N("design:paramtypes",[])],rK.prototype,"searchIcon",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rK.prototype,"onDataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],rK);
var mHB=_.at()(rK,"ytd-expandable-tab-renderer",function(){if(O2_===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);O2_=u}u=O2_;return u},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var cMB;var vx=function(){var u=_.Q.apply(this,arguments)||this;u.avatarSize=80;u.ariaLabel=_.QQ("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return u};
_.c(vx,_.Q);vx.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
vx.prototype.computeHref=function(u){var K;return((K=_.b(u,_.d_))==null?0:K.url)?this.componentBehavior.computeHref_(u):null};
vx.prototype.onTap=function(){var u,K;(u=this.data)==null||!u.editAvatarServiceEndpoint||((K=_.b(this.data.editAvatarServiceEndpoint,_.d_))==null?0:K.url)||_.GB().resolve(_.t9).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.g([_.e(_.mv),_.N("design:type",Object)],vx.prototype,"ironButtonState",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],vx.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],vx.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],vx.prototype,"avatarSize",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],vx.prototype,"ariaLabel",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],vx);
_.F(vx,"ytd-channel-avatar-editor",function(){if(cMB!==void 0)return cMB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return cMB=u},{mode:1});var aok=_.rf(function(u){var K=u.data;var l=u.noPadding;var D=u.enableBanner;var d=u.cinematicContainerTopbarOffset;var C=u.allowCinematicContainerOverflow;var W=u.displayAsSidebar;u=u.className;_.gp(function(){K().tagManagerId&&(_.Yx(K().tagManagerId,_.E3("GL")),lKH(K().tagManagerId))},"xVTVTe");
var M=_.ie(ESV,function(){return K().pageHeaderEntityKey});
return _.n("yt-page-header-renderer",{class:_.JB("page-header-renderer-wiz",u)},_.n(_.mo,{data:function(){var q;return((q=M())==null?0:q.header)?M().header:(W==null?0:W())&&K().sidebarContent?K().sidebarContent:K().content}},{pageHeaderViewModel:function(q){return _.n(_.M62,{data:q.data,
noPadding:l,enableBanner:D,cinematicContainerTopbarOffset:d,allowCinematicContainerOverflow:C,displayAsSidebar:function(){return(W==null?void 0:W())&&K().enableSidebarView}})}}))},"dj");
aok.idomCompat=!0;_.SX(aok,"yt-page-header-renderer",{props:{data:_.M6,noPadding:_.M6,enableBanner:_.M6,cinematicContainerTopbarOffset:_.M6,allowCinematicContainerOverflow:_.M6,displayAsSidebar:_.M6,className:_.M6}});_.SX(_.Wua,"yt-image-banner-view-model",{props:{data:_.M6,isPositionRelative:_.M6}});_.SX(_.UMB,"yt-tab-group-shape",{props:{shape:_.M6}});var GM=function(){var u=_.Q.apply(this,arguments)||this;u.expandableCustomTabRenderable=function(K){return hLE(K,function(){return void u.onSearchNavigate()})};
u.isRichGrid=!1;u.isConstrainedList=!1;u.richGridMiniMode=!1;u.richGridStyle="RICH_GRID_STYLE_UNKNOWN";u.isRichGridShorts=!1;u.responsiveSizing="COMPACT";u.disableGridStateAware=!1;u.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return u};
_.c(GM,_.Q);_.I=GM.prototype;_.I.computeHeaderDisabled=function(u,K){return K||!u||this.tabsHidden};
_.I.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.I.computeIsRichGridShorts=function(u){return u==="RICH_GRID_STYLE_SHORTS_GRID"||u==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.I.computeImageBannerViewModel=function(){var u,K;return _.b((K=_.b((u=this.data)==null?void 0:u.content,_.i7C))==null?void 0:K.banner,_.fTs)};
_.I.computeHasCinematicContainer=function(){var u,K;return!((K=_.b((u=this.data)==null?void 0:u.content,_.i7C))==null||!K.background)};
_.I.handleHeaderResize=function(){var u=_.bi(this.hostElement).querySelector("#header");u&&_.xs(u,"iron-resize")};
_.I.handleInsertTabCommand=function(u){var K=_.b(u,bEB);K&&(K.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(l){return l.tabRenderer&&l.tabRenderer.tabIdentifier===K.tabIdentifier})||this.splice("tabs",K.tabIndex||-1,0,K.tab))};
_.I.handleRefreshChannelTabAction=function(u){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===u&&_.xs(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.I.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.e8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.I.observerRichGridSlimItemsPerRow=function(){_.e8(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.I.updateCssVars=function(){this.richGridItemsPerRow&&_.e8(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Sg("rich_grid_max_item_width",500))+16)-16+"px"})};
_.I.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.e8(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.I.onDataChanged=function(){this.handleHeaderResize()};
_.I.onWindowResize=function(){this.handleHeaderResize()};
_.I.onFocusedChanged=function(u){(u=_.HF(u))&&u.is==="tp-yt-paper-tab"&&u.hasRipple()&&(u.getRipple().holdDown=!u.pointerDown&&u.focused)};
_.I.updateSelectedFromBinding=function(u){this.ytdTabbedHeaderBehavior.selected=u.detail.value};
_.I.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.MN.Object.defineProperties(GM.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:u$H(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.imageBannerViewModel)==null?void 0:u.style)==="IMAGE_BANNER_STYLE_INSET"}}});
GM.prototype.onDataChanged=GM.prototype.onDataChanged;GM.prototype.updateCssVarsForResponsiveGrid=GM.prototype.updateCssVarsForResponsiveGrid;GM.prototype.updateCssVars=GM.prototype.updateCssVars;GM.prototype.observerRichGridSlimItemsPerRow=GM.prototype.observerRichGridSlimItemsPerRow;GM.prototype.observerRichGridItemsPerRow=GM.prototype.observerRichGridItemsPerRow;_.g([_.e(_.D1),_.N("design:type",Object)],GM.prototype,"ytdGridStateAwareBehavior",void 0);
_.g([_.e(OEH),_.N("design:type",Object)],GM.prototype,"ytdTabbedHeaderBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],GM.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],GM.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],GM.prototype,"ytdGuideStateAwareBehavior",void 0);
_.g([_.e(_.Ll),_.N("design:type",Object)],GM.prototype,"ytdReduxBehavior",void 0);_.g([_.BF("#tabs"),_.N("design:type",Object)],GM.prototype,"tabsElement",void 0);_.g([_.U(),_.N("design:type",Array)],GM.prototype,"tabs",void 0);_.g([_.U(),_.N("design:type",Object)],GM.prototype,"expandableCustomTabRenderable",void 0);_.g([_.R("tabs.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],GM.prototype,"tabGroupShape",null);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],GM.prototype,"isRichGrid",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],GM.prototype,"isConstrainedList",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.Yw}),_.N("design:type",Object)],GM.prototype,"richGridMiniMode",void 0);_.g([_.U({selector:function(u){return u.ui.richGridStyle}}),
_.N("design:type",Object)],GM.prototype,"richGridStyle",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.N("design:type",Object)],GM.prototype,"isRichGridShorts",void 0);_.g([_.U({selector:_.Au}),_.N("design:type",Number)],GM.prototype,"richGridItemsPerRow",void 0);_.g([_.U({selector:function(u){return u.ui.richGridContainerWidth}}),
_.N("design:type",Number)],GM.prototype,"richGridContainerWidth",void 0);_.g([_.U({selector:_.tvH}),_.N("design:type",Number)],GM.prototype,"richGridSlimItemsPerRow",void 0);_.g([_.U(),_.N("design:type",Object)],GM.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],GM.prototype,"responsiveSizing",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],GM.prototype,"disableGridStateAware",void 0);
_.g([_.U({computed:"computeImageBannerViewModel(data)"}),_.N("design:type",Object)],GM.prototype,"imageBannerViewModel",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.N("design:type",Boolean)],GM.prototype,"hasCinematicContainer",void 0);_.g([_.U({selector:_.gVI,reflectToAttribute:!0}),_.N("design:type",Boolean)],GM.prototype,"guideIsVisibleButNotPersistent",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("imageBannerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],GM.prototype,"hasBanner",null);_.g([_.U({reflectToAttribute:!0}),_.R("imageBannerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],GM.prototype,"hasInsetBanner",null);_.g([_.U({computed:"computeTabsHidden(tabs)",value:!0}),_.N("design:type",Boolean)],GM.prototype,"tabsHidden",void 0);
_.g([_.JU("richGridItemsPerRow","isRichGrid"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GM.prototype,"observerRichGridItemsPerRow",null);_.g([_.JU("richGridSlimItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GM.prototype,"observerRichGridSlimItemsPerRow",null);
_.g([_.JU("richGridItemsPerRow","richGridMiniMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GM.prototype,"updateCssVars",null);_.g([_.JU("richGridContainerWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GM.prototype,"updateCssVarsForResponsiveGrid",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GM.prototype,"onDataChanged",null);
_.g([_.T({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],GM);
_.F(GM,"ytd-tabbed-page-header",function(){if(vjo!==void 0)return vjo;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return vjo=u},{mode:1});var z6o;var tb=function(){return _.Q.apply(this,arguments)||this};
_.c(tb,_.Q);tb.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.e8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.MN.Object.defineProperties(tb.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var u,K;return this.componentBehavior.computeIcon_(((K=_.b((u=this.data)==null?void 0:u.badge,_.Sg0))==null?void 0:K.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var u,K;return(K=_.b((u=this.data)==null?void 0:u.badge,_.Sg0))==null?void 0:K.label}}});
tb.prototype.observerRichGridItemsPerRow=tb.prototype.observerRichGridItemsPerRow;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],tb.prototype,"componentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],tb.prototype,"ytdReduxBehavior",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.Yw}),_.N("design:type",Boolean)],tb.prototype,"richGridMiniMode",void 0);
_.g([_.U({selector:_.Au}),_.N("design:type",Number)],tb.prototype,"richGridItemsPerRow",void 0);_.g([_.U(),_.N("design:type",Object)],tb.prototype,"data",void 0);_.g([_.JU("richGridItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tb.prototype,"observerRichGridItemsPerRow",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],tb.prototype,"badgeIconName",null);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],tb.prototype,"badgeLabel",null);_.g([_.T({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],tb);
_.F(tb,"ytd-member-hub-profile-renderer",function(){if(z6o!==void 0)return z6o;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return z6o=u},{mode:1});var e6p;var x8=function(){return _.Q.apply(this,arguments)||this};
_.c(x8,_.Q);x8.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],x8.prototype,"data",void 0);_.g([_.T({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],x8);
_.F(x8,"ytd-settings-sidebar-renderer",function(){if(e6p!==void 0)return e6p;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return e6p=u},{mode:1});var R6G;var S7=function(){var u=_.Q.apply(this,arguments)||this;u.expandableCustomTabRenderable=function(K){return hLE(K,function(){return void u.onSearchNavigate()})};
return u};
_.c(S7,_.Q);S7.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
S7.prototype.onSearchNavigate=function(){this.selected=void 0};
S7.prototype.onTabsChange=function(){var u,K=(u=this.tabs)==null?void 0:u.findIndex(function(l){var D;return l==null?void 0:(D=l.tabRenderer)==null?void 0:D.selected});
K!==void 0&&(this.selected=K)};
S7.prototype.onTabsActive=function(u){if(this.tabs!==void 0){var K,l;(u=(K=this.tabs[u.detail.selected])==null?void 0:(l=K.tabRenderer)==null?void 0:l.endpoint)&&_.xs(this.hostElement,"yt-navigate",{endpoint:u})}};
_.MN.Object.defineProperties(S7.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:u$H(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
S7.prototype.onTabsChange=S7.prototype.onTabsChange;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.D1),_.N("design:type",Object)],S7.prototype,"ytdGridStateAwareBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],S7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],S7.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Array)],S7.prototype,"tabs",void 0);_.g([_.U(),_.N("design:type",Number)],S7.prototype,"selected",void 0);_.g([_.R("tabs.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],S7.prototype,"tabGroupShape",null);_.g([_.U(),_.N("design:type",Object)],S7.prototype,"expandableCustomTabRenderable",void 0);
_.g([_.R("tabs"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],S7.prototype,"tabsEnabled",null);_.g([_.wn("tabs"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S7.prototype,"onTabsChange",null);_.g([_.T({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],S7);
_.F(S7,"ytd-topic-channel-details-renderer",function(){if(R6G!==void 0)return R6G;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return R6G=u},{mode:1});var UMo;var bl=function(){var u=_.Q.apply(this,arguments)||this;u.disableGridStateAware=!1;return u};
_.c(bl,_.Q);bl.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]]"}}}}}};
bl.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
bl.prototype.updateCssVars=function(){_.e8(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Sg("rich_grid_max_item_width",500))+16)-16+"px"})};
bl.prototype.updateCssVars=bl.prototype.updateCssVars;bl.prototype.activeChanged=bl.prototype.activeChanged;_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],bl.prototype,"ytdGuideStateAwareBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],bl.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],bl.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Array)],bl.prototype,"tabs",void 0);_.g([_.U(),_.N("design:type",Boolean)],bl.prototype,"active",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],bl.prototype,"disableGridStateAware",void 0);
_.g([_.U({selector:_.Au}),_.N("design:type",Number)],bl.prototype,"richGridItemsPerRow",void 0);_.g([_.U({selector:_.Yw}),_.N("design:type",Boolean)],bl.prototype,"richGridMiniMode",void 0);_.g([_.BF("ytd-carousel-item-renderer"),_.N("design:type",Object)],bl.prototype,"carousel",void 0);_.g([_.JU("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bl.prototype,"activeChanged",null);
_.g([_.JU("richGridItemsPerRow","richGridMiniMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bl.prototype,"updateCssVars",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],bl);
_.F(bl,"ytd-carousel-header-renderer",function(){if(UMo!==void 0)return UMo;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return UMo=u},{mode:1});var foE;var Qgp=_.oj(["https://www.google-analytics.com/analytics.js"]),Ok=function(){var u=_.Q.apply(this,arguments)||this;u.scriptAnalyticsAdded=!1;return u};
_.c(Ok,_.Q);Ok.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var u,K=(u=this.data)==null?void 0:u.tagManagerId;K&&(_.Yx(K,_.E3("GL")),lKH(K))};
Ok.prototype.sendGoogleAnalyticsPageview=function(u){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var l=_.uY.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(l)};
var K=window.ga;K("set","page",window.location.pathname);K.l=+new Date;K("set","forceSSL",!0);K("create",u,"'auto'");K("send","pageview")};
Ok.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var u=_.PO("SCRIPT");u.name="ga-analytics";var K=_.Oy(Qgp);_.$P(u,K);u.async=!0;_.bi(this.hostElement).appendChild(u)};
Ok.prototype.dataChanged=Ok.prototype.dataChanged;_.g([_.U(),_.N("design:type",Object)],Ok.prototype,"data",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ok.prototype,"dataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Ok);
_.F(Ok,"ytd-channel-metadata-renderer",function(){if(foE!==void 0)return foE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return foE=u},{mode:1});var P_E;var JMp;var cx=function(){return _.Q.apply(this,arguments)||this};
_.c(cx,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],cx.prototype,"data",void 0);_.g([_.T({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],cx);
_.F(cx,"ytd-sub-feed-option-renderer",function(){if(JMp!==void 0)return JMp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return JMp=u},{mode:1});var jgI;var ac=function(){return _.Q.apply(this,arguments)||this};
_.c(ac,_.Q);ac.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ac.prototype,"ytRendererStamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ac.prototype,"data",void 0);_.g([_.T({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],ac);
_.F(ac,"ytd-sub-feed-selector-renderer",function(){if(jgI!==void 0)return jgI;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return jgI=u},{mode:1});var zM=function(){return _.Q.apply(this,arguments)||this};
_.c(zM,_.Q);
zM.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}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],zM.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],zM.prototype,"data",void 0);_.g([_.T({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],zM);
_.F(zM,"ytd-browse-feed-actions-renderer",function(){if(P_E!==void 0)return P_E;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return P_E=u},{mode:1});var BX_;var pTI;var e7=function(){return _.Q.apply(this,arguments)||this};
_.c(e7,_.Q);e7.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],e7.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],e7.prototype,"data",void 0);_.g([_.T({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],e7);
_.F(e7,"ytd-mini-channel-renderer",function(){if(pTI!==void 0)return pTI;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return pTI=u},{mode:1});var i2I;var Rc=function(){return _.Q.apply(this,arguments)||this};
_.c(Rc,_.Q);Rc.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Rc.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Rc.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Rc.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],Rc);
_.F(Rc,"ytd-vertical-channel-section-renderer",function(){if(i2I!==void 0)return i2I;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return i2I=u},{mode:1});var Uk=function(){return _.Q.apply(this,arguments)||this};
_.c(Uk,_.Q);Uk.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Uk.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Uk.prototype,"data",void 0);_.g([_.T({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Uk);
_.F(Uk,"ytd-browse-secondary-contents-renderer",function(){if(BX_!==void 0)return BX_;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
return BX_=u},{mode:1});var TXi;var fB=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};u.notActive=!1;u.isConstrainedList=!1;return u};
_.c(fB,_.Q);_.I=fB.prototype;
_.I.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(u){var K;return(u==null?void 0:(K=u.webComponentHint)==null?void 0:K.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}}}}};
_.I.getPath=function(u,K){var l="data.tabs.#"+K+".";u.tabs[K].tabRenderer?l+="tabRenderer.":u.tabs[K].expandableTabRenderer&&(l+="expandableTabRenderer.");return l+"content.sectionListRenderer"};
_.I.computeDisplayedContent=function(u){this.unlinkPaths("content");if(u&&u.tabs)for(var K=u.tabs.length,l=0;l<K;l++){var D=u.tabs[l].tabRenderer||u.tabs[l].expandableTabRenderer;if(D.selected&&D.content)return this.linkPaths("content",this.getPath(u,l)),D.content}return null};
_.I.computeHasSecondaryColumnData=function(u){return!!u&&!!u.secondaryContents};
_.I.onRetrieveLocation=function(u,K){K.locationRetrieved(K.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);u.stopPropagation()};
_.I.onYtServiceRequestSent=function(u,K){_.S("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(K)};
_.I.onYtServiceRequestCompleted=function(u,K){_.S("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(K)};
_.I.onReplaceFeedContentAction=function(u){if(!_.S("replace_feed_content_action_killswitch")&&!this.notActive){var K;(u=(K=_.b(u,HEV))==null?void 0:K.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(u)}};
_.I.handleServiceRequestActions=function(u){if(u=u.actions){u=_.y(u);for(var K=u.next();!K.done;K=u.next()){K=K.value;var l=void 0;((l=_.b(K,HEV))==null?0:l.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.b(K,HEV).items)}}};
fB.prototype.onYtServiceRequestCompleted=fB.prototype.onYtServiceRequestCompleted;fB.prototype.onYtServiceRequestSent=fB.prototype.onYtServiceRequestSent;fB.prototype.onRetrieveLocation=fB.prototype.onRetrieveLocation;_.g([_.e(_.D1),_.N("design:type",Object)],fB.prototype,"ytdGridStateAwareBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],fB.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],fB.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],fB.prototype,"data",void 0);_.g([_.U({computed:"computeDisplayedContent(data)"}),_.N("design:type",Object)],fB.prototype,"content",void 0);
_.g([_.U({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],fB.prototype,"hasSecondaryColumnData",void 0);_.g([_.U({value:function(){return window.outerHeight>1024?3:2}}),
_.N("design:type",Number)],fB.prototype,"initialCount",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],fB.prototype,"pageSubtype",void 0);_.g([_.BF("ytd-section-list-renderer"),_.N("design:type",Object)],fB.prototype,"listRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],fB.prototype,"notActive",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],fB.prototype,"isConstrainedList",void 0);
_.g([_.U(),_.N("design:type",String)],fB.prototype,"responsiveSizing",void 0);_.g([_.PF("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],fB.prototype,"onRetrieveLocation",null);_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],fB.prototype,"onYtServiceRequestSent",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],fB.prototype,"onYtServiceRequestCompleted",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],fB);
_.F(fB,"ytd-two-column-browse-results-renderer",function(){if(TXi!==void 0)return TXi;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return TXi=u},{mode:2});var wTG;var Fui;var Q_=function(){var u=_.Q.apply(this,arguments)||this;u.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"]);u.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"]);u.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return u};
_.c(Q_,_.Q);_.I=Q_.prototype;_.I.attached=function(){this.requestElementsPerRow()};
_.I.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_]]"}}}}}};
_.I.onUpdateElementsPerRowAction=function(u){u&&this.elementsPerRow!==u&&(this.elementsPerRow=u)};
_.I.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.I.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.I.computeAlertStyle_=function(u){return u};
_.I.observerElementsPerRow=function(){this.elementsPerRow&&_.e8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.I.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.I.requestElementsPerRow=function(){_.xs(this.hostElement,"yt-request-elements-per-row")};
Q_.prototype.onIsVisibleChanged_=Q_.prototype.onIsVisibleChanged_;Q_.prototype.observerElementsPerRow=Q_.prototype.observerElementsPerRow;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Q_.prototype,"actionHandlerBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],Q_.prototype,"data",void 0);_.g([_.U({value:6,reflectToAttribute:!0}),_.N("design:type",Number)],Q_.prototype,"elementsPerRow",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Q_.prototype,"wrapButtons",void 0);_.g([_.U({value:_.E3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.N("design:type",Boolean)],Q_.prototype,"isMusic",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.N("design:type",String)],Q_.prototype,"alertStyle",void 0);_.g([_.U({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.N("design:type",Function)],Q_.prototype,"dismissBoundButtonTap_",void 0);_.g([_.U({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.N("design:type",Function)],Q_.prototype,"acceptBoundButtonTap_",void 0);_.g([_.JU("elementsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Q_.prototype,"observerElementsPerRow",null);_.g([_.JU("data.isVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Q_.prototype,"onIsVisibleChanged_",null);_.g([_.E9({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Q_);
_.F(Q_,"yt-alert-with-actions-renderer",function(){if(Fui===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;wTG===void 0&&(wTG=document.createElement("template"));var D=wTG;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Fui=u}u=Fui;return u},{mode:2});_.SX(_.rf(function(u){function K(x){var O={};return _.n(_.qC,{text:x,className:_.JB("ytPersonalGreetingViewModelHeadline",(O.ytPersonalGreetingViewModelHeadlineSmall=function(){return M()===48},O))})}
function l(x,O){return _.n("span",{el:x,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},K(O))}
var D=_.v1(_.DS(function(){var x;return(x=u.data())==null?void 0:x.rendererContext},void 0,void 0,void 0,!0)),d=_.o9("span"),C=_.o9("span"),W=function(){return u.data().canvasPromoData},M=function(){var x;
return(x=u.data().bannerHeight)!=null?x:56},q=_.h7y(D,{throttleMs:100}),v=_.h7y(d,{throttleMs:100}),G=_.h7y(C,{throttleMs:100}),t=function(){return v.width()-q.width()>1};
return _.n("yt-personal-greeting-view-model",{el:D,"aria-hidden":t,class:_.JB(u.className,"ytPersonalGreetingViewModelHost"),style:_.Fb({height:(0,_.Ac)(function(){return t()?0:M()})})},_.n(_.r,{cond:function(){return u.data().avatar&&!(G.width()+(u.data().avatar?48:0)-q.width()>1)},
then:function(){return _.n(_.mo,{data:function(){return u.data().avatar}},{decoratedAvatarViewModel:function(x){return _.n(_.Aa,{data:x.data,
className:_.JB("ytPersonalGreetingViewModelAvatar")})}})}}),_.n("h1",null,K(function(){var x;
return(W==null?void 0:(x=W())==null?void 0:x.headline)||(G.width()+(u.data().avatar?48:0)-q.width()>1?u.data().shorterGreeting:u.data().greeting)})),l(C,function(){return u.data().greeting}),l(d,function(){return u.data().shorterGreeting}))},"ej"),"yt-personal-greeting-view-model",{props:{data:_.M6,
className:_.M6}});var Px=function(){var u=_.Q.apply(this,arguments)||this;u.hidden=!1;u.isConstrainedList=!1;u.darkerDarkTheme=_.S("web_darker_dark_theme");u.responsiveSizing="COMPACT";u.attachedPlayers=_.S("kevlar_channel_trailer_multi_attach")?[]:void 0;u.player=null;u.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return u};
_.c(Px,_.Q);_.I=Px.prototype;
_.I.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}}}}};
_.I.created=function(){var u=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){u.disposeMastheadAd()}]};
_.I.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new zlH(this.refresh,this.contents))};
_.I.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.I.activeChanged=function(){var u=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=u)};
_.I.tabsChanged=function(){var u=this,K,l;if(this.pageSubtype==="channels"||_.S("kevlar_tab_gestures_for_tabbed_header_data")&&((K=this.data)==null?0:(l=K.header)==null?0:l.carouselHeaderRenderer))this.tabGestures=new f2(this.contents,this.contents,this.hostElement,this.header,function(W){u.ytdReduxBehavior.dispatch(W)});
var D,d,C;K=(D=this.data)==null?void 0:(d=D.contents)==null?void 0:(C=d.twoColumnBrowseResultsRenderer)==null?void 0:C.tabs;this.tabGestures&&this.tabGestures.tabsChanged(K)};
_.I.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.I.engagementPanelsChanged=function(){var u=_.GB().resolve(_.gP);if(u){if(this.engagementPanels)for(var K=_.y(this.engagementPanels),l=K.next();!l.done;l=K.next()){var D=void 0;(l=(D=l.value.identifier)==null?void 0:D.tag)&&u.panelMap.delete(l)}this.engagementPanels=[];var d;K=_.y(((d=this.data)==null?void 0:d.panels)||[]);for(d=K.next();!d.done;d=K.next()){d=_.b(d.value,_.dHV);var C=l=void 0,W=void 0,M=void 0;if(D=((l=d)==null?void 0:l.targetId)||((C=d)==null?void 0:C.panelIdentifier)||((W=d)==
null?void 0:(M=W.identifier)==null?void 0:M.tag))C=l=void 0,(C=(l=u).registerPanelContent)==null||C.call(l,D,{engagementPanelSectionListRenderer:d}),this.engagementPanels.push(d)}}};
_.I.onStampFinished=function(){var u=this;_.W_(this,function(){if(u.tabGestures){var K=u.tabGestures;if(K.scrollPositionNeedsUpdate){var l=_.GB().resolve(_.vv(_.GT)),D;if((D=K.selectedTab)!=null&&D.title&&l&&(D=l.getCurrentPage())){if(K.scrollPositionForTabs.has(K.selectedTab.title)){var d,C;l=(C=(d=l.getCurrentPage())==null?void 0:d.clientHeight)!=null?C:0;d=K.scrollPositionForTabs.get(K.selectedTab.title);D.setScrollTop(d);l>d+100&&(K.scrollPositionNeedsUpdate=!1)}else D.setScrollTop(Math.min(K.lastVisitedTabScrollPosition!==
void 0?K.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,K.tabsStartAtInPx)),K.scrollPositionNeedsUpdate=!1;K.ytdReduxDispatch(K6I(!1))}}}})};
_.I.loadPage_=function(u){this.initCsi();u&&(this.data=u);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.I.getTitle=function(u){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",u))return this.get("microformat.microformatDataRenderer.title",u);if(this.get("header.feedTabbedHeaderRenderer.title",u))return _.WI(this.get("header.feedTabbedHeaderRenderer.title",u));if(this.get("header.interactiveTabbedHeaderRenderer.title",u))return this.get("header.interactiveTabbedHeaderRenderer.title",u);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
u))return _.WI(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",u));var K,l;return _.S("enable_page_header_page_title")&&(u==null?0:(K=u.header)==null?0:(l=K.pageHeaderRenderer)==null?0:l.pageTitle)?u.header.pageHeaderRenderer.pageTitle:""};
_.I.updateTitle=function(u){_.xs(this.hostElement,"yt-update-title",this.getTitle(u))};
_.I.initCsi=function(){_.ag(this.pageSubtype||"browse",["ol","cpt"])};
_.I.getPlayer=function(){if(_.S("kevlar_channel_trailer_multi_attach")){for(var u=_.y(this.attachedPlayers),K=u.next();!K.done;K=u.next())if(K=K.value,K.isConnected||_.LV(this.hostElement,K))return K;return null}return this.player};
_.I.getPlayerContainer=function(){return null};
_.I.onPlayerAttached=function(u,K){_.S("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(K):this.player=K};
_.I.onPlayerDetached=function(u,K){_.S("kevlar_channel_trailer_multi_attach")?(u=this.attachedPlayers.indexOf(K),u<0||this.attachedPlayers.splice(u,1)):this.player=null};
_.I.getServiceTrackingParams=function(){var u,K;return((u=this.data)==null?void 0:(K=u.responseContext)==null?void 0:K.serviceTrackingParams)||[]};
_.I.setMastheadAd=function(u){u&&u.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=u&&u.mastheadAd};
_.I.dataChanged=function(){var u=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.ToE();_.W_(this,function(){_.bI(u.hostElement,"ytd-update-grid-state-action")})};
_.I.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.I.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var u=this.data.alerts;return u&&u.find(function(K){return!!K.alertWithActionsRenderer})}};
_.I.computeGreetingData=function(){if(this.data&&this.data.alerts){var u=this.data.alerts;return u&&u.find(function(K){return!!K.personalGreetingViewModel})}};
_.I.computeHasMemberHubProfileRenderer=function(u){var K;return!!(u==null?0:(K=u.header)==null?0:K.memberHubProfileRenderer)};
_.I.handleAlertCommand=function(u){this.get("alertCommand.alert.alertWithActionsRenderer",u)&&(u=_.b(u,MnI),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",u.alert))};
_.I.handleYtPlaylistDeletionRedirect=function(u){u=this.get("playlistDeletionRedirectCommand.redirectEndpoint",u);_.xs(this.hostElement,"yt-navigate",{endpoint:u})};
_.I.computeFluidWidth=function(u,K,l){if(K==="mini_app"||l)return!0;var D,d,C;u=u==null?void 0:(D=u.contents)==null?void 0:(d=D.twoColumnBrowseResultsRenderer)==null?void 0:(C=d.tabs)==null?void 0:C.find(function(q){var v;return q==null?void 0:(v=q.tabRenderer)==null?void 0:v.selected});
if(!u)return!1;var W,M;return!!((W=u.tabRenderer)==null?0:(M=W.content)==null?0:M.richGridRenderer)&&!["channel","channels","playables"].includes(K)};
_.I.computeHeaderFluidWidth=function(u){return u==="hashtag-landing-page"};
_.I.computeHasSidebar=function(u){var K;return!!(u.sidebar||((K=u.header)==null?0:K.playlistHeaderRenderer))};
_.I.computeHasPageHeaderSidebar=function(u){var K,l;return!!((K=u.header)==null?0:(l=K.pageHeaderRenderer)==null?0:l.enableSidebarView)};
_.I.computeUseUnifiedShowPageLayout=function(u){if(!u||this.pageSubtype!=="show"||!u.sidebar||!u.sidebar.playlistSidebarRenderer)return!1;u=u.sidebar.playlistSidebarRenderer;if(!u.items)return!1;for(var K=0;K<u.items.length;K++)if(_.b(u.items[K],Rg)){var l=void 0;return((l=_.b(u.items[K],Rg))==null?void 0:l.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.I.computeIsConstrainedList=function(u){return _.S("web_enable_constrained_list_subscriptions_channels")&&u==="subscriptions-channels"};
_.I.computeResponsiveSizing=function(u){return u==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.MN.Object.defineProperties(Px.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var u,K;return((u=this.data)==null?0:(K=u.header)==null?0:K.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var u,K;if(!((u=this.data)==null?0:(K=u.sidebar)==null?0:K.playlistSidebarRenderer))return!1;var l;return(l=this.data)!=null&&l.header?!1:!0}}});
_.MN.Object.defineProperties(Px,{template:{configurable:!0,enumerable:!0,get:function(){if(UQp===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);UQp=u}u=UQp;return u}}});
Px.prototype.dataChanged=Px.prototype.dataChanged;Px.prototype.onPlayerDetached=Px.prototype.onPlayerDetached;Px.prototype.onPlayerAttached=Px.prototype.onPlayerAttached;Px.prototype.onStampFinished=Px.prototype.onStampFinished;Px.prototype.engagementPanelsChanged=Px.prototype.engagementPanelsChanged;Px.prototype.scrollAtTopChanged=Px.prototype.scrollAtTopChanged;Px.prototype.tabsChanged=Px.prototype.tabsChanged;Px.prototype.activeChanged=Px.prototype.activeChanged;
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Px.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.nl),_.N("design:type",Object)],Px.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Px.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Px.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.zo.YtPageBehavior),_.N("design:type",Object)],Px.prototype,"ytPageBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Px.prototype,"ytdGuideStateAwareBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Px.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Px.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Px.prototype,"hidden",void 0);
_.g([_.U(),_.N("design:type",Object)],Px.prototype,"mastheadAdData",void 0);_.g([_.U({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.N("design:type",Object)],Px.prototype,"alertBannerData",void 0);_.g([_.U({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.N("design:type",Object)],Px.prototype,"greetingData",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],Px.prototype,"pageSubtype",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.N("design:type",Boolean)],Px.prototype,"hasMemberHubProfileRenderer",void 0);_.g([_.U({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Px.prototype,"hasSidebar",void 0);_.g([_.U({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Px.prototype,"hasPageHeaderSidebar",void 0);
_.g([_.U({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],Px.prototype,"roundedContainer",void 0);_.g([_.U({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Px.prototype,"useUnifiedShowPageLayout",void 0);_.g([_.U({computed:"computeIsConstrainedList(pageSubtype)"}),_.N("design:type",Object)],Px.prototype,"isConstrainedList",void 0);
_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Px.prototype,"usePlaylistHeaderRenderer",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Px.prototype,"useOldPlaylistSidebarRenderer",null);_.g([_.U({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.N("design:type",Boolean)],Px.prototype,"fluidWidth",void 0);_.g([_.U({selector:function(u){return u.ui.scrollAtTop}}),
_.N("design:type",Boolean)],Px.prototype,"scrollAtTop",void 0);_.g([_.U({selector:_.NBI}),_.N("design:type",Boolean)],Px.prototype,"tabGesturesIsActive",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Px.prototype,"darkerDarkTheme",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.N("design:type",Boolean)],Px.prototype,"disableHeaderFluidWidth",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.N("design:type",String)],Px.prototype,"responsiveSizing",void 0);_.g([_.BF("ytd-two-column-browse-results-renderer"),_.N("design:type",HTMLElement)],Px.prototype,"contents",void 0);_.g([_.BF("#header"),_.N("design:type",HTMLElement)],Px.prototype,"header",void 0);_.g([_.BF("ytd-refresh"),_.N("design:type",Object)],Px.prototype,"refresh",void 0);
_.g([_.JU("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Px.prototype,"activeChanged",null);_.g([_.JU("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Px.prototype,"tabsChanged",null);_.g([_.JU("scrollAtTop"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Px.prototype,"scrollAtTopChanged",null);
_.g([_.U(),_.N("design:type",Object)],Px.prototype,"engagementPanels",void 0);_.g([_.JU("data.panels"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Px.prototype,"engagementPanelsChanged",null);_.g([_.PF("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Px.prototype,"onStampFinished",null);
_.g([_.PF("yt-player-attached"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Element]),_.N("design:returntype")],Px.prototype,"onPlayerAttached",null);_.g([_.PF("yt-player-detached"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Element]),_.N("design:returntype")],Px.prototype,"onPlayerDetached",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Px.prototype,"dataChanged",null);
_.g([_.T({is:"ytd-browse"})],Px);_.a8.registerService(_.h6L,Px);
_.YV();
}catch(e){_._DumpException(e)}
try{
_.Zu("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 cD=function(u){if(!u)return"browse";var K=u.page,l=u.url,D,d,C,W=(D=u.response)==null?void 0:(d=D.responseContext)==null?void 0:(C=d.webResponseContextExtensionData)==null?void 0:C.pageTheme;if(W)K=W.toLowerCase().replace(/_/g,"-");else if(K!=="watch"&&K!=="learning_journey_watch"){var M,q;if((K==="browse"||K==="settings")&&((M=u.response)==null?0:(q=M.sidebar)==null?0:q.settingsSidebarRenderer))K="WEB_PAGE_TYPE_SETTINGS";else{var v,G;K==="browse"&&((v=u.response)==null?0:(G=v.metadata)==null?
0:G.channelMetadataRenderer)?K="channel":l&&(K=_.PI(l)||K)}}return K},KYG=function(){var u=_.lZ("yt.aba.att");
return u?u:_.xk.instance!==void 0?_.xk.instance.vOC.bind(_.xk.instance):null},lhH=function(u,K){var l;
return _.H(function(D){return(l=KYG())?D.return(l(u,K,6E4)):D.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},DPB=function(u,K,l,D,d){K=K===void 0?[]:K;
d=d?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:d}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.GI(u),dialogMessages:K.map(function(C){return _.GI(C)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.GI(l),serviceEndpoint:d}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.GI(D)}}}}}},dPG=function(u){var K=!!_.y1().queueProxy;
var l,D,d;u=u==null?void 0:(l=u.response)==null?void 0:(D=l.currentVideoEndpoint)==null?void 0:(d=D.watchEndpoint)==null?void 0:d.playlistId;return!(!K&&!u)},CyE=function(u,K){var l=_.B3();
if(dPG(u))return l.playlistWatchPageActivation=!0;switch(cD(K)){case "yts-products":return l.productDetailsPageActivation=!0;case "mini_app":return l.miniAppPageActivation=!0;case "playables":return l.playablesDestPageActivation=!0;default:return!1}},Ih_=function(u,K,l){for(var D=typeof u==="string"?u.split(""):u,d=u.length-1;d>=0;--d)d in D&&K.call(l,D[d],d,u)},yp6=function(u,K){K=_.vyq(u,K);
K>=0&&_.Yy(u,K)},s92=function(u){return Array.prototype.concat.apply([],arguments)},of_=function(u){var K=0;
K=K===void 0?0:K;if(!_.rH(u))throw _.qS("uint64");var l=typeof u;switch(K){case 512:switch(l){case "string":return _.M2b(u);case "bigint":return String((0,_.BE)(64,u));default:return _.WaZ(u)}case 1024:switch(l){case "string":return _.qBH(u);case "bigint":return _.XH((0,_.BE)(64,u));default:return _.Hsq(u)}case 0:switch(l){case "string":return _.M2b(u);case "bigint":return _.XH((0,_.BE)(64,u));default:return _.o0H(u)}default:return _.o2(K,"Unknown format requested type for int64")}},WYI=function(u){u!=
null&&(u=u.JSC$8745_value_||"",u=typeof u==="string"?u:new Uint8Array(u));
return u},Hio=function(u){for(var K=_.uY.apply(1,arguments),l=u[0],D=0;D<u.length-1;D++)l+=String(K[D]),l+=u[D+1];
K=document.implementation.createHTMLDocument("");D=K.createElement("style");K.head.appendChild(D);K=D.sheet;K.insertRule(l,0);if(K.cssRules.length===1&&(l=K.cssRules[0],l instanceof CSSStyleRule))return new _.GG(l.cssText.replace(/</g,"\\3C "))},MBo=function(u,K){if(/-[a-z]/.test(K))return null;
if(_.VkB&&u.dataset){if(_.sRr()&&!(K in u.dataset))return null;u=u.dataset[K];return u===void 0?null:u}return u.getAttribute("data-"+_.Qi(K))},$PH=function(){var u=q6G;
_.lZ("yt.ads.biscotti.getId_")||_.$L("yt.ads.biscotti.getId_",u)},nfG=function(u){_.$L("yt.ads.biscotti.lastId_",u)},vf_=function(){var u={};
for(_.kn=new rp_(u.handleError===void 0?_.m0:u.handleError,u.logEvent===void 0?_.YE:u.logEvent);_.Z_.length>0;)switch(u=_.Z_.shift(),u.type){case "ERROR":_.kn.logError(u.payload);break;case "EVENT":_.kn.logEvent(u.eventType,u.payload)}},G9o=function(u,K,l){return _.SVH(function(D){return l?D.userIdentifier!==void 0&&!u.includes(D.userIdentifier)&&l.includes(D.publicName):D.userIdentifier!==void 0&&!u.includes(D.userIdentifier)},K)},tBH=function(u){var K,l;
return _.H(function(D){if(D.nextAddress==1)return K=_.iZ("YtIdbMeta hasAnyMeta other"),D.yield(_.SVH(function(d){return d.userIdentifier!==void 0&&d.userIdentifier!==K},u),2);
l=D.yieldResult;return D.return(l.length>0)})},S6k=function(u,K){xPp||(xPp=_.YL.addLowPriorityJob(function(){var l,D,d,C,W;
return _.H(function(M){switch(M.nextAddress){case 1:return M.yield(_.nU(),2);case 2:l=M.yieldResult;if(!l)return M.return();D=!0;_.Qg(M,3);return M.yield(G9o(u,l,K),5);case 5:d=M.yieldResult;if(!d.length){D=!1;M.jumpTo(6);break}C=d[0];return M.yield(_.ys(C.actualName),7);case 7:return M.yield(_.WA(C.actualName,l),6);case 6:_.I$(M,4);break;case 3:W=_.iY(M),_.Yn(W),D=!1;case 4:_.YL.cancelJob(xPp),xPp=0,D&&S6k(u,K),_.TG(M)}})}))},bik=function(){var u;
return _.H(function(K){return K.nextAddress==1?K.yield(_.nU(),2):(u=K.yieldResult)?K.return(tBH(u)):K.return(!1)})},OiG=function(u){var K=100;
K=K===void 0?500:K;var l,D,d,C,W,M;return _.H(function(q){return q.nextAddress==1?(l=_.E3("INNERTUBE_CONTEXT_CLIENT_NAME",0),D=[l,(0,_.vA)()-2592E6],d=[l,(0,_.vA)()],C=IDBKeyRange.bound(D,d),q.yield(_.AUy(u),2)):q.nextAddress!=3?(W=q.yieldResult,M=[],q.yield(_.o$(W,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(v){M.length=0;return _.G_(v.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:C,direction:"prev"},function(G){if(G.getValue()&&M.length<K)return M.push(G.getValue()),
G.delete().then(function(){return G.continue()})})}),3)):q.return(M)})},cp_=function(){var u;
return _.H(function(K){if(K.nextAddress==1)return K.yield(_.nU(),2);u=K.yieldResult;if(!u||!_.TB()&&!_.S("nwl_init_require_datasync_id_killswitch")||!_.qpR())return K.jumpTo(0);_.nUZ=!0;_.$E9.isNwlInitialized=_.nUZ;return K.yield(_.orN().awaitInitialization(),0)})},aV=function(u,K){_.Qth[u]=!0;
var l=_.tV();l&&l.publish.apply(l,arguments);_.Qth[u]=!1},z5p=function(){if(_.oHo()&&!ahp){var u=function(l){l=l.data;
if(l.op==="serializedGelBatch"){var D=_.Ptb.get(l.key);D&&(_.jTb(l.serializedBatch,D.client,D.resolve,D.networklessOptions,D.isIsolated,D.useVSSEndpoint,D.dangerousLogToVisitorSession,D.requestsOutstanding),_.Ptb.delete(l.key))}},K=_.sbq();
K&&(K.addEventListener("message",u),K.onerror=function(){_.Ptb.clear()});
ahp=!0}},zD=function(){this.relativeTimeStart_=_.x2()},e52=function(u,K){u!=null&&this.append.apply(this,arguments)},R5V=function(){return _.Ln("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},UPE=function(u,K,l){l=l===void 0?!1:l;
var D,d,C,W,M;return _.H(function(q){switch(q.nextAddress){case 1:_.Bv("SOCS",u,34128E3,"youtube.com",!0);if(_.Uf)return d=fetch(K,{method:"POST",mode:_.Iy(K),credentials:_.CN(K),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),C=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Iy("/upgrade_visitor_cookie?eom=1"),credentials:_.CN("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),q.yield(Promise.all([d,C]).then(function(v){return v[1]}),5);
fetch(K,{method:"POST",mode:_.Iy(K),credentials:_.CN(K),cache:"no-store",headers:{"Content-Type":"text/plain"}});return q.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Iy("/upgrade_visitor_cookie?eom=1"),credentials:_.CN("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:D=q.yieldResult;q.jumpTo(3);break;case 5:D=W=q.yieldResult;case 3:if(!D.ok)throw Error("of");return q.yield(D.text(),7);case 7:M=q.yieldResult,
!M.includes('"state_switch":true')&&!l||M.includes("skip_reload_for_test")||window.location.reload(),_.TG(q)}})},fhE=function(u){return _.H(function(K){return K.nextAddress==1?K.yield(UPE(u.socsCookie,u.savePreferenceUrl,!0),2):K.return()})},Q96=function(u){return _.H(function(K){return K.nextAddress==1?K.yield(UPE(u.socsCookie,u.savePreferenceUrl),2):K.return()})},Jpk=function(u){u=u.xhr.responseText;
if(!_.dq(u,")]}'"))throw new eE;u=JSON.parse(u.substr(4));if((u.type||1)>1)throw new eE;u=u.id;nfG(u);RV=_.H3(u);Py2(18E5,2);return u},B_2=function(u,K){K=new j92(K);
nfG("");RV=_.X2N(K);u>0&&Py2(12E4,u-1);throw K;},Py2=function(u,K){_.aK(function(){_.F0i().then(Jpk,function(l){return B_2(K,l)}).thenCatch(_.iO)},u)},q6G=function(){var u=_.N2_();
if(u!==void 0)return _.YU(u);RV||(RV=_.F0i().then(Jpk).thenCatch(function(K){return B_2(2,K)}));
return RV},p4E=function(){var u=document;
return _.iL(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(K){return"on"+K.toLowerCase()in u})},iiG=function(u){u.addEventListener("click",function(K){var l=K.target;
l&&l.getAttribute("href")&&(l=l.getAttribute("href"),_.s2(window,l,"_blank"),K.preventDefault(),K.stopImmediatePropagation())})},T_2=function(u){var K,l,D,d=(D=(l=((K=u.mainDownloadsListEntity)!=null?K:{})[_.Htr])==null?void 0:l.refresh)!=null?D:"",C;
u=(C=u.refresh)==null?void 0:C[d];d=u!=null?u:{};return(d==null?0:d.refreshTime)?Number(d==null?void 0:d.refreshTime):0},w4H=function(u,K){var l=_.VM(u);
return K.every(function(D){var d;D=D==null?void 0:(d=D.playbackDataEntity)==null?void 0:d.key;if(!D)return!1;d=_.zI(_.OV(D).entityId,"mainVideoEntity");return!!l[d]})},FY2=function(u){u=_.TI(u.entities);
return _.a3Z(u).length},VBV=function(u,K){if(K){var l;
u=(l=_.eZ(u.entities,"downloadQualityPickerEntity",K))!=null?l:void 0}else u=void 0;return u},k9E=function(){gfE||(_.sd=_.oxq,gfE=new N_I);
return gfE},ZiG=function(u){var K=document.getElementsByTagName("ytd-enforcement-message-view-model");
K.length===0||getComputedStyle(K[0]).display==="none"?u(0,"p.h_"):u(1,"p.h_")},Y6p=function(){UX=0;
var u=[_.iv(!0)];fb&&_.bI(fb,"yt-window-resized",u)},ApV=function(){UX||(UX=_.YL.addLowPriorityJob(Y6p,200))},mPp=function(){Q4=0;
X4E=_.g0H(document);var u=[X4E];fb&&_.bI(fb,"yt-window-scrolled",u)},h5V=function(){Q4||(Q4=_.YL.addLowPriorityJob(mPp,200))},LYp=function(u){u=u===void 0?null:u;
Efo.push(_.np(window,"resize",ApV));Efo.push(_.np(window,"scroll",h5V));u&&(fb=u)},KqH=function(){var u={isWide:_.jg.get("wide","0")==="1"},K=_.jy();
if(K=K.getFlag(165)||K.getFlag(174))u.theme=_.Nu(!0);if(_.ulR()){var l=_.ge()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";u.systemTheme=l}!K&&_.S("parent_tools_enable_app_settings")&&_.oK(window.location.href).theme!==void 0&&(u.theme=_.Nu());if((K=PD)?!_.k$.equals(K,u):u)K={currentValue:u},uX6&&(K.timeSinceLastSnapshotSecs=Math.round(((0,_.vA)()-uX6)/1E3)),PD&&(K.previousValue=PD),_.YE("appSettingsCaptured",K),PD=u,uX6=(0,_.vA)()},l8_=function(u){_.H(function(K){if(K.nextAddress==1)return K.yield(u.delete("yt-appshell-assets"),
2);
_.TG(K)})},DNB=function(u){return _.sv((0,_.OhN)(),u)},C0G=function(){var u;
_.H(function(K){return K.nextAddress==1?K.yield(Jv.getInstance(),2):(u=K.yieldResult)?K.yield(dNI(u),0):K.jumpTo(0)})},yCI=function(){var u;
_.H(function(K){return K.nextAddress==1?K.yield(jE.getInstance(),2):(u=K.yieldResult)?K.yield(I8V(u),0):K.jumpTo(0)})},sNE=function(u){l8_(u);
C0G();yCI()},orH=function(u){var K,l;
return _.H(function(D){if(D.nextAddress==1)return D.yield(_.bDR(u),2);if(K=D.yieldResult){var d;a:{if(K.headers&&(d=K.headers.get("date"))&&(d=Date.parse(d),!isNaN(d))){d=Math.round((0,_.vA)()-d);break a}d=-1}l=d;if(l>-1)return D.return(l)}return D.return(-1)})},WqG=function(){var u=_.lL.caches,K=_.L0("IS_SHELL_LOAD"),l,D;
_.H(function(d){if(d.nextAddress==1)return l=-1,K?d.yield(orH(u),3):(D=_.Fi(),l=Math.round((0,_.vA)()-D),d.jumpTo(2));d.nextAddress!=2&&(l=d.yieldResult);l>=0&&l<2147483648&&_.Zy({appInstallDataAgeMs:l});_.TG(d)})},HnH=function(u){var K=_.lr(_.lL.location.href),l={};
"absolute_experiments forced_experiments expflag conditional_experiments client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url build mloader debugjs".split(" ").forEach(function(D){var d=K.JSC$9960_queryData_.getValues(D);if(d==null?0:d.length)l[D]=d});
return _.cK(u,new Map(Object.entries(l)))},MR_=function(u){u=u.match(/(.*)::.*::.*/);
if(u!==null)return u[1]},qWk=function(u){if(_.F9r()){var K=Object.keys(window.localStorage);
K=_.y(K);for(var l=K.next();!l.done;l=K.next()){l=l.value;var D=MR_(l);D===void 0||u.includes(D)||self.localStorage.removeItem(l)}}},$NV=function(){if(!_.F9r())return!1;
var u=_.iZ(),K=Object.keys(window.localStorage);K=_.y(K);for(var l=K.next();!l.done;l=K.next())if(l=MR_(l.value),l!==void 0&&l!==u)return!0;return!1},nr2=function(u){return _.r1("NotificationsDisabled",u)},rC_=function(){return Notification.permission!="granted"?Promise.resolve():_.kZV().then(function(u){return u?u.pushManager.getSubscription().then(function(K){if(K)return Promise.resolve();
K={userVisibleOnly:!0,applicationServerKey:_.Wa("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return u.pushManager.subscribe(K).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},vr_=function(u){return _.kZV().then(function(K){if(!K||!K.active)return Promise.reject(new _.wv("serviceworker.postMessage",u,K));
try{return K.active.postMessage(u),Promise.resolve()}catch(l){return Promise.reject(l)}})},GSo=function(){vr_({type:"notifications_register",
data:_.E3("ID_TOKEN")})},tR6=function(){if(!_.L0("LOGGED_IN"))return Promise.resolve(!1);
var u=_.bZ("service_worker_push_force_notification_prompt_tag");return u?_.bJ("PromptTags").then(function(K){if(!K)return!0;var l=[];try{l=JSON.parse(K)}catch(D){return!1}return l&&l.indexOf(u)==-1}):Promise.resolve(!1)},xN_=function(){var u=_.Sg("service_worker_push_prompt_delay_microseconds");
return u?_.bJ("PromptTime").then(function(K){return Promise.resolve(Date.now()-u>(K||0))}):Promise.resolve(!0)},SWI=function(){var u=_.Sg("service_worker_push_logged_out_prompt_watches");
return u==-1?Promise.resolve(!1):_.bJ("WatchCount").then(function(K){return K>=u})},bnp=function(){var u=_.be(document,"yt-push-prompt-modal-bg");
u&&_.Jq(u)},On_=function(){return _.Sg("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.bJ("PromptCount").then(function(u){u||(u=0);
return Promise.resolve(u<_.Sg("service_worker_push_prompt_cap"))})},cC_=function(u){return _.L0("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.L0("LOGGED_IN")&&(u===void 0?0:u)?tR6().then(function(K){if(K)return!0;
K=[On_(),xN_()];_.L0("LOGGED_IN")||K.push(SWI());return Promise.all(K).then(function(l){return l.every(function(D){return D})})}):Promise.resolve(!1)},a8p=function(){_.bJ("PromptCount").then(function(u){return _.r1("PromptCount",u+1)}).then(function(){return _.r1("PromptTime",Date.now())}).then(function(){var u=_.bZ("service_worker_push_force_notification_prompt_tag");
if(u)return _.bJ("PromptTags").then(function(K){var l=[];if(K)try{l=JSON.parse(K)}catch(D){return!1}l||(l=[]);l.push(u);return _.r1("PromptTags",JSON.stringify(l))})})},eSV=function(){zSp||bnp()},RS2=function(u){u.style.zIndex=2147483648;
u.style.pointerEvents="auto";u.style.backgroundColor="rgba(0, 0, 0, 0.6)";u.style.width="100%";u.style.height="100vh";u.style.position="absolute";u.style.top="0";u.style.left="0";u.style.border="none"},UNI=function(){var u=_.be(document,"yt-push-prompt-modal-bg");
zSp=_.S("service_worker_push_prompt_modal_ignore_click");u?RS2(u):(u=_.Z0("div",{id:"yt-push-prompt-modal-bg"}),RS2(u),document.body.appendChild(u),_.ePw(document,"click",eSV))},f82=function(){var u=arguments;
_.S("service_worker_push_prompt_modal_enable")&&UNI();return Notification.requestPermission().then(function(K){bnp();var l=document.getElementById("ticker");l&&(l.className=l.classList.remove("show"));if(K=="granted")return rC_().then(function(){nr2(!1);GSo();return Promise.resolve(!0)});
K=="denied"&&GSo();return Promise.resolve(!1)}).catch(function(){bnp();
return Promise.reject.apply(Promise,_.Am(u))})},QN2=function(u){u=u===void 0?!1:u;
var K=_.C3q().client;if(K&&K.browserVersion){var l=K.browserVersion,D=K.browserName=="CHROME"&&_.n9(l,"50.0.0")<0;K=K.browserName=="OPERA"&&_.n9(l,"42.0.0")<0;if(D||K)return Promise.resolve()}return _.AqB().then(function(d){if(!d)return Promise.resolve();d=rC_().then(function(){return vr_({type:"notifications_check_registration",data:_.E3("ID_TOKEN")})});
return Notification.permission!="default"?d.catch(function(){}):d.then(function(){return cC_(u)}).then(function(C){if(C)return a8p(),f82().then(function(){})}).catch(function(){})})},P0_=function(u){return _.ZVE(u)?QN2():Promise.resolve()},JCI=function(u){var K=u.installing||u.waiting;
return u.active||!K?Promise.resolve(u):new Promise(function(l){var D=function(d){d=d.target;if(d.state==="activated"||d.state==="redundant")K.removeEventListener("statechange",D),l(u)};
K.addEventListener("statechange",D)})},jNV=function(){var u=new _.vvH("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.UA(u,{mainAppWeb:_.Ib()});var K=_.FS0;_.S("service_worker_forward_exp_params")&&(K=HnH(K));try{var l=_.yan(K).catch(function(){_.f5(u,"FAILURE");return new Promise(function(){})});
_.S("service_worker_push_enabled")&&l.then(function(D){_.f5(u,"SUCCESS");return D}).then(JCI).then(P0_)}catch(D){if(_.f5(u,"FAILURE"),D.name!=="SecurityError")throw D;
}},BME=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&jNV()},p_H=function(u,K){var l={};
K&&(l.serializedYpcFamilyCreateLoggingParams=K);_.YE(u,l);_.AV()},ino=function(u,K){var l={};
l.serializedYpcRefundFlowLoggingParams=K;u&&(l.eventType=u);_.YE("ypcRefundFlowEvent",l);_.AV()},TM2=function(u){u&&_.o_q("transactionFlowSucceeded",u)},w_i=function(u){u&&_.Kx("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",u,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},Fqi=function(u){var K,l,D,d,C,W,M;
_.H(function(q){if(q.nextAddress==1)return q.yield(_.m5n(),2);if(q.nextAddress!=3){if(!q.yieldResult)return q.return(!1);K=[];return q.yield(_.eX.keys(),3)}l=q.yieldResult;D=_.y(l);for(d=D.next();!d.done;d=D.next())C=d.value,W=_.Atq(C),M=W.datasyncId,!M||u.includes(M)||K.push(_.eX.delete(C));return q.return(Promise.all(K).then(function(v){return v.some(function(G){return G})}))})},VRV=function(){var u,K,l,D,d,C,W;
return _.H(function(M){if(M.nextAddress==1)return M.yield(_.m5n(),2);if(M.nextAddress!=3){if(!M.yieldResult)return M.return(!1);u=_.iZ("cache contains other");return M.yield(_.eX.keys(),3)}K=M.yieldResult;l=_.y(K);for(D=l.next();!D.done;D=l.next())if(d=D.value,C=_.Atq(d),(W=C.datasyncId)&&W!==u)return M.return(!0);return M.return(!1)})},gr2=function(){var u=_.GB().resolve(_.vv(_.ijC));
return u?u.getCurrentTime():0},NMk=function(){var u,K,l,D,d,C,W,M,q,v,G,t,x,O;
return _.H(function(a){switch(a.nextAddress){case 1:u={},K=_.LBr(),l=_.y(Object.entries(K)),D=l.next();case 4:if(D.done){a.jumpTo(3);break}d=D.value;C=_.y(d);W=C.next().value;M=C.next().value;q=W;v=M;if(!v){a.jumpTo(5);break}return a.yield(v(),8);case 8:u[q]=a.yieldResult;case 5:D=l.next();a.jumpTo(4);break;case 2:G=_.y(void 0),t=G.next();case 9:if(t.done){a.jumpTo(3);break}x=t.value;O=K[x];if(!O){a.jumpTo(10);break}return a.yield(O(),13);case 13:u[x]=a.yieldResult;case 10:t=G.next();a.jumpTo(9);
break;case 3:return a.return(u)}})},kSV=function(){var u;
_.H(function(K){if(K.nextAddress==1)return K.yield(NMk(),2);u=K.yieldResult;return K.yield(navigator.clipboard.writeText(JSON.stringify(u,null,2)),0)})},Znp=function(u,K){return _.eZ(u.entities,"superThanksSelectedTierEntity",K)},YW2=function(u,K){var l=_.WAh();
_.kD(function(){var D=u.value;if(D)return _.Jvo(D,K),_.jVH(D,K,void 0,void 0,void 0,l)},[K])},ACk=function(u){var K;
return(K=u.sharedUi)==null?void 0:K.currentPageType},X__=function(u,K){return{popup:{searchSuggestionReportDialog:{searchQuery:u,
title:_.QQ("SBOX_INAPPROPRIATE_TITLE"),suggestions:K,categoryLabel:_.QQ("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.QQ("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.QQ("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.QQ("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.QQ("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.QQ("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.QQ("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.QQ("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.QQ("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.QQ("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},mNH=function(u){var K,l,D,d,C,W,M,q,v,G,t,x,O,a,f,B,p,V,m;
return _.H(function(Z){switch(Z.nextAddress){case 1:return Z.yield(_.fm(),2);case 2:return(K=Z.yieldResult)?Z.yield(_.$H9(K),3):Z.return();case 3:l=Z.yieldResult;if(!l)return Z.return();d=((D=l.offlineVideos)==null?void 0:D.length)||0;W=((C=l.offlinePlaylists)==null?void 0:C.length)||0;if(d===0&&W===0)return Z.return();M=0;if(l.offlineVideos)for(q=_.y(l.offlineVideos),v=q.next();!v.done;v=q.next())G=v.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===G.videoState&&(M+=1);u.offline_videos_count=d.toString();
_.S("kevlar_log_offline_current_network_type_ks")||(u.offline_current_network_type=(t=_.X09())!=null?t:"CONN_INVALID");_.S("kevlar_log_updated_time_for_smart_downloads")&&(x=_.Mu().getState().entities,O=_.ZJ(x),a=T_2(x),u.offline_smart_downloads_last_sync_time_ms=O.toString(),u.offline_smart_downloads_next_sync_time_ms=a.toString());u.offline_videos_playable=M.toString();u.offline_playlists_count=W.toString();if(!_.S("woffle_used_state_report")){Z.jumpTo(4);break}l.offlineVideos&&(f=l.offlineVideos.reduce(function(A,
h){h.downloadedBytes&&(A+=Number(h.downloadedBytes));return A},0).toString())&&(u.offline_used_disk_space_bytes=f);
if(!((B=navigator)==null?0:(p=B.storage)==null?0:p.estimate)){Z.jumpTo(4);break}return Z.yield(navigator.storage.estimate(),6);case 6:V=Z.yieldResult,u.offline_free_disk_space_bytes=(((m=V)==null?void 0:m.quota)||0).toString();case 4:u.offline_client_state=JSON.stringify(l),_.TG(Z)}})},hSB=function(u){u=_.y(u);
for(var K=u.next(),l={};!K.done;l={setter$jscomp$5:void 0},K=u.next()){var D=K.value;K=D.params;D=D.service;K&&D&&(l.setter$jscomp$5=_.XE6[D],l.setter$jscomp$5&&K.forEach(function(d){return function(C){var W=C.key;C=C.value;W&&C&&(0,d.setter$jscomp$5)(W,C)}}(l)))}},ErE=function(u){u=u.match(/(.*)::.*::.*/);
if(u!==null)return u[1]},Lq2=function(u){if(_.xQZ()){var K=Object.keys(window.sessionStorage);
K=_.y(K);for(var l=K.next();!l.done;l=K.next()){l=l.value;var D=ErE(l);D===void 0||u.includes(D)||self.sessionStorage.removeItem(l)}}},uiV=function(){if(!_.xQZ())return!1;
var u=_.iZ(),K=Object.keys(window.sessionStorage);K=_.y(K);for(var l=K.next();!l.done;l=K.next())if(l=ErE(l.value),l!==void 0&&l!==u)return!0;return!1},BD=function(u,K,l){(_.S("desktop_keyboard_shortcut_usage_log")||l&&_.S("web_shorts_keyboard_shortcut_usage_log"))&&(K?_.SE.get(u):_.x7.get(u))&&(u=K?_.OX.get(u):_.bV.get(u))&&_.Wi(_.AC(),u)},Kfi=function(){var u,K;
return typeof CSS!=="undefined"&&((K=(u=CSS).supports)==null?void 0:K.call(u,"selector(:has(*))"))},lyp=function(u){return u.visibility!=="hidden"&&u.display!=="none"},dBI=function(u){if(Kfi()||u.tagName!=="DETAILS"?!u.matches(DBp):u.querySelector("summary")!==null)return-1;
u=u.getAttribute("tabindex")||"0";return Number(u)},CIE=function(u){return u.some(function(K){return dBI(K)>0})},Iyo=function(u){if(u.textContent)return!0;
if(u instanceof HTMLInputElement){if(!u.labels)return!1;u=_.y(u.labels);for(var K=u.next();!K.done;K=u.next())if(K.value.textContent)return!0}return!1},ysG=function(u){return u.sort(function(K,l){return dBI(l)-dBI(K)})},syH=function(u){u=Array.from(u.querySelectorAll(DBp)).filter(function(K){return(lyp(K.style)?lyp(window.getComputedStyle(K)):!1)&&Iyo(K)});
return CIE(u)?ysG(u):u},osE=function(u){u=syH(u);
u.length>0&&u[0].focus()},Wf_=function(u,K){K.stack&&(u.stack+="\n"+K.stack);
return u},qxI=function(u){var K=pb(u,"Content-Type");
if(!K)return null;K=K.toLowerCase();if(K.startsWith("application/json"))return K.startsWith("application/json+protobuf")?new HNE:new _.OF;if(K.startsWith("application/x-protobuf")){u=pb(u,"Content-Transfer-Encoding");if(!u)return new iV;if(u.toLowerCase()=="base64")return new MyG}return null},bNk=function(u,K,l,D){var d=new $BE(function(M,q){return ns6.has(q)?M.sentinel==="gal"&&M.event!==void 0:!1},function(M){M.event?(M=rso(M.event),M=!M||vsV(D,M)?!0:_.p3(u.lastEvent,TD,2,w1)?!_.p3(M,Fo,1,w1)&&
!_.p3(M,TD,2,w1):!_.p3(M,Fo,1,w1)&&!_.p3(M,TD,3,w1)):M=!0;
return M});
l=_.cK(u.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",GA_(l)]]));if(u.nestedOrigins!==void 0)for(var C=_.y(u.nestedOrigins),W=C.next();!W.done;W=C.next())l=_.cK(l,new Map([["origin",W.value]]));return typ(d,l,K).then(function(M){M=xBI(M.event);if(_.p3(M,Fo,1,w1)){var q,v=(q=_.uO(M,Fo,1,w1))==null?void 0:_.h0(q,2);v&&D.JSC$19156_logErrorEvent(Sxp(v));q=_.uO(M,Fo,1,w1);_.h0(q,2)===4?(M=_.uO(M,Fo,1,w1),M={statusCode:11,statusMessage:_.A0(M,
3)}):(M=_.uO(M,Fo,1,w1),M={statusCode:12,statusMessage:_.A0(M,3)});return M}_.p3(M,TD,3,w1)?(M=_.uO(M,TD,3,w1),M={statusCode:1,consentLanguageKeys:_.A0(M,2)}):M={statusCode:1};return M}).catch(function(M){return M.errorCode!==void 0?{statusCode:M.errorCode,
statusMessage:M.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},zdk=function(u){var K={};
if(u===void 0||u===null)return K;u.getToken()!==void 0&&ONk(u.getToken())&&ONk(u.getToken()).length>0&&(K.scopes=new Set(ONk(u.getToken())));u.getToken()!==void 0&&csH(u.getToken())&&csH(u.getToken()).length>0&&(K.capabilities=new Set(csH(u.getToken())));_.A0(u,3)!==void 0&&(K.consistencyKey=_.A0(u,3));u.getName()!==void 0&&u.getName()!==""&&(K.linkName=u.getName());_.B8(u,ayE,4)&&(u=_.fV(u,ayE,4),u=Object.assign({},_.A0(u,1)&&{userId:_.A0(u,1)},_.A0(u,2)&&{displayName:_.A0(u,2)},_.A0(u,3)&&{email:_.A0(u,
3)},_.A0(u,5)&&{username:_.A0(u,5)},_.A0(u,4)&&{profilePicture:_.A0(u,4)}),K.profile=u);return K},ed_=function(u,K){var l=u.flowParams,D;
return{serviceId:l.serviceId,sessionId:l.sessionId,currentFlow:u.currentFlow,googleScopesString:K,linkingSessionSerialized:u.session.serialize(),consentLanguageKeys:l.consentLanguageKeys,callerState:u.callerState,dynamicUrlParameters:l.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(D=l.partnerConfigMinReadTimestamp)==null?void 0:D.serialize()}},PI2=function(u){var K=u.googleScopes!==void 0?Array.from(u.googleScopes).join(","):"";
Rd6(ed_(u,K));K=UB6(u);return K===null?Promise.resolve(fyk):K.start().then(function(l){var D,d=(D=l.link)==null?void 0:D.consistencyKey;return l.statusCode===1&&u.googleScopes!==void 0&&u.googleScopes.size>0&&d!==void 0?(D=u.flowParams,Qyk(D.serviceId,D.sessionId,u.googleScopes,d,D.galService,u.config,l)):l})},JsV=function(u){var K=UB6(u);
return K===null?Promise.resolve(V4({statusCode:7,statusMessage:"Failed to create flow object"},u.callerState)):K.complete().then(function(l){var D,d=(D=l.link)==null?void 0:D.consistencyKey;return l.statusCode===1&&u.googleScopes!==void 0&&u.googleScopes.size>0&&d!==void 0?(D=u.flowParams,Qyk(D.serviceId,D.sessionId,u.googleScopes,d,D.galService,u.config,l)):V4(l,u.callerState)},function(l){return V4({statusCode:12,
statusMessage:"Failed to complete the flow: "+l.message},u.callerState)})},Qyk=function(u,K,l,D,d,C,W){return jy6(d,{serviceId:u,
sessionId:K,googleScopes:l,consistencyKey:D}).then(function(){return W},function(M){return d.deleteLink({serviceId:u,
sessionId:K,accountLinkingEntryPoint:C.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+M.message}},function(q){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+q.message}})})},UB6=function(u){switch(u.currentFlow){case 1:var K=u.flowParams;
u=_.fV(u.session,Bd_,1);return g1.createOAuthFlow(K,u);case 2:case 3:return K=u.flowParams,u=_.fV(u.session,p06,6),N8.createStreamlinedFlow(K,u);default:return null}},iNG=function(u,K){u===2&&(u=3);
var l=0;k7.indexOf(u)!==-1&&(l=k7.indexOf(u)+1);for(u=l;u<k7.length;u++)if(K.has(k7[u]))return k7[u]},Ff2=function(u){var K=u.serviceId;
var l=u.sessionId;var D=u.config;var d=u.galService;var C=u.capabilities;var W=u.scopes;var M=u.loginHint;var q=u.callerState;var v=u.consentLanguageKeys;var G=u.linkName;var t=u.dynamicUrlParameters;var x=u.partnerConfigMinReadTimestamp;u=D.dataUsageNoticeConfig?D.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return d.startLinkingSession({serviceId:K,sessionId:l,capabilities:C,scopes:W,loginHint:M,callerState:q,supportedFlows:TdV(D.supportedFlows),completionUrl:D.completionUrl,accountLinkingEntryPoint:D.accountLinkingEntryPoint,
consentLanguageKeys:v,dataUsageNoticeConfig:u,linkName:G,dynamicUrlParameters:t,partnerConfigMinReadTimestamp:x}).then(function(O){return new w06(K,l,D,d,O,void 0,q,v,t,x)})},YxH=function(u,K,l){var D=(new Vyk).getSession(u);
if(D===null)return Promise.resolve({statusCode:2});gs_(u);var d=Nd_(D.linkingSessionSerialized),C=D.googleScopesString!==""&&D.googleScopesString!==void 0?new Set(D.googleScopesString.split(",")):void 0,W=D.partnerConfigMinReadTimestampSerialized?kAH(D.partnerConfigMinReadTimestampSerialized):void 0;return ZNk(new w06(u,D.sessionId,K,l,d,C,D.callerState,D.consentLanguageKeys,D.dynamicUrlParameters,W),D.currentFlow,D.consentLanguageKeys)},Rd6=function(u){var K=new Vyk;
K.storage!==null&&K.storage.set("SAVED_SESSION",u)},gs_=function(u){var K=new Vyk;
if(K.storage!==null){var l=K.storage.get("SAVED_SESSION");l!==void 0&&l.serviceId===u&&K.storage.remove("SAVED_SESSION")}},TdV=function(u){var K=new Set;
u=_.y(u);for(var l=u.next();!l.done;l=u.next())l=l.value,l!==1&&Ask.has(l)&&K.add(Ask.get(l));return K},V4=function(u,K){K!==void 0&&(u.callerState=K);
return u},X0_=function(u){switch(u){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},EsE=function(u){return new mB6(u,new hdB(u))},KG_=function(u,K){K=K===void 0?!1:K;
var l=document.createElement("div");u&&(l.style.transform="scaleX(-1)");l.style.backgroundColor=K?"rgba(138,180,248,.24)":"#e8f0fe";l.style.height="4px";l.style.overflow="hidden";l.style.position="absolute";l.style.top="0";l.style.width="100%";l.style.zIndex="1500";l.setAttribute("aria-label","Loading");l.setAttribute("aria-live","polite");u=document.createElement("style");u.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  }";
l.appendChild(u);u=LfG();u.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";u.style.left="-145.166611%";var D=u6_(K);D.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";u.appendChild(D);l.appendChild(u);u=LfG();u.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";u.style.left="-54.888891%";K=u6_(K);K.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
u.appendChild(K);l.appendChild(u);return l},LfG=function(){var u=document.createElement("div");
u.style.height="100%";u.style.position="absolute";u.style.transformOrigin="top left";u.style.width="100%";return u},u6_=function(u){var K=document.createElement("span");
K.style.borderTop=u?"4px solid #669df6":"4px solid #4285f4";K.style.display="inline-block";K.style.position="absolute";K.style.width="100%";return K},lJp=function(u){return u==null?void 0:_.mpm(u).valueOf()},IJk=function(u){var K=document.body,l=!1,D=function(){l||(l=!0,DKV(d,C),setTimeout(function(){K.removeChild(C);
K.removeChild(d)},150))},d=dK6(u,getComputedStyle(K).direction==="rtl",D),C=ChB(D);
DKV(d,C);K.appendChild(C);K.appendChild(d);window.requestAnimationFrame(function(){C.style.opacity="1";d.style.opacity="1";d.style.transform="translate(-50%, -50%) scale(1)";d.children[0].focus()})},dK6=function(u,K,l){var D=document.createElement("div");
D.style.position="fixed";D.style.alignItems="center";D.style.backgroundColor=u?"rgb(32, 33, 36)":"white";D.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";D.style.display="flex";D.style.flexDirection="column";D.style.justifyContent="center";D.style.left="50%";D.style.top="50%";D.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";D.style.zIndex="2002";document.body.clientWidth>=660?(D.style.borderRadius="8px",D.style.minHeight="220px",
D.style.maxHeight="90%",D.style.maxWidth="90%",D.style.minWidth="540px"):(D.style.height="100%",D.style.width="100%");D.setAttribute("aria-label","Error");D.setAttribute("aria-modal","true");D.setAttribute("role","alertdialog");D.addEventListener("keydown",function(C){C.key==="Escape"&&l()});
K=yuE(u,K,l);D.appendChild(sfp(K));D.appendChild(K);var d=document.createElement("img");d.src=u?"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";d.style.height="72px";d.style.width="72px";d.style.color="#9aa0a6";d.setAttribute("alt","");D.appendChild(d);d=document.createElement("h1");d.textContent="Something went wrong.  Try again.";
d.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";d.style.lineHeight="24px";d.style.fontSize="16px";d.style.textAlign="center";d.style.letterSpacing="0.1px";d.style.color=u?"rgb(232,234,237)":"#3c4043";D.appendChild(d);D.appendChild(sfp(K));return D},yuE=function(u,K,l){var D=document.createElement("button");
D.style.backgroundColor="transparent";D.style.border="none";D.style.borderRadius="50%";D.style.cursor="pointer";D.style.outline="none";D.style.padding="12px";D.setAttribute("aria-label","Close dialog");D.style.position="absolute";D.style.top="0";K?D.style.right="0":D.style.left="0";D.addEventListener("focus",function(){D.style.backgroundColor=u?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
D.addEventListener("blur",function(){D.style.backgroundColor="transparent"});
D.addEventListener("mouseenter",function(){D.style.backgroundColor=u?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
D.addEventListener("mouseleave",function(){D.style.backgroundColor="transparent"});
D.addEventListener("click",l);D.addEventListener("keydown",function(d){d.key!=="Enter"&&d.key!=="Space"||l()});
K=document.createElement("img");K.src=u?"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";K.style.display="block";K.style.height="24px";K.style.width="24px";K.setAttribute("alt","");D.appendChild(K);return D},sfp=function(u){var K=document.createElement("div");
K.setAttribute("tabindex","0");K.setAttribute("aria-hidden","true");K.addEventListener("focus",function(){return void u.focus()});
return K},ChB=function(u){var K=document.createElement("div");
K.style.backgroundColor="rgba(32,33,36,0.6)";K.style.bottom="0";K.style.left="0";K.style.position="fixed";K.style.right="0";K.style.top="0";K.style.transition=" opacity 150 ms linear";K.style.zIndex="2001";K.addEventListener("click",u);return K},DKV=function(u,K){K.style.opacity="0";
u.style.opacity="0";u.style.transform="translate(-50%, -50%) scale(0.8)"},owV=function(u,K){u.sandbox&&u.sandbox.add&&(u.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),u.sandbox.add("allow-downloads"));
u.src=K},ZZ=function(u){WGE.call(this,u)},Y7=function(u,K){K=K===void 0?!1:K;
this.parsedImageUrl_=null;u instanceof Hm_||(MZB==void 0&&(MZB=new qVE),u=MZB.parse(u.toString(),K));u=this.parsedImageUrl_=u;u.JSC$19368_parsedOptions_==void 0&&((K=u.getOptions())||(K=""),u.JSC$19368_parsedOptions_=(new $Kp).parse(K));WGE.call(this,u.JSC$19368_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;u=this.parsedImageUrl_;K=u.uri_.JSC$9960_port_;this.JSC$19370_domain_=u.uri_.JSC$9960_domain_+(K?":"+K:"");this.JSC$19370_query_=this.parsedImageUrl_.uri_.JSC$9960_queryData_.toString()},
nwH=function(u){this.mode=4;
this.data=u;this.parsedData=[];u=0;for(var K=this.data.length;u<K;u++){var l=[],D=this.data.charCodeAt(u);D>65536?(l[0]=240|(D&1835008)>>>18,l[1]=128|(D&258048)>>>12,l[2]=128|(D&4032)>>>6,l[3]=128|D&63):D>2048?(l[0]=224|(D&61440)>>>12,l[1]=128|(D&4032)>>>6,l[2]=128|D&63):D>128?(l[0]=192|(D&1984)>>>6,l[1]=128|D&63):l[0]=D;this.parsedData.push(l)}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))},rup=function(u){this.typeNumber=0;
this.errorCorrectLevel=u===void 0?2:u;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},Av=function(u,K){if(u.length==void 0)throw Error("uk`"+u.length+"`"+K);
for(var l=0;l<u.length&&u[l]==0;)l++;this.num=Array(u.length-l+K);for(K=0;K<u.length-l;K++)this.num[K]=u[K+l]},vwi=function(u,K){this.totalCount=u;
this.dataCount=K},GI2=function(){this.buffer=[];
this.length=0},tZi=function(){var u=!1;
if(_.Mrw()){u=_.rq();var K="";_.nyZ()?(K=/Windows (?:NT|Phone) ([0-9.]+)/,K=(u=K.exec(u))?u[1]:"0.0"):_.jr()?(K=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,K=(u=K.exec(u))&&u[1].replace(/_/g,".")):_.$wn()?(K=/Mac OS X ([0-9_.]+)/,K=(u=K.exec(u))?u[1].replace(/_/g,"."):"10"):_.Mw(_.rq(),"KaiOS")?(K=/(?:KaiOS)\/(\S+)/i,K=(u=K.exec(u))&&u[1]):_.Mrw()?(K=/Android\s+([^\);]+)(\)|;)/,K=(u=K.exec(u))&&u[1]):_.rHH()&&(K=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,K=(u=K.exec(u))&&u[1]);u=K||""}return u},aJo=function(u,
K){this.JSC$19393__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(K)for(var l in K)this.JSC$19393__htOption[l]=K[l];this.JSC$19393__htOption.useSVG&&(xKB=SVB);this.JSC$19393__android=tZi();this.JSC$19393__el=u;this._oQRCode=null;this._oDrawing=new xKB(this.JSC$19393__el,this.JSC$19393__htOption);this.JSC$19393__htOption.text&&(u=this.JSC$19393__htOption.text,this._oQRCode=new rup(this.JSC$19393__htOption.correctLevel),bmI(this._oQRCode,u),K=this._oQRCode,Omp(K,!1,cuG(K)),this.JSC$19393__el.title=
u,this._oDrawing.draw(this._oQRCode),this.makeImage())},z8p=function(u,K,l,D,d){u.save();
var C=new Path2D;C.roundRect(K,l,D*7,D*7,D*2);C.roundRect(K+D,l+D,D*5,D*5,D*1.3);C.roundRect(K+2*D,l+2*D,D*3,D*3,D);u.clip(C,"evenodd");u.fillStyle=d;u.fillRect(0,0,u.canvas.width,u.canvas.height);u.restore()},Xo=function(u,K){if(typeof u!=="function")throw Error("xk");
return _.lL.setTimeout(function(){u()},K)},m2=function(){},R82=function(u,K,l,D,d){(new m2).debug("TestLoadImageWithRetries: "+d);
if(D==0)l(!1);else{var C=d||0;D--;e8o(u,K,function(W){W?l(!0):_.lL.setTimeout(function(){R82(u,K,l,D,C)},C)})}},e8o=function(u,K,l){var D=new m2;
D.debug("TestLoadImage: loading "+u);var d=new Image;d.onload=function(){try{D.debug("TestLoadImage: loaded"),UKG(d),l(!0)}catch(C){}};
d.onerror=function(){try{D.debug("TestLoadImage: error"),UKG(d),l(!1)}catch(C){}};
d.onabort=function(){try{D.debug("TestLoadImage: abort"),UKG(d),l(!1)}catch(C){}};
d.ontimeout=function(){try{D.debug("TestLoadImage: timeout"),UKG(d),l(!1)}catch(C){}};
_.lL.setTimeout(function(){if(d.ontimeout)d.ontimeout()},K);
d.src=u},UKG=function(u){u.onload=null;
u.onerror=null;u.onabort=null;u.ontimeout=null},fJk=function(){this.front_=[];
this.back_=[]},QfB=function(u,K){_.TZ.call(this);
this.delay_=new _.Fd(this.JSC$19519_onTick_,0,this);_.eb(this,this.delay_);this.JSC$19517_interval_=5E3;this.nextTickTime_=0;if(typeof u==="function")K&&(u=(0,_.wB)(u,K));else if(u&&typeof u.handleEvent==="function")u=(0,_.wB)(u.handleEvent,u);else throw Error("ya");this.JSC$19519_listener_=u},hv=function(u,K,l,D,d,C,W,M,q,v,G,t,x,O){l=l===void 0?!1:l;
D=D===void 0?function(){return""}:D;
d=d===void 0?!1:d;C=C===void 0?!1:C;W=W===void 0?!1:W;M=M===void 0?function(){return _.zA({})}:M;
q=q===void 0?!1:q;G=G===void 0?!1:G;t=t===void 0?!1:t;x=x===void 0?!1:x;O=O===void 0?!1:O;this.JSC$19520_pathPrefix_=u;this.defaultQueryParams_=K;this.pubsub_=new _.Qx;this.reconnectTimer_=new QfB(this.safeReconnect_,this);this.JSC$19520_channel_=null;this.JSC$19520_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19520_pendingMessages_=[];this.enableAsyncTest_=l;this.JSC$19520_getXsrfToken_=D;this.useAsyncBrowserChannelHandler_=C;this.getAuthorizationHeader_=
M;this.getAuthorizationHeaderSync_=v;this.enableCachedUpdateAuthorizationHeader_=W;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.zA();this.enableLoungeTokenRefresh_=d;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=q;this.disableMdxAuthForNonPlaybackMessages_=G;this.disableMdxAuthForAdMessages_=t;this.enableMdxAuthForConnectionOnly_=x;this.disableMdxAuthForShortsMessages_=O;this.JSC$19520_channelOpenedCounter=new PhV;this.JSC$19520_channelClosedCounter=new JuG;this.channelMessageSentCounter=
new jfo;this.JSC$19520_channelMessageReceivedCounter=new BZI;this.JSC$19520_channelErrorCounter=new piE;this.pendingMapsOnClosedCounter=new imH;this.undeliveredMapsOnClosedCounter=new TZV},EX=function(u){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;u=u||document.location.href;var K=Number(_.M7(u)[4]||null)||"";K&&(this.port=":"+K);this.domain=_.q7(u)||"";u=_.rq();u.search("MSIE")>=0&&_.n9(u.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},Lb=function(u){u=u||{};
this.name=u.name||"";this.id=u.id||u.screenId||"";this.token=u.token||u.loungeToken||"";this.uuid=u.uuid||u.dialId||"";this.idType=u.screenIdType||"normal"},wip=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(u){var K=Math.random()*16|0;
return(u=="x"?K:K&3|8).toString(16)})},FGG=function(u){return _.ZM(u,function(K){return{key:K.id,
name:K.name}})},VZE=function(u,K){return _.iL(u,function(l){return l||K?!l!=!K?!1:l.id==K.id:!0})},Kv=function(u,K){return _.iL(u,function(l){return u9(l,K)})},YV_=function(){var u=gwk(),K=NZE();
if(kI_()){var l=u,D=_.SZZ(l,K);D<0&&_.xwy(l,-(D+1),0,K)}u=ZmI(u);if(u.length==0)try{_.kAq("remote_sid")}catch(d){}else try{_.Bv("remote_sid",u.join(","),-1)}catch(d){}},gwk=function(){var u=_.f7("yt-remote-connected-devices")||[];
u.sort(_.ym);return u},ZmI=function(u){if(u.length==0)return[];
var K=u[0].indexOf("#"),l=K==-1?u[0]:u[0].substring(0,K);return _.ZM(u,function(D,d){return d==0?D:D.substring(l.length)})},Au_=function(u){_.Uj("yt-remote-connected-devices",u,86400)},NZE=function(){if(XiE)return XiE;
var u=_.f7("yt-remote-device-id");u||(u=wip(),_.Uj("yt-remote-device-id",u,31536E3));for(var K=gwk(),l=1,D=u;_.Vn(K,D);)l++,D=u+"#"+l;return XiE=D},mKi=function(){return _.f7("yt-remote-session-browser-channel")},kI_=function(){return _.f7("yt-remote-session-screen-id")},LGB=function(u){u.length>5&&(u=u.slice(u.length-5));
var K=_.ZM(h8i(),function(D){return D.loungeToken}),l=_.ZM(u,function(D){return D.loungeToken});
_.iDb(l,function(D){return!_.Vn(K,D)})&&Ew6();
_.Uj("yt-remote-local-screens",u,31536E3)},h8i=function(){return _.f7("yt-remote-local-screens")||[]},Ew6=function(){_.Uj("yt-remote-lounge-token-expiration",!0,86400)},l9=function(u){u||(_.Q1("yt-remote-session-screen-id"),_.Q1("yt-remote-session-video-id"));
YV_();u=gwk();_.AH(u,NZE());Au_(u)},Kdp=function(){uQI();
return DD?!!DD.get("yt-remote-use-staging-server"):!1},uQI=function(){if(!DD){var u=_.u6b();
u&&(DD=new _.F0(u))}},CvG=function(u,K,l,D,d){l=l===void 0?function(){return""}:l;
var C=function(){return new hv(dc(u,"/bc"),K,!1,l,D)};
return _.S("enable_mdx_web_channel_desktop")?new lUH(function(){return new DuI(dc(u,"/wc"),K,l)}):new duG(C,d)},oOG=function(){var u=IUo;
y_H();Cv.push(u);s7H()},IJ=function(u,K){y_H();
var l=WdE(u,String(K));Cv.length==0?Hc_(l):(s7H(),_.yx(Cv,function(D){D(l)}))},yE=function(u){IJ("CP",u)},y_H=function(){Cv||(Cv=_.lZ("yt.mdx.remote.debug.handlers_")||[],_.$L("yt.mdx.remote.debug.handlers_",Cv))},Hc_=function(u){var K=(s1+1)%50;
s1=K;MtB[K]=u;qd2||(qd2=K==49)},s7H=function(){var u=Cv;
if(MtB[0]){var K=qd2?s1:-1,l={};do l={record$jscomp$15:void 0},K=(K+1)%50,l.record$jscomp$15=MtB[K],_.yx(u,function(D){return function(d){d(D.record$jscomp$15)}}(l));
while(K!=s1);MtB=Array(50);s1=-1;qd2=!1}},WdE=function(u,K){var l=(Date.now()-$uI)/1E3;
l.toFixed&&(l=l.toFixed(3));var D=[];D.push("[",l+"s","] ");D.push("[","yt.mdx.remote","] ");D.push(u+": "+K,"\n");return D.join("")},oJ=function(u){_.tv.call(this);
this.JSC$19544_logName_=u;this.screens=[]},Hg=function(u){oJ.call(this,"LocalScreenService");
this.JSC$19551_http_=u;this.loungeTokenRefreshTimer_=NaN;Wg(this);this.info("Initializing with "+nOi(this.screens))},M3=function(u,K){K=K===void 0?!1:K;
oJ.call(this,"ScreenService");this.JSC$19557_http_=u;this.disableAutomaticScreenCache_=K;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};r_V(this)},q3=function(u,K,l){_.tv.call(this);
this.JSC$19561_logName_=l;this.JSC$19561_screenService_=u;this.receiver_=K;this.screen_=null},Pvi=function(u,K,l){l.disableCastApi?$q("Cannot initialize because disabled by Mdx config."):vOp()?GO6(u,l)&&(tto(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?xup(K):(window.__onGCastApiAvailable=function(D,d){D?xup(K):(nv("Failed to load cast API: "+d),SdH(!1),tto(!1),_.Q1("yt-remote-cast-available"),_.Q1("yt-remote-cast-receiver"),bc_(),K(!1))},l.loadCastApiSetupScript?_.KN(Oc6):window.navigator.userAgent.indexOf("Android")>=
0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?c_E()>=60&&aUi():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?zVp():c_E()>=89?eVk():(RV_(),UuI(fU6.map(Q7p))))):$q("Cannot initialize because not running Chrome")},bc_=function(){$q("dispose");
var u=rc();u&&u.dispose();_.$L("yt.mdx.remote.cloudview.instance_",null);J_p(!1);_.PTL(j7V);j7V.length=0},Be_=function(){return!!_.f7("yt-remote-cast-installed")},pIp=function(){var u=_.f7("yt-remote-cast-receiver");
return u?u.friendlyName:null},icH=function(){$q("clearCurrentReceiver");
_.Q1("yt-remote-cast-receiver")},Te6=function(){return Be_()?rc()?rc().getCastSession():(nv("getCastSelector: Cast is not initialized."),null):(nv("getCastSelector: Cast API is not installed!"),null)},FdE=function(u,K){wIB()?rc().setConnectedScreenStatus(u,K):nv("setConnectedScreenStatus called before ready.")},vOp=function(){var u=_.rq().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.f3||u},GO6=function(u,K){var l=!1;
rc()||(u=new vg(u,K),u.subscribe("yt-remote-cast2-availability-change",function(D){_.Uj("yt-remote-cast-available",D);aV("yt-remote-cast2-availability-change",D)}),u.subscribe("yt-remote-cast2-receiver-selected",function(D){$q("onReceiverSelected: "+D.friendlyName);
_.Uj("yt-remote-cast-receiver",D);aV("yt-remote-cast2-receiver-selected",D)}),u.subscribe("yt-remote-cast2-receiver-resumed",function(D){$q("onReceiverResumed: "+D.friendlyName);
_.Uj("yt-remote-cast-receiver",D);aV("yt-remote-cast2-receiver-resumed",D)}),u.subscribe("yt-remote-cast2-session-change",function(D){$q("onSessionChange: "+Vtp(D));
D||_.Q1("yt-remote-cast-receiver");aV("yt-remote-cast2-session-change",D)}),_.$L("yt.mdx.remote.cloudview.instance_",u),l=!0);
$q("cloudview.createSingleton_: "+l);return l},rc=function(){return _.lZ("yt.mdx.remote.cloudview.instance_")},xup=function(u){SdH(!0);
tto(!1);rc().init(!1,function(K){K?(J_p(!0),_.JlR("yt-remote-cast2-api-ready")):(nv("Failed to initialize cast API."),SdH(!1),_.Q1("yt-remote-cast-available"),_.Q1("yt-remote-cast-receiver"),bc_());u(K)})},$q=function(u){IJ("cloudview",u)},nv=function(u){IJ("cloudview",u)},SdH=function(u){$q("setCastInstalled_ "+u);
_.Uj("yt-remote-cast-installed",u)},wIB=function(){return!!_.lZ("yt.mdx.remote.cloudview.apiReady_")},J_p=function(u){$q("setApiReady_ "+u);
_.$L("yt.mdx.remote.cloudview.apiReady_",u)},tto=function(u){_.$L("yt.mdx.remote.cloudview.initializing_",u)},G4=function(u){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(u)},gO2=function(){var u,K;
return _.H(function(l){if(l.nextAddress==1)return(_.rly()||_.S("use_new_nwl"))&&_.M1h().isNetworkAvailable()?l.yield(_.nU(),2):l.return();if(l.nextAddress!=3)return(u=l.yieldResult)?l.yield(OiG(u),3):l.return();K=l.yieldResult;if(!K.length)return l.return();K.forEach(function(D){var d={timestamp:D.timestamp};D=D.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:D.appShellAssetLoadReport,options:d}:D.clientError?{payloadName:"clientError",payload:D.clientError,options:d}:void 0;
D&&_.YE(D.payloadName,D.payload,D.options)});
K.length===100&&_.YL.addLowPriorityJob(gO2);_.TG(l)})},Nep=function(u){if(u.playerResponse){if(u=u.playerResponse,u.messages&&u.messages.length>0&&(u=u.messages.find(function(K){return!(!K||!K.mealbarPromoRenderer)}))&&u.mealbarPromoRenderer)return u.mealbarPromoRenderer}else if(u.response&&(u=u.response)&&u.overlay&&u.overlay.mealbarPromoRenderer)return u.overlay.mealbarPromoRenderer},kOp=function(u){if(u.response){var K=u.response;
if(K&&K.overlay&&K.overlay.tooltipRenderer)return K.overlay.tooltipRenderer}if(u.playerResponse&&(u=u.playerResponse,u.messages&&u.messages.length>0&&(u=u.messages.find(function(l){return!(!l||!l.tooltipRenderer)}))&&u.tooltipRenderer))return u.tooltipRenderer},Ydo=function(u){if(!ZcH&&(u=u||_.E3("ZWIEBACK_PING_URLS"))&&u.length){ZcH=!0;
for(var K=0;K<u.length;K++)_.Cp(u[K])}},XIE=function(u){if(_.k$.get(_.E3("PLAYER_VARS",{}),"privembed",!1)!="1"){u&&$PH();
try{A_H().then(function(){},function(){}),_.aK(XIE,18E5)}catch(K){_.uZ(K)}}},mu2=function(){var u=_.jy(),K=u.getFlag(119),l=window.devicePixelRatio>1;
document.body&&_.IM(document.body,"exp-invert-logo")&&(l&&!_.IM(document.body,"inverted-hdpi")?_.rY(document.body,"inverted-hdpi"):!l&&_.IM(document.body,"inverted-hdpi")&&_.$o(document.body,"inverted-hdpi"));K!=l&&(_.B0(0,119,l),u.save())},hV2=function(u){return u.filter(function(K){return"ypcGetCartEndpoint"in K||"ypcFixInstrumentEndpoint"in K})},EOI=function(u){return u.filter(function(K){return!_.b(K,_.Pf0)})},urV=function(u,K){var l,D,d,C,W,M,q;
_.H(function(v){switch(v.nextAddress){case 1:l=_.YO.getInstance();D=_.Pb.instance;d=_.ow.instance;if(!d)return LdG(u,D,K),v.return();_.Qg(v,2);u.onLoadingCommand&&D.resolveCommand(u.onLoadingCommand);return v.yield(l.getCurrentPositionFromGeolocation(),4);case 4:C=v.yieldResult;if(!u.resolveLocationCommand){v.jumpTo(5);break}W=l.createLocationInfo(C);return v.yield(_.HJ(d,u.resolveLocationCommand,{locationInfo:W}),6);case 6:M=v.yieldResult;if(!M||"error"in M&&M.error||M.errorMetadata)return LdG(u,
D,K),v.return();var G;if(M==null?0:(G=M.onResponseReceivedActions)==null?0:G.length){G=_.y(M.onResponseReceivedActions);for(var t=G.next();!t.done;t=G.next())D.resolveCommand(t.value)}(_.b(u.onSuccessCommand,_.oy)||_.b(u.onSuccessCommand,_.jt))&&_.xs(K.hostElement,"yt-navigate",{endpoint:u.onSuccessCommand,reload:!0});case 5:_.I$(v,0);break;case 2:q=_.iY(v);if(q instanceof GeolocationPositionError&&q.code===GeolocationPositionError.PERMISSION_DENIED)return u.onDeniedCommand&&D.resolveCommand(u.onDeniedCommand),
v.return();LdG(u,D,K);_.TG(v)}})},LdG=function(u,K,l){u.onFailureCommand&&(K.resolveCommand(u.onFailureCommand),_.Sy(l.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},lvo=function(u,K){var l=_.b(u,_.V3m);
if(l&&K){u=l.videoIds||[l.videoId];var D;K=(D=_.xs(K,"yt-lockup-requested",{videoIds:u}).detail)==null?void 0:D.returnValue;var d;l.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?d=K?K:u.map(function(C){return{videoId:C,navigationEndpoint:l.videoCommand}}):K&&(d=K);
d&&(D=d.map(function(C){var W=Object,M=W.assign;var q=C.navigationEndpoint;if(!_.b(q,_.TO)){var v=_.b(q,_.oy);if(v){if(delete v.index,delete v.playlistId,v=_.b(q==null?void 0:q.commandMetadata,_.nN),v==null?0:v.url){var G=v.url;G=_.$s(G,"list");G=_.$s(G,"index");v.url=G}}else q=void 0}return M.call(W,{},C,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:q})}),K3k(D,l))}},Dni=function(u){var K=_.y1();
if(u=_.b(u,_.gzw))u.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&K.clearQueue(),u.closeMiniplayer&&_.GB().resolve(_.uD).close(!0)},Ci6=function(u){dn_(_.y1(),u)},IvI=function(u){var K;
(u=(K=_.b(u,_.wWm))==null?void 0:K.setVideoIds)&&u.forEach(function(l){_.NLs(_.y1(),l)})},sbH=function(u){yU6(_.y1(),u)},oHE=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(u){return!1}},W3E=function(){var u,K;
return(K=(u=window).matchMedia)==null?void 0:K.call(u,"(prefers-reduced-motion: reduce)").matches},M8o=function(u){var K=_.GB().resolve(_.vv(_.g6));
K&&HgE(K,u)},q9B=function(u,K,l){return{horizontalAlignment:u.x+l.width/2<K.width/2?"west":"east",
verticalAlignment:u.y+l.height/2<K.height/2?"north":"south"}},rUG=function(u,K,l,D,d){d=d===void 0?new _.XB(0,0):d;
return $n6(nHG(u,K,l,D),d)},nHG=function(u,K,l,D){return new _.XB(u==="west"?16:l.width-D.width-16,K==="north"?16:l.height-D.height-16)},vH6=function(u,K){var l=0;
u&&(l+=76);K&&(l+=285);return l},GQ6=function(u){var K=["h",
"m","s"],l=_.Xq(K);l.reverse();var D={};u=(u.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(W){var M=(W.match(/[hms]/)||[""])[0];return M?(D[M]=parseInt(W.match(/\d+/)[0],10),!1):!0});
for(u.reverse();u.length&&l.length;){var d=l.shift();d in D||(D[d]=parseInt(u.shift(),10))}if(u.length||D.s>59||D.m>59||D.h>9)return null;var C="";K.forEach(function(W){D[W]&&(C+=""+D[W]+W)});
return C||null},t8I=function(u){u=u.data;
return _.n("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.n("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.n(_.n4,{data:{thumbnails:[{url:u.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.n("div",{class:"profile-badge-view-model-wiz__content"},_.n("div",{class:"profile-badge-view-model-wiz__badge-description"},u.badgeDesc),u.badgeSubtitle?_.n("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},u.badgeSubtitle):null))},xnV=function(u){u=
u.data;
var K=_.o9("yt-comment-interaction-view-model");YW2(K,u.rendererContext);return _.n("yt-comment-interaction-view-model",{el:K,class:"yt-comment-interaction-view-model-wiz"},_.n("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":u.onTapA11yLabel,"on:keydown":_.U8o(),tabindex:0},_.n("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.n("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},u.headerPrefix,' "',u.videoTitle),_.n("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.n("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.n("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},u.commentContent),_.n("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.n(_.n4,{data:{thumbnails:[{url:u.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},bgp=function(u){u=u.data;
return _.n("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},S96(u.avatar),_.n("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},u.channelName))},Ogp=function(u){u=u.data;
var K;return _.n("div",{class:"yt-profile-info-view-model-wiz__activity"},_.n("div",{class:"yt-profile-info-view-model-wiz__header"},_.n("div",{class:"yt-profile-info-view-model-wiz__section-title"},u.commentsInteractionTitle)),(K=u.comments)==null?void 0:K.map(function(l){return _.n("div",{class:"yt-profile-info-view-model-wiz__activity"},t6(l))}))},cU6=function(u){u=u.data;
var K=_.dY({elementsCommand:u.subscriptionsAccessButtonCommand}),l=_.o9("a");_.v9y(l,_.lt(u.subscriptionsAccessButtonCommand));var D;return _.n("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.n("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.n("a",{el:l,"on:click":_.p4(function(d){if(K==null?0:K.onclick)K.onclick(d);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.n("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},u.sharedSubscriptionsTitle),_.n("div",null,t6(u.subscriptionsAccessButton)))),_.n("div",{class:"yt-profile-info-view-model-wiz__subs"},(D=u.sharedSubscriptions)==null?void 0:D.slice(0,5).map(function(d){return _.n("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",t6(d))})))},avE=function(u){u=u.data;
var K;return _.n("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.n("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.n("h2",{class:"yt-profile-info-view-model-wiz__section-title"},u.sharedSubscriptionsTitle)),_.n("div",{class:"yt-profile-info-view-model-wiz__subs"},(K=u.sharedSubscriptions)==null?void 0:K.slice(0,5).map(function(l){return _.n("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",t6(l))})))},z4o=function(u){u=u.data;
return _.n("div",{class:"yt-profile-info-view-model-wiz__activity"},[u.profileBadgeInfoYtWide,u.profileBadgeInfoChannelWide].map(function(K){var l,D,d,C,W;return K?_.n(_.G1,null,_.n("div",{class:"yt-profile-info-view-model-wiz__header"},_.n("div",{class:"yt-profile-info-view-model-wiz__section-title"},K==null?void 0:K.profileSectionTitle),_.n("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.n("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},K==null?void 0:(l=K.commentBadge)==
null?void 0:l.commentDesc),(K==null?0:(D=K.commentBadge)==null?0:D.blackHeartDesc)?_.n("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.n("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.n(_.n4,{data:{thumbnails:[{url:K==null?void 0:(d=K.commentBadge)==null?void 0:d.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.n("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},K==null?void 0:(C=
K.commentBadge)==null?void 0:C.blackHeartDesc))),_.n("div",{class:"yt-profile-info-view-model-wiz__badge"},K==null?void 0:(W=K.badges)==null?void 0:W.map(function(M){return _.n(t8I,{data:M})}))):null}))},e4o=function(u){u=u.data;
return _.n("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.n(z4o,{data:u}),u.videosHorizontalShelf?_.n("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},t6(u.videosHorizontalShelf)):null,u.comments?_.n(Ogp,{data:u}):null,u.sharedSubscriptionsTitle?u.subscriptionsAccessButtonCommand?_.n(cU6,{data:u}):_.n(avE,{data:u}):null)},UnI=function(u){u=u.data;
if(u){var K=u.profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD";K=R4p(u.profileIdentityInfo,{profileIdentityInfoViewModel:{hideDivider:K,isChannelInfoCard:K}})}else K=void 0;u=u?R4p(u.profileInfo):void 0;return _.n("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},K,u)},fvE=function(u,K){var l=_.MQB(K,{},u,!0);
return new Promise(function(D,d){l.listenOnce("n",function(){d(Error("il`"+l.JSC$29101_getErrorDescription()))});
l.listenOnce("l",function(){var C=l.getResponseCode();if(C!==200)d(Error("jl`"+K+"`"+u.type+"`"+u.size+"`"+C));else try{D(JSON.parse(l.getResponseText()).encryptedBlobId)}catch(W){d(W)}});
l.run()})},Qbo=function(u){return u.substring(u.indexOf(":")+1,u.indexOf(";"))},PiB=function(u){return new Promise(function(K,l){var D=new FileReader;
D.onloadend=function(){try{var d=new Uint8Array(D.result);d.length<8&&l(void 0);var C=d.subarray(0,8);d="";for(var W=0;W<C.length;W++)d+=("0"+C[W].toString(16)).substr(-2);d.startsWith("ffd8ff")?K("image/jpeg"):d.startsWith("47494638")?K("image/gif"):d.startsWith("89504e470d0a1a0a")?K("image/png"):d.startsWith("424d")?K("image/bmp"):K(void 0)}catch(M){l(M)}};
D.onerror=l;D.readAsArrayBuffer(u)})},JUi=function(u){return new Promise(function(K,l){var D=new Image;
D.crossOrigin="anonymous";D.onload=function(){var d=document.createElement("canvas");d.width=D.naturalWidth;d.height=D.naturalHeight;var C=d.getContext("2d");if(!C)throw Error("kl");C.drawImage(D,0,0);C=Qbo(u);d.toBlob(function(W){W?K(W):l()},C)};
D.src=u})},Bnp=function(u,K){var l;
if(((l=_.b(u,_.TO))==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var D;_.xs((D=K.hostElement)!=null?D:K,"yt-shorts-reset");_.AJR(_.GB().resolve(_.iX),u).then(function(C){jbp(C,K,u)})}else{var d;
_.c0((d=K.hostElement)!=null?d:K,[u]).then(function(C){C&&jbp(C.data,K,u)})}},jbp=function(u,K,l){if(u){var D=_.b(u.replacementEndpoint,_.TO);
if(D){u.sequenceContinuation&&(D.sequenceParams=u.sequenceContinuation);var d;_.xs((d=K.hostElement)!=null?d:K,"yt-navigate",{endpoint:u.replacementEndpoint})}else if((u==null?void 0:u.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(u==null?0:u.watchStatus)&&_.b(u.watchStatus,_.beN)){var C;_.xs((C=K.hostElement)!=null?C:K,"yt-navigate",{endpoint:l})}}},pFE=function(u){var K=_.GB().resolve(_.lf),l=ACk(K.getState())||"";
K=_.nqq(K.getState())||"";l=l==="ytd-browse"&&K==="home";return _.S("web_guide_entry_enable_cache_for_non_home_pages")?(u=(u==null?void 0:u.navigationEndpoint)&&_.J_(u.navigationEndpoint)==="home",{disableCache:l&&u}):{disableCache:l}},ig_=function(u){if(!u)return!1;
try{if(u.host&&u.host.tagName==="YT-FORMATTED-STRING"&&u.host.id==="contenteditable-textarea"||u.nodeType===Node.ELEMENT_NODE&&u.tagName==="YTD-COMMENT-INPUT")return!0}catch(K){return!1}return ig_(u.parentNode)},xq=function(u){return u?u.tagName==="A"&&u.href&&u.classList.contains("yt-simple-endpoint"):!1},Tnp=function(u){return u?u.tagName==="IMG"&&u.classList.contains("emoji"):!1},wFE=function(u,K,l){if(!u)return null;
var D=xq(u);if(D&&l)return K=u.pathname.substring(u.pathname.indexOf("/channel/")+9),document.createTextNode("@"+K);if(D&&!l)return document.createTextNode("");if(Tnp(u))return l=u.alt,u=u.dataset.emojiId,!u&&K&&(K=_.Q$(K,l))&&K.isCustomEmoji&&(u=K.emojiId),u?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+u+">"):document.createTextNode(l);D=u.cloneNode(!1);for(var d=0;d<u.childNodes.length;++d){var C=wFE(u.childNodes[d],K,l);C&&D.appendChild(C)}return D},Si=function(u){return u?xq(u)?u:Si(u.lastChild):
null},F36=function(u){return u?xq(u)?u:F36(u.firstChild):null},V8_=function(u){if(!u)return null;
for(var K=u.previousSibling;K;)if(K.nodeType===Node.ELEMENT_NODE&&K.nodeName==="BR")K=K.previousSibling;else if(K.nodeType===Node.TEXT_NODE&&/\s+/.test(K.textContent))K=K.previousSibling;else break;(K=Si(K))?u=K:u=(u=u.parentNode)?Si(u.previousElementSibling):null;return u},gH_=function(u){if(!u)return null;
for(var K=u.nextSibling;K;)if(K.nodeType===Node.ELEMENT_NODE&&K.nodeName==="BR")K=K.nextSibling;else if(K.nodeType===Node.TEXT_NODE&&/\s+/.test(K.textContent))K=K.nextSibling;else break;return(K=F36(K))?K:gH_(u.parentNode)},NnE=function(u){var K=_.J3(),l=K.JSC$11223_getStartNode();
if(!ig_(l.parentNode))return null;K=K.JSC$11223_getStartOffset();if(l.nodeType===Node.TEXT_NODE){var D=_.LS(l,xq);if(D){if(u&&K===0||!u&&K===l.length)return D}else{if(u&&K===l.length)return!l||l.nodeName==="BR"||l.nextElementSibling&&_.jd(l.nextElementSibling,"display")==="block"?null:F36(l.nextElementSibling);if(!u&&K===0)return l?Si(l.previousElementSibling):null}}if(l.nodeType===Node.ELEMENT_NODE)if(u){if(0<=K&&K<l.childNodes.length)return F36(l.childNodes[K])}else if(0<K&&K<=l.childNodes.length)return Si(l.childNodes[K-
1]);return null},kQo=function(u,K,l){if(!u)return null;
if(u.nodeType===Node.TEXT_NODE)if(l){var D=V8_(u);if(D&&!/^\s+\S/.test(u.wholeText.substr(0,K)))return D}else if((D=gH_(u))&&!/\S\s+/.test(u.wholeText.substr(K,u.wholeText.length)))return D;return u.nodeType===Node.ELEMENT_NODE?l?V8_(u.childNodes[K]):gH_(u.childNodes[K]):kQo(u.parentNode,K,l)},Zgi=function(u){if(u.hasChildNodes())switch(u.tagName){case "DIV":case "A":case "SPAN":var K="";
for(u=u.firstChild;u;u=u.nextSibling)K+=Zgi(u);return K;default:return""}else switch(u.nodeType){case 3:return u.textContent;default:return""}},Y9_=function(u){u=u.data;
return _.n("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.n("div",null,_.n(_.qC,{text:u.title})),u.subtitle?_.n("div",{class:"ytd-menu-title-renderer__subtitle"},_.n(_.qC,{text:u.subtitle})):null)},AUp=function(u){switch(u){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"}},XF_=function(u){return u.map(function(K){return{settingsRadioOptionRenderer:{title:_.xw(K.name),
asideText:_.xw(K.approximateSize),id:AUp(K.format)}}})},h4V=function(u){if(u&&u.length!==0)return u.filter(mnI()).map(function(K){return{settingsRadioOptionRenderer:{title:K.name,
asideText:K.approximateSize,id:AUp(K.formatType)}}})},b9=function(u){if(u)return u.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},EHI=function(u,K){u=new Set(u!=null?u:[]);
if(u.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(u.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(u.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(u.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(u.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(K)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},L3G=function(u){var K=u.indexOf("(");
return K!==-1?u.substring(K+1,u.length-1):u},uu6=function(u){switch(u){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},lpp=function(u,K,l,D,d,C){var W=_.k$.clone(KQp);
W.locale=_.E3("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;W.report={description:d||"<empty>"};d=_.E3("SBOX_SETTINGS",{});K=K.join(",");var M=Date.now();u={choice_cc:D,choice_id_cc:l,choices_sc:K,gl:d.REQUEST_DOMAIN,hl:d.REQUEST_LANGUAGE,query:u,time:M};C&&(u.choice_additional_comment_cc=C);_.G3C(W,u)},DEG=function(u){var K=new Map;
K.set("authuser",_.E3("SESSION_INDEX","0"));return _.cK(u,K)},CTo=function(u){var K;
return _.H(function(l){switch(l.nextAddress){case 1:if(!u||!dEp(u))return l.return(null);K=null;switch(_.E3("INNERTUBE_CLIENT_NAME")){case "WEB":return l.jumpTo(2);case "WEB_REMIX":K=u.getPlayer()}l.jumpTo(3);break;case 2:return l.yield(u.getPlayerPromise(),4);case 4:K=l.yieldResult;l.jumpTo(3);break;case 3:return l.return(K)}})},dEp=function(u){return["ytd-player",
"ytmusic-player"].includes(String(u.tagName||"").toLowerCase())},Ip2=function(u){u=Math.round(u);
return u%2?u-1:u},ylE=function(u){u=Math.round(u);
return u%2===0?u-1:u},stG=function(u){var K,l,D;
if(u=(K=u.createPlaylistDialogFormSchema)==null?void 0:(l=K.fieldSchemas)==null?void 0:(D=l.title)==null?void 0:D.validationSchema)for(K=[u.syncStep,u.asyncStep].filter(function(d){return d!==void 0}),K=_.y(K),l=K.next();!l.done;l=K.next()){l=l.value.rules;
if(!l)break;l=_.y(l);for(l=l.next();!l.done;l=l.next())return _.b(l.value,_.H0E)}},WQB=function(u){var K,l,D;
if(u=(K=u.createPlaylistDialogFormSchema)==null?void 0:(l=K.fieldSchemas)==null?void 0:(D=l.visibility)==null?void 0:D.validationSchema)for(K=[u.syncStep,u.asyncStep].filter(function(d){return d!==void 0}),K=_.y(K),l=K.next();!l.done;l=K.next()){l=l.value.rules;
if(!l)break;l=_.y(l);for(D=l.next();!D.done;D=l.next())if(D=_.b(D.value,oUV))return K=void 0,(K=D.translations)==null?void 0:K.visibilityNotValidErrorMessage}},HrV=function(){var u,K;
return(K=(u=_.GB().resolve(_.vv(_.H1)))==null?void 0:u())!=null?K:!1},M16=function(u){var K=21;
if(!u)return K;K+=u.headerTitle?27:0;K+=u.headerTitle&&u.hasHeaderActionHeader?4:0;return K+=u.headerTitle&&u.headerSubtitle?16:0},qp2=function(u){var K=0;
if(!u)return K;K+=u.hasFooterPrimaryButton||u.hasFooterSecondaryButton?48:0;K+=u.footerTrailingLabel||u.footerLeadingLabel?30:0;return K+=u.hasFooterPrimaryButton||u.hasFooterSecondaryButton||!u.footerTrailingLabel&&!u.footerLeadingLabel?0:12},$E_=function(u){var K=new _.Qx,l=u;
return{subscribe:function(D){K.subscribe("changed",D)},
dispatch:function(D,d){var C=l;D==="Touch Start"?l=Object.assign({},C,{isAnimating:!1,initialY:d.event.touches[0].clientY}):D==="Touch Move"?(D=Math.min(d.fullContentWrapperHeight,d.contentHeightMap[d.contentWrapperId]+M16(d.header)-qp2(d.footer)),l=Object.assign({},C,{currentY:Math.max(d.contentScrollable?-1*(C.initialY-24):0,d.event.touches[0].clientY-C.initialY),maxHeightForContentWrapper:Math.min(D,Math.max(0,(C.isFullScreen?D:d.contentWrapperHeight)-C.currentY))})):l=D==="Snap To Full Screen"?
Object.assign({},C,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:d.maxHeight}):D==="Snap To Neutral Position"?Object.assign({},C,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:d.maxHeight}):D==="Close Sheet"?Object.assign({},C,{isAnimating:!0,currentY:d.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:d.maxHeight}):C;K.publish("changed",l)}}},nUo=function(u){return _.p4(function(K){u(K);
return!1})},rlp=function(){_.GB().resolve(_.NR).closeSheet()},vUB=function(u){var K,l,D,d,C,W,M,q,v,G,t;
return{headerTitle:(K=u.headerTitle)==null?void 0:K.call(u),headerSubtitle:(l=u.headerSubtitle)==null?void 0:l.call(u),headerActionHeader:u.headerActionHeader,footerPrimaryButton:u.footerPrimaryButton,footerSecondaryButton:u.footerSecondaryButton,footerButtonType:(D=u.footerButtonType)==null?void 0:D.call(u),footerLeadingLabel:(d=u.footerLeadingLabel)==null?void 0:d.call(u),footerTrailingLabel:(C=u.footerTrailingLabel)==null?void 0:C.call(u),shouldShowIcons:(W=u.shouldShowIcons)==null?void 0:W.call(u),
skipContentClick:(M=u.skipContentClick)==null?void 0:M.call(u),additionalClassName:(q=u.additionalClassName)==null?void 0:q.call(u),onClosedCallback:u.onClosedCallback,focusOnClose:(v=u.focusOnClose)==null?void 0:v.call(u),isDisabled:(G=u.isDisabled)==null?void 0:G.call(u),disabledCommand:(t=u.disabledCommand)==null?void 0:t.call(u),headerFn:u.headerFn,contentFn:u.contentFn,footerFn:u.footerFn,hasHeaderFn:u.hasHeaderFn(),hasContentFn:u.hasContentFn(),hasFooterFn:u.hasFooterFn(),hasFooterPrimaryButton:u.hasFooterPrimaryButton(),
hasFooterSecondaryButton:u.hasFooterSecondaryButton(),hasHeaderActionHeader:u.hasHeaderActionHeader()}},GW6=function(u){switch(u){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""}},t1k=function(u){switch(u){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""}},xEo=function(u){switch(u){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""}},SpV=function(u,K,l){K.forEach(function(D){_.QZ(_.GB().resolve(_.Zl),D)});
_.Sy(u,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",l])},apG=function(u,K,l,D){var d=_.b(l,_.yZ).commandLifeCycleConfig;
d&&d.onStartCommand&&_.ay(u,[d.onStartCommand],K);_.C5(K);var C=_.ow.instance;C&&_.WJ(C,l)?_.HJ(C,l,D).then(function(W){if(!W||(W==null?0:W.error))return W=_.b(l,_.yZ).serializedTransactionFlowLoggingParams,_.IX(K),_.YU(new O1("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",W));_.IX(K);return{data:W}}).then(function(W){_.IX(K);
bri(W.data);var M=W.data.command;M&&_.ay(u,[M],K);M=OrG(l,W.data);if(!M){var q=W.data;W=!1;if(q&&q.command&&_.b(q.command,_.ey)){var v;q=((v=_.b(q.command,_.ey))==null?void 0:v.commands)||[];for(v=0;v<q.length;v++)if(_.b(q[v],_.nKS)){W=!0;break}}W||_.AT('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!M&&d&&d.onSuccessCommand?_.ay(u,[d.onSuccessCommand],K):M&&d&&d.onFailureCommand&&_.ay(u,[d.onFailureCommand],K)},function(){_.IX(K);
d&&d.onFailureCommand&&_.ay(u,[d.onFailureCommand],K);clV(l)}):_.Xm(Error("Bl"),"ERROR")},zPk=function(u,K,l){var D=[K];
l&&D.push(l);return _.c0(u,D).then(function(d){var C=_.b(K,_.yZ).serializedTransactionFlowLoggingParams,W=d.data,M=OrG(K,W);M?d=_.YU(new O1(M,C)):bri(W);return d},function(){var d=_.b(K,_.yZ).serializedTransactionFlowLoggingParams;
clV(K);return _.YU(new O1("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",d))})},OrG=function(u,K){u=_.b(u,_.yZ).serializedTransactionFlowLoggingParams;
var l=null;switch(K.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":l="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":l="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":l="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}l?_.s9(l,u):TM2(u);return l},clV=function(u){_.s9("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.b(u,_.yZ).serializedTransactionFlowLoggingParams)},
bri=function(u){if(u.trackingParams){var K=_.AC(),l=_.Yr();
K&&l&&_.DJ(K,l,_.gf(u.trackingParams))}},ePp=function(u,K,l){var D=_.ow.instance,d=_.FlL(_.E3("YPC_MB_URL")),C=(new _.TTq).init(),W=_.wwb(),M=_.b(l,_.Hoa).languageCode;
M===void 0?_.Xm(Error("Fi"),"ERROR"):_.gx([C,d]).then(function(){var q={ctk:payments.business.integration.ClientTokenFactory.createClientToken(M,W)};D&&_.WJ(D,l)?_.HJ(D,l,q).then(function(v){return{data:v}}).then(function(v){_.xs(K,"yt-service-request-completed",v);
v.code!=="ERROR"&&(v=v.data.command)&&_.ay(u,[v],K)}):_.Xm(Error("Bl"),"ERROR")})},fpE=function(u,K,l,D){var d=_.ow.instance;
d&&_.WJ(d,l)?_.HJ(d,l,D).then(function(C){return{data:C}}).then(function(C){RPE(u,K,l,C)},function(){UEo(l)}):(d=_.GB().resolve(_.vv(_.XQ)))&&d.requestDataForServiceEndpoint(l,D).then(function(C){RPE(u,K,l,C)},function(){UEo(l)})},RPE=function(u,K,l,D){_.xs(K,"yt-service-request-completed",D);
if(D.code&&D.code=="ERROR")UEo(l);else{(D=D.data.commands)&&_.ay(u,D,K);var d;(u=(d=_.b(l,_.vKw))==null?void 0:d.serializedYpcPauseFlowLoggingParams)&&u&&_.Kx("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",u)}},UEo=function(u){var K;
(u=(K=_.b(u,_.vKw))==null?void 0:K.serializedYpcPauseFlowLoggingParams)&&u&&_.Kx("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",u,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},Jl2=function(u,K,l){var D=_.ow.instance;
D&&_.WJ(D,l)?_.HJ(D,l).then(function(d){return{data:d}}).then(function(d){Qt6(u,K,l,d)},function(){PTG(l)}):(D=_.GB().resolve(_.vv(_.XQ)))&&D.requestDataForServiceEndpoint(l).then(function(d){Qt6(u,K,l,d)},function(){PTG(l)})},Qt6=function(u,K,l,D){_.xs(K,"yt-service-request-completed",D);
D.code&&D.code=="ERROR"?PTG(l):((D=D.data.commands)&&_.ay(u,D,K),(u=_.b(l,_.GFC).serializedYpcResumeFlowLoggingParams)&&u&&_.Kx("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",u))},PTG=function(u){(u=_.b(u,_.GFC).serializedYpcResumeFlowLoggingParams)&&u&&_.Kx("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",u,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},jtp=function(u){u=u===void 0?{}:u;
_.GB().resolve(_.FV2).showFeedbackDialog(u.customProductData,u.feedbackContent,u.onFeedbackSubmitted,u.bucket)},Bfp=function(u){u=u===void 0?{}:u;
_.GB().resolve(_.FV2).showHelpDialog(u.helpContext,u.articleId,u.productData)},pbi=function(){Bfp()},irk=function(){jtp()},wb_=function(u,K,l){var D,d,C,W,M,q,v;
return _.H(function(G){switch(G.nextAddress){case 1:D=_.b(u,Tf2);if((d=D)==null?0:d.productId){q={productId:D.productId,bucket:D.bucket,enableAnonymousFeedback:(M=D.enableAnonymousFeedback)!=null?M:!0,allowNonLoggedInFeedback:!0};v={feedbackChoice:l.feedbackChoice};if(!_.S("web_collect_offline_state")){G.jumpTo(8);break}_.Qg(G,9);return G.yield(mNH(v),11)}W={bucket:(C=D)==null?void 0:C.bucket};if(!_.S("web_collect_offline_state")){G.jumpTo(4);break}W.customProductData={};_.Qg(G,5);return G.yield(mNH(W.customProductData),
7);case 7:_.I$(G,4);break;case 5:_.iY(G);case 4:jtp(W);G.jumpTo(0);break;case 11:_.I$(G,8);break;case 9:_.iY(G);case 8:_.RrH(v),_.erH("GFEEDBACK",v),D.productId==="5295751"&&(v.client_attestation=Number(_.E3("CATSTAT",0))),D.productId==="5295751"&&(v.client_time=Date.now()/1E3/3600),D.productId==="5295751"&&(v.original_playback_id=_.KyN||""),_.G3C(q,v),_.TG(G)}})},FQ6=function(u){if(u=_.b(u,_.jUr)){var K={bucket:u.bucketIdentifier};
u.additionalDatas&&(K.customProductData={},u.additionalDatas.forEach(function(l){if(l=l.userFeedbackEndpointProductSpecificValueData)K.customProductData[l.key]=l.value}));
jtp(K)}},V1k=function(u){var K=_.Ci.getInstance();
var l=_.QQ("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var D=_.QQ("DELETE",void 0,"Delete"),d=_.QQ("CANCEL",void 0,"Cancel");l=DPB(l,void 0,D,d,{signal:"DELETE_ALL_DOWNLOADS"});_.Le(K,[{openPopupAction:l}],u)},NfE=function(){return _.H(function(u){return u.nextAddress==1?u.yield(_.GB().resolve(_.x6),2):u.yield(gUH(),0)})},kWB=function(u){var K,l;
return _.H(function(D){return D.nextAddress==1?(l=(K=_.b(u,_.ly))==null?void 0:K.targetId)?D.yield(_.GB().resolve(_.x6),3):D.jumpTo(0):D.yield(_.GB().resolve(_.tG).deleteVideo(l),0)})},Ypo=function(u){var K,l;
return _.H(function(D){return D.nextAddress==1?(l=(K=_.b(u,_.ly))==null?void 0:K.targetId)?D.yield(_.GB().resolve(_.x6),3):D.jumpTo(0):D.yield(Zr_(_.GB().resolve(_.tG),l),0)})},XbI=function(u){var K,l;
return _.H(function(D){return(l=(K=_.b(u,_.ly))==null?void 0:K.targetId)?D.yield(AlE(l),0):D.jumpTo(0)})},hPV=function(){_.S("kevlar_woffle_refresh_dl_load_killswitch")||mEo()},LQp=function(){_.S("kevlar_woffle")&&_.ZU.instance&&EU_()},KEI=function(u){var K;
if((K=_.b(u,_.JK))==null||!K.videoId)return!1;ubE(_.GB().resolve(_.tG),_.b(u,_.JK),u.clickTrackingParams);return!0},DIB=function(u){var K;
if((K=_.b(u,_.BJ))==null||!K.playlistId)return!1;l$k(_.GB().resolve(_.tG),_.b(u,_.BJ),u.clickTrackingParams);return!0},CtV=function(u){var K=_.b(u,_.DGa);
(K==null?void 0:K.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(K==null?void 0:K.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||dIG(_.GB().resolve(_.tG),_.b(u,_.DGa))},yBV=function(u){u=_.b(u,_.jxa);
var K;(u==null?0:(K=u.actions)==null?0:K.length)&&I$o(u)},WEp=function(u){var K,l;
return _.H(function(D){K=_.b(u,sT6);return(l=K)!=null&&l.localWatchHistoryCommandType?D.yield(ooG(K),0):D.return()})},H4_=function(u){setTimeout(function(){requestAnimationFrame(u)},80)},MX_=function(u){return Object.entries(u).map(function(K){return K.join(":")}).join(";")},$Ii=function(u){var K,l,D;
_.H(function(d){if(d.nextAddress==1)return d.yield(q4H(),2);K=d.yieldResult;l=_.Pb.instance;switch(K){case "granted":D=u.getLocationCommand;break;case "denied":D=u.openDeniedDialogAction;break;case "prompt":D=u.openCollectionDialogAction;break;default:D=u.openCollectionDialogAction}D&&l.resolveCommand(D);_.TG(d)})},q4H=function(){var u,K;
return _.H(function(l){if(l.nextAddress==1)return u="prompt",navigator.permissions?l.yield(navigator.permissions.query({name:"geolocation"}),3):l.jumpTo(2);l.nextAddress!=2&&(K=l.yieldResult,u=K.state);return l.return(u)})},rBH=function(){_.H(function(u){return u.yield(_.noH(),0)})},voV=function(){var u,K,l;
return _.H(function(D){if(D.nextAddress==1)return u=_.GB().resolve(_.md),u?D.yield(_.HJ(u,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.hV(Error("El")),D.return(void 0));if(K=D.yieldResult){if(K.errorMetadata)return _.hV(Error("Fl`"+K.errorMetadata.status+"`"+K.error)),D.return(void 0);l=K.datasyncIds;_.kvw=l.length;return D.return(l)}_.hV(Error("Gl"));return D.return(void 0)})},GH_=function(){voV().then(function(u){u&&(S6k(u),Fqi(u),qWk(u),Lq2(u))})},tXk=function(u){_.YL.addLowPriorityJob(function(){var K,
l,D,d,C;
return _.H(function(W){switch(W.nextAddress){case 1:if(_.S("ytidb_clear_optimizations_killswitch")){W.jumpTo(2);break}K=_.iZ("clear");if(K.startsWith("V")&&K.endsWith("||")){var M=[K];S6k(M);Fqi(M);qWk(M);Lq2(M);return W.return()}l=$NV();D=uiV();return W.yield(VRV(),3);case 3:return d=W.yieldResult,W.yield(bik(),4);case 4:if(C=W.yieldResult,!(l||D||d||C))return W.return();case 2:u.isNetworkAvailable()?GH_():u.listenOnce("publicytnetworkstatus-online",GH_),_.TG(W)}})})},cg=function(u){u={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.o7(u)}}}};_.Pb.instance&&_.Pb.instance.resolveCommand(u)},xIE=function(u){if(u){var K=_.iT();
_.ev(K,3854,void 0,{layer:0,parentLayer:4});switch(u){case 1:var l=238708;break;case 2:l=238715;break;case 3:l=238710;break;case 6:l=238709}l&&(u=_.pr(K,{veType:l}))&&_.ft(K,u)}},S42=function(u){if(u){var K=_.iT();
_.ev(K,3854,void 0,{layer:0,parentLayer:4});switch(u){case 1:var l=238714;break;case 2:l=238711;break;case 8:l=238709;break;case 7:l=238713;break;case 3:case 4:case 5:l=238712}l&&(u=_.pr(K,{veType:l}))&&_.ft(K,u)}},b4_=function(u){switch(u.latencyType){case 0:_.Ys("consent_primitive_flow");
_.As("cpit",u.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.As("cpist",u.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.As("cprtif",u.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.As("cprtli",u.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.As("cprt",u.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.As("cpdt",u.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.As("cpjct",u.timestampEpochMillis,"consent_primitive_flow")}},
Pt_=function(u,K){var l,D,d,C,W,M,q,v,G,t,x,O,a,f,B,p,V,m,Z,A;
return _.H(function(h){switch(h.nextAddress){case 1:_.Qg(h,2);(D=(l=_.b(u,O42))==null?void 0:l.serializedConsentRequest)||(D=(d=_.b(u,cBp))==null?void 0:d.serializedConsentRequest);D&&(C=a$p(_.Wa(D)));if(C===void 0)return h.return();W=zMp(C);W.latencyCallback=b4_;K&&eMH(W,function(){K.then(function(C9){C9.pauseVideo();(new RM6).increment()})});
return((M=_.b(u,O42))==null?void 0:M.consentAction)==="CONSENT_ACTION_PREWARM"||((q=_.b(u,cBp))==null?void 0:q.consentAction)==="CONSENT_ACTION_PREWARM"?h.yield(UIE(W),5):h.yield(f$H(W),6);case 6:v=h.yieldResult;G=_.wa(v,aJ);if(G===1){if(((t=_.uO(v,z4,1,aJ))==null?void 0:_.h0(t,1))===1||((x=_.uO(v,z4,1,aJ))==null?void 0:_.h0(x,1))===2||((O=_.uO(v,z4,1,aJ))==null?void 0:_.h0(O,1))===3)_.b(u,cBp)?cg(_.QQ("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
cg(_.QQ("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));xIE((a=_.uO(v,z4,1,aJ))==null?void 0:_.h0(a,1),_.rB(v,QTI,3,_.vO()))}else G===2?(((f=ei(v))==null?void 0:_.h0(f,1))===5?_.b(u,cBp)?cg(_.QQ("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):cg(_.QQ("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((B=ei(v))==null?void 0:_.h0(B,1))===1||((p=ei(v))==null?void 0:_.h0(p,1))===4?cg(_.QQ("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((V=ei(v))==null?void 0:_.h0(V,1))===7&&((m=C)==null?void 0:(Z=_.fV(m,RJ,4))==null?void 0:_.h0(Z,4))!==1&&cg(_.QQ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),S42((A=ei(v))==null?void 0:_.h0(A,1))):cg(_.QQ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));h.jumpTo(5);break;case 5:_.I$(h,0);break;case 2:_.iY(h),cg(_.QQ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.TG(h)}})},jT_=function(){if(!JB_.has("Worker")){JB_.set("Worker",
!0);
var u={api:"BROWSER_API_WEB_WORKER"};u.available="Worker"in window?!0:!1;_.YE("apiTest",u)}},BYp=function(u){return typeof u==="undefined"?"-1":String(Math.ceil(u/1048576))},w1_=function(u,K){p1p(new i4k(_.b(K,TYE).addToken,_.b(K,TYE).commonToken)).then(function(){_.xs(u,"yt-invoke-instrument-manager-action-completed")},function(l){_.xs(u,"yt-invoke-instrument-manager-action-error",l)})},FEE=function(u){return _.Ca(u)},VXp=function(u){var K=1;
u=u.split(":");for(var l=[];K>0&&u.length;)l.push(u.shift()),K--;u.length&&l.push(u.join(":"));return l},goI=function(u,K){K=u.aspectRatio()<=K.aspectRatio()?K.width/u.width:K.height/u.height;
u.scale(K)},NYp=function(u,K){K=u.aspectRatio()>K.aspectRatio()?K.width/u.width:K.height/u.height;
return u.scale(K)},kHH=function(u){var K=new _.e3;
return _.Ka(K,11,u)},Z4G=function(u){var K={};
u=u.getAllResponseHeaders().split("\r\n");for(var l=0;l<u.length;l++)if(!_.oR(u[l])){var D=VXp(u[l]),d=D[0];D=D[1];if(typeof D==="string"){D=D.trim();var C=K[d]||[];K[d]=C;C.push(D)}}return _.k$.map(K,function(W){return W.join(", ")})},pb=function(u,K){return u.JSC$9723_xhr_?u.JSC$9723_xhr_.getResponseHeader(K):null},Y42=function(u,K){if(u.isDisposed())throw Error("Ea");
u.xp.iB("n");var l=_.h1(u.xp,function(){return u.swV([K.mk,K.egq,K.lko,K.n6O])},"n");
u.xp.zWq(l.length);u.xp.wk();return l},U1=function(u,K,l){Array.isArray(l)||(l=[String(l)]);
_.hpa(u.JSC$9960_queryData_,K,l);return u},EU_=function(){var u=_.ZU.instance;
_.H(function(K){return u.deferredInstallPrompt?K.yield(u.deferredInstallPrompt.prompt(),0):K.jumpTo(0)})},AB6=function(u,K,l){if(_.mb(u))_.yx(u,K,l);
else for(u=_.s9C(u);;){var D=u.next();if(D.done)break;K.call(l,D.value,void 0,u)}},X1p={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}"]},kT6,Z1V,YKV,AKH,XJE,mX6,hE_,EYB,Lo_,AlE,Zr_,gUH,uRH,KU2,lSE,DCI,dC2,CCi,l$k,ubE,ISp,y3H,s5k,mEo,dIG,oe_,I$o,WUE,ooG,HzE,MdV,qLo,$CE,ne_,r3E,vep,Gkp,
tdV,xCG,SLV,bz_,HgE,OzE,c3I,aSi,zB_,eB_,RB6,UC_,dn_,K3k,fSB,Bg,pv,i9,T4,Q5H,PCp,J3E,j5p,Bs_,pkI,iz_,Ts_,wk_,FUV;X1p={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 mI6=function(u,K){var l=[];AB6(K,function(D){try{var d=_.SR.prototype.getWrapper.call(this,D,!0)}catch(C){if(C=="Storage: Invalid value was encountered")return;throw C;}d===void 0?l.push(D):_.ypw(d)&&l.push(D)},u);
return l},hMp=function(u,K){mI6(u,K).forEach(function(l){_.SR.prototype.remove.call(this,l)},u)},Eop=function(u){var K=_.yb;
K._minimumZ=Math.max(K._minimumZ,u)},LEH=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],ufi=function(u,K){_.qt(u.vm);u.vm=K},Kok=function(u,K,l,D){u.setState(5);
var d=!!u.iUp&&LEH.includes(_.q7(u.iUp)||"");try{var C=new _.Eu({program:K,globalName:l,lqp:{disable:!_.S("att_web_record_metrics")||!_.S("att_skip_metrics_for_cookieless_domains_ks")&&d,po:"aGIf"}});C.ceC.then(function(){u.setState(6);D&&D(K)});
ufi(u,C)}catch(W){u.setState(7),W instanceof Error&&_.hV(W)}},la_=function(u,K,l,D,d,C){var W=W===void 0?"trayride":W;
l?(u.setState(2),_.KN(_.Vf(l),function(){if(window[W])Kok(u,D,W,d);else{u.setState(3);var M=_.QhZ(l),q=document.getElementById(M);q&&(_.Bfy(M),q.parentNode.removeChild(q));_.hV(new _.wv("BL:ULB",l))}},C)):K?(C=_.PO("SCRIPT"),K instanceof _.WZ?_.qT(C,K):C.textContent=K,C.nonce=_.oS(document),document.head.appendChild(C),document.head.removeChild(C),window[W]?Kok(u,D,W,d):(u.setState(4),_.hV(new _.wv("BL:ULBJ")))):_.hV(new _.wv("BL:ULV"))},DXp=function(){this.state=1;
this.vm=null;this.iUp=void 0};
_.I=DXp.prototype;_.I.initialize=function(u,K,l,D){this.iUp=D;if(u.program){var d;D=(d=u.interpreterUrl)!=null?d:null;if(u.interpreterSafeScript)d=_.dnb(u.interpreterSafeScript);else{var C;d=(C=u.interpreterScript)!=null?C:null}u.interpreterSafeUrl&&(D=_.AP(u.interpreterSafeUrl).toString());la_(this,d,D,u.program,K,l)}else _.hV(Error("mf"))};
_.I.isInitialized=function(){return!!this.vm};
_.I.getState=function(){return this.state};
_.I.isLoading=function(){return this.state===2};
_.I.invoke=function(u){u=u===void 0?{}:u;var K;this.vm?K=Y42(this.vm,{mk:u}):K=null;return K};
_.I.dispose=function(){ufi(this,null);this.setState(8)};
_.I.setState=function(u){this.state=u};
var dXi=function(u,K){return u.vm.snapshot(K)},Cek=function(u,K){var l=_.Sg("botguard_async_snapshot_timeout_ms",3E3);
K=K===void 0?{}:K;l=l===void 0?3E3:l;return u.vm?new Promise(function(D,d){var C=!1,W=_.YL.addJob(function(){C=!0;d(Error("nf"))},1,l);
u.vm?dXi(u,{mk:K}).then(function(M){_.YL.cancelJob(W);C||D(M)}).catch(function(M){_.YL.cancelJob(W);
C||d(M)}):(_.YL.cancelJob(W),D(null))}):Promise.resolve(null)},Iap=["att/log"],yK2;
yK2={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var swp={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},oYi=function(u,K){return _.Ju(u,{mode:"readwrite",enableRetries:!0},function(l){return _.WDR(l,K,"settingEntity")})},WoI=function(u,K,l){return _.Ju(u,{mode:"readonly",
enableRetries:!0},function(D){return _.TW0(D,K,l)})},H12=function(u){if(!u.storage)return!1;
a:{if(u.storage){try{var K=u.storage.get("TLPQtimestamp")}catch(l){}u=Number(K);if(!isNaN(u))break a}u=void 0}return u?Date.now()-u<864E5:!1},MUp=function(u){if(u.storage){try{var K=u.storage.get("TLPQindex")}catch(l){}u=Number(K);
if(!isNaN(u))return u}},qKo=function(u,K){u.queueProxy&&K.forEach(function(l){if(l.videoId&&l.trackingParams&&u.queueProxy instanceof _.Lt){var D=_.AC();
u.queueProxy.attributionData.set(l.videoId,{enqueueingVe:_.gf(l.trackingParams).getAsJson(),enqueueingCsn:D?D:void 0,clientEnqueueingTimeMs:Math.floor((0,_.vA)()).toString()})}})},$XB=function(u){var K=_.tpw(u);
K!=u.currentSnapState_&&(u.currentSnapState_=K,u.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},fv=function(u){this.JSC$13029_networkManager_=u;
this.partCallbacks_=[]};
fv.prototype.getCacheKeyForEndpoint=function(u){return _.ZlH(u,!1)};
fv.prototype.onPartsCallback_=function(u){this.partCallbacks_.forEach(function(K){u&&K(u)})};
var QE=function(u,K,l){fv.call(this,u);this.player_=K;this.autoplayData_=l};
_.c(QE,fv);QE.prototype.getCacheKeyForEndpoint=function(u){return _.ZlH(u,!!this.autoplayData_)};
QE.prototype.getTempData=function(u,K){K=K.timeBeforeNextVideo;u={itct:u.clickTrackingParams,lact:_.Gr(),pbis:K,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(u.autonav=1);return u};
QE.prototype.getXhrParams=function(u){return Object.assign({pbj:"prefetch"},u)};
QE.prototype.getParams=function(u){u={frags:u.fragmentsRequested.join(",")};_.S("kevlar_droppable_prefetchable_requests")&&(u.prefetch=1);return u};
var nY2=function(u){u.playerEvents_.forEach(function(K){u.player.removeEventListener(K.eventName,K.callback)});
u.playerEvents_.length=0},Pg=function(u,K,l){this.player=u;
this.JSC$13039_taskManager=K;this.prefetchDelay=l;this.completionResolver_=null;this.playerEvents_=[]};
Pg.prototype.start=function(){var u=this;this.completionResolver_=_.MX();_.Ne(this.completionResolver_.promise,function(){nY2(u);u.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var rKH=function(u,K,l){u.player.addEventListener(K,l);u.playerEvents_.push({eventName:K,callback:l})},vYV={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},GT_={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},tUI=function(u,K,l){Pg.call(this,u,K,l);this.cueId_="playbackTrigger-"+Math.random()};
_.c(tUI,Pg);
tUI.prototype.prepareTrigger=function(u){var K=this,l=this.player.getDuration(),D=this.player.getVideoData(),d=D.isLive&&D.hasProgressBarBoundaries;if(d&&D.progressBarEndPositionUtcTimeMillis){var C=D.progressBarEndPositionUtcTimeMillis/1E3;isNaN(C)||(l=C)}var W=0;this.prefetchDelay>=0?d?D.progressBarStartPositionUtcTimeMillis&&(D=D.progressBarStartPositionUtcTimeMillis/1E3,isNaN(D)||(W=D+this.prefetchDelay)):W=this.prefetchDelay:W=l+this.prefetchDelay;d?this.player.addUtcCueRange(this.cueId_,W,l):
this.player.addCueRange(this.cueId_,W,l);_.Ne(u.promise,function(){K.player.removeCueRange(K.cueId_)});
rKH(this,"onCueRangeEnter",function(M){M==K.cueId_&&u.resolve(l-W)})};
var xX2=function(u,K){u.fragmentConfiguration_[K].requiredKeys.every(function(l){return!!u.prefetchedData_[l]})&&(u.validatedFragments_.push(K),K=u.missingFragments_.indexOf(K),K!==-1&&u.missingFragments_.splice(K,1))},SK2=function(u){u.prefetchedFragments_.forEach(function(K){xX2(u,K)})},b16=function(u,K,l){this.pageFragments_=u;
this.prefetchedFragments_=K;this.fragmentConfiguration_=GT_;this.prefetchedData_=l;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;SK2(this)},O1E=function(){},cKi=function(u){this.JSC$13053_playlistManager_=u};
_.c(cKi,O1E);cKi.prototype.getPrefetchEndpoint=function(){return this.JSC$13053_playlistManager_.getAutoplayEndpoint()};
var aaG=function(u){this.autonavEndpoints_=u};
_.c(aaG,O1E);aaG.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var zE6=function(u,K,l,D,d){this.autonavEndpoints=u;this.foregroundTrigger=K;this.backgroundTrigger=l;this.pageType=D;this.isInPlaylist=d},eEp=function(u,K){if(u.webPrefetchData&&u.webPrefetchData.navigationEndpoints&&u.webPrefetchData.navigationEndpoints.length){u=u.webPrefetchData.navigationEndpoints;
var l=_.b(u[0],_.oy);if(l.watchEndpointSupportedPrefetchConfig&&l.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var D=l.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;l=D.playbackRelativeSecondsPrefetchCondition;l=typeof l==="number"&&Math.abs(l)<K.videoDuration?l:void 0;D=D.countdownUiRelativeSecondsPrefetchCondition;D=typeof D!=="number"||_.S("prefetch_job_config_cleanup_ks")&&K.inPlaylist?void 0:D;if(typeof D==="number")return new zE6(u,K.makeUpNextTrigger(D),K.makePlaybackTrigger(D),
"watch",K.inPlaylist);if(typeof l==="number")return new zE6(u,K.makePlaybackTrigger(l),null,"watch",K.inPlaylist)}}},REE=function(u){return u.prefetchJobConfig_.backgroundTrigger?_.KT(_.ULy)()==0?u.prefetchJobConfig_.backgroundTrigger:u.prefetchJobConfig_.foregroundTrigger:u.prefetchJobConfig_.foregroundTrigger},UXE=function(u){_.TY(document,"visibilitychange",u.onVisibilityChange_,!1,u)},J6=function(u){fv.call(this,u)};
_.c(J6,fv);J6.prototype.getCacheKeyForEndpoint=function(u){return fv.prototype.getCacheKeyForEndpoint.call(this,u)};
J6.prototype.getTempData=function(){return{}};
J6.prototype.getXhrParams=function(u){return u};
J6.prototype.getParams=function(){return{}};
var faE=function(u,K,l){var D=u.prefetchDelay*1E3;if(Math.abs(D)>K)l.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var d=D,C=K-D;D<0&&(d=K+D,C=Math.abs(D));var W=u.JSC$13039_taskManager.addJob(function(){l.resolve(C/1E3)},10,d);
l.promise.thenCatch(function(){u.JSC$13039_taskManager.cancelJob(W)})}},Qwp=function(u,K,l){Pg.call(this,u,K,l)};
_.c(Qwp,Pg);Qwp.prototype.prepareTrigger=function(u){var K=this;rKH(this,"onAutonavCoundownStarted",function(l){faE(K,l,u)})};
var Pei=function(u){u.pendingPrefetchJob_&&(u.pendingPrefetchJob_.cancel(),u.pendingPrefetchJob_=null)},JKV=function(u,K,l){if(!u.triggeredTargets.has(K)){var D=_.q_0(u,K);
D.action=l;_.HhB(u,K,D)}},jwV=function(u){_.L$0();
_.NVH("cpt")&&_.hV(Error("mh"));_.lL.requestAnimationFrame(function(){_.lL.setTimeout(function(){_.As("cpt");var K=_.Ex("vpl"),l=_.Ex("cpt");K&&l&&_.As("ol",Math.max(K,l))})});
try{_.As("fr_s"),u()}catch(K){_.Xm(K)}_.lL.requestAnimationFrame(function(){_.As("bcp")})},BE6=function(u,K){u.serviceEndpointHandlers.push(K)},pJ6=function(u,K){K=u.pendingPages_.indexOf(K);
K>-1&&u.pendingPages_.splice(K,1)},i1E=function(u,K){var l=_.OjR.indexOf(K);
l>-1&&_.OjR.splice(l,1);u.targetPage_==K?(u.abort(),_.ark(u)):pJ6(u,K)},TEp=function(u,K,l,D){K={challenge:K};
l&&(K.webResponse=l);return _.K7(u.innertubeTransportService,K,_.qu(Iap),D)},wJG=function(u,K,l){if(!K.challenge)throw Error("oi");
if(K.botguardData&&K.botguardData.program){var D=new DXp;D.initialize(K.botguardData,function(){Cek(D,{atr_challenge:K.challenge}).then(function(d){if(!d)throw Error("pi");return TEp(u,K.challenge,d,l)}).catch(function(d){_.hV(d);
return TEp(u,K.challenge,void 0,l)})},void 0)}else TEp(u,K.challenge,void 0,l)},FoG=function(u,K,l){var D={};
K.ids&&(D.ids=[].concat(_.Am(K.ids)));K.engagementType&&(D.engagementType=K.engagementType);return _.K7(u.innertubeTransportService,D,_.qu(_.d10),l).then(function(d){if(!d)throw new _.wv("GetAttestationChallenge returned falsy");wJG(u,d,l)}).thenCatch(function(d){_.Xm(d)})},VU_=function(u,K,l){return new _.RL(function(D,d){var C;
return _.H(function(W){if(W.nextAddress==1){var M=W.yield,q=K.engagementType,v=K.ids,G={};v=_.y(v!=null?v:[]);for(var t=v.next();!t.done;t=v.next())t=t.value,t.encryptedVideoId?G.encryptedVideoId=t.encryptedVideoId:t.externalChannelId?G.externalChannelId=t.externalChannelId:t.commentId?G.commentId=t.commentId:t.externalOwnerId?G.externalOwnerId=t.externalOwnerId:t.artistId?G.artistId=t.artistId:t.playlistId?G.playlistId=t.playlistId:t.externalPostId?G.externalPostId=t.externalPostId:t.shareId&&(G.shareId=
t.shareId);return M.call(W,lhH(q,G),2)}C=W.yieldResult;if(!C.challenge)return _.hV(Error("qi")),FoG(u,K,l).then(D,d),W.return();M=C;q={challenge:M.challenge};q.webResponse=M.webResponse;q.engagementType=K.engagementType;q.ids=K.ids;_.K7(u.innertubeTransportService,q,_.qu(Iap),l).then(D,d);_.TG(W)})})},yU6=function(u,K){var l,D,d,C;
_.H(function(W){if(W.nextAddress==1){l=_.b(K,_.kYm);if(!(l&&l.listId&&u.response&&u.response.playingVideoId)||u.listId!==l.listId)return W.return();u.index===void 0&&(u.index=0);return W.yield(_.Saw(u.JSC$12784_playlistNetworkManager,l.listId,u.index,u.response.playingVideoId),2)}D=W.yieldResult;if(!D)return W.return();d=D.playlistId;C=D.playlistPanelRenderer;u.setPlaylistData(d,C,D.autoplayRenderer);_.TG(W)})},gYE=function(u,K,l){var D=u.getParams(l),d=_.$XH(K,D),C=u.getTempData(K,l);
C.endpoint=JSON.stringify(K);_.S("enable_unknown_lact_fix_on_html5")&&(_.GB().resolve(_.Xb),C.lact=_.Gr());var W={headers:{"X-YouTube-STS":_.E3("STS"),"x-youtube-csoc":1}};_.qB(d,C);return new _.RL(function(M,q){var v=u.getXhrParams(D),G;_.S("kevlar_cache_on_ttl_player")&&(G=_.ww.instance);G&&_.NF2(G,K)?_.EBC(G,K,C,window.location.href).then(function(t){t?M(t):q()},q):_.tCH(u.JSC$13029_networkManager_,K,v,u.onPartsCallback_.bind(u),W).then(function(t){t?M(t):q()},q)})},NEH=function(u,K){u.triggerPromise_=
K.start();
u.triggerPromise_.then(function(l){var D=u.prefetchEndpointProvider_.getPrefetchEndpoint();if(D){var d=vYV[u.prefetchJobConfig_.pageType].prefetchedFragments;u.prefetchRequestPromise_=gYE(u.JSC$13065_networkPrefetchRequest_,D,{fragmentsRequested:d,timeBeforeNextVideo:l});u.prefetchResponseCacheKey_=u.JSC$13065_networkPrefetchRequest_.getCacheKeyForEndpoint(D);UXE(u);u.prefetchRequestPromise_.then(function(C){u.storePrefetchedDataCallback_(u.prefetchResponseCacheKey_,C);if(_.S("web_prefetch_preload_video")&&
d.length===1&&d[0]==="pl"&&C&&!C.playerAds&&!C.adPlacements){var W=_.b(D,_.TO),M=W!=null,q={raw_player_response:C,watch_endpoint:W};(C=_.GB().resolve(M?_.DgC:_.aw))&&D&&C.then(function(v){M&&_.S("web_queue_preload_video")?(q.prefer_gapless=!0,v.queueNextVideo(q)):v.preloadVideoByPlayerVars(q)})}})}})},ji=function(u,K,l,D){this.prefetchEndpointProvider_=u;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=K;this.prefetchJobConfig_=l;this.JSC$13065_networkPrefetchRequest_=D;this.prefetchResponseCacheKey_=null};
ji.prototype.enqueue=function(){this.triggerPromise_||(NEH(this,REE(this)),_.kU(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
ji.prototype.resolve=function(){this.cancel()};
ji.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.");UXE(this)};
ji.prototype.onVisibilityChange_=function(){var u=this;_.KT(_.ULy)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){u.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||NEH(this,REE(this))};
kT6=function(u,K,l,D,d){K&&(K==null?0:K.videoId)&&l&&l.entries&&_.S("kevlar_enable_shorts_prefetch_in_sequence")&&(Pei(u),K=l.entries.map(function(C){var W;return(W=_.b(C.command,_.TO))==null?void 0:W.videoId}).indexOf(K.videoId),l=l.entries[K+1],l!=null&&l.command&&!_.b(l==null?void 0:l.command,_.uF)&&(D=new zE6([l.command],new tUI(D,_.YL,1),null,"shorts",!1),u.pendingPrefetchJob_=new ji(new aaG(D.autonavEndpoints),function(){return!1},D,new J6(d)),u.pendingPrefetchJob_.enqueue()))};
Z1V=function(u,K,l,D,d,C){var W=_.v3.getInstance();if(!_.S("block_all_player_prefetch_requests")){Pei(u);var M=!!l.getPlaylistId(),q=l.getVideoData().isLive&&l.getVideoData().hasProgressBarBoundaries;if((W.getState()==2||M||q)&&(!l.getVideoData().isLive||q)){W={inPlaylist:M,videoDuration:l.getDuration(),makeUpNextTrigger:function(G){return new Qwp(l,_.YL,G)},
makePlaybackTrigger:function(G){return new tUI(l,_.YL,G)}};
var v=eEp(K,W);v&&(u.pendingPrefetchJob_=new ji(v.isInPlaylist?new cKi(d):new aaG(v.autonavEndpoints),function(G,t){t=new b16(vYV[v.pageType].pageFragments,vYV[v.pageType].prefetchedFragments,t);return _.l9S(t)?(u.prefetchCache_.set(G,t),!0):!1},v,new QE(D,l,C,d)),u.pendingPrefetchJob_.enqueue())}}};
YKV=function(){var u=_.y1();u.signals.parkOrScheduleJob(function(){var K=u.storage;if(K.storage)if(H12(K)){var l=K.getPlaylistId();K=MUp(K);l=!!l&&K!==void 0}else K.clear(),l=!1;else l=!1;if(l){l=u.pageManager.isOnWatch();a:{var D=u.storage;if(D.storage&&H12(D)&&(K=D.getPlaylistId(),D=MUp(D),K&&D!==void 0)){l={recoverPlaylistCommand:{listId:K,index:D,openMiniplayer:!l,openListPanel:l,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}l=void 0}l&&_.Le(u.JSC$12784_actionRouter,[l],null)}},0,"ma")};
AKH=function(u,K,l,D,d,C){var W=_.Yo(7111);_.RD(u.JSC$18132_screenManager,W,C?_.gf(C):void 0);_.ft(u.JSC$18132_screenManager,W,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:D,offlineId:K,offlineabilityFormatType:l,isDefaultFormatType:d==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:d}})};
XJE=function(u,K,l,D,d){var C,W,M,q,v;return _.H(function(G){if(G.nextAddress==1)return G.yield(u.JSC$18132_playerApiPromise,2);C=G.yieldResult;AKH(u,K,l,"OFFLINE_OBJECT_TYPE_PLAYLIST",D,d);if(M=_.ZZN[u.entityTypeMap.listEntityType])v={},W=(v[M]={maximumDownloadQuality:(q=l)!=null?q:void 0},v);return G.yield(C.queueOfflineAction(K,u.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",W),0)})};
mX6=function(u,K){var l,D,d,C;return _.H(function(W){if(W.nextAddress==1)return W.yield(u.JSC$18132_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3){l=W.yieldResult;if(!l)return _.hV(new _.wv("PES is undefined")),W.return();D=_.zI(K,"downloadStatusEntity");return W.yield(WoI(l,D,"downloadStatusEntity"),3)}d=W.yieldResult;return W.return((C=d)==null?void 0:C.downloadState)})};
hE_=function(u,K,l,D,d){var C,W,M,q,v,G;return _.H(function(t){switch(t.nextAddress){case 1:return t.yield(u.JSC$18132_playerApiPromise,2);case 2:C=t.yieldResult;AKH(u,K,l,"OFFLINE_OBJECT_TYPE_VIDEO",D,d);if(M=_.ZZN[u.entityTypeMap.singleEntityType])v={},W=(v[M]={maximumDownloadQuality:(q=l)!=null?q:void 0},v);return t.yield(mX6(u,K),3);case 3:G=t.yieldResult;if(G!=="DOWNLOAD_STATE_USER_DELETED"){t.jumpTo(4);break}return t.yield(u.deleteVideo(K),4);case 4:return t.yield(C.queueOfflineAction(K,u.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",W),0)}})};
EYB=function(u,K,l,D,d){return _.H(function(C){return C.nextAddress==1?C.yield(u.deleteVideo(K,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):C.yield(hE_(u,K,l,D,d),0)})};
Lo_=function(u,K,l){var D,d;return _.H(function(C){if(C.nextAddress==1)return C.yield(u.JSC$18132_playerApiPromise,2);D=C.yieldResult;d=_.zI(K,"mainVideoDownloadStateEntity");return C.yield(D.updateDownloadState(d,l),0)})};
AlE=function(u){var K=_.GB().resolve(_.tG);return _.H(function(l){if(l.nextAddress==1)return K.previousDownloadStateForVideo[u]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&K.previousDownloadStateForVideo[u]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?l.jumpTo(2):l.yield(K.resumeVideoDownload(u),2);if(l.nextAddress!=4)return l.yield(Lo_(K,u,K.previousDownloadStateForVideo[u]),4);delete K.previousDownloadStateForVideo[u];_.TG(l)})};
Zr_=function(u,K){var l;return _.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$18132_playerApiPromise,2);l=D.yieldResult;return D.yield(l.queueOfflineAction(K,u.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
gUH=function(){var u=_.GB().resolve(_.tG),K,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$18132_playerApiPromise,2);if(D.nextAddress!=3)return K=D.yieldResult,l={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},D.yield(K.queueOfflineAction("!*$_ALL_ENTITIES_!*$",u.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",l),3);var d=u.JSC$18132_commandHandler,C=d.resolveCommand,W=_.QQ("DELETING_ALL",void 0,"Downloads are being deleted");
C.call(d,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.GI(W)}},popupType:"TOAST"}});_.TG(D)})};
uRH=function(u,K){var l,D,d,C,W,M;return _.H(function(q){if(q.nextAddress==1)return q.yield(u.JSC$18132_persistentStorePromiseAccessor(),2);if(q.nextAddress!=3)return l=q.yieldResult,l?q.yield(WoI(l,_.gZ,"downloadsPageViewConfigurationEntity"),3):(_.hV(new _.wv("PES is undefined")),q.return());d=(D=q.yieldResult)!=null?D:{};M=(W=(C=d)==null?void 0:C.downloadsUpsellBannerVisibility)!=null?W:{};return M.visibleWithConnection?q.yield(K.refreshAllStaleEntities(0),0):q.jumpTo(0)})};
KU2=function(u){var K,l;return _.H(function(D){if(D.nextAddress==1)return D.yield(u.JSC$18132_prefStorage,2);K=D.yieldResult;return D.return((l=K)==null?void 0:l.get("sdois"))})};
lSE=function(u){var K,l,D,d,C,W;return _.H(function(M){if(M.nextAddress==1)return M.yield(u.JSC$18132_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3){K=M.yieldResult;if(!K)return _.hV(new _.wv("PES is undefined")),M.return();l=_.zI("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return M.yield(WoI(K,l,"settingEntity"),3)}D=M.yieldResult;return M.return((W=(d=D)==null?void 0:(C=d.settingOptionValue)==null?void 0:C.boolValue)!=null?W:!1)})};
DCI=function(u,K){var l,D,d,C;return _.H(function(W){switch(W.nextAddress){case 1:return((l=K)==null?void 0:l.formatType)===void 0?W.return():W.yield(u.JSC$18132_prefStorage,2);case 2:D=W.yieldResult;if(D===void 0)return W.return();if(((d=K)==null?void 0:d.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return W.yield(D.set("lmqf",K.formatType),8);if(((C=K)==null?void 0:C.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){W.jumpTo(0);break}return W.yield(D.set("lmqf",K.formatType),
6);case 6:return W.yield(D.set("lmqflst",Math.floor((0,_.vA)())),0);case 8:return W.yield(D.remove("lmqflst"),0)}})};
dC2=function(u){var K,l;return _.H(function(D){switch(D.nextAddress){case 1:return D.yield(u.JSC$18132_prefStorage,2);case 2:K=D.yieldResult;if(!K){D.jumpTo(3);break}return D.yield(K.get("lmqflst"),4);case 4:if(l=D.yieldResult,l!==void 0)return D.return(l);case 3:return D.return(0)}})};
CCi=function(u){var K,l;return _.H(function(D){switch(D.nextAddress){case 1:return D.yield(u.JSC$18132_prefStorage,2);case 2:K=D.yieldResult;if(K===void 0){D.jumpTo(3);break}return D.yield(K.get("lmqf"),4);case 4:if(l=D.yieldResult,l!==void 0)return D.return(l);case 3:return D.return("SD")}})};
l$k=function(u,K,l){var D,d,C,W,M,q,v,G;_.H(function(t){switch(t.nextAddress){case 1:return t.yield(DCI(u,(D=K)==null?void 0:D.actionParams),2);case 2:d=K.playlistId;if(!d)return t.return();if(K.action==="ACTION_ADD")return((W=K.actionParams)==null?0:W.formatType)?t.yield(XJE(u,d,K.actionParams.formatType,(G=K.actionParams)==null?void 0:G.settingsAction,l),0):t.yield(u.offlineWebClientEligibility,14);if(K.action==="ACTION_REMOVE_WITH_PROMPT"){var x=u.JSC$18132_commandHandler,O=x.resolveCommand,a=
_.E3("INNERTUBE_CLIENT_NAME");var f=a==="WEB_REMIX"?_.QQ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.QQ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var B=a==="WEB_REMIX"?[_.QQ("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];a=a==="WEB_REMIX"?_.QQ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.QQ("DELETE",void 0,"Delete");var p=_.QQ("CANCEL",void 0,"Cancel");f=DPB(f,B,a,p,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:d});
O.call(x,{openPopupAction:f});return t.return()}if(K.action==="ACTION_REMOVE")return t.yield(Zr_(u,d),0);if(K.action!=="ACTION_SYNC"){t.jumpTo(0);break}return t.yield(u.JSC$18132_playerApiPromise,9);case 9:return C=t.yieldResult,t.yield(C.queueOfflineAction(d,u.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return M=t.yieldResult,t.yield(CCi(u),15);case 15:return q=t.yieldResult,t.yield(dC2(u),16);case 16:v=t.yieldResult,K.onAddCommand&&u.JSC$18132_commandHandler.resolveCommand(K.onAddCommand,
{form:{preferredFormatType:q,offlineWebClientEligibility:M,lastOfflineQualitySettingsSavedMs:v.toString()}}),t.jumpTo(0)}})};
ubE=function(u,K,l){var D,d,C,W,M,q,v,G,t,x,O,a,f,B;_.H(function(p){switch(p.nextAddress){case 1:return p.yield(DCI(u,(D=K)==null?void 0:D.actionParams),2);case 2:d=K.videoId;if(!d)return p.return();if(K.action==="ACTION_REMOVE_WITH_PROMPT"){var V=u.JSC$18132_commandHandler,m=V.resolveCommand,Z=_.E3("INNERTUBE_CLIENT_NAME");var A=Z==="WEB_REMIX"?_.QQ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.QQ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var h=Z==="WEB_REMIX"?[_.QQ("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];Z=Z==="WEB_REMIX"?_.QQ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.QQ("DELETE",void 0,"Delete");var C9=_.QQ("CANCEL",void 0,"Cancel");A=DPB(A,h,Z,C9,{signal:"DELETE_DOWNLOAD",targetId:d});m.call(V,{openPopupAction:A});return p.return()}if(K.action==="ACTION_ADD")return((x=K.actionParams)==null?0:x.formatType)?p.yield(hE_(u,d,K.actionParams.formatType,(B=K.actionParams)==null?void 0:B.settingsAction,l),0):p.yield(u.offlineWebClientEligibility,
23);if(K.action==="ACTION_RETRY")return p.yield(CCi(u),19);if(K.action==="ACTION_PAUSE")return p.yield(u.pauseVideoDownload(d),0);if(K.action==="ACTION_RESUME")return p.yield(u.resumeVideoDownload(d),0);if(K.action!=="ACTION_REMOVE"){p.jumpTo(0);break}return p.yield(mX6(u,d),13);case 13:return C=p.yieldResult,u.previousDownloadStateForVideo[d]=(W=C)!=null?W:"DOWNLOAD_STATE_UNKNOWN",p.yield(Lo_(u,d,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(u.previousDownloadStateForVideo[d]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
u.previousDownloadStateForVideo[d]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){p.jumpTo(15);break}return p.yield(u.pauseVideoDownload(d),15);case 15:V=_.QQ("DELETED_VIDEO",void 0,"Video deleted from downloads.");m=_.QQ("UNDO_ACTION",void 0,"Undo");A=_.QQ("CLOSE",void 0,"Close");M={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.GI(V),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.GI(m),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:d}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:V+" "+m}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:d}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:A}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};u.JSC$18132_commandHandler.resolveCommand(M);
p.jumpTo(0);break;case 19:q=p.yieldResult;q==="UNKNOWN_FORMAT_TYPE"&&(q="SD");v="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((G=K.actionParams)==null?0:G.formatType)q=K.actionParams.formatType,v=(t=K.actionParams)==null?void 0:t.settingsAction;return p.yield(EYB(u,d,q,v,l),20);case 20:return p.return();case 23:return O=p.yieldResult,p.yield(CCi(u),24);case 24:return a=p.yieldResult,p.yield(dC2(u),25);case 25:f=p.yieldResult,K.onAddCommand&&u.JSC$18132_commandHandler.resolveCommand(K.onAddCommand,
{form:{preferredFormatType:a,offlineWebClientEligibility:O,lastOfflineQualitySettingsSavedMs:f.toString()}}),p.jumpTo(0)}})};
ISp=function(u,K){var l,D,d,C,W,M,q;return _.H(function(v){if(v.nextAddress==1)return v.yield(u.JSC$18132_persistentStorePromiseAccessor(),2);l=v.yieldResult;if(!l)return _.hV(new _.wv("PES is undefined")),v.return();if((D=K)==null||!D.settingItemId)return v.return();d=K;C=d.settingItemId;W=d.boolValue;M=_.zI(C,"settingEntity");q={key:M,settingOptionValue:{boolValue:W}};return v.yield(oYi(l,q),0)})};
y3H=function(u,K){var l,D,d,C,W,M,q;return _.H(function(v){switch(v.nextAddress){case 1:return v.yield(u.JSC$18132_prefStorage,2);case 2:return l=v.yieldResult,D=_.jy(),v.yield(u.JSC$18132_persistentStorePromiseAccessor(),3);case 3:return d=v.yieldResult,l?d?v.yield(l.get("sdois"),4):(_.hV(new _.wv("PES is undefined")),v.return()):(_.hV(new _.wv("prefStorage is undefined")),v.return());case 4:C=v.yieldResult;M=(W=K)==null?void 0:W.boolValue;M===void 0||_.S("kevlar_set_sd_enabled_flag_killswitch")||
_.B0(0,197,!0);C===void 0&&M===void 0&&(M=!1);if(M===void 0){v.jumpTo(0);break}return v.yield(l.set("sdois",M),6);case 6:return _.S("kevlar_set_sd_enabled_flag_killswitch")||(_.B0(0,196,M),D.save()),q={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:M},v.yield(ISp(u,q),0)}})};
s5k=function(u,K,l){var D,d,C,W,M;return _.H(function(q){switch(q.nextAddress){case 1:return q.yield(KU2(u),2);case 2:return D=q.yieldResult,q.yield(y3H(u,l),3);case 3:return q.yield(KU2(u),4);case 4:return d=q.yieldResult,C=d!==D,q.yield(lSE(u),5);case 5:W=q.yieldResult&&!_.S("kevlar_modern_downloads_page");if((M=!d&&!W)||C)return q.yield(K.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);q.jumpTo(0)}})};
mEo=function(){var u=_.GB().resolve(_.tG),K;_.H(function(l){switch(l.nextAddress){case 1:return l.yield(u.JSC$18132_playerApiPromise,2);case 2:K=l.yieldResult;if(!_.S("kevlar_force_refresh_smart_downloads")){l.jumpTo(3);break}return l.yield(K.refreshAllStaleEntities(0),4);case 4:return l.return();case 3:return l.yield(K.refreshAllStaleEntities(),5);case 5:return l.yield(s5k(u,K),6);case 6:if(_.S("enable_download_pep_for_premium_countries_web"))return l.yield(uRH(u,K),0);l.jumpTo(0)}})};
dIG=function(u,K){var l,D;_.H(function(d){switch(d.nextAddress){case 1:return d.yield(u.JSC$18132_playerApiPromise,2);case 2:l=d.yieldResult;switch((D=K)==null?void 0:D.settingItemId){case "SMART_DOWNLOADS_ENABLED":return d.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return d.jumpTo(4)}d.jumpTo(0);break;case 3:return d.yield(s5k(u,l,K),6);case 6:d.jumpTo(0);break;case 4:return d.yield(ISp(u,K),7);case 7:d.jumpTo(0)}})};
oe_=function(u,K){var l,D,d;return _.H(function(C){if(C.nextAddress==1)return C.yield(u.JSC$18132_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3){l=C.yieldResult;if(!l)return _.hV(new _.wv("PES is undefined")),C.return(!1);if(!K)return C.return(!1);D=_.zI(K,"mainVideoEntity");return C.yield(WoI(l,D,"mainVideoEntity"),3)}d=C.yieldResult;return C.return(d!==void 0)})};
I$o=function(u){var K=_.GB().resolve(_.tG),l,D,d,C,W,M,q,v,G,t,x;_.H(function(O){switch(O.nextAddress){case 1:return O.yield(K.JSC$18132_playerApiPromise,2);case 2:l=O.yieldResult;d=(D=u)==null?void 0:D.actions;if(!d)return O.return();C=_.y(d);W=C.next();case 3:if(W.done){O.jumpTo(0);break}M=W.value;v=q=void 0;if(!(((q=M)==null?0:q.entityKey)&&((v=M)==null?0:v.actionType))){O.jumpTo(4);break}G=_.OV(M.entityKey);t=G.entityId;x=G.entityType;return O.yield(l.queueOfflineAction(t,x,M.actionType),4);case 4:W=
C.next(),O.jumpTo(3)}})};
WUE=function(u,K){var l,D,d,C,W;return _.H(function(M){if(M.nextAddress==1)return M.yield(u.JSC$18132_prefStorage,2);if(M.nextAddress!=3)return(l=M.yieldResult)?M.yield(l.get("psi"),3):M.return();D=M.yieldResult;W={isPaused:K,lastSyncTimestamp:(C=(d=D)==null?void 0:d.lastSyncTimestamp)!=null?C:"0"};return M.yield(l.set("psi",W),0)})};
ooG=function(u){var K=_.GB().resolve(_.tG),l,D,d,C,W,M,q,v;return _.H(function(G){switch(G.nextAddress){case 1:return G.yield(K.JSC$18132_playerApiPromise,2);case 2:l=G.yieldResult;d=((D=u)==null?void 0:D.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((M=u)==null?void 0:M.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":C="!*$_ALL_ENTITIES_!*$";W="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return G.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return G.jumpTo(4)}G.jumpTo(5);break;case 3:return G.yield(WUE(K,d),6);case 6:G.jumpTo(5);break;case 4:return G.yield(oe_(K,(q=u)==null?void 0:q.videoId),7);case 7:G.yieldResult&&(C=(v=u)==null?void 0:v.videoId,W="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");G.jumpTo(5);break;case 5:if(C&&W)return G.yield(l.queueOfflineAction(C,"videoPlaybackPositionEntity",W),0);G.jumpTo(0)}})};
HzE=function(u,K){var l;K!==1||((l=u.currentPersistentToast)==null?0:l.isOpened())?u.openToast():u.currentPersistentToast=void 0};
MdV=function(u,K){var l;return(l=u.transitionTasksMap.get(K))!=null?l:[]};
qLo=function(u,K){var l=[];u.elementTasksMap.forEach(function(D){(D=D.get(K))&&l.push(D)});
return l};
$CE=function(u,K,l,D){D=D===void 0?{}:D;var d=u.defaultViewTransitionOptions;return Object.assign({},d,D,{beforeTransition:function(){l.forEach(function(q){q.beforeTransition()});
var C;(C=d.beforeTransition)==null||C.call(d);var W,M;(M=(W=D).beforeTransition)==null||M.call(W);K.forEach(function(q){q.beforeTransition()})},
afterTransition:function(){l.forEach(function(q){q.afterTransition()});
var C;(C=d.afterTransition)==null||C.call(d);var W,M;(M=(W=D).afterTransition)==null||M.call(W);K.forEach(function(q){q.afterTransition()})}})};
ne_=function(u,K,l){u.transitionTasksMap.has(K)?u.transitionTasksMap.get(K).push(l):(u=new _.wv("Transition task registered for unknown transition type",K),_.Xm(u))};
r3E=function(u,K,l){if(u.transitionTasksMap.has(K)){var D=u.transitionTasksMap.get(K).filter(function(d){return d!==l});
u.transitionTasksMap.set(K,D)}};
vep=function(u,K){var l=MdV(u,K);l=_.y(l);for(var D=l.next();!D.done;D=l.next())D=D.value,D.runOnce&&r3E(u,K,D);u.elementTasksMap.forEach(function(d,C){d.forEach(function(W,M){W.runOnce&&K===M&&(d.delete(M),d.size===0&&u.elementTasksMap.delete(C))})})};
Gkp=function(u,K,l){var D,d,C,W,M,q,v,G,t;_.H(function(x){if(x.nextAddress==1){if(u.config.disableAllTransitions)return x.return(K());if((D=l)==null||!D.transitionType)return x.return(_.vVp(K,(d=l)==null?void 0:d.viewTransitionOptions));C=l;W=C.transitionType;M=C.viewTransitionOptions;q=u.config.transitionConfigs.get(W);if(!q)return x.return(K());v=MdV(u,W);G=qLo(u,W);t=_.vVp(K,$CE(q,v,G,M));return x.yield(t,2)}vep(u,W);_.TG(x)})};
tdV=function(){var u,K,l,D;return _.H(function(d){if(d.nextAddress==1)return u=navigator,(K=u.storage)!=null&&K.persisted?d.yield((l=u.storage)==null?void 0:l.persisted(),2):d.return("PERSISTED_STATE_NOT_SUPPORTED");D=d.yieldResult;return d.return(D?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
xCG=function(){var u,K,l,D;return _.H(function(d){if(d.nextAddress==1)return u=navigator,(K=u.storage)!=null&&K.persist?d.yield((l=u.storage)==null?void 0:l.persist(),2):d.return("PERSISTED_STATE_NOT_SUPPORTED");D=d.yieldResult;return d.return(D?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
SLV=function(){var u,K;return _.H(function(l){switch(l.nextAddress){case 1:return u="PERSISTED_STATE_NOT_SUPPORTED",_.Qg(l,2),l.yield(tdV(),4);case 4:u=l.yieldResult;if(u!=="PERSISTED_STATE_NOT_GRANTED"){l.jumpTo(5);break}return l.yield(xCG(),6);case 6:u=l.yieldResult;case 5:_.I$(l,3);break;case 2:K=_.iY(l),K instanceof Error&&_.Xm(K);case 3:return _.YE("persistentStorageStateChecked",{persistedState:u}),l.return(u)}})};
bz_=function(u,K){var l=[],D=!1;K=_.y(K);for(var d=K.next();!d.done;d=K.next()){d=u.moduleRegistry[d.value];var C=void 0,W=void 0;((C=d)==null?0:C.isFetching)&&((W=d)==null?0:W.resolver)?(l.push(d.resolver.promise),D=!0):(d=new _.et,d.resolve(void 0),l.push(d.promise))}return D?Promise.all(l):void 0};
HgE=function(u,K){if(u.isAnyTransitionEnabled){var l={};u.viewTransitionCoordinator.registerElement(K,(l.slide="miniplayer-page-transition",l["lockup-to-watch"]="miniplayer-page-transition",l["learning-journey"]="miniplayer-page-transition",l))}};
OzE=function(u,K,l){if(u.isAnyTransitionEnabled){var D={beforeTransition:function(){l(!0);K.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){K.style.viewTransitionName&&(K.style.viewTransitionName="",l(!1))}};
ne_(u.viewTransitionCoordinator,"slide",D);ne_(u.viewTransitionCoordinator,"lockup-to-watch",D);ne_(u.viewTransitionCoordinator,"watch-next-appears",D);ne_(u.viewTransitionCoordinator,"learning-journey",D)}};
c3I=function(u,K){u.isBrowseTransitionEnabled?Gkp(u.viewTransitionCoordinator,K,{transitionType:"slide"}):(K(),Promise.resolve())};
aSi=function(u,K){u.isLockupToWatchTransitionEnabled?Gkp(u.viewTransitionCoordinator,K,{transitionType:"lockup-to-watch"}):(K(),Promise.resolve())};
zB_=function(u,K){u.isLockupToWatchTransitionEnabled?Gkp(u.viewTransitionCoordinator,K,{transitionType:"watch-next-appears"}):(K(),Promise.resolve())};
eB_=function(u,K){u.isLearningJourneyTransitionEnabled?Gkp(u.viewTransitionCoordinator,K,{transitionType:"learning-journey"}):(K(),Promise.resolve())};
RB6=function(u,K,l){if(u.isInitialized()){var D=cD(l),d=D==="watch";D=D==="shorts";var C=cD(K)==="watch";if(d)C||(u.backgroundPageData=K),u.watchPipMode&&C||u.deactivate(l.endpoint);else if(D){if(cD(K)!=="shorts"){var W;(W=u.getPlayerElement())==null||W.pause()}}else C&&!u.watchPipMode&&(CyE(K,l)?(u.watchWhileMode&&_.tA2(u,!1),_.qyV(u,K)):u.isMiniplayerActive()&&u.watchWhileMode&&u.deactivate());C&&_.SyH(u);u.shortsPipMode&&!D&&(window.focus(),u.deactivate());if(u.pictureInPictureEnabled())if(D&&
u.shortsPipEnabled||d&&u.watchPipEnabled)_.bRZ(u.handleMediaSessionPipActivation);else if(!u.isMiniplayerActive()&&(u.shortsPipEnabled||u.watchPipEnabled)&&window.documentPictureInPicture&&_.f9()&&_.H9R("Chromium")>=120){u=_.SGH().mediaSession;try{u.setActionHandler("enterpictureinpicture",null)}catch(M){}}}};
UC_=function(u,K){var l,D;_.H(function(d){if(d.nextAddress==1){if(!u||!u.navigationEndpoint)return d.return();_.B3().lockupActivation=!0;var C;K?C=_.o7(_.QQ("QUEUE",void 0,"Queue")):C=u.longBylineText;D=(l=C)&&u.title?{miniplayerTitle:u.title,miniplayerSubtitle:l,playlistData:null}:void 0;return d.yield(_.CWR(_.GB().resolve(_.uD),u.navigationEndpoint,!0,D),2)}_.B3().userActivation=!0;_.TG(d)})};
dn_=function(u,K){var l,D,d,C,W,M;_.H(function(q){if(q.nextAddress==1){l=_.b(K,_.Nxk);if(!l||!l.listId)return q.return();u.index=l.index||u.index||0;D=u.response&&u.response.playingVideoId||void 0;return q.yield(_.Saw(u.JSC$12784_playlistNetworkManager,l.listId,u.index,D),2)}d=q.yieldResult;if(!d)return q.return();C=d.playlistId;W=d.playlistPanelRenderer;!u.queueProxy&&C&&W&&C.startsWith("TLPQ")&&(u.queueProxy=new _.Lt(u.JSC$12784_playlistNetworkManager,C,u.setPlaylistData.bind(u),u.clearQueue.bind(u),
_.ioq(W),u.storage));if(l.openMiniplayer&&(M=_.ThH(W))&&!u.pageManager.isOnWatch()){var v=M,G=l.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";u.isMiniplayerActive()?u.openToast(v):UC_(v,G)}u.setPlaylistData(C,W,d.autoplayRenderer);_.TG(q)})};
K3k=function(u,K){var l=_.y1();l.index===void 0&&(l.index=0);l.temporaryItems.push.apply(l.temporaryItems,_.Am(u));if((K.videoId||K.videoIds)&&l.index!==void 0&&K.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!l.queueProxy){var D=[];if(l.response){var d=_.GB().resolve(_.uD).isMiniplayerActive();if(l.response.playlistPanelRenderer&&l.response.playlistId&&!l.response.playlistId.startsWith("TLPQ")){if(l.pageManager.isOnWatch()||d)D=_.ioq(l.response.playlistPanelRenderer)}else l.response.playingVideoId&&
!K.openMiniplayer?D.push(l.response.playingVideoId):d&&l.response.playingVideoId&&K.openMiniplayer&&D.push(l.response.playingVideoId)}l.queueProxy=new _.Lt(l.JSC$12784_playlistNetworkManager,"",l.setPlaylistData.bind(l),l.clearQueue.bind(l),D,l.storage);l.queueProxy.JSC$12730_setCurrentIndex(l.index)}l.queueProxy.addVideos(K.videoIds||[K.videoId],K)}qKo(l,u);l.response&&_.sj(l,_.o8(l,l.response.autoplayRenderer));l.pageManager.isOnWatch()?l.isMiniplayerActive()&&l.openToast(u[0]):(u=u[0],K=K.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",l.isMiniplayerActive()?l.openToast(u):UC_(u,K))};
fSB=function(u){var K=_.qp(u);if(K=="object"||K=="array"){if(typeof u.clone==="function")return u.clone();if(typeof Map!=="undefined"&&u instanceof Map)return new Map(u);if(typeof Set!=="undefined"&&u instanceof Set)return new Set(u);K=K=="array"?[]:{};for(var l in u)K[l]=fSB(u[l]);return K}return u};
Bg=function(u,K){return _.mwq(_.ja(u,K,void 0,_.J0))};
pv=function(u,K){return _.cE(_.ja(u,K,void 0,_.J0))};
i9=function(u,K){return _.v0H(_.ja(u,K,void 0,_.J0))};
T4=function(u,K){return _.ja(u,K,void 0,_.J0,_.AHb)};
Q5H=_.cr(function(u,K,l){if(u.nextWireType_!==0)return!1;_.aQ(K,l,_.dR(u.decoder_,_.C_));return!0},_.RQ,_.sR);
PCp=_.cr(function(u,K,l,D){if(u.nextWireType_!==0)return!1;_.TR(K,l,D,_.dR(u.decoder_,_.C_));return!0},_.RQ,_.sR);
J3E=_.cr(function(u,K,l){if(u.nextWireType_!==1)return!1;var D=u.decoder_;u=_.Iq(D);D=_.Iq(D);u=_.DB(u,D);_.aQ(K,l,u);return!0},_.qSZ,_.jnq);
j5p=_.cr(function(u,K,l){if(u.nextWireType_!==5)return!1;_.aQ(K,l,_.Iq(u.decoder_));return!0},function(u,K,l){K=_.LbZ(K);
K!=null&&(_.zg(u,l,5),_.eF(u.encoder_,K))},_.JzR);
Bs_=_.cr(function(u,K,l){if(u.nextWireType_!==0)return!1;u=_.$qr(u.decoder_);_.aQ(K,l,u===!1?void 0:u);return!0},_.$9n,_.UqH);
pkI=_.cr(function(u,K,l){if(u.nextWireType_!==2)return!1;u=_.xqH(u);_.aQ(K,l,u===""?void 0:u);return!0},_.rXR,_.fQq);
iz_=_.cr(function(u,K,l){if(u.nextWireType_!==2)return!1;u=_.SIo(u);_.aQ(K,l,u===_.wN()?void 0:u);return!0},_.Ggq,_.iOH);
Ts_=_.d99(function(u,K,l){if(u.nextWireType_!==0&&u.nextWireType_!==2)return!1;K=_.qoy(K,K[_.e2]|0,l);u.nextWireType_==2?_.bOR(u,FEE,K):K.push(_.Ca(u.decoder_));return!0},function(u,K,l){K=_.D9Z(_.cE,K,!0);
if(K!=null&&K.length){l=_.ei9(u,l);for(var D=0;D<K.length;D++)_.WJb(u.encoder_,K[D]);_.Rir(u,l)}},_.TDH);
wk_=_.cr(function(u,K,l){if(u.nextWireType_!==0)return!1;u=_.Ca(u.decoder_);_.aQ(K,l,u===0?void 0:u);return!0},_.tFL,_.TDH);
FUV=_.cr(function(u,K,l,D){if(u.nextWireType_!==0)return!1;_.TR(K,l,D,_.Ca(u.decoder_));return!0},_.tFL,_.TDH);
_.GG=function(u){this.privateDoNotAccessOrElseWrappedStyleSheet=u};
_.GG.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var $n6=function(u,K){return new _.XB(u.x+K.x,u.y+K.y)},Vd_=function(u){return u.previousElementSibling!==void 0?u.previousElementSibling:_.mSS(u.previousSibling,!1)},geI=function(u,K){var l=[];
for(K=K||0;K<u.length;K+=2)_.THA(u[K],u[K+1],l);return l.join("&")},Ns6=function(u,K){var l=arguments.length==2?geI(arguments[1],0):geI(arguments,1);
return _.i_w(u,l)},kAH=_.QS(_.Lz),kko=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(kko,_.b5);kko.prototype.getTypeName=function(){return _.A0(this,1).split("/").pop()};
kko.prototype.getValue=function(){var u=_.ja(this,2);if(Array.isArray(u)||u instanceof _.b5)throw Error("W");return _.iD(this,2)};
var PhV=function(){var u=_.Od();this.JSC$9846_streamzService=u;u.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.b2("channel_type"))};
PhV.prototype.increment=function(u){this.JSC$9846_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",u)};
var JuG=function(){var u=_.Od();this.JSC$9849_streamzService=u;u.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.b2("channel_type"))};
JuG.prototype.increment=function(u){this.JSC$9849_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",u)};
var BZI=function(){var u=_.Od();this.JSC$9852_streamzService=u;u.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.b2("channel_type"))};
BZI.prototype.increment=function(u){this.JSC$9852_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",u)};
var jfo=function(){var u=_.Od();this.JSC$9855_streamzService=u;u.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
jfo.prototype.increment=function(){this.JSC$9855_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var piE=function(){var u=_.Od();this.JSC$9858_streamzService=u;u.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.b2("channel_type"),_.b2("error_type"))};
piE.prototype.increment=function(u,K){this.JSC$9858_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",u,K)};
var imH=function(){var u=_.Od();this.JSC$9861_streamzService=u;u.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
imH.prototype.increment=function(){this.JSC$9861_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var TZV=function(){var u=_.Od();this.JSC$9864_streamzService=u;u.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
TZV.prototype.increment=function(){this.JSC$9864_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var RM6=function(){var u=_.Od();this.JSC$9870_streamzService=u;u.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
RM6.prototype.increment=function(){this.JSC$9870_streamzService.JSC$9714_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var Zzp=function(u){return u.getCount&&typeof u.getCount=="function"?u.getCount():_.mb(u)||typeof u==="string"?u.length:_.k$.getCount(u)},YLV=function(u,K){if(typeof u.every=="function")return u.every(K,void 0);
if(_.mb(u)||typeof u==="string")return Array.prototype.every.call(u,K,void 0);for(var l=_.V9R(u),D=_.nX(u),d=D.length,C=0;C<d;C++)if(!K.call(void 0,D[C],l&&l[C],u))return!1;return!0},A3V=function(u,K,l,D){var d=new _.W0(null);
u&&_.rO(d,u);K&&_.vN(d,K);l&&_.G2(d,l);D&&_.x4(d,D);return d},Xk6=function(){var u=_.LT&&_.n9(_.lqs,10)>=0,K;
if(K=_.RGr)K=_.n9(_.K52,10)>=0;var l=_.f3&&_.n9(_.lqs,85)>=0;return _.zR||u||K||l},mCp=function(u){var K=_.G60(u);
return K&&Xk6()?-u.scrollLeft:K&&_.EQ(u,"overflowX")!="visible"?u.scrollWidth-u.clientWidth-u.scrollLeft:u.scrollLeft},hB_=function(u,K){K=Math.max(K,0);
_.G60(u)?Xk6()?u.scrollLeft=-K:u.scrollLeft=u.scrollWidth-K-u.clientWidth:u.scrollLeft=K},xPp=0,ahp=!1;
zD.prototype.set=function(u){this.relativeTimeStart_=u};
zD.prototype.reset=function(){this.set(_.x2())};
zD.prototype.get=function(){return this.relativeTimeStart_};
var EeE=null,LUH=function(){EeE||(EeE=new zD)},u__=function(){EeE||(EeE=new zD)};
_.Sa(u__,LUH);_.I=e52.prototype;_.I.JSC$11232_buffer_="";_.I.set=function(u){this.JSC$11232_buffer_=""+u};
_.I.append=function(u,K,l){this.JSC$11232_buffer_+=String(u);if(K!=null)for(var D=1;D<arguments.length;D++)this.JSC$11232_buffer_+=arguments[D];return this};
_.I.clear=function(){this.JSC$11232_buffer_=""};
_.I.getLength=function(){return this.JSC$11232_buffer_.length};
_.I.toString=function(){return this.JSC$11232_buffer_};
var Kz2=function(){var u={type:"unit",style:"narrow"};this.listType_=u&&u.type?u.type:"conjunction";this.listStyle_=u&&u.style?u.style:"long";this.listSymbols_=X1p;u=0;switch(this.listStyle_){case "short":u=1;break;case "narrow":u=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[u];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[u];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[u];this.listEndPattern_=
this.listSymbols_.AND_END[u];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[u];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[u];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[u];this.listEndPattern_=this.listSymbols_.OR_END[u];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[u],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[u],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[u],this.listEndPattern_=this.listSymbols_.UNIT_END[u]}};
Kz2.prototype.format=function(u){return lLI(this,u)};
var lLI=function(u,K){var l=K.length;switch(l){case 0:return"";case 1:return String(K[0]);case 2:return u.listTwoPattern_.replace("{0}",String(K[0])).replace("{1}",String(K[1]))}for(var D=u.listStartPattern_.replace("{0}",String(K[0])).replace("{1}",String(K[1])),d=2;d<l-1;++d)D=u.listMiddlePattern_.replace("{0}",D).replace("{1}",String(K[d]));return u.listEndPattern_.replace("{0}",D).replace("{1}",String(K[l-1]))},N_I=function(){var u={style:1};
this.style_=(u==null?void 0:u.style)||0;this.durationSymbols_=_.Aa0||_.TnS},DZ2=function(u,K){switch(K){default:case "years":return u.durationSymbols_.YEAR;
case "months":return u.durationSymbols_.MONTH;case "weeks":return u.durationSymbols_.WEEK;case "days":return u.durationSymbols_.DAY;case "hours":return u.durationSymbols_.HOUR;case "minutes":return u.durationSymbols_.MINUTE;case "seconds":return u.durationSymbols_.SECOND}},wc=function(u,K,l){a:{l=DZ2(u,l);
switch(u.style_){case 1:if(l.LONG!=void 0){u=l.LONG;break a}case 2:if(l.NARROW!=void 0){u=l.NARROW;break a}default:u=l.SHORT;break a}u=void 0}return u?(new _.ylR("{DURATION_VALUE,plural,"+u+"}")).format({DURATION_VALUE:K}):""};
N_I.prototype.format=function(u){var K=[],l=u.years,D=u.months,d=u.weeks,C=u.days,W=u.hours,M=u.minutes;u=u.seconds;l!=null&&K.push(wc(this,l,"years"));D!=null&&K.push(wc(this,D,"months"));d!=null&&K.push(wc(this,d,"weeks"));C!=null&&K.push(wc(this,C,"days"));W!=null&&K.push(wc(this,W,"hours"));M!=null&&K.push(wc(this,M,"minutes"));u!=null&&K.push(wc(this,u,"seconds"));return(new Kz2).format(K)};
var dZB=!1,j92=function(u){_.uL.call(this,u.message||u.description||u.name);this.isMissing=u instanceof eE;this.isTimeout=u instanceof _.nb&&u.errorCode=="net.timeout";this.isCanceled=u instanceof _.dr};
_.c(j92,_.uL);j92.prototype.name="BiscottiError";var eE=function(){_.uL.call(this,"Biscotti ID is missing from server")};
_.c(eE,_.uL);eE.prototype.name="BiscottiMissingError";var RV=null,A_H=function(){try{var u=_.lZ("yt.ads.biscotti.getId_");return u?u():q6G()}catch(K){return _.YU(K)}},gfE,Cwk=function(u,K){return _.SZ({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:u,command:K}})},ILp=function(u){return _.SZ({type:"SET_GUIDE_IS_EXPANDED",
payload:u})},ynH=function(u){return _.SZ({type:"SET_ONLINE_STATUS",
payload:u})},sXo=function(u,K){return _.SZ({type:"SET_TRANSCRIPTION_STATE",
payload:{high:u,low:K}})},o5o=function(u){return _.SZ({type:"SET_OVERLAY_STATE",
payload:u})},Wz6=0,H5G=function(u,K,l){var D=this;
this.priority=K;this.delay=l;this.jobId=0;this.completionCallback=_.iO;this.wrappedJob=function(){u();D.completionCallback()};
this.id=++Wz6};
H5G.prototype.enqueue=function(u){this.completionCallback=u;this.jobId=_.YL.addJob(this.wrappedJob,this.priority,this.delay)};
var FA=function(){_.SD.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.c(FA,_.SD);FA.prototype.addJob=function(u,K,l){u=new H5G(u,K,l);this.taskIdToTask.set(u.id,u);this.isActive?MlI(this,u):this.suspendedTasks.add(u);return u.id};
var MlI=function(u,K){u.scheduledTasks.add(K);K.enqueue(function(){u.scheduledTasks.delete(K)})};
FA.prototype.cancelJob=function(u){(u=this.taskIdToTask.get(u))&&(this.scheduledTasks.delete(u)?_.YL.cancelJob(u.jobId):this.suspendedTasks.delete(u))};
FA.prototype.pause=function(){var u=this;this.isActive=!1;this.scheduledTasks.forEach(function(K){_.YL.cancelJob(K.jobId);u.suspendedTasks.add(K)});
this.scheduledTasks.clear()};
FA.prototype.start=function(){var u=this;this.isActive=!0;this.suspendedTasks.forEach(function(K){MlI(u,K)});
this.suspendedTasks.clear()};
FA.prototype.reset=function(){this.scheduledTasks.forEach(function(u){_.YL.cancelJob(u.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var VE=function(u,K){this.JSC$12913_networkService_=u;this.pageRequestPromise=K};
VE.prototype.fetchData=function(u){qA_(this,this.JSC$12913_networkService_.fetchData(u))};
VE.prototype.postData=function(u,K){qA_(this,this.JSC$12913_networkService_.postData(u,K))};
VE.prototype.requestDataForServiceEndpoint=function(u,K){qA_(this,this.JSC$12913_networkService_.requestDataForServiceEndpoint(u,K))};
var qA_=function(u,K){K.then(u.pageRequestPromise.onSuccess,u.pageRequestPromise.onFailure,u.pageRequestPromise)};
VE.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var N3=function(u){this.buildNetworkRequest_=u;this.pendingRequests_=new Set};
N3.prototype.reset=function(){this.pendingRequests_.forEach(function(u){u.cancel()});
this.pendingRequests_.clear()};
N3.prototype.fetchData=function(u){var K=$Zi(this);K.fetchData(u);return K.pageRequestPromise};
N3.prototype.postData=function(u,K){var l=$Zi(this);l.postData(u,K);return l.pageRequestPromise};
N3.prototype.requestDataForServiceEndpoint=function(u,K){var l=$Zi(this);l.requestDataForServiceEndpoint(u,K);return l.pageRequestPromise};
var $Zi=function(u){var K=u.buildNetworkRequest_();u.pendingRequests_.add(K);var l=function(){u.pendingRequests_.delete(K)};
K.pageRequestPromise.then(l,l);return K},n5V=function(u){var K=new FA;
this.JSC$12920_networkService_=u;this.JSC$12920_taskManager_=K;this.JSC$12920_networkManager_=new N3(this.networkRequestFactory_.bind(this))};
_.I=n5V.prototype;_.I.networkRequestFactory_=function(){return new VE(this.JSC$12920_networkService_,new _.bX(this.JSC$12920_taskManager_))};
_.I.reset=function(){this.JSC$12920_taskManager_.reset();this.JSC$12920_networkManager_.reset()};
_.I.start=function(){this.JSC$12920_taskManager_.start()};
_.I.pause=function(){this.JSC$12920_taskManager_.pause()};
_.I.getTaskManager=function(){return this.JSC$12920_taskManager_};
_.I.getNetworkManager=function(){return this.JSC$12920_networkManager_};
var X4E=null,Efo=[],UX=0,Q4=0,fb=null,rno=!1,PD=null,uX6=void 0,v5p=function(){var u=(0,_.jr0)();u&&hMp(u,u.mechanism.__iterator__(!0))},jE=function(u){this.token=u};
jE.getInstance=function(){var u;return _.H(function(K){if(K.nextAddress==1)return K.yield(_.nU(),2);u=K.yieldResult;if(!u)return K.return();jE.instance||(jE.instance=new jE(u));return K.return(jE.instance)})};
var I8V=function(u){var K;return _.H(function(l){if(l.nextAddress==1)return l.yield(DNB(u.token),2);K=l.yieldResult;return l.return(K.clear("resource-manifest-assets"))})},Jv=function(u){this.token=u};
Jv.getInstance=function(){var u;return _.H(function(K){if(K.nextAddress==1)return K.yield(_.nU(),2);u=K.yieldResult;if(!u)return K.return();Jv.instance||(Jv.instance=new Jv(u));return K.return(Jv.instance)})};
var dNI=function(u){var K;return _.H(function(l){if(l.nextAddress==1)return l.yield(DNB(u.token),2);K=l.yieldResult;return l.yield(K.clear("auth"),0)})},zSp=!1,GbE=function(u){_.uL.call(this,u)};
_.c(GbE,_.WnB);var tlB="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(" ");Kfi()&&tlB.push("details:not(:has(summary))");var DBp=tlB.join(",");var c_E=function(){var u=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return u?parseInt(u[1],10):0},xZV=function(u){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+u)!=-1||document.currentScript.src.indexOf("&"+u)!=-1)},SAB=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},UuI=function(u){u.length?b5_(u.shift(),function(){UuI(u)}):zVp()},Q7p=function(u){return"chrome-extension://"+u+"/cast_sender.js"},b5_=function(u,
K,l){var D=document.createElement("script");
D.onerror=K;l&&(D.onload=l);_.$P(D,_.Vf(u));(document.head||document.documentElement).appendChild(D)},O5_=function(){var u=c_E(),K=[];
if(u>1){var l=u-1;K.push("//www.gstatic.com/eureka/clank/"+u+"/cast_sender.js");K.push("//www.gstatic.com/eureka/clank/"+l+"/cast_sender.js")}return K},zVp=function(){var u=SAB();
u&&u(!1,"No cast extension found")},RV_=function(){if(cnp){var u=2,K=SAB(),l=function(){u--;
u==0&&K&&K(!0)};
window.__onGCastApiAvailable=l;b5_("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",zVp,l)}},aUi=function(){RV_();
var u=O5_();u.push("//www.gstatic.com/eureka/clank/cast_sender.js");UuI(u)},eVk=function(){RV_();
var u=O5_();u.push.apply(u,_.Am(fU6.map(Q7p)));u.push("//www.gstatic.com/eureka/clank/cast_sender.js");UuI(u)},cnp=xZV("loadCastFramework")||xZV("loadCastApplicationFramework"),fU6=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var aL_=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(aL_,_.b5);var zx_=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(zx_,_.b5);var exG=function(){var u=new zx_;return _.lO(u,1,3)};var kq=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(kq,_.b5);var ayE=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(ayE,_.b5);var RxV=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(RxV,_.b5);RxV.prototype.getToken=function(){return _.A0(this,1)};
RxV.prototype.setToken=function(u){return _.oX(this,1,u)};
var ONk=function(u){return _.sS(u,3,_.wH,_.vO())},csH=function(u){return _.sS(u,6,_.wH,_.vO())};var ZD=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(ZD,_.b5);ZD.prototype.getToken=function(){return _.fV(this,RxV,2)};
ZD.prototype.setToken=function(u){return _.jF(this,2,u)};
ZD.prototype.getName=function(){return _.A0(this,6)};
var UZ2=_.QS(ZD);var fLi=function(u,K,l){this.requestMessage=u;this.methodDescriptor=K;this.metadata=l};
fLi.prototype.getMetadata=function(){return this.metadata};var QX_=function(u,K){K=K===void 0?{}:K;this.responseMessage=u;this.metadata=K;this.status=null};
QX_.prototype.getMetadata=function(){return this.metadata};
QX_.prototype.getStatus=function(){return this.status};var Yq=function(u,K,l,D,d){this.name=u;this.methodType="unary";this.requestType=K;this.responseType=l;this.requestSerializeFn=D;this.responseDeserializeFn=d},PwG=function(u,K,l){l=l===void 0?{}:l;
return new fLi(K,u,l)};
Yq.prototype.getName=function(){return this.name};var A6=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(A6,_.b5);A6.prototype.getHeader=function(){return _.fV(this,kq,1)};
A6.prototype.setHeader=function(u){return _.jF(this,1,u)};
A6.prototype.hasHeader=function(){return _.B8(this,kq,1)};var Jn_=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Jn_,_.b5);var jX2=new Yq("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",A6,Jn_,function(u){return u.serialize()},_.QS(Jn_));var XA=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(XA,_.b5);XA.prototype.getHeader=function(){return _.fV(this,kq,1)};
XA.prototype.setHeader=function(u){return _.jF(this,1,u)};
XA.prototype.hasHeader=function(){return _.B8(this,kq,1)};var BrI=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(BrI,_.b5);var pUV=new Yq("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",XA,BrI,function(u){return u.serialize()},_.QS(BrI));var m7=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(m7,_.b5);m7.prototype.getHeader=function(){return _.fV(this,kq,1)};
m7.prototype.setHeader=function(u){return _.jF(this,1,u)};
m7.prototype.hasHeader=function(){return _.B8(this,kq,1)};var i5I=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(i5I,_.b5);i5I.prototype.getLink=function(){return _.fV(this,ZD,1)};var Tro=new Yq("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",m7,i5I,function(u){return u.serialize()},_.QS(i5I));var h6=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(h6,_.b5);h6.prototype.getHeader=function(){return _.fV(this,kq,1)};
h6.prototype.setHeader=function(u){return _.jF(this,1,u)};
h6.prototype.hasHeader=function(){return _.B8(this,kq,1)};var wUi=new Yq("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",h6,ZD,function(u){return u.serialize()},UZ2);var FzH=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(FzH,_.b5);var Vlk=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Vlk,_.b5);Vlk.prototype.getUrl=function(){return _.A0(this,2)};
Vlk.prototype.setUrl=function(u){return _.oX(this,2,u)};var g5I=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(g5I,_.b5);var NrI=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(NrI,_.b5);var kb_=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(kb_,_.b5);var p06=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(p06,_.b5);var Bd_=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Bd_,_.b5);var Z52=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Z52,_.b5);var Nd_=_.QS(Z52);var YAB=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(YAB,_.b5);var AnV=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(AnV,_.b5);_.I=AnV.prototype;_.I.getHeader=function(){return _.fV(this,kq,1)};
_.I.setHeader=function(u){return _.jF(this,1,u)};
_.I.hasHeader=function(){return _.B8(this,kq,1)};
_.I.getCompletionUrl=function(){return _.A0(this,6)};
_.I.getDeviceId=function(){return _.A0(this,11)};var XU_=new Yq("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",AnV,Z52,function(u){return u.serialize()},Nd_);var mZ6=new Set(["SAPISIDHASH","APISIDHASH"]);var hxo=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(hxo,_.b5);hxo.prototype.getMessage=function(){return _.A0(this,2)};
var E5k=_.QS(hxo);var E1=function(u,K){this.xhrNodeReadableStream_=u.nodeReadableStream;this.grpcResponseDeserializeFn_=K;this.JSC$19083_xhr_=u.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19083_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&Lzp(this)},CDH=function(u,K){var l=new uYG;
_.kU(u.JSC$19083_xhr_,"complete",function(){if(u.JSC$19083_xhr_.isSuccess()){var D=u.JSC$19083_xhr_.getResponseText();var d;if(d=K)d=u.JSC$19083_xhr_,d.JSC$9723_xhr_&&d.isComplete()?(d=d.JSC$9723_xhr_.getResponseHeader("Content-Type"),d=d===null?void 0:d):d=void 0,d=d==="text/plain";if(d){if(!atob)throw Error("Oj");D=atob(D)}try{var C=u.grpcResponseDeserializeFn_(D)}catch(M){Lv(u,Wf_(new _.ZV(13,"Error when deserializing response data; error: "+M+(", response: "+D)),l));return}D=_.jE9(u.JSC$19083_xhr_.getStatus());
K1k(u,lOi(u));D==0?DaH(u,C):Lv(u,Wf_(new _.ZV(D,"Xhr succeeded but the status code is not 200"),l))}else{D=u.JSC$19083_xhr_.getResponseText();C=lOi(u);if(D){var W=da_(u,D);D=W.code;d=W.details;W=W.metadata}else D=2,d="Rpc failed due to xhr error. uri: "+String(u.JSC$19083_xhr_.JSC$9723_lastUri_)+", error code: "+u.JSC$19083_xhr_.JSC$9723_lastErrorCode_+", error: "+u.JSC$19083_xhr_.getLastError(),W=C;K1k(u,C);Lv(u,Wf_(new _.ZV(D,d,W),l))}})},Lzp=function(u){u.xhrNodeReadableStream_.on("data",function(K){if("1"in
K){var l=K["1"];
try{var D=u.grpcResponseDeserializeFn_(l)}catch(d){Lv(u,new _.ZV(13,"Error when deserializing response data; error: "+d+(", response: "+l)))}D&&DaH(u,D)}if("2"in K)for(K=da_(u,K["2"]),l=0;l<u.onStatusCallbacks_.length;l++)u.onStatusCallbacks_[l](K)});
u.xhrNodeReadableStream_.on("end",function(){K1k(u,lOi(u));for(var K=0;K<u.onEndCallbacks_.length;K++)u.onEndCallbacks_[K]()});
u.xhrNodeReadableStream_.on("error",function(){if(u.JSC$19083_onErrorCallbacks_.length!=0){var K=u.JSC$19083_xhr_.JSC$9723_lastErrorCode_;K!==0||u.JSC$19083_xhr_.isSuccess()||(K=6);var l=-1;switch(K){case 0:var D=2;break;case 7:D=10;break;case 8:D=4;break;case 6:l=u.JSC$19083_xhr_.getStatus();D=_.jE9(l);break;default:D=14}K1k(u,lOi(u));K=_.tAC(K)+", error: "+u.JSC$19083_xhr_.getLastError();l!=-1&&(K+=", http status code: "+l);Lv(u,new _.ZV(D,K))}})},lOi=function(u){var K={},l=Z4G(u.JSC$19083_xhr_);
Object.keys(l).forEach(function(D){K[D]=l[D]});
return K},da_=function(u,K){var l=2,D={};
try{var d=E5k(K);l=_.tq(d,1);var C=d.getMessage();_.rB(d,kko,3,_.vO()).length&&(D["grpc-web-status-details-bin"]=K)}catch(W){u.JSC$19083_xhr_&&u.JSC$19083_xhr_.getStatus()===404?(l=5,C="Not Found: "+String(u.JSC$19083_xhr_.JSC$9723_lastUri_)):(l=14,C="Unable to parse RpcStatus: "+W)}return{code:l,details:C,metadata:D}};
E1.prototype.on=function(u,K){u=="data"?this.onDataCallbacks_.push(K):u=="metadata"?this.onMetadataCallbacks_.push(K):u=="status"?this.onStatusCallbacks_.push(K):u=="end"?this.onEndCallbacks_.push(K):u=="error"&&this.JSC$19083_onErrorCallbacks_.push(K);return this};
var uo=function(u,K){K=u.indexOf(K);K>-1&&u.splice(K,1)};
E1.prototype.removeListener=function(u,K){u=="data"?uo(this.onDataCallbacks_,K):u=="metadata"?uo(this.onMetadataCallbacks_,K):u=="status"?uo(this.onStatusCallbacks_,K):u=="end"?uo(this.onEndCallbacks_,K):u=="error"&&uo(this.JSC$19083_onErrorCallbacks_,K);return this};
E1.prototype.cancel=function(){this.JSC$19083_xhr_.abort()};
var DaH=function(u,K){for(var l=0;l<u.onDataCallbacks_.length;l++)u.onDataCallbacks_[l](K)},K1k=function(u,K){for(var l=0;l<u.onMetadataCallbacks_.length;l++)u.onMetadataCallbacks_[l](K)},Lv=function(u,K){for(var l=0;l<u.JSC$19083_onErrorCallbacks_.length;l++)u.JSC$19083_onErrorCallbacks_[l](K)};
E1.prototype.cancel=E1.prototype.cancel;E1.prototype.removeListener=E1.prototype.removeListener;E1.prototype.on=E1.prototype.on;var uYG=function(){var u=Error.call(this);this.message=u.message;"stack"in u&&(this.stack=u.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.c(uYG,Error);var K6=function(u){this.JSC$19092_worker_=u.worker||null;this.JSC$19092_streamBinaryChunks_=u.streamBinaryChunks||!1;this.JSC$19092_credentialsMode_=void 0};
_.Sa(K6,_.pVq);K6.prototype.createInstance=function(){var u=new lo(this.JSC$19092_worker_,this.JSC$19092_streamBinaryChunks_);this.JSC$19092_credentialsMode_&&u.setCredentialsMode(this.JSC$19092_credentialsMode_);return u};
K6.prototype.setCredentialsMode=function(u){this.JSC$19092_credentialsMode_=u};
var lo=function(u,K){_.wx.call(this);this.JSC$19096_worker_=u;this.JSC$19096_streamBinaryChunks_=K;this.JSC$19096_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$19096_responseHeaders_=null;this.JSC$19096_method_="GET";this.JSC$19096_url_="";this.inProgress_=!1;this.JSC$19096_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Sa(lo,_.wx);lo.prototype.open=function(u,K){if(this.readyState!=0)throw this.abort(),Error("Pj");this.JSC$19096_method_=u;this.JSC$19096_url_=K;this.readyState=1;D6(this)};
lo.prototype.send=function(u){if(this.readyState!=1)throw this.abort(),Error("Qj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Rj");this.inProgress_=!0;var K={headers:this.requestHeaders_,method:this.JSC$19096_method_,credentials:this.JSC$19096_credentialsMode_,cache:void 0,signal:this.abortController_.signal};u&&(K.body=u);(this.JSC$19096_worker_||_.lL).fetch(new Request(this.JSC$19096_url_,K)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
lo.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,d8(this));this.readyState=0};
lo.prototype.handleResponse_=function(u){if(this.inProgress_&&(this.fetchResponse_=u,this.JSC$19096_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19096_responseHeaders_=u.headers,this.readyState=2,D6(this)),this.inProgress_&&(this.readyState=3,D6(this),this.inProgress_)))if(this.responseType==="arraybuffer")u.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.lL.ReadableStream!==
"undefined"&&"body"in u){this.currentReader_=u.body.getReader();if(this.JSC$19096_streamBinaryChunks_){if(this.responseType)throw Error("Sj");this.response=[]}else this.response=this.responseText="",this.JSC$19096_textDecoder_=new TextDecoder;IOo(this)}else u.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var IOo=function(u){u.currentReader_.read().then(u.handleDataFromStream_.bind(u)).catch(u.handleSendFailure_.bind(u))};
lo.prototype.handleDataFromStream_=function(u){if(this.inProgress_){if(this.JSC$19096_streamBinaryChunks_&&u.value)this.response.push(u.value);else if(!this.JSC$19096_streamBinaryChunks_){var K=u.value?u.value:new Uint8Array(0);if(K=this.JSC$19096_textDecoder_.decode(K,{stream:!u.done}))this.response=this.responseText+=K}u.done?d8(this):D6(this);this.readyState==3&&IOo(this)}};
lo.prototype.handleResponseText_=function(u){this.inProgress_&&(this.response=this.responseText=u,d8(this))};
lo.prototype.handleResponseArrayBuffer_=function(u){this.inProgress_&&(this.response=u,d8(this))};
lo.prototype.handleSendFailure_=function(){this.inProgress_&&d8(this)};
var d8=function(u){u.readyState=4;u.fetchResponse_=null;u.currentReader_=null;u.JSC$19096_textDecoder_=null;D6(u)};
lo.prototype.setRequestHeader=function(u,K){this.requestHeaders_.append(u,K)};
lo.prototype.getResponseHeader=function(u){return this.JSC$19096_responseHeaders_?this.JSC$19096_responseHeaders_.get(u.toLowerCase())||"":""};
lo.prototype.getAllResponseHeaders=function(){if(!this.JSC$19096_responseHeaders_)return"";for(var u=[],K=this.JSC$19096_responseHeaders_.entries(),l=K.next();!l.done;)l=l.value,u.push(l[0]+": "+l[1]),l=K.next();return u.join("\r\n")};
lo.prototype.setCredentialsMode=function(u){this.JSC$19096_credentialsMode_=u};
var D6=function(u){u.onreadystatechange&&u.onreadystatechange.call(u)};
Object.defineProperty(lo.prototype,"withCredentials",{get:function(){return this.JSC$19096_credentialsMode_==="include"},
set:function(u){this.setCredentialsMode(u?"include":"same-origin")}});var y0I=function(u){var K="";_.k$.forEach(u,function(l,D){K+=D;K+=":";K+=l;K+="\r\n"});
return K},sj_=function(u,K,l){if(_.k$.isEmpty(l))return u;
l=y0I(l);if(typeof u==="string")return _.yK(u,_.CT(K),l);_.dp(u,K,l);return u};var o2V=function(){this.isInputValid_=!0;this.JSC$19101_streamPos_=0;this.leftoverInput_=""};
o2V.prototype.isInputValid=function(){return this.isInputValid_};
o2V.prototype.decode=function(u){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("Tj`"+this.JSC$19101_streamPos_+"`stream already broken`"+u);this.leftoverInput_+=u;u=Math.floor(this.leftoverInput_.length/4);if(u==0)return null;try{var K=_.NSq(this.leftoverInput_.slice(0,u*4))}catch(l){throw K=this.leftoverInput_,u=l.message,this.isInputValid_=!1,Error("Tj`"+this.JSC$19101_streamPos_+"`"+u+"`"+K);}this.JSC$19101_streamPos_+=u*4;this.leftoverInput_=this.leftoverInput_.slice(u*4);return K};var iV=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19104_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
iV.prototype.isInputValid=function(){return this.state_!=3};
var C6=function(u,K,l,D){u.state_=3;u.errorMessage_="The stream is broken @"+u.JSC$19104_streamPos_+"/"+l+". Error: "+D+". With input:\n"+K;throw Error(u.errorMessage_);};
iV.prototype.acceptsBinaryInput=function(){return!0};
iV.prototype.parse=function(u){function K(q){q&128&&C6(C,W,M,"invalid tag");(q&7)!=2&&C6(C,W,M,"invalid wire type");C.tag_=q>>>3;C.tag_!=1&&C.tag_!=2&&C.tag_!=15&&C6(C,W,M,"unexpected tag");C.state_=1;C.length_=0;C.countLengthBytes_=0}
function l(q){C.countLengthBytes_++;C.countLengthBytes_==5&&q&240&&C6(C,W,M,"message length too long");C.length_|=(q&127)<<(C.countLengthBytes_-1)*7;q&128||(C.state_=2,C.countMessageBytes_=0,typeof Uint8Array!=="undefined"?C.messageBuffer_=new Uint8Array(C.length_):C.messageBuffer_=Array(C.length_),C.length_==0&&d())}
function D(q){C.messageBuffer_[C.countMessageBytes_++]=q;C.countMessageBytes_==C.length_&&d()}
function d(){if(C.tag_<15){var q={};q[C.tag_]=C.messageBuffer_;C.result_.push(q)}C.state_=0}
for(var C=this,W=u instanceof Array?u:new Uint8Array(u),M=0;M<W.length;){switch(C.state_){case 3:C6(C,W,M,"stream already broken");break;case 0:K(W[M]);break;case 1:l(W[M]);break;case 2:D(W[M]);break;default:throw Error("Uj`"+C.state_);}C.JSC$19104_streamPos_++;M++}u=C.result_;C.result_=[];return u.length>0?u:null};var MyG=function(){this.errorMessage_=null;this.JSC$19107_streamPos_=0;this.base64Decoder_=new o2V;this.pbParser_=new iV};
MyG.prototype.isInputValid=function(){return this.errorMessage_===null};
var W1E=function(u,K,l){u.errorMessage_="The stream is broken @"+u.JSC$19107_streamPos_+". Error: "+l+". With input:\n"+K;throw Error(u.errorMessage_);};
MyG.prototype.acceptsBinaryInput=function(){return!1};
MyG.prototype.parse=function(u){this.errorMessage_!==null&&W1E(this,u,"stream already broken");var K=null;try{var l=this.base64Decoder_.decode(u);K=l===null?null:this.pbParser_.parse(l)}catch(D){W1E(this,u,D.message)}this.JSC$19107_streamPos_+=u.length;return K};var HNE=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19110_streamPos_=0;this.result_=[];this.statusParsed_=!1};
HNE.prototype.isInputValid=function(){return this.errorMessage_===null};
HNE.prototype.acceptsBinaryInput=function(){return!1};
HNE.prototype.parse=function(u){function K(q){C.state_=6;C.errorMessage_="The stream is broken @"+C.JSC$19110_streamPos_+"/"+W+". Error: "+q+". With input:\n";throw Error(C.errorMessage_);}
function l(){C.jsonStreamParser_=new _.OF({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function D(q){if(q)for(var v=0;v<q.length;v++){var G={};G[1]=q[v];C.result_.push(G)}}
function d(q){if(q){(C.statusParsed_||q.length>1)&&K("extra status: "+q);C.statusParsed_=!0;var v={};v[2]=q[0];C.result_.push(v)}}
for(var C=this,W=0;W<u.length;){var M;if(M=C.state_!==2){a:{for(;W<u.length;){if(!_.b6(u[W])){M=!0;break a}W++;C.JSC$19110_streamPos_++}M=!1}M=!M}if(M)return null;switch(C.state_){case 6:K("stream already broken");break;case 0:u[W]==="["?(C.state_=1,W++,C.JSC$19110_streamPos_++):K("unexpected input token");break;case 1:u[W]==="["?(C.state_=2,l()):u[W]===","||u.slice(W,W+5)=="null,"?C.state_=3:u[W]==="]"?(C.state_=5,W++,C.JSC$19110_streamPos_++):K("unexpected input token");break;case 2:M=C.jsonStreamParser_.parse(u.substring(W));
D(M);C.jsonStreamParser_.done()?(C.state_=3,M=C.jsonStreamParser_.JSC$11359_buffer_,C.JSC$19110_streamPos_+=u.length-W-M.length,u=M,W=0):(C.JSC$19110_streamPos_+=u.length-W,W=u.length);break;case 3:u[W]===","||u.slice(W,W+5)=="null,"?(C.state_=4,l(),C.jsonStreamParser_.parse("["),W+=u[W]===","?1:5,C.JSC$19110_streamPos_++):u[W]==="]"&&(C.state_=5,W++,C.JSC$19110_streamPos_++);break;case 4:M=C.jsonStreamParser_.parse(u.substring(W));d(M);C.jsonStreamParser_.done()?(C.state_=5,M=C.jsonStreamParser_.JSC$11359_buffer_,
C.JSC$19110_streamPos_+=u.length-W-M.length,u=M,W=0):(C.JSC$19110_streamPos_+=u.length-W,W=u.length);break;case 5:K("extra input after stream end")}}return C.result_.length>0?(u=C.result_,C.result_=[],u):null};var H32=function(u){this.JSC$19113_xhr_=u;this.JSC$19113_parser_=null;this.status_=this.JSC$19113_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19113_textDecoder_=null;this.JSC$19113_eventHandler_=new _.tC(this);this.JSC$19113_eventHandler_.listen(this.JSC$19113_xhr_,"readystatechange",this.JSC$19115_readyStateChangeHandler_)},I1=function(u,K){u.status_!=K&&(u.status_=K,u.statusHandler_&&u.statusHandler_())},yC=function(u){u.JSC$19113_eventHandler_.removeAll();
if(u.JSC$19113_xhr_){var K=u.JSC$19113_xhr_;u.JSC$19113_xhr_=null;K.abort();K.dispose()}};
H32.prototype.getStatus=function(){return this.status_};
H32.prototype.JSC$19115_readyStateChangeHandler_=function(u){u=u.target;try{if(u==this.JSC$19113_xhr_)a:{var K=_.X4(this.JSC$19113_xhr_),l=this.JSC$19113_xhr_.JSC$9723_lastErrorCode_,D=this.JSC$19113_xhr_.getStatus(),d=this.JSC$19113_xhr_.getResponseText();u=[];if(this.JSC$19113_xhr_.getResponse()instanceof Array){var C=this.JSC$19113_xhr_.getResponse();C.length>0&&C[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,u=C)}if(!(K<3||K==3&&!d&&u.length==0))if(D=D==200||D==206,K==4&&(l==8?I1(this,
7):l==7?I1(this,8):D||I1(this,3)),this.JSC$19113_parser_||(this.JSC$19113_parser_=qxI(this.JSC$19113_xhr_),this.JSC$19113_parser_==null&&I1(this,5)),this.status_>2)yC(this);else{if(u.length>this.JSC$19113_pos_){var W=u.length;l=[];try{if(this.JSC$19113_parser_.acceptsBinaryInput())for(var M=0;M<W;M++){var q=this.JSC$19113_parser_.parse(Array.from(u[M]));q&&(l=l.concat(q))}else{q="";if(!this.JSC$19113_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Vj");this.JSC$19113_textDecoder_=new TextDecoder}for(M=
0;M<W;M++)q+=this.JSC$19113_textDecoder_.decode(u[M],{stream:K==4&&M==W-1});l=this.JSC$19113_parser_.parse(q)}u.splice(0,W);l&&this.dataHandler_(l)}catch(G){I1(this,5);yC(this);break a}}else if(d.length>this.JSC$19113_pos_){M=d.slice(this.JSC$19113_pos_);this.JSC$19113_pos_=d.length;try{var v=this.JSC$19113_parser_.parse(M);v!=null&&this.dataHandler_&&this.dataHandler_(v)}catch(G){I1(this,5);yC(this);break a}}K==4?(d.length!=0||this.hasStreamingResponseData_?I1(this,2):I1(this,4),yC(this)):I1(this,
1)}}}catch(G){I1(this,6),yC(this)}};var Mao=function(u){u=this.xhrReader_=u;var K=(0,_.wB)(this.onData_,this);u.dataHandler_=K;u=this.xhrReader_;K=(0,_.wB)(this.onStatusChange_,this);u.statusHandler_=K;this.JSC$19117_callbackMap_={};this.callbackOnceMap_={}};
_.I=Mao.prototype;_.I.on=function(u,K){var l=this.JSC$19117_callbackMap_[u];l||(l=[],this.JSC$19117_callbackMap_[u]=l);l.push(K);return this};
_.I.addListener=function(u,K){this.on(u,K);return this};
_.I.removeListener=function(u,K){var l=this.JSC$19117_callbackMap_[u];l&&_.AH(l,K);(u=this.callbackOnceMap_[u])&&_.AH(u,K);return this};
_.I.once=function(u,K){var l=this.callbackOnceMap_[u];l||(l=[],this.callbackOnceMap_[u]=l);l.push(K);return this};
_.I.onData_=function(u){var K=this.JSC$19117_callbackMap_.data;K&&qf_(u,K);(K=this.callbackOnceMap_.data)&&qf_(u,K);this.callbackOnceMap_.data=[]};
var qf_=function(u,K){for(var l={},D=0;D<u.length;l={message$jscomp$1001:void 0},D++)l.message$jscomp$1001=u[D],K.forEach(function(d){return function(C){try{C(d.message$jscomp$1001)}catch(W){}}}(l))};
Mao.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:$aH(this,"readable");break;case 5:case 6:case 4:case 7:case 3:$aH(this,"error");break;case 8:$aH(this,"close");break;case 2:$aH(this,"end")}};
var $aH=function(u,K){var l=u.JSC$19117_callbackMap_[K];l&&l.forEach(function(D){try{D()}catch(d){}});
(l=u.callbackOnceMap_[K])&&l.forEach(function(D){D()});
u.callbackOnceMap_[K]=[]};var n2o=function(){var u={format:"jspb"};u=u===void 0?{}:u;this.suppressCorsPreflight=u.suppressCorsPreflight||_.lZ("suppressCorsPreflight",u)||!1;this.withCredentials=u.withCredentials||_.lZ("withCredentials",u)||!1;this.streamInterceptors=u.streamInterceptors||[];this.unaryInterceptors=u.unaryInterceptors||[];this.workerScope=u.workerScope;this.chunkedServerStreaming=u.useFetchDownloadStreams||!1},GR2=function(u,K,l,D,d,C){C=C===void 0?{}:C;
var W=K.substring(0,K.length-d.name.length),M,q=(M=C)==null?void 0:M.signal;return r0p(function(v){return new Promise(function(G,t){if(q==null?0:q.aborted){var x=new _.ZV(1,"Aborted");x.cause=q.reason;t(x)}else{var O={},a=v22(u,v,W);a.on("error",function(f){return void t(f)});
a.on("metadata",function(f){O=f});
a.on("data",function(f){var B=O;B=B===void 0?{}:B;G(new QX_(f,B))});
q&&q.addEventListener("abort",function(){a.cancel();var f=new _.ZV(1,"Aborted");f.cause=q.reason;t(f)})}})},u.unaryInterceptors).call(u,PwG(d,l,D)).then(function(v){return v.responseMessage})},sz=function(u,K,l,D,d,C){C=C===void 0?{}:C;
return GR2(u,K,l,D,d,C)};
n2o.prototype.serverStreaming=function(u,K,l,D){var d=this,C=u.substring(0,u.length-D.name.length);return ta2(function(W){var M=W.methodDescriptor,q=W.getMetadata(),v=xaE(d,!1);q=SfV(d,q,v,C+M.getName());var G=b3i(v,M.responseDeserializeFn,!0);W=M.requestSerializeFn(W.requestMessage);v.send(q,"POST",W);return G},this.streamInterceptors).call(this,PwG(D,K,l))};
var v22=function(u,K,l){var D=K.methodDescriptor,d=K.getMetadata(),C=xaE(u,!0);u=SfV(u,d,C,l+D.getName());l=b3i(C,D.responseDeserializeFn,!1);CDH(l,d["X-Goog-Encode-Response-If-Executable"]==="base64");K=D.requestSerializeFn(K.requestMessage);C.send(u,"POST",K);return l},xaE=function(u,K){K=u.chunkedServerStreaming&&!K;
return u.workerScope||K?new _.A1(new K6({worker:u.workerScope,streamBinaryChunks:K})):new _.A1},SfV=function(u,K,l,D){K["Content-Type"]="application/json+protobuf";
K["X-User-Agent"]="grpc-web-javascript/0.1";var d=K.Authorization;if(d&&mZ6.has(d.split(" ")[0])||u.withCredentials)l.JSC$9723_withCredentials_=!0;if(u.suppressCorsPreflight)D=sj_(D,"$httpHeaders",K);else for(u=_.y(Object.keys(K)),d=u.next();!d.done;d=u.next())d=d.value,l.headers.set(d,K[d]);return D},b3i=function(u,K,l){if(l){l=new H32(u);
var D=new Mao(l)}return new E1({xhr:u,nodeReadableStream:D},K)},ta2=function(u,K){return K.reduce(function(l,D){return function(d){return D.intercept(d,l)}},u)},r0p=function(u,K){return K.reduce(function(l,D){return function(d){return D.intercept(d,l)}},u)};var O3i=function(u){this.client_=new n2o;this.hostname_=u==void 0?u:u.replace(/\/+$/,"")};
_.I=O3i.prototype;_.I.JSC$19135_depositGoogleCredential=function(u,K,l){return sz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",u,K||{},pUV,l)};
_.I.deleteLink=function(u,K,l){return sz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",u,K||{},jX2,l)};
_.I.JSC$19135_finishOAuth=function(u,K,l){return sz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",u,K||{},Tro,l)};
_.I.getLink=function(u,K,l){return sz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",u,K||{},wUi,l)};
_.I.startLinkingSession=function(u,K,l){return sz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",u,K||{},XU_,l)};var c06=[0,Bs_,1,Ts_,[0,_.qb,[0,pkI,-1]],[0,iz_],[0,wk_,-1]];var aOB=function(){this.storage=new Map},ee2=function(u,K,l,D,d){if(!u.storage.has(K))return null;
u=_.y(u.storage.get(K));for(K=u.next();!K.done;K=u.next())if(K=K.value,!d||K.linkName===d)if(l&&K.scopes&&zeG(K.scopes,l)||D&&K.capabilities&&zeG(K.capabilities,D))return K;return null},ReI=function(u,K,l){if(!l)u.storage.delete(K);
else if(u.storage.has(K)){var D=u.storage.get(K).filter(function(d){return d.linkName!==l});
D.length>0?u.storage.set(K,D):u.storage.delete(K)}},zeG=function(u,K){K=_.y(K);
for(var l=K.next();!l.done;l=K.next())if(!u.has(l.value))return!1;return!0};var UaI=function(){var u=_.E3("LINK_GAL_DOMAIN");this.alsDomain1p=_.E3("LINK_GAL_DOMAIN");this.alsDomain3p=u;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},fOp=function(u,K){u.apiKey=K;
return u};
UaI.prototype.build=function(){var u={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Wj");u.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Xj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Yj");u.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(u.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)u.apiKey=
this.apiKey,u.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Zj");u.oauthToken=this.oauthToken;u.alsDomain=this.alsDomain3p}u.clientXd3=this.clientXd3;u.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(u.authUser=this.authUser);this.bucket!==void 0&&(u.bucket=this.bucket);this.completionUrl!==void 0&&(u.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(u.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(u.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(u.locale=this.locale);u.loggerType=this.loggerType;u.clientEnvironment=this.clientEnvironment;u.colorScheme=this.colorScheme;u.showCloseOption=this.showCloseOption;return u};var TD=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(TD,_.b5);var QjE=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(QjE,_.b5);var PDp=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(PDp,_.b5);var Fo=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Fo,_.b5);var J02=function(u){return _.h0(u,1)};var jjG=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(jjG,_.b5);var xBI=_.QS(jjG),w1=[1,2,3,4,5];var rso=function(u){try{return xBI(u)}catch(K){return null}},Bap=function(){},vsV=function(u,K){switch(_.wa(K,w1)){case 4:return(K=_.uO(K,PDp,4,w1))&&u.logStateTransition(_.h0(K,1)),!0;
case 5:return(K=_.uO(K,QjE,5,w1))&&u.logInternalEvent(_.h0(K,1)),!0}return!1},Sxp=function(u){switch(u){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.o2(u)}};var $BE=function(u,K){var l=this;this.validator=u;this.messageListener=K;this.dismissCallback=function(){p8o(l,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19164_receiveMessage=function(D){D.type==="message"&&(D=D.event_,D!==null&&(new URL(l.iframe.src)).origin===D.origin&&l.validator(D.data,D.origin)&&!l.messageListener(D.data)&&(l.JSC$19164_resolveCb!==void 0&&l.JSC$19164_resolveCb(D.data),i3E(l)))}},typ=function(u,K,l){u.uiHandler!==void 0&&p8o(u,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(D,d){u.JSC$19164_resolveCb=D;u.JSC$19164_rejectCb=d;u.iframe=document.createElement("iframe");_.yg(u.iframe,K);u.uiHandler=l.displayContent(u.iframe,u.dismissCallback);_.kU(window,"message",u.JSC$19164_receiveMessage,!1,u)})},p8o=function(u,K){u.JSC$19164_rejectCb!==void 0&&u.JSC$19164_rejectCb(K);
i3E(u)},i3E=function(u){u.uiHandler!==void 0&&u.uiHandler.hideContent();
_.TY(window,"message",u.JSC$19164_receiveMessage,!1,u);u.JSC$19164_resolveCb=void 0;u.JSC$19164_rejectCb=void 0;u.uiHandler=void 0;u.iframe=void 0};var TaG=function(u){if(u===2){var K;u=((K=window)==null?0:K.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return u},GA_=function(u){u=TaG(u);
switch(u){case 0:return"light";case 1:return"dark";default:_.o2(u)}};var ns6=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),w82=function(u,K){this.JSC$19176_linkingSession=u;this.noticeConfig=K;this.displayInfoMap=new Map;var l=new Map;if(_.B8(this.JSC$19176_linkingSession,g5I,7))for(u=_.fV(this.JSC$19176_linkingSession,g5I,7),u=_.rB(u,Vlk,1,_.vO()),u=_.y(u),K=u.next();!K.done;K=u.next())K=K.value,l.set(_.h0(K,1),_.EDn(_.fV(K,_.XMH,3)));if(l.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){K=this.noticeConfig.enabledDataUsageNoticeUis;u=K.has(0)?l.get(1):void 0;K=K.has(1)?l.get(2):void 0;l=u!==void 0&&K!==void 0?l.get(3):void 0;var D=this.noticeConfig.nestedOrigins;var d=new jjG;var C=new TD;d=_.Br(d,2,w1,C);C=new jjG;var W=new TD;C=_.Br(C,3,w1,W);W=[];u!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:u,lastEvent:d,nestedOrigins:D}]),W.push({trustedUrl:u,lastEvent:d,nestedOrigins:D}));K!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:K,lastEvent:C,nestedOrigins:D}]),W.push({trustedUrl:K,lastEvent:C,nestedOrigins:D}));l!==void 0?this.displayInfoMap.set(3,[{trustedUrl:l,lastEvent:C,nestedOrigins:D}]):this.displayInfoMap.set(3,W)}};var F1o=function(u){var K=new aOB;this.galService=u;this.galCache=K};
F1o.prototype.getLink=function(u){var K=u.serviceId;var l=u.scopes;var D=u.capabilities;var d=u.linkName;var C=this,W;return _.H(function(M){if(D!==void 0&&l!==void 0)throw Error("$j");W=ee2(C.galCache,K,l,D,d);return W!==null?M.return(W):M.return(C.galService.getLink({serviceId:K,sessionId:Math.floor(Math.random()*2147483648),scopes:l,capabilities:D,linkName:d}).then(function(q){q=zdk(q);var v=C.galCache;v.storage.has(K)?v.storage.get(K).push(q):v.storage.set(K,[q]);return q}))})};
F1o.prototype.deleteLink=function(u,K,l){var D=this;return _.H(function(d){ReI(D.galCache,u,l);return d.return(D.galService.deleteLink({serviceId:u,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:K,linkName:l}).then(function(){return!0}))})};var g2V=function(u,K){var l=this;this.validator=u;this.msgHandler=K;this.closedPopupTimeout=this.JSC$19198_rejectCb=this.JSC$19198_resolveCb=this.popup=null;this.JSC$19198_receiveMessage=function(D){if(D!==null&&(D=D.event_,D.source===l.popup)){var d=D.data;if(l.validator(d,D.origin)){var C;(C=l.msgHandler)!=null&&C.call(l,d)||(l.JSC$19198_resolveCb!==null&&l.JSC$19198_resolveCb(d),VaG(l))}}}};
g2V.prototype.open=function(u,K){var l=this;this.popup!==null&&Na6(this);return new Promise(function(D,d){l.JSC$19198_resolveCb=D;l.JSC$19198_rejectCb=d;l.popup=_.s2(window,u,"",K);_.kU(window,"message",l.JSC$19198_receiveMessage,!1,l);kR_(l)})};
var Na6=function(u,K){u.JSC$19198_rejectCb!==null&&u.JSC$19198_rejectCb(K);VaG(u)},VaG=function(u){u.closedPopupTimeout&&(u.closedPopupTimeout.cancel(),u.closedPopupTimeout=null);
u.popup&&u.popup.close();_.TY(window,"message",u.JSC$19198_receiveMessage,!1,u);u.popup=null;u.JSC$19198_resolveCb=null;u.JSC$19198_rejectCb=null},kR_=function(u){u.closedPopupTimeout=_.$0w(100).then(function(){u.popup?u.popup.closed?Z3E(u):kR_(u):Na6(u,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},Z3E=function(u){u.closedPopupTimeout=_.$0w(100).then(function(){Na6(u,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var YfE=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),A0V=function(u,K,l,D,d,C,W,M,q,v){var G=this;this.serviceId=u;this.sessionId=K;this.galService=l;this.oauthDetails=D;this.galLogger=d;this.interactionMode=C;this.redirectServiceUrl=W;this.consentLanguageKeys=M;this.dynamicUrlParameters=q;this.partnerConfigMinReadTimestamp=v;this.started=!1;this.JSC$19204_dataValidator=function(t,
x){var O=YfE.has(x);O||G.redirectServiceUrl===void 0||(O=G.redirectServiceUrl===x);return O?t.sentinel==="gdi":!1}};
A0V.prototype.complete=function(){var u=this,K;return _.H(function(l){if(u.interactionMode!==1)return l.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));K=g1.getRedirectStateFromUri();return K===null?l.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):l.return(X8p(u,K))})};
A0V.prototype.start=function(){var u=this,K;return _.H(function(l){if(u.started)return l.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.A0(u.oauthDetails,1))return l.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(u.interactionMode===1)return g1.setLocation(_.A0(u.oauthDetails,1)),l.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));u.started=!0;u.galLogger.logStateTransition(5);
K=g1.getPostMessagePopup(u.JSC$19204_dataValidator);return l.return(K.open(_.A0(u.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(D){u.started=!1;var d=u.galLogger;if((D==null?void 0:D.error)!==void 0)throw d.logInternalEvent(59),Error("ak");if((D==null?void 0:D.redirect_state)===void 0)throw d.logInternalEvent(131),Error("bk");return X8p(u,D.redirect_state)}).catch(function(D){u.started=
!1;
return D.errorCode!==void 0?{statusCode:D.errorCode,statusMessage:D.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var X8p=function(u,K){return _.H(function(l){return l.return(mak(u.galService,{serviceId:u.serviceId,sessionId:u.sessionId,dynamicUrlParameters:u.dynamicUrlParameters,redirectState:K,consentLanguageKeys:u.consentLanguageKeys,partnerConfigMinReadTimestamp:u.partnerConfigMinReadTimestamp}).then(function(D){var d={statusCode:1,link:zdk(D.getLink())};WYI(_.iD(D,3))!==void 0&&(d.callerState=WYI(_.iD(D,3)));u.galLogger.logInternalEvent(134);return d}))})},g1={getPostMessagePopup:function(u){return new g2V(u)},
getRedirectStateFromUri:function(){var u=_.lr(g1.getLocation()).fragment_;return(new _.cN(u)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(u){_.huZ(window.location,_.ES(u))},
createOAuthFlow:function(u,K){return new A0V(u.serviceId,u.sessionId,u.galService,K,u.galLogger,u.interactionMode,u.redirectServiceUrl,u.consentLanguageKeys,u.dynamicUrlParameters,u.partnerConfigMinReadTimestamp)}};var he2=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(he2,_.b5);var E2k=_.QS(he2);var L16=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),uVH=function(u,K,l,D,d,C,W,M,q){var v=this;this.serviceId=u;this.sessionId=K;this.galService=l;this.gsiWebFlowDetails=D;this.colorScheme=d;this.showCloseOption=C;this.galLogger=W;this.interactionMode=M;this.redirectServiceUrl=q;this.started=!1;this.JSC$19216_dataValidator=function(G,t){var x=L16.has(t);x||v.redirectServiceUrl===
void 0||(x=v.redirectServiceUrl===t);return x?G.sentinel==="gal":!1};
this.logEventProcessor=function(G){return G.result?(G=rso(G.result))?vsV(v.galLogger,G):!1:!1}};
uVH.prototype.complete=function(){var u=this,K,l;return _.H(function(D){if(u.interactionMode!==1)return D.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));K=N8.getRedirectStateFromUri();if(K===void 0)return u.galLogger.JSC$19156_logErrorEvent(131),D.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return l=KIB(u,K),D.return(l0I(u,l))}catch(d){return D.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
uVH.prototype.start=function(){var u=this,K;return _.H(function(l){if(u.started)return l.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.A0(u.gsiWebFlowDetails,1))return l.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(u.interactionMode===1)return N8.setLocation(DbV(u,_.A0(u.gsiWebFlowDetails,1))),l.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
u.started=!0;K=N8.getPostMessagePopup(u.JSC$19216_dataValidator,u.logEventProcessor);return l.return(K.open(DbV(u,_.A0(u.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(D){u.started=!1;if((D==null?void 0:D.result)===void 0)throw u.galLogger.JSC$19156_logErrorEvent(131),Error("bk");D=KIB(u,D.result);return l0I(u,D)}).catch(function(D){u.started=!1;
return D.errorCode!==void 0?{statusCode:D.errorCode,statusMessage:D.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var DbV=function(u,K){u=["result_channel",u.interactionMode===1?"2":"1","color_scheme",GA_(u.colorScheme),"show_close_option",u.showCloseOption];return Ns6(K,u)},l0I=function(u,K){if(K!==null&&_.B8(K,Fo,2)){var l,D=K==null?void 0:(l=_.fV(K,Fo,2))==null?void 0:_.h0(l,2);
D&&u.galLogger.JSC$19156_logErrorEvent(Sxp(D));return J02(_.fV(K,Fo,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 u.galService.getLink({serviceId:u.serviceId,sessionId:u.sessionId,consistencyKey:_.A0(K,1)}).then(function(d){d=zdk(d);u.galLogger.logInternalEvent(134);return{statusCode:1,link:d}})},KIB=function(u,K){K=E2k(K);
if(!_.B8(K,Fo,2)&&_.A0(K,1)==="")throw u.galLogger.JSC$19156_logErrorEvent(5),Error("ck");return K},N8={getPostMessagePopup:function(u,K){return new g2V(u,K)},
getRedirectStateFromUri:function(){return _.D7(_.lr(N8.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(u){_.huZ(window.location,_.ES(u))},
createStreamlinedFlow:function(u,K){return new uVH(u.serviceId,u.sessionId,u.galService,K,u.colorScheme,u.showCloseOption,u.galLogger,u.interactionMode,u.redirectServiceUrl)}};var Vyk=function(){var u=_.KG9("GAL");this.storage=u?new _.F0(u):null};
Vyk.prototype.getSession=function(u){if(this.storage!==null)try{var K=this.storage.get("SAVED_SESSION");if(K===void 0)return null;if(K.serviceId===u)return K}catch(l){}return null};var o1=function(){};
_.c(o1,Bap);o1.prototype.logStateTransition=function(){};
o1.prototype.logInternalEvent=function(){};
o1.prototype.JSC$19156_logErrorEvent=function(){};var db_=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(db_,_.b5);db_.prototype.getCompletionUrl=function(){return _.A0(this,15)};var Wp=function(u,K,l,D,d,C){this.serviceId=u;this.environment=K;this.sessionId=l;this.colorSchemeSelected=D;this.colorThemeDisplayed=d;this.JSC$19229_transport=C;this.currentState=1};
_.c(Wp,Bap);Wp.prototype.logStateTransition=function(u){var K=COV(this);K=_.xL(K,3,this.currentState);K=_.xL(K,1,u);this.currentState=u;u=kHH(1);this.dispatch(K,u)};
Wp.prototype.logInternalEvent=function(u){u=kHH(u);this.dispatch(COV(this),u)};
Wp.prototype.JSC$19156_logErrorEvent=function(u){var K=COV(this);K=_.xL(K,1,10);u=kHH(u);this.dispatch(K,u)};
var COV=function(u){var K=new db_;K=_.xL(K,1,u.currentState);K=_.Tj(K,7,u.serviceId);var l,D;var d=((l=window)==null?0:(D=l.location)==null?0:D.href)?_.lr(window.location.href).JSC$9960_domain_:"NO_PACKAGE_NAME";l=_.Tj(K,8,d);l=_.xL(l,6,u.environment);l=_.Tj(l,5,"100");l=_.xL(l,11,u.colorSchemeSelected);return _.xL(l,12,u.colorThemeDisplayed)};
Wp.prototype.dispatch=function(u,K){K===void 0&&(K=new _.e3);var l=K;u=u.serialize();l=_.Tj(l,8,u);_.iP(l,12,this.sessionId);this.JSC$19229_transport.dispatch(K)};var I0k=function(u,K){this.loggerType=u;this.sessionIndex=K!=null?K:0},yyG;
I0k.prototype.create=function(u,K,l,D,d){switch(this.loggerType){case 0:return new o1;case 1:return yyG||(yyG=(new _.zZ(555,this.sessionIndex.toString())).build()),new Wp(u,K,l,D,d,yyG);default:_.o2(this.loggerType,"unknown logger type")}};var k7=[6,2,3,1],Ask=new Map([[4,1],[1,6],[2,2],[3,3]]),fyk={statusCode:7,statusMessage:"Failed to create flow object"},w06=function(u,K,l,D,d,C,W,M,q,v){this.serviceId=u;this.sessionId=K;this.config=l;this.galService=D;this.JSC$19236_linkingSession=d;this.googleScopes=C;this.callerState=W;this.consentLanguageKeys=M;this.dynamicUrlParameters=q;this.partnerConfigMinReadTimestamp=v;this.currentFlow=0;D=this.JSC$19236_linkingSession;d=new Set;_.B8(D,Bd_,1)&&d.add(1);_.B8(D,kb_,2)&&_.B8(D,p06,6)&&d.add(2);
_.B8(D,NrI,3)&&_.B8(D,p06,6)&&d.add(3);_.B8(D,FzH,4)&&d.add(6);this.supportedFlows=d;D=l.loggerType;d=l.clientEnvironment;a:{C=l.colorScheme;switch(C){case 0:C=1;break a;case 1:C=2;break a;case 2:C=3;break a;default:_.o2(C)}C=void 0}a:{W=l.colorScheme;W=TaG(W);switch(W){case 0:W=1;break a;case 1:W=2;break a;default:_.o2(W)}W=void 0}this.galLogger=(new I0k(D,l.authUser)).create(u,d,K,C,W)},oA_=function(u){return new Promise(function(K){var l,D,d,C,W,M,q,v,G,t;
return _.H(function(x){switch(x.nextAddress){case 1:l=iNG(u.currentFlow,u.supportedFlows),D=!1,d=new w82(u.JSC$19236_linkingSession,u.config.dataUsageNoticeConfig);case 2:if(l===void 0){x.jumpTo(4);break}_.Qg(x,5);var O=d,a=l,f=void 0;D?a===1&&(f=O.displayInfoMap.get(2)):a===2||a===3?f=O.displayInfoMap.get(1):a===1&&(f=O.displayInfoMap.get(3));C=f?f:[];W=u.consentLanguageKeys;M=_.y(C);q=M.next();case 7:if(q.done)return u.currentFlow=l,x.yield(PI2(sqk(u,W)),11);v=q.value;return x.yield(bNk(v,u.config.dataUsageNoticeConfig.uiAdapter,
u.config.colorScheme,u.galLogger),10);case 10:G=x.yieldResult;if(G.statusCode!==1)return gs_(u.serviceId),u.currentFlow=0,K(V4({statusCode:G.statusCode,statusMessage:G.statusMessage},u.callerState)),x.return();G.consentLanguageKeys!==void 0&&(W=G.consentLanguageKeys);q=M.next();x.jumpTo(7);break;case 11:t=x.yieldResult;if(t.statusCode!==10)return t.statusCode!==6&&(gs_(u.serviceId),u.currentFlow=0),t.statusCode!==1&&u.callerState!==void 0&&(t.callerState=u.callerState),K(t),x.return();_.I$(x,6);break;
case 5:_.iY(x);case 6:l=iNG(u.currentFlow,u.supportedFlows);D=!0;x.jumpTo(2);break;case 4:gs_(u.serviceId),u.currentFlow=0,K(V4({statusCode:12,statusMessage:"Linking failed"},u.callerState)),_.TG(x)}})})},ZNk=function(u,K,l){u.currentFlow=K;
return JsV(sqk(u,l)).then(function(D){return D.statusCode===10&&u.config.interactionMode===1&&iNG(u.currentFlow,u.supportedFlows)!==void 0?oA_(u):D})},sqk=function(u,K){return{flowParams:{serviceId:u.serviceId,
sessionId:u.sessionId,galService:u.galService,galLogger:u.galLogger,interactionMode:u.config.interactionMode,redirectServiceUrl:u.config.redirectServiceUrl,colorScheme:u.config.colorScheme,consentLanguageKeys:K,dynamicUrlParameters:u.dynamicUrlParameters,showCloseOption:u.config.showCloseOption,partnerConfigMinReadTimestamp:u.partnerConfigMinReadTimestamp},currentFlow:u.currentFlow,config:u.config,session:u.JSC$19236_linkingSession,googleScopes:u.googleScopes,callerState:u.callerState}};var mB6=function(u,K){this.config=u;this.galService=K.getService();this.JSC$19249_galRepository=K.JSC$19267_galRepository};
mB6.prototype.getLink=function(u,K){return WIi(this,u,K)};
var WIi=function(u,K,l){return u.JSC$19249_galRepository.getLink({serviceId:K,scopes:void 0,capabilities:void 0,linkName:l}).then(function(D){return{statusCode:1,link:D}}).catch(function(D){return{statusCode:X0_(D.code),
statusMessage:D.message}})};
mB6.prototype.deleteLink=function(u,K){return this.JSC$19249_galRepository.deleteLink(u,this.config.accountLinkingEntryPoint,K).then(function(){return{statusCode:1}}).catch(function(l){return{statusCode:X0_(l.code),
statusMessage:l.message}})};
mB6.prototype.startLinkingSession=function(u){var K=u.serviceId;var l=u.sessionId;return Ff2({serviceId:K,sessionId:l!==void 0?l:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:u.loginHint,callerState:u.callerState,consentLanguageKeys:u.consentLanguageKeys,linkName:u.linkName,dynamicUrlParameters:u.dynamicUrlParameters,partnerConfigMinReadTimestamp:u.partnerConfigMinReadTimestamp})};var Hp=function(u,K,l,D,d,C,W){this.apiKey=K;this.authUser=l;this.oauthToken=D;this.bucket=d;this.locale=C;this.galSdkEventHandler=W;if(D===void 0){if(K===void 0)throw Error("dk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new O3i(u)};
Hp.prototype.deleteLink=function(u){var K=u.serviceId;var l=u.sessionId;var D=u.accountLinkingEntryPoint;var d=u.linkName;var C=this,W;return _.H(function(M){var q=(new A6).setHeader(C.getHeader(l));var v=HaG({serviceId:K,linkName:d});q=_.jF(q,2,v);W=_.lO(q,3,D);return M.return(C.makeRequest(C.galServiceClient.deleteLink,W,[1,3],[2,4]))})};
var mak=function(u,K){var l=K.serviceId;var D=K.sessionId;var d=K.dynamicUrlParameters;var C=K.redirectState;var W=K.consentLanguageKeys;var M=K.partnerConfigMinReadTimestamp;var q;return _.H(function(v){var G=(new m7).setHeader(u.getHeader(D,d));G=_.oX(G,2,l);q=_.oX(G,4,C);W!==void 0&&_.oX(q,5,W);M!==void 0&&_.jF(q,6,M);return v.return(u.makeRequest(u.galServiceClient.JSC$19135_finishOAuth,q,[1,3],[2,4]))})};
Hp.prototype.getLink=function(u){var K=u.serviceId;var l=u.sessionId;var D=u.scopes;var d=u.capabilities;var C=u.consistencyKey;var W=u.linkName;var M=this,q;return _.H(function(v){var G=(new h6).setHeader(M.getHeader(l)),t=HaG({serviceId:K,scopes:D,capabilities:d,linkName:W});q=_.jF(G,2,t);C!==void 0&&(G=exG(),G=_.oX(G,2,C),_.jF(q,3,G));return v.return(M.makeRequest(M.galServiceClient.getLink,q,[1,3],[2,4]))})};
var jy6=function(u,K){var l=K.serviceId;var D=K.sessionId;var d=K.googleScopes;var C=K.consistencyKey;var W;return _.H(function(M){var q=(new XA).setHeader(u.getHeader(D));q=_.oX(q,2,l);var v=Array.from(d.values());q=_.Hr(q,3,v,_.iG);v=exG();v=_.oX(v,2,C);W=_.jF(q,4,v);return M.return(u.makeRequest(u.galServiceClient.JSC$19135_depositGoogleCredential,W,[1,3],[2,4]))})};
Hp.prototype.startLinkingSession=function(u){var K=u.serviceId;var l=u.sessionId;var D=u.scopes;var d=u.capabilities;var C=u.loginHint;var W=u.supportedFlows;var M=u.completionUrl;var q=u.usePingPong;var v=u.twoWayLinking;var G=u.accountLinkingEntryPoint;var t=u.callerState;var x=u.consentLanguageKeys;var O=u.googleScopes;var a=u.dataUsageNoticeConfig;var f=u.linkName;var B=u.dynamicUrlParameters;var p=u.partnerConfigMinReadTimestamp;var V=this,m,Z;return _.H(function(A){if(d!==void 0&&D!==void 0)throw Error("$j");
var h=(new AnV).setHeader(V.getHeader(l,B));m=_.oX(h,2,K);f!==void 0&&_.oX(m,14,f);if(d!==void 0){h=m;var C9=Array.from(d.values());_.Hr(h,5,C9,_.iG)}else D!==void 0&&(h=m,C9=Array.from(D.values()),_.Hr(h,3,C9,_.iG));M!==void 0&&_.oX(m,6,M);q!==void 0&&_.NN(m,15,q);W!==void 0&&(h=m,C9=Array.from(W.values()),_.Hr(h,4,C9,_.G6));if(v!==void 0){if(v&&(!O||O.size===0))throw Error("ek");_.NN(m,8,v)}G!==void 0&&_.lO(m,9,G);C!==void 0&&_.oX(m,13,C);t!==void 0&&(h=m,C9=(new TextEncoder).encode(t),_.M9(h,12,
_.FH(C9,!1),_.wN()));x!==void 0&&_.oX(m,16,x);p!==void 0&&_.jF(m,18,p);if(a!==void 0&&a.size>0||O!==void 0&&O.size>0)Z=new YAB,O!==void 0&&O.size>0&&(h=Z,C9=Array.from(O.values()),_.Hr(h,1,C9,_.iG)),a!==void 0&&(a.has(0)&&_.xpZ(Z,2,_.G6,1,_.Sk),a.has(1)&&_.xpZ(Z,2,_.G6,2,_.Sk)),_.jF(m,17,Z);return A.return(V.makeRequest(V.galServiceClient.startLinkingSession,m,[1],[2]))})};
Hp.prototype.getMetadata=function(){var u=this,K,l;return _.H(function(D){K={};u.useFpa?(K["X-Goog-Api-Key"]=u.apiKey,K["X-Goog-AuthUser"]=u.authUser!==void 0?u.authUser.toString():"0",(l=_.e4Z([]))&&(K.Authorization=l)):K.Authorization="Bearer "+u.oauthToken;u.locale&&(K["accept-language"]=u.locale);return D.return(K)})};
Hp.prototype.makeRequest=function(u,K,l,D){var d=this,C;return _.H(function(W){if(W.nextAddress==1)return W.yield(d.getMetadata(),2);C=W.yieldResult;MQo(d,l);return W.return(u.bind(d.galServiceClient)(K,C).finally(function(){MQo(d,D)}))})};
var MQo=function(u,K){u.galSdkEventHandler!==void 0&&K.forEach(function(l){u.galSdkEventHandler.onEvent(l)})};
Hp.prototype.getHeader=function(u,K){var l=new kq;u=_.M9(l,2,_.bG(u),0);u=_.lO(u,5,3);K=_.Hr(u,8,K,_.iG);this.bucket!==void 0&&_.oX(K,1,this.bucket);return K};
var HaG=function(u){var K=u.serviceId;var l=u.scopes;var D=u.capabilities;u=u.linkName;if(D!==void 0&&l!==void 0)throw Error("$j");var d=new aL_;K=_.oX(d,1,K);D!==void 0?(l=Array.from(D.values()),_.Hr(K,5,l,_.iG)):l!==void 0&&(l=Array.from(l.values()),_.Hr(K,3,l,_.iG));u!==void 0&&_.oX(K,6,u);return K};var hdB=function(u){this.galService=new Hp(u.alsDomain,u.apiKey,u.authUser,u.oauthToken,u.bucket,u.locale,u.galSdkEventHandler);this.JSC$19267_galRepository=new F1o(this.galService)};
hdB.prototype.getService=function(){return this.galService};var qRH=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(qRH,_.b5);var $bE=function(u){var K=new qRH;return _.xL(K,1,u)};
qRH.prototype.setErrorMessage=function(u){return _.Tj(this,2,u)};var nAG=[0,_.rR,_.Mb,_.rR];var Mk=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(Mk,_.b5);var ry2=[0,[1,2,3],_.$A,[0,Q5H,j5p,-1],_.$A,[0,J3E,-1],_.mqy];var vAV=[0,_.Wy,1,_.rR,_.Mb,-1,1,_.LVq,_.oq,_.rR,-1,ry2];var G32=[0,_.rR,[0,_.LVq,_.oq,[0,_.Mb]],_.Hy,[0,_.rR,-1]];var RJ=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(RJ,_.b5);var tQE=[0,_.Mb,_.rR,-2,_.Wy,_.rR,_.Wy,_.rR,-2,1,_.Hy];var xbV=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(xbV,_.b5);var SR_=[0,_.Wy];var ba_=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(ba_,_.b5);var Oa_=[0,_.rR,G32,SR_,tQE,vAV];var a$p=_.US(ba_,Oa_);var cyE=[0,c06];var QTI=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(QTI,_.b5);var a0o=[0,[1,3],FUV,_.rR,FUV];var z4=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(z4,_.b5);var zbH=[0,_.rR];var ebH=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(ebH,_.b5);var ei=function(u){return _.uO(u,qRH,2,aJ)},RbG=function(u){var K=new ebH;
return _.Br(K,2,aJ,u)},aJ=[1,
2];var Ub_=[0,aJ,_.$A,zbH,_.$A,nAG,_.qb,a0o,1,_.rR,cyE];var f0i=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(f0i,_.b5);var PO_=function(u){var K=new f0i;return _.Br(K,3,Qqi,u)},Qqi=[2,
3];var qk=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(qk,_.b5);var Jyp=function(u,K){return _.jF(u,2,K)},jqE=function(u,K){return _.jF(u,8,K)},BRp=function(u,K){return _.jF(u,3,K)};var py_=[0,_.rR,Ub_,Oa_,_.sQw,[0,[5,6],[0,_.rR,-2],[0,_.Wy,_.rR,_.Mb],[0,ry2],[0,_.Mb,_.rR,-1,_.yXw,_.rR],_.$A,[0,[0,_.Wy],_.rR,-1],_.$A,[0,[3,4],_.rR,-1,_.$A,[0,[0,_.rR,_.Hy]],_.$A,[0,[0,[0,[1,2],_.$A,[0],_.$A,[0]]]]]],_.sQw,-1,[0,Qqi,_.rR,_.$A,zbH,_.$A,nAG,_.qb,a0o,[0,c06]]];var iaH=_.US(qk,py_),TR_=_.fM(py_);var wyI=function(){_.TZ.call(this)};
_.c(wyI,_.TZ);wyI.prototype.init=function(){};
new wyI;var FIB=_.oj(["data-"]),VQE=_.oj(["aria-"]),gAp=_.oj(["aria-"]),$9=function(u,K){this.isLatencyMeasurementExperiment=u===void 0?!1:u;this.enableDialogA11yFix=K===void 0?!1:K;this.JSC$19296_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.JEw(_.lL.location.href)},eMH=function(u,K){u.onConsentPrimitiveShownCallback=K},NRB=function(u,K){return u.overriddenIframeLoadTimeout?u.overriddenIframeLoadTimeout:K!==void 0?K:5E3},UIE=function(u){if(u.prewarmPromise!==void 0)return u.prewarmPromise;
u.prewarmPromise=new Promise(function(K,l){n6(u,1);k3H(u,ZaH(u,!0),YRo(u));u.iframe?u.prewarmChannel||AyE(u,u.iframe,K):l(Error("fk"))});
u.prewarmPromise.finally(function(){u.prewarmPromise=void 0});
return u.prewarmPromise};
$9.prototype.showPrimitive=function(){var u=this;if(this.consentPromise!==void 0)return this.consentPromise;var K=Date.now();Xyk(this,K);this.consentPromise=new Promise(function(l,D){n6(u,0,K);var d=u.isDarkTheme();u.isLatencyMeasurementExperiment||u.initialLoadingStrategy===1||u.initialLoadingStrategy===2||(u.loadingBar||(u.loadingBar=KG_(getComputedStyle(document.body).direction==="rtl",d),u.loadingBar.style.position="fixed",u.loadingBar.style.zIndex="15000"),document.body.appendChild(u.loadingBar));
k3H(u,ZaH(u),YRo(u));u.iframe?u.channel||mbi(u,u.iframe,l,D):(hbV(u),D(Error("fk")))});
this.consentPromise.finally(function(){u.consentPromise=void 0});
return this.consentPromise};
var mbi=function(u,K,l,D){var d,C;_.H(function(W){switch(W.nextAddress){case 1:n6(u,3);d=!1;setTimeout(function(){if(!d){hbV(u);EA2(u);LI2(u);var M=$bE(7).setErrorMessage("Timeout connecting to iframe");l(jqE(Jyp(new qk,RbG(M)),PO_(M)))}},NRB(u,u46(u)));
if(!u.prewarmPromise){W.jumpTo(2);break}_.Qg(W,3);return W.yield(u.prewarmPromise,5);case 5:_.I$(W,2);break;case 3:_.iY(W),C=$bE(4).setErrorMessage("Error while prewarming."),l(jqE(Jyp(new qk,RbG(C)),PO_(C)));case 2:u.prewarmChannel&&u.prewarmChannel.send(TR_(BRp(new qk,u.consentPrimitiveRequest))),u.channel=_.ty({destination:u.JSC$19296_win,iframe:K,origin:KiV(u),channelName:"cpw",onEstablished:function(){d=!0;hbV(u);u.isLatencyMeasurementExperiment||(u.JSC$19296_previousBodyOverflow=document.body.style.overflow,
u.JSC$19296_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,u.JSC$19296_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",u.enableDialogA11yFix&&window.addEventListener("blur",u.focusChangeListener));var M=u.iframe;M.style.bottom="0";M.style.position="fixed";M.style.right="0";M.style.border="none";M.style.left="0";M.style.top=
"0";M.style.zIndex="5000";M.style.pointerEvents="";M.style.visibility="";u.initialLoadingStrategy===2||u.initialLoadingStrategy===3?n6(u,4):n6(u,6);var q;(q=u.onConsentPrimitiveShownCallback)==null||q.call(u)},
onMessage:function(M){M=iaH(M.data);switch(_.h0(M,1)){case 1:EA2(u);var q=lJp(_.fV(M,_.Lz,7));q&&(u.initialLoadingStrategy!==2&&u.initialLoadingStrategy!==3||n6(u,6,q),n6(u,5,q));if(q=lJp(_.fV(M,_.Lz,6)))n6(u,7,q),n6(u,8);var v,G;((v=_.fV(M,ebH,2))==null?void 0:_.wa(v,aJ))!==0&&((G=_.fV(M,f0i,8))==null?void 0:_.wa(G,Qqi))!==0||D(Error("gk"));l(M);break;case 2:LI2(u)}}}),_.TG(W)}})},AyE=function(u,K,l){u.prewarmChannel=_.ty({destination:u.JSC$19296_win,
iframe:K,origin:KiV(u),channelName:"pwcp",onEstablished:function(){n6(u,2);l()}})},KiV=function(u){var K=_.VS(u.src).toString();
return K&&K.indexOf("://")<0&&K.indexOf("//")!==0?u.origin:_.JEw(K)},ZaH=function(u,K){K=K===void 0?!1:K;
var l,D=new Map([["origin",u.origin],["hl",(l=lVo(u))!=null?l:null]]);K&&D.set("pw","1");K=_.y([["cpr",u.consentPrimitiveRequest.serialize()]]);for(l=K.next();!l.done;l=K.next()){var d=_.y(l.value);l=d.next().value;d=d.next().value;D.set(l,d)}u.isDarkTheme()&&D.set("color_scheme","dark");return _.cK(u.src,D)},hbV=function(u){u.isLatencyMeasurementExperiment||u.loadingBar&&document.body.removeChild(u.loadingBar)};
$9.prototype.getSrc=function(){var u=_.q7(this.origin),K;var l=(K=_.fV(this.consentPrimitiveRequest,xbV,3))==null?void 0:_.tq(K,1);K="consent.google.com";l=l?"/u/"+encodeURIComponent(l.toString()):"";(u==null?0:u.endsWith("youtube.com"))?K="consent.youtube.com":(u=u==null?void 0:u.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(K="consent.google."+((u[1]?"co.":"")+encodeURIComponent(u[2])));return _.Fz("https://"+K+"/signedin"+l+"/landing")};
var k3H=function(u,K,l){u.iframe||(u.iframe=document.createElement("iframe"),u.iframe.style.width="100%",u.iframe.style.height="100%",l!==112496729&&(u.iframe.style.colorScheme="auto"),u.isLatencyMeasurementExperiment&&(u.iframe.style.display="none"),_.yg(u.iframe,K),u.iframe.setAttribute("jsname","C5o1O"),De6(u.iframe),document.body.appendChild(u.iframe))},De6=function(u){u.style.bottom="-200vh";
u.style.position="fixed";u.style.right="-200vw";u.style.border="";u.style.left="";u.style.top="";u.style.zIndex="";u.style.pointerEvents="none";u.style.visibility="hidden"},EA2=function(u){u.iframe&&(u.isLatencyMeasurementExperiment||(u.JSC$19296_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=u.JSC$19296_previousHtmlOverscroll),u.JSC$19296_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=u.JSC$19296_previousBodyOverscroll),u.JSC$19296_previousBodyOverflow!==
void 0&&(document.body.style.overflow=u.JSC$19296_previousBodyOverflow),u.enableDialogA11yFix&&deG(u,!1)),De6(u.iframe))};
$9.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(deG(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var deG=function(u,K){var l,D,d=(l=u.iframe)==null?void 0:(D=l.parentElement)==null?void 0:D.children;if(d)for(l=0;l<d.length;l++)D=d[l],D!==u.iframe&&(K?(D.hasAttribute("aria-hidden")&&_.rm([_.SA(FIB)],D,"data-old-aria-hidden",D.getAttribute("aria-hidden")),_.rm([_.SA(VQE)],D,"aria-hidden","true")):(D.removeAttribute("aria-hidden"),D.hasAttribute("data-old-aria-hidden")&&(_.rm([_.SA(gAp)],D,"aria-hidden",D.getAttribute("data-old-aria-hidden")),D.removeAttribute("data-old-aria-hidden"))))},n6=function(u,
K,l){var D;
(D=u.latencyCallback)==null||D.call(u,{latencyType:K,timestampEpochMillis:l!=null?l:Date.now()})};var C4o=function(u,K,l){$9.call(this,K,l===void 0?!1:l);this.consentPrimitiveRequest=u;u=lVo(this);_.XuV(u);this.src=this.getSrc();var D;this.initialLoadingStrategy=(D=_.fV(this.consentPrimitiveRequest,RJ,4))==null?void 0:_.h0(D,4)},IVo;
_.c(C4o,$9);var zMp=function(u){var K=_.S("enable_primitive_dialog_aria_hide_siblings");u={request:u,enableDialogA11yFix:K===void 0?!1:K};IVo||(IVo=new C4o(u.request,u.isLatencyMeasurementExperiment||_.h0(u.request,1)===2,u.enableDialogA11yFix));return IVo},lVo=function(u){var K;
return(K=_.fV(u.consentPrimitiveRequest,RJ,4))==null?void 0:_.A0(K,1)},Xyk=function(u,K){if(!_.B8(u.consentPrimitiveRequest,Mk,5)){var l=u.consentPrimitiveRequest,D=new Mk;
_.jF(l,5,D)}var d;if((d=_.fV(u.consentPrimitiveRequest,Mk,5))==null||_.n0L(_.ja(d,8))==null){var C;(C=_.fV(u.consentPrimitiveRequest,Mk,5))!=null&&_.iP(C,8,K)}},YRo=function(u){var K;
return(K=_.fV(u.consentPrimitiveRequest,Mk,5))==null?void 0:_.tq(K,1)};
C4o.prototype.isDarkTheme=function(){var u;return((u=_.fV(this.consentPrimitiveRequest,RJ,4))==null?void 0:_.h0(u,2))===2};
var u46=function(u){var K;return((K=_.fV(u.consentPrimitiveRequest,RJ,4))==null?void 0:_.tq(K,5))||void 0},LI2=function(u){u.channel=void 0;
u.prewarmChannel=void 0;u.iframe&&(document.body.contains(u.iframe)&&document.body.removeChild(u.iframe),u.iframe=void 0);IVo=void 0},f$H=function(u){return $9.prototype.showPrimitive.call(u).then(function(K){return _.fV(K,ebH,2)})};for(var r8={},y1I=(r8[64]="ma",r8[73]="ogb",r8[89]="cr",r8[21]="test",r8[0]="unkn",r8[137]="con",r8[155]="hl",r8[78]="yt",r8[171]="lp",r8[172]="ap",r8[177]="amo",r8[178]="pqe",r8[74]="gg",r8[1]="gm",r8[140]="am",r8[193]="sc",r8),sBG=_.y(Object.keys(y1I)),ozi=sBG.next();!ozi.done;ozi=sBG.next());var WiE=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(WiE,_.b5);var HJE=[0,[2,3,4],_.rR,PCp,FUV,_.mqy];var M3G=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(M3G,_.b5);var quV=_.US(M3G,[0,wk_,_.Mb,_.rR,_.Mb,_.rR,HJE]);var $ek=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c($ek,_.b5);$ek.prototype.getCommand=function(){return _.h0(this,1)};
var nz6=function(){var u=new $ek;return _.lO(u,1,0)};var r1H=_.fM([0,wk_,_.Mb,[0,_.rR,_.Mb,-1]]);var vzG=new _.J1("s"),GYB=new _.J1("t"),t32=new _.J1("u"),xeH=new _.J1("v"),SuG=function(u,K,l){_.j3.call(this,vzG);this.mediaKey=u;this.photoUrl=K;this.photoSource=l};
_.c(SuG,_.j3);var bJV=function(){_.j3.call(this,GYB)};
_.c(bJV,_.j3);var OJp=function(u){u=u===void 0?!1:u;_.j3.call(this,t32);this.isError=u};
_.c(OJp,_.j3);var c12=function(){_.j3.call(this,xeH)};
_.c(c12,_.j3);var aVi=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,UeV=function(u){if(typeof u=="string"){if(u.charAt(0)==".")return zN6(u.substr(1));if(u.charAt(0)=="["){var K=aVi.exec(u);u=u.indexOf("=")==-1?void 0:K[3];return eN_(K[1],u)}return RN6(u)}return u},zN6=function(u){return function(K){return K.getAttribute&&_.IM(K,u)}},eN_=function(u,K){return function(l){return K!==void 0?l.getAttribute&&l.getAttribute(u)==K:l.hasAttribute&&l.hasAttribute(u)}},RN6=function(u){u=u.toUpperCase();
return function(K){return(K=K.tagName)&&K.toUpperCase()==u}},fVi=function(){return!0};var vp=function(u,K){this.JSC$19324_key_=u;this.JSC$19324_value_=K},GN=function(u){throw Error("hk`"+u.JSC$19324_key_);
},QBH=function(u,K){return new TypeError("ik`"+K+"`"+u.JSC$19324_key_+"`"+u.JSC$19324_value_+"`"+typeof u.JSC$19324_value_)};
vp.prototype.string=function(u){return arguments.length==0?P4i(this):J1E(this,u)};
var J1E=function(u,K){var l;return(l=jBE(u))!=null?l:K},P4i=function(u){var K=jBE(u);
K===null&&GN(u);return K},jBE=function(u){var K=u.JSC$19324_value_;
if(K==null)return null;if(typeof K==="string")return K;throw QBH(u,"string");};
vp.prototype.bool=function(u){if(arguments.length==0){var K=this.optionalBool();K===null&&GN(this)}else{var l;K=(l=this.optionalBool())!=null?l:u}return K};
vp.prototype.optionalBool=function(){var u=this.JSC$19324_value_;if(u==null)return null;if(typeof u==="boolean")return u;if(typeof u==="string"){u=u.toLowerCase();if(u==="true"||u==="1")return!0;if(u==="false"||u==="0")return!1}throw QBH(this,"boolean");};
vp.prototype.number=function(u){if(arguments.length==0){var K=Bxk(this);K===null&&GN(this)}else K=pWi(this,u);return K};
var pWi=function(u,K){var l;return(l=Bxk(u))!=null?l:K},Bxk=function(u){var K=u.JSC$19324_value_;
if(K==null)return null;if(typeof K==="number")return K;if(typeof K==="string"){var l=Number(K);if(!isNaN(l)&&(l!==0||K.trim().length!==0))return l}throw QBH(u,"number");};
vp.prototype.toString=function(){return P4i(this)};
vp.prototype.enum=function(u,K){var l=!0,D=void 0,d;for(d in u){var C=u[d];l&&(l=!1,D=typeof C==="number"?pWi(this,K):J1E(this,K));if(C==D)return D}JSON.stringify(u);return D};
vp.prototype.array=function(u){if(arguments.length==0){var K=iJ2(this);K===null&&GN(this);return K}K=iJ2(this);return K==null?u:K};
var iJ2=function(u){var K=u.JSC$19324_value_;if(K==null)return null;Array.isArray(K)||(typeof K!=="string"?K=[K]:(K=K.trim(),K=K==""?[]:K.split(",").map(function(l){return l.trim()})));
return Tx_(u,K)},Tx_=function(u,K){var l=u.JSC$19324_key_+"[";
return Array.from(K,function(D,d){return new vp(l+d+"]",D)})};
vp.prototype.object=function(u){var K=this.JSC$19324_value_;if(K==null)return u===void 0&&GN(this),u;if(typeof K==="object"&&K.constructor===Object){u={};var l=this.JSC$19324_key_+".",D;for(D in K)u[D]=new vp(l+D,K[D]);return u}throw QBH(this,"object");};var td=function(u){this.list_=wWV(u)},wWV=function(u){if(u instanceof td)u=u.list_;
else if(u[0]instanceof td){for(var K=new Set,l=0;l<u.length;l++)for(var D=_.y(u[l].list_),d=D.next();!d.done;d=D.next())K.add(d.value);u=K}return[].concat(_.Am(u))};
_.I=td.prototype;_.I.each=function(u,K,l){((l===void 0?0:l)?Ih_:_.yx)(this.list_,u,K);return this};
_.I.size=function(){return this.list_.length};
_.I.isEmpty=function(){return this.list_.length===0};
_.I.get=function(u){return this.list_[u]||null};
_.I.el=function(){return this.list_[0]||null};
_.I.map=function(u,K){return _.ZM(this.list_,u,K)};
_.I.equals=function(u){return this===u||_.sB(this.list_,u.list_)};
_.I.first=function(){return this.list_.length==0?null:new x9(this.list_[0])};
_.I.last=function(){return this.list_.length==0?null:new x9(this.list_[this.list_.length-1])};
_.I.find=function(u){var K=[];this.each(function(l){l=l.querySelectorAll(String(u));for(var D=0;D<l.length;D++)K.push(l[D])});
return new td(K)};
_.I.parent=function(){var u=[];this.each(function(K){(K=K.parentElement||null)&&!_.Vn(u,K)&&u.push(K)});
return new td(u)};
_.I.children=function(){var u=[];this.each(function(K){K=_.ER(K);for(var l=0;l<K.length;l++)u.push(K[l])});
return new td(u)};
_.I.filter=function(u){u=_.Of(this.list_,UeV(u));return new td(u)};
_.I.closest=function(u){var K=[],l=UeV(u),D=function(d){return _.Mm(d)&&l(d)};
this.each(function(d){(d=_.LS(d,D,!0))&&!_.Vn(K,d)&&K.push(d)});
return new td(K)};
_.I.next=function(u){return FiV(this,_.hwB,u)};
_.I.prev=function(u){return FiV(this,Vd_,u)};
var FiV=function(u,K,l){var D=[];var d=l?UeV(l):fVi;u.each(function(C){(C=K(C))&&d(C)&&D.push(C)});
return new td(D)};
td.prototype.setClass=function(u){return this.each(function(K){_.CX(K,u)})};
var V3V=function(u,K){return u.each(function(l){_.rY(l,K)})},gzi=function(u,K){return u.each(function(l){_.$o(l,K)})};
td.prototype.toggleClass=function(u,K){return K===!0?V3V(this,u):K===!1?gzi(this,u):this.each(function(l){_.IM(l,u)?_.$o(l,u):_.rY(l,u)})};
td.prototype.setText=function(u){return this.each(function(K){_.La(K,u)})};
var NxG=function(u){u.each(function(K){K.removeAttribute("aria-hidden")})};
td.prototype.getStyle=function(u){if(this.list_.length>0){var K=this.list_[0],l=K.style[_.P_(u)];return typeof l!=="undefined"?l:K.style[_.W_C(K,u)]||""}};
td.prototype.getData=function(u){if(this.list_.length===0)return new vp(u,null);var K=MBo(this.list_[0],u);return new vp(u,K)};
td.prototype.focus=function(u){try{u?this.el().focus(u):this.el().focus()}catch(K){}return this};
td.prototype.click=function(){var u=_.hO(this.el());if(u.createEvent){var K=u.createEvent("MouseEvents");K.initMouseEvent("click",!0,!0,u.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(K)}else u=u.createEventObject(),u.clientX=0,u.clientY=0,u.screenX=0,u.screenY=0,u.altKey=!1,u.ctrlKey=!1,u.shiftKey=!1,u.button=0,this.el().fireEvent("onclick",u)};
var SM=function(u,K,l,D){function d(M,q,v){var G=q;q&&q.parentNode&&(G=q.cloneNode(!0));M(G,v)}
D=D===void 0?!1:D;if(u.list_.length==1){var C=u.list_[0],W=function(M){return K(M,C)};
l instanceof td?l.each(W,void 0,D):Array.isArray(l)?(D?Ih_:_.yx)(l,W):W(l);return u}return u.each(function(M){l instanceof td?l.each(function(q){d(K,q,M)}):Array.isArray(l)?_.yx(l,function(q){d(K,q,M)}):d(K,l,M)})};
_.I=td.prototype;_.I.append=function(u){return SM(this,function(K,l){K&&l.appendChild(K)},u)};
_.I.appendTo=function(u){(new td([u])).append(this);return this};
_.I.remove=function(){return SM(this,function(u,K){_.Jq(K)},null)};
_.I.empty=function(){return SM(this,function(u,K){_.XV(K)},null)};
_.I.after=function(u,K){return SM(this,function(l,D){l&&_.hy(l,D)},u,!(K===void 0||K))};
_.I.before=function(u){return SM(this,function(K,l){K&&_.mI(K,l)},u)};
_.I.replaceWith=function(u){return SM(this,function(K,l){K&&_.ARw(K,l)},u)};
_.I.toggle=function(u){return this.each(function(K){_.CI(K,u)})};
_.I.show=function(){return this.toggle(!0)};
_.I.hide=function(){return this.toggle(!1)};
_.I.trigger=function(u,K,l,D){return kYV(this,u,K,l,D)};
var kYV=function(u,K,l,D,d){return u.each(function(C){_.Cnw(_.hO(C)).triggerWizEventInternal(C,K,l,D,d)})},x9=function(u,K){u instanceof td&&(K=u.list_,u=null);
this.list_=wWV(u!=null?[u]:K)};
_.Sa(x9,td);_.I=x9.prototype;_.I.children=function(){return new td(Array.prototype.slice.call(_.ER(this.list_[0])))};
_.I.each=function(u,K){u.call(K,this.list_[0],0);return this};
_.I.size=function(){return 1};
_.I.el=function(){return this.list_[0]};
_.I.first=function(){return this};var bo=function(u,K){K=K===void 0?window:K;this.hostId=u;this.JSC$19335_win=K;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$19335_previousHtmlOverscroll=this.JSC$19335_previousBodyOverscroll=this.JSC$19335_previousBodyOverflow="";this.eventTarget=new _.wx;this.JSC$19335_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
A1B=function(u){var K=ZJp(ZJp(ZJp(new YuI(78),"po"),"hppp"),"hhc");
K.authUser=Number(_.E3("SESSION_INDEX","0"));K.colorScheme=u;return K};
bo.prototype.getOrigin=function(){return this.origin?this.origin:_.G2(_.vN(_.rO(new _.W0,this.JSC$19335_win.location.protocol),this.JSC$19335_win.location.hostname),this.JSC$19335_win.location.port).toString()};
bo.prototype.getTargetOrigin=function(){return _.G2(_.vN(_.rO(new _.W0,this.scheme),this.domain),this.port)};
bo.prototype.preloadIframe=function(u){var K=this;if(this.iframeLoadPromise===void 0){var l=document.createElement("iframe");this.iframe=l;owV(l,u);this.iframeLoadPromise=new Promise(function(D,d){var C=!1,W=function(M){M.stopPropagation();l.removeEventListener("error",W);l.removeEventListener("securitypolicyviolation",W);d(Error("jk",{cause:M}))};
l.addEventListener("error",W);l.addEventListener("securitypolicyviolation",W);setTimeout(function(){C||d(Error("kk"))},3E4);
XWV(K,l,function(){C=!0;l.removeEventListener("error",W);l.removeEventListener("securitypolicyviolation",W);D()})});
mek(this);u=this.getTargetOrigin().toString();l.setAttribute("allow","camera "+u+"; display-capture "+u);this.parentElement.appendChild(l)}return this.iframeLoadPromise};
var Lik=function(u,K){var l,D;return _.H(function(d){if(d.nextAddress==1)return l=KG_(getComputedStyle(u.parentElement).direction==="rtl"),u.parentElement.appendChild(l),document.activeElement instanceof HTMLElement&&(u.elementToFocusAfterClose=document.activeElement),_.Qg(d,2),d.yield(u.preloadIframe(K),4);if(d.nextAddress!=2){u.parentElement.removeChild(l);u.JSC$19335_previousBodyOverflow=u.parentElement.style.overflow;u.JSC$19335_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
u.JSC$19335_previousBodyOverscroll=u.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";u.parentElement.style.overscrollBehavior="contain";u.parentElement.style.overflow="hidden";var C=u.iframe;C.style.bottom="0";C.style.border="none";C.style.height="100%";C.style.left="0";C.style.position=u.iframePosition;C.style.right="0";C.style.top="0";C.style.width="100%";C.style.zIndex="2202";C.setAttribute("aria-hidden","false");C.setAttribute("aria-modal","true");
u.opened=!0;hN_(u);return _.I$(d,0)}D=_.iY(d);u.parentElement.removeChild(l);IJk(u.isDarkTheme());EzE(u,!1);throw Error("lk",{cause:D});})},EzE=function(u,K){K=K===void 0?!0:K;
u.iframe!==void 0&&(ux2(u),document.documentElement.style.overscrollBehavior=u.JSC$19335_previousHtmlOverscroll,u.parentElement.style.overscrollBehavior=u.JSC$19335_previousBodyOverscroll,u.parentElement.style.overflow=u.JSC$19335_previousBodyOverflow,u.elementToFocusAfterClose!==void 0&&(u.elementToFocusAfterClose.focus(),u.elementToFocusAfterClose=void 0),K?mek(u):(u.parentElement.removeChild(u.iframe),u.iframe=void 0,u.iframeLoadPromise=void 0,u.mainChannel=void 0),u.opened=!1)},ux2=function(u){u.backgroundElementsAriaHiddenIsNull&&
(NxG(u.backgroundElementsAriaHiddenIsNull),u.backgroundElementsAriaHiddenIsNull=void 0);
u.backgroundElementsAriaHiddenIsFalse&&(u.backgroundElementsAriaHiddenIsFalse.each(function(K){K.setAttribute("aria-hidden","false")}),u.backgroundElementsAriaHiddenIsFalse=void 0);
u.backgroundElementsWithoutInert&&(u.backgroundElementsWithoutInert.each(function(K){K.removeAttribute("inert")}),u.backgroundElementsWithoutInert=void 0)},hN_=function(u){u.backgroundElementsAriaHiddenIsNull=(new x9(u.iframe.parentElement)).children().filter(function(K){return K.getAttribute("aria-hidden")===null&&K!==u.iframe});
u.backgroundElementsAriaHiddenIsNull.each(function(K){K.setAttribute("aria-hidden","true")});
u.backgroundElementsAriaHiddenIsFalse=(new x9(u.iframe.parentElement)).children().filter(function(K){return K.getAttribute("aria-hidden")==="false"&&K!==u.iframe});
u.backgroundElementsAriaHiddenIsFalse.each(function(K){K.setAttribute("aria-hidden","true")});
u.backgroundElementsWithoutInert=(new x9(u.iframe.parentElement)).children().filter(function(K){return!K.hasAttribute("inert")&&K!==u.iframe});
u.backgroundElementsWithoutInert.each(function(K){K.setAttribute("inert","true")})},mek=function(u){u=u.iframe;
u.style.bottom="-1000px";u.style.position="fixed";u.style.right="-1000px";u.style.border="";u.style.height="";u.style.left="";u.style.top="";u.style.width="";u.style.zIndex="";u.setAttribute("aria-hidden","true");u.setAttribute("aria-modal","false")};
bo.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var YuI=function(u,K){bo.call(this,y1I[u],K);this.options=[];this.style=""};
_.c(YuI,bo);var KmB=function(u){u.style="youtube";return u},lCk=function(u,K){u.eventTarget.listen(t32,K);
return u},DiG=function(u,K){u.eventTarget.listen(vzG,K);
return u},ZJp=function(u,K){u.options.push(K);
return u},dik=function(u){var K=[u.getOrigin()];
u.ancestorOrigins&&K.push.apply(K,_.Am(u.ancestorOrigins));var l=new _.W0(u.JSC$19335_win.location.href),D=u.startUrl?u.startUrl:u.options.includes("po")?"profile-picture/art":"profile-picture";K=U1(_.x4(u.getTargetOrigin(),D),"origin",K);u.startUrl&&_.dp(K,"startPath",u.startUrl);u.authUser>0&&_.dp(K,"authuser",u.authUser);u.pageId!==void 0&&_.dp(K,"pageId",u.pageId);_.dp(K,"hostId",u.hostId);u.jsMode!==void 0&&_.dp(K,"jsmode",u.jsMode);u.rectangleRatio!==void 0&&_.dp(K,"rectangleRatio",u.rectangleRatio);
u.options.length>0&&_.dp(K,"opts",u.options.join(","));try{for(var d=_.y(["utm_source","utm_medium","utm_campaign","utm_content"]),C=d.next();!C.done;C=d.next()){var W=C.value;_.D7(l,W)&&_.dp(K,W,_.D7(l,W))}var M,q=(M=u.hl)!=null?M:_.D7(l,"hl");q!==void 0&&_.dp(K,"hl",q)}catch(v){if(!(v instanceof URIError))throw v;}u.colorScheme&&_.dp(K,"theme",u.colorScheme);u.style&&_.dp(K,"style",u.style);return K},CA6=function(u,K){u.mainChannel=_.ty({destination:u.JSC$19335_win,
iframe:K,origin:u.getTargetOrigin().toString(),channelName:"ow",onMessage:function(l){l=quV(l.data);if(K===u.iframe)switch(_.h0(l,1)){case 1:u.eventTarget.dispatchEvent(new OJp);EzE(u);break;case 2:u.eventTarget.dispatchEvent(new SuG(_.A0(l,4),_.A0(l,2),_.h0(l,5),_.fV(l,WiE,6)));break;case 0:var D;u.eventTarget.dispatchEvent(new bJV(_.A0(l,2),(D=_.h0(l,3))!=null?D:0));break;case 3:u.eventTarget.dispatchEvent(new OJp(!0));EzE(u,!1);break;case 4:u.eventTarget.dispatchEvent(new c12)}}})},XWV=function(u,
K,l){_.ty({destination:u.JSC$19335_win,
iframe:K,origin:_.G2(_.vN(_.rO(new _.W0,u.scheme),u.domain),u.port).toString(),channelName:"owi",onMessage:function(D){K===u.iframe&&(l!==void 0&&l(),CA6(u,K),u.opened&&u.mainChannel.send(r1H(nz6())),D.reply(),XWV(u,K))}})};
YuI.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?bo.prototype.preloadIframe.call(this,dik(this).toString()):this.iframeLoadPromise};
YuI.prototype.openPicker=function(u){var K=this;return _.H(function(l){if(l.nextAddress==1)return K.startUrl=u?u:K.options.includes("po")?"profile-picture/art":"profile-picture",l.yield(Lik(K,dik(K).toString()),2);if(K.mainChannel){var D=K.mainChannel,d=D.send;var C=nz6();C=_.Tj(C,2,K.startUrl);d.call(D,r1H(C))}_.TG(l)})};var ICI=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(ICI,_.b5);_.I=ICI.prototype;_.I.getSize=function(){return pv(this,1)};
_.I.setSize=function(u){return _.Ka(this,1,u)};
_.I.getWidth=function(){return pv(this,12)};
_.I.getHeight=function(){return pv(this,13)};
_.I.setCenterCrop=function(u){return _.OQ(this,20,u)};
_.I.getHtml=function(){return _.k2(this,4)};
_.I.getToken=function(){return _.Qf(this,24)};
_.I.setToken=function(u){return _.Tj(this,24,u)};
_.I.getBackgroundColor=function(){return pv(this,87)};
_.I.hasBackgroundColor=function(){return _.cE(_.ja(this,87))!=null};
_.I.getStoryboardLevel=function(){return pv(this,109)};var Oz=function(u){this.JSC$19343_value_=void 0;this.childNodes_={};if(u){var K=_.V9R(u);u=_.nX(u);for(var l=0;l<K.length;l++)this.set(K[l],u[l])}};
Oz.prototype.set=function(u,K){y5_(this,u,K,!1)};
Oz.prototype.add=function(u,K){y5_(this,u,K,!0)};
var y5_=function(u,K,l,D){for(var d=0;d<K.length;d++){var C=K.charAt(d);u.childNodes_[C]||(u.childNodes_[C]=new Oz);u=u.childNodes_[C]}if(D&&u.JSC$19343_value_!==void 0)throw Error("mk`"+K);u.JSC$19343_value_=l},sMp=function(u,K){for(var l=0;l<K.length;l++)if(u=u.childNodes_[K.charAt(l)],!u)return;
return u};
Oz.prototype.get=function(u){return(u=sMp(this,u))?u.JSC$19343_value_:void 0};
Oz.prototype.getValues=function(){var u=[];o4_(this,u);return u};
var o4_=function(u,K){u.JSC$19343_value_!==void 0&&K.push(u.JSC$19343_value_);for(var l in u.childNodes_)o4_(u.childNodes_[l],K)};
Oz.prototype.getKeys=function(u){var K=[];if(u){for(var l=this,D=0;D<u.length;D++){var d=u.charAt(D);if(!l.childNodes_[d])return[];l=l.childNodes_[d]}Wm_(l,u,K)}else Wm_(this,"",K);return K};
var Wm_=function(u,K,l){u.JSC$19343_value_!==void 0&&l.push(K);for(var D in u.childNodes_)Wm_(u.childNodes_[D],K+D,l)};
_.I=Oz.prototype;_.I.containsKey=function(u){return this.get(u)!==void 0};
_.I.containsValue=function(u){if(this.JSC$19343_value_===u)return!0;for(var K in this.childNodes_)if(this.childNodes_[K].containsValue(u))return!0;return!1};
_.I.clear=function(){this.childNodes_={};this.JSC$19343_value_=void 0};
_.I.remove=function(u){for(var K=this,l=[],D=0;D<u.length;D++){var d=u.charAt(D);if(!K.childNodes_[d])throw Error("nk`"+u);l.push([K,d]);K=K.childNodes_[d]}u=K.JSC$19343_value_;for(delete K.JSC$19343_value_;l.length>0;)if(D=l.pop(),K=D[0],D=D[1],K.childNodes_[D].isEmpty())delete K.childNodes_[D];else break;return u};
_.I.clone=function(){return new Oz(this)};
_.I.getCount=function(){return Zzp(this.getValues())};
_.I.isEmpty=function(){return this.JSC$19343_value_===void 0&&_.k$.isEmpty(this.childNodes_)};var $Kp=function(){if(!HXp){var u=HXp=new Oz,K;for(K in MSi)u.add(K,MSi[K])}},HXp,cp=function(u,K){this.types=u;
this.setters=K},MSi={a:new cp([3,
0],[function(u,K){_.OQ(u,21,K)},
function(u,K){_.Ka(u,56,K)}]),
al:new cp([3],[function(u,K){_.OQ(u,74,K)}]),
b:new cp([3,0],[function(u,K){_.OQ(u,23,K)},
function(u,K){_.Ka(u,38,K)}]),
ba:new cp([0],[function(u,K){_.Ka(u,85,K)}]),
bc:new cp([0],[function(u,K){_.Ka(u,87,K)}]),
br:new cp([0],[function(u,K){_.Ka(u,86,K)}]),
c:new cp([3,0],[function(u,K){_.OQ(u,2,K)},
function(u,K){_.Ka(u,39,K)}]),
cc:new cp([3],[function(u,K){_.OQ(u,51,K)}]),
ci:new cp([3],[function(u,K){_.OQ(u,32,K)}]),
ckm:new cp([3],[function(u,K){_.OQ(u,104,K)}]),
cp:new cp([0],[function(u,K){_.Ka(u,92,K)}]),
cr:new cp([3],[function(u,K){_.OQ(u,108,K)}]),
cv:new cp([0],[function(u,K){_.Ka(u,94,K)}]),
d:new cp([3],[function(u,K){_.OQ(u,3,K)}]),
dc:new cp([5],[function(u,K){_.Tj(u,99,K)}]),
df:new cp([3],[function(u,K){_.OQ(u,80,K)}]),
dv:new cp([3],[function(u,K){_.OQ(u,90,K)}]),
e:new cp([0],[function(u,K){_.Ka(u,15,K)}]),
em:new cp([0],[function(u,K){_.Ka(u,107,K)}]),
f:new cp([4],[function(u,K){_.Tj(u,16,K)}]),
fg:new cp([3],[function(u,K){_.OQ(u,34,K)}]),
fh:new cp([3],[function(u,K){_.OQ(u,30,K)}]),
fm:new cp([3],[function(u,K){_.OQ(u,84,K)}]),
fo:new cp([2],[function(u,K){_.SG(u,79,_.Mp(K))}]),
ft:new cp([3],[function(u,K){_.OQ(u,50,K)}]),
fv:new cp([3],[function(u,K){_.OQ(u,31,K)}]),
g:new cp([3],[function(u,K){_.OQ(u,14,K)}]),
gce:new cp([4],[function(u,K){_.Tj(u,112,K)}]),
gd:new cp([3],[function(u,K){_.OQ(u,83,K)}]),
gm:new cp([3],[function(u,K){_.OQ(u,105,K)}]),
h:new cp([3,0],[function(u,K){_.OQ(u,4,K)},
function(u,K){_.Ka(u,13,K)}]),
i:new cp([3],[function(u,K){_.OQ(u,22,K)}]),
ic:new cp([0],[function(u,K){_.Ka(u,71,K)}]),
id:new cp([3],[function(u,K){_.OQ(u,70,K)}]),
il:new cp([3],[function(u,K){_.OQ(u,96,K)}]),
ip:new cp([3],[function(u,K){_.OQ(u,54,K)}]),
iv:new cp([0],[function(u,K){_.iP(u,75,K)}]),
j:new cp([1],[function(u,K){K=K==null?K:of_(K);_.SG(u,29,K)}]),
k:new cp([3,0],[function(u,K){_.OQ(u,17,K)},
function(u,K){_.Ka(u,42,K)}]),
l:new cp([0],[function(u,K){_.Ka(u,44,K)}]),
lf:new cp([3],[function(u,K){_.OQ(u,65,K)}]),
lo:new cp([3],[function(u,K){_.OQ(u,97,K)}]),
m:new cp([0],[function(u,K){_.Ka(u,63,K)}]),
md:new cp([3],[function(u,K){_.OQ(u,91,K)}]),
mm:new cp([4],[function(u,K){_.Tj(u,81,K)}]),
mo:new cp([3],[function(u,K){_.OQ(u,73,K)}]),
mp:new cp([0],[function(u,K){_.Ka(u,115,K)}]),
mv:new cp([3],[function(u,K){_.OQ(u,66,K)}]),
n:new cp([3],[function(u,K){u.setCenterCrop(K)}]),
nc:new cp([3],[function(u,K){_.OQ(u,55,K)}]),
nd:new cp([3],[function(u,K){_.OQ(u,53,K)}]),
ng:new cp([3],[function(u,K){_.OQ(u,95,K)}]),
ngm:new cp([3],[function(u,K){_.OQ(u,106,K)}]),
no:new cp([3],[function(u,K){_.OQ(u,37,K)}]),
ns:new cp([3],[function(u,K){_.OQ(u,40,K)}]),
nt0:new cp([4],[function(u,K){_.Tj(u,36,K)}]),
ntm:new cp([3],[function(u,K){_.OQ(u,114,K)}]),
nu:new cp([3],[function(u,K){_.OQ(u,46,K)}]),
nw:new cp([3],[function(u,K){_.OQ(u,48,K)}]),
o:new cp([1,3],[function(u,K){K=K==null?K:of_(K);_.SG(u,7,K)},
function(u,K){_.OQ(u,27,K)}]),
p:new cp([3,0],[function(u,K){_.OQ(u,19,K)},
function(u,K){_.Ka(u,43,K)}]),
pa:new cp([3],[function(u,K){_.OQ(u,61,K)}]),
pc:new cp([0],[function(u,K){_.Ka(u,88,K)}]),
pd:new cp([3],[function(u,K){_.OQ(u,60,K)}]),
pf:new cp([3],[function(u,K){_.OQ(u,67,K)}]),
pg:new cp([3],[function(u,K){_.OQ(u,72,K)}]),
pi:new cp([2],[function(u,K){_.SG(u,76,_.Mp(K))}]),
pp:new cp([3],[function(u,K){_.OQ(u,52,K)}]),
pt:new cp([4],[function(u,K){_.Tj(u,111,K)}]),
q:new cp([4],[function(u,K){_.Tj(u,28,K)}]),
r:new cp([3,0],[function(u,K){_.OQ(u,6,K)},
function(u,K){_.Ka(u,26,K)}]),
ra:new cp([3],[function(u,K){_.OQ(u,103,K)}]),
rf:new cp([3],[function(u,K){_.OQ(u,100,K)}]),
rg:new cp([3],[function(u,K){_.OQ(u,59,K)}]),
rh:new cp([3],[function(u,K){_.OQ(u,49,K)}]),
rj:new cp([3],[function(u,K){_.OQ(u,57,K)}]),
ro:new cp([2],[function(u,K){_.SG(u,78,_.Mp(K))}]),
rp:new cp([3],[function(u,K){_.OQ(u,58,K)}]),
rw:new cp([3],[function(u,K){_.OQ(u,35,K)}]),
rwa:new cp([3],[function(u,K){_.OQ(u,64,K)}]),
rwu:new cp([3],[function(u,K){_.OQ(u,41,K)}]),
s:new cp([3,0],[function(u,K){_.OQ(u,33,K)},
function(u,K){u.setSize(K)}]),
sb:new cp([0],[function(u,K){_.Ka(u,110,K)}]),
sc:new cp([0],[function(u,K){_.Ka(u,89,K)}]),
sg:new cp([3],[function(u,K){_.OQ(u,82,K)}]),
sl:new cp([0],[function(u,K){_.Ka(u,109,K)}]),
sm:new cp([3],[function(u,K){_.OQ(u,93,K)}]),
t:new cp([4],[function(u,K){u.setToken(K)}]),
tm:new cp([3],[function(u,K){_.OQ(u,113,K)}]),
u:new cp([3],[function(u,K){_.OQ(u,18,K)}]),
ut:new cp([3],[function(u,K){_.OQ(u,45,K)}]),
v:new cp([0],[function(u,K){_.Ka(u,62,K)}]),
vb:new cp([0],[function(u,K){_.iP(u,68,K)}]),
vf:new cp([4],[function(u,K){_.Tj(u,102,K)}]),
vl:new cp([0],[function(u,K){_.iP(u,69,K)}]),
vm:new cp([3],[function(u,K){_.OQ(u,98,K)}]),
w:new cp([0],[function(u,K){_.Ka(u,12,K)}]),
x:new cp([0],[function(u,K){_.Ka(u,9,K)}]),
y:new cp([0],[function(u,K){_.Ka(u,10,K)}]),
ya:new cp([2],[function(u,K){_.SG(u,77,_.Mp(K))}]),
z:new cp([0],[function(u,K){_.Ka(u,11,K)}])};
$Kp.prototype.parse=function(u){var K=new ICI,l=new ICI;if(u=="")u=!0;else{u=u.split("-");for(var D=!0,d=0;d<u.length;d++){var C=u[d];if(C.length==0)D=!1;else{var W=C,M=!1;var q=W;var v=W.charAt(0);v!=v.toLowerCase()&&(M=!0,q=W.charAt(0).toLowerCase()+W.substring(1));var G=HXp;for(v=1;v<=q.length;++v){var t=G,x=q.substring(0,v);if(x.length==0?t.isEmpty():!sMp(t,x))break}q=v==1?null:(q=G.get(q.substring(0,v-1)))?{option:W.substring(0,v-1),value:W.substring(v-1),signed:M,attributes:q}:null;if(q){W=
[];M=[];v=!1;for(G=0;G<q.attributes.types.length;G++){t=q.attributes.types[G];var O=q.value;x=d;if(q.signed&&t==1)for(var a=O.length;a<12&&x<u.length-1;)O+="-"+u[x+1],a=O.length,++x;else if(t==2)for(;x<u.length-1&&u[x+1].match(/^[\d\.]/);)O+="-"+u[x+1],++x;a=q.attributes.setters[G];O=qgo(this,t)(q.option,O,K,l,a);if(O===null){v=!0;d=x;break}else W.push(t),M.push(O)}if(!v)for(q=0;q<M.length;q++)G=W[q],O=M[q],$iG(this,G)(C,O);D=D&&v}else D=!1}}u=D}return new n4_(K,l,u)};
var a1=function(u,K,l,D,d,C){d(l,K);u=u.charAt(0);C=C(u==u.toUpperCase());d(D,C)};
_.I=$Kp.prototype;_.I.parseAndSetIntOption_=function(u,K,l,D,d){if(K=="")return 0;isFinite(K)&&(K=String(K));K=typeof K==="string"?/^\s*-?0x/i.test(K)?parseInt(K,16):parseInt(K,10):NaN;if(isNaN(K))return 1;a1(u,K,l,D,d,Number);return null};
_.I.logIntParseError_=function(){};
_.I.parseAndSetFloatOption_=function(u,K,l,D,d){if(K=="")return 0;var C=Number(K);K=C==0&&_.oR(K)?NaN:C;if(isNaN(K))return 1;a1(u,K,l,D,d,Number);return null};
_.I.logFloatParseError_=function(){};
_.I.parseAndSetBoolOption_=function(u,K,l,D,d){if(K!="")return 2;a1(u,!0,l,D,d,Boolean);return null};
_.I.logBoolParseError_=function(){};
_.I.parseAndSetStringOption_=function(u,K,l,D,d){if(K=="")return 0;a1(u,K,l,D,d,function(C){return C?"1":""});
return null};
_.I.logStringParseError_=function(){};
_.I.parseAndSetUint64Base64Option_=function(u,K,l,D,d){if(K=="")return 0;a1(u,K,l,D,d,function(C){return C?1:0});
return null};
var qgo=function(u,K){switch(K){case 0:return(0,_.wB)(u.parseAndSetIntOption_,u);case 2:return(0,_.wB)(u.parseAndSetFloatOption_,u);case 3:return(0,_.wB)(u.parseAndSetBoolOption_,u);case 4:return(0,_.wB)(u.parseAndSetStringOption_,u);case 1:return(0,_.wB)(u.parseAndSetUint64Base64Option_,u);default:return function(){}}},$iG=function(u,K){switch(K){case 0:return(0,_.wB)(u.logIntParseError_,u);
case 2:return(0,_.wB)(u.logFloatParseError_,u);case 3:return(0,_.wB)(u.logBoolParseError_,u);case 4:case 1:return(0,_.wB)(u.logStringParseError_,u);default:return function(){}}},n4_=function(u,K,l){this.valueProto_=u;
this.signatureFlagProto_=K;this.JSC$19355_valid_=l};
n4_.prototype.isValid=function(){return this.JSC$19355_valid_};var WGE=function(u){this.JSC$19356_parser_=null;this.JSC$19356_components_=[];this.JSC$19356_parsedOptions_=null;r5G(this,u)},v4G=function(u){u.JSC$19356_parser_==null&&(u.JSC$19356_parser_=new $Kp);
return u.JSC$19356_parser_},r5G=function(u,K){u.JSC$19356_parsedOptions_=K?typeof K==="string"?v4G(u).parse(K):K:v4G(u).parse("")},zN=function(u,K){return u==K?!1:!0};
_.I=WGE.prototype;_.I.JSC$19358_setCrop=function(u){u=u||void 0;var K=this.JSC$19356_parsedOptions_,l=K.valueProto_;zN(u,_.k2(l,2),_.k2(K.signatureFlagProto_,2))&&_.OQ(l,2,u);return this};
_.I.JSC$19358_setCircleCrop=function(u){u=u||void 0;var K=this.JSC$19356_parsedOptions_,l=K.valueProto_;zN(u,Bg(l,51),Bg(K.signatureFlagProto_,51))&&_.OQ(l,51,u);return this};
_.I.JSC$19358_setImageCrop=function(u){u=u||void 0;var K=this.JSC$19356_parsedOptions_,l=K.valueProto_;zN(u,Bg(l,32),Bg(K.signatureFlagProto_,32))&&_.OQ(l,32,u);return this};
_.I.JSC$19358_setHeight=function(u){var K=this.JSC$19356_parsedOptions_,l=K.valueProto_;zN(u,l.getHeight(),K.signatureFlagProto_.getHeight())&&_.Ka(l,13,u);return this};
_.I.setCenterCrop=function(u){u=u||void 0;var K=this.JSC$19356_parsedOptions_,l=K.valueProto_;zN(u,_.k2(l,20),_.k2(K.signatureFlagProto_,20))&&l.setCenterCrop(u);return this};
_.I.JSC$19358_setSmartCrop=function(u){u=u||void 0;var K=this.JSC$19356_parsedOptions_,l=K.valueProto_;zN(u,_.k2(l,19),_.k2(K.signatureFlagProto_,19))&&_.OQ(l,19,u);return this};
_.I.JSC$19358_setPad=function(u){u=u||void 0;var K=this.JSC$19356_parsedOptions_,l=K.valueProto_;zN(u,Bg(l,60),Bg(K.signatureFlagProto_,60))&&_.OQ(l,60,u);return this};
_.I.JSC$19358_setSmartCropUseFace=function(u){u=u||void 0;var K=this.JSC$19356_parsedOptions_,l=K.valueProto_;zN(u,_.k2(l,67),_.k2(K.signatureFlagProto_,67))&&_.OQ(l,67,u);return this};
_.I.JSC$19358_setSmartCropNoClip=function(u){u=u||void 0;var K=this.JSC$19356_parsedOptions_,l=K.valueProto_;zN(u,_.k2(l,52),_.k2(K.signatureFlagProto_,52))&&_.OQ(l,52,u);return this};
_.I.setSize=function(u){var K=this.JSC$19356_parsedOptions_,l=K.valueProto_;zN(u,l.getSize(),K.signatureFlagProto_.getSize())&&l.setSize(u);return this};
_.I.setToken=function(u){u=u||void 0;var K=this.JSC$19356_parsedOptions_,l=K.valueProto_;zN(u,l.getToken(),K.signatureFlagProto_.getToken())&&l.setToken(u);return this};
_.I.JSC$19358_setWidth=function(u){var K=this.JSC$19356_parsedOptions_,l=K.valueProto_;zN(u,l.getWidth(),K.signatureFlagProto_.getWidth())&&_.Ka(l,12,u);return this};
_.I.clearOptions=function(){r5G(this,"");return this};
_.I.build=function(){this.JSC$19356_components_.length=0;var u=this.JSC$19356_parsedOptions_,K=u.valueProto_;u=u.signatureFlagProto_;eM(this,"s",K.getSize(),u.getSize());eM(this,"w",K.getWidth(),u.getWidth());R1(this,"c",_.k2(K,2),_.k2(u,2));R1(this,"d",_.k2(K,3),_.k2(u,3));eM(this,"h",K.getHeight(),u.getHeight());R1(this,"s",Bg(K,33),Bg(u,33));R1(this,"h",K.getHtml(),u.getHtml());R1(this,"p",_.k2(K,19),_.k2(u,19));R1(this,"pp",_.k2(K,52),_.k2(u,52));R1(this,"pf",_.k2(K,67),_.k2(u,67));R1(this,"n",
_.k2(K,20),_.k2(u,20));eM(this,"r",pv(K,26),pv(u,26));R1(this,"r",_.k2(K,6),_.k2(u,6));R1(this,"o",Bg(K,27),Bg(u,27));var l=_.Na(K,7,_.J0);Uz(this,"o",l,_.Na(u,7,_.J0));l=_.Na(K,29,_.J0);Uz(this,"j",l,_.Na(u,29,_.J0));eM(this,"x",pv(K,9),pv(u,9));eM(this,"y",pv(K,10),pv(u,10));eM(this,"z",pv(K,11),pv(u,11));R1(this,"g",_.k2(K,14),_.k2(u,14));eM(this,"e",pv(K,15),pv(u,15));Uz(this,"f",_.Qf(K,16),_.Qf(u,16));R1(this,"k",Bg(K,17),Bg(u,17));R1(this,"u",Bg(K,18),!0);R1(this,"ut",Bg(K,45),!0);R1(this,"i",
Bg(K,22),!0);R1(this,"a",Bg(K,21),Bg(u,21));R1(this,"b",_.k2(K,23),_.k2(u,23));eM(this,"b",pv(K,38),pv(u,38));eM(this,"c",pv(K,39),pv(u,39),16,8);Uz(this,"q",_.Qf(K,28),_.Qf(u,28));R1(this,"fh",Bg(K,30),Bg(u,30));R1(this,"fv",Bg(K,31),Bg(u,31));R1(this,"fg",_.k2(K,34),_.k2(u,34));R1(this,"ci",Bg(K,32),Bg(u,32));Uz(this,"t",K.getToken(),u.getToken());Uz(this,"nt0",_.Qf(K,36),_.Qf(u,36));R1(this,"rw",_.k2(K,35),_.k2(u,35));R1(this,"rwu",_.k2(K,41),_.k2(u,41));R1(this,"rwa",_.k2(K,64),_.k2(u,64));R1(this,
"nw",_.k2(K,48),_.k2(u,48));R1(this,"rh",_.k2(K,49),_.k2(u,49));R1(this,"no",_.k2(K,37),_.k2(u,37));R1(this,"ns",Bg(K,40),Bg(u,40));eM(this,"k",pv(K,42),pv(u,42));eM(this,"p",pv(K,43),pv(u,43));eM(this,"l",pv(K,44),pv(u,44));eM(this,"v",pv(K,62),pv(u,62));R1(this,"nu",Bg(K,46),Bg(u,46));R1(this,"ft",Bg(K,50),Bg(u,50));R1(this,"cc",Bg(K,51),Bg(u,51));R1(this,"nd",Bg(K,53),Bg(u,53));R1(this,"ip",Bg(K,54),Bg(u,54));R1(this,"nc",Bg(K,55),Bg(u,55));eM(this,"a",pv(K,56),pv(u,56));R1(this,"rj",Bg(K,57),
Bg(u,57));R1(this,"rp",Bg(K,58),Bg(u,58));R1(this,"rg",Bg(K,59),Bg(u,59));R1(this,"pd",Bg(K,60),Bg(u,60));R1(this,"pa",Bg(K,61),Bg(u,61));eM(this,"m",pv(K,63),pv(u,63));eM(this,"vb",i9(K,68),i9(u,68));eM(this,"vl",i9(K,69),i9(u,69));R1(this,"lf",Bg(K,65),Bg(u,65));R1(this,"mv",Bg(K,66),Bg(u,66));R1(this,"id",Bg(K,70),Bg(u,70));eM(this,"ic",pv(K,71),!0);R1(this,"pg",_.k2(K,72),_.k2(u,72));R1(this,"mo",Bg(K,73),Bg(u,73));R1(this,"al",Bg(K,74),Bg(u,74));eM(this,"iv",i9(K,75),i9(u,75));eM(this,"pi",T4(K,
76),T4(u,76));eM(this,"ya",T4(K,77),T4(u,77));eM(this,"ro",T4(K,78),T4(u,78));eM(this,"fo",T4(K,79),T4(u,79));R1(this,"df",Bg(K,80),Bg(u,80));Uz(this,"mm",_.Qf(K,81),_.Qf(u,81));R1(this,"sg",Bg(K,82),Bg(u,82));R1(this,"gd",Bg(K,83),Bg(u,83));R1(this,"fm",Bg(K,84),Bg(u,84));eM(this,"ba",pv(K,85),pv(u,85));eM(this,"br",pv(K,86),pv(u,86));eM(this,"bc",K.getBackgroundColor(),u.getBackgroundColor(),16,8);eM(this,"pc",pv(K,88),pv(u,88),16,8);eM(this,"sc",pv(K,89),pv(u,89),16,8);R1(this,"dv",Bg(K,90),Bg(u,
90));R1(this,"md",Bg(K,91),Bg(u,91));eM(this,"cp",pv(K,92),pv(u,92));R1(this,"sm",Bg(K,93),Bg(u,93));eM(this,"cv",pv(K,94),pv(u,94));R1(this,"ng",Bg(K,95),Bg(u,95));R1(this,"il",Bg(K,96),Bg(u,96));R1(this,"lo",Bg(K,97),Bg(u,97));R1(this,"vm",Bg(K,98),Bg(u,98));Uz(this,"dc",_.Qf(K,99),_.Qf(u,99));R1(this,"rf",Bg(K,100),Bg(u,100));Uz(this,"vf",_.Qf(K,102),_.Qf(u,102));R1(this,"ra",_.k2(K,103),_.k2(u,103));R1(this,"ckm",Bg(K,104),Bg(u,104));R1(this,"gm",Bg(K,105),Bg(u,105));R1(this,"ngm",Bg(K,106),Bg(u,
106));eM(this,"em",pv(K,107),pv(u,107));R1(this,"cr",Bg(K,108),Bg(u,108));eM(this,"sl",K.getStoryboardLevel(),u.getStoryboardLevel());eM(this,"sb",pv(K,110),pv(u,110));Uz(this,"pt",_.Qf(K,111),_.Qf(u,111));Uz(this,"gce",_.Qf(K,112),_.Qf(u,112));R1(this,"tm",Bg(K,113),Bg(u,113));R1(this,"ntm",Bg(K,114),Bg(u,114));eM(this,"mp",pv(K,115),pv(u,115));return this.JSC$19356_components_.join("-")};
var eM=function(u,K,l,D,d,C){if(l!=null){var W=d==void 0||d!=10&&d!=16?10:d;l=Number(l).toString(W);d=new e52;d.append(W==16?"0x":"");W=d.append;C==void 0?C="":(C-=l.length,C=C<=0?"":(0,_.JHN)("0",C));W.call(d,C);d.append(l);G2B(u,K,d.toString(),!!Number(D))}},R1=function(u,K,l,D){l&&G2B(u,K,"",!!D)},Uz=function(u,K,l,D){l&&G2B(u,K,String(l),!!Number(D))},G2B=function(u,K,l,D){D&&(K=K.charAt(0).toUpperCase()+K.substring(1));
u.JSC$19356_components_.push(K+l)};_.Sa(ZZ,WGE);_.I=ZZ.prototype;_.I.JSC$19358_setCrop=function(u){u&&f6(this);return ZZ.superClass_.JSC$19358_setCrop.call(this,u)};
_.I.JSC$19358_setHeight=function(u){u=u==null||u<0?void 0:u;u!=null&&this.setSize();return ZZ.superClass_.JSC$19358_setHeight.call(this,u)};
_.I.JSC$19358_setImageCrop=function(u){u&&f6(this);return ZZ.superClass_.JSC$19358_setImageCrop.call(this,u)};
_.I.JSC$19358_setCircleCrop=function(u){u&&f6(this);return ZZ.superClass_.JSC$19358_setCircleCrop.call(this,u)};
_.I.setSize=function(u){_.Ks(u)&&(u=Math.max(u.width,u.height));u=u==null||u<0?void 0:u;u!=null&&(this.JSC$19358_setWidth(),this.JSC$19358_setHeight());return ZZ.superClass_.setSize.call(this,u)};
_.I.JSC$19358_setSmartCrop=function(u){u&&f6(this);return ZZ.superClass_.JSC$19358_setSmartCrop.call(this,u)};
_.I.JSC$19358_setSmartCropNoClip=function(u){u&&f6(this);return ZZ.superClass_.JSC$19358_setSmartCropNoClip.call(this,u)};
_.I.JSC$19358_setSmartCropUseFace=function(u){u&&f6(this);return ZZ.superClass_.JSC$19358_setSmartCropUseFace.call(this,u)};
_.I.setCenterCrop=function(u){u&&f6(this);return ZZ.superClass_.setCenterCrop.call(this,u)};
_.I.JSC$19358_setPad=function(u){u&&f6(this);return ZZ.superClass_.JSC$19358_setPad.call(this,u)};
_.I.JSC$19358_setWidth=function(u){u=u==null||u<0?void 0:u;u!=null&&this.setSize();return ZZ.superClass_.JSC$19358_setWidth.call(this,u)};
var tSp=function(u){u.clearOptions();var K=u.JSC$19356_parsedOptions_,l=K.valueProto_;zN(!0,_.k2(l,3),_.k2(K.signatureFlagProto_,3))&&_.OQ(l,3,!0);return u},f6=function(u){u.setCenterCrop();
u.JSC$19358_setCircleCrop();u.JSC$19358_setCrop();u.JSC$19358_setImageCrop();u.JSC$19358_setPad();u.JSC$19358_setSmartCrop();u.JSC$19358_setSmartCropNoClip();u.JSC$19358_setSmartCropUseFace()};
ZZ.prototype.build=function(){var u=this.JSC$19356_parsedOptions_.valueProto_;Bg(u,18)||Bg(u,45)?u.getSize()||this.setSize(0):(u=this.JSC$19356_parsedOptions_.valueProto_,u.getSize()||u.getWidth()||u.getHeight()||(this.setSize(),this.JSC$19358_setHeight(),this.JSC$19358_setWidth(),f6(this)));return ZZ.superClass_.build.call(this)};var xii=/^[^\/]*\/\//,QC=function(u,K){K=K===void 0?!1:K;this.original_=u;this.originalPrefix_="";(u=this.original_.match(xii))&&u[0]?(this.originalPrefix_=u[0],u=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):u="http://"+this.original_;this.uri_=_.lr(u,!0);this.isFreeformUrl_=K;this.JSC$19362_valid_=!0;this.obfuscated_=!1},Sgp=function(u,K){u.JSC$19364_pathPrefix_=u.JSC$19364_pathPrefix_?u.JSC$19364_pathPrefix_+("/"+K):K},Pp=function(u){if(u.JSC$19364_components_==
void 0){var K=u.uri_.getPath().substring(1);
u.JSC$19364_pathPrefix_=null;if(u.isFreeformUrl_){u.JSC$19364_components_=[];if((K.match(/=/g)||[]).length>1)return u.JSC$19362_valid_=!1,u.JSC$19364_components_;var l=K.indexOf("=");l!=-1?(u.JSC$19364_components_.push(K.substr(0,l)),u.JSC$19364_components_.push(K.substr(l+1))):u.JSC$19364_components_.push(K);return u.JSC$19364_components_}u.JSC$19364_components_=K.split("/");K=u.JSC$19364_components_.length;K>2&&u.JSC$19364_components_[0]=="u"&&(Sgp(u,u.JSC$19364_components_[0]+"/"+u.JSC$19364_components_[1]),
u.JSC$19364_components_.shift(),u.JSC$19364_components_.shift(),K-=2);if(K==0||K==4||K>7)return u.JSC$19362_valid_=!1,u.JSC$19364_components_;if(K==2)Sgp(u,u.JSC$19364_components_[0]);else if(u.JSC$19364_components_[0]=="image")Sgp(u,u.JSC$19364_components_[0]);else if(K==7||K==3)return u.JSC$19362_valid_=!1,u.JSC$19364_components_;if(K<=3){u.obfuscated_=!0;K==3&&(Sgp(u,u.JSC$19364_components_[1]),u.JSC$19364_components_.shift(),--K);--K;l=u.JSC$19364_components_[K];var D=l.indexOf("=");D!=-1&&(u.JSC$19364_components_[K]=
l.substr(0,D),u.JSC$19364_components_.push(l.substr(D+1)))}}return u.JSC$19364_components_};
QC.prototype.isValid=function(){Pp(this);return this.JSC$19362_valid_};
QC.prototype.isObfuscated=function(){Pp(this);return this.obfuscated_};
var bX_=function(u){Pp(u);return u.isFreeformUrl_},Jd=function(u){Pp(u);
u.JSC$19364_pathPrefix_==void 0&&(u.JSC$19364_pathPrefix_=null);return u.JSC$19364_pathPrefix_},OXp=function(u){switch(Pp(u).length){case 7:return!0;
case 6:return Jd(u)==null;case 5:return!1;case 3:return!0;case 2:return Jd(u)==null;case 1:return!1;default:return!1}},jM=function(u,K){if(bX_(u))a:{switch(K){case 7:K=0;
break;case 4:if(!OXp(u)){u=null;break a}K=1;break;default:u=null;break a}u=Pp(u)[K]}else if(u.isObfuscated())a:{var l=Jd(u)!=null?1:0;switch(K){case 6:K=l;break;case 4:if(!OXp(u)){u=null;break a}K=1+l;break;default:u=null;break a}u=Pp(u)[K]}else a:{l=Jd(u)!=null?1:0;switch(K){case 0:K=l;break;case 1:K=1+l;break;case 2:K=2+l;break;case 3:K=3+l;break;case 4:if(!OXp(u)){u=null;break a}K=4+l;break;case 5:K=OXp(u)?1:0;K=4+l+K;break;default:u=null;break a}u=Pp(u)[K]}return u};
QC.prototype.getOptions=function(){this.options_==void 0&&(this.options_=jM(this,4));return this.options_};var qVE=function(){};
qVE.prototype.parse=function(u,K){return new Hm_(u,K===void 0?!1:K)};
var Hm_=function(u,K){QC.call(this,u,K===void 0?!1:K)};
_.c(Hm_,QC);_.Sa(Y7,ZZ);var MZB;Y7.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Y7.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var u=Y7.superClass_.build.call(this),K=[];Jd(this.parsedImageUrl_)!=null&&K.push(Jd(this.parsedImageUrl_));var l=bX_(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var D=this.parsedImageUrl_;D.obfuscatedData_==void 0&&(D.obfuscatedData_=jM(D,6));K.push(D.obfuscatedData_+(u?"="+u:""))}else if(l){D=K.push;var d=this.parsedImageUrl_;d.freeformUrlPath_===void 0&&(d.freeformUrlPath_=jM(d,
7));D.call(K,d.freeformUrlPath_);u&&K.push(u)}else D=K.push,d=this.parsedImageUrl_,d.obfuscatedGaiaId_==void 0&&(d.obfuscatedGaiaId_=jM(d,0)),D.call(K,d.obfuscatedGaiaId_),D=K.push,d=this.parsedImageUrl_,d.photoId_==void 0&&(d.photoId_=jM(d,1)),D.call(K,d.photoId_),D=K.push,d=this.parsedImageUrl_,d.imageVersion_==void 0&&(d.imageVersion_=jM(d,2)),D.call(K,d.imageVersion_),D=K.push,d=this.parsedImageUrl_,d.signature_==void 0&&(d.signature_=jM(d,3)),D.call(K,d.signature_),u&&K.push(u),u=K.push,D=this.parsedImageUrl_,
D.filename_==void 0&&(D.filename_=jM(D,5)),u.call(K,D.filename_);K=l?K.join("="):K.join("/");K=_.lr(this.protocolPrefix_+this.JSC$19370_domain_+"/"+K+(this.JSC$19370_query_?"?"+this.JSC$19370_query_:"")).toString();K.startsWith("%3a//")&&(K=K.replace("%3a//","://"));return K};var c5E=_.oj(["viewBox"]),aCV=_.oj(["width"]),zjB=_.oj(["height"]),ejo=_.oj(["fill"]),Rjk=_.oj(["id"]),Uio=_.oj(["x"]),fCo=_.oj(["y"]);nwH.prototype.getLength=function(){return this.parsedData.length};
nwH.prototype.write=function(u){for(var K=0,l=this.parsedData.length;K<l;K++)u.put(this.parsedData[K],8)};
var bmI=function(u,K){var l=new nwH(K);u.dataList.push(l);l=u.errorCorrectLevel;var D=1,d=encodeURI(K).toString().replace(/%[0-9a-fA-F]{2}/g,"a");K=d.length+(d.length!=K?3:0);d=0;for(var C=Bp.length;d<=C;d++){var W=0;switch(l){case 1:W=Bp[d][0];break;case 0:W=Bp[d][1];break;case 3:W=Bp[d][2];break;case 2:W=Bp[d][3]}if(K<=W)break;else D++}if(D>Bp.length)throw Error("wk");u.typeNumber=D;u.dataCache=null};
rup.prototype.isDark=function(u,K){if(u<0||this.moduleCount<=u||K<0||this.moduleCount<=K)throw Error("ok`"+u+"`"+K);return this.modules[u][K]};
for(var Omp=function(u,K,l){u.moduleCount=u.typeNumber*4+17;u.modules=Array(u.moduleCount);for(var D=0;D<u.moduleCount;D++){u.modules[D]=Array(u.moduleCount);for(var d=0;d<u.moduleCount;d++)u.modules[D][d]=null}QMk(u,0,0);QMk(u,u.moduleCount-7,0);QMk(u,0,u.moduleCount-7);D=PAi[u.typeNumber-1];for(d=0;d<D.length;d++)for(var C=0;C<D.length;C++){var W=D[d],M=D[C];if(u.modules[W][M]==null)for(var q=-2;q<=2;q++)for(var v=-2;v<=2;v++)u.modules[W+q][M+v]=q==-2||q==2||v==-2||v==2||q==0&&v==0?!0:!1}for(D=
8;D<u.moduleCount-8;D++)u.modules[D][6]==null&&(u.modules[D][6]=D%2==0);for(D=8;D<u.moduleCount-8;D++)u.modules[6][D]==null&&(u.modules[6][D]=D%2==0);D=u.errorCorrectLevel<<3|l;for(d=D<<10;p6(d)-p6(1335)>=0;)d^=1335<<p6(d)-p6(1335);D=(D<<10|d)^21522;for(d=0;d<15;d++)C=!K&&(D>>d&1)==1,d<6?u.modules[d][8]=C:d<8?u.modules[d+1][8]=C:u.modules[u.moduleCount-15+d][8]=C;for(d=0;d<15;d++)C=!K&&(D>>d&1)==1,d<8?u.modules[8][u.moduleCount-d-1]=C:d<9?u.modules[8][15-d-1+1]=C:u.modules[8][15-d-1]=C;u.modules[u.moduleCount-
8][8]=!K;if(u.typeNumber>=7){D=u.typeNumber;for(d=D<<12;p6(d)-p6(7973)>=0;)d^=7973<<p6(d)-p6(7973);D=D<<12|d;for(d=0;d<18;d++)C=!K&&(D>>d&1)==1,u.modules[Math.floor(d/3)][d%3+u.moduleCount-8-3]=C;for(d=0;d<18;d++)C=!K&&(D>>d&1)==1,u.modules[d%3+u.moduleCount-8-3][Math.floor(d/3)]=C}if(u.dataCache==null){d=u.typeNumber;C=u.dataList;K=u.errorCorrectLevel;D=J56(d,K);if(D==void 0)throw Error("vk`"+d+"`"+K);W=D.length/3;K=[];for(M=0;M<W;M++){q=D[M*3];v=D[M*3+1];for(var G=D[M*3+2],t=0;t<q;t++)K.push(new vwi(v,
G))}D=new GI2;for(W=0;W<C.length;W++)M=C[W],D.put(M.mode,4),D.put(M.getLength(),jMI(M.mode,d)),M.write(D);for(W=d=0;W<K.length;W++)d+=K[W].dataCount;if(D.length>d*8)throw Error("pk`"+D.length+"`"+d*8);for(D.length+4<=d*8&&D.put(0,4);D.length%8!=0;)BOH(D,!1);for(;!(D.length>=d*8);){D.put(236,8);if(D.length>=d*8)break;D.put(17,8)}C=d=v=0;W=Array(K.length);M=Array(K.length);for(q=0;q<K.length;q++){t=K[q].dataCount;var x=K[q].totalCount-t;d=Math.max(d,t);C=Math.max(C,x);W[q]=Array(t);for(G=0;G<W[q].length;G++)W[q][G]=
255&D.buffer[G+v];v+=t;G=x;t=new Av([1],0);for(x=0;x<G;x++)t=t.multiply(new Av([1,pN_(x)],0));G=t;t=(new Av(W[q],G.getLength()-1)).mod(G);M[q]=Array(G.getLength()-1);for(G=0;G<M[q].length;G++)x=G+t.getLength()-M[q].length,M[q][G]=x>=0?t.get(x):0}for(G=D=0;G<K.length;G++)D+=K[G].totalCount;D=Array(D);for(G=v=0;G<d;G++)for(q=0;q<K.length;q++)G<W[q].length&&(D[v++]=W[q][G]);for(G=0;G<C;G++)for(q=0;q<K.length;q++)G<M[q].length&&(D[v++]=M[q][G]);u.dataCache=D}K=u.dataCache;D=-1;d=u.moduleCount-1;C=7;W=
0;for(M=u.moduleCount-1;M>0;M-=2)for(M==6&&M--;;){for(q=0;q<2;q++)u.modules[d][M-q]==null&&(v=!1,W<K.length&&(v=(K[W]>>>C&1)==1),iX_(l,d,M-q)&&(v=!v),u.modules[d][M-q]=v,C--,C==-1&&(W++,C=7));d+=D;if(d<0||u.moduleCount<=d){d-=D;D=-D;break}}},QMk=function(u,K,l){for(var D=-1;D<=7;D++)if(!(K+D<=-1||u.moduleCount<=K+D))for(var d=-1;d<=7;d++)l+d<=-1||u.moduleCount<=l+d||(u.modules[K+D][l+d]=0<=D&&D<=6&&(d==0||d==6)||0<=d&&d<=6&&(D==0||D==6)||2<=D&&D<=4&&2<=d&&d<=4?!0:!1)},cuG=function(u){for(var K=0,
l=0,D=0;D<8;D++){Omp(u,!0,D);
var d=u;for(var C=d.moduleCount,W=0,M=0;M<C;M++)for(var q=0;q<C;q++){for(var v=0,G=d.isDark(M,q),t=-1;t<=1;t++)if(!(M+t<0||C<=M+t))for(var x=-1;x<=1;x++)q+x<0||C<=q+x||(t!=0||x!=0)&&G==d.isDark(M+t,q+x)&&v++;v>5&&(W+=3+v-5)}for(M=0;M<C-1;M++)for(q=0;q<C-1;q++)if(v=0,d.isDark(M,q)&&v++,d.isDark(M+1,q)&&v++,d.isDark(M,q+1)&&v++,d.isDark(M+1,q+1)&&v++,v==0||v==4)W+=3;for(M=0;M<C;M++)for(q=0;q<C-6;q++)d.isDark(M,q)&&!d.isDark(M,q+1)&&d.isDark(M,q+2)&&d.isDark(M,q+3)&&d.isDark(M,q+4)&&!d.isDark(M,q+5)&&
d.isDark(M,q+6)&&(W+=40);for(q=0;q<C;q++)for(M=0;M<C-6;M++)d.isDark(M,q)&&!d.isDark(M+1,q)&&d.isDark(M+2,q)&&d.isDark(M+3,q)&&d.isDark(M+4,q)&&!d.isDark(M+5,q)&&d.isDark(M+6,q)&&(W+=40);for(q=v=0;q<C;q++)for(M=0;M<C;M++)d.isDark(M,q)&&v++;d=W+=Math.abs(100*v/C/C-50)/5*10;if(D==0||K>d)K=d,l=D}return l},PAi=[[],
[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]],p6=function(u){for(var K=0;u!=0;)K++,u>>>=1;return K},iX_=function(u,K,l){switch(u){case 0:return(K+l)%2==0;
case 1:return K%2==0;case 2:return l%3==0;case 3:return(K+l)%3==0;case 4:return(Math.floor(K/2)+Math.floor(l/3))%2==0;case 5:return K*l%2+K*l%3==0;case 6:return(K*l%2+K*l%3)%2==0;case 7:return(K*l%3+(K+l)%2)%2==0;default:throw Error("qk`"+u);}},jMI=function(u,K){if(1<=K&&K<10)switch(u){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("rk`"+u);}else if(K<27)switch(u){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("rk`"+u);}else if(K<41)switch(u){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("rk`"+u);}else throw Error("sk`"+K);},io=function(u){if(u<1)throw Error("tk`"+u);
return TOo[u]},pN_=function(u){for(;u<0;)u+=255;
for(;u>=256;)u-=255;return TN[u]},TN=Array(256),TOo=Array(256),wNp=0;wNp<8;wNp++)TN[wNp]=1<<wNp;
for(var w8=8;w8<256;w8++)TN[w8]=TN[w8-4]^TN[w8-5]^TN[w8-6]^TN[w8-8];for(var Fm_=0;Fm_<255;Fm_++)TOo[TN[Fm_]]=Fm_;Av.prototype.get=function(u){return this.num[u]};
Av.prototype.getLength=function(){return this.num.length};
Av.prototype.multiply=function(u){for(var K=Array(this.getLength()+u.getLength()-1),l=0;l<this.getLength();l++)for(var D=0;D<u.getLength();D++)K[l+D]^=pN_(io(this.get(l))+io(u.get(D)));return new Av(K,0)};
Av.prototype.mod=function(u){if(this.getLength()-u.getLength()<0)return this;for(var K=io(this.get(0))-io(u.get(0)),l=Array(this.getLength()),D=0;D<this.getLength();D++)l[D]=this.get(D);for(D=0;D<u.getLength();D++)l[D]^=pN_(io(u.get(D))+K);return(new Av(l,0)).mod(u)};
var VSI=[[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]],J56=function(u,K){switch(K){case 1:return VSI[(u-1)*4];case 0:return VSI[(u-1)*4+1];case 3:return VSI[(u-1)*4+2];case 2:return VSI[(u-1)*4+3]}};
GI2.prototype.get=function(u){return(this.buffer[Math.floor(u/8)]>>>7-u%8&1)==1};
GI2.prototype.put=function(u,K){for(var l=0;l<K;l++)BOH(this,(u>>>K-l-1&1)==1)};
var BOH=function(u,K){var l=Math.floor(u.length/8);u.buffer.length<=l&&u.buffer.push(0);K&&(u.buffer[l]|=128>>>u.length%8);u.length++},Bp=[[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]],SVB=function(){var u=function(K,l){this.JSC$19390__el=K;this.JSC$19390__htOption=l};
u.prototype.draw=function(K){function l(G,t){G=document.createElementNS("http://www.w3.org/2000/svg",G);for(var x in t)t.hasOwnProperty(x)&&(x==="href"?_.vTE(G,t[x]):_.rm([_.SA(c5E),_.SA(aCV),_.SA(zjB),_.SA(ejo),_.SA(Rjk),_.SA(Uio),_.SA(fCo)],G,x,t[x]));return G}
var D=this.JSC$19390__htOption,d=this.JSC$19390__el,C=K.moduleCount;this.clear();var W=l("svg",{viewBox:"0 0 "+String(C)+" "+String(C),width:"100%",height:"100%",fill:D.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});d.appendChild(W);W.appendChild(l("rect",{fill:D.colorLight,width:"100%",height:"100%"}));W.appendChild(l("rect",{fill:D.colorDark,width:"1",height:"1",id:"template"}));for(var M=0;M<C;M++)for(var q=0;q<C;q++)if(K.isDark(M,q)){var v=l("use",{x:String(M),y:String(q),href:"#template"});
W.appendChild(v)}};
u.prototype.clear=function(){for(;this.JSC$19390__el.hasChildNodes();)this.JSC$19390__el.removeChild(this.JSC$19390__el.lastChild)};
return u}(),xKB=document.documentElement.tagName.toLowerCase()==="svg"?SVB:typeof CanvasRenderingContext2D!="undefined"?function(){var u=function(K,l){this._bIsPainted=!1;
tZi();this.JSC$19390__htOption=l;this._elCanvas=document.createElement("canvas");this._elCanvas.width=l.width;this._elCanvas.height=l.height;K.appendChild(this._elCanvas);this.JSC$19390__el=K;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$19390__el.appendChild(this._elImage);this._bSupportDataURI=null};
u.prototype._onMakeImage=function(){var K=this._elCanvas.toDataURL("image/png");this._elImage.src=K;this._elImage.style.display="block";this._elCanvas.style.display="none"};
u.prototype._safeSetDataURI=function(K,l){var D=this;D._fFail=l;D._fSuccess=K;D._bSupportDataURI===null?(K=_.PO("IMG"),l=function(){D._bSupportDataURI=!1;D._fFail&&D._fFail.call(D)},K.onabort=l,K.onerror=l,K.onload=function(){D._bSupportDataURI=!0;
D._fSuccess&&D._fSuccess.call(D)},K.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):D._bSupportDataURI===!0&&D._fSuccess?D._fSuccess.call(D):D._bSupportDataURI===!1&&D._fFail&&D._fFail.call(D)};
u.prototype.draw=function(K){var l=this._oContext,D=this.JSC$19390__htOption,d=K.moduleCount,C=D.width/d,W=D.height/d,M=Math.round(C),q=Math.round(W);this._elImage.style.display="none";this.clear();for(var v=0;v<d;v++)for(var G=0;G<d;G++){var t=K.isDark(v,G),x=G*C,O=v*W;l.strokeStyle=t?D.colorDark:D.colorLight;l.lineWidth=1;l.fillStyle=t?D.colorDark:D.colorLight;l.fillRect(x,O,C,W);l.strokeRect(Math.floor(x)+.5,Math.floor(O)+.5,M,q);l.strokeRect(Math.ceil(x)-.5,Math.ceil(O)-.5,M,q)}this._bIsPainted=
!0};
u.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
u.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
u.prototype.round=function(K){return K?Math.floor(K*1E3)/1E3:K};
return u}():function(){var u=function(K,l){this.JSC$19390__el=K;
this.JSC$19390__htOption=l};
u.prototype.draw=function(K){for(var l=this.JSC$19390__htOption,D=this.JSC$19390__el,d=K.moduleCount,C=Math.floor(l.width/d),W=Math.floor(l.height/d),M=['<table style="border:0;border-collapse:collapse;">'],q=0;q<d;q++){M.push("<tr>");for(var v=0;v<d;v++)M.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+C+"px;height:"+W+"px;background-color:"+(K.isDark(q,v)?l.colorDark:l.colorLight)+';"></td>');M.push("</tr>")}M.push("</table>");K=M.join("");K=_.OsR(_.aAB,K);_.nH(D,K);
K=D.childNodes[0];d=(l.width-K.offsetWidth)/2;C=(l.height-K.offsetHeight)/2;d>0&&C>0&&(K.style.margin=C+"px "+d+"px")};
u.prototype.clear=function(){this.JSC$19390__el.textContent=""};
return u}();
aJo.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19393__android||this.JSC$19393__android>=3)&&this._oDrawing.makeImage()};
aJo.prototype.clear=function(){this._oDrawing.clear()};
_.lL.QRCode=aJo;var g4V={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var FC=function(){};
FC.prototype.stringify=function(u){return _.lL.JSON.stringify(u,void 0)};
FC.prototype.parse=function(u){return _.lL.JSON.parse(u,void 0)};var NOp=function(){_.j3.call(this,"z")};
_.Sa(NOp,_.j3);var k2o=function(){_.j3.call(this,"y")};
_.Sa(k2o,_.j3);var ZXI=null,YgV=function(){return ZXI=ZXI||new _.wx},A5G=function(u){_.j3.call(this,"serverreachability",u)};
_.Sa(A5G,_.j3);var VC=function(u){var K=YgV();K.dispatchEvent(new A5G(K,u))},XNE=function(u,K){_.j3.call(this,"statevent",u);
this.stat=K};
_.Sa(XNE,_.j3);var g8=function(u){var K=YgV();K.dispatchEvent(new XNE(K,u))},miB=function(u,K,l,D){_.j3.call(this,"timingevent",u);
this.size=K;this.rtt=l;this.retries=D};
_.Sa(miB,_.j3);var hj_=function(u,K,l){var D=YgV();D.dispatchEvent(new miB(D,u,K,l))},Nk=function(u,K){if(typeof u!=="function")throw Error("xk");
return _.lL.setTimeout(function(){u()},K)};var k9=function(){this.redactEnabled_=!0};
k9.prototype.disableRedact=function(){this.redactEnabled_=!1};
var E46=function(u,K,l,D,d,C){u.info(function(){if(u.redactEnabled_)if(C){var W="";for(var M=C.split("&"),q=0;q<M.length;q++){var v=M[q].split("=");if(v.length>1){var G=v[0];v=v[1];var t=G.split("_");W=t.length>=2&&t[1]=="type"?W+(G+"="+v+"&"):W+(G+"=redacted&")}}}else W=null;else W=C;return"XMLHTTP REQ ("+D+") [attempt "+d+"]: "+K+"\n"+l+"\n"+W})},Lmi=function(u,K,l,D,d,C,W){u.info(function(){return"XMLHTTP RESP ("+D+") [ attempt "+d+"]: "+K+"\n"+l+"\n"+C+" "+W})},Z6=function(u,K,l,D){u.info(function(){return"XMLHTTP TEXT ("+
K+"): "+us_(u,l)+(D?" "+D:"")})},KR2=function(u,K){u.info(function(){return"TIMEOUT: "+K})};
k9.prototype.debug=function(){};
k9.prototype.info=function(){};
k9.prototype.warning=function(){};
var us_=function(u,K){if(!u.redactEnabled_)return K;if(!K)return null;try{var l=JSON.parse(K);if(l)for(var D=0;D<l.length;D++)if(Array.isArray(l[D])){var d=l[D];if(!(d.length<2)){var C=d[1];if(Array.isArray(C)&&!(C.length<1)){var W=C[0];if(W!="noop"&&W!="stop"&&W!="close")for(var M=1;M<C.length;M++)C[M]=""}}}return(0,_.Yz)(l)}catch(q){return u.debug("Exception parsing expected JS array - probably was not JS"),K}};var Y9=function(u,K,l,D,d){this.JSC$19415_channel_=u;this.JSC$19415_channelDebug_=K;this.sid_=l;this.JSC$19415_rid_=D;this.JSC$19415_retryId_=d||1;this.JSC$19415_eventHandler_=new _.tC(this);this.timeout_=45E3;this.JSC$19415_extraHeaders_=null;this.JSC$19415_successful_=!1;this.JSC$19415_postData_=this.JSC$19415_requestUri_=this.JSC$19415_baseUri_=this.JSC$19415_type_=this.JSC$19415_requestStartTime_=this.JSC$19415_watchDogTimeoutTime_=this.JSC$19415_watchDogTimerId_=null;this.JSC$19415_pendingMessages_=
[];this.JSC$19415_xmlHttp_=null;this.JSC$19415_xmlHttpChunkStart_=0;this.JSC$19415_lastError_=this.JSC$19415_verb_=null;this.JSC$19415_lastStatusCode_=-1;this.JSC$19415_cancelled_=!1;this.JSC$19415_readyStateChangeThrottleMs_=0;this.JSC$19415_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new lwE},lwE=function(){this.JSC$19417_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},D2E=function(u,K){switch(u){case 0:return"Non-200 return code ("+K+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},d2I={},CHI={};
Y9.prototype.setTimeout=function(u){this.timeout_=u};
var y7E=function(u,K,l){u.JSC$19415_type_=1;u.JSC$19415_baseUri_=_.z2(K.clone());u.JSC$19415_postData_=l;u.decodeChunks_=!0;IwG(u,null)},IwG=function(u,K){u.JSC$19415_requestStartTime_=Date.now();
shE(u);u.JSC$19415_requestUri_=u.JSC$19415_baseUri_.clone();U1(u.JSC$19415_requestUri_,"t",u.JSC$19415_retryId_);u.JSC$19415_xmlHttpChunkStart_=0;var l=u.JSC$19415_channel_.JSC$19434_supportsCrossDomainXhrs_;u.fetchResponseState_=new lwE;u.JSC$19415_xmlHttp_=ov_(u.JSC$19415_channel_,l?K:null,!u.JSC$19415_postData_);u.JSC$19415_readyStateChangeThrottleMs_>0&&(u.JSC$19415_readyStateChangeThrottle_=new _.MC((0,_.wB)(u.JSC$19419_xmlHttpHandler_,u,u.JSC$19415_xmlHttp_),u.JSC$19415_readyStateChangeThrottleMs_));
u.JSC$19415_eventHandler_.listen(u.JSC$19415_xmlHttp_,"readystatechange",u.JSC$19419_readyStateChangeHandler_);K=u.JSC$19415_extraHeaders_?_.k$.clone(u.JSC$19415_extraHeaders_):{};u.JSC$19415_postData_?(u.JSC$19415_verb_||(u.JSC$19415_verb_="POST"),K["Content-Type"]="application/x-www-form-urlencoded",u.JSC$19415_xmlHttp_.send(u.JSC$19415_requestUri_,u.JSC$19415_verb_,u.JSC$19415_postData_,K)):(u.JSC$19415_verb_="GET",u.JSC$19415_xmlHttp_.send(u.JSC$19415_requestUri_,u.JSC$19415_verb_,null,K));VC(1);
E46(u.JSC$19415_channelDebug_,u.JSC$19415_verb_,u.JSC$19415_requestUri_,u.JSC$19415_rid_,u.JSC$19415_retryId_,u.JSC$19415_postData_)};
Y9.prototype.JSC$19419_readyStateChangeHandler_=function(u){u=u.target;var K=this.JSC$19415_readyStateChangeThrottle_;K&&_.X4(u)==3?(this.JSC$19415_channelDebug_.debug("Throttling readystatechange."),K.fire()):this.JSC$19419_xmlHttpHandler_(u)};
Y9.prototype.JSC$19419_xmlHttpHandler_=function(u){try{u==this.JSC$19415_xmlHttp_?WRG(this):this.JSC$19415_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(K){this.JSC$19415_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),Hek(this)}finally{}};
var WRG=function(u){var K=_.X4(u.JSC$19415_xmlHttp_),l=u.JSC$19415_xmlHttp_.JSC$9723_lastErrorCode_,D=u.JSC$19415_xmlHttp_.getStatus();if(!(K<3||K==3&&!Hek(u))){u.JSC$19415_cancelled_||K!=4||l==7||(l==8||D<=0?VC(3):VC(2));MDV(u);var d=u.JSC$19415_xmlHttp_.getStatus();u.JSC$19415_lastStatusCode_=d;l=qck(u);Hek(u)||u.JSC$19415_channelDebug_.debug(function(){return"No response text for uri "+u.JSC$19415_requestUri_+" status "+d});
u.JSC$19415_successful_=d==200;Lmi(u.JSC$19415_channelDebug_,u.JSC$19415_verb_,u.JSC$19415_requestUri_,u.JSC$19415_rid_,u.JSC$19415_retryId_,K,d);if(u.JSC$19415_successful_){if(u.decodeInitialResponse_&&!u.initialResponseDecoded_)if(D=$2E(u))Z6(u.JSC$19415_channelDebug_,u.JSC$19415_rid_,D,"Initial handshake response via X-HTTP-Initial-Response"),u.initialResponseDecoded_=!0,nvp(u,D);else{u.JSC$19415_successful_=!1;u.JSC$19415_lastError_=3;g8(12);u.JSC$19415_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
u.JSC$19415_rid_+")");Ad(u);XC(u);return}u.decodeChunks_?r7I(u,K,l):(Z6(u.JSC$19415_channelDebug_,u.JSC$19415_rid_,l,null),nvp(u,l));K==4&&Ad(u);u.JSC$19415_successful_&&!u.JSC$19415_cancelled_&&(K==4?vvE(u.JSC$19415_channel_,u):(u.JSC$19415_successful_=!1,shE(u)))}else Z4G(u.JSC$19415_xmlHttp_),d==400&&l.indexOf("Unknown SID")>0?(u.JSC$19415_lastError_=3,g8(12),u.JSC$19415_channelDebug_.warning("XMLHTTP Unknown SID ("+u.JSC$19415_rid_+")")):(u.JSC$19415_lastError_=0,g8(13),u.JSC$19415_channelDebug_.warning("XMLHTTP Bad status "+
d+" ("+u.JSC$19415_rid_+")")),Ad(u),XC(u)}},$2E=function(u){return u.JSC$19415_xmlHttp_&&(u=pb(u.JSC$19415_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.oR(u)?u:null},qck=function(u){if(!G$V(u))return u.JSC$19415_xmlHttp_.getResponseText();
var K=u.JSC$19415_xmlHttp_.getResponse();if(K==="")return"";var l="",D=K.length,d=_.X4(u.JSC$19415_xmlHttp_)==4;if(!u.fetchResponseState_.JSC$19417_textDecoder){if(typeof TextDecoder==="undefined")return Ad(u),XC(u),"";u.fetchResponseState_.JSC$19417_textDecoder=new _.lL.TextDecoder}for(var C=0;C<D;C++)u.fetchResponseState_.responseArrivedForFetch=!0,l+=u.fetchResponseState_.JSC$19417_textDecoder.decode(K[C],{stream:!(d&&C==D-1)});K.length=0;u.fetchResponseState_.responseBuffer+=l;u.JSC$19415_xmlHttpChunkStart_=
0;return u.fetchResponseState_.responseBuffer},Hek=function(u){return u.JSC$19415_xmlHttp_?u.fetchResponseState_.responseArrivedForFetch?!0:!(!u.JSC$19415_xmlHttp_.getResponseText()&&!u.JSC$19415_xmlHttp_.getResponse()):!1},G$V=function(u){return u.JSC$19415_xmlHttp_?u.JSC$19415_verb_=="GET"&&u.JSC$19415_type_!=2&&u.JSC$19415_channel_.usesFetchStreams_:!1},r7I=function(u,K,l){for(var D=!0,d;!u.JSC$19415_cancelled_&&u.JSC$19415_xmlHttpChunkStart_<l.length;)if(d=tDi(u,l),d==CHI){K==4&&(u.JSC$19415_lastError_=
4,g8(14),D=!1);
Z6(u.JSC$19415_channelDebug_,u.JSC$19415_rid_,null,"[Incomplete Response]");break}else if(d==d2I){u.JSC$19415_lastError_=4;g8(15);Z6(u.JSC$19415_channelDebug_,u.JSC$19415_rid_,l,"[Invalid Chunk]");D=!1;break}else Z6(u.JSC$19415_channelDebug_,u.JSC$19415_rid_,d,null),nvp(u,d);G$V(u)&&u.JSC$19415_xmlHttpChunkStart_!=0&&(u.fetchResponseState_.responseBuffer=u.fetchResponseState_.responseBuffer.slice(u.JSC$19415_xmlHttpChunkStart_),u.JSC$19415_xmlHttpChunkStart_=0);K!=4||l.length!=0||u.fetchResponseState_.responseArrivedForFetch||
(u.JSC$19415_lastError_=1,g8(16),D=!1);u.JSC$19415_successful_=u.JSC$19415_successful_&&D;D?l.length>0&&!u.firstByteReceived_&&(u.firstByteReceived_=!0,K=u.JSC$19415_channel_,K.JSC$19434_backChannelRequest_==u&&K.detectBufferingProxy_&&!K.bpDetectionDone_&&(K.JSC$19434_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+l.length),x2o(K),K.bpDetectionDone_=!0,g8(11))):(Z6(u.JSC$19415_channelDebug_,u.JSC$19415_rid_,l,"[Invalid Chunked Response]"),Ad(u),XC(u))},tDi=function(u,K){var l=
u.JSC$19415_xmlHttpChunkStart_,D=K.indexOf("\n",l);
if(D==-1)return CHI;l=Number(K.substring(l,D));if(isNaN(l))return d2I;D+=1;if(D+l>K.length)return CHI;K=K.slice(D,D+l);u.JSC$19415_xmlHttpChunkStart_=D+l;return K};
Y9.prototype.cancel=function(){this.JSC$19415_cancelled_=!0;Ad(this)};
var shE=function(u){u.JSC$19415_watchDogTimeoutTime_=Date.now()+u.timeout_;Sc_(u,u.timeout_)},Sc_=function(u,K){if(u.JSC$19415_watchDogTimerId_!=null)throw Error("yk");
u.JSC$19415_watchDogTimerId_=Nk((0,_.wB)(u.JSC$19419_onWatchDogTimeout_,u),K)},MDV=function(u){u.JSC$19415_watchDogTimerId_&&(_.lL.clearTimeout(u.JSC$19415_watchDogTimerId_),u.JSC$19415_watchDogTimerId_=null)};
Y9.prototype.JSC$19419_onWatchDogTimeout_=function(){this.JSC$19415_watchDogTimerId_=null;var u=Date.now();u-this.JSC$19415_watchDogTimeoutTime_>=0?(KR2(this.JSC$19415_channelDebug_,this.JSC$19415_requestUri_),this.JSC$19415_type_!=2&&(VC(3),g8(17)),Ad(this),this.JSC$19415_lastError_=2,XC(this)):(this.JSC$19415_channelDebug_.warning("WatchDog timer called too early"),Sc_(this,this.JSC$19415_watchDogTimeoutTime_-u))};
var XC=function(u){u.JSC$19415_channel_.state_==0||u.JSC$19415_cancelled_||vvE(u.JSC$19415_channel_,u)},Ad=function(u){MDV(u);
_.qt(u.JSC$19415_readyStateChangeThrottle_);u.JSC$19415_readyStateChangeThrottle_=null;u.JSC$19415_eventHandler_.removeAll();if(u.JSC$19415_xmlHttp_){var K=u.JSC$19415_xmlHttp_;u.JSC$19415_xmlHttp_=null;K.abort();K.dispose()}};
Y9.prototype.getLastError=function(){return this.JSC$19415_lastError_};
var nvp=function(u,K){try{var l=u.JSC$19415_channel_;if(l.state_!=0&&(l.JSC$19434_backChannelRequest_==u||beH(l.forwardChannelRequestPool_,u)))if(!u.initialResponseDecoded_&&beH(l.forwardChannelRequestPool_,u)&&l.state_==3){try{var D=l.wireCodec_.JSC$19429_parser_.parse(K)}catch(M){D=null}if(Array.isArray(D)&&D.length==3){K=D;if(K[0]==0)a:if(l.JSC$19434_channelDebug_.debug("Server claims our backchannel is missing."),l.JSC$19434_backChannelTimerId_)l.JSC$19434_channelDebug_.debug("But we are currently starting the request.");
else{if(l.JSC$19434_backChannelRequest_)if(l.JSC$19434_backChannelRequest_.JSC$19415_requestStartTime_+3E3<u.JSC$19415_requestStartTime_)Oep(l),c7H(l);else break a;else l.JSC$19434_channelDebug_.warning("We do not have a BackChannel established");aw_(l);g8(18)}else{l.JSC$19434_lastPostResponseArrayId_=K[1];var d=l.JSC$19434_lastPostResponseArrayId_-l.JSC$19434_lastArrayId_;if(0<d){var C=K[2];l.JSC$19434_channelDebug_.debug(C+" bytes (in "+d+" arrays) are outstanding on the BackChannel");C<37500&&
l.enableStreaming_&&l.JSC$19434_backChannelRetryCount_==0&&!l.JSC$19434_deadBackChannelTimerId_&&(l.JSC$19434_deadBackChannelTimerId_=Nk((0,_.wB)(l.JSC$19436_onBackChannelDead_,l),6E3))}}if(zYE(l.forwardChannelRequestPool_)<=1&&l.forwardChannelFlushedCallback_){try{l.forwardChannelFlushedCallback_()}catch(M){}l.forwardChannelFlushedCallback_=void 0}}else l.JSC$19434_channelDebug_.debug("Bad POST response data returned"),mC(l,11)}else if((u.initialResponseDecoded_||l.JSC$19434_backChannelRequest_==
u)&&Oep(l),!_.oR(K)){var W=l.wireCodec_.JSC$19429_parser_.parse(K);l.onInput_(W,u)}VC(4)}catch(M){}};var eYp=function(u,K){this.JSC$19422_mapId=u;this.map=K;this.context=null};var RYo=function(u){this.maxPoolSizeConfigured_=u||10;_.lL.PerformanceNavigationTiming?(u=_.lL.performance.getEntriesByType("navigation"),u=u.length>0&&(u[0].nextHopProtocol=="hq"||u[0].nextHopProtocol=="h2")):u=!!(_.lL.chrome&&_.lL.chrome.loadTimes&&_.lL.chrome.loadTimes()&&_.lL.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19425_maxSize_=u?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19425_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19425_request_=null;this.JSC$19425_pendingMessages_=
[]},U2p=function(u){return u.JSC$19425_request_?!0:u.requestPool_?u.requestPool_.size>=u.JSC$19425_maxSize_:!1},zYE=function(u){return u.JSC$19425_request_?1:u.requestPool_?u.requestPool_.size:0},beH=function(u,K){return u.JSC$19425_request_?u.JSC$19425_request_==K:u.requestPool_?u.requestPool_.has(K):!1},fwV=function(u,K){u.requestPool_?u.requestPool_.add(K):u.JSC$19425_request_=K},Qho=function(u,K){u.JSC$19425_request_&&u.JSC$19425_request_==K?u.JSC$19425_request_=null:u.requestPool_&&u.requestPool_.has(K)&&
u.requestPool_.delete(K)};
RYo.prototype.cancel=function(){this.JSC$19425_pendingMessages_=PHV(this);if(this.JSC$19425_request_)this.JSC$19425_request_.cancel(),this.JSC$19425_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var u=_.y(this.requestPool_.values()),K=u.next();!K.done;K=u.next())K.value.cancel();this.requestPool_.clear()}};
var PHV=function(u){if(u.JSC$19425_request_!=null)return u.JSC$19425_pendingMessages_.concat(u.JSC$19425_request_.JSC$19415_pendingMessages_);if(u.requestPool_!=null&&u.requestPool_.size!==0){var K=u.JSC$19425_pendingMessages_;u=_.y(u.requestPool_.values());for(var l=u.next();!l.done;l=u.next())K=K.concat(l.value.JSC$19415_pendingMessages_);return K}return _.Xq(u.JSC$19425_pendingMessages_)},J7p=function(u,K){u.JSC$19425_pendingMessages_=u.JSC$19425_pendingMessages_.concat(K)};var jhi=function(u,K){var l=new k9;l.debug("TestLoadImage: loading "+u);if(_.lL.Image){var D=new Image;D.onload=_.Js(hd,l,"TestLoadImage: loaded",!0,K,D);D.onerror=_.Js(hd,l,"TestLoadImage: error",!1,K,D);D.onabort=_.Js(hd,l,"TestLoadImage: abort",!1,K,D);D.ontimeout=_.Js(hd,l,"TestLoadImage: timeout",!1,K,D);_.lL.setTimeout(function(){if(D.ontimeout)D.ontimeout()},1E4);
D.src=u}else K(!1)},B3G=function(u,K){var l=new k9,D=new AbortController,d=setTimeout(function(){D.abort();
hd(l,"TestPingServer: timeout",!1,K)},1E4);
fetch(u,{signal:D.signal}).then(function(C){clearTimeout(d);C.ok?hd(l,"TestPingServer: ok",!0,K):hd(l,"TestPingServer: server error",!1,K)}).catch(function(){clearTimeout(d);
hd(l,"TestPingServer: error",!1,K)})},hd=function(u,K,l,D,d){try{u.debug(K),d&&(d.onload=null,d.onerror=null,d.onabort=null,d.ontimeout=null),D(l)}catch(C){}};var pPV=function(){this.JSC$19429_parser_=new FC};var Ez=function(u,K,l){return l&&l.internalChannelParams?l.internalChannelParams[u]||K:K},L6=function(u){this.serverVersion_=0;
this.JSC$19434_outgoingMaps_=[];this.JSC$19434_channelDebug_=new k9;this.JSC$19434_hostPrefix_=this.JSC$19434_backChannelUri_=this.JSC$19434_forwardChannelUri_=this.JSC$19434_path_=this.JSC$19434_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19434_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19434_extraHeaders_=null;this.JSC$19434_nextMapId_=this.JSC$19434_nextRid_=0;this.JSC$19434_failFast_=Ez("failFast",!1,u);this.enableStreaming_=this.JSC$19434_deadBackChannelTimerId_=
this.JSC$19434_backChannelTimerId_=this.JSC$19434_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19434_lastPostResponseArrayId_=this.JSC$19434_lastArrayId_=-1;this.JSC$19434_backChannelAttemptId_=this.JSC$19434_backChannelRetryCount_=this.JSC$19434_forwardChannelRetryCount_=0;this.JSC$19434_baseRetryDelayMs_=Ez("baseRetryDelayMs",5E3,u);this.JSC$19434_retryDelaySeedMs_=Ez("retryDelaySeedMs",1E4,u);this.JSC$19434_forwardChannelMaxRetries_=
Ez("forwardChannelMaxRetries",2,u);this.JSC$19434_forwardChannelRequestTimeoutMs_=Ez("forwardChannelRequestTimeoutMs",2E4,u);this.JSC$19434_xmlHttpFactory_=u&&u.xmlHttpFactory||void 0;this.networkTestUrl_=u&&u.networkTestUrl||void 0;this.usesFetchStreams_=u&&u.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19434_supportsCrossDomainXhrs_=u&&u.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new RYo(u&&u.concurrentRequestLimit);this.wireCodec_=new pPV;this.fastHandshake_=
u&&u.fastHandshake||!1;this.encodeInitMessageHeaders_=u&&u.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19434_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=u&&u.blockingHandshake||!1;u&&u.disableRedact&&this.JSC$19434_channelDebug_.disableRedact();u&&u.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
u&&u.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;u&&u.longPollingTimeout&&u.longPollingTimeout>0&&(this.longPollingTimeout_=u.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
L6.prototype.JSC$19436_channelVersion_=8;L6.prototype.state_=1;
L6.prototype.connect=function(u,K,l,D){this.JSC$19434_channelDebug_.debug("connect()");g8(0);this.JSC$19434_path_=u;this.JSC$19434_extraParams_=K||{};l&&D!==void 0&&(this.JSC$19434_extraParams_.OSID=l,this.JSC$19434_extraParams_.OAID=D);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19434_channelDebug_.debug("connectChannel_()");u=iep(this,null,this.JSC$19434_path_);this.JSC$19434_channelDebug_.debug("GetForwardChannelUri: "+u);this.JSC$19434_forwardChannelUri_=u;T3I(this)};
L6.prototype.disconnect=function(){this.JSC$19434_channelDebug_.debug("disconnect()");wPB(this);if(this.state_==3){var u=this.JSC$19434_nextRid_++,K=this.JSC$19434_forwardChannelUri_.clone();_.dp(K,"SID",this.sid_);_.dp(K,"RID",u);_.dp(K,"TYPE","terminate");ud(this,K);u=new Y9(this,this.JSC$19434_channelDebug_,this.sid_,u);u.JSC$19415_type_=2;u.JSC$19415_baseUri_=_.z2(K.clone());K=!1;if(_.lL.navigator&&_.lL.navigator.sendBeacon)try{K=_.lL.navigator.sendBeacon(u.JSC$19415_baseUri_.toString(),"")}catch(l){}!K&&
_.lL.Image&&((new Image).src=u.JSC$19415_baseUri_,K=!0);K||(u.JSC$19415_xmlHttp_=ov_(u.JSC$19415_channel_,null),u.JSC$19415_xmlHttp_.send(u.JSC$19415_baseUri_));u.JSC$19415_requestStartTime_=Date.now();shE(u)}FRp(this)};
var c7H=function(u){u.JSC$19434_backChannelRequest_&&(x2o(u),u.JSC$19434_backChannelRequest_.cancel(),u.JSC$19434_backChannelRequest_=null)},wPB=function(u){c7H(u);
u.JSC$19434_backChannelTimerId_&&(_.lL.clearTimeout(u.JSC$19434_backChannelTimerId_),u.JSC$19434_backChannelTimerId_=null);Oep(u);u.forwardChannelRequestPool_.cancel();u.JSC$19434_forwardChannelTimerId_&&(typeof u.JSC$19434_forwardChannelTimerId_==="number"&&_.lL.clearTimeout(u.JSC$19434_forwardChannelTimerId_),u.JSC$19434_forwardChannelTimerId_=null)};
L6.prototype.getState=function(){return this.state_};
var T3I=function(u){U2p(u.forwardChannelRequestPool_)||u.JSC$19434_forwardChannelTimerId_||(u.JSC$19434_forwardChannelTimerId_=!0,_.VK(u.JSC$19436_onStartForwardChannelTimer_,u),u.JSC$19434_forwardChannelRetryCount_=0)},gvo=function(u,K){if(zYE(u.forwardChannelRequestPool_)>=u.forwardChannelRequestPool_.JSC$19425_maxSize_-(u.JSC$19434_forwardChannelTimerId_?1:0))return!1;
if(u.JSC$19434_forwardChannelTimerId_)return u.JSC$19434_channelDebug_.debug("Use the retry request that is already scheduled."),u.JSC$19434_outgoingMaps_=K.JSC$19415_pendingMessages_.concat(u.JSC$19434_outgoingMaps_),!0;if(u.state_==1||u.state_==2||u.JSC$19434_forwardChannelRetryCount_>=(u.JSC$19434_failFast_?0:u.JSC$19434_forwardChannelMaxRetries_))return!1;u.JSC$19434_channelDebug_.debug("Going to retry POST");u.JSC$19434_forwardChannelTimerId_=Nk((0,_.wB)(u.JSC$19436_onStartForwardChannelTimer_,
u,K),VDi(u,u.JSC$19434_forwardChannelRetryCount_));u.JSC$19434_forwardChannelRetryCount_++;return!0};
L6.prototype.JSC$19436_onStartForwardChannelTimer_=function(u){if(this.JSC$19434_forwardChannelTimerId_)if(this.JSC$19434_forwardChannelTimerId_=null,this.JSC$19434_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!u){this.JSC$19434_channelDebug_.debug("open_()");this.JSC$19434_nextRid_=Math.floor(Math.random()*1E5);u=this.JSC$19434_nextRid_++;var K=new Y9(this,this.JSC$19434_channelDebug_,"",u),l=this.JSC$19434_extraHeaders_;this.initHeaders_&&(l?(l=_.k$.clone(l),_.k$.extend(l,this.initHeaders_)):
l=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(K.JSC$19415_extraHeaders_=l,l=null);var D;if(this.fastHandshake_)a:{for(var d=D=0;d<this.JSC$19434_outgoingMaps_.length;d++){b:{var C=this.JSC$19434_outgoingMaps_[d];if("__data__"in C.map&&(C=C.map.__data__,typeof C==="string")){C=C.length;break b}C=void 0}if(C===void 0)break;D+=C;if(D>4096){D=d;break a}if(D===4096||d===this.JSC$19434_outgoingMaps_.length-1){D=d+1;break a}}D=1E3}else D=1E3;D=N32(this,K,D);
d=this.JSC$19434_forwardChannelUri_.clone();_.dp(d,"RID",u);_.dp(d,"CVER",22);this.httpSessionIdParam_&&_.dp(d,"X-HTTP-Session-Id",this.httpSessionIdParam_);ud(this,d);l&&(this.encodeInitMessageHeaders_?D="headers="+_.CT(y0I(l))+"&"+D:this.httpHeadersOverwriteParam_&&sj_(d,this.httpHeadersOverwriteParam_,l));fwV(this.forwardChannelRequestPool_,K);this.blockingHandshake_&&_.dp(d,"TYPE","init");this.fastHandshake_?(_.dp(d,"$req",D),_.dp(d,"SID","null"),K.decodeInitialResponse_=!0,y7E(K,d,null)):y7E(K,
d,D);this.state_=2}}else this.state_==3&&(u?k$6(this,u):this.JSC$19434_outgoingMaps_.length==0?this.JSC$19434_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):U2p(this.forwardChannelRequestPool_)||(k$6(this),this.JSC$19434_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var k$6=function(u,K){var l;K?l=K.JSC$19415_rid_:l=u.JSC$19434_nextRid_++;var D=u.JSC$19434_forwardChannelUri_.clone();_.dp(D,"SID",u.sid_);_.dp(D,"RID",l);_.dp(D,"AID",u.JSC$19434_lastArrayId_);ud(u,D);u.httpHeadersOverwriteParam_&&u.JSC$19434_extraHeaders_&&sj_(D,u.httpHeadersOverwriteParam_,u.JSC$19434_extraHeaders_);l=new Y9(u,u.JSC$19434_channelDebug_,u.sid_,l,u.JSC$19434_forwardChannelRetryCount_+1);u.httpHeadersOverwriteParam_===null&&(l.JSC$19415_extraHeaders_=u.JSC$19434_extraHeaders_);K&&
(u.JSC$19434_outgoingMaps_=K.JSC$19415_pendingMessages_.concat(u.JSC$19434_outgoingMaps_));K=N32(u,l,1E3);l.setTimeout(Math.round(u.JSC$19434_forwardChannelRequestTimeoutMs_*.5)+Math.round(u.JSC$19434_forwardChannelRequestTimeoutMs_*.5*Math.random()));fwV(u.forwardChannelRequestPool_,l);y7E(l,D,K)},ud=function(u,K){u.JSC$19434_extraParams_&&_.k$.forEach(u.JSC$19434_extraParams_,function(l,D){_.dp(K,D,l)});
u.handler_&&_.k$.forEach({},function(l,D){_.dp(K,D,l)})},N32=function(u,K,l){l=Math.min(u.JSC$19434_outgoingMaps_.length,l);
var D=u.handler_?(0,_.wB)(u.handler_.JSC$19440_badMapError,u.handler_,u):null;a:{for(var d=u.JSC$19434_outgoingMaps_,C=-1;;){var W=["count="+l];C==-1?l>0?(C=d[0].JSC$19422_mapId,W.push("ofs="+C)):C=0:W.push("ofs="+C);for(var M=!0,q=0;q<l;q++){var v=d[q].JSC$19422_mapId,G=d[q].map;v-=C;if(v<0)C=Math.max(0,d[q].JSC$19422_mapId-100),M=!1;else try{v="req"+v+"_"||"";try{var t=G instanceof Map?G:Object.entries(G);for(var x=_.y(t),O=x.next();!O.done;O=x.next()){var a=_.y(O.value),f=a.next().value,B=a.next().value,
p=B;_.Ks(B)&&(p=(0,_.Yz)(B));W.push(v+f+"="+encodeURIComponent(p))}}catch(V){throw W.push(v+"type="+encodeURIComponent("_badmap")),V;}}catch(V){D&&D(G)}}if(M){t=W.join("&");break a}}t=void 0}u=u.JSC$19434_outgoingMaps_.splice(0,l);K.JSC$19415_pendingMessages_=u;return t},Zeo=function(u){u.JSC$19434_backChannelRequest_||u.JSC$19434_backChannelTimerId_||(u.JSC$19434_backChannelAttemptId_=1,_.VK(u.JSC$19436_onStartBackChannelTimer_,u),u.JSC$19434_backChannelRetryCount_=0)},aw_=function(u){if(u.JSC$19434_backChannelRequest_||
u.JSC$19434_backChannelTimerId_||u.JSC$19434_backChannelRetryCount_>=3)return!1;
u.JSC$19434_channelDebug_.debug("Going to retry GET");u.JSC$19434_backChannelAttemptId_++;u.JSC$19434_backChannelTimerId_=Nk((0,_.wB)(u.JSC$19436_onStartBackChannelTimer_,u),VDi(u,u.JSC$19434_backChannelRetryCount_));u.JSC$19434_backChannelRetryCount_++;return!0};
L6.prototype.JSC$19436_onStartBackChannelTimer_=function(){this.JSC$19434_backChannelTimerId_=null;YcB(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19434_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19434_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19434_backChannelRequest_+" "+this.handshakeRttMs_);else{var u=4*this.handshakeRttMs_;this.JSC$19434_channelDebug_.info("BP detection timer enabled: "+u);this.bpDetectionTimerId_=Nk((0,_.wB)(this.onBpDetectionTimer_,
this),u)}};
L6.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19434_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19434_backChannelRequest_.JSC$19415_xmlHttp_!=null){var u=this.JSC$19434_backChannelRequest_.JSC$19415_xmlHttp_.getResponseText();u&&this.JSC$19434_channelDebug_.warning("Timer should have been cancelled : "+u)}this.JSC$19434_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;g8(10);c7H(this);YcB(this)}else this.JSC$19434_channelDebug_.warning("Invalid operation.")};
var x2o=function(u){u.bpDetectionTimerId_!=null&&(u.JSC$19434_channelDebug_.debug("Cancel the BP detection timer."),_.lL.clearTimeout(u.bpDetectionTimerId_),u.bpDetectionTimerId_=null)},YcB=function(u){u.JSC$19434_channelDebug_.debug("Creating new HttpRequest");
u.JSC$19434_backChannelRequest_=new Y9(u,u.JSC$19434_channelDebug_,u.sid_,"rpc",u.JSC$19434_backChannelAttemptId_);u.httpHeadersOverwriteParam_===null&&(u.JSC$19434_backChannelRequest_.JSC$19415_extraHeaders_=u.JSC$19434_extraHeaders_);u.JSC$19434_backChannelRequest_.JSC$19415_readyStateChangeThrottleMs_=0;var K=u.JSC$19434_backChannelUri_.clone();_.dp(K,"RID","rpc");_.dp(K,"SID",u.sid_);_.dp(K,"AID",u.JSC$19434_lastArrayId_);_.dp(K,"CI",u.enableStreaming_?"0":"1");!u.enableStreaming_&&u.longPollingTimeout_&&
_.dp(K,"TO",u.longPollingTimeout_);_.dp(K,"TYPE","xmlhttp");ud(u,K);u.httpHeadersOverwriteParam_&&u.JSC$19434_extraHeaders_&&sj_(K,u.httpHeadersOverwriteParam_,u.JSC$19434_extraHeaders_);u.backChannelRequestTimeoutMs_&&u.JSC$19434_backChannelRequest_.setTimeout(u.backChannelRequestTimeoutMs_);var l=u.JSC$19434_backChannelRequest_,D=u.JSC$19434_hostPrefix_;l.JSC$19415_type_=1;l.JSC$19415_baseUri_=_.z2(K.clone());l.JSC$19415_postData_=null;l.decodeChunks_=!0;IwG(l,D);u.JSC$19434_channelDebug_.debug("New Request created")};
L6.prototype.JSC$19436_onBackChannelDead_=function(){this.JSC$19434_deadBackChannelTimerId_!=null&&(this.JSC$19434_deadBackChannelTimerId_=null,c7H(this),aw_(this),g8(19))};
var Oep=function(u){u.JSC$19434_deadBackChannelTimerId_!=null&&(_.lL.clearTimeout(u.JSC$19434_deadBackChannelTimerId_),u.JSC$19434_deadBackChannelTimerId_=null)},vvE=function(u,K){u.JSC$19434_channelDebug_.debug("Request complete");
var l=null;if(u.JSC$19434_backChannelRequest_==K){Oep(u);x2o(u);u.JSC$19434_backChannelRequest_=null;var D=2}else if(beH(u.forwardChannelRequestPool_,K))l=K.JSC$19415_pendingMessages_,Qho(u.forwardChannelRequestPool_,K),D=1;else return;if(u.state_!=0)if(K.JSC$19415_successful_)D==1?(hj_(K.JSC$19415_postData_?K.JSC$19415_postData_.length:0,Date.now()-K.JSC$19415_requestStartTime_,u.JSC$19434_forwardChannelRetryCount_),T3I(u)):Zeo(u);else{var d=K.JSC$19415_lastStatusCode_,C=K.getLastError();if(C==3||
C==0&&d>0)u.JSC$19434_channelDebug_.debug("Not retrying due to error type"),d>200&&(u.errorResponseStatusCode_=K.JSC$19415_lastStatusCode_);else{u.JSC$19434_channelDebug_.debug(function(){return"Maybe retrying, last error: "+D2E(C,u.errorResponseStatusCode_)});
if(D==1&&gvo(u,K)||D==2&&aw_(u))return;u.JSC$19434_channelDebug_.debug("Exceeded max number of retries")}l&&l.length>0&&J7p(u.forwardChannelRequestPool_,l);u.JSC$19434_channelDebug_.debug("Error: HTTP request failed");switch(C){case 1:mC(u,5);break;case 4:mC(u,10);break;case 3:mC(u,6);break;default:mC(u,2)}}},VDi=function(u,K){var l=u.JSC$19434_baseRetryDelayMs_+Math.floor(Math.random()*u.JSC$19434_retryDelaySeedMs_);
u.isActive()||(u.JSC$19434_channelDebug_.debug("Inactive channel"),l*=2);return l*K};
L6.prototype.onInput_=function(u,K){for(var l=0;l<u.length;l++){var D=u[l];this.JSC$19434_lastArrayId_=D[0];D=D[1];if(this.state_==2)if(D[0]=="c"){this.sid_=D[1];this.JSC$19434_hostPrefix_=D[2];var d=D[3];d!=null&&(this.JSC$19436_channelVersion_=d,this.JSC$19434_channelDebug_.info("VER="+this.JSC$19436_channelVersion_));d=D[4];d!=null&&(this.serverVersion_=d,this.JSC$19434_channelDebug_.info("SVER="+this.serverVersion_));D=D[5];D!=null&&typeof D==="number"&&D>0&&(this.backChannelRequestTimeoutMs_=
D*=1.5,this.JSC$19434_channelDebug_.info("backChannelRequestTimeoutMs_="+D));if(D=K.JSC$19415_xmlHttp_){var C=pb(D,"X-Client-Wire-Protocol");C&&(d=this.forwardChannelRequestPool_,!d.requestPool_&&(_.Ho(C,"spdy")||_.Ho(C,"quic")||_.Ho(C,"h2"))&&(d.JSC$19425_maxSize_=d.maxPoolSizeConfigured_,d.requestPool_=new Set,d.JSC$19425_request_&&(fwV(d,d.JSC$19425_request_),d.JSC$19425_request_=null)));this.httpSessionIdParam_&&((D=pb(D,"X-HTTP-Session-Id"))?(this.httpSessionId_=D,_.dp(this.JSC$19434_forwardChannelUri_,
this.httpSessionIdParam_,D)):this.JSC$19434_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19440_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-K.JSC$19415_requestStartTime_,this.JSC$19434_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));D=K;d=iep(this,this.JSC$19434_supportsCrossDomainXhrs_?this.JSC$19434_hostPrefix_:null,this.JSC$19434_path_);this.JSC$19434_channelDebug_.debug("GetBackChannelUri: "+
d);this.JSC$19434_backChannelUri_=d;D.initialResponseDecoded_?(this.JSC$19434_channelDebug_.debug("Upgrade the handshake request to a backchannel."),Qho(this.forwardChannelRequestPool_,D),d=D,(C=this.backChannelRequestTimeoutMs_)&&d.setTimeout(C),d.JSC$19415_watchDogTimerId_&&(MDV(d),shE(d)),this.JSC$19434_backChannelRequest_=D):Zeo(this);this.JSC$19434_outgoingMaps_.length>0&&T3I(this)}else D[0]!="stop"&&D[0]!="close"||mC(this,7);else this.state_==3&&(D[0]=="stop"||D[0]=="close"?D[0]=="stop"?mC(this,
7):this.disconnect():D[0]!="noop"&&this.handler_&&this.handler_.JSC$19440_channelHandleArray(D),this.JSC$19434_backChannelRetryCount_=0)}};
var mC=function(u,K){u.JSC$19434_channelDebug_.info("Error code "+K);if(K==2){var l=(0,_.wB)(u.testNetworkCallback_,u),D=u.networkTestUrl_,d=!D;D=new _.W0(D||"//www.google.com/images/cleardot.gif");_.lL.location&&_.lL.location.protocol=="http"||_.rO(D,"https");_.z2(D);d?jhi(D.toString(),l):B3G(D.toString(),l)}else g8(2);u.onError_(K)};
L6.prototype.testNetworkCallback_=function(u){u?(this.JSC$19434_channelDebug_.info("Successfully pinged google.com"),g8(2)):(this.JSC$19434_channelDebug_.info("Failed to ping google.com"),g8(1))};
L6.prototype.onError_=function(u){this.JSC$19434_channelDebug_.debug("HttpChannel: error - "+u);this.state_=0;this.handler_&&this.handler_.JSC$19440_channelError(u);FRp(this);wPB(this)};
var FRp=function(u){u.state_=0;u.nonAckedMapsAtChannelClose_=[];if(u.handler_){var K=PHV(u.forwardChannelRequestPool_);if(K.length!=0||u.JSC$19434_outgoingMaps_.length!=0)u.JSC$19434_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+K.length+", outgoing: "+u.JSC$19434_outgoingMaps_.length}),_.L9(u.nonAckedMapsAtChannelClose_,K),_.L9(u.nonAckedMapsAtChannelClose_,u.JSC$19434_outgoingMaps_),u.forwardChannelRequestPool_.JSC$19425_pendingMessages_.length=0,_.Xq(u.JSC$19434_outgoingMaps_),
u.JSC$19434_outgoingMaps_.length=0;
u.handler_.JSC$19440_channelClosed()}},iP_=function(u){if(u.state_==0)return u.nonAckedMapsAtChannelClose_;
var K=[];_.L9(K,PHV(u.forwardChannelRequestPool_));_.L9(K,u.JSC$19434_outgoingMaps_);return K},iep=function(u,K,l){var D=_.lr(l);
D.JSC$9960_domain_!=""?(K&&_.vN(D,K+"."+D.JSC$9960_domain_),_.G2(D,D.JSC$9960_port_)):(D=_.lL.location,D=A3V(D.protocol,K?K+"."+D.hostname:D.hostname,+D.port,l));K=u.httpSessionIdParam_;l=u.httpSessionId_;K&&l&&_.dp(D,K,l);_.dp(D,"VER",u.JSC$19436_channelVersion_);ud(u,D);return D},ov_=function(u,K,l){if(K&&!u.JSC$19434_supportsCrossDomainXhrs_)throw Error("zk");
K=u.usesFetchStreams_&&!u.JSC$19434_xmlHttpFactory_?new _.A1(new K6({streamBinaryChunks:l})):new _.A1(u.JSC$19434_xmlHttpFactory_);K.JSC$9723_withCredentials_=u.JSC$19434_supportsCrossDomainXhrs_;return K};
L6.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var T0k=function(){};
_.I=T0k.prototype;_.I.JSC$19440_channelOpened=function(){};
_.I.JSC$19440_channelHandleArray=function(){};
_.I.JSC$19440_channelError=function(){};
_.I.JSC$19440_channelClosed=function(){};
_.I.isActive=function(){return!0};
_.I.JSC$19440_badMapError=function(){};var wdB=function(){},ld=function(u,K){_.wx.call(this);
this.JSC$19443_channel_=new L6(K);this.JSC$19443_url_=u;this.messageUrlParams_=K&&K.messageUrlParams||null;u=K&&K.messageHeaders||null;K&&K.clientProtocolHeaderRequired&&(u?_.k$.set(u,"X-Client-Protocol","webchannel"):u=_.k$.create("X-Client-Protocol","webchannel"));this.JSC$19443_channel_.JSC$19434_extraHeaders_=u;u=K&&K.initMessageHeaders||null;K&&K.messageContentType&&(u?_.k$.set(u,"X-WebChannel-Content-Type",K.messageContentType):u=_.k$.create("X-WebChannel-Content-Type",K.messageContentType));
K&&K.clientProfile&&(u?_.k$.set(u,"X-WebChannel-Client-Profile",K.clientProfile):u=_.k$.create("X-WebChannel-Client-Profile",K.clientProfile));this.JSC$19443_channel_.initHeaders_=u;(u=K&&K.httpHeadersOverwriteParam)&&!_.oR(u)&&(this.JSC$19443_channel_.httpHeadersOverwriteParam_=u);this.supportsCrossDomainXhr_=K&&K.supportsCrossDomainXhr||!1;this.sendRawJson_=K&&K.sendRawJson||!1;(K=K&&K.httpSessionIdParam)&&!_.oR(K)&&(this.JSC$19443_channel_.httpSessionIdParam_=K,_.k$.containsKey(this.messageUrlParams_,
K)&&_.k$.remove(this.messageUrlParams_,K));this.channelHandler_=new Kw(this)};
_.Sa(ld,_.wx);ld.prototype.open=function(){this.JSC$19443_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19443_channel_.JSC$19434_supportsCrossDomainXhrs_=!0);this.JSC$19443_channel_.connect(this.JSC$19443_url_,this.messageUrlParams_||void 0)};
ld.prototype.close=function(){this.JSC$19443_channel_.disconnect()};
ld.prototype.send=function(u){var K=this.JSC$19443_channel_;if(typeof u==="string"){var l={};l.__data__=u;u=l}else this.sendRawJson_&&(l={},l.__data__=(0,_.Yz)(u),u=l);K.JSC$19434_outgoingMaps_.push(new eYp(K.JSC$19434_nextMapId_++,u));K.state_==3&&T3I(K)};
ld.prototype.disposeInternal=function(){this.JSC$19443_channel_.handler_=null;delete this.channelHandler_;this.JSC$19443_channel_.disconnect();delete this.JSC$19443_channel_;ld.superClass_.disposeInternal.call(this)};
var FD6=function(u){NOp.call(this);u.__headers__&&(this.headers=u.__headers__,this.statusCode=u.__status__,delete u.__headers__,delete u.__status__);var K=u.__sm__;K?this.data=(this.metadataKey=_.k$.getAnyKey(K))?_.k$.get(K,this.metadataKey):K:this.data=u};
_.Sa(FD6,NOp);var Vhk=function(u){k2o.call(this);this.status=1;this.errorCode=u};
_.Sa(Vhk,k2o);var Kw=function(u){this.JSC$19450_channel_=u};
_.Sa(Kw,T0k);Kw.prototype.JSC$19440_channelOpened=function(){this.JSC$19450_channel_.dispatchEvent("w")};
Kw.prototype.JSC$19440_channelHandleArray=function(u){this.JSC$19450_channel_.dispatchEvent(new FD6(u))};
Kw.prototype.JSC$19440_channelError=function(u){this.JSC$19450_channel_.dispatchEvent(new Vhk(u))};
Kw.prototype.JSC$19440_channelClosed=function(){this.JSC$19450_channel_.dispatchEvent("x")};
var ggB=function(u,K){this.transportChannel_=u;this.JSC$19453_channel_=K},N0_=function(u){return iP_(u.JSC$19453_channel_).map(function(K){var l=u.transportChannel_;
K=K.map;"__data__"in K?(K=K.__data__,l=l.sendRawJson_?(0,_.GjA)(K):K):l=K;return l})};var Di=function(u){k8p.dispatchEvent(new ZPV(k8p,u))},k8p=new _.wx,ZPV=function(u,K){_.j3.call(this,"statevent",u);
this.stat=K};
_.c(ZPV,_.j3);var dG=function(u,K,l,D,d){this.JSC$19458_channel_=u;this.JSC$19458_channelDebug_=K;this.sid_=l;this.JSC$19458_rid_=D;this.JSC$19458_retryId_=d||1;this.timeout_=45E3;this.JSC$19458_eventHandler_=new _.tC(this);this.pollingTimer_=new _.GS;this.pollingTimer_.setInterval(250)};
_.I=dG.prototype;_.I.JSC$19460_extraHeaders_=null;_.I.JSC$19460_successful_=!1;_.I.JSC$19460_watchDogTimerId_=null;_.I.JSC$19460_watchDogTimeoutTime_=null;_.I.JSC$19460_requestStartTime_=null;_.I.JSC$19460_type_=null;_.I.JSC$19460_baseUri_=null;_.I.JSC$19460_requestUri_=null;_.I.JSC$19460_postData_=null;_.I.JSC$19460_xmlHttp_=null;_.I.JSC$19460_xmlHttpChunkStart_=0;_.I.trident_=null;_.I.JSC$19460_verb_=null;_.I.JSC$19460_lastError_=null;_.I.JSC$19460_lastStatusCode_=-1;_.I.sendClose_=!0;
_.I.JSC$19460_cancelled_=!1;_.I.JSC$19460_readyStateChangeThrottleMs_=0;_.I.JSC$19460_readyStateChangeThrottle_=null;var YUV=function(u,K){switch(u){case 0:return"Non-200 return code ("+K+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},AWI={},Xdp={};
dG.prototype.setTimeout=function(u){this.timeout_=u};
var hAp=function(u,K,l){u.JSC$19460_type_=1;u.JSC$19460_baseUri_=_.z2(K.clone());u.JSC$19460_postData_=l;u.decodeChunks_=!0;mA_(u,null)},Eg6=function(u,K,l,D,d){u.JSC$19460_type_=1;
u.JSC$19460_baseUri_=_.z2(K.clone());u.JSC$19460_postData_=null;u.decodeChunks_=l;d&&(u.sendClose_=!1);mA_(u,D)},mA_=function(u,K){u.JSC$19460_requestStartTime_=Date.now();
LDE(u);u.JSC$19460_requestUri_=u.JSC$19460_baseUri_.clone();U1(u.JSC$19460_requestUri_,"t",u.JSC$19458_retryId_);u.JSC$19460_xmlHttpChunkStart_=0;u.JSC$19460_xmlHttp_=u.JSC$19458_channel_.JSC$19467_createXhrIo(u.JSC$19458_channel_.JSC$19467_shouldUseSecondaryDomains()?K:null);u.JSC$19460_readyStateChangeThrottleMs_>0&&(u.JSC$19460_readyStateChangeThrottle_=new _.MC((0,_.wB)(u.JSC$19460_xmlHttpHandler_,u,u.JSC$19460_xmlHttp_),u.JSC$19460_readyStateChangeThrottleMs_));u.JSC$19458_eventHandler_.listen(u.JSC$19460_xmlHttp_,
"readystatechange",u.JSC$19460_readyStateChangeHandler_);K=u.JSC$19460_extraHeaders_?_.k$.clone(u.JSC$19460_extraHeaders_):{};u.JSC$19460_postData_?(u.JSC$19460_verb_="POST",K["Content-Type"]="application/x-www-form-urlencoded",u.JSC$19460_xmlHttp_.send(u.JSC$19460_requestUri_,u.JSC$19460_verb_,u.JSC$19460_postData_,K)):(u.JSC$19460_verb_="GET",u.sendClose_&&!_.ea&&(K.Connection="close"),u.JSC$19460_xmlHttp_.send(u.JSC$19460_requestUri_,u.JSC$19460_verb_,null,K));u.JSC$19458_channel_.notifyServerReachabilityEvent(1);
K=u.JSC$19458_channelDebug_;var l=u.JSC$19460_postData_;if(l){var D="";l=l.split("&");for(var d=0;d<l.length;d++){var C=l[d].split("=");if(C.length>1){var W=C[0];C=C[1];var M=W.split("_");D=M.length>=2&&M[1]=="type"?D+(W+"="+C+"&"):D+(W+"=redacted&")}}}else D=null;K.info("XMLHTTP REQ ("+u.JSC$19458_rid_+") [attempt "+u.JSC$19458_retryId_+"]: "+u.JSC$19460_verb_+"\n"+u.JSC$19460_requestUri_+"\n"+D)};
dG.prototype.JSC$19460_readyStateChangeHandler_=function(u){u=u.target;var K=this.JSC$19460_readyStateChangeThrottle_;K&&_.X4(u)==3?(this.JSC$19458_channelDebug_.debug("Throttling readystatechange."),K.fire()):this.JSC$19460_xmlHttpHandler_(u)};
dG.prototype.JSC$19460_xmlHttpHandler_=function(u){try{if(u==this.JSC$19460_xmlHttp_)a:{var K=_.X4(this.JSC$19460_xmlHttp_),l=this.JSC$19460_xmlHttp_.JSC$9723_lastErrorCode_,D=this.JSC$19460_xmlHttp_.getStatus();if(_.ea&&!_.Rj("420+")){if(K<4)break a}else if(K<3||K==3&&!this.JSC$19460_xmlHttp_.getResponseText())break a;this.JSC$19460_cancelled_||K!=4||l==7||(l==8||D<=0?this.JSC$19458_channel_.notifyServerReachabilityEvent(3):this.JSC$19458_channel_.notifyServerReachabilityEvent(2));u1H(this);var d=
this.JSC$19460_xmlHttp_.getStatus();this.JSC$19460_lastStatusCode_=d;var C=this.JSC$19460_xmlHttp_.getResponseText();C||this.JSC$19458_channelDebug_.debug("No response text for uri "+this.JSC$19460_requestUri_+" status "+d);this.JSC$19460_successful_=d==200;this.JSC$19458_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19458_rid_+") [ attempt "+this.JSC$19458_retryId_+"]: "+this.JSC$19460_verb_+"\n"+this.JSC$19460_requestUri_+"\n"+K+" "+d);if(this.JSC$19460_successful_){K==4&&Cw(this);if(this.decodeChunks_){for(u=
!0;!this.JSC$19460_cancelled_&&this.JSC$19460_xmlHttpChunkStart_<C.length;){var W=KK_(this,C);if(W==Xdp){K==4&&(this.JSC$19460_lastError_=4,Di(15),u=!1);II(this.JSC$19458_channelDebug_,this.JSC$19458_rid_,null,"[Incomplete Response]");break}else if(W==AWI){this.JSC$19460_lastError_=4;Di(16);II(this.JSC$19458_channelDebug_,this.JSC$19458_rid_,C,"[Invalid Chunk]");u=!1;break}else II(this.JSC$19458_channelDebug_,this.JSC$19458_rid_,W,null),lGo(this,W)}K==4&&C.length==0&&(this.JSC$19460_lastError_=1,
Di(17),u=!1);this.JSC$19460_successful_=this.JSC$19460_successful_&&u;u||(II(this.JSC$19458_channelDebug_,this.JSC$19458_rid_,C,"[Invalid Chunked Response]"),Cw(this),DG_(this))}else II(this.JSC$19458_channelDebug_,this.JSC$19458_rid_,C,null),lGo(this,C);this.JSC$19460_successful_&&!this.JSC$19460_cancelled_&&(K==4?this.JSC$19458_channel_.JSC$19467_onRequestComplete(this):(this.JSC$19460_successful_=!1,LDE(this)))}else d==400&&C.indexOf("Unknown SID")>0?(this.JSC$19460_lastError_=3,Di(13),this.JSC$19458_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19458_rid_+")")):(this.JSC$19460_lastError_=0,Di(14),this.JSC$19458_channelDebug_.warning("XMLHTTP Bad status "+d+" ("+this.JSC$19458_rid_+")")),Cw(this),DG_(this)}else this.JSC$19458_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(M){this.JSC$19458_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var KK_=function(u,K){var l=u.JSC$19460_xmlHttpChunkStart_,D=K.indexOf("\n",l);if(D==-1)return Xdp;l=Number(K.substring(l,D));if(isNaN(l))return AWI;D+=1;if(D+l>K.length)return Xdp;K=K.slice(D,D+l);u.JSC$19460_xmlHttpChunkStart_=D+l;return K};
dG.prototype.cancel=function(){this.JSC$19460_cancelled_=!0;Cw(this)};
var LDE=function(u){u.JSC$19460_watchDogTimeoutTime_=Date.now()+u.timeout_;dG_(u,u.timeout_)},dG_=function(u,K){if(u.JSC$19460_watchDogTimerId_!=null)throw Error("yk");
u.JSC$19460_watchDogTimerId_=Xo((0,_.wB)(u.JSC$19460_onWatchDogTimeout_,u),K)},u1H=function(u){u.JSC$19460_watchDogTimerId_&&(_.lL.clearTimeout(u.JSC$19460_watchDogTimerId_),u.JSC$19460_watchDogTimerId_=null)};
dG.prototype.JSC$19460_onWatchDogTimeout_=function(){this.JSC$19460_watchDogTimerId_=null;var u=Date.now();u-this.JSC$19460_watchDogTimeoutTime_>=0?(this.JSC$19458_channelDebug_.info("TIMEOUT: "+this.JSC$19460_requestUri_),this.JSC$19460_type_!=2&&this.JSC$19458_channel_.notifyServerReachabilityEvent(3),Cw(this),this.JSC$19460_lastError_=2,Di(18),DG_(this)):(this.JSC$19458_channelDebug_.warning("WatchDog timer called too early"),dG_(this,this.JSC$19460_watchDogTimeoutTime_-u))};
var DG_=function(u){u.JSC$19458_channel_.JSC$19467_isClosed()||u.JSC$19460_cancelled_||u.JSC$19458_channel_.JSC$19467_onRequestComplete(u)},Cw=function(u){u1H(u);
_.qt(u.JSC$19460_readyStateChangeThrottle_);u.JSC$19460_readyStateChangeThrottle_=null;u.pollingTimer_.stop();u.JSC$19458_eventHandler_.removeAll();if(u.JSC$19460_xmlHttp_){var K=u.JSC$19460_xmlHttp_;u.JSC$19460_xmlHttp_=null;K.abort();K.dispose()}u.trident_&&(u.trident_=null)};
dG.prototype.getLastError=function(){return this.JSC$19460_lastError_};
var lGo=function(u,K){try{u.JSC$19458_channel_.JSC$19467_onRequestData(u,K),u.JSC$19458_channel_.notifyServerReachabilityEvent(4)}catch(l){}};var II=function(u,K,l,D){var d=u.info;a:if(l&&l!="y2f%"){try{var C=JSON.parse(l);if(C)for(var W=0;W<C.length;W++)if(Array.isArray(C[W])){var M=C[W];if(!(M.length<2)){var q=M[1];if(Array.isArray(q)&&!(q.length<1)){var v=q[0];if(v!="noop"&&v!="stop")for(var G=1;G<q.length;G++)q[G]=""}}}var t=(0,_.Yz)(C);break a}catch(x){u.debug("Exception parsing expected JS array - probably was not JS");t=l;break a}t=void 0}else t=l;d.call(u,"XMLHTTP TEXT ("+K+"): "+t+(D?" "+D:""))};
m2.prototype.debug=function(u){this.info(u)};
m2.prototype.info=function(){};
m2.prototype.warning=function(){};var CFE=function(u,K){this.JSC$19465_channel_=u;this.JSC$19465_channelDebug_=K;this.JSC$19465_parser_=new FC};
_.I=CFE.prototype;_.I.JSC$19467_extraHeaders_=null;_.I.JSC$19467_request_=null;_.I.receivedIntermediateResult_=!1;_.I.JSC$19467_path_=null;_.I.state_=null;_.I.JSC$19467_lastStatusCode_=-1;_.I.JSC$19467_hostPrefix_=null;_.I.blockedPrefix_=null;
_.I.connect=function(u){this.JSC$19467_path_=u;u=IGo(this.JSC$19465_channel_,this.JSC$19467_path_);Di(3);Date.now();var K=this.JSC$19465_channel_.firstTestResults_;K!=null?(this.JSC$19467_hostPrefix_=K[0],(this.blockedPrefix_=K[1])?(this.state_=1,yFE(this)):(this.state_=2,sDE(this))):(U1(u,"MODE","init"),this.JSC$19467_request_=new dG(this,this.JSC$19465_channelDebug_),this.JSC$19467_request_.JSC$19460_extraHeaders_=this.JSC$19467_extraHeaders_,Eg6(this.JSC$19467_request_,u,!1,null,!0),this.state_=
0)};
var yFE=function(u){var K=oiG(u.JSC$19465_channel_,u.blockedPrefix_,"/mail/images/cleardot.gif");_.z2(K);R82(K.toString(),5E3,(0,_.wB)(u.checkBlockedCallback_,u),3,2E3);u.notifyServerReachabilityEvent(1)};
CFE.prototype.checkBlockedCallback_=function(u){if(u)this.state_=2,sDE(this);else{Di(4);var K=this.JSC$19465_channel_;K.JSC$19468_channelDebug_.debug("Test Connection Blocked");K.JSC$19472_lastStatusCode_=K.connectionTest_.JSC$19467_lastStatusCode_;y6(K,9)}u&&this.notifyServerReachabilityEvent(2)};
var sDE=function(u){u.JSC$19465_channelDebug_.debug("TestConnection: starting stage 2");var K=u.JSC$19465_channel_.secondTestResults_;K!=null?(u.JSC$19465_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+K?"Buffered":"Unbuffered"),Di(5),K?(Di(11),sE(u.JSC$19465_channel_,u,!1)):(Di(12),sE(u.JSC$19465_channel_,u,!0))):(u.JSC$19467_request_=new dG(u,u.JSC$19465_channelDebug_),u.JSC$19467_request_.JSC$19460_extraHeaders_=u.JSC$19467_extraHeaders_,K=WKo(u.JSC$19465_channel_,
u.JSC$19467_hostPrefix_,u.JSC$19467_path_),Di(5),U1(K,"TYPE","xmlhttp"),Eg6(u.JSC$19467_request_,K,!1,u.JSC$19467_hostPrefix_,!1))};
_.I=CFE.prototype;_.I.JSC$19467_createXhrIo=function(u){return this.JSC$19465_channel_.JSC$19467_createXhrIo(u)};
_.I.abort=function(){this.JSC$19467_request_&&(this.JSC$19467_request_.cancel(),this.JSC$19467_request_=null);this.JSC$19467_lastStatusCode_=-1};
_.I.JSC$19467_isClosed=function(){return!1};
_.I.JSC$19467_onRequestData=function(u,K){this.JSC$19467_lastStatusCode_=u.JSC$19460_lastStatusCode_;if(this.state_==0)if(this.JSC$19465_channelDebug_.debug("TestConnection: Got data for stage 1"),K){try{var l=this.JSC$19465_parser_.parse(K)}catch(D){Htk(this.JSC$19465_channel_,this);return}this.JSC$19467_hostPrefix_=l[0];this.blockedPrefix_=l[1]}else this.JSC$19465_channelDebug_.debug("TestConnection: Null responseText"),Htk(this.JSC$19465_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(Di(7),Date.now()):K=="11111"?(Di(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19467_lastStatusCode_=200,this.JSC$19467_request_.cancel(),this.JSC$19465_channelDebug_.debug("Test connection succeeded; using streaming connection"),Di(12),sE(this.JSC$19465_channel_,this,!0)):(Di(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.I.JSC$19467_onRequestComplete=function(){this.JSC$19467_lastStatusCode_=this.JSC$19467_request_.JSC$19460_lastStatusCode_;this.JSC$19467_request_.JSC$19460_successful_?this.state_==0?(this.JSC$19465_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,yFE(this)):(this.state_=2,sDE(this))):this.state_==2&&(this.JSC$19465_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19465_channelDebug_.debug("Test connection succeeded; using streaming connection"),
Di(12),sE(this.JSC$19465_channel_,this,!0)):(this.JSC$19465_channelDebug_.debug("Test connection failed; not using streaming"),Di(11),sE(this.JSC$19465_channel_,this,!1))):(this.JSC$19465_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?Di(9):this.state_==2&&Di(10),Htk(this.JSC$19465_channel_,this,this.JSC$19467_request_.getLastError()))};
_.I.JSC$19467_shouldUseSecondaryDomains=function(){return this.JSC$19465_channel_.JSC$19467_shouldUseSecondaryDomains()};
_.I.isActive=function(){return this.JSC$19465_channel_.isActive()};
_.I.notifyServerReachabilityEvent=function(u){this.JSC$19465_channel_.notifyServerReachabilityEvent(u)};var oI=function(u,K,l){this.state_=1;this.JSC$19468_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19468_channelDebug_=new m2;this.JSC$19468_parser_=new FC;this.firstTestResults_=u||null;this.secondTestResults_=K!=null?K:null;this.asyncTest_=l||!1},Mv_=function(u,K){this.JSC$19470_mapId=u;
this.map=K;this.context=null};
_.I=oI.prototype;_.I.JSC$19472_extraHeaders_=null;_.I.JSC$19472_extraParams_=null;_.I.forwardChannelRequest_=null;_.I.JSC$19472_backChannelRequest_=null;_.I.JSC$19472_path_=null;_.I.JSC$19472_forwardChannelUri_=null;_.I.JSC$19472_backChannelUri_=null;_.I.JSC$19472_hostPrefix_=null;_.I.JSC$19472_nextRid_=0;_.I.JSC$19472_nextMapId_=0;_.I.handler_=null;_.I.JSC$19472_forwardChannelTimerId_=null;_.I.JSC$19472_backChannelTimerId_=null;_.I.JSC$19472_deadBackChannelTimerId_=null;_.I.connectionTest_=null;
_.I.useChunked_=null;_.I.JSC$19472_lastArrayId_=-1;_.I.JSC$19472_lastPostResponseArrayId_=-1;_.I.JSC$19472_lastStatusCode_=-1;_.I.JSC$19472_forwardChannelRetryCount_=0;_.I.JSC$19472_backChannelRetryCount_=0;_.I.JSC$19472_channelVersion_=8;var q76={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},$GB=function(u,K,l,D){_.j3.call(this,"timingevent",u);this.size=K;this.rtt=l;this.retries=D};
_.Sa($GB,_.j3);var ni_=function(u){_.j3.call(this,"serverreachability",u)};
_.Sa(ni_,_.j3);oI.prototype.connect=function(u,K,l,D,d){this.JSC$19468_channelDebug_.debug("connect()");Di(0);this.JSC$19472_path_=K;this.JSC$19472_extraParams_=l||{};D&&d!==void 0&&(this.JSC$19472_extraParams_.OSID=D,this.JSC$19472_extraParams_.OAID=d);this.asyncTest_?(Xo((0,_.wB)(this.connectTest_,this,u),100),rF_(this)):this.connectTest_(u)};
oI.prototype.disconnect=function(){this.JSC$19468_channelDebug_.debug("disconnect()");viH(this);if(this.state_==3){var u=this.JSC$19472_nextRid_++,K=this.JSC$19472_forwardChannelUri_.clone();_.dp(K,"SID",this.sid_);_.dp(K,"RID",u);_.dp(K,"TYPE","terminate");Wq(this,K);u=new dG(this,this.JSC$19468_channelDebug_,this.sid_,u);u.JSC$19460_type_=2;u.JSC$19460_baseUri_=_.z2(K.clone());(new Image).src=u.JSC$19460_baseUri_.toString();u.JSC$19460_requestStartTime_=Date.now();LDE(u)}GEp(this)};
oI.prototype.connectTest_=function(u){this.JSC$19468_channelDebug_.debug("connectTest_()");this.connectionTest_=new CFE(this,this.JSC$19468_channelDebug_);this.connectionTest_.JSC$19467_extraHeaders_=this.JSC$19472_extraHeaders_;this.connectionTest_.JSC$19465_parser_=this.JSC$19468_parser_;this.connectionTest_.connect(u)};
var rF_=function(u){u.JSC$19468_channelDebug_.debug("connectChannel_()");u.JSC$19472_ensureInState_(1,0);u.JSC$19472_forwardChannelUri_=IGo(u,u.JSC$19472_path_);tvE(u)},viH=function(u){u.connectionTest_&&(u.connectionTest_.abort(),u.connectionTest_=null);
u.JSC$19472_backChannelRequest_&&(u.JSC$19472_backChannelRequest_.cancel(),u.JSC$19472_backChannelRequest_=null);u.JSC$19472_backChannelTimerId_&&(_.lL.clearTimeout(u.JSC$19472_backChannelTimerId_),u.JSC$19472_backChannelTimerId_=null);xGV(u);u.forwardChannelRequest_&&(u.forwardChannelRequest_.cancel(),u.forwardChannelRequest_=null);u.JSC$19472_forwardChannelTimerId_&&(_.lL.clearTimeout(u.JSC$19472_forwardChannelTimerId_),u.JSC$19472_forwardChannelTimerId_=null)},S7V=function(u,K){if(u.state_==0)throw Error("Bk");
u.JSC$19468_outgoingMaps_.length==1E3&&u.JSC$19468_parser_.stringify(K);u.JSC$19468_outgoingMaps_.push(new Mv_(u.JSC$19472_nextMapId_++,K));u.state_!=2&&u.state_!=3||tvE(u)};
oI.prototype.JSC$19467_isClosed=function(){return this.state_==0};
oI.prototype.getState=function(){return this.state_};
var tvE=function(u){u.forwardChannelRequest_||u.JSC$19472_forwardChannelTimerId_||(u.JSC$19472_forwardChannelTimerId_=Xo((0,_.wB)(u.JSC$19472_onStartForwardChannelTimer_,u),0),u.JSC$19472_forwardChannelRetryCount_=0)};
oI.prototype.JSC$19472_onStartForwardChannelTimer_=function(u){this.JSC$19472_forwardChannelTimerId_=null;bt_(this,u)};
var bt_=function(u,K){u.JSC$19468_channelDebug_.debug("startForwardChannel_");if(u.state_==1){if(!K){u.JSC$19468_channelDebug_.debug("open_()");u.JSC$19472_nextRid_=Math.floor(Math.random()*1E5);K=u.JSC$19472_nextRid_++;var l=new dG(u,u.JSC$19468_channelDebug_,"",K);l.JSC$19460_extraHeaders_=u.JSC$19472_extraHeaders_;var D=Otp(u),d=u.JSC$19472_forwardChannelUri_.clone();_.dp(d,"RID",K);_.dp(d,"CVER","1");Wq(u,d);hAp(l,d,D);u.forwardChannelRequest_=l;u.state_=2}}else u.state_==3&&(K?cFE(u,K):u.JSC$19468_outgoingMaps_.length==
0?u.JSC$19468_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):u.forwardChannelRequest_||(cFE(u),u.JSC$19468_channelDebug_.debug("startForwardChannel_ finished, sent request")))},cFE=function(u,K){if(K)if(u.JSC$19472_channelVersion_>6){u.JSC$19468_outgoingMaps_=u.pendingMaps_.concat(u.JSC$19468_outgoingMaps_);
u.pendingMaps_.length=0;var l=u.JSC$19472_nextRid_-1;K=Otp(u)}else l=K.JSC$19458_rid_,K=K.JSC$19460_postData_;else l=u.JSC$19472_nextRid_++,K=Otp(u);var D=u.JSC$19472_forwardChannelUri_.clone();_.dp(D,"SID",u.sid_);_.dp(D,"RID",l);_.dp(D,"AID",u.JSC$19472_lastArrayId_);Wq(u,D);l=new dG(u,u.JSC$19468_channelDebug_,u.sid_,l,u.JSC$19472_forwardChannelRetryCount_+1);l.JSC$19460_extraHeaders_=u.JSC$19472_extraHeaders_;l.setTimeout(1E4+Math.round(1E4*Math.random()));u.forwardChannelRequest_=l;hAp(l,D,K)},
Wq=function(u,K){u.handler_&&(u=u.handler_.JSC$19479_getAdditionalParams())&&_.k$.forEach(u,function(l,D){_.dp(K,D,l)})},Otp=function(u){var K=Math.min(u.JSC$19468_outgoingMaps_.length,1E3),l=["count="+K];
if(u.JSC$19472_channelVersion_>6&&K>0){var D=u.JSC$19468_outgoingMaps_[0].JSC$19470_mapId;l.push("ofs="+D)}else D=0;for(var d={},C=0;C<K;d={mapId$jscomp$3:void 0},C++){d.mapId$jscomp$3=u.JSC$19468_outgoingMaps_[C].JSC$19470_mapId;var W=u.JSC$19468_outgoingMaps_[C].map;d.mapId$jscomp$3=u.JSC$19472_channelVersion_<=6?C:d.mapId$jscomp$3-D;try{_.k$.forEach(W,function(M){return function(q,v){l.push("req"+M.mapId$jscomp$3+"_"+v+"="+encodeURIComponent(q))}}(d))}catch(M){l.push("req"+d.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}u.pendingMaps_=u.pendingMaps_.concat(u.JSC$19468_outgoingMaps_.splice(0,K));
return l.join("&")},aGB=function(u){u.JSC$19472_backChannelRequest_||u.JSC$19472_backChannelTimerId_||(u.JSC$19472_backChannelAttemptId_=1,u.JSC$19472_backChannelTimerId_=Xo((0,_.wB)(u.JSC$19472_onStartBackChannelTimer_,u),0),u.JSC$19472_backChannelRetryCount_=0)},e12=function(u){if(u.JSC$19472_backChannelRequest_||u.JSC$19472_backChannelTimerId_||u.JSC$19472_backChannelRetryCount_>=3)return!1;
u.JSC$19468_channelDebug_.debug("Going to retry GET");u.JSC$19472_backChannelAttemptId_++;u.JSC$19472_backChannelTimerId_=Xo((0,_.wB)(u.JSC$19472_onStartBackChannelTimer_,u),z1_(u,u.JSC$19472_backChannelRetryCount_));u.JSC$19472_backChannelRetryCount_++;return!0};
oI.prototype.JSC$19472_onStartBackChannelTimer_=function(){this.JSC$19472_backChannelTimerId_=null;this.JSC$19468_channelDebug_.debug("Creating new HttpRequest");this.JSC$19472_backChannelRequest_=new dG(this,this.JSC$19468_channelDebug_,this.sid_,"rpc",this.JSC$19472_backChannelAttemptId_);this.JSC$19472_backChannelRequest_.JSC$19460_extraHeaders_=this.JSC$19472_extraHeaders_;this.JSC$19472_backChannelRequest_.JSC$19460_readyStateChangeThrottleMs_=0;var u=this.JSC$19472_backChannelUri_.clone();_.dp(u,
"RID","rpc");_.dp(u,"SID",this.sid_);_.dp(u,"CI",this.useChunked_?"0":"1");_.dp(u,"AID",this.JSC$19472_lastArrayId_);Wq(this,u);_.dp(u,"TYPE","xmlhttp");Eg6(this.JSC$19472_backChannelRequest_,u,!0,this.JSC$19472_hostPrefix_,!1);this.JSC$19468_channelDebug_.debug("New Request created")};
var sE=function(u,K,l){u.JSC$19468_channelDebug_.debug("Test Connection Finished");u.useChunked_=u.secondTestResults_==null?l:!u.secondTestResults_;u.JSC$19472_lastStatusCode_=K.JSC$19467_lastStatusCode_;u.asyncTest_||rF_(u)},Htk=function(u,K){u.JSC$19468_channelDebug_.debug("Test Connection Failed");
u.JSC$19472_lastStatusCode_=K.JSC$19467_lastStatusCode_;y6(u,2)};
oI.prototype.JSC$19467_onRequestData=function(u,K){if(this.state_!=0&&(this.JSC$19472_backChannelRequest_==u||this.forwardChannelRequest_==u))if(this.JSC$19472_lastStatusCode_=u.JSC$19460_lastStatusCode_,this.forwardChannelRequest_==u&&this.state_==3)if(this.JSC$19472_channelVersion_>7){try{var l=this.JSC$19468_parser_.parse(K)}catch(D){l=null}if(Array.isArray(l)&&l.length==3)if(K=l,K[0]==0)a:if(this.JSC$19468_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19472_backChannelTimerId_)this.JSC$19468_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19472_backChannelRequest_)if(this.JSC$19472_backChannelRequest_.JSC$19460_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19460_requestStartTime_)xGV(this),this.JSC$19472_backChannelRequest_.cancel(),this.JSC$19472_backChannelRequest_=null;else break a;else this.JSC$19468_channelDebug_.warning("We do not have a BackChannel established");e12(this);Di(19)}else this.JSC$19472_lastPostResponseArrayId_=K[1],u=this.JSC$19472_lastPostResponseArrayId_-this.JSC$19472_lastArrayId_,0<
u&&(K=K[2],this.JSC$19468_channelDebug_.debug(K+" bytes (in "+u+" arrays) are outstanding on the BackChannel"),K<37500&&this.useChunked_&&this.JSC$19472_backChannelRetryCount_==0&&!this.JSC$19472_deadBackChannelTimerId_&&(this.JSC$19472_deadBackChannelTimerId_=Xo((0,_.wB)(this.JSC$19472_onBackChannelDead_,this),6E3)));else this.JSC$19468_channelDebug_.debug("Bad POST response data returned"),y6(this,11)}else K!="y2f%"&&(this.JSC$19468_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
y6(this,11));else this.JSC$19472_backChannelRequest_==u&&xGV(this),_.oR(K)||(u=this.JSC$19468_parser_.parse(K),this.onInput_(u))};
oI.prototype.JSC$19472_onBackChannelDead_=function(){this.JSC$19472_deadBackChannelTimerId_!=null&&(this.JSC$19472_deadBackChannelTimerId_=null,this.JSC$19472_backChannelRequest_.cancel(),this.JSC$19472_backChannelRequest_=null,e12(this),Di(20))};
var xGV=function(u){u.JSC$19472_deadBackChannelTimerId_!=null&&(_.lL.clearTimeout(u.JSC$19472_deadBackChannelTimerId_),u.JSC$19472_deadBackChannelTimerId_=null)};
oI.prototype.JSC$19467_onRequestComplete=function(u){this.JSC$19468_channelDebug_.debug("Request complete");if(this.JSC$19472_backChannelRequest_==u){xGV(this);this.JSC$19472_backChannelRequest_=null;var K=2}else if(this.forwardChannelRequest_==u)this.forwardChannelRequest_=null,K=1;else return;this.JSC$19472_lastStatusCode_=u.JSC$19460_lastStatusCode_;if(this.state_!=0)if(u.JSC$19460_successful_)if(K==1){K=u.JSC$19460_postData_?u.JSC$19460_postData_.length:0;u=Date.now()-u.JSC$19460_requestStartTime_;
var l=k8p;l.dispatchEvent(new $GB(l,K,u,this.JSC$19472_forwardChannelRetryCount_));tvE(this);this.handler_&&this.handler_.JSC$19479_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else aGB(this);else{l=u.getLastError();if(l==3||l==7||l==0&&this.JSC$19472_lastStatusCode_>0)this.JSC$19468_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19468_channelDebug_.debug("Maybe retrying, last error: "+YUV(l,this.JSC$19472_lastStatusCode_));var D;if(D=K==1)this.forwardChannelRequest_||
this.JSC$19472_forwardChannelTimerId_||this.state_==1||this.JSC$19472_forwardChannelRetryCount_>=2?D=!1:(this.JSC$19468_channelDebug_.debug("Going to retry POST"),this.JSC$19472_forwardChannelTimerId_=Xo((0,_.wB)(this.JSC$19472_onStartForwardChannelTimer_,this,u),z1_(this,this.JSC$19472_forwardChannelRetryCount_)),this.JSC$19472_forwardChannelRetryCount_++,D=!0);if(D||K==2&&e12(this))return;this.JSC$19468_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19468_channelDebug_.debug("Error: HTTP request failed");
switch(l){case 1:y6(this,5);break;case 4:y6(this,10);break;case 3:y6(this,6);break;case 7:y6(this,12);break;default:y6(this,2)}}};
var z1_=function(u,K){var l=5E3+Math.floor(Math.random()*1E4);u.isActive()||(u.JSC$19468_channelDebug_.debug("Inactive channel"),l*=2);return l*K};
oI.prototype.onInput_=function(u){for(var K=0;K<u.length;K++){var l=u[K];this.JSC$19472_lastArrayId_=l[0];l=l[1];this.state_==2?l[0]=="c"?(this.sid_=l[1],this.JSC$19472_hostPrefix_=l[2],l=l[3],l!=null?this.JSC$19472_channelVersion_=l:this.JSC$19472_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19479_channelOpened(),this.JSC$19472_backChannelUri_=WKo(this,this.JSC$19472_hostPrefix_,this.JSC$19472_path_),aGB(this)):l[0]=="stop"&&y6(this,7):this.state_==3&&(l[0]=="stop"?y6(this,7):
l[0]!="noop"&&this.handler_&&this.handler_.JSC$19479_channelHandleArray(l),this.JSC$19472_backChannelRetryCount_=0)}};
oI.prototype.JSC$19472_ensureInState_=function(u){if(!_.Vn(arguments,this.state_))throw Error("Ck`"+this.state_);};
var y6=function(u,K){u.JSC$19468_channelDebug_.info("Error code "+K);if(K==2||K==9){var l=null;u.handler_&&(l=null);var D=(0,_.wB)(u.testGoogleComCallback_,u);l||(l=new _.W0("//www.google.com/images/cleardot.gif"),_.z2(l));e8o(l.toString(),1E4,D)}else Di(2);u.onError_(K)};
oI.prototype.testGoogleComCallback_=function(u){u?(this.JSC$19468_channelDebug_.info("Successfully pinged google.com"),Di(2)):(this.JSC$19468_channelDebug_.info("Failed to ping google.com"),Di(1),this.onError_(8))};
oI.prototype.onError_=function(u){this.JSC$19468_channelDebug_.debug("HttpChannel: error - "+u);this.state_=0;this.handler_&&this.handler_.JSC$19479_channelError(u);GEp(this);viH(this)};
var GEp=function(u){u.state_=0;u.JSC$19472_lastStatusCode_=-1;if(u.handler_)if(u.pendingMaps_.length==0&&u.JSC$19468_outgoingMaps_.length==0)u.handler_.JSC$19479_channelClosed();else{u.JSC$19468_channelDebug_.debug("Number of undelivered maps, pending: "+u.pendingMaps_.length+", outgoing: "+u.JSC$19468_outgoingMaps_.length);var K=_.Xq(u.pendingMaps_),l=_.Xq(u.JSC$19468_outgoingMaps_);u.pendingMaps_.length=0;u.JSC$19468_outgoingMaps_.length=0;u.handler_.JSC$19479_channelClosed(K,l)}},IGo=function(u,
K){K=oiG(u,null,K);
u.JSC$19468_channelDebug_.debug("GetForwardChannelUri: "+K);return K},WKo=function(u,K,l){K=oiG(u,u.JSC$19467_shouldUseSecondaryDomains()?K:null,l);
u.JSC$19468_channelDebug_.debug("GetBackChannelUri: "+K);return K},oiG=function(u,K,l){var D=_.lr(l);
if(D.JSC$9960_domain_!="")K&&_.vN(D,K+"."+D.JSC$9960_domain_),_.G2(D,D.JSC$9960_port_);else{var d=window.location;D=A3V(d.protocol,K?K+"."+d.hostname:d.hostname,+d.port,l)}u.JSC$19472_extraParams_&&_.k$.forEach(u.JSC$19472_extraParams_,function(C,W){_.dp(D,W,C)});
_.dp(D,"VER",u.JSC$19472_channelVersion_);Wq(u,D);return D};
oI.prototype.JSC$19467_createXhrIo=function(u){if(u)throw Error("zk");u=new _.A1;u.JSC$9723_withCredentials_=!1;return u};
oI.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
oI.prototype.notifyServerReachabilityEvent=function(u){var K=k8p;K.dispatchEvent(new ni_(K,u))};
oI.prototype.JSC$19467_shouldUseSecondaryDomains=function(){return!1};
new u__;var R1E=function(){};
_.I=R1E.prototype;_.I.JSC$19479_channelOpened=function(){};
_.I.JSC$19479_channelHandleArray=function(){};
_.I.JSC$19479_channelSuccess=function(){};
_.I.JSC$19479_channelError=function(){};
_.I.JSC$19479_channelClosed=function(){};
_.I.JSC$19479_getAdditionalParams=function(){return{}};
_.I.isActive=function(){return!0};var UG2=function(u){u.front_.length===0&&(u.front_=u.back_,u.front_.reverse(),u.back_=[])};
_.I=fJk.prototype;_.I.enqueue=function(u){this.back_.push(u)};
_.I.peek=function(){UG2(this);return _.p9(this.front_)};
_.I.getCount=function(){return this.front_.length+this.back_.length};
_.I.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.I.clear=function(){this.front_=[];this.back_=[]};
_.I.contains=function(u){return _.Vn(this.front_,u)||_.Vn(this.back_,u)};
_.I.remove=function(u){var K=this.front_;var l=Array.prototype.lastIndexOf.call(K,u,K.length-1);l>=0?(_.Yy(K,l),K=!0):K=!1;return K||_.AH(this.back_,u)};
_.I.getValues=function(){for(var u=[],K=this.front_.length-1;K>=0;--K)u.push(this.front_[K]);K=this.back_.length;for(var l=0;l<K;++l)u.push(this.back_[l]);return u};var Hq=function(u){this.JSC$19483_map_=new _.z7;this.size=0;u&&this.addAll(u)},fG_=function(u){var K=typeof u;
return K=="object"&&u||K=="function"?"o"+_.DA(u):K.charAt(0)+u};
_.I=Hq.prototype;_.I.getCount=function(){return this.JSC$19483_map_.size};
_.I.add=function(u){this.JSC$19483_map_.set(fG_(u),u);this.size=this.JSC$19483_map_.size};
_.I.addAll=function(u){u=_.nX(u);for(var K=u.length,l=0;l<K;l++)this.add(u[l]);this.size=this.JSC$19483_map_.size};
_.I.removeAll=function(u){u=_.nX(u);for(var K=u.length,l=0;l<K;l++)this.remove(u[l]);this.size=this.JSC$19483_map_.size};
_.I.delete=function(u){u=this.JSC$19483_map_.remove(fG_(u));this.size=this.JSC$19483_map_.size;return u};
_.I.remove=function(u){return this.delete(u)};
_.I.clear=function(){this.JSC$19483_map_.clear();this.size=0};
_.I.isEmpty=function(){return this.JSC$19483_map_.size===0};
_.I.has=function(u){return this.JSC$19483_map_.containsKey(fG_(u))};
_.I.contains=function(u){return this.JSC$19483_map_.containsKey(fG_(u))};
_.I.getValues=function(){return this.JSC$19483_map_.getValues()};
_.I.values=function(){return this.JSC$19483_map_.values()};
_.I.clone=function(){return new Hq(this)};
_.I.equals=function(u){return this.getCount()==Zzp(u)&&QD_(this,u)};
var QD_=function(u,K){var l=Zzp(K);if(u.getCount()>l)return!1;!(K instanceof Hq)&&l>5&&(K=new Hq(K));return YLV(u,function(D){var d=K;return d.contains&&typeof d.contains=="function"?d.contains(D):d.containsValue&&typeof d.containsValue=="function"?d.containsValue(D):_.mb(d)||typeof d==="string"?_.Vn(d,D):_.k$.containsValue(d,D)})};
Hq.prototype.__iterator__=function(){return this.JSC$19483_map_.__iterator__(!1)};
Hq.prototype[Symbol.iterator]=function(){return this.values()};var PFI={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(u){return(this._clampValue(u)-this.min)/(this.max-this.min)},
_clampValue:function(u){return Math.min(this.max,Math.max(this.min,this._calcStep(u)))},
_calcStep:function(u){u=parseFloat(u);if(!this.step)return u;u=Math.round((u-this.min)/this.step);return this.step<1?u/(1/this.step)+this.min:u*this.step+this.min},
_validateValue:function(){var u=this._clampValue(this.value);this.value=this.oldValue=isNaN(u)?this.oldValue:u;return this.value!==u},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var JFE;var jDp;_.YH({_template:function(){if(jDp!==void 0)return jDp;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;JFE===void 0&&(JFE=document.createElement("template"));var D=JFE;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return jDp=u},
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(){_.W_(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(u){u.keyCode===27&&(u.preventDefault(),this.close())},
_track:function(u){if(!this.persistent&&!this.disableSwipe)switch(u.preventDefault(),u.detail.state){case "start":this._trackStart(u);break;case "track":this._trackMove(u);break;case "end":this._trackEnd(u)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var u=this.$.contentContainer.getBoundingClientRect();this._savedWidth=u.width;this._translateOffset=this.position==="left"?u.left:u.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(u){this._trackDetails&&(this._translateDrawer(u.detail.dx+this._translateOffset),this._trackDetails.push({dx:u.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(u){if(this._trackDetails){var K=u.detail.dx+this._translateOffset,l=this.getWidth();K=this.position==="left"?K>=0||K<=-l:K<=0||K>=l;if(!K){var D=this._trackDetails;this._trackDetails=null;this._flingDrawer(u,D);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}l/=2;u.detail.dx<-l?this.opened=this.position==="right":u.detail.dx>l&&(this.opened=this.position==="left");K?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(u,K){for(var l=Date.now(),D=l-100,d,C=0,W=K.length-1;C<=W;){var M=C+W>>1,q=K[M];q.timeStamp>=D?(d=q,W=M-1):C=M+1}return d?(u.detail.dx-d.dx)/(l-d.timeStamp||1):0},
_flingDrawer:function(u,K){K=this._calculateVelocity(u,K);if(!(Math.abs(K)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;u=u.detail.dx+this._translateOffset;var l=this.getWidth(),D=this.position==="left",d=K>0;d?(K=Math.max(K,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(K=Math.min(K,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");K=this._FLING_INITIAL_SLOPE*(!d&&D?-(u+l):d&&!D?l-u:-u)/K;this._styleTransitionDuration(K);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,K)}},
_styleTransitionDuration:function(u){this.style.transitionDuration=u+"ms";this.$.contentContainer.style.transitionDuration=u+"ms";this.$.scrim.style.transitionDuration=u+"ms"},
_styleTransitionTimingFunction:function(u){this.$.contentContainer.style.transitionTimingFunction=u;this.$.scrim.style.transitionTimingFunction=u},
_translateDrawer:function(u){var K=this.getWidth();this.position==="left"?(u=Math.max(-K,Math.min(u,0)),this.$.scrim.style.opacity=1+u/K):(u=Math.max(0,Math.min(u,K)),this.$.scrim.style.opacity=1-u/K);this.translate3d(u+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var u=this._drawerState;u===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;u!==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=""),u!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var u=_.wM(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"])');u.length>0?(this._firstTabStop=u[0],this._lastTabStop=u[u.length-1]):
this._lastTabStop=this._firstTabStop=null;(u=this.getAttribute("tabindex"))&&parseInt(u,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(u){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||u.keyCode!==9||(u.shiftKey?this._firstTabStop&&_.wM(u).localTarget===this._firstTabStop&&(u.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.wM(u).localTarget===this._lastTabStop&&(u.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(u,K){this.toggleClass("visible",u&&!K,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 BzE;var p3i;_.YH({_template:function(){if(p3i!==void 0)return p3i;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;BzE===void 0&&(BzE=document.createElement("template"));var D=BzE;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return p3i=u},
is:"tp-yt-paper-progress",behaviors:[PFI],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(u){this.toggleClass("indeterminate",u,this.$.primaryProgress)},
_transformProgress:function(u,K){u.style.transform=u.style.webkitTransform="scaleX("+K/100+")"},
_mainRatioChanged:function(u){this._transformProgress(this.$.primaryProgress,u)},
_progressChanged:function(u,K,l,D,d){u=this._clampValue(u);K=this._clampValue(K);var C=this._calcRatio(u)*100,W=this._calcRatio(K)*100;this._setSecondaryRatio(C);this._transformProgress(this.$.secondaryProgress,C);this._transformProgress(this.$.primaryProgress,W);this.secondaryProgress=u;d?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",K);this.setAttribute("aria-valuemin",l);this.setAttribute("aria-valuemax",D)},
_disabledChanged:function(u){this.setAttribute("aria-disabled",u?"true":"false")},
_hideSecondaryProgress:function(u){return u===0}});var itG;var TzH;var w3p=function(){};
_.I=w3p.prototype;_.I.registered=function(){};
_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I._tapHandler=function(){};
_.I._focusChanged=function(){};
_.I._detectKeyboardFocus=function(){};
_.I._userActivate=function(){};
_.I._upHandler=function(){};
_.I._spaceKeyDownHandler=function(){};
_.I._spaceKeyUpHandler=function(){};
_.I._asyncClick=function(){};
_.I._pressedChanged=function(){};
_.I._ariaActiveAttributeChanged=function(){};
_.I._activeChanged=function(){};
_.I._controlStateChanged=function(){};
_.I._changedButtonState=function(){};
_.I._focusBlurHandler=function(){};
_.I._disabledChanged=function(){};
_.I._changedControlState=function(){};
_.I._buttonStateChanged=function(){};
_.I._downHandler=function(){};
_.I.ensureRipple=function(){};
_.I.getRipple=function(){};
_.I.hasRipple=function(){};
_.I._noinkChanged=function(){};
_.I._calcRatio=function(){};
_.I._clampValue=function(){};
_.I._calcStep=function(){};
_.I._validateValue=function(){};
_.I._update=function(){};
_.I._setImmediateValue=function(){};
_.I._setExpand=function(){};
_.I._setDragging=function(){};
_.I._setTransiting=function(){};
_.I._setMarkers=function(){};
_.I._setPressed=function(){};
_.I._setPointerDown=function(){};
_.I._setReceivedFocusFromKeyboard=function(){};
_.I._setFocused=function(){};
_.I._setRatio=function(){};
w3p=_.YH({_template:function(){if(TzH!==void 0)return TzH;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;itG===void 0&&(itG=document.createElement("template"));var D=itG;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return TzH=u},
is:"tp-yt-paper-slider",behaviors:[_.T7,_.gC,_.Cw2,PFI],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&&_.X3(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(u,K,l){this.setAttribute("aria-valuemin",K);this.setAttribute("aria-valuemax",l);this.setAttribute("aria-valuenow",u);this._positionKnob(this._calcRatio(u)*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(u){this._setImmediateValue(this._calcStep(this._calcKnobPosition(u)));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(u){return(this.max-this.min)*u/100+this.min},
_onTrack:function(u){u.stopPropagation();switch(u.detail.state){case "start":this._trackStart(u);break;case "track":this._trackX(u);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(u){this.dragging||this._trackStart(u);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,u.detail.dx*(this._isRTL?-1:1)));u=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(u);u=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(u+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var u=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;u.transform=u.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(u){this._expandKnob();u.preventDefault();this.focus()},
_bartrack:function(u){this._allowBarEvent(u)&&this._onTrack(u)},
_barclick:function(u){this._w=this.$.sliderBar.offsetWidth;var K=this.$.sliderBar.getBoundingClientRect();K=(u.detail.x-K.left)/this._w*100;this._isRTL&&(K=100-K);var l=this.ratio;this._setTransiting(!0);this._positionKnob(K);l===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
u.preventDefault();this.focus()},
_bardown:function(u){this._allowBarEvent(u)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(u))},
_knobTransitionEnd:function(u){u.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(u,K,l,D){D||this._setMarkers([]);K=Math.round((l-K)/this.step);K>u&&(K=u);if(K<0||!isFinite(K))K=0;this._setMarkers(Array(K))},
_mergeClasses:function(u){return Object.keys(u).filter(function(K){return u[K]}).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(u){return!this.ignoreBarTouch||u.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(u){this._isRTL?this._incrementKey(u):this._decrementKey(u)},
_rightKey:function(u){this._isRTL?this._decrementKey(u):this._incrementKey(u)},
_incrementKey:function(u){this.disabled||(u.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),u.preventDefault())},
_decrementKey:function(u){this.disabled||(u.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),u.preventDefault())},
_changeValue:function(u){this.value=u.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(u){u.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.dZA._createRipple.call(this)},
_focusedChanged:function(u){u&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=u?"":"none",this._ripple.holdDown=u)}});var FK2;var Vv_;var M4=null,gi_=function(){};
_.I=gi_.prototype;_.I.fit=function(){};
_.I._discoverInfo=function(){};
_.I.resetFit=function(){};
_.I.refit=function(){};
_.I.position=function(){};
_.I.constrain=function(){};
_.I._sizeDimension=function(){};
_.I.__sizeDimension=function(){};
_.I.center=function(){};
_.I.__getNormalizedRect=function(){};
_.I.__getOffscreenArea=function(){};
_.I.__getPosition=function(){};
_.I.notifyResize=function(){};
_.I.assignParentResizable=function(){};
_.I.stopResizeNotificationsFor=function(){};
_.I._subscribeIronResize=function(){};
_.I._unsubscribeIronResize=function(){};
_.I.resizerShouldNotify=function(){};
_.I._onDescendantIronResize=function(){};
_.I._fireResize=function(){};
_.I._onIronRequestResizeNotifications=function(){};
_.I._parentResizableChanged=function(){};
_.I._notifyDescendant=function(){};
_.I._requestResizeNotifications=function(){};
_.I._findParent=function(){};
_.I.toggle=function(){};
_.I.open=function(){};
_.I.close=function(){};
_.I.cancel=function(){};
_.I.invalidateTabbables=function(){};
_.I._ensureSetup=function(){};
_.I._canceledChanged=function(){};
_.I._withBackdropChanged=function(){};
_.I._prepareRenderOpened=function(){};
_.I._finishRenderOpened=function(){};
_.I._finishRenderClosed=function(){};
_.I._preparePositioning=function(){};
_.I._finishPositioning=function(){};
_.I._applyFocus=function(){};
_.I._onCaptureClick=function(){};
_.I._onCaptureFocus=function(){};
_.I._onCaptureEsc=function(){};
_.I._onCaptureTab=function(){};
_.I._onIronResize=function(){};
_.I._onNodesChange=function(){};
_.I.__ensureFirstLastFocusables=function(){};
_.I.__openedChanged=function(){};
_.I.__deraf=function(){};
_.I.__updateScrollObservers=function(){};
_.I.__addScrollListeners=function(){};
_.I.__removeScrollListeners=function(){};
_.I.__isValidScrollAction=function(){};
_.I.__onCaptureScroll=function(){};
_.I.__saveScrollPosition=function(){};
_.I.__restoreScrollPosition=function(){};
_.I._setCanceled=function(){};
gi_=_.YH({_template:function(){if(Vv_!==void 0)return Vv_;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;FK2===void 0&&(FK2=document.createElement("template"));var D=FK2;l.call(K,D.content.cloneNode(!0),u.content.firstChild);return Vv_=u},
is:"tp-yt-paper-toast",behaviors:[_.oP],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(){_.FG._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.d0.requestAvailability()},
show:function(u){typeof u=="string"&&(u={text:u});for(var K in u)K.indexOf("_")===0?_.FG._warn('The property "'+K+'" is private and was not set.'):K in this?this[K]=u[K]:_.FG._warn('The property "'+K+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(u){u&&u.target===this&&u.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(M4&&M4!==this&&M4.close(),M4=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):M4===this&&(M4=null);_.sU._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(u){this.positionTarget=u},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var NzH=new _.r3("disablePersonalizationAction");var O42=new _.r3("showDmaConsentFlowCommand");var cBp=new _.r3("showMmgNoticeCommand");var kEE=new _.r3("saveConsentAction");var ZtE=function(u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.m_(u)};
_.c(ZtE,_.b5);var Y7p=_.bMq(ZtE);var AFE=new _.r3("updateTopbarAvatarAction");var X3_=new _.r3("channelHandleValidationResultRenderer");var mGE=new _.r3("generateHandleFromNameResultRenderer");var h1G=new _.r3("channelHandleInputRenderer");var EiE=new _.r3("copyLinkRenderer");var LKk=new _.r3("timedCommand");var u5_=new _.r3("clearCookieAction");var KLE=new _.r3("getMultiPageMenuAction");var lTV=new _.r3("addToGuideSectionAction"),DsV=new _.r3("removeFromGuideSectionAction");var dsV=new _.r3("updateNotificationsUnseenCountAction");var CXI=new _.r3("resetChannelUnreadCountCommand");var IT_=new _.r3("resetSubscriptionsUnreadDotCommand");var yTp=new _.r3("selectLanguageCommand");var Tf2=new _.r3("sendFeedbackAction");var s8H=new _.r3("uploadImageToScottyCommand");var oxI=new _.r3("registerPromoCommand");var WLH=new _.r3("setPushNotificationsEnabledCommand");var H7V=new _.r3("desktopTopbarRenderer");var M_o=new _.r3("surveyFollowUpRenderer");var qjI=new _.r3("handlesClaimingRadioOptionRenderer");var $s2=new _.r3("hotkeyDialogRenderer");var nxp=new _.r3("modifyReportFormCommand");var rTV=new _.r3("accountLinkCommand");var vxG=new _.r3("accountUnlinkCommand");var Gtp=new _.r3("logAccountLinkingEventCommand");var t_I=new _.r3("guideCollapsibleEntryRenderer");var xsI=new _.r3("guideDownloadsEntryRenderer");var q4=new _.r3("guideEntryRenderer");var Sjk=new _.r3("getLocationCommand");var b7p=new _.r3("locationCollectionCommand");var O7B=new _.r3("storiesItemViewModel");var cTp=new _.r3("addToRemoteQueueAction");var aTp=new _.r3("insertInRemoteQueueAction");var z2i=new _.r3("removeFromRemoteQueueAction");var e2G=new _.r3("notificationRenderer");var sT6=new _.r3("localWatchHistoryCommand");var R2o=new _.r3("pdgBuyFlowHeaderRenderer");var Us_=new _.r3("pdgColorSliderRenderer");var fT_=new _.r3("pdgCommentOptionRenderer");var Q8G=new _.r3("pdgCommentPreviewRenderer");var PXo=new _.r3("superVodSelectableItemButtonRenderer");var JTG=new _.r3("switchButtonRenderer");var j8p=new _.r3("upsellDialogRenderer");var Bw2=new _.r3("feedbackQuestionRenderer"),pek=new _.r3("feedbackOptionRenderer");var i72=new _.r3("sponsorshipsTierRenderer"),Twp=new _.r3("sponsorshipsPromotionChannelRenderer");var wek=new _.r3("simpleSurveyMessageRenderer");var TYE=new _.r3("invokeInstrumentManagerAction");var FLk=new _.r3("logYpcFlowDismissCommand");var V_p=new _.r3("logYpcFlowStartCommand");var gx_=new _.r3("unlimitedCreateFamilyEndpoint");var NwV=new _.r3("iconBadgeRenderer");var oUV=new _.r3("collaborativePlaylistVisibilityValidationRule");var ktk=function(u){_.j3.call(this,"channelMessage");this.message=u};
_.c(ktk,_.j3);var Z7k=function(u){_.j3.call(this,"channelError");this.error=u};
_.c(Z7k,_.j3);var YjE={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"},ATE={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},XeV={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},msE={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},h2_={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var $t=function(u){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 _.z7;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;u&&(this.id=u.id||u.name,this.name=u.name,this.clientName=u.clientName?u.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=u.app,this.type=u.type||"REMOTE_CONTROL",this.username=u.user||"",this.avatar=u.userAvatarUri||"",this.obfuscatedGaiaId=u.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=u.ownerObfuscatedGaiaId||"",this.castUserId=u.castUserId||"",this.theme=u.theme||"u",ExE(this,u.capabilities||""),LLp(this,
u.compatibleSenderThemes||""),uOp(this,u.experiments||""),this.remoteControllerUrl=u.remoteControllerUrl||"",this.localChannelEncryptionKey=u.localChannelEncryptionKey||"",this.deviceContext=u.deviceContext,this.brand=u.brand||"",this.model=u.model||"",this.year=u.year||0,this.os=u.os||"",this.osVersion=u.osVersion||"",this.chipset=u.chipset||"",this.mdxDialServerType=u.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=u.pairingType||"unknown",u=u.deviceInfo)&&(u=JSON.parse(u),this.brand=
u.brand||"",this.model=u.model||"",this.year=u.year||0,this.os=u.os||"",this.osVersion=u.osVersion||"",this.chipset=u.chipset||"",this.clientName=u.clientName?u.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=u.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
$t.prototype.copy=function(){var u={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&&(u.brand=this.brand);
this.model&&(u.model=this.model);this.year&&(u.year=this.year);this.os&&(u.os=this.os);this.osVersion&&(u.osVersion=this.osVersion);this.chipset&&(u.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(u.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(u.mdxDialServerType=this.mdxDialServerType);u=new $t(u);u.connected=this.connected;u.remoteControllerUrl=this.remoteControllerUrl;u.localChannelEncryptionKey=this.localChannelEncryptionKey;u.deviceContext=
this.deviceContext;u.castUserId=this.castUserId;return u};
$t.prototype.equals=function(u){return u?this.id==u.id:!1};
var ExE=function(u,K){u.capabilities.clear();_.Of(K.split(","),_.Js(_.k$.contains,YjE)).forEach(function(l){u.capabilities.add(l)})},LLp=function(u,K){u.compatibleSenderThemes.clear();
_.Of(K.split(","),_.Js(_.k$.contains,ATE)).forEach(function(l){u.compatibleSenderThemes.add(l)})},uOp=function(u,K){u.experiments.clear();
K.split(",").forEach(function(l){u.experiments.add(l)})};var KH_=function(u,K){this.action=u;this.params=K||{}};_.Sa(QfB,_.TZ);_.I=QfB.prototype;_.I.JSC$19519_onTick_=function(){this.JSC$19517_interval_=Math.min(3E5,this.JSC$19517_interval_*2);this.JSC$19519_listener_();this.nextTickTime_&&this.start()};
_.I.start=function(){var u=this.JSC$19517_interval_+15E3*Math.random(),K=this.delay_;K.isActive()||K.start(u);this.nextTickTime_=Date.now()+u};
_.I.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.I.isActive=function(){return this.delay_.isActive()};
_.I.reset=function(){this.delay_.stop();this.JSC$19517_interval_=5E3};_.Sa(hv,R1E);_.I=hv.prototype;_.I.subscribe=function(u,K,l){return this.pubsub_.subscribe(u,K,l)};
_.I.unsubscribe=function(u,K,l){return this.pubsub_.unsubscribe(u,K,l)};
_.I.unsubscribeByKey=function(u){return this.pubsub_.unsubscribeByKey(u)};
_.I.publish=function(u,K){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.I.dispose=function(){this.JSC$19520_disposed_||(this.JSC$19520_disposed_=!0,_.qt(this.pubsub_),this.disconnect(),_.qt(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19520_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.zA({})})};
_.I.isDisposed=function(){return this.JSC$19520_disposed_};
_.I.connect=function(u,K,l){var D=this,d,C,W,M;return _.H(function(q){if(q.nextAddress==1)return _.BZ(q,2),D.useAsyncBrowserChannelHandler_?q.yield(D.connectPromise_,2):q.jumpTo(2);_.jj(q);if(D.JSC$19520_disposed_||D.JSC$19520_channel_&&D.JSC$19520_channel_.getState()==2)return q.return();D.sCookie_="";D.reconnectTimer_.stop();D.connectionParams_=u||null;D.connectUi_=K||0;d=D.JSC$19520_pathPrefix_+"/test";C=D.JSC$19520_pathPrefix_+"/bind";W=new oI(l?l.firstTestResults:null,l?l.secondTestResults:null,
D.enableAsyncTest_);if(M=D.JSC$19520_channel_)M.handler_=null;W.handler_=D;D.JSC$19520_channel_=W;if(D.useAsyncBrowserChannelHandler_)return D.connectPromise_=llH(D).then(function(){return D6G(D,d,C,M,l)}),q.return(D.connectPromise_.then(function(){D.connectPromise_=_.zA()}));
D6G(D,d,C,M,l);return _.pH(q,0)})};
var D6G=function(u,K,l,D,d){d6H(u);if(u.JSC$19520_channel_){var C=_.E3("ID_TOKEN"),W=u.JSC$19520_channel_.JSC$19472_extraHeaders_||{};C?W["x-youtube-identity-token"]=C:delete W["x-youtube-identity-token"];u.JSC$19520_channel_.JSC$19472_extraHeaders_=W}CfB(u);D?(D.getState(),u.JSC$19520_channel_.connect(K,l,u.defaultQueryParams_,D.sid_,D.JSC$19472_lastArrayId_)):d?u.JSC$19520_channel_.connect(K,l,u.defaultQueryParams_,d.sessionId,d.arrayId):u.JSC$19520_channel_.connect(K,l,u.defaultQueryParams_)};
hv.prototype.disconnect=function(u){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.zA())}finally{this.disconnectUi_=u||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),d6H(this),this.JSC$19520_channel_&&(this.JSC$19520_channel_.getState()==3&&bt_(this.JSC$19520_channel_),this.JSC$19520_channel_.disconnect()),this.disconnectUi_=0}};
hv.prototype.sendMessage=function(u,K){var l=this,D;return _.H(function(d){switch(d.nextAddress){case 1:_.BZ(d,2);if(!l.useAsyncBrowserChannelHandler_){d.jumpTo(2);break}return d.yield(l.connectPromise_,2);case 2:_.jj(d);if(l.JSC$19520_disposed_)return d.return();D={_sc:u};K&&_.k$.extend(D,K);if(l.reconnectTimer_.isActive()||(l.JSC$19520_channel_?l.JSC$19520_channel_.getState():0)==2){l.JSC$19520_pendingMessages_.push(D);d.jumpTo(6);break}if(!l.isChannelOpened()){d.jumpTo(6);break}_.BZ(d,8);if(!l.useAsyncBrowserChannelHandler_||
IlV(l,u)){d.jumpTo(8);break}return d.yield(llH(l),8);case 8:_.jj(d,0,0,1);l.isChannelOpened()&&(IlV(l,u)||CfB(l),d6H(l),S7V(l.JSC$19520_channel_,D));_.pH(d,6,1);break;case 6:_.pH(d,0)}})};
var IlV=function(u,K){return u.enableMdxAuthForConnectionOnly_?!0:u.disableMdxAuthForAdMessages_?Object.values(XeV).includes(K):u.disableMdxAuthForNonPlaybackMessages_?!Object.values(msE).includes(K):u.disableMdxAuthForShortsMessages_?Object.values(h2_).includes(K):!1};
hv.prototype.JSC$19479_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19520_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)yQB(this);else{var u=this.JSC$19520_pendingMessages_;this.JSC$19520_pendingMessages_=[];var K=u.length;CfB(this);su2(this,u,K);oKp(this)}else oKp(this)};
var yQB=function(u){var K,l;_.H(function(D){if(D.nextAddress==1)return _.BZ(D,2),D.yield(llH(u),2);_.jj(D);K=u.JSC$19520_pendingMessages_;u.JSC$19520_pendingMessages_=[];l=K.length;su2(u,K,l);oKp(u);return _.pH(D,0)})},su2=function(u,K,l){for(var D=0;D<l;++D)S7V(u.JSC$19520_channel_,K[D]);
oKp(u)},oKp=function(u){u.publish("handlerOpened");
u.JSC$19520_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.I=hv.prototype;_.I.JSC$19479_channelError=function(u){var K=u==2&&this.JSC$19520_channel_.JSC$19472_lastStatusCode_==401;u==4||K||this.reconnectTimer_.start();this.publish("handlerError",u,K);K=Object.keys(q76).find(function(l){return q76[l]===u});
this.JSC$19520_channelErrorCounter.increment("BROWSER_CHANNEL",K!=null?K:"UNKNOWN")};
_.I.JSC$19479_channelClosed=function(u,K){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(K)for(var l=K.length,D=0;D<l;++D){var d=K[D].map;d&&this.JSC$19520_pendingMessages_.push(d)}this.JSC$19520_channelClosedCounter.increment("BROWSER_CHANNEL");u&&this.pendingMapsOnClosedCounter.JSC$9861_streamzService.JSC$9714_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",u.length);K&&this.undeliveredMapsOnClosedCounter.JSC$9864_streamzService.JSC$9714_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
K.length)};
_.I.JSC$19479_channelSuccess=function(u,K){K!=null&&u!=null&&this.channelMessageSentCounter.increment()};
_.I.JSC$19479_getAdditionalParams=function(){var u={v:2};this.sCookie_&&(u.gsessionid=this.sCookie_);this.connectUi_!=0&&(u.ui=""+this.connectUi_);this.disconnectUi_!=0&&(u.ui=""+this.disconnectUi_);this.connectionParams_&&_.k$.extend(u,this.connectionParams_);return u};
_.I.JSC$19479_channelHandleArray=function(u){u[0]=="S"?this.sCookie_=u[1]:u[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19520_channel_.disconnect()):this.publish("handlerMessage",new KH_(u[0],u[1]));this.JSC$19520_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.I.isChannelOpened=function(){return!!this.JSC$19520_channel_&&this.JSC$19520_channel_.getState()==3};
var d6H=function(u){if(u.JSC$19520_channel_){var K=u.JSC$19520_getXsrfToken_(),l=u.JSC$19520_channel_.JSC$19472_extraHeaders_||{};K?l["x-youtube-lounge-xsrf-token"]=K:delete l["x-youtube-lounge-xsrf-token"];u.JSC$19520_channel_.JSC$19472_extraHeaders_=l}},llH=function(u){if(u.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.zA();
if(!u.enableCachedUpdateAuthorizationHeader_)return WH_(u);u.updateAuthorizationHeaderPromise_===null&&(u.updateAuthorizationHeaderPromise_=WH_(u));return u.updateAuthorizationHeaderPromise_},WH_=function(u){return _.Ne(u.getAuthorizationHeader_().then(function(K){Ho_(u,K)}).thenCatch(function(){}),function(){u.updateAuthorizationHeaderPromise_=null})},Ho_=function(u,K){if(u.JSC$19520_channel_){var l=u.JSC$19520_channel_.JSC$19472_extraHeaders_||{};
K&&Object.keys(K).length>0?l=Object.assign({},l,K):delete l.Authorization;u.JSC$19520_channel_.JSC$19472_extraHeaders_=l}},CfB=function(u){u.getAuthorizationHeaderSync_&&!u.useAsyncBrowserChannelHandler_&&Ho_(u,u.getAuthorizationHeaderSync_())};
_.I=hv.prototype;_.I.setLoungeToken=function(u){(this.defaultQueryParams_.loungeIdToken=u)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19520_channel_){var K=this.JSC$19520_channel_.JSC$19472_extraHeaders_||{};u?K["X-YouTube-LoungeId-Token"]=u:delete K["X-YouTube-LoungeId-Token"];this.JSC$19520_channel_.JSC$19472_extraHeaders_=K}};
_.I.getDeviceId=function(){return this.defaultQueryParams_.id};
_.I.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.I.reconnect=function(){var u=this.reconnectTimer_;u.delay_.fire();u.start()};
_.I.safeReconnect_=function(){var u=this.JSC$19520_channel_,K=0;u.JSC$19472_backChannelRequest_&&K++;u.forwardChannelRequest_&&K++;K==0&&this.connect(this.connectionParams_,this.connectUi_)};var dc=function(u,K){var l=u.basePath;u.supportCors&&(l=u.scheme+"://"+u.domain+u.port+u.basePath);return _.Hv(l+K,{})};
EX.prototype.sendRequest=function(u,K,l,D,d,C,W){u={format:C?"RAW":"JSON",method:u,context:this,timeout:5E3,withCredentials:!!W,onSuccess:_.Js(this.JSC$19525_onSuccess_,D,!C),onError:_.Js(this.onError_,d),onTimeout:_.Js(this.JSC$19525_onTimeout_,d)};l&&(u.postParams=l,u.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.UP(K,u)};
EX.prototype.JSC$19525_onSuccess_=function(u,K,l,D){K?u(D):u({text:l.responseText})};
EX.prototype.onError_=function(u,K){u(Error("Dk`"+K.status))};
EX.prototype.JSC$19525_onTimeout_=function(u){u(Error("Ek"))};var u9=function(u,K){return!!K&&(u.id==K||u.uuid==K)},MKV=function(u){return{name:u.name,
screenId:u.id,loungeToken:u.token,dialId:u.uuid,screenIdType:u.idType}},q$p=function(u){return new Lb(u)},$6I=function(u){return Array.isArray(u)?_.ZM(u,q$p):[]},Vtp=function(u){if(!u)return"null";
var K=u.token?".."+u.token.slice(-6):"-",l=u.uuid?".."+u.uuid.slice(-6):"-";return'{name:"'+u.name+'",id:'+u.id.substr(0,6)+"..,token:"+(K+",uuid:"+l+",idType:"+u.idType+"}")},nOi=function(u){return Array.isArray(u)?"["+_.ZM(u,Vtp).join(",")+"]":"null"};var XiE="",DD=null;var duG=function(u,K){_.wx.call(this);var l=this;this.handler=u();this.handler.subscribe("handlerOpened",this.JSC$19532_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(D,d){l.onError(d)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=K};
_.c(duG,_.wx);_.I=duG.prototype;_.I.connect=function(u,K,l){this.handler.connect(u,K,l)};
_.I.disconnect=function(u){this.handler.disconnect(u)};
_.I.reconnect=function(){this.handler.reconnect()};
_.I.getDeviceId=function(){return this.handler.getDeviceId()};
_.I.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.I.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.I.JSC$19532_onOpened=function(){this.dispatchEvent("channelOpened");var u=this.handler,K=this.currentScreenId;_.Uj("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!u.JSC$19520_channel_.useChunked_,sessionId:u.JSC$19520_channel_.sid_,arrayId:u.JSC$19520_channel_.JSC$19472_lastArrayId_});_.Uj("yt-remote-session-screen-id",K);u=gwk();K=NZE();_.Vn(u,K)||u.push(K);Au_(u);YV_()};
_.I.onClosed=function(){this.dispatchEvent("channelClosed")};
_.I.onMessage=function(u){this.dispatchEvent(new ktk(u))};
_.I.onError=function(u){this.dispatchEvent(new Z7k(u?1:0))};
_.I.sendMessage=function(u,K){this.handler.sendMessage(u,K)};
_.I.setLoungeToken=function(u){this.handler.setLoungeToken(u)};
_.I.dispose=function(){this.handler.dispose()};var DuI=function(u,K,l){var D=this;l=l===void 0?function(){return""}:l;
var d=d===void 0?new wdB:d;var C=C===void 0?new _.Qx:C;this.pathPrefix=u;this.defaultQueryParams=K;this.getXsrfToken=l;this.JSC$19535_pubsub=C;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new QfB(function(){var W;((W=D.channel)==null?void 0:zYE((new ggB(W,W.JSC$19443_channel_)).JSC$19453_channel_.forwardChannelRequestPool_))===0&&D.connect(D.connectionParams,D.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19535_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19535_channelOpenedCounter=new PhV;this.JSC$19535_channelClosedCounter=new JuG;this.JSC$19535_channelMessageReceivedCounter=new BZI;this.JSC$19535_channelErrorCounter=new piE};
DuI.prototype.connect=function(u,K){u=u===void 0?{}:u;K=K===void 0?0:K;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=u,this.connectUi=K,nKp(this),(u=_.E3("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=u: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 ld(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,rQk(this))};
var rQk=function(u){_.kU(u.channel,"w",function(){u.channelState=3;u.reconnectTimer.reset();u.connectionParams=null;u.connectUi=0;for(var K=_.y(u.nonAckedMessagesOnChannelClosed),l=K.next();!l.done;l=K.next())l=l.value,u.channel&&u.channel.send(l);u.nonAckedMessagesOnChannelClosed=[];u.publish("webChannelOpened");u.JSC$19535_channelOpenedCounter.increment("WEB_CHANNEL")});
_.kU(u.channel,"x",function(){u.channelState=0;u.reconnectTimer.isActive()||u.publish("webChannelClosed");var K,l=(K=u.channel)==null?void 0:N0_(new ggB(K,K.JSC$19443_channel_));l&&(u.nonAckedMessagesOnChannelClosed=[].concat(_.Am(l)));u.JSC$19535_channelClosedCounter.increment("WEB_CHANNEL")});
_.kU(u.channel,"z",function(K){var l=K.data;l[0]==="gracefulReconnect"?(u.reconnectTimer.start(),u.channel&&u.channel.close()):u.publish("webChannelMessage",new KH_(l[0],l[1]));u.lastStatusCode=K.statusCode;u.JSC$19535_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.kU(u.channel,"y",function(){u.lastStatusCode===401||u.reconnectTimer.start();u.publish("webChannelError");u.JSC$19535_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.I=DuI.prototype;_.I.disconnect=function(u){this.disconnectUi=u===void 0?0:u;this.reconnectTimer.stop();nKp(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.I.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.I.reconnect=function(){var u=this.reconnectTimer;u.delay_.fire();u.start()};
_.I.sendMessage=function(u,K){this.channel&&(nKp(this),u=Object.assign({},{_sc:u},K),this.channel.send(u))};
_.I.setLoungeToken=function(u){u||this.reconnectTimer.stop();u?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=u:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var nKp=function(u){var K=u.getXsrfToken();K?u.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=K:delete u.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.I=DuI.prototype;_.I.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.I.publish=function(u){return this.JSC$19535_pubsub.publish.apply(this.JSC$19535_pubsub,[u].concat(_.Am(_.uY.apply(1,arguments))))};
_.I.subscribe=function(u,K,l){return this.JSC$19535_pubsub.subscribe(u,K,l)};
_.I.unsubscribe=function(u,K,l){return this.JSC$19535_pubsub.unsubscribe(u,K,l)};
_.I.unsubscribeByKey=function(u){return this.JSC$19535_pubsub.unsubscribeByKey(u)};
_.I.dispose=function(){this.JSC$19535_disposed||(this.JSC$19535_disposed=!0,_.qt(this.JSC$19535_pubsub),this.disconnect(),_.qt(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.I.isDisposed=function(){return this.JSC$19535_disposed};var lUH=function(u){_.wx.call(this);this.webChannelService=u();this.webChannelService.subscribe("webChannelOpened",this.JSC$19543_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.c(lUH,_.wx);_.I=lUH.prototype;_.I.connect=function(u,K){this.webChannelService.connect(u,K)};
_.I.disconnect=function(u){this.webChannelService.disconnect(u)};
_.I.reconnect=function(){this.webChannelService.reconnect()};
_.I.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.I.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.I.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.I.JSC$19543_onOpened=function(){this.dispatchEvent("channelOpened")};
_.I.onClosed=function(){this.dispatchEvent("channelClosed")};
_.I.onMessage=function(u){this.dispatchEvent(new ktk(u))};
_.I.onError=function(){this.dispatchEvent(new Z7k(this.webChannelService.lastStatusCode===401?1:0))};
_.I.sendMessage=function(u,K){this.webChannelService.sendMessage(u,K)};
_.I.setLoungeToken=function(u){this.webChannelService.setLoungeToken(u)};
_.I.dispose=function(){this.webChannelService.dispose()};var $uI=Date.now(),Cv=null,MtB=Array(50),s1=-1,qd2=!1;_.Sa(oJ,_.tv);oJ.prototype.getScreens=function(){return this.screens};
oJ.prototype.contains=function(u){return!!VZE(this.screens,u)};
oJ.prototype.get=function(u){return u?Kv(this.screens,u):null};
var vK6=function(u,K){var l=u.get(K.uuid)||u.get(K.id);if(l)return u=l.name,l.id=K.id||l.id,l.name=K.name,l.token=K.token,l.uuid=K.uuid||l.uuid,l.name!=u;u.screens.push(K);return!0},GF2=function(u,K){var l=u.screens.length!=K.length;
u.screens=_.Of(u.screens,function(C){return!!VZE(K,C)});
for(var D=K.length,d=0;d<D;d++)l=vK6(u,K[d])||l;return l},tKi=function(u,K){var l=u.screens.length;
u.screens=_.Of(u.screens,function(D){return!(D||K?!D!=!K?0:D.id==K.id:1)});
return u.screens.length<l};
oJ.prototype.info=function(u){IJ(this.JSC$19544_logName_,u)};var x6o=function(u,K,l,D,d){_.tv.call(this);this.JSC$19547_http_=u;this.pairingCode_=K;this.deviceId_=l;this.friendlyName_=D;this.enableShortLivedLoungeToken_=d;this.pollIndex_=0;this.JSC$19547_xhr_=null;this.JSC$19547_timer_=NaN};
_.c(x6o,_.tv);_.I=x6o.prototype;_.I.start=function(){!this.JSC$19547_xhr_&&isNaN(this.JSC$19547_timer_)&&this.poll_()};
_.I.stop=function(){this.JSC$19547_xhr_&&(this.JSC$19547_xhr_.abort(),this.JSC$19547_xhr_=null);isNaN(this.JSC$19547_timer_)||(_.eg(this.JSC$19547_timer_),this.JSC$19547_timer_=NaN)};
_.I.disposeInternal=function(){this.stop();_.tv.prototype.disposeInternal.call(this)};
_.I.poll_=function(){this.JSC$19547_timer_=NaN;this.JSC$19547_xhr_=_.UP(dc(this.JSC$19547_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.wB)(this.JSC$19549_onSuccess_,this),onError:(0,_.wB)(this.onError_,this),onTimeout:(0,_.wB)(this.JSC$19549_onTimeout_,this)})};
_.I.JSC$19549_onSuccess_=function(u,K){this.JSC$19547_xhr_=null;u=K.screen||{};u.dialId=this.deviceId_;u.name=this.friendlyName_;K=-1;this.enableShortLivedLoungeToken_&&u.shortLivedLoungeToken&&u.shortLivedLoungeToken.value&&u.shortLivedLoungeToken.refreshIntervalMs&&(u.screenIdType="shortLived",u.loungeToken=u.shortLivedLoungeToken.value,K=u.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new Lb(u),K)};
_.I.onError_=function(u){this.JSC$19547_xhr_=null;u.status&&u.status==404?this.pollIndex_>=S$I.length?this.publish("pairingFailed",Error("Fk")):(u=S$I[this.pollIndex_],this.JSC$19547_timer_=_.aK((0,_.wB)(this.poll_,this),u),this.pollIndex_++):this.publish("pairingFailed",Error("Gk`"+u.status))};
_.I.JSC$19549_onTimeout_=function(){this.JSC$19547_xhr_=null;this.publish("pairingFailed",Error("Hk"))};
var S$I=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Sa(Hg,oJ);_.I=Hg.prototype;_.I.start=function(){Wg(this)&&this.publish("screenChange");!_.f7("yt-remote-lounge-token-expiration")&&boI(this);_.eg(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.aK((0,_.wB)(this.start,this),1E4)};
_.I.add=function(u,K){Wg(this);vK6(this,u);Oo2(this,!1);this.publish("screenChange");K(u);u.token||boI(this)};
_.I.remove=function(u,K){var l=Wg(this);tKi(this,u)&&(Oo2(this,!1),l=!0);K(u);l&&this.publish("screenChange")};
_.I.updateName=function(u,K,l,D){var d=Wg(this),C=this.get(u.id);C?(C.name!=K&&(C.name=K,Oo2(this,!1),d=!0),l(u)):D(Error("Ik"));d&&this.publish("screenChange")};
_.I.disposeInternal=function(){_.eg(this.loungeTokenRefreshTimer_);Hg.superClass_.disposeInternal.call(this)};
var boI=function(u){if(u.screens.length){var K=_.ZM(u.screens,function(D){return D.id}),l=dc(u.JSC$19551_http_,"/pairing/get_lounge_token_batch");
u.JSC$19551_http_.sendRequest("POST",l,{screen_ids:K.join(",")},(0,_.wB)(u.handleLoungeTokens_,u),(0,_.wB)(u.handleLoungeTokenError_,u))}};
Hg.prototype.handleLoungeTokens_=function(u){Wg(this);var K=this.screens.length;u=u&&u.screens||[];for(var l=u.length,D=0;D<l;++D){var d=u[D],C=this.get(d.screenId);C&&(C.token=d.loungeToken,--K)}Oo2(this,!K);K&&IJ(this.JSC$19544_logName_,"Missed "+K+" lounge tokens.")};
Hg.prototype.handleLoungeTokenError_=function(u){IJ(this.JSC$19544_logName_,"Requesting lounge tokens failed: "+u)};
var Wg=function(u){if(_.S("deprecate_pair_servlet_enabled"))return GF2(u,[]);var K=$6I(h8i());K=_.Of(K,function(l){return!l.uuid});
return GF2(u,K)},Oo2=function(u,K){LGB(_.ZM(u.screens,MKV));
K&&Ew6()};var nw=function(u,K){_.tv.call(this);this.getScreensToCheck_=K;K=(K=_.f7("yt-remote-online-screen-ids")||"")?K.split(","):[];for(var l={},D=this.getScreensToCheck_(),d=D.length,C=0;C<d;++C){var W=D[C].id;l[W]=_.Vn(K,W)}this.screenIdSet_=l;this.JSC$19554_http_=u;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;cQI("Initialized with "+(0,_.Yz)(this.screenIdSet_))};
_.c(nw,_.tv);nw.prototype.isOnline=function(u){return!!this.screenIdSet_[u]};
nw.prototype.start=function(){var u=parseInt(_.f7("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.x2()-144E5<u?0:u)?alG(this):(this.fastCheckEndTime_=_.x2()+3E5,_.Uj("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
nw.prototype.isEmpty=function(){return _.k$.isEmpty(this.screenIdSet_)};
nw.prototype.update=function(){cQI("Updating availability on schedule.");var u=this.getScreensToCheck_(),K=_.k$.filter(this.screenIdSet_,function(l,D){return l&&!!Kv(u,D)},this);
zDE(this,K)};
var eD6=function(u,K,l){var D=dc(u.JSC$19554_http_,"/pairing/get_screen_availability");u.JSC$19554_http_.sendRequest("POST",D,{lounge_token:K.token},(0,_.wB)(function(d){d=d.screens||[];for(var C=d.length,W=0;W<C;++W)if(d[W].loungeToken==K.token){l(d[W].status=="online");return}l(!1)},u),(0,_.wB)(function(){l(!1)},u))};
nw.prototype.disposeInternal=function(){_.eg(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.tv.prototype.disposeInternal.call(this)};
var zDE=function(u,K){a:if(_.k$.getCount(K)!=_.k$.getCount(u.screenIdSet_))var l=!1;else{l=_.k$.getKeys(K);for(var D=l.length,d=0;d<D;++d)if(!u.screenIdSet_[l[d]]){l=!1;break a}l=!0}l||(cQI("Updated online screens: "+(0,_.Yz)(u.screenIdSet_)),u.screenIdSet_=K,u.publish("screenChange"));RDV(u)},alG=function(u){isNaN(u.refreshTimer_)||_.eg(u.refreshTimer_);
u.refreshTimer_=_.aK((0,_.wB)(u.requestScreenAvailability_,u),u.fastCheckEndTime_>0&&u.fastCheckEndTime_<_.x2()?2E4:1E4)};
nw.prototype.requestScreenAvailability_=function(){_.eg(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var u=U62(this);if(_.k$.getCount(u)){var K=dc(this.JSC$19554_http_,"/pairing/get_screen_availability"),l={lounge_token:_.k$.getKeys(u).join(",")};this.currentRequest_=this.JSC$19554_http_.sendRequest("POST",K,l,(0,_.wB)(this.onScreenAvailability_,this,u),(0,_.wB)(this.onScreenAvailabilityError_,this))}else zDE(this,{}),alG(this)};
nw.prototype.onScreenAvailability_=function(u,K){this.currentRequest_=null;var l=_.k$.getKeys(U62(this));if(_.sB(l,_.k$.getKeys(u))){K=K.screens||[];l={};for(var D=K.length,d=0;d<D;++d)l[u[K[d].loungeToken]]=K[d].status=="online";zDE(this,l);alG(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
nw.prototype.onScreenAvailabilityError_=function(u){this.warn_("Screen availability failed: "+u);this.currentRequest_=null;alG(this)};
var cQI=function(u){IJ("OnlineScreenService",u)};
nw.prototype.warn_=function(u){IJ("OnlineScreenService",u)};
var U62=function(u){var K={};_.yx(u.getScreensToCheck_(),function(l){l.token?K[l.token]=l.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return K},RDV=function(u){u=_.k$.getKeys(_.k$.filter(u.screenIdSet_,function(K){return K}));
u.sort(_.ym);u.length?_.Uj("yt-remote-online-screen-ids",u.join(","),60):_.Q1("yt-remote-online-screen-ids")};_.Sa(M3,oJ);_.I=M3.prototype;_.I.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.I.add=function(u,K,l){this.localScreenService_.add(u,K,l)};
_.I.remove=function(u,K,l){this.localScreenService_.remove(u,K,l);this.onlineScreenService_.update()};
_.I.updateName=function(u,K,l,D){this.localScreenService_.contains(u)?this.localScreenService_.updateName(u,K,l,D):(u="Updating name of unknown screen: "+u.name,IJ(this.JSC$19544_logName_,u),D(Error(u)))};
_.I.getScreens=function(u){return u?this.screens:s92(this.screens,_.Of(this.automaticScreens_,function(K){return!this.contains(K)},this))};
_.I.JSC$19559_getOnlineScreens=function(){return _.Of(this.getScreens(!0),function(u){return this.onlineScreenService_.isOnline(u.id)},this)};
var QuV=function(u,K,l,D,d,C){u.info("getAutomaticScreenByIds "+l+" / "+K);l||(l=u.deviceToScreenId_[K]);var W=u.getScreens(),M=l?Kv(W,l):null;l&&(u.disableAutomaticScreenCache_||M)||(M=Kv(W,K));if(M){M.uuid=K;var q=rG(u,M);eD6(u.onlineScreenService_,q,function(v){d(v?q:null)})}else l?flV(u,l,(0,_.wB)(function(v){var G=rG(this,new Lb({name:D,
screenId:l,loungeToken:v,dialId:K||""}));eD6(this.onlineScreenService_,G,function(t){d(t?G:null)})},u),C):d(null)};
M3.prototype.JSC$19559_getScreenByPollingPairingCode=function(u,K,l,D,d,C){var W=this;this.info("getDialScreenByPairingCode "+u+" / "+K);var M=new x6o(this.JSC$19557_http_,u,K,l,D);M.subscribe("pairingComplete",function(q,v){_.qt(M);d(rG(W,q),v)});
M.subscribe("pairingFailed",function(q){_.qt(M);C(q)});
M.start();return(0,_.wB)(M.stop,M)};
var Pfp=function(u,K){for(var l=u.screens.length,D=0;D<l;++D)if(u.screens[D].name==K)return u.screens[D];return null};
M3.prototype.JSC$19559_getScreenByPairingCode=function(u,K,l,D){_.UP(dc(this.JSC$19557_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:u},timeout:5E3,onSuccess:(0,_.wB)(function(d,C){d=new Lb(C.screen||{});if(!d.name||Pfp(this,d.name)){a:{C=d.name;for(var W=2,M=K(C,W);Pfp(this,M);){W++;if(W>20)break a;M=K(C,W)}C=M}d.name=C}l(rG(this,d))},this),
onError:(0,_.wB)(function(d){D(Error("Jk`"+d.status))},this),
onTimeout:(0,_.wB)(function(){D(Error("Kk"))},this)})};
var JQB=function(u,K,l){eD6(u.onlineScreenService_,K,l)};
M3.prototype.disposeInternal=function(){_.qt(this.localScreenService_);_.qt(this.onlineScreenService_);M3.superClass_.disposeInternal.call(this)};
var flV=function(u,K,l,D){u.info("requestLoungeToken_ for "+K);var d={postParams:{screen_ids:K},method:"POST",context:u,onSuccess:function(C,W){C=W&&W.screens||[];C[0]&&C[0].screenId==K?l(C[0].loungeToken):D(Error("Lk"))},
onError:function(){D(Error("Mk"))}};
_.UP(dc(u.JSC$19557_http_,"/pairing/get_lounge_token_batch"),d)},ju_=function(u){u.screens=u.localScreenService_.getScreens();
for(var K=_.k$.transpose(u.deviceToScreenId_),l=u.screens.length,D=0;D<l;++D){var d=u.screens[D];d.uuid=K[d.id]||""}u.info("Updated manual screens: "+nOi(u.screens))};
M3.prototype.handleScreenChange_=function(){ju_(this);this.publish("screenChange");this.onlineScreenService_.update()};
var r_V=function(u){BhI(u);u.localScreenService_=new Hg(u.JSC$19557_http_);u.localScreenService_.subscribe("screenChange",(0,_.wB)(u.handleScreenChange_,u));ju_(u);u.disableAutomaticScreenCache_||(u.automaticScreens_=$6I(_.f7("yt-remote-automatic-screen-cache")||[]));BhI(u);u.info("Initializing automatic screens: "+nOi(u.automaticScreens_));u.onlineScreenService_=new nw(u.JSC$19557_http_,(0,_.wB)(u.getScreens,u,!0));u.onlineScreenService_.subscribe("screenChange",(0,_.wB)(function(){this.publish("onlineScreenChange")},
u))},rG=function(u,K){var l=u.get(K.id);
l?(l.uuid=K.uuid,K=l):((l=Kv(u.automaticScreens_,K.uuid))?(l.id=K.id,l.token=K.token,K=l):u.automaticScreens_.push(K),u.disableAutomaticScreenCache_||p2V(u));BhI(u);u.deviceToScreenId_[K.uuid]=K.id;_.Uj("yt-remote-device-id-map",u.deviceToScreenId_,31536E3);return K},p2V=function(u){u=_.Of(u.automaticScreens_,function(K){return K.idType!="shortLived"});
_.Uj("yt-remote-automatic-screen-cache",_.ZM(u,MKV))},BhI=function(u){u.deviceToScreenId_=_.f7("yt-remote-device-id-map")||{}};
M3.prototype.dispose=M3.prototype.dispose;_.Sa(q3,_.tv);var vq=function(u,K){u.screen_=K;u.publish("sessionScreen",u.screen_)},ioi=function(u,K){u.screen_&&(u.screen_.token=K,rG(u.JSC$19561_screenService_,u.screen_));
u.publish("sessionScreen",u.screen_)};
q3.prototype.onSessionStopped=function(u){this.isDisposed()||(u&&(G0(this,""+u),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
q3.prototype.info=function(u){IJ(this.JSC$19561_logName_,u)};
var G0=function(u,K){IJ(u.JSC$19561_logName_,K)};
q3.prototype.JSC$19563_getCastSession=function(){return null};
q3.prototype.setDisplayStatus=function(u){var K=this.receiver_;u?(K.displayStatus=new chrome.cast.ReceiverDisplayStatus(u,[]),K.displayStatus.showStop=!0):K.displayStatus=null;chrome.cast.setReceiverDisplayStatus(K,(0,_.wB)(function(){this.info("Updated receiver status for "+K.friendlyName+": "+u)},this),(0,_.wB)(function(){G0(this,"Failed to update receiver status for: "+K.friendlyName)},this))};
q3.prototype.disposeInternal=function(){this.setDisplayStatus("");q3.superClass_.disposeInternal.call(this)};var tf=function(u,K,l){q3.call(this,u,K,"CastSession");var D=this;this.config_=l;this.JSC$19566_session_=null;this.JSC$19566_boundSessionUpdate_=(0,_.wB)(this.JSC$19568_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.wB)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.aK(function(){ThE(D,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19566_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19566_isInitLoungeToken_=!1;this.JSC$19566_lastLoungeTokenRefreshError_="unknown"};
_.c(tf,q3);_.I=tf.prototype;
_.I.setCastSession=function(u){if(this.JSC$19566_session_){if(this.JSC$19566_session_==u)return;G0(this,"Overriding cast session with new session object");w2p(this);this.JSC$19566_isInitLoungeToken_=!1;this.JSC$19566_lastLoungeTokenRefreshError_="unknown";this.JSC$19566_session_.removeUpdateListener(this.JSC$19566_boundSessionUpdate_);this.JSC$19566_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19566_session_=u;this.JSC$19566_session_.addUpdateListener(this.JSC$19566_boundSessionUpdate_);this.JSC$19566_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);FHo(this,"getMdxSessionStatus")};
_.I.launchWithParams=function(u){this.info("launchWithParams no-op for Cast: "+(0,_.Yz)(u))};
_.I.stop=function(){if(this.JSC$19566_session_)this.JSC$19566_session_.stop((0,_.wB)(function(){this.onSessionStopped()},this),(0,_.wB)(function(){this.onSessionStopped(Error("Nk"))},this));
else this.onSessionStopped(Error("Ok"))};
_.I.setDisplayStatus=function(){};
_.I.disposeInternal=function(){this.info("disposeInternal");w2p(this);this.JSC$19566_session_&&(this.JSC$19566_session_.removeUpdateListener(this.JSC$19566_boundSessionUpdate_),this.JSC$19566_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19566_session_=null;q3.prototype.disposeInternal.call(this)};
var gK_=function(u,K){_.eg(u.getLoungeTokenTimeoutKey_);u.getLoungeTokenTimeoutKey_=0;K==0?VKH(u):u.getLoungeTokenTimeoutKey_=_.aK(function(){VKH(u)},K)},VKH=function(u){FHo(u,"getLoungeToken");
_.eg(u.onLoungeTokenTimeoutKey_);u.onLoungeTokenTimeoutKey_=_.aK(function(){NhB(u,null)},3E4)},FHo=function(u,K){u.info("sendYoutubeMessage_: "+K+" "+(0,_.Yz)(void 0));
var l={};l.type=K;u.JSC$19566_session_?u.JSC$19566_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",l,function(){},(0,_.wB)(function(){G0(this,"Failed to send message: "+K+".")},u)):G0(u,"Sending yt message without session: "+(0,_.Yz)(l))};
tf.prototype.onYoutubeMessage_=function(u,K){if(!this.isDisposed())if(K)if(K=(0,_.gM)(K),_.Ks(K))switch(u=""+K.type,K=K.data||{},this.info("onYoutubeMessage_: "+u+" "+(0,_.Yz)(K)),u){case "mdxSessionStatus":ThE(this,K);break;case "loungeToken":NhB(this,K);break;default:G0(this,"Unknown youtube message: "+u)}else G0(this,"Unable to parse message.");else G0(this,"No data in message.")};
var kFo=function(u,K){if(K)u.info("onConnectedScreenId_: Received screenId: "+K),u.screen_&&u.screen_.id==K||u.getScreen_(K,function(l){vq(u,l)},function(){return u.onSessionStopped()},5);
else u.onSessionStopped(Error("Pk"))},Y$2=function(u,K,l){u.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(K));
var D=new Lb(K);ZoI(u,D,function(d){d?(u.JSC$19566_isInitLoungeToken_=!0,rG(u.JSC$19561_screenService_,D),vq(u,D),u.JSC$19566_lastLoungeTokenRefreshError_="unknown",gK_(u,l)):(_.uZ(Error("Qk`"+JSON.stringify(K))),u.onSessionStopped())},5)},ThE=function(u,K){_.eg(u.sessionStatusTimeoutKey_);
u.sessionStatusTimeoutKey_=0;if(K)u.config_.enableCastLoungeToken&&K.loungeToken?K.deviceId?u.screen_&&u.screen_.uuid==K.deviceId||(K.loungeTokenRefreshIntervalMs?Y$2(u,{name:u.receiver_.friendlyName,screenId:K.screenId,loungeToken:K.loungeToken,dialId:K.deviceId,screenIdType:"shortLived"},K.loungeTokenRefreshIntervalMs):(_.uZ(Error("Sk`"+JSON.stringify(K))),kFo(u,K.screenId))):(_.uZ(Error("Rk`"+JSON.stringify(K))),kFo(u,K.screenId)):kFo(u,K.screenId);else u.onSessionStopped(Error("Pk"))},NhB=function(u,
K){_.eg(u.onLoungeTokenTimeoutKey_);
u.onLoungeTokenTimeoutKey_=0;var l=null;if(K)if(K.loungeToken){var D;((D=u.screen_)==null?void 0:D.token)==K.loungeToken&&(l="staleLoungeToken")}else l="missingLoungeToken";else l="noLoungeTokenResponse";l?(u.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(K)+", error: "+l)),u.JSC$19566_lastLoungeTokenRefreshError_=l,gK_(u,3E4)):(ioi(u,K.loungeToken),u.JSC$19566_isInitLoungeToken_=!1,u.JSC$19566_lastLoungeTokenRefreshError_="unknown",gK_(u,K.loungeTokenRefreshIntervalMs))};
tf.prototype.getScreen_=function(u,K,l,D){_.eg(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;QuV(this.JSC$19561_screenService_,this.receiver_.label,u,this.receiver_.friendlyName,(0,_.wB)(function(d){d?K(d):D>=0?(G0(this,"Screen "+u+" appears to be offline. "+D+" retries left."),this.getScreenTimeoutKey_=_.aK((0,_.wB)(this.getScreen_,this,u,K,l,D-1),300)):l(Error("Tk"))},this),l)};
var ZoI=function(u,K,l,D){_.eg(u.JSC$19566_checkScreenAvailabilityTimeoutKey_);u.JSC$19566_checkScreenAvailabilityTimeoutKey_=0;JQB(u.JSC$19561_screenService_,K,function(d){d||D<0?l(d):u.JSC$19566_checkScreenAvailabilityTimeoutKey_=_.aK(function(){ZoI(u,K,l,D-1)},300)})};
tf.prototype.JSC$19563_getCastSession=function(){return this.JSC$19566_session_};
tf.prototype.JSC$19568_onSessionUpdate_=function(u){this.isDisposed()||u||(G0(this,"Cast session died."),this.onSessionStopped())};
var w2p=function(u){_.eg(u.getScreenTimeoutKey_);u.getScreenTimeoutKey_=0;_.eg(u.JSC$19566_checkScreenAvailabilityTimeoutKey_);u.JSC$19566_checkScreenAvailabilityTimeoutKey_=0;_.eg(u.sessionStatusTimeoutKey_);u.sessionStatusTimeoutKey_=0;_.eg(u.onLoungeTokenTimeoutKey_);u.onLoungeTokenTimeoutKey_=0;_.eg(u.getLoungeTokenTimeoutKey_);u.getLoungeTokenTimeoutKey_=0};var xt=function(u,K,l,D){q3.call(this,u,K,"DialSession");this.config_=D;this.JSC$19570_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19570_theme_=l;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19570_deferredLaunchDeadlineTimer_=NaN;this.JSC$19570_boundSessionUpdate_=(0,_.wB)(this.JSC$19572_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19570_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19570_isInitLoungeToken_=!1;this.JSC$19570_lastLoungeTokenRefreshError_="unknown"};
_.c(xt,q3);xt.prototype.setCastSession=function(u){this.JSC$19570_session_=u;this.JSC$19570_session_.addUpdateListener(this.JSC$19570_boundSessionUpdate_)};
xt.prototype.launchWithParams=function(u){this.connectData_=u;this.deferredLaunch_()};
xt.prototype.stop=function(){AQE(this);if(this.JSC$19570_session_)this.JSC$19570_session_.stop((0,_.wB)(this.onSessionStopped,this,null),(0,_.wB)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
xt.prototype.disposeInternal=function(){AQE(this);this.JSC$19570_session_&&this.JSC$19570_session_.removeUpdateListener(this.JSC$19570_boundSessionUpdate_);this.JSC$19570_session_=null;q3.prototype.disposeInternal.call(this)};
var X2H=function(u){var K;return!!(u.config_.enableDialLoungeToken&&((K=u.JSC$19570_session_)==null?0:K.getDialAppInfo))},m6o=function(u){u.cancelPolling_=u.JSC$19561_screenService_.JSC$19559_getScreenByPollingPairingCode(u.reversePairingCode_,u.receiver_.label,u.receiver_.friendlyName,X2H(u),function(K,l){u.cancelPolling_=function(){};
u.JSC$19570_isInitLoungeToken_=!0;vq(u,K);K.idType=="shortLived"&&l>0&&SI(u,l)},function(K){u.cancelPolling_=function(){};
u.onSessionStopped(K)})};
xt.prototype.JSC$19572_onSessionUpdate_=function(u){this.isDisposed()||u||(G0(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var hDB=function(u){var K={};K.pairingCode=u.reversePairingCode_;K.theme=u.JSC$19570_theme_;Kdp()&&(K.env_useStageMdx=1);return _.fT(K)},EK2=function(u){return new Promise(function(K){u.reversePairingCode_=wip();
if(u.connectData_){var l=new chrome.cast.DialLaunchResponse(!0,hDB(u));K(l);m6o(u)}else u.deferredLaunch_=function(){_.eg(u.JSC$19570_deferredLaunchDeadlineTimer_);u.deferredLaunch_=function(){};
u.JSC$19570_deferredLaunchDeadlineTimer_=NaN;var D=new chrome.cast.DialLaunchResponse(!0,hDB(u));K(D);m6o(u)},u.JSC$19570_deferredLaunchDeadlineTimer_=_.aK(function(){u.deferredLaunch_()},100)})},u7_=function(u,K,l){u.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(K));
var D=new Lb(K);return(new Promise(function(d){LHH(u,D,function(C){C?(u.JSC$19570_isInitLoungeToken_=!0,rG(u.JSC$19561_screenService_,D),vq(u,D),SI(u,l)):_.uZ(Error("Vk`"+JSON.stringify(K)));d(C)},5)})).then(function(d){return d?new chrome.cast.DialLaunchResponse(!1):EK2(u)})},Kr6=function(u,K){var l=u.launchData_.receiver.label,D=u.receiver_.friendlyName;
return(new Promise(function(d){QuV(u.JSC$19561_screenService_,l,K,D,function(C){C&&C.token&&vq(u,C);d(C)},function(C){G0(u,"Failed to get DIAL screen: "+C);
d(null)})})).then(function(d){return d&&d.token?new chrome.cast.DialLaunchResponse(!1):EK2(u)})},LHH=function(u,K,l,D){_.eg(u.JSC$19570_checkScreenAvailabilityTimeoutKey_);
u.JSC$19570_checkScreenAvailabilityTimeoutKey_=0;JQB(u.JSC$19561_screenService_,K,function(d){d||D<0?l(d):u.JSC$19570_checkScreenAvailabilityTimeoutKey_=_.aK(function(){LHH(u,K,l,D-1)},300)})},SI=function(u,K){u.info("getDialAppInfoWithTimeout_ "+K);
X2H(u)&&(_.eg(u.getDialAppInfoTimeoutKey_),u.getDialAppInfoTimeoutKey_=0,K==0?lP2(u):u.getDialAppInfoTimeoutKey_=_.aK(function(){lP2(u)},K))},lP2=function(u){X2H(u)&&u.JSC$19570_session_.getDialAppInfo(function(K){u.info("getDialAppInfo dialLaunchData: "+JSON.stringify(K));
K=K.extraData||{};var l=null;if(K.loungeToken){var D;((D=u.screen_)==null?void 0:D.token)==K.loungeToken&&(l="staleLoungeToken")}else l="missingLoungeToken";l?(u.JSC$19570_lastLoungeTokenRefreshError_=l,SI(u,3E4)):(u.JSC$19570_isInitLoungeToken_=!1,u.JSC$19570_lastLoungeTokenRefreshError_="unknown",ioi(u,K.loungeToken),SI(u,K.loungeTokenRefreshIntervalMs))},function(K){u.info("getDialAppInfo error: "+K);
u.JSC$19570_lastLoungeTokenRefreshError_="noLoungeTokenResponse";SI(u,3E4)})},AQE=function(u){_.eg(u.JSC$19570_checkScreenAvailabilityTimeoutKey_);
u.JSC$19570_checkScreenAvailabilityTimeoutKey_=0;_.eg(u.getDialAppInfoTimeoutKey_);u.getDialAppInfoTimeoutKey_=0;u.cancelPolling_();u.cancelPolling_=function(){};
_.eg(u.JSC$19570_deferredLaunchDeadlineTimer_)};var bd=function(u,K){q3.call(this,u,K,"ManualSession");this.JSC$19574_deferredLaunchDeadlineTimer_=_.aK((0,_.wB)(this.launchWithParams,this,null),150)};
_.c(bd,q3);bd.prototype.stop=function(){this.onSessionStopped()};
bd.prototype.setCastSession=function(){};
bd.prototype.launchWithParams=function(){_.eg(this.JSC$19574_deferredLaunchDeadlineTimer_);this.JSC$19574_deferredLaunchDeadlineTimer_=NaN;var u=Kv(this.JSC$19561_screenService_.getScreens(),this.receiver_.label);if(u)vq(this,u);else this.onSessionStopped(Error("Wk"))};
bd.prototype.disposeInternal=function(){_.eg(this.JSC$19574_deferredLaunchDeadlineTimer_);this.JSC$19574_deferredLaunchDeadlineTimer_=NaN;q3.prototype.disposeInternal.call(this)};var vg=function(u,K){_.tv.call(this);this.config_=K;this.JSC$19577_screenService_=u;this.JSC$19577_appId_=K.appId||"233637DE";this.JSC$19577_theme_=K.theme||"cl";this.disableDial_=K.disableCastApi||!1;this.forceMirroring_=K.forceMirroring||!1;this.JSC$19577_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.wB)(this.onReceiverAction_,this)};
_.c(vg,_.tv);
vg.prototype.init=function(u,K){chrome.cast.timeout.requestSession=3E4;var l=new chrome.cast.SessionRequest(this.JSC$19577_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.S("desktop_enable_cast_connect")&&(l.androidReceiverCompatible=!0);this.disableDial_||(l.dialRequest=new chrome.cast.DialRequest("YouTube"));var D=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;u=u||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var d=(0,_.wB)(this.onReceiverUpdated_,
this);l=new chrome.cast.ApiConfig(l,(0,_.wB)(this.onSessionEstablished_,this),d,D,u);l.customDialLaunchCallback=(0,_.wB)(this.onDialLaunchRequested_,this);chrome.cast.initialize(l,(0,_.wB)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),oOG(),this.JSC$19577_screenService_.subscribe("onlineScreenChange",(0,_.wB)(this.JSC$19579_onScreenChange_,this)),this.customReceivers_=D1_(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.wB)(function(C){this.warn_("Failed to set initial custom receivers: "+(0,_.Yz)(C))},this)),this.publish("yt-remote-cast2-availability-change",OE(this)),K(!0))},this),(0,_.wB)(function(C){this.warn_("Failed to initialize API: "+(0,_.Yz)(C));
K(!1)},this))};
vg.prototype.setConnectedScreenStatus=function(u,K){cq("Setting connected screen ID: "+u+" -> "+K);if(this.JSC$19577_session_){var l=this.JSC$19577_session_.screen_;if(!u||l&&l.id!=u)cq("Unsetting old screen status: "+this.JSC$19577_session_.receiver_.friendlyName),aI(this,null)}if(u&&K){if(!this.JSC$19577_session_){u=Kv(this.JSC$19577_screenService_.getScreens(),u);if(!u){cq("setConnectedScreenStatus: Unknown screen.");return}if(u.idType=="shortLived"){cq("setConnectedScreenStatus: Screen with id type to be short lived.");
return}l=d1p(this,u);l||(cq("setConnectedScreenStatus: Connected receiver not custom..."),l=new chrome.cast.Receiver(u.uuid?u.uuid:u.id,u.name),l.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(l),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.wB)(function(D){this.warn_("Failed to set initial custom receivers: "+(0,_.Yz)(D))},this)));
cq("setConnectedScreenStatus: new active receiver: "+l.friendlyName);aI(this,new bd(this.JSC$19577_screenService_,l),!0)}this.JSC$19577_session_.setDisplayStatus(K)}else cq("setConnectedScreenStatus: no screen.")};
var d1p=function(u,K){return K?_.iL(u.customReceivers_,function(l){return u9(K,l.label)},u):null};
vg.prototype.setLaunchParams=function(u){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19577_session_?this.JSC$19577_session_.launchWithParams(u):this.warn_("Setting connection data without a session")};
vg.prototype.JSC$19579_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19577_session_?(this.JSC$19577_session_.stop(),aI(this,null)):cq("Stopping non-existing session")};
vg.prototype.requestSession=function(){chrome.cast.requestSession((0,_.wB)(this.onSessionEstablished_,this),(0,_.wB)(this.onSessionRequestFailed_,this))};
vg.prototype.disposeInternal=function(){this.JSC$19577_screenService_.unsubscribe("onlineScreenChange",(0,_.wB)(this.JSC$19579_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.AH(_.lZ("yt.mdx.remote.debug.handlers_")||[],IUo);_.qt(this.JSC$19577_session_);_.tv.prototype.disposeInternal.call(this)};
var cq=function(u){IJ("Controller",u)};
vg.prototype.warn_=function(u){IJ("Controller",u)};
var IUo=function(u){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(u)},OE=function(u){return u.hasCastReceiver_||!!u.customReceivers_.length||!!u.JSC$19577_session_},aI=function(u,K,l){K!=u.JSC$19577_session_&&(_.qt(u.JSC$19577_session_),(u.JSC$19577_session_=K)?(l?u.publish("yt-remote-cast2-receiver-resumed",K.receiver_):u.publish("yt-remote-cast2-receiver-selected",K.receiver_),K.subscribe("sessionScreen",(0,_.wB)(u.onSessionScreen_,u,K)),K.subscribe("sessionFailed",
function(){return CKk(u,K)}),K.screen_?u.publish("yt-remote-cast2-session-change",K.screen_):l&&u.JSC$19577_session_.launchWithParams(null)):u.publish("yt-remote-cast2-session-change",null))},CKk=function(u,K){u.JSC$19577_session_==K&&u.publish("yt-remote-cast2-session-failed")};
_.I=vg.prototype;_.I.onSessionScreen_=function(u,K){this.JSC$19577_session_==u&&(K||aI(this,null),this.publish("yt-remote-cast2-session-change",K))};
_.I.onReceiverAction_=function(u,K){if(!this.isDisposed())if(u)switch(u.friendlyName=chrome.cast.unescape(u.friendlyName),cq("onReceiverAction_ "+u.label+" / "+u.friendlyName+"-- "+K),K){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19577_session_)if(this.JSC$19577_session_.receiver_.label!=u.label)cq("onReceiverAction_: Stopping active receiver: "+this.JSC$19577_session_.receiver_.friendlyName),this.JSC$19577_session_.stop();else{cq("onReceiverAction_: Casting to active receiver.");this.JSC$19577_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19577_session_.screen_);break}switch(u.receiverType){case chrome.cast.ReceiverType.CUSTOM:aI(this,new bd(this.JSC$19577_screenService_,u));break;case chrome.cast.ReceiverType.DIAL:aI(this,new xt(this.JSC$19577_screenService_,u,this.JSC$19577_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:aI(this,new tf(this.JSC$19577_screenService_,u,this.config_));break;default:this.warn_("Unknown receiver type: "+u.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19577_session_&&
this.JSC$19577_session_.receiver_.label==u.label?this.JSC$19577_session_.stop():this.warn_("Stopping receiver w/o session: "+u.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.I.onDialLaunchRequested_=function(u){if(this.isDisposed())return Promise.reject(Error("Xk"));var K=u.receiver;K.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+K.friendlyName),K.receiverType=chrome.cast.ReceiverType.DIAL);var l=this.JSC$19577_session_?this.JSC$19577_session_.receiver_:null;if(!l||l.label!=K.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+K.friendlyName),Promise.reject(Error("Yk"));if(l&&l.label==K.label&&l.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19577_session_.screen_)return cq("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19577_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+l.receiverType+'" to "dial" for '+K.friendlyName);aI(this,new xt(this.JSC$19577_screenService_,K,this.JSC$19577_theme_,this.config_))}K=this.JSC$19577_session_;K.launchData_=u;K.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(u=K.launchData_.extraData||{},l=u.screenId||null,X2H(K)&&u.loungeToken?u.loungeTokenRefreshIntervalMs?u=u7_(K,{name:K.receiver_.friendlyName,screenId:u.screenId,loungeToken:u.loungeToken,dialId:K.launchData_.receiver.label,screenIdType:"shortLived"},u.loungeTokenRefreshIntervalMs):(_.uZ(Error("Uk`"+JSON.stringify(u))),u=Kr6(K,l)):u=Kr6(K,l)):u=EK2(K);return u};
_.I.onSessionEstablished_=function(u){var K=this;if(!this.isDisposed()&&!this.forceMirroring_){cq("New cast session ID: "+u.sessionId);var l=u.receiver;if(l.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19577_session_)if(l.receiverType==chrome.cast.ReceiverType.CAST)cq("Got resumed cast session before resumed mdx connection."),l.friendlyName=chrome.cast.unescape(l.friendlyName),aI(this,new tf(this.JSC$19577_screenService_,l,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var D=this.JSC$19577_session_.receiver_,d=Kv(this.JSC$19577_screenService_.getScreens(),D.label);d&&u9(d,l.label)&&D.receiverType!=chrome.cast.ReceiverType.CAST&&l.receiverType==chrome.cast.ReceiverType.CAST&&(cq("onSessionEstablished_: manual to cast session change "+l.friendlyName),_.qt(this.JSC$19577_session_),this.JSC$19577_session_=new tf(this.JSC$19577_screenService_,l,this.config_),this.JSC$19577_session_.subscribe("sessionScreen",(0,_.wB)(this.onSessionScreen_,this,this.JSC$19577_session_)),
this.JSC$19577_session_.subscribe("sessionFailed",function(){return CKk(K,K.JSC$19577_session_)}),this.JSC$19577_session_.launchWithParams(null));
this.JSC$19577_session_.setCastSession(u)}}};
_.I.JSC$19579_getCastSession=function(){return this.JSC$19577_session_?this.JSC$19577_session_.JSC$19563_getCastSession():null};
_.I.onSessionRequestFailed_=function(u){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.Yz)(u)),u.code!=chrome.cast.ErrorCode.CANCEL&&aI(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.I.onReceiverUpdated_=function(u){cq("Receiver availability updated: "+u);if(!this.isDisposed()){var K=OE(this);this.hasCastReceiver_=u==chrome.cast.ReceiverAvailability.AVAILABLE;OE(this)!=K&&this.publish("yt-remote-cast2-availability-change",OE(this))}};
var D1_=function(u){var K=u.JSC$19577_screenService_.JSC$19559_getOnlineScreens(),l=u.JSC$19577_session_&&u.JSC$19577_session_.receiver_;u=_.ZM(K,function(D){l&&u9(D,l.label)&&(l=null);var d=D.uuid?D.uuid:D.id,C=d1p(this,D);C?(C.label=d,C.friendlyName=D.name):(C=new chrome.cast.Receiver(d,D.name),C.receiverType=chrome.cast.ReceiverType.CUSTOM);return C},u);
l&&(l.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(l=new chrome.cast.Receiver(l.label,l.friendlyName),l.receiverType=chrome.cast.ReceiverType.CUSTOM),u.push(l));return u};
vg.prototype.JSC$19579_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=D1_(this),cq("Updating custom receivers: "+(0,_.Yz)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.wB)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",OE(this)))};
vg.prototype.setLaunchParams=vg.prototype.setLaunchParams;vg.prototype.setConnectedScreenStatus=vg.prototype.setConnectedScreenStatus;vg.prototype.stopSession=vg.prototype.JSC$19579_stopSession;vg.prototype.getCastSession=vg.prototype.JSC$19579_getCastSession;vg.prototype.requestSession=vg.prototype.requestSession;vg.prototype.init=vg.prototype.init;vg.prototype.dispose=vg.prototype.dispose;var IPp=_.oj(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),j7V=[],Oc6=_.Oy(IPp);var yi_=function(u){u.audioTrackId=null;u.trackData=null;u.playerState=-1;u.hasPrevious=!1;u.hasNext=!1;u.playerTime_=0;u.playerTimeAt_=_.x2();u.seekableStart_=0;u.seekableEnd_=0;u.duration_=0;u.loadedTime=0;u.liveIngestionTime_=NaN;u.isLive_=!1};
_.I=G4.prototype;
_.I.reset=function(u){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;u&&(this.index=u.index,this.listId=u.listId,this.videoId=u.videoId,this.playerState=u.playerState,this.volume=u.volume,this.muted=u.muted,this.audioTrackId=u.audioTrackId,this.trackData=u.trackData,this.hasPrevious=u.hasPrevious,this.hasNext=u.hasNext,this.playerTime_=u.playerTime,this.playerTimeAt_=u.playerTimeAt,this.seekableStart_=u.seekableStart,this.seekableEnd_=u.seekableEnd,this.duration_=u.duration,this.loadedTime=
u.loadedTime,this.liveIngestionTime_=u.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.I.stopPlayer=function(){this.index=-1;this.videoId="";yi_(this)};
_.I.isPlaying=function(){return this.playerState==1};
_.I.isBuffering=function(){return this.playerState==3};
_.I.isAdPlaying=function(){return this.playerState==1081};
var z0=function(u,K){u.playerTime_=K;u.playerTimeAt_=_.x2()},siH=function(u){switch(u.playerState){case 1:case 1081:return(_.x2()-u.playerTimeAt_)/1E3+u.playerTime_;
case -1E3:return 0}return u.playerTime_};
G4.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.x2()-this.playerTimeAt_)/1E3:0):this.duration_};
var oMI=function(u,K,l){var D=u.videoId;u.videoId=K;u.index=l;K!=D&&yi_(u)},WrI=function(u){var K={};
K.index=u.index;K.listId=u.listId;K.videoId=u.videoId;K.playerState=u.playerState;K.volume=u.volume;K.muted=u.muted;K.audioTrackId=u.audioTrackId;K.trackData=_.k$.unsafeClone(u.trackData);K.hasPrevious=u.hasPrevious;K.hasNext=u.hasNext;K.playerTime=u.playerTime_;K.playerTimeAt=u.playerTimeAt_;K.seekableStart=u.seekableStart_;K.seekableEnd=u.seekableEnd_;K.duration=u.duration_;K.loadedTime=u.loadedTime;K.liveIngestionTime=u.liveIngestionTime_;return K};
G4.prototype.clone=function(){return new G4(WrI(this))};var eI=function(u,K){_.tv.call(this);var l=this;this.state_=0;this.connection_=u;this.contextSubscriptions_=[];this.actionQueue_=new fJk;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.wB)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.wB)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.wB)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.wB)(this.onCloudviewAvailabilityChange_,this);var D=0;u?(D=u.getProxyState(),
D!=3&&(u.subscribe("proxyStateChange",this.setState_,this),Hl2(this))):D=3;D!=0&&(K?this.setState_(D):_.aK(function(){l.setState_(D)},0));
(u=Te6())&&Moi(this,u);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.c(eI,_.tv);eI.prototype.getState=function(){return this.state_};
eI.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
eI.prototype.reconnect=function(){this.connection_.reconnect()};
var RI=function(u){return new G4(u.connection_.getPlayerContextData())};
_.I=eI.prototype;_.I.play=function(){UE(this)?(this.castMedia_?this.castMedia_.play(null,_.iO,qep(this,"play")):fw(this,"play"),$12(this,1,siH(RI(this))),this.publish("remotePlayerChange")):Q6(this,this.play)};
_.I.pause=function(){UE(this)?(this.castMedia_?this.castMedia_.pause(null,_.iO,qep(this,"pause")):fw(this,"pause"),$12(this,2,siH(RI(this))),this.publish("remotePlayerChange")):Q6(this,this.pause)};
_.I.seekTo=function(u){if(UE(this)){if(this.castMedia_){var K=RI(this),l=new chrome.cast.media.SeekRequest;l.currentTime=u;K.isPlaying()||K.isBuffering()?l.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:l.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(l,_.iO,qep(this,"seekTo",{newTime:u}))}else fw(this,"seekTo",{newTime:u});$12(this,3,u);this.publish("remotePlayerChange")}else Q6(this,_.Js(this.seekTo,u))};
_.I.stop=function(){if(UE(this)){this.castMedia_?this.castMedia_.stop(null,_.iO,qep(this,"stopVideo")):fw(this,"stopVideo");var u=RI(this);u.stopPlayer();Pq(this,u);this.publish("remotePlayerChange")}else Q6(this,this.stop)};
_.I.setVolume=function(u,K){if(UE(this)){var l=RI(this);if(this.castSession_){if(l.volume!=u){var D=Math.round(u)/100;this.castSession_.setReceiverVolumeLevel(D,(0,_.wB)(function(){yE("set receiver volume: "+D)},this),(0,_.wB)(function(){this.warn_("failed to set receiver volume.")},this))}l.muted!=K&&this.castSession_.setReceiverMuted(K,(0,_.wB)(function(){yE("set receiver muted: "+K)},this),(0,_.wB)(function(){this.warn_("failed to set receiver muted.")},this))}else{var d={volume:u,
muted:K};l.volume!=-1&&(d.delta=u-l.volume);fw(this,"setVolume",d)}l.muted=K;l.volume=u;Pq(this,l)}else Q6(this,_.Js(this.setVolume,u,K))};
_.I.setAudioTrack=function(u,K){UE(this)?(K=K.getLanguageInfo().getId(),fw(this,"setAudioTrack",{videoId:u,audioTrackId:K}),u=RI(this),u.audioTrackId=K,Pq(this,u)):Q6(this,_.Js(this.setAudioTrack,u,K))};
_.I.addVideo=function(u){UE(this)?fw(this,"addVideo",{videoId:u}):Q6(this,_.Js(this.addVideo,u))};
_.I.addPlaylist=function(u){UE(this)?fw(this,"addVideos",{listId:u}):Q6(this,_.Js(this.addPlaylist,u))};
_.I.addVideos=function(u){u.length==0?this.warn_("Ignore add videos request due to empty list"):UE(this)?fw(this,"addVideos",{videoIds:u.join(",")}):Q6(this,_.Js(this.addVideos,u))};
_.I.JSC$19589_removeVideo=function(u){UE(this)?fw(this,"removeVideo",{videoId:u}):Q6(this,_.Js(this.JSC$19589_removeVideo,u))};
_.I.JSC$19589_insertVideo=function(u){UE(this)?fw(this,"insertVideo",{videoId:u}):Q6(this,_.Js(this.JSC$19589_insertVideo,u))};
_.I.playVideo=function(u,K,l,D,d,C,W){D=D===void 0?null:D;d=d===void 0?null:d;C=C===void 0?null:C;W=W===void 0?null:W;var M=RI(this),q={videoId:u};l!==void 0&&(q.currentIndex=l);oMI(M,u,l||0);K!==void 0&&(z0(M,K),q.currentTime=K);D&&(q.listId=D);d&&(q.playerParams=d);C&&(q.clickTrackingParams=C);W&&(q.locationInfo=(0,_.Yz)(W));fw(this,"setPlaylist",q);D||Pq(this,M)};
_.I.nextVideo=function(u,K){if(UE(this)){if(u&&K){var l=RI(this);oMI(l,u,K);Pq(this,l)}fw(this,"next")}else Q6(this,_.Js(this.nextVideo,u,K))};
_.I.clearPlaylist=function(){if(UE(this)){fw(this,"clearPlaylist");var u=RI(this);u.reset();Pq(this,u);this.publish("remotePlayerChange")}else Q6(this,this.clearPlaylist)};
_.I.dispose=function(){if(this.state_!=3){var u=this.state_;this.state_=3;this.publish("proxyStateChange",u,this.state_)}_.tv.prototype.dispose.call(this)};
_.I.disposeInternal=function(){nMo(this);this.connection_=null;this.actionQueue_.clear();Moi(this,null);_.tv.prototype.disposeInternal.call(this)};
var Hl2=function(u){_.yx("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(K){this.contextSubscriptions_.push(this.connection_.subscribe(K,_.Js(this.onProxyEvent_,K),this))},u)},nMo=function(u){_.yx(u.contextSubscriptions_,function(K){this.connection_.unsubscribeByKey(K)},u);
u.contextSubscriptions_.length=0},UE=function(u){return u.getState()==1},Q6=function(u,K){u.actionQueue_.getCount()<50&&u.actionQueue_.enqueue(K)},$12=function(u,K,l){var D=RI(u);
z0(D,l);D.playerState!=-1E3&&(D.playerState=K);Pq(u,D)},fw=function(u,K,l){u.connection_.sendMessage(K,l)},Pq=function(u,K){nMo(u);
u.connection_.setPlayerContextData(WrI(K));Hl2(u)};
eI.prototype.setState_=function(u){if((u!=this.state_||u==2)&&this.state_!=3&&u!=0){var K=this.state_;this.state_=u;this.publish("proxyStateChange",K,u);if(u==1)for(;!this.actionQueue_.isEmpty();)u=this.actionQueue_,UG2(u),u.front_.pop().apply(this);else u==3&&this.dispose()}};
eI.prototype.onProxyEvent_=function(u,K){this.publish(u,K)};
var Moi=function(u,K){u.castSession_&&(u.castSession_.removeUpdateListener(u.boundCastStatusListener_),u.castSession_.removeMediaListener(u.boundCastMediaListener_),u.onCastMediaChange_(null));u.castSession_=K;if(u.castSession_&&(yE("Setting cast session: "+u.castSession_.sessionId),u.castSession_.addUpdateListener(u.boundCastStatusListener_),u.castSession_.addMediaListener(u.boundCastMediaListener_),u.castSession_.media.length))u.onCastMediaChange_(u.castSession_.media[0])};
eI.prototype.onCastStatusUpdate_=function(u){if(!u)this.onCastMediaChange_(null),Moi(this,null);else if(this.castSession_.receiver.volume){u=this.castSession_.receiver.volume;var K=RI(this),l=Math.round(100*u.level||0);if(K.volume!=l||K.muted!=u.muted)yE("Cast volume update: "+u.level+(u.muted?" muted":"")),K.volume=l,K.muted=!!u.muted,Pq(this,K)}};
eI.prototype.onCastMediaChange_=function(u){yE("Cast media: "+!!u);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=u)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),ri6(this),this.publish("remotePlayerChange")};
var ri6=function(u){var K=u.castMedia_.media,l=u.castMedia_.customData;if(K&&l){var D=RI(u);K.contentId!=D.videoId&&yE("Cast changing video to: "+K.contentId);D.videoId=K.contentId;D.playerState=l.playerState;z0(D,u.castMedia_.getEstimatedTime());Pq(u,D)}else yE("No cast media video. Ignoring state update.")};
eI.prototype.onCastMediaUpdate_=function(u){if(u)ri6(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
eI.prototype.onCloudviewAvailabilityChange_=function(){var u=Te6();u&&Moi(this,u)};
eI.prototype.warn_=function(u){IJ("CP",u)};
var qep=function(u,K,l){return(0,_.wB)(function(D){this.warn_("Failed to "+K+" with cast v2 channel. Error code: "+D.code);D.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+K+" using MDx browser channel."),fw(this,K,l))},u)};var jI=function(u,K,l,D){D=D===void 0?!1:D;_.tv.call(this);var d=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$19596_http_=u;this.enableConnectWithInitialState_=D;this.listeners_.push(_.np(window,"beforeunload",function(){d.JSC$19599_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new G4;this.currentScreenId_=K.id;this.currentScreenIdType_=K.idType;this.channelService=CvG(this.JSC$19596_http_,l,this.JSC$19599_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){vM_(d)});
this.channelService.listen("channelClosed",function(){Jf("Channel closed");isNaN(d.connectTimerId_)?l9(!0):l9();d.dispose()});
this.channelService.listen("channelError",function(C){l9();isNaN(d.getReconnectTimeout_())?(C==1&&d.currentScreenIdType_=="shortLived"&&d.publish("browserChannelAuthError",C),Jf("Channel error: "+C+" without reconnection"),d.dispose()):(d.reconnecting_=!0,Jf("Channel error: "+C+" with reconnection in "+d.getReconnectTimeout_()+" ms"),Gno(d,2))});
this.channelService.listen("channelMessage",function(C){toE(d,C)});
this.channelService.setLoungeToken(K.token);this.subscribe("remoteQueueChange",function(){var C=d.playerContext_.videoId;kI_()&&_.Uj("yt-remote-session-video-id",C)})};
_.c(jI,_.tv);
jI.prototype.connect=function(u,K){if(K){var l=K.listId,D=K.videoId,d=K.videoIds,C=K.playerParams,W=K.clickTrackingParams,M=K.index,q={videoId:D},v=K.currentTime,G=K.locationInfo;K=K.loopMode;v!==void 0&&(q.currentTime=v<=5?0:v);C&&(q.playerParams=C);G&&(q.locationInfo=G);W&&(q.clickTrackingParams=W);l&&(q.listId=l);d&&d.length>0&&(q.videoIds=d.join(","));M!==void 0&&(q.currentIndex=M);this.enableConnectWithInitialState_&&(q.loopMode=K||"LOOP_MODE_OFF");l&&(this.playerContext_.listId=l);this.playerContext_.videoId=
D;this.playerContext_.index=M||0;this.playerContext_.state=3;z0(this.playerContext_,v);this.autoplayMode_="UNSUPPORTED";l=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Jf("Connecting with "+l+" and params: "+(0,_.Yz)(q));this.channelService.connect({method:l,params:(0,_.Yz)(q)},u,mKi())}else Jf("Connecting without params"),this.channelService.connect({},u,mKi());x1k(this)};
jI.prototype.setLoungeToken=function(u){this.channelService.setLoungeToken(u)};
jI.prototype.dispose=function(){this.isDisposed()||(_.$L("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),Gno(this,3));_.tv.prototype.dispose.call(this)};
jI.prototype.disposeInternal=function(){SeB(this);blE(this);Oli(this);_.eg(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.eg(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.zPr(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.tv.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var cik=function(u){return _.iL(u.connectedDevices_,function(K){return K.type=="LOUNGE_SCREEN"})},Jf=function(u){IJ("conn",u)},Gno=function(u,K){u.publish("proxyStateChange",K)},x1k=function(u){u.connectTimerId_=_.aK(function(){Jf("Connecting timeout");
u.JSC$19599_disconnect_(1)},2E4)},SeB=function(u){_.eg(u.connectTimerId_);
u.connectTimerId_=NaN},Oli=function(u){_.eg(u.reconnectedCheckScreenTimeout_);
u.reconnectedCheckScreenTimeout_=NaN},aPE=function(u){blE(u);
u.playingSyncTimerId_=_.aK(function(){Bq(u,"getNowPlaying")},2E4)},blE=function(u){_.eg(u.playingSyncTimerId_);
u.playingSyncTimerId_=NaN},vM_=function(u){Jf("Channel opened");
u.reconnecting_&&(u.reconnecting_=!1,Oli(u),u.reconnectedCheckScreenTimeout_=_.aK(function(){Jf("Timing out waiting for a screen.");u.JSC$19599_disconnect_(1)},15E3))},ek_=function(u,K){var l=null;
if(K){var D=cik(u);D&&(l={clientName:D.clientName,deviceMake:D.brand,deviceModel:D.model,osVersion:D.osVersion})}_.$L("yt.mdx.remote.remoteClient_",l);K&&(SeB(u),Oli(u));l=u.channelService.isChannelOpened()&&isNaN(u.connectTimerId_);K==l?K&&(Gno(u,1),Bq(u,"getSubtitlesTrack")):K?(u.getOtherConnectedRemoteId_()&&u.playerContext_.reset(),Gno(u,1),Bq(u,"getNowPlaying"),zkk(u)):u.JSC$19599_disconnect_(1)},RkE=function(u,K){var l=K.params.videoId;
delete K.params.videoId;l==u.playerContext_.videoId&&(_.k$.isEmpty(K.params)?u.playerContext_.trackData=null:u.playerContext_.trackData=K.params,u.publish("remotePlayerChange"))},U1p=function(u,K,l){var D=K.params.videoId||K.params.video_id,d=parseInt(K.params.currentIndex,10);
u.playerContext_.listId=K.params.listId||u.playerContext_.listId;oMI(u.playerContext_,D,d);u.publish("remoteQueueChange",l)},fPi=function(u,K){K.params=K.params||{};
U1p(u,K,"NOW_PLAYING_MAY_CHANGE");u.onStateChange_(K);u.publish("autoplayDismissed")};
jI.prototype.onStateChange_=function(u){var K=parseInt(u.params.currentTime||u.params.current_time,10);z0(this.playerContext_,isNaN(K)?0:K);K=parseInt(u.params.state,10);K=isNaN(K)?-1:K;K==-1&&this.playerContext_.playerState==-1E3&&(K=-1E3);this.playerContext_.playerState=K;K=Number(u.params.loadedTime);this.playerContext_.loadedTime=isNaN(K)?0:K;K=Number(u.params.duration);this.playerContext_.duration_=isNaN(K)?0:K;K=this.playerContext_;var l=Number(u.params.liveIngestionTime);K.liveIngestionTime_=
l;K.isLive_=isNaN(l)?!1:!0;K=this.playerContext_;l=Number(u.params.seekableStartTime);u=Number(u.params.seekableEndTime);K.seekableStart_=isNaN(l)?0:l;K.seekableEnd_=isNaN(u)?0:u;this.playerContext_.playerState==1?aPE(this):blE(this);this.publish("remotePlayerChange")};
jI.prototype.onAdStateChange_=function(u){if(this.playerContext_.playerState!=-1E3){var K=1085;switch(parseInt(u.params.adState,10)){case 1:K=1081;break;case 2:K=1084;break;case 0:K=1083}this.playerContext_.playerState=K;u=parseInt(u.params.currentTime,10);z0(this.playerContext_,isNaN(u)?0:u);this.publish("remotePlayerChange")}};
var Qip=function(u,K){var l=K.params.muted=="true";u.playerContext_.volume=parseInt(K.params.volume,10);u.playerContext_.muted=l;u.publish("remotePlayerChange")},PKp=function(u,K){u.autoplayVideoId_=K.params.videoId;
u.publish("nowAutoplaying",parseInt(K.params.timeout,10))},JiE=function(u,K){u.autoplayVideoId_=K.params.videoId||null;
u.publish("autoplayUpNext",u.autoplayVideoId_)},jik=function(u,K){u.autoplayMode_=K.params.autoplayMode;
u.publish("autoplayModeChange",u.autoplayMode_);u.autoplayMode_=="DISABLED"&&u.publish("autoplayDismissed")},Bjk=function(u,K){var l=K.params.hasNext=="true";
u.playerContext_.hasPrevious=K.params.hasPrevious=="true";u.playerContext_.hasNext=l;u.publish("previousNextChange")};
jI.prototype.isCapabilitySupportedOnConnectedDevices_=function(u){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var K=_.y(this.connectedDevices_),l=K.next();!l.done;l=K.next())if(!l.value.capabilities.has(u))return!1;return!0};
var toE=function(u,K){K=K.message;K.params?Jf("Received: action="+K.action+", params="+(0,_.Yz)(K.params)):Jf("Received: action="+K.action+" {}");switch(K.action){case "loungeStatus":K=(0,_.gM)(K.params.devices);u.connectedDevices_=_.ZM(K,function(D){return new $t(D)});
K=!!_.iL(u.connectedDevices_,function(D){return D.type=="LOUNGE_SCREEN"});
ek_(u,K);K=u.isCapabilitySupportedOnConnectedDevices_("mlm");u.publish("multiStateLoopEnabled",K);break;case "loungeScreenDisconnected":yp6(u.connectedDevices_,function(D){return D.type=="LOUNGE_SCREEN"});
ek_(u,!1);break;case "remoteConnected":var l=new $t((0,_.gM)(K.params.device));_.iL(u.connectedDevices_,function(D){return D.equals(l)})||_.Nw(u.connectedDevices_,l);
break;case "remoteDisconnected":l=new $t((0,_.gM)(K.params.device));yp6(u.connectedDevices_,function(D){return D.equals(l)});
break;case "gracefulDisconnect":break;case "playlistModified":U1p(u,K,"QUEUE_MODIFIED");break;case "nowPlaying":fPi(u,K);break;case "onStateChange":u.onStateChange_(K);break;case "onAdStateChange":u.onAdStateChange_(K);break;case "onVolumeChanged":Qip(u,K);break;case "onSubtitlesTrackChanged":RkE(u,K);break;case "nowAutoplaying":PKp(u,K);break;case "autoplayDismissed":u.publish("autoplayDismissed");break;case "autoplayUpNext":JiE(u,K);break;case "onAutoplayModeChanged":jik(u,K);break;case "onHasPreviousNextChanged":Bjk(u,
K);break;case "requestAssistedSignIn":u.publish("assistedSignInRequested",K.params.authCode);break;case "onLoopModeChanged":u.publish("loopModeChange",K.params.loopMode);break;default:Jf("Unrecognized action: "+K.action)}};
_.I=jI.prototype;_.I.getProxyState_=function(){var u=3;this.isDisposed()||(u=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(u=1):u=2);return u};
_.I.JSC$19599_disconnect_=function(u){Jf("Disconnecting with "+u);_.$L("yt.mdx.remote.remoteClient_",null);SeB(this);this.publish("beforeDisconnect",u);u==1&&l9();this.channelService.disconnect(u);this.dispose()};
_.I.getPlayerContextData_=function(){var u=this.playerContext_;this.clientVideoId_&&(u=this.playerContext_.clone(),oMI(u,this.clientVideoId_,u.index));return WrI(u)};
_.I.setPlayerContextData_=function(u){var K=this,l=new G4(u);l.videoId&&l.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=l.videoId,_.eg(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.aK(function(){if(K.clientVideoId_){var d=K.clientVideoId_;K.clientVideoId_=null;K.playerContext_.videoId!=d&&Bq(K,"getNowPlaying")}},5E3));
var D=[];this.playerContext_.listId==l.listId&&this.playerContext_.videoId==l.videoId&&this.playerContext_.index==l.index||D.push("remoteQueueChange");this.playerContext_.playerState==l.playerState&&this.playerContext_.volume==l.volume&&this.playerContext_.muted==l.muted&&siH(this.playerContext_)==siH(l)&&(0,_.Yz)(this.playerContext_.trackData)==(0,_.Yz)(l.trackData)||D.push("remotePlayerChange");this.playerContext_.reset(u);_.yx(D,function(d){this.publish(d)},this)};
_.I.getOtherConnectedRemoteId_=function(){var u=this.channelService.getDeviceId(),K=_.iL(this.connectedDevices_,function(l){return l.type=="REMOTE_CONTROL"&&l.id!=u});
return K?K.id:""};
_.I.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.I.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.I.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.I.JSC$19599_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var zkk=function(u){_.eg(u.idleDisconnectTimerId_);u.idleDisconnectTimerId_=_.aK(function(){u.JSC$19599_disconnect_(1)},864E5)},Bq=function(u,K,l){l?Jf("Sending: action="+K+", params="+(0,_.Yz)(l)):Jf("Sending: action="+K);
u.channelService.sendMessage(K,l)};
jI.prototype.sendMessageWithUserAction_=function(u,K){Bq(this,u,K);zkk(this)};
jI.prototype.JSC$19599_getXsrfToken_=function(){var u=_.jg.get("SAPISID","")||_.jg.get("__Secure-1PAPISID",void 0)||"",K=_.jg.get("__Secure-3PAPISID","")||"";if(!u&&!K)return"";u=_.Yp(_.i2(u),2);K=_.Yp(_.i2(K),2);return _.Yp(_.i2(","+u+","+K),2)};
jI.prototype.subscribe=jI.prototype.subscribe;jI.prototype.unsubscribeByKey=jI.prototype.unsubscribeByKey;jI.prototype.getProxyState=jI.prototype.getProxyState_;jI.prototype.disconnect=jI.prototype.JSC$19599_disconnect_;jI.prototype.getPlayerContextData=jI.prototype.getPlayerContextData_;jI.prototype.setPlayerContextData=jI.prototype.setPlayerContextData_;jI.prototype.getOtherConnectedRemoteId=jI.prototype.getOtherConnectedRemoteId_;jI.prototype.getReconnectTimeout=jI.prototype.getReconnectTimeout_;
jI.prototype.getAutoplayMode=jI.prototype.getAutoplayMode_;jI.prototype.getAutoplayVideoId=jI.prototype.getAutoplayVideoId_;jI.prototype.reconnect=jI.prototype.JSC$19599_reconnect_;jI.prototype.sendMessage=jI.prototype.sendMessageWithUserAction_;jI.prototype.getXsrfToken=jI.prototype.JSC$19599_getXsrfToken_;jI.prototype.isCapabilitySupportedOnConnectedDevices=jI.prototype.isCapabilitySupportedOnConnectedDevices_;var psH=function(u){oJ.call(this,"ScreenServiceProxy");this.instance_=u;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.wB)(this.JSC$19602_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.wB)(this.onOnlineScreenChange_,this)))};
_.c(psH,oJ);_.I=psH.prototype;_.I.getScreens=function(u){return this.instance_.$_gs(u)};
_.I.contains=function(u){return!!this.instance_.$_c(u)};
_.I.get=function(u){return this.instance_.$_g(u)};
_.I.start=function(){this.instance_.$_st()};
_.I.add=function(u,K,l){this.instance_.$_a(u,K,l)};
_.I.remove=function(u,K,l){this.instance_.$_r(u,K,l)};
_.I.updateName=function(u,K,l,D){this.instance_.$_un(u,K,l,D)};
_.I.disposeInternal=function(){for(var u=this.subscriptionKeys_.length,K=0;K<u;++K)this.instance_.$_ubk(this.subscriptionKeys_[K]);this.subscriptionKeys_.length=0;this.instance_=null;oJ.prototype.disposeInternal.call(this)};
_.I.JSC$19602_onScreenChange_=function(){this.publish("screenChange")};
_.I.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
M3.prototype.$_st=M3.prototype.start;M3.prototype.$_gspc=M3.prototype.JSC$19559_getScreenByPairingCode;M3.prototype.$_gsppc=M3.prototype.JSC$19559_getScreenByPollingPairingCode;M3.prototype.$_c=M3.prototype.contains;M3.prototype.$_g=M3.prototype.get;M3.prototype.$_a=M3.prototype.add;M3.prototype.$_un=M3.prototype.updateName;M3.prototype.$_r=M3.prototype.remove;M3.prototype.$_gs=M3.prototype.getScreens;M3.prototype.$_gos=M3.prototype.JSC$19559_getOnlineScreens;M3.prototype.$_s=M3.prototype.subscribe;
M3.prototype.$_ubk=M3.prototype.unsubscribeByKey;var Nj_=function(u){uQI();if(!DD||!DD.get("yt-remote-disable-remote-module-for-dev")){u=_.E3("MDX_CONFIG")||u;v5p();YV_();pw||(pw=new EX(u?u.loungeApiHost:void 0),Kdp()&&(pw.basePath="/api/loungedev"));id||(id=_.lZ("yt.mdx.remote.deferredProxies_")||[],_.$L("yt.mdx.remote.deferredProxies_",id));ilE();var K=T0();if(!K){var l=new M3(pw,u?u.disableAutomaticScreenCache||!1:!1);_.$L("yt.mdx.remote.screenService_",l);K=T0();var D={};u&&(D={appId:u.appId,disableDial:u.disableDial,theme:u.theme,loadCastApiSetupScript:u.loadCastApiSetupScript,
disableCastApi:u.disableCastApi,enableDialLoungeToken:u.enableDialLoungeToken,enableCastLoungeToken:u.enableCastLoungeToken,forceMirroring:u.forceMirroring});_.$L("yt.mdx.remote.enableConnectWithInitialState_",u?u.enableConnectWithInitialState||!1:!1);Pvi(l,function(C){C?wG()&&FdE(wG(),"YouTube TV"):l.subscribe("onlineScreenChange",function(){aV("yt-remote-receiver-availability-change")})},D)}if(u&&!_.lZ("yt.mdx.remote.initialized_")){_.$L("yt.mdx.remote.initialized_",!0);
Fv("Initializing: "+(0,_.Yz)(u));V6.push(_.bP("yt-remote-cast2-api-ready",function(){aV("yt-remote-api-ready")}));
V6.push(_.bP("yt-remote-cast2-availability-change",function(){aV("yt-remote-receiver-availability-change")}));
V6.push(_.bP("yt-remote-cast2-receiver-selected",function(){Tj2();aV("yt-remote-auto-connect","cast-selector-receiver")}));
V6.push(_.bP("yt-remote-cast2-receiver-resumed",function(){aV("yt-remote-receiver-resumed","cast-selector-receiver")}));
V6.push(_.bP("yt-remote-cast2-session-change",wsE));V6.push(_.bP("yt-remote-connection-change",function(C){C?FdE(wG(),"YouTube TV"):Fri()||(FdE(null,null),icH())}));
V6.push(_.bP("yt-remote-cast2-session-failed",function(){aV("yt-remote-connection-failed")}));
D=Vo_();u.isAuto&&(D.id+="#dial");var d=u.capabilities||[];d.length>0&&(D.capabilities=d);D.name=u.device;D.app=u.app;(u=u.theme)&&(D.theme=u);Fv(" -- with channel params: "+(0,_.Yz)(D));D?(_.Uj("yt-remote-session-app",D.app),_.Uj("yt-remote-session-name",D.name)):(_.Q1("yt-remote-session-app"),_.Q1("yt-remote-session-name"));_.$L("yt.mdx.remote.channelParams_",D);K.start();wG()||gMG()}}},ZlE=function(){var u=T0().instance_.$_gos();
var K=knH();K&&gG()&&(VZE(u,K)||u.push(K));return FGG(u)},YeE=function(){var u=ZlE(),K=knH();
K||(K=Fri());return _.iL(u,function(l){return K&&u9(K,l.key)?!0:!1})},knH=function(){var u=wG();
if(!u)return null;var K=T0().getScreens();return Kv(K,u)},wsE=function(u){Fv("remote.onCastSessionChange_: "+Vtp(u));
if(u){var K=knH();K&&K.id==u.id?(FdE(K.id,"YouTube TV"),u.idType=="shortLived"&&(u=u.token)&&(K=gG())&&K.setLoungeToken(u)):(K&&AiH(),Xsp(u,1))}else gG()&&AiH()},AiH=function(){wIB()?rc().stopSession():nv("stopSession called before API ready.");
var u=gG();u&&(u.disconnect(1),m1k(null))},hkp=function(){var u=gG();
return u&&u.getProxyState()!=3?new eI(gG(),void 0):null},Fv=function(u){IJ("remote",u)},T0=function(){if(!EMi){var u=_.lZ("yt.mdx.remote.screenService_");
EMi=u?new psH(u):null}return EMi},wG=function(){return _.lZ("yt.mdx.remote.currentScreenId_")},LrB=function(u){_.$L("yt.mdx.remote.currentScreenId_",u)},Tj2=function(){_.$L("yt.mdx.remote.connectData_",null)},gG=function(){return _.lZ("yt.mdx.remote.connection_")},m1k=function(u){var K=gG();
Tj2();u||LrB("");_.$L("yt.mdx.remote.connection_",u);id&&(_.yx(id,function(l){l(u)}),id.length=0);
K&&!u?aV("yt-remote-connection-change",!1):!K&&u&&aV("yt-remote-connection-change",!0)},Fri=function(){var u=kI_();
if(!u)return null;var K=T0();if(!K)return null;K=K.getScreens();return Kv(K,u)},Xsp=function(u,K){LrB(u.id);
u=new jI(pw,u,Vo_(),_.lZ("yt.mdx.remote.enableConnectWithInitialState_")||!1);u.connect(K,_.lZ("yt.mdx.remote.connectData_"));u.subscribe("beforeDisconnect",function(l){aV("yt-remote-before-disconnect",l)});
u.subscribe("beforeDispose",function(){gG()&&m1k(null)});
u.subscribe("browserChannelAuthError",function(){var l=knH();l&&l.idType=="shortLived"&&(wIB()?rc().handleBrowserChannelAuthError():nv("refreshLoungeToken called before API ready."))});
m1k(u)},gMG=function(){var u=Fri();
u?(Fv("Resume connection to: "+Vtp(u)),Xsp(u,0)):(l9(),icH(),Fv("Skipping connecting because no session screen found."))},pw=null,id=null,EMi=null,ilE=function(){var u=Vo_();
if(_.k$.isEmpty(u)){u=NZE();var K=_.f7("yt-remote-session-name")||"",l=_.f7("yt-remote-session-app")||"";u={device:"REMOTE_CONTROL",id:u,name:K,app:l,mdxVersion:3};u.authuser=String(_.E3("SESSION_INDEX","0"));(K=_.E3("DELEGATED_SESSION_ID"))&&(u.pageId=String(K));_.$L("yt.mdx.remote.channelParams_",u)}},Vo_=function(){return _.lZ("yt.mdx.remote.channelParams_")||{}},V6=[];var ul2=new _.Ev("yt-menu"),K9H=function(){},DRE=function(u,K,l){u=K=="right-click"?l.rightClickMenuPopupHint:l.menuPopupHint;
if(!(l1p(K)>10))return K=K||"default",ul2.set(K+"-impression",l1p(K)+1),u},l1p=function(u){return parseInt(ul2.get((u||"default")+"-impression")||0,10)};
_.t0(K9H);var dRV=function(){this.contexts_=new WeakMap;this.JSC$19608_networkService_=this.activeContext_=null},C3H=function(u,K,l){var D=u.contexts_.get(K);
D||(D=new n5V(u.JSC$19608_networkService_),u.contexts_.set(K,D));u.activeContext_=D;l&&u.activeContext_.reset();u.activeContext_.start();return u.activeContext_};var N4=function(){};
N4.prototype.enqueue=function(){var u=this,K;return _.H(function(l){if(u.isCounterfactual())return(K=u.getCounterfactualData())&&u.shouldLogCounterfactualImpression()&&u.sendImpressionEndpoints(K),l.return();u.doEnqueue();_.TG(l)})};
N4.prototype.sendImpressionEndpoints=function(u){_.Ci.getInstance().triggerOptionalAction("yt-service-request",{},u[0])};var kt=function(u,K){this.renderer=u;this.page=K};
_.c(kt,N4);kt.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
kt.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
kt.prototype.shouldLogCounterfactualImpression=function(){return!0};
kt.prototype.doEnqueue=function(){var u=_.tK(this.page);u&&u.pause();this.renderer.impressionCommand&&_.Ci.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Le(_.Ci.getInstance(),[this.renderer.promoCommand],this.page)};var I1E=function(u,K){this.renderer=u;this.resolver=_.MX();this.JSC$19620_enforcementCounter=new _.FMB;K?this.JSC$19620_playerManager=_.tK(K):this.JSC$19620_playerManager=null;_.QR(1,!0)};
_.c(I1E,N4);_.I=I1E.prototype;_.I.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var u=[];this.renderer.impressionEndpoints.forEach(function(K){(K=_.lt(K))&&u.push(K)});
return u}};
_.I.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.I.shouldLogCounterfactualImpression=function(){var u=_.iQy();u?(this.JSC$19620_enforcementCounter.increment("POPUP"),_.QR(3)):_.QR(2);return u};
_.I.cancel=function(){this.resolver.promise.cancel()};
_.I.doEnqueue=function(){var u=this;_.iQy()?(this.JSC$19620_enforcementCounter.increment("POPUP"),_.QR(3),yAB(this)):this.JSC$19620_playerManager?(this.resolver.promise.then(function(){yAB(u)}),sAB(this.resolver,this.JSC$19620_playerManager)):_.QR(2)};
var sAB=function(u,K){var l=_.MX();K.getPlayerPromise().then(function(D){l.resolve(D)});
l.promise.then(function(D){D.addEventListener("onAbnormalityDetected",u.resolve);_.Ne(u.promise,function(){D.removeEventListener("onAbnormalityDetected",u.resolve)})});
u.promise.thenCatch(function(){l.promise.cancel()})},yAB=function(u){_.QR(3);
var K={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:u.renderer}};K=_.Ci.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:K},{});Promise.all(K).then(function(){oR_();u.JSC$19620_playerManager&&u.JSC$19620_playerManager.pause()})},oR_=function(){ZiG(function(u,K){_.Zp_(u,K);
u===0?_.QR(7):_.QR(4)})};var W9E=function(u,K){this.renderer=u;this.page=K;this.resolver=_.MX()};
_.c(W9E,N4);_.I=W9E.prototype;_.I.cancel=function(){this.resolver.promise.cancel()};
_.I.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.I.isCounterfactual=function(){return!this.renderer.isVisible};
_.I.shouldLogCounterfactualImpression=function(){return!0};
_.I.doEnqueue=function(){var u=this;this.resolver.promise.then(function(){var l={popup:{mealbarPromoRenderer:u.renderer},popupType:"MEALBAR"};_.Ci.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:l},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var K=_.tK(this.page);K&&HDI(this.resolver,K)}break;default:this.resolver.resolve()}};
var HDI=function(u,K){var l=_.MX();K.getPlayerPromise().then(function(D){l.resolve(D)});
l.promise.then(function(D){D.addEventListener("onAdEnd",u.resolve);_.Ne(u.promise,function(){D.removeEventListener("onAdEnd",u.resolve)})});
u.promise.thenCatch(function(){l.promise.cancel()})};var M0B=function(u,K){this.renderer=u;this.page=K};
_.c(M0B,N4);_.I=M0B.prototype;_.I.cancel=function(){this.JSC$19628_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19628_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19628_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.I.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.I.isCounterfactual=function(){return!this.renderer.isVisible};
_.I.shouldLogCounterfactualImpression=function(){return!0};
_.I.doEnqueue=function(){var u=this,K,l;((K=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(l=K.playbackUpsellDialogTriggerConditionData)==null?void 0:l.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19628_downloadedVideosCountSelectorUnsubscriber=_.iF(_.Mu(),FY2,function(D,d){D>d&&(q82(u),u.cancel())}):q82(this)};
var q82=function(u){var K={popup:{upsellDialogRenderer:u.renderer},popupType:"MODAL"};_.Ci.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:K},{});(u=_.tK(u.page))&&u.pause()};var Zi={},$RE=(Zi.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Zi.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Zi.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Zi.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Zi.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Zi.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Zi.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Zi),nR_=function(u,K){this.renderer=u;this.targetManager=
K};
_.c(nR_,N4);_.I=nR_.prototype;_.I.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19635_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19635_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19635_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.I.getCounterfactualData=function(){if(this.isCounterfactual()){var u;return(u=this.renderer.promoConfig)==null?void 0:u.impressionEndpoints}};
_.I.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.I.shouldLogCounterfactualImpression=function(){return!0};
_.I.doEnqueue=function(){var u=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19635_downloadedVideosCountSelectorUnsubscriber=_.iF(_.Mu(),FY2,function(K,l){u.renderer.targetId&&K>l&&(JKV(u.targetManager,u.renderer.targetId,rA6(u)),u.cancel())});
break;default:JKV(this.targetManager,this.renderer.targetId,rA6(this))}};
var rA6=function(u){var K;if((K=u.renderer.suggestedPosition)==null?0:K.type)var l=$RE[u.renderer.suggestedPosition.type];l||(l="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:u.renderer},popupType:"HINT",position:l}}};var vRo=function(){this.previousPage=null},GzI;
vRo.prototype.registerPromoCommand=function(u,K){t0_(this,void 0,void 0,_.b(u.roadblock,j8p),void 0,void 0,K)};
var t0_=function(u,K,l,D,d,C,W){u.previousPage!==W&&u.pendingTooltipPromo&&u.pendingTooltipPromo.cancel();u.previousPage=W;d?(u.pendingEnforcementPromo&&u.pendingEnforcementPromo.cancel(),u.pendingEnforcementPromo=new I1E(d,W),u.pendingEnforcementPromo.enqueue()):C?(u.pendingCommandWrapperPromo=new kt(C,W),u.pendingCommandWrapperPromo.enqueue()):D?(u.pendingRoadblockPromo&&u.pendingRoadblockPromo.cancel(),u.pendingRoadblockPromo=new M0B(D,W),u.pendingRoadblockPromo.enqueue()):K?(u.pendingMealbarPromo&&
u.pendingMealbarPromo.cancel(),u.pendingMealbarPromo=new W9E(K,W),u.pendingMealbarPromo.enqueue()):l&&(u.pendingTooltipPromo&&u.pendingTooltipPromo.cancel(),u.pendingTooltipPromo=new nR_(l,_.gw()),u.pendingTooltipPromo.enqueue())},xR_=function(){GzI||(GzI=new vRo);
return GzI};var ZcH=!1;var i4k=function(u,K){var l=_.E3("SESSION_INDEX");this.actionToken_=u;this.commonToken_=K;this.sessionIndex_=l},p1p=function(u){var K=_.MX(),l=_.lZ("payments.business.integration.bootstrap"),D=_.lZ("payments.business.integration"),d=D.Style.create().withMaterialDesignStyle(),C=D.mashupMode.popup("instrument-manager");
l.asMashupMode(C).usingUserIndex(u.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(d).inStandaloneContext(D.standaloneContextAuthId.forUserId()).instrumentManager(u.actionToken_,u.commonToken_.length>0?u.commonToken_:void 0,function(W){var M=W.instrumentId;M?K.resolve(M):(M=_.lZ("payments.business.integration.scenario.InstrumentManager"),K.reject(W.errorCode&&W.errorCode===M.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(W){_.uZ(W);
K.reject("instrumentManagerLoadError")});
return K.promise};var O1=function(u,K,l){this.payloadName="transactionFlowFailed";this.payload={errorType:u,serializedTransactionFlowLoggingParams:K,isUserDismiss:l===void 0?!1:l}};
_.$L("yt.ypc.shared.YpcTransactionFlowError",O1);var Yt=function(){return _.ii.apply(this,arguments)||this};
_.c(Yt,_.ii);Yt.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Yt.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Yt.prototype.onErrorMessageDismiss=Yt.prototype.onErrorMessageDismiss;_.g([_.U({readOnly:!0,observer:"errorRendererChanged"}),_.N("design:type",Object)],Yt.prototype,"errorRenderer",void 0);_.g([_.PF("yt-live-chat-error-message-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yt.prototype,"onErrorMessageDismiss",null);_.g([_.TQ()],Yt);var S8p=[Yt.prototype];var bD2;var ODG;var cAk=new _.Ev("yt-live-chat"),a1k=new Map;a1k.set("timestamp_toggle","show-timestamps");a1k.set("reactions_toggle","allow-reactions");var Af=function(){return _.Q.apply(this,arguments)||this};
_.c(Af,_.Q);_.I=Af.prototype;_.I.menuItemIdentifierChanged=function(){var u;(u=this.data)!=null&&u.menuItemIdentifier&&(u=a1k.get(this.data.menuItemIdentifier))&&(_.S("enable_lwe_web_mute")?(u=cAk.get(u),this.isToggled=!(u===void 0?!this.data.isToggled:!u)):this.isToggled=cAk.get(u))};
_.I.onFocus=function(){this.toggleButton.focus()};
_.I.onTap=function(){var u=this.data.command;u&&this.componentBehavior.resolveCommand(u)};
_.I.computeText=function(u,K,l){return this.componentBehavior.getSimpleString(u?l:K)};
_.I.computeIcon=function(u,K,l){return(u=u?l:K)&&u.iconType?_.fr(u.iconType):""};
Af.prototype.onTap=Af.prototype.onTap;Af.prototype.onFocus=Af.prototype.onFocus;Af.prototype.menuItemIdentifierChanged=Af.prototype.menuItemIdentifierChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Af.prototype,"componentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Af.prototype,"data",void 0);
_.g([_.U({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.N("design:type",String)],Af.prototype,"icon",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Af.prototype,"isToggled",void 0);_.g([_.BF("tp-yt-paper-toggle-button"),_.N("design:type",Object)],Af.prototype,"toggleButton",void 0);_.g([_.JU("data.menuItemIdentifier"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Af.prototype,"menuItemIdentifierChanged",null);
_.g([_.PF("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Af.prototype,"onFocus",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Af.prototype,"onTap",null);_.g([_.E9({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Af);
_.F(Af,"yt-live-chat-toggle-renderer",function(){if(ODG===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;bD2===void 0&&(bD2=document.createElement("template"));var D=bD2;l.call(K,D.content.cloneNode(!0),u.content.firstChild);ODG=u}u=ODG;return u},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var zUI=new _.G$("NAVIGATION_PROGRESS_TOKEN");var eUk={},RUE={},URE=(RUE[b7p.name]=!0,RUE),Xv=function(){var u=_.ii.apply(this,arguments)||this;u._noAccessors=!0;u.tabGesturesIsActive=!1;u.actionRouterIsRoot=!0;u.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"};u.pageTitle="";u.titleSuffix="YouTube";u.unseenNotificationCount=
0;u.hasNavigated=!1;u.hasSetScrollTopForNavigation=!1;u.pagePreparer=null;u.zwiebackInitJobId=0;u.dataUpdatePromise=null;u.loadDepsPromise=_.zA();u.hasPendingNavigation=!1;u.pendingPlayerOnResponseReceivedActions=[];return u};
_.c(Xv,_.ii);Xv.prototype.attached=function(){f1_(this);document.addEventListener("yt-navigate-cache",_.Ql(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var u=mn();u.init();u.dispatchElement=this.hostElement};
var f1_=function(u,K){K=K===void 0?0:K;var l=_.GB().resolve(_.vv(_.V1));if(l)QAk(u,l);else{if(K>=5)throw Error("Zk");setTimeout(function(){f1_(u,K+1)},0)}},QAk=function(u,K){K.addEventListener("yt-navigate-start",_.Ql(u,u.onYtNavigateStart));
K.addEventListener("yt-navigate-finish",_.Ql(u,u.onYtNavigateFinish));K.addEventListener("yt-navigate-error",_.Ql(u,u.onYtNavigateError));K.addEventListener("yt-page-data-fetched",_.Ql(u,u.onYtPageDataFetched))};
_.I=Xv.prototype;_.I.detached=function(){var u=_.GB().resolve(_.V1);u.removeEventListener("yt-navigate-start",_.Ql(this,this.onYtNavigateStart));u.removeEventListener("yt-navigate-finish",_.Ql(this,this.onYtNavigateFinish));u.removeEventListener("yt-navigate-error",_.Ql(this,this.onYtNavigateError));u.removeEventListener("yt-page-data-fetched",_.Ql(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Ql(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.I.setPageOffset=function(u,K){u?_.Sy(this.hostElement,"yt-set-page-offset",[u,K]):_.Xm(Error("$k"))};
_.I.setPageOffsetForNavigation=function(u,K){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(u,K))};
_.I.onYtNavigateSetPageOffset=function(u,K){this.setPageOffsetForNavigation(K.page,K.offset)};
_.I.getPageOffset=function(){var u=_.bi(this.hostElement).querySelector("#page-manager").getCurrentPage(),K=0;u&&(K=_.Sy(this.hostElement,"yt-get-page-offset",[u])[0]);return K};
_.I.onYtHistoryPop=function(u,K){if(_.L0("DISABLE_WARM_LOADS"))u.preventDefault(),window.location.reload();else{var l=_.GB().resolve(_.V1);l.hasPendingNavigation()&&u.preventDefault();l.cancelPendingNavigation();_.bI(this.hostElement,"yt-pending-navigation-cancelled");K.errorMsg&&(u=K.errorMsg.split(" - "),K=Error(u[0]),u.length==2&&u[1]&&(_.E5(K,u[1]),_.hV(K)),window.location.reload())}};
_.I.onYtHistoryLoad=function(u,K){var l=this;if(_.L0("DISABLE_WARM_LOADS"))window.location.reload();else{(u=K.endpoint)&&Object.keys(u).length||(u=null);var D=K.historyEntry,d=_.GB().resolve(_.V1),C=_.GB().resolve(_.GT),W=null;D&&D.rootData&&(W=D.rootData);var M=W&&P3B(W);!W||M||W.filler?u?(d.navigate(u,!0),JAo(this,u)):(K.legacyBorder||M||(K.JSC$29806_savedComponentState==null&&W==null?_.hV(new _.wv("Incomplete history entry",K.forward)):_.m0(new _.wv("Malformed history entry",K.JSC$29806_savedComponentState,
K.forward,W))),window.location.reload()):(_.FeL({isHot:!0}),_.Zy({webInfo:{navigationReason:"h"}}),_.s39(),_.As("srt"),_.As("pdc"),this.cancelPendingTasks(),jA_(this,K.forward,W),W.player&&(W.player.loaded=!1),JAo(this,u),_.s_0(d,u||{},W,2,{},!1,K).then(function(){l.setPageOffset(C.getCurrentPage(),D.scrollTop||0)}))}};
_.I.initHistoryManager=function(u){if(!this.hasNavigated){this.hasNavigated=!0;var K=_.bi(this.hostElement).querySelector("#page-manager").getCurrentData();u=isNaN(u)?this.getPageOffset():u;var l=_.GB().resolve(_.V1).currentEndpoint;this.replaceState(l,K,u)}};
_.I.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.I.onYtNavigateStart=function(u,K){this.cancelPendingTasks();K.noProgressBar||(u=_.GB().resolve(_.vv(zUI)))&&u.start();u=this.hasPendingNavigation?null:this.data;var l=_.GB().resolve(_.GT),D,d,C;_.S("kevlar_use_vimio_behavior")&&!((D=K.endpoint)==null?0:(d=D.commandMetadata)==null?0:(C=d.webCommandMetadata)==null?0:C.ignoreNavigation)&&(D=l.getCurrentPage())&&D.disconnectVisibilityRoot();l.prepareForNavigation(K.pageType,K.endpoint);_.S("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.tQ(1,
"pcl"),_.xK(this.pagePreparer,l.preparePage.bind(l,K.pageType,K.endpoint)));D=this.getPageOffset();this.initHistoryManager(D);K.reload||this.hasPendingNavigation?this.replaceState(K.endpoint,u,D):(u==null?void 0:u.page)==="watch"&&K.pageType==="watch"&&_.S("kevlar_replace_watch_to_watch_history_state")?this.replaceState(K.endpoint,u,D):(u==null?void 0:u.page)!=="shorts"||K.pageType!=="shorts"||K.endpoint.reelWatchEndpoint.sequenceParams||_.S("short_to_short_back_nav_killswitch")?K.type!="navigate-back"&&
K.type!="navigate-forward"&&(K.pageType==="shorts"&&_.xs(this.hostElement,"yt-shorts-reset"),this.saveAndPush(K.url,K.endpoint,u,D)):(_.S("web_enable_delay_shorts_sequence_call")&&(K.endpoint.reelWatchEndpoint.sequenceParams=u==null?void 0:u.cachedSequenceParams,K.endpoint.reelWatchEndpoint.sequenceProvider=u==null?void 0:u.cachedSequenceProvider),this.replaceState(K.endpoint,u,0));this.hasPendingNavigation=!0};
var BP_=function(u){u.hasPendingNavigation=!1;(u=_.GB().resolve(_.vv(zUI)))&&u.finish()};
Xv.prototype.onYtNavigateError=function(u,K){BP_(this);u=this.get("endpoint.commandMetadata.webCommandMetadata.url",K);var l=_.oK(window.location.href);u&&!l.pbjreload&&(K=K.navigationErrorReason||"10",_.S("kevlar_parent_on_pbjreload")&&(l={csn:_.AC()},this.get("data.endpoint.clickTrackingParams")&&(l.itct=this.data.endpoint.clickTrackingParams),_.qB(u,l)),_.Cg(_.Wv(u,{pbjreload:K})))};
Xv.prototype.onYtNavigateCache=function(u,K){var l=this,D=K.url,d=K.endpoint,C=K.data;u=!!K.miniplayer;K=!!K.skipHistory;if(D&&d&&C){var W=this.getPageOffset(),M=this.data||null;K||this.saveAndPush(D,d,M,W);D=_.s_0(_.GB().resolve(_.V1),d,C,u?4:3,{},u);u&&D.then(function(){l.dataUpdatePromise&&l.dataUpdatePromise.then(function(){var q=_.GB().resolve(_.GT);l.setPageOffset(q.getCurrentPage(),0)})})}};
Xv.prototype.onYtNavigateFinish=function(u,K){var l=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){pBG(l,K.fromHistory)})};
var pBG=function(u,K){BP_(u);if(u.pendingPlayerOnResponseReceivedActions){for(var l=_.y(u.pendingPlayerOnResponseReceivedActions),D=l.next();!D.done;D=l.next())_.Jl(D.value,u.hostElement);u.pendingPlayerOnResponseReceivedActions=[]}l=_.GB().resolve(_.GT);K||!u.hasNavigated||_.S("web_disable_scroll_on_navigate_finish")||((K=l.getCurrentPage())?K.is==="ytd-shorts"||u.tabGesturesIsActive||u.setPageOffsetForNavigation(K,0):_.hV(Error("al")));_.Cr(function(){_.Cr(function(){_.As("pda")})})};
Xv.prototype.onYtNavigate=function(u){if(!u.detail.endpoint){var K=new _.wv("Error: Missing yt-navigate endpoint from target:",u.target,u.target.nodeName);_.Xm(K)}if(K=_.S("cold_missing_history"))K=mn(),K.init(!1),K=!(K.browserHistory.boundHistoryReplaceState&&K.browserHistory.boundHistoryPushState);if(K){_.h8("DISABLE_WARM_LOADS",!0);K=new _.wv("Failed to initialize history manager",this.getDebugString());var l=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
l?_.hV(K):_.Xm(K)}K=u.detail.endpoint;var D,d;_.S("debug_forward_web_query_parameters")&&((D=K.commandMetadata)==null?0:(d=D.webCommandMetadata)==null?0:d.url)&&(K=JSON.parse(JSON.stringify(K)),K.commandMetadata.webCommandMetadata.url=_.ayo(K.commandMetadata.webCommandMetadata.url,window.location.search));u={type:0,command:K,form:{params:u.detail.params,tempData:u.detail.tempData||{},requestType:u.detail.type,createScreenConfig:u.detail.createScreenConfig,reload:u.detail.reload?u.detail.reload:!1,
requestForm:u.detail}};_.S("kevlar_yt_navigate_command_handler")?(D=_.GB().resolve(_.t9),u.form.skipDefaultElement=!0,D.resolveCommand(K,{form:u.form})):this.handleNavigate(u)};
Xv.prototype.handleNavigate=function(u){this.hasSetScrollTopForNavigation=!1;var K=_.GB().resolve(_.V1),l=u.form||{};K.navigate(u.command,l.reload,l.params,l.tempData,l.requestType,l.createScreenConfig,l.ignoreConfirmation,l.requestForm)&&JAo(this,u.command,l.tempData)};
Xv.prototype.onYtPageDataFetched=function(u,K){try{_.L$0().reset();this.data=K.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.GB().resolve(_.GT).updatePageData(this.data);if(!_.S("web_service_params_response_processor")){var l=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);l&&hSB(l);var D=this.get("response.responseContext.serviceTrackingParams",
this.data);D&&hSB(D)}var d=this.get("playerResponse.onResponseReceivedActions",this.data);d&&(d=iD_(this,d));d&&_.ay(this.hostElement,d,this.hostElement);var C=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),W=this.get("response.responseContext.consistencyTokenJar",this.data);if(C||W){var M=_.dRn(),q=(0,_.k$.getValues)(M.tokenJars);C&&M.replace(q,C);W&&M.replace(q,W)}}catch(v){_.Xm(v)}};
var JAo=function(u,K,l){try{u.onYtEndpointChangeHandler(K,l)}catch(D){_.Xm(D)}};
_.I=Xv.prototype;_.I.onYtEndpointChangeHandler=function(){};
_.I.setPageTitle=function(u){u=(this.pageTitle=u)?u+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+u};
_.I.onYtUpdateTitle=function(u,K){this.setPageTitle(K)};
_.I.setUnseenNotificationCount=function(u){this.unseenNotificationCount=u;this.setPageTitle(this.pageTitle)};
_.I.handleUpdateNotificationsUnseenCountAction=function(u){_.b(u,dsV)&&((u=_.b(u,dsV).unseenCount)?this.setUnseenNotificationCount(u):this.setUnseenNotificationCount(0))};
_.I.handleClearCookieAction=function(u){var K;(u=(K=_.b(u,u5_))==null?void 0:K.cookieName)&&_.kAq(u)};
_.I.onYtUpdateUnseenNotificationCount=function(u,K){this.setUnseenNotificationCount(K)};
_.I.loadData=function(u){var K=this;this.loadDepsPromise.then(function(){var l=_.GB().resolve(_.vv(_.V1));l||_.Xm(Error("bl"));if(u&&u.response){if(!u.endpoint){var D=_.dd(window.document.location.href)||"/",d="";if(D==="/"||D.startsWith("/?"))d="WEB_PAGE_TYPE_BROWSE";u.endpoint={commandMetadata:{webCommandMetadata:{url:D,webPageType:d,rootVe:3854}}}}_.s_0(l,u.endpoint,u,5,{})}else u.endpoint?l.navigate(u.endpoint):l.navigate(_.pt);_.YL.cancelJob(K.zwiebackInitJobId);K.zwiebackInitJobId=_.YL.addLowPriorityJob(Ydo)})};
var mn=function(){return _.GB().resolve(_.Qa)};
Xv.prototype.getDebugString=function(){return mn().getDebugString()};
Xv.prototype.getThirdPartyManipulationSuspected=function(){return mn().getThirdPartyManipulationSuspected()};
Xv.prototype.replaceState=function(u,K,l){mn().saveAndReplace(u,K,l)};
Xv.prototype.saveAndPush=function(u,K,l,D){mn().saveAndPush(u,K,l,D)};
var P3B=function(u){return _.b(u.endpoint,_.oy)||_.b(u.endpoint,_.TO)?!0:!u||isNaN(u.expirationTime)?!1:(0,_.vA)()>u.expirationTime},jA_=function(u,K,l){var D=u.get("response.trackingParams",l),d=_.Yr(),C=_.AC();
if(D&&d&&C&&(D=u.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",l),!D&&l.rootVe&&(D=l.rootVe),d=K?"forwardButton":"backButton",K=u.get("playerResponse.topbar.desktopTopbarRenderer."+d+".buttonRenderer.command.clickTrackingParams",u.data),u=u.get("response.topbar.desktopTopbarRenderer."+d+".buttonRenderer.command.clickTrackingParams",u.data),K=(u=K||u)?_.gf(u):void 0,u=_.iT(),d=[_.zA(l)],_.ev(u,D,K,{dataPromises:d,csnToClone:l.csn}),l.graftedVes))for(l=
_.y(l.graftedVes),D=l.next();!D.done;D=l.next())_.RD(u,D.value)};
Xv.prototype.onStoreGraftedVeAction=function(u){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(u)):_.hV(Error("cl"))};
var iD_=function(u,K){return K.filter(function(l){for(var D in l)if(URE[D])return u.pendingPlayerOnResponseReceivedActions.push(l),!0;return!1})};
_.MN.Object.defineProperties(Xv.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Xv.prototype.onStoreGraftedVeAction=Xv.prototype.onStoreGraftedVeAction;Xv.prototype.loadData=Xv.prototype.loadData;Xv.prototype.onYtUpdateUnseenNotificationCount=Xv.prototype.onYtUpdateUnseenNotificationCount;Xv.prototype.handleClearCookieAction=Xv.prototype.handleClearCookieAction;Xv.prototype.handleUpdateNotificationsUnseenCountAction=Xv.prototype.handleUpdateNotificationsUnseenCountAction;Xv.prototype.setUnseenNotificationCount=Xv.prototype.setUnseenNotificationCount;
Xv.prototype.onYtUpdateTitle=Xv.prototype.onYtUpdateTitle;Xv.prototype.setPageTitle=Xv.prototype.setPageTitle;Xv.prototype.onYtEndpointChangeHandler=Xv.prototype.onYtEndpointChangeHandler;Xv.prototype.onYtPageDataFetched=Xv.prototype.onYtPageDataFetched;Xv.prototype.handleNavigate=Xv.prototype.handleNavigate;Xv.prototype.onYtNavigate=Xv.prototype.onYtNavigate;Xv.prototype.onYtNavigateFinish=Xv.prototype.onYtNavigateFinish;Xv.prototype.onYtNavigateCache=Xv.prototype.onYtNavigateCache;
Xv.prototype.onYtNavigateError=Xv.prototype.onYtNavigateError;Xv.prototype.onYtNavigateStart=Xv.prototype.onYtNavigateStart;Xv.prototype.cancelPendingTasks=Xv.prototype.cancelPendingTasks;Xv.prototype.initHistoryManager=Xv.prototype.initHistoryManager;Xv.prototype.onYtHistoryLoad=Xv.prototype.onYtHistoryLoad;Xv.prototype.onYtHistoryPop=Xv.prototype.onYtHistoryPop;Xv.prototype.onYtNavigateSetPageOffset=Xv.prototype.onYtNavigateSetPageOffset;Xv.prototype.setPageOffset=Xv.prototype.setPageOffset;
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Xv.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Xv.prototype,"data",void 0);_.g([_.PF("yt-navigate-set-page-offset"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Xv.prototype,"onYtNavigateSetPageOffset",null);
_.g([_.PF("yt-history-pop"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Xv.prototype,"onYtHistoryPop",null);_.g([_.PF("yt-history-load"),_.N("design:type",Function),_.N("design:paramtypes",[Event,_.RzB]),_.N("design:returntype")],Xv.prototype,"onYtHistoryLoad",null);_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Xv.prototype,"onYtNavigate",null);
_.g([_.PF("yt-update-title"),_.N("design:type",Function),_.N("design:paramtypes",[Event,String]),_.N("design:returntype")],Xv.prototype,"onYtUpdateTitle",null);_.g([_.PF("yt-update-unseen-notification-count"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Number]),_.N("design:returntype")],Xv.prototype,"onYtUpdateUnseenNotificationCount",null);_.g([_.TQ()],Xv);eUk.YtdAppBehavior=[_.bf.YtActionHandlerBehavior,Xv.prototype];var hf=function(){var u=_.ii.apply(this,arguments)||this;u._noAccessors=!0;return u};
_.c(hf,_.ii);hf.prototype.ready=function(){var u=this;_.bi(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){u.onChange_()})};
hf.prototype.dataChanged_=function(){_.bi(this.hostElement).querySelector("#checkbox").checked=!1};
hf.prototype.onChange_=function(){var u=_.bi(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.xs(this.hostElement,"yt-dismissal-reason-"+u,this.data.feedbackToken)};
hf.prototype.dataChanged_=hf.prototype.dataChanged_;_.g([_.U(),_.N("design:type",Object)],hf.prototype,"data",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hf.prototype,"dataChanged_",null);_.g([_.TQ()],hf);var TPk=[hf.prototype];var EE=function(){var u=_.ii.apply(this,arguments)||this;u.timeoutJobId=0;u.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return u};
_.c(EE,_.ii);EE.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
EE.prototype.startTimeout=function(){var u=this,K=this.data&&this.data.displayDurationSeconds;K&&!this.timeoutJobId&&(this.timeoutJobId=_.Ve(_.YL,function(){_.Sy(u.hostElement,"yt-close-popup-action",[u.is]);u.timeoutJobId=0},K*1E3))};
EE.prototype.cancelTimeout=function(){_.YL.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
EE.prototype.ytdHatsSurveyBehaviorDataChanged=EE.prototype.ytdHatsSurveyBehaviorDataChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],EE.prototype,"ytActionHandlerBehavior",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EE.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.g([_.TQ()],EE);var wBG=[_.bf.YtActionHandlerBehavior,EE.prototype];var F9k=function(u,K){var l;return((l=u.prefixMapping)==null?0:l[K])?u.prefixMapping[K]:u.SHARED_RENDERERS_.hasOwnProperty(K)?"yt":u.prefix},Lw={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}};Lw.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.S("kevlar_mealbar_above_player"),modern:_.S("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"}};
Lw.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Lw.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Lw.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Lw.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)"}};
Lw.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};
Lw.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};
Lw.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};
Lw.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};Lw.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"}};
Lw.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Lw.TOAST={component:null,properties:{}};var V0k=new function(u,K,l){this.supportedPopups=u;this.navigationEndpointPopupMap=K;this.popupTypeMap=l;this.supportedPopups=u;this.navigationEndpointPopupMap=K;this.popupTypeMap=l}({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:_.S("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"}),gR6=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$19685_popupConfig=Lw;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 NPp=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.mr.getInstance()},ub=function(u,K){var l=u.pageNameToElement.get(K);
if(!l){switch(K){case "watch":var D=_.S("web_watch_force_learning_journey_for_testing")?_.GF("ytd-watch-learning-journey"):_.S("kevlar_watch_fixie")?_.GF("ytd-watch-fixie"):_.S("kevlar_watch_grid")?_.GF("ytd-watch-grid"):_.GF("ytd-watch-flexy");break;case "learning_journey_watch":D=_.GF("ytd-watch-learning-journey");break;case "shorts":D=_.GF("ytd-shorts");break;case "search":D=_.GF("ytd-search");break;case "channel":D=_.GF("ytd-browse");D.pageSubtype="channels";break;case "trending":D=_.GF("ytd-browse");
D.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":D=
_.GF("ytd-browse");D.pageSubtype=K;break;case "browse":D=_.GF("ytd-browse");break;default:_.hV(new _.wv("Error getting page element for type",K))}l=D;u.pageNameToElement.set(K,l)}return l};
NPp.prototype.preparePage=function(u,K,l){l&&(u=_.J_(l)||u);if(u!=="watch"&&u!=="learning_journey_watch"){var D=this.elementPoolPopulator,d=u;d!=D.targetPage_&&D.pendingPages_.indexOf(d)>-1&&(D.targetPage_&&(D.pendingPages_.unshift(D.targetPage_),D.abort()),pJ6(D,d),_.cS0(D,d))}if((D=ub(this,u))||!_.b(l,_.d_)){D.isAttached||D===K||(D.hidden=!0);if(!D.data&&(u!=="watch"&&u!=="learning_journey_watch"||!_.S("swatcheroo_page_pool_dont_provide_filler_data"))){var C;if(u=(C=_.E3("FILLER_DATA",{})[u])==
null?void 0:C.response)D.data=u}return D}};var kzE=function(u){this.JSC$31699_clientRoot=u;this.playlistHandlerActionMap={"yt-add-to-playlist-command":lvo,"yt-end-playlist-command":Dni,"yt-recover-playlist-command":Ci6,"yt-refresh-playlist-command":sbH,"yt-playlist-remove-videos-action":IvI};_.I9(_.Ci.getInstance(),this.playlistHandlerActionMap,this.JSC$31699_clientRoot);YKV()},ZDi;var Ku=function(u,K,l){this.apiKey=u;this.endpoint=K;this.confidenceThreshold=l===void 0?.5:l;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=K==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||K==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
K==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||K==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new wdB};
_.I=Ku.prototype;
_.I.start=function(u){if(this.state===0)if(this.isOnline()){u.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=u.supportsHttpHeadersOverwriteParam);u.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=u.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Ys("voice_assistant");_.Xi("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=u.languageCode||"en-US";this.supportsCrossDomainXhr=u.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=u.youtubeAssistantRequest||null;this.listeningHandler=u.listeningHandler||this.listeningHandler;this.audioDetectedHandler=u.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=u.stopHandler||this.stopHandler;this.completeHandler=u.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=u.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=u.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
u.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=u.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=u.accessToken;this.additionalHeaders=u.additionalHeaders||{};var K;this.prefetchResponseTimeoutMs=(K=u.prefetchResponseTimeoutMs)!=null?K:this.prefetchResponseTimeoutMs;Y8p(this);this.startAudio();AA_(this)}else this.errorHandler("OFFLINE")};
_.I.stop=function(u){var K=u===void 0?{}:u;u=K.logCancel===void 0?!0:K.logCancel;var l=K.logMicClosed===void 0?!0:K.logMicClosed;var D=K.handleError===void 0?!0:K.handleError;K=K.handleStop===void 0?!0:K.handleStop;this.state!==0&&(u&&lb("voz_cx"),Dc(this,{logMicClosed:l,handleStop:K}),D&&this.errorHandler("ABORTED"))};
_.I.getState=function(){return this.state};
_.I.isSupported=function(){return!0};
_.I.stopAudio=function(u){(u===void 0||u)&&lb("voz_mf")};
_.I.startAudio=function(){lb("voz_vp");return _.zA(null)};
var XBo=function(u,K){u.channelOpen&&(u.state!==2&&(u.state=2,lb("voz_ss"),u.listeningHandler()),K=new Uint8Array(K),K='{ "audioIn": "'+_.Yp(K)+'" }',u.channel.send(K))},Dc=function(u,K){var l=K===void 0?{}:K;
K=l.logMicClosed===void 0?!0:l.logMicClosed;l=l.handleStop===void 0?!0:l.handleStop;u.vozEndOfDataTimeout>-1&&(clearTimeout(u.vozEndOfDataTimeout),u.vozEndOfDataTimeout=-1);mRH(u);u.stopAudio(K);u.channel&&(u.channelOpen=!1,u.manuallyClosedChannel=!0,u.channel.close(),u.channel=void 0);u.transcribedSpeechResults=[];u.state=0;l&&u.stopHandler()},Y8p=function(u){var K={httpHeadersOverwriteParam:u.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},u.additionalHeaders,u.accessToken&&u.isUsingVoz?{Authorization:"Bearer "+u.accessToken}:{"x-goog-api-key":u.apiKey}),supportsCrossDomainXhr:u.supportsCrossDomainXhr};u.channel=new ld(u.endpoint,K);u.channel.open();_.kU(u.channel,"w",function(){var l=u.channel,D=l.send,d=u.isUsingVoz?"PLACEHOLDER":"example";d={config:{dialogStateIn:{languageCode:u.languageCode},deviceConfig:{deviceId:d,deviceModelId:d},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!u.isUsingVoz)d.config.requestType=4;else if(u.isUsingVoz&&u.youtubeAssistantRequest){var C=JSON.stringify(u.youtubeAssistantRequest);d.config.internalIn={youtubeAssistantS3InputJson:C}}D.call(l,d);u.channelOpen=!0;u.manuallyClosedChannel=!1});
_.kU(u.channel,"x",function(){u.manuallyClosedChannel||(u.channelOpen=!1,u.channel=void 0,Dc(u))});
_.kU(u.channel,"z",function(l){if(l.data){mRH(u);for(var D=0;D<l.data.length;D++){var d=u,C=l.data[D],W=C.speechResults;if(W)a:{var M=[];C=[];var q=!1;W=_.y(W);for(var v=W.next();!v.done;v=W.next()){v=v.value;if(v.noSpeech){Dc(d);d.errorHandler("NO_SPEECH");break a}v.transcript!==void 0&&v.stability!==void 0&&(v.stability<d.confidenceThreshold&&(q=!0),q?C.push(v.transcript):M.push(v.transcript))}if(M.length!==0||C.length!==0)M=M.join(" "),C=C.join(" "),d.receivedEndOfUtterance&&!d.isUsingVoz?d.isUsingVoz||
d.completeHandler([M,C]):(q=d,W=M,v=C,lb("voz_sf"),q.transcriptionUpdateHandler(W,v),q.transcribedSpeechResults=[W,v]),d.receivedEndOfUtterance&&(lb("voz_eou"),d.transcriptionCompleteHandler([M,C]),d.isUsingVoz&&(d.prefetchResponseTimeoutMs===0?Dc(d,{logMicClosed:!1,handleStop:!0}):d.prefetchResponseTimeoutMs>0&&hUp(d)))}else d.isUsingVoz&&(C==null?0:C.internalOut)?(C=JSON.parse(C.internalOut.youtubeAssistantS3OutputJson),C.userHasOptedInToVaa||C.vaaConsent?d.vaaConsentUpdateHandler(!!C.userHasOptedInToVaa,
!!C.vaaConsent):(ER_(d),C&&(M=d.transcribedSpeechResults,lb("voz_rqf"),d.completeHandler(M,C)))):C.eventType==="END_OF_UTTERANCE"?d.receivedEndOfUtterance=!0:(lb("voz_err"),d.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.hV(Error("dl")))}}});
_.kU(u.channel,"y",function(l){Dc(u);switch(l.status){case 1:l="WEBCHANNEL_NETWORK_ERROR";break;case 2:l="WEBCHANNEL_SERVER_ERROR";break;default:l="WEBCHANNEL_UNKNOWN_ERROR"}u.errorHandler(l);u.logError(Error(l))})};
Ku.prototype.logError=function(u){_.Xm(u)};
Ku.prototype.isOnline=function(){return!0};
var hUp=function(u){ER_(u);u.prefetchResponseSetTimeoutId=setTimeout(function(){Dc(u,{logMicClosed:!1,handleStop:!0})},u.prefetchResponseTimeoutMs)},ER_=function(u){u.prefetchResponseSetTimeoutId>-1&&(clearTimeout(u.prefetchResponseSetTimeoutId),u.prefetchResponseSetTimeoutId=-1)},AA_=function(u){mRH(u);
u.noResponseReceivedTimeout=window.setTimeout(function(){Dc(u);u.errorHandler("NO_SPEECH")},11E3)},mRH=function(u){u.noResponseReceivedTimeout>-1&&(window.clearTimeout(u.noResponseReceivedTimeout),u.noResponseReceivedTimeout=-1)},lb=function(u){_.As(u,void 0,"voice_assistant")};var dk=function(){Ku.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.c(dk,Ku);dk.prototype.isSupported=function(){return oHE()};
dk.prototype.startAudio=function(){var u=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.YU(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(D){L9G(u,D)};
this.processor.connect(this.audioContext.destination);var K=function(D){u.stream=D;if(!u.audioContext)return _.zA(null);D=u.audioContext.createMediaStreamSource(D);u.processor&&D.connect(u.processor);return _.zA(null)},l={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?K(this.stream):(l=navigator.mediaDevices.getUserMedia(l))?l.then(K).catch(function(D){Dc(u);D.name&&D.name==="NotAllowedError"?u.errorHandler("NO_MICROPHONE_PERMISSION"):(u.errorHandler("AUDIO_ERROR"),u.logError(D));return _.YU(null)}):(Dc(this),this.errorHandler("AUDIO_ERROR"),_.hV(Error("el")));
return Ku.prototype.startAudio.call(this)};
dk.prototype.stopAudio=function(u){u=u===void 0?!0:u;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(K){K.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Ku.prototype.stopAudio.call(this,u)};
dk.prototype.isOnline=function(){return navigator.onLine};
var L9G=function(u,K){if(u.audioContext)if(window.OfflineAudioContext){var l=u.audioContext.sampleRate,D=K.inputBuffer.getChannelData(0);K=new window.OfflineAudioContext(1,D.length,16E3);for(var d=K.createBuffer(1,D.length,l),C=d.getChannelData(0),W=0,M=0;M<D.length;M++)C[M]=D[M],W+=C[M]*C[M];!u.audioDetected&&Math.sqrt(W/D.length)>.01&&(u.audioDetected=!0,u.audioDetectedHandler());D=K.createBufferSource();D.buffer=d;D.connect(K.destination);D.start(0);K.oncomplete=function(q){q=q.renderedBuffer.getChannelData(0);
for(var v=Math.floor(16384E3/l),G=new Int16Array(v),t=0;t<v;++t)G[t]=Math.max(-1,Math.min(1,q[t]))*32767;XBo(u,G.buffer)};
K.startRendering()}else uEo(u,K)},uEo=function(u,K){var l=u.audioContext.sampleRate,D=K.inputBuffer.getChannelData(0),d=Math.floor((l+8E3)/16E3);
l=D.length/d;K=new Float32Array(l);for(var C=0;C<l;++C)K[C]=D[C*d];D=new Int16Array(l);for(d=0;d<l;++d)D[d]=Math.max(-1,Math.min(1,K[d]))*32767;XBo(u,D.buffer)};var K8o={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var lt6=function(){this.JSC$19750_audioEnabled=!0;this.audioFeedbackHolder={}};
lt6.prototype.isPlaying=function(u){return u.currentTime>0&&!u.paused&&!u.ended&&u.readyState>2};
var Dx_=function(u){for(var K=_.y(Object.values(K8o)),l=K.next();!l.done;l=K.next())l=l.value,u.audioFeedbackHolder[l]=new Audio,u.audioFeedbackHolder[l].src="/s/search/audio/"+l+".mp3",u.audioFeedbackHolder[l].load()},Cu=function(u,K){if(u.JSC$19750_audioEnabled!==!1&&K in u.audioFeedbackHolder){for(var l=_.y(Object.values(u.audioFeedbackHolder)),D=l.next();!D.done;D=l.next())D=D.value,u.isPlaying(D)&&D.pause();
u.audioFeedbackHolder[K].currentTime=0;u.audioFeedbackHolder[K].play().catch(function(){})}};var dxp=function(u,K){var l=this;this.store=u;this.service=K;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){l.setState("offline");l.stop()};
this.audioPlayer=new lt6;var D;(D=this.audioPlayer)==null||Dx_(D)};
_.I=dxp.prototype;_.I.getService=function(){return this.service};
_.I.isEnabled=function(){return!!this.service};
_.I.isSupported=function(){var u;return(u=this.service)==null?void 0:u.isSupported()};
_.I.start=function(){var u=this,K,l,D,d,C,W,M,q,v,G,t,x,O;return _.H(function(a){switch(a.nextAddress){case 1:u.store.dispatch(sXo("",""));if(!navigator.onLine)return u.setState("offline"),a.return();window.addEventListener("offline",u.handleOfflineEvent);u.stream=null;if(!u.permissionsSupported){a.jumpTo(2);break}_.Qg(a,3);return a.yield(CB_(u),5);case 5:K=a.yieldResult;if(!K)return(l=u.audioPlayer)==null||Cu(l,"failure"),a.return();u.service.stream=u.stream;u.setState("listening");_.I$(a,2);break;
case 3:_.iY(a),u.permissionsSupported=!1;case 2:D={context:_.Ewh(_.tP())},D.youtubeAssistantParams={searchParams:{inlineSearchResponse:u.enableInlineSearchResponse}},d=function(f,B){u.store.dispatch(o5o("transcribing"));u.store.dispatch(sXo(f,B))},C=function(){var f;
(f=u.audioPlayer)==null||Cu(f,"open");u.setState("listening")},W=function(){u.setState("transcribing")},M=function(f){u.setErrorState(f)},q=function(f,B){var p;
(p=u.audioPlayer)==null||Cu(p,"success");B&&(_.S("kevlar_voice_search_inline_search")&&(u.responseProcessor=_.GB().resolve(_.HBZ),u.responseProcessor&&(p=B.navigationAction,f=B.prefetchedSearchResponse,p&&f&&(p=(new _.woH).JSC$12984_getStoreKey(p),_.da(u.responseProcessor,f,p)))),u.JSC$19768_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",B))},v=function(){window.removeEventListener("offline",u.handleOfflineEvent)},G=_.y_q(!1),t=G.Authorization!=null,x=u.enableFirstPartyAuth||
u.enableFPAForSignedInUsers&&t?G:{"X-Goog-Visitor-Id":G["X-Goog-Visitor-Id"]},O={completeHandler:q,
errorHandler:M,listeningHandler:C,audioDetectedHandler:W,stopHandler:v,transcriptionUpdateHandler:d,youtubeAssistantRequest:D,languageCode:Itp(),additionalHeaders:x,supportsCrossDomainXhr:u.enableFirstPartyAuth||u.enableFPAForSignedInUsers&&t,supportsHttpHeadersOverwriteParam:!u.disableHttpHeadersOverwrite},u.service.start(O),_.TG(a)}})};
_.I.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.I.reset=function(){this.store.dispatch(_.SZ({type:"RESET_VOICE_SEARCH_STATE"}))};
_.I.setState=function(u){this.store.dispatch(o5o(u))};
_.I.setErrorState=function(u){switch(u){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var K;(K=this.audioPlayer)==null||Cu(K,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)CB_(this);else{var l;(l=this.audioPlayer)==null||Cu(l,"failure");this.setState("permission-denied")}break;case "ABORTED":var D;(D=this.audioPlayer)==null||Cu(D,"no_input");break;default:var d;(d=this.audioPlayer)==
null||Cu(d,"no_input");this.setState("timeout")}};
var CB_=function(u){var K,l;return _.H(function(D){switch(D.nextAddress){case 1:return D.yield(navigator.permissions.query({name:"microphone"}),2);case 2:K=D.yieldResult;if(K.state==="granted")return D.return(!0);if(K.state==="denied")return u.setState("permission-denied"),D.return(!1);u.setState("permission");l={audio:{sampleSize:16,channelCount:1},video:!1};_.Qg(D,3);return D.yield(navigator.mediaDevices.getUserMedia(l),5);case 5:return u.stream=D.yieldResult,D.return(!0);case 3:return _.iY(D),
u.setState("permission-denied"),D.return(!1)}})},Itp=function(){var u=_.E3("INNERTUBE_CONTEXT_HL"),K=_.E3("INNERTUBE_CONTEXT_GL");
return u.indexOf("-")>-1?u:u+"-"+K};var yaV=function(u,K,l){dxp.call(this,K,l);this.JSC$19768_actionRouter=u;this.enableInlineSearchResponse=_.S("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.S("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.S("kevlar_voice_search_enable_fpa_signedin_users")},smG;
_.c(yaV,dxp);
var o_I=function(){if(!smG){var u="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.S("kevlar_voice_search_auth_enabled")||_.S("kevlar_voice_search_use_yt_endpoint")?u="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.S("kevlar_voice_search_use_fp_endpoint")&&(u="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");smG=
new yaV(_.Ci.getInstance(),_.Mu(),new dk(_.E3("VOZ_API_KEY"),u,.5))}return smG};var W8H=function(u){this.JSC$19772_clientRoot=u;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$19772_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)]]));u=_.y(this.eventListeners);for(var K=u.next();!K.done;K=u.next()){var l=_.y(K.value);K=l.next().value;l=l.next().value;l=_.y(l);for(var D=l.next();!D.done;D=l.next()){var d=
_.y(D.value);D=d.next().value;d=d.next().value;K.addEventListener(D,d)}}_.I9(_.Ci.getInstance(),this.autonavPauseActionMap,this.JSC$19772_clientRoot)},HZI,M$E=function(u){return _.S("kevlar_autonav_popup_filtering")?(u=_.HF(u))?u.hasAttribute("prevent-autonav"):!0:!0};
_.I=W8H.prototype;_.I.onIronOverlayOpened=function(u){M$E(u)&&(this.autonavPauseReasons.overlayOpen=!0,Ia(this))};
_.I.onIronOverlayClosed=function(u){M$E(u)&&(this.autonavPauseReasons.overlayOpen=!1,Ia(this))};
_.I.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Ia(this)};
_.I.onYtAutonavPauseBlur=function(){var u=this;_.YL.addJob(function(){u.isInBackground()||(u.autonavPauseReasons.inputBoxFocus=!1,Ia(u))},8,0)};
_.I.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Ia(this)};
_.I.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Ia(this)};
_.I.onYtAutonavPauseScroll=function(){var u=_.GB().resolve(_.GT);u.isOnWatch()&&(u=u.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=u.getBoundingClientRect().top<-200,Ia(this))};
_.I.onYtAutonavPauseUserEngagement=function(u){var K=this;if(_.S("user_engagement_enable_autoplay_pause_feature")){var l=Number(u.lowEngagementThresholdMs);isNaN(l)||l<=0||u.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.vD("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.GB().resolve(_.Xb),_.Gr()<l?_.Ve(_.YL,function(){_.vD("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.AV6()?(this.userEngagementCsn=_.AC(),_.Ve(_.YL,function(){_.vD("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
K.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Ia(this)):_.vD("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.H1R(Error("fl`"+JSON.stringify(u)))};
_.I.onYtAutonavPausePlayer=function(u){this.autonavPauseReasons.requestedByPlayer=!!u.detail;Ia(this)};
_.I.onYtAutonavVisibilityChanged=function(){var u=this,K,l,D;return _.H(function(d){if(d.nextAddress==1)return(K=_.xY())?d.yield(K.getPlayerPromise(),2):d.return();l=d.yieldResult;D=l.isMuted()||l.getVolume()===0;u.autonavPauseReasons.backgroundAndMute=u.isInBackground()&&D;Ia(u);_.TG(d)})};
_.I.onYtAutonavPausePlayerEnded=function(){_.GB().resolve(_.Xb);var u=144E5;_.S("user_engagement_enable_autoplay_pause_feature")||_.S("is_part_of_any_user_engagement_experiment")||(u=45E5);this.autonavPauseReasons.longIdle=_.Gr()>u;qsk(this);Ia(this)};
_.I.onYtUserActivity=function(){var u=this;this.autonavPauseReasons.userEngagement&&(_.Ve(_.YL,function(){_.vD("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",u.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Ia(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Ve(_.YL,function(){_.vD("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",u.userEngagementCsn);_.AV()}),this.autonavPauseReasons.youthereLactExperiment=!1,Ia(this));
this.autonavPauseReasons.longIdle&&!_.S("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Ia(this))};
_.I.isInBackground=function(){var u=window.document.visibilityState;return!(!u||u==="visible")};
var Ia=function(u){for(var K=!1,l=_.y(Object.values(u.autonavPauseReasons)),D=l.next();!D.done;D=l.next())D=D.value,K=K||D;K?_.v3.getInstance().pause(u.autonavPauseReasons):(u=_.v3.getInstance(),u.autonavState_==3?(u.setState(2,!1,!1),u.autonavPauseReason_=void 0):u.autonavState_==1&&(u.disabledAutonavPauseReason_=void 0))},qsk=function(u){var K=!1;
if(_.S("enable_autoplay_pause_by_lact")){_.GB().resolve(_.Xb);K=_.Sg("autoplay_pause_by_lact_sec")*1E3;var l=_.Sg("autoplay_pause_by_lact_sampling_fraction");(K=_.Gr()>=K&&Math.random()<l)&&!_.AV6()&&(_.Ve(_.YL,function(){_.vD("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),K=!1)}K!==u.autonavPauseReasons.youthereLactExperiment&&(u.autonavPauseReasons.youthereLactExperiment=K)&&(u.userEngagementCsn=_.AC(),_.Ve(_.YL,function(){_.vD("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",u.userEngagementCsn)}));
u.autonavPauseReasons.userEngagement&&_.Ve(_.YL,function(){_.vD("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",u.userEngagementCsn)})};
W8H.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.vD("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.AV(),this.autonavPauseReasons.youthereLactExperiment=!1,Ia(this));this.autonavPauseReasons.userEngagement&&(_.vD("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Ia(this))};
W8H.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var yO=function(){var u=_.Q.apply(this,arguments)||this;u.miniGuideVisible=!1;u.guideOpened=_.S("disable_initial_guide_state_fix")?!1:u.canFitPersistentGuide(u.initialBodyClientWidth);u.guideUserStateOpened=u.getInitialGuideUserStateOpened();u.isFullscreenShorts=!1;u.miniGuideWidthThreshold=_.Sg("kevlar_mini_guide_width_threshold",791);u.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");u.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
u.persistentGuideBlockedPagePathRegex=new RegExp(u.persistentGuideBlockedPagesPatterns.join("|"));u.animationTransitionDuration=0;u.lateDataResolver=_.MX();u.initialGuideDataFetchFailed=!1;u.initialLoad=!0;u.guideRenderers=new Set;u.isMouseOverGuide=!1;u.sessionUserManuallyExpandedGuideState=!1;u.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};
return u};
_.c(yO,_.Q);_.I=yO.prototype;_.I.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.I.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.I.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.I.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.I.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.I.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.I.ready=function(){_.GB().addProvider({provide:_.dP,useValue:this.hostElement})};
_.I.attached=function(){var u=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Ql(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Ql(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Ql(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Ql(this,this.onYtGuideShow));_.W_(this,function(){u.animationTransitionDuration=200})};
_.I.detached=function(){document.removeEventListener("yt-navigate-finish",_.Ql(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Ql(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Ql(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Ql(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Ql(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Ql(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Ql(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.I.getData=function(){return this.data};
_.I.load=function(){var u=this,K,l,D,d;return _.H(function(C){switch(C.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=u.lateDataResolver.resolve.bind(u),C.return(u.lateDataResolver.promise);if(window.ytInitialGuideData)return K=_.MX(),K.resolve(window.ytInitialGuideData),C.return(K.promise);D=!1;_.Qg(C,2);return C.yield(u.fetchGuideData(),4);case 4:l=C.yieldResult;_.I$(C,3);break;case 2:d=_.iY(C),d.message==="Returned error"&&(D=
!0);case 3:if(l)return C.return(l);u.onYtGuideClose();D||(u.initialGuideDataFetchFailed=!0);return C.return(u.lateDataResolver.promise)}})};
_.I.fetchGuideData=function(){var u=this,K,l,D,d,C,W,M;return _.H(function(q){if(q.nextAddress==1)return K=_.GB(),u.guidePromise||(l=K.resolve(_.md),u.guidePromise=_.HJ(l,swp)),q.yield(u.guidePromise,2);if(q.nextAddress!=3)return D=q.yieldResult,d=K.resolve(_.HY),q.yield(d(),3);(C=q.yieldResult)&&((W=D)==null?void 0:(M=W.responseContext)==null?void 0:M.maxAgeSeconds)!==0&&C.put("service:guide:fallback",new _.e0({innertubeResponse:D}));return q.return(D)})};
_.I.initializeGuideDataIfEmpty=function(){var u=this,K,l;return _.H(function(D){if(D.nextAddress==1){if(!u.initialGuideDataFetchFailed||u.data)return D.return();_.Qg(D,2);return D.yield(u.fetchGuideData(),4)}if(D.nextAddress!=2)return(K=D.yieldResult)&&u.lateDataResolver.resolve(K),_.I$(D,0);l=_.iY(D);_.hV(l);_.TG(D)})};
_.I.initializeGuideData=function(){var u=this,K;return _.H(function(l){switch(l.nextAddress){case 1:return _.UA(R5V(),{mainAppWeb:_.Ib()}),_.Qg(l,2),l.yield(u.load(),4);case 4:u.data=l.yieldResult;_.I$(l,3);break;case 2:_.iY(l),_.f5(R5V(),"FAILURE");case 3:K=u.data&&u.data.items&&u.data.items.length>0?"SUCCESS":"FAILURE",_.f5(R5V(),K),_.TG(l)}})};
_.I.setGuideData=function(u){var K=this,l,D;return _.H(function(d){if(d.nextAddress==1)return K.disabled?d.return():K.data?(u.data=K.data,K.guideRenderers.add(u),d.return()):d.yield(K.initializeGuideData(),2);K.graftGuideToPage();l=_.L0("IS_HOMEPAGE_COLD")?"eop":void 0;_.S("disable_element_pool_populator")?K.setGuideDataAfterInit(u):(D=new _.tQ(1,l),_.xK(D,K.setGuideDataAfterInit.bind(K,u)));_.TG(d)})};
_.I.setGuideDataAfterInit=function(u){u.data=this.data;u.markDirty();this.guideRenderers.add(u);_.Cr(function(){_.As("gle")});
_.W_(this,function(){_.As("gpe")})};
_.I.graftGuideToPage=function(){if(this.data){var u=this.data&&this.data.trackingParams;u&&(u=_.gf(u),_.U7(_.iT(),u))}};
_.I.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Ql(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.I.onDrawerOpenedChanged=function(u,K){!K.value&&this.guideOpened&&(this.guideOpened=!1)};
_.I.onYtGuideToggle=function(u){var K=this.guideOpened;this.guideOpened=!K;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var l=_.jy();_.B0(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;l.save()}this.updateGuideDrawerElementState();if(this.guideElement){var D;this.guideOpened&&((D=u.detail)==null?0:D.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Ql(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.Ql(this,this.onAppDrawerTransitioned))}K||this.initializeGuideDataIfEmpty()};
_.I.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Ql(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Hu(this.guideElement)};
_.I.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Ql(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(ILp(this.guideOpened))};
_.I.guidePersistentAndVisibleChanged=function(){_.bI(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.I.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.SZ({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.I.miniGuideVisibleChanged=function(){_.bI(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.I.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(ILp(this.guideOpened)),this.initialLoad=!1);_.bI(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.I.activeEndpointChanged=function(){_.bI(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.I.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.I.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()};
_.I.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var u=this.canFitPersistentGuide(this.cachedClientWidth);u?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=u}this.updateGuideDrawerElementState()};
_.I.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.I.getGuideOpened=function(){return this.guideOpened};
_.I.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.I.getActiveEndpoint=function(){return this.activeEndpoint};
_.I.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.I.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&&_.xs(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.I.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.S("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.I.handleGuideMouseLeave=function(){var u=this;!this.sessionUserManuallyExpandedGuideState&&_.S("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.It(this,"handleGuideMouseLeave",function(){u.isMouseOverGuide||!u.guideOpened||u.miniGuideVisible||(u.guideOpened=!1,u.updateGuideDrawerElementState())},100))};
_.I.computeGuidePersistentAndVisible=function(){var u=this;_.It(this,"computeGuidePersistentAndVisible",function(){u.guidePersistentAndVisible=u.guideOpened&&u.guidePersistent;u.guideIsVisibleButNotPersistent=!(!u.guideOpened||u.guidePersistent)})};
_.I.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.I.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.I.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.I.startLoadingWatch=function(){this.closeGuide()};
_.I.startLoadingShorts=function(){_.S("web_hide_guide_on_shorts")&&this.closeGuide()};
_.I.onYtNavigateFinish=function(u,K){if(!_.aj||K){this.activeEndpoint=K.endpoint;this.pageType=K.pageType;this.pageUrl=K.response.url;var l,D;u=(D=_.b((l=K.endpoint)==null?void 0:l.commandMetadata,_.nN))==null?void 0:D.url;!this.pageUrl&&u&&(this.pageUrl=u);_.S("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.I.getVisibleGuideRenderer=function(){for(var u=_.y(this.guideRenderers),K=u.next();!K.done;K=u.next())if(K=K.value,this.miniGuideVisible&&K.is==="ytd-mini-guide-renderer"||this.guideOpened&&K.is==="ytd-guide-renderer")return K;return null};
_.I.markGuideRendererDirty=function(u){if(u){typeof u.markDirty==="function"&&u.markDirty();u=_.y([].concat(_.Am(_.bi(u).children)));for(var K=u.next();!K.done;K=u.next())this.markGuideRendererDirty(K.value)}};
_.I.persistentGuideEnabled=function(u,K){if(!K||u==="watch"||u==="settings"||u==="shorts"&&this.isFullscreenShorts||_.S("reels_web_disable_persistent_guide_shorts")&&u==="shorts")return!1;var l=_.RK(K)||"";return _.S("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(D){return l===D}):!this.persistentGuideBlockedPagePathRegex.test(l)};
_.I.canFitPersistentGuide=function(u){var K=_.Sg("kevlar_persistent_guide_width_threshold",1312);return K===-1||_.S("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:u>K};
_.I.canFitMiniGuide=function(u){return this.miniGuideWidthThreshold===-1?!1:u>this.miniGuideWidthThreshold};
_.I.onResize=function(){var u=this;_.It(this,"calculateGuideState",function(){u.onResizeDebounced()})};
_.I.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.I.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.I.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.I.getInitialGuideUserStateOpened=function(){return _.S("web_force_mini_guide_default")?!1:!_.jy().getFlag(109)};
_.MN.Object.defineProperties(yO.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.E3("initialBodyClientWidth")||window.innerWidth}}});
yO.prototype.onResize=yO.prototype.onResize;yO.prototype.observeForMiniGuideVisible=yO.prototype.observeForMiniGuideVisible;yO.prototype.computeGuidePersistentAndVisible=yO.prototype.computeGuidePersistentAndVisible;yO.prototype.cachedClientWidthChanged=yO.prototype.cachedClientWidthChanged;yO.prototype.resetGuide=yO.prototype.resetGuide;yO.prototype.activeEndpointChanged=yO.prototype.activeEndpointChanged;yO.prototype.guideOpenedChanged=yO.prototype.guideOpenedChanged;
yO.prototype.miniGuideVisibleChanged=yO.prototype.miniGuideVisibleChanged;yO.prototype.guideIsVisibleButNotPersistentChanged=yO.prototype.guideIsVisibleButNotPersistentChanged;yO.prototype.guidePersistentAndVisibleChanged=yO.prototype.guidePersistentAndVisibleChanged;yO.prototype.onGuideElementChanged=yO.prototype.onGuideElementChanged;yO.prototype.onGuidePersistentChanged=yO.prototype.onGuidePersistentChanged;yO.prototype.onRenderGuideChanged=yO.prototype.onRenderGuideChanged;
yO.prototype.onActiveEndpointChanged=yO.prototype.onActiveEndpointChanged;yO.prototype.onMiniGuideVisibleChanged=yO.prototype.onMiniGuideVisibleChanged;yO.prototype.onGuideIsVisibleButNotPersistentChanged=yO.prototype.onGuideIsVisibleButNotPersistentChanged;yO.prototype.onGuidePersistendAndVisibleChanged=yO.prototype.onGuidePersistendAndVisibleChanged;_.g([_.e(_.Ae),_.N("design:type",Object)],yO.prototype,"ironResizableBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],yO.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],yO.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],yO.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],yO.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],yO.prototype,"disabled",void 0);
_.g([_.U(),_.N("design:type",Boolean)],yO.prototype,"guidePersistentAndVisible",void 0);_.g([_.JU("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"onGuidePersistendAndVisibleChanged",null);_.g([_.U(),_.N("design:type",Boolean)],yO.prototype,"guideIsVisibleButNotPersistent",void 0);
_.g([_.JU("guideIsVisibleButNotPersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.g([_.U(),_.N("design:type",Object)],yO.prototype,"miniGuideVisible",void 0);_.g([_.JU("miniGuideVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"onMiniGuideVisibleChanged",null);_.g([_.U(),_.N("design:type",Boolean)],yO.prototype,"forceMiniGuideClose",void 0);
_.g([_.U(),_.N("design:type",Object)],yO.prototype,"activeEndpoint",void 0);_.g([_.JU("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"onActiveEndpointChanged",null);_.g([_.U(),_.N("design:type",Boolean)],yO.prototype,"renderGuide",void 0);_.g([_.JU("renderGuide"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"onRenderGuideChanged",null);
_.g([_.U(),_.N("design:type",Object)],yO.prototype,"guideOpened",void 0);_.g([_.U(),_.N("design:type",Boolean)],yO.prototype,"guidePersistent",void 0);_.g([_.JU("guidePersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"onGuidePersistentChanged",null);_.g([_.U(),_.N("design:type",Object)],yO.prototype,"guideUserStateOpened",void 0);_.g([_.U(),_.N("design:type",String)],yO.prototype,"pageUrl",void 0);
_.g([_.U(),_.N("design:type",String)],yO.prototype,"pageType",void 0);_.g([_.U(),_.N("design:type",Number)],yO.prototype,"cachedClientWidth",void 0);_.g([_.U(),_.N("design:type",Object)],yO.prototype,"guideElement",void 0);_.g([_.U({selector:_.R5}),_.N("design:type",Object)],yO.prototype,"isFullscreenShorts",void 0);_.g([_.JU("guideElement"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"onGuideElementChanged",null);
_.g([_.JU("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"guidePersistentAndVisibleChanged",null);_.g([_.wn("guideIsVisibleButNotPersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.g([_.JU("miniGuideVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"miniGuideVisibleChanged",null);_.g([_.wn("guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"guideOpenedChanged",null);_.g([_.JU("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"activeEndpointChanged",null);
_.g([_.wn("pageUrl"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"resetGuide",null);_.g([_.wn("cachedClientWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"cachedClientWidthChanged",null);_.g([_.JU("guideOpened","guidePersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"computeGuidePersistentAndVisible",null);
_.g([_.wn("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"observeForMiniGuideVisible",null);_.g([_.PF("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yO.prototype,"onResize",null);_.g([_.T({disableElementRegistration:!0,is:"yt-guide-manager"})],yO);var $xI=_.F(yO,"yt-guide-manager",void 0,{mode:_.zW("kevlar_poly_si_batch_j081")?1:2});var sq=function(){var u=_.Q.apply(this,arguments)||this;u.JSC$19782_keyboardInUse=!1;u.boundHandleCapturedKeydownEvent=function(K){u.handleCapturedKeydownEvent(K)};
return u};
_.c(sq,_.Q);_.I=sq.prototype;_.I.attached=function(){this.listenToDocument(document)};
_.I.listenToDocument=function(u){u.addEventListener("keydown",_.Ql(this,this.onKeyDownEvent));u.addEventListener("keyup",_.Ql(this,this.onKeyUpEvent));u.addEventListener("mousedown",_.Ql(this,this.onMouseDownEvent));_.S("desktop_keyboard_capture_keydown_killswitch")||u.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);u.addEventListener("yt-page-data-updated",_.Ql(this,this.onPageUpdate))};
_.I.detached=function(){this.unlistenFromDocument(document)};
_.I.unlistenFromDocument=function(u){u.removeEventListener("keydown",_.Ql(this,this.onKeyDownEvent));u.removeEventListener("keyup",_.Ql(this,this.onKeyUpEvent));u.removeEventListener("mousedown",_.Ql(this,this.onMouseDownEvent));_.S("desktop_keyboard_capture_keydown_killswitch")||u.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);u.removeEventListener("yt-page-data-updated",_.Ql(this,this.onPageUpdate))};
_.I.ready=function(){_.GB().addProvider({provide:_.zF,useValue:this})};
_.I.isKeyBoardInUse=function(){return this.JSC$19782_keyboardInUse};
_.I.handleCapturedKeydownEvent=function(u){if(u.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(u)};
_.I.onMouseDownEvent=function(){this.JSC$19782_keyboardInUse=!1};
_.I.onPageUpdate=function(){if(_.S("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.S("web_shorts_keyboard_shortcut_usage_log")){_.bV.clear();for(var u=_.y(_.x7),K=u.next();!K.done;K=u.next()){var l=_.y(K.value);K=l.next().value;l=l.next().value;l=_.Yo(l);_.bV.set(K,l);_.DJ(_.AC(),_.Yr(),l)}_.OX.clear();u=_.y(_.SE);for(K=u.next();!K.done;K=u.next())l=_.y(K.value),K=l.next().value,l=l.next().value,l=_.Yo(l),_.OX.set(K,l),_.DJ(_.AC(),_.Yr(),l);_.dZ(_.AC(),_.Yr(),[].concat(_.Am(_.OX.values()),
_.Am(_.bV.values())));_.If(_.AC(),[].concat(_.Am(_.OX.values()),_.Am(_.bV.values())))}};
_.I.onMiniplayerActiveChange=function(){var u;(u=_.GB().resolve(_.uD).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(u.document):this.unlistenFromDocument(u.document))};
_.I.ignoreKeyEvent=function(u){if(u.ctrlKey||u.altKey)if(_.S("kevlar_macro_markers_keyboard_shortcut")){if(u.keyCode!==37&&u.keyCode!==39)return!0}else return!0;var K=_.WF(u)||[];return _.hao(K)?!0:u.defaultPrevented?(BD(u.keyCode,u.shiftKey,this.isShortsPage),!0):u.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(u):!1};
_.I.isSpacebarClick=function(u){var K=u||window.event;var l;K.composedPath&&typeof K.composedPath==="function"?l=K.composedPath():l=K.path;l&&l.length?K=l[0]:(K=K||window.event,K=K.target||K.srcElement,K.nodeType==3&&(K=K.parentNode));return K&&u.keyCode===32&&(u=K.tagName==="BUTTON"||K.tagName==="A"||K.tagName==="INPUT",K=(K=K.getAttribute("role"))&&(K==="option"||K==="button"||K.indexOf("menuitem")===0),u||K)?!0:!1};
_.I.onKeyDownEvent=function(u){if(!this.ignoreKeyEvent(u)&&(u.keyCode===191&&(u.shiftKey||u.metaKey?u.repeat!=null&&u.repeat||(this.openHotkeyDialog(),BD(u.keyCode,u.shiftKey,this.isShortsPage)):(this.focusSearchBox(),u.preventDefault())),!u.metaKey)){var K=_.GB().resolve(_.uD);switch(u.keyCode){case 9:this.JSC$19782_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(u);break;case 84:K.pipController.getWindow()&&window.focus();this.toggleTheaterMode(u.keyCode,u.shiftKey);break;case 73:K.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(u.keyCode,u.shiftKey);break;case 70:if(this.isShortsPage&&_.S("web_fullscreen_shorts")){_.EEE();break}this.isMiniplayerActive()?K.pipController.getWindow()&&(K.close(!0),window.focus()):this.passEventToPlayer(u);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(u.keyCode,u.shiftKey):this.closeMiniplayer(u.keyCode,u.shiftKey)||this.passEventToPlayer(u);break;case 13:u.shiftKey&&_.GB().resolve(_.JG).activate(u);break;default:this.passEventToPlayer(u)}}};
_.I.onKeyUpEvent=function(u){if(!this.ignoreKeyEvent(u))if(_.S("web_speedmaster_spacebar_control")&&u.keyCode===32)this.handlePlayerSpaceKey(u,!0);else{var K=this.getPlayerManager();K&&(K=K.getPlayer())&&K.handleGlobalKeyUp(u.keyCode,u.shiftKey,u.ctrlKey,u.altKey,u.metaKey,u.key,u.code)}};
_.I.getPlayerManager=function(){var u=_.xY(),K=_.GB().resolve(_.vv(_.GT));return u&&K&&K.isOnWatch()?u:null};
_.I.passEventToPlayer=function(u,K){var l=this,D,d,C,W;return _.H(function(M){if(M.nextAddress==1){if(!_.S("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&l.isMiniplayerActive())D=_.GB().resolve(_.uD).getPlayerElement();else if(l.inlinePreviewIsActive){if(d=_.bI(l.hostElement,"yt-get-inline-preview-player-action"),(C=d)==null?0:C[0])D=d[0]}else D=_.xY();return D?M.yield(D.getPlayerPromise(),3):M.jumpTo(0)}W=M.yieldResult;K?W.handleGlobalKeyUp(u.keyCode,u.shiftKey,u.ctrlKey,u.altKey,u.metaKey,
u.key,u.code):W.handleGlobalKeyDown(u.keyCode,u.shiftKey,u.ctrlKey,u.altKey,u.metaKey,u.key,u.code,u.repeat);u.keyCode!==38&&u.keyCode!==40&&BD(u.keyCode,u.shiftKey,l.isShortsPage);_.TG(M)})};
_.I.focusSearchBox=function(){_.xs(this.hostElement,"yt-focus-searchbox")};
_.I.openHotkeyDialog=function(){_.xs(this.hostElement,"yt-open-hotkey-dialog")};
_.I.isMiniplayerActive=function(){return _.GB().resolve(_.uD).isMiniplayerActive()};
_.I.closeMiniplayer=function(u,K){return this.isMiniplayerActive()?(_.GB().resolve(_.uD).close(),BD(u,K,this.isShortsPage),!0):!1};
_.I.toggleTheaterMode=function(u,K){var l=_.ue(_.Mu().getState()),D=this.getPlayerManager(),d=_.S("disable_theater_mode_keyboard")||_.L0("START_IN_FULL_WINDOW_MODE");D&&!d&&(l=!l,_.rd()&&_.S("external_fullscreen")&&(l=!0),_.Sy(this.hostElement,"yt-toggle-theater-mode",[l]),BD(u,K,this.isShortsPage))};
_.I.toggleMiniplayer=function(u,K){var l=this.getPlayerManager();if(this.isMiniplayerActive()){var D;((D=_.GB().resolve(_.vv(_.GT)))==null?0:D.isOnWatch())?_.GB().resolve(_.uD).close(!0):_.NF(_.GB().resolve(_.uD));BD(u,K,this.isShortsPage)}else l&&(_.Sy(this.hostElement,"yt-activate-miniplayer-from-watch-action"),BD(u,K,this.isShortsPage))};
_.I.handlePlayerSpaceKey=function(u,K){var l=!!_.xY()||this.isMiniplayerActive();l=_.S("disable_space_scroll_fix")||l;_.S("global_spacebar_pause")&&!this.isKeyBoardInUse()&&l&&(u.preventDefault(),this.passEventToPlayer(u,K))};
_.I.isPresentingTheaterMode=function(){return _.S("web_watch_enable_tm_esc_key")?_.ue(_.Mu().getState())&&!_.rd():!1};
sq.prototype.onMiniplayerActiveChange=sq.prototype.onMiniplayerActiveChange;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],sq.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],sq.prototype,"ytdReduxBehavior",void 0);_.g([_.U({selector:_.Otw}),_.N("design:type",Boolean)],sq.prototype,"inlinePreviewIsActive",void 0);_.g([_.U({selector:_.yf9}),_.N("design:type",Boolean)],sq.prototype,"isShortsPage",void 0);
_.g([_.U({selector:_.X6}),_.N("design:type",Boolean)],sq.prototype,"miniplayerIsActive",void 0);_.g([_.JU("miniplayerIsActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sq.prototype,"onMiniplayerActiveChange",null);_.g([_.T({disableElementRegistration:!0,is:"yt-hotkey-manager"})],sq);_.F(sq,"yt-hotkey-manager",void 0,{mode:_.zW("kevlar_poly_si_batch_j081")?1:2});var oa=function(){var u=_.Q.apply(this,arguments)||this;u.loopStateEntityKey_=null;u.playlistLoopStateEntity_=null;u.isShuffleNextPlaylist=!1;u.PLAYER_EVENTS_=new Map;u.playerListenersSetup_=!1;u.videoSkipJob_=0;u.canAutoAdvance_=!1;u.playerManager_=null;u.TEST_ONLY={};return u};
_.c(oa,_.Q);_.I=oa.prototype;_.I.ready=function(){_.GB().addProvider({provide:_.lX,useValue:this.hostElement})};
_.I.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_)};
_.I.attached=function(){document.addEventListener("yt-navigate-start",_.Ql(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Ql(this,this.onYtNavigateFinish_))};
_.I.detached=function(){document.removeEventListener("yt-navigate-start",_.Ql(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Ql(this,this.onYtNavigateFinish_))};
_.I.updatePlaylistEventListeners=function(u,K){K&&!this.playerListenersSetup_?(this.playerManager_=u,this.registerPlaylistEventListeners_(u)):!K&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(u))};
_.I.setPlayer=function(u){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=u};
_.I.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.I.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.I.registerPlaylistEventListeners_=function(u){var K=this;u.getPlayerPromise().then(function(l){K.playerListenersSetup_||(K.ytPlayerListenerBehavior.listenToPlayerEvents(l,K.PLAYER_EVENTS_),K.playerListenersSetup_=!0)})};
_.I.removePlaylistEventListeners_=function(u){var K=this;u.getPlayerPromise().then(function(l){K.playerListenersSetup_&&(K.ytPlayerListenerBehavior.unlistenFromPlayerEvents(l,K.PLAYER_EVENTS_),K.playerListenersSetup_=!1)})};
_.I.setPlaylistComponent=function(u){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Ql(this,this.onPlaylistYtNavigate_)),u&&(u.data&&this.playlistComponent.data&&u.data.playlistId==this.playlistComponent.data.playlistId?(u.loopOn=this.playlistComponent.loopOn,u.shuffleOn=this.playlistComponent.shuffleOn):(u.loopOn=!1,u.shuffleOn=!1),this.isShuffleNextPlaylist&&(u.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=u;this.playlistComponent.addEventListener("yt-navigate",
_.Ql(this,this.onPlaylistYtNavigate_))};
_.I.setAutoplayRenderer=function(u){this.autoplayData=u};
_.I.setPlaylistData=function(u){this.currentPlaylistData_=u;_.xs(this.hostElement,"yt-playlist-data-updated");_.k$.isEmpty(u)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(u)};
_.I.setPlayerPlaybackControlData=function(u){this.playerManager_&&this.playerManager_.updatePlayerComponents(u.playlistPanelRenderer)};
_.I.getPlaylistData=function(){return this.currentPlaylistData_};
_.I.getTempData_=function(u,K){if(this.playlistComponent==null)return null;u={};this.playlistComponent.shuffleOn&&(u.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(u.loop_on=this.playlistComponent.loopOn);K&&(u.autonav="1",_.GB().resolve(_.Xb),K=_.Gr(),K>0&&(u.lact=K),this.playerManager_&&(K=this.playerManager_.getPlayer())&&K.shouldSendVisibilityState()&&(K=K.getVisibilityState(),K!=0&&(u.vis=K)));_.S("enable_unknown_lact_fix_on_html5")&&(_.GB().resolve(_.Xb),u.lact=
_.Gr());return u};
_.I.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.I.setLoopStateEntityKey_=function(u){var K;this.loopStateEntityKey_=((K=this.getPlaylistLoopData_(u))==null?void 0:K.playlistLoopStateEntityKey)||null};
_.I.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.I.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.I.skipVideo=function(){var u=this,K=_.S("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||K)K=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.Vo(_.YL,function(){u.onPlaylistNext();u.videoSkipJob_=0},K)};
_.I.cancelVideoSkip=function(){this.videoSkipJob_&&(_.YL.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.I.isInBackground_=function(){var u=window.document.visibilityState;return!(!u||u=="visible")};
_.I.onPlaylistIndex_=function(u){this.playlistComponent&&(u=this.playlistComponent.data.contents[u].playlistPanelVideoRenderer.navigationEndpoint,_.xs(this.hostElement,"yt-navigate",{endpoint:u,tempData:this.getTempData_(u)}))};
_.I.onPlayerStateChange_=function(u){if(u=u==0&&this.playlistComponent&&this.canAutoAdvance_)u=_.v3.getInstance(),u=!(u.autonavState_===3?u.autonavPauseReason_&&u.autonavPauseReason_.inputBoxFocus===!0:u.autonavState_===1&&u.disabledAutonavPauseReason_&&u.disabledAutonavPauseReason_.inputBoxFocus===!0);u&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.I.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.I.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.I.navigateToAutoplayWatchEndpoint_=function(u,K,l){var D=this.playlistComponent.data.currentIndex,d=this.getNumPlayableVideos_();u=="NORMAL"&&K=="autoplayVideo"&&D+1>=d&&l||!(u=this.getVideoEndpoint_(u,K))||(l=this.getTempData_(u,l),_.xs(this.hostElement,"yt-navigate",{endpoint:u,tempData:l}))};
_.I.getNumPlayableVideos_=function(){for(var u=0,K=_.y(this.playlistComponent.data.contents||[]),l=K.next();!l.done;l=K.next())l.value.playlistPanelVideoRenderer&&(u+=1);return u};
_.I.getVideoEndpoint_=function(u,K){if(this.autoplayData&&this.autoplayData.sets)for(var l=0,D=this.autoplayData.sets.length;l<D;l++){var d=this.autoplayData.sets[l];if(d.mode==u){if(d[K])return d[K];break}}else u=new _.wv("AutoplayData is undefined in playlist manager","Mode: "+u+" endpoint: "+K),_.hV(u)};
_.I.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.I.onPlaylistYtNavigate_=function(u){if(u.detail.endpoint){u.stopPropagation();var K=u.detail;K.tempData=this.getTempData_(u.detail.endpoint);_.xs(this.hostElement,"yt-navigate",K)}};
_.I.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.I.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.I.playlistLoopStateEntityChanged_=function(u){var K=this,l,D,d;return _.H(function(C){if(C.nextAddress==1){if(!u)return C.return();l=u.state==="PLAYLIST_LOOP_STATE_ONE";return K.playerManager_?C.yield(K.playerManager_.getPlayerPromise(),3):C.jumpTo(2)}C.nextAddress!=2&&(D=C.yieldResult,D.setLoopVideo(l));d=u.state==="PLAYLIST_LOOP_STATE_ALL";K.playlistComponent&&(K.playlistComponent.loopOn=d);_.TG(C)})};
_.I.getPlaylistLoopData_=function(u){var K,l;if(u=u==null?void 0:(K=u.playlistButtons)==null?void 0:(l=K.menuRenderer)==null?void 0:l.topLevelButtons)for(K=_.y(u),l=K.next();!l.done;l=K.next())if(l=l.value,l.playlistLoopButtonRenderer)return l.playlistLoopButtonRenderer};
_.I.getLoopStateCommand_=function(u){var K=this.getPlaylistData(),l;K=((l=this.getPlaylistLoopData_(K))==null?void 0:l.states)||[];var D;u=(D=_.b(K[u?1:2],_.OX0))==null?void 0:D.button;var d;return(d=_.b(u,_.lF))==null?void 0:d.command};
_.I.onPlayerLoopChange_=function(u){this.playlistLoopStateEntity_&&(u?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(u=this.getLoopStateCommand_(u))&&this.ytComponentBehavior.resolveCommand(u)};
_.I.onSleepTimerSettingsChanged_=function(u){this.canAutoAdvance_=u!=="End of video"};
oa.prototype.onPlaylistLoopStateEntityChanged=oa.prototype.onPlaylistLoopStateEntityChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],oa.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",_.HB)],oa.prototype,"ytPlayerListenerBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],oa.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],oa.prototype,"loopStateEntityKey_",void 0);
_.g([_.U({selectorArgs:["loopStateEntityKey_"],selector:_.zzH}),_.N("design:type",Object)],oa.prototype,"playlistLoopStateEntity_",void 0);_.g([_.JU("playlistLoopStateEntity_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oa.prototype,"onPlaylistLoopStateEntityChanged",null);_.g([_.T({disableElementRegistration:!0,is:"yt-playlist-manager"})],oa);_.F(oa,"yt-playlist-manager",void 0,{mode:_.zW("kevlar_poly_si_batch_j081")?1:2});var n_V,rak=function(){if(n_V!==void 0)return n_V;var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return n_V=u};var W5=function(){var u=_.Q.apply(this,arguments)||this;u.lastCallback=null;u.getAccountLinkPromises={};u.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);u.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return u};
_.c(W5,_.Q);_.I=W5.prototype;_.I.getLocation=function(){return window.location.href};
_.I.getCompletionUrl=function(){return _.MB(this.getLocation())};
_.I.containsRedirectState=function(u){return(u=_.NZ(_.CuZ(u)))?(new URLSearchParams(u)).get("redirect_state")!==null:!1};
_.I.createGalConfig=function(u,K){var l=new UaI;u=l=K?this.getPopupOrRedirectSetting(l,_.E3("LINK_API_KEY"),_.E3("LINK_API_KEY_REDIRECT"),u):fOp(l,_.E3("LINK_API_KEY"));u.authUser=_.E3("SESSION_INDEX")||0;u.supportedFlows=new Set([4]);return u.build()};
_.I.getPopupOrRedirectSetting=function(u,K,l,D){this.isGalInteractionPopupMode(D)?(u.interactionMode=0,u=fOp(u,K)):(u.interactionMode=1,K=this.getCompletionUrl(),u.completionUrl=K,u=fOp(u,l));return u};
_.I.isGalInteractionPopupMode=function(u){if(this.redirectModeProviderAllowlist.has(u))switch(u){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.I.getStatusEntityKeyForProviderId=function(u){return _.zI(u+":all","accountLinkStatusEntity")};
_.I.findNestedPropValue=function(u,K){var l=!1,D=null;JSON.stringify(u,function(d,C){l||d!==K||(l=!0,D=C);return l?null:C});
return D};
_.I.findAccountLinkButtonViewModel=function(u,K){var l=null,D=!1;JSON.stringify(u,function(d,C){D||C.accountLinkStatusEntityKey!==K||C.accountLinkStatusSecondaryEntityKey||(D=!0,l=C);return D?null:C});
return l};
_.I.executeLinkingSuccessOrFailureCommands=function(u,K,l){var D=null,d;(K==null?0:(d=K.url)==null?0:d.includes("account_sharing"))?D=K==null?void 0:K.response:D=K==null?void 0:K.response;(K=this.findAccountLinkButtonViewModel(D,u))?(u=l?this.findNestedPropValue(K,"onSuccessCommand"):this.findNestedPropValue(K,"onFailureCommand"))?_.Ry([u],this.hostElement):_.D_(Error("gl")):_.D_(Error("hl`"+u))};
_.I.handleInitializeRequest=function(u,K){var l=this,D=EsE(this.createGalConfig(u,!0));this.containsRedirectState(this.getLocation())?YxH(u,D.config,D.galService).then(function(d){var C=l.getStatusEntityKeyForProviderId(u);if(d.statusCode===1)K&&l.executeLinkingSuccessOrFailureCommands(C,K,!0),d=l.getLocation().indexOf("#"),d!==-1&&window.history.pushState(null,"",l.getLocation().substring(0,d));else return K&&l.executeLinkingSuccessOrFailureCommands(C,K,!1),Promise.reject(Error(d.statusMessage))}).catch(function(d){_.hV(d);
_.YE("gamingAccountLinkStatusChanged",{serviceId:u,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(d)}):this.getAccountLinkPromises[u]=D.startLinkingSession({serviceId:u})};
_.I.handleAccountLinkCommand=function(u){_.b(u,rTV)&&this.handleLinkRequest(_.b(u,rTV))};
_.I.handleLinkRequest=function(u){var K=this,l=u.thirdPartyId;if(l)if(this.isGalInteractionPopupMode(l)){var D=function(){K.closeAndFire("ytd-gaming-account-link-setting-renderer",u.onFailureCommand)},d=function(){K.closeAndFire("ytd-gaming-account-link-setting-renderer",u.onSuccessCommand)};
this.lastCallback=d;this.getAccountLinkPromises[l].then(function(C){oA_(C).then(function(W){W.statusCode===1?d():D()})}).catch(function(){D()})}else this.getAccountLinkPromises[l].then(function(C){oA_(C).then(function(W){if(W.statusCode!==1)return Promise.reject(Error(W.statusMessage))})}).catch(function(C){_.hV(C);
_.YE("gamingAccountLinkStatusChanged",{serviceId:l,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(C)})};
_.I.closeAndFire=function(u,K){_.Sy(this.hostElement,"yt-close-popup-action",[u]);K&&_.Ry([K],this.hostElement)};
_.I.handleAccountUnlinkCommand=function(u){_.b(u,vxG)&&this.handleUnlinkRequest(_.b(u,vxG))};
_.I.handleUnlinkRequest=function(u){var K=this,l=u.thirdPartyId;if(l){var D=function(){K.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",u.onFailureCommand)},d=function(){K.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",u.onSuccessCommand)};
this.lastCallback=d;var C=EsE(this.createGalConfig(l,!1));this.unlinkUserGal(C,l).then(function(W){W.statusCode===1?d():D()}).catch(function(){D()})}};
_.I.unlinkUserGal=function(u,K){return u.deleteLink(K)};
_.I.handleLogAccountLinkingEventCommand=function(u){_.S("enable_gel_log_commands")&&_.b(u,Gtp)&&(u=_.b(u,Gtp).event)&&_.YE("gamingAccountLinkStatusChanged",u)};
_.MN.Object.defineProperties(W5,{template:{configurable:!0,enumerable:!0,get:function(){return rak()}}});
_.g([_.e(_.B2.YtOpenPopupBehavior),_.N("design:type",Object)],W5.prototype,"ytOpenPopupBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],W5.prototype,"ytActionHandlerBehavior",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-third-party-manager"})],W5);_.F(W5,"ytd-third-party-manager",function(){return rak()},{mode:_.zW("kevlar_poly_si_batch_j081")?1:2});var v_B,Gfk=function(){if(v_B!==void 0)return v_B;var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return v_B=u};var t$6=_.oj(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),H5=function(){var u=_.Q.apply(this,arguments)||this;u.currentPage=void 0;u.renderLoadingStateJobId=0;u.updatePageDataJobId=0;u.pageDisposeJobsets=new WeakMap;u.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"};u.shouldApplyLockupToWatchTransition=_.S("web_thumbnail_to_watch_transition");u.shouldApplySlideTransition=_.bZ("web_page_transition_type")==="slide"||_.S("enable_plj_landing_page");u.shouldApplyLearningJourneyTransition=_.S("enable_plj_landing_page");u.TEST_ONLY=void 0;return u};
_.c(H5,_.Q);_.I=H5.prototype;_.I.ready=function(){var u=_.GB();u.addProvider({provide:_.GT,useValue:this});u.addProvider({provide:_.DqC,useValue:this})};
_.I.created=function(){this.pagePool=new NPp;this.contextSwitcher=new dRV};
_.I.attached=function(){_.xs(this.hostElement,"attached");var u=_.GB().resolve(_.vv(_.XQ));u&&(this.contextSwitcher.JSC$19608_networkService_=u);this.viewTransitionManager=_.GB().resolve(_.g6);this.setupPageTransitionAnimation()};
_.I.getPageOffset=function(u){return u.getScrollTop()};
_.I.setPageOffset=function(u,K){try{u.setScrollTop(K)}catch(l){}};
_.I.setPageOffsetForNavigation=function(u,K){_.xs(this.hostElement,"yt-navigate-set-page-offset",{page:u,offset:K===void 0?0:K})};
_.I.pauseActiveContext=function(){var u=this.contextSwitcher;u.activeContext_&&u.activeContext_.pause()};
_.I.getModuleNameForType=function(u){return u==="watch"?_.S("kevlar_watch_fixie")?"watchFixie":_.S("kevlar_watch_grid")?"watchGrid":"watchFlexy":u==="shorts"||u==="search"?u:"browse"};
_.I.attachPage=function(u){var K,l=!_.S("pc_is_attached_ks")&&(u==null?void 0:(K=u.polymerController)==null?void 0:K.isAttached);if(!u.isAttached&&!l)try{_.bi(this.hostElement).appendChild(u)}catch(d){var D;_.hV(new _.wv("Error attaching page element for component",{origin:(D=this.currentPage)==null?void 0:D.is,component:u.is}))}};
_.I.setActivePage=function(u){var K=this,l=!1,D=function(){var d=K.isOnWatch(),C=K.currentPage;if(u)if(u!==K.currentPage){C&&(C.hidden=!0,C.active=!1,C.removeAttribute("role"));K.currentPage=u;var W,M=_.J_((W=K.data)==null?void 0:W.endpoint);C&&_.xs(K.hostElement,"yt-page-type-changed",{oldPageType:C.is,newPageType:u.is,newPageSubtype:M});_.Hb().dispatch(_.SZ({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:u.is}));_.Hb().dispatch(_.SZ({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:M||""}));u.hidden=
!1;K.attachPage(u);u.active=!0;u.setAttribute("role","main");C&&K.setPageOffsetForNavigation(u,0);_.S("kevlar_remove_page_dom_on_switch")&&!d&&C&&_.bi(K.hostElement).removeChild(C)}else l=!0;else d=new _.wv("Unable to set active page",C?C.is:"unknown origin",(M=K.data)==null?void 0:M.endpoint),_.Xm(d)};
this.shouldRunLockupToWatchTransition(this.currentPage,u)?aSi(this.viewTransitionManager,D):this.shouldRunBrowseTransition(this.currentPage,u)?c3I(this.viewTransitionManager,D):this.shouldRunLearningJourneyTransition(this.currentPage,u)?eB_(this.viewTransitionManager,D):D();return l};
_.I.shouldRunLockupToWatchTransition=function(u,K){return this.shouldApplyLockupToWatchTransition&&(u==null?void 0:u.is)==="ytd-browse"&&this.isWatchPage(K)};
_.I.shouldRunBrowseTransition=function(u,K){return this.shouldApplySlideTransition&&(u==null?void 0:u.is)==="ytd-browse"&&(K==null?void 0:K.is)==="ytd-browse"&&u!==K};
_.I.shouldRunLearningJourneyTransition=function(u,K){return this.shouldApplyLearningJourneyTransition&&(u==null?void 0:u.is)==="ytd-browse"&&((K==null?void 0:K.is)==="ytd-watch-learning-journey"||(K==null?void 0:K.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.I.shouldRunWatchNextLoadedTransition=function(u,K){return this.viewTransitionManager&&u.is==="ytd-watch-flexy"&&K};
_.I.updatePageData=function(u){var K=this,l=this.data;this.updatePageDataJobId&&_.YL.cancelJob(this.updatePageDataJobId);this.data=u;return new _.RL(function(D){var d=function(){u.filler?K.performDataUpdate(u,l):jwV(function(){K.performDataUpdate(u,l)});
var q=_.dw();_.C7(q,"cr")||q.processSignal("cr");D()},C=function(){u&&u.page==="watch"?K.updatePageDataJobId=_.Vo(_.YL,d):d()};
if(_.S("kevlar_enable_mss_page_modules_client")&&u){var W=_.GB().resolve(_.lD),M=K.getModuleNameForType(u.page);(W=bz_(W,[M]))?W.then(C):C()}else C()})};
_.I.isDownloadsPage=function(u){var K,l;return(u==null?void 0:(K=u.endpoint)==null?void 0:(l=K.browseEndpoint)==null?void 0:l.browseId)==="FEdownloads"};
_.I.setPlayerSyncInterval=function(u){var K;return _.H(function(l){if(l.nextAddress==1)return l.yield(_.GB().resolve(_.aw),2);K=l.yieldResult;K.setUpPositionSyncInterval(u);_.TG(l)})};
_.I.performDataUpdate=function(u,K){_.S("kevlar_early_popup_close")||_.Sy(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var l=!u.filler;l&&(_.As("lps"),_.S("config_age_report_killswitch")||WqG());var D=cD(u),d,C=!1;if(_.S("kevlar_remove_page_dom_on_switch")){var W=K&&cD(K);D===W&&(d=this.getCurrentPage())}d||(d=ub(this.pagePool,D));l&&i1E(this.pagePool.elementPoolPopulator,D);l&&!this.renderLoadingStateJobId&&(C=this.setActivePage(d));if(d){W=D==="watch";var M=
D==="shorts",q=D==="learning_journey_watch";_.S("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(d);if(W||M||q)d.playerData=u.playerResponse;if(M)if(_.S("web_enable_delay_shorts_sequence_call")){u.reelWatchSequenceResponse&&(d.reelWatchSequenceResponse=u.reelWatchSequenceResponse);d.currentEndpoint=u.endpoint;var v;d.isPreviousPageShorts=!!(K==null?0:(v=K.endpoint)==null?0:v.reelWatchEndpoint);var G,t;u.cachedSequenceParams=((G=u.endpoint)==null?void 0:(t=G.reelWatchEndpoint)==
null?void 0:t.sequenceParams)||u.cachedSequenceParams||(K==null?void 0:K.cachedSequenceParams);var x,O;u.cachedSequenceProvider=((x=u.endpoint)==null?void 0:(O=x.reelWatchEndpoint)==null?void 0:O.sequenceProvider)||u.cachedSequenceProvider||(K==null?void 0:K.cachedSequenceProvider);d.cachedSequenceParams=u.cachedSequenceParams;d.cachedSequenceProvider=u.cachedSequenceProvider}else{u.reelWatchSequenceResponse?d.reelWatchSequenceResponse=u.reelWatchSequenceResponse:u.cachedReelWatchSequenceResponse?
d.reelWatchSequenceResponse=u.cachedReelWatchSequenceResponse:_.S("web_enable_cached_reel_sequence_fix")&&d.cachedReelWatchSequenceResponse&&!d.reelWatchSequenceResponse&&(d.reelWatchSequenceResponse=d.cachedReelWatchSequenceResponse);d.currentEndpoint=u.endpoint;var a;d.isPreviousPageShorts=!!(K==null?0:(a=K.endpoint)==null?0:a.reelWatchEndpoint);u.cachedReelWatchSequenceResponse=u.reelWatchSequenceResponse||u.cachedReelWatchSequenceResponse||(K==null?void 0:K.cachedReelWatchSequenceResponse);d.cachedReelWatchSequenceResponse=
u.cachedReelWatchSequenceResponse}v=this.isDownloadsPage(u);G=this.isDownloadsPage(K);v&&!G?this.setPlayerSyncInterval(6E5):!v&&G&&this.setPlayerSyncInterval();_.S("block_all_player_prefetch_requests")||this.preparePrefetchRequest(u,d,l,W,M,q);RB6(_.GB().resolve(_.uD),K,u);_.vB(_.GB().resolve(_.Xb));_.S("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(d);l?(l=typeof d.loadPage,l==="function"?(d.pageContext=C3H(this.contextSwitcher,d,d.data!==u.response),l=function(){d.loadPage(u.response)},
this.shouldApplySlideTransition&&d.is==="ytd-browse"&&C&&(D==="learning"||this.isDifferentBrowseId(u==null?void 0:u.endpoint,K==null?void 0:K.endpoint))?c3I(this.viewTransitionManager,l):this.shouldRunWatchNextLoadedTransition(d,C)?zB_(this.viewTransitionManager,l):l()):_.m0(new _.wv("b/38014653 ",[D,
d.is,d.nodeName,l,d.isAttached,K&&cD(K),this.hostElement.children.length])),_.As("pdl")):(d.hidden=!0,u.response.filler=!0,d.data=u.response,this.attachPage(d));_.xs(this.hostElement,"yt-page-data-updated",{pageType:D})}_.Ve(_.YL,function(){_.S("logging_avoid_blocking_during_navigation")&&_.p1w().transition("none");var f=xR_(),B=d;if(u){var p=Nep(u),V=kOp(u),m;a:{if(u.playerResponse){var Z=u.playerResponse,A;if((m=Z.auxiliaryUi)==null?0:(A=m.messageRenderers)==null?0:A.upsellDialogRenderer){m=Z.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(u.response&&(m=u.response,(Z=m.overlay)==null?0:Z.upsellDialogRenderer)){m=m.overlay.upsellDialogRenderer;break a}m=void 0}var h;var C9;A=(h=u.playerResponse)==null?void 0:(C9=h.auxiliaryUi)==null?void 0:C9.messageRenderers;h=(A==null?void 0:A.enforcementMessageViewModel)||(A==null?void 0:A.bkaEnforcementMessageViewModel);h=(h==null?void 0:h.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?h:void 0;var Wo;a:{if(u.response&&(C9=u.response,(Wo=C9.overlay)==null?0:
Wo.commandWrapperPromoRenderer)){Wo=C9.overlay.commandWrapperPromoRenderer;break a}Wo=void 0}t0_(f,p,V,m,h,Wo,B)}})};
_.I.preparePrefetchRequest=function(u,K,l,D,d,C){var W,M,q,v,G,t,x,O,a,f,B,p,V,m,Z;return _.H(function(A){if(A.nextAddress==1)return!l||!(D||d||C)||_.S("kevlar_disable_background_prefetch")&&_.KT(_.ULy)()===0?A.return():(W=_.tK(K))?A.yield(W.getPlayerPromise(),2):A.return();M=A.yieldResult;q=_.GB().resolve(_.vv(_.XQ));if(!q)return A.return();if(d)return v=_.vU(_.F5),kT6(v,(G=u.endpoint)==null?void 0:G.reelWatchEndpoint,K.reelWatchSequenceResponse,M,q),A.return();O=(t=u.response)==null?void 0:(x=t.responseContext)==
null?void 0:x.webResponseContextExtensionData;if(!O)return A.return();V=(a=u.response)==null?void 0:(f=a.contents)==null?void 0:(B=f.twoColumnWatchNextResults)==null?void 0:(p=B.autoplay)==null?void 0:p.autoplay;m=_.GB().resolve(_.lX);Z=_.vU(_.F5);Z1V(Z,O,M,q,m,V);_.TG(A)})};
_.I.movePlayerToWatch=function(u){var K=this,l,D;return _.H(function(d){l=ub(K.pagePool,"watch");D=l.getPlayerContainer();u.appendTo(D);_.TG(d)})};
_.I.movePlayerToShorts=function(u){var K=this,l,D,d;return _.H(function(C){l=ub(K.pagePool,"shorts");D=l.getPlayerContainer();(d=u)==null||d.appendTo(D,void 0,!0);_.TG(C)})};
_.I.getPlayerFromWatch=function(){var u=ub(this.pagePool,"watch");return _.tK(u)};
_.I.getPlayerFromShorts=function(){var u=ub(this.pagePool,"shorts");return _.tK(u)};
_.I.startLoadingWatch=function(){var u=ub(this.pagePool,"watch");this.renderLoadingStateJobId?(_.YL.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(u)};
_.I.startLoadingShorts=function(){var u=ub(this.pagePool,"shorts");this.setActivePage(u)};
_.I.startLoadingLearningJourney=function(){var u=ub(this.pagePool,"learning_journey_watch");this.setActivePage(u)};
_.I.getCurrentPage=function(){return this.currentPage};
_.I.getDestinationPageType=function(){return this.destinationPageType};
_.I.getCurrentData=function(){return this.data};
_.I.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.I.isOnShorts=function(){var u;return((u=this.currentPage)==null?void 0:u.is)==="ytd-shorts"};
_.I.isWatchPage=function(u){return!!u&&(u.is==="ytd-watch-flexy"||u.is==="ytd-watch-fixie"||u.is==="ytd-watch-grid")};
_.I.preparePage=function(u,K){var l=this,D=function(){var W=l.pagePool.preparePage(u,l.currentPage,K);W&&l.attachPage(W)},d=function(W){_.E5(W,K);
_.hV(W)};
if(_.S("kevlar_enable_mss_page_modules_client")){var C=this.getModuleNameForType(u);if(C=bz_(_.GB().resolve(_.lD),[C])){C.then(D.bind(this)).catch(d.bind(this));return}}try{D()}catch(W){d(W)}};
_.I.lazyPrepareCriticalPages=function(u,K){u=_.J_(K)||u;_.S("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(u).then(this.maybePrepareWatchPage.bind(this,u)):this.maybePrepareWatchPage(u)};
_.I.maybePrepareWatchPage=function(u){u!=="watch"&&_.Ve(_.YL,this.preparePage.bind(this,"watch"))};
_.I.downloadPageModules=function(u){u=this.getModuleNameForType(u);var K=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);K.delete(u);var l=_.GB().resolve(_.lD);l.JSC$18364_loadModules(u);return l.JSC$18364_loadModules.apply(l,_.Am(K))};
_.I.renderPageLoadingState=function(u,K){this.preparePage(u,K);var l=ub(this.pagePool,u);l.loadingData&&(l.loadingData.endpoint=K);l.loading=!0;this.setActivePage(l);u!=="watch"&&u!=="learning_journey_watch"||_.xs(this.hostElement,"yt-guide-close")};
_.I.prepareForNavigation=function(u,K){var l=this;if(this.currentPage&&this.data){var D=_.J_(K)||u;this.destinationPageType=D;cD(this.data)==D&&_.xs(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((u==="watch"||u==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.YL.cancelJob(this.renderLoadingStateJobId);_.GB().resolve(_.uD).deactivate(K);var d=this.data;this.renderLoadingStateJobId=_.Xf(_.YL,function(){if(l.data!=
d){var C=ub(l.pagePool,u);l.setActivePage(C)}else l.renderPageLoadingState(u,K);l.renderLoadingStateJobId=0},150)}};
_.I.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var u=new _.tQ(1);this.currentPage.pageDisposeJobs.forEach(function(K){_.xK(u,K)});
this.pageDisposeJobsets.set(this.currentPage,u)}};
_.I.flushPageDisposeJobset=function(u){var K=this.pageDisposeJobsets.get(u);K&&(K.flushJobs(),this.pageDisposeJobsets.delete(u))};
_.I.onYtStopOldPlayer=function(u,K){K=K===void 0?!1:K;var l,D=_.OP("kevlar_new_stop_old_player_logic_pages");if(_.S("kevlar_check_current_page_on_stop_old_player")&&(D.length===0||this.currentPage&&D.includes(this.currentPage.is)))if(this.data&&(l=cD(this.data)),cD(u)===l&&this.currentPage&&cD(this.currentPage.data)!==l)var d=_.tK(this.currentPage);else l=cD(this.data),d=ub(this.pagePool,l),d=_.tK(d);else this.data&&(l=cD(this.data),d=ub(this.pagePool,l),d=_.tK(d));if(d)if(u=cD(u),D=ub(this.pagePool,
u),D=_.tK(D),d==D)K&&!_.S("kevlar_disable_preemptive_player_reset")&&d.resetForNewPlayback();else if(K=l==="watch"&&u!=="watch",!K||u==="shorts"||_.n_m()&&!dPG(this.data)&&u!=="yts-products"&&u!="mini_app"&&u!="playables")l=_.GB().resolve(_.uD),K&&l.isMiniplayerActive()&&l.pipController.getWindow()||d.stop()};
_.I.setupPageTransitionAnimation=function(){if(this.shouldApplySlideTransition&&this.shouldApplyLockupToWatchTransition){var u=_.Sg("web_page_transition_exit_ms"),K=_.Sg("web_page_transition_wait_ms"),l=_.Sg("web_page_transition_enter_ms");if(!isNaN(u)||!isNaN(K)||!isNaN(l))if(u=Hio(t$6,u,K,l))K=document.createElement("style"),K.textContent=_.m9L(u),document.head.appendChild(K)}};
_.I.isDifferentBrowseId=function(u,K){u=_.b(u,_.jt);K=_.b(K,_.jt);return(u==null?void 0:u.browseId)!==(K==null?void 0:K.browseId)};
_.MN.Object.defineProperties(H5,{template:{configurable:!0,enumerable:!0,get:function(){return Gfk()}}});
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],H5.prototype,"ytActionHandlerBehavior",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-page-manager"})],H5);_.F(H5,"ytd-page-manager",function(){return Gfk()},{mode:_.zW("kevlar_poly_si_batch_j081")?1:2});var MU=function(u,K,l){l=l===void 0?!1:l;_.TZ.call(this);this.draggableElement=u;this.callbacks=K;this.allowClicks=l;this.dragOccurred=!1;this.internalDragger=new _.Ke(this.draggableElement);this.dragDelay=new _.nn(this.delayedDrag.bind(this));xxV(this);this.allowClicks&&(_.W5A(this.internalDragger,5),u.addEventListener("click",_.Ql(this,this.validateClick),{capture:!0}))};
_.c(MU,_.TZ);var xxV=function(u){_.kU(u.internalDragger,"earlycancel",function(){u.allowClicks&&(u.dragOccurred=!1)});
_.kU(u.internalDragger,"start",function(K){var l,D;(D=(l=u.callbacks).onStartDrag)==null||D.call(l,K);!K.defaultPrevented&&u.allowClicks&&(u.dragOccurred=!0)});
_.kU(u.internalDragger,"beforedrag",function(K){K.preventDefault();u.lastOffset=new _.XB(K.clientX-u.internalDragger.startX,K.clientY-u.internalDragger.startY);u.dragDelay.start()});
_.kU(u.internalDragger,"end",function(){u.dragDelay.stop();var K,l;(l=(K=u.callbacks).onEndDrag)==null||l.call(K);u.lastOffset=void 0})};
MU.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
MU.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.Ql(this,this.validateClick),{capture:!0})};
MU.prototype.validateClick=function(u){this.dragOccurred&&(this.dragOccurred=!1,u.stopPropagation(),u.preventDefault())};var qU=function(u,K){_.TZ.call(this);this.JSC$19805_resizeContainer=u;this.callbacks=K;this.aspectRatio=16/9;this.JSC$19805_resizers=[];u=_.y(this.JSC$19805_resizeContainer.children);for(K=u.next();!K.done;K=u.next())SsE(this,K.value)};
_.c(qU,_.TZ);qU.prototype.disposeInternal=function(){for(var u=_.y(this.JSC$19805_resizers),K=u.next();!K.done;K=u.next())K.value.dispose();u=_.y(this.JSC$19805_resizeContainer.children);for(K=u.next();!K.done;K=u.next())K.value.setAttribute("disabled","");this.JSC$19805_resizers.length=0};
qU.prototype.setSize=function(u){this.currentMiniplayerSize=u};
qU.prototype.setAspectRatio=function(u){this.aspectRatio=u};
qU.prototype.update=function(u,K){for(var l=_.y(this.JSC$19805_resizeContainer.children),D=l.next();!D.done;D=l.next()){D=D.value;var d=D.getAttribute("alignment");_.ab(D,"disabled",d===u||d===K)}};
var SsE=function(u,K){var l=K.getAttribute("alignment"),D=new MU(K,{onStartDrag:function(d){if(K.hasAttribute("disabled"))d.preventDefault();else{u.dragStartSize=u.currentMiniplayerSize;var C,W;(W=(C=u.callbacks).onStartResize)==null||W.call(C)}},
onDrag:function(d){if(u.dragStartSize){l!=="north"&&l!=="west"||d.scale(-1);var C=l==="north"||l==="south";d=C?d.y:d.x;C&&u.aspectRatio>=1?d*=u.aspectRatio:!C&&u.aspectRatio<1&&(d/=u.aspectRatio);u.callbacks.onResize(u.dragStartSize+d)}}});
u.JSC$19805_resizers.push(D)};var bZo;var OZV=_.rf(function(u){var K=_.o9("yt-draggable"),l=u.onDrag,D=u.onDragStart,d=u.onDragEnd,C=_.$U(u,{allowClicks:!1,dragThreshold:5}),W=C.dragThreshold,M=C.allowClicks;u=C.children;C=C.className;var q=void 0,v=void 0,G=new _.XB(0,0),t=!1;_.ZY(function(){q=new _.Ke(K.value);v=new _.nn(O);x(q,v);if(M()){_.W5A(q,W());var f;(f=K.value)==null||f.addEventListener("click",a,{capture:!0})}_.No(function(){var B;(B=q)==null||B.dispose();if(M()){var p;(p=K.value)==null||p.removeEventListener("click",a,{capture:!0})}})});
var x=function(f,B){_.kU(f,"earlycancel",function(){M()&&(t=!1)});
_.kU(f,"start",function(p){D==null||D(p);p.defaultPrevented||M()&&(t=!0)});
_.kU(f,"beforedrag",function(p){q&&v&&(p.preventDefault(),G=new _.XB(p.clientX-q.startX,p.clientY-q.startY),v.start())});
_.kU(f,"end",function(){B.stop();d==null||d();G=new _.XB(0,0)})},O=function(){G&&l(G)},a=function(f){t&&(t=!1,f.stopPropagation(),f.preventDefault())};
return _.n("yt-draggable",{el:K,class:_.JB("ytDraggableComponentHost",C)},u)},"Bg");var ca_=_.rf(function(u){var K=_.y(_.On(0,void 0,"CvAwBd")),l=K.next().value,D=K.next().value;K=function(d){var C={},W={};return _.n(OZV,{className:_.JB("ytdMiniplayerComponentResizer",(C.ytdMiniplayerComponentResizerDisabled=function(){return d===u.horizontalAlignment()||d===u.verticalAlignment()},C.ytdMiniplayerComponentResizerNorth=d==="north",C.ytdMiniplayerComponentResizerEast=d==="east",C.ytdMiniplayerComponentResizerSouth=d==="south",C.ytdMiniplayerComponentResizerWest=d==="west",C)),
onDragStart:function(){D(u.currentMiniplayerSize());if(u.onResizeStart)u.onResizeStart()},
onDrag:function(M){d!=="north"&&d!=="west"||M.scale(-1);var q;M=(q=d==="north"||d==="south")?M.y:M.x;var v=u.currentAspectRatio();q&&v>=1?M*=v:!q&&v<1&&(M/=v);q=M;u.onResize(l()+q)}},_.n("div",{class:_.JB("ytdMiniplayerComponentResizerCorner",(W.ytdMiniplayerComponentResizerNorthCorner=d==="north",W.ytdMiniplayerComponentResizerEastCorner=d==="east",W.ytdMiniplayerComponentResizerSouthCorner=d==="south",W.ytdMiniplayerComponentResizerWestCorner=d==="west",W))}))};
return _.n("div",{class:"ytdMiniplayerComponentResizers"},K("north"),K("east"),K("south"),K("west"))},"Cg");var at_=16/9,z0p=_.rf(function(){var u=_.o9("ytd-miniplayer"),K=_.y(_.On(new _.jA(NaN,NaN),void 0,"GNXZTe")),l=K.next().value,D=K.next().value;K=_.y(_.On(!1,void 0,"XqI9xc"));var d=K.next().value,C=K.next().value;K=_.y(_.On(!1,void 0,"k3iLGe"));var W=K.next().value,M=K.next().value;K=_.y(_.On(!1,void 0,"ApjQ9b"));var q=K.next().value,v=K.next().value;K=_.y(_.On(!1,void 0,"PzlhGe"));var G=K.next().value,t=K.next().value;K=_.y(_.On(!1,void 0,"pm6fl"));var x=K.next().value,O=K.next().value;K=_.y(_.On(!1,
void 0,"xQrL1e"));var a=K.next().value,f=K.next().value;K=_.y(_.On(at_,void 0,"NcrWZb"));var B=K.next().value,p=K.next().value,V=_.y(_.On(!1,void 0,"e5rxBc"));K=V.next().value;var m=V.next().value;V=_.y(_.On(!1,void 0,"uZtCde"));var Z=V.next().value,A=V.next().value;V=_.y(_.On(void 0,void 0,"wKFvEe"));var h=V.next().value,C9=V.next().value;V=_.y(_.On(_.E3("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var Wo=V.next().value,$y=V.next().value;V=_.y(_.On("south",void 0,"QXcssb"));var co=V.next().value,
UZ=V.next().value;V=_.y(_.On(400,void 0,"Fr8gSb"));var tH=V.next().value,gq=V.next().value,Bo=_.GB().resolve(_.uD).miniplayerPropSignalMap[0],uk=Bo.data,ca=Bo.externalPlaylistData;V=Bo.toastData;var Ha=Bo.playabilityStatus,hH=Bo.isReadyToResume,tR=Bo.isDisabled,ns=Bo.watchWhile,Pa=Bo.playerVe,QV=Bo.expandVe,Ls=Bo.closeVe,yn=Bo.readyToResumeVe,dN=Bo.readyToResumeCloseVe,OB=Bo.repositionVe,vE=Bo.resizeVe;Bo=_.y(_.wY(hH));var Gw=Bo.next().value,Vm=Bo.next().value,DI=!1,uG=!1,oC;_.ZY(function(){D(_.iv());
u.value.addEventListener("animationend",function(AR){AR.target===u.value&&(O(!1),f(!1))});
M8o(u.value)});
_.s6("yt-window-resized",function(AR){AR&&D(AR)});
var ma=function(){oC&&p(oC.getVideoAspectRatio())},$p=function(){if(oC){var AR=oC.getPlayerState()===1;
Gw()&&AR&&Vm(!1)}},aC=function(){var AR=QV();
if(AR){var PE=_.AC(3);PE&&_.Wi(PE,AR)}},RC=function(){var AR=Ls(),PE=dN();
AR&&_.Wi(_.AC(3),AR);hH()&&PE&&_.Wi(_.AC(3),PE)};
_.s6("yt-activate-miniplayer",function(AR){var PE;return _.H(function(Dk){if(Dk.nextAddress==1)return d()?Dk.return():Dk.yield((PE=_.GB().resolve(_.uD).getPlayerElement())==null?void 0:PE.getPlayerPromise(),2);oC=Dk.yieldResult;if(!oC)return Dk.return();!Z()&&_.S("kevlar_watch_while_v2")&&(UZ(AR&&!_.S("kevlar_watch_while_bottom_align")?"north":"south"),$y(_.E3("HTML_DIR")==="rtl"?"west":"east"));var hE=oC;hE.addEventListener("onVideoDataChange",ma);hE.addEventListener("onStateChange",$p);hE.addEventListener("onExpandMiniplayer",
aC);hE.addEventListener("onCloseMiniplayer",RC);p(oC.getVideoAspectRatio());C(!0);W3E()||O(!0);_.TG(Dk)})});
_.s6("yt-deactivate-miniplayer",function(AR){return _.H(function(PE){if(!d())return PE.return();C(!1);Vm(!1);f(AR);t(!1);M(!1);if(oC){var Dk=oC;Dk.removeEventListener("onVideoDataChange",ma);Dk.removeEventListener("onStateChange",$p);Dk.removeEventListener("onExpandMiniplayer",aC);Dk.removeEventListener("onCloseMiniplayer",RC)}W3E()||O(!0);_.TG(PE)})});
var tE=function(){return!(ns()&&_.S("kevlar_watch_while_modern"))},HZ=function(){var AR;
return!((AR=ca())==null||!AR.contents)},HE=function(){var AR=tH();
var PE=l();PE=Math.min(Math.min(PE.width,PE.height)-32,720);var Dk=B(),hE=tE(),CU=HZ()&&W(),Y$=Math.min(AR,PE);AR=new _.jA(192,hE?116:192);Dk=NYp(new _.jA(CU?at_:Dk,1),new _.jA(Y$,hE?Y$-76:Y$));AR.width<=Dk.width&&AR.height<=Dk.height||(goI(Dk,AR),Dk.width=Math.min(Dk.width,PE),Dk.height=Math.min(Dk.height,PE));return new _.jA(Dk.width,_.mz(192,Dk.height+vH6(hE,CU),720))},aO=function(){var AR=HE(),PE=tE(),Dk=HZ()&&W();
return new _.jA(AR.width,AR.height-vH6(PE,Dk))},mf=function(){var AR=function(PE){PE.target===u.value&&G()&&(t(!1),u.value.removeEventListener("transitionend",AR))};
W3E()||(u.value.addEventListener("transitionend",AR),t(!0));M(!W())};
_.gp(function(){var AR=Pa(),PE=_.AC(3),Dk=_.Yr(3);if(PE&&Dk&&AR){_.DJ(PE,Dk,AR);Dk=OB();var hE=vE(),CU=QV(),Y$=Ls(),J9=dN();CU&&Y$&&J9&&(_.dZ(PE,AR,[CU,Y$,J9]),_.If(PE,[CU,Y$]));Dk&&hE&&_.dZ(PE,AR,[Dk,hE])}},"Snz6Ld");
_.gp(function(){var AR=yn();if(AR){var PE=_.AC(0),Dk=_.Yr(0);PE&&Dk&&(_.DJ(PE,Dk,AR),_.If(PE,[AR]))}},"X1FpHd");
Bo={};return _.n("ytd-miniplayer",{el:u,class:_.JB("ytdMiniplayerComponentHost",(Bo.ytdMiniplayerComponentVisible=function(){return d()||x()},Bo.ytdMiniplayerComponentAnimatingSnap=q,Bo.ytdMiniplayerComponentAnimatingPlaylistExpand=G,Bo.ytdMiniplayerComponentAnimatingFade=x,Bo),function(){if(x()){var AR=co();
var PE=d(),Dk=a();AR=PE?AR==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Dk?AR==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":AR==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else AR="";return AR}),
style:_.Fb({top:function(){return co()==="north"?"16px":""},
right:function(){return Wo()==="east"?"16px":""},
bottom:function(){return co()==="south"?"16px":""},
left:function(){return Wo()==="west"?"16px":""},
width:function(){return HE().width+"px"},
height:function(){return HE().height+"px"},
transform:function(){var AR=h();return AR?"translate("+AR.x+"px, "+AR.y+"px)":""}})},_.n("div",{class:"ytdMiniplayerComponentContent"},_.n(OZV,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(AR){var PE=rUG(Wo(),co(),l(),HE(),h()),Dk=aO();Math.abs(AR.clientY-(PE.y+Dk.height))>15?(m(!0),AR=_.AC(3),PE=OB(),DI||(DI=!0,AR&&PE&&_.If(AR,[PE])),AR&&PE&&_.Wi(AR,PE)):AR.preventDefault()},
onDrag:function(AR){C9(AR)},
onDragEnd:function(){var AR=q9B(rUG(Wo(),co(),l(),HE(),h()),l(),HE()),PE=nHG(Wo(),co(),l(),HE()),Dk=nHG(AR.horizontalAlignment,AR.verticalAlignment,l(),HE());Dk=new _.XB(Dk.x-PE.x,Dk.y-PE.y);var hE;PE=PE.y+(((hE=h())==null?void 0:hE.y)||0)+HE().height/2;var CU=function(){Wo()===AR.horizontalAlignment&&co()===AR.verticalAlignment||A(!0);$y(AR.horizontalAlignment);UZ(AR.verticalAlignment);C9(void 0)},Y$=function(J9){J9.target===u.value&&q()&&(v(!1),CU(),u.value.removeEventListener("transitionend",Y$))};
m(!1);co()==="south"&&PE>l().height?(CU(),_.GB().resolve(_.uD).close()):(u.value.addEventListener("transitionend",Y$),v(!0),C9(Dk))}},_.n(_.r,{cond:d,
then:function(){return _.n(_.GGG,{isDisabled:tR,playabilityStatus:Ha,size:aO})}}),_.n(_.r,{cond:tE,
then:function(){return _.n(_.rmi,{isReadyToResume:Gw,data:uk,expanded:W,onExpandClick:mf,playlistData:ca})}}),_.n(_.r,{cond:K,
then:function(){return _.n("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.n(_.r,{cond:function(){return HZ()&&W()||G()},
then:function(){return _.n(_.z$a,{className:"ytdMiniplayerComponentPlaylistPanel",data:ca,hideHeaderText:!0,withinMiniplayer:!0})}}),_.n("div",{class:"ytdMiniplayerComponentToast"},_.n(_.tjk,{toastData:V}))),_.n(ca_,{onResize:function(AR){gq(_.mz(192,AR,720))},
onResizeStart:function(){var AR=_.AC(3),PE=vE();uG||(uG=!0,AR&&PE&&_.If(AR,[PE]));AR&&PE&&_.Wi(AR,PE)},
currentAspectRatio:B,currentMiniplayerSize:tH,horizontalAlignment:Wo,verticalAlignment:co}))},"Dg");_.S("ytd_miniplayer_to_wiz")&&_.SX(z0p,"ytd-miniplayer",{});_.SX(_.tjk,"ytd-miniplayer-toast",{props:{toastData:_.M6}});var e02=16/9,R0p=new _.jA(400,400/e02),$G=function(){var u=_.Q.apply(this,arguments)||this;u.active=!1;u.hasNoData=!1;u.enabled=!1;u.expanded=!1;u.readyToResume=!1;u.isDisabled=!1;u.externalPlaylistData={};u.premiumBadges=[];u.watchWhile=!1;u.playerState=null;u.verticalAttachment="south";u.horizontalAttachment=_.E3("HTML_DIR")==="rtl"?"west":"east";u.isAnimatingFade=!1;u.isAnimatingSnap=!1;u.isAnimatingExpand=!1;u.isDragging=!1;u.playerHidden=!1;u.hasPlaylistData=!1;u.closed=!1;u.expandedClosed=!1;
u.isForReadyToResume=!1;u.watchResponse=null;u.player=null;u.playerVe=null;u.expandVe=null;u.closeVe=null;u.readyToResumeCloseVe=null;u.disabledInitialStateIsPlaying=!1;u.PLAYER_EVENTS=new Map;u.aspectRatio=e02;u.currentMiniplayerSize=400;u.userSetSize=!1;u.userSetPosition=!1;u.userHasDragged=!1;u.maxMiniplayerSize=720;u.transform=new _.XB(0,0);u.windowDimensions=new _.jA(NaN,NaN);u.dimensions=R0p;u.screenLayer=3;u.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return u};
_.c($G,_.Q);_.I=$G.prototype;_.I.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerWithViewTransitionManager()};
_.I.ready=function(){this.setUpDragging();this.setUpResizing()};
_.I.attached=function(){this.onWindowResized(_.iv());this.hostElement.addEventListener("animationend",_.Ql(this,this.resetFadingAnimation))};
_.I.detached=function(){this.hostElement.removeEventListener("animationend",_.Ql(this,this.resetFadingAnimation))};
_.I.resetFadingAnimation=function(u){u.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.I.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.I.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.I.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var u=_.AC(this.screenLayer);this.readyToResumeCloseVe&&u&&_.If(u,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.I.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var u=_.AC(0),K=_.Yr(0);u&&K&&(_.DJ(u,K,this.readyToResumeVe),_.If(u,[this.readyToResumeVe]))}};
_.I.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var u=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=u===-1||u===1||u===3)&&this.player.pauseVideo()}};
_.I.activate=function(u,K){K=K===void 0?!1:K;var l=this,D;return _.H(function(d){if(d.nextAddress==1)return l.setInitialActivatePositioning(K),l.enabled=!0,l.active=!0,l.expanded=!1,l.closed=!1,l.expandedClosed=!1,l.watchWhileHidden||(l.isAnimatingFade=!0),_.GB().resolve(_.lX).setPlaylistComponent(l.JSC$19816_playlistPanel),u.appendTo(l.playerContainer),d.yield(u.getPlayerPromise(),2);D=d.yieldResult;D.setSizeStyle(!1,!0);l.ytPlayerListenerBehavior.listenToPlayerEvents(D,l.PLAYER_EVENTS);l.player=
D;l.watchWhile&&_.S("kevlar_watch_while_minimum_size")&&l.setMiniplayerSize(192);l.setAspectRatio(l.player.getVideoAspectRatio());l.onIsDisabledChanged();_.TG(d)})};
_.I.setInitialActivatePositioning=function(u){if(!this.userSetPosition&&_.S("kevlar_watch_while_v2")){this.verticalAttachment=u&&!_.S("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.E3("HTML_DIR")==="rtl"?"west":"east";var K;(K=this.JSC$19816_resizers)==null||K.update(this.horizontalAttachment,this.verticalAttachment)}};
_.I.deactivate=function(u,K){var l=this;return _.H(function(D){if(!l.active)return D.return();u||(l.expanded?l.expandedClosed=!0:l.closed=!0);l.active=!1;l.isForReadyToResume=!1;K&&_.S("kevlar_watch_while_counterfactual")||(l.isAnimatingFade=!0);l.player&&l.ytPlayerListenerBehavior.unlistenFromPlayerEvents(l.player,l.PLAYER_EVENTS);l.player=null;_.TG(D)})};
_.I.onMetadataTap=function(u){this.expandVe&&(u===void 0||u)&&(u=_.AC(this.screenLayer))&&_.Wi(u,this.expandVe);_.NF(_.GB().resolve(_.uD))};
_.I.onDisabledTap=function(u){u.target===_.bi(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.I.onPlaylistExpandTap=function(u){if(this.hasPlaylistData){u=_.WF(u)||[];u=_.y(u);for(var K=u.next();!K.done;K=u.next()){K=K.value;if(K===this.hostElement)break;if(K.classList&&K.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.I.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.Ql(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.I.animatedResizePlaylist=function(u){u.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.Ql(this,this.animatedResizePlaylist)))};
_.I.getExpandIcon=function(u){return u?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.I.onPlayerVideoDataChange=function(){var u,K=(u=this.player)==null?void 0:u.getVideoAspectRatio();K&&K!==this.aspectRatio&&this.setAspectRatio(K)};
_.I.setAspectRatio=function(u){if(this.active){this.aspectRatio=u;this.updateDimensionsAndResize();var K;(K=this.JSC$19816_resizers)==null||K.setAspectRatio(u)}};
_.I.updateDimensionsAndResize=function(){var u=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),K=this.expanded?e02:this.aspectRatio,l=new _.jA(192,this.showInfoBar?116:192);u=NYp(new _.jA(K,1),new _.jA(u,this.showInfoBar?u-76:u));l.width<=u.width&&l.height<=u.height||(goI(u,l),u.width=Math.min(u.width,this.maxMiniplayerSize),u.height=Math.min(u.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&K<=1?Math.max(u.width,u.height)+76:Math.max(u.width,u.height)));this.dimensions=
new _.jA(u.width,this.clamp(u.height+this.getNonPlayerHeight()));this.resize()};
_.I.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var u=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=u.height+"px";var K;(K=this.player)==null||K.setInternalSize(u.width,u.height)};
_.I.getPlayerSize=function(u){var K=Math.max(0,u.height-this.getNonPlayerHeight());return new _.jA(u.width,K)};
_.I.getNonPlayerHeight=function(){var u=0;this.showInfoBar&&(u+=76);this.expanded&&(u+=285);return u};
_.I.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.GB().resolve(_.uD).close()};
_.I.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.I.logClosingClick=function(){this.closeVe&&_.Wi(_.AC(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.Wi(_.AC(this.screenLayer),this.readyToResumeCloseVe)};
_.I.onPlayerExpandMiniplayer=function(){if(this.expandVe){var u=_.AC(this.screenLayer);u&&_.Wi(u,this.expandVe)}};
_.I.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var u=this.playerState===1;this.continueWatching&&u&&(this.continueWatching=!1);this.premiumBadges.length&&u&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.I.getScreenLayer=function(){return this.screenLayer};
_.I.logMiniplayer=function(){var u=_.AC(this.screenLayer),K=_.Yr(this.screenLayer);u&&K&&this.playerVe&&(_.DJ(u,K,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.dZ(u,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.If(u,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.dZ(u,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.I.computePlaylistData=function(u,K){return K};
_.I.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.I.computeExpandButtonHidden=function(u,K,l){return!u||!K||l};
_.I.computePlaylistIndexHidden=function(u,K){return!u||K};
_.I.computePlaylistPanelHidden=function(u,K){return!K&&!u};
_.I.computeExpandButtonLabel=function(u){return u?_.QQ("MINIPLAYER_COLLAPSE_LABEL"):_.QQ("MINIPLAYER_EXPAND_LABEL")};
_.I.computeDisabledStateCloseButtonLabel=function(){return _.QQ("MINIPLAYER_CLOSE",void 0,"Close")};
_.I.onWindowResized=function(u){u&&(u=this.windowDimensions=u,this.maxMiniplayerSize=Math.min(Math.min(u.width,u.height)-32,720),this.updateDimensionsAndResize())};
_.I.setUpResizing=function(){var u=this;this.JSC$19816_resizers||(this.JSC$19816_resizers=new qU(this.JSC$19816_resizeContainer,{onStartResize:function(){u.handleResizeStart()},
onResize:function(K){u.handleResize(K)}}),this.JSC$19816_resizers.setSize(this.currentMiniplayerSize),this.JSC$19816_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.I.handleResizeStart=function(){var u=_.AC(this.screenLayer);this.userSetSize||(this.userSetSize=!0,u&&this.resizeVe&&_.If(u,[this.resizeVe]));u&&this.resizeVe&&_.Wi(u,this.resizeVe)};
_.I.handleResize=function(u){this.setMiniplayerSize(u);this.updateDimensionsAndResize()};
_.I.setUpDragging=function(){var u=this;this.JSC$19816_dragger||(this.JSC$19816_dragger=new MU(this.draggableContainer,{onStartDrag:function(K){!u.isSafeToDrag(K)||u.isAnimatingSnap?K.preventDefault():u.handleDragStart()},
onDrag:function(K){u.transform=K;u.setTransform(u.transform)},
onEndDrag:function(){u.handleDragEnd()}},!0))};
_.I.handleDragStart=function(){this.isDragging=!0;var u=_.AC(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,u&&this.repositionVe&&_.If(u,[this.repositionVe]));u&&this.repositionVe&&_.Wi(u,this.repositionVe)};
_.I.handleDragEnd=function(){this.isDragging=!1;var u=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&u>this.windowDimensions.height&&_.GB().resolve(_.uD).close();this.animateSnapToCorner()};
_.I.animateSnapToCorner=function(){var u=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),K=this.getNearestAttachments();K=this.getGlobalPositionFromAttachments(K.horizontalAttachment,K.verticalAttachment);u=new _.XB(K.x-u.x,K.y-u.y);this.isAnimatingSnap=!0;this.setTransform(u);this.hostElement.addEventListener("transitionend",_.Ql(this,this.endSnapAnimation))};
_.I.endSnapAnimation=function(u){u.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.Ql(this,this.endSnapAnimation)),this.endDrag())};
_.I.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.I.setTransform=function(u){this.hostElement.style.transform=u?"translate("+u.x+"px, "+u.y+"px)":""};
_.I.getGlobalPositionFromAttachments=function(u,K){return new _.XB(u==="west"?16:this.windowDimensions.width-this.dimensions.width-16,K==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.I.updateAttachments=function(){var u=this.getNearestAttachments();if(this.horizontalAttachment!==u.horizontalAttachment||this.verticalAttachment!==u.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=u.horizontalAttachment;this.verticalAttachment=u.verticalAttachment;var K;(K=this.JSC$19816_resizers)==null||K.update(this.horizontalAttachment,this.verticalAttachment)};
_.I.getNearestAttachments=function(){var u=this.getCurrentGlobalPosition();return{horizontalAttachment:u.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:u.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.I.getCurrentGlobalPosition=function(){var u=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return $n6(u,this.transform)};
_.I.isSafeToDrag=function(u){var K=this.playerContainer.getBoundingClientRect();return Math.abs(u.clientY-(K.y+K.height))>15};
_.I.setMiniplayerSize=function(u){this.currentMiniplayerSize=this.clamp(u);var K;(K=this.JSC$19816_resizers)==null||K.setSize(this.currentMiniplayerSize)};
_.I.clamp=function(u){return _.mz(192,u,720)};
_.I.registerWithViewTransitionManager=function(){var u=_.GB().resolve(_.vv(_.g6));u&&HgE(u,this.hostElement)};
_.MN.Object.defineProperties($G.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.S("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.QQ("CONTINUE_WATCHING",void 0,"Continue watching")};var u;if((u=this.externalPlaylistData)==null?0:u.contents)return this.externalPlaylistData.titleText;var K;return(K=this.data)==null?void 0:K.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.externalPlaylistData)==null?0:u.contents){var K;return(K=_.ThH(this.externalPlaylistData))==null?void 0:K.title}var l;return(l=this.data)==null?void 0:l.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var u,K,l,D;return((u=this.externalPlaylistData)==null?void 0:u.currentIndex)!==void 0&&((K=this.externalPlaylistData)==null?0:K.totalVideos)&&!((l=this.data)==null?0:(D=l.playlistData)==null?0:D.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.FO9(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.S("kevlar_watch_while_counterfactual")}}});
$G.prototype.onIsDisabledChanged=$G.prototype.onIsDisabledChanged;$G.prototype.readyToResumeVeChanged=$G.prototype.readyToResumeVeChanged;$G.prototype.premiumBrandingChanged=$G.prototype.premiumBrandingChanged;$G.prototype.onPlayerVeChange=$G.prototype.onPlayerVeChange;$G.prototype.hasPlaylistDataChanged=$G.prototype.hasPlaylistDataChanged;_.g([_.e(_.WB.YtPlayerListenerBehavior),_.N("design:type",_.HB)],$G.prototype,"ytPlayerListenerBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],$G.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],$G.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],$G.prototype,"ytdReduxBehavior",void 0);_.g([_.BF("#draggable"),_.N("design:type",HTMLDivElement)],$G.prototype,"draggableContainer",void 0);
_.g([_.BF("#resize-container"),_.N("design:type",HTMLDivElement)],$G.prototype,"JSC$19816_resizeContainer",void 0);_.g([_.BF("#video-container"),_.N("design:type",HTMLDivElement)],$G.prototype,"videoContainer",void 0);_.g([_.BF("#player-container"),_.N("design:type",HTMLDivElement)],$G.prototype,"playerContainer",void 0);_.g([_.BF("#playlist"),_.N("design:type",HTMLDivElement)],$G.prototype,"JSC$19816_playlistPanel",void 0);_.g([_.U(),_.N("design:type",Object)],$G.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$G.prototype,"active",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$G.prototype,"hasNoData",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$G.prototype,"enabled",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$G.prototype,"expanded",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$G.prototype,"readyToResume",void 0);
_.g([_.U(),_.N("design:type",Object)],$G.prototype,"isDisabled",void 0);_.g([_.U(),_.N("design:type",Object)],$G.prototype,"externalPlaylistData",void 0);_.g([_.U(),_.N("design:type",Array)],$G.prototype,"premiumBadges",void 0);_.g([_.U(),_.N("design:type",Object)],$G.prototype,"toastData",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$G.prototype,"watchWhile",void 0);_.g([_.U(),_.N("design:type",Boolean)],$G.prototype,"premiumBranding",void 0);
_.g([_.U(),_.N("design:type",Object)],$G.prototype,"playerState",void 0);_.g([_.U(),_.N("design:type",Boolean)],$G.prototype,"continueWatching",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],$G.prototype,"verticalAttachment",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],$G.prototype,"horizontalAttachment",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$G.prototype,"isAnimatingFade",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$G.prototype,"isAnimatingSnap",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$G.prototype,"isAnimatingExpand",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$G.prototype,"isDragging",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$G.prototype,"playerHidden",void 0);
_.g([_.U({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.N("design:type",Object)],$G.prototype,"playlistData",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.N("design:type",Object)],$G.prototype,"hasPlaylistData",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$G.prototype,"closed",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$G.prototype,"expandedClosed",void 0);
_.g([_.U({selector:_.S7n}),_.N("design:type",Boolean)],$G.prototype,"isSingleOptionSurveyActive",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.mG}),_.N("design:type",Boolean)],$G.prototype,"isWatchPage",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("watchWhile"),_.N("design:type",Object),_.N("design:paramtypes",[])],$G.prototype,"showInfoBar",null);_.g([_.R("premiumBadges","showInfoBar"),_.N("design:type",Object),_.N("design:paramtypes",[])],$G.prototype,"showOverlayPremiumBadges",null);
_.g([_.U(),_.N("design:type",Object)],$G.prototype,"watchResponse",void 0);_.g([_.U(),_.N("design:type",Object)],$G.prototype,"miniplayerRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],$G.prototype,"playabilityStatus",void 0);_.g([_.U(),_.N("design:type",Object)],$G.prototype,"playerVe",void 0);_.g([_.U(),_.N("design:type",Object)],$G.prototype,"expandVe",void 0);_.g([_.U(),_.N("design:type",Object)],$G.prototype,"closeVe",void 0);
_.g([_.U(),_.N("design:type",Object)],$G.prototype,"readyToResumeCloseVe",void 0);_.g([_.U(),_.N("design:type",_.Z8)],$G.prototype,"readyToResumeVe",void 0);_.g([_.U(),_.N("design:type",_.Z8)],$G.prototype,"resizeVe",void 0);_.g([_.U(),_.N("design:type",_.Z8)],$G.prototype,"repositionVe",void 0);_.g([_.JU("hasPlaylistData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$G.prototype,"hasPlaylistDataChanged",null);
_.g([_.JU("playerVe"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$G.prototype,"onPlayerVeChange",null);_.g([_.JU("premiumBranding"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$G.prototype,"premiumBrandingChanged",null);_.g([_.JU("readyToResumeVe"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$G.prototype,"readyToResumeVeChanged",null);
_.g([_.JU("isDisabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$G.prototype,"onIsDisabledChanged",null);_.g([_.R("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.N("design:type",Object),_.N("design:paramtypes",[])],$G.prototype,"miniplayerSubtitle",null);_.g([_.R("data.miniplayerTitle","externalPlaylistData"),_.N("design:type",Object),_.N("design:paramtypes",[])],$G.prototype,"miniplayerTitle",null);
_.g([_.R("externalPlaylistData","continueWatching"),_.N("design:type",Object),_.N("design:paramtypes",[])],$G.prototype,"playlistIndexMessage",null);_.g([_.U({reflectToAttribute:!0}),_.R("playabilityStatus"),_.N("design:type",Object),_.N("design:paramtypes",[])],$G.prototype,"showErrorScreen",null);_.g([_.U({reflectToAttribute:!0}),_.R("watchWhile"),_.N("design:type",Object),_.N("design:paramtypes",[])],$G.prototype,"watchWhileHidden",null);
_.S("ytd_miniplayer_to_wiz")||_.F($G,"ytd-miniplayer",function(){if(bZo===void 0){var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);bZo=u}u=bZo;return u},{mode:2});var UxV;var nu=function(){var u=_.Q.apply(this,arguments)||this;u.useListItemStyles=_.S("web_list_item_style_for_menu_items");u.systemIcons=_.S("kevlar_system_icons");return u};
_.c(nu,_.Q);_.I=nu.prototype;_.I.ready=function(){this.hostElement.addEventListener("tap",_.Ql(this,this.onEndpointTapExtra))};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.I.onFocus=function(){var u;(u=_.bi(this.hostElement).querySelector("tp-yt-paper-item"))==null||u.focus()};
_.I.onEndpointTapExtra=function(u){_.xs(this.hostElement,"iron-activate");var K=this.data.navigationEndpoint;K&&_.b(K,_.jUr)&&(u.stopPropagation(),_.ay(this.hostElement,[K],this.hostElement))};
_.I.computeIcon=function(u){return u&&u.iconType?_.fr(u.iconType):""};
_.I.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.I.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.I.forceUpdateStylesOnLegacyBrowsers=function(){_.S("kevlar_legacy_browsers")&&_.e8(this.hostElement)};
nu.prototype.forceUpdateStylesOnLegacyBrowsers=nu.prototype.forceUpdateStylesOnLegacyBrowsers;nu.prototype.onFocus=nu.prototype.onFocus;_.g([_.e(_.nl),_.N("design:type",Object)],nu.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.e(_.UqR.YtConditionalRendererBehavior),_.N("design:type",Object)],nu.prototype,"ytConditionalRendererBehavior",void 0);_.g([_.e(_.po.YtEndpointBehavior),_.N("design:type",Object)],nu.prototype,"ytEndpointBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],nu.prototype,"data",void 0);_.g([_.U({computed:"computeIcon(data.icon)",value:""}),_.N("design:type",String)],nu.prototype,"icon",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],nu.prototype,"useIcons",void 0);_.g([_.U({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.N("design:type",Boolean)],nu.prototype,"hasSeparator",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nu.prototype,"useListItemStyles",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],nu.prototype,"systemIcons",void 0);_.g([_.PF("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nu.prototype,"onFocus",null);_.g([_.JU("useIcons","hasSeparator"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nu.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.F(nu,"ytd-menu-navigation-item-renderer",function(){if(UxV===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);UxV=u}u=UxV;return u},{mode:1});var ftE;var Qmi=_.o7(_.QQ("DOWNLOAD",{},"Download")),PB_=_.o7(_.QQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),JaE=_.o7(_.QQ("RETRY",{},"Retry")),jmI=_.o7(_.QQ("PAUSE_DOWNLOADING",{},"Pause downloading")),BWV=_.o7(_.QQ("RESUME_DOWNLOAD",{},"Resume download")),rk=function(){var u=_.Q.apply(this,arguments)||this;u.primaryText=Qmi;u.primaryIconType="OFFLINE_DOWNLOAD";u.hasSecondaryContent=!1;u.hasSeparator=!1;u.transferState="TRANSFER_STATE_UNKNOWN";u.isVideoDeletedByUser=!1;u.isHidden=!1;u.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return u};
_.c(rk,_.Q);_.I=rk.prototype;_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.I.onFocus=function(){this.primaryEntry.focus()};
_.I.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.I.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.I.getRemoveAction=function(){return"ACTION_REMOVE"};
_.I.sendOfflineAction=function(u){var K=this.data.serviceEndpoint;if(K){var l=_.b(K,_.JK);l&&u&&(l.action=u);this.ytComponentBehavior.resolveCommand(K)}};
_.I.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=Qmi,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=Qmi;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=JaE;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=PB_;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=BWV;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=PB_;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
jmI;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=PB_;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=PB_;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=Qmi,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.I.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.I.isSecondaryEntryHidden=function(u,K){return u?!0:!K};
_.I.computeHasSeparator=function(){var u;return!((u=this.data)==null||!u.hasSeparator)};
rk.prototype.showHideButton=rk.prototype.showHideButton;rk.prototype.onTransferStateChange=rk.prototype.onTransferStateChange;rk.prototype.onFocus=rk.prototype.onFocus;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],rk.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],rk.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],rk.prototype,"ytComponentBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],rk.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],rk.prototype,"primaryText",void 0);_.g([_.U(),_.N("design:type",String)],rk.prototype,"primaryIconType",void 0);_.g([_.U(),_.N("design:type",String)],rk.prototype,"primaryAction",void 0);_.g([_.U(),_.N("design:type",Object)],rk.prototype,"secondaryText",void 0);_.g([_.U(),_.N("design:type",String)],rk.prototype,"secondaryIconType",void 0);
_.g([_.U(),_.N("design:type",String)],rk.prototype,"secondaryAction",void 0);_.g([_.U(),_.N("design:type",Object)],rk.prototype,"hasSecondaryContent",void 0);_.g([_.U({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.N("design:type",Object)],rk.prototype,"hasSeparator",void 0);_.g([_.U({selector:_.EV,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.N("design:type",String)],rk.prototype,"transferState",void 0);
_.g([_.U({selector:_.Vv9,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.N("design:type",Object)],rk.prototype,"isVideoDeletedByUser",void 0);_.g([_.U(),_.N("design:type",Object)],rk.prototype,"isHidden",void 0);_.g([_.U({selector:_.jDy,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.N("design:type",Object)],rk.prototype,"offlineabilityState",void 0);_.g([_.BF("#primary-entry"),_.N("design:type",Object)],rk.prototype,"primaryEntry",void 0);
_.g([_.PF("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rk.prototype,"onFocus",null);_.g([_.wn("transferState","isVideoDeletedByUser"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rk.prototype,"onTransferStateChange",null);_.g([_.wn("offlineabilityState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rk.prototype,"showHideButton",null);
_.F(rk,"ytd-menu-service-item-download-renderer",function(){if(ftE===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);ftE=u}u=ftE;return u},{mode:1});var pR_;var v5=function(){var u=_.Q.apply(this,arguments)||this;u.useIcons=!1;u.systemIcons=_.S("kevlar_system_icons");u.useListItemStyles=_.S("web_list_item_style_for_menu_items");return u};
_.c(v5,_.Q);_.I=v5.prototype;_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.I.onFocus=function(){var u;(u=_.bi(this.hostElement).querySelector("tp-yt-paper-item"))==null||u.focus()};
_.I.onTap=function(){_.bI(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var u=this.data.serviceEndpoint,K=this.data.command;if(u){var l,D=(l=this.data)==null?void 0:l.trackingParams;l=!!_.b(u,_.UD0);D&&l&&_.Mu().dispatch(_.SZ({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:D}}));this.ytComponentBehavior.resolveCommand(u)||_.GB().resolve(_.t9).resolveCommand(u,{form:{element:this.hostElement}})}K&&(this.ytComponentBehavior.resolveCommand(K)||_.ay(this.hostElement,
[K],this.hostElement))};
_.I.computeIcon=function(u){return u&&u.iconType?_.fr(u.iconType):""};
_.I.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.I.computeHasSeparator=function(){var u;return!((u=this.data)==null||!u.hasSeparator)};
_.I.forceUpdateStylesOnLegacyBrowsers=function(){_.S("kevlar_legacy_browsers")&&_.e8(this.hostElement)};
_.I.computeIsSelected=function(){var u;return!((u=this.data)==null||!u.isSelected)};
v5.prototype.forceUpdateStylesOnLegacyBrowsers=v5.prototype.forceUpdateStylesOnLegacyBrowsers;v5.prototype.onTap=v5.prototype.onTap;v5.prototype.onFocus=v5.prototype.onFocus;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],v5.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.nl),_.N("design:type",Object)],v5.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],v5.prototype,"ytComponentBehavior",void 0);
_.g([_.e(_.UqR.YtConditionalRendererBehavior),_.N("design:type",Object)],v5.prototype,"ytConditionalRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],v5.prototype,"data",void 0);_.g([_.U({computed:"computeIcon(data.icon)",value:""}),_.N("design:type",String)],v5.prototype,"icon",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],v5.prototype,"useIcons",void 0);
_.g([_.U({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.N("design:type",Boolean)],v5.prototype,"hasSeparator",void 0);_.g([_.U({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.N("design:type",Boolean)],v5.prototype,"isSelected",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],v5.prototype,"systemIcons",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],v5.prototype,"useListItemStyles",void 0);
_.g([_.PF("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],v5.prototype,"onFocus",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],v5.prototype,"onTap",null);_.g([_.JU("useIcons","hasSeparator"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],v5.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.F(v5,"ytd-menu-service-item-renderer",function(){if(pR_===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);pR_=u}u=pR_;return u},{mode:2});var iZG;var Gp=function(){return _.Q.apply(this,arguments)||this};
_.c(Gp,_.Q);_.I=Gp.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.onDataChanged=function(){var u=this;_.W_(this,function(){u.postbox.openDialog();u.focus();_.xs(u.hostElement,"yt-refit")})};
_.I.focus=function(){this.postbox.focus()};
_.I.closePopup=function(){_.Sy(this.hostElement,"yt-close-popup-action")};
_.I.onYtCommentboxDismiss=function(){this.closePopup()};
Gp.prototype.onYtCommentboxDismiss=Gp.prototype.onYtCommentboxDismiss;Gp.prototype.onDataChanged=Gp.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Gp.prototype,"data",void 0);_.g([_.U({value:function(){return _.QQ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.N("design:type",String)],Gp.prototype,"closeButtonAriaLabel",void 0);_.g([_.BF("#postbox"),_.N("design:type",Object)],Gp.prototype,"postbox",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gp.prototype,"onDataChanged",null);_.g([_.PF("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gp.prototype,"onYtCommentboxDismiss",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],Gp);
_.F(Gp,"ytd-backstage-post-dialog-popup-renderer",function(){if(iZG!==void 0)return iZG;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return iZG=u},{mode:1});var TWp;var tx=function(){return _.Q.apply(this,arguments)||this};
_.c(tx,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],tx.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],tx);
_.F(tx,"ytd-sender-id-section-renderer",function(){if(TWp!==void 0)return TWp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
return TWp=u},{mode:1});var wRi;var F8k;var V$V;var xG=function(){return _.Q.apply(this,arguments)||this};
_.c(xG,_.Q);xG.prototype.closePopup=function(){_.Sy(this.hostElement,"yt-close-popup-action")};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],xG.prototype,"data",void 0);_.g([_.E9({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],xG);
_.F(xG,"yt-community-post-section-renderer",function(){if(V$V===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;F8k===void 0&&(F8k=document.createElement("template"));var D=F8k;l.call(K,D.content.cloneNode(!0),u.content.firstChild);V$V=u}u=V$V;return u},{mode:2});var g_I;var NWI;var kfo;var ZZH;var Ysi;var Aap;var Su=function(){return _.Q.apply(this,arguments)||this};
_.c(Su,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Su.prototype,"data",void 0);_.g([_.E9({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Su);
_.F(Su,"yt-share-start-time-with-context-renderer",function(){if(Aap===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Ysi===void 0&&(Ysi=document.createElement("template"));var D=Ysi;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Aap=u}u=Aap;return u},{mode:2});var bb=function(){return _.Q.apply(this,arguments)||this};
_.c(bb,_.Q);bb.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],bb.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],bb.prototype,"data",void 0);_.g([_.E9({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],bb);
_.F(bb,"yt-share-panel-title-v15-renderer",function(){if(ZZH===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;kfo===void 0&&(kfo=document.createElement("template"));var D=kfo;l.call(K,D.content.cloneNode(!0),u.content.firstChild);ZZH=u}u=ZZH;return u},{mode:2});var Oq=function(){return _.Q.apply(this,arguments)||this};
_.c(Oq,_.Q);Oq.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"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Oq.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Oq.prototype,"data",void 0);_.g([_.E9({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Oq);
_.F(Oq,"yt-share-panel-header-renderer",function(){if(NWI===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;g_I===void 0&&(g_I=document.createElement("template"));var D=g_I;l.call(K,D.content.cloneNode(!0),u.content.firstChild);NWI=u}u=NWI;return u},{mode:2});var XR_;var mxV;var c5=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-open-popup-action":"onOpen"};return u};
_.c(c5,_.Q);_.I=c5.prototype;_.I.attached=function(){this.onOpen()};
_.I.updateTimeSecs=function(u){this.currentTimeSecs=u};
_.I.computeTimeString=function(u){u=u.toString();var K=Math.floor(Number(u)/3600),l=Math.floor(Number(u)%3600%60);return(K>0?K+":":"")+_.bO(Math.floor(Number(u)%3600/60),K>0?2:1)+":"+_.bO(l,2)};
_.I.computeTimeStringA11y=function(u){u=_.Nzq({seconds:u});var K=u.hours===void 0?0:u.hours,l=u.minutes===void 0?0:u.minutes,D=u.seconds===void 0?0:u.seconds;u=[];if(K>0){var d=k9E().format({hours:K});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.lv)||K>9999)d=d.replace(K.toString(),_.kEH(K)),_.lv==="km"&&(d=d.replace(".",","));u.push(d)}l>0&&u.push(k9E().format({minutes:l}));D>0&&u.push(k9E().format({seconds:D}));K="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");l=_.lv==
"am"?"{0}\u1363 ":_.lv=="fa"?"{0}\u060c\u200f ":_.lv=="my"?"{0} - ":_.lv=="ne"?"{0},":_.lv=="th"?"{0} ":_.lv=="ur"?"{0}\u060c ":_.lv=="ar"||_.lv=="ar-XB"?"{0} \u0648":_.lv=="ja"||_.lv=="zh-CN"||_.lv=="zh-HK"||_.lv=="zh-TW"?"{0}\u3001":"{0}, ";D=_.lv=="am"?"\u1363 ":_.lv=="fa"?"\u060c\u200f ":_.lv=="my"?" - ":_.lv=="th"?" ":_.lv=="ur"?"\u060c ":_.lv=="ar"||_.lv=="ar-XB"?" \u0648":_.lv=="ja"||_.lv=="zh-CN"||_.lv=="zh-HK"||_.lv=="zh-TW"?"\u3001":", ";d=_.lv=="am"?" \u12a5\u1293 {0}":_.lv=="as"?" \u0986\u09f0\u09c1 {0}":
_.lv=="az"?" v\u0259 {0}":_.lv=="bn"?" \u098f\u09ac\u0982 {0}":_.lv=="cs"?" a\u00a0{0}":_.lv=="de"?" und {0}":_.lv=="el"?" \u03ba\u03b1\u03b9 {0}":_.lv=="eu"?" eta {0}":_.lv=="fa"?"\u060c \u0648 {0}":_.lv=="fil"?", at {0}":_.lv=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.lv=="hi"?", \u0914\u0930 {0}":_.lv=="hu"?" \u00e9s {0}":_.lv=="hy"?" \u0587 {0}":_.lv=="id"?", dan {0}":_.lv=="iw"?" \u05d5-{0}":_.lv=="ja"?"\u3001{0}":_.lv=="ka"?" \u10d3\u10d0 {0}":_.lv=="km"?" \u1793\u17b7\u1784 {0}":_.lv=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.lv=="ko"?" \ubc0f {0}":_.lv=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.lv=="lt"?" ir {0}":_.lv=="lv"?" un {0}":_.lv=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.lv=="mr"?" \u0906\u0923\u093f {0}":_.lv=="ms"?" dan {0}":_.lv=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.lv=="ne"?" \u0930 {0}":_.lv=="or"?", \u0b13 {0}":_.lv=="pa"?" \u0a05\u0a24\u0a47 {0}":_.lv=="ro"?" \u0219i {0}":_.lv=="si"?", \u0dc3\u0dc4 {0}":_.lv=="sk"?" a {0}":_.lv=="sl"?" in {0}":_.lv=="sq"?" dhe {0}":_.lv=="sv"?" och {0}":
_.lv=="sw"?" na {0}":_.lv=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.lv=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.lv=="th"?" \u0e41\u0e25\u0e30{0}":_.lv=="tr"?" ve {0}":_.lv=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.lv=="uz"?" va {0}":_.lv=="vi"?" v\u00e0 {0}":_.lv=="zh-HK"?"\u53ca{0}":_.lv=="zu"?", ne-{0}":_.lv=="af"||_.lv=="nl"?" en {0}":_.lv=="ar"||_.lv=="ar-XB"?" \u0648{0}":_.lv=="be"||_.lv=="uk"?" \u0456 {0}":_.lv=="en-GB"||_.lv=="en-IN"?" and {0}":_.lv=="en"||_.lv=="en-XA"?
", and {0}":_.lv=="et"||_.lv=="fi"?" ja {0}":_.lv=="fr"||_.lv=="fr-CA"?" et {0}":_.lv=="zh-CN"||_.lv=="zh-TW"?"\u548c{0}":_.lv=="da"||_.lv=="is"||_.lv=="no"?" og {0}":_.lv=="es"||_.lv=="es-419"||_.lv=="es-US"?" y {0}":_.lv=="kk"||_.lv=="lo"||_.lv=="mn"?", {0}":_.lv=="bg"||_.lv=="mk"||_.lv=="ru"||_.lv=="sr"?" \u0438 {0}":_.lv=="gl"||_.lv=="it"||_.lv=="pt-BR"||_.lv=="pt-PT"?" e {0}":" i {0}";var C=_.lv=="am"?"{0} \u12a5\u1293 {1}":_.lv=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.lv=="az"?"{0} v\u0259 {1}":
_.lv=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.lv=="de"?"{0} und {1}":_.lv=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.lv=="eu"?"{0} eta {1}":_.lv=="fa"?"{0} \u0648 {1}":_.lv=="fil"?"{0} at {1}":_.lv=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.lv=="hi"?"{0} \u0914\u0930 {1}":_.lv=="hu"?"{0} \u00e9s {1}":_.lv=="hy"?"{0} \u0587 {1}":_.lv=="iw"?"{0} \u05d5-{1}":_.lv=="ja"?"{0}\u3001{1}":_.lv=="ka"?"{0} \u10d3\u10d0 {1}":_.lv=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.lv=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.lv=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.lv=="ko"?"{0} \ubc0f {1}":_.lv=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.lv=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.lv=="lt"?"{0} ir {1}":_.lv=="lv"?"{0} un {1}":_.lv=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.lv=="mn"?"{0}, {1}":_.lv=="mr"?"{0} \u0906\u0923\u093f {1}":_.lv=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.lv=="ne"?"{0} \u0930 {1}":_.lv=="or"?"{0} \u0b13 {1}":_.lv=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.lv=="ro"?"{0} \u0219i {1}":_.lv==
"si"?"{0} \u0dc3\u0dc4 {1}":_.lv=="sl"?"{0} in {1}":_.lv=="sq"?"{0} dhe {1}":_.lv=="sv"?"{0} och {1}":_.lv=="sw"?"{0} na {1}":_.lv=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.lv=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.lv=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.lv=="tr"?"{0} ve {1}":_.lv=="ur"?"{0} \u0627\u0648\u0631 {1}":_.lv=="uz"?"{0} va {1}":_.lv=="vi"?"{0} v\u00e0 {1}":_.lv=="zh-HK"?"{0}\u53ca{1}":_.lv=="zu"?"{0} ne-{1}":_.lv=="af"||_.lv=="nl"?"{0} en {1}":_.lv=="ar"||_.lv==
"ar-XB"?"{0} \u0648{1}":_.lv=="be"||_.lv=="uk"?"{0} \u0456 {1}":_.lv=="cs"||_.lv=="sk"?"{0} a\u00a0{1}":_.lv=="et"||_.lv=="fi"?"{0} ja {1}":_.lv=="fr"||_.lv=="fr-CA"?"{0} et {1}":_.lv=="id"||_.lv=="ms"?"{0} dan {1}":_.lv=="zh-CN"||_.lv=="zh-TW"?"{0}\u548c{1}":_.lv=="da"||_.lv=="is"||_.lv=="no"?"{0} og {1}":_.lv=="es"||_.lv=="es-419"||_.lv=="es-US"?"{0} y {1}":_.lv=="bg"||_.lv=="mk"||_.lv=="ru"||_.lv=="sr"?"{0} \u0438 {1}":_.lv=="en"||_.lv=="en-GB"||_.lv=="en-IN"||_.lv=="en-XA"?"{0} and {1}":_.lv==
"gl"||_.lv=="it"||_.lv=="pt-BR"||_.lv=="pt-PT"?"{0} e {1}":"{0} i {1}";_.lv==="sq"?(d=d.replace("dhe","e"),C=C.replace("dhe","e")):_.lv==="th"?(D=D.replace("{0}"," {0}"),C=C.replace("{0}","{0} "),C=C.replace("{1}"," {1}")):_.lv==="ne"?D=",":_.lv==="zh-CN"?D="":K.includes(_.lv)&&(D=" ");return u.length<2?u.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(_.lv)?u.length===2?
C.replace("{0}",u[0]).replace("{1}",u[1]):l.replace("{0}",u[0])+u.slice(1,-1).join(D)+d.replace("{0}",u[u.length-1]):u.join(D)};
_.I.getTimeParam=function(){return GQ6(this.timeString)};
_.I.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var u={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},K;_.QZ(_.iT(),(K=this.data)==null?void 0:K.trackingParams,u,7)};
_.I.onChangeStartAtTimestamp=function(){for(var u=this.startAtTimestamp.value.split(":"),K=0,l=1,D=u.length-1;D>=0;D--)K+=Number(u[D])*l,l*=60;this.updateTimeSecs(K);this.setTimestamp()};
_.I.onOpen=function(){var u=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var K=_.xY();K?K.getPlayerPromise().then(function(l){l=l.getCurrentTime();u.updateTimeSecs(l)}):gr2()&&this.updateTimeSecs(gr2())};
_.I.setTimestamp=function(){var u=Math.floor(this.currentTimeSecs);_.Sy(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!u,timestamp:u||""}])};
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],c5.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],c5.prototype,"data",void 0);_.g([_.U({value:!1,notify:!0}),_.N("design:type",Boolean)],c5.prototype,"isStartAtChecked",void 0);_.g([_.U(),_.N("design:type",Number)],c5.prototype,"currentTimeSecs",void 0);
_.g([_.U({computed:"computeTimeString(currentTimeSecs)"}),_.N("design:type",String)],c5.prototype,"timeString",void 0);_.g([_.U({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.N("design:type",String)],c5.prototype,"timeStringA11y",void 0);_.g([_.BF("#start-at-timestamp"),_.N("design:type",Object)],c5.prototype,"startAtTimestamp",void 0);_.g([_.E9({is:"yt-start-at-renderer",disableElementRegistration:!0})],c5);
_.F(c5,"yt-start-at-renderer",function(){if(mxV===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;XR_===void 0&&(XR_=document.createElement("template"));var D=XR_;l.call(K,D.content.cloneNode(!0),u.content.firstChild);mxV=u}u=mxV;return u},{mode:2});var h0E;var E_k;var L8p=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"]]),uc2=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"]]),Kjp=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var lXH={};lXH.YtBindingExpressionsBehavior={identity:_.wq,msg:function(u,K){K=K===void 0?{}:K;return _.QQ(u,K,u)},
msgPlural:function(u,K){return _.P0(u,K)},
getMusicIconFromType:function(u){if(_.S("music_web_enable_icon_wil"))u=_.fr(u);else if(uc2.has(u))u="yt-sys-icons:"+uc2.get(u);else{var K=L8p.get(u)||_.fr(u).split(":")[1];K=_.v3H(K);var l;u=((l=Kjp.get(u))!=null?l:"yt-sys-icons:")+K}return u}};var Dg2;var dgo;var Cs2;var IXB=document.head,yw_=IXB.appendChild,s4_;if(Cs2===void 0){var oWp=document.createElement("template");_.z(oWp,'\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>');Cs2=oWp}s4_=Cs2;yw_.call(IXB,s4_.content);var aa=function(){var u=_.Q.apply(this,arguments)||this;u.screenLayer=7;return u};
_.c(aa,_.Q);aa.prototype.getScreenLayer=function(){return this.screenLayer};
aa.prototype.onTap=function(u){u&&u.detail&&(u.detail.x||u.detail.y)&&_.bi(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.c0(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(u=this.getScreenLayer(),_.xs(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:u}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.MN.Object.defineProperties(aa.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()}}});
aa.prototype.onTap=aa.prototype.onTap;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],aa.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],aa.prototype,"data",void 0);_.g([_.R("data.title"),_.N("design:type",Object),_.N("design:paramtypes",[])],aa.prototype,"title",null);
_.g([_.R("data.serviceName"),_.N("design:type",String),_.N("design:paramtypes",[])],aa.prototype,"icon",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],aa.prototype,"onTap",null);_.g([_.E9({is:"yt-share-target-renderer",disableElementRegistration:!0})],aa);
_.F(aa,"yt-share-target-renderer",function(){if(dgo===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Dg2===void 0&&(Dg2=document.createElement("template"));var D=Dg2;l.call(K,D.content.cloneNode(!0),u.content.firstChild);dgo=u}u=dgo;return u},{mode:2});var WjE;var HKE;var zp=function(){var u=_.Q.apply(this,arguments)||this;u.SHARE_TARGET_WIDTH=70;u.SHARE_TARGET_MARGIN_RIGHT=8;u.PAGE_SCROLL_SPEED=9;u.actionMap={"yt-share-panel-reset-action":"onReset_"};return u};
_.c(zp,_.Q);_.I=zp.prototype;_.I.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.I.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.bi(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.bi(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.I.onReset_=function(){if(_.bi(this.hostElement).querySelector("#list")){var u=_.bi(this.hostElement).querySelector("#list");var K=_.bi(this.hostElement).querySelector("#list");var l=K.offsetLeft,D=K.offsetParent;D||_.Mkw(K)!="fixed"||(D=_.hO(K).documentElement);if(D){if(_.zR&&!_.Rj(58)){var d=_.xpB(D);l+=d.left}else Number(_.TQq)>=8&&!(Number(_.TQq)>=9)&&(d=_.xpB(D),l-=d.left);K=_.G60(D)?D.clientWidth-(l+K.offsetWidth):l}else K=l;hB_(u,K);this.updateScrollButtons_()}};
_.I.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.I.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.I.onScrollWheel_=function(u){u.stopPropagation();u.preventDefault();var K=mCp(_.bi(this.hostElement).querySelector("#list"));u=Math.abs(u.deltaX)>Math.abs(u.deltaY)?u.deltaX:u.deltaY;hB_(_.bi(this.hostElement).querySelector("#list"),K+u);this.updateScrollButtons_()};
_.I.smoothScrollByOnePage_=function(u){var K=_.bi(this.hostElement).querySelector("#list"),l=(Math.floor(K.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,D=mCp(K),d=l*(u?1:-1),C=this.PAGE_SCROLL_SPEED,W=this.updateScrollButtons_.bind(this),M=0,q;(function G(){M+=C;q=M/l*2;hB_(K,D+d*(q<1?q*q:-q*q+4*q-2));M<l?window.requestAnimationFrame(G):W()})()};
_.I.updateScrollButtons_=function(){var u=mCp(_.bi(this.hostElement).querySelector("#list")),K=_.bi(this.hostElement).querySelector("#list").scrollWidth-_.bi(this.hostElement).querySelector("#list").clientWidth;_.bi(this.hostElement).querySelector("#scroll-button-back").hidden=u<=0;_.bi(this.hostElement).querySelector("#scroll-button-forward").hidden=u>=K};
zp.prototype.onScrollWheel_=zp.prototype.onScrollWheel_;zp.prototype.onDataChanged_=zp.prototype.onDataChanged_;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],zp.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],zp.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(lXH.YtBindingExpressionsBehavior),_.N("design:type",Object)],zp.prototype,"ytBindingExpressionsBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],zp.prototype,"data",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zp.prototype,"onDataChanged_",null);_.g([_.PF("wheel"),_.N("design:type",Function),_.N("design:paramtypes",[WheelEvent]),_.N("design:returntype")],zp.prototype,"onScrollWheel_",null);
_.g([_.E9({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],zp);
_.F(zp,"yt-third-party-share-target-section-renderer",function(){if(HKE===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;WjE===void 0&&(WjE=document.createElement("template"));var D=WjE;l.call(K,D.content.cloneNode(!0),u.content.firstChild);HKE=u}u=HKE;return u},{mode:2});var eu=function(){return _.Q.apply(this,arguments)||this};
_.c(eu,_.Q);eu.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"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],eu.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],eu.prototype,"data",void 0);_.g([_.E9({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],eu);
_.F(eu,"yt-third-party-network-section-renderer",function(){if(E_k===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;h0E===void 0&&(h0E=document.createElement("template"));var D=h0E;l.call(K,D.content.cloneNode(!0),u.content.firstChild);E_k=u}u=E_k;return u},{mode:2});_.SX(_.rf(function(u){return _.n("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.n("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.n(_.mo,{data:function(){return u.data().firstPartyItems}},{listItemViewModel:_.m$})))},"Eg"),"first-party-network-section-view-model",{props:{data:_.M6}});var MOp=_.oj(["data:image/svg+xml;charset=UTF-8;base64,",""]),Ra=function(){var u=_.Q.apply(this,arguments)||this;u.screenLayer=7;u.qrCodeEnabled=_.S("web_enable_sharing_qr_code");u.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return u};
_.c(Ra,_.Q);_.I=Ra.prototype;_.I.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"}}}};
_.I.attached=function(){this.JSC$19868_scroller&&(this.JSC$19868_scroller.dialogElement=this.hostElement.parentNode,this.JSC$19868_scroller.attached&&typeof this.JSC$19868_scroller.attached==="function"&&this.JSC$19868_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.I.onDataChanged=function(){var u=this,K;(K=this.data)!=null&&K.contents&&(this.hostElement.setAttribute("links-only","true"),_.ab(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.W_(this,function(){_.xs(u.hostElement,"yt-refit");u.focusSharePanelHeader()}))};
_.I.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.I.handleSetTimestamp=function(u){var K=this.shortUrl();u.isSet&&(K=_.yK(K,"t",u.timestamp));this.maybeRenderQrCode(K)};
_.I.shortUrl=function(){var u,K=(u=this.data)==null?void 0:u.contents;if(K)for(u=0;u<K.length;u++){var l=void 0,D=void 0;if((l=K[u])==null?0:(D=l.thirdPartyNetworkSection)==null?0:D.copyLinkContainer){var d=D=l=void 0;return(d=_.b((l=K[u])==null?void 0:(D=l.thirdPartyNetworkSection)==null?void 0:D.copyLinkContainer,EiE))==null?void 0:d.shortUrl}}};
_.I.maybeRenderQrCode=function(u){var K=this,l,D,d,C,W,M,q,v,G;return _.H(function(t){if(t.nextAddress==1){l=_.bi(K.hostElement).querySelector("#qr-code");if(!K.qrCodeEnabled||!u)return l&&(l.style.display="none"),t.return();D=_.eRo(_.GB().resolve(_.Q2),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});d=document.createElement("div");return typeof D==="function"?(D(d),t.jumpTo(2)):t.yield(D,3)}t.nextAddress!=2&&(C=t.yieldResult,C(d));q=(W=d)==null?void 0:(M=W.firstChild)==null?void 0:M.firstChild;
v=document.createElement("img");G=_.iML(MOp,btoa(q.outerHTML));v.onload=function(){var x={canvas:l,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:v},O=new rup;bmI(O,u);Omp(O,!1,cuG(O));var a=O.modules,f=Object.assign({},g4V,x);a=structuredClone(a);x=a.length;var B,p=(B=f.canvas)!=null?B:document.createElement("canvas");B=f.cellSize;O=f.logo;var V,m=(V=f.logoSize)!=null?V:Math.floor(x/4);x%2!==m%2&&m++;var Z=f.logoPadding,A=f.backgroundColor;V=x*B;var h=
f.width,C9=0;h&&(C9=f.padding,C9=Math.ceil(C9*V/(h-C9*2)),p.style.width=h+"px",p.style.height=h+"px");p.width!==V+C9*2&&(p.width=V+C9*2);p.height!==V+C9*2&&(p.height=V+C9*2);V=p.getContext("2d");f.autoClear&&V.clearRect(0,0,p.width,p.height);V.fillStyle=A;V.beginPath();V.roundRect(0,0,p.width,p.height,f.borderRadius);V.fill();V.save();V.translate(C9,C9);if(O)for(p=Math.floor(x-m)/2-Z,Z=Math.floor(x+m)/2+Z,A=p;A<Z;A++)for(h=p;h<Z;h++)a[A][h]=!1;for(p=0;p<x;p++)for(Z=0;Z<x;Z++)(p<7&&Z<7||p<7&&Z>=x-
7||p>=x-7&&Z<7)&&(a[p][Z]=!1);var Wo;p=(Wo=f.markerColor)!=null?Wo:f.color;z8p(V,0,0,B,p);z8p(V,B*(x-7),0,B,p);z8p(V,0,B*(x-7),B,p);switch(f.cellStyle){case 0:Wo=a;a=Wo.length;p=f.cellSize;V.beginPath();for(Z=0;Z<a;Z++)for(A=0;A<a;A++)Wo[Z][A]&&V.rect(Z*p,A*p,p,p);V.fillStyle=f.color;V.fill();break;case 1:Wo=a;a=Wo.length;p=f.cellSize;Z=p*f.relativeCircleSize;V.fillStyle=f.color;V.beginPath();for(f=0;f<a;f++)for(A=0;A<a;A++)Wo[f][A]&&(V.beginPath(),V.ellipse((f+.5)*p,(A+.5)*p,Z/2,Z/2,0,0,2*Math.PI),
V.fill());V.fill();break;case 2:Wo=a;a=Wo.length;p=f.cellSize;V.fillStyle=f.color;f=[[1,1],[-1,1],[-1,-1],[1,-1]];V.beginPath();for(Z=0;Z<a;Z++)for(A=0;A<a;A++)if(Wo[Z][A])V.roundRect(Z*p,A*p,p,p,p/2),Z+1<a&&Wo[Z+1][A]&&V.rect(Z*p+p/2,A*p,p,p),A+1<a&&Wo[Z][A+1]&&V.rect(Z*p,A*p+p/2,p,p);else{h=Z*p+p/2;C9=A*p+p/2;for(var $y=0;$y<4;$y++){var co=_.y(f[$y]),UZ=co.next().value;co=co.next().value;Z+UZ>=0&&Z+UZ<a&&A+co>=0&&A+co<a&&Wo[Z+UZ][A]&&Wo[Z][A+co]&&Wo[Z+UZ][A+co]&&(UZ=$y*Math.PI/2,co=p/2,V.moveTo(h+
co*Math.cos(UZ),C9+co*Math.sin(UZ)),V.arc(h,C9,p/2,UZ,UZ+Math.PI/2,!1),V.lineTo(h+co*(Math.cos(UZ)-Math.sin(UZ)),C9+co*(Math.cos(UZ)+Math.sin(UZ))),V.lineTo(h+co*Math.cos(UZ),C9+co*Math.sin(UZ)))}}V.fill()}O&&V.drawImage(O,(x-m)*B/2,(x-m)*B/2,m*B,m*B);V.restore();l.style.removeProperty("display")};
v.src=_.Yu(G);_.TG(t)})};
_.I.hasCommunityPostRenderer=function(){var u,K,l,D;return!!((u=this.data)==null?0:(K=u.header)==null?0:(l=K.sharePanelHeaderRenderer)==null?0:(D=l.communityPost)==null?0:D.communityPostSectionRenderer)};
_.I.onTapClose=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.I.getScreenLayer=function(){return this.screenLayer};
_.I.logSharePanelPage=function(){if(!_.S("enable_share_panel_navigation_logging_fix_on_web")){var u;if((u=this.data)!=null&&u.trackingParams){u=this.data.trackingParams;var K=this.parentClickTrackingParams;K=K?_.gf(K):void 0;var l=_.iT();_.ev(l,21760,K,{layer:7,parentLayer:0});l.graftServerVe(u,void 0,7);_.Mu().dispatch(_.SZ({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Ra.prototype.onDataChanged=Ra.prototype.onDataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Ra.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Ra.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],Ra.prototype,"data",void 0);_.g([_.U({value:_.QQ("SBOX_INAPPROPRIATE_CANCEL")}),_.N("design:type",String)],Ra.prototype,"closeButtonAriaLabel",void 0);_.g([_.BF("yt-share-panel-header-renderer"),_.N("design:type",HTMLElement)],Ra.prototype,"header",void 0);_.g([_.U({selector:function(u){return u.share.parentClickTrackingParams}}),
_.N("design:type",String)],Ra.prototype,"parentClickTrackingParams",void 0);_.g([_.U(),_.N("design:type",Object)],Ra.prototype,"qrCodeEnabled",void 0);_.g([_.BF("#scroller"),_.N("design:type",Object)],Ra.prototype,"JSC$19868_scroller",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ra.prototype,"onDataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Ra);
_.F(Ra,"ytd-unified-share-panel-renderer",function(){if(wRi!==void 0)return wRi;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return wRi=u},{mode:1});var qak;var Uq=function(){var u=_.Q.apply(this,arguments)||this;u.modernModal=!0;return u};
_.c(Uq,_.Q);Uq.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Uq.prototype.computeShouldHideOldButtons=function(){var u;return!((u=this.data)==null?0:u.button)};
_.MN.Object.defineProperties(Uq.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var u,K;return(u=this.data)==null?void 0:(K=u.button)==null?void 0:K.buttonRenderer}}});
_.g([_.U(),_.N("design:type",Object)],Uq.prototype,"data",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],Uq.prototype,"ytEventForwardingBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Uq.prototype,"modernModal",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Uq.prototype,"buttonRendererData",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Uq);
_.F(Uq,"ytd-modal-with-title-and-button-renderer",function(){if(qak!==void 0)return qak;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return qak=u},{mode:1});var $g2;var fu=function(){return _.Q.apply(this,arguments)||this};
_.c(fu,_.Q);fu.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("page-changed",this.page))};
fu.prototype.pageChangedForBinding=fu.prototype.pageChangedForBinding;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],fu.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],fu.prototype,"page",void 0);_.g([_.JU("page"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fu.prototype,"pageChangedForBinding",null);
_.g([_.T({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],fu);
_.F(fu,"ytd-account-item-section-header-renderer",function(){if($g2!==void 0)return $g2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return $g2=u},{mode:1});var nWp;var QO=function(){return _.Q.apply(this,arguments)||this};
_.c(QO,_.Q);QO.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"}}}};
QO.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],QO.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ir),_.N("design:type",Object)],QO.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],QO.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!1}),_.N("design:type",Function)],QO.prototype,"onAccountItemTap",void 0);
_.g([_.T({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],QO);
_.F(QO,"ytd-account-item-section-renderer",function(){if(nWp!==void 0)return nWp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return nWp=u},{mode:1});var rw2;var vWB;var P5=function(){return _.Q.apply(this,arguments)||this};
_.c(P5,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],P5.prototype,"data",void 0);_.g([_.T({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],P5);
_.F(P5,"ytd-accounts-dialog-header-renderer",function(){if(vWB!==void 0)return vWB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return vWB=u},{mode:1});var Gx_;var Jx=function(){return _.Q.apply(this,arguments)||this};
_.c(Jx,_.Q);Jx.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Jx.prototype,"data",void 0);_.g([_.T({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Jx);
_.F(Jx,"ytd-google-account-header-renderer",function(){if(Gx_!==void 0)return Gx_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Gx_=u},{mode:1});var ju=function(){return _.Q.apply(this,arguments)||this};
_.c(ju,_.Q);ju.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"}}}};
ju.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("page-changed",this.page))};
ju.prototype.pageChangedForBinding=ju.prototype.pageChangedForBinding;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ju.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ju.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],ju.prototype,"page",void 0);
_.g([_.JU("page"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ju.prototype,"pageChangedForBinding",null);_.g([_.T({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],ju);
_.at()(ju,"ytd-account-section-list-renderer",function(){if(rw2===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);rw2=u}u=rw2;return u},{allowedProps:["data"],
mode:1});var tOE;var B5=function(){var u=_.Q.apply(this,arguments)||this;u.enableHandlesAccountMenuSwitcher=_.S("enable_handles_account_menu_switcher");return u};
_.c(B5,_.Q);B5.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
B5.prototype.dataChanged=B5.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],B5.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],B5.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.g([_.BF("#avatar"),_.N("design:type",Object)],B5.prototype,"avatar",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],B5.prototype,"dataChanged",null);_.g([_.T({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],B5);
_.at()(B5,"ytd-active-account-header-renderer",function(){if(tOE===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);tOE=u}u=tOE;return u},{allowedProps:["data"],
mode:1});var xgE;var Sai;var pu=function(){return _.Q.apply(this,arguments)||this};
_.c(pu,_.Q);pu.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
pu.prototype.onBackTap=function(){_.xs(this.hostElement,"yt-menu-back-tapped")};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],pu.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],pu.prototype,"data",void 0);_.g([_.T({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],pu);
_.at()(pu,"ytd-simple-menu-header-renderer",function(){if(Sai===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);Sai=u}u=Sai;return u},{allowedProps:["data"],
mode:2});var bKE;var ib=function(){return _.Q.apply(this,arguments)||this};
_.c(ib,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ib.prototype,"data",void 0);_.g([_.T({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],ib);
_.F(ib,"ytd-comment-video-thumbnail-header-renderer",function(){if(bKE!==void 0)return bKE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return bKE=u},{mode:1});var OK_;var Tp=function(){return _.Q.apply(this,arguments)||this};
_.c(Tp,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Tp.prototype,"data",void 0);_.g([_.T({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Tp);
_.F(Tp,"ytd-abuse-type-selector-renderer",function(){if(OK_!==void 0)return OK_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return OK_=u},{mode:1});var cwE;var wk=function(){return _.Q.apply(this,arguments)||this};
_.c(wk,_.Q);wk.prototype.attached=function(){var u=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){u.additionalContextInput.focusTextInput()})};
wk.prototype.handleAdditionalContextChanged=function(){var u=this;_.It(this,"ytd-report-channel-additional-context-update",function(){u.ytdReduxBehavior.dispatch(_.SZ({type:"ADDITIONAL_CONTEXT_UPDATED",payload:u.additionalContext}))},300)};
wk.prototype.updateAdditionalContextFromBinding=function(u){this.additionalContext=u.detail.value};
wk.prototype.handleAdditionalContextChanged=wk.prototype.handleAdditionalContextChanged;_.g([_.e(_.Ll),_.N("design:type",Object)],wk.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",String)],wk.prototype,"additionalContext",void 0);_.g([_.U({selector:function(u){return u.reportChannelAbuse.additionalContext}}),
_.N("design:type",String)],wk.prototype,"additionalContextRedux",void 0);_.g([_.U(),_.N("design:type",Object)],wk.prototype,"data",void 0);_.g([_.BF("yt-text-input-form-field-renderer"),_.N("design:type",Object)],wk.prototype,"additionalContextInput",void 0);_.g([_.JU("additionalContext"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wk.prototype,"handleAdditionalContextChanged",null);
_.g([_.T({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],wk);
_.F(wk,"ytd-report-channel-modal-additional-context-renderer",function(){if(cwE!==void 0)return cwE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return cwE=u},{mode:1});var aX2;var Fh=function(){var u=_.Q.apply(this,arguments)||this;u.nextButtonDisabled=null;u.submitEndpoint=null;u.navigationEndpoint=null;u.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return u};
_.c(Fh,_.Q);_.I=Fh.prototype;_.I.computeNextButtonData=function(u,K,l){var D={};K&&(D.navigationEndpoint=K);l&&(D.serviceEndpoint=l);u&&u.buttonRenderer&&_.k$.extend(D,u.buttonRenderer);return D};
_.I.handleReportChannelModalDisableNextButtonAction=function(u){this.setNextButtonIsDisabled(u)};
_.I.handleReportFormEndpointUpdateAction=function(u){this.setNextButtonIsDisabled(!!u.disableSubmitButton);this.resetEndpointData();u.submitEndpoint?this.submitEndpoint=u.submitEndpoint:u.submitNavigationEndpoint&&(this.navigationEndpoint=u.submitNavigationEndpoint)};
_.I.handleSignalActionSubmitForm=function(){var u,K=Object.keys(((u=this.reportChannelAbuseForm)==null?void 0:u.selectedVideoIds)||{}),l;u=((l=this.reportChannelAbuseForm)==null?void 0:l.additionalContext)||"";var D;l=((D=this.reportChannelAbuseForm)==null?void 0:D.impersonatedChannelUrl)||"";var d;if((d=this.data)==null?0:d.submitEndpoint){K={impersonated_channel_url:l,text:u,video_ids:K};var C;_.GB().resolve(_.t9).resolveCommand((C=this.data)==null?void 0:C.submitEndpoint,{form:Object.assign({},
K,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.I.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.I.onYtServiceRequestError=function(u){this.setNextButtonIsDisabled(!1);_.rs(this.hostElement,u.detail.error.message)};
_.I.setNextButtonIsDisabled=function(u){this.set("data.nextButton.buttonRenderer.isDisabled",u)};
_.I.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Fh.prototype.onYtServiceRequestError=Fh.prototype.onYtServiceRequestError;Fh.prototype.onYtServiceRequestCompleted=Fh.prototype.onYtServiceRequestCompleted;_.g([_.U(),_.N("design:type",Object)],Fh.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Fh.prototype,"nextButtonDisabled",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Fh.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Fh.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Fh.prototype,"submitEndpoint",void 0);_.g([_.U(),_.N("design:type",Object)],Fh.prototype,"navigationEndpoint",void 0);_.g([_.U({selector:function(u){return u.reportChannelAbuse}}),
_.N("design:type",Object)],Fh.prototype,"reportChannelAbuseForm",void 0);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Fh.prototype,"onYtServiceRequestCompleted",null);_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Fh.prototype,"onYtServiceRequestError",null);
_.g([_.T({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Fh);
_.F(Fh,"ytd-report-channel-modal-footer-renderer",function(){if(aX2!==void 0)return aX2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return aX2=u},{mode:1});var zn_;var VO=function(){var u=_.Q.apply(this,arguments)||this;u.boundOnTapDismissButton=function(){u.closePopup()};
return u};
_.c(VO,_.Q);VO.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
VO.prototype.handleDataChanged=function(){_.Wu(this.hostElement)};
VO.prototype.closePopup=function(){_.Sy(this.hostElement,"yt-close-popup-action")};
VO.prototype.handleDataChanged=VO.prototype.handleDataChanged;_.g([_.U(),_.N("design:type",Object)],VO.prototype,"boundOnTapDismissButton",void 0);_.g([_.U(),_.N("design:type",Object)],VO.prototype,"data",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],VO.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],VO.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VO.prototype,"handleDataChanged",null);_.g([_.T({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],VO);
_.F(VO,"ytd-report-channel-modal-header-renderer",function(){if(zn_!==void 0)return zn_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return zn_=u},{mode:1});var enE;var gk=function(){var u=_.Q.apply(this,arguments)||this;u.autoValidate=!1;u.invalid=!1;u.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return u};
_.c(gk,_.Q);_.I=gk.prototype;_.I.attached=function(){var u=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){u.channelUrlInput.focusTextInput()})};
_.I.disableNextButton=function(u){_.Sy(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[u])};
_.I.handleImpersonatedChannelUrlChanged=function(){var u=this;this.disableNextButton(!0);this.invalid=!1;_.It(this,"ytd-report-channel-impersonated-channel-update",function(){var K=u.impersonatedChannelUrl.trim();u.ytdReduxBehavior.dispatch(_.SZ({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:K}));var l;((l=u.data)==null?0:l.submitEndpoint)&&K&&_.GB().resolve(_.t9).resolveCommand(u.data.submitEndpoint,{form:{impersonated_channel_url:K,element:u.hostElement}})},500)};
_.I.handleModifyReportFormCommand=function(u){this.invalid=this.get("modifyReportFormCommand.action",u)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.I.updateInvalidFromBinding=function(u){this.invalid=u.detail.value};
_.I.updateImpersonatedChannelUrlFromBinding=function(u){this.impersonatedChannelUrl=u.detail.value};
gk.prototype.handleImpersonatedChannelUrlChanged=gk.prototype.handleImpersonatedChannelUrlChanged;_.g([_.e(_.Ll),_.N("design:type",Object)],gk.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],gk.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],gk.prototype,"autoValidate",void 0);_.g([_.U(),_.N("design:type",Object)],gk.prototype,"invalid",void 0);
_.g([_.U(),_.N("design:type",String)],gk.prototype,"impersonatedChannelUrl",void 0);_.g([_.U({selector:function(u){return u.reportChannelAbuse.impersonatedChannelUrl}}),
_.N("design:type",String)],gk.prototype,"impersonatedChannelUrlRedux",void 0);_.g([_.U(),_.N("design:type",Object)],gk.prototype,"data",void 0);_.g([_.BF("#text-input"),_.N("design:type",Object)],gk.prototype,"channelUrlInput",void 0);_.g([_.JU("impersonatedChannelUrl"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gk.prototype,"handleImpersonatedChannelUrlChanged",null);
_.g([_.T({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],gk);
_.F(gk,"ytd-report-channel-modal-impersonation-renderer",function(){if(enE!==void 0)return enE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return enE=u},{mode:1});var RnE;var Ugp;var NU=function(){return _.Q.apply(this,arguments)||this};
_.c(NU,_.Q);NU.prototype.onCheckboxToggled=function(u){var K,l,D=(l=_.b((K=this.data)==null?void 0:K.video,_.dz))==null?void 0:l.videoId;D&&this.ytdReduxBehavior.dispatch(u.target.checked?_.SZ({type:"VIDEO_SELECTED",payload:D}):_.SZ({type:"VIDEO_UNSELECTED",payload:D}))};
NU.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.MN.Object.defineProperties(NU.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var u,K=(u=this.data)==null?void 0:u.video;if(!K)return{};var l;u=(l=_.b(K,_.dz))==null?void 0:l.navigationEndpoint;if(!u)return K;_.b(u==null?void 0:u.commandMetadata,_.nN)&&(_.b(u.commandMetadata,_.nN).ignoreNavigation=!0);return K}}});
_.g([_.U({reflectToAttribute:!0,selector:function(u,K){return K in u.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.N("design:type",Boolean)],NU.prototype,"checked",void 0);_.g([_.U(),_.N("design:type",Object)],NU.prototype,"data",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],NU.prototype,"video",null);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],NU.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.Ll),_.N("design:type",Object)],NU.prototype,"ytdReduxBehavior",void 0);_.g([_.T({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],NU);
_.F(NU,"ytd-selectable-video-renderer",function(){if(Ugp!==void 0)return Ugp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Ugp=u},{mode:1});var kG=function(){var u=_.Q.apply(this,arguments)||this;u.monitorScroll=!0;return u};
_.c(kG,_.Q);kG.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],kG.prototype,"data",void 0);_.g([_.T({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],kG);
_.F(kG,"ytd-selectable-video-list-renderer",function(){if(RnE!==void 0)return RnE;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return RnE=u},{mode:1});var fXp;_.E4("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Zc=function(){return _.Q.apply(this,arguments)||this};
_.c(Zc,_.Q);Zc.prototype.onChange=function(u){if(u=_.HF(u).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.S("kevlar_command_handler_migration_killswitch"))_.ay(this.hostElement,u,this.hostElement);else{u=_.y(u);for(var K=u.next();!K.done;K=u.next())this.ytComponentBehavior.resolveCommand(K.value)}};
Zc.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Zc.prototype.updateDataToggledFromBinding=function(u){this.set("data.toggled",u.detail.value)};
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Zc.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Zc.prototype,"data",void 0);_.g([_.U({computed:"isEnabled(data)"}),_.N("design:type",Boolean)],Zc.prototype,"enabled",void 0);_.g([_.T({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Zc);
_.F(Zc,"ytd-toggle-item-renderer",function(){if(fXp!==void 0)return fXp;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return fXp=u},{mode:1});var Q4H;var Psi;var Jwp;var YG=function(){var u=_.Q.apply(this,arguments)||this;u.setVisible=!1;u.boundOnSubmitButtonClick=function(){u.onSubmitButtonClick()};
u.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return u};
_.c(YG,_.Q);YG.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}}}}}};
YG.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
YG.prototype.onSubmitButtonClick=function(){var u;((u=this.data)==null?0:u.submitEndpoint)&&!_.S("enable_ytc_refunds_submit_form_signal_action")&&_.c0(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
YG.prototype.handleSignalActionSubmitForm=function(){var u;((u=this.data)==null?0:u.submitEndpoint)&&_.c0(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.MN.Object.defineProperties(YG.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.hiddenByDefault)&&!this.setVisible}}});
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],YG.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],YG.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],YG.prototype,"setVisible",void 0);_.g([_.U(),_.N("design:type",Object)],YG.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Object)],YG.prototype,"surveyFeedbackData",void 0);_.g([_.U(),_.N("design:type",Object)],YG.prototype,"boundOnSubmitButtonClick",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data","setVisible"),_.N("design:type",Object),_.N("design:paramtypes",[])],YG.prototype,"visibilityHidden",null);_.g([_.E9({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],YG);
_.F(YG,"yt-flow-footer-renderer",function(){if(Jwp===void 0){var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;Psi===void 0&&(Psi=document.createElement("template"));var D=Psi;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Jwp=u}u=Jwp;return u},{mode:2});var Ax=function(){return _.Q.apply(this,arguments)||this};
_.c(Ax,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Ax.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ax.prototype,"data",void 0);_.g([_.U({selector:function(u){return u.ypc.surveyFeedbackData}}),
_.N("design:type",Object)],Ax.prototype,"surveyFeedbackData",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Ax);
_.F(Ax,"ytd-flow-footer-renderer",function(){if(Q4H!==void 0)return Q4H;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Q4H=u},{mode:_.zW("kevlar_poly_si_batch_j025")?1:2});var j4E;var BLE;var Xh=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return u};
_.c(Xh,_.Q);_.I=Xh.prototype;_.I.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.L4("multiPageMenuSectionItems")}}};
_.I.handleHideEnclosingAction_=function(u){if(this.data&&this.data.items)for(var K=0;K<this.data.items.length;K++){var l=this.data.items[K].notificationRenderer;if(l&&l.notificationId==u.hideEnclosingAction.notificationId){this.splice("data.items",K,1);_.Sy(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.I.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.ab(this.hostElement,"hidden",!0)};
_.I.updateMenu_=function(u){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&u&&!u.doNotRefreshInbox){u=this.data.continuations;for(var K=0;K<u.length;K++)if(u[K].invalidationContinuationData){var l=void 0;var D=(l=u[K].invalidationContinuationData)==null?void 0:l.continuation;break}u=_.k$.clone(this.data.continuationUpdateEndpoint||null);u.continuation=D;u.click_tracking_params=this.data.trackingParams;_.c0(this.hostElement,[u])}};
_.I.onServiceRequestCompleted_=function(u,K){if(this.data&&(u=K.actions)){K=0;for(var l=u.length;K<l;K++){var D=_.b(u[K],_.jBR);if(!D)break;if((D.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||D.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&D.continuationItems&&this.data.items){var d=this.data.items.length-1;this.data.items[d].continuationItemRenderer&&(D=["data.items",d,1].concat(D.continuationItems),this.splice.apply(this,D))}}}};
Xh.prototype.onServiceRequestCompleted_=Xh.prototype.onServiceRequestCompleted_;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Xh.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Xh.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Xh.prototype,"data",void 0);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],Xh.prototype,"onServiceRequestCompleted_",null);_.g([_.E9({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],Xh);
_.at()(Xh,"yt-multi-page-menu-section-renderer",function(){if(BLE===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;j4E===void 0&&(j4E=document.createElement("template"));var D=j4E;l.call(K,D.content.cloneNode(!0),u.content.firstChild);BLE=u}u=BLE;return u},{allowedProps:["data"],
mode:2});var p6i;var iKk;var Lu=function(){return _.Q.apply(this,arguments)||this};
_.c(Lu,_.Q);Lu.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.MN.Object.defineProperties(Lu.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.progress)==null?0:this.data.progress*100}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Lu.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Lu.prototype,"data",void 0);_.g([_.R("data.progress"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Lu.prototype,"showProgressBar",null);
_.g([_.R("data.progress"),_.N("design:type",Number),_.N("design:paramtypes",[])],Lu.prototype,"progress",null);_.g([_.E9({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Lu);
_.F(Lu,"yt-flow-header-renderer",function(){if(iKk===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;p6i===void 0&&(p6i=document.createElement("template"));var D=p6i;l.call(K,D.content.cloneNode(!0),u.content.firstChild);iKk=u}u=iKk;return u},{mode:2});var TLo;var w6_;var uM=function(){return _.Q.apply(this,arguments)||this};
_.c(uM,_.Q);uM.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],uM.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],uM.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],uM.prototype,"data",void 0);_.g([_.E9({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],uM);
_.F(uM,"yt-post-confirmation-flow-step-renderer",function(){if(w6_===void 0){var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;TLo===void 0&&(TLo=document.createElement("template"));var D=TLo;l.call(K,D.content.cloneNode(!0),u.content.firstChild);w6_=u}u=w6_;return u},{mode:2});var FjV;var VOH;var KF=function(){return _.Q.apply(this,arguments)||this};
_.c(KF,_.Q);
KF.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"}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],KF.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],KF.prototype,"data",void 0);_.g([_.E9({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],KF);
_.F(KF,"yt-refund-confirmation-flow-step-renderer",function(){if(VOH===void 0){var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;FjV===void 0&&(FjV=document.createElement("template"));var D=FjV;l.call(K,D.content.cloneNode(!0),u.content.firstChild);VOH=u}u=VOH;return u},{mode:2});_.v4(t8I);_.v4(xnV);var S96=_.NX({avatarViewModel:_.Y_});_.v4(bgp);var t6=_.NX({commentInteractionViewModel:xnV,sharedSubscriptionViewModel:bgp,buttonViewModel:_.P2,horizontalShelfViewModel:_.El});_.v4(Ogp);_.v4(cU6);_.v4(avE);_.v4(z4o);_.v4(e4o);var R4p=_.NX({profileIdentityInfoViewModel:_.Rpk,profileInfoViewModel:e4o});_.v4(UnI);_.U4(UnI,"yt-profile-card-view-model",{propNames:["data"]});var lM=function(){var u=_.Q.apply(this,arguments)||this;u.enableFocusFix=_.S("music_web_enable_focus_on_setting_menu_fix")&&_.L0("IS_MOBILE_WEB",!1);u.covered=!1;u.hideMenu=!1;u.isCommentNotificationOnProfileCard=!1;u.scrolledByTouch=!1;u.disableBackdropFilter=_.S("web_disable_backdrop_filter");u.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return u};
_.c(lM,_.Q);_.I=lM.prototype;
_.I.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"}}}};
_.I.ready=function(){var u=this;this.JSC$19978_containerElement.addEventListener("scroll",function(){u.ytRendererBehavior.markDirty()})};
_.I.attributeChanged=function(u,K){u==="menu-style"&&_.Sy(this.hostElement,"yt-multi-page-menu-closed-action",[K])};
_.I.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Ql(this,this.focusOnStampFinished))};
_.I.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Ql(this,this.focusOnStampFinished))};
_.I.reset=function(){this.closeJobId&&(_.YL.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.I.focusOnStampFinished=function(u){u.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Ql(this,this.focusOnStampFinished)),this.doFocus())};
_.I.doFocus=function(){var u=_.Tss(this.sectionsElement);u.length&&u[0].focus()};
_.I.computeMenuStyle=function(u){return u?u.toLowerCase().replace(/_/g,"-"):""};
_.I.computeIsCommentNotificationOnProfileCard=function(u){return _.S("enable_profile_cards_on_comments")&&u.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.I.computeHideMenu=function(u,K){return u||!(!K||!K.showLoadingSpinner)};
_.I.onPopupClosed=function(){this.isPopUpOpen=!1;_.Sy(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.I.onPopupOpened=function(u,K){this.isPopUpOpen=!0;K.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.xs(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.SZ({type:"CHANNEL_REPORT_RESET"})))};
_.I.onYtNavigate=function(u,K){this.shouldCloseOnNavigateEvent(K.endpoint)&&_.Sy(this.hostElement,"yt-close-all-popups-action")};
_.I.handleEndpoint=function(u){u=_.b(u,_.EU);!this.isCommentNotificationOnProfileCard&&u&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$19978_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.I.handleActions=function(u){for(var K=0,l=u.length;K<l;K++){var D=_.b(u[K],KLE);D&&this.handleGetMultiPageMenuAction(D);(D=_.b(u[K],_.jBR))&&this.handleAppendContinuationItemsAction(D)}};
_.I.onServiceRequestSentOrCompleted=function(u,K){u.detail&&u.detail.endpoint&&this.handleEndpoint(u.detail.endpoint);K.actions&&this.handleActions(K.actions)};
_.I.handleGetMultiPageMenuAction=function(u){var K=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.bi(this.submenuElement).appendChild(K);(u=u.menu.multiPageMenuRenderer)&&this.logSubmenu(u);K.data=u;K.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.I.handleAppendContinuationItemsAction=function(u){if(this.data&&u.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&u.continuationItems&&this.data.sections){var K=this.data.sections.length-1;this.data.sections[K].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),K--);if(this.data.sections[K].multiPageMenuNotificationSectionRenderer&&u.continuationItems){u=_.y(u==null?void 0:u.continuationItems);for(var l=u.next();!l.done;l=u.next())if(l=l.value,_.b(l,e2G)){var D=
void 0,d=void 0,C=void 0,W=void 0,M=void 0;((D=this)==null?0:(d=D.data)==null?0:(C=d.sections)==null?0:(W=C[K])==null?0:(M=W.multiPageMenuNotificationSectionRenderer)==null?0:M.items)&&this.push("data.sections."+K+".multiPageMenuNotificationSectionRenderer.items",l)}else if(_.b(l,_.bXs)||_.b(l,_.rr))this.push("data.sections",l),K++}}};
_.I.logSubmenu=function(u){if(!_.S("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var K=this.ytRendererBehavior.getScreenLayer(),l=_.AC(K),D=_.Yr(K);if((u=u.trackingParams)&&l&&D){var d=_.gf(u);_.S("combine_ve_grafts")?_.iT().graftServerVe(u,D,K):_.DJ(l,D,d)}}};
_.I.emptySubmenuContainer=function(){for(var u=_.bi(this.submenuElement);u.firstChild;)u.removeChild(u.firstChild)};
_.I.onMenuBackTap=function(u){_.xs(this.hostElement,"yt-submenu-closed");u.stopPropagation()};
_.I.onSubmenuClosed=function(u){_.HF(u)!==this.hostElement&&(this.covered=!1,_.xs(this.hostElement,"yt-refit"),u.stopPropagation())};
_.I.onRetrieveLocation=function(u,K){K.hasComments&&(K.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),u.stopPropagation())};
_.I.shouldCloseOnNavigateEvent=function(u){if(!u)return!0;if(_.b(u,_.bkR)||_.b(u,_.Ok2)||_.b(u,_.SFA)||_.b(u,_.d_))return!1;var K;return((K=_.b(u==null?void 0:u.commandMetadata,_.nN))==null?0:K.ignoreNavigation)?!1:!0};
_.I.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.I.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.I.refitAfterRender=function(){var u=this;_.W_(this,function(){_.xs(u.hostElement,"yt-refit")})};
lM.prototype.refitAfterRender=lM.prototype.refitAfterRender;lM.prototype.onRetrieveLocation=lM.prototype.onRetrieveLocation;lM.prototype.onSubmenuClosed=lM.prototype.onSubmenuClosed;lM.prototype.onMenuBackTap=lM.prototype.onMenuBackTap;lM.prototype.onServiceRequestSentOrCompleted=lM.prototype.onServiceRequestSentOrCompleted;lM.prototype.onYtNavigate=lM.prototype.onYtNavigate;lM.prototype.onPopupOpened=lM.prototype.onPopupOpened;lM.prototype.onPopupClosed=lM.prototype.onPopupClosed;
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],lM.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],lM.prototype,"ytEventForwardingBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],lM.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],lM.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],lM.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Object)],lM.prototype,"enableFocusFix",void 0);_.g([_.U(),_.N("design:type",Object)],lM.prototype,"covered",void 0);_.g([_.U({computed:"computeHideMenu(covered, data)"}),_.N("design:type",Object)],lM.prototype,"hideMenu",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.N("design:type",String)],lM.prototype,"menuStyle",void 0);
_.g([_.U({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.N("design:type",Object)],lM.prototype,"isCommentNotificationOnProfileCard",void 0);_.g([_.U(),_.N("design:type",Boolean)],lM.prototype,"isPopUpOpen",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],lM.prototype,"scrolledByTouch",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],lM.prototype,"disableBackdropFilter",void 0);
_.g([_.BF("#sections"),_.N("design:type",HTMLElement)],lM.prototype,"sectionsElement",void 0);_.g([_.BF("#spinner"),_.N("design:type",HTMLElement)],lM.prototype,"spinnerElement",void 0);_.g([_.BF("#header"),_.N("design:type",HTMLElement)],lM.prototype,"headerElement",void 0);_.g([_.BF("#container"),_.N("design:type",HTMLElement)],lM.prototype,"JSC$19978_containerElement",void 0);_.g([_.BF("#submenu"),_.N("design:type",HTMLElement)],lM.prototype,"submenuElement",void 0);
_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lM.prototype,"onPopupClosed",null);_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],lM.prototype,"onPopupOpened",null);_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],lM.prototype,"onYtNavigate",null);
_.g([_.PF("yt-service-request-completed"),_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],lM.prototype,"onServiceRequestSentOrCompleted",null);_.g([_.PF("yt-menu-back-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],lM.prototype,"onMenuBackTap",null);
_.g([_.PF("yt-submenu-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],lM.prototype,"onSubmenuClosed",null);_.g([_.PF("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],lM.prototype,"onRetrieveLocation",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lM.prototype,"refitAfterRender",null);
_.g([_.T({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],lM);
_.F(lM,"ytd-multi-page-menu-renderer",function(){if(xgE!==void 0)return xgE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return xgE=u},{mode:1});var gW_;var DW=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return u};
_.c(DW,_.Q);_.I=DW.prototype;_.I.created=function(){this.showTooltips=!0};
_.I.computeAccessibility_=function(u){return this.get("accessibility.accessibilityData",u)||null};
_.I.onTap=function(){var u=_.bI(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(u&&u.length===1&&u[0])_.Sy(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var K;if((K=this.data)==null?0:K.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var l;((l=this.data)==null?0:l.menuRequest)&&_.c0(this.hostElement,[this.data.menuRequest])}}};
_.I.handleTopbarMenuClosedAction=function(u){var K,l;(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(u)===((K=this.data)==null?void 0:(l=K.icon)==null?void 0:l.iconType)&&this.toggleIconState(!1)};
_.I.toggleIconState=function(u){_.S("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=u)};
_.I.handleUpdateTopbarAvatarAction=function(u){var K;u=(K=_.b(u,AFE))==null?void 0:K.avatarUrl;var l,D;K=(l=this.data)==null?void 0:(D=l.avatar)==null?void 0:D.thumbnails;u&&K&&(l={thumbnails:[Object.assign({},K[0],{url:u})]},this.set("data.avatar",l))};
_.MN.Object.defineProperties(DW.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.bi(this.hostElement).querySelector("#button")}}});
DW.prototype.onTap=DW.prototype.onTap;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],DW.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.nl),_.N("design:type",Object)],DW.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.e(_.Cxw.YtButtonBehavior),_.N("design:type",Object)],DW.prototype,"ytButtonBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],DW.prototype,"data",void 0);
_.g([_.BF("yt-icon-button#button"),_.N("design:type",Object)],DW.prototype,"iconButton",void 0);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"onTap",null);_.g([_.T({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],DW);
_.F(DW,"ytd-topbar-menu-button-renderer",function(){if(gW_!==void 0)return gW_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return gW_=u},{mode:1});var NL_;var d9=function(){return _.Q.apply(this,arguments)||this};
_.c(d9,_.Q);d9.prototype.getSelected=function(){return this.reasons.selected};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],d9.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],d9.prototype,"data",void 0);_.g([_.BF("#reasons"),_.N("design:type",Object)],d9.prototype,"reasons",void 0);_.g([_.T({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],d9);
_.F(d9,"ytd-ad-feedback-content",function(){if(NL_!==void 0)return NL_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return NL_=u},{mode:1});var kxI;var CF=function(){return _.Q.apply(this,arguments)||this};
_.c(CF,_.Q);_.I=CF.prototype;_.I.onPopupOpened=function(){_.Sy(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.I.computeConfirmButton=function(u){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:u.confirmLabel}};
_.I.computeCancelButton=function(u){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:u.cancelLabel}};
_.I.onConfirmTap=function(){var u=this.content.getSelected();u!==void 0&&(u=this.data.reasons[u].endpoint)&&(_.GB().resolve(_.t9).resolveCommand(u,{form:{element:this.hostElement}}),_.Sy(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.I.sendFeedbackSubmitToastAction=function(){var u;(u=this.data)!=null&&u.completionMessage&&_.Sy(this.hostElement,"yt-open-popup-action",[_.nc(this.data.completionMessage),this])};
_.I.onCancelTap=function(){_.Sy(this.hostElement,"yt-close-popup-action")};
CF.prototype.onPopupOpened=CF.prototype.onPopupOpened;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],CF.prototype,"data",void 0);_.g([_.BF("#content"),_.N("design:type",Object)],CF.prototype,"content",void 0);_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],CF.prototype,"onPopupOpened",null);
_.g([_.T({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],CF);
_.F(CF,"ytd-ad-feedback-renderer",function(){if(kxI!==void 0)return kxI;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return kxI=u},{mode:1});var ZKE;var Iv=function(){return _.Q.apply(this,arguments)||this};
_.c(Iv,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Iv.prototype,"data",void 0);_.g([_.T({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Iv);
_.F(Iv,"ytd-ad-info-dialog-content",function(){if(ZKE!==void 0)return ZKE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return ZKE=u},{mode:1});var Yak;var yy=function(){return _.Q.apply(this,arguments)||this};
_.c(yy,_.Q);yy.prototype.computeConfirmButton=function(u){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:u.confirmLabel}};
yy.prototype.onConfirmTap=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
yy.prototype.computeShouldShowTitle=function(){var u;return!((u=this.data)==null||!u.title)};
yy.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.GB().resolve(_.t9).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
yy.prototype.onPopupClosed=yy.prototype.onPopupClosed;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],yy.prototype,"data",void 0);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],yy.prototype,"onPopupClosed",null);_.g([_.T({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],yy);
_.F(yy,"ytd-ad-info-dialog-renderer",function(){if(Yak!==void 0)return Yak;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Yak=u},{mode:1});var Awk;var sO=function(){var u=_.Q.apply(this,arguments)||this;u.actionButtonClass="action-button";u.dismissButtonId="dismiss-button";u.dialogDismiss=!0;return u};
_.c(sO,_.Q);_.I=sO.prototype;_.I.computeInPlayer=function(u){return(u==null?void 0:u.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.I.computedLogo=function(){var u,K;return this.isDarkTheme()?(u=this.data)==null?void 0:u.logoDark:(K=this.data)==null?void 0:K.logo};
_.I.computedHeaderImage=function(){var u,K;return this.isDarkTheme()?(u=this.data)==null?void 0:u.headerImageDark:(K=this.data)==null?void 0:K.headerImage};
_.I.computeLogoIconId=function(){var u,K,l,D=(u=this.computedLogo())==null?void 0:(K=u.sources)==null?void 0:(l=K[0])==null?void 0:l.height;return D&&D%31===0?"logo-icon-with-padding":"logo-icon"};
_.I.computeLogoIconHeight=function(){var u,K,l,D=(u=this.computedLogo())==null?void 0:(K=u.sources)==null?void 0:(l=K[0])==null?void 0:l.height;return D&&D%31===0?"31":"24"};
_.I.onPopupClosed=function(){_.GB().resolve(_.aW).dispose()};
_.I.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.I.onShow=function(){this.inPlayer&&_.QR(6)};
_.I.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var u=0;u<this.data.impressionEndpoints.length;u++){var K=_.b(this.data.impressionEndpoints[u],_.K4);K&&this.ytComponentBehavior.resolveCommand(K)}};
_.I.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.Sy(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.MN.Object.defineProperties(sO.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var u,K;return!((u=this.data)==null||!u.headerImageDark)&&!((K=this.data)==null||!K.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.secondaryButton)}}});
sO.prototype.onPopupClosed=sO.prototype.onPopupClosed;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],sO.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.s$.YtVisibilityBehavior),_.N("design:type",Object)],sO.prototype,"ytVisibilityBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],sO.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Object)],sO.prototype,"actionButtonClass",void 0);_.g([_.U(),_.N("design:type",Object)],sO.prototype,"dismissButtonId",void 0);_.g([_.U(),_.N("design:type",Object)],sO.prototype,"dialogDismiss",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],sO.prototype,"hasHeaderImage",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],sO.prototype,"hasPremiumButton",null);
_.g([_.U({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.N("design:type",Boolean)],sO.prototype,"inPlayer",void 0);_.g([_.BF("#dismiss-button"),_.N("design:type",HTMLElement)],sO.prototype,"dismissButton",void 0);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],sO.prototype,"onPopupClosed",null);_.g([_.T({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],sO);
_.F(sO,"ytd-enforcement-message-view-model",function(){if(Awk!==void 0)return Awk;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Awk=u},{mode:1});var X6i;var mgI;var ov=function(){var u=_.Q.apply(this,arguments)||this;u.TEST_ONLY={immediateValidation:function(){u.immediateValidation()},
onValidationResponse:function(K){u.onValidationResponse(K)},
onGenerateHandleFromNameResponse:function(K){u.onGenerateHandleFromNameResponse(K)}};
return u};
_.c(ov,_.Q);_.I=ov.prototype;_.I.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.I.validate=function(){this.immediateValidation()};
_.I.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.I.setHandleInputValue=function(u){this.handleDir=this.getHandleDir(u);this.handleInput.value=u;this.validationState={status:"PENDING"};this.immediateValidation()};
_.I.getHandleDir=function(u){var K=u===""&&!1;return(K=_.Raa.test.call(_.Raa,u))?"rtl":"ltr"};
_.I.onDataChanged=function(){var u,K;this.handleDir=this.getHandleDir((K=(u=this.data)==null?void 0:u.handle)!=null?K:"");var l;this.validationState=((l=this.data)==null?0:l.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var D;((D=this.data)==null?0:D.validateOnInit)&&this.immediateValidation()};
_.I.stopPropagation=function(u){u.stopPropagation()};
_.I.onInput=function(){var u;this.handleDir=this.getHandleDir((u=this.handleInput.value)!=null?u:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.I.onFocusout=function(u){this.handleInput.contains(u.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.I.delayedValidation=function(){var u,K;this.debouncedValidation((K=(u=this.data)==null?void 0:u.validationDelayMs)!=null?K:1E3)};
_.I.immediateValidation=function(){this.debouncedValidation(0)};
_.I.debouncedValidation=function(u){var K=this;_.It(this,"debouncedValidation",function(){var l,D=K.staticValidation((l=K.handleInput.value)!=null?l:"");if(D!==void 0)K.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:D};else{var d;if((d=K.data)!=null&&d.validateChannelHandleCommand){K.validationState={status:"LOADING"};var C;K.ytComponentBehavior.resolveCommand(K.data.validateChannelHandleCommand,{form:{handle:(C=K.handleInput.value)!=null?C:""},commandController:{onSuccess:function(W,
M){K.onValidationResponse(M)},
onServerError:function(W,M){K.onValidationServerError(M)}}})}else K.handleUnexpectedValidationError(new _.wv("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",K.data))}},u)};
_.I.staticValidation=function(u){var K;if(((K=this.data)==null?void 0:K.channelHandleStaticValidationParams)!==void 0){K=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(u)&&K.validValueRegexpErrorMessage!==void 0)return K.validValueRegexpErrorMessage;if(K.minLength!==void 0&&u.length<K.minLength&&K.minLengthErrorMessage!==void 0)return K.minLengthErrorMessage;if(K.maxLength!==void 0&&u.length>K.maxLength&&K.maxLengthErrorMessage!==void 0)return K.maxLengthErrorMessage}};
_.I.onValidationResponse=function(u){var K=_.b(u.result,X3_);K===void 0?this.handleUnexpectedValidationError(new _.wv("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",u)):this.handleValidationResultRenderer(K)};
_.I.onValidationServerError=function(u){this.handleUnexpectedValidationError(new _.wv("ValidateChannelHandle request failed.",u))};
_.I.handleValidationResultRenderer=function(u){if(u.handle===void 0)this.handleUnexpectedValidationError(new _.wv("ChannelHandleValidationResultRenderer does not contain handle.",u));else if(u.handle===this.handleInput.value)switch(u.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:u.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:u.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.wv("Unrecognized ChannelHandleValidationResult",u));break;default:_.o2(u.result)}};
_.I.handleUnexpectedValidationError=function(u){var K;this.validationState={status:"UNKNOWN",handle:(K=this.handleInput.value)!=null?K:""};_.hV(u)};
_.I.stopEventPropagation=function(u){u.stopPropagation()};
_.I.updateHandleOnChannelNameInputChange=function(u){if(!this.wasEdited){var K,l;this.debouncedGenerateHandleFromName(u,(l=(K=this.data)==null?void 0:K.validationDelayMs)!=null?l:1E3)}};
_.I.debouncedGenerateHandleFromName=function(u,K){var l=this;_.It(this,"debouncedGenerateHandleFromName",function(){var D;(D=l.data)!=null&&D.validateChannelHandleCommand?l.ytComponentBehavior.resolveCommand(l.data.validateChannelHandleCommand,{form:{name:u},commandController:{onSuccess:function(d,C){l.onGenerateHandleFromNameResponse(C)},
onServerError:function(d,C){_.hV(new _.wv("Error calling GenerateHandleFromName",C))}}}):_.hV(new _.wv("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",l.data))},K)};
_.I.onGenerateHandleFromNameResponse=function(u){this.wasEdited||((u=_.b(u.result,mGE))?this.setHandleInputValue(u.handle):_.hV(new _.wv("Invalid results when generate handle from name")))};
_.MN.Object.defineProperties(ov.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var u;if(u=this.validationState)u=this.validationState,u=u.status==="OK"||u.status==="UNKNOWN";if(u)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var u;if(((u=this.validationState)==null?void 0:u.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 u,K=(u=this.channelHandleEntity)==null?void 0:u.handleEdit;this.handleDir=this.getHandleDir(K!=null?K:"");return K}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var u,K;if(((u=this.data)==null?void 0:(K=u.channelHandleStaticValidationParams)==null?void 0:K.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
ov.prototype.stopEventPropagation=ov.prototype.stopEventPropagation;ov.prototype.onDataChanged=ov.prototype.onDataChanged;ov.prototype.applyHandleEdit=ov.prototype.applyHandleEdit;ov.prototype.onValueChanged=ov.prototype.onValueChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],ov.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],ov.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ov.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Boolean)],ov.prototype,"wasEdited",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],ov.prototype,"handleDir",void 0);_.g([_.BF("#handle-input"),_.N("design:type",Object)],ov.prototype,"handleInput",void 0);_.g([_.U(),_.R("validationState"),_.N("design:type",Object),_.N("design:paramtypes",[])],ov.prototype,"value",null);
_.g([_.JU("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ov.prototype,"onValueChanged",null);_.g([_.R("validationState"),_.N("design:type",Object),_.N("design:paramtypes",[])],ov.prototype,"errorIndicator",null);_.g([_.U({reflectToAttribute:!0}),_.R("errorIndicator"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ov.prototype,"borderErrorIndicator",null);
_.g([_.U({selectorArgs:["data.channelHandleEntityKey"],selector:function(u,K){return _.eZ(u.entities,"channelHandle",K)}}),
_.N("design:type",Object)],ov.prototype,"channelHandleEntity",void 0);_.g([_.R("channelHandleEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],ov.prototype,"handleEdit",null);_.g([_.JU("handleEdit"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ov.prototype,"applyHandleEdit",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ov.prototype,"onDataChanged",null);
_.g([_.R("data.channelHandleStaticValidationParams.validValueRegexp"),_.N("design:type",Object),_.N("design:paramtypes",[])],ov.prototype,"validValueRegexp",null);_.g([_.PF("yt-service-request-sent"),_.PF("yt-service-request-completed"),_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],ov.prototype,"stopEventPropagation",null);_.g([_.T({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],ov);
_.F(ov,"ytd-channel-handle-input-renderer",function(){if(mgI!==void 0)return mgI;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return mgI=u},{mode:_.zW("kevlar_poly_si_batch_j025")?1:2});var W7=function(){var u=_.Q.apply(this,arguments)||this;u.data=null;u.errorMessage=null;u.isLoading=!0;u.hideContainer=!1;u.enableNewChannelCreationOnIdForAll=_.S("enable_new_channel_creation_for_id4all");u.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"};u.testOnly={setErrorMessage:function(K){u.resetErrorState();
u.setErrorState(K)}};
return u};
_.c(W7,_.Q);_.I=W7.prototype;_.I.created=function(){this.logScreenVe()};
_.I.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")};
_.I.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var u;((u=this.zeroStepErrorMessageEntity)==null?0:u.value)&&this.set("errorMessage",_.o7(this.zeroStepErrorMessageEntity.value))};
_.I.onCreateTap=function(){var u=this;if(this.data&&this.data.channelCreationEndpoint){var K,l;if(!((K=this.data.createChannelButton)==null?0:(l=K.buttonRenderer)==null?0:l.isDisabled)){var D;if((D=this.nameInput)!=null&&D.value){this.setLoadingState();var d,C;K=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(d=this.handleInput)==null?void 0:d.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((C=this.handleInput)==null?void 0:C.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:K,commandController:{onSuccess:function(W,M){u.onChannelCreationEndpointSuccess(M);u.obakeImageSource&&_.YE("channelCreatedWithObakeImage",{imageSourceType:u.obakeImageSource})},
onServerError:function(){u.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.I.endpointRequiresServiceRequestAction=function(u){return!!_.b(u,_.An)||!!_.b(u,AFE)};
_.I.isNavigateAction=function(u){var K;return!!_.b(u,_.MY)||!!_.b((K=_.b(u,LKk))==null?void 0:K.command,_.MY)};
_.I.isPlaylistAction=function(u){return!!_.b(u,_.LP)||!!_.b(u,_.Ct)};
_.I.onChannelCreationEndpointSuccess=function(u){if(u.createChannelError){var K;this.setErrorState((K=u.createChannelError)==null?void 0:K.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.S("enable_secondary_channel_creation_form")&&u.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(u.navigationEndpoint);if(u.actions){K=_.y(u.actions);for(var l=K.next();!l.done;l=K.next())if(l=l.value,this.endpointRequiresServiceRequestAction(l)&&this.ytComponentBehavior.resolveCommand(l),
this.isNavigateAction(l)){var D=void 0;l=_.b((D=_.b(l,LKk))==null?void 0:D.command,_.MY);D=void 0;this.isPlaylistAction((D=l)==null?void 0:D.endpoint)&&(_.Sy(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),D=void 0,this.ytComponentBehavior.resolveCommand((D=l)==null?void 0:D.endpoint))}}u.actions&&u.actions.some(function(d){var C;return _.b(d,_.MY)||_.b((C=_.b(d,LKk))==null?void 0:C.command,_.MY)})||_.Sy(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.I.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.I.onCancelTap=function(){var u,K,l;if(!((u=this.data)==null?0:(K=u.cancelButton)==null?0:(l=K.buttonRenderer)==null?0:l.isDisabled)){var D,d,C;u=(D=this.data)==null?void 0:(d=D.cancelButton)==null?void 0:(C=d.buttonRenderer)==null?void 0:C.command;if(!u||!_.b(u,_.$cL)){var W;this.nameInput&&((W=this.data)==null?0:W.name)&&(this.nameInput.value=this.data.name);var M;this.handleInput&&((M=this.data)==null?0:M.channelHandleInput)&&(this.handleInput.data=_.b(this.data.channelHandleInput,h1G));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.I.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.I.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.I.onClearProfilePhotoTap=function(){var u,K,l;((u=this.data)==null?0:(K=u.clearProfilePhotoButton)==null?0:(l=K.buttonRenderer)==null?0:l.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.I.onEditAvatarTap=function(){var u,K,l;((u=this.data)==null?0:(K=u.editAvatarButton)==null?0:(l=K.buttonRenderer)==null?0:l.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.I.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)};
_.I.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var u;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((u=this.data)==null?0:u.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.I.setErrorState=function(u){this.resetErrorState();if(u)this.set("errorMessage",u);else{var K;if((K=this.zeroStepErrorMessageEntity)==null?0:K.value)this.set("errorMessage",_.o7(this.zeroStepErrorMessageEntity.value));else{var l;((l=this.data)==null?0:l.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.I.fetchImageBlobWithAlr=function(u,K){K=K===void 0?5:K;var l=this,D,d,C,W,M;return _.H(function(q){switch(q.nextAddress){case 1:return q.yield(fetch(u,{method:"GET",mode:"cors"}),2);case 2:D=q.yieldResult;if(D.ok){q.jumpTo(3);break}if(K===0)throw Error();d=l.addJitter(Math.pow(2,5-K));return q.yield(new Promise(function(v){setTimeout(v,d*1E3)}),4);
case 4:return q.return(l.fetchImageBlobWithAlr(u,K-1));case 3:if(!D.headers.get("content-type").split(";").some(function(v){return v.trim()==="text/plain"})){q.jumpTo(5);
break}C=l;W=C.fetchImageBlobWithAlr;return q.yield(D.text(),6);case 6:return q.return(W.call(C,q.yieldResult,K-1));case 5:return q.yield(D.blob(),7);case 7:return M=q.yieldResult,q.return(M)}})};
_.I.addJitter=function(u){var K=u*.3*Math.random();Math.random()>.5&&(K*=-1);return u+K};
_.I.openProfilePicturePicker=function(){var u=this,K,l,D,d,C;return _.H(function(W){if(W.nextAddress==1){K=u.data.scottyUploadUrl;if(!K)return W.return();l=document.documentElement.hasAttribute("dark");D=document.body.style.colorScheme;l&&(document.body.style.colorScheme="dark");d=lCk(DiG(KmB(A1B(l?"dark":"light")),function(M){var q,v,G,t,x;return _.H(function(O){if(O.nextAddress==1)return q=_.yK(tSp(new Y7(M.photoUrl,!1)).build(),"alr","yes"),u.obakeImageSource=u.pictureChangeSourceToObakeImageSourceType(M.photoSource),
_.Qg(O,2),u.setLoadingState(),O.yield(u.fetchImageBlobWithAlr(q),4);if(O.nextAddress!=2)return v=O.yieldResult,G=new FileReader,G.addEventListener("load",function(){var a,f,B,p,V,m;return _.H(function(Z){if(Z.nextAddress==1){if(v.size>15728640)return u.setErrorState((a=u.data)==null?void 0:a.imageSizeErrorMessage),_.hV(Error("ll")),Z.return();if(!G.result)return u.setErrorState((f=u.data)==null?void 0:f.genericImageLoadErrorMessage),_.hV(Error("ml")),Z.return();B=G.result;_.Qg(Z,2);return Z.yield(fvE(v,
K),4)}if(Z.nextAddress!=2)return p=Z.yieldResult,u.handleImageUpdatedAction(B,p),u.resetErrorState(),_.I$(Z,0);V=_.iY(Z);u.setErrorState((m=u.data)==null?void 0:m.uploadErrorMessage);if(V instanceof Error)_.Xm(V);else{var A=new _.wv(JSON.stringify(V));_.Xm(A)}_.TG(Z)})}),G.readAsDataURL(v),_.I$(O,0);
t=_.iY(O);u.setErrorState((x=u.data)==null?void 0:x.genericImageLoadErrorMessage);t instanceof Error?_.Xm(t):_.m0(new _.wv(JSON.stringify(t)));_.TG(O)})}),function(){u.hideContainer=!1;
document.body.style.colorScheme=D});
_.Qg(W,2);return W.yield(d.openPicker(),4)}if(W.nextAddress!=2)return _.I$(W,0);_.iY(W);u.setErrorState((C=u.data)==null?void 0:C.selectImageErrorMessage);_.TG(W)})};
_.I.pictureChangeSourceToObakeImageSourceType=function(u){switch(u){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.I.logScreenVe=function(){_.ev(_.iT(),124448)};
_.I.graftServerVe=function(){var u=_.Yr(),K,l,D=(K=this.data)==null?void 0:(l=K.loggingDirectives)==null?void 0:l.trackingParams;D&&u&&(this.channelCreationFormVe=_.iT().graftServerVe(D,u),u={visualElement:this.channelCreationFormVe},_.Bb().reportShown(u))};
_.I.isNameChanged=function(u){var K;return((K=this.data)==null?void 0:K.name)!==u};
_.I.isHandleChanged=function(u){var K,l=_.b((K=this.data)==null?void 0:K.channelHandleInput,h1G);return l&&u?l.handle!==u:!1};
_.I.handleImageUpdatedAction=function(u,K){this.hideContainer=!1;this.previewDataUrl=u;this.encryptedBlobId=K};
_.I.handleImageSelectionErrorAction=function(u){this.hideContainer=!1;this.setErrorState(u)};
_.I.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.I.showContainer=function(){this.hideContainer=!1};
_.I.maybeWipeZeroStepErrorMessage=function(){var u,K=(u=this.data)==null?void 0:u.zeroStepErrorMessageEntityKey,l;K&&((l=this.zeroStepErrorMessageEntity)==null?0:l.value)&&this.ytdReduxBehavior.dispatch(_.TT("stringEntity",K,{key:K,value:""}))};
_.MN.Object.defineProperties(W7.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 u;return((u=this.photoThumbnail)==null?0:u.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 u;return!((u=this.data)==null||!u.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.descriptionInfo}}});
W7.prototype.dataChanged=W7.prototype.dataChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],W7.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],W7.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],W7.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],W7.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],W7.prototype,"errorMessage",void 0);
_.g([_.U(),_.N("design:type",Object)],W7.prototype,"isLoading",void 0);_.g([_.U(),_.N("design:type",String)],W7.prototype,"previewDataUrl",void 0);_.g([_.U(),_.N("design:type",Number)],W7.prototype,"obakeImageSource",void 0);_.g([_.U(),_.N("design:type",Object)],W7.prototype,"hideContainer",void 0);_.g([_.BF("#title-input"),_.N("design:type",Object)],W7.prototype,"nameInput",void 0);_.g([_.BF("#handle-input"),_.N("design:type",Object)],W7.prototype,"handleInput",void 0);
_.g([_.U(),_.N("design:type",Boolean)],W7.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.g([_.U({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.ENL}),_.N("design:type",Object)],W7.prototype,"zeroStepErrorMessageEntity",void 0);_.g([_.R("data","data.isDefaultProfilePhoto","previewDataUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],W7.prototype,"photoThumbnail",null);
_.g([_.R("data","data.isDefaultProfilePhoto","photoThumbnail"),_.N("design:type",Object),_.N("design:paramtypes",[])],W7.prototype,"userSetPhotoThumbnailUrl",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],W7.prototype,"hideProfilePhotoButtonLayer",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],W7.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.g([_.wn("data","zeroStepErrorMessageEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],W7.prototype,"dataChanged",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.descriptionInfo","zeroStepErrorMessageEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],W7.prototype,"description",null);_.g([_.T({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],W7);
_.F(W7,"ytd-channel-creation-dialog-renderer",function(){if(X6i!==void 0)return X6i;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return X6i=u},{mode:1});var hnk;var H7=function(){var u=_.Q.apply(this,arguments)||this;u.isLoading=!1;u.isDisabled=!1;return u};
_.c(H7,_.Q);H7.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
H7.prototype.updateDisabled=function(){var u;this.isDisabled=this.isLoading||((u=this.handleInput)==null?void 0:u.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
H7.prototype.onSaveClick=function(){var u=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var K;((K=this.data)==null?void 0:K.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 l;if((l=u.data)==null?0:l.nextEndpoint){var D;u.ytComponentBehavior.resolveCommand((D=u.data)==null?void 0:D.nextEndpoint)}else u.isLoading=
!1,u.closeDialog()},
onServerError:function(){u.isLoading=!1;u.handleInput.validate();var l;u.errorMessage=(l=u.data)==null?void 0:l.errorMessage}}}))}};
H7.prototype.closeDialog=function(){_.Sy(this.hostElement,"yt-close-popup-action",[this.is])};
H7.prototype.updateDisabled=H7.prototype.updateDisabled;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],H7.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],H7.prototype,"data",void 0);_.g([_.BF("#handle-input"),_.N("design:type",Object)],H7.prototype,"handleInput",void 0);_.g([_.JU("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],H7.prototype,"updateDisabled",null);
_.g([_.T({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],H7);
_.F(H7,"ytd-channel-handle-edit-dialog-renderer",function(){if(hnk!==void 0)return hnk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return hnk=u},{mode:1});var EWE;var MO=function(){return _.Q.apply(this,arguments)||this};
_.c(MO,_.Q);MO.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],MO.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],MO.prototype,"data",void 0);_.g([_.T({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],MO);
_.F(MO,"ytd-channel-switcher-footer-renderer",function(){if(EWE!==void 0)return EWE;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return EWE=u},{mode:1});var Ljk;var u86;var qO=function(){return _.Q.apply(this,arguments)||this};
_.c(qO,_.Q);qO.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
qO.prototype.onIronChange=qO.prototype.onIronChange;_.g([_.U(),_.N("design:type",Object)],qO.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!1}),_.N("design:type",Function)],qO.prototype,"onDontAskAgainChanged",void 0);_.g([_.BF("#checkbox"),_.N("design:type",Object)],qO.prototype,"checkbox",void 0);_.g([_.PF("iron-change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qO.prototype,"onIronChange",null);
_.g([_.T({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],qO);
_.F(qO,"ytd-identity-prompt-footer-renderer",function(){if(u86!==void 0)return u86;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return u86=u},{mode:1});var $a=function(){var u=_.Q.apply(this,arguments)||this;u.dontAskAgain=!1;u.showPopup=!1;u.boundDontAskAgainChanged=function(K){u.dontAskAgainChanged(K)};
u.boundOnAccountItemTap=function(K){u.onAccountItemTap(K)};
return u};
_.c($a,_.Q);_.I=$a.prototype;
_.I.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]]"}}}}}};
_.I.ready=function(){var u=this;_.bi(this.hostElement).querySelector("#container").addEventListener("scroll",function(){u.ytRendererBehavior.markDirty()})};
_.I.dontAskAgainChanged=function(u){this.dontAskAgain=u};
_.I.onAccountItemTap=function(u){if(u){var K={};this.dontAskAgain&&(K={dont_ask_again:this.dontAskAgain});_.Cg(u,K)}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.I.redirectOnlyAccount=function(u){u.sections&&u.sections.length>0&&(u=_.b(u.sections[0],_.Oas),(u==null?0:u.contents)&&(u==null?void 0:u.contents.length)<=1?(u=_.oK(window.location.href),(u==null?0:u.next)&&_.CIo(u.next)?_.Cg(u.next):_.Cg("/")):this.showPopup=!0)};
$a.prototype.dataChanged=$a.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],$a.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],$a.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!1}),_.N("design:type",Object)],$a.prototype,"dontAskAgain",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],$a.prototype,"showPopup",void 0);_.g([_.U({reflectToAttribute:!1}),_.N("design:type",Object)],$a.prototype,"boundDontAskAgainChanged",void 0);_.g([_.U({reflectToAttribute:!1}),_.N("design:type",Object)],$a.prototype,"boundOnAccountItemTap",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$a.prototype,"dataChanged",null);
_.g([_.T({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],$a);
_.F($a,"ytd-channel-switcher-renderer",function(){if(Ljk!==void 0)return Ljk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Ljk=u},{mode:1});var KyH;var nF=function(){return _.Q.apply(this,arguments)||this};
_.c(nF,_.Q);_.MN.Object.defineProperties(nF.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.g([_.U(),_.N("design:type",Object)],nF.prototype,"data",void 0);_.g([_.R("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],nF.prototype,"steps",null);_.g([_.T({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],nF);
_.F(nF,"ytd-channel-transfer-stepper-renderer",function(){if(KyH!==void 0)return KyH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return KyH=u},{mode:1});var lb_;var r9=function(){var u=_.Q.apply(this,arguments)||this;u.data=null;u.isError=!1;u.isLoading=!1;return u};
_.c(r9,_.Q);_.I=r9.prototype;_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.I.computeProfileName=function(u){return u?u.givenNameValue+" "+u.familyNameValue:""};
_.I.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)};
_.I.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)};
r9.prototype.onYtServiceRequestError=r9.prototype.onYtServiceRequestError;r9.prototype.onYtServiceRequestSent=r9.prototype.onYtServiceRequestSent;r9.prototype.dataChanged=r9.prototype.dataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],r9.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],r9.prototype,"data",void 0);
_.g([_.U({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.N("design:type",String)],r9.prototype,"profileName",void 0);_.g([_.U(),_.N("design:type",Object)],r9.prototype,"isError",void 0);_.g([_.U(),_.N("design:type",Object)],r9.prototype,"isLoading",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],r9.prototype,"dataChanged",null);
_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],r9.prototype,"onYtServiceRequestSent",null);_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],r9.prototype,"onYtServiceRequestError",null);_.g([_.T({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],r9);
_.F(r9,"ytd-channel-warm-welcome-cont-renderer",function(){if(lb_!==void 0)return lb_;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return lb_=u},{mode:1});var Dd_;var v7=function(){var u=_.Q.apply(this,arguments)||this;u.data=null;return u};
_.c(v7,_.Q);v7.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
v7.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],v7.prototype,"data",void 0);_.g([_.T({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],v7);
_.F(v7,"ytd-channel-warm-welcome-renderer",function(){if(Dd_!==void 0)return Dd_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Dd_=u},{mode:1});var dd_;var GU=function(){return _.Q.apply(this,arguments)||this};
_.c(GU,_.Q);_.MN.Object.defineProperties(GU.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.authorThumbnail)||{}}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],GU.prototype,"data",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],GU.prototype,"thumbnailDetails",null);_.g([_.T({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],GU);
_.F(GU,"ytd-comment-preview-renderer",function(){if(dd_!==void 0)return dd_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return dd_=u},{mode:1});var CqI;var to=function(){return _.Q.apply(this,arguments)||this};
_.c(to,_.Q);to.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.MN.Object.defineProperties(to.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.submitButton}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],to.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],to.prototype,"data",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],to.prototype,"submitButton",null);_.g([_.T({is:"ytd-notice-renderer",disableElementRegistration:!0})],to);
_.F(to,"ytd-notice-renderer",function(){if(CqI!==void 0)return CqI;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return CqI=u},{mode:1});var Ib_;var xa=function(){return _.Q.apply(this,arguments)||this};
_.c(xa,_.Q);xa.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],xa.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],xa.prototype,"data",void 0);_.g([_.T({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],xa);
_.F(xa,"ytd-preview-comment-dialog-content",function(){if(Ib_!==void 0)return Ib_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Ib_=u},{mode:1});var yJ_;var ST=function(){return _.Q.apply(this,arguments)||this};
_.c(ST,_.Q);ST.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
ST.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ST.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ST.prototype,"data",void 0);_.g([_.T({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],ST);
_.F(ST,"ytd-preview-comment-dialog-renderer",function(){if(yJ_!==void 0)return yJ_;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return yJ_=u},{mode:1});var srp;var oBH=_.S("web_button_rework")&&_.L0("BUTTON_REWORK")||_.S("web_button_rework_with_live"),bM=function(){var u=_.Q.apply(this,arguments)||this;u.closeLabel=_.QQ("CLOSE");u.selectedAmountIndex=1;u.privacyCheckboxValue=!1;u.useAmsterdamStyle=oBH;u.amountPlaceholderIndex=-1;return u};
_.c(bM,_.Q);_.I=bM.prototype;_.I.onAmountClick=function(u){this.selectedAmountIndex=_.bi(this.hostElement).querySelector("#amounts").indexForElement(u.currentTarget)};
_.I.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.Sy(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.I.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.Sy(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.Sy(this.hostElement,"yt-close-popup-action",[this.is]);var u;(u=_.xY())==null||u.getPlayerPromise().then(function(K){K.pauseVideo()})}};
_.I.donationCallback=function(u){u.success?(this.hostElement.hasAttribute("live-chat")&&u.response&&u.response.data&&u.response.data.actions&&_.Sy(this.hostElement,"yt-live-chat-open-popup",[u.response.data.actions[0]]),_.Sy(this.hostElement,"yt-close-popup-action",[this.is]),_.Sy(this.hostElement,"yt-live-chat-close-buy-flow")):u.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(u.errorMessageRenderer)};
_.I.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.bi(this.hostElement).querySelector("#custom-amount-input").focus()};
_.I.updateConfirmationDialogTextWithAmount=function(u){var K=this.getConfirmDialogRuns();K&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(K),"text"],this.getFormattedAmount(u))};
_.I.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.I.getAmountPlaceholderIndex=function(u){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=u.findIndex(function(K){return K.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.I.getFormattedAmount=function(u){var K;return(new _.DU(4,((K=this.data)==null?void 0:K.currencyCode)||"")).format(u)};
_.I.isAmountValid=function(u){if(u==="")return!1;u=Number(u)*1E6;var K=this.get("minAmountMicros",this.data),l=this.get("maxAmountMicros",this.data);return K&&u<K||l&&u>l?!1:!0};
_.I.setInputError=function(){this.shouldShowValidationError?_.bi(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.bi(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.I.setInitialCheckboxValue=function(){var u;this.privacyCheckboxValue=!((u=this.data)==null||!u.privacyCheckboxInitialState)};
_.I.updateCustomAmountInputFromBinding=function(u){this.customAmountInput=u.detail.value};
_.I.updatePrivacyCheckboxValueFromBinding=function(u){this.privacyCheckboxValue=u.detail.value};
_.MN.Object.defineProperties(bM.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var u=this,K,l;return((K=this.data)==null?void 0:(l=K.suggestedAmounts)==null?void 0:l.map(function(D,d){return{buttonRenderer:{style:u.selectedAmountIndex===d?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:D.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.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 u=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(u&&this.amountMicros!==null)return Object.assign({},u,{ypcGetCartEndpoint:Object.assign({},u.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 u=this.get("confirmLargeAmount",this.data);if(u&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),u}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var u=this.get("donateButton.buttonRenderer",this.data);if(u)return Object.assign({},u,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
bM.prototype.setInitialCheckboxValue=bM.prototype.setInitialCheckboxValue;bM.prototype.setInputError=bM.prototype.setInputError;bM.prototype.setFocusOnCustomAmountInput=bM.prototype.setFocusOnCustomAmountInput;_.g([_.e(S8p),_.N("design:type",Object)],bM.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],bM.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],bM.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],bM.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],bM.prototype,"closeLabel",void 0);_.g([_.U(),_.N("design:type",Object)],bM.prototype,"selectedAmountIndex",void 0);_.g([_.U(),_.N("design:type",String)],bM.prototype,"customAmountInput",void 0);_.g([_.U(),_.N("design:type",Object)],bM.prototype,"privacyCheckboxValue",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],bM.prototype,"useAmsterdamStyle",void 0);_.g([_.JU("customAmount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bM.prototype,"setFocusOnCustomAmountInput",null);_.g([_.R("data","selectedAmountIndex"),_.N("design:type",Array),_.N("design:paramtypes",[])],bM.prototype,"suggestedAmountButtons",null);
_.g([_.R("data","selectedAmountIndex"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bM.prototype,"isCustomAmountSelected",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bM.prototype,"showPrivacyCheckbox",null);_.g([_.R("data","selectedAmountIndex","customAmount"),_.N("design:type",Object),_.N("design:paramtypes",[])],bM.prototype,"amountMicros",null);
_.g([_.R("isCustomAmountSelected","customAmountInput"),_.N("design:type",Object),_.N("design:paramtypes",[])],bM.prototype,"customAmount",null);_.g([_.R("customAmount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bM.prototype,"shouldShowValidationError",null);_.g([_.R("customAmount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bM.prototype,"isDonateButtonEnabled",null);
_.g([_.R("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.N("design:type",Object),_.N("design:paramtypes",[])],bM.prototype,"donateCommand",null);_.g([_.R("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.N("design:type",Object),_.N("design:paramtypes",[])],bM.prototype,"donateCommandWithConfirmation",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],bM.prototype,"largeDonationThreshold",null);
_.g([_.R("customAmount","donateCommand","amountMicros"),_.N("design:type",Object),_.N("design:paramtypes",[])],bM.prototype,"confirmLargeAmountCommand",null);_.g([_.R("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.N("design:type",Object),_.N("design:paramtypes",[])],bM.prototype,"donateButtonRenderer",null);_.g([_.JU("shouldShowValidationError"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bM.prototype,"setInputError",null);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bM.prototype,"setInitialCheckboxValue",null);_.g([_.T({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],bM);
_.F(bM,"ytd-donation-amount-picker-renderer",function(){if(srp!==void 0)return srp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return srp=u},{mode:1});var WyV;var OO=function(){return _.Q.apply(this,arguments)||this};
_.c(OO,_.Q);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],OO.prototype,"ytComponentBehavior",void 0);_.g([_.U({}),_.N("design:type",Object)],OO.prototype,"data",void 0);_.g([_.T({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],OO);
_.F(OO,"ytd-donation-post-transaction-content",function(){if(WyV!==void 0)return WyV;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return WyV=u},{mode:1});var HG_;var c7=function(){return _.Q.apply(this,arguments)||this};
_.c(c7,_.Q);c7.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.g([_.U({}),_.N("design:type",Object)],c7.prototype,"data",void 0);_.g([_.T({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],c7);
_.F(c7,"ytd-donation-post-transaction-renderer",function(){if(HG_!==void 0)return HG_;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return HG_=u},{mode:1});var Mp2;var qh_;var av=function(){return _.Q.apply(this,arguments)||this};
_.c(av,_.Q);av.prototype.computeIsStreamingProvider=function(u){return!!u.isStreamingShelf};
av.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],av.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],av.prototype,"data",void 0);_.g([_.U({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],av.prototype,"isStreamingProvider",void 0);
_.g([_.T({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],av);
_.F(av,"ytd-media-provider-renderer",function(){if(qh_!==void 0)return qh_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return qh_=u},{mode:1});var $dp;var zU=function(){return _.Q.apply(this,arguments)||this};
_.c(zU,_.Q);zU.prototype.observeLightsourcePalette=function(){var u,K=(u=this.data)==null?void 0:u.vibrantsourceColorPaletteData;K&&_.mE(this.hostElement,K)};
zU.prototype.observeLightsourcePalette=zU.prototype.observeLightsourcePalette;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],zU.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],zU.prototype,"data",void 0);
_.g([_.JU("data.vibrantsourceColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zU.prototype,"observeLightsourcePalette",null);_.g([_.T({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],zU);
_.F(zU,"ytd-streaming-pop-up-dialog",function(){if($dp!==void 0)return $dp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return $dp=u},{mode:1});var eT=function(){return _.Q.apply(this,arguments)||this};
_.c(eT,_.Q);eT.prototype.onPopupOpened_=function(){var u;((u=this.data)==null?0:u.serviceEndpoint)&&_.GB().resolve(_.t9).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
eT.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
eT.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"}}}}};
eT.prototype.onPopupOpened_=eT.prototype.onPopupOpened_;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],eT.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ir),_.N("design:type",Object)],eT.prototype,"ytContinuationHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],eT.prototype,"data",void 0);
_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eT.prototype,"onPopupOpened_",null);_.g([_.T({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],eT);
_.F(eT,"ytd-brandconnect-popup-renderer",function(){if(Mp2!==void 0)return Mp2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Mp2=u},{mode:1});var nB2;var Rv=function(){return _.Q.apply(this,arguments)||this};
_.c(Rv,_.Q);_.I=Rv.prototype;_.I.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(){for(var u=0;u<this.getOptionRenderers().length;u++)this.notifyPath("data.options."+u+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+u+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.I.updateSubmitButton=function(u){this.set("data.submitButton.buttonRenderer.isDisabled",!u)};
_.I.computeAlt=function(u){return _.WI(u)};
_.I.onDismissTap=function(){_.Sy(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.GB().resolve(_.t9).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.I.getOptionRenderers=function(u){return(u=u||this.data)&&u.options?u.options.reduce(function(K,l){l.checkboxSurveyOptionRenderer&&K.push(l.checkboxSurveyOptionRenderer);return K},[]):[]};
_.I.onOptionChange=function(u){var K=this,l=!1;if(u.detail.checked)for(var D=this.getOptionRenderers().find(function(M){return M.value===u.detail.value}),d=this.getOptionRenderers(),C=0;C<d.length;C++){var W=d[C];
this.notifyPath("data.options."+C+".checkboxSurveyOptionRenderer.checked");W.checked&&((D==null?0:D.isExclusiveOption)?!W.isExclusiveOption:W.isExclusiveOption)?this.set("data.options."+C+".checkboxSurveyOptionRenderer.checked",!1):W.checked&&(l=!0)}else l=this.getOptionRenderers().some(function(M,q){K.notifyPath("data.options."+q+".checkboxSurveyOptionRenderer.checked");return M.checked});
this.updateSubmitButton(l)};
_.I.onSubmitTap=function(){var u=this.getOptionRenderers().filter(function(C){return C.checked});
if(u.length!==0){var K=u.map(function(C){return C.responseEndpoint});
u=[];for(var l=1;l<K.length;l++){var D=void 0,d=(D=_.b(K[l],_.X_))==null?void 0:D.feedbackToken;d&&u.push(d)}K=[K[0]];u.length&&K.push({extra_feedback_tokens:u});_.c0(this.hostElement,K);_.Sy(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);u=this.data&&this.data.submitActions||[];if(_.S("kevlar_command_handler_migration_killswitch"))_.ay(this.hostElement,u,this.hostElement);else for(u=_.y(u),K=u.next();!K.done;K=u.next())this.ytComponentBehavior.resolveCommand(K.value)}};
Rv.prototype.onOptionChange=Rv.prototype.onOptionChange;Rv.prototype.dataChanged=Rv.prototype.dataChanged;_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],Rv.prototype,"ytEventForwardingBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Rv.prototype,"ytComponentBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.g([_.e(wBG),_.N("design:type",Object)],Rv.prototype,"ytdHatsSurveyBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Rv.prototype,"data",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Rv.prototype,"dataChanged",null);
_.g([_.PF("ytd-checkbox-survey-option-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Rv.prototype,"onOptionChange",null);_.g([_.T({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Rv);
_.F(Rv,"ytd-checkbox-survey-renderer",function(){if(nB2!==void 0)return nB2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return nB2=u},{mode:1});var rJ6;var vBp;var UO=function(){return _.Q.apply(this,arguments)||this};
_.c(UO,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.g([_.e(TPk),_.N("design:type",Object)],UO.prototype,"ytdDismissalReasonBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],UO.prototype,"data",void 0);_.g([_.T({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],UO);
_.F(UO,"ytd-dismissal-reason-text-renderer",function(){if(vBp!==void 0)return vBp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return vBp=u},{mode:1});var GuE;var fF=function(){return _.Q.apply(this,arguments)||this};
_.c(fF,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);_.g([_.e(TPk),_.N("design:type",Object)],fF.prototype,"ytdDismissalReasonBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],fF.prototype,"data",void 0);_.g([_.T({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],fF);
_.F(fF,"ytd-dismissal-reason-video-renderer",function(){if(GuE!==void 0)return GuE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return GuE=u},{mode:1});var Qy=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(Qy,_.Q);_.I=Qy.prototype;_.I.created=function(){this.selectedFeedbackTokens=new Hq};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.I.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.I.onDismissalReasonSelected=function(u,K){_.xs(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(K);this.hasReasonsSelected=!0};
_.I.onDismissalReasonDeselected=function(u,K){_.xs(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(K);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.I.onCancelTap=function(){_.Sy(this.hostElement,"yt-close-popup-action")};
_.I.onSubmitTap=function(){var u=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(u={feedback_tokens:u},_.GB().resolve(_.t9).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},u,{element:this.hostElement})}));_.Sy(this.hostElement,"yt-close-popup-action")};
Qy.prototype.onDismissalReasonDeselected=Qy.prototype.onDismissalReasonDeselected;Qy.prototype.onDismissalReasonSelected=Qy.prototype.onDismissalReasonSelected;Qy.prototype.dataChanged=Qy.prototype.dataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Qy.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Qy.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Qy.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Boolean)],Qy.prototype,"hasReasonsSelected",void 0);_.g([_.U(),_.N("design:type",Hq)],Qy.prototype,"selectedFeedbackTokens",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Qy.prototype,"darkerDarkTheme",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qy.prototype,"dataChanged",null);
_.g([_.PF("yt-dismissal-reason-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,String]),_.N("design:returntype")],Qy.prototype,"onDismissalReasonSelected",null);_.g([_.PF("yt-dismissal-reason-deselected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,String]),_.N("design:returntype")],Qy.prototype,"onDismissalReasonDeselected",null);_.g([_.T({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Qy);
_.F(Qy,"ytd-dismissal-follow-up-renderer",function(){if(rJ6!==void 0)return rJ6;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return rJ6=u},{mode:1});var tp6;var P7=function(){return _.Q.apply(this,arguments)||this};
_.c(P7,_.Q);_.I=P7.prototype;_.I.onCheckedChange=function(){this.multiselect||_.xs(this.hostElement,"yt-feedback-single-select-changed");_.bi(this.hostElement).querySelector("#freeform").focus();_.xs(this.hostElement,"yt-refit")};
_.I.showTextBox=function(u,K){return u&&K};
_.I.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))};
_.I.updateDataCheckedFromBinding=function(u){this.set("data.checked",u.detail.value)};
_.I.updateDataResultTextFromBinding=function(u){this.set("data.resultText",u.detail.value)};
P7.prototype.dataChanged=P7.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],P7.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],P7.prototype,"multiselect",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],P7.prototype,"dataChanged",null);
_.g([_.T({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],P7);
_.F(P7,"ytd-feedback-option-renderer",function(){if(tp6!==void 0)return tp6;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return tp6=u},{mode:1});var xdI;var Jo=function(){return _.Q.apply(this,arguments)||this};
_.c(Jo,_.Q);Jo.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Jo.prototype.onSingleSelectCheckedChanged=function(u){u=_.HF(u);for(var K=0;K<this.data.options.length;K++)if(u.data!==_.b(this.data.options[K],pek)){var l="data.options."+K+".feedbackOptionRenderer.checked";this.notifyPath(l);this.set(l,!1)}};
Jo.prototype.onSingleSelectCheckedChanged=Jo.prototype.onSingleSelectCheckedChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Jo.prototype,"data",void 0);
_.g([_.PF("yt-feedback-single-select-changed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Jo.prototype,"onSingleSelectCheckedChanged",null);_.g([_.T({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Jo);
_.F(Jo,"ytd-feedback-question-renderer",function(){if(xdI!==void 0)return xdI;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return xdI=u},{mode:1});var Shk;var jT=function(){return _.Q.apply(this,arguments)||this};
_.c(jT,_.Q);jT.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
jT.prototype.getSelectedFeedbackResults=function(){for(var u={},K=0;K<this.data.questions.length;K++)for(var l=_.b(this.data.questions[K],Bw2),D=0;D<l.options.length;D++){var d=_.b(l.options[D],pek);d&&d.checked&&(u[d.optionKey]=d.resultText)}return u};
jT.prototype.onKeyUp=function(){var u=this;_.zH(_.YL,function(){_.xs(u.hostElement,"yt-refit")});
_.YL.start()};
jT.prototype.submitSurvey=function(){var u=this.getSelectedFeedbackResults();Object.keys(u).length>0&&this.data.submitFeedbackEndpoint&&(u={survey_results:u,is_feedback_token_unencrypted:!0},_.GB().resolve(_.t9).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},u,{element:this.hostElement})}))};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],jT.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],jT.prototype,"data",void 0);_.g([_.T({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],jT);
_.F(jT,"ytd-feedback-survey-renderer",function(){if(Shk!==void 0)return Shk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Shk=u},{mode:1});var bG2;var OGG;var B7=function(){return _.Q.apply(this,arguments)||this};
_.c(B7,_.Q);B7.prototype.computeAlt=function(u){return _.WI(u)};
B7.prototype.submitResponse=function(){var u,K;(u=this.data)!=null&&u.feedbackToken&&((K=this.data)==null?void 0:K.nextStageIndex)!==void 0&&(_.bI(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.bI(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
B7.prototype.onClick=function(){this.submitResponse()};
B7.prototype.onClick=B7.prototype.onClick;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],B7.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],B7.prototype,"vertical",void 0);_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],B7.prototype,"onClick",null);
_.g([_.T({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],B7);
_.F(B7,"ytd-single-select-answer-option-renderer",function(){if(OGG!==void 0)return OGG;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return OGG=u},{mode:1});var cJE;var pF=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");u.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return u};
_.c(pF,_.Q);pF.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
pF.prototype.dataChanged=function(){var u,K;this.vertical=((K=(u=this.data)==null?void 0:u.answerOrientation)!=null?K:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
pF.prototype.submitFeedback=function(u){var K;((K=this.data)==null?0:K.responseEndpoint)&&u&&_.c0(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[u]}])};
pF.prototype.dataChanged=pF.prototype.dataChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],pF.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],pF.prototype,"eventForwardingBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],pF.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],pF.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],pF.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],pF.prototype,"vertical",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],pF.prototype,"darkerDarkTheme",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pF.prototype,"dataChanged",null);_.g([_.T({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],pF);
_.F(pF,"ytd-single-select-question-renderer",function(){if(cJE!==void 0)return cJE;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return cJE=u},{mode:1});var iM=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return u};
_.c(iM,_.Q);_.I=iM.prototype;_.I.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"}}}};
_.I.dataChanged=function(){this.jumpToStage(0)};
_.I.jumpToStage=function(u){var K,l;if((K=this.data)==null?0:(l=K.stages)==null?0:l[u])this.currentStage=this.data.stages[u],this.refitAfterRender()};
_.I.computeAlt=function(u){return _.WI(u)};
_.I.computeSimpleMessage=function(u){var K;return(K=_.b(u,wek))==null?void 0:K.messageText};
_.I.computeHideDismiss=function(u){var K;return(K=_.b(u,M_o))==null?void 0:K.hideParentDismissButton};
_.I.onDismissTap=function(){_.Sy(this.hostElement,"yt-close-popup-action");_.b(this.currentStage,wek)||this.data.dismissalEndpoint&&_.GB().resolve(_.t9).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.I.refitAfterRender=function(){var u=this;_.W_(this,function(){_.xs(u.hostElement,"yt-refit")})};
iM.prototype.dataChanged=iM.prototype.dataChanged;_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],iM.prototype,"eventForwardingBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],iM.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],iM.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],iM.prototype,"ytActionHandlerBehavior",void 0);
_.g([_.e(wBG),_.N("design:type",Object)],iM.prototype,"ytdHatsSurveyBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],iM.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],iM.prototype,"currentStage",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iM.prototype,"dataChanged",null);_.g([_.T({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],iM);
_.F(iM,"ytd-multi-stage-survey-renderer",function(){if(bG2!==void 0)return bG2;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return bG2=u},{mode:1});var ab_;var TU=function(){return _.Q.apply(this,arguments)||this};
_.c(TU,_.Q);TU.prototype.computeAlt=function(u){return _.WI(u)};
TU.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.GB().resolve(_.t9).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.Sy(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.ipH(!1)))};
TU.prototype.onTap=function(){this.vertical&&this.submitResponse()};
TU.prototype.onTap=TU.prototype.onTap;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],TU.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],TU.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],TU.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],TU.prototype,"vertical",void 0);
_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TU.prototype,"onTap",null);_.g([_.T({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],TU);
_.F(TU,"ytd-single-option-survey-option-renderer",function(){if(ab_!==void 0)return ab_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return ab_=u},{mode:1});var zfE;var w9=function(){return _.Q.apply(this,arguments)||this};
_.c(w9,_.Q);_.I=w9.prototype;_.I.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(){var u,K;this.vertical=(((u=this.data)==null?void 0:(K=u.surveyOrientation)==null?void 0:K.type)||"HORIZONTAL")==="VERTICAL"};
_.I.computeAlt=function(u){return _.WI(u)};
_.I.onDismissTap=function(){_.Sy(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.GB().resolve(_.t9).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.ipH(!1))};
w9.prototype.dataChanged=w9.prototype.dataChanged;_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],w9.prototype,"eventForwardingBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],w9.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],w9.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(wBG),_.N("design:type",Object)],w9.prototype,"ytdHatsSurveyBehavior",void 0);
_.g([_.e(_.Ll),_.N("design:type",Object)],w9.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],w9.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],w9.prototype,"vertical",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w9.prototype,"dataChanged",null);_.g([_.T({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],w9);
_.F(w9,"ytd-single-option-survey-renderer",function(){if(zfE!==void 0)return zfE;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return zfE=u},{mode:1});var efE;var FN=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(FN,_.Q);FN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
FN.prototype.onDismissTap=function(){_.Sy(this.hostElement,"yt-close-popup-action")};
FN.prototype.onNavigate=function(){_.Sy(this.hostElement,"yt-close-popup-action")};
FN.prototype.onNavigate=FN.prototype.onNavigate;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],FN.prototype,"ytEventForwardingBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],FN.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],FN.prototype,"darkerDarkTheme",void 0);
_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FN.prototype,"onNavigate",null);_.g([_.T({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],FN);
_.F(FN,"ytd-survey-follow-up-renderer",function(){if(efE!==void 0)return efE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return efE=u},{mode:1});var Rf2;var Ud2;var fbo;var Vy=function(){var u=_.Q.apply(this,arguments)||this;u.polymer2="Element"in Polymer;return u};
_.c(Vy,_.Q);_.I=Vy.prototype;_.I.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.I.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.I.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.I.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("minutes-changed",this.minutes))};
_.I.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("seconds-changed",this.seconds))};
_.I.updateMinutesFromBinding=function(u){this.minutes=u.detail.value};
_.I.updateSecondsFromBinding=function(u){this.seconds=u.detail.value};
Vy.prototype.secondsChangedForBinding=Vy.prototype.secondsChangedForBinding;Vy.prototype.minutesChangedForBinding=Vy.prototype.minutesChangedForBinding;Vy.prototype.secondsChanged=Vy.prototype.secondsChanged;_.g([_.U(),_.N("design:type",String)],Vy.prototype,"minutes",void 0);_.g([_.U(),_.N("design:type",String)],Vy.prototype,"seconds",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Vy.prototype,"polymer2",void 0);
_.g([_.BF("#seconds"),_.N("design:type",Object)],Vy.prototype,"secondsEl",void 0);_.g([_.JU("seconds"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vy.prototype,"secondsChanged",null);_.g([_.JU("minutes"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vy.prototype,"minutesChangedForBinding",null);
_.g([_.JU("seconds"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vy.prototype,"secondsChangedForBinding",null);_.g([_.E9({is:"yt-timestamp-input",disableElementRegistration:!0})],Vy);
_.F(Vy,"yt-timestamp-input",function(){if(fbo===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Ud2===void 0&&(Ud2=document.createElement("template"));var D=Ud2;l.call(K,D.content.cloneNode(!0),u.content.firstChild);fbo=u}u=fbo;return u},{mode:2});var g9=function(){return _.Q.apply(this,arguments)||this};
_.c(g9,_.Q);_.I=g9.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20150_scroller.dialogElement=this.hostElement.parentNode};
_.I.dataChanged=function(){var u=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.SU().getPlayerPromise().then(function(K){K=K.getCurrentTime();u.minutes=Math.floor(K/60).toString();u.seconds=(Math.floor(K)%60).toString()})};
_.I.onTapSubmit=function(u){u.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(u={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(u.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(u.minutes=this.minutes,u.seconds=this.seconds),_.GB().resolve(_.t9).resolveCommand(this.serviceEndpoint,{form:Object.assign({},u,{element:this.hostElement})}))};
_.I.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.I.onYtServiceRequestCompleted=function(u,K){K=K.actions;if(Array.isArray(K))for(var l=0,D=K.length;l<D;l++)_.b(K[l],_.kg)&&(u.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(K[l]))};
_.I.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.I.toggleSubmitButton=function(u){this.set("submitButton.isDisabled",!u)};
_.I.handleInput=function(){var u=this.issueType,K=this.affiliation,l=this.minutes,D=this.seconds;l=!this.showTimestamp||!!l&&!!D;this.toggleSubmitButton(!!this.descriptionText&&!!u&&!!K&&l)};
_.I.computeServiceEndpoint=function(u){return this.get("submitButton.buttonRenderer.serviceEndpoint",u)};
_.I.computeSubmitButton=function(u){(u=this.get("submitButton.buttonRenderer",u))&&(u=Object.assign({},u,{serviceEndpoint:void 0}));return u};
_.I.computeShowTimestamp=function(u){return!!u};
_.I.onValueChangedForIssueType=function(u){this.issueType=u.detail.value};
_.I.onValueChangedForAffiliation=function(u){this.affiliation=u.detail.value};
_.I.updateDescriptionTextFromBinding=function(u){this.descriptionText=u.detail.value};
_.I.updateFullNameTextFromBinding=function(u){this.fullNameText=u.detail.value};
_.I.updateMinutesFromBinding=function(u){this.minutes=u.detail.value};
_.I.updateSecondsFromBinding=function(u){this.seconds=u.detail.value};
g9.prototype.handleInput=g9.prototype.handleInput;g9.prototype.onYtServiceRequestError=g9.prototype.onYtServiceRequestError;g9.prototype.onYtServiceRequestCompleted=g9.prototype.onYtServiceRequestCompleted;g9.prototype.onYtServiceRequestSent=g9.prototype.onYtServiceRequestSent;g9.prototype.dataChanged=g9.prototype.dataChanged;_.g([_.e(_.B2.YtOpenPopupBehavior),_.N("design:type",Object)],g9.prototype,"ytOpenPopupBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],g9.prototype,"ytRendererBehavior",void 0);_.g([_.BF("#scroller"),_.N("design:type",Object)],g9.prototype,"JSC$20150_scroller",void 0);_.g([_.BF("#description"),_.N("design:type",HTMLInputElement)],g9.prototype,"description",void 0);_.g([_.BF("#full-name"),_.N("design:type",Object)],g9.prototype,"fullName",void 0);_.g([_.U(),_.N("design:type",Object)],g9.prototype,"data",void 0);
_.g([_.U({computed:"computeShowTimestamp(data.timestampLabel)"}),_.N("design:type",Boolean)],g9.prototype,"showTimestamp",void 0);_.g([_.U({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.N("design:type",Object)],g9.prototype,"serviceEndpoint",void 0);_.g([_.U({computed:"computeSubmitButton(data)"}),_.N("design:type",Object)],g9.prototype,"submitButton",void 0);_.g([_.U(),_.N("design:type",String)],g9.prototype,"descriptionText",void 0);
_.g([_.U(),_.N("design:type",Number)],g9.prototype,"issueType",void 0);_.g([_.U(),_.N("design:type",Number)],g9.prototype,"affiliation",void 0);_.g([_.U(),_.N("design:type",String)],g9.prototype,"fullNameText",void 0);_.g([_.U(),_.N("design:type",String)],g9.prototype,"minutes",void 0);_.g([_.U(),_.N("design:type",String)],g9.prototype,"seconds",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g9.prototype,"dataChanged",null);
_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],g9.prototype,"onYtServiceRequestSent",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],g9.prototype,"onYtServiceRequestCompleted",null);
_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],g9.prototype,"onYtServiceRequestError",null);_.g([_.JU("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g9.prototype,"handleInput",null);_.g([_.T({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],g9);
_.F(g9,"ytd-legal-report-details-form-renderer",function(){if(Rf2!==void 0)return Rf2;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Rf2=u},{mode:1});var QrI;var NO=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return u};
_.c(NO,_.Q);NO.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
NO.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var u=this.formRenderer.getForm();u&&this.data.submitEndpoint&&(_.GB().resolve(_.t9).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},u,{element:this.hostElement})}),_.Sy(this.hostElement,"yt-close-popup-action"))}};
NO.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.Sy(this.hostElement,"yt-close-popup-action"))};
NO.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
NO.prototype.onPopupClosed=NO.prototype.onPopupClosed;_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],NO.prototype,"ytEventForwardingBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],NO.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],NO.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);
_.g([_.BF("yt-form-renderer"),_.N("design:type",Object)],NO.prototype,"formRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],NO.prototype,"data",void 0);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NO.prototype,"onPopupClosed",null);_.g([_.T({is:"ytd-form-popup-content",disableElementRegistration:!0})],NO);
_.F(NO,"ytd-form-popup-content",function(){if(QrI!==void 0)return QrI;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return QrI=u},{mode:1});var PqI;var ka=function(){return _.Q.apply(this,arguments)||this};
_.c(ka,_.Q);ka.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ka.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ka.prototype.onPopupOpened=function(){_.xs(this.hostElement,"yt-invalidate-popup-tabbables")};
ka.prototype.onYtServiceRequestCompleted=function(u,K){K.data&&K.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.xs(this.hostElement,"yt-invalidate-popup-tabbables"))};
ka.prototype.onYtServiceRequestCompleted=ka.prototype.onYtServiceRequestCompleted;ka.prototype.onPopupOpened=ka.prototype.onPopupOpened;_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],ka.prototype,"ytEventForwardingBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],ka.prototype,"data",void 0);_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ka.prototype,"onPopupOpened",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],ka.prototype,"onYtServiceRequestCompleted",null);_.g([_.T({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],ka);
_.F(ka,"ytd-form-popup-renderer",function(){if(PqI!==void 0)return PqI;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return PqI=u},{mode:1});var JJB;var ZW=function(){var u=_.Q.apply(this,arguments)||this;u.isLoading=!1;return u};
_.c(ZW,_.Q);_.I=ZW.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");iiG(this.hostElement)};
_.I.onYtServiceRequestSent=function(){this.isLoading=!0};
_.I.onYtServiceRequestCompleted=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.I.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.ay(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.I.closePopupHandler=function(){this.fireOnCloseActions()};
_.I.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var u=this.get("data.headerImage.thumbnails");u&&(u=_.bt(u,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+u+")")}};
_.I.onYtNavigate=function(u){(u=_.HF(u))&&u.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
ZW.prototype.onYtNavigate=ZW.prototype.onYtNavigate;ZW.prototype.onHeaderImageChanged=ZW.prototype.onHeaderImageChanged;ZW.prototype.closePopupHandler=ZW.prototype.closePopupHandler;ZW.prototype.onYtServiceRequestCompleted=ZW.prototype.onYtServiceRequestCompleted;ZW.prototype.onYtServiceRequestSent=ZW.prototype.onYtServiceRequestSent;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],ZW.prototype,"ytEventForwardingBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ZW.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ZW.prototype,"isLoading",void 0);_.g([_.BF("#header"),_.N("design:type",HTMLDivElement)],ZW.prototype,"header",void 0);_.g([_.BF("#confirm-button"),_.N("design:type",_.gh)],ZW.prototype,"confirmButton",void 0);
_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ZW.prototype,"onYtServiceRequestSent",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ZW.prototype,"onYtServiceRequestCompleted",null);
_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],ZW.prototype,"closePopupHandler",null);_.g([_.JU("data.headerImage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZW.prototype,"onHeaderImageChanged",null);_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ZW.prototype,"onYtNavigate",null);
_.g([_.T({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],ZW);
_.F(ZW,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(JJB!==void 0)return JJB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return JJB=u},{mode:1});var jrp;var Ya=function(){var u=_.Q.apply(this,arguments)||this;u.isLoading=!1;return u};
_.c(Ya,_.Q);_.I=Ya.prototype;_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);iiG(this.hostElement)};
_.I.onYtServiceRequestCompleted=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.I.onYtServiceRequestError=function(u){_.rs(this.hostElement,u.detail.error.message)};
_.I.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.I.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.Sy(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.I.onDataChanged=function(){this.isLoading=!1;var u=this.get("data.headerImage.thumbnails");u&&(u=_.bt(u,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+u+")");u=_.AC();var K=_.Yr(),l=this.get("data.trackingParams");l&&K&&u&&_.DJ(u,K,_.gf(l))};
_.MN.Object.defineProperties(Ya.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
Ya.prototype.onDataChanged=Ya.prototype.onDataChanged;Ya.prototype.onDomChange=Ya.prototype.onDomChange;Ya.prototype.onYtServiceRequestError=Ya.prototype.onYtServiceRequestError;Ya.prototype.onYtServiceRequestCompleted=Ya.prototype.onYtServiceRequestCompleted;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ya.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],Ya.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ya.prototype,"isLoading",void 0);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ya.prototype,"hasDescription",null);_.g([_.BF("tp-yt-paper-dialog-scrollable"),_.N("design:type",Object)],Ya.prototype,"scrollable",void 0);_.g([_.BF("#header"),_.N("design:type",HTMLElement)],Ya.prototype,"header",void 0);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ya.prototype,"onYtServiceRequestCompleted",null);_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ya.prototype,"onYtServiceRequestError",null);
_.g([_.PF("dom-change"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ya.prototype,"onDomChange",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ya.prototype,"onDataChanged",null);_.g([_.T({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Ya);
_.F(Ya,"ytd-gaming-account-link-setting-renderer",function(){if(jrp!==void 0)return jrp;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return jrp=u},{mode:1});var BF_;var pjE;var Ao=function(){var u=_.Q.apply(this,arguments)||this;u.isHeader=!1;u.getEndpointForm=function(){return pFE(u.data)};
return u};
_.c(Ao,_.Q);_.I=Ao.prototype;_.I.triggerHintActions=function(){var u=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var K=_.bI(u.hostElement,"yt-get-opened-popups-action");!(K&&K.length===1?K[0]:[]).some(function(l){l=l.openPopupAction.popupType;return l==="SURVEY"||l==="MEALBAR"||l==="HINT"})&&u.data.hintActions&&u.guideOpened&&(_.ay(u.hostElement,u.data.hintActions,u.hostElement),u.data.hintActions=void 0)})};
_.I.getBadgeIconType=function(u){return u&&u.liveBroadcasting?"live":null};
_.I.onDown=function(){this.interaction.triggerDown()};
_.I.onUp=function(){this.interaction.triggerUp()};
_.I.onTap=function(u){if(this.data.serviceEndpoint){var K;_.S("shorts_controller_retrieve_seedless_sequence_v2")&&((K=_.b(this.data.serviceEndpoint,_.TO))==null?void 0:K.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):Bnp(this.data.serviceEndpoint,this);u.preventDefault()}else this.data.navigationEndpoint&&!_.rE(_.WF(u),this.hostElement,["A".toString()])&&_.xs(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.I.computeActive=function(u,K){if(!u)return!1;var l=u.navigationEndpoint;u=u.serviceEndpoint;if(!l&&!u||!K)return!1;if(l){u=(u=_.J_(K))&&["subscriptions","filteredsubscriptions"].includes(u);if(_.b(l,_.jt)&&_.b(K,_.jt)&&!u){var D=_.b(l,_.jt).browseId;K=_.b(K,_.jt).browseId;return D!==void 0&&K!==void 0&&(D===K||D==="VLWL"&&K==="FEwatch_later"||D==="FEwatch_later"&&K==="VLWL")}var d;l=(d=_.b(l.commandMetadata,_.nN))==null?void 0:d.url;K=(D=_.b(K.commandMetadata,_.nN))==null?void 0:D.url;return!(!l||
!K||l!==K&&l!==_.RK(K))}return this.isActiveShortsTab(u,K)};
_.I.isActiveShortsTab=function(u,K){K=!!_.b(K,_.TO)||!!_.b(K,_.uF);return(!!_.b(u,_.TO)||!!_.b(u,_.uF))&&K};
_.I.computeIsPrimary=function(u){return!!u};
_.MN.Object.defineProperties(Ao.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 u=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&u)return u}}});
Ao.prototype.onTap=Ao.prototype.onTap;Ao.prototype.onUp=Ao.prototype.onUp;Ao.prototype.onDown=Ao.prototype.onDown;Ao.prototype.triggerHintActions=Ao.prototype.triggerHintActions;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Ao.prototype,"componentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ao.prototype,"rendererBehavior",void 0);_.g([_.e(_.v2.YtTaskEmitterBehavior),_.N("design:type",Object)],Ao.prototype,"taskEmitterBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],Ao.prototype,"activeEndpoint",void 0);_.g([_.U(),_.N("design:type",Object)],Ao.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],Ao.prototype,"guideOpened",void 0);_.g([_.U(),_.N("design:type",String)],Ao.prototype,"type",void 0);_.g([_.BF("yt-interaction"),_.N("design:type",Object)],Ao.prototype,"interaction",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ao.prototype,"isHeader",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("data","activeEndpoint"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ao.prototype,"active",null);_.g([_.U({reflectToAttribute:!0}),_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ao.prototype,"isPrimary",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.count","data.presentationStyle","data.badges.*"),_.N("design:type",String),_.N("design:paramtypes",[])],Ao.prototype,"lineEndStyle",null);
_.g([_.R("lineEndStyle"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ao.prototype,"ariaLabel",null);_.g([_.JU("data.hintActions","guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ao.prototype,"triggerHintActions",null);_.g([_.PF("down"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ao.prototype,"onDown",null);
_.g([_.PF("up"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ao.prototype,"onUp",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ao.prototype,"onTap",null);_.g([_.T({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],Ao);
_.F(Ao,"ytd-guide-entry-renderer",function(){if(pjE!==void 0)return pjE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return pjE=u},{mode:1});var XN=function(){var u=_.Q.apply(this,arguments)||this;u.userToggled=!1;return u};
_.c(XN,_.Q);_.I=XN.prototype;_.I.getItemsPath=function(){return"data.expandableItems"};
_.I.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.I.onExpanderItemTapped=function(u){var K=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.S("kevlar_guide_expandable_items_killswitch")&&_.W_(this,function(){_.Hu(K.expandableItems)});
u.preventDefault()};
_.I.onCollapserItemTapped=function(u){var K=this;this._setExpanded(!1);this.userToggled=!0;u.preventDefault();this.expandableItems&&!_.S("kevlar_guide_collapsible_items_killswitch")&&_.W_(this,function(){_.Wu(K.hostElement)})};
_.I.observeActiveEndpoint=function(){for(var u=this.activeEndpoint,K=this.data,l=this.expandableItems.children,D=0,d=l.length;D<d;D++)l[D].activeEndpoint=u;K&&K.autoExpandCommand&&u&&!this.userToggled&&(l=this.data.autoExpandCommand,K=!(!_.b(l,_.jt)||!_.b(u,_.jt)||_.b(l,_.jt).browseId!==_.b(u,_.jt).browseId),u=this.get("commandMetadata.webCommandMetadata.url",u),l=this.get("commandMetadata.webCommandMetadata.url",l),K=K||!!(u&&l&&u.includes(l)),this._setExpanded(K),K&&this.ytLazyListBehavior.fillRemainingListItems())};
XN.prototype.observeActiveEndpoint=XN.prototype.observeActiveEndpoint;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],XN.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.xR.YtLazyListBehavior),_.N("design:type",Object)],XN.prototype,"ytLazyListBehavior",void 0);_.g([_.BF("#expandable-items"),_.N("design:type",HTMLElement)],XN.prototype,"expandableItems",void 0);
_.g([_.U(),_.N("design:type",Object)],XN.prototype,"data",void 0);_.g([_.U({readOnly:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],XN.prototype,"expanded",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],XN.prototype,"initialCount",void 0);_.g([_.U(),_.N("design:type",Object)],XN.prototype,"activeEndpoint",void 0);_.g([_.JU("data","activeEndpoint","canShowMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XN.prototype,"observeActiveEndpoint",null);
_.g([_.T({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],XN);
_.F(XN,"ytd-guide-collapsible-entry-renderer",function(){if(BF_!==void 0)return BF_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return BF_=u},{mode:_.zW("kevlar_poly_si_batch_j079")?1:2});var iGV;var TFH;var mh=function(){var u=_.Q.apply(this,arguments)||this;u.allVideosCount=0;u.renderGuideEntry=!1;return u};
_.c(mh,_.Q);mh.prototype.observeRenderEntry=function(){var u;this.renderGuideEntry=!((u=this.data)==null||!u.alwaysShow)||!!this.allVideosCount};
mh.prototype.observeRenderEntry=mh.prototype.observeRenderEntry;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],mh.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],mh.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],mh.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],mh.prototype,"activeEndpoint",void 0);_.g([_.U({selector:_.UGR}),_.N("design:type",Object)],mh.prototype,"allVideosCount",void 0);
_.g([_.U(),_.N("design:type",Object)],mh.prototype,"renderGuideEntry",void 0);_.g([_.wn("allVideosCount","data.alwaysShow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mh.prototype,"observeRenderEntry",null);_.g([_.T({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],mh);
_.F(mh,"ytd-guide-downloads-entry-renderer",function(){if(TFH===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);TFH=u}u=TFH;return u},{mode:1});var ho=function(){var u=_.Q.apply(this,arguments)||this;u.youtab=_.S("web_enable_youtab");u.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return u};
_.c(ho,_.Q);_.I=ho.prototype;_.I.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]]"}}}}}};
_.I.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var u=this.sectionItems.children,K=0,l=u.length;K<l;K++)u[K].activeEndpoint=this.activeEndpoint}};
_.I.handleAddToGuideSectionAction=function(u){var K=_.b(u,lTV);if(K&&this.data&&(u=K.items,K=K.handlerData,u&&K&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(K)>-1)){K=0;for(var l=u.length;K<l;K++)u[K].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,u[K])}};
_.I.handleRemoveFromGuideSectionAction=function(u){var K=_.b(u,DsV);K&&this.data&&(u=K.guideEntryId,K=K.handlerData,u&&K&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(K)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(u,this.data.sectionItems),this.removeFromCollapsedSection(u,this.data.sectionItems)))};
_.I.removeFromExpandedSection=function(u,K){u=this.getEntryIndexMatchingId(u,K);u!==-1&&this.splice("data.sectionItems",u,1)};
_.I.removeFromCollapsedSection=function(u,K){var l=K.findIndex(function(D){return!!_.b(D,t_I)});
l&&l!==-1&&K[l]&&_.b(K[l],t_I)&&(K=_.b(K[l],t_I).expandableItems)&&(u=this.getEntryIndexMatchingId(u,K),u!==-1&&this.splice("data.sectionItems."+l+".guideCollapsibleEntryRenderer.expandableItems",u,1))};
_.I.getEntryIndexMatchingId=function(u,K){var l=this;return K.findIndex(function(D){return l.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",D)===u})};
ho.prototype.activeEndpointChanged=ho.prototype.activeEndpointChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],ho.prototype,"actionHandlerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ho.prototype,"ytRendererstamperBehavior",void 0);_.g([_.BF("#section-items"),_.N("design:type",HTMLDivElement)],ho.prototype,"sectionItems",void 0);
_.g([_.BF("#header-entry"),_.N("design:type",Object)],ho.prototype,"headerEntry",void 0);_.g([_.U(),_.N("design:type",Object)],ho.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],ho.prototype,"activeEndpoint",void 0);_.g([_.U(),_.N("design:type",Object)],ho.prototype,"youtab",void 0);_.g([_.JU("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ho.prototype,"activeEndpointChanged",null);
_.g([_.T({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],ho);
_.F(ho,"ytd-guide-collapsible-section-entry-renderer",function(){if(iGV===void 0){var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);iGV=u}u=iGV;return u},{mode:1});var wji;var FyI;var EO=function(){var u=_.Q.apply(this,arguments)||this;u.modernTypography=_.S("web_modern_typography");u.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 u};
_.c(EO,_.Q);_.I=EO.prototype;
_.I.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}}}}};
_.I.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var u=_.bI(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);u&&u.length===1&&u[0]&&_.bI(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.I.handleResetChannelUnreadCountCommand=function(u){var K;(u=(K=_.b(u,CXI))==null?void 0:K.channelId)&&this.data&&this.data.items&&(K=this.getPathToEntryMatchingId(u))&&(this.set(K+".guideEntryRenderer.count",0),this.set(K+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.I.handleResetSubscriptionsUnreadDotCommand=function(u){var K,l=(K=_.b(u,IT_))==null?void 0:K.targetId,D;l&&(D=this.data)!=null&&D.items&&(u=this.data.items.findIndex(function(d){var C;return((C=d.guideEntryRenderer)==null?void 0:C.targetId)===l}),u<0||this.set("data.items."+u+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.I.getPathToEntryMatchingId=function(u){if(this.data&&this.data.items){var K=this.getEntryIndexMatchingId(u,this.data.items);if(K>-1)return"data.items."+K;for(var l=0;l<this.data.items.length;l++)if(K=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[l]))if(K=this.getEntryIndexMatchingId(u,K),K>-1)return"data.items."+l+".guideCollapsibleEntryRenderer.expandableItems."+K}};
_.I.handleAddToGuideSectionAction=function(u){var K=this;if(_.b(u,lTV)){var l=_.b(u,lTV).items;u=_.b(u,lTV).handlerData;var D,d;if(l&&u&&((D=this.data)==null?void 0:(d=D.handlerDatas)==null?void 0:d.indexOf(u))>-1){l=l.filter(function(W){return(W=K.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",W))&&!K.isGuideItemPresent(W)});
var C;if(u==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((C=this.data)==null?0:C.items)&&(D=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),D>-1)){this.splice.apply(this,["data.items",D+1,0].concat(_.Am(l)));return}this.unshift.apply(this,["data.items"].concat(_.Am(l)))}}};
_.I.isGuideItemPresent=function(u){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(u,this.data.items)!==-1)return!0;var K=this.data.items.find(function(l){return!!l.guideCollapsibleEntryRenderer});
if((K==null?0:K.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(u,K.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.I.getEntryIndexMatchingId=function(u,K){var l=this;return K.findIndex(function(D){return l.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",D)===u})};
_.I.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(u,K){var l=this;return K.findIndex(function(D){return l.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",D)===u})};
_.I.handleRemoveFromGuideSectionAction=function(u){if(_.b(u,DsV)){var K=_.b(u,DsV).guideEntryId;u=_.b(u,DsV).handlerData;var l,D;K&&u&&((l=this.data)==null?void 0:(D=l.handlerDatas)==null?void 0:D.indexOf(u))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(K,this.data.items),this.removeFromCollapsedSection(K,this.data.items))}};
_.I.removeFromExpandedSection=function(u,K){u=this.getEntryIndexMatchingId(u,K);u!==-1&&this.splice("data.items",u,1)};
_.I.removeFromCollapsedSection=function(u,K){var l=K.findIndex(function(D){return!!D.guideCollapsibleEntryRenderer});
l!==-1&&(K=K[l].guideCollapsibleEntryRenderer.expandableItems)&&(u=this.getEntryIndexMatchingId(u,K),u!==-1&&this.splice("data.items."+l+".guideCollapsibleEntryRenderer.expandableItems",u,1))};
_.I.activeEndpointChanged=function(){for(var u=_.bi(this.hostElement).querySelector("#items").children,K=0,l=u.length;K<l;K++)u[K].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.I.guideOpenedChanged=function(){for(var u=_.bi(this.hostElement).querySelector("#items").children,K=0,l=u.length;K<l;K++)u[K].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
EO.prototype.guideOpenedChanged=EO.prototype.guideOpenedChanged;EO.prototype.activeEndpointChanged=EO.prototype.activeEndpointChanged;EO.prototype.persistentGuideChanged=EO.prototype.persistentGuideChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],EO.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],EO.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.xR.YtLazyListBehavior),_.N("design:type",Object)],EO.prototype,"ytLazyListBehavior",void 0);_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],EO.prototype,"ytdGuideStateAwareBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],EO.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],EO.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],EO.prototype,"modernTypography",void 0);_.g([_.U(),_.N("design:type",String)],EO.prototype,"type",void 0);_.g([_.U({value:20}),_.N("design:type",Number)],EO.prototype,"initialCount",void 0);_.g([_.U({value:10}),_.N("design:type",Number)],EO.prototype,"targetFramerate",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],EO.prototype,"autoFill",void 0);_.g([_.U({value:50}),_.N("design:type",Number)],EO.prototype,"renderDelay",void 0);
_.g([_.JU("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EO.prototype,"persistentGuideChanged",null);_.g([_.wn("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EO.prototype,"activeEndpointChanged",null);_.g([_.wn("guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EO.prototype,"guideOpenedChanged",null);
_.g([_.T({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],EO);
_.F(EO,"ytd-guide-section-renderer",function(){if(FyI!==void 0)return FyI;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return FyI=u},{mode:_.zW("kevlar_poly_si_batch_j073")?1:2});var Vp2;var LF=function(){return _.Q.apply(this,arguments)||this};
_.c(LF,_.Q);_.MN.Object.defineProperties(LF.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],LF.prototype,"rendererBehaviors",void 0);_.g([_.U(),_.N("design:type",Object)],LF.prototype,"data",void 0);_.g([_.U(),_.R("data.signInButton.buttonRenderer.style"),_.N("design:type",Object),_.N("design:paramtypes",[])],LF.prototype,"alignByText",null);_.g([_.T({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],LF);
_.F(LF,"ytd-guide-signin-promo-renderer",function(){if(Vp2===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);Vp2=u}u=Vp2;return u},{mode:1});var up=function(){var u=_.Q.apply(this,arguments)||this;u.showFooter=!1;return u};
_.c(up,_.Q);up.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}}}}};
up.prototype.attached=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1){K=_.GB().resolve(_.vv(_.dP));if(!K)return l.jumpTo(0);K.setGuideData(u.hostElement);return l.yield(0,3)}u.ytLazyListBehavior.initialCount=2;return l.return()})};
up.prototype.onMouseExit=function(){_.S("web_guide_hover_expansion")&&_.bI(this.hostElement,"yt-guide-mouseleaved",[])};
up.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
up.prototype.dataChanged=up.prototype.dataChanged;up.prototype.onMouseExit=up.prototype.onMouseExit;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],up.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.xR.YtLazyListBehavior),_.N("design:type",Object)],up.prototype,"ytLazyListBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],up.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],up.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],up.prototype,"showFooter",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],up.prototype,"autoFill",void 0);_.g([_.PF("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],up.prototype,"onMouseExit",null);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],up.prototype,"dataChanged",null);_.g([_.T({is:"ytd-guide-renderer",disableElementRegistration:!0})],up);
_.F(up,"ytd-guide-renderer",function(){if(wji!==void 0)return wji;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return wji=u},{mode:_.zW("kevlar_poly_si_batch_j073")?1:2});var gBH;var KQ=function(){var u=_.Q.apply(this,arguments)||this;u.systemIcons=_.S("kevlar_system_icons");u.frostedGlass=_.S("web_frosted_glass");u.getEndpointForm=function(){return pFE(u.data)};
return u};
_.c(KQ,_.Q);_.I=KQ.prototype;_.I.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.I.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.WI(this.data.formattedTitle))};
_.I.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.I.onDown=function(){this.interaction.triggerDown()};
_.I.onUp=function(){this.interaction.triggerUp()};
_.I.onTap=function(u){if(this.data.serviceEndpoint){var K;_.S("shorts_controller_retrieve_seedless_sequence_v2")&&((K=_.b(this.data.serviceEndpoint,_.TO))==null?void 0:K.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):Bnp(this.data.serviceEndpoint,this);u.preventDefault()}else{var l;((l=this.data)==null?0:l.navigationEndpoint)&&!_.rE(_.WF(u),this.hostElement,["A".toString()])&&_.xs(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.I.computeActive=function(u,K){if(!u)return!1;var l=u.navigationEndpoint;u=u.serviceEndpoint;if(!l&&!u||!K)return!1;if(l){u=_.b(l,_.jt);var D=_.b(K,_.jt);if(u&&D)return u.browseId===D.browseId&&u.params===D.params;var d;l=(d=_.b(l.commandMetadata,_.nN))==null?void 0:d.url;var C;K=(C=_.b(K.commandMetadata,_.nN))==null?void 0:C.url;return!(!l||!K||l!==K&&l!==_.RK(K))}return this.isActiveShortsTab(u,K)};
_.I.isActiveShortsTab=function(u,K){K=!!_.b(K,_.TO)||!!_.b(K,_.uF);return(!!_.b(u,_.TO)||!!_.b(u,_.uF))&&K};
_.I.computeTitle=function(u,K){return K?"":_.WI(u)};
_.MN.Object.defineProperties(KQ.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
KQ.prototype.onTap=KQ.prototype.onTap;KQ.prototype.onUp=KQ.prototype.onUp;KQ.prototype.onDown=KQ.prototype.onDown;KQ.prototype.onActiveStateChange=KQ.prototype.onActiveStateChange;KQ.prototype.dataChanged=KQ.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],KQ.prototype,"ytComponentBehavior",void 0);
_.g([_.e(_.mv),_.N("design:type",Object)],KQ.prototype,"ironButtonState",void 0);_.g([_.U(),_.N("design:type",Object)],KQ.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],KQ.prototype,"activeEndpoint",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],KQ.prototype,"noLabels",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.N("design:type",Boolean)],KQ.prototype,"isActive",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],KQ.prototype,"systemIcons",void 0);_.g([_.BF("yt-interaction"),_.N("design:type",Object)],KQ.prototype,"interaction",void 0);_.g([_.R("isActive"),_.N("design:type",Object),_.N("design:paramtypes",[])],KQ.prototype,"ariaSelected",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],KQ.prototype,"frostedGlass",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KQ.prototype,"dataChanged",null);_.g([_.JU("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KQ.prototype,"onActiveStateChange",null);_.g([_.PF("down"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KQ.prototype,"onDown",null);
_.g([_.PF("up"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KQ.prototype,"onUp",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],KQ.prototype,"onTap",null);_.g([_.T({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],KQ);
_.F(KQ,"ytd-mini-guide-entry-renderer",function(){if(gBH!==void 0)return gBH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return gBH=u},{mode:_.zW("kevlar_poly_si_batch_j063")?1:2});var NFk;var lp=function(){var u=_.Q.apply(this,arguments)||this;u.allVideosCount=0;u.noLabels=_.S("kevlar_mini_guide_no_labels");u.frostedGlass=_.S("web_frosted_glass");return u};
_.c(lp,_.Q);_.I=lp.prototype;_.I.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.I.onMouseEnter=function(){_.S("web_guide_hover_expansion")&&_.bI(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.I.visibleChanged=function(){if(this.visible&&!this.data){var u=_.GB().resolve(_.vv(_.dP));u&&u.setGuideData(this.hostElement)}};
_.I.dataChanged=function(){var u=[],K;if((K=this.data)!=null&&K.items){K=_.y(this.data.items);for(var l=K.next();!l.done;l=K.next()){l=l.value;var D=void 0;if((D=l.guideSectionRenderer)==null?0:D.items)for(D=void 0,l=_.y((D=l.guideSectionRenderer)==null?void 0:D.items),D=l.next();!D.done;D=l.next())if(D=D.value,D.guideEntryRenderer)D=D.guideEntryRenderer,D.isPrimary&&u.push({guideEntryRenderer:D});else if(D.guideCollapsibleSectionEntryRenderer){var d=void 0;((d=_.b(D.guideCollapsibleSectionEntryRenderer.headerEntry,
q4))==null?0:d.isPrimary)&&u.push({guideEntryRenderer:_.b(D.guideCollapsibleSectionEntryRenderer.headerEntry,q4)});if(D=D.guideCollapsibleSectionEntryRenderer.sectionItems)for(D=_.y(D),d=D.next();!d.done;d=D.next()){var C=d.value;d=_.b(C,xsI);var W=void 0;((W=_.b(C,q4))==null?0:W.isPrimary)?u.push({guideEntryRenderer:_.b(C,q4)}):d&&(C=void 0,_.b((C=d)==null?void 0:C.entryRenderer,q4)&&(d.alwaysShow||this.allVideosCount)&&u.push({guideEntryRenderer:_.b(d.entryRenderer,q4)}))}}}}this.miniGuideItems=
u};
_.I.activeEndpointChanged=function(){for(var u=this.items.children,K=0;K<u.length;K++)u[K].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
lp.prototype.activeEndpointChanged=lp.prototype.activeEndpointChanged;lp.prototype.dataChanged=lp.prototype.dataChanged;lp.prototype.visibleChanged=lp.prototype.visibleChanged;lp.prototype.onMouseEnter=lp.prototype.onMouseEnter;_.g([_.e(_.Ll),_.N("design:type",Object)],lp.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],lp.prototype,"ytdGuideStateAwareBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],lp.prototype,"ytComponentBehavior",void 0);_.g([_.BF("#items"),_.N("design:type",Object)],lp.prototype,"items",void 0);_.g([_.U(),_.N("design:type",Object)],lp.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Boolean)],lp.prototype,"visible",void 0);_.g([_.U(),_.N("design:type",Object)],lp.prototype,"miniGuideItems",void 0);_.g([_.U({selector:_.UGR}),_.N("design:type",Object)],lp.prototype,"allVideosCount",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],lp.prototype,"noLabels",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],lp.prototype,"frostedGlass",void 0);
_.g([_.PF("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lp.prototype,"onMouseEnter",null);_.g([_.wn("visible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lp.prototype,"visibleChanged",null);_.g([_.wn("data","allVideosCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lp.prototype,"dataChanged",null);
_.g([_.wn("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lp.prototype,"activeEndpointChanged",null);_.g([_.T({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],lp);
_.F(lp,"ytd-mini-guide-renderer",function(){if(NFk===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);NFk=u}u=NFk;return u},{mode:1});var kuG;var ZGE=/^[\x00-\x7F]+$/,D2=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(D2,_.Q);_.MN.Object.defineProperties(D2.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var u,K=_.WI((u=this.data)==null?void 0:u.handle);if(K)return _.o7("@"+K)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var u=_.WI(this.displayHandle),K,l=_.WI((K=this.data)==null?void 0:K.handleUrl);if(u&&l)return _.o7(l+u)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var u=_.WI(this.displayHandle);if(u&&!ZGE.test(u)){var K;return(K=this.data)==null?void 0:K.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var u=_.WI(this.displayHandleUrl),K,l=_.WI((K=this.data)==null?void 0:K.urlInfoText);if(u&&l)return _.o7(l+" "+u)}}});
_.g([_.U(),_.N("design:type",Object)],D2.prototype,"data",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],D2.prototype,"displayHandle",null);_.g([_.R("displayHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],D2.prototype,"displayHandleUrl",null);_.g([_.R("displayHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],D2.prototype,"warningText",null);
_.g([_.R("displayHandleUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],D2.prototype,"urlInfoTextWithUrl",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],D2.prototype,"darkerDarkTheme",void 0);_.g([_.T({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],D2);
_.F(D2,"ytd-handles-claiming-confirm-dialog-content",function(){if(kuG!==void 0)return kuG;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return kuG=u},{mode:1});var Yhp;var dS=function(){var u=_.Q.apply(this,arguments)||this;u.okButtonOverride={style:"mono",type:"outline",size:"M"};return u};
_.c(dS,_.Q);dS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
dS.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],dS.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],dS.prototype,"okButtonOverride",void 0);_.g([_.U(),_.N("design:type",Object)],dS.prototype,"data",void 0);_.g([_.T({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],dS);
_.F(dS,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(Yhp!==void 0)return Yhp;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Yhp=u},{mode:1});var AJE;var XjG=/^[\x00-\x7F]+$/,CQ=function(){var u=_.Q.apply(this,arguments)||this;u.isLoading=!1;u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(CQ,_.Q);CQ.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var u;this.selectedHandle=(u=this.handleInput)==null?void 0:u.value;this.onSelectedHandleChanged(this.selectedHandle);_.bI(this.hostElement,"yt-refit-popups-action")}};
_.MN.Object.defineProperties(CQ.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var u;return(u=this.data)==null?void 0:u.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.o7("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.o7(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!XjG.test(this.selectedHandle)){var u;return(u=this.data)==null?void 0:u.warningText}}}});
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],CQ.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],CQ.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],CQ.prototype,"selectedHandle",void 0);_.g([_.U(),_.N("design:type",Object)],CQ.prototype,"isLoading",void 0);_.g([_.U(),_.N("design:type",Function)],CQ.prototype,"onSelectedHandleChanged",void 0);_.g([_.BF("#channel-handle-input"),_.N("design:type",Object)],CQ.prototype,"handleInput",void 0);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],CQ.prototype,"handleUrlPrefix",null);_.g([_.R("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],CQ.prototype,"displayHandle",null);_.g([_.R("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],CQ.prototype,"displayHandleUrl",null);_.g([_.R("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],CQ.prototype,"warningText",null);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],CQ.prototype,"darkerDarkTheme",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.g([_.T({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],CQ);
_.F(CQ,"ytd-handles-claiming-edit-dialog-content",function(){if(AJE!==void 0)return AJE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return AJE=u},{mode:1});var mdo;var IF=function(){var u=_.Q.apply(this,arguments)||this;u.actionButtonOverride={style:"mono",type:"filled",size:"M"};u.cancelButtonOverride={style:"mono",type:"text",size:"M"};u.selectButtonDisabled=!1;u.isLoading=!1;u.hasSelectedHandleEventListener=!1;u.selectedHandleChanged=function(K){u.selectedHandle=K};
return u};
_.c(IF,_.Q);_.I=IF.prototype;_.I.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.I.onDataChanged=function(){var u,K;this.selectedHandle=(K=_.b((u=this.data)==null?void 0:u.inputField,h1G))==null?void 0:K.handle};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.onCancel=function(){this.selectedHandle="";_.Sy(this.hostElement,"yt-close-popup-action",[this.is])};
_.I.onSelectHandle=function(){var u=this;if(this.selectedHandle!==void 0){var K;((K=this.data)==null?void 0:K.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(l,D){if(D.newHandleUpdateStatus!==void 0&&D.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&D.newHandleUpdateStatus.errorMessage)_.rs(u.hostElement,_.WI(D.newHandleUpdateStatus.errorMessage)),
u.isLoading=!1;else{var d;if((d=u.data)==null?0:d.onChannelUpdateSuccess){l=u.data.onChannelUpdateSuccess;var C,W;if(D=(C=_.b(l,_.kg))==null?void 0:(W=C.popup)==null?void 0:W.handlesClaimingConfirmDialogRenderer)D.handle=_.o7(u.selectedHandle);u.ytComponentBehavior.resolveCommand(l);_.Sy(u.hostElement,"yt-close-popup-action",[u.is])}else u.isLoading=!1}},
onServerError:function(){var l;u.content&&((l=u.content)==null?0:l.handleInput)&&u.content.handleInput.validate();u.isLoading=!1;_.rs(u.hostElement,_.QQ("TRY_AGAIN_LATER"))}}}))}};
_.I.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
IF.prototype.onDataChanged=IF.prototype.onDataChanged;IF.prototype.onSelectedHandleChanged=IF.prototype.onSelectedHandleChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],IF.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],IF.prototype,"actionButtonOverride",void 0);_.g([_.U(),_.N("design:type",Object)],IF.prototype,"cancelButtonOverride",void 0);_.g([_.U(),_.N("design:type",Object)],IF.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",String)],IF.prototype,"selectedHandle",void 0);_.g([_.U(),_.N("design:type",Object)],IF.prototype,"selectButtonDisabled",void 0);_.g([_.U(),_.N("design:type",Object)],IF.prototype,"isLoading",void 0);_.g([_.U(),_.N("design:type",Object)],IF.prototype,"hasSelectedHandleEventListener",void 0);_.g([_.U(),_.N("design:type",Object)],IF.prototype,"handleInput",void 0);
_.g([_.JU("selectedHandle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IF.prototype,"onSelectedHandleChanged",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IF.prototype,"onDataChanged",null);_.g([_.BF("ytd-handles-claiming-edit-dialog-content"),_.N("design:type",Object)],IF.prototype,"content",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.g([_.T({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],IF);
_.F(IF,"ytd-handles-claiming-edit-dialog-renderer",function(){if(mdo!==void 0)return mdo;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return mdo=u},{mode:1});var hf2;var yN=function(){return _.Q.apply(this,arguments)||this};
_.c(yN,_.Q);_.MN.Object.defineProperties(yN.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.data)==null?0:u.handle){var K;return _.o7("@"+_.WI((K=this.data)==null?void 0:K.handle))}}}});
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],yN.prototype,"formattedHandle",null);_.g([_.U(),_.N("design:type",Object)],yN.prototype,"data",void 0);_.g([_.T({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],yN);
_.F(yN,"ytd-handles-claiming-radio-option-renderer",function(){if(hf2!==void 0)return hf2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return hf2=u},{mode:1});var EB2;var LyE=/^[\x00-\x7F]+$/,st=function(){var u=_.Q.apply(this,arguments)||this;u.initialRadioIndex="-1";u.isLoading=!1;u.darkerDarkTheme=_.S("web_darker_dark_theme");u.maybeSubmitFeedback=function(){u.feedbackSurveyRenderer.submitSurvey()};
return u};
_.c(st,_.Q);st.prototype.updateSelectedHandleIndexFromBinding=function(u){this.selectedRadioIndex=+u.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(u)};
st.prototype.selectedHandleChanged=function(u){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var K;this.selectedHandle=(K=this.handleInput)==null?void 0:K.value;this.onSelectedHandleChanged(u)}};
_.MN.Object.defineProperties(st.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var u;return(((u=this.data)==null?void 0:u.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var u;return this.ytRendererBehavior.getSimpleString((u=this.data)==null?void 0:u.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.o7("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.o7(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!LyE.test(this.selectedHandle)){var u;return(u=this.data)==null?void 0:u.warningText}}}});
_.g([_.U(),_.N("design:type",Object)],st.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],st.prototype,"initialRadioIndex",void 0);_.g([_.U(),_.N("design:type",Number)],st.prototype,"selectedRadioIndex",void 0);_.g([_.U(),_.N("design:type",String)],st.prototype,"selectedHandle",void 0);_.g([_.U(),_.N("design:type",Object)],st.prototype,"isLoading",void 0);_.g([_.U(),_.N("design:type",Function)],st.prototype,"onSelectedHandleChanged",void 0);
_.g([_.U(),_.N("design:type",Function)],st.prototype,"onSelectedRadioIndexChanged",void 0);_.g([_.BF("#channel-handle-input"),_.N("design:type",Object)],st.prototype,"handleInput",void 0);_.g([_.BF("ytd-feedback-survey-renderer"),_.N("design:type",Object)],st.prototype,"feedbackSurveyRenderer",void 0);_.g([_.R("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],st.prototype,"radioButtonLength",null);
_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],st.prototype,"handleUrlPrefix",null);_.g([_.R("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],st.prototype,"displayHandle",null);_.g([_.R("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],st.prototype,"displayHandleUrl",null);_.g([_.R("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],st.prototype,"warningText",null);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],st.prototype,"darkerDarkTheme",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.g([_.T({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],st);
_.F(st,"ytd-handles-claiming-select-dialog-content",function(){if(EB2!==void 0)return EB2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return EB2=u},{mode:1});var utp;var oF=function(){var u=_.Q.apply(this,arguments)||this;u.actionButtonOverride={style:"mono",type:"filled",size:"M"};u.cancelButtonOverride={style:"mono",type:"text",size:"M"};u.initialRadioIndex="-1";u.selectButtonDisabled=!1;u.isLoading=!1;u.selectedRadioIndexChanged=function(K){u.selectedRadioIndex=Number(K.detail.value)};
u.selectedHandleChanged=function(K){u.selectedHandle=K.detail.value};
u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(oF,_.Q);_.I=oF.prototype;_.I.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.I.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.I.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.bI(this.hostElement,"yt-refit-popups-action")};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.Sy(this.hostElement,"yt-close-popup-action",[this.is])};
_.I.onSelectHandle=function(){var u=this;if(this.selectedHandle!==void 0){var K;((K=this.data)==null?void 0:K.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(l,D){if(D.newHandleUpdateStatus!==void 0&&D.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&D.newHandleUpdateStatus.errorMessage)_.rs(u.hostElement,_.WI(D.newHandleUpdateStatus.errorMessage)),
u.isLoading=!1;else{var d;if((d=u.data)==null?0:d.onChannelUpdateSuccess){l=u.data.onChannelUpdateSuccess;D=_.b(l,_.kg);var C;if(D==null?0:(C=D.popup)==null?0:C.handlesClaimingConfirmDialogRenderer)D.popup.handlesClaimingConfirmDialogRenderer.handle=_.o7(u.selectedHandle);u.ytComponentBehavior.resolveCommand(l);_.Sy(u.hostElement,"yt-close-popup-action",[u.is])}else u.isLoading=!1}},
onServerError:function(){if(u.selectedRadioIndex===u.radioButtonLength){var l;u.content&&((l=u.content)==null?0:l.handleInput)&&u.content.handleInput.validate()}u.isLoading=!1;_.rs(u.hostElement,_.QQ("TRY_AGAIN_LATER"))}}}))}};
_.I.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var u,K;this.selectedHandle=(u=this.content)==null?void 0:(K=u.handleInput)==null?void 0:K.value}else this.selectedRadioIndex>=0&&((u=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(u==null?void 0:u.handle):this.selectedHandle=void 0)};
_.I.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.I.getRadioItem=function(u){if(this.radioButtonLength>u&&u>=0)return _.b(this.data.radioButton[u],qjI)};
_.MN.Object.defineProperties(oF.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var u;return(((u=this.data)==null?void 0:u.radioButton)||[]).length}}});
oF.prototype.onSelectedHandleChanged=oF.prototype.onSelectedHandleChanged;oF.prototype.onSelectedHandleIndexChanged=oF.prototype.onSelectedHandleIndexChanged;oF.prototype.onDataChanged=oF.prototype.onDataChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],oF.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],oF.prototype,"actionButtonOverride",void 0);_.g([_.U(),_.N("design:type",Object)],oF.prototype,"cancelButtonOverride",void 0);
_.g([_.U(),_.N("design:type",Object)],oF.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],oF.prototype,"initialRadioIndex",void 0);_.g([_.U(),_.N("design:type",Number)],oF.prototype,"selectedRadioIndex",void 0);_.g([_.U(),_.N("design:type",String)],oF.prototype,"selectedHandle",void 0);_.g([_.U(),_.N("design:type",Object)],oF.prototype,"selectButtonDisabled",void 0);_.g([_.U(),_.N("design:type",Object)],oF.prototype,"isLoading",void 0);
_.g([_.R("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],oF.prototype,"radioButtonLength",null);_.g([_.BF("ytd-handles-claiming-select-dialog-content"),_.N("design:type",Object)],oF.prototype,"content",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oF.prototype,"onDataChanged",null);
_.g([_.JU("selectedRadioIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oF.prototype,"onSelectedHandleIndexChanged",null);_.g([_.JU("selectedHandle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oF.prototype,"onSelectedHandleChanged",null);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],oF.prototype,"darkerDarkTheme",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],oF.prototype,"ytRendererstamperBehavior",void 0);_.g([_.T({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],oF);
_.F(oF,"ytd-handles-claiming-select-dialog-renderer",function(){if(utp!==void 0)return utp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return utp=u},{mode:1});var KSB;var l9p;var WM=function(){return _.Q.apply(this,arguments)||this};
_.c(WM,_.Q);WM.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],WM.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],WM.prototype,"data",void 0);_.g([_.T({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],WM);
_.F(WM,"ytd-hotkey-dialog-section-option-renderer",function(){if(l9p!==void 0)return l9p;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return l9p=u},{mode:1});var D$H;var HM=function(){return _.Q.apply(this,arguments)||this};
_.c(HM,_.Q);HM.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],HM.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],HM.prototype,"data",void 0);_.g([_.T({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],HM);
_.F(HM,"ytd-hotkey-dialog-section-renderer",function(){if(D$H!==void 0)return D$H;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return D$H=u},{mode:1});var MJ=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(MJ,_.Q);MJ.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],MJ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],MJ.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],MJ.prototype,"darkerDarkTheme",void 0);_.g([_.T({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],MJ);
_.F(MJ,"ytd-hotkey-dialog-content",function(){if(KSB!==void 0)return KSB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return KSB=u},{mode:1});var d$_;var qJ=function(){return _.Q.apply(this,arguments)||this};
_.c(qJ,_.Q);qJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var u=document.querySelector("ytd-hotkey-dialog-content #scrollable");u&&(u.dialogElement=this.hostElement.parentElement)};
qJ.prototype.onCloseTap=function(){_.Sy(this.hostElement,"yt-close-popup-action")};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],qJ.prototype,"data",void 0);_.g([_.T({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],qJ);
_.F(qJ,"ytd-hotkey-dialog-renderer",function(){if(d$_!==void 0)return d$_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return d$_=u},{mode:1});var CNG;var $c=function(){return _.Q.apply(this,arguments)||this};
_.c($c,_.Q);$c.prototype.onYtServiceRequestError=function(){if(this.blocked){var u;var K=(u=this.data)==null?void 0:u.defaultServiceEndpoint}else{var l;K=(l=this.data)==null?void 0:l.toggledServiceEndpoint}var D;(K=(D=_.b(K,_.c7N))==null?void 0:D.onFailureAction)&&this.ytComponentBehavior.resolveCommand(K);this.updateBlockState(!this.blocked)};
$c.prototype.onYtToggleButton=function(u){this.updateBlockState(u.detail.toggled)};
$c.prototype.updateBlockState=function(u){if(u!==this.blocked){var K=this.blockedEntityKey;K&&this.ytdReduxBehavior.dispatch(_.TT("blockStateEntity",K,{key:K,blocked:u}));this.set("data.isToggled",u)}};
_.MN.Object.defineProperties($c.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)}}});
$c.prototype.onYtToggleButton=$c.prototype.onYtToggleButton;$c.prototype.onYtServiceRequestError=$c.prototype.onYtServiceRequestError;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],$c.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],$c.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],$c.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],$c.prototype,"blockedEntityKey",void 0);
_.g([_.U({selectorArgs:["blockedEntityKey"],selector:function(u,K){return _.eZ(u.entities,"blockStateEntity",K)}}),
_.N("design:type",Object)],$c.prototype,"blockStateEntity",void 0);_.g([_.R("data","blockStateEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$c.prototype,"blocked",null);_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],$c.prototype,"onYtServiceRequestError",null);
_.g([_.PF("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],$c.prototype,"onYtToggleButton",null);_.g([_.T({is:"ytd-block-button",disableElementRegistration:!0})],$c);
_.F($c,"ytd-block-button",function(){if(CNG!==void 0)return CNG;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return CNG=u},
{mode:1});var I9p;var yLB;var nQ=function(){return _.Q.apply(this,arguments)||this};
_.c(nQ,_.Q);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],nQ.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],nQ.prototype,"data",void 0);_.g([_.T({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],nQ);
_.F(nQ,"ytd-kids-blocklist-picker-item-renderer",function(){if(yLB!==void 0)return yLB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return yLB=u},{mode:1});var rS=function(){return _.Q.apply(this,arguments)||this};
_.c(rS,_.Q);rS.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],rS.prototype,"data",void 0);_.g([_.T({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],rS);
_.F(rS,"ytd-kids-blocklist-picker-content",function(){if(I9p!==void 0)return I9p;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return I9p=
u},{mode:_.zW("kevlar_poly_si_batch_j025")?1:2});var sHI;var vM=function(){var u=_.Q.apply(this,arguments)||this;u.hasAnyRequestSucceeded=!1;u.hasAnyRequestFailed=!1;u.numPendingRequests=0;return u};
_.c(vM,_.Q);_.I=vM.prototype;_.I.attached=function(){this.hostElement.setAttribute("dialog","")};
_.I.onDoneButtonTap=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.I.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.I.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.I.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.I.onPopupClosed=function(u){var K,l;if(((K=u.detail)==null?void 0:(l=K.popup)==null?void 0:l.is)==="tp-yt-paper-dialog"){var D;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((D=this.data)==null?0:D.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.nc(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
vM.prototype.onPopupClosed=vM.prototype.onPopupClosed;vM.prototype.onYtServiceRequestError=vM.prototype.onYtServiceRequestError;vM.prototype.onYtServiceRequestCompleted=vM.prototype.onYtServiceRequestCompleted;vM.prototype.onYtServiceRequestSent=vM.prototype.onYtServiceRequestSent;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],vM.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],vM.prototype,"data",void 0);_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vM.prototype,"onYtServiceRequestSent",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vM.prototype,"onYtServiceRequestCompleted",null);
_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vM.prototype,"onYtServiceRequestError",null);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],vM.prototype,"onPopupClosed",null);_.g([_.T({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],vM);
_.F(vM,"ytd-kids-blocklist-picker-renderer",function(){if(sHI!==void 0)return sHI;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return sHI=u},{mode:1});var olo;var WS2;var Gc=function(){return _.Q.apply(this,arguments)||this};
_.c(Gc,_.Q);Gc.prototype.setTip=function(u){var K=this;this.data&&(this.tip=DRE(K9H.getInstance(),u,this.data),_.W_(this,function(){_.xs(K.hostElement,"yt-refit")}))};
Gc.prototype.clearTip=function(){this.tip=void 0};
Gc.prototype.computeHidden=function(u){return!u};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Gc.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.N("design:type",Boolean)],Gc.prototype,"hidden",void 0);_.g([_.U(),_.N("design:type",Object)],Gc.prototype,"tip",void 0);_.g([_.T({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Gc);
_.F(Gc,"ytd-menu-popup-tip-renderer",function(){if(WS2!==void 0)return WS2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);
return WS2=u},{mode:1});var Hho;var tr=function(){var u=_.Q.apply(this,arguments)||this;u.useIcons=!1;u.systemIcons=_.S("kevlar_system_icons");u.useListItemStyles=_.S("web_list_item_style_for_menu_items");return u};
_.c(tr,_.Q);_.I=tr.prototype;_.I.onFocus=function(){var u;(u=_.bi(this.hostElement).querySelector("tp-yt-paper-item"))==null||u.focus()};
_.I.onTap=function(){var u=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(u&&_.b(u,_.ey))this.componentBehavior.resolveCommand(u),this.updateToggledStateInEntity();else if(u){this.componentBehavior.resolveCommand(u)||_.GB().resolve(_.t9).resolveCommand(u,{form:{element:this.hostElement}});var K;((K=_.b(u,_.Ux))==null?void 0:K.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.I.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.I.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.I.updateToggledStateInEntity=function(){var u=this.data.toggleMenuServiceItemEntityKey,K=!this.data.isToggled;u&&this.ytdReduxBehavior.dispatch(_.TT("toggleMenuServiceItemEntity",u,{key:u,isToggled:K}))};
_.I.computeIcon=function(u,K,l){return(u=u?l:K)&&u.iconType?_.fr(u.iconType):""};
_.I.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.I.isIconActive=function(u){return!_.S("toggle_menu_active_icon_killswitch")&&u};
_.MN.Object.defineProperties(tr.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return((u=this.data)==null?0:u.isToggled)?(K=this.data)==null?void 0:K.toggledText:(l=this.data)==null?void 0:l.defaultText}}});
tr.prototype.toggledStateEntityChanged=tr.prototype.toggledStateEntityChanged;tr.prototype.onYtServiceRequestCompleted=tr.prototype.onYtServiceRequestCompleted;tr.prototype.onTap=tr.prototype.onTap;tr.prototype.onFocus=tr.prototype.onFocus;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],tr.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],tr.prototype,"componentBehavior",void 0);
_.g([_.e(_.Ll),_.N("design:type",Object)],tr.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],tr.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],tr.prototype,"useIcons",void 0);_.g([_.U({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.N("design:type",String)],tr.prototype,"icon",void 0);
_.g([_.U({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(u,K){return _.eZ(u.entities,"toggleMenuServiceItemEntity",K)}}),
_.N("design:type",Object)],tr.prototype,"toggleMenuServiceItemEntity",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],tr.prototype,"systemIcons",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],tr.prototype,"useListItemStyles",void 0);_.g([_.PF("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tr.prototype,"onFocus",null);
_.g([_.R("data.isToggled"),_.N("design:type",Object),_.N("design:paramtypes",[])],tr.prototype,"toggleButtonText",null);_.g([_.PF("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tr.prototype,"onTap",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tr.prototype,"onYtServiceRequestCompleted",null);
_.g([_.JU("toggleMenuServiceItemEntity.isToggled","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tr.prototype,"toggledStateEntityChanged",null);_.g([_.T({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],tr);
_.F(tr,"ytd-toggle-menu-service-item-renderer",function(){if(Hho!==void 0)return Hho;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Hho=u},{mode:1});var MPo;var xc=function(){return _.Q.apply(this,arguments)||this};
_.c(xc,_.Q);xc.prototype.onFocus=function(){var u;(u=_.bi(this.hostElement).querySelector("tp-yt-paper-item"))==null||u.focus()};
_.MN.Object.defineProperties(xc.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.ES(this.data.iconUrl)}}});
xc.prototype.onFocus=xc.prototype.onFocus;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],xc.prototype,"rendererBehavior",void 0);_.g([_.e(_.po.YtEndpointBehavior),_.N("design:type",Object)],xc.prototype,"ytEndpointBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],xc.prototype,"data",void 0);_.g([_.PF("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xc.prototype,"onFocus",null);
_.g([_.R("data.iconUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],xc.prototype,"imageSource",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],xc);
_.F(xc,"ytd-menu-custom-icon-item-renderer",function(){if(MPo!==void 0)return MPo;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return MPo=u},{mode:_.zW("kevlar_poly_si_batch_j028")?1:2});_.SX(_.m$,"yt-list-item-view-model",{props:{data:_.M6,isMenuItem:_.M6,isCompact:_.M6,onTap:_.xo,trailingAccessory:_.xo,hideSelectionTextChevron:_.M6,disabled:_.M6,inPopup:_.M6,disableHorizontalPadding:_.M6,isOverlay:_.M6,isToggled:_.M6,ariaLabel:_.M6,ariaPressed:_.M6}});var S5=function(){var u=_.Q.apply(this,arguments)||this;u.disableBackdropFilter=_.S("web_disable_backdrop_filter");return u};
_.c(S5,_.Q);_.I=S5.prototype;
_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.I.computeAriaLabel=function(u){return u};
_.I.onPopupOpened=function(){this.items.selected=0;for(var u=_.y(_.bi(this.items).children),K=u.next();!K.done;K=u.next())K.value.popupPositionTarget=this.positionTarget;if(u=this.popupTip||void 0)u.setTip(this.source||""),this.source=void 0;this.veData&&(u=_.AC())&&_.If(u,[this.veData])};
_.I.onPopupClosed=function(){var u=this.popupTip||void 0;u&&u.clearTip()};
_.I.onIronActivate=function(u){this.shouldPersist(u)||_.Sy(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(u=_.AC())&&_.Wi(u,this.veData)};
_.I.shouldPersist=function(u){var K,l;if(((K=u.detail)==null?void 0:K.selected)===void 0||(l=this.data)==null||!l.items)return!1;var D,d;return!((d=(D=this.data.items[u.detail.selected])==null?void 0:D.toggleMenuServiceItemRenderer)==null||!d.persistentOnMenuPopup)};
_.I.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(u){return u.menuNavigationItemRenderer?!!u.menuNavigationItemRenderer.icon:u.menuServiceItemRenderer?!!u.menuServiceItemRenderer.icon:u.menuConditionalServiceItemRenderer?!!u.menuConditionalServiceItemRenderer.icon:u.menuConditionalNavigationItemRenderer?!!u.menuConditionalNavigationItemRenderer.icon:u.toggleMenuServiceItemRenderer?!!u.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
S5.prototype.onPopupClosed=S5.prototype.onPopupClosed;S5.prototype.onPopupOpened=S5.prototype.onPopupOpened;_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],S5.prototype,"ytEventForwardingBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],S5.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],S5.prototype,"veData",void 0);_.g([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.N("design:type",String)],S5.prototype,"ariaLabel",void 0);_.g([_.U({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],S5.prototype,"useIcons",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],S5.prototype,"disableBackdropFilter",void 0);_.g([_.BF("#items"),_.N("design:type",Object)],S5.prototype,"items",void 0);_.g([_.BF("ytd-menu-popup-tip-renderer"),_.N("design:type",Object)],S5.prototype,"popupTip",void 0);_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S5.prototype,"onPopupOpened",null);
_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S5.prototype,"onPopupClosed",null);_.g([_.T({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],S5);
_.F(S5,"ytd-menu-popup-renderer",function(){if(olo!==void 0)return olo;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return olo=u},{mode:1});var q_p;var $$p=_.rf(function(u){u=_.$U(u,{icon:void 0});var K=u.data;u=u.icon;var l=function(){return K().iconBadgeText},D={},d=_.JB("yt-spec-icon-badge-shape",function(){a:switch(K().iconBadgeType){case "notification":var C="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":C="yt-spec-icon-badge-shape--type-cart";break a;default:C=""}return C},function(){a:switch(K().iconBadgeStyle){case "overlay":var C="yt-spec-icon-badge-shape--style-overlay";
break a;default:C=""}return C},(D["yt-spec-icon-badge-shape--text-size-small"]=function(){var C=l();
return!!((C==null?0:C.length)&&C.length>2)},D));
return _.n("yt-icon-badge-shape",null,_.n(_.r,{cond:u,then:function(C){return _.n("div",{class:d},_.n("div",{class:"yt-spec-icon-badge-shape__icon"},_.n(_.VB,{icon:C})),_.n(_.r,{cond:l,then:function(W){return _.n("div",{class:"yt-spec-icon-badge-shape__badge"},W)}}))}}))},"Fg");
$$p.idomCompat=!0;_.SX($$p,"yt-icon-badge-shape",{props:{data:_.M6,icon:_.M6}});var bp=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};u.unseenCount=0;u.isOverlay=!1;return u};
_.c(bp,_.Q);_.I=bp.prototype;_.I.attached=function(){var u=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(K){u.onServiceWorkerMessage(K)})};
_.I.onDataChanged=function(){this.isAttached&&!this.JSC$20281_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20281_lastData=this.data};
_.I.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.I.computeIcon=function(){var u,K;return(u=this.data)==null?void 0:(K=u.icon)==null?void 0:K.iconType};
_.I.onServiceWorkerMessage=function(u){u.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.I.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.b(this.data.updateUnseenCountEndpoint,_.Ux)&&_.b(this.data.updateUnseenCountEndpoint,_.Ux).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.I.handleUpdateNotificationsUnseenCountAction=function(u){var K=this;u=_.b(u,dsV);u!=null&&u.unseenCount&&u.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(u.unseenCount),_.YL.addLowPriorityJob(function(){K.data.updateUnseenCountEndpoint&&K.ytComponentBehavior.resolveCommand(K.data.updateUnseenCountEndpoint)},u.timeoutMs))};
_.I.onClick=function(){_.xs(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var u=_.bI(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),K=this.data.menuRequest;u&&u.length===1&&u[0]?_.Sy(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):K&&this.ytComponentBehavior.resolveCommand(K)};
_.I.handleTopbarMenuClosedAction=function(u){u==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.I.toggleIconState=function(u){this.iconButton&&(this.iconButton.pressed=u)};
_.I.sendUnseenCountRequest=function(u){var K=this;_.Ve(_.YL,function(){K.ytComponentBehavior.resolveCommand(u)})};
_.I.updateCountUI=function(u){this.set("unseenCount",u<9?u:"9+")};
_.MN.Object.defineProperties(bp.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
bp.prototype.handleUpdateNotificationsUnseenCountAction=bp.prototype.handleUpdateNotificationsUnseenCountAction;bp.prototype.onDataChanged=bp.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],bp.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.nl),_.N("design:type",Object)],bp.prototype,"ytdOpenPopupBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],bp.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],bp.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],bp.prototype,"unseenCount",void 0);_.g([_.U(),_.N("design:type",Object)],bp.prototype,"isOverlay",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],bp.prototype,"showTooltips",void 0);_.g([_.BF("yt-icon-button"),_.N("design:type",Object)],bp.prototype,"iconButton",void 0);
_.g([_.R("unseenCount"),_.N("design:type",Object),_.N("design:paramtypes",[])],bp.prototype,"showNotificationCount",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bp.prototype,"onDataChanged",null);_.g([_.PF("yt-update-notifications-unseen-count-action"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],bp.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.g([_.T({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],bp);
_.F(bp,"ytd-notification-topbar-button-renderer",function(){if(q_p!==void 0)return q_p;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return q_p=u},{mode:_.zW("kevlar_poly_si_batch_j025")?1:2});var nlB;var Ot=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return u};
_.c(Ot,_.Q);Ot.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}}}}}};
Ot.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Ot.prototype.onDarkModeToggled=function(u){this.dark=u};
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Ot.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ot.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ot.prototype,"data",void 0);_.g([_.U({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],Ot.prototype,"dark",void 0);
_.g([_.T({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Ot);
_.F(Ot,"yt-pdg-buy-flow-header-renderer",function(){if(nlB!==void 0)return nlB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return nlB=u},{mode:1});var rLo;var vlH;var cM=function(){var u=_.Q.apply(this,arguments)||this;u.immediateValue=0;u.isDarkTheme=!1;u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return u};
_.c(cM,_.Q);_.I=cM.prototype;_.I.created=function(){_.d0.requestAvailability()};
_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.I.dataChanged=function(){var u=_.bi(this.hostElement).querySelector("#color-slider");u.immediateValue&&this.updateSliderKnobAndGradientStyles(u.immediateValue);this.data.notches[0].knobColorArgb&&_.e8(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Kg(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.E3("HTML_DIR")==="rtl"&&_.bi(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.I.onSliderImmediateChange=function(){var u=_.bi(this.hostElement).querySelector("#color-slider");u.dragging&&(u.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(u.immediateValue),this.updateSliderKnobAndGradientStyles(u.immediateValue)),this.updateSliderAria())};
_.I.onSliderChange=function(){var u=_.bi(this.hostElement).querySelector("#color-slider");u.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(u.immediateValue),this.updateSliderKnobAndGradientStyles(u.immediateValue));this.updateSliderAria()};
_.I.updateSliderAria=function(){var u=_.bi(this.hostElement).querySelector("#color-slider"),K=_.bi(this.hostElement).querySelector("#color-slider");K=_.WI(this.data.notches[K.immediateValue].tierValue);_.Qn()&&_.xs(this.hostElement,"iron-announce",{text:K});u.setAttribute("aria-valuetext",K)};
_.I.updateSuperThanksSelectedTierEntity=function(u){if(u!==this.immediateValue){var K,l,D=this==null?void 0:(K=this.data)==null?void 0:(l=K.superThanksSelectedTierEntity)==null?void 0:l.key;D&&D.length>0&&this.ytdReduxBehavior.dispatch(_.TT("superThanksSelectedTierEntity",D,{key:D,index:u}))}};
_.I.onDarkModeToggledAction=function(u){this.isDarkTheme=u};
_.I.updateSliderKnobAndGradientStyles=function(u){this.immediateValue=u;u=this.data.notches[u];if(u==null?0:u.knobColorArgb)var K={"--ytd-pdg-color-slider-knob-color":_.Kg(u.knobColorArgb)};(u==null?0:u.linearGradientCssStyle)&&K!==null&&(K=Object.assign({},K,{"--ytd-pdg-color-slider-active-color":u==null?void 0:u.linearGradientCssStyle}));K!==null&&_.e8(this.hostElement,K)};
cM.prototype.onSliderChange=cM.prototype.onSliderChange;cM.prototype.onSliderImmediateChange=cM.prototype.onSliderImmediateChange;cM.prototype.dataChanged=cM.prototype.dataChanged;_.g([_.U(),_.N("design:type",Object)],cM.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],cM.prototype,"immediateValue",void 0);_.g([_.U(),_.N("design:type",Number)],cM.prototype,"maxMarkers",void 0);
_.g([_.U({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Znp}),_.N("design:type",Object)],cM.prototype,"superThanksSelectedTierEntity",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],cM.prototype,"isDarkTheme",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],cM.prototype,"ytdReduxBehavior",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cM.prototype,"dataChanged",null);
_.g([_.PF("immediate-value-change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cM.prototype,"onSliderImmediateChange",null);_.g([_.PF("change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cM.prototype,"onSliderChange",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],cM);
_.F(cM,"ytd-pdg-color-slider-renderer",function(){if(vlH!==void 0)return vlH;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return vlH=u},{mode:1});var Gep;var tPk;var aF=null;
_.YH({is:"ytd-comment-input",_template:function(){if(tPk!==void 0)return tPk;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return tPk=u},
behaviors:[_.VOq.YtHostElementBehavior,_.T7,_.Co.YtComponentBehavior,_.SK.YtRendererstamperBehavior,_.BUN.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 _.Cl}},
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",_.Ql(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;_.fW();this.focus()},
detached:function(){document.removeEventListener("tap",_.Ql(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(u){u=u.detail;u=u.isCustomEmoji?u.shortcuts[0]:u.emojiId;var K=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(K,u);this.maybeUpdateTextDirection_();_.xs(this.hostElement,"input")},
getInputRange_:function(){var u=_.J3();if(u){u=u.getBrowserRangeObject();for(var K=u.commonAncestorContainer;K;){if(K===this.getEditableTextArea_())return u;K=K.parentNode}}u=this.getEditableTextArea_();u=_.u6(u,u.childNodes.length);u.select();return u.getBrowserRangeObject()},
insertTextWithEmojis_:function(u,K,l){(K=this.emojiManager.createDocumentFragment(K,!0,!1,l===void 0?!0:l))&&K.childNodes.length!==0&&(u.collapsed||u.deleteContents(),l=K.lastChild,u.insertNode(K),_.wIA(l).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var u=_.J3();if(u){var K=u.JSC$11223_getStartNode(),l=u.JSC$11223_getEndNode();if(ig_(K)&&ig_(l)){var D=u.JSC$11223_getStartOffset(),d;if(_.Uf&&K.nodeType===Node.ELEMENT_NODE&&(d=_.waa(K)))_.u6(d,0).select();else{d=xq(K)?K:_.LS(K,xq);var C=xq(l)?l:_.LS(l,xq);if(d||C)if(u.isCollapsed()){if(K.nodeType===Node.TEXT_NODE){u=!0;D===K.length&&(u=!1);if(aF==="end"||aF==="right")u=!1;K=K.parentNode;u=[].concat(_.Am(K.parentNode.childNodes)).indexOf(K)+(u?0:1);_.u6(K.parentNode,
u).select()}}else d?d.previousSibling&&d.previousSibling.length>0?_.Kk(l,u.JSC$11223_getEndOffset(),d.previousSibling,d.previousSibling.length-1).select():(K=document.createTextNode("\u200b"),d.parentNode.insertBefore(K,d),_.Kk(l,u.JSC$11223_getEndOffset(),K,0).select()):C&&(C.nextSibling&&C.nextSibling.length>0?_.Kk(K,u.JSC$11223_getStartOffset(),C.nextSibling,1).select():(l=document.createTextNode("\u200b"),C.parentNode.insertBefore(l,C.nextSibling),_.Kk(K,u.JSC$11223_getStartOffset(),l,l.length).select()));
aF=null}}else aF=null}else aF=null},
leftKeyPressed_:function(){aF="left"},
rightKeyPressed_:function(){aF="right"},
endKeyPressed_:function(){aF="end"},
maybeDeleteChip_:function(){var u=NnE(!0);if(u){var K=_.J3(),l=K.JSC$11223_getStartNode();K=K.JSC$11223_getStartOffset();_.XG(l,K,u,u.childNodes.length).select()}},
maybeBackspaceChip_:function(){var u=NnE(!1);if(u){var K=_.J3(),l=K.JSC$11223_getStartNode();K=K.JSC$11223_getStartOffset();_.XG(l,K,u,0).select()}},
maybeBackspaceChipWordMode_:function(u){var K=_.J3();if(K.isCollapsed()){var l=K.JSC$11223_getStartNode();K=K.JSC$11223_getStartOffset();var D=kQo(l,K,!0);D&&(_.XG(l,K,D,0).select(),document.execCommand("delete"),u.preventDefault(),u.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(u){var K=_.J3();if(K.isCollapsed()){var l=K.JSC$11223_getStartNode();K=K.JSC$11223_getStartOffset();var D=kQo(l,K,!1);D&&(_.XG(l,K,D,D.childNodes.length).select(),document.execCommand("delete"),u.preventDefault(),u.stopImmediatePropagation())}},
onContentClick:function(u){u.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(u){u.defaultPrevented||u.currentTarget.tagName==="YTD-COMMENT-INPUT"&&xq(u.target)&&u.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.bi(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.bi(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(u,K){u=wFE(u,this.emojiManager,K).cloneNode(!0);for(K=u.firstChild;K;)if(K.nodeType!==1)K=K.nextSibling;else switch(K.tagName){case "BR":var l=_.YA();_.ARw(l,K);K=l.nextSibling;break;case "DIV":(l=K.lastChild)&&K.nextSibling&&_.hy(_.YA(),l);K.previousSibling&&(K.previousSibling.nodeType===1||K.previousSibling.nodeType===3&&!K.previousSibling.textContent.endsWith("\n"))&&_.mI(_.YA(),K);l&&l.nodeName==="BR"&&_.Jq(l);l=K;K.hasChildNodes()?(K=K.firstChild,
_.Xaa(l)):(K=K.nextSibling,_.Jq(l));break;default:K=K.nextSibling}return Zgi(u)},
setTextAreaValue:function(u){u||(u="");var K=this.getEditableFormattedString_();K.text="";this.getEditableTextArea_().innerText="";typeof u==="string"&&(u={runs:[{text:u}]});K.text=u},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();aF=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var u=this.getEditableTextArea_();u&&(_.u6(u,u.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.E3("HTML_DIR")==="rtl"){var u=this.getEditableTextArea_(),K=this.getTextAreaValue()!==""?"auto":"rtl";u.setAttribute("dir",K)}},
handleInputEvent_:function(){var u=null;if(this.isEmojiButtonDisplayed){var K=this.getInputRange_();K&&(u=this.emojiInput.retrieveTextBeforeRange(K))}this.insertText_(u,!0);this.updateCharCount_();u=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=u.scrollHeight>u.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var u=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:u})},
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(u){this.isEmojiButtonDisplayed&&(u.preventDefault(),u.stopImmediatePropagation(),u=u.clipboardData.getData("text/plain"),this.insertText_(u,!1,!1),_.xs(this.hostElement,"input"))},
insertText_:function(u,K,l){K=K===void 0?!1:K;l=l===void 0?!0:l;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&u){var D=this.getInputRange_().cloneRange();this.emojiManager&&D&&(K&&this.emojiInput.offsetStartOfRangeBy(D,u.length),this.insertTextWithEmojis_(D,u,l),Tnp(this.getEditableTextArea_().lastChild)||(D=this.getInputRange_().cloneRange()),D&&(this.emojiInput.updateSuggestions(D,u),this.updateSuggestionOffset_(D)))}},
getSimpleString:_.WI,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(u){return u?"focused":"not-focused"},
computePlaceholderText_:function(u){return this.getSimpleString(u)},
computeEditableText_:function(u){return this.getSimpleString(u)},
onPrefilledContentDismissed_:function(u){u.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(u,K){u?this.fire("yt-autonav-pause-focus"):K!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(u){var K=this.getEditableTextArea_();[].concat(_.Am(u.dataTransfer.items)).forEach(function(l){l.kind==="string"&&l.type.match("^text/plain")&&l.getAsString(function(D){K.appendChild(document.createTextNode(D))})});
u.preventDefault()},
preventDefault_:function(u){u.preventDefault()},
onSuggestionInsert_:function(u){this.insertTextWithEmojis_(u.detail.range,u.detail.text)},
onEmojiSuggestionClick_:function(u){this.emojiInput.insertSuggestion(u.detail)},
updateSuggestionOffset_:function(u){if(this.emojiInput&&_.bi(this.emojiInput).querySelector("#dropdown")){var K=this.getEditableTextArea_().getBoundingClientRect().bottom,l=u.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(K-l)+5;K=this.getEditableTextArea_().getBoundingClientRect().left;u=u.getBoundingClientRect().left-K;_.bi(this.emojiInput).querySelector("#dropdown").style.marginLeft=u+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Ev("yt-post"));return this.localStorage}});var zc=function(){var u=_.Q.apply(this,arguments)||this;u.currentCommentOptionIndex=0;u.isEmojiPickerDisplayed=!1;u.emojiManager=_.Cl;u.isUgcEmpty=!1;u.userGeneratedCommentChangedHandler=function(){_.xs(u.hostElement,"ytd-pdg-user-generated-comment-changed");u.isEmojiYtdCommentInputEnabled&&(u.isUgcEmpty=!u.ytdCommentInputEl.getTextAreaValue())};
u.pasteHandler=function(K){K.preventDefault();K.stopImmediatePropagation();var l;if(K=(l=K.clipboardData)==null?void 0:l.getData("text/plain"))l=document.getSelection().getRangeAt(0),l.collapsed||l.deleteContents(),K=document.createTextNode(K),l.insertNode(K),l.selectNodeContents(K),l.collapse(!1),K=window.getSelection(),K.removeAllRanges(),K.addRange(l)};
u.onDocumentClick=function(K){if(u.isEmojiPickerDisplayed){var l,D,d;!(K.target instanceof Node)||(l=K.composedPath())!=null&&l.includes(u.editableTextEl)||(D=K.composedPath())!=null&&D.includes(u.emojiButtonEl)||(d=K.composedPath())!=null&&d.includes(u.emojiPickerEl)||(u.isEmojiPickerDisplayed=!1)}};
return u};
_.c(zc,_.Q);_.I=zc.prototype;_.I.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.I.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.I.detached=function(){var u;(u=this.contentEl)==null||u.removeEventListener("input",this.userGeneratedCommentChangedHandler);var K;(K=this.contentEl)==null||K.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.I.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.I.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var u;this.contentEl.textContent=this.rendererBehavior.getSimpleString((u=this.data)==null?void 0:u.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.I.reloadEmojis=function(){this.emojiPickerEl&&_.b(this.emojiPicker,_.B3k)&&this.emojiPickerEl.updateEmojiCategories()};
_.I.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.e8(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.I.handleBackgroundColorStyling=function(){var u;if((u=this.currentCommentOption)==null?0:u.commentBackgroundColorArgb){var K;_.e8(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Kg((K=this.currentCommentOption)==null?void 0:K.commentBackgroundColorArgb)})}else _.e8(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.I.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var u;(u=this.contentEl)==null||u.focus()}};
_.I.onEditButtonClick=function(u){var K=document.getSelection();K&&this.contentEl&&(u.stopPropagation(),u.preventDefault(),K.selectAllChildren(this.contentEl),K.collapseToEnd())};
_.I.onContentDrop=function(u){var K=this;if(u.dataTransfer){u=_.y(u.dataTransfer.items);for(var l=u.next();!l.done;l=u.next())l=l.value,l.kind==="string"&&l.type.match("^text/plain")&&l.getAsString(function(D){var d;(d=K.contentEl)==null||d.appendChild(document.createTextNode(D))})}};
_.I.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.I.getUserGeneratedCommentText=function(){var u,K=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(u=this.contentEl)==null?void 0:u.textContent;return K?K.trim():""};
_.I.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.I.onEmojiSelect=function(u){this.ytdCommentInputEl.onEmojiSelect(u)};
_.MN.Object.defineProperties(zc.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.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 u;return!((u=this.currentCommentOption)==null||!u.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var u;if(_.b((u=this.currentCommentOption)==null?void 0:u.chipRenderer,_.EXH)){var K;return _.b((K=this.currentCommentOption)==null?void 0:K.chipRenderer,_.EXH)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var u,K;return((u=this.data)==null?0:u.commentOptionRenderers)?_.b((K=this.data)==null?void 0:K.commentOptionRenderers[this.superThanksSelectedTierEntity.index],fT_):void 0}var l,D;return((l=this.data)==null?0:l.commentOptionRenderers)?_.b((D=this.data)==null?void 0:D.commentOptionRenderers[this.currentCommentOptionIndex],fT_):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var u;return this.rendererBehavior.getSimpleString((u=this.data)==null?void 0:u.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var u;return this.rendererBehavior.getSimpleString((u=this.data)==null?void 0:u.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var u,K;return(K=_.b((u=this.data)==null?void 0:u.commentDialog,_.eNs))==null?void 0:K.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var u,K;return(K=_.b((u=this.data)==null?void 0:u.commentDialog,_.eNs))==null?void 0:K.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var u,K;return(K=_.b((u=this.data)==null?void 0:u.commentDialog,_.eNs))==null?void 0:K.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var u,K,l=(K=_.b((u=this.data)==null?void 0:u.commentDialog,_.eNs))==null?void 0:K.emojiPicker;if(!_.b(l,_.B3k)||!_.b(l,_.B3k).categories)return!1;u=function(C){return C.emojiPickerCategoryRenderer?C.emojiPickerCategoryRenderer.emojiIds&&C.emojiPickerCategoryRenderer.emojiIds.length>0:C.emojiPickerUpsellCategoryRenderer?C.emojiPickerUpsellCategoryRenderer.emojis&&C.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var D,d;return((D=_.b(l,_.B3k))==null?0:(d=D.categories)==null?0:d.find(u))?!0:!1}}});
zc.prototype.onEmojiSelect=zc.prototype.onEmojiSelect;zc.prototype.dataChanged=zc.prototype.dataChanged;zc.prototype.currentCommentOptionChanged=zc.prototype.currentCommentOptionChanged;_.g([_.e(_.Ll),_.N("design:type",Object)],zc.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],zc.prototype,"rendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],zc.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.BF("#content-dom-if"),_.N("design:type",_.Xr)],zc.prototype,"contentDomIfEl",void 0);_.g([_.BF("#content-no-emojis"),_.N("design:type",HTMLElement)],zc.prototype,"contentEl",void 0);_.g([_.BF("#container"),_.N("design:type",HTMLElement)],zc.prototype,"containerEl",void 0);_.g([_.BF("#comment-chip-container"),_.N("design:type",HTMLElement)],zc.prototype,"paidCommentChipContainerEl",void 0);_.g([_.BF("#text-input"),_.N("design:type",HTMLElement)],zc.prototype,"editableTextEl",void 0);
_.g([_.BF("#emoji-button"),_.N("design:type",HTMLElement)],zc.prototype,"emojiButtonEl",void 0);_.g([_.BF("#emoji-picker > yt-emoji-picker-renderer"),_.N("design:type",Object)],zc.prototype,"emojiPickerEl",void 0);_.g([_.BF("#text-input > ytd-comment-input"),_.N("design:type",Object)],zc.prototype,"ytdCommentInputEl",void 0);_.g([_.U(),_.N("design:type",Object)],zc.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],zc.prototype,"currentCommentOptionIndex",void 0);
_.g([_.U({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Znp}),_.N("design:type",Object)],zc.prototype,"superThanksSelectedTierEntity",void 0);_.g([_.U(),_.N("design:type",Object)],zc.prototype,"isEmojiPickerDisplayed",void 0);_.g([_.U(),_.N("design:type",Object)],zc.prototype,"emojiManager",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],zc.prototype,"isUgcEmpty",void 0);
_.g([_.JU("currentCommentOption"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zc.prototype,"currentCommentOptionChanged",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zc.prototype,"dataChanged",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zc.prototype,"isEmojiYtdCommentInputEnabled",null);
_.g([_.R("data.title"),_.N("design:type",Object),_.N("design:paramtypes",[])],zc.prototype,"title",null);_.g([_.R("data.authorText"),_.N("design:type",Object),_.N("design:paramtypes",[])],zc.prototype,"channelName",null);_.g([_.R("data.commentOptionRenderers","currentCommentOption"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zc.prototype,"shouldShowPaidCommentChipRenderer",null);
_.g([_.R("data.commentOptionRenderers","currentCommentOption"),_.N("design:type",Object),_.N("design:paramtypes",[])],zc.prototype,"paidCommentChipRenderer",null);_.g([_.R("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],zc.prototype,"currentCommentOption",null);
_.g([_.R("data.defaultCommentText","superThanksSelectedTierEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],zc.prototype,"commentText",null);_.g([_.R("data.placeholderText"),_.N("design:type",Object),_.N("design:paramtypes",[])],zc.prototype,"placeholderText",null);_.g([_.R("data.commentDialog.commentDialogRenderer.editableText"),_.N("design:type",Object),_.N("design:paramtypes",[])],zc.prototype,"editableText",null);
_.g([_.R("data.commentDialog.commentDialogRenderer.emojiButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],zc.prototype,"emojiButton",null);_.g([_.R("data.commentDialog.commentDialogRenderer.emojiPicker"),_.N("design:type",Object),_.N("design:paramtypes",[])],zc.prototype,"emojiPicker",null);
_.g([_.R("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zc.prototype,"isEmojiButtonDisplayed",null);_.g([_.PF("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],zc.prototype,"onEmojiSelect",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],zc);
_.F(zc,"ytd-pdg-comment-preview-renderer",function(){if(Gep!==void 0)return Gep;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Gep=u},{mode:2});var x$E;var e5=function(){var u=_.Q.apply(this,arguments)||this;u.selected=!1;return u};
_.c(e5,_.Q);_.I=e5.prototype;_.I.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.I.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.I.dataChanged=function(){this.data&&(_.O9(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.e8(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Kg(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Kg(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.I.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.I.onClick=function(){this.logClick()};
_.I.onKeyboardSelect=function(){_.xs(this.hostElement,"tap");this.onClick()};
_.I.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
e5.prototype.onClick=e5.prototype.onClick;e5.prototype.selectedChanged=e5.prototype.selectedChanged;e5.prototype.dataChanged=e5.prototype.dataChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],e5.prototype,"componentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.T7),_.N("design:type",Object)],e5.prototype,"ironA11yKeysBehavior",void 0);
_.g([_.e(_.sp),_.N("design:type",Object)],e5.prototype,"ironSelectableBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],e5.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],e5.prototype,"shownThumbnail",void 0);_.g([_.U(),_.N("design:type",Object)],e5.prototype,"basePriceText",void 0);_.g([_.U(),_.N("design:type",Object)],e5.prototype,"purchaseCommand",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],e5.prototype,"selected",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],e5.prototype,"dataChanged",null);_.g([_.JU("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],e5.prototype,"selectedChanged",null);_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],e5.prototype,"onClick",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],e5);
_.F(e5,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(x$E!==void 0)return x$E;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return x$E=u},{mode:1});var RF=function(){var u=_.Q.apply(this,arguments)||this;u.selectedItemIndex=0;u.buyButtonDisabled=!1;return u};
_.c(RF,_.Q);_.I=RF.prototype;
_.I.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]]"}}}}}};
_.I.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var u;var K=(u=_.b(this.data.colorSlider,Us_))==null?void 0:u.notches[this.selectedItemIndex].purchaseCommand}else{var l;K=(l=_.b(this.data.selectableItemButtons[this.selectedItemIndex],PXo))==null?void 0:l.purchaseCommand}if(K){u=_.b(K,_.Pf0);u.productData||(u.productData={});var D;u.productData={pdgData:{commentMessageText:(D=this.commentPreviewRenderer)==null?void 0:D.getUserGeneratedCommentText()}};
_.xs(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(K)}}};
_.I.dataChanged=function(){if(this.data){_.Cl.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.H$H(_.Cl,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Cl.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var u;this.buyButtonDisabled=!((u=_.b(this.data.commentPreview,Q8G))==null||!u.placeholderText);this.updatePriceSelectorStatus();var K;if((K=this.data)==null?0:K.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;u=[];this.data.preloadImages&&(u=this.data.preloadImages);
u=u.map(function(l){return _.bt(l.thumbnails,1920)});
u=_.y(u);for(K=u.next();!K.done;K=u.next())(K=K.value)&&_.arL(K).thenCatch(function(){_.hV(Error("nl"))})}};
_.I.superThanksSelectedTierEntityChanged=function(){var u;(this==null?void 0:(u=this.superThanksSelectedTierEntity)==null?void 0:u.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.I.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.I.updatePriceSelectorStatus=function(){this.isColorSlider?(_.bi(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.bi(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.bi(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.bi(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.I.closeBuyFlow=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.I.onUserGeneratedContentChanged=function(){var u;this.buyButtonDisabled=!((u=this.commentPreviewRenderer)==null?0:u.getUserGeneratedCommentText())};
_.I.updateSelectedItemIndexFromBinding=function(u){this.selectedItemIndex=u.detail.value};
_.MN.Object.defineProperties(RF.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var u;return!((u=this.data)==null||!u.disclaimerText)}}});
RF.prototype.onUserGeneratedContentChanged=RF.prototype.onUserGeneratedContentChanged;RF.prototype.closeBuyFlow=RF.prototype.closeBuyFlow;RF.prototype.selectedItemIndexChanged=RF.prototype.selectedItemIndexChanged;RF.prototype.superThanksSelectedTierEntityChanged=RF.prototype.superThanksSelectedTierEntityChanged;RF.prototype.dataChanged=RF.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],RF.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],RF.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],RF.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],RF.prototype,"selectedItemIndex",void 0);_.g([_.U(),_.N("design:type",Boolean)],RF.prototype,"isColorSlider",void 0);
_.g([_.U(),_.N("design:type",Object)],RF.prototype,"buyButtonDisabled",void 0);_.g([_.U({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Znp}),_.N("design:type",Object)],RF.prototype,"superThanksSelectedTierEntity",void 0);_.g([_.BF("ytd-pdg-comment-preview-renderer"),_.N("design:type",Object)],RF.prototype,"commentPreviewRenderer",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],RF.prototype,"ytdReduxBehavior",void 0);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RF.prototype,"dataChanged",null);_.g([_.JU("superThanksSelectedTierEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RF.prototype,"superThanksSelectedTierEntityChanged",null);_.g([_.JU("selectedItemIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RF.prototype,"selectedItemIndexChanged",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RF.prototype,"closeBuyFlow",null);_.g([_.PF("ytd-pdg-user-generated-comment-changed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RF.prototype,"onUserGeneratedContentChanged",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],RF.prototype,"isDisclaimerTextShown",null);
_.g([_.T({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],RF);
_.F(RF,"yt-super-vod-buy-flow-content-renderer",function(){if(rLo!==void 0)return rLo;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return rLo=u},{mode:1});var S_E;var Ut=function(){var u=_.Q.apply(this,arguments)||this;u.lottieAnimationRef={};return u};
_.c(Ut,_.Q);_.I=Ut.prototype;_.I.created=function(){_.d0.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Ql(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.I.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.xs(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.I.detached=function(){this.autoCloseJobId&&_.YL.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Ql(this,this.onPopupIronOverlayOpened))};
_.I.dataChanged=function(){var u=this;this.data&&this.data.autoCloseDelay&&(_.Sy(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.zH(_.YL,function(){u.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.e8(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.I.onDOMLoadedLottie=function(){var u=this,K,l,D=Number((K=this.data)==null?void 0:(l=K.autoCloseDelay)==null?void 0:l.seconds)||0;this.fadeOutJobId=_.zH(_.YL,function(){u.lottiePlayerEl.classList.add("fadeout")},(D-.25)*1E3);
this.autoCloseJobId=_.zH(_.YL,function(){u.closePopup()},D*1E3)};
_.I.openPopup=function(){this.ironOverlayBehavior.open()};
_.I.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.Sy(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.ay(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.GB().resolve(_.t9).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.YL.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.YL.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.I.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var u,K;(u=this.lottieAnimationRef)==null||(K=u.lottieEl)==null||K.destroy();u=this.data.lottie;var l,D;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:u.url+"_"+Math.random(),path:u.url,autoplay:!0,loop:(D=(l=u.settings)==null?void 0:l.loop)!=null?D:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.MN.Object.defineProperties(Ut.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var u,K;return!!((u=this.data)==null?0:(K=u.lottie)==null?0:K.url)}}});
Ut.prototype.maybeInitializeLottie=Ut.prototype.maybeInitializeLottie;Ut.prototype.dataChanged=Ut.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ut.prototype,"rendererBehavior",void 0);_.g([_.e(_.oP),_.N("design:type",Object)],Ut.prototype,"ironOverlayBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ut.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Ut.prototype,"lottiePlayerProps",void 0);
_.g([_.U(),_.N("design:type",Object)],Ut.prototype,"lottieAnimationRef",void 0);_.g([_.BF("ytd-lottie-player"),_.N("design:type",HTMLElement)],Ut.prototype,"lottiePlayerEl",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ut.prototype,"dataChanged",null);_.g([_.R("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ut.prototype,"hasLottieAnimation",null);
_.g([_.JU("data.lottie.url"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ut.prototype,"maybeInitializeLottie",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Ut);
_.F(Ut,"ytd-desktop-image-overlay-renderer",function(){if(S_E!==void 0)return S_E;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return S_E=u},{mode:1});var bhB;var fQ=function(){return _.Q.apply(this,arguments)||this};
_.c(fQ,_.Q);_.I=fQ.prototype;_.I.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"}}}}};
_.I.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",_.Ql(this,this.closePopup))};
_.I.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Ql(this,this.closePopup))};
_.I.dataChanged=function(){_.bI(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.b(this.data.header,R2o)&&(this.hasBackgroundBanner=!!_.b(this.data.header,R2o).backgroundBanner)};
_.I.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Ql(this,this.closePopup))};
_.I.closePopup=function(){this.data&&this.data.onCloseCommand&&_.c0(this.hostElement,[this.data.onCloseCommand])};
fQ.prototype.handleBuyflowSelectionSubmitted=fQ.prototype.handleBuyflowSelectionSubmitted;fQ.prototype.dataChanged=fQ.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],fQ.prototype,"data",void 0);
_.g([_.U({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],fQ.prototype,"hasBackgroundBanner",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fQ.prototype,"dataChanged",null);_.g([_.PF("yt-pdg-buy-flow-selection-submitted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fQ.prototype,"handleBuyflowSelectionSubmitted",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],fQ);
_.F(fQ,"ytd-pdg-buy-flow-renderer",function(){if(bhB!==void 0)return bhB;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return bhB=u},{mode:1});var OhH;var QN=function(){var u=_.Q.apply(this,arguments)||this;u.isOpen=!1;u.isPlaylistCreated=!1;return u};
_.c(QN,_.Q);_.I=QN.prototype;_.I.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.I.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.xs(this.hostElement,"yt-refit")};
_.I.onCreateTap=function(){var u=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.c0(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(K,l){if(!_.S("killswitch_ep_in_create_playlist_response")&&(l==null?0:l.actions))for(K=_.y(l.actions),l=K.next();!l.done;l=K.next())l=l.value,_.b(l,_.An)&&u.ytComponentBehavior.resolveCommand(l)}}]),this.isPlaylistCreated=!0)};
_.I.onKeydown=function(u){if(u.keyCode===13)this.onCreateTap()};
_.I.onServiceRequestCompleted=function(u){u.stopPropagation();_.Sy(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.I.computePrivacyBadge=function(u){return u?[{metadataBadgeRenderer:u}]:[]};
QN.prototype.onServiceRequestCompleted=QN.prototype.onServiceRequestCompleted;QN.prototype.onKeydown=QN.prototype.onKeydown;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],QN.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],QN.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],QN.prototype,"isOpen",void 0);
_.g([_.U(),_.N("design:type",Object)],QN.prototype,"isPlaylistCreated",void 0);_.g([_.U({value:{REQUIRED_LABEL:_.QQ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.QQ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.N("design:type",Object)],QN.prototype,"addToStrings",void 0);_.g([_.U({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.N("design:type",Array)],QN.prototype,"privacyBadge",void 0);
_.g([_.BF("#privacy-input"),_.N("design:type",Object)],QN.prototype,"privacyInput",void 0);_.g([_.BF("#name-input"),_.N("design:type",Object)],QN.prototype,"nameInput",void 0);_.g([_.PF("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],QN.prototype,"onKeydown",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],QN.prototype,"onServiceRequestCompleted",null);
_.g([_.T({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],QN);
_.F(QN,"ytd-add-to-playlist-create-renderer",function(){if(OhH!==void 0)return OhH;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return OhH=u},{mode:1});var cLp;var a9H;var PM=function(){var u=_.Q.apply(this,arguments)||this;u.transferState="TRANSFER_STATE_UNKNOWN";return u};
_.c(PM,_.Q);PM.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
PM.prototype.onCheckboxChange=function(u){var K=this;this.data&&_.It(this,"yt-playlist-checkbox-changed",function(){var l=_.HF(u).checked?K.data.addToPlaylistServiceEndpoint:K.data.removeFromPlaylistServiceEndpoint;l&&_.GB().resolve(_.t9).resolveCommand(l,{form:{element:K.hostElement}});_.S("dl_playlist_killswitch")||K.transferState!=="TRANSFER_STATE_UNKNOWN"&&K.transferState!=="TRANSFER_STATE_FAILED"&&K.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:K.data.playlistId,action:"ACTION_SYNC"}})},
100)};
PM.prototype.computeIconType=function(u){return u?"yt-icons:"+u.toLowerCase():null};
PM.prototype.dataChanged=PM.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],PM.prototype,"data",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],PM.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],PM.prototype,"ytComponentBehavior",void 0);_.g([_.BF("#checkbox"),_.N("design:type",HTMLInputElement)],PM.prototype,"checkbox",void 0);
_.g([_.U({selector:_.Lm,selectorArgs:["data.playlistId"]}),_.N("design:type",String)],PM.prototype,"transferState",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PM.prototype,"dataChanged",null);_.g([_.T({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],PM);
_.F(PM,"ytd-playlist-add-to-option-renderer",function(){if(a9H!==void 0)return a9H;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return a9H=u},{mode:1});_.v4(Y9_);_.U4(Y9_,"ytd-menu-title-renderer",{propNames:["data"]});var Jr=function(){var u=_.Q.apply(this,arguments)||this;u.addToStrings={ADD_TO_DROPDOWN_LABEL:_.QQ("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};u.closeButtonAriaLabel=_.QQ("SBOX_INAPPROPRIATE_CANCEL");u.dialog=_.S("desktop_add_to_playlist_renderer_dialog_popup");return u};
_.c(Jr,_.Q);_.I=Jr.prototype;_.I.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"}}}};
_.I.onPopupOpened=function(){_.cF(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.I.onPopupClosed=function(){_.cF(this.playlists,"scrollable",!1)};
_.I.computeAriaLabel=function(){var u;if(this==null?0:(u=this.data)==null?0:u.actions){u=_.y(this.data.actions);for(var K=u.next();!K.done;K=u.next())if(K=K.value,K.menuTitleRenderer)return _.WI(K.menuTitleRenderer.title)}};
_.I.onTapClose=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.MN.Object.defineProperties(Jr.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var u;if(this==null?0:(u=this.data)==null?0:u.actions){u=_.y(this.data.actions);for(var K=u.next();!K.done;K=u.next())if(K=K.value,K.menuTitleRenderer)return K.menuTitleRenderer}return!1}}});
Jr.prototype.onPopupClosed=Jr.prototype.onPopupClosed;Jr.prototype.onPopupOpened=Jr.prototype.onPopupOpened;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Jr.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],Jr.prototype,"ytEventForwardingBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Jr.prototype,"ytRendererStamperBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],Jr.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Jr.prototype,"addToStrings",void 0);_.g([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.N("design:type",String)],Jr.prototype,"ariaLabel",void 0);_.g([_.U(),_.N("design:type",String)],Jr.prototype,"closeButtonAriaLabel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Jr.prototype,"dialog",void 0);
_.g([_.BF("#playlists"),_.N("design:type",HTMLElement)],Jr.prototype,"playlists",void 0);_.g([_.BF("ytd-add-to-playlist-create-renderer"),_.N("design:type",Object)],Jr.prototype,"createRenderer",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Jr.prototype,"menuTitleRenderer",null);_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jr.prototype,"onPopupOpened",null);
_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jr.prototype,"onPopupClosed",null);_.g([_.T({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Jr);
_.F(Jr,"ytd-add-to-playlist-renderer",function(){if(cLp!==void 0)return cLp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return cLp=u},{mode:1});var zok;var j5=function(){var u=_.Q.apply(this,arguments)||this;u.isPlaylistEditComplete=!1;u.isCollabEngagementDisabled=!1;u.closeButtonAriaLabel=_.QQ("SBOX_INAPPROPRIATE_CANCEL");u.saveButton={title:_.QQ("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"};u.onValueChanged=function(){u.updateSaveButtonState();u.computeCollabEngagementDisabled()};
return u};
_.c(j5,_.Q);_.I=j5.prototype;_.I.attached=function(){this.JSC$20337_scroller&&(this.JSC$20337_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20337_scroller.attached&&typeof this.JSC$20337_scroller.attached==="function"&&this.JSC$20337_scroller.attached())};
_.I.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.I.onPopupClosed=function(){this.reset()};
_.I.close=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.I.onClickSave=function(){var u=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var K=[];this.nameInput.value!==null&&K.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&K.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var l=Number(this.privacyInput.value);isNaN(l)||K.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:l})}this.votingInput.value!==null&&(l=this.votingInput.value)&&K.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:l});if(K.length>0){var D;_.b((D=this.data)==null?void 0:D.updateSettingsEndpoint,_.LP).actions=K;var d;if((d=this.data)==null?0:d.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){u.close()}}}),this.isPlaylistEditComplete=!0}}};
_.I.computePrivacyBadge=function(u){return u?[{metadataBadgeRenderer:u}]:[]};
_.I.computeEditorData=function(u){var K,l;return u==null?void 0:(K=u.sections)==null?void 0:(l=K[0])==null?void 0:l.playlistSettingsEditorCasualSectionRenderer};
_.I.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.I.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}}}}}};
_.I.computeAriaLabel=function(){var u,K,l,D=(u=this.data)==null?void 0:(K=u.sections)==null?void 0:(l=K[0])==null?void 0:l.playlistSettingsEditorCasualSectionRenderer;return _.WI(D==null?void 0:D.title)};
_.I.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"}))};
_.I.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.I.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.I.isNameChanged=function(){var u,K,l;return(((u=this.editorData)==null?void 0:(K=u.name)==null?void 0:(l=K.textInputFormFieldRenderer)==null?void 0:l.value)||"")!==(this.nameInput.value||"")};
_.I.isDescriptionChanged=function(){var u,K,l;return(((u=this.editorData)==null?void 0:(K=u.description)==null?void 0:(l=K.textInputFormFieldRenderer)==null?void 0:l.value)||"")!==(this.descriptionInput.value||"")};
_.I.isPrivacyChanged=function(){var u,K,l,D,d,C,W,M;return((W=(u=this.editorData)==null?void 0:(K=u.privacy)==null?void 0:(l=K.dropdownFormFieldRenderer)==null?void 0:(D=l.dropdown)==null?void 0:(d=D.dropdownRenderer)==null?void 0:(C=d.entries)==null?void 0:C.find(function(q){var v;return q==null?void 0:(v=q.privacyDropdownItemRenderer)==null?void 0:v.isSelected}))==null?void 0:(M=W.privacyDropdownItemRenderer)==null?void 0:M.int32Value)!==this.privacyInput.value};
_.I.isVotingChanged=function(){var u,K,l,D,d,C,W,M;return((W=(u=this.editorData)==null?void 0:(K=u.voting)==null?void 0:(l=K.dropdownFormFieldRenderer)==null?void 0:(D=l.dropdown)==null?void 0:(d=D.dropdownRenderer)==null?void 0:(C=d.entries)==null?void 0:C.find(function(q){var v;return q==null?void 0:(v=q.privacyDropdownItemRenderer)==null?void 0:v.isSelected}))==null?void 0:(M=W.privacyDropdownItemRenderer)==null?void 0:M.int32Value)!==this.votingInput.value};
j5.prototype.onPopupClosed=j5.prototype.onPopupClosed;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],j5.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],j5.prototype,"ytEventForwardingBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],j5.prototype,"ytRendererStamperBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],j5.prototype,"data",void 0);_.g([_.U({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.N("design:type",Array)],j5.prototype,"privacyBadge",void 0);_.g([_.U({computed:"computeEditorData(data)"}),_.N("design:type",Object)],j5.prototype,"editorData",void 0);_.g([_.U(),_.N("design:type",Object)],j5.prototype,"isPlaylistEditComplete",void 0);_.g([_.U(),_.N("design:type",Object)],j5.prototype,"isCollabEngagementDisabled",void 0);
_.g([_.U({value:{REQUIRED_LABEL:_.QQ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.QQ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.N("design:type",Object)],j5.prototype,"addToStrings",void 0);_.g([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.N("design:type",String)],j5.prototype,"ariaLabel",void 0);_.g([_.U(),_.N("design:type",String)],j5.prototype,"closeButtonAriaLabel",void 0);
_.g([_.U(),_.N("design:type",Object)],j5.prototype,"saveButton",void 0);_.g([_.BF("#name-input"),_.N("design:type",Object)],j5.prototype,"nameInput",void 0);_.g([_.BF("#description-input"),_.N("design:type",Object)],j5.prototype,"descriptionInput",void 0);_.g([_.BF("#privacy-input"),_.N("design:type",Object)],j5.prototype,"privacyInput",void 0);_.g([_.BF("#voting-input"),_.N("design:type",Object)],j5.prototype,"votingInput",void 0);
_.g([_.BF("#scroller"),_.N("design:type",Object)],j5.prototype,"JSC$20337_scroller",void 0);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],j5.prototype,"onPopupClosed",null);_.g([_.U(),_.N("design:type",Object)],j5.prototype,"onValueChanged",void 0);_.g([_.T({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],j5);
_.F(j5,"ytd-playlist-settings-editor-renderer",function(){if(zok===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);zok=u}u=zok;return u},{mode:1});var eoB;_.E4("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var BM=function(){return _.Q.apply(this,arguments)||this};
_.c(BM,_.Q);_.I=BM.prototype;_.I.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}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.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 u=this.get("data.nextButton.buttonRenderer.navigationEndpoint");u&&(this.nextNavigationEndpoint=u,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.I.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 u={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",u)}}};
_.I.onPopupOpened=function(u){u.detail!==this&&u.detail!==this.hostElement||!_.S("enable_premium_voluntary_pause")||_.Sy(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.I.onNextButtonTap=function(){var u=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);u&&this.ytdOpenPopupBehavior.openPopup(u)};
_.I.updateSelectedResponseIndexFromBinding=function(u){this.selectedResponseIndex=u.detail.value};
BM.prototype.onPopupOpened=BM.prototype.onPopupOpened;BM.prototype.onSelectedResponseIndexChange=BM.prototype.onSelectedResponseIndexChange;BM.prototype.dataChanged=BM.prototype.dataChanged;_.g([_.e(_.nl),_.N("design:type",Object)],BM.prototype,"ytdOpenPopupBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],BM.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Number)],BM.prototype,"selectedResponseIndex",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BM.prototype,"dataChanged",null);_.g([_.JU("selectedResponseIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BM.prototype,"onSelectedResponseIndexChange",null);
_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],BM.prototype,"onPopupOpened",null);_.g([_.T({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],BM);
_.F(BM,"ytd-red-cancel-survey-renderer",function(){if(eoB!==void 0)return eoB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return eoB=u},{mode:1});var Ro_;var pQ=function(){var u=_.Q.apply(this,arguments)||this;u.closeButtonAriaLabel=_.QQ("SBOX_INAPPROPRIATE_CANCEL");return u};
_.c(pQ,_.Q);pQ.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
pQ.prototype.onClickClose=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],pQ.prototype,"rendererStamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],pQ.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],pQ.prototype,"closeButtonAriaLabel",void 0);_.g([_.T({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],pQ);
_.F(pQ,"ytd-search-filter-options-dialog-renderer",function(){if(Ro_!==void 0)return Ro_;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Ro_=u},{mode:1});var U$k;var mnI=function(){return function(u){u=u.availabilityType;return u===void 0||u==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||u==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var ip=function(){var u=_.Q.apply(this,arguments)||this;u.qualityOptions=[];u.upsellOptions=[];u.showUpsellSection=!1;u.darkerDarkTheme=_.S("web_darker_dark_theme");u.rememberSettingsChecked=!1;return u};
_.c(ip,_.Q);_.I=ip.prototype;_.I.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}}}}};
_.I.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.I.updateQualityOptions=function(){if(this.formats===void 0)_.Sy(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var u=[],K=[];this.showUpsellSection=!1;for(var l=_.y(this.formats),D=l.next();!D.done;D=l.next())(D=D.value)&&(D.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?K.push(D):u.push(D));u.length&&(this.qualityOptions=XF_(u));K.length&&(this.showUpsellSection=!0,this.upsellOptions=XF_(K))}};
_.I.updateRememberString=function(){if(this.downloadQualityPickerEntity)var u=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var K;u=(K=this.data)==null?void 0:K.premiumRememberSettingString}else{var l;u=(l=this.data)==null?void 0:l.rememberSettingString}u=u===void 0?_.QQ("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):u;this.rememberSettingsCheckboxRenderer={title:_.GI(u),disabled:!1}};
_.I.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.MN.Object.defineProperties(ip.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var u;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(u=this.data)==null?void 0:u.qualityFormats}}});
ip.prototype.updateRememberString=ip.prototype.updateRememberString;ip.prototype.updateQualityOptions=ip.prototype.updateQualityOptions;ip.prototype.dataChanged=ip.prototype.dataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],ip.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],ip.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ip.prototype,"data",void 0);
_.g([_.e(_.Ll),_.N("design:type",Object)],ip.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Boolean)],ip.prototype,"selectedUpsellQuality",void 0);_.g([_.U({computed:"computeIcon_(data.premiumIcon)",value:""}),_.N("design:type",String)],ip.prototype,"premiumIcon",void 0);_.g([_.U({selector:VBV,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.N("design:type",Object)],ip.prototype,"downloadQualityPickerEntity",void 0);
_.g([_.U(),_.N("design:type",Array)],ip.prototype,"qualityOptions",void 0);_.g([_.U(),_.N("design:type",Array)],ip.prototype,"upsellOptions",void 0);_.g([_.U(),_.N("design:type",Object)],ip.prototype,"showUpsellSection",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],ip.prototype,"darkerDarkTheme",void 0);_.g([_.U(),_.N("design:type",Object)],ip.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.g([_.BF("#remember-settings"),_.N("design:type",HTMLInputElement)],ip.prototype,"rememberSettingsCheckbox",void 0);_.g([_.U(),_.N("design:type",Object)],ip.prototype,"rememberSettingsChecked",void 0);_.g([_.U(),_.N("design:type",Function)],ip.prototype,"onRememberSettingsCheckedChanged",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ip.prototype,"dataChanged",null);
_.g([_.JU("downloadQualityPickerEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ip.prototype,"updateQualityOptions",null);_.g([_.JU("selectedUpsellQuality"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ip.prototype,"updateRememberString",null);_.g([_.T({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],ip);
_.F(ip,"ytd-download-quality-selector-content",function(){if(U$k!==void 0)return U$k;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return U$k=u},{mode:1});var f9E;var Tc=function(){var u=_.Q.apply(this,arguments)||this;u.selectedUpsellQuality=!1;u.qualityOptions=[];u.darkerDarkTheme=_.S("web_darker_dark_theme");u.useUpsellDismissAlternate=_.S("use_not_now_dl_upsell_dismiss_cta");u.shouldShowAlternateUpsellDimiss=!1;u.rememberSettings=!1;u.rememberSettingsChecked=!1;u.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};u.rememberSettingsCheckedChanged=function(K){u.rememberSettingsChecked=K};
return u};
_.c(Tc,_.Q);_.I=Tc.prototype;
_.I.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.GI(_.QQ("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.GI(_.QQ("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.GI(_.QQ("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.GI(_.QQ("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.I.updateQualityOptions=function(){this.formats===void 0?_.Sy(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=XF_(this.formats)};
_.I.onQualityOptionsSelect=function(u){if(this.qualityOptions&&u){u!==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 K=_.y(this.qualityOptions.entries()),l=K.next();!l.done;l=
K.next()){l=_.y(l.value);var D=l.next().value;l=l.next().value;var d=void 0,C=void 0;if(((d=l)==null?void 0:(C=d.settingsRadioOptionRenderer)==null?void 0:C.id)===u){this.selectedQualityIndex=D;u=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((u=this.formats[D])==null?void 0:u.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.I.onClickSubmit=function(){var u;if((u=this.downloadButtonRenderer)==null||!u.isDisabled){var K,l;u=(l=(K=this.data)==null?void 0:K.onSubmitEndpoint)!=null?l:{};var D,d;if(this.formats&&(((D=_.b(u,_.JK))==null?0:D.videoId)||((d=_.b(u,_.BJ))==null?0:d.playlistId))){var C,W,M,q,v,G;K={formatType:(q=(C=this.formats)==null?void 0:(W=C[(M=this.selectedQualityIndex)!=null?M:0])==null?void 0:W.format)!=null?q:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(v=this.getOfflineEndpoint(u))==null?void 0:(G=v.actionParams)==null?void 0:G.settingsAction)};this.getOfflineEndpoint(u).actionParams=K;this.ytComponentBehavior.resolveCommand(u)}_.Sy(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.I.onClickUpsell=function(){var u;if((u=this.upsellButtonRenderer)==null||!u.isDisabled){var K,l;u=(l=(K=this.data)==null?void 0:K.upsellEndpoint)!=null?l:{};this.ytComponentBehavior.resolveCommand(u);_.Sy(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);K="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var D,d,C,W;K=(W=(D=this.formats)==null?void 0:(d=D[(C=this.selectedQualityIndex)!=null?C:0])==null?void 0:d.format)!=null?W:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:K}})}};
_.I.onClickClose=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.I.getOfflineSettingsAction=function(u,K){return u?K===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":K:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.I.getOfflineEndpoint=function(u){return _.b(u,_.JK)?_.b(u,_.JK):_.b(u,_.BJ)};
_.MN.Object.defineProperties(Tc.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.GI(_.QQ("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var u;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(u=this.data)==null?void 0:u.qualityFormats}}});
Tc.prototype.updateQualityOptions=Tc.prototype.updateQualityOptions;Tc.prototype.dataChanged=Tc.prototype.dataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Tc.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Tc.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Tc.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Tc.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Number)],Tc.prototype,"selectedQualityIndex",void 0);_.g([_.U(),_.N("design:type",Object)],Tc.prototype,"selectedUpsellQuality",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Tc.prototype,"ytdReduxBehavior",void 0);
_.g([_.U({selector:VBV,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.N("design:type",Object)],Tc.prototype,"downloadQualityPickerEntity",void 0);_.g([_.U(),_.N("design:type",Array)],Tc.prototype,"qualityOptions",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Tc.prototype,"darkerDarkTheme",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Tc.prototype,"useUpsellDismissAlternate",void 0);
_.g([_.U(),_.N("design:type",Object)],Tc.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.g([_.U(),_.N("design:type",Object)],Tc.prototype,"downloadButtonRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],Tc.prototype,"upsellButtonRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],Tc.prototype,"cancelButtonRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],Tc.prototype,"upsellCancelButtonRenderer",void 0);_.g([_.U(),_.N("design:type",Object)],Tc.prototype,"rememberSettings",void 0);
_.g([_.U(),_.N("design:type",Object)],Tc.prototype,"rememberSettingsChecked",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tc.prototype,"dataChanged",null);_.g([_.JU("downloadQualityPickerEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tc.prototype,"updateQualityOptions",null);_.g([_.T({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Tc);
_.F(Tc,"ytd-download-quality-selector-renderer",function(){if(f9E!==void 0)return f9E;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return f9E=u},{mode:1});var QHI;var wS=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(wS,_.Q);wS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
wS.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"}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],wS.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],wS.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],wS.prototype,"darkerDarkTheme",void 0);_.g([_.U({computed:"computeIcon_(data.infoIcon)"}),_.N("design:type",Object)],wS.prototype,"infoIcon",void 0);
_.g([_.U({computed:"computeIcon_(data.warningIcon)"}),_.N("design:type",Object)],wS.prototype,"warningIcon",void 0);_.g([_.T({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],wS);
_.F(wS,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(QHI!==void 0)return QHI;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return QHI=u},{mode:1});var PNk;var Fg=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(Fg,_.Q);Fg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Fg.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"}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Fg.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Fg.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Fg.prototype,"darkerDarkTheme",void 0);_.g([_.T({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Fg);
_.F(Fg,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(PNk!==void 0)return PNk;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return PNk=u},{mode:1});var JLo;var VN=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(VN,_.Q);VN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
VN.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"}}}}};
VN.prototype.onServiceRequestSentOrCompleted=function(u,K){K&&K.actions&&K.actions.length>0&&_.Sy(this.hostElement,"yt-close-popup-action",[this.is])};
VN.prototype.onServiceRequestSentOrCompleted=VN.prototype.onServiceRequestSentOrCompleted;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],VN.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],VN.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],VN.prototype,"darkerDarkTheme",void 0);_.g([_.U(),_.N("design:type",Object)],VN.prototype,"data",void 0);
_.g([_.PF("yt-service-request-completed"),_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],VN.prototype,"onServiceRequestSentOrCompleted",null);_.g([_.T({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],VN);
_.F(VN,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(JLo!==void 0)return JLo;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return JLo=u},{mode:1});var jHE;var gS=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");u.submitButtonDisabled=!0;return u};
_.c(gS,_.Q);_.I=gS.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.I.onDataChanged=function(){var u,K,l;if(((u=this.data)==null?void 0:(K=u.confirmButton)==null?void 0:(l=K.buttonRenderer)==null?void 0:l.isDisabled)!==void 0){var D,d,C;this.submitButtonDisabled=(D=this.data)==null?void 0:(d=D.confirmButton)==null?void 0:(C=d.buttonRenderer)==null?void 0:C.isDisabled}};
_.I.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.I.updateSubmitButtonDisabledFromBinding=function(u){this.submitButtonDisabled=u.detail.value};
_.I.updateSubmitButtonDisabledFromConfirmCheckbox=function(u){this.submitButtonDisabled=!u.detail.value};
gS.prototype.onDataChanged=gS.prototype.onDataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],gS.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],gS.prototype,"darkerDarkTheme",void 0);
_.g([_.U(),_.N("design:type",Object)],gS.prototype,"submitButtonDisabled",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gS.prototype,"onDataChanged",null);_.g([_.T({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],gS);
_.F(gS,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(jHE!==void 0)return jHE;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return jHE=u},{mode:1});var BAk;var NJ=function(){return _.Q.apply(this,arguments)||this};
_.c(NJ,_.Q);_.MN.Object.defineProperties(NJ.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var u,K,l;return((u=this.data)==null?void 0:u.title)+" "+((K=this.data)==null?void 0:K.metadataPrimary)+" "+((l=this.data)==null?void 0:l.metadataSecondary)}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],NJ.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],NJ.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],NJ.prototype,"data",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],NJ.prototype,"ariaLabel",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],NJ);
_.F(NJ,"ytd-compact-product-list-item-renderer",function(){if(BAk!==void 0)return BAk;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return BAk=u},{mode:1});var pcH;var kc=function(){return _.Q.apply(this,arguments)||this};
_.c(kc,_.Q);kc.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]]"}}}}}};
_.MN.Object.defineProperties(kc.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],kc.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],kc.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],kc.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],kc.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],kc);
_.F(kc,"ytd-compact-product-list-renderer",function(){if(pcH!==void 0)return pcH;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return pcH=u},{mode:1});var ih2;var Z2=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(Z2,_.Q);_.I=Z2.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.I.getBackgroundUrl=function(){var u=this.get("data.headerImage.thumbnails");return u?"url("+_.bt(u,this.hostElement.clientWidth)+")":""};
_.I.onDataChanged=function(){var u=this.getBackgroundUrl();u&&(this.header.style.backgroundImage=u);u=_.AC();var K=_.Yr(),l=this.get("data.trackingParams");l&&K&&u&&_.DJ(u,K,_.gf(l));u=_.y(this.hostElement.querySelectorAll("yt-img-shadow"));for(K=u.next();!K.done;K=u.next())K.value.onShow()};
_.I.onPopupClosed=function(u){_.HF(u).localName==="ytd-membership-post-cancel-renderer"&&_.Sy(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
Z2.prototype.onPopupClosed=Z2.prototype.onPopupClosed;Z2.prototype.onDataChanged=Z2.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Z2.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Z2.prototype,"darkerDarkTheme",void 0);
_.g([_.BF("#header"),_.N("design:type",HTMLDivElement)],Z2.prototype,"header",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z2.prototype,"onDataChanged",null);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Z2.prototype,"onPopupClosed",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],Z2);
_.F(Z2,"ytd-membership-post-cancel-renderer",function(){if(ih2!==void 0)return ih2;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return ih2=u},{mode:1});var TAB;var Yc=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(Yc,_.Q);Yc.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
Yc.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Yc.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Yc.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Yc.prototype,"darkerDarkTheme",void 0);_.g([_.BF("ytd-feedback-survey-renderer"),_.N("design:type",Object)],Yc.prototype,"feedbackSurveyRenderer",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Yc);
_.F(Yc,"ytd-sponsorship-confirm-cancel-content",function(){if(TAB!==void 0)return TAB;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return TAB=u},{mode:1});var wc2;var Ar=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");u.maybeSubmitFeedback=function(){u.content&&u.content.maybeSubmitFeedback()};
return u};
_.c(Ar,_.Q);_.I=Ar.prototype;_.I.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.I.onYtPopupOpened=function(u,K){K===this&&this.data&&this.data.onOpenCommands&&_.ay(this.hostElement,this.data.onOpenCommands,this.hostElement);_.Sy(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.I.onYtPopupClosed=function(u,K){(K&&K.canceled===!0||K&&K.canceled===!1&&K.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.ay(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.I.onYtServiceRequestCompleted=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.I.onYtServiceRequestError=function(u){_.rs(this.hostElement,u.detail.error.message)};
_.I.onDataChanged=function(){if(this.isAttached){var u=this.backgroundUrl;u&&(_.bi(this.hostElement).querySelector("#header").style.backgroundImage=u)}};
_.MN.Object.defineProperties(Ar.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var u=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return u?"url("+_.bt(u,this.hostElement.clientWidth)+")":""}}});
Ar.prototype.onDataChanged=Ar.prototype.onDataChanged;Ar.prototype.onYtServiceRequestError=Ar.prototype.onYtServiceRequestError;Ar.prototype.onYtServiceRequestCompleted=Ar.prototype.onYtServiceRequestCompleted;Ar.prototype.onYtPopupClosed=Ar.prototype.onYtPopupClosed;Ar.prototype.onYtPopupOpened=Ar.prototype.onYtPopupOpened;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ar.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ar.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ar.prototype,"data",void 0);_.g([_.U({value:function(){return _.QQ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.N("design:type",String)],Ar.prototype,"closeButtonAriaLabel",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ar.prototype,"darkerDarkTheme",void 0);_.g([_.BF("#scrollable"),_.N("design:type",Object)],Ar.prototype,"scrollable",void 0);_.g([_.BF("ytd-sponsorship-confirm-cancel-content"),_.N("design:type",Object)],Ar.prototype,"content",void 0);
_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Ar.prototype,"onYtPopupOpened",null);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Ar.prototype,"onYtPopupClosed",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ar.prototype,"onYtServiceRequestCompleted",null);_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ar.prototype,"onYtServiceRequestError",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ar.prototype,"onDataChanged",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],Ar);
_.F(Ar,"ytd-sponsorship-confirm-cancel-renderer",function(){if(wc2!==void 0)return wc2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return wc2=u},{mode:_.zW("kevlar_poly_si_batch_j081")?1:2});var FSp;var Xg=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(Xg,_.Q);Xg.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Xg.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Xg.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Xg.prototype,"darkerDarkTheme",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Xg);
_.F(Xg,"ytd-sponsorships-celebration-content",function(){if(FSp!==void 0)return FSp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return FSp=
u},{mode:1});var VPk;var glI=_.oj(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),mX=function(){var u=_.Q.apply(this,arguments)||this;u.scriptsAppended=!1;u.buttonOverrides={type:"tonal",style:"overlay-dark"};return u};
_.c(mX,_.Q);_.I=mX.prototype;
_.I.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:_.S("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.onDataChanged=function(){var u;(u=this.header)==null||u.style.setProperty("background-color",this.backgroundColor);if(u=this.headerImageUrl){var K;(K=this.header)==null||K.style.setProperty("background-image",u)}K=_.AC(4);u=_.Yr(4);var l=this.get("data.trackingParams");if(l&&u&&K){var D=_.gf(l);_.DJ(K,u,D);_.S("combine_ve_grafts")?_.iT().graftServerVe(l,u,4):_.DJ(K,u,D)}K=_.y(this.hostElement.querySelectorAll("yt-img-shadow"));for(u=K.next();!u.done;u=K.next())u.value.onShow();if(K=this.get("data.gtmId"))_.Yx(K,
_.E3("GL","")),this.setupConversionTracking()};
_.I.setupConversionTracking=function(){if(!this.scriptsAppended){var u=document.createElement("script");var K=_.MT(glI.join(""));_.qT(u,K);document.head.appendChild(u);u=document.createElement("noscript");u.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(u);this.scriptsAppended=!0}};
_.I.onPopupClosed=function(u){if(_.HF(u).localName==="ytd-sponsorships-celebration-renderer"){_.Sy(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var K;this.data&&((K=this.data)==null?0:K.dismissCommand)&&_.Pb.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.MN.Object.defineProperties(mX.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var u=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Kg(u)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var u=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return u?"url("+_.bt(u,this.hostElement.getBoundingClientRect().width)+")":""}}});
mX.prototype.onPopupClosed=mX.prototype.onPopupClosed;mX.prototype.onDataChanged=mX.prototype.onDataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],mX.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],mX.prototype,"data",void 0);_.g([_.BF("#header"),_.N("design:type",HTMLElement)],mX.prototype,"header",void 0);
_.g([_.U(),_.N("design:type",Object)],mX.prototype,"scriptsAppended",void 0);_.g([_.U(),_.N("design:type",Object)],mX.prototype,"buttonOverrides",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mX.prototype,"onDataChanged",null);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],mX.prototype,"onPopupClosed",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],mX);
_.F(mX,"ytd-sponsorships-celebration-renderer",function(){if(VPk!==void 0)return VPk;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return VPk=u},{mode:1});var NAp;var hr=function(){var u=_.Q.apply(this,arguments)||this;u.isToggleChecked=!1;return u};
_.c(hr,_.Q);hr.prototype.onDataChanged=function(){var u;this.isToggleChecked=((u=this.data)==null?void 0:u.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
hr.prototype.close=function(){var u;((u=this.data)==null?0:u.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
hr.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var u,K=_.b((u=this.data)==null?void 0:u.switchButton,JTG);K&&(this.isToggleChecked&&K.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(K.switchOnInnertubeCommand),!this.isToggleChecked&&K.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(K.switchOffInnertubeCommand))};
hr.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
hr.prototype.onDataChanged=hr.prototype.onDataChanged;_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],hr.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],hr.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],hr.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],hr.prototype,"isToggleChecked",void 0);_.g([_.U({value:_.QQ("CLOSE")}),_.N("design:type",String)],hr.prototype,"closeButtonAriaLabel",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hr.prototype,"onDataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],hr);
_.F(hr,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(NAp!==void 0)return NAp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return NAp=u},{mode:1});var keG;var Et=function(){return _.Q.apply(this,arguments)||this};
_.c(Et,_.Q);_.I=Et.prototype;_.I.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"}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.detached=function(){this.playerElement.stop()};
_.I.onYtServiceRequestCompleted=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.I.onYtServiceRequestError=function(u){_.rs(this.hostElement,u.detail.error.message)};
_.I.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.I.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.I.getTier=function(u,K){return!u||!u.tiers||K<0?null:_.b(u.tiers[K],i72)};
_.I.moreThanOne=function(u){return!!(u&&u.length>1)};
_.I.tierOverviewTap=function(u){var K=this;this.selectedTier=u.model.index;_.W_(this,function(){_.xs(K.hostElement,"yt-refit")})};
_.I.computeSelectedClass=function(u,K){return this.isSelected(u,K)?"selected":""};
_.I.computeButtonAriaPressed=function(u,K){return this.isSelected(u,K)?"true":"false"};
_.I.isSelected=function(u,K){return u===K};
_.I.onDataChanged=function(){_.bi(this.hostElement).querySelector("#header-overlay").style.visibility="";_.bi(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 u=_.y(this.hostElement.querySelectorAll("yt-img-shadow")),
K=u.next();!K.done;K=u.next())K.value.onShow();var l;this.set("selectedTier",(l=this.get("data.targetTierIndex"))!=null?l:0);var D;(u=(D=this.data)==null?void 0:D.onVisible)&&this.ytComponentBehavior.resolveCommand(u)};
_.I.initializeVe=function(u){var K=_.AC(),l=_.Yr(),D=this.get("data.trackingParams");l&&K&&(this.screenLayer=4,K=_.KT(_.uMo)(void 0,69877,{clientScreenNonce:K,visualElement:l},void 0,void 0,void 0),_.mq(K,69877,4),l=_.Yr(4),D&&l&&(D=_.gf(D),_.DJ(K,l,D),u&&(this.offerVideoVe=_.Yo(74659),_.DJ(K,D,this.offerVideoVe))))};
_.I.setHeaderBackground=function(){var u=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.bi(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Kg(u);if(u=this.getHeaderImage())u=_.bt(u,screen.width),_.bi(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+u+")"};
_.I.getHeaderImage=function(){var u=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&u?u:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.I.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.I.setupVideoPlayer=function(u){var K=this,l,D,d,C;return _.H(function(W){if(W.nextAddress==1)return l=K.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),D=K.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.S("kevlar_player_update_killswitch")?K.playerElement.update({args:{autoplay:l,video_id:u,player_params:D}}):K.playerElement.loadVideoWithPlayerVars({autoplay:l,video_id:u,player_params:D}),
W.yield(K.playerElement.getPlayerPromise(),2);d=W.yieldResult;d.addEventListener("onStateChange",function(M){K.onPlayerStateChange(M)});
d.setScreenLayer(K.screenLayer);(C=_.AC(4))&&K.offerVideoVe&&_.Cm(C,K.offerVideoVe);l&&(K.pauseOtherPlayers(),K.playerElement.focusOnPlayer(),K.playerElement.getPlayer().hideControls(),_.Ve(_.YL,function(){K.fadeOutHeaderOverlay()},4E3));
_.TG(W)})};
_.I.onPlayerStateChange=function(u){u===1?this.backgroundPlayerElement&&(u=this.backgroundPlayerElement.player_.getPlayerState(),u!==1&&u!==3||this.backgroundPlayerElement.pause()):u===0&&(_.bi(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.bi(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.I.fadeOutHeaderOverlay=function(){_.bi(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.I.onHeaderTap=function(){if(this.offerVideo){_.bi(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var u;((u=this.playerElement.player_)==null?void 0:u.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(u=_.AC(4))&&this.offerVideoVe&&_.Wi(u,this.offerVideoVe)}};
_.I.getBackgroundImageLayerClass=function(u){return u?"background-image-layer-with-video":""};
_.I.getHeaderClass=function(u){return u?"header-with-video":""};
_.I.getHeaderOverlayClass=function(u){return u?"header-overlay-with-video":""};
_.I.getTitleContainerClass=function(u,K){return u?"title-container-with-video":K?"title-container-without-video-flexible":"title-container-without-video"};
_.I.tierTitleDisplayStatus=function(u){return this.moreThanOne(u)?"hide":"show"};
_.I.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.GB().resolve(_.uD).getPlayerElement():this.backgroundPlayerElement=_.xY();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var u=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=u===1||u===3;this.backgroundPlayerElement.pause()}};
_.I.isMiniplayerActive=function(){return _.GB().resolve(_.uD).isMiniplayerActive()};
_.I.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("selected-tier-changed",this.selectedTier))};
Et.prototype.selectedTierChangedForBinding=Et.prototype.selectedTierChangedForBinding;Et.prototype.onDataChanged=Et.prototype.onDataChanged;Et.prototype.onYtPopupClosed=Et.prototype.onYtPopupClosed;Et.prototype.onYtPopupOpened=Et.prototype.onYtPopupOpened;Et.prototype.onYtServiceRequestError=Et.prototype.onYtServiceRequestError;Et.prototype.onYtServiceRequestCompleted=Et.prototype.onYtServiceRequestCompleted;
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Et.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Et.prototype,"data",void 0);_.g([_.U({value:0}),_.N("design:type",Number)],Et.prototype,"selectedTier",void 0);
_.g([_.U({value:""}),_.N("design:type",String)],Et.prototype,"offerVideo",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Et.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.g([_.U({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.DA(this)}}),
_.N("design:type",String)],Et.prototype,"playerId",void 0);_.g([_.BF("tp-yt-paper-dialog-scrollable"),_.N("design:type",Object)],Et.prototype,"scrollable",void 0);_.g([_.BF("ytd-sponsorships-tier-renderer"),_.N("design:type",Object)],Et.prototype,"tierRenderer",void 0);_.g([_.BF("#player"),_.N("design:type",Object)],Et.prototype,"playerElement",void 0);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Et.prototype,"onYtServiceRequestCompleted",null);_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Et.prototype,"onYtServiceRequestError",null);
_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Et.prototype,"onYtPopupOpened",null);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Et.prototype,"onYtPopupClosed",null);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Et.prototype,"onDataChanged",null);
_.g([_.JU("selectedTier"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Et.prototype,"selectedTierChangedForBinding",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Et);
_.F(Et,"ytd-sponsorships-offer-renderer",function(){if(keG!==void 0)return keG;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return keG=u},{mode:_.zW("kevlar_poly_si_batch_j077")?1:2});var Zh_;var LQ=function(){var u=_.Q.apply(this,arguments)||this;u.buttonOverrides={type:"filled",style:"mono"};return u};
_.c(LQ,_.Q);LQ.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}}}}}};
LQ.prototype.backgroundColorChanged=function(){var u,K,l,D=(K=_.b((u=this.data)==null?void 0:u.content,Twp))==null?void 0:(l=K.backgroundColor)==null?void 0:l.backgroundColor;D&&(u=_.ui(D),_.bi(this.hostElement).querySelector("#banner").style.backgroundColor=u,_.bi(this.hostElement).querySelector("#abstract-art").style.backgroundColor=u)};
LQ.prototype.attached=function(){this.JSC$20423_scroller&&(this.JSC$20423_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20423_scroller.attached&&typeof this.JSC$20423_scroller.attached==="function"&&this.JSC$20423_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
LQ.prototype.backgroundColorChanged=LQ.prototype.backgroundColorChanged;_.g([_.U(),_.N("design:type",Object)],LQ.prototype,"data",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],LQ.prototype,"ytRendererstamperBehavior",void 0);_.g([_.BF("#scroller"),_.N("design:type",Object)],LQ.prototype,"JSC$20423_scroller",void 0);_.g([_.U(),_.N("design:type",Object)],LQ.prototype,"buttonOverrides",void 0);
_.g([_.JU("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LQ.prototype,"backgroundColorChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],LQ);
_.F(LQ,"ytd-sponsorships-promotion-celebration-renderer",function(){if(Zh_!==void 0)return Zh_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Zh_=u},{mode:_.zW("kevlar_poly_si_batch_j077")?1:2});var Y_H;var AL2;var um=function(){return _.Q.apply(this,arguments)||this};
_.c(um,_.Q);um.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
um.prototype.computeIsInitiallyChecked=function(u){return u===1};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],um.prototype,"data",void 0);_.g([_.BF("#checkbox"),_.N("design:type",Object)],um.prototype,"checkbox",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],um);
_.F(um,"ytd-subscription-toggle-option-renderer",function(){if(AL2!==void 0)return AL2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return AL2=u},{mode:1});var KC=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");u.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return u};
_.c(KC,_.Q);KC.prototype.configureRendererStamper=function(){return{"data.secondaryOptions":{id:"secondary-options",mapping:{subscriptionToggleOptionRenderer:"ytd-subscription-toggle-option-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
KC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
KC.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var u=_.bi(this.hostElement).querySelector("#options").selected;u=this.data.options[u].subscriptionRadioOptionRenderer.serviceEndpoint;var K=_.bi(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");K&&u&&u.modifyChannelNotificationPreferenceEndpoint&&(K=K.getValue())&&(u.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[K]);_.GB().resolve(_.t9).resolveCommand(u,{form:{element:this.hostElement}});
_.Sy(this.hostElement,"yt-close-popup-action")};
_.MN.Object.defineProperties(KC.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var u=this.data.options,K=0;K<u.length;K++){var l=u[K].subscriptionRadioOptionRenderer;if(l&&l.selected)return K}return null}}});
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],KC.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],KC.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],KC.prototype,"eventForwardingBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],KC.prototype,"ytRendererBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],KC.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],KC.prototype,"darkerDarkTheme",void 0);_.g([_.R("data.options"),_.N("design:type",Object),_.N("design:paramtypes",[])],KC.prototype,"initialIndex",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],KC);
_.F(KC,"ytd-subscription-notification-options-renderer",function(){if(Y_H!==void 0)return Y_H;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Y_H=u},{mode:1});var Xci;var lm=function(){return _.Q.apply(this,arguments)||this};
_.c(lm,_.Q);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],lm.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],lm.prototype,"data",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],lm);
_.F(lm,"ytd-tvfilm-offer-groups-renderer",function(){if(Xci!==void 0)return Xci;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Xci=u},{mode:1});var m$_;var De=function(){var u=_.Q.apply(this,arguments)||this;u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(De,_.Q);_.I=De.prototype;_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.I.computeThumbnailClass=function(u){return u.thumbnailOverlays?u.isShow?"thumbnail-show":"thumbnail-movie":u.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.I.computeCommerceSectionClass=function(u){return u.offers&&u.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.I.computeTitleClass=function(u){return u.offers&&u.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.I.onDataChanged=function(){[].concat(_.Am(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(u){u.onShow()})};
De.prototype.onDataChanged=De.prototype.onDataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],De.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],De.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],De.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],De.prototype,"darkerDarkTheme",void 0);
_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],De.prototype,"onDataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],De);
_.F(De,"ytd-ypc-offers-overlay-renderer",function(){if(m$_!==void 0)return m$_;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return m$_=u},{mode:_.zW("kevlar_poly_si_batch_j028")?1:2});var ho6;var ElE=function(){this.usedMethods=new Set};
ElE.prototype.add=function(u){this.usedMethods.add(u)};
ElE.prototype.reset=function(){this.usedMethods.clear()};var Kxk=function(u,K){this.query=u;this.previousSearchQuery=K;this.id=LSB++;if(!uFp){K=_.E3("SBOX_SETTINGS");u="https://"+((K==null?void 0:K.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var l=K==null?void 0:K.REQUEST_LANGUAGE;l&&(u+="&hl="+l);(l=K==null?void 0:K.REQUEST_DOMAIN)&&(u+="&gl="+l);u+="&client=youtube&gs_ri=youtube";(l=K==null?void 0:K.SUGG_EXP_ID)&&(u+="&sugexp="+encodeURIComponent(l));(l=K==null?void 0:K.PSUGGEST_TOKEN)&&(u+="&tok="+l);(K=
K==null?void 0:K.SESSION_INDEX)&&(u+="&authuser="+K);_.S("desktop_enable_visual_suggest")&&(u+="&h=180&w=320&ytvs=1");uFp=u}},lg6=function(u){var K="q="+encodeURIComponent(u.query);
u.previousSearchQuery&&(K+="&pq="+encodeURIComponent(u.previousSearchQuery));return K},DrE=function(){var u=_.E3("SBOX_SETTINGS"),K={};
if(u==null?0:u.SEND_VISITOR_DATA)K["X-Goog-Visitor-Id"]=u==null?void 0:u.VISITOR_DATA;return K},dri=function(u){var K=uFp;
K+="&gs_id="+u.id.toString(36);K+="&q="+encodeURIComponent(u.query);K+="&cp="+u.query.length;u.previousSearchQuery&&(K+="&pq="+encodeURIComponent(u.previousSearchQuery));(u=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(K+="&video_id="+u);return K},LSB=0,uFp="";var C86=_.q8.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,IgB=_.q8.SEARCH_ENTITY_SUGGESTION_MOVIE,yYB=_.q8.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,sdE=_.q8.SEARCH_ENTITY_SUGGESTION_TV_SHOW,oFE=function(u,K){this.text=u;this.bold=K},WxI=function(u,K,l){this.input=K;
this.index=l;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=u[0];this.type=u[1];this.subtypes=u[2];var D;this.displayText=b9((D=u[3])==null?void 0:D.b);var d;this.ignoredPrefix=b9((d=u[3])==null?void 0:d.a);var C,W;this.hasNewVideo=((C=u[3])==null?void 0:(W=C.zam)==null?void 0:W.toString())==="true"?!0:!1;var M;this.visualSuggestUrl=(M=u[3])==null?void 0:M.zai;var q;this.entityType=b9((q=u[3])==null?void 0:q.zap);var v;this.entityName=b9((v=u[3])==null?void 0:v.zao);var G;K=b9((G=
u[3])==null?void 0:G.zaf);var t;this.entityMid=(t=u[3])==null?void 0:t.zae;G=EHI(this.subtypes,this.entityMid);if(K&&G){if(K){t="";switch(G){case "YOUTUBE_ENTITY_TYPE_SONG":t=yYB;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":t=C86;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":t=sdE;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":t=IgB}G=G==="YOUTUBE_ENTITY_TYPE_SONG"||G==="YOUTUBE_ENTITY_TYPE_ALBUM"?t+" \u2022  \u2022 "+K:K}else G="";this.entitySubtitle=G}var x;this.externalChannelId=(x=u[3])==null?void 0:x.zav;var O;
this.entityThumbnailAttributionUrl=(O=u[3])==null?void 0:O.zaq},M4_=function(u,K){var l=[],D,d=(D=u.displayText)!=null?D:u.text;
(K==null?0:K.useEntityName)&&HdG(u)&&u.entityName&&(d=u.entityName);if(u.type===33)return l.push(new oFE(d,!1)),l;if(d.length>=u.input.length&&d.substring(0,u.input.length)===u.input)l.push(new oFE(u.input,!1)),l.push(new oFE(d.substring(u.input.length),!0));else{var C=new Set(u.input.split(/\s/)),W=d.split(/\s/);l=W.map(function(M,q){return new oFE(M.trim()+(q===W.length-1?"":" "),!C.has(M))})}return l},HdG=function(u){var K=!!EHI(u.subtypes);
u=!!u.entityMid;return K||u};var qmV=function(u){this.rawResponse=["",[],{}];this.suggestions=[];try{var K=JSON.parse(L3G(u));if(typeof K==="object"&&K!==null)this.rawResponse=K;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(D){console.log("Suggest: Failed to parse SuggestResponse!");return}var l=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(D,d){return new WxI(D,l,d)})};var $ri=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new ElE;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20460_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},nF_,rYH=function(){nF_||(nF_=new $ri);
return nF_};
$ri.prototype.updateSuggestions=function(u){var K=this;this.availableSuggestions.forEach(function(l){K.previousSuggestions[l]=!0});
this.availableSuggestions=u.map(function(l){var D=l.type.toString();l.subtypes.length>0&&(D+="i"+l.subtypes.join("i"),D+="k"+l.suggestionSources.COMPLETE_SERVER.toString());return D})};
var vFi=function(u,K){var l=Date.now();u.firstEditTime<0&&(u.firstEditTime=l);K&&(u.lastQueryBuildTime=l);u.lastEditTime=l};
$ri.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20460_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Gii=function(u){var K="";u.availableSuggestions.forEach(function(d){delete u.previousSuggestions[d]});
for(var l=_.y(Object.keys(u.previousSuggestions)),D=l.next();!D.done;D=l.next())D=D.value,u.previousSuggestions[D]&&(K+=(K?"j":"")+D);return K},t4i=function(u,K){var l=[];
K&&(l[1]=K.toString());l[0]="youtube";l[7]=Date.now()-u.startTime;l[6]=u.sessionNumber;u.zeroPrefixSuggestionCount>=0&&(l[33]=u.zeroPrefixSuggestionCount);l[13]=u.outOfSyncResponseCount;if(u.availableSuggestions.length>0){for(var D=K="",d=0,C=_.y(u.availableSuggestions),W=C.next();!W.done;W=C.next())W=W.value,W!==D&&(d>1&&(K+="l"+d),K+=(D?"j":"")+W,d=0,D=W),d+=1;d>1&&(K+="l"+d);l[3]=K}l[35]=Gii(u);u.selectedSuggestionIndex>=0&&(l[2]=u.selectedSuggestionIndex);var M;if(K=(M=_.E3("SBOX_SETTINGS"))==
null?void 0:M.SUGG_EXP_ID)l[19]=u.normalize(K),M=0,u.experimentTriggeredBeforeFinal&&(M|=1),u.experimentTriggeredFinal&&(M|=2),l[20]=M;l[26]=Array.from(u.inputMethodsTracker.usedMethods).join("j");if(u.JSC$20460_totalRoundTripTime>0){l[15]=u.JSC$20460_totalRoundTripTime;l[14]=u.maxRoundTripTime;M=[];for(d=K=0;d<10;d++)D=u.roundTripTimeHistogram[d],D===0?K++:(K>1?M.push(d+"-"+D):K===1?M.push("0j"+D):M.push(D.toString()),K=0);M=M.join("j");l[16]=M}u.zeroPrefixRoundTripTime>0&&(l[36]=u.zeroPrefixRoundTripTime);
u.lastQueryBuildTime>0&&(l[18]=u.lastQueryBuildTime-u.startTime);u.firstEditTime>0&&(l[4]=u.firstEditTime-u.startTime);u.lastEditTime>0&&(l[5]=u.lastEditTime-u.startTime);return l.join(".")};
$ri.prototype.normalize=function(u){return u.replaceAll(".","-")};
var xr_=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var dT=function(){var u=_.Q.apply(this,arguments)||this;u.microphoneSpinnerActive=!1;u.noAnimations=!1;u.boundExitClick=function(){u.onExitButtonClick()};
u.speechOverlayClassName="";u.isLevelAnimating=!1;u.playCloseDialogAudioFeedback=!0;u.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return u};
_.c(dT,_.Q);_.I=dT.prototype;_.I.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.I.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=o_I()};
_.I.dataChanged=function(){this.logDialog()};
_.I.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var u;(u=this.manager.audioPlayer)!=null&&(u.JSC$19750_audioEnabled=!1)}this.manager.stop();(u=this.manager.audioPlayer)!=null&&(u.JSC$19750_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.I.handleSpeechQueryCompleteAction=function(u){var K=u.navigationAction;K&&(u.trackingParams&&_.iT().graftServerVe(u.trackingParams,this.dialogVe,5),_.xs(this.hostElement,"yt-navigate",{endpoint:K,tempData:this.getNavigationParams(K),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.I.onExitButtonClick=function(){this.closeDialog()};
_.I.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var u;if((u=this.manager)!=null){var K;(K=u.audioPlayer)==null||Cu(K,"failure");u.setState("microphone-off");u.stop()}}else(u=this.manager)==null||u.start()};
_.I.transcriptionChanged=function(){var u,K;(((u=this.transcription)==null?0:u.low)||((K=this.transcription)==null?0:K.high))&&this.setState("transcribing",this.transcription)};
_.I.stateChanged=function(){this.setState(this.state,this.transcription)};
_.I.logDialog=function(){var u;(u=this.data)!=null&&u.trackingParams&&(u=_.iT(),_.ev(u,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=u.graftServerVe(this.data.trackingParams,void 0,5))};
_.I.getNavigationParams=function(u){var K={};if(_.S("web_yt_searchbox")){var l=rYH();l.inputMethodsTracker.add(6);l=t4i(l,15);K.gs_l=l;var D;K.oq=((D=_.b(u,_.BI))==null?void 0:D.query)||""}else if(u=window.ytvoicesearchloggingparams){if(u=u())K.oq=u.oq,K.gs_l=u.gs_l}else _.D_(Error("ol"));return K};
_.I.closeDialog=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.I.setState=function(u,K){if(this.data){var l=this.data,D={};switch(u){case "listening":D={headerText:l.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:l.microphoneButtonAriaLabel};break;case "timeout":D={headerText:l.promptHeader,microphoneState:"try-again",microphoneLabel:l.promptMicrophoneLabel,microphoneAriaLabel:l.promptMicrophoneLabel};break;case "microphone-off":D={headerText:l.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:l.promptMicrophoneLabel,
microphoneAriaLabel:l.promptMicrophoneLabel};break;case "transcribing":(K==null?0:K.low)||(K==null?0:K.high)?D={transcriptionLow:K==null?void 0:K.low,transcriptionHigh:K==null?void 0:K.high,microphoneState:"speaking",microphoneAriaLabel:l.microphoneButtonAriaLabel}:D={headerText:l.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:l.microphoneButtonAriaLabel};break;case "processing":D={headerText:l.loadingHeader,microphoneState:"processing",microphoneAriaLabel:l.microphoneButtonAriaLabel};
break;case "offline":D={headerText:l.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:l.connectionErrorMicrophoneLabel,microphoneAriaLabel:l.connectionErrorMicrophoneLabel};break;case "permission":D={headerText:l.permissionsHeader,bodyLine1:l.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:l.permissionsSubtext};break;case "permission-denied":D={headerText:l.disabledHeader,bodyLine1:l.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:l.disabledSubtext}}D.className=
u;this.speechOverlayState=D;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.I.setMicrophoneState=function(u){var K=this.isLevelAnimating;this.isLevelAnimating=u==="speaking";!K&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=u==="processing"&&!this.noAnimations};
_.I.setClass=function(u){this.speechOverlayClassName&&_.cF(this.hostElement,this.speechOverlayClassName,!1);u&&(this.speechOverlayClassName=u,_.cF(this.hostElement,u,!0))};
_.I.runLevelAnimation=function(){var u=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var K=1+Math.random()*.75,l=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+l/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+K+")");_.YL.addJob(function(){u.runLevelAnimation()},3,l)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
dT.prototype.stateChanged=dT.prototype.stateChanged;dT.prototype.transcriptionChanged=dT.prototype.transcriptionChanged;dT.prototype.onPopupClosed=dT.prototype.onPopupClosed;dT.prototype.dataChanged=dT.prototype.dataChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],dT.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],dT.prototype,"rendererStamperBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],dT.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],dT.prototype,"eventForwardingBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],dT.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],dT.prototype,"speechOverlayState",void 0);
_.g([_.U(),_.N("design:type",Object)],dT.prototype,"microphoneSpinnerActive",void 0);_.g([_.U({type:_.S("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.N("design:type",Object)],dT.prototype,"noAnimations",void 0);_.g([_.U({selector:function(u){var K;return(K=u.voiceSearch)==null?void 0:K.transcription}}),
_.N("design:type",Object)],dT.prototype,"transcription",void 0);_.g([_.U({selector:function(u){var K;return(K=u.voiceSearch)==null?void 0:K.overlay}}),
_.N("design:type",String)],dT.prototype,"state",void 0);_.g([_.U(),_.N("design:type",Object)],dT.prototype,"boundExitClick",void 0);_.g([_.BF("#microphone-levels"),_.N("design:type",HTMLElement)],dT.prototype,"level",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dT.prototype,"dataChanged",null);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dT.prototype,"onPopupClosed",null);
_.g([_.wn("transcription"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dT.prototype,"transcriptionChanged",null);_.g([_.wn("state"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dT.prototype,"stateChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],dT);
_.F(dT,"ytd-voice-search-dialog-renderer",function(){if(ho6!==void 0)return ho6;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return ho6=u},{mode:1});var Smi;var CC=function(){var u=_.Q.apply(this,arguments)||this;u.isOverlay=!1;u.hidden=!1;return u};
_.c(CC,_.Q);_.I=CC.prototype;_.I.onPopupClosed=function(){this.toggleIconState(!1)};
_.I.computeIcon=function(){var u,K,l;return(K=_.b((u=this.data)==null?void 0:u.icon,NwV))==null?void 0:(l=K.icon)==null?void 0:l.iconType};
_.I.computeIconBadgeShape=function(){var u;return{iconBadgeType:"cart",iconBadgeText:(u=this.iconBadgeEntity)==null?void 0:u.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.I.onClick=function(){var u;(u=this.data)!=null&&u.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.I.computeHidden=function(u){return!u};
_.I.toggleIconState=function(u){this.iconButton&&(this.iconButton.pressed=u)};
CC.prototype.onPopupClosed=CC.prototype.onPopupClosed;_.g([_.e(_.Ll),_.N("design:type",Object)],CC.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],CC.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],CC.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],CC.prototype,"isOverlay",void 0);
_.g([_.U({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.N("design:type",Object)],CC.prototype,"hidden",void 0);_.g([_.U({selectorArgs:["data.iconBadgeEntityKey"],selector:function(u,K){return _.eZ(u.entities,"iconBadgeEntity",K)}}),
_.N("design:type",Object)],CC.prototype,"iconBadgeEntity",void 0);_.g([_.BF("yt-icon-button"),_.N("design:type",HTMLButtonElement)],CC.prototype,"iconButton",void 0);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CC.prototype,"onPopupClosed",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],CC);
_.F(CC,"ytd-icon-badge-topbar-button-renderer",function(){if(Smi!==void 0)return Smi;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Smi=u},{mode:1});var bdV;var Ik=function(){var u=_.Q.apply(this,arguments)||this;u.premiumOptions=[];u.darkerDarkTheme=_.S("web_darker_dark_theme");return u};
_.c(Ik,_.Q);Ik.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.MN.Object.defineProperties(Ik.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Ik.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ik.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Array)],Ik.prototype,"premiumOptions",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Ik.prototype,"darkerDarkTheme",void 0);_.g([_.R("premiumOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ik.prototype,"hasPremiumOptions",null);
_.g([_.T({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],Ik);
_.F(Ik,"ytd-offline-promo-content",function(){if(bdV!==void 0)return bdV;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return bdV=u},{mode:1});var OdB;var s0=function(){var u=_.Q.apply(this,arguments)||this;u.premiumOptions=[];return u};
_.c(s0,_.Q);s0.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var u;this.premiumOptions=h4V((u=this.data)==null?void 0:u.formats)};
s0.prototype.onClickSubmit=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var u;(u=_.xY())==null||u.pause()};
s0.prototype.attached=function(){this.JSC$20480_scroller&&(this.JSC$20480_scroller.dialogElement=this.hostElement.parentNode)};
_.MN.Object.defineProperties(s0.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
s0.prototype.dataChanged=s0.prototype.dataChanged;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],s0.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],s0.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],s0.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],s0.prototype,"data",void 0);
_.g([_.U({computed:"computeIcon_(data.headersIcon)",value:""}),_.N("design:type",String)],s0.prototype,"headersIcon",void 0);_.g([_.U(),_.N("design:type",Array)],s0.prototype,"premiumOptions",void 0);_.g([_.BF("#scroller"),_.N("design:type",Object)],s0.prototype,"JSC$20480_scroller",void 0);_.g([_.R("headersIcon"),_.N("design:type",Object),_.N("design:paramtypes",[])],s0.prototype,"showIcon",null);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],s0.prototype,"dataChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],s0);
_.F(s0,"ytd-offline-promo-renderer",function(){if(OdB!==void 0)return OdB;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return OdB=u},{mode:1});var cYp;var ok=function(){var u=_.Q.apply(this,arguments)||this;u.playbackPauseInterval=NaN;u.isLoading=!1;u.hasError=!1;u.dialogClass="";u.youtubeLabel=_.QQ("LOGO_ALT_LABEL",{},"YouTube Home");u.logoName="yt-logos-ext:yt-logo-updated";u.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return u};
_.c(ok,_.Q);_.I=ok.prototype;_.I.onDataChange=function(){var u;if(this.showEOMV1Text=!((u=this.data)==null||!u.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.I.attached=function(){this.pausePlayer()};
_.I.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.I.handleLangSelect=function(u){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[u.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.I.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.I.handleSaveConsent=function(u){var K=this;this.showLoadingSpinner();this.showLoadingSpinner();fhE(_.b(u,kEE)).catch(function(l){_.hV(new _.wv("Something went wrong when save consent "+(l.message?l.message:l)+"."));K.hideLoadingSpinner();K.showErrorMessage()})};
_.I.handleDisablePersonalization=function(u){var K=this;this.showLoadingSpinner();Q96(_.b(u,NzH)).then(function(){K.dialog.close();K.resumePlayer()}).catch(function(l){_.hV(new _.wv("Something went wrong when disable personalization "+(l.message?l.message:l)+"."));
K.hideLoadingSpinner();K.showErrorMessage()})};
_.I.showLoadingSpinner=function(){var u=this;this.showSpinnerJobId=_.YL.addLowPriorityJob(function(){u.isLoading=!0},500)};
_.I.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.YL.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.I.showErrorMessage=function(){var u=this;this.hasError=!0;_.YL.addLowPriorityJob(function(){u.hasError=!1},2E3)};
_.I.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.zB(function(){try{var u=_.xY();u&&u.pause()}catch(K){}},100))};
_.I.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var u=_.xY();u&&u.play()}catch(K){}};
_.MN.Object.defineProperties(ok.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.data)==null||!u.eomV1Text)return[];u=[];for(var K=["SHIELD","WARNING","BAR_CHART"],l=this.data.eomV1Text.essentialCookieMsg.items,D=0;D<K.length&&D<l.length;D++)u.push({icon:K[D],text:l[D]});return u}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var u;if((u=this.data)==null||!u.eomV1Text)return[];u=[];for(var K=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],l=this.data.eomV1Text.nonEssentialCookieMsg.items,D=0;D<K.length&&D<l.length;D++)u.push({icon:K[D],text:l[D]});return u}}});
ok.prototype.onDataChange=ok.prototype.onDataChange;_.g([_.U(),_.N("design:type",Object)],ok.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],ok.prototype,"showEOMV1Text",void 0);_.g([_.U(),_.N("design:type",Object)],ok.prototype,"isLoading",void 0);_.g([_.U(),_.N("design:type",Object)],ok.prototype,"hasError",void 0);_.g([_.U(),_.N("design:type",Number)],ok.prototype,"showSpinnerJobId",void 0);_.g([_.U(),_.N("design:type",Object)],ok.prototype,"dialogClass",void 0);
_.g([_.BF("#dialog"),_.N("design:type",Object)],ok.prototype,"dialog",void 0);_.g([_.BF("#cb-header"),_.N("design:type",HTMLElement)],ok.prototype,"header",void 0);_.g([_.BF("#lang-select"),_.N("design:type",HTMLElement)],ok.prototype,"langSelect",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],ok.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],ok.prototype,"ytComponentBehavior",void 0);
_.g([_.U(),_.N("design:type",String)],ok.prototype,"youtubeLabel",void 0);_.g([_.U(),_.N("design:type",Object)],ok.prototype,"logoName",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ok.prototype,"onDataChange",null);_.g([_.R("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],ok.prototype,"eomEssentialCookieMsgItems",null);
_.g([_.R("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],ok.prototype,"eomNonEssentialCookieMsgItems",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],ok);
_.F(ok,"ytd-consent-bump-v2-lightbox",function(){if(cYp!==void 0)return cYp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return cYp=u},{mode:1});var agp;var Ww=function(){return _.Q.apply(this,arguments)||this};
_.c(Ww,_.Q);Ww.prototype.ready=function(){if(!_.pT()||dZB)var u=!0;else dZB=!0,u=!1;u||(u=document.querySelector("ytd-app"),u||(u=document.body),this.internalLightBox=_.bi(u).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.g([_.U(),_.N("design:type",Object)],Ww.prototype,"data",void 0);_.g([_.BF("#lightbox"),_.N("design:type",Object)],Ww.prototype,"lightBox",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Ww);
_.F(Ww,"ytd-consent-bump-v2-renderer",function(){if(agp!==void 0)return agp;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return agp=u},{mode:1});var zci;var ecV;var RcE;var Hw=function(){return _.Q.apply(this,arguments)||this};
_.c(Hw,_.Q);_.I=Hw.prototype;_.I.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&HzE(this.toastManager,this.toastType)};
_.I.open=function(u){this.toast&&(this.ephemeralAction&&_.GB().resolve(_.JG).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=u!=null?u:0,this.toastManager.enqueue(this.toast,u)):this.toast.open())};
_.I.close=function(u){var K;(K=this.toast)==null||K.close();this.toastManager&&u===1&&HzE(this.toastManager,u)};
_.I.refit=function(){var u;(u=this.toast)==null||u.refit()};
_.I.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var u;(u=this.toast)==null||u.close()}};
_.I.setVerticalOffset=function(u){this.toast&&(this.toast.verticalOffset=u,this.toast.fit())};
_.I.computeButtonClass_=function(u){return u?"toast-button":""};
_.I.computeText_=function(u){return _.WI(u)};
_.I.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.oi("toast-opened-changed",this.toastOpened))};
_.I.updateToastOpenedFromBinding=function(u){this.toastOpened=u.detail.value};
_.MN.Object.defineProperties(Hw.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var u,K,l=(u=this.data)==null?void 0:(K=u.actionButton)==null?void 0:K.buttonRenderer;return(l==null?void 0:l.command)||(l==null?void 0:l.serviceEndpoint)||(l==null?void 0:l.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 u=[],K;((K=this.data)==null?0:K.responseText)&&u.push(_.WI(this.data.responseText));var l;((l=this.data)==null?0:l.subText)&&u.push(_.WI(this.data.subText));var D,d;if((D=this.data)==null?0:(d=D.actionButton)==null?0:d.buttonRenderer){var C,W;u.push(((C=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(W=C.accessibilityData)==null?void 0:W.label)||_.WI(this.data.actionButton.buttonRenderer.text))}return u.filter(function(M){return M}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var u,K;return(K=(u=this.toast)==null?void 0:u.opened)!=null?K:!1}}});
Hw.prototype.toastOpenedChangedForBinding=Hw.prototype.toastOpenedChangedForBinding;Hw.prototype.toastOpenedChanged=Hw.prototype.toastOpenedChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Hw.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],Hw.prototype,"ytEventForwardingBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Hw.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Hw.prototype,"duration",void 0);
_.g([_.U(),_.N("design:type",Number)],Hw.prototype,"toastType",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Hw.prototype,"useCloseButton",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Hw.prototype,"closeToastOnActionButtonClick",void 0);_.g([_.U({value:function(){return _.QQ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.N("design:type",String)],Hw.prototype,"closeButtonAriaLabel",void 0);_.g([_.U(),_.N("design:type",Boolean)],Hw.prototype,"toastOpened",void 0);_.g([_.U(),_.N("design:type",Boolean)],Hw.prototype,"hasOpened",void 0);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hw.prototype,"command",null);_.g([_.R("labelText","command","duration"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hw.prototype,"ephemeralAction",null);
_.g([_.R("ephemeralAction"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Hw.prototype,"hasEphemeralAction",null);_.g([_.BF("#toast"),_.N("design:type",Object)],Hw.prototype,"toast",void 0);_.g([_.U({value:function(){return{style:"call-to-action-inverse"}}}),
_.N("design:type",Object)],Hw.prototype,"buttonOverrides",void 0);_.g([_.U({value:{style:"mono-inverse"}}),_.N("design:type",Object)],Hw.prototype,"closeButtonOverrides",void 0);_.g([_.U({value:function(){return _.GB().resolve(_.vv(_.R3))}}),
_.N("design:type",Object)],Hw.prototype,"toastManager",void 0);_.g([_.R("data.responseText","data.subText","data.actionButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hw.prototype,"labelText",null);_.g([_.JU("toastOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hw.prototype,"toastOpenedChanged",null);
_.g([_.JU("toastOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hw.prototype,"toastOpenedChangedForBinding",null);_.g([_.E9({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Hw);
_.F(Hw,"yt-notification-action-renderer",function(){if(RcE===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;ecV===void 0&&(ecV=document.createElement("template"));var D=ecV;l.call(K,D.content.cloneNode(!0),u.content.firstChild);RcE=u}u=RcE;return u},{mode:2});var Mv=function(){var u=_.Q.apply(this,arguments)||this;u.duration=4E3;u.downloadingCount=0;u.downloadedCount=0;u.downloadingOnlySmartDownloads=!1;u.sessionTotalDownloads=0;u.sessionDownloaded=0;u.previousSessionsDownloaded=0;u.totalDownloadPercentage=0;u.currentDownloadProgress=0;u.currentDownloadPercentage=0;u.isLeaderTab=!0;u.isFullScreen=!1;u.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};u.boundBeforeUnload=function(K){u.isLeaderTab&&u.downloadingCount>0&&(K.preventDefault(),
K.returnValue=!0)};
return u};
_.c(Mv,_.Q);_.I=Mv.prototype;
_.I.open=function(){this.updateDownloadState();if(this.data){var u=this.sessionDownloaded+1,K=this.sessionTotalDownloads>1?_.QQ("VIDEOS_DOWNLOADING_RATIO",{downloaded:u.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+u+"/"+this.sessionTotalDownloads):_.QQ("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(K=this.sessionTotalDownloads>1?_.QQ("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:u.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
u+"/"+this.sessionTotalDownloads):_.QQ("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));u=this.isLeaderTab?_.QQ("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.WI(this.data.responseText)!==K||_.WI(this.data.subText)!==u)this.set("data.responseText",_.o7(K)),this.set("data.subText",_.o7(u)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.I.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.I.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.I.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.I.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var u=this.downloadedCount-this.previousSessionsDownloaded;u<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-u);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.I.handleFullscreenChange=function(u){(this.isFullScreen=u)||this.updatePopup()};
Mv.prototype.updateCurrentDownloadProgress=Mv.prototype.updateCurrentDownloadProgress;Mv.prototype.updatePopup=Mv.prototype.updatePopup;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Mv.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],Mv.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],Mv.prototype,"ytEventForwardingBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Mv.prototype,"actionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Mv.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Mv.prototype,"duration",void 0);_.g([_.U({selector:function(u){return _.UAq(u.entities).length}}),
_.N("design:type",Object)],Mv.prototype,"downloadingCount",void 0);_.g([_.U({selector:FY2}),_.N("design:type",Object)],Mv.prototype,"downloadedCount",void 0);_.g([_.U({selector:function(u){var K=_.UAq(u.entities);return w4H(u.entities,K)}}),
_.N("design:type",Object)],Mv.prototype,"downloadingOnlySmartDownloads",void 0);_.g([_.U(),_.N("design:type",Object)],Mv.prototype,"sessionTotalDownloads",void 0);_.g([_.U(),_.N("design:type",Object)],Mv.prototype,"sessionDownloaded",void 0);_.g([_.U(),_.N("design:type",Object)],Mv.prototype,"previousSessionsDownloaded",void 0);_.g([_.U(),_.N("design:type",Object)],Mv.prototype,"totalDownloadPercentage",void 0);
_.g([_.U({selector:function(u){var K;u=(K=_.UAq(u.entities))!=null?K:[];return u.length>0?_.G8q(u.slice(-1)):0}}),
_.N("design:type",Object)],Mv.prototype,"currentDownloadProgress",void 0);_.g([_.U(),_.N("design:type",Object)],Mv.prototype,"currentDownloadPercentage",void 0);_.g([_.U({selector:_.JFo}),_.N("design:type",Object)],Mv.prototype,"isLeaderTab",void 0);_.g([_.BF("yt-notification-action-renderer"),_.N("design:type",Object)],Mv.prototype,"notificationActionRenderer",void 0);
_.g([_.wn("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mv.prototype,"updatePopup",null);_.g([_.wn("currentDownloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mv.prototype,"updateCurrentDownloadProgress",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Mv);
_.F(Mv,"ytd-video-download-toast-renderer",function(){if(zci!==void 0)return zci;var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return zci=u},{mode:1});var Uro;var fgE;var qv=function(){return _.Q.apply(this,arguments)||this};
_.c(qv,_.Q);qv.prototype.computeIsRedLogo=function(u,K){!u&&K&&(u=K);return u==="YOUTUBE_RED_LOGO"||u==="YOUTUBE_PREMIUM_LOGO"};
qv.prototype.computeLogoName=function(u){u=this.componentBehavior.computeIcon_(u);return u===""?"yt-logos-ext:yt-logo-updated":u};
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],qv.prototype,"componentBehavior",void 0);_.g([_.U({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.N("design:type",Boolean)],qv.prototype,"isRedLogo",void 0);_.g([_.U({computed:"computeLogoName(data)"}),_.N("design:type",String)],qv.prototype,"logoName",void 0);_.g([_.U({value:{}}),_.N("design:type",Object)],qv.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Object)],qv.prototype,"logoType",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-logo"})],qv);
_.F(qv,"ytd-logo",function(){if(fgE!==void 0)return fgE;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return fgE=u},{mode:_.zW("kevlar_poly_si_batch_j074")?1:2});var $I=function(){var u=_.Q.apply(this,arguments)||this;u.animationRef={};return u};
_.c($I,_.Q);_.I=$I.prototype;_.I.attached=function(){document.addEventListener("yt-navigate-finish",_.Ql(this,this.logYoodle))};
_.I.detached=function(){document.removeEventListener("yt-navigate-finish",_.Ql(this,this.logYoodle))};
_.I.logYoodle=function(){var u,K;if((u=this.data)==null?0:(K=u.loggingDirectives)==null?0:K.trackingParams)this.ytRendererBehavior.markDirty(),_.iT().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.I.computeHideImg=function(u,K){return!!u||!!K};
_.I.computeHideYtdLogo=function(u,K){return!u||!!K};
_.I.computeHideLottie=function(u){return!u};
_.I.computeIsRedLogo=function(u){return u==="YOUTUBE_RED_LOGO"||u==="YOUTUBE_PREMIUM_LOGO"};
_.I.renderLogoEntity=function(){var u=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),K=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),l=this.getLogoTitleText(this.data),D=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==u&&(this.url=u);this.animatedUrl!==K&&(this.animatedUrl=K);this.logoTitleText!==l&&(this.logoTitleText=l);this.lottieUrl!==D&&(this.lottieUrl=D,this.lottiePlayerProps=this.computeLottiePlayerProps(D))};
_.I.getSanitizedThumbnail=function(u){return u&&u.thumbnails?_.TJh(u.thumbnails,122)||"":""};
_.I.getThumbnailUrl=function(u,K){if(!K)return"";var l,D;u=u?(l=K.darkThemeLogo)==null?void 0:l.thumbnail:(D=K.lightThemeLogo)==null?void 0:D.thumbnail;return this.getSanitizedThumbnail(u)};
_.I.getAnimatedThumbnailUrl=function(u,K){return K?this.getSanitizedThumbnail(u?K.darkThemeAnimatedLogo:K.lightThemeAnimatedLogo):""};
_.I.getLogoTitleText=function(u){if(u)return _.WI(u.tooltipText)};
_.I.computeLogoIcon=function(u,K){if(K){var l,D;return u?(l=K.darkThemeLogo)==null?void 0:l.icon:(D=K.lightThemeLogo)==null?void 0:D.icon}};
_.I.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.I.getLottieUrl=function(u,K){var l,D,d,C;return u?K==null?void 0:(l=K.darkThemeLogo)==null?void 0:(D=l.lottieAnimation)==null?void 0:D.url:K==null?void 0:(d=K.lightThemeLogo)==null?void 0:(C=d.lottieAnimation)==null?void 0:C.url};
_.I.computeLottiePlayerProps=function(u){if(u){var K;if((K=this.animationRef)==null?0:K.lottieEl){var l;(l=this.animationRef)==null||l.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:u,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.I.onLottieError=function(){this.data&&this.lottieUrl&&_.xs(this.hostElement,"yoodle-error")};
_.I.onImgError=function(){this.data&&!this.lottieUrl&&_.xs(this.hostElement,"yoodle-error")};
$I.prototype.playAnimation=$I.prototype.playAnimation;$I.prototype.renderLogoEntity=$I.prototype.renderLogoEntity;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],$I.prototype,"data",void 0);_.g([_.U({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.N("design:type",Boolean)],$I.prototype,"hideImg",void 0);
_.g([_.U({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.N("design:type",Boolean)],$I.prototype,"hideYtdLogo",void 0);_.g([_.U({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.N("design:type",Boolean)],$I.prototype,"hideLottie",void 0);_.g([_.U({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.N("design:type",Boolean)],$I.prototype,"isRedLogo",void 0);
_.g([_.U(),_.N("design:type",Boolean)],$I.prototype,"useDarkThemeYoodle",void 0);_.g([_.U(),_.N("design:type",String)],$I.prototype,"url",void 0);_.g([_.U(),_.N("design:type",String)],$I.prototype,"animatedUrl",void 0);_.g([_.U(),_.N("design:type",String)],$I.prototype,"logoTitleText",void 0);_.g([_.U({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.N("design:type",Object)],$I.prototype,"logoIcon",void 0);_.g([_.U(),_.N("design:type",Object)],$I.prototype,"logoType",void 0);
_.g([_.U(),_.N("design:type",String)],$I.prototype,"lottieUrl",void 0);_.g([_.U(),_.N("design:type",Object)],$I.prototype,"lottiePlayerProps",void 0);_.g([_.U(),_.N("design:type",Object)],$I.prototype,"animationRef",void 0);_.g([_.JU("data"),_.JU("useDarkThemeYoodle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$I.prototype,"renderLogoEntity",null);
_.g([_.PF("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$I.prototype,"playAnimation",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],$I);
_.F($I,"ytd-yoodle-renderer",function(){if(Uro!==void 0)return Uro;var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Uro=u},{mode:_.zW("kevlar_poly_si_batch_j074")?1:2});var Qd_;var P8o;var nC=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return u};
_.c(nC,_.Q);_.I=nC.prototype;_.I.onYoodleError=function(){_.S("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.I.computeLogoName=function(u){u=this.componentBehavior.computeIcon_(u);return u===""?"yt-logos-ext:yt-logo-updated":u};
_.I.computeTitle=function(u,K,l){return l&&(K==null?0:K.tooltipText)?_.WI(K.tooltipText):_.WI(u)};
_.I.computeAriaLabel=function(u,K,l){return l&&(K==null?0:K.tooltipText)?_.WI(u):""};
_.I.computeShowYoodle=function(u,K,l){return!u||!K&&!!l&&!_.k$.isEmpty(l)};
_.I.onNavigateHomeAction=function(){if(_.S("kevlar_miniplayer_navigate_home_from_app_killswitch")){var u;(u=_.bi(this.hostElement).querySelector(".yt-simple-endpoint"))==null||u.click()}};
_.I.computeLogoHref=function(u,K,l){var D;(l==null?0:l.onTapCommand)?D=this.componentBehavior.computeHref_(l.onTapCommand):u&&(D=this.componentBehavior.computeHref_(u));return D?D:K};
_.I.computeCommand=function(u,K){return(K==null?void 0:K.onTapCommand)||u};
_.I.getEndpointForm=function(){if(_.S("kevlar_topbar_disable_cache_only_home")){var u=_.GB().resolve(_.lf),K=ACk(u.getState())||"";u=_.nqq(u.getState())||"";return{disableCache:K==="ytd-browse"&&u==="home"}}return{disableCache:!0}};
nC.prototype.onYoodleError=nC.prototype.onYoodleError;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],nC.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],nC.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],nC.prototype,"componentBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],nC.prototype,"ytdReduxBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],nC.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],nC.prototype,"countryCode",void 0);_.g([_.U({selectorArgs:["data.overrideEntityKey"],selector:function(u,K){return _.eZ(u.entities,"logoEntity",K)}}),
_.N("design:type",Object)],nC.prototype,"logoEntity",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.N("design:type",Boolean)],nC.prototype,"showYoodle",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],nC.prototype,"yoodleError",void 0);_.g([_.U({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.N("design:type",String)],nC.prototype,"titleText",void 0);
_.g([_.U({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.N("design:type",String)],nC.prototype,"ariaLabelText",void 0);_.g([_.U({value:"/"}),_.N("design:type",String)],nC.prototype,"defaultEndpointUrl",void 0);_.g([_.U({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.N("design:type",String)],nC.prototype,"endpointUrl",void 0);
_.g([_.U({computed:"computeCommand(data.endpoint, logoEntity)"}),_.N("design:type",String)],nC.prototype,"command",void 0);_.g([_.U(),_.N("design:type",Object)],nC.prototype,"logoType",void 0);_.g([_.U({}),_.N("design:type",Boolean)],nC.prototype,"useDarkThemeYoodle",void 0);_.g([_.PF("yoodle-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nC.prototype,"onYoodleError",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],nC);
_.F(nC,"ytd-topbar-logo-renderer",function(){if(P8o!==void 0)return P8o;var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return P8o=u},{mode:_.zW("kevlar_poly_si_batch_j027")?1:2});var JY6=0;var jdG=_.q8.SEARCH_APPEND_LABEL,B5_=_.q8.SUGGESTION_NEW_VIDEOS_TEXT,ptp=_.q8.SUGGESTION_THUMBNAIL_LABEL,id_=_.q8.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,T5V=_.rf(function(u){function K(RC){var tE,HZ;return _.H(function(HE){if(HE.nextAddress==1)return tE=new Request(RC),_.Qg(HE,2),HE.yield(fetch(tE,{credentials:"include"}),4);if(HE.nextAddress!=2)return QV(!0),_.I$(HE,0);HZ=_.iY(HE);_.hV(HZ);_.TG(HE)})}
var l=u.isHighlighted;var D=u.suggestion;var d=u.onClickCallback;var C=u.onHoverUpdateCallback;var W=u.labels;var M=u.queryBuilderFunction;var q=u.onRemoveCallback;var v=u.suggestionIndex;var G=u.generateUniqueId;var t=u.highlightedId;var x=u.useScrollMargin;var O=u.isKeyboardMode;var a=null,f=null,B=_.o9("div"),p=_.o9("span");u=_.y(_.On(!1,void 0,"CgAMgc"));var V=u.next().value,m=u.next().value,Z=_.W4("a",function(RC){RC&&_.ZS(237477,RC,f,function(tE){f=tE})}),A=_.W4("button",function(RC){RC&&_.ZS(237477,
RC,f,function(tE){f=tE})}),h=_.p4(function(RC){if((RC==null?void 0:RC.button)===2)return RC.preventDefault(),!1;
var tE=_.AC();tE&&a&&_.Hi(tE,a,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var HZ;d(RC,D().text,D().index,D().entityMid,RC==null?void 0:(HZ=RC.detail)==null?void 0:HZ.wasSelectedByKeyboard);return!1}),C9=function(){return D().type===35},Wo=function(){return _.S("desktop_enable_single_suggestion_highlight")},$y=function(){return _.Sg("desktop_suggestions_panel_row_height")||0},co=function(){var RC;
return _.S("desktop_enable_new_video_metadata")&&((RC=D())==null?void 0:RC.hasNewVideo)===!0},UZ=function(){return _.S("desktop_enable_visual_suggest")},tH=function(){return _.S("desktop_enable_entity_suggest")&&HdG(D())},gq=function(){return D().entitySubtitle},Bo=function(){return Wo()?(l==null?void 0:l())||dN()&&!(O==null?0:O()):(l==null?void 0:l())||dN()},uk=function(){var RC=_.E3("SBOX_SETTINGS");
return C9()&&!(RC==null?0:RC.HIDE_REMOVE_LINK)},ca=function(){return M4_(D(),{useEntityName:tH()})},Ha,hH=!((Ha=_.GB().resolve(_.vv(_.H1)))==null||!Ha()),tR=function(){return C9()?_.S("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},ns=function(){return W==null?void 0:W().SUGGESTION_DISMISS_LABEL},Pa=function(){return W==null?void 0:W().SUGGESTION_DISMISSED_LABEL};
u=_.y(_.On(!1,void 0,"RcUcKd"));Ha=u.next().value;var QV=u.next().value;u=_.y(_.On(!1,void 0,"yGR7je"));var Ls=u.next().value,yn=u.next().value,dN=Ls,OB=_.p4(function(){M(p.value.innerText);return!1}),vE=_.p4(function(RC){RC.preventDefault();
return!1}),Gw=_.p4(function(RC){var tE=D().text,HZ=_.E3("SBOX_SETTINGS"),HE="https://"+(HZ.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
HE+="&delq="+encodeURIComponent(tE);(tE=HZ==null?void 0:HZ.PSUGGEST_TOKEN)&&(HE+="&tok="+tE);(HZ=HZ==null?void 0:HZ.SESSION_INDEX)&&(HE+="&authuser="+HZ);K(HE);RC.preventDefault();(RC=_.AC())&&f&&_.Hi(RC,f,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");q(v==null?void 0:v());return!1}),Vm=_.p4(function(){if(Wo()&&(O==null?0:O()))return!1;
yn(!0);C(!0);return!1}),DI=_.p4(function(){yn(!1);
C(!1);return!1}),uG=_.p4(function(){m(!0);
return!1}),oC=_.p4(function(){m(!1);
return!1}),ma=_.p4(function(RC){RC.preventDefault();
var tE;(RC=(tE=D().entityThumbnailAttributionUrl)!=null?tE:"")&&_.lth(RC);return!1});
u=_.y(_.On("",void 0,"k9uVge"));var $p=u.next().value,aC=u.next().value;_.N_(function(){uk()&&aC(G==null?void 0:G(v==null?void 0:v()));B.value&&_.ZS(12453,B.value,a,function(RC){a=RC})});
return _.n(_.r,{cond:Ha,then:function(){var RC={};return _.n("div",{class:_.JB("ytSuggestionComponentRemovedText",(RC.ytSuggestionComponentLargerRemovedText=function(){return UZ()},RC)),
style:function(){return $y()>0?"height: "+$y()+"px;":""},
role:"button"},Pa)},
else:function(){var RC={},tE={};return _.n("div",{class:_.JB("ytSuggestionComponentSuggestion",(RC.ytSuggestionComponentSuggestionHover=function(){return!Wo()},RC.ytSuggestionComponentHighlighted=Bo,RC.ytSuggestionComponentPersonalizedSuggestion=C9,RC.ytSuggestionComponentMweb=!1,RC.ytSuggestionComponentLargerSuggestion=function(){return co()||UZ()},RC.ytSuggestionComponentThumbnailSuggestion=function(){return UZ()},RC.ytSuggestionComponentRoundedSuggestion=function(){return _.S("desktop_enable_scrollable_suggestions_panel")&&
_.S("desktop_enable_suggestions_panel_padding")},RC.ytSuggestionComponentThumbnailPadding=function(){return UZ()&&!C9()},RC)),
style:function(){return $y()>0?"height: "+$y()+"px;":""},
role:"presentation","on:mousedown":h,"on:mouseover":Vm,"on:mouseout":DI,el:B},_.n("div",{class:_.JB("ytSuggestionComponentText",(tE.ytSuggestionComponentScrollMargin=x,tE)),"aria-label":function(){return co()?D().text+" "+B5_:D().text},
id:function(){return G==null?void 0:G(v==null?void 0:v())},
"on:mousedown":h,role:"option"},_.n(_.r,{cond:function(){return D().type!==33},
then:function(){return _.n(_.VB,{icon:tR,className:"ytSuggestionComponentIcon"})}}),_.n("div",{class:"ytSuggestionComponentLeftContainer"},_.n("span",{el:p,
role:"button",tabindex:0},_.n(_.p0,{each:ca},function(HZ){return HZ.bold?_.n("span",{class:"ytSuggestionComponentBold"},HZ.text):_.n("span",null,HZ.text)})),_.n(_.r,{cond:function(){return tH()&&!!D().entitySubtitle||co()},
then:function(){return _.n("div",{class:"ytSuggestionComponentMetadataContainer"},_.n(_.r,{cond:function(){return tH()&&!!D().entitySubtitle},
then:function(){return _.n("div",{class:"ytSuggestionComponentEntitySubtitle"},gq)}}),_.n(_.r,{cond:function(){return co()},
then:function(){return _.n("div",{class:"ytSuggestionComponentNewVideoContainer"},_.n("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.n("div",{class:"ytSuggestionComponentNewVideoText"},B5_))}}))}}))),_.n("div",{class:"ytSuggestionComponentRightContainer"},_.n(_.r,{cond:function(){return UZ()&&D().visualSuggestUrl!==void 0},
then:function(){var HZ={};return _.n("div",{class:"ytSuggestionComponentThumbnailContainer"},_.n("img",{"aria-label":ptp,class:_.JB("ytSuggestionComponentVisualSuggestThumbnail",(HZ.ytSuggestionComponentCircularFrame=function(){return tH()&&D().subtypes.includes(790)},HZ.ytSuggestionComponentEntitySuggestThumbnail=function(){return tH()},HZ)),
src:function(){return D().visualSuggestUrl}}),_.n(_.r,{cond:function(){return tH()&&!!D().entityThumbnailAttributionUrl},
then:function(){var HE={};return _.n("span",{title:id_,role:"tooltip"},_.n("div",{"on:mouseover":uG,"on:mouseout":oC,"on:mousedown":ma,class:_.JB("ytSuggestionComponentThumbnailOverlay",(HE.ytSuggestionComponentThumbnailOverlayHidden=function(){return!V()},HE))},_.n(_.VB,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.n(_.VI,null,_.n(_.ic,{when:function(){return UZ()&&uk()}},function(){var HZ={};
return _.n("button",{class:_.JB("ytSuggestionComponentRemoveLinkClearButton",(HZ.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return $p()&&$p()===(t==null?void 0:t())},HZ.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Bo()},HZ)),
el:A,"on:mousedown":Gw,"aria-label":ns,id:function(){return $p()}},_.n(_.VB,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.n(_.ic,{when:function(){return!(UZ()&&D().visualSuggestUrl!==void 0)&&uk()}},function(){var HZ={};
return _.n("a",{class:_.JB("ytSuggestionComponentRemoveLink",(HZ.ytSuggestionComponentRemoveLinkDark=hH,HZ.ytSuggestionComponentRemoveLinkSelected=function(){return $p()&&$p()===(t==null?void 0:t())},HZ)),
el:Z,"on:mousedown":Gw,"aria-label":ns,tabindex:0,role:"button",id:function(){return $p()}},ns)}),_.n(_.ic,{when:function(){return!1}},function(){return _.n("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":OB,"on:mousedown":vE,role:"button","aria-label":jdG},_.n(_.VB,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Gg");var wt6=_.oj(["//www.google.com/textinputassistant/","/","_tia.js"]),FxB=_.rf(function(){return _.n("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.n("button",{class:"ytdTextInputAssistantButton","on:click":_.p4(function(){rYH().inputMethodsTracker.add(3);var u,K=(u=_.E3("SBOX_SETTINGS"))==null?void 0:u.REQUEST_LANGUAGE;if(K)return _.KN(_.Oy(wt6,14,K)),!1})},_.n("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Hg");var V4p=function(){this.cache=new Map},gFB=function(u){for(var K=_.y(u.cache.entries()),l=K.next();!l.done;l=K.next()){var D=_.y(l.value);
l=D.next().value;D=D.next().value;D.suggestions.some(function(d){return d.type===35})&&u.cache.delete(l)}};var N52=_.q8.SEARCH,kio=_.q8.SEARCH_CLEAR_LABEL,ZdH=new _.G$("FAKE_SUGGEST_RESPONSE");_.SX(_.rf(function(u){function K(){uG||(uG=setTimeout(function(){ma()},1E3))}
function l(S2,va,R2){if(S2.trim()){DI=S2;_.h8("REFINEMENTS_TUPLE",void 0);Gw=!0;var Gg;va=t4i(Ls,va);var MS=(Gg=u.searchEndpoint)==null?void 0:Gg.call(u);Gg=tR.value.value;MS||(MS=yK2);var O2;(O2=_.b(MS.commandMetadata,_.nN))!=null&&O2.url||(O2=Error("pl`"+JSON.stringify(MS)),_.Xm(O2),MS=yK2);O2=_.k$.unsafeClone(MS);MS=_.uy(_.b(O2.commandMetadata,_.nN).url,"search_query",S2);_.ur(location.href,"sv")==="1"&&(_.b(O2,_.BI).params="EgOAAgE%3D",MS=_.uy(MS,"sv","1"));_.b(O2,_.BI)&&(_.b(O2,_.BI).query=S2);
MS=MS.replace(/%20/g,"+");_.b(O2.commandMetadata,_.nN).url=MS;R2=_.S("desktop_enable_entity_suggest")?{entityMid:R2}:{};_.GB().resolve(_.t9).resolveCommand(O2,{form:{tempData:Object.assign({},{gs_l:va,oq:Gg!=null?Gg:S2},R2)}});ma();tR.value.value=S2;tR.value.blur();Ls.reset()}}
function D(S2){return _.H(function(va){return va.return(new Promise(function(R2){var Gg=new XMLHttpRequest;Gg.open("GET",dri(S2),!0);Gg.withCredentials=!0;var MS=_.E3("SBOX_SETTINGS");(MS==null?0:MS.SEND_VISITOR_DATA)&&Gg.setRequestHeader("X-Goog-Visitor-Id",MS==null?void 0:MS.VISITOR_DATA);Gg.onload=function(){R2(Gg.responseText)};
Gg.onerror=function(){_.hV(Error("ql"));R2(null)};
setTimeout(function(){Gg.abort()},1E4);
Gg.send(null)}))})}
function d(S2){var va,R2,Gg,MS;return _.H(function(O2){switch(O2.nextAddress){case 1:return va={credentials:"include",headers:DrE()},window.AbortController&&(R2=new AbortController,setTimeout(function(){R2.abort("ytsbox-suggest-timeout")},1E4),va.signal=R2.signal),_.Qg(O2,2),O2.yield(fetch(dri(S2),va),4);
case 4:Gg=O2.yieldResult.text();_.I$(O2,3);break;case 2:return MS=_.iY(O2),MS!=="ytsbox-abort-last"&&MS!=="ytsbox-suggest-timeout"&&_.hV(MS),O2.return(null);case 3:return O2.return(Gg)}})}
function C(S2){var va,R2,Gg;return _.H(function(MS){switch(MS.nextAddress){case 1:if(va=_.GB().resolve(_.vv(ZdH)))return MS.return(va);R2=Date.now();K();return _.S("yt_searchbox_xhr")?MS.yield(D(S2),5):MS.yield(d(S2),4);case 4:Gg=MS.yieldResult;MS.jumpTo(3);break;case 5:Gg=MS.yieldResult;case 3:if(Gg){uG&&(clearTimeout(uG),uG=null);var O2=Ls,dv=R2,pM=S2.query.length===0;dv=Date.now()-dv;pM?O2.zeroPrefixRoundTripTime=dv:(O2.JSC$20460_totalRoundTripTime+=dv,O2.maxRoundTripTime=Math.max(O2.maxRoundTripTime,
dv),pM=Math.floor(dv/100),pM>=xr_.length?++O2.roundTripTimeHistogram[9]:++O2.roundTripTimeHistogram[xr_[pM]])}return MS.return(Gg)}})}
function W(S2){var va,R2,Gg;return _.H(function(MS){if(MS.nextAddress==1)return(va=QV.cache.get(lg6(S2)))?MS.return(va):MS.yield(C(S2),2);R2=MS.yieldResult;if(R2===null)return MS.return(null);Gg=new qmV(R2);S2.query.length===0&&Gg.suggestions.length===0||QV.cache.set(lg6(S2),Gg);return MS.return(Gg)})}
function M(S2){var va,R2;return _.H(function(Gg){if(Gg.nextAddress==1){Vm=!1;var MS=DI;MS=_.i6q()==="search"?(_.ur(location.href,"search_query")||_.ur(location.href,"q"))===MS:!1;va=new Kxk(S2,MS?DI:null);return Gg.yield(W(va),2)}R2=Gg.yieldResult;if(R2===null)return Gg.return();va.query.length===0&&(Ls.zeroPrefixSuggestionCount=R2.suggestions.length);if(va.id<=oC)return Ls.outOfSyncResponseCount++,Gg.return();if(document.activeElement!==tR.value)return Gg.return();oC=va.id;var O2=Ls,dv=R2.rawResponse[2]||
{};O2.experimentTriggeredBeforeFinal||(O2.experimentTriggeredBeforeFinal=O2.experimentTriggeredFinal);O2.experimentTriggeredFinal=!!dv.e;Ls.updateSuggestions(R2.suggestions);B(-1);uk([]);R2.suggestions!==O()&&Jg(R2.suggestions.length);a(R2.suggestions);Wo(R2.suggestions.length>0&&R2.suggestions[0].type===33);Pa&&(Pa.hidden=R2.suggestions.length===0,C9()?(Pa.style.minWidth="",O2=Pa.style,dv=(MS=O()[0])==null?void 0:MS.ignoredPrefix,O2.marginLeft=(dv?Math.min(dv.length*6,ns.value.offsetWidth):0).toString()+
"px"):(Pa.style.minWidth=ns.value.offsetWidth+"px",Pa.style.marginLeft="0"),Jm());_.TG(Gg)})}
function q(){if(!Gw)return!1;var S2=_.E3("REFINEMENTS_TUPLE");return S2?(S2=S2[1].map(function(va,R2){return new WxI([va,0,[71]],tR.value.value,R2)}),O()!==S2&&Jg(S2.length),uk([]),a(S2),Ls.updateSuggestions(S2),Gw=!1,Pa.hidden=S2.length===0,Vm=S2.length>0,!0):!1}
function v(){var S2=tR.value.value;(typeof S2==="string"||S2 instanceof String)&&S2!==""?Z(!0):Z(!1)}
function G(){if(_.i6q()==="search"){var S2=window.location.href;try{var va=_.ur(S2,"search_query")||_.ur(S2,"q")||""}catch(R2){va=""}va&&(tR.value.value=va,Z(!0))}}
var t=_.y(_.On([],void 0,"kGFAjf")),x=t.next().value;t=t.next().value;var O=x,a=t;x=_.y(_.On(-1,void 0,"mLGL9e"));var f=x.next().value,B=x.next().value;x=_.y(_.On(-1,void 0,"u2rYdc"));var p=x.next().value,V=x.next().value;x=_.y(_.On(!1,void 0,"W9DFC"));var m=x.next().value,Z=x.next().value;x=_.y(_.On(!1,void 0,"Ip4dNc"));var A=x.next().value,h=x.next().value;t=_.y(_.On(!1,void 0,"ZNKSQb"));x=t.next().value;t=t.next().value;var C9=x,Wo=t;t=_.y(_.On(!1,void 0,"JBrGLd"));x=t.next().value;var $y=t.next().value;
t=_.y(_.On(!1,void 0,"P2pD6e"));var co=t.next().value,UZ=t.next().value;t=_.y(_.On(1,void 0,"SjP20c"));var tH=t.next().value,gq=t.next().value;t=_.y(_.On([],void 0,"h4dRaf"));var Bo=t.next().value,uk=t.next().value;t=_.y(_.On(!1,void 0,"TUTzaf"));var ca=t.next().value,Ha=t.next().value;t=_.S("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var hH=_.o9("yt-searchbox"),tR=_.o9("input"),ns=_.o9("div"),Pa,QV=
new V4p,Ls=rYH(),yn=_.GB().resolve(_.vv(_.H1)),dN=function(){var S2;return((S2=u.forceDarkMode)==null?void 0:S2.call(u))||!(yn==null||!yn())},OB=function(){return _.S("desktop_enable_scrollable_suggestions_panel")},vE="i"+JY6++,Gw=!1,Vm=!1,DI="",uG=null,oC=-1,ma=function(){uk([]);
a([]);Wo(!1);Pa&&(Pa.hidden=!0);uG&&(clearTimeout(uG),uG=null);B(-1)},$p=function(S2,va){S2.preventDefault();
Ha(!0);Pa&&(Pa.hidden=!1);var R2=f();S2=O();var Gg=Bo();va=uu6(va);R2+=va;for(R2>=S2.length?R2=-1:R2<-1&&(R2=S2.length-1);R2!==-1&&(Gg.includes(R2)||R2>=S2.length||R2<0);)R2+=va,R2>=S2.length&&(R2=-1);B(R2);f()>=0&&(tR.value.value=O()[f()].text,V(0),v(),S2=f(),Gg=p(),(Gg=document.getElementById(Y$[S2][Gg]))&&OB()&&(S2===O().length-1?Pa.scrollTop=Pa.scrollHeight:Gg.scrollIntoView({block:"nearest",inline:"start"})))},aC=_.p4(function(S2){if(!(S2.relatedTarget instanceof Element&&S2.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){h(!0);
var va;(va=u.focusCallback)==null||va.call(u,!0);q()||(Vm?Pa.hidden=!1:(_.xs(hH.value,"yt-autonav-pause-focus",{}),M(S2.target.value)))}}),RC=_.p4(function(S2){if(!(S2.relatedTarget instanceof Element&&S2.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){h(!1);
var va;(va=u.focusCallback)==null||va.call(u,!1);Pa.scrollTop=0;Pa.hidden=!0;_.xs(hH.value,"yt-autonav-pause-blur",{})}}),tE=function(S2){S2=uu6(S2);
var va;((va=Y$[f()])==null?0:va[p()+S2])&&V(p()+S2)},HZ=_.p4(function(S2){var va=S2.target;
switch(S2.keyCode){case 13:S2.preventDefault();var R2;if((R2=Y$[f()])==null?0:R2[p()]){var Gg;(Gg=document.getElementById(Y$[f()][p()]))==null||Gg.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}S2=S2.shiftKey?4:3;R2=Ls;Gg=f();R2.selectedSuggestionIndex=Gg;l(va.value,S2);break;case 27:Pa&&(Pa.hidden=!0);break;case 40:$p(S2,40);break;case 38:$p(S2,38);break;case 39:tE(39);break;case 37:tE(37);break;case 229:Ls.inputMethodsTracker.add(4);break;default:Ls.inputMethodsTracker.add(1),
vFi(Ls)}return!1}),HE=_.p4(function(S2){M(S2.target.value);
v();OB()&&Pa&&(Pa.scrollTop=0);return!1}),aO=_.p4(function(){Ls.inputMethodsTracker.add(2);
vFi(Ls);return!1});
_.N_(function(){if(Pa){Ls.reset();if(window.ResizeObserver){var S2=new ResizeObserver(function(){C9()||(Pa.style.minWidth=ns.value.offsetWidth+"px")});
S2.observe(ns.value);(new ResizeObserver(function(){Jm()})).observe(Pa);
_.No(function(){S2.disconnect()})}G();
window.addEventListener("yt-navigate-finish",G);window.addEventListener("yt-focus-searchbox",function(){tR.value.focus()});
var va;$y((va=_.E3("SBOX_SETTINGS"))==null?void 0:va.HAS_ON_SCREEN_KEYBOARD)}else _.Xm(new _.wv("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var mf=_.p4(function(S2){S2.preventDefault();l(tR.value.value,12);return!1}),AR=_.p4(function(S2){S2.preventDefault();
var va,R2;(va=tR)==null||(R2=va.value)==null||R2.focus();var Gg,MS;((Gg=tR)==null?void 0:(MS=Gg.value)==null?void 0:MS.value)!==""&&(tR.value.value="",tR.value.dispatchEvent(new Event("input")));return!1}),PE=_.p4(function(){var S2=X__(tR.value.value,O().filter(function(va){return va.type!==35}).map(function(va){return{label:va.text}}));
_.Sy(hH.value,"yt-open-popup-action",[{openPopupAction:S2},document.body]);return!1}),Dk=_.p4(function(){tR.value.focus();
return!1}),hE=function(S2,va,R2,Gg,MS){Ls.selectedSuggestionIndex=R2;
l(va,MS?3:1,Gg)},CU=function(S2){tR.value.value=S2;
tR.value.dispatchEvent(new Event("input"));Ls.inputMethodsTracker.add(5);vFi(Ls,!0)},Y$=[[]],J9=function(S2){var va="searchbox-suggestion"+_.h5(_.Z5);
Y$[S2].push(va);return va},Jg=function(S2){if(O()){Y$=[[]];
for(var va=0;va<S2;va++)Y$.push([])}},Jm=function(){if(OB()){var S2=Pa,va=S2.scrollTop;
S2=S2.scrollHeight-S2.clientHeight;UZ(va>=S2);va=Math.abs(S2-va);va<=40?gq(1-(40-va)/40):gq(1)}},JV=function(){return"opacity: "+tH()*100+"%"},aR=_.p4(function(){Jm();
return!1}),Th=_.p4(function(){Ha(!1);
return!1}),ky,x0={},WE={},Pr={},xp={};
return _.n("yt-searchbox",{class:_.JB("ytSearchboxComponentHost",(x0.ytSearchboxComponentMweb=!1,x0.ytSearchboxComponentDesktop=!0,x0["yt-searchbox-filled-query"]=function(){return m()},x0["ytd-masthead"]=function(){return!A()},x0.ytSearchboxComponentHostDark=dN,x0)),
role:"search",el:hH,"client-ve-type":10349},_.n("div",{el:ns,"on:click":Dk,class:_.JB("ytSearchboxComponentInputBox",(WE.ytSearchboxComponentInputBoxDark=dN,WE.ytSearchboxComponentInputBoxHasFocus=A,WE))},_.n("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":mf},_.n(_.r,{cond:A,then:function(){return _.n("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.n(_.VB,{icon:"SEARCH"}))}}),_.n("input",{el:tR,
class:_.JB("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":vE,"aria-expanded":!((ky=Pa)==null?0:ky.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":RC,"on:focus":aC,"on:input":HE,"on:keydown":HZ,"on:paste":aO,placeholder:u.placeholderText,"aria-activedescendant":function(){var S2;return(S2=Y$[f()])==null?void 0:S2[p()]},
"aria-autocomplete":"list",role:"combobox"})),_.n(_.r,{cond:x,then:function(){return _.n("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.n(FxB,null))}}),_.n(_.r,{cond:m,
then:function(){return _.n("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.n("button",{class:"ytSearchboxComponentClearButton","on:click":AR,"aria-label":u.clearButtonAriaLabel||kio},_.n(_.VB,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.n(_.ko,{model:{}})))}})),_.n("button",{class:_.JB("ytSearchboxComponentSearchButton",(Pr.ytSearchboxComponentSearchButtonDark=dN,Pr)),
"on:click":mf,"aria-label":N52,title:u.placeholderText},_.n(_.VB,{icon:"SEARCH"})),_.n(_.r,{cond:function(){if(oHE()&&_.S("mweb_voice_search")&&u.voiceSearchButton)return u.voiceSearchButton()},
then:function(S2){var va={};return _.n("div",{class:_.JB("ytSearchboxComponentVoiceSearchWrapper",(va.ytSearchboxComponentHideVoiceSearchButton=function(){return m()},va))},_.n(_.mo,{data:S2},{buttonRenderer:function(R2){return _.n(_.H6,{data:R2.data,
onButtonClickCallback:function(){}})}}))}}),_.n("div",{el:_.v1(function(S2){return void(Pa=S2)}),
id:vE,class:_.JB("ytSearchboxComponentSuggestionsContainer",(xp.ytSearchboxComponentSuggestionsContainerDark=dN,xp["yt-searchbox-suggestions-container"]=!1,xp.ytSearchboxComponentSuggestionsContainerScrollable=OB(),xp.ytSearchboxComponentSuggestionsContainerAnimated=t,xp)),"on:scroll":aR,"on:mousemove":Th,role:"listbox",hidden:!0},_.n(_.p0,{each:O},function(S2,va){return _.n(T5V,{suggestion:S2,isHighlighted:function(){return va()===f()},
onClickCallback:hE,onHoverUpdateCallback:function(R2){if(_.S("desktop_enable_single_suggestion_highlight")){var Gg=va();R2&&(V(0),B(Gg))}},
onRemoveCallback:function(R2){gFB(QV);R2===void 0||R2<0||Bo().includes(R2)||uk([].concat(_.Am(Bo()),[R2]))},
labels:u.labels,queryBuilderFunction:CU,suggestionIndex:va,generateUniqueId:J9,highlightedId:function(){var R2;return(R2=Y$[f()])==null?void 0:R2[p()]},
useScrollMargin:OB(),isKeyboardMode:ca})}),_.n(_.r,{cond:function(){return!C9()&&O().find(function(S2){return S2.type!==35})&&_.S("searchbox_reporting")},
then:function(){return _.n("button",{class:"ytSearchboxComponentReportButton","on:mousedown":PE},_.QQ("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.n(_.r,{cond:function(){return!co()&&OB()},
then:function(){return _.n("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.n("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:JV}))}})))},"Ig"),"yt-searchbox",{props:{searchEndpoint:_.M6,
placeholderText:_.M6,labels:_.M6,voiceSearchButton:_.M6,focusCallback:_.xo,clearButtonAriaLabel:_.M6,forceDarkMode:_.M6}});var rT=function(){var u=_.Q.apply(this,arguments)||this;u.menuButtonTargetId="topbar-guide-menu";u.narrow=!1;u.menuStrings={BACK_ALT_LABEL:_.QQ("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.QQ("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.QQ("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.QQ("SBOX_PLACEHOLDER",void 0,"Search")};u.pageDarkTheme=document.documentElement.hasAttribute("dark");u.watchPageScrollTop=0;u.theater=!1;u.fullscreen=!1;u.disableFrostedGlassDuringViewTransition=
!1;u.desktopUnifiedSearchPanelMode=_.S("desktop_enable_unified_search_panel");u.cinematicTheaterMode=_.S("web_cinematic_theater_mode");u.ytSearchboxFocused=!1;u.searchboxLabels=_.E3("SBOX_LABELS");u.topbarIsAboveChipbar=!1;u.isDarkThemeForced=!1;u.areGhostCardsHidden=!1;u.guideKeyboardToggle=!1;u.voiceSearchManager=o_I();u.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};u.setYtSearchboxFocused=function(K){u.ytSearchboxFocused=
K};
u.toggleFrostedGlassDuringViewTransition=function(K){u.disableFrostedGlassDuringViewTransition=K};
return u};
_.c(rT,_.Q);_.I=rT.prototype;_.I.computeSimpleText=function(u){return _.WI(u)};
_.I.onDarkChanged=function(){for(var u=_.y(this.buttons||[]),K=u.next();!K.done;K=u.next())K.value.isOverlay=!!this.dark;u=_.y(this.buttonRenderers||[]);for(K=u.next();!K.done;K=u.next())K.value.overrides=this.computeButtonOverride()};
_.I.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.I.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var u=_.C7(_.dw(),"aa");_.cF(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||u||(this.isDarkThemeForced=this.dark=!0);this.logoType?(u=this.hostElement.querySelector("#masthead-logo"))&&(_.S("polymer_on_demand_shady_dom")?u.setAttribute("slot","masthead-logo-old"):_.Jq(u)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Ql(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Ql(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.I.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Ql(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Ql(this,this.onSetTheaterModeEnabled))};
_.I.dataChanged=function(){var u=this.data;u&&(this.voiceEnabled=u.voiceSearchButton?o_I().isSupported():!1,_.$$0(_.gw(),this.menuButtonTargetId,this.guideButton),u.onReceivedActions&&u.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.ay(this.hostElement,u.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&u&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.cF(this.hostElement,"dark",!1),_.cF(this.hostElement,"theater",!1),
(u=this.hostElement.querySelector("#masthead-logo"))&&(_.S("polymer_on_demand_shady_dom")?u.setAttribute("slot","masthead-logo-old"):_.Jq(u))))};
_.I.computeCenterHidden=function(){var u;return this.data&&!((u=this.data.searchbox)==null?0:u.fusionSearchboxRenderer)};
_.I.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.cF(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.I.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.I.onWatchScroll=function(u){this.watchPageScrollTop=u.detail||0;this.updateMastheadBackgroundOpacity()};
_.I.onFullscreenChangeAction=function(u){u||(this.watchPageScrollTop=0);this.fullscreen=u;this.updateMastheadBackgroundOpacity()};
_.I.onSetTheaterModeEnabled=function(u){this.theater=u.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.I.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.I.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.I.setBackgroundOpacity=function(u){u=this.calculateBackgroundOpacity(u);this.background.style.opacity=""+u};
_.I.calculateBackgroundOpacity=function(u){var K=this.theater&&this.cinematicTheaterMode?.6:0,l=this.hostElement.clientHeight/2;return Math.min(Math.max(u,0),l)/l*(1-K)+K};
_.I.shouldShowCinematicMastHead=function(){var u=_.S("kevlar_watch_grid")&&!_.S("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(u||this.pageDarkTheme)};
_.I.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.I.focusGuide=function(){this.guideButton.focus()};
_.I.onGuideToggleTap=function(){_.xs(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.I.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.I.onGuideToggleHover=function(){_.xs(this.hostElement,"yt-guide-hover")};
_.I.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.I.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.I.closeOnOutsideClickCondition=function(u){for(u=_.WF(u);u[0];){var K=u.shift();if(K instanceof Element&&K.id==="kbd")return!1}return!0};
_.I.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.I.pausePlayer=function(){var u;(u=_.xY())==null||u.pause();this.pauseMiniplayer()};
_.I.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var u;(u=_.GB().resolve(_.uD).getPlayerElement())==null||u.pause()}};
_.I.isMiniplayerActive=function(){return _.GB().resolve(_.uD).isMiniplayerActive()};
_.I.updateNarrowFromBinding=function(u){this.narrow=u.detail.value};
_.I.onYtSendFeedbackAction=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.I.registerWithViewTransitionManager=function(){OzE(_.GB().resolve(_.g6),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.MN.Object.defineProperties(rT.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var u;return(u=this.data)==null?void 0:u.voiceSearchButton}}}});
rT.prototype.narrowChanged=rT.prototype.narrowChanged;rT.prototype.onWatchPageChange=rT.prototype.onWatchPageChange;rT.prototype.onRendererStamperFinished=rT.prototype.onRendererStamperFinished;rT.prototype.dataChanged=rT.prototype.dataChanged;rT.prototype.onDarkChanged=rT.prototype.onDarkChanged;_.g([_.e(_.Ae),_.N("design:type",Object)],rT.prototype,"ironResizableBehavior",void 0);_.g([_.e(_.Dop),_.N("design:type",Object)],rT.prototype,"ytdExpandableInputBehavior",void 0);
_.g([_.e(_.CD.YtdGuideStateAwareBehavior),_.N("design:type",Object)],rT.prototype,"ytdGuideStateAwareBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],rT.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],rT.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],rT.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Ll),_.N("design:type",Object)],rT.prototype,"ytdReduxBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],rT.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],rT.prototype,"narrow",void 0);_.g([_.U(),_.N("design:type",Object)],rT.prototype,"logoType",void 0);_.g([_.U(),_.N("design:type",Boolean)],rT.prototype,"voiceEnabled",void 0);
_.g([_.U(),_.N("design:type",Object)],rT.prototype,"menuStrings",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],rT.prototype,"dark",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],rT.prototype,"pageDarkTheme",void 0);_.g([_.U(),_.N("design:type",Object)],rT.prototype,"watchPageScrollTop",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.mG}),_.N("design:type",Boolean)],rT.prototype,"isWatchPage",void 0);
_.g([_.U({reflectToAttribute:!0,selector:_.btb}),_.N("design:type",Boolean)],rT.prototype,"isShortsPage",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],rT.prototype,"theater",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],rT.prototype,"fullscreen",void 0);_.g([_.U({reflectToAttribute:!0,selector:_.z19}),_.N("design:type",String)],rT.prototype,"frostedGlassMode",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],rT.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.g([_.U(),_.N("design:type",Object)],rT.prototype,"ytSearchboxFocused",void 0);_.g([_.pg("#buttons > *"),_.N("design:type",Array)],rT.prototype,"buttons",void 0);_.g([_.pg("ytd-button-renderer"),_.N("design:type",Array)],rT.prototype,"buttonRenderers",void 0);_.g([_.BF("#background"),_.N("design:type",HTMLDivElement)],rT.prototype,"background",void 0);
_.g([_.BF("#guide-button"),_.N("design:type",Object)],rT.prototype,"guideButton",void 0);_.g([_.BF("#logo"),_.N("design:type",Object)],rT.prototype,"logo",void 0);_.g([_.U({computed:"computeButtonOverride(dark)"}),_.N("design:type",Object)],rT.prototype,"buttonOverrides",void 0);_.g([_.wn("dark"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rT.prototype,"onDarkChanged",null);_.g([_.U({value:function(){return this.onVoiceTap.bind(this)}}),
_.N("design:type",Function)],rT.prototype,"boundOnTapVoiceButton",void 0);_.g([_.U(),_.N("design:type",Object)],rT.prototype,"topbarIsAboveChipbar",void 0);_.g([_.U(),_.N("design:type",String),_.N("design:paramtypes",[])],rT.prototype,"guideIcon",null);_.g([_.R("voiceEnabled"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rT.prototype,"shouldShowVoiceSearchButton",null);_.g([_.R("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rT.prototype,"voiceSearchButton",null);
_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rT.prototype,"dataChanged",null);_.g([_.PF("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rT.prototype,"onRendererStamperFinished",null);_.g([_.wn("isWatchPage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rT.prototype,"onWatchPageChange",null);
_.g([_.wn("narrow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rT.prototype,"narrowChanged",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-masthead"})],rT);
_.F(rT,"ytd-masthead",function(){if(Qd_!==void 0)return Qd_;var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Qd_=u},{mode:_.zW("kevlar_poly_si_batch_j036")?1:2});var Ym2;var AYG={},Xtk={},mrV={},hc6={},EF6=(hc6.OFFLINE=(AYG["publicytnetworkstatus-online"]="BACK_ONLINE",AYG),hc6.ONLINE=(Xtk["publicytnetworkstatus-offline"]="OFFLINE",Xtk),hc6.BACK_ONLINE=(mrV["publicytnetworkstatus-offline"]="OFFLINE",mrV.TIMER_TRIGGER="ONLINE",mrV),hc6),vw=function(){var u=_.Q.apply(this,arguments)||this;u.currentState="ONLINE";u.scheduledJobId=0;u.bannerString="";u.bannerVe=null;u.networkStatusManagerInstance=new _.ye;return u};
_.c(vw,_.Q);_.I=vw.prototype;_.I.attached=function(){var u=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){u.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){u.stateChangeHandler("publicytnetworkstatus-offline")})};
_.I.detached=function(){var u=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){u.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){u.stateChangeHandler("publicytnetworkstatus-offline")})};
_.I.enterState=function(u){var K=this;this.scheduledJobId&&_.YL.cancelJob(this.scheduledJobId);u==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):u==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.QQ("NO_INTERNET_CONNECTION",void 0,"No internet connection")):u==="BACK_ONLINE"&&(this.bannerString=_.QQ("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Ve(_.YL,function(){K.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=u};
_.I.stateChangeHandler=function(u){(u=EF6[this.currentState][u])&&this.enterState(u)};
_.I.logVisibility=function(u){var K=_.AC();this.createBannerVe(u);K&&this.bannerVe&&(u?_.If(K,[this.bannerVe]):_.yM(K,[this.bannerVe]))};
_.I.createBannerVe=function(u){!this.bannerVe&&u&&(this.bannerVe=_.Yo(37929),_.U7(_.iT(),this.bannerVe))};
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",String)],vw.prototype,"currentState",void 0);_.g([_.U(),_.N("design:type",Object)],vw.prototype,"scheduledJobId",void 0);_.g([_.U(),_.N("design:type",Object)],vw.prototype,"bannerString",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-network-status-banner"})],vw);
_.F(vw,"ytd-network-status-banner",function(){if(Ym2!==void 0)return Ym2;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return Ym2=
u},{mode:1});var Lxp;var GX=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};u.hidden=!0;u.frostedGlass=_.S("web_frosted_glass");return u};
_.c(GX,_.Q);GX.prototype.computeHidden=function(u){return u&&u.status?!1:!0};
GX.prototype.handleUpdatePermissionRoleCommand=function(u){if(u=_.b(u,_.uPN))if(u=_.b(u.renderer,_.Lvw))this.data=u};
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],GX.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],GX.prototype,"componentBehavior",void 0);_.g([_.U({value:!0,computed:"computeHidden(data)"}),_.N("design:type",Object)],GX.prototype,"hidden",void 0);_.g([_.U(),_.N("design:type",Object)],GX.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],GX.prototype,"frostedGlass",void 0);
_.g([_.T({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],GX);
_.F(GX,"ytd-permission-role-bottom-bar-renderer",function(){if(Lxp!==void 0)return Lxp;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return Lxp=u},{mode:1});var uUp;var K$V;var KQp={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var th=function(){return _.Q.apply(this,arguments)||this};
_.c(th,_.Q);_.I=th.prototype;_.I.attached=function(){this.JSC$20563_scroller&&(this.JSC$20563_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20563_scroller.attached&&typeof this.JSC$20563_scroller.attached==="function"&&this.JSC$20563_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(l){l.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var u=_.bi(this.hostElement);u.querySelector("tp-yt-paper-radio-group").selected="";var K=u.querySelector("#reason-text");K&&(K.value="");u.querySelector("#description-text").value=""}};
_.I.canSubmit=function(u,K){_.xs(this.hostElement,"yt-invalidate-popup-tabbables");return!(u&&K)};
_.I.onCancel=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.I.onSubmit=function(){var u=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(C){return C.active}).map(function(C){return C.innerText.trim()}),K=this.hostElement.querySelector("tp-yt-paper-radio-group"),l=K.selectedItem,D=l.name;
l=l.innerText.trim();var d=K.querySelector("#reason-text");K=void 0;d&&(K=d.value);(d=this.descriptionText.value)&&(d=d.trim());lpp(this.data.searchQuery,u,D,l,d,K);_.Sy(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.I.sendFormSubmitToast=function(){var u=_.re(_.QQ("SBOX_INAPPROPRIATE_TOAST"));_.Sy(this.hostElement,"yt-open-popup-action",[u,this])};
_.I.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(u){return u.active})};
_.I.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
th.prototype.onIronSelect=th.prototype.onIronSelect;th.prototype.onIronChange=th.prototype.onIronChange;th.prototype.dataChanged=th.prototype.dataChanged;_.g([_.U(),_.N("design:type",Object)],th.prototype,"data",void 0);_.g([_.U({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.N("design:type",Boolean)],th.prototype,"submitDisabled",void 0);_.g([_.U(),_.N("design:type",Boolean)],th.prototype,"suggestionSelected",void 0);
_.g([_.U(),_.N("design:type",Boolean)],th.prototype,"catagorySelected",void 0);_.g([_.BF("#scroller"),_.N("design:type",Object)],th.prototype,"JSC$20563_scroller",void 0);_.g([_.BF("#description-text"),_.N("design:type",Object)],th.prototype,"descriptionText",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],th.prototype,"dataChanged",null);
_.g([_.PF("iron-change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],th.prototype,"onIronChange",null);_.g([_.PF("iron-select"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],th.prototype,"onIronSelect",null);_.g([_.T({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],th);
_.F(th,"ytd-search-suggestion-report-dialog",function(){if(K$V!==void 0)return K$V;var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);return K$V=u},{mode:1});var xI=function(u){var K=u.openPopupAction;var l=u.target;var D=u.container;var d=u.popupContainerConfig;var C=u.getElement;u=u.removeWhenClosed===void 0?!1:u.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=K;this.target=l;this.container=D;this.popupContainerConfig=d;this.getElement=C;this.JSC$20569_popupConfig=this.popupContainerConfig.JSC$19685_popupConfig[this.openPopupAction.popupType];this.rendererName=(K=this.getName())?_.vYn(K,F9k(this.popupContainerConfig,
K)):"";_.S("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=u);this.createPopup()};
xI.prototype.updatePopup=function(u){this.openPopupAction=u;this.JSC$20569_popupConfig=this.popupContainerConfig.JSC$19685_popupConfig[this.openPopupAction.popupType];l5k(this);_.S("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
xI.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var Cak=function(u,K,l){(K=K&&u.JSC$20569_popupConfig.narrowProperties?u.JSC$20569_popupConfig.narrowProperties:u.JSC$20569_popupConfig.properties)&&l!==void 0&&(K.isAriaModal=l);DyE(u,K);u.isRtl()&&DyE(u,u.JSC$20569_popupConfig.rtlProperties);dyp(u)};
xI.prototype.createPopup=function(){var u=this.JSC$20569_popupConfig.component;if(this.popupContent=I5p(this,this.rendererName)){if(u){this.popup=I5p(this,u);var K=this.popupContent;_.S("web_enable_wrapper_for_cow_component_in_popup")&&(K=document.createElement("div"),K.appendChild(this.popupContent));_.S("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20569_popupConfig.slotName&&K.setAttribute("slot",this.JSC$20569_popupConfig.slotName);u=this.popup;var l=this.container.tagName.toLowerCase(),
D=_.qn(K);_.NWq(_.rn(u),_.tU(K,l,D));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.S("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.bi(this.container).appendChild(this.popup)}};
var l5k=function(u){var K,l,D=(K=u.openPopupAction.accessibilityData)==null?void 0:(l=K.accessibilityData)==null?void 0:l.label;D&&(u.popup.ariaLabel=D);var d;((d=u.popupContent.polymerController)!=null?d:u.popupContent).data=(0,_.k$.unsafeClone)(u.openPopupAction.popup[u.getName()]);u.popupContent.duration=ycp(u);u.popupContent.positionType=u.openPopupAction.position;var C=u.openPopupAction.properties;C&&Object.keys(C).forEach(function(W){u.popupContent[W]=C[W]})},DyE=function(u,K){if(K)for(var l=
_.y(Object.keys(K)),D=l.next();!D.done;D=l.next())D=D.value,u.popup[D]=K[D]},dyp=function(u){if(u.openPopupAction.position){var K=u.JSC$20569_popupConfig.positionalProperties&&u.JSC$20569_popupConfig.positionalProperties[u.openPopupAction.position],l=u.JSC$20569_popupConfig.rtlPositionalProperties&&u.JSC$20569_popupConfig.rtlPositionalProperties[u.openPopupAction.position];
K=u.isRtl()&&l?l:K;K.shiftedHorizontalOffset&&(l=u.popup.style.display,u.popup.style.display="block",u.popupContent&&u.popup.positionTarget&&u.popupContent.clientWidth>u.popup.positionTarget.clientWidth&&(K.horizontalOffset=u.popup.positionTarget.clientWidth/2-K.shiftedHorizontalOffset),u.popup.style.display=l);DyE(u,K)}},s6p=function(u,K){if(K)for(var l=_.y(Object.keys(K)),D=l.next();!D.done;D=l.next())D=D.value,u.popup.style[D]=K[D]};
xI.prototype.getName=function(){return _.Xp(this.openPopupAction.popup,"renderer")||_.Xp(this.openPopupAction.popup,"dialog")||_.Xp(this.openPopupAction.popup,"model")||void 0};
var ycp=function(u){u=u.openPopupAction.durationHintMs;return u===0?u:Math.max(4E3,u||4E3)};
xI.prototype.isRtl=function(){return _.E3("HTML_DIR")==="rtl"};
var I5p=function(u,K){u=u.getElement(K,u.target);u==null&&_.hV(new _.wv("popup getElement returned null",K));return u};var o36={};
o36.YtPopupContainerBehavior=[_.Co.YtComponentBehavior,_.bf.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_);_.GA(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.ts(this.hostElement)},
closePopup:function(u){var K=this.createCacheKey(void 0,u);this.popups_[K]&&this.handleClosePopupAction_(void 0,u)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.YL.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.YL.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(u){u.opened&&u.keepBelowPlayer&&this.ensurePopupBelowPlayer(u)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var u in this.popups_){var K=this.popups_[u];if(K.popup.scrollAction==="refit"){var l=K.popup.positionTarget.getBoundingClientRect(),D=K.popup;l=l.top;var d=K;if(!d.naturalHeight){d.popup.hidden=!1;d.popup.style.position="fixed";d.popup.style.top="0px";d.popup.style.left="0px";var C=d.popup.getBoundingClientRect();d.naturalHeight=C.bottom-C.top;d.popup.refit()}D.hidden=!(l>=d.naturalHeight+60);K.popupContent.clientHeight===0&&K.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(u){this.popupContainerConfig=u},
handleOpenPopupAction:function(u,K){var l=u.openPopupAction,D=_.GB().resolve(_.vv(_.R3))&&l.popupType==="TOAST";D&&!l.uniqueId&&(l.uniqueId=_.EY());if(!_.S("popup_container_parent_target_killswitch")){var d;K=(d=this.getParentTarget(K))!=null?d:K}var C=this.ensurePopup_(l,K);return new _.RL(function(W){C.then(function(M){if(!M)return W();this.maybeCreateNarrowMediaQuery_();var q=this.createCacheKey(M.rendererName,M.openPopupAction.uniqueId);if(l.showOncePerUniqueId){if(this.shownPopupKeys_.has(q))return W();
this.shownPopupKeys_.add(q)}q=this.popups_[q];var v=!(!q||!q.openPopupAction.beReused);v=!!l.reusePopup||v;if(M.popup.opened&&!v){D&&!M.openPopupAction.replacePopup||this.handleClosePopupAction_(M.rendererName,M.openPopupAction.uniqueId);v=l.popupType==="DIALOG"&&!_.S("popup_container_dialog_reopen_killswitch");if(!D&&!v&&q&&q.target==K&&!M.openPopupAction.replacePopup)return W();_.W_(M.popup,function(){this.completeOpenPopupAction_(l,K,M);W()}.bind(this))}else M.popup.opened?M.updatePopup(l):this.completeOpenPopupAction_(l,
K,M),W()}.bind(this))}.bind(this))},
getParentTarget:function(u){if(u&&u instanceof HTMLElement)for(var K=_.y(Object.entries(this.popups_)),l=K.next();!l.done;l=K.next())if(l=_.y(l.value),l.next(),l=l.next().value,l.popup.tagName==="TP-YT-IRON-DROPDOWN"&&u.closest(l.rendererName))return l.target},
completeOpenPopupAction_:function(u,K,l){l.updatePopup(u);u=this.narrowMediaQuery_.queryMatches;var D=this.isAriaModal;l.target=K;var d;K=((d=l.target.polymerController)!=null?d:l.target).popupPositionTarget||l.target;l.JSC$20569_popupConfig.targetContainer&&(K=l.container);l.popup.positionTarget=K;l.popupContent.positionTarget=K;dyp(l);l.JSC$20569_popupConfig.forceFocus&&(l.popupContent.style.outline="none");l.popupContent.tabIndex=-1;l.JSC$20569_popupConfig.narrowProperties&&(l.popup.style.position=
"static");l.JSC$20569_popupConfig.preventAutonav&&l.popup.setAttribute("prevent-autonav",!0);l.JSC$20569_popupConfig.forceCloseOnOutsideClick&&l.popup.setAttribute("force-close-on-outside-click",!0);Cak(l,u,D);s6p(l,l.JSC$20569_popupConfig.styles);l.isRtl()&&s6p(l,l.JSC$20569_popupConfig.rtlStyles);if(!l.openPopupAction.shouldStopParentSignal){var C;d=(C=l.target.polymerController)!=null?C:l.target;(l.popupContent.startForwardingEvents||l.popupContainerConfig.forwardingEnabledPopups.has(l.rendererName))&&
d.parentComponent!==l.popupContent&&l.popupContent!==l.target&&l.target!==document.body&&(l.popupContent.startForwardingEvents?l.popupContent.startForwardingEvents(l.popupContainerConfig.forwardedEvents,l.target):(l.JSC$20569_eventForwarder||(l.JSC$20569_eventForwarder=new _.zb(l.popupContent)),l.JSC$20569_eventForwarder.start(l.popupContainerConfig.forwardedEvents,l.target)))}l=l.popup;l.addEventListener("iron-overlay-opened",_.Ql(this,this.onPopupIronOverlayOpened_));l.addEventListener("iron-overlay-closed",
_.Ql(this,this.onPopupIronOverlayClosed_));l.addEventListener("iron-overlay-canceled",_.Ql(this,this.onPopupIronOverlayCanceled_));l.addEventListener("yt-refit",_.Ql(this,this.refitPopup_));l.addEventListener("yt-invalidate-popup-tabbables",_.Ql(this,this.handleInvalidatePopupTabbables_));l.open()},
getPopupDurationMs_:function(u){return u.durationHintMs===0?u.durationHintMs:Math.max(4E3,u.durationHintMs||4E3)},
handleClosePopupAction_:function(u,K){var l=_.S("web_popup_cache_key_killswitch")||!!K;if(u||l){var D=this.createCacheKey(u,K);u=(u=this.popups_[D])&&u.popup}else u=_.Vds(_.yb);if(u&&u.close){if(K=_.GB().resolve(_.vv(_.zF)))u.restoreFocusOnClose=K.isKeyBoardInUse();u.close();this.removePopup_(u,D)}},
handleClosePopupCommand_:function(u){u.closePopupCommand&&u.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,u.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(u){var K={},l;for(l in this.popups_)if(K={key$jscomp$1179:K.key$jscomp$1179},K.key$jscomp$1179=l,!u||!u.some(function(C){return function(W){return W==C.key$jscomp$1179}}(K))){var D=this.popups_[K.key$jscomp$1179],d=D.popup;
_.GB().resolve(_.vv(_.R3))&&D.openPopupAction.popupType==="TOAST"||(d&&d.close&&d.close(),this.removePopup_(d,K.key$jscomp$1179))}},
handleClosePopupsAction_:function(u){u.forEach(function(K){var l=this.popups_[K];l&&((l=l.popup)&&l.close&&l.close(),this.removePopup_(l,K))}.bind(this))},
handleGetPopupOpenedAction_:function(u,K){return(K=this.createCacheKey(u,K))&&this.popups_[K]?this.popups_[u].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var u=[],K;for(K in this.popups_){var l=this.popups_[K];l.popup.opened&&u.push(l)}return u},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(u,K){_.S("ytpopup_disable_default_html_caching")&&u&&u.removeWhenClosed&&(_.bi(this.hostElement).removeChild(u),K&&this.popups_[K]&&delete this.popups_[K])},
shouldReusePopup_:function(u){return!(!u||!u.reusePopup)||!(!u||!u.beReused)},
ensurePopup_:function(u,K){this.maybeCreateNarrowMediaQuery_();var l=_.Xp(u.popup,"renderer")||_.Xp(u.popup,"dialog")||_.Xp(u.popup,"model");if(!l)return _.zA();l=_.vYn(l,F9k(this.popupContainerConfig,l));return _.zA(this.getAndMaybeCreatePopup_(u,l,K))},
getAndMaybeCreatePopup_:function(u,K,l){var D=this.createCacheKey(K,u.uniqueId);if(this.popups_[D])return this.popups_[D];u=new xI({openPopupAction:u,target:l,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(K)});return this.popups_[D]=u},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(u){return _.S("ytpopup_disable_default_html_caching")?u&&u.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",_.Ql(this,this.openPopupQueryMatchesChanged_)),_.bi(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(u){u=u.detail.value;for(var K in this.popups_)Cak(this.popups_[K],u)},
onPopupIronOverlayClosed_:function(u){var K=u.currentTarget,l=_.Wjo(K);l=l.length>0?l[0]:K;if(l.is!=="ytd-reel-watch-while-dialog-renderer"||u.target.is!=="tp-yt-iron-dropdown"){u.detail.popup=K;u.detail.popupRenderer=l;var D,d={context:{openingElement:((D=this.popups_[(l==null?void 0:l.is)||""])==null?void 0:D.target)||void 0}};Object.assign(d,u.detail);var C;_.xs((C=l.hostElement)!=null?C:l,"yt-popup-closed",d);K.removeEventListener("yt-refit",_.Ql(this,this.refitPopup_));K.removeEventListener("yt-invalidate-popup-tabbables",
_.Ql(this,this.handleInvalidatePopupTabbables_));K.removeEventListener("iron-overlay-canceled",_.Ql(this,this.onPopupIronOverlayCanceled_));K.removeEventListener("iron-overlay-closed",_.Ql(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(K)}},
onPopupIronOverlayCanceled_:function(u,K){var l=u.currentTarget,D=_.Wjo(l);D=D.length>0?D[0]:l;if(D.is!=="ytd-reel-watch-while-dialog-renderer"||u.target.is!=="tp-yt-iron-dropdown"){var d;_.xs((d=D.hostElement)!=null?d:D,"yt-popup-canceled",u.detail);d=K?_.WF(K):null;(!K||["click","tap"].includes(K.type))&&!l.hasAttribute("force-close-on-outside-click")&&l.positionTarget&&d&&d.includes(l.positionTarget)&&u.preventDefault();l.restoreFocusOnClose=_.T7.keyboardEventMatchesKeys(K,"esc")}},
onPopupIronOverlayOpened_:function(u){u=u.currentTarget;var K=_.Wjo(u);K=K.length>0?K[0]:u;var l,D;_.xs((l=K.hostElement)!=null?l:K,"yt-popup-opened",(D=K.hostElement)!=null?D:K);u.keepBelowPlayer&&(this.ensurePopupBelowPlayer(u,!0),this.dynamicallyPositionedElements_.add(u));l=_.GB().resolve(_.vv(_.zF));D=!!K.querySelector("#toast");l&&l.isKeyBoardInUse()&&!D&&(typeof K.focusFirstItem==="function"?K.focusFirstItem():(K=_.Tss(u),K.length&&K[0].focus()));u.removeEventListener("iron-overlay-opened",
_.Ql(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(u){u=u.currentTarget;u.refit&&u.refit()},
refitPopups_:function(){for(var u in this.popups_)this.popups_[u].refit()},
handleInvalidatePopupTabbables_:function(u){u=u.currentTarget;u.invalidateTabbables&&u.invalidateTabbables()},
createCacheKey:function(u,K){return _.S("web_popup_cache_key_killswitch")?K?u+"#"+K:u:K?"#"+K:u},
openSheet:function(u,K){var l=u==null?void 0:u.openPopupActionCommand;!l&&(u==null?0:u.viewModel)&&(l={openPopupAction:{popup:{sheetViewModel:u.viewModel},popupType:"CONTEXTUAL_SHEET"}});l&&this.handleOpenPopupAction(l,K)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var u=this;return _.H(function(K){return K.return(u.handleGetOpenedPopupsAction_().filter(function(l){var D;return((D=l.openPopupAction)==null?void 0:D.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(u,K,l){if(_.S("web_dialog_utils_killswitch")){var D=u==null?void 0:u.openPopupActionCommand,d=(l==null?0:l.ariaLabel)?{accessibilityData:{accessibilityData:{label:l.ariaLabel}}}:void 0;!D&&(u==null?0:u.viewModel)&&(D={openPopupAction:Object.assign({},{popup:{dialogViewModel:u.viewModel},popupType:(l==null?0:l.isModal)?"MODAL":"DIALOG"},d&&d)});D&&this.handleOpenPopupAction(D,K)}else{if(d=u==null?void 0:u.viewModel){var C=l=l===void 0?{}:l;l=C.ariaLabel;d={popup:{dialogViewModel:d},
popupType:C.isModal?"MODAL":"DIALOG"};C={accessibilityData:{label:l}};l&&(d.accessibilityData=C);d={openPopupAction:d}}else d=void 0;if(d=(D=d)!=null?D:u==null?void 0:u.openPopupActionCommand)this.isAriaModal=_.S("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(d,K)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var u=this;return _.H(function(K){return K.return(u.handleGetOpenedPopupsAction_().filter(function(l){var D;return((D=l.openPopupAction)==null?void 0:D.popupType)==="DIALOG"}).length>0)})}}];var W$V;var Hyk;var Mx_=_.oj(["about:blank"]),SN=function(){var u=_.Q.apply(this,arguments)||this;u.isMuted=!1;u.pageLoadTimeoutId=void 0;return u};
_.c(SN,_.Q);_.I=SN.prototype;_.I.dataChanged=function(){var u=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var K=this.data.url,l=_.AP(K);_.S("enable_yt_ata_iframe_authuser")?(l=_.AP(K),_.yg(this.iframe,DEG(l))):_.yg(this.iframe,l);this.pageLoadTimeoutId=_.Ve(_.k5(),function(){return void u.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.ty({destination:window,iframe:this.iframe,origin:_.JEw(l.toString()),channelName:"ataiframe",onMessage:_.T7h(ZtE,function(D){Y7p(D.data)?(D=_.sS(D.data,1,_.Sk,_.vO()),D.length!==1?_.hV(Error("rl")):(D=D[0],D===3?(u.isMuted=!0,u.logStateChanged({adMuteRequested:!0})):D===1&&u.close())):_.hV(Error("sl"))}),
onEstablished:function(){u.cancelPageLoadTimeout();u.logStateChanged({pageLoadSucceeded:!0})}})}};
_.I.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.k5().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.I.logStateChanged=function(u){var K;if((K=this.data)==null?0:K.trackingParams)u={adsClientData:{aboutThisAdData:u}},_.iT().stateChanged(this.data.trackingParams,u)};
_.I.close=function(){_.Sy(this.hostElement,"yt-close-popup-action",[this.is])};
_.I.handlesPopupClosed=function(u,K){var l=this,D,d;return _.H(function(C){if(C.nextAddress==1)return _.E3("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.Sy(l.hostElement,"on-about-this-ad-popup-closed",[l.isMuted,K]),C.jumpTo(0)):u&&dEp(u)?C.yield(CTo(u),4):(l.isMuted&&_.Sy(l.hostElement,"yt-mute-ad-action",[l.is,l]),C.jumpTo(0));if(D=C.yieldResult){var W=d=new _.gL(D),M=l.isMuted;W.getOptions().includes("onAboutThisAdPopupClosed")?_.g9R(W,"onAboutThisAdPopupClosed",{isMuted:M,layoutId:K}):_.nz("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.TG(C)})};
_.I.onPopupClosed=function(u){var K=this,l,D;return _.H(function(d){l=_.Oy(Mx_);_.yg(K.iframe,l);K.cancelPageLoadTimeout();if(!K.data)return d.jumpTo(0);K.ytRendererBehavior.markDirty();D=u.detail.context.openingElement;return d.yield(K.handlesPopupClosed(D,K.data.layoutId),0)})};
_.I.detached=function(){this.cancelPageLoadTimeout()};
_.I.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
SN.prototype.onPopupClosed=SN.prototype.onPopupClosed;SN.prototype.dataChanged=SN.prototype.dataChanged;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],SN.prototype,"ytRendererBehavior",void 0);_.g([_.BF("#iframe"),_.N("design:type",HTMLIFrameElement)],SN.prototype,"iframe",void 0);_.g([_.U(),_.N("design:type",Object)],SN.prototype,"data",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SN.prototype,"dataChanged",null);
_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype",Promise)],SN.prototype,"onPopupClosed",null);_.g([_.E9({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],SN);
_.F(SN,"yt-about-this-ad-renderer",function(){if(Hyk===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;W$V===void 0&&(W$V=document.createElement("template"));var D=W$V;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Hyk=u}u=Hyk;return u},{mode:2});var qlI;var $y_;var bm=function(u){var K=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=K.message;"stack"in K&&(this.stack=K.stack);this.maxFileSizeMB=u;Object.setPrototypeOf(this,bm.prototype)};
_.c(bm,Error);var n3p=function(u,K){var l=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=l.message;"stack"in l&&(this.stack=l.stack);this.minWidth=u;this.minHeight=K;Object.setPrototypeOf(this,n3p.prototype)};
_.c(n3p,Error);var rcp=function(u){this.requirements=u;this.JSC$20597_maxFileSize=u.maxFileSizeMB*1024*1024},v3E=function(u,K){if(K.size>u.JSC$20597_maxFileSize)throw new bm(u.requirements.maxFileSizeMB);
};var Gak=function(u,K){this.canvas=u;this.imageEditorBuilder=K};
Gak.prototype.addEventListeners=function(u){var K=function(d){txV(u,d)};
this.JSC$20603_mouseDownEvent=K;var l=function(d){xy2(u,d)};
this.JSC$20603_mouseMoveEvent=l;var D=function(){Sli(u)};
this.JSC$20603_mouseUpEvent=D;this.canvas.addEventListener("mousedown",K);this.canvas.addEventListener("mousemove",l);document.addEventListener("mouseup",D)};
Gak.prototype.removeEventListeners=function(){this.JSC$20603_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20603_mouseDownEvent);this.JSC$20603_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20603_mouseMoveEvent);this.JSC$20603_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20603_mouseUpEvent)};
var byE=function(u,K){u.removeEventListeners();return new Promise(function(l){var D=new Image;D.crossOrigin="anonymous";D.onload=function(){var d=u.imageEditorBuilder(u.canvas,D);u.addEventListeners(d);l(d)};
D.src=K})},O0=function(u,K,l,D,d,C,W,M){this.canvas=u;
this.image=K;this.requiredRatio=l;this.minImageCropDimension=D;this.minOutputImageResolution=d;this.component=C;this.styleFocusedCorner=M===void 0?!0:M;this.action=2;this.focusedCorner=this.resizeCorner=0;u=this.canvas.getContext("2d");if(!u)throw Error("tl");this.ctx=u;this.canvasMargin=W!=null?W:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;W=this.image;u=this.canvasInnerWidth/W.width;W.height*u>912&&(u=W.width/W.height*912/W.width);W=u;this.scaledImageWidth=this.canvas.width%2?
ylE(this.image.width*W):Ip2(this.image.width*W);this.scaledImageHeight=Math.round(this.image.height*W);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20606_overlayMarginBottom=this.JSC$20606_overlayMarginTop=this.canvasMargin;this.JSC$20606_overlayMarginRight=this.JSC$20606_overlayMarginLeft=this.horizontalMargin;this.JSC$20606_overlayWidth=this.scaledImageWidth;this.JSC$20606_overlayHeight=this.scaledImageHeight;
u=this.image.width/this.image.height;u>this.requiredRatio?(this.JSC$20606_overlayWidth=this.canvas.width%2?ylE(this.scaledImageHeight*this.requiredRatio):Ip2(this.scaledImageHeight*this.requiredRatio),this.JSC$20606_overlayMarginRight=this.JSC$20606_overlayMarginLeft=(this.canvas.width-this.JSC$20606_overlayWidth)/2):u<this.requiredRatio&&(this.JSC$20606_overlayHeight=this.canvas.height%2?ylE(this.scaledImageWidth/this.requiredRatio):Ip2(this.scaledImageWidth/this.requiredRatio),this.JSC$20606_overlayMarginBottom=
this.JSC$20606_overlayMarginTop=(this.canvas.height-this.JSC$20606_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*W,this.scaledImageWidth);OyE(this)};
O0.prototype.getContext=function(){return this.ctx};
var txV=function(u,K){K={x:Math.round(K.pageX-u.canvas.getBoundingClientRect().left),y:Math.round(K.pageY-u.canvas.getBoundingClientRect().top)};u.dragStart=K;ccE(u,K)!==0?(u.action=1,a5H(u,K),u.resizeCorner=ccE(u,K)):K.x>u.JSC$20606_overlayMarginLeft&&K.x<u.JSC$20606_overlayMarginLeft+u.JSC$20606_overlayWidth&&K.y>u.JSC$20606_overlayMarginTop&&K.y<u.JSC$20606_overlayMarginTop+u.JSC$20606_overlayHeight&&(u.action=0)},zK6=function(u,K){switch(K){case 1:return{x:u.JSC$20606_overlayMarginLeft,
y:u.JSC$20606_overlayMarginTop};case 2:return{x:u.JSC$20606_overlayMarginLeft,y:u.JSC$20606_overlayMarginTop+u.JSC$20606_overlayHeight};case 3:return{x:u.JSC$20606_overlayMarginLeft+u.JSC$20606_overlayWidth,y:u.JSC$20606_overlayMarginTop};case 4:return{x:u.JSC$20606_overlayMarginLeft+u.JSC$20606_overlayWidth,y:u.JSC$20606_overlayMarginTop+u.JSC$20606_overlayHeight};default:throw Error("ul");}},RKo=function(u,K){if(u.focusedCorner!==0){u.dragStart=zK6(u,u.focusedCorner);
u.action=1;u.resizeCorner=u.focusedCorner;var l=u.dragStart.x,D=u.dragStart.y;switch(K){case 0:u.focusedCorner===1||u.focusedCorner===4?(l-=10,D-=10):(l-=10,D+=10);break;case 1:u.focusedCorner===1||u.focusedCorner===4?(l+=10,D+=10):(l+=10,D-=10);break;case 2:l=u.focusedCorner===1||u.focusedCorner===4?l-10:l+10;D-=10;break;case 3:l=u.focusedCorner===1||u.focusedCorner===4?l+10:l-10;D+=10;break;default:throw Error("vl");}eKi(u,{x:l,y:D});OyE(u);u.action=2;u.dragStart=void 0}},xy2=function(u,K){K={x:Math.round(K.pageX-
u.canvas.getBoundingClientRect().left),
y:Math.round(K.pageY-u.canvas.getBoundingClientRect().top)};a5H(u,K);switch(u.action){case 1:eKi(u,K);break;case 0:u.dragStart&&(u.JSC$20606_overlayMarginLeft=Math.max(u.horizontalMargin,Math.min(u.JSC$20606_overlayMarginLeft-(u.dragStart.x-K.x),u.horizontalMargin+u.scaledImageWidth-u.JSC$20606_overlayWidth)),u.JSC$20606_overlayMarginRight=u.canvas.width-u.JSC$20606_overlayMarginLeft-u.JSC$20606_overlayWidth,u.JSC$20606_overlayMarginTop=Math.max(u.canvasMargin,Math.min(u.JSC$20606_overlayMarginTop-
(u.dragStart.y-K.y),u.scaledImageHeight-u.JSC$20606_overlayHeight+u.canvasMargin)),u.JSC$20606_overlayMarginBottom=u.canvas.height-(u.JSC$20606_overlayMarginTop+u.JSC$20606_overlayHeight));break;default:return}OyE(u);u.dragStart=K},Sli=function(u){u.action=2;
u.dragStart=void 0;document.body.style.cursor="auto"},a5H=function(u,K){switch(ccE(u,K)){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:u.action!==1&&(document.body.style.cursor="auto")}},ccE=function(u,K){var l=u.JSC$20606_overlayMarginLeft-5,D=u.JSC$20606_overlayMarginTop-5,d=u.JSC$20606_overlayMarginLeft+u.JSC$20606_overlayWidth-5;
u=u.JSC$20606_overlayMarginTop+u.JSC$20606_overlayHeight-5;return Uy6(K,{x:l,y:D})?1:Uy6(K,{x:d,y:D})?3:Uy6(K,{x:l,y:u})?2:Uy6(K,{x:d,y:u})?4:0},Uy6=function(u,K){return u.x>=K.x&&u.x<=K.x+10&&u.y>=K.y&&u.y<=K.y+10},eKi=function(u,K){if(u.dragStart)switch(u.resizeCorner){case 2:Math.abs((u.JSC$20606_overlayMarginLeft+u.JSC$20606_overlayWidth-K.x)/(K.y-u.JSC$20606_overlayMarginTop))>=u.requiredRatio?f5G(u,K.x):Q6_(u,K.y);
break;case 1:Math.abs((u.JSC$20606_overlayMarginLeft+u.JSC$20606_overlayWidth-K.x)/(u.JSC$20606_overlayMarginTop+u.JSC$20606_overlayHeight-K.y))>=u.requiredRatio?PaG(u,K.x):Q6_(u,K.y);break;case 4:Math.abs((K.x-u.JSC$20606_overlayMarginLeft)/(K.y-u.JSC$20606_overlayMarginTop))>=u.requiredRatio?f5G(u,K.x):Jc6(u,K.y);break;case 3:Math.abs((K.x-u.JSC$20606_overlayMarginLeft)/(u.JSC$20606_overlayMarginTop+u.JSC$20606_overlayHeight-K.y))>=u.requiredRatio?PaG(u,K.x):Jc6(u,K.y);break;default:throw Error("wl");
}},f5G=function(u,K){var l=u.JSC$20606_overlayMarginTop;
u.JSC$20606_overlayMarginBottom=j6G(u,K);u.JSC$20606_overlayHeight=u.canvas.height-u.JSC$20606_overlayMarginBottom-l;u.JSC$20606_overlayWidth=Math.round(u.JSC$20606_overlayHeight*u.requiredRatio);ByE(u)},PaG=function(u,K){var l=u.JSC$20606_overlayMarginTop+u.JSC$20606_overlayHeight;
u.JSC$20606_overlayMarginTop=j6G(u,K);u.JSC$20606_overlayHeight=l-u.JSC$20606_overlayMarginTop;u.JSC$20606_overlayWidth=Math.round(u.JSC$20606_overlayHeight*u.requiredRatio);ByE(u)},ByE=function(u){switch(u.resizeCorner){case 2:case 1:u.JSC$20606_overlayMarginLeft=u.canvas.width-u.JSC$20606_overlayMarginRight-u.JSC$20606_overlayWidth;
break;case 4:case 3:u.JSC$20606_overlayMarginRight=u.canvas.width-u.JSC$20606_overlayMarginLeft-u.JSC$20606_overlayWidth;break;default:throw Error("wl");}},Q6_=function(u,K){var l=u.JSC$20606_overlayMarginLeft+u.JSC$20606_overlayWidth;
u.JSC$20606_overlayMarginLeft=pHH(u,K);u.JSC$20606_overlayWidth=l-u.JSC$20606_overlayMarginLeft;u.JSC$20606_overlayHeight=Math.round(u.JSC$20606_overlayWidth/u.requiredRatio);iyp(u)},Jc6=function(u,K){var l=u.JSC$20606_overlayMarginLeft;
u.JSC$20606_overlayMarginRight=pHH(u,K);u.JSC$20606_overlayWidth=u.canvas.width-u.JSC$20606_overlayMarginRight-l;u.JSC$20606_overlayHeight=Math.round(u.JSC$20606_overlayWidth/u.requiredRatio);iyp(u)},iyp=function(u){switch(u.resizeCorner){case 2:case 4:u.JSC$20606_overlayMarginBottom=u.canvas.height-u.JSC$20606_overlayMarginTop-u.JSC$20606_overlayHeight;
break;case 1:case 3:u.JSC$20606_overlayMarginTop=u.canvas.height-u.JSC$20606_overlayMarginBottom-u.JSC$20606_overlayHeight;break;default:throw Error("wl");}},j6G=function(u,K){switch(u.resizeCorner){case 2:K=u.canvas.height-(u.JSC$20606_overlayMarginTop+Tyo(u,K));
break;case 4:K=u.canvas.height-(u.JSC$20606_overlayMarginTop+wH2(u,K));break;case 1:K=u.JSC$20606_overlayMarginTop+u.JSC$20606_overlayHeight-Tyo(u,K);break;case 3:K=u.JSC$20606_overlayMarginTop+u.JSC$20606_overlayHeight-wH2(u,K);break;default:throw Error("wl");}return Math.max(K,u.canvasMargin)},Tyo=function(u,K){K=u.JSC$20606_overlayMarginLeft+u.JSC$20606_overlayWidth-Math.max(K,u.horizontalMargin);
K=K<0?u.JSC$20606_overlayWidth:Math.max(K,u.minOverlayWidth);return Math.round(K/u.requiredRatio)},wH2=function(u,K){K=u.canvas.width-Math.max(u.canvas.width-K,u.horizontalMargin)-u.JSC$20606_overlayMarginLeft;
K=K<0?u.JSC$20606_overlayWidth:Math.max(K,u.minOverlayWidth);return Math.round(K/u.requiredRatio)},pHH=function(u,K){switch(u.resizeCorner){case 2:K=u.canvas.width-u.JSC$20606_overlayMarginRight-F$G(u,K);
break;case 4:K=u.canvas.width-u.JSC$20606_overlayMarginLeft-F$G(u,K);break;case 1:K=u.canvas.width-u.JSC$20606_overlayMarginRight-Vx6(u,K);break;case 3:K=u.canvas.width-u.JSC$20606_overlayMarginLeft-Vx6(u,K);break;default:throw Error("wl");}return Math.max(K,u.horizontalMargin)},F$G=function(u,K){K=u.canvas.height-Math.max(u.canvas.height-K,u.canvasMargin)-u.JSC$20606_overlayMarginTop;
return K<0?u.JSC$20606_overlayWidth:Math.max(Math.round(K*u.requiredRatio),u.minOverlayWidth)},Vx6=function(u,K){K=u.JSC$20606_overlayMarginTop+u.JSC$20606_overlayHeight-Math.max(K,u.canvasMargin);
return K<0?u.JSC$20606_overlayWidth:Math.max(Math.round(K*u.requiredRatio),u.minOverlayWidth)},OyE=function(u){u.ctx.clearRect(0,0,u.canvas.width,u.canvas.height);
u.ctx.drawImage(u.image,0,0,u.image.width,u.image.height,u.horizontalMargin,u.canvasMargin,u.canvas.width-2*u.horizontalMargin,u.scaledImageHeight);u.ctx.fillStyle="rgba(0, 0, 0, 0.7)";u.ctx.fillRect(u.horizontalMargin,u.JSC$20606_overlayMarginTop,u.JSC$20606_overlayMarginLeft-u.horizontalMargin,u.JSC$20606_overlayHeight);u.ctx.fillRect(u.JSC$20606_overlayMarginLeft+u.JSC$20606_overlayWidth,u.JSC$20606_overlayMarginTop,u.JSC$20606_overlayMarginRight-u.horizontalMargin,u.JSC$20606_overlayHeight);u.ctx.fillRect(u.horizontalMargin,
u.canvasMargin,u.scaledImageWidth,u.JSC$20606_overlayMarginTop-u.canvasMargin);u.ctx.fillRect(u.horizontalMargin,u.JSC$20606_overlayMarginTop+u.JSC$20606_overlayHeight,u.scaledImageWidth,u.JSC$20606_overlayMarginBottom-u.canvasMargin);u.drawOverlay();u.component&&_.xs(u.component,"image-updated")};
O0.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20606_overlayMarginLeft,this.JSC$20606_overlayMarginTop,this.JSC$20606_overlayWidth,this.JSC$20606_overlayHeight);g3k(this)};
var g3k=function(u){var K=u.JSC$20606_overlayMarginLeft-5,l=u.JSC$20606_overlayMarginTop-5,D=u.JSC$20606_overlayMarginLeft+u.JSC$20606_overlayWidth-5,d=u.JSC$20606_overlayMarginTop+u.JSC$20606_overlayHeight-5;u.ctx.fillStyle="#FFF";u.ctx.fillRect(K,l,10,10);u.ctx.strokeRect(K,l,10,10);u.ctx.fillRect(D,l,10,10);u.ctx.strokeRect(D,l,10,10);u.ctx.fillRect(K,d,10,10);u.ctx.strokeRect(K,d,10,10);u.ctx.fillRect(D,d,10,10);u.ctx.strokeRect(D,d,10,10);if(u.focusedCorner!==0&&u.styleFocusedCorner){u.ctx.lineWidth=
4;u.ctx.strokeStyle="#3EA6FF";switch(u.focusedCorner){case 1:--K;--l;break;case 2:--K;l=d-1;break;case 3:K=D-1;--l;break;case 4:K=D-1;l=d-1;break;default:return}u.ctx.strokeRect(K,l,12,12)}};
O0.prototype.crop=function(u,K){K=K===void 0?!0:K;var l=this.image.width/this.scaledImageWidth,D=document.createElement("canvas"),d=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],C=this.JSC$20606_overlayWidth*l,W=this.JSC$20606_overlayHeight*l;D.width=Math.max(C,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);D.height=Math.max(W,d);u&&(D.width=Math.min(D.width,D.height),D.height=Math.min(D.width,D.height));
u=D.getContext("2d");if(!u)throw Error("kl");d=(this.JSC$20606_overlayMarginLeft-this.horizontalMargin)*l;l*=this.JSC$20606_overlayMarginTop-this.canvasMargin;K||(u.fillStyle="white",u.fillRect(0,0,D.width,D.height));u.drawImage(this.image,d,l,C,W,0,0,D.width,D.height);return D};var NyB=function(u,K,l,D,d){O0.call(this,u,K,l,D,void 0,d,8,!1)};
_.c(NyB,O0);NyB.prototype.drawOverlay=function(){var u=this.getContext(),K=this.JSC$20606_overlayWidth,l=this.JSC$20606_overlayHeight,D=this.JSC$20606_overlayMarginTop,d=this.JSC$20606_overlayMarginLeft;u.lineWidth=2;u.strokeStyle="#3EA6FF";u.beginPath();u.arc(d+K/2,D+l/2,K/2,0,2*Math.PI);u.stroke();u.strokeRect(d,D,K,l);g3k(this)};
var kaE={maxFileSizeMB:15,minWidth:98,minHeight:98},Zy_=["image/png","image/jpeg","image/gif"],cw=function(){var u=_.Q.apply(this,arguments)||this;u.fileSelectorFocusListener=null;u.errorMessage=null;u.isLoading=!0;u.hideContainer=!0;u.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return u};
_.c(cw,_.Q);_.I=cw.prototype;_.I.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.I.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.I.computePlaylistThumbnail=function(u){return u==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.I.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.Sy(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.I.setErrorState=function(u){this.resetErrorState();u&&(this.errorMessage=u)};
_.I.showPopup=function(){var u=this;this.hideContainer=!1;_.Ve(_.YL,function(){_.xs(u.hostElement,"yt-refit")});
this.isLoading=!1};
_.I.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.I.closePopup=function(){this.resetFileSelector();_.Sy(this.hostElement,"yt-close-popup-action",[this.is])};
_.I.onCancelTap=function(){this.isPlaylistThumbnail||_.Sy(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.I.openFileSelector=function(){var u=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Ve(_.YL,function(){setTimeout(function(){if(!u.fileSelector.files||u.fileSelector.files.length===0)u.onCancelTap();u.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(K){K instanceof Error?_.Xm(K):_.m0(new _.wv(JSON.stringify(K)))}};
_.I.handleFileSelection=function(){var u=this,K,l,D,d,C,W;return _.H(function(M){switch(M.nextAddress){case 1:_.Qg(M,2);if(!u.fileSelector.files||!u.imageEditorCanvas)return u.onCancelTap(),M.return();K=u.fileSelector.files[0];v3E(u.imageChecker,K);_.Qg(M,4);return M.yield(PiB(K),6);case 6:u.mimeType=M.yieldResult;_.I$(M,5,2);break;case 4:_.iY(M,2),_.Sy(u.hostElement,"yt-image-selection-error-action",[(l=u.data)==null?void 0:l.genericImageLoadErrorMessage]),u.onCancelTap();case 5:D=new FileReader;
D.addEventListener("load",function(){var q,v;return _.H(function(G){if(G.nextAddress==1){if(!D.result)return _.hV(Error("ml")),G.return();q=D.result;v=new Image;v.src=q;v.onload=function(){try{var t=u.imageChecker;if(v.width<t.requirements.minWidth||v.height<t.requirements.minHeight)throw new n3p(t.requirements.minWidth,t.requirements.minHeight);}catch(O){if(O instanceof n3p){var x;_.Sy(u.hostElement,"yt-image-selection-error-action",[(x=u.data)==null?void 0:x.imageDimensionErrorMessage]);u.logImageDimensionErrorVe()}else O instanceof
Error?_.Xm(O):(t=new _.wv(JSON.stringify(O)),_.Xm(t));u.onCancelTap()}u.showPopup()};
v.onerror=function(){var t;_.Sy(u.hostElement,"yt-image-selection-error-action",[(t=u.data)==null?void 0:t.genericImageLoadErrorMessage]);u.onCancelTap()};
return G.yield(byE(u.imageEditorCanvas,q),2)}u.imageEditor=G.yieldResult;u.updatePositionOfAllCorners();u.addEventListeners(u.imageEditor);_.TG(G)})},!1);
D.readAsDataURL(K);_.I$(M,0);break;case 2:d=_.iY(M),d instanceof bm?_.Sy(u.hostElement,"yt-image-selection-error-action",[(C=u.data)==null?void 0:C.imageSizeErrorMessage]):(d instanceof Error?_.Xm(d):_.m0(new _.wv(JSON.stringify(d))),_.Sy(u.hostElement,"yt-image-selection-error-action",[(W=u.data)==null?void 0:W.genericImageLoadErrorMessage])),u.onCancelTap(),_.TG(M)}})};
_.I.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var u=_.pr(_.iT(),{veType:232707,visualElement:_.Yo(232707)});u&&(u={visualElement:u},_.Bb().reportShown(u))}};
_.I.handleImageSelectionErrorAction=function(u){this.isPlaylistThumbnail&&_.f6q(this.hostElement,u)};
_.I.convertToImageFormatBundle=function(u){var K=this,l,D,d;return _.H(function(C){switch(C.nextAddress){case 1:return l=u.toDataURL(K.outputMimeType,1),C.yield(JUi(l),2);case 2:D=C.yieldResult;_.Qg(C,3);v3E(K.imageChecker,D);_.I$(C,4);break;case 3:d=_.iY(C);if(!(d instanceof bm))throw d;_.hV(new _.wv("Output size is bigger than input size for image",K.mimeType,K.outputMimeType,D.size));l=u.toDataURL("image/jpeg",.95);return C.yield(JUi(l),6);case 6:D=C.yieldResult;case 4:return C.return({dataUrl:l,
imageFile:D})}})};
_.I.handleUploadImageToScottyCommand=function(u){var K=this,l,D,d,C,W,M,q,v,G,t;return _.H(function(x){switch(x.nextAddress){case 1:if(!K.imageEditor||!_.b(u,s8H))return x.return();l=_.b(u,s8H).scottyUploadUrl;if(!l){var O=new _.wv("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.Xm(O);return x.return()}_.Qg(x,2);K.setLoadingState();D=K.imageEditor.crop(!1,!1);return x.yield(K.convertToImageFormatBundle(D),4);case 4:return d=x.yieldResult,x.yield(fvE(d.imageFile,l),5);
case 5:C=x.yieldResult;((W=K.data)==null?0:W.onUploadEndpoint)?(M=K.buildUploadServiceEndpoint(C),K.ytComponentBehavior.resolveCommand(M),q=_.b(M,_.LP),((v=q)==null?0:v.params)?K.closePopup():K.resetFileSelector()):(_.Sy(K.hostElement,"yt-image-updated-action",[d.dataUrl,C]),K.closePopup());_.I$(x,0);break;case 2:G=_.iY(x),K.setErrorState((t=K.data)==null?void 0:t.uploadErrorMessage),G instanceof Error?_.Xm(G):(O=new _.wv(JSON.stringify(G)),_.Xm(O)),_.TG(x)}})};
_.I.buildUploadServiceEndpoint=function(u){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",u),this.data.onUploadEndpoint):null};
_.I.dataChanged=function(){var u=this,K;return _.H(function(l){if(l.nextAddress==1){if(!u.data||!u.canvasElement)return l.return();u.data.imageRatio&&u.data.minImageCropWidth||_.m0(new _.wv("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));K=function(D,d){return u.data.imageType==="IMAGE_TYPE_AVATAR"?new NyB(D,d,u.data.imageRatio,[u.data.minImageCropWidth,u.data.minImageCropWidth/u.data.imageRatio],u.hostElement):new O0(D,d,u.data.imageRatio,[u.data.minImageCropWidth,
u.data.minImageCropWidth/u.data.imageRatio],void 0,u.hostElement,8,!1)};
u.imageEditorCanvas=new Gak(u.canvasElement,K);return u.data.url?l.yield(byE(u.imageEditorCanvas,u.data.url),3):(u.hideContainer=!0,u.openFileSelector(),l.jumpTo(0))}u.imageEditor=l.yieldResult;u.showPopup();u.addEventListeners(u.imageEditor);_.TG(l)})};
_.I.addEventListeners=function(u){this.removeEventListeners();var K=function(d){txV(u,d)};
this.JSC$20614_mouseDownEvent=K;var l=function(d){xy2(u,d)};
this.JSC$20614_mouseMoveEvent=l;var D=function(){Sli(u)};
this.JSC$20614_mouseUpEvent=D;this.topLeftCorner.addEventListener("mousedown",K);this.topLeftCorner.addEventListener("mousemove",l);this.topLeftCorner.addEventListener("mouseup",D);this.topRightCorner.addEventListener("mousedown",K);this.topRightCorner.addEventListener("mousemove",l);this.topRightCorner.addEventListener("mouseup",D);this.bottomLeftCorner.addEventListener("mousedown",K);this.bottomLeftCorner.addEventListener("mousemove",l);this.bottomLeftCorner.addEventListener("mouseup",D);this.bottomRightCorner.addEventListener("mousedown",
K);this.bottomRightCorner.addEventListener("mousemove",l);this.bottomRightCorner.addEventListener("mouseup",D)};
_.I.removeEventListeners=function(){this.JSC$20614_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20614_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20614_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20614_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20614_mouseDownEvent));this.JSC$20614_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20614_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20614_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20614_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20614_mouseMoveEvent));this.JSC$20614_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20614_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20614_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20614_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20614_mouseUpEvent))};
_.I.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var u=document.activeElement;u&&u.shadowRoot&&u.shadowRoot.activeElement;)u=u.shadowRoot.activeElement;switch(u){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};
_.I.updatePositionOfCorner=function(u,K){var l=u.y-K.offsetHeight/2+4;K.style.left=u.x-K.offsetWidth/2+16+"px";K.style.top=l+"px"};
_.I.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var u=_.y([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),K=u.next();!K.done;K=u.next()){K=K.value;var l=zK6(this.imageEditor,K.corner);this.updatePositionOfCorner(l,K.div)}};
_.I.onLeft=function(u){this.imageEditor&&this.setFocusInImageEditor()&&(RKo(this.imageEditor,0),this.updatePositionOfAllCorners(),u.preventDefault())};
_.I.onRight=function(u){this.imageEditor&&this.setFocusInImageEditor()&&(RKo(this.imageEditor,1),this.updatePositionOfAllCorners(),u.preventDefault())};
_.I.onUp=function(u){this.imageEditor&&this.setFocusInImageEditor()&&(RKo(this.imageEditor,2),this.updatePositionOfAllCorners(),u.preventDefault())};
_.I.onDown=function(u){this.imageEditor&&this.setFocusInImageEditor()&&(RKo(this.imageEditor,3),this.updatePositionOfAllCorners(),u.preventDefault())};
_.I.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.MN.Object.defineProperties(cw.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&Zy_.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var u,K,l;((K=this.data)==null?0:K.imageRatio)&&((l=this.data)==null?0:l.minImageCropWidth)?u={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:u=kaE;return new rcp(u)}}});
cw.prototype.updatePositionOfAllCorners=cw.prototype.updatePositionOfAllCorners;cw.prototype.dataChanged=cw.prototype.dataChanged;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],cw.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],cw.prototype,"ytComponentBehavior",void 0);_.g([_.e(_.T7),_.N("design:type",Object)],cw.prototype,"ironA11yKeysBehavior",void 0);
_.g([_.BF("#canvas"),_.N("design:type",HTMLCanvasElement)],cw.prototype,"canvasElement",void 0);_.g([_.BF("#file-selector"),_.N("design:type",HTMLInputElement)],cw.prototype,"fileSelector",void 0);_.g([_.BF("#top-left-corner"),_.N("design:type",HTMLDivElement)],cw.prototype,"topLeftCorner",void 0);_.g([_.BF("#top-right-corner"),_.N("design:type",HTMLDivElement)],cw.prototype,"topRightCorner",void 0);
_.g([_.BF("#bottom-left-corner"),_.N("design:type",HTMLDivElement)],cw.prototype,"bottomLeftCorner",void 0);_.g([_.BF("#bottom-right-corner"),_.N("design:type",HTMLDivElement)],cw.prototype,"bottomRightCorner",void 0);_.g([_.U(),_.N("design:type",Object)],cw.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],cw.prototype,"errorMessage",void 0);_.g([_.U(),_.N("design:type",Object)],cw.prototype,"isLoading",void 0);_.g([_.U(),_.N("design:type",Object)],cw.prototype,"hideContainer",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.N("design:type",Boolean)],cw.prototype,"isPlaylistThumbnail",void 0);_.g([_.wn("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],cw.prototype,"dataChanged",null);_.g([_.PF("image-updated"),_.PF("yt-refit"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cw.prototype,"updatePositionOfAllCorners",null);
_.g([_.E9({is:"yt-image-editor-renderer",disableElementRegistration:!0})],cw);
_.F(cw,"yt-image-editor-renderer",function(){if($y_===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;qlI===void 0&&(qlI=document.createElement("template"));var D=qlI;l.call(K,D.content.cloneNode(!0),u.content.firstChild);$y_=u}u=$y_;return u},{mode:2});var Ylo;var AcE;var ak=function(){return _.Q.apply(this,arguments)||this};
_.c(ak,_.Q);ak.prototype.updateMinutesFromBinding=function(u){this.handleMinutesChanged&&this.handleMinutesChanged(u)};
ak.prototype.updateSecondsFromBinding=function(u){this.handleSecondsChanged&&this.handleSecondsChanged(u)};
ak.prototype.updateDescriptionFromBinding=function(u){this.handleDescriptionChanged&&this.handleDescriptionChanged(u)};
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],ak.prototype,"ytComponentBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],ak.prototype,"data",void 0);_.g([_.U(),_.N("design:type",String)],ak.prototype,"minutes",void 0);_.g([_.U(),_.N("design:type",String)],ak.prototype,"seconds",void 0);_.g([_.U(),_.N("design:type",String)],ak.prototype,"description",void 0);_.g([_.U(),_.N("design:type",Function)],ak.prototype,"handleMinutesChanged",void 0);
_.g([_.U(),_.N("design:type",Function)],ak.prototype,"handleSecondsChanged",void 0);_.g([_.U(),_.N("design:type",Function)],ak.prototype,"handleDescriptionChanged",void 0);_.g([_.U(),_.N("design:type",Number)],ak.prototype,"characterLimit",void 0);_.g([_.U(),_.N("design:type",Number)],ak.prototype,"textNumRows",void 0);_.g([_.E9({is:"yt-report-details-form-content",disableElementRegistration:!0})],ak);
_.F(ak,"yt-report-details-form-content",function(){if(AcE===void 0){var u=document.createElement("template");_.z(u,'\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>');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;Ylo===void 0&&(Ylo=document.createElement("template"));var D=Ylo;l.call(K,D.content.cloneNode(!0),u.content.firstChild);AcE=u}u=AcE;return u},{mode:2});var XHo;var myi;var zX=function(){var u=_.Q.apply(this,arguments)||this;u.updateMinutesFromBinding=function(K){u.minutes=K.detail.value};
u.updateSecondsFromBinding=function(K){u.seconds=K.detail.value};
u.updateDescriptionFromBinding=function(K){u.description=K.detail.value};
return u};
_.c(zX,_.Q);_.I=zX.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.I.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"}}}};
_.I.ready=function(){_.bi(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.I.onSubmitYtAction=function(u){var K=u.detail;K.actionName==="yt-service-request"&&(K=K.args[1],K.flagEndpoint&&(u.stopPropagation(),this.refireAction(K)))};
_.I.refireAction=function(u){var K={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(K.vss_id=this.vssId);_.c0(this.hostElement,[u,K]);this.submitDisabled=!0};
_.I.dataChanged=function(){var u=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var K=_.xY();K&&K.getPlayerPromise().then(function(l){var D=l.getOption("cc","track")||l.getOption("captions","track");D&&(u.vssId=D.vss_id);l=l.getCurrentTime();u.minutes=Math.floor(l/60).toString();u.seconds=(Math.floor(l)%60).toString()})};
_.I.updateSubmitButtonState=function(){var u;((u=this.data)==null?0:u.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==="")};
_.I.onYtServiceRequestCompleted=function(){_.Sy(this.hostElement,"yt-close-popup-action")};
_.I.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.MN.Object.defineProperties(zX.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var u;return((u=this.data)==null?void 0:u.textNumRows)||4}}});
zX.prototype.onYtServiceRequestError=zX.prototype.onYtServiceRequestError;zX.prototype.onYtServiceRequestCompleted=zX.prototype.onYtServiceRequestCompleted;zX.prototype.updateSubmitButtonState=zX.prototype.updateSubmitButtonState;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],zX.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);
_.g([_.U({observer:"dataChanged"}),_.N("design:type",Object)],zX.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Boolean)],zX.prototype,"submitDisabled",void 0);_.g([_.U(),_.N("design:type",String)],zX.prototype,"minutes",void 0);_.g([_.U(),_.N("design:type",String)],zX.prototype,"seconds",void 0);_.g([_.U(),_.N("design:type",String)],zX.prototype,"description",void 0);_.g([_.U(),_.N("design:type",String)],zX.prototype,"vssId",void 0);
_.g([_.U({value:_.E3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.N("design:type",Boolean)],zX.prototype,"isMusic",void 0);_.g([_.R("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],zX.prototype,"characterLimit",null);_.g([_.R("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],zX.prototype,"textNumRows",null);
_.g([_.wn("minutes","seconds","description","submitDisabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zX.prototype,"updateSubmitButtonState",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zX.prototype,"onYtServiceRequestCompleted",null);
_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zX.prototype,"onYtServiceRequestError",null);_.g([_.E9({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],zX);
_.F(zX,"yt-report-details-form-renderer",function(){if(myi===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;XHo===void 0&&(XHo=document.createElement("template"));var D=XHo;l.call(K,D.content.cloneNode(!0),u.content.firstChild);myi=u}u=myi;return u});var hKH;var E3_;var L$p;var uWH;var eN=function(){return _.Q.apply(this,arguments)||this};
_.c(eN,_.Q);
eN.prototype.onCheckedChanged_=function(){if(this.data){var u=_.bi(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.Sy(this.hostElement,"yt-additional-detail-checkbox-update",[u]):this.data.identifier==="yt-hide-user-checkbox"?_.Sy(this.hostElement,"yt-hide-user-checkbox-update",[u]):u&&this.data.enableCommand?_.Sy(this.hostElement,"yt-modify-report-form-command",[_.b(this.data.enableCommand,nxp)]):!u&&this.data.disableCommand&&_.Sy(this.hostElement,
"yt-modify-report-form-command",[_.b(this.data.enableCommand,nxp)])}};
eN.prototype.onLabelTap_=function(u){u.target.tagName!="A"&&(_.bi(this.hostElement).querySelector("#checkbox").checked=!_.bi(this.hostElement).querySelector("#checkbox").checked)};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],eN.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],eN.prototype,"data",void 0);_.g([_.E9({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],eN);
_.F(eN,"yt-boolean-form-field-v2-renderer",function(){if(uWH===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;L$p===void 0&&(L$p=document.createElement("template"));var D=L$p;l.call(K,D.content.cloneNode(!0),u.content.firstChild);uWH=u}u=uWH;return u});var Rk=function(){var u=_.Q.apply(this,arguments)||this;u.canShowAdditionalDetailCheckbox=!1;u.canShowCheckbox=!1;u.keepDropdownFocusedAfterSelection=!0;return u};
_.c(Rk,_.Q);Rk.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}}}}};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Rk.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Rk.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Rk.prototype,"canShowAdditionalDetailCheckbox",void 0);_.g([_.U(),_.N("design:type",Object)],Rk.prototype,"canShowCheckbox",void 0);_.g([_.U(),_.N("design:type",Object)],Rk.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.g([_.E9({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Rk);
_.F(Rk,"yt-report-form-modal-content",function(){if(E3_===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;hKH===void 0&&(hKH=document.createElement("template"));var D=hKH;l.call(K,D.content.cloneNode(!0),u.content.firstChild);E3_=u}u=E3_;return u},{mode:2});var KZo;var lR2;var U0=function(){var u=_.Q.apply(this,arguments)||this;u.submitting=!1;u.submitButtonDisabled=!0;u.command=null;u.canShowCheckbox=!1;u.canShowAdditionalDetailCheckbox=!1;u.canShowNextButton=!1;u.additionalDetailCheckboxChecked=!1;u.refitJob=0;u.keepDropdownFocusedAfterSelection=!0;u.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 u};
_.c(U0,_.Q);_.I=U0.prototype;_.I.created=function(){this.refitJob=0};
_.I.attached=function(){this.JSC$20637_scroller&&(this.JSC$20637_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20637_scroller.attached&&typeof this.JSC$20637_scroller.attached==="function"&&this.JSC$20637_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(u){u&&(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,u.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),u.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.I.onYtPopupOpened=function(){var u=_.xY();u&&u.getPlayerPromise().then(function(K){K.pauseVideo()})};
_.I.onYtNavigate=function(u){_.b(u.detail.endpoint,_.lVB)&&(u.stopPropagation(),this.hideReportForm=!0)};
_.I.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.I.onYtServiceRequestCompleted=function(u,K){var l=K.actions;if(l){if(l.length===1&&_.b(l[0],_.ey)){var D;l=((D=_.b(l[0],_.ey))==null?void 0:D.commands)||[]}D=0;for(var d=l.length;D<d;D++)_.b(l[D],_.kg)&&(u.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(l[D]))}if(K.data&&(u=this.get("feedbackResponses",K.data)))for(K=0;K<u.length;K++)if(u[K].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.I.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.I._onDescendantIronResize=function(u){u.stopPropagation();return!1};
_.I.handleReportFormEndpointUpdateAction=function(u){if(u.submitEndpoint){var K=this.command=u.submitEndpoint;K=_.b(K,_.E4w);if(K==null?0:K.additionalDetailCheckboxChecked)K.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else u.submitNavigationEndpoint?(this.command=u.submitNavigationEndpoint,this.toggleSubmitButton(!1)):u.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:u.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;u.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",u));this.refit()};
_.I.handleConfirmDialogCloseAction=function(u){u.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.I.submitButtonDisabledChanged=function(){var u=this.hostElement.parentElement;u&&u.invalidateTabbables&&u.invalidateTabbables()};
_.I.handleModifyReportFormCommand=function(u){u=this.get("action",u);u==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:u==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:u==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:u==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:u==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:u==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.I.updateDialogStyling=function(){var u,K,l,D,d,C=((d=(u=this.data)==null?void 0:(K=u.optionsSupportedRenderers)==null?void 0:(l=K.optionsRenderer)==null?void 0:(D=l.items)==null?void 0:D.length)!=null?d:0)<=2?0:240;_.e8(this.hostElement,{"--yt-report-form-modal-renderer-min-width":C+"px"})};
_.I.toggleSubmitButton=function(u){this.submitButtonDisabled=!u;this.submitButtonDisabled=u};
_.I.computeSubmitButtonData=function(u,K){var l={};_.b(K,_.lVB)?l.navigationEndpoint=K:l.command=K||void 0;u&&u.buttonRenderer&&_.k$.extend(l,u.buttonRenderer);return l};
_.I.computeNextButtonData=function(u,K){var l={};if(!u||!u.buttonRenderer)return l;_.k$.extend(l,u.buttonRenderer);if(!K)return l;if(_.b(K,_.lVB))l.navigationEndpoint=fSB(K);else if(l.command=fSB(K),u=_.b(l.command,_.E4w))u.legalCheckboxChecked=!0;return l};
_.I.computeShowNextButton=function(u,K,l){return!!u&&K&&l};
_.I.refit=function(){var u=this;this.refitJob||(this.refitJob=_.YL.addLowPriorityJob(function(){_.xs(u.hostElement,"yt-refit");u.refitJob=0}))};
_.I.handleAdditionalDetailCheckboxUpdateAction=function(u){this.additionalDetailCheckboxChecked=u;_.b(this.command,_.E4w).additionalDetailCheckboxChecked=u};
_.MN.Object.defineProperties(U0,{template:{configurable:!0,enumerable:!0,get:function(){if(lR2===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;KZo===void 0&&(KZo=document.createElement("template"));var D=KZo;l.call(K,D.content.cloneNode(!0),u.content.firstChild);lR2=u}u=lR2;return u}}});
U0.prototype.onYtServiceRequestError=U0.prototype.onYtServiceRequestError;U0.prototype.onYtServiceRequestCompleted=U0.prototype.onYtServiceRequestCompleted;U0.prototype.onYtServiceRequestSent=U0.prototype.onYtServiceRequestSent;U0.prototype.onYtNavigate=U0.prototype.onYtNavigate;U0.prototype.onYtPopupOpened=U0.prototype.onYtPopupOpened;_.g([_.e(_.B2.YtOpenPopupBehavior),_.N("design:type",Object)],U0.prototype,"openPopupBehavior",void 0);
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],U0.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],U0.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],U0.prototype,"eventForwardingBehavior",void 0);_.g([_.e(_.Ae),_.N("design:type",Object)],U0.prototype,"ironResizableBehavior",void 0);_.g([_.U({observer:"dataChanged"}),_.N("design:type",Object)],U0.prototype,"data",void 0);
_.g([_.U(),_.N("design:type",Object)],U0.prototype,"submitting",void 0);_.g([_.U({observer:"submitButtonDisabledChanged"}),_.N("design:type",Object)],U0.prototype,"submitButtonDisabled",void 0);_.g([_.U(),_.N("design:type",Object)],U0.prototype,"command",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],U0.prototype,"hideReportForm",void 0);_.g([_.U(),_.N("design:type",Object)],U0.prototype,"canShowCheckbox",void 0);
_.g([_.U(),_.N("design:type",Object)],U0.prototype,"canShowAdditionalDetailCheckbox",void 0);_.g([_.U(),_.N("design:type",Object)],U0.prototype,"canShowNextButton",void 0);_.g([_.U(),_.N("design:type",Object)],U0.prototype,"additionalDetailCheckboxChecked",void 0);_.g([_.U(),_.N("design:type",Object)],U0.prototype,"refitJob",void 0);_.g([_.U(),_.N("design:type",Object)],U0.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.g([_.BF("#scroller"),_.N("design:type",Object)],U0.prototype,"JSC$20637_scroller",void 0);_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],U0.prototype,"onYtPopupOpened",null);_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U0.prototype,"onYtNavigate",null);
_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],U0.prototype,"onYtServiceRequestSent",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],U0.prototype,"onYtServiceRequestCompleted",null);
_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U0.prototype,"onYtServiceRequestError",null);_.g([_.E9({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],U0);var DVp;var dV_;var fC=function(){return _.Q.apply(this,arguments)||this};
_.c(fC,_.Q);_.I=fC.prototype;_.I.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.I.onVisible=function(){var u,K;(K=_.GB().resolve(_.vv(_.JG)))==null||K.enqueue({label:_.WI((u=this.data)==null?void 0:u.messageTitle),elementToFocus:this.hostElement})};
_.I.onThumbnailLoaded=function(){_.xs(this.hostElement,"yt-refit")};
_.I.onDismissTap=function(){_.Sy(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.I.computeAlternateIcon=function(u){return u?u==="BACKSTAGE_ARTWORK"?"backstage:artwork":u:null};
_.I.computeFontFamily=function(u){return u==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.I.computeBackgroundStyle=function(u,K){if(u=this.computeBackgroundImage(u,K))if(u=_.O4(u.thumbnails))return'background-image: url("'+u+'");'};
_.I.computeHasFullHeightImage=function(u){return!(!(u&&u.thumbnails&&u.thumbnails.length>0)||this.modern)};
_.I.isModernStyle=function(u){return u.style==="STYLE_MODERN"};
_.I.computeIcon=function(u,K){if(u&&u.icon)return K?u.iconDark:u.icon};
_.I.computeBackgroundImage=function(u,K){if(u&&u.backgroundImage)return K?u.backgroundImageDark:u.backgroundImage};
_.I.computeLogo=function(u,K){if(u&&u.logo)return K?u.logoDark:u.logo};
_.I.computeShouldShowModernIcon=function(u,K){return u&&!!K};
_.I.getLogoContainerClassName=function(u){return this.logoWithPadding(u)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.I.getLogoImageId=function(u){return this.logoWithPadding(u)?"mealbar-logo-with-padding":"mealbar-logo"};
_.I.logoWithPadding=function(u){var K,l,D;return(u=(K=this.computeLogo(u,this.isDarkTheme))==null?void 0:(l=K.thumbnails)==null?void 0:(D=l[0])==null?void 0:D.height)&&u%31===0?!0:!1};
fC.prototype.onThumbnailLoaded=fC.prototype.onThumbnailLoaded;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);_.g([_.U({}),_.N("design:type",Object)],fC.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.N("design:type",Boolean)],fC.prototype,"modern",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],fC.prototype,"isDarkTheme",void 0);
_.g([_.U({computed:"computeIcon(data, isDarkTheme)"}),_.N("design:type",Object)],fC.prototype,"icon",void 0);_.g([_.U({computed:"computeLogo(data, isDarkTheme)"}),_.N("design:type",Object)],fC.prototype,"logo",void 0);_.g([_.U({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.N("design:type",Object)],fC.prototype,"backgroundStyle",void 0);_.g([_.U({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.N("design:type",Object)],fC.prototype,"alternateIcon",void 0);
_.g([_.U({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.N("design:type",Boolean)],fC.prototype,"hasFullHeightImage",void 0);_.g([_.U({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.N("design:type",Boolean)],fC.prototype,"useYoutubeSans",void 0);_.g([_.U({computed:"computeShouldShowModernIcon(modern, icon)"}),_.N("design:type",Boolean)],fC.prototype,"shouldShowModernIcon",void 0);
_.g([_.PF("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fC.prototype,"onThumbnailLoaded",null);_.g([_.E9({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],fC);
_.F(fC,"yt-mealbar-promo-renderer",function(){if(dV_===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;DVp===void 0&&(DVp=document.createElement("template"));var D=DVp;l.call(K,D.content.cloneNode(!0),u.content.firstChild);dV_=u}u=dV_;return u},{mode:2});var CzE;var IRB;var Qt=function(){return _.Q.apply(this,arguments)||this};
_.c(Qt,_.Q);_.I=Qt.prototype;_.I.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]]"}}}}}};
_.I.computeHasButtons_=function(u){return!(!u.dismissButton&&!u.acceptButton)};
_.I.computeStyle_=function(u){return u||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.I.observeImpressionEndpoints_=function(){var u=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(K){K.clickTrackingParams&&delete K.clickTrackingParams;_.c0(u.hostElement,[K])})};
_.I.onTap_=function(){_.Sy(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
Qt.prototype.observeImpressionEndpoints_=Qt.prototype.observeImpressionEndpoints_;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],Qt.prototype,"ytEventForwardingBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Qt.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],Qt.prototype,"positionType",void 0);_.g([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.N("design:type",Boolean)],Qt.prototype,"hasButtons_",void 0);_.g([_.U({value:function(){return this.onTap_.bind(this)}}),
_.N("design:type",Function)],Qt.prototype,"boundOnTap_",void 0);_.g([_.U({value:{style:"mono-inverse"}}),_.N("design:type",Object)],Qt.prototype,"buttonOverride",void 0);_.g([_.JU("data.promoConfig.impressionEndpoints"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qt.prototype,"observeImpressionEndpoints_",null);_.g([_.E9({is:"yt-tooltip-renderer",disableElementRegistration:!0})],Qt);
_.F(Qt,"yt-tooltip-renderer",function(){if(IRB===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;CzE===void 0&&(CzE=document.createElement("template"));var D=CzE;l.call(K,D.content.cloneNode(!0),u.content.firstChild);IRB=u}u=IRB;return u},{mode:2});var ykH;var sGE;var omi={},WZi=(omi.WEB_REMIX="music.youtube.com",omi),Pw=function(){var u=_.Q.apply(this,arguments)||this;u.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return u};
_.c(Pw,_.Q);_.I=Pw.prototype;_.I.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.created=function(){this.embedHost_=WZi[_.E3("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.I.ready=function(){_.bi(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.I.computeEmbedCode_=function(u,K,l,D,d){if(!u)return"";var C=u.videoId,W=u.fullListId,M=[];u.attributionId&&M.push("si="+u.attributionId);D||M.push("controls=0");l&&Number(K)>0&&M.push("start="+K);W&&(C="videoseries",M.push("list="+W));l="https://"+(d?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+C;u.clipId&&(M.push("clip="+u.clipId),M.push("clipt="+u.clipTiming));K=M.length>0?l+"?"+M.join("&amp;"):l;u.encryptedEmbedConfig&&M.push("embed_config="+JSON.stringify({enc:u.encryptedEmbedConfig}));
M=M.length>0?l+"?"+M.join("&amp;"):l;_.S("web_sharing_embed_preview_killswitch")?_.bi(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(M,u.previewWidth||854,u.previewHeight||480):(_.XV(this.videoPreviewContainer),_.bi(this.videoPreviewContainer).appendChild(this.buildIframeElement(M)));return this.getEmbedCode_(K,u.width||560,u.height||315)};
_.I.buildIframeElement=function(u){var K=document.createElement("iframe"),l,D;K.width=""+((D=(l=this.data)==null?void 0:l.previewWidth)!=null?D:854);var d,C;K.height=""+((C=(d=this.data)==null?void 0:d.previewHeight)!=null?C:480);_.Nbh(K,2,u);K.title="YouTube video player";K.frameBorder="0";K.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";K.referrerPolicy="strict-origin-when-cross-origin";K.allowFullscreen=!0;return K};
_.I.computeIsSquareAspectRatio_=function(u){return u.previewHeight&&u.previewWidth?u.previewHeight==u.previewWidth:!1};
_.I.computeShowEmbedOptions_=function(u){return!!u.enablePrivacyModeOptionLabel||!!u.showPlayerControlsOptionLabel};
_.I.getEmbedCode_=function(u,K,l){return'<iframe width="'+K+'" height="'+l+'" src="'+u+'" 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>'};
_.I.handleSignalActionCopyShareEmbedUrl_=function(){_.bi(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.I.handleSetTimestamp_=function(u){this.startAtTimeStamp_=(this.startAtChecked_=u.isSet)?u.timestamp:0};
_.I.closePanel_=function(){_.Sy(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.I.onEmbedCode_=function(){_.bi(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.I.onYtPopupClosed_=function(){_.XV(_.bi(this.hostElement).querySelector("#video-preview"))};
_.I.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.b(this.data.actionButtons[0],_.lF)&&this.ytRendererBehavior.logExplicitClick(_.b(this.data.actionButtons[0],_.lF))};
Pw.prototype.onYtPopupClosed_=Pw.prototype.onYtPopupClosed_;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Pw.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Pw.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Pw.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Pw.prototype,"data",void 0);
_.g([_.U({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.N("design:type",String)],Pw.prototype,"embedCode_",void 0);_.g([_.U({value:!0}),_.N("design:type",Boolean)],Pw.prototype,"isPlayerControlsOptionChecked_",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Pw.prototype,"isPrivacyModeOptionChecked_",void 0);_.g([_.U({value:!1,notify:!0}),_.N("design:type",Boolean)],Pw.prototype,"startAtChecked_",void 0);
_.g([_.U({value:0}),_.N("design:type",Number)],Pw.prototype,"startAtTimeStamp_",void 0);_.g([_.U({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Pw.prototype,"isSquareAspectRatio_",void 0);_.g([_.BF("#video-preview"),_.N("design:type",HTMLElement)],Pw.prototype,"videoPreviewContainer",void 0);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pw.prototype,"onYtPopupClosed_",null);
_.g([_.E9({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],Pw);
_.F(Pw,"yt-sharing-embed-renderer",function(){if(sGE===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;ykH===void 0&&(ykH=document.createElement("template"));var D=ykH;l.call(K,D.content.cloneNode(!0),u.content.firstChild);sGE=u}u=sGE;return u},{mode:2});var HfG={};
HfG.YtUnlimitedFamilyInterstitialBehavior=[_.B2.YtOpenPopupBehavior,_.bf.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(u){u=_.op2(_.HF(u),"yt-button-renderer");return u?u.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(u){this.dialogHistory_.push(u)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var u=this.popFromHistory();if(u){var K={openPopupAction:{popupType:"DIALOG",popup:{}}};K.openPopupAction.popup[u.renderer]=u.data;this.showingPreviousDialog_=!0;this.openPopup(K)}},
handleOpenPopupAction_:function(u){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var K=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(D){return!!u.openPopupAction.popup[D]}),l=this.getElementName_();
K&&this.data&&(this.pushToHistory({renderer:l,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(u){if(u=_.b(u,gx_))this.loading=!0,_.Sy(this.hostElement,"yt-open-create-family-dialog",[u,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var u=this.hostElement.nodeName.split("-").slice(1).map(function(K){return""+K[0].toUpperCase()+K.slice(1).toLowerCase()}).join("");
return u[0].toLowerCase()+u.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var Mm2;var qMi;var Jh=function(){return _.Q.apply(this,arguments)||this};
_.c(Jh,_.Q);_.I=Jh.prototype;_.I.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}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Sy(this.hostElement,"yt-register-create-family-dialog");_.bi(this.hostElement).querySelector("#thumbnail").onShow()};
_.I.fireOnCloseCommand_=function(){var u;((u=this.data)==null?0:u.onCloseCommand)&&_.ay(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.I.onYtServiceRequestSent_=function(u,K){K&&K.endpoint&&_.b(K.endpoint,_.Ux)||(this.loading=!0)};
_.I.onYtServiceRequestCompleted_=function(){var u=this.hostElement.parentElement;u.close&&u.close();this.loading=!1};
_.I.openPopupHandler_=function(u){if(u.detail==this){var K;((K=this.data)==null?0:K.onOpenCommands)&&_.ay(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.I.closePopupHandler_=function(u,K){this.fireOnCloseCommand_();if(K&&K.canceled===!0||K&&K.canceled===!1&&K.confirmed===!1){var l;((l=this.data)==null?0:l.onDismissCommands)&&_.ay(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.I.dataChanged_=function(){this.loading=!1};
Jh.prototype.dataChanged_=Jh.prototype.dataChanged_;Jh.prototype.closePopupHandler_=Jh.prototype.closePopupHandler_;Jh.prototype.openPopupHandler_=Jh.prototype.openPopupHandler_;Jh.prototype.onYtServiceRequestCompleted_=Jh.prototype.onYtServiceRequestCompleted_;Jh.prototype.onYtServiceRequestSent_=Jh.prototype.onYtServiceRequestSent_;_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],Jh.prototype,"ytEventForwardingBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Jh.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(HfG.YtUnlimitedFamilyInterstitialBehavior),_.N("design:type",Object)],Jh.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Jh.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Jh.prototype,"loading",void 0);_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],Jh.prototype,"onYtServiceRequestSent_",null);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],Jh.prototype,"onYtServiceRequestCompleted_",null);
_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Jh.prototype,"openPopupHandler_",null);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Jh.prototype,"closePopupHandler_",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jh.prototype,"dataChanged_",null);
_.g([_.E9({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Jh);
_.F(Jh,"yt-unlimited-family-message-interstitial-renderer",function(){if(qMi===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;Mm2===void 0&&(Mm2=document.createElement("template"));var D=Mm2;l.call(K,D.content.cloneNode(!0),u.content.firstChild);qMi=u}u=qMi;return u},{mode:2});var $Vi;var nmI;var jN=function(){return _.Q.apply(this,arguments)||this};
_.c(jN,_.Q);jN.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"}}}};
jN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.bi(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(u){u.onShow()});
_.bi(this.hostElement).querySelector("#main-thumbnail").onShow()};
jN.prototype.onButtonTap_=function(u){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(u)};
jN.prototype.computeMainThumbnailWidth_=function(u){return u&&u.length!==0?72:96};
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],jN.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);_.g([_.e(HfG.YtUnlimitedFamilyInterstitialBehavior),_.N("design:type",Object)],jN.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],jN.prototype,"data",void 0);
_.g([_.U({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.N("design:type",Number)],jN.prototype,"mainThumbnailWidth_",void 0);_.g([_.U({value:function(){return this.onButtonTap_.bind(this)}}),
_.N("design:type",Function)],jN.prototype,"boundButtonTap_",void 0);_.g([_.E9({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],jN);
_.F(jN,"yt-unlimited-family-profile-interstitial-renderer",function(){if(nmI===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;$Vi===void 0&&($Vi=document.createElement("template"));var D=$Vi;l.call(K,D.content.cloneNode(!0),u.content.firstChild);nmI=u}u=nmI;return u},{mode:2});var rkV;var vmE;var Bw=function(){var u=_.Q.apply(this,arguments)||this;u.sliderAriaValueText_=null;u.selectedIndex_=0;u.messages={PAUSE_SLIDER:_.QQ("PAUSE_SLIDER",void 0,"Pause Duration")};return u};
_.c(Bw,_.Q);_.I=Bw.prototype;_.I.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_]]"}}}}}};
_.I.onPopupOpened_=function(u){u.detail==this&&_.S("enable_premium_voluntary_pause")&&(_.Sy(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.setDialogData=function(u){this.data=u;this.resetSlider_()};
_.I.dataChanged_=function(){this.data&&this.resetSlider_()};
_.I.onSubmitTap_=function(){if(this.data.confirmCommand){var u=this.data.confirmCommand;_.b(u,_.vKw)&&_.c0(this.hostElement,[u,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.I.onExitButtonTap_=function(){_.Sy(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.I.closePopupHandler_=function(u,K){(K&&K.canceled===!0||K.canceled===!1&&K.confirmed===!1)&&this.handleOnDismissCommands_()};
_.I.onSliderChange_=function(){this.selectedIndex_=_.bi(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.I.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.I.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.I.resetSlider_=function(){if(this.data){var u=this.data.defaultEndOptionIndex||0,K=_.bi(this.hostElement).querySelector("#id-pause-slider");if(K.immediateValue<u)for(;K.immediateValue!=u;)K.increment();else if(u<K.immediateValue)for(;K.immediateValue!=u;)K.decrement();this.selectedIndex_=u;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.I.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.ay(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.I.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.ay(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.I.onYtServiceRequestSent=function(){this.loading=!0};
_.I.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
Bw.prototype.onYtServiceRequestCompleted=Bw.prototype.onYtServiceRequestCompleted;Bw.prototype.onYtServiceRequestSent=Bw.prototype.onYtServiceRequestSent;Bw.prototype.closePopupHandler_=Bw.prototype.closePopupHandler_;Bw.prototype.dataChanged_=Bw.prototype.dataChanged_;Bw.prototype.onPopupOpened_=Bw.prototype.onPopupOpened_;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Bw.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Bw.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Bw.prototype,"loading",void 0);_.g([_.U(),_.N("design:type",Number)],Bw.prototype,"selectIndexMax_",void 0);_.g([_.U(),_.N("design:type",Object)],Bw.prototype,"selectedData_",void 0);
_.g([_.U(),_.N("design:type",Object)],Bw.prototype,"sliderAriaValueText_",void 0);_.g([_.U({value:function(){return this.onSubmitTap_.bind(this)}}),
_.N("design:type",Function)],Bw.prototype,"onButtonTap_",void 0);_.g([_.U({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.N("design:type",Function)],Bw.prototype,"onSecondaryTap_",void 0);_.g([_.U(),_.N("design:type",Object)],Bw.prototype,"messages",void 0);_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Bw.prototype,"onPopupOpened_",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bw.prototype,"dataChanged_",null);
_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Bw.prototype,"closePopupHandler_",null);_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],Bw.prototype,"onYtServiceRequestSent",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],Bw.prototype,"onYtServiceRequestCompleted",null);_.g([_.E9({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],Bw);
_.F(Bw,"yt-unplugged-pause-membership-dialog-renderer",function(){if(vmE===void 0){var u=document.createElement("template");_.z(u,'\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>');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;rkV===void 0&&(rkV=document.createElement("template"));var D=rkV;l.call(K,D.content.cloneNode(!0),u.content.firstChild);vmE=u}u=vmE;return u},{mode:2});var GJp;var tmi;var pC=function(){return _.Q.apply(this,arguments)||this};
_.c(pC,_.Q);pC.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.L4("vcBalanceRenderer")}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],pC.prototype,"data",void 0);_.g([_.E9({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],pC);
_.F(pC,"yt-vc-offer-layout-header-renderer",function(){if(tmi===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;GJp===void 0&&(GJp=document.createElement("template"));var D=GJp;l.call(K,D.content.cloneNode(!0),u.content.firstChild);tmi=u}u=tmi;return u},{mode:2});var xVE;var SM_;var bfG;var Of_;var im=function(){return _.Q.apply(this,arguments)||this};
_.c(im,_.Q);im.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.MN.Object.defineProperties(im.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)}}});
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],im.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Ufa.YtTappableItemBehavior),_.N("design:type",Object)],im.prototype,"ytTappableItemBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],im.prototype,"data",void 0);
_.g([_.U({reflectToAttribute:!0}),_.R("data.accessibilityText"),_.N("design:type",String),_.N("design:paramtypes",[])],im.prototype,"ariaLabel",null);_.g([_.U({reflectToAttribute:!0}),_.R("data.style"),_.N("design:type",String),_.N("design:paramtypes",[])],im.prototype,"vcOfferStyle",null);_.g([_.R("data.style","data.titleText"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],im.prototype,"showTitleText",null);_.g([_.E9({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],im);
_.F(im,"yt-vc-offer-renderer",function(){if(Of_===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;bfG===void 0&&(bfG=document.createElement("template"));var D=bfG;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Of_=u}u=Of_;return u},{mode:2});var TX=function(){return _.Q.apply(this,arguments)||this};
_.c(TX,_.Q);TX.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}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],TX.prototype,"data",void 0);_.g([_.E9({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],TX);
_.F(TX,"yt-vc-offer-layout-renderer",function(){if(SM_===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;xVE===void 0&&(xVE=document.createElement("template"));var D=xVE;l.call(K,D.content.cloneNode(!0),u.content.firstChild);SM_=u}u=SM_;return u},{mode:2});var ckV;var aR_;var zQ_;var eQV;var wT=function(){return _.Q.apply(this,arguments)||this};
_.c(wT,_.Q);wT.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}}}}}};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],wT.prototype,"data",void 0);_.g([_.E9({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],wT);
_.F(wT,"yt-ypc-offers-modal-top-bar-renderer",function(){if(eQV===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;zQ_===void 0&&(zQ_=document.createElement("template"));var D=zQ_;l.call(K,D.content.cloneNode(!0),u.content.firstChild);eQV=u}u=eQV;return u},{mode:2});var FD=function(){return _.Q.apply(this,arguments)||this};
_.c(FD,_.Q);FD.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"}}}}};
FD.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
FD.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var u=this.scrollable;u.attached&&typeof u.attached==="function"&&u.attached()};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],FD.prototype,"ytRendererstamperBehavior",void 0);_.g([_.BF("#scrollable"),_.N("design:type",Object)],FD.prototype,"scrollable",void 0);_.g([_.U(),_.N("design:type",Object)],FD.prototype,"data",void 0);_.g([_.E9({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],FD);
_.F(FD,"yt-ypc-offers-modal-renderer",function(){if(aR_===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;ckV===void 0&&(ckV=document.createElement("template"));var D=ckV;l.call(K,D.content.cloneNode(!0),u.content.firstChild);aR_=u}u=aR_;return u},{mode:2});var RQk;var UV2;var Vt=function(){return _.Q.apply(this,arguments)||this};
_.c(Vt,_.Q);_.I=Vt.prototype;_.I.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}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.bi(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.I.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.Sy(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.I.onYtPopupOpened_=function(u,K){(K==null?void 0:K.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.ay(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.I.onYtPopupClosed_=function(u,K){this.continueButtonTapped||K&&(K.canceled===!0||K.canceled===!1&&K.confirmed===!1)&&this.data.onDismissCommands&&_.ay(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.I.onYtServiceRequestError_=function(u){this.set("showSpinner",!1);_.rs(this.hostElement,u.detail.error.message)};
_.I.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.S("enable_ypc_spinners")?_.Sy(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Vt.prototype.onYtServiceRequestError_=Vt.prototype.onYtServiceRequestError_;Vt.prototype.onYtPopupClosed_=Vt.prototype.onYtPopupClosed_;Vt.prototype.onYtPopupOpened_=Vt.prototype.onYtPopupOpened_;Vt.prototype.onYtServiceRequestCompleted_=Vt.prototype.onYtServiceRequestCompleted_;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Vt.prototype,"ytRendererstamperBehavior",void 0);
_.g([_.U(),_.N("design:type",Object)],Vt.prototype,"data",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Vt.prototype,"showSpinner",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Vt.prototype,"continueButtonTapped",void 0);_.g([_.U({value:function(){return this.onContinueTapped_.bind(this)}}),
_.N("design:type",Function)],Vt.prototype,"bindOnContinueTapped_",void 0);_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Vt.prototype,"onYtServiceRequestCompleted_",null);_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Vt.prototype,"onYtPopupOpened_",null);
_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Vt.prototype,"onYtPopupClosed_",null);_.g([_.PF("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Vt.prototype,"onYtServiceRequestError_",null);_.g([_.E9({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Vt);
_.F(Vt,"yt-ypc-upgrade-dialog-renderer",function(){if(UV2===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;RQk===void 0&&(RQk=document.createElement("template"));var D=RQk;l.call(K,D.content.cloneNode(!0),u.content.firstChild);UV2=u}u=UV2;return u},{mode:2});var fRp;var QGE;var gT=function(){return _.Q.apply(this,arguments)||this};
_.c(gT,_.Q);gT.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
gT.prototype.computeHasButtons_=function(u){return!(!u.dismissButton&&!u.confirmButton)};
gT.prototype.computeStyle_=function(u){return u||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],gT.prototype,"ytEventForwardingBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],gT.prototype,"ytRendererstamperBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],gT.prototype,"data",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],gT.prototype,"positionType",void 0);
_.g([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.N("design:type",Boolean)],gT.prototype,"hasButtons_",void 0);_.g([_.U({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.N("design:type",Boolean)],gT.prototype,"style_",void 0);_.g([_.E9({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],gT);
_.F(gT,"yt-bubble-hint-renderer",function(){if(QGE===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;fRp===void 0&&(fRp=document.createElement("template"));var D=fRp;l.call(K,D.content.cloneNode(!0),u.content.firstChild);QGE=u}u=QGE;return u},{mode:2});var Pz_;var Jk2;var Nv=function(){var u=_.qN.apply(this,arguments)||this;u.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return u};
_.c(Nv,_.qN);_.I=Nv.prototype;_.I.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.I.attached=function(){var u=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){u.$.thumbnail.onShow();u.$["header-image"].onShow()})};
_.I.handleCheckBoxUpdateAction_=function(u){this.canShowCheckboxEnabledConfirmButton=u};
_.I.computeUseOverlayForSpinner_=function(u,K){return!!u&&K};
_.I.computeShowSpinner_=function(u,K){return u||!!K};
_.I.fireOnCloseActions_=function(){var u,K=_.y(((u=this.data)==null?void 0:u.onClosedActions)||[]);for(u=K.next();!u.done;u=K.next())this.ytRendererBehavior.resolveCommand(u.value)};
_.I.fireOnOpenCommands_=function(u){var K,l=(K=this.data)==null?void 0:K.onOpenCommands;if(l)for(u.stopImmediatePropagation(),u=_.y(l),K=u.next();!K.done;K=u.next())this.ytRendererBehavior.resolveCommand(K.value)};
_.I.fireOnDismissCommands_=function(u){var K,l=(K=this.data)==null?void 0:K.onDismissCommands;if(l)for(u.stopImmediatePropagation(),u=_.y(l),K=u.next();!K.done;K=u.next())this.ytRendererBehavior.resolveCommand(K.value)};
_.I.openPopupHandler_=function(u){u.detail==this&&this.fireOnOpenCommands_(u)};
_.I.closePopupHandler_=function(u,K){_.bI(this,"yt-confirm-dialog-close-action",[K]);this.fireOnCloseActions_();(K&&K.canceled===!0||K&&K.canceled===!1&&K.confirmed===!1)&&this.fireOnDismissCommands_(u)};
_.I.onHeaderImageChanged_=function(){var u;((u=this.data)==null?0:u.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.I.computeHasHeaderImageWidth_=function(u){return u!=void 0};
_.I.computeHasLoadingMessage=function(u){return!!u};
_.I.onHeaderImageWidthChanged_=function(){var u,K=(u=this.data)==null?void 0:u.headerImageWidth;if(K){if(u=1.25*K*2+K,this.$.main.style.width=u+"px",K=this.$.scroller.firstElementChild)K.style.minWidth=u+"px"}else this.$.main.style.width="100%"};
_.I.onThumbnailChanged_=function(){var u;((u=this.data)==null?0:u.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")};
_.I.onYtNavigate_=function(u){u=_.HF(u);u instanceof Node&&_.O9(this.$["confirm-button"]).contains(u)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.I.computePrimaryIsCancel_=function(u){return u};
_.I.computeIsCancelButtonHidden_=function(u){return u.skipCancelButton||!u.cancelButton};
_.I.computeIsCheckboxHidden_=function(u){return!u.checkbox};
_.I.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.I.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.I.onYtServiceRequestCompleted_=function(){var u;((u=this.data)==null?0:u.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.MN.Object.defineProperties(Nv,{template:{configurable:!0,enumerable:!0,get:function(){if(Jk2===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;Pz_===void 0&&(Pz_=document.createElement("template"));var D=Pz_;l.call(K,D.content.cloneNode(!0),u.content.firstChild);Jk2=u}u=Jk2;return u}}});
Nv.prototype.onYtServiceRequestCompleted_=Nv.prototype.onYtServiceRequestCompleted_;Nv.prototype.onYtServiceRequestSent_=Nv.prototype.onYtServiceRequestSent_;Nv.prototype.onThumbnailLoaded_=Nv.prototype.onThumbnailLoaded_;Nv.prototype.onYtNavigate_=Nv.prototype.onYtNavigate_;Nv.prototype.onThumbnailChanged_=Nv.prototype.onThumbnailChanged_;Nv.prototype.onHeaderImageWidthChanged_=Nv.prototype.onHeaderImageWidthChanged_;Nv.prototype.onHeaderImageChanged_=Nv.prototype.onHeaderImageChanged_;
Nv.prototype.closePopupHandler_=Nv.prototype.closePopupHandler_;Nv.prototype.openPopupHandler_=Nv.prototype.openPopupHandler_;_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Nv.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],Nv.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);
_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],Nv.prototype,"ytEventForwardingBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Nv.prototype,"data",void 0);_.g([_.U({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.N("design:type",Boolean)],Nv.prototype,"primaryIsCancel",void 0);_.g([_.U({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.N("design:type",Boolean)],Nv.prototype,"isCancelButtonHidden",void 0);
_.g([_.U({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.N("design:type",Boolean)],Nv.prototype,"isCheckboxHidden",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Nv.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.g([_.U({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Nv.prototype,"useOverlayForSpinner_",void 0);
_.g([_.U({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.N("design:type",Boolean)],Nv.prototype,"showSpinner_",void 0);_.g([_.U({value:!1}),_.N("design:type",Boolean)],Nv.prototype,"isActionInProgress_",void 0);_.g([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.N("design:type",Boolean)],Nv.prototype,"hasHeaderImageWidth_",void 0);
_.g([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.N("design:type",Boolean)],Nv.prototype,"hasLoadingMessage",void 0);_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Nv.prototype,"openPopupHandler_",null);_.g([_.PF("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Nv.prototype,"closePopupHandler_",null);
_.g([_.JU("data.headerImage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nv.prototype,"onHeaderImageChanged_",null);_.g([_.JU("data.headerImageWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nv.prototype,"onHeaderImageWidthChanged_",null);_.g([_.JU("data.thumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nv.prototype,"onThumbnailChanged_",null);
_.g([_.PF("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Nv.prototype,"onYtNavigate_",null);_.g([_.PF("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nv.prototype,"onThumbnailLoaded_",null);_.g([_.PF("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.yo]),_.N("design:returntype")],Nv.prototype,"onYtServiceRequestSent_",null);
_.g([_.PF("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.n1]),_.N("design:returntype")],Nv.prototype,"onYtServiceRequestCompleted_",null);_.g([_.E9({is:"yt-confirm-dialog-renderer",noInjection:!0})],Nv);var jGE;var BgH;var kI=function(){return _.Q.apply(this,arguments)||this};
_.c(kI,_.Q);kI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.bi(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
kI.prototype.computeConfirmButton_=function(u){var K={text:u.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};u.confirmNavigationEndpoint?K.navigationEndpoint=u.confirmNavigationEndpoint:u.confirmServiceEndpoint&&(K.serviceEndpoint=u.confirmServiceEndpoint);return K};
kI.prototype.computeShowTitle_=function(u){return!(u==null||!u.title)};
_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],kI.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],kI.prototype,"data",void 0);_.g([_.U({computed:"computeShowTitle_(data)"}),_.N("design:type",Boolean)],kI.prototype,"showTitle",void 0);_.g([_.E9({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],kI);
_.F(kI,"yt-fancy-dismissible-dialog-renderer",function(){if(BgH===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;jGE===void 0&&(jGE=document.createElement("template"));var D=jGE;l.call(K,D.content.cloneNode(!0),u.content.firstChild);BgH=u}u=BgH;return u});var plp;var if2;var Ze=function(){var u=_.Q.apply(this,arguments)||this;u.spinnerActive=!1;return u};
_.c(Ze,_.Q);Ze.prototype.created=function(){Eop(2201)};
Ze.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Ze.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Ze.prototype.onIronOverlayClosed=Ze.prototype.onIronOverlayClosed;Ze.prototype.onIronOverlayOpened=Ze.prototype.onIronOverlayOpened;_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],Ze.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.oP),_.N("design:type",Object)],Ze.prototype,"tpYtIronOverlayBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],Ze.prototype,"data",void 0);_.g([_.U(),_.N("design:type",Object)],Ze.prototype,"spinnerActive",void 0);
_.g([_.PF("iron-overlay-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ze.prototype,"onIronOverlayOpened",null);_.g([_.PF("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ze.prototype,"onIronOverlayClosed",null);_.g([_.E9({is:"yt-loading-renderer",disableElementRegistration:!0})],Ze);
_.F(Ze,"yt-loading-renderer",function(){if(if2===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;plp===void 0&&(plp=document.createElement("template"));var D=plp;l.call(K,D.content.cloneNode(!0),u.content.firstChild);if2=u}u=if2;return u},{mode:2});var TgE;var wli;var YI=function(){var u=_.Q.apply(this,arguments)||this;u.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);u.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);u.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";u.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return u};
_.c(YI,_.Q);_.I=YI.prototype;_.I.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.I.onDarkModeToggledAction=function(u){this.isDarkTheme=u};
_.I.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.I.openPopupHandler_=function(u){u.detail===this.hostElement&&this.hostElement.hidden&&_.Sy(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.I.onDismissButtonTap_=function(){var u;this.closeOnDismissButton_.has(((u=this.data)==null?void 0:u.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Sy(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.I.onAcceptButtonTap_=function(){var u;this.closeOnAcceptButton_.has(((u=this.data)==null?void 0:u.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Sy(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.I.computeHasHeader_=function(u){return!!u.headerBackgroundImage};
_.I.computeLayoutStyle_=function(u){return u};
_.I.computePopupSize_=function(u){return u};
_.I.computeIconType_=function(u){return u.dialogIcon&&u.dialogIcon.iconType?u.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":u.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":u.dialogIcon.iconType:""};
_.I.computeIsLogo_=function(u){return!!u.dialogIcon&&!!u.dialogIcon.iconType&&(u.dialogIcon.iconType==="YOUTUBE_LOGO"||u.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||u.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.I.computeHasCustomLogo=function(u){return!(u==null||!u.headerForegroundImage)};
_.I.computeCustomLogo=function(u,K){if(u!=null&&u.headerForegroundImage)return u.headerForegroundImageDark?K?u.headerForegroundImageDark:u.headerForegroundImage:u.headerForegroundImage};
_.I.computeHeaderBackgroundImage=function(u,K){if(u!=null&&u.headerBackgroundImage)return K&&(u==null?0:u.headerBackgroundImageDark)?u.headerBackgroundImageDark:u.headerBackgroundImage};
_.I.shouldShowIconContainer=function(u,K){return u&&!K};
_.I.shouldShowNonYouTubeIcon=function(u,K){return!u&&!K};
_.I.getLogoImageId=function(u){var K,l,D;return(u=(K=this.computeCustomLogo(u,this.isDarkTheme))==null?void 0:(l=K.thumbnails)==null?void 0:(D=l[0])==null?void 0:D.height)&&u%31===0?"custom-logo-with-padding":"custom-logo"};
YI.prototype.openPopupHandler_=YI.prototype.openPopupHandler_;YI.prototype.dataChanged_=YI.prototype.dataChanged_;_.g([_.e(_.SK.YtRendererstamperBehavior),_.N("design:type",Object)],YI.prototype,"ytRendererstamperBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);_.g([_.U(),_.N("design:type",Boolean)],YI.prototype,"isDarkTheme",void 0);
_.g([_.U({computed:"computeCustomLogo(data, isDarkTheme)"}),_.N("design:type",Object)],YI.prototype,"customLogo",void 0);_.g([_.U({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.N("design:type",Object)],YI.prototype,"headerBackgroundImage",void 0);_.g([_.U(),_.N("design:type",Object)],YI.prototype,"data",void 0);_.g([_.U({computed:"computeHasHeader_(data)"}),_.N("design:type",Boolean)],YI.prototype,"hasHeader",void 0);
_.g([_.U({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.N("design:type",Object)],YI.prototype,"layoutStyle",void 0);_.g([_.U({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.N("design:type",Object)],YI.prototype,"popupSize",void 0);_.g([_.U({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],YI.prototype,"hasLogo",void 0);
_.g([_.U({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],YI.prototype,"hasCustomLogo",void 0);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YI.prototype,"dataChanged_",null);_.g([_.PF("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],YI.prototype,"openPopupHandler_",null);
_.g([_.E9({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],YI);
_.F(YI,"yt-upsell-dialog-renderer",function(){if(wli===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;TgE===void 0&&(TgE=document.createElement("template"));var D=TgE;l.call(K,D.content.cloneNode(!0),u.content.firstChild);wli=u}u=wli;return u},{mode:2});var FZB=_.rf(function(u){return _.n("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.n(_.r,{cond:u.title,then:function(K){return _.n("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},K)}}))},"Jg"),Vm_=_.rf(function(u){return _.n("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.n(_.mo,{data:u.closeButton},{buttonViewModel:function(K){return _.n("div",null,_.n(_.P2,{data:K.data}))}}))},"Kg"),gmp=_.rf(function(u){var K=
u.data;
return _.n(_.G1,null,_.n("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.n("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.n(_.r,{cond:function(){return!!K().image&&!!K().title},
then:function(){return _.n(_.n4,{data:function(){return K().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.n("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.n(_.r,{cond:function(){return K().title},
then:function(l){return _.n("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},l)}}),_.n(_.r,{cond:function(){return K().primaryGenre},
then:function(l){return _.n("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},l)}}))),_.n(_.r,{cond:function(){var l=K().description;
return l&&l.length<=150},
then:function(){return _.n("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.n("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return K().description}))}}))},"Lg"),Ngo=_.rf(function(u){u=u.infoRows;
var K=_.GB().resolve(_.lx),l=_.S("enable_displaying_ppn");return _.n("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.n(_.p0,{each:u},function(D){return _.n("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.n(_.r,{cond:function(){return D.label},
then:function(d){return _.n("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},d)}}),_.n(_.r,{cond:function(){return D.attributedLabel},
then:function(d){return _.n("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.n(_.qC,{text:d,noPreWrap:!0}))}}),_.n(_.r,{cond:function(){return D.value},
then:function(d){return _.n("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},d)}}),_.n(_.r,{cond:function(){return D.attributedValue},
then:function(d){return _.n("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.n(_.qC,{text:d,noPreWrap:!0}))}}))}),_.n(_.r,{cond:function(){return l&&K.clientData.has("post_play_nonce")},
then:function(){return _.n("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.n("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.n("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},K.getData("post_play_nonce")))}}))},"Mg"),kJp=_.rf(function(u){var K=u.data;
return _.n("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.n(FZB,{title:function(){return K().dialogTitle}}),_.n(gmp,{data:K}),_.n(_.r,{cond:function(){return K().infoRow},
then:function(l){return _.n(Ngo,{infoRows:l})}}),_.n(Vm_,{closeButton:function(){return K().closeButton}}))},"Ng");
kJp.idomCompat=!0;_.SX(kJp,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.M6}});_.SX(_.rf(function(u){var K=u.data;return _.n("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.n(_.n4,{data:function(){return K().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.n("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.n("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.n(_.r,{cond:function(){var l=K().ytLogo;return l?l.iconType:null},
then:function(l){return _.n(_.VB,{icon:l,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.n("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.n("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.n(_.qC,{text:function(){return K().title}})),_.n("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.n(_.qC,{text:function(){return K().body}})),_.n("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.n(_.qC,{text:function(){return K().verifyStateText}}))),
_.n("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.n("div",null,_.n(_.mo,{data:function(){return K().dismissButton}},{buttonViewModel:_.P2})),_.n("div",null,_.n(_.mo,{data:function(){return K().linkParentButton}},{buttonViewModel:_.P2})))))},"Og"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.M6}});var Zfo=_.rf(function(u){var K=u.data;u=_.qE(function(){return K().agreements},[]);
return _.n("installment-agreements-view-model",{class:_.JB("ytInstallmentAgreementsViewModelHost")},_.n(_.p0,{each:u},function(l){return _.n("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.n("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.n(_.qC,{text:l.label})),_.n("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.n(_.mo,{data:function(){return l.openButton}},{buttonViewModel:_.P2})))}))},"Pg");
Zfo.idomCompat=!0;var YMG=_.rf(function(u){return _.n("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.n("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.n(_.qC,{text:function(){return u.data().inviteMessage}})),_.n("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.n(_.qC,{text:function(){return u.data().attributedAccountSectionHeaderText}})),_.n("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.n(_.mo,{data:function(){return u.data().accountAvatar}},{avatarViewModel:_.Y_}),_.n("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.n(_.qC,{text:function(){return u.data().accountName}}),_.n("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.n(_.qC,{text:function(){return u.data().handle}}))),_.n(_.mo,{data:function(){return u.data().trailingButton}},{buttonViewModel:_.P2})),_.n("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.n(_.qC,{text:function(){return u.data().termsOfService}})))},"Qg");var Aki=_.rf(function(u){var K=_.y(_.wY(function(){var h,C9;return((h=u.data().createPlaylistDialogFormSchema)==null?0:(C9=h.initialValues)==null?0:C9.title)?u.data().createPlaylistDialogFormSchema.initialValues.title:""})),l=K.next().value,D=K.next().value;
K=_.y(_.wY(function(){u.data();return!1}));
var d=K.next().value,C=K.next().value;K=_.y(_.wY(function(){u.data();return!1}));
var W=K.next().value,M=K.next().value;K=_.y(_.wY(function(){var h,C9;return(h=u.data().createPlaylistDialogFormSchema)==null?void 0:(C9=h.initialValues)==null?void 0:C9.visibility}));
var q=K.next().value,v=K.next().value;K=_.y(_.wY(function(){u.data();return!1}));
var G=K.next().value,t=K.next().value;K=_.y(_.wY(function(){var h,C9;return(h=u.data().createPlaylistDialogFormSchema)==null?void 0:(C9=h.initialValues)==null?void 0:C9.isCollaborative}));
var x=K.next().value,O=K.next().value,a=_.o9("div");_.gp(function(){var h=a.value.querySelector("textarea");h&&(h.value=l())},"OCauEe");
_.ZY(function(){var h;_.d_i((h=u.data().createPlaylistDialogFormSchema)==null?void 0:h.id,{onSubmit:function(){var C9=l();var Wo=q(),$y=x(),co=u.data();C9={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:C9,privacyStatus:Wo,videoIds:co.videoIds,sourcePlaylistId:co.sourcePlaylistId,params:$y?co.createPlaylistParamsCollaborationEnabled:co.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.GB().resolve(_.t9).resolveCommand(C9)},
isValid:function(){return d()&&!W()&&!G()}})});
var f=function(h){if(h!==void 0&&(D(h),!d()&&h.length>0&&C(!0),d())){var C9=stG(u.data());if(C9){var Wo=C9.minLength;C9=C9.maxLength;Wo&&h.length<Wo?M(!0):C9&&h.length>C9?M(!0):M(!1)}}},B=function(){var h=!(!x()||q()!=="PRIVATE");
t(h)},p=function(h){h!==void 0&&(v(h),B())},V=function(){if(G())return WQB(u.data())},m=function(){O(!x());
B()},Z=function(){return{validate:function(h){if(d()){var C9=stG(u.data());
if(C9){var Wo=C9.minLength;C9=C9.translations;if(Wo&&h.length<Wo)return C9==null?void 0:C9.minLengthErrorMessage}}}}},A=function(){var h=stG(u.data()),C9=h==null?void 0:h.maxLength,Wo;
h=h==null?void 0:(Wo=h.translations)==null?void 0:Wo.maxLengthErrorMessage;if(C9&&h)return{maxChars:C9,errorMessage:h}};
return _.n("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.n("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:a},_.n(_.mo,{data:function(){return u.data().playlistTitle}},{textFormFieldViewModel:function(h){return _.n(_.Yv_,{data:h.data,
text:l,onInput:f,validation:Z,characterLimit:A})},
textFieldViewModel:function(h){return _.n(_.ZUH,{data:h.data,text:l,onInput:f,validation:Z,characterLimit:A})}})),_.n("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.n(_.mo,{data:function(){return u.data().playlistVisibility}},{dropdownViewModel:function(h){return _.n(_.CPo,{data:h.data,
onSelected:p,error:V})}})),_.n(_.r,{cond:function(){return!!u.data().playlistCollaborate},
then:function(){return _.n("div",null,_.n(_.mo,{data:function(){return u.data().playlistCollaborate}},{switchListItemViewModel:function(h){return _.n(_.PUR,{data:h.data,
onTap:m})}}))}}))},"Rg");var Xlo=_.rf(function(u){var K=u.data;return _.n("upsell-offer-table-cell-content-view-model",null,_.n("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.n(_.VI,null,_.n(_.ic,{when:function(){return K().iconType}},function(){return _.n("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.n(_.VB,{icon:function(){return K().iconType.toString()}}))}),_.n(_.ic,{when:function(){return K().title}},function(){return _.n(_.qC,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return K().title}})}),_.n(_.ic,{when:function(){return K().subtitle}},function(){return _.n(_.qC,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return K().subtitle}})}),_.n(_.ic,{when:function(){return K().infoText}},function(){return _.n(_.qC,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return K().infoText}})}),_.n(_.ic,{when:function(){return K().featureDescription}},function(){return _.n(_.qC,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return K().featureDescription}})}),_.n(_.ic,{when:function(){return K().note}},function(){return _.n(_.qC,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return K().note}})}))))},"Sg");
Xlo.idomCompat=!0;var mV_=_.rf(function(u){var K=u.data;return _.n("upsell-offer-table-cell-view-model",null,_.n("div",{class:_.JB("ytUpsellOfferTableCellViewModelCellWrapper",function(){return K().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.n(_.mo,{data:function(){return K().contents}},{upsellOfferTableCellContentViewModel:Xlo})))},"Tg");
mV_.idomCompat=!0;var hQG=_.rf(function(u){var K=u.data;var l=u.upsellTableIsFirstRow;var D=function(){return(l==null?0:l())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},d=function(){return(l==null?0:l())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.n("ytm-upsell-offer-table-row-view-model",null,_.n("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.n(_.mo,{data:function(){return K().rowHeaderCell}},{upsellOfferTableCellViewModel:function(C){return _.n("div",{class:D},_.n(mV_,{data:C.data}))}}),_.n(_.mo,{data:function(){return K().contentCells}},{upsellOfferTableCellViewModel:function(C){return _.n("div",{class:d},_.n(mV_,{data:C.data}))}})))},"Ug");
hQG.idomCompat=!0;var EmG=_.rf(function(u){var K=u.data;return _.n("ytm-upsell-offer-table-view-model",null,_.n("div",{class:"ytUpsellOfferTableViewModelHost"},_.n("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.n(_.mo,{data:function(){return K().rows}},{upsellOfferTableRowViewModel:function(l,D){return _.n(hQG,{data:l.data,
upsellTableIsFirstRow:function(){return D()===0}})}}))))},"Vg");
EmG.idomCompat=!0;var LZ6=_.rf(function(u){var K=_.qE(u.noPadding,!1),l=function(){var C,W;return(W=(C=u.data().logo.accessibilityData)==null?void 0:C.label)!=null?W:""},D=function(){return u.data().offerTable},d={};
return _.n("upsell-view-model",{class:_.JB("ytUpsellViewModelHost",(d.ytUpsellViewModelHostNoPadding=function(){return K()},d.ytUpsellViewModelHostWide=function(){return D()!==void 0},d))},_.n("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.n(_.r,{cond:function(){return _.Wk(u.data().logo)},
then:function(C){return _.n(_.n4,{data:C,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:l})}})),_.n("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.n(_.qC,{text:function(){return u.data().title}})),_.n("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.n(_.p0,{each:function(){var C;
return(C=u.data().subtitles)!=null?C:[]},
keyBy:"INDEX"},function(C){var W={};return _.n("div",{class:_.JB("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(W.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return D()!==void 0},W))},_.n(_.qC,{text:C}))})),_.n("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.n(_.p0,{each:function(){var C;
return(C=u.data().benefitInfos)!=null?C:[]},
keyBy:"INDEX"},function(C){return _.n(_.r,{cond:function(){return C().info},
then:function(W){return _.n("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.n(_.VB,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.n(_.qC,{text:W}))}})})),_.n(_.r,{cond:function(){return D()!==void 0},
then:function(){return _.n("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.n(EmG,{data:D}))}}),_.n("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.n(_.p0,{each:function(){var C;
return(C=u.data().legalInfos)!=null?C:[]},
keyBy:"INDEX"},function(C){var W={};return _.n("div",{class:_.JB("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(W.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return D()!==void 0},W))},_.n(_.qC,{text:C}))})))},"Wg");var uJH=_.rf(function(u){var K=u.data;u={};u=(u.ytMiniAppScoreChallengeViewModelScoreRadial=!0,u.ytMiniAppScoreChallengeViewModelDarkScoreRadial=HrV(),u);return _.n("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.n("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return K().title}),_.n("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return K().subtitle}),_.n("div",{class:_.jX(u)},_.n("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return K().score})),_.n("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return K().prompt}))},"Xg");var KcI=function(){this.store=_.Hb();this.formId=""};
KcI.prototype.onInit=function(u){u.formId&&(this.formId=u.formId,this.store.dispatch(_.SZ({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var ln_=_.rf(function(u){function K(M){if(M&&(M=_.b(M,_.Ff)))return Object.assign({},M,{isSelected:C()})}
var l=_.y(_.wY(function(){var M,q;return(q=(M=_.b(u.data().option,_.Ff))==null?void 0:M.isSelected)!=null?q:!1})),D=l.next().value,d=l.next().value,C=D;
_.ZY(function(){var M;_.d_i((M=u.data().formSchema)==null?void 0:M.id,{onSubmit:function(){var q=_.GB().resolve(_.t9),v=!!u.data().selectedCommand,G=!!u.data().unselectedCommand;if(C()){if(v)var t=u.data().selectedCommand}else G&&(t=u.data().unselectedCommand);t=_.lt(t);K(u.data().option)&&!t?(q="",!v&&G?q="selected ":v&&!G&&(q="unselected "),v=new _.wv("No "+q+"command found for SelectionListItemFormViewModel"),_.Xm(v)):t&&q.resolveCommand(t)},
isValid:function(){return!0}})});
var W=function(){d(!C())};
_.No(function(){var M,q,v=(M=u.data())==null?void 0:(q=M.formSchema)==null?void 0:q.id;v&&_.lYI()().delete(v)});
return _.n("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.n("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.n(_.qC,{text:function(){return u.data().paragraph}})),_.n(_.r,{cond:function(){return K(u.data().option)},
then:function(M){return _.n(_.m$,{data:M,isCompact:!0,hideSelectionTextChevron:!0,onTap:W,disableHorizontalPadding:!0})}}))},"Yg");var D5k=_.rf(function(u){var K=u.data;var l=u.disablePadding;var D=u.className;var d=_.o9("yt-dialog-header-view-model"),C=function(){var M=K().imageBanner;a:switch(K().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var q="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:q="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:M,style:q,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},W=function(){return K().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.ZY(function(){var M=function(){_.Sy(d.value,"yt-refit-popups-action")},q;
(q=d.value)==null||q.addEventListener("image-loaded",M);_.No(function(){var v;(v=d.value)==null||v.removeEventListener("image-loaded",M)})});
u={};return _.n("yt-dialog-header-view-model",{el:d,class:_.JB(D,(u.ytDialogHeaderViewModelHost=!0,u.ytDialogHeaderViewModelHostDisablePadding=l,u))},_.n(_.r,{cond:function(){return K().imageBanner},
then:function(){var M={};return _.n("div",{class:_.JB(D,(M.ytDialogHeaderViewModelBanner=!0,M.ytDialogHeaderViewModelBannerFullBleed=W,M)),style:_.Fb({"max-height":function(){return K().assetContainerMaxHeight!==void 0?K().assetContainerMaxHeight+"px":void 0}})},_.n(_.SO,{data:C,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.n(_.r,{cond:function(){return K().headerBlock},
then:function(){return _.n("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.n(_.mo,{data:function(){return K().headerBlock}},{contentPreviewImageViewModel:function(M){return _.n(_.SO,{data:M.data,
notifyOnLoaded:!0})}}))}}),_.n(_.r,{cond:function(){return K().customBanner},
then:function(M){return _.n("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.n(_.mo,{data:M},{avatarStackViewModel:_.XE}))}}),_.n(_.r,{cond:function(){return K().headline},
then:function(M){return _.n("h2",null,_.n(_.qC,{text:M,className:"ytDialogHeaderViewModelText"}))}}))},"Zg");
D5k.idomCompat=!0;var d5o=_.rf(function(u){var K=_.CcI(function(){return u.data().formId}),l=K.onSubmit,D=K.isValid;
return _.n("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.n(_.mo,{data:function(){return u.data().panelFooter}},{panelFooterViewModel:function(d){return _.n(_.oV,{data:d.data,
disablePadding:!0,disablePrimaryButton:function(){return!D()},
onClickPrimaryButton:function(){l()}})}}))},"$g");var Cxi=_.rf(function(u){var K=function(){var l,D;return(D=(l=_.b(u.data().rendererContext,_.T8))==null?void 0:l.label)!=null?D:""};
return _.n("yt-dialog-image-content-view-model",{class:_.JB("ytDialogImageContentViewModelHost",u.className)},_.n(_.r,{cond:function(){return _.Wk(u.data().image)},
then:function(l){return _.n(_.n4,{data:l,alt:K,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.n(_.qC,{text:function(){return u.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"ah");var sW6=_.rf(function(u){var K=_.$U(u,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),l=K.elRefCallback;u=K.iconWiz;var D=K.assetWiz,d=K.assetType,C=K.titleWiz,W=K.leadingActionHeaderWiz,M=K.trailingActionHeaderWiz,q=K.headerPosition,v=K.contentWiz,G=K.buttonLayout,t=K.buttonStyle,x=K.primaryButtonWiz,O=K.secondaryButtonWiz,a=K.contentAlignment,f=K.isFullscreen,B=K.width,p=K.maxHeight,V=K.isHeaderWizDefined,
m=K.headerWiz,Z=K.isFooterWizDefined,A=K.footerWiz;K=_.o9("dialog-layout",function(Bo){l==null||l(Bo)});
var h=D?function(){return D({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,C9=x?function(){var Bo={};
return x({buttonOverrides:function(){return{style:(t==null?void 0:t())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.JB((Bo["yt-spec-dialog-layout__dialog-layout-button"]=!0,Bo["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(G==null?void 0:G())===0||(G==null?void 0:G())===2},Bo))})}:void 0,Wo=O?function(){var Bo={};
return O({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.JB((Bo["yt-spec-dialog-layout__dialog-layout-button"]=!0,Bo["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(G==null?void 0:G())===0||(G==null?void 0:G())===2},Bo))})}:void 0,$y=function(){return(!!C||!!W||!!M)&&q()===0},co={},UZ={},tH={},gq={};
return _.n("dialog-layout",{el:K,class:_.JB((co["yt-spec-dialog-layout"]=!0,co["yt-spec-dialog-layout--dialog-layout-fullscreen"]=f,co["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!f()},co["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return p()===1},co["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(d==null?void 0:d())===1},co)),
style:function(){return(B==null?void 0:B())!==void 0?"width: "+B+"px;":""}},u?_.n("div",{class:_.JB((UZ["yt-spec-dialog-layout__dialog-layout-icon"]=!0,UZ["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!D&&q()===1},UZ["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return a()===1},UZ))},_.n(u,null)):null,_.n(_.r,{cond:V,
then:function(){return m?_.n("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.n(m,null)):null},
else:function(){return _.n(_.G1,null,_.n(_.r,{cond:$y,then:function(){return _.n(In2,{contentAlignment:a,LeadingActionHeader:W,TrailingActionHeader:M,Title:C,isAboveAsset:!!h})}}),h?_.n("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.n(h,null)):null)}}),_.n("div",{class:_.JB((tH["yt-spec-dialog-layout__dialog-layout-container"]=!0,tH["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(a==null?void 0:a())===1},tH["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!C&&!m||!!h&&(q==null?void 0:q())===0},tH))},_.n(_.r,{cond:function(){return C&&!m&&(q==null?void 0:q())===1},
then:function(){return _.n(In2,{contentAlignment:a,LeadingActionHeader:W,TrailingActionHeader:M,Title:C,isAboveAsset:!1})}}),v?_.n("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.n("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.n(v,null))):null,_.n(_.r,{cond:Z,
then:function(){return A?_.n("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.n(A,null)):null}}),C9||Wo?_.n(ytI,{footerClasses:_.JB((gq["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,gq["yt-spec-dialog-layout__dialog-layout-footer"]=!0,gq["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(G==null?void 0:G())===2},gq["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(G==null?void 0:G())===1},gq)),
PrimaryButton:C9,SecondaryButton:Wo}):null))},"bh"),In2=_.rf(function(u){var K=_.$U(u,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),l=K.contentAlignment,D=K.LeadingActionHeader;u=K.Title;var d=K.TrailingActionHeader,C=K.isAboveAsset,W=K.enableLeadingActionHeader;K={};return _.n("div",{class:_.JB((K["yt-spec-dialog-layout__dialog-header-container"]=!0,K["yt-spec-dialog-layout__dialog-header"]=!0,K["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=C,K["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(l==null?void 0:l())===1&&W()},K))},_.n(_.r,{cond:function(){return W()},
then:function(){return D?_.n("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.n(D,null)):null}}),u?_.n("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.n(u,null)):null,d?_.n("div",null,_.n(d,null)):null)},"ch"),ytI=_.rf(function(u){var K=u.footerClasses;
var l=u.PrimaryButton;u=u.SecondaryButton;return _.n("div",{class:K},u?_.n(u,null):null,l?_.n(l,null):null)},"dh");var okp=_.rf(function(u){var K=u.data;return _.n("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.n("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.n(_.mo,{data:function(){return K().avatar}},{avatarViewModel:_.Y_})),_.n("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.n(_.qC,{text:function(){return K().title}})),_.n(_.qC,{text:function(){return K().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"eh");var WcH=_.rf(function(u){var K=u.data;return _.n("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.n("div",{class:"ytAccessConfirmationViewModelContent"},_.n(_.mo,{data:function(){var l;return(l=K().avatar)!=null?l:K().dualAvatar}},{dualAvatarViewModel:function(l){return _.n(_.$q2,{data:l.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(l){return _.n(_.Aa,{data:l.data})}}),_.n("h2",{class:"ytAccessConfirmationViewModelTitle"},_.n(_.qC,{text:function(){return K().title}})),_.n(_.qC,{text:function(){return K().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"fh");var HLo=_.rf(function(u){var K=u.data;var l=void 0;u=_.y(_.wY(function(){var v;return((v=_.b(K().content,_.x7_))==null?void 0:v.defaultSelectedKey)||""}));
var D=u.next().value,d=u.next().value,C,W=function(){d("");var v;(v=l)!=null&&v.store.dispatch(_.SZ({type:"RESET_COMMAND_MAP"}))};
_.ZY(function(){l=new KcI;window.addEventListener("yt-popup-closed",W)});
_.gp(function(){if(l&&C!==K().formId&&(l.onInit(K()),(C=K().formId)&&D())){var v=l,G={key:D()};G.command&&v.store.dispatch(Cwk(C,G.command))}},"k6b6Qe");
_.No(function(){window.removeEventListener("yt-popup-closed",W)});
var M=function(v,G,t){G.key&&t&&G.key!==D()&&(d(G.key),l&&G.command&&l.store.dispatch(Cwk(t,G.command)))},q=function(){if(_.b(K().content,_.x7_))return!(D==null?0:D())};
return _.n("yt-dialog-view-model",{class:_.JB("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.n(sW6,{headerWiz:function(){return _.n("span",{skip:!0},_.n(_.mo,{data:function(){return K().header}},{dialogHeaderViewModel:function(v){return _.n(D5k,{data:v.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!K().header},
contentWiz:function(){return _.n("span",{skip:!0},_.n(_.mo,{data:function(){return K().customContent?K().customContent:K().content}},{basicContentViewModel:_.IBp,
createPlaylistDialogFormViewModel:Aki,collaborativePlaylistInviteMessageViewModel:YMG,miniAppScoreChallengeViewModel:uJH,radioButtonGroupViewModel:function(v){var G=v.data;return _.n(_.ls_,{data:G,selectedKey:D,onSelected:M,groupName:function(){return G().formId}})},
selectionListItemFormViewModel:ln_,upsellViewModel:function(v){return _.n(LZ6,{data:v.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:okp,installmentAgreementsViewModel:Zfo,accessConfirmationViewModel:WcH,listViewModel:function(v){return _.n(_.F6H,{data:v.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:Cxi}))},
footerWiz:function(){return _.n("span",{skip:!0},_.n(_.mo,{data:function(){return K().footer}},{panelFooterViewModel:function(v){return _.n(_.oV,{data:v.data,
disablePadding:!0,disablePrimaryButton:q})},
formPanelFooterViewModel:d5o,formFooterViewModel:function(v){return _.n(_.gLE,{data:v.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!K().footer}}))},"gh");
HLo.idomCompat=!0;_.SX(HLo,"yt-dialog-view-model",{props:{data:_.M6},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var Mek=_.rf(function(u){var K=u.data;u={};return _.n("yt-panel-header-view-model",{class:_.JB("yt-panel-header-view-model-wiz",(u["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!K().shouldHideDivider},u["yt-panel-header-view-model-wiz--compact"]=function(){return!!K().subtitle},u))},_.n("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.n(_.r,{cond:function(){return K().title},
then:function(l){return _.n(_.qC,{text:l,className:"yt-panel-header-view-model-wiz__title"})}}),_.n(_.r,{cond:function(){return K().subtitle},
then:function(l){return _.n(_.qC,{text:l,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.n("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.n(_.mo,{data:function(){return K().trailingButtons}},{buttonViewModel:function(l){return _.n(_.P2,{data:l.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"hh");
Mek.idomCompat=!0;var qD_=_.rf(function(u){var K=_.p4(function(C){var W;if((W=u.skipContentClick)==null?0:W.call(u))return!1;u.onContentWrapperClick(C);return!0}),l,D,d;
return _.n("div",{class:_.JB("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return u.isAnimating()?"transform: translateY("+u.currentY()+"px);transition: 0.2s":""}},(l=u.header)==null?void 0:l.call(u),_.n("div",{id:u.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Fb({"max-height":(0,_.Ac)(u.maxHeightForContentWrapper)}),"on:scroll":nUo(u.onScroll),"on:touchmove":nUo(function(C){return void C.stopPropagation()})},_.n("div",{el:{onRender:u.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":K},(D=u.body)==null?void 0:D.call(u))),(d=u.footer)==null?void 0:d.call(u))},"ih");
qD_.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var $5H=_.rf(function(u){var K=_.qE(u.leadingLabel),l=_.qE(u.trailingLabel),D=_.qE(u.footerButtonType),d=function(){return K()||l()||u.hasPrimaryButton()||u.hasSecondaryButton()},C={},W=_.JB("yt-spec-bottom-sheet-layout__primary-button",(C["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return D()===0&&u.hasPrimaryButton()},C["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return D()===1&&u.hasPrimaryButton()},C["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return D()===2&&u.hasPrimaryButton()},C["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return D()===3&&u.hasPrimaryButton()},C));
C={};var M=_.JB("yt-spec-bottom-sheet-layout__secondary-button",(C["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return D()===1&&u.hasSecondaryButton()},C["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return D()===2&&u.hasSecondaryButton()},C["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return D()===3&&u.hasPrimaryButton()},C));
return _.n(_.r,{cond:u.hasFooterOverride,then:function(){var q;return _.n(_.G1,null,(q=u.footerOverride)==null?void 0:q.call(u))},
else:function(){return _.n(_.r,{cond:d,then:function(){return _.n("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.n(_.r,{cond:function(){return K()||l()},
then:function(){var q={};return _.n("div",{class:_.JB("yt-spec-bottom-sheet-layout__footer-label-wrapper",(q["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!u.hasPrimaryButton()},q))},_.n(_.r,{cond:K,
then:function(){return _.n("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},K)}}),_.n(_.r,{cond:l,
then:function(){return _.n("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},l)}}))}}),_.n(_.r,{cond:function(){return u.hasPrimaryButton()||u.hasSecondaryButton()},
then:function(){var q={};return _.n("div",{class:_.JB("yt-spec-bottom-sheet-layout__footer-button-wrapper",(q["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.wHC,q))},_.n(_.r,{cond:function(){return u.hasSecondaryButton()&&D()!==0},
then:function(){var v;return _.n("div",{class:M},(v=u.secondaryButton)==null?void 0:v.call(u))}}),_.n(_.r,{cond:u.hasPrimaryButton,
then:function(){var v;return _.n("div",{class:W},(v=u.primaryButton)==null?void 0:v.call(u))}}))}}))}})}})},"jh");
$5H.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var nkH=_.rf(function(u){var K=_.qE(u.title),l=_.qE(u.subtitle);return _.n("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:u.headerId,"on:touchstart":_.p4(function(D){var d;(d=u.touchstart)==null||d.call(u,D);return!1}),
"on:touchmove":_.p4(function(D){var d;(d=u.touchmove)==null||d.call(u,D);return!1}),
"on:touchend":_.p4(function(D){var d;(d=u.touchend)==null||d.call(u,D);return!1})},_.n("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.n(_.r,{cond:u.hasHeaderOverride,
then:function(){var D;return _.n(_.G1,null,(D=u.headerOverride)==null?void 0:D.call(u))},
else:function(){var D={};return _.n("div",{class:_.JB((D["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,D["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=K,D))},_.n("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.n(_.r,{cond:K,then:function(){return _.n(_.G1,null,_.n("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},K),_.n(_.r,{cond:l,then:function(){return _.n("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
l)}}))}})),_.n(_.r,{cond:function(){return K()&&u.hasActionHeader()},
then:function(){var d;return _.n("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(d=u.actionHeader)==null?void 0:d.call(u))}}))}}))},"kh");
nkH.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.rf(function(u){function K(h){if(!p&&typeof MutationObserver!=="undefined"){var C9={childList:!0};"MutationObserver"in window&&(p=new MutationObserver(l.bind(void 0,h)),p.observe(h,C9))}}
function l(h){typeof p!=="undefined"&&(V["content-wrapper"]===void 0&&(V["content-wrapper"]=h.children[0].clientHeight),O(V["content-wrapper"]),x()>a()||f(x()))}
function D(){t(window.innerHeight);x()>a()||f(x());m.isFullScreen[0]()&&x()>a()?Z().dispatch("Snap To Full Screen",{maxHeight:B()}):Z().dispatch("Snap To Neutral Position",{maxHeight:a()})}
function d(h){document.body.style.overscrollBehavior="none";h.preventDefault();Z().dispatch("Touch Start",{event:h})}
function C(h){h.preventDefault();Z().dispatch("Touch Move",{event:h,contentScrollable:x()>a(),fullContentWrapperHeight:B(),contentWrapperHeight:a(),contentHeightMap:V,contentWrapperId:"content-wrapper",header:vUB(u),footer:vUB(u)})}
function W(){document.body.style.overscrollBehavior="";m.isFullScreen[0]()?m.currentY[0]()>=60?Z().dispatch("Snap To Neutral Position",{maxHeight:a()}):Z().dispatch("Snap To Full Screen",{maxHeight:B()}):m.currentY[0]()>=60?M():m.currentY[0]()<=-60&&x()>a()?Z().dispatch("Snap To Full Screen",{maxHeight:B()}):Z().dispatch("Snap To Neutral Position",{maxHeight:a()})}
function M(){Z().dispatch("Close Sheet",{clientHeight:G(),maxHeight:0});setTimeout(function(){rlp()},250)}
var q=_.y(_.On(window.innerHeight,void 0,"NWeFS")),v=q.next().value;q=q.next().value;var G=v,t=q;q=_.y(_.On(0,void 0,"oxfm4"));v=q.next().value;q=q.next().value;var x=v,O=q;q=_.y(_.wY(function(){var h=vUB(u);return.6*G()-M16(h)-qp2(h)}));
v=q.next().value;q=q.next().value;var a=v,f=q,B=function(){var h=vUB(u);return G()-M16(h)-qp2(h)-24-24},p=null,V={},m={initialY:_.On(0,void 0,"cYBE5c"),
currentY:_.On(0,void 0,"RndqHc"),isAnimating:_.On(!1,void 0,"vO9DVd"),isFullScreen:_.On(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.wY(a)},Z=function(){var h=null;return function(){if(!h){var C9={initialY:m.initialY[0](),currentY:m.currentY[0](),isAnimating:m.isAnimating[0](),isFullScreen:m.isFullScreen[0](),maxHeightForContentWrapper:m.maxHeightForContentWrapper[0]()};h=$E_(C9)}return h}}();
_.ZY(function(){window.addEventListener("resize",D);Z().subscribe(function(h){m.initialY[1](h.initialY);m.currentY[1](h.currentY);m.isAnimating[1](h.isAnimating);m.isFullScreen[1](h.isFullScreen);m.maxHeightForContentWrapper[1](h.maxHeightForContentWrapper)})});
_.No(function(){window.removeEventListener("resize",D);p&&(p.disconnect(),p=null)});
var A=_.JB({"bottom-sheet-content-without-icon":function(){var h;return!((h=u.shouldShowIcons)==null?0:h.call(u))}});
return _.n("bottom-sheet-layout",null,_.n(qD_,{contentWrapperId:"content-wrapper",isAnimating:function(){return m.isAnimating[0]()},
currentY:function(){return m.currentY[0]()},
maxHeightForContentWrapper:function(){return m.maxHeightForContentWrapper[0]()},
shouldShowIcons:u.shouldShowIcons,skipContentClick:u.skipContentClick,onScroll:function(){var h=document.getElementById("header-wrapper"),C9=document.getElementById("content-wrapper");if(h&&C9){var Wo={};Wo=(Wo["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Wo["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Wo);h.className=C9.scrollTop>1?_.jX(Wo):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:rlp,contentWrapperEl:function(h){K(h);requestAnimationFrame(function(){l(h)})},
header:function(){return _.n(nkH,{touchstart:d,touchmove:C,touchend:W,title:u.headerTitle,subtitle:u.headerSubtitle,headerId:"header-wrapper",headerOverride:u.headerFn,hasHeaderOverride:u.hasHeaderFn,actionHeader:u.headerActionHeader,hasActionHeader:u.hasHeaderActionHeader})},
footer:function(){return _.n($5H,{footerButtonType:u.footerButtonType,leadingLabel:u.footerLeadingLabel,trailingLabel:u.footerTrailingLabel,primaryButton:u.footerPrimaryButton,hasPrimaryButton:u.hasFooterPrimaryButton,secondaryButton:u.footerSecondaryButton,hasSecondaryButton:u.hasFooterSecondaryButton,footerOverride:u.footerFn,hasFooterOverride:u.hasFooterFn})},
body:function(){return _.n(_.r,{cond:u.hasContentFn,then:function(){var h;return _.n("div",{class:A},(h=u.contentFn)==null?void 0:h.call(u))}})}}))},"lh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var rtk=_.rf(function(u){var K=_.GB().resolve(_.NR);return _.n("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.p4(function(){return void K.closeSheet()})},_.n(_.r,{cond:function(){return!!u.header},
then:function(){return _.n("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},u.header())}}),_.n(_.r,{cond:function(){return!!u.content},
then:function(){return _.n("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},u.content())}}),_.n(_.r,{cond:function(){return!!u.footer},
then:function(){return _.n("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},u.footer())}}))},"mh");
rtk.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var vko=_.rf(function(u){u=u.data;var K=_.o9("yt-sheet-view-model",function(D){if(_.S("web_focus_first_element_sheet")||!_.S("sheet_focus_first_killswitch"))return D.addEventListener("focus",function(){osE(D)}),function(){D.removeEventListener("focus",function(){osE(D)})}}),l={};
return _.n("yt-sheet-view-model",{"on:mousedown":_.p4(function(D){_.S("sheet_focus_first_killswitch")||D.currentTarget!==D.target&&D.preventDefault()}),
"on:focus":_.p4(function(){_.S("sheet_focus_first_killswitch")||osE(K.value)}),
class:_.JB("yt-sheet-view-model-wiz",(l["yt-sheet-view-model-wiz--contextual"]=!0,l["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.S("web_disable_backdrop_filter"),l)),el:K,tabindex:-1},_.n(_.r,{cond:u,then:function(D){return _.n(rtk,{header:function(){return _.n(_.mo,{data:function(){return D().header}},{panelHeaderViewModel:Mek})},
content:function(){return _.n(_.mo,{data:function(){return D().content}},{listViewModel:function(d){return _.n(_.F6H,{data:d.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:LZ6,miniAppScoreChallengeViewModel:uJH})},
footer:function(){return _.n(_.mo,{data:function(){return D().footer}},{panelFooterViewModel:_.oV})}})}}))},"nh");
vko.idomCompat=!0;_.SX(vko,"yt-sheet-view-model",{props:{data:_.M6}});var teE=_.rf(function(u){var K=function(){var l;return(l=u.data().enableDebuggingFeatures)!=null?l:!1};
return _.n("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.n(_.p0,{each:function(){var l;return(l=u.data().stickers)!=null?l:[]}},function(l){return _.n(Gy_,{data:function(){return l},
debugMode:K})}))},"oh"),Gy_=_.rf(function(u){var K=_.$U(u,{debugMode:!1}).debugMode,l=_.qE(function(){var q;
return(q=u.data().region)==null?void 0:q.w},0),D=_.qE(function(){var q;
return(q=u.data().region)==null?void 0:q.h},0),d=_.qE(function(){var q;
return(q=u.data().region)==null?void 0:q.x},0),C=_.qE(function(){var q;
return(q=u.data().region)==null?void 0:q.y},0),W=_.p4(function(){var q=u.data().onTap;
q&&_.IT(q)}),M={};
return _.n("div",{class:_.JB("ytStoriesStickerLayerViewModelSticker",(M.ytStoriesStickerLayerViewModelDebugMode=K,M)),style:_.Fb({width:function(){return 100*l()+"%"},
height:function(){return 100*D()+"%"},
left:function(){return 100*d()+"%"},
top:function(){return 100*C()+"%"},
"flex-direction":function(){return GW6(u.data().flexDirection)},
"justify-content":function(){return t1k(u.data().justifyContent)},
"align-items":function(){return xEo(u.data().alignItems)}}),
"on:click":W},_.n(_.mo,{data:function(){return u.data().button||u.data().toggleButton}},{buttonViewModel:function(q){return _.n(_.P2,{data:q.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(q){return _.n(_.YK,{data:q.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ph");var SD_=_.rf(function(u){var K=function(){return u.data()},l={},D=_.qE(function(){return K().backgroundColor},0),d=_.qE(function(){return K().actionButtons},[]),C=_.qE(function(){return K().stickerLayer},{}),W=function(){var q,v;
return{animationRef:l,animationConfig:{autoplay:!1,loop:!1,path:(v=(q=K().foregroundAnimation)==null?void 0:q.url)!=null?v:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){u.navigateToNextItemOnLottieComplete()}}}},M=function(){var q,v,G,t,x,O,a,f;
return{animationConfig:{autoplay:(O=(q=K().backgroundAnimation)==null?void 0:(v=q.settings)==null?void 0:v.autoplay)!=null?O:!1,loop:(a=(G=K().backgroundAnimation)==null?void 0:(t=G.settings)==null?void 0:t.loop)!=null?a:!1,path:(f=(x=K().backgroundAnimation)==null?void 0:x.url)!=null?f:"",name:"stories_item_background_animation"}}};
_.gp(function(){if(u.isVisible()){var q;(q=l.lottieEl)==null||q.play();u.animationRef()&&(u.animationRef().lottieEl=l.lottieEl)}else{var v;(v=l.lottieEl)==null||v.stop()}},"Cbnkwd");
return _.n("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Fb({"background-color":function(){return _.Kg(D())+";"}})},_.n("div",{class:"ytStoriesItemViewModelAssetContent"},_.n(_.r,{cond:function(){return!!K().backgroundAnimation},
then:function(){return _.n(_.O$,{data:M,animationName:function(){return M().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.n(_.r,{cond:function(){return!!K().backgroundImage},
then:function(){return _.n(_.n4,{data:function(){return K().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.n(_.r,{cond:function(){return!!K().foregroundAnimation},
then:function(){return _.n(_.O$,{data:W,animationName:function(){return W().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.n(_.r,{cond:function(){return!!K().foregroundImage},
then:function(){return _.n(_.n4,{data:function(){return K().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.n("div",{class:"ytStoriesItemViewModelTopShadow"}),_.n(_.mo,{data:function(){return C()}},{storiesStickerLayerViewModel:teE})),_.n("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.Fb({"background-color":function(){return _.Kg(D())}})},_.n("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.n(_.p0,{each:d},function(q){return _.n(x5H,{data:function(){return q},
pauseAutoNavigation:u.pauseAutoNavigation})}))))},"qh"),bL_={style:"overlay",
type:"outline"},x5H=_.rf(function(u){var K={};return _.n("div",{class:_.JB("ytStoriesItemViewModelActionButton",(K.ytStoriesItemViewModelStretchedActionButton=function(){return u.data().size==="STORIES_BUTTON_SIZE_STRETCH"},K)),
"on:click":_.p4(u.pauseAutoNavigation)},_.n(_.mo,{data:function(){return u.data().button}},{buttonViewModel:function(l){return _.n(_.P2,{data:l.data,
buttonOverrides:bL_})}}))},"rh");_.SX(_.rf(function(u){var K=function(){var C9;return(C9=u.data().startIndex)!=null?C9:0},l=_.y(_.wY(K)),D=l.next().value,d=l.next().value;
l=_.y(_.On(!1,void 0,"O8yPf"));var C=l.next().value,W=l.next().value,M=function(){var C9;return(C9=u.data().storyItems)!=null?C9:[]},q={},v=function(){return u.data().dismissButton},G=function(){var C9;
return _.b((C9=_.b(v(),_.kY))==null?void 0:C9.onTap,_.K4)},t=_.o9("div"),x,O,a=!1,f=function(){var C9;
(C9=x)==null||C9.cancel();x=B(D()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});x.onfinish=function(){B(D()).style.width="100%";var Wo=_.b(M()[D()],O7B),$y,co;Wo!=null&&Wo.foregroundAnimation&&((Wo==null?0:($y=Wo.foregroundAnimation)==null?0:$y.url)||(Wo==null?0:(co=Wo.foregroundAnimation)==null?0:co.payload))||(D()!==M().length-1?(d(D()+1),f()):G()&&_.D$(G()))}},B=function(C9){return t.value.children[C9].children[0]},p=function(){for(var C9=0;C9<D();C9++)B(C9).style.width=
"100%"};
l=_.p4(function(){a||(C()?W(!1):(D()===M().length-1&&G()&&_.D$(G()),B(D()).style.width="100%",D()!==M().length-1&&(d(D()+1),f())))});
var V=_.p4(function(){a||(C()?W(!1):(B(D()).style.width="0%",D()!==0?d(D()-1):d(D()),f()))}),m=function(){W(!0)},Z=function(){B(D()).style.width="100%";
D()!==M().length-1?(d(D()+1),f()):G()&&_.D$(G())},A=_.p4(function(){a=!1;
O=setTimeout(function(){W(!0);a=!0},300)}),h=_.p4(function(){clearTimeout(O);
a&&C()&&W(!1)});
_.gp(function(){if(C()){var C9;(C9=x)==null||C9.pause();var Wo;(Wo=q.lottieEl)==null||Wo.pause()}else{var $y;($y=x)==null||$y.play();var co;(co=q.lottieEl)==null||co.play()}},"DIHTEd");
_.gp(function(){p();D()===K()&&f()},"ze5F8b");
_.ZY(function(){p();f()});
_.No(function(){clearTimeout(O)});
return _.n("yt-stories-viewer-view-model",{class:_.JB("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.n("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.n("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":V,"on:mousedown":A,"on:mouseup":h,"on:mouseleave":h}),_.n("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":l,"on:mousedown":A,"on:mouseup":h,"on:mouseleave":h})),_.n("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.n(_.mo,{data:M},{storiesItemViewModel:function(C9,Wo){var $y=C9.data;return _.n(_.r,{cond:function(){return Math.abs(Wo()-D())<=1},
then:function(){var co={};return _.n("div",{class:_.JB("ytStoriesViewerViewModelStoryItem",(co.ytStoriesViewerViewModelActiveStoryItem=function(){return Wo()===D()},co))},_.n(SD_,{data:$y,
pauseAutoNavigation:m,navigateToNextItemOnLottieComplete:Z,isVisible:function(){return Wo()===D()},
animationRef:q}))}})}})),_.n("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:t},_.n(_.p0,{each:M},function(){return _.n("div",{class:"ytStoriesViewerViewModelProgressBar"},_.n("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.n("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.n(_.mo,{data:v},{buttonViewModel:_.P2})))},"sh"),"yt-stories-viewer-view-model",{props:{data:_.M6}});_.SX(_.rf(function(u){var K=u.data;var l=_.o9("yt-gen-ai-feedback-form-view-model"),D=[];return _.n("yt-gen-ai-feedback-form-view-model",{el:l,class:"ytGenAiFeedbackFormViewModelHost"},_.n(_.qC,{text:function(){return K().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.n("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.n(_.mo,{data:function(){return K().feedbackChips}},{toggleButtonViewModel:function(d){var C=d.data;
return _.n(_.YK,{data:C,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(W){var M=C();M=_.b(M,_.Za);M=_.b(M==null?void 0:M.defaultButtonViewModel,_.kY).trackingParams;W?D.push(M):(W=D.indexOf(M),W>-1&&D.splice(W,1))}})}})),_.n(_.qC,{text:function(){return K().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.n("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.n(_.mo,{data:function(){return K().submitButton}},{buttonViewModel:function(d){return _.n(_.P2,{data:d.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){SpV(l.value,D,K().uniqueId)}})}}),_.n(_.mo,{data:function(){return K().moreFeedbackButton}},{buttonViewModel:function(d){return _.n(_.P2,{data:d.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"th"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.M6},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Ah=function(){return _.Q.apply(this,arguments)||this};
_.c(Ah,_.Q);Ah.prototype.created=function(){Eop(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(gR6);var u=_.GB().resolve(_.isE);u&&(u.container=this.ytPopupContainerBehavior);if(u=_.GB().resolve(_.NR))u.container=this.ytPopupContainerBehavior;if(u=_.GB().resolve(_.kR)){var K=this.ytPopupContainerBehavior;u.containerWasInjected?_.hV(Error("ej")):u.container=K}};
Ah.prototype.ensurePopupBelowPlayer=function(u,K){var l=_.GB().resolve(_.vv(_.GT));if(!l||!l.isOnWatch()||!_.xY())return!1;l=l.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.iv().height>l+this.getPopupHeight(u,K)?(u.style.top="auto",u.style.bottom="0px"):(u.style.top=l+"px",u.style.bottom="auto");return!0};
Ah.prototype.getPopupHeight=function(u,K){K&&(u.cachedPopupHeight=0);if(!u.cachedPopupHeight){K=0;var l=u.clientHeight,D=window.getComputedStyle(u);K+=parseInt(D.marginTop,10);K+=parseInt(D.marginBottom,10);u.cachedPopupHeight=l+K}return u.cachedPopupHeight};
Ah.prototype.getElement=function(u){return document.createElement(u)};
_.g([_.e(o36.YtPopupContainerBehavior),_.N("design:type",Object)],Ah.prototype,"ytPopupContainerBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Ah.prototype,"ytComponentBehavior",void 0);_.g([_.T({disableElementRegistration:!0,is:"ytd-popup-container"})],Ah);
_.F(Ah,"ytd-popup-container",function(){if(uUp!==void 0)return uUp;var u=document.createElement("template");_.z(u,"\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");u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);return uUp=u},{mode:1});var OL_;var ctE={};ctE.YtLogYpcFlowCommandsBehavior=[_.bf.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(u){_.b(u,V_p)&&(u=_.b(u,V_p))&&(u.serializedTransactionFlowLoggingParams?_.W8q(u.serializedTransactionFlowLoggingParams):u.serializedYpcCancelFlowLoggingParams?(u=u.serializedYpcCancelFlowLoggingParams)&&_.Kx("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",u):u.serializedYpcResumeFlowLoggingParams?(u=u.serializedYpcResumeFlowLoggingParams)&&_.Kx("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",u):u.serializedYpcPauseFlowLoggingParams?(u=u.serializedYpcPauseFlowLoggingParams)&&
_.Kx("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",u):u.serializedYpcRefundFlowLoggingParams?(u=u.serializedYpcRefundFlowLoggingParams)&&ino("YPC_EVENT_TYPE_START",u):u.serializedYpcDeactivateFlowLoggingParams?(u=u.serializedYpcDeactivateFlowLoggingParams)&&_.Kx("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",u):u.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(u=u.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Kx("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",u))},
handleLogYpcFlowDismiss_:function(u){_.b(u,FLk)&&(u=_.b(u,FLk),u.serializedTransactionFlowLoggingParams?_.HZq(u.serializedTransactionFlowLoggingParams):u.serializedYpcCancelFlowLoggingParams?(u=u.serializedYpcCancelFlowLoggingParams)&&_.Kx("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",u):u.serializedYpcResumeFlowLoggingParams?(u=u.serializedYpcResumeFlowLoggingParams)&&_.Kx("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",u):u.serializedYpcPauseFlowLoggingParams?(u=
u.serializedYpcPauseFlowLoggingParams)&&_.Kx("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",u):u.serializedYpcRefundFlowLoggingParams&&(u=u.serializedYpcRefundFlowLoggingParams)&&ino("YPC_EVENT_TYPE_CANCEL",u))}}];var anp={};anp.YtCancelRecurrenceBehavior=[_.Co.YtComponentBehavior,_.PRw,{attached:function(){var u=this;BE6(this,function(K,l){return u.ypcCancelRecurrenceHandler(K,l)})},
ypcCancelRecurrenceHandler:function(u,K){var l=this;if(!K||!K.ypcCancelRecurrenceEndpoint)return!1;if(!K.ypcCancelRecurrenceEndpoint.params)return _.uZ(Error("xl")),!0;_.C5(this.hostElement);var D=_.ow.instance,d=_.GB().resolve(_.vv(_.XQ));D&&_.WJ(D,K)?_.HJ(D,K).then(function(C){l.ypcCancelRecurrenceSuccess_(u,K,{data:C})},function(C){l.ypcCancelRecurrenceFailure_(u,K,C)}).thenCatch(function(){_.uZ(Error("yl"))}):d?d.requestDataForServiceEndpoint(K).then(function(C){l.ypcCancelRecurrenceSuccess_(u,
K,C)},function(C){l.ypcCancelRecurrenceFailure_(u,K,C)}).thenCatch(function(){_.uZ(Error("yl"))}):_.uZ(Error("zl"));
return!0},
ypcCancelRecurrenceSuccess_:function(u,K,l){_.IX(this.hostElement);l.data||(l={data:l});l.data&&l.data.actions&&_.ay(this.hostElement,l.data.actions,this.hostElement);l.data.messageRenderer?w_i(K.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(K=K.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Kx("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",K);_.xs(u,"yt-service-request-completed",l)},
ypcCancelRecurrenceFailure_:function(u,K,l){_.IX(this.hostElement);w_i(K.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.xs(u,"yt-service-request-error",{error:l,params:[u,K]})}}];var zCo=function(u,K){_.uL.call(this,K)};
_.c(zCo,GbE);var eCk={};eCk.YtCompleteTransactionBehavior=[_.Co.YtComponentBehavior,_.PRw,{attached:function(){var u=this;BE6(this,function(K,l){return u.ypcCompleteTransactionHandler(K,l)})},
completeTransaction:function(u,K){var l=this;K={payments_payload:window.btoa(K.integratorData),buybucket_params:u.data.buybucketParams,offer_params:u.data.offerParams};var D=_.GB().resolve(_.XQ),d=u.data.completeTransactionEndpoint,C=this.get("ypcCompleteTransactionEndpoint.actions",d);C&&_.ay(this.hostElement,C,this.hostElement);return(C=_.ow.instance)&&_.WJ(C,d)?_.HJ(C,d,K).then(function(W){return!W||(W==null?0:W.error)?(W=l.get("data.serializedTransactionFlowLoggingParams",u),_.YU(new O1("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
W))):{data:W}}).then(function(W){return l.handleCompleteTransactionSuccess_(W,u)},function(){return l.handleCompleteTransactionFailure_(u)}):D.requestDataForServiceEndpoint(d,K).then(function(W){return l.handleCompleteTransactionSuccess_(W,u)},function(){return l.handleCompleteTransactionFailure_(u)})},
handleCompleteTransactionSuccess_:function(u,K){u.data||(u={data:u});if(u.data.messageRenderer)return _.YU(new zCo(u.data.messageRenderer));if(u.data.trackingParams){var l=_.AC(),D=_.Yr();l&&D&&_.DJ(l,D,_.gf(u.data.trackingParams))}K=this.get("data.serializedTransactionFlowLoggingParams",K);TM2(K);return _.zA(u)},
handleCompleteTransactionFailure_:function(u){u=this.get("data.serializedTransactionFlowLoggingParams",u);_.s9("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",u);return _.YU(new O1("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",u))},
ypcCompleteTransactionHandler:function(u,K){var l=this;if(!K.ypcCompleteTransactionEndpoint)return!1;if(!K.ypcCompleteTransactionEndpoint.transactionParams)return _.uZ(Error("Al")),!0;K.ypcCompleteTransactionEndpoint&&K.ypcCompleteTransactionEndpoint.gtmData&&_.AT(K.ypcCompleteTransactionEndpoint.gtmData);var D=_.GB().resolve(_.vv(_.XQ));if(D){_.C5(this.hostElement);var d=_.ow.instance;d&&_.WJ(d,K)?_.HJ(d,K).then(function(C){return!C||(C==null?0:C.error)?(C=l.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
K),_.YU(new O1("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",C))):{data:C}}).then(function(C){_.xs(u,"yt-service-request-completed");
l.ypcCompleteTransactionSuccess_(K,C)},function(){return l.ypcCompleteTransactionFailure_(K)}):D.requestDataForServiceEndpoint(K).then(function(C){_.xs(u,"yt-service-request-completed");
l.ypcCompleteTransactionSuccess_(K,C)},function(){return l.ypcCompleteTransactionFailure_(K)})}return!0},
ypcCompleteTransactionSuccess_:function(u,K){_.IX(this.hostElement);K.data||(K={data:K});_.Sy(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);K.data.messageRenderer||K.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(u):(_.AT('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",u));K.data.actions&&(u=hV2(K.data.actions),K=EOI(K.data.actions),u.length&&_.c0(this.hostElement,
u),K.length&&_.ay(this.hostElement,K,this.hostElement))},
ypcCompleteTransactionFailure_:function(u){_.IX(this.hostElement);_.Sy(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",u,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(u,K,l){if(K=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",K))K={serializedTransactionFlowLoggingParams:K},l&&(K.errorType=l),_.YE(u,K),_.AV()}}];var RCk={};RCk.YtEndpointHandlerWithYpcBehavior=[_.PRw,_.bf.YtActionHandlerBehavior,[{openWalletDialog:function(u,K,l,D,d,C,W){var M=this,q=_.MX();K=K.replace(/-/g,"+").replace(/_/g,"/");var v=_.jy().get("hl");_.NT9(_.vU(_.ob),K,q.resolve,d,function(G){C&&C();q.reject(G)},v,function(G){return M.onServerBackendAnalyticEvent_(u,l,G)},this.onDialogClose_.bind(this),D,W);
return q.promise},
openFixFlowDialog:function(u,K,l,D){u=u.replace(/-/g,"+").replace(/_/g,"/");_.vU(_.ob).openFixFlowDialog(u,K,l,D)},
onDialogClose_:function(){_.Sy(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(u,K,l){_.xs(u,"yt-commerce-action-init-done");K&&_.c0(this.hostElement,[K,{backend_analytics:l}])}}],
_.B2.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(u,K){u=this.get("data.nativeFlowEndpoint",K);K=this.get("data.fallbackEndpoint",K);u?_.c0(this.hostElement,[u]):K&&_.xs(this.hostElement,"yt-navigate",{endpoint:K})}}],
anp.YtCancelRecurrenceBehavior,eCk.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 u=this;BE6(this,function(K,l,D){return u.handleYPCEndpoint(K,l,D)});
this.ypcRegisterActionMapJobId_=_.Ve(_.YL,function(){u.registerActionMap(u.buyFlowActionMap_)})},
detached:function(){var u=this;_.YL.cancelJob(this.ypcRegisterActionMapJobId_);_.Ve(_.YL,function(){u.unregisterActionMap(u.buyFlowActionMap_)})},
handleYPCEndpoint:function(u,K,l){var D=K.ypcGetCartEndpoint;if(D){_.Ys("commerce_transaction");var d=D.gtmId;d&&_.Yx(d);(D=D.gtmData)&&_.AT(D)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",K)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(u,K),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",K)!=null?(this.handleYPCFixInstrumentEndpoint_(u,K),!0):K.ypcPauseSubscriptionCommand?(fpE(this.hostElement,u,K,l),
!0):K.ypcResumeSubscriptionCommand?(Jl2(this.hostElement,u,K),!0):K.getPaymentInstrumentsParamsCommand?(ePp(this.hostElement,u,K),!0):K.ypcHandleTransactionEndpoint?(apG(this.hostElement,u,K,l),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(u,K){var l=this;_.As("ttcr",void 0,"commerce_transaction");K=K.ypcGetCartEndpoint;var D=K.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,d=D.encryptedPurchaseParams,C=D.serializedTransactionFlowLoggingParams,W=D.serializedPaymentsClientParams,M=this.createGetCartResponseFromParams_(D,K.offerParams,C);this.changeButtonState(u,!0);_.Ne(this.openWalletDialog(u,d,D.ypcLogWalletAnalyticDataEndpoint,C,function(){l.changeButtonState(u,!1)},function(){l.changeButtonState(u,
!1)},W).then(function(q){return l.handleBuyFlowCompleteCallback_(u,M,q)},function(){return l.handleOnLoadError(M)}).then(function(q){return void l.handlePostPurchaseSuccess_(u,M,q)},function(q){return void l.handlePostPurchaseError_(q)}),function(){l.changeButtonState(u,!1);
u instanceof Element&&_.xs(u,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(u,K,l){var D=u.completeTransactionEndpoint,d=u.handleTransactionEndpoint;K={data:{offerParams:window.btoa(K),serializedTransactionFlowLoggingParams:l}};d?K.data.handleTransactionEndpoint=d:K.data.completeTransactionEndpoint=D;u.onCartDismissCommand&&(K.data.onCartDismissCommand=u.onCartDismissCommand);return K},
onGetCartServiceRequestCompleted_:function(u,K){var l=this,D=u.target;if(K&&K.data&&K.data.messageRenderer)_.IX(this.hostElement),this.handleMessageRenderer_(K.data.messageRenderer),this.changeButtonState(D,!1);else{var d=this.get("data.encryptedPurchaseParams",K),C=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",K),W=this.get("data.ypcLogWalletAnalyticDataEndpoint",K),M=this.get("data.serializedPaymentsClientParams",K),q=this.getLoggingParams_(K);if(q||d||C)u.stopPropagation(),_.As("ttcr",
void 0,"commerce_transaction"),d||_.IX(this.hostElement),this.changeButtonState(D,!1),C?_.Sy(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.E3("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:C}}},this]):d&&(this.changeButtonState(D,!0),u=null,u=this.openWalletDialog(D,d,W,q,function(){_.IX(l.hostElement);l.changeButtonState(D,!1)},function(){_.IX(l.hostElement);
l.changeButtonState(D,!1)},M),_.Ne(u.then(function(v){return l.handleBuyFlowCompleteCallback_(D,K,v)},function(){return l.handleOnLoadError(K)}).then(function(v){return l.handlePostPurchaseSuccess_(D,K,v)},function(v){return l.handlePostPurchaseError_(v)}),function(){l.changeButtonState(D,!1);
_.xs(D,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(u,K){K&&K.endpoint&&K.endpoint.ypcGetCartEndpoint&&!K.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",K.endpoint.ypcGetCartEndpoint)&&_.ay(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",K.endpoint.ypcGetCartEndpoint)],u.target),_.C5(this.hostElement),this.changeButtonState(u.target,!0))},
onServiceRequestError_:function(u,K){if(K&&K.params&&K.params.length){K=_.y(K.params);for(var l=K.next();!l.done;l=K.next())if((l=l.value)&&l.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",l.ypcGetCartEndpoint)&&_.ay(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",l.ypcGetCartEndpoint)],u.target);_.IX(this.hostElement);this.changeButtonState(u.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(u,K,l){var D=l.integratorData;return D==null||D===""||l.error!=null?(D=this.getLoggingParams_(K),String(l.error)==="-1"?(K.data.onCartDismissCommand&&_.ay(this.hostElement,[K.data.onCartDismissCommand],u),_.YU(new O1("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",D,!0))):_.YU(new O1("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",D))):K.data.handleTransactionEndpoint?zPk(this.hostElement,K.data.handleTransactionEndpoint,{payments_payload:D,funds_guarantee_callback_client_data:l.integratorClientCallbackData}):
this.completeTransaction(K,l)},
handlePostPurchaseSuccess_:function(u,K,l){K=l.data;var D=!1,d,C;if(K&&((d=K.command)==null?0:(C=d.commandExecutorCommand)==null?0:C.commands)){var W,M;d=(W=K.command)==null?void 0:(M=W.commandExecutorCommand)==null?void 0:M.commands;for(W=0;W<d.length;W++)if(_.b(d[W],_.nKS)){D=!0;break}}D||(K&&K.gtmDatas&&K.gtmDatas.length?_.AT(K.gtmDatas[0]):_.AT('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));l.data&&l.data.actions&&(K=hV2(l.data.actions),l=EOI(l.data.actions),K.length&&
_.c0(this.hostElement,K),l.length&&_.ay(this.hostElement,l,u))},
handlePostPurchaseError_:function(u){u&&u.payload&&u.payload.isUserDismiss||_.Xm(Error("Cl"))},
handleOnLoadError:function(u){u=this.getLoggingParams_(u);return _.YU(new O1("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",u))},
getLoggingParams_:function(u){return this.get("data.serializedTransactionFlowLoggingParams",u)},
handleMessageRenderer_:function(u){var K=_.Xp(u,"renderer"),l=_.E3("openPopupConfig");K==="confirmDialogRenderer"&&l&&_.Sy(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:l.popupTypeMap[K],popup:u}},this])},
handleYPCFixInstrumentEndpoint_:function(u,K){var l=this,D=K.ypcFixInstrumentEndpoint;K=D.encryptedFixInstrumentParameters;this.logFixFopEvent_(D,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(u,!0);this.openFixFlowDialog(K,function(d,C){l.onFixFlowCompleteCallback_(D,d,C)},function(){return l.changeButtonState(u,!1)},function(){l.changeButtonState(u,!1);
l.logFixFopEvent_(D,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(u,K,l){var D=_.lZ("payments.business.integration.scenario.FixInstrument");if(K==D.IntegratorCallbackType.ON_COMPLETE){K="FIX_FOP_EVENT_TYPE_CANCEL";var d=null;l.error!=null?l.error!=D.OnCompleteCallbackError.USER_CANCELLED&&(_.ay(this.hostElement,[u.errorAction],this.hostElement),K="FIX_FOP_EVENT_TYPE_FAILURE",d="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.ay(this.hostElement,[u.successAction],this.hostElement),K="FIX_FOP_EVENT_TYPE_SUCCESS");_.ay(this.hostElement,[u.onFinishAction],
this.hostElement);this.logFixFopEvent_(u,K,d)}},
logFixFopEvent_:function(u,K,l){(u=u.serializedFixFopLoggingParams)?(K={eventType:K,serializedFixFopLoggingParams:u},l!=null&&(K.errorType=l),_.YE("fixFopFlow",K),_.AV()):_.Xm(Error("Dl"))},
changeButtonState:function(u,K){_.S("enable_ypc_spinners")&&u&&(u.is==="yt-button-renderer"||u.is==="ytd-button-renderer")&&(u.disabled=K)}}];var U5E=function(u){this.JSC$32000_clientRoot=u;this.feedbackCollectorActionMap={"yt-help-dialog-requested":Bfp,"yt-feedback-dialog-requested":jtp,"yt-signal-action-help":pbi,"yt-signal-action-send-feedback":irk,"yt-send-feedback-action":wb_,"yt-user-feedback-endpoint":FQ6};_.I9(_.Ci.getInstance(),this.feedbackCollectorActionMap,this.JSC$32000_clientRoot)},fnV;var QWi=function(u){this.JSC$32005_clientRoot=u;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":V1k.bind(null,this.JSC$32005_clientRoot),"yt-signal-action-delete-all-downloads":NfE,"yt-signal-action-delete-download":kWB,"yt-signal-action-delete-playlist-download":Ypo,"yt-signal-action-install-pwa":LQp,"yt-signal-action-refresh-downloads":hPV,"yt-offline-video-endpoint":KEI,"yt-offline-playlist-endpoint":DIB,"yt-update-local-app-setting-command":CtV,"yt-offline-orchestration-action-command":yBV,
"yt-signal-action-undo-delete-download":XbI,"yt-local-watch-history-command":WEp};_.I9(_.Ci.getInstance(),this.downloadManagerActionMap,this.JSC$32005_clientRoot);_.ZU.instance=new _.ZU},Px_;var oY=function(){var u=_.Q.apply(this,arguments)||this;u.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_"};u.remoteApi_=null;return u};
_.c(oY,_.Q);_.I=oY.prototype;
_.I.ready=function(){_.S("polymer_enable_mdx")&&(Nj_({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.S("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.S("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.S("enable_cast_short_lived_lounge_token")}),_.bP("yt-remote-connection-change",this.handleConnectionChange_,this),_.bP("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=hkp())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.I.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.I.handleConnectionChange_=function(u){(this.mdxConnected=u)?(u=YeE(),!u&&Be_()&&pIp()&&(u={key:"cast-selector-receiver",name:pIp()}),u=u.name):u=null;this.receiverName=u;_.qt(this.remoteApi_);(this.remoteApi_=hkp())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.I.handleReceiverAvailabilityChange_=function(){var u=ZlE();Be_()&&_.f7("yt-remote-cast-available")&&u.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=u.length>0};
_.I.handleRemoteQueueChange_=function(){var u=this.currentVideoId_,K=this.currentListId_,l=RI(this.remoteApi_);this.currentVideoId_=l.videoId;this.currentListId_=l.listId;this.currentVideoId_&&_.Sy(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.S("polymer_enable_mdx_queue")?this.currentListId_:null,u,K])};
_.I.handleAddToQueueAction_=function(u){u=_.b(u,cTp);this.remoteApi_&&(u.videoId?this.remoteApi_.addVideo(u.videoId):u.playlistId&&this.remoteApi_.addPlaylist(u.playlistId))};
_.I.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.I.handleInsertInQueueAction_=function(u){u=_.b(u,aTp);this.remoteApi_&&u.videoId&&this.remoteApi_.JSC$19589_insertVideo(u.videoId)};
_.I.handleRemoveFromQueueAction_=function(u){u=_.b(u,z2i);this.remoteApi_&&u.videoId&&this.remoteApi_.JSC$19589_removeVideo(u.videoId)};
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],oY.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U(),_.N("design:type",Object)],oY.prototype,"appId",void 0);_.g([_.U(),_.N("design:type",Boolean)],oY.prototype,"mdxConnected",void 0);_.g([_.U(),_.N("design:type",Boolean)],oY.prototype,"receiverAvailable",void 0);_.g([_.U(),_.N("design:type",Object)],oY.prototype,"receiverName",void 0);_.g([_.U(),_.N("design:type",Object)],oY.prototype,"currentVideoId_",void 0);
_.g([_.U(),_.N("design:type",Object)],oY.prototype,"currentListId_",void 0);_.g([_.E9({is:"yt-mdx-manager",disableElementRegistration:!0})],oY);_.F(oY,"yt-mdx-manager",void 0,{mode:2});var JtV;var jW_;var Wf=function(){var u=_.Q.apply(this,arguments)||this;u.APP_IDS={ytr:3,ytm:5};u.JSC$20829_timeoutId_=0;u.actionMap={"yt-open-create-family-dialog":"open"};return u};
_.c(Wf,_.Q);_.I=Wf.prototype;_.I.created=function(){Eop(2200)};
_.I.detached=function(){this.observer_&&this.observer_.disconnect()};
_.I.open=function(u,K){var l=this,D=u.serializedYpcFamilyCreateLoggingParams;this.JSC$20829_timeoutId_=setTimeout(this.abort_.bind(this,u.postFlowErrorEndpoint,D),3E4);K&&(this.onReadyCallback_=K);var d=_.bi(this.hostElement).querySelector("#unicorn-iframe");D&&D&&p_H("ypcFamilyCreateFlowStarted",D);_.LRy("family_creation",function(){var C=_.lZ("gapi.family_creation.render");_.lZ("gapi.config.update")("iframes/family_creation/url",l.getFamilyCreationUrlWithUnicornParams_());var W=3;u.appId&&u.appId in
l.APP_IDS&&(W=l.APP_IDS[u.appId]);W={authUser:_.E3("SESSION_INDEX")||0,clientId:W,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.E3("HL"),initialflow:[4,5,6,7],m:l.isMobile?1:0,onFlowComplete:l.onUnicornFlowComplete_.bind(l,u.postFlowSuccessEndpoint,D),onError:l.onUnicornFlowError_.bind(l,u.postFlowErrorEndpoint,D),onReady:l.onUnicornFlowReady_.bind(l,u.referencePcidParams)};C(d,W)})};
_.I.close=function(){_.bi(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.I.onUnicornFlowComplete_=function(u,K){this.close();K&&K&&p_H("ypcFamilyCreateFlowSucceeded",K);_.xs(this.hostElement,"yt-navigate",{endpoint:u})};
_.I.onUnicornFlowError_=function(u,K){this.close();K&&p_H("ypcFamilyCreateFlowCancelled",K);_.xs(this.hostElement,"yt-navigate",{endpoint:u})};
_.I.onUnicornFlowReady_=function(u){var K=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();u&&_.lZ("gapi.family_creation.setConfig")(0,u);this.observer_=new MutationObserver(function(){_.bi(K.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.bi(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.bi(this.hostElement).querySelector("#dialog").open()};
_.I.getFamilyCreationUrlWithUnicornParams_=function(){return _.E3("YTR_FAMILY_CREATION_URL")};
_.I.getCurrentUrl_=function(){return document.location.href};
_.I.abort_=function(u,K){this.clearTimeout_();this.onUnicornFlowError_(u,K)};
_.I.clearTimeout_=function(){clearTimeout(this.JSC$20829_timeoutId_)};
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],Wf.prototype,"ytActionHandlerBehavior",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],Wf.prototype,"isMobile",void 0);_.g([_.U(),_.N("design:type",Object)],Wf.prototype,"onReadyCallback_",void 0);_.g([_.U(),_.N("design:type",Object)],Wf.prototype,"observer_",void 0);_.g([_.E9({is:"yt-create-family-dialog",disableElementRegistration:!0})],Wf);
_.F(Wf,"yt-create-family-dialog",function(){if(jW_===void 0){var u=document.createElement("template");_.z(u,'\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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);var K=u.content,l=K.insertBefore;JtV===void 0&&(JtV=document.createElement("template"));var D=JtV;l.call(K,D.content.cloneNode(!0),u.content.firstChild);jW_=u}u=jW_;return u},{mode:2});var BJ_;var pLV;var Hf=function(){var u=_.Q.apply(this,arguments)||this;u.STEP=1;u.BLOCK_ON=80;u.MIN_PROGESS=0;u.MAX_PROGESS=100;return u};
_.c(Hf,_.Q);_.I=Hf.prototype;_.I.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.I.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));_.GB().addProvider({provide:zUI,useValue:this})};
_.I.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.I.finish=function(){var u=this;this.progress=this.MAX_PROGESS;H4_(function(){u.progress==u.MAX_PROGESS&&(u.hostElement.hidden=!0)})};
_.I.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.MN.Object.defineProperties(Hf.prototype,{progress:{configurable:!0,enumerable:!0,set:function(u){this.progress_=u;var K="scaleX("+u/this.MAX_PROGESS+")",l=_.bi(this.hostElement).querySelector("#progress").style;l.transform=K;l.webkitTransform=K;this.hostElement.setAttribute("aria-valuenow",String(u))},
get:function(){return this.progress_}}});
_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],Hf.prototype,"ytComponentBehavior",void 0);_.g([_.E9({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Hf);
_.F(Hf,"yt-page-navigation-progress",function(){if(pLV===void 0){var u=document.createElement("template");_.z(u,'\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');u.content.insertBefore(_.k().content.cloneNode(!0),
u.content.firstChild);var K=u.content,l=K.insertBefore;BJ_===void 0&&(BJ_=document.createElement("template"));var D=BJ_;l.call(K,D.content.cloneNode(!0),u.content.firstChild);pLV=u}u=pLV;return u},{mode:2});var iLG={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"},TJ6={"font-size":"12px","font-style":"italic"},wLk={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.noH=function(){return _.H(function(u){_.TG(u)})};var Fc6=_.rf(function(u){var K=function(){return u.data().subtext},l={};
return _.n("snackbar-view-model",{class:_.JB("snackbarViewModelHost",u.className)},_.n("div",{class:_.JB("snackbarViewModelEngagementBarWrapper",u.className)},_.n(_.r,{cond:function(){return u.data().image},
then:function(D){return _.n(_.n4,{data:D,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.n(_.r,{cond:function(){return u.data().imageContent},
then:function(){return _.n("div",{class:"snackbarViewModelAvatarContainer"},_.n(_.mo,{data:function(){return u.data().imageContent}},{decoratedAvatarViewModel:_.Aa}))}}),_.n("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.n("div",{class:_.JB((l.snackbarViewModelTitle=!0,l.snackbarViewModelTitleWithSubtext=K,l))},_.n(_.qC,{text:function(){return u.data().text}})),_.n(_.r,{cond:K,
then:function(){return _.n("div",{class:"snackbarViewModelSubtext"},_.n(_.qC,{text:function(){return K()}}))}})),_.n(_.r,{cond:function(){return u.data().buttons},
then:function(){return _.n("div",{class:"snackbarViewModelButtonClassWrapper"},_.n(_.mo,{data:function(){return u.data().buttons}},{buttonViewModel:function(D){return _.n(_.P2,{data:D.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:u.target})}}))}})))},"uh");_.SX(_.rf(function(){function u(V,m,Z){a(V);B(Z);x("in");G(!0);K(V,m);W=setTimeout(function(){l()},m)}
function K(V,m){var Z,A=(Z=V.text)==null?void 0:Z.content;V=_.Kz(V.rendererContext);A&&(m={label:A,command:V,durationMs:m},_.GB().resolve(_.JG).enqueue(m))}
function l(V){x("out");V&&clearTimeout(W)}
function D(){l(!0)}
function d(V){if(V){var m=V.snackbarViewModel,Z=V.durationMs,A=V.target;Z||(Z=3E3);m&&(V=_.GB().resolve(_.vv(_.R3)))&&V.enqueue({isOpened:v,open:function(){u(m,Z,A)},
close:l},0)}}
var C=_.W4("snackbar-container"),W=void 0,M=_.y(_.On(!1,void 0,"jJ4tBf")),q=M.next().value;M=M.next().value;var v=q,G=M;q=_.y(_.On("out",void 0,"M6Rbpb"));var t=q.next().value,x=q.next().value;q=_.y(_.On(void 0,void 0,"aFswib"));var O=q.next().value,a=q.next().value;q=_.y(_.On(void 0,void 0,"mlWWhb"));var f=q.next().value,B=q.next().value,p=_.p4(function(){if(t()==="out"){G(!1);a(void 0);B(void 0);var V=_.GB().resolve(_.vv(_.R3));V&&HzE(V,0)}});
_.ZY(function(){var V=_.GB().resolve(_.vv(_.oyI));V&&(V.showSnackbarFn=d,V.closeSnackbarFn=D)});
return _.n("snackbar-container",{class:"ytSnackbarContainerHost",el:C},_.n(_.r,{cond:function(){return v()&&!!O()},
then:function(){var V={};return _.n("div",{class:_.JB("ytSnackbarContainerSnackbarContainer",(V.ytSnackbarContainerMobile=!1,V.ytSnackbarContainerPivotBar=function(){var m;return!((m=_.GB().resolve(_.vv(_.Wbi)))==null||!m())},V.ytSnackbarContainerOpened=function(){return v()&&t()==="in"},V.ytSnackbarContainerClosed=function(){return v()&&t()==="out"},V)),
"on:animationend":p},_.n(Fc6,{data:function(){return O()},
target:function(){return f()}}))}}))},"vh"),"snackbar-container");_.SX(_.kJS,"yt-tooltip");_.SX(_.rf(function(){var u=_.Da(_.qGr);return _.n("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var K;return(K=u())==null?void 0:K.announcement})},"wh"),"yt-ephemeral-actions");var JB_=new Map;var rp_=function(u,K){var l=this;this.handleError=u;this.logEventInternal=K;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){l.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
rp_.prototype.logError=function(u){this.handleError(u)};
rp_.prototype.logEvent=function(u,K){switch(u){case "IDB_DATA_CORRUPTED":_.S("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",K);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",K);break;case "IS_SUPPORTED_COMPLETED":_.S("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",K);break;case "QUOTA_EXCEEDED":Veo(this,K);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",K);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":u=Object.assign({},K,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",u)}};
var Veo=function(u,K){_.pY.getInstance().estimate().then(function(l){l=Object.assign({},K,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:BYp(l==null?void 0:l.usage),deviceStorageQuotaMbytes:BYp(l==null?void 0:l.quota)});u.logEventInternal("idbQuotaExceeded",l)})};var MH=function(){var u=_.Q.apply(this,arguments)||this;u.tabGesturesIsActive=!1;u.deprecateFullerscreenUi=_.S("web_watch_fullerscreen_deprecation_ui");u.hasDelegation=!1;u.darkerDarkTheme=_.S("web_darker_dark_theme");u.isFrostedGlassInitialized=!1;u.frostedGlassExp=_.S("web_frosted_glass");u.mastheadHiddenFocusWithinKillswitch=_.S("web_masthead_hidden_focus_within_killswitch");u.clientOnlyWizTooltipsEnabled=_.S("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");u.scrollAtTop=
!0;u.guideScrollTop=0;u.isTheaterModeSession=_.L0("START_IN_THEATER_MODE");u.iMaxTheaterMode=_.S("web_watch_imax_theater_mode");u.isFullWindowSession=_.L0("START_IN_FULL_WINDOW_MODE");u.hasCreateFamilyDialog=!1;u.mastheadHeight=56;u.networkStatusManager=new _.ye;u.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"};u.dynamicActionMap={"yt-run-attestation-command":function(K){var l=_.MJS.instance,D=_.b(K,_.tQR);return D?_.S("use_rta_manager_for_async")&&
KYG()?VU_(l,D,K.clickTrackingParams):FoG(l,D,K.clickTrackingParams):_.YU(Error("ni"))}};
u.isFrostedGlassDisabled=!1;u.isChannelOrPlaylistPage=!1;return u};
_.c(MH,_.Q);_.I=MH.prototype;_.I.created=function(){var u=_.GB();_.S("kevlar_clear_duplicate_pref_cookie")&&_.Ve(_.YL,function(){var K=_.jg.get("PREF");K&&!/f\d=/.test(K)&&(K=_.bZ("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=K?"PREF=null;domain="+K+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.S("gzip_gel_with_worker")&&_.q9H();_.S("jspb_serialize_with_worker")&&z5p();_.S("web_worker_availability_check")&&jT_();_.S("nwl_init_killswitch")||cp_().then(function(){_.YL.addLowPriorityJob(gO2)});
this.pageManagerAttachedPromise=_.MX();this.ytdAppBehavior.loadDepsPromise=_.gx([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.MC(this.onThrottledScroll,200,this);_.S("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);vf_();rno=!!_.lZ("ytappsettings.initialized");PD=_.lZ("ytappsettings.previousValue");uX6=_.lZ("ytappsettings.previousSnapshotTime");rno||(rno=!0,KqH());XIE();mu2();_.h8("DEFERRED_DETACH",
_.S("kevlar_tuner_should_defer_detach"));_.h8("REUSE_COMPONENTS",!0);_.h8("STAMPER_STABLE_LIST",!0);_.h8("SCHEDULED_LAZY_LIST",!0);_.h8("openPopupConfig",V0k);_.h8("useClickHandler",!0);_.S("kevlar_shell_cleanup")&&_.YL.addLowPriorityJob(sNE.bind(this,_.lL.caches));_.L0("IS_SHELL_LOAD")&&_.Zy({shellStartupDurationMs:Math.round((0,_.vA)()-_.Fi())});tXk(this.networkStatusManager);_.S("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",MX_(iLG)),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!",
MX_(TJ6)),console.log("%cVisit http://go/join-youtube-web to apply today.",MX_(wLk)));_.Wgp(u.resolve(_.QA),1E3)};
_.I.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var u=p4E();u&&!_.S("external_fullscreen_killswitch")&&document.addEventListener(u,this.setFullscreen.bind(this));(u=window.matchMedia("(prefers-color-scheme: dark)"))&&u.addEventListener&&u.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.I.attached=function(){var u=this;_.dw().processSignal("ci");_.S("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.P$R?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.f5(_.G$n(),"SUCCESS");this.updateIconSet();_.GA(this.guideInnerContent,!1);_.gw().initVisibilityObserver();this.guideService.guideElement=this.guide;var K=document.createElement("ytd-miniplayer"),l=_.bi(this.hostElement).querySelector("#content");
_.bi(this.hostElement).insertBefore(K,l);_.dw().processSignal("ma");_.GB().resolve(_.uD).init(K);_.L0("IS_SHELL_LOAD")&&(l=document.createElement("ytd-network-status-banner"),_.bi(this.hostElement).insertBefore(l,K));_.S("kevlar_right_click_on_lockups")&&_.yb._onCaptureClick&&document.addEventListener("contextmenu",_.yb._onCaptureClick.bind(_.yb),!0);var D=function(){var d=_.GF("yt-page-navigation-progress");_.bi(u.hostElement).appendChild(d)};
setTimeout(function(){_.dw().parkOrScheduleJob(D,0,"eocs",16)},0);
_.S("service_worker_push_enabled")&&_.Ve(_.YL,BME);_.I9(_.Ci.getInstance(),this.dynamicActionMap,this.hostElement);_.xs(this.hostElement,"ytd-app-attached");_.dw().processSignal("aa");LYp(this.hostElement);_.$L("gapi.load",_.LRy);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Ve(_.YL,
function(){var d=document.createElement("ytd-video-preview");_.bi(_.bi(u.hostElement).querySelector("#video-preview")).appendChild(d)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Ve(_.YL,function(){rBH();u.registerWithViewTransitionManager()});
if(_.kO()&&this.isAppDarkTheme()!==_.ge())this.onDarkModeToggledAction();else K=_.Nu()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==K&&(_.S("enable_dark_theme_only_on_shorts")?_.Cg(_.S("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Wv(window.location.href,{theme:"dark"})):_.hV(new _.wv("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(ZDi=new kzE(this.hostElement)),Px_=new QWi(this.hostElement),fnV=new U5E(this.hostElement),HZI=new W8H(this.hostElement)};
_.I.getThemeSettingsToLog=function(){var u=_.Nu()==="USER_INTERFACE_THEME_DARK";u=_.kO()?_.ge()?"os-dark":"os-light":u?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:u,cookiesEnabled:_.pT()}};
_.I.detached=function(){_.ts(this.guideInnerContent);_.YL.cancelJob(UX);UX=0;_.YL.cancelJob(Q4);Q4=0;_.zPr(Efo);Efo.length=0;X4E=_.Nj9=null;_.gw().dispose();_.S("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.yH(_.Ci.getInstance(),ZDi.playlistHandlerActionMap,ZDi.JSC$31699_clientRoot);_.yH(_.Ci.getInstance(),Px_.downloadManagerActionMap,Px_.JSC$32005_clientRoot);_.yH(_.Ci.getInstance(),fnV.feedbackCollectorActionMap,fnV.JSC$32000_clientRoot);
for(var u=_.y(HZI.eventListeners),K=u.next();!K.done;K=u.next()){var l=_.y(K.value);K=l.next().value;l=l.next().value;l=_.y(l);for(var D=l.next();!D.done;D=l.next()){var d=_.y(D.value);D=d.next().value;d=d.next().value;K.removeEventListener(D,d)}}_.yH(_.Ci.getInstance(),HZI.autonavPauseActionMap,HZI.JSC$19772_clientRoot)};
_.I.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.jy().getFlag(186)};
_.I.computeIsInlinePreviewEnabled=function(u,K,l){return!l&&_.I_o({miniplayerIsActive:u,miniplayerPlaybackState:K})};
_.I.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.SZ({type:"SET_FROSTED_GLASS_MODE",payload:!_.S("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"}))};
_.I.computeIsFrostedGlassDisabled=function(u,K,l,D){return u||K||l||D&&_.S("web_frosted_glass_disable_watch")};
_.I.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.S("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.I.computeIsHomePage=function(u,K){if(!u||K==null||!K.endpoint)return!1;var l;return((l=_.b(K.endpoint,_.jt))==null?void 0:l.browseId)==="FEwhat_to_watch"};
_.I.updateIsChannelOrPlaylistPage=function(){if(_.S("web_frosted_glass")){var u,K,l=(K=(u=_.GB().resolve(_.vv(_.GT)))==null?void 0:u.getCurrentPage())==null?void 0:K.pageSubtype;this.isChannelOrPlaylistPage=l?["channel","channels","playlist"].includes(l):!1}};
_.I.scheduleFrostedGlassInitialization=function(){var u=this;_.S("web_frosted_glass")&&_.dw().parkOrScheduleJob(function(){u.isFrostedGlassInitialized=!0},0,_.lJ(["eocs",
"cr"]),300)};
_.I.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.oW0(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.SZ({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.SZ({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.I.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(ynH(!0))};
_.I.onYtSignalActionRequestPersistentStorage=function(){if(!_.S("request_persistent_storage_killswitch")){var u=_.GB().resolve(_.LaG);u.cachedPersistStatePromise||(u.cachedPersistStatePromise=SLV())}};
_.I.handleYtChannelCreationFormEndpoints=function(u){u&&this.ytComponentBehavior.resolveCommand(u)};
_.I.handleShowEngagementPanelEndpoint=function(u){u&&this.ytComponentBehavior.resolveCommand(u)};
_.I.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(ynH(!1))};
_.I.initIconDefs=function(u,K){var l=document.createElement("iron-iconset-svg");l.name=u;u=document.createElementNS("http://www.w3.org/2000/svg","svg");l.appendChild(u);u.appendChild(K);document.body.appendChild(l);return l};
_.I.onWindowResized=function(){_.Sy(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var u=_.xdH.getInstance();u.documentWidth_=document.body.clientWidth;$XB(u)};
_.I.onWindowScrolled=function(){var u=_.GB().resolve(_.GT).getCurrentPage();if(u!=null&&u.getScrollTop){var K=this.ytdReduxBehavior,l=K.dispatch;u=u.getScrollTop()<=0;l.call(K,_.SZ({type:"SET_SCROLL_AT_TOP",payload:u}))}};
_.I.guideIsVisibleButNotPersistentSelectorChanged=function(){var u=_.GB().resolve(_.GT).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=u.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"),
u.setScrollTop(this.guideScrollTop));_.bI(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.I.getCurrentPageScrollableElementType=function(){var u=_.GB().resolve(_.GT).getCurrentPage();if(u&&u.getPageScrollingElement())return u.getPageScrollingElement().nodeName};
_.I.observeGuideVisibility=function(){var u=_.xdH.getInstance(),K=this.miniGuideVisible;u.guidePersistentAndVisible_=this.guidePersistentAndVisible;u.miniGuideVisible_=K;$XB(u)};
_.I.handleEduDismissAction=function(u){u&&u.eduDismissAction&&(_.Sy(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.nBC.getInstance(),_.ve.set(u.eduDismissAction.key+"-dismissed",!0))};
_.I.handleEduImpressionAction=function(u){if(u&&u.eduImpressionAction){var K=_.nBC.getInstance();u=u.eduImpressionAction.key;K.JSC$12885_eduDisplayedThisLoad_[_.$d0[u].setKey||u]=!0;_.ve.set(u+"-impression",parseInt(_.ve.get(u+"-impression")||0,10)+1)}};
_.I.onYtSignalActionConfirmMentionsEdu=function(){_.Sy(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.xx.getInstance();_.tT.set("edu-dismissed",!0)};
_.I.onYtSignalActionRecordMentionsEduImpression=function(){_.xx.getInstance();var u=_.tT.set,K=parseInt(_.tT.get("edu-impressions"),10);u.call(_.tT,"edu-impressions",(isFinite(K)?K:0)+1)};
_.I.onYtPageManagerAttached=function(u){var K;((K=_.HF(u))==null?void 0:K.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.I.onInvokeInstrumentManagerAction=function(u,K){w1_(K,u)};
_.I.updateIconSet=function(){var u=this.hostElement.querySelector("#masthead");if(u){var K=_.O9(u),l=K.querySelector("g#yt-logo-updated");l&&(u=document.createElementNS("http://www.w3.org/2000/svg","defs"),u.appendChild(l.cloneNode(!0)),(K=K.querySelector("g#yt-logo-red-updated"))&&u.appendChild(K.cloneNode(!0)),this.initIconDefs("yt-logos-ext",u))}};
_.I.updateMastheadData=function(){var u=this,K,l,D,d,C;return _.H(function(W){if(W.nextAddress==1){K=u.data;l=u.hostElement.querySelector("#masthead");if(!l)return W.return();_.W_(u,function(){l.data=u.topbarData});
if(!u.get("response.topbar",K)||u.get("response.topbar.responseContext.maxAgeSeconds",K)===0)return W.jumpTo(0);if(D=_.GB().resolve(_.HY))return W.yield(D(),6);d=_.GB().resolve(_.zz);return W.yield(d.put("service:topbar:fallback",new _.e0({innertubeResponse:u.get("response.topbar",K)})),0)}return(C=W.yieldResult)?W.yield(C.put("service:topbar:fallback",new _.e0({innertubeResponse:u.get("response.topbar",K)})),0):W.jumpTo(0)})};
_.I.computeTopbarData=function(u){if(!u)return null;var K;return this.isShortsPage&&this.topbarData&&!_.b((K=u.response)==null?void 0:K.topbar,H7V)?this.topbarData:u.response&&"topbar"in u.response?_.b(u.response.topbar,H7V)||null:null};
_.I.onSetTheaterModeEnabled=function(u,K){this.isTheaterModeSession=K.enabled;this.setTheaterModeStyles(K.enabled)};
_.I.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.I.onDarkModeToggledAction=function(){var u=_.RK(window.location.href);if(!_.K9q(u)){(u=!!_.oK(window.location.href).themeRefresh)&&_.hV(new _.wv("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!u){KqH();u={themeRefresh:1};var K=_.GB().resolve(_.GT);if(K.isOnWatch()){var l,D;K=((l=K.getPlayerFromWatch())==null?void 0:(D=l.getPlayer())==null?void 0:D.getCurrentTime())||0;K>=1&&(u.time_continue=Math.floor(K))}_.pT()||_.Nu()!=="USER_INTERFACE_THEME_DARK"||(u.theme="dark");_.Cg(_.Wv(window.location.href,
u))}_.S("web_appshell_refresh_trigger")&&_.lL.caches&&this.refreshAppShellResponse();l=_.dd(window.location.href);_.fD(_.GB().resolve(_.Qa),_.$s(l,"theme"))}};
_.I.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.I.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.I.onPlayerFullscreen=function(u){_.rd();this.playerFullscreen=u};
_.I.setRestrictedMode=function(u){var K=_.jy();_.B0(0,58,u);K.save();_.GB().resolve(_.V1).reload()};
_.I.onPageChanged=function(u){u.detail.newPageType==="ytd-watch-flexy"||u.detail.newPageType==="ytd-watch-fixie"||u.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.ZL("WEB_PAGE_TYPE_WATCH")):u.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.ZL("WEB_PAGE_TYPE_SHORTS")):u.detail.newPageType==="ytd-browse"&&u.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.ZL("WEB_PAGE_TYPE_MINI_APP")):_.S("web_frosted_glass")&&u.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.ZL("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.ZL("WEB_PAGE_TYPE_UNKNOWN"));u.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.I.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.I.onGuideToggleTap=function(){_.xs(this.hostElement,"yt-guide-toggle")};
_.I.onGuideToggleHover=function(){_.xs(this.hostElement,"yt-guide-hover")};
_.I.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.I.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.I.setMastheadTheme=function(){var u=_.O9(this.hostElement).querySelector("#masthead");u&&(u.dark=u.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),u.isDarkThemeForced=!1)};
_.I.onRequestPanelModeChange=function(u,K){this.hideHeaderShadow=K.mode!=="seamed"};
_.I.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.I.onDrawerIronSelect=function(u){_.HF(u).id==="guide"&&this.processDrawerIronSelect()};
_.I.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var u="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(u="opened"));_.xs(this.hostElement,"yt-autonav-pause-guide-"+u)};
_.I.onAddElementToApp=function(u){_.bi(this.hostElement).appendChild(u.detail)};
_.I.onThrottledScroll=function(){var u=_.GB().resolve(_.GT).getCurrentPage();u&&(this.scrollAtTop=u.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.I.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.I.setFullscreen=function(){if(_.S("external_fullscreen")||!this.isWatchPage){var u=_.S("kevlar_fullerscreen_root_only_killswitch")?!!_.rd():!!_.rd()&&_.rd()===document.documentElement;u=(this.isWatchPage||_.S("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(u||this.isFullWindowSession);this.fullscreen!==u&&((this.fullscreen=u)&&_.bI(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Mu().dispatch(_.L80(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.Sy(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.I.setFullscreenLoggingForShorts=function(u){var K,l,D;return _.H(function(d){if(d.nextAddress==1)return d.yield((K=_.xY())==null?void 0:K.getPlayerPromise(),2);l=d.yieldResult;(D=l)==null||D.setAppFullscreen(u);_.TG(d)})};
_.I.updateMastheadCssHeight=function(){var u=this.mastheadHeight;this.fullscreen&&(u=0);_.e8(this.hostElement,{"--ytd-masthead-height":u+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.I.updateNetworkStatusBannerDisplayStatus=function(){var u="unset";this.fullscreen&&(u="none");_.e8(this.hostElement,{"--ytd-network-status-banner-display":u})};
_.I.updateNetworkStatusBannerCssHeight=function(){var u="unset";this.fullscreen&&(u="0px");_.e8(this.hostElement,{"--ytd-network-status-banner-max-height":u})};
_.I.updateScrollAndMasthead=function(u,K,l,D){this.iMaxTheaterMode||(D=!1);var d=_.GB().resolve(_.GT).getCurrentPage();u||K||D?(document.body.classList.add("no-scroll"),d.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Ql(this,this.onScroll)),d.setScrollTop(0),_.e8(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.LY()+"px"})):l?_.xs(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.xs(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
d.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Ql(this,this.onScroll)));this.mastheadHidden=u||K||l;this.updateMastheadCssHeight();_.S("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.I.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.I.onYtNavigateAction=function(u){u=this.get("navigateAction.endpoint",u);_.xs(this.hostElement,"yt-navigate",{endpoint:u})};
_.I.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var u=document.createElement("yt-create-family-dialog");_.bi(this.hostElement).appendChild(u);this.hasCreateFamilyDialog=!0}};
_.I.onSetPushNotificationsEnabledCommand=function(u){var K=this,l=_.b(u,WLH);l&&typeof l.enabled==="boolean"&&(Notification.permission!=="granted"?f82().then(function(){Notification.permission==="granted"?(nr2(!l.enabled).then(GSo),l.successAction&&_.c0(K.hostElement,[l.successAction])):l.failureAction&&_.c0(K.hostElement,[l.failureAction])}):(nr2(!l.enabled).then(GSo),l.successAction&&_.c0(this.hostElement,[l.successAction])))};
_.I.onYtSignalActionEnableChromeNotifications=function(){QN2(!0)};
_.I.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.b(this.topbarData.hotkeyDialog,$s2)}}})};
_.I.onYtSignalActionShowKeyboardShortcutDialog=function(){_.Sy(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.I.onYtEndpointChangeHandler=function(u,K){var l=_.vU(_.F5);l.pendingPrefetchJob_&&(K=!(!K||K.autonav!="1"),l.pendingPrefetchJob_.resolve(u&&_.knq(u)?_.ZlH(u,K):""),l.pendingPrefetchJob_=null);_.Sy(this.hostElement,"yt-pause-active-page-context");_.Sy(this.hostElement,"ytd-log-youthere-nav");_.Sy(this.hostElement,"yt-prepare-page-dispose")};
_.I.handleCommandWithCommandHandler=function(u,K){_.Pb.instance.resolveCommand(u,{form:{element:K}})};
_.I.onYtTimedCommand=function(u){var K=this;u=_.b(u,LKk);var l=u.command;l&&_.Xf(_.YL,function(){var D=_.b(l,_.pdB);D?(_.Pb.instance.resolveCommand(l),K.maybeLogGetAnswerRequestTick(D)):_.ay(K.hostElement,[l],K.hostElement)},u.timeoutMs||0)};
_.I.maybeLogGetAnswerRequestTick=function(u){u&&u.isFirstRequest&&(_.Ys("search_overview_answer"),_.As("so_rq",void 0,"search_overview_answer"))};
_.I.onYtSignalActionSkipNavigation=function(){var u=_.GB().resolve(_.GT).getCurrentPage();_.Hu(u)};
_.I.onYtSignalActionCopyDebugData=function(){kSV()};
_.I.handleEntityUpdateCommand=function(u){_.Pi(_.b(u,_.iXa).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.I.logFlowLoggingEventCommand=function(u){if(u=_.b(u,_.ByH))if(u.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var K=u.flowEventNamespace,l=u.flowEventType,D=u.flowType;D&&K&&l&&_.ilH(_.R7(K,l,u.flowEventMetadata),D)}else{K=_.fc();l=u.flowEventNamespace;D=u.flowEventType;var d=u.flowType;d&&l&&D&&_.Ud(K,_.R7(l,D,u.flowEventMetadata),d,u.flowNonce)}};
_.I.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.I.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.I.onTouchStart=function(){var u=_.Ns();_.AC()&&_.sK(u.JSC$13112_screenManager,{visualElement:u.ve})};
_.I.handleSelectLanguageCommand=function(u){if(u=_.b(u,yTp).hl){var K=_.jy();K.set("hl",u);K.save();_.GB().resolve(_.V1).reload()}};
_.I.handleConfirmDialogEndpoint=function(u){(u=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(u))&&this.ytOpenPopupBehavior.openPopup(u)};
_.I.handleOpenPopupNavigationEndpoints=function(u,K){_.S("web_button_rework")&&(u=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(u))&&this.ytOpenPopupBehavior.openPopup(u,K)};
_.I.handleSaveCommandToSessionStorage=function(u){if(u=_.b(u,_.a0B)){var K=u.key;K&&u.command&&window.sessionStorage.setItem(K,JSON.stringify(u.command))}};
_.I.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(u){u&&u.active&&u.active.postMessage({type:"refresh_shell"})}).catch(function(u){u.name!=="SecurityError"&&_.Xm(u)})};
_.I.onDeviceThemeChanged=function(){var u=_.ge();_.B0(_.jy(),185,u);_.jy().save()};
_.I.handleYtRegisterPromoCommand=function(u){if(_.b(u,oxI)){var K=_.GB().resolve(_.GT).getCurrentPage()||this.hostElement;xR_().registerPromoCommand(_.b(u,oxI),K)}};
_.I.onYtNavigateHomeAction=function(){if(!_.S("kevlar_miniplayer_navigate_home_from_app_killswitch")){var u,K,l,D,d=(D=(u=this.topbarData)==null?void 0:(K=u.logo)==null?void 0:(l=K.topbarLogoRenderer)==null?void 0:l.endpoint)!=null?D:_.pt;this.ytComponentBehavior.resolveCommand(d)}};
_.I.onYtLocationCollectionCommand=function(u){$Ii(_.b(u,b7p))};
_.I.onYtGetLocationCommand=function(u){urV(_.b(u,Sjk),this)};
_.I.updateRenderGuideFromBinding=function(u){this.renderGuide=u.detail.value};
_.I.updateGuidePersistentAndVisibleFromBinding=function(u){this.guidePersistentAndVisible=u.detail.value};
_.I.updateMiniGuideVisibleFromBinding=function(u){this.miniGuideVisible=u.detail.value};
_.I.onThemeSelected=function(u,K){var l=_.jy(),D=u||K?u:_.ge(),d=(D&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!D&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.K9q(_.RK(window.location.href));_.B0(0,165,u);_.B0(0,174,K);l.save();d&&_.Sy(this.hostElement,"yt-dark-mode-toggled-action",[D]);_.Sy(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.I.getCurrentTheme=function(){return _.kO()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Nu()};
_.I.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.I.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.I.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.I.handleShowConsentPrimitive=function(u){var K=this,l,D;return _.H(function(d){if(d.nextAddress==1){try{l=(D=_.xY())==null?void 0:D.getPlayerPromise()}catch(C){}return d.yield(Pt_(u,l),2)}_.Sy(K.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.TG(d)})};
_.I.handleSelectActiveIdentityEndpointInternal=function(u){_.Dv();u=_.b(u,_.Egw);if(u!=null&&u.supportedTokens){u=_.y(u.supportedTokens);for(var K=u.next();!K.done;K=u.next())K=K.value,K.accountSigninToken&&_.Cg(K.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.I.handleUpdatePermissionRoleCommand=function(u){if(u=_.b(u,_.uPN)){var K;this.hasDelegation=!((K=_.b(u.renderer,_.Lvw))==null||!K.status)}};
_.I.registerWithViewTransitionManager=function(){var u=_.GB().resolve(_.vv(_.g6));if(u){var K,l=(K=this.guide)==null?void 0:K.querySelector("#scrim"),D;K=(D=this.guide)==null?void 0:D.querySelector("#contentContainer");l&&K&&u.isAnyTransitionEnabled&&(D={},u.viewTransitionCoordinator.registerElement(l,(D.slide="app-drawer-scrim-page-transition",D["lockup-to-watch"]="app-drawer-scrim-page-transition",D["learning-journey"]="app-drawer-scrim-page-transition",D)),l={},u.viewTransitionCoordinator.registerElement(K,
(l.slide="app-drawer-container-page-transition",l["lockup-to-watch"]="app-drawer-container-page-transition",l["learning-journey"]="app-drawer-container-page-transition",l)))}};
_.MN.Object.defineProperties(MH.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.S("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.MN.Object.defineProperties(MH,{template:{configurable:!0,enumerable:!0,get:function(){if(OL_===void 0){var u=document.createElement("template");_.z(u,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<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');
u.content.insertBefore(_.k().content.cloneNode(!0),u.content.firstChild);OL_=u}u=OL_;return u}}});
MH.prototype.onOpenHotkeyDialog=MH.prototype.onOpenHotkeyDialog;MH.prototype.setFullscreen=MH.prototype.setFullscreen;MH.prototype.onAddElementToApp=MH.prototype.onAddElementToApp;MH.prototype.onDrawerIronSelect=MH.prototype.onDrawerIronSelect;MH.prototype.onGuideOpenButtonHover=MH.prototype.onGuideOpenButtonHover;MH.prototype.onRequestPanelModeChange=MH.prototype.onRequestPanelModeChange;MH.prototype.onPageDataUpdated=MH.prototype.onPageDataUpdated;MH.prototype.onPageChanged=MH.prototype.onPageChanged;
MH.prototype.onSetTheaterModeEnabled=MH.prototype.onSetTheaterModeEnabled;MH.prototype.updateMastheadData=MH.prototype.updateMastheadData;MH.prototype.onYtPageManagerAttached=MH.prototype.onYtPageManagerAttached;MH.prototype.observeGuideVisibility=MH.prototype.observeGuideVisibility;MH.prototype.guideIsVisibleButNotPersistentSelectorChanged=MH.prototype.guideIsVisibleButNotPersistentSelectorChanged;MH.prototype.isInlinePreviewEnabledChanged=MH.prototype.isInlinePreviewEnabledChanged;
MH.prototype.isWatchPageChanged=MH.prototype.isWatchPageChanged;MH.prototype.dispatchFrostedGlassMode=MH.prototype.dispatchFrostedGlassMode;_.g([_.e(_.Ll),_.N("design:type",Object)],MH.prototype,"ytdReduxBehavior",void 0);_.g([_.e(_.iB.YtEventForwardingBehavior),_.N("design:type",Object)],MH.prototype,"ytEventForwardingBehavior",void 0);_.g([_.e(_.B2.YtOpenPopupBehavior),_.N("design:type",Object)],MH.prototype,"ytOpenPopupBehavior",void 0);
_.g([_.e(_.bf.YtActionHandlerBehavior),_.N("design:type",Object)],MH.prototype,"ytActionHandlerBehavior",void 0);_.g([_.e({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Ci.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.S("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var u;((u=this.actionRouterNode.hostElement)!=null?u:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var u;((u=this.actionRouterNode.hostElement)!=null?u:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(u){this.actionRouter_.handleAction(u.detail)}}),
_.N("design:type",Object)],MH.prototype,"ytActionRouterBehavior",void 0);_.g([_.e(eUk.YtdAppBehavior),_.N("design:type",Object)],MH.prototype,"ytdAppBehavior",void 0);_.g([_.e(_.po.YtEndpointBehavior),_.N("design:type",Object)],MH.prototype,"ytEndpointBehavior",void 0);_.g([_.e(RCk.YtEndpointHandlerWithYpcBehavior),_.N("design:type",Object)],MH.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.g([_.e(ctE.YtLogYpcFlowCommandsBehavior),_.N("design:type",Object)],MH.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.g([_.e(_.Y.YtRendererBehavior),_.N("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.g([_.e(_.Co.YtComponentBehavior),_.N("design:type",Object)],MH.prototype,"ytComponentBehavior",void 0);_.g([_.U({selector:_.NBI}),_.N("design:type",Object)],MH.prototype,"tabGesturesIsActive",void 0);_.g([_.U(),_.N("design:type",Boolean)],MH.prototype,"renderGuide",void 0);
_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],MH.prototype,"guidePersistentAndVisible",void 0);_.g([_.U({selector:_.gVI}),_.N("design:type",Boolean)],MH.prototype,"guideIsVisibleButNotPersistent",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],MH.prototype,"standalone",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],MH.prototype,"miniGuideVisible",void 0);
_.g([_.U({selector:_.aGH}),_.N("design:type",Number)],MH.prototype,"miniplayerPlaybackState",void 0);_.g([_.U({selector:_.X6,reflectToAttribute:!0}),_.N("design:type",Boolean)],MH.prototype,"miniplayerIsActive",void 0);_.g([_.U({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.N("design:type",Boolean)],MH.prototype,"isInlinePreviewEnabled",void 0);_.g([_.U(),_.N("design:type",Boolean)],MH.prototype,"isInlinePreviewDisabled",void 0);
_.g([_.U({reflectToAttribute:!0,value:function(){return _.L0("START_IN_FULL_WINDOW_MODE")}}),
_.N("design:type",Boolean)],MH.prototype,"mastheadHidden",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],MH.prototype,"playerFullscreen",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],MH.prototype,"deprecateFullerscreenUi",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],MH.prototype,"fullscreen",void 0);_.g([_.U({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],MH.prototype,"hideHeaderShadow",void 0);
_.g([_.U({value:{GUIDE_ALT_LABEL:_.QQ("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.N("design:type",Object)],MH.prototype,"menuStrings",void 0);_.g([_.U({computed:"computeTopbarData(data)"}),_.N("design:type",Object)],MH.prototype,"topbarData",void 0);_.g([_.U({selector:_.mG}),_.N("design:type",Boolean)],MH.prototype,"isWatchPage",void 0);_.g([_.U({selector:_.btb,reflectToAttribute:!0}),_.N("design:type",Boolean)],MH.prototype,"isShortsPage",void 0);
_.g([_.U({selector:function(u){return u.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.N("design:type",Boolean)],MH.prototype,"isMiniAppPage",void 0);_.g([_.U({selector:function(u){return u.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.N("design:type",Boolean)],MH.prototype,"isBrowsePage",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Boolean)],MH.prototype,"scrolling",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],MH.prototype,"hasDelegation",void 0);_.g([_.U({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],MH.prototype,"guideScrolledByTouch",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],MH.prototype,"darkerDarkTheme",void 0);
_.g([_.U(),_.N("design:type",Object)],MH.prototype,"isFrostedGlassInitialized",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],MH.prototype,"frostedGlassExp",void 0);_.g([_.U({selector:function(u){return u.ui.chipBarIsSticky}}),
_.N("design:type",Boolean)],MH.prototype,"chipBarIsSticky",void 0);_.g([_.U({computed:"computeIsHomePage(isBrowsePage, data)"}),_.N("design:type",Boolean)],MH.prototype,"isHomePage",void 0);_.g([_.U({reflectToAttribute:!0}),_.N("design:type",Object)],MH.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.g([_.U(),_.N("design:type",Object)],MH.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.g([_.GD("guide"),_.N("design:type",Object)],MH.prototype,"guide",void 0);
_.g([_.GD("guide-service"),_.N("design:type",$xI)],MH.prototype,"guideService",void 0);_.g([_.GD("guide-inner-content"),_.N("design:type",HTMLDivElement)],MH.prototype,"guideInnerContent",void 0);_.g([_.U({selector:_.z19}),_.N("design:type",String)],MH.prototype,"frostedGlassMode",void 0);
_.g([_.JU("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MH.prototype,"dispatchFrostedGlassMode",null);_.g([_.U({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.N("design:type",Object)],MH.prototype,"isFrostedGlassDisabled",void 0);
_.g([_.JU("isWatchPage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MH.prototype,"isWatchPageChanged",null);_.g([_.R("isHomePage","chipBarIsSticky"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MH.prototype,"applyFrostedGlassToChipBar",null);_.g([_.U(),_.N("design:type",Object)],MH.prototype,"isChannelOrPlaylistPage",void 0);
_.g([_.wn("isInlinePreviewEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MH.prototype,"isInlinePreviewEnabledChanged",null);_.g([_.JU("guideIsVisibleButNotPersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MH.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.g([_.JU("guidePersistentAndVisible","miniGuideVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MH.prototype,"observeGuideVisibility",null);_.g([_.PF("attached"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],MH.prototype,"onYtPageManagerAttached",null);_.g([_.JU("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],MH.prototype,"updateMastheadData",null);
_.g([_.PF("yt-set-theater-mode-enabled"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],MH.prototype,"onSetTheaterModeEnabled",null);_.g([_.PF("yt-page-type-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],MH.prototype,"onPageChanged",null);_.g([_.PF("yt-page-data-updated"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MH.prototype,"onPageDataUpdated",null);
_.g([_.PF("yt-request-panel-mode-change"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Object]),_.N("design:returntype")],MH.prototype,"onRequestPanelModeChange",null);_.g([_.PF("yt-guide-hover"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MH.prototype,"onGuideOpenButtonHover",null);_.g([_.PF("app-drawer-transitioned"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],MH.prototype,"onDrawerIronSelect",null);
_.g([_.PF("yt-add-element-to-app"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],MH.prototype,"onAddElementToApp",null);_.g([_.PF("yt-set-fullerscreen-styles"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MH.prototype,"setFullscreen",null);_.g([_.PF("yt-open-hotkey-dialog"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MH.prototype,"onOpenHotkeyDialog",null);
_.g([_.T({is:"ytd-app"})],MH);_.dw().processSignal("eor");
_.YV();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
